blob: 7f1aca1b92aad243e9c5377409c91316543ddee9 [file] [log] [blame]
Sydney Acksman8a57ec82019-03-21 17:36:36 -05001// <auto-generated>
2// Generated by the protocol buffer compiler. DO NOT EDIT!
Protobuf Team Bota12b0c02023-01-31 09:58:51 -08003// source: unittest.proto
Sydney Acksman8a57ec82019-03-21 17:36:36 -05004// </auto-generated>
Jan Tattermuschd2292fc2022-05-18 15:50:11 +02005#pragma warning disable 1591, 0612, 3021, 8981
Sydney Acksman8a57ec82019-03-21 17:36:36 -05006#region Designer generated code
7
8using pb = global::Google.Protobuf;
9using pbc = global::Google.Protobuf.Collections;
10using pbr = global::Google.Protobuf.Reflection;
11using scg = global::System.Collections.Generic;
12namespace Google.Protobuf.TestProtos.Proto2 {
13
Protobuf Team Bota12b0c02023-01-31 09:58:51 -080014 /// <summary>Holder for reflection information generated from unittest.proto</summary>
Sydney Acksman8a57ec82019-03-21 17:36:36 -050015 public static partial class UnittestReflection {
16
17 #region Descriptor
Protobuf Team Bota12b0c02023-01-31 09:58:51 -080018 /// <summary>File descriptor for unittest.proto</summary>
Sydney Acksman8a57ec82019-03-21 17:36:36 -050019 public static pbr::FileDescriptor Descriptor {
20 get { return descriptor; }
21 }
22 private static pbr::FileDescriptor descriptor;
23
24 static UnittestReflection() {
25 byte[] descriptorData = global::System.Convert.FromBase64String(
26 string.Concat(
Protobuf Team Bota12b0c02023-01-31 09:58:51 -080027 "Cg51bml0dGVzdC5wcm90bxIYcHJvdG9idWZfdW5pdHRlc3RfcHJvdG8yGhV1",
28 "bml0dGVzdF9pbXBvcnQucHJvdG8igBoKDFRlc3RBbGxUeXBlcxIWCg5vcHRp",
29 "b25hbF9pbnQzMhgBIAEoBRIWCg5vcHRpb25hbF9pbnQ2NBgCIAEoAxIXCg9v",
30 "cHRpb25hbF91aW50MzIYAyABKA0SFwoPb3B0aW9uYWxfdWludDY0GAQgASgE",
31 "EhcKD29wdGlvbmFsX3NpbnQzMhgFIAEoERIXCg9vcHRpb25hbF9zaW50NjQY",
32 "BiABKBISGAoQb3B0aW9uYWxfZml4ZWQzMhgHIAEoBxIYChBvcHRpb25hbF9m",
33 "aXhlZDY0GAggASgGEhkKEW9wdGlvbmFsX3NmaXhlZDMyGAkgASgPEhkKEW9w",
34 "dGlvbmFsX3NmaXhlZDY0GAogASgQEhYKDm9wdGlvbmFsX2Zsb2F0GAsgASgC",
35 "EhcKD29wdGlvbmFsX2RvdWJsZRgMIAEoARIVCg1vcHRpb25hbF9ib29sGA0g",
36 "ASgIEhcKD29wdGlvbmFsX3N0cmluZxgOIAEoCRIWCg5vcHRpb25hbF9ieXRl",
37 "cxgPIAEoDBJLCg1vcHRpb25hbGdyb3VwGBAgASgKMjQucHJvdG9idWZfdW5p",
38 "dHRlc3RfcHJvdG8yLlRlc3RBbGxUeXBlcy5PcHRpb25hbEdyb3VwElUKF29w",
39 "dGlvbmFsX25lc3RlZF9tZXNzYWdlGBIgASgLMjQucHJvdG9idWZfdW5pdHRl",
40 "c3RfcHJvdG8yLlRlc3RBbGxUeXBlcy5OZXN0ZWRNZXNzYWdlEkoKGG9wdGlv",
41 "bmFsX2ZvcmVpZ25fbWVzc2FnZRgTIAEoCzIoLnByb3RvYnVmX3VuaXR0ZXN0",
42 "X3Byb3RvMi5Gb3JlaWduTWVzc2FnZRJPChdvcHRpb25hbF9pbXBvcnRfbWVz",
43 "c2FnZRgUIAEoCzIuLnByb3RvYnVmX3VuaXR0ZXN0X2ltcG9ydF9wcm90bzIu",
44 "SW1wb3J0TWVzc2FnZRJPChRvcHRpb25hbF9uZXN0ZWRfZW51bRgVIAEoDjIx",
45 "LnByb3RvYnVmX3VuaXR0ZXN0X3Byb3RvMi5UZXN0QWxsVHlwZXMuTmVzdGVk",
46 "RW51bRJEChVvcHRpb25hbF9mb3JlaWduX2VudW0YFiABKA4yJS5wcm90b2J1",
47 "Zl91bml0dGVzdF9wcm90bzIuRm9yZWlnbkVudW0SSQoUb3B0aW9uYWxfaW1w",
48 "b3J0X2VudW0YFyABKA4yKy5wcm90b2J1Zl91bml0dGVzdF9pbXBvcnRfcHJv",
49 "dG8yLkltcG9ydEVudW0SIQoVb3B0aW9uYWxfc3RyaW5nX3BpZWNlGBggASgJ",
50 "QgIIAhIZCg1vcHRpb25hbF9jb3JkGBkgASgJQgIIARJcCh5vcHRpb25hbF9w",
51 "dWJsaWNfaW1wb3J0X21lc3NhZ2UYGiABKAsyNC5wcm90b2J1Zl91bml0dGVz",
52 "dF9pbXBvcnRfcHJvdG8yLlB1YmxpY0ltcG9ydE1lc3NhZ2USVwoVb3B0aW9u",
53 "YWxfbGF6eV9tZXNzYWdlGBsgASgLMjQucHJvdG9idWZfdW5pdHRlc3RfcHJv",
54 "dG8yLlRlc3RBbGxUeXBlcy5OZXN0ZWRNZXNzYWdlQgIoARIWCg5yZXBlYXRl",
55 "ZF9pbnQzMhgfIAMoBRIWCg5yZXBlYXRlZF9pbnQ2NBggIAMoAxIXCg9yZXBl",
56 "YXRlZF91aW50MzIYISADKA0SFwoPcmVwZWF0ZWRfdWludDY0GCIgAygEEhcK",
57 "D3JlcGVhdGVkX3NpbnQzMhgjIAMoERIXCg9yZXBlYXRlZF9zaW50NjQYJCAD",
58 "KBISGAoQcmVwZWF0ZWRfZml4ZWQzMhglIAMoBxIYChByZXBlYXRlZF9maXhl",
59 "ZDY0GCYgAygGEhkKEXJlcGVhdGVkX3NmaXhlZDMyGCcgAygPEhkKEXJlcGVh",
60 "dGVkX3NmaXhlZDY0GCggAygQEhYKDnJlcGVhdGVkX2Zsb2F0GCkgAygCEhcK",
61 "D3JlcGVhdGVkX2RvdWJsZRgqIAMoARIVCg1yZXBlYXRlZF9ib29sGCsgAygI",
62 "EhcKD3JlcGVhdGVkX3N0cmluZxgsIAMoCRIWCg5yZXBlYXRlZF9ieXRlcxgt",
63 "IAMoDBJLCg1yZXBlYXRlZGdyb3VwGC4gAygKMjQucHJvdG9idWZfdW5pdHRl",
64 "c3RfcHJvdG8yLlRlc3RBbGxUeXBlcy5SZXBlYXRlZEdyb3VwElUKF3JlcGVh",
65 "dGVkX25lc3RlZF9tZXNzYWdlGDAgAygLMjQucHJvdG9idWZfdW5pdHRlc3Rf",
66 "cHJvdG8yLlRlc3RBbGxUeXBlcy5OZXN0ZWRNZXNzYWdlEkoKGHJlcGVhdGVk",
67 "X2ZvcmVpZ25fbWVzc2FnZRgxIAMoCzIoLnByb3RvYnVmX3VuaXR0ZXN0X3By",
68 "b3RvMi5Gb3JlaWduTWVzc2FnZRJPChdyZXBlYXRlZF9pbXBvcnRfbWVzc2Fn",
69 "ZRgyIAMoCzIuLnByb3RvYnVmX3VuaXR0ZXN0X2ltcG9ydF9wcm90bzIuSW1w",
70 "b3J0TWVzc2FnZRJPChRyZXBlYXRlZF9uZXN0ZWRfZW51bRgzIAMoDjIxLnBy",
71 "b3RvYnVmX3VuaXR0ZXN0X3Byb3RvMi5UZXN0QWxsVHlwZXMuTmVzdGVkRW51",
72 "bRJEChVyZXBlYXRlZF9mb3JlaWduX2VudW0YNCADKA4yJS5wcm90b2J1Zl91",
73 "bml0dGVzdF9wcm90bzIuRm9yZWlnbkVudW0SSQoUcmVwZWF0ZWRfaW1wb3J0",
74 "X2VudW0YNSADKA4yKy5wcm90b2J1Zl91bml0dGVzdF9pbXBvcnRfcHJvdG8y",
75 "LkltcG9ydEVudW0SIQoVcmVwZWF0ZWRfc3RyaW5nX3BpZWNlGDYgAygJQgII",
76 "AhIZCg1yZXBlYXRlZF9jb3JkGDcgAygJQgIIARJXChVyZXBlYXRlZF9sYXp5",
77 "X21lc3NhZ2UYOSADKAsyNC5wcm90b2J1Zl91bml0dGVzdF9wcm90bzIuVGVz",
78 "dEFsbFR5cGVzLk5lc3RlZE1lc3NhZ2VCAigBEhkKDWRlZmF1bHRfaW50MzIY",
79 "PSABKAU6AjQxEhkKDWRlZmF1bHRfaW50NjQYPiABKAM6AjQyEhoKDmRlZmF1",
80 "bHRfdWludDMyGD8gASgNOgI0MxIaCg5kZWZhdWx0X3VpbnQ2NBhAIAEoBDoC",
81 "NDQSGwoOZGVmYXVsdF9zaW50MzIYQSABKBE6Ay00NRIaCg5kZWZhdWx0X3Np",
82 "bnQ2NBhCIAEoEjoCNDYSGwoPZGVmYXVsdF9maXhlZDMyGEMgASgHOgI0NxIb",
83 "Cg9kZWZhdWx0X2ZpeGVkNjQYRCABKAY6AjQ4EhwKEGRlZmF1bHRfc2ZpeGVk",
84 "MzIYRSABKA86AjQ5Eh0KEGRlZmF1bHRfc2ZpeGVkNjQYRiABKBA6Ay01MBIb",
85 "Cg1kZWZhdWx0X2Zsb2F0GEcgASgCOgQ1MS41Eh0KDmRlZmF1bHRfZG91Ymxl",
86 "GEggASgBOgU1MjAwMBIaCgxkZWZhdWx0X2Jvb2wYSSABKAg6BHRydWUSHQoO",
87 "ZGVmYXVsdF9zdHJpbmcYSiABKAk6BWhlbGxvEhwKDWRlZmF1bHRfYnl0ZXMY",
88 "SyABKAw6BXdvcmxkElMKE2RlZmF1bHRfbmVzdGVkX2VudW0YUSABKA4yMS5w",
89 "cm90b2J1Zl91bml0dGVzdF9wcm90bzIuVGVzdEFsbFR5cGVzLk5lc3RlZEVu",
90 "dW06A0JBUhJQChRkZWZhdWx0X2ZvcmVpZ25fZW51bRhSIAEoDjIlLnByb3Rv",
91 "YnVmX3VuaXR0ZXN0X3Byb3RvMi5Gb3JlaWduRW51bToLRk9SRUlHTl9CQVIS",
92 "VAoTZGVmYXVsdF9pbXBvcnRfZW51bRhTIAEoDjIrLnByb3RvYnVmX3VuaXR0",
93 "ZXN0X2ltcG9ydF9wcm90bzIuSW1wb3J0RW51bToKSU1QT1JUX0JBUhIlChRk",
94 "ZWZhdWx0X3N0cmluZ19waWVjZRhUIAEoCToDYWJjQgIIAhIdCgxkZWZhdWx0",
95 "X2NvcmQYVSABKAk6AzEyM0ICCAESFgoMb25lb2ZfdWludDMyGG8gASgNSAAS",
96 "VAoUb25lb2ZfbmVzdGVkX21lc3NhZ2UYcCABKAsyNC5wcm90b2J1Zl91bml0",
97 "dGVzdF9wcm90bzIuVGVzdEFsbFR5cGVzLk5lc3RlZE1lc3NhZ2VIABIWCgxv",
98 "bmVvZl9zdHJpbmcYcSABKAlIABIVCgtvbmVvZl9ieXRlcxhyIAEoDEgAGhsK",
99 "DU5lc3RlZE1lc3NhZ2USCgoCYmIYASABKAUaGgoNT3B0aW9uYWxHcm91cBIJ",
100 "CgFhGBEgASgFGhoKDVJlcGVhdGVkR3JvdXASCQoBYRgvIAEoBSI5CgpOZXN0",
101 "ZWRFbnVtEgcKA0ZPTxABEgcKA0JBUhACEgcKA0JBWhADEhAKA05FRxD/////",
102 "//////8BQg0KC29uZW9mX2ZpZWxkItABChJOZXN0ZWRUZXN0QWxsVHlwZXMS",
103 "OwoFY2hpbGQYASABKAsyLC5wcm90b2J1Zl91bml0dGVzdF9wcm90bzIuTmVz",
104 "dGVkVGVzdEFsbFR5cGVzEjcKB3BheWxvYWQYAiABKAsyJi5wcm90b2J1Zl91",
105 "bml0dGVzdF9wcm90bzIuVGVzdEFsbFR5cGVzEkQKDnJlcGVhdGVkX2NoaWxk",
106 "GAMgAygLMiwucHJvdG9idWZfdW5pdHRlc3RfcHJvdG8yLk5lc3RlZFRlc3RB",
107 "bGxUeXBlcyJtChRUZXN0RGVwcmVjYXRlZEZpZWxkcxIcChBkZXByZWNhdGVk",
108 "X2ludDMyGAEgASgFQgIYARInChlkZXByZWNhdGVkX2ludDMyX2luX29uZW9m",
109 "GAIgASgFQgIYAUgAQg4KDG9uZW9mX2ZpZWxkcyIbChVUZXN0RGVwcmVjYXRl",
110 "ZE1lc3NhZ2U6AhgBIiYKDkZvcmVpZ25NZXNzYWdlEgkKAWMYASABKAUSCQoB",
111 "ZBgCIAEoBSIwChJUZXN0UmVzZXJ2ZWRGaWVsZHNKBAgCEANKBAgPEBBKBAgJ",
112 "EAxSA2JhclIDYmF6Ih0KEVRlc3RBbGxFeHRlbnNpb25zKggIARCAgICAAiIk",
113 "ChdPcHRpb25hbEdyb3VwX2V4dGVuc2lvbhIJCgFhGBEgASgFIiQKF1JlcGVh",
114 "dGVkR3JvdXBfZXh0ZW5zaW9uEgkKAWEYLyABKAUitwEKCVRlc3RHcm91cBJI",
115 "Cg1vcHRpb25hbGdyb3VwGBAgASgKMjEucHJvdG9idWZfdW5pdHRlc3RfcHJv",
116 "dG8yLlRlc3RHcm91cC5PcHRpb25hbEdyb3VwEkQKFW9wdGlvbmFsX2ZvcmVp",
117 "Z25fZW51bRgWIAEoDjIlLnByb3RvYnVmX3VuaXR0ZXN0X3Byb3RvMi5Gb3Jl",
118 "aWduRW51bRoaCg1PcHRpb25hbEdyb3VwEgkKAWEYESABKAUiHgoSVGVzdEdy",
119 "b3VwRXh0ZW5zaW9uKggIARCAgICAAiLhAwoTVGVzdE5lc3RlZEV4dGVuc2lv",
120 "bhokChdPcHRpb25hbEdyb3VwX2V4dGVuc2lvbhIJCgFhGBEgASgFMkAKBHRl",
121 "c3QSKy5wcm90b2J1Zl91bml0dGVzdF9wcm90bzIuVGVzdEFsbEV4dGVuc2lv",
122 "bnMY6gcgASgJOgR0ZXN0Mk0KF25lc3RlZF9zdHJpbmdfZXh0ZW5zaW9uEisu",
123 "cHJvdG9idWZfdW5pdHRlc3RfcHJvdG8yLlRlc3RBbGxFeHRlbnNpb25zGOsH",
124 "IAEoCTKUAQoXb3B0aW9uYWxncm91cF9leHRlbnNpb24SLC5wcm90b2J1Zl91",
125 "bml0dGVzdF9wcm90bzIuVGVzdEdyb3VwRXh0ZW5zaW9uGBAgASgKMkUucHJv",
126 "dG9idWZfdW5pdHRlc3RfcHJvdG8yLlRlc3ROZXN0ZWRFeHRlbnNpb24uT3B0",
127 "aW9uYWxHcm91cF9leHRlbnNpb24yfAofb3B0aW9uYWxfZm9yZWlnbl9lbnVt",
128 "X2V4dGVuc2lvbhIsLnByb3RvYnVmX3VuaXR0ZXN0X3Byb3RvMi5UZXN0R3Jv",
129 "dXBFeHRlbnNpb24YFiABKA4yJS5wcm90b2J1Zl91bml0dGVzdF9wcm90bzIu",
130 "Rm9yZWlnbkVudW0i8QUKDFRlc3RSZXF1aXJlZBIJCgFhGAEgAigFEg4KBmR1",
131 "bW15MhgCIAEoBRIJCgFiGAMgAigFEg4KBmR1bW15NBgEIAEoBRIOCgZkdW1t",
132 "eTUYBSABKAUSDgoGZHVtbXk2GAYgASgFEg4KBmR1bW15NxgHIAEoBRIOCgZk",
133 "dW1teTgYCCABKAUSDgoGZHVtbXk5GAkgASgFEg8KB2R1bW15MTAYCiABKAUS",
134 "DwoHZHVtbXkxMRgLIAEoBRIPCgdkdW1teTEyGAwgASgFEg8KB2R1bW15MTMY",
135 "DSABKAUSDwoHZHVtbXkxNBgOIAEoBRIPCgdkdW1teTE1GA8gASgFEg8KB2R1",
136 "bW15MTYYECABKAUSDwoHZHVtbXkxNxgRIAEoBRIPCgdkdW1teTE4GBIgASgF",
137 "Eg8KB2R1bW15MTkYEyABKAUSDwoHZHVtbXkyMBgUIAEoBRIPCgdkdW1teTIx",
138 "GBUgASgFEg8KB2R1bW15MjIYFiABKAUSDwoHZHVtbXkyMxgXIAEoBRIPCgdk",
139 "dW1teTI0GBggASgFEg8KB2R1bW15MjUYGSABKAUSDwoHZHVtbXkyNhgaIAEo",
140 "BRIPCgdkdW1teTI3GBsgASgFEg8KB2R1bW15MjgYHCABKAUSDwoHZHVtbXky",
141 "ORgdIAEoBRIPCgdkdW1teTMwGB4gASgFEg8KB2R1bW15MzEYHyABKAUSDwoH",
142 "ZHVtbXkzMhggIAEoBRIJCgFjGCEgAigFMmQKBnNpbmdsZRIrLnByb3RvYnVm",
143 "X3VuaXR0ZXN0X3Byb3RvMi5UZXN0QWxsRXh0ZW5zaW9ucxjoByABKAsyJi5w",
144 "cm90b2J1Zl91bml0dGVzdF9wcm90bzIuVGVzdFJlcXVpcmVkMmMKBW11bHRp",
Protobuf Team Botaf559fc2023-01-31 17:18:07 +0000145 "EisucHJvdG9idWZfdW5pdHRlc3RfcHJvdG8yLlRlc3RBbGxFeHRlbnNpb25z",
Protobuf Team Bota12b0c02023-01-31 09:58:51 -0800146 "GOkHIAMoCzImLnByb3RvYnVmX3VuaXR0ZXN0X3Byb3RvMi5UZXN0UmVxdWly",
147 "ZWQiqAEKE1Rlc3RSZXF1aXJlZEZvcmVpZ24SQAoQb3B0aW9uYWxfbWVzc2Fn",
148 "ZRgBIAEoCzImLnByb3RvYnVmX3VuaXR0ZXN0X3Byb3RvMi5UZXN0UmVxdWly",
149 "ZWQSQAoQcmVwZWF0ZWRfbWVzc2FnZRgCIAMoCzImLnByb3RvYnVmX3VuaXR0",
150 "ZXN0X3Byb3RvMi5UZXN0UmVxdWlyZWQSDQoFZHVtbXkYAyABKAUi2wEKE1Rl",
151 "c3RSZXF1aXJlZE1lc3NhZ2USQAoQb3B0aW9uYWxfbWVzc2FnZRgBIAEoCzIm",
152 "LnByb3RvYnVmX3VuaXR0ZXN0X3Byb3RvMi5UZXN0UmVxdWlyZWQSQAoQcmVw",
153 "ZWF0ZWRfbWVzc2FnZRgCIAMoCzImLnByb3RvYnVmX3VuaXR0ZXN0X3Byb3Rv",
154 "Mi5UZXN0UmVxdWlyZWQSQAoQcmVxdWlyZWRfbWVzc2FnZRgDIAIoCzImLnBy",
155 "b3RvYnVmX3VuaXR0ZXN0X3Byb3RvMi5UZXN0UmVxdWlyZWQiYQoRVGVzdEZv",
156 "cmVpZ25OZXN0ZWQSTAoOZm9yZWlnbl9uZXN0ZWQYASABKAsyNC5wcm90b2J1",
157 "Zl91bml0dGVzdF9wcm90bzIuVGVzdEFsbFR5cGVzLk5lc3RlZE1lc3NhZ2Ui",
158 "EgoQVGVzdEVtcHR5TWVzc2FnZSIqCh5UZXN0RW1wdHlNZXNzYWdlV2l0aEV4",
159 "dGVuc2lvbnMqCAgBEICAgIACIjcKG1Rlc3RNdWx0aXBsZUV4dGVuc2lvblJh",
160 "bmdlcyoECCoQKyoGCK8gEJQhKgoIgIAEEICAgIACIjQKGFRlc3RSZWFsbHlM",
161 "YXJnZVRhZ051bWJlchIJCgFhGAEgASgFEg0KAmJiGP///38gASgFIlwKFFRl",
162 "c3RSZWN1cnNpdmVNZXNzYWdlEjkKAWEYASABKAsyLi5wcm90b2J1Zl91bml0",
163 "dGVzdF9wcm90bzIuVGVzdFJlY3Vyc2l2ZU1lc3NhZ2USCQoBaRgCIAEoBSKE",
164 "AwoUVGVzdE11dHVhbFJlY3Vyc2lvbkESOgoCYmIYASABKAsyLi5wcm90b2J1",
165 "Zl91bml0dGVzdF9wcm90bzIuVGVzdE11dHVhbFJlY3Vyc2lvbkISSQoIc3Vi",
166 "Z3JvdXAYAiABKAoyNy5wcm90b2J1Zl91bml0dGVzdF9wcm90bzIuVGVzdE11",
167 "dHVhbFJlY3Vyc2lvbkEuU3ViR3JvdXAaRwoKU3ViTWVzc2FnZRI5CgFiGAEg",
168 "ASgLMi4ucHJvdG9idWZfdW5pdHRlc3RfcHJvdG8yLlRlc3RNdXR1YWxSZWN1",
169 "cnNpb25CGpsBCghTdWJHcm91cBJOCgtzdWJfbWVzc2FnZRgDIAEoCzI5LnBy",
170 "b3RvYnVmX3VuaXR0ZXN0X3Byb3RvMi5UZXN0TXV0dWFsUmVjdXJzaW9uQS5T",
171 "dWJNZXNzYWdlEj8KD25vdF9pbl90aGlzX3NjYxgEIAEoCzImLnByb3RvYnVm",
172 "X3VuaXR0ZXN0X3Byb3RvMi5UZXN0QWxsVHlwZXMiaQoUVGVzdE11dHVhbFJl",
173 "Y3Vyc2lvbkISOQoBYRgBIAEoCzIuLnByb3RvYnVmX3VuaXR0ZXN0X3Byb3Rv",
174 "Mi5UZXN0TXV0dWFsUmVjdXJzaW9uQRIWCg5vcHRpb25hbF9pbnQzMhgCIAEo",
175 "BSLYAQoRVGVzdElzSW5pdGlhbGl6ZWQSSwoLc3ViX21lc3NhZ2UYASABKAsy",
176 "Ni5wcm90b2J1Zl91bml0dGVzdF9wcm90bzIuVGVzdElzSW5pdGlhbGl6ZWQu",
177 "U3ViTWVzc2FnZRp2CgpTdWJNZXNzYWdlElEKCHN1Ymdyb3VwGAEgASgKMj8u",
178 "cHJvdG9idWZfdW5pdHRlc3RfcHJvdG8yLlRlc3RJc0luaXRpYWxpemVkLlN1",
179 "Yk1lc3NhZ2UuU3ViR3JvdXAaFQoIU3ViR3JvdXASCQoBaRgCIAIoBSLBAQoS",
180 "VGVzdER1cEZpZWxkTnVtYmVyEgkKAWEYASABKAUSPQoDZm9vGAIgASgKMjAu",
181 "cHJvdG9idWZfdW5pdHRlc3RfcHJvdG8yLlRlc3REdXBGaWVsZE51bWJlci5G",
182 "b28SPQoDYmFyGAMgASgKMjAucHJvdG9idWZfdW5pdHRlc3RfcHJvdG8yLlRl",
183 "c3REdXBGaWVsZE51bWJlci5CYXIaEAoDRm9vEgkKAWEYASABKAUaEAoDQmFy",
184 "EgkKAWEYASABKAUiUwoQVGVzdEVhZ2VyTWVzc2FnZRI/CgtzdWJfbWVzc2Fn",
185 "ZRgBIAEoCzImLnByb3RvYnVmX3VuaXR0ZXN0X3Byb3RvMi5UZXN0QWxsVHlw",
186 "ZXNCAigAIlIKD1Rlc3RMYXp5TWVzc2FnZRI/CgtzdWJfbWVzc2FnZRgBIAEo",
187 "CzImLnByb3RvYnVmX3VuaXR0ZXN0X3Byb3RvMi5UZXN0QWxsVHlwZXNCAigB",
188 "Io4CChhUZXN0TmVzdGVkTWVzc2FnZUhhc0JpdHMSYQoXb3B0aW9uYWxfbmVz",
189 "dGVkX21lc3NhZ2UYASABKAsyQC5wcm90b2J1Zl91bml0dGVzdF9wcm90bzIu",
190 "VGVzdE5lc3RlZE1lc3NhZ2VIYXNCaXRzLk5lc3RlZE1lc3NhZ2UajgEKDU5l",
191 "c3RlZE1lc3NhZ2USJAocbmVzdGVkbWVzc2FnZV9yZXBlYXRlZF9pbnQzMhgB",
192 "IAMoBRJXCiVuZXN0ZWRtZXNzYWdlX3JlcGVhdGVkX2ZvcmVpZ25tZXNzYWdl",
193 "GAIgAygLMigucHJvdG9idWZfdW5pdHRlc3RfcHJvdG8yLkZvcmVpZ25NZXNz",
194 "YWdlIoEEChdUZXN0Q2FtZWxDYXNlRmllbGROYW1lcxIWCg5QcmltaXRpdmVG",
195 "aWVsZBgBIAEoBRITCgtTdHJpbmdGaWVsZBgCIAEoCRI4CglFbnVtRmllbGQY",
196 "AyABKA4yJS5wcm90b2J1Zl91bml0dGVzdF9wcm90bzIuRm9yZWlnbkVudW0S",
197 "PgoMTWVzc2FnZUZpZWxkGAQgASgLMigucHJvdG9idWZfdW5pdHRlc3RfcHJv",
198 "dG8yLkZvcmVpZ25NZXNzYWdlEhwKEFN0cmluZ1BpZWNlRmllbGQYBSABKAlC",
199 "AggCEhUKCUNvcmRGaWVsZBgGIAEoCUICCAESHgoWUmVwZWF0ZWRQcmltaXRp",
200 "dmVGaWVsZBgHIAMoBRIbChNSZXBlYXRlZFN0cmluZ0ZpZWxkGAggAygJEkAK",
201 "EVJlcGVhdGVkRW51bUZpZWxkGAkgAygOMiUucHJvdG9idWZfdW5pdHRlc3Rf",
202 "cHJvdG8yLkZvcmVpZ25FbnVtEkYKFFJlcGVhdGVkTWVzc2FnZUZpZWxkGAog",
203 "AygLMigucHJvdG9idWZfdW5pdHRlc3RfcHJvdG8yLkZvcmVpZ25NZXNzYWdl",
204 "EiQKGFJlcGVhdGVkU3RyaW5nUGllY2VGaWVsZBgLIAMoCUICCAISHQoRUmVw",
205 "ZWF0ZWRDb3JkRmllbGQYDCADKAlCAggBItwBChJUZXN0RmllbGRPcmRlcmlu",
206 "Z3MSEQoJbXlfc3RyaW5nGAsgASgJEg4KBm15X2ludBgBIAEoAxIQCghteV9m",
207 "bG9hdBhlIAEoAhJcChdvcHRpb25hbF9uZXN0ZWRfbWVzc2FnZRjIASABKAsy",
208 "Oi5wcm90b2J1Zl91bml0dGVzdF9wcm90bzIuVGVzdEZpZWxkT3JkZXJpbmdz",
209 "Lk5lc3RlZE1lc3NhZ2UaJwoNTmVzdGVkTWVzc2FnZRIKCgJvbxgCIAEoAxIK",
210 "CgJiYhgBIAEoBSoECAIQCyoECAwQZSKqAQoXVGVzdEV4dGVuc2lvbk9yZGVy",
211 "aW5nczESEQoJbXlfc3RyaW5nGAEgASgJMnwKE3Rlc3RfZXh0X29yZGVyaW5n",
212 "czESLC5wcm90b2J1Zl91bml0dGVzdF9wcm90bzIuVGVzdEZpZWxkT3JkZXJp",
213 "bmdzGA0gASgLMjEucHJvdG9idWZfdW5pdHRlc3RfcHJvdG8yLlRlc3RFeHRl",
214 "bnNpb25PcmRlcmluZ3MxIvACChdUZXN0RXh0ZW5zaW9uT3JkZXJpbmdzMhIR",
215 "CglteV9zdHJpbmcYASABKAkawwEKF1Rlc3RFeHRlbnNpb25PcmRlcmluZ3Mz",
216 "EhEKCW15X3N0cmluZxgBIAEoCTKUAQoTdGVzdF9leHRfb3JkZXJpbmdzMxIs",
217 "LnByb3RvYnVmX3VuaXR0ZXN0X3Byb3RvMi5UZXN0RmllbGRPcmRlcmluZ3MY",
218 "DiABKAsySS5wcm90b2J1Zl91bml0dGVzdF9wcm90bzIuVGVzdEV4dGVuc2lv",
219 "bk9yZGVyaW5nczIuVGVzdEV4dGVuc2lvbk9yZGVyaW5nczMyfAoTdGVzdF9l",
220 "eHRfb3JkZXJpbmdzMhIsLnByb3RvYnVmX3VuaXR0ZXN0X3Byb3RvMi5UZXN0",
221 "RmllbGRPcmRlcmluZ3MYDCABKAsyMS5wcm90b2J1Zl91bml0dGVzdF9wcm90",
222 "bzIuVGVzdEV4dGVuc2lvbk9yZGVyaW5nczIitgcKGFRlc3RFeHRyZW1lRGVm",
223 "YXVsdFZhbHVlcxI/Cg1lc2NhcGVkX2J5dGVzGAEgASgMOihcMDAwXDAwMVww",
224 "MDdcMDEwXDAxNFxuXHJcdFwwMTNcXFwnXCJcMzc2EiAKDGxhcmdlX3VpbnQz",
225 "MhgCIAEoDToKNDI5NDk2NzI5NRIqCgxsYXJnZV91aW50NjQYAyABKAQ6FDE4",
226 "NDQ2NzQ0MDczNzA5NTUxNjE1EiAKC3NtYWxsX2ludDMyGAQgASgFOgstMjE0",
227 "NzQ4MzY0NxIpCgtzbWFsbF9pbnQ2NBgFIAEoAzoULTkyMjMzNzIwMzY4NTQ3",
228 "NzU4MDcSJwoScmVhbGx5X3NtYWxsX2ludDMyGBUgASgFOgstMjE0NzQ4MzY0",
229 "OBIwChJyZWFsbHlfc21hbGxfaW50NjQYFiABKAM6FC05MjIzMzcyMDM2ODU0",
230 "Nzc1ODA4EhgKC3V0Zjhfc3RyaW5nGAYgASgJOgPhiLQSFQoKemVyb19mbG9h",
231 "dBgHIAEoAjoBMBIUCglvbmVfZmxvYXQYCCABKAI6ATESGAoLc21hbGxfZmxv",
232 "YXQYCSABKAI6AzEuNRIeChJuZWdhdGl2ZV9vbmVfZmxvYXQYCiABKAI6Ai0x",
233 "EhwKDm5lZ2F0aXZlX2Zsb2F0GAsgASgCOgQtMS41EhoKC2xhcmdlX2Zsb2F0",
234 "GAwgASgCOgUyZSswOBIkChRzbWFsbF9uZWdhdGl2ZV9mbG9hdBgNIAEoAjoG",
235 "LThlLTI4EhcKCmluZl9kb3VibGUYDiABKAE6A2luZhIcCg5uZWdfaW5mX2Rv",
236 "dWJsZRgPIAEoAToELWluZhIXCgpuYW5fZG91YmxlGBAgASgBOgNuYW4SFgoJ",
237 "aW5mX2Zsb2F0GBEgASgCOgNpbmYSGwoNbmVnX2luZl9mbG9hdBgSIAEoAjoE",
238 "LWluZhIWCgluYW5fZmxvYXQYEyABKAI6A25hbhIrCgxjcHBfdHJpZ3JhcGgY",
239 "FCABKAk6FT8gPyA/PyA/PyA/Pz8gPz8vID8/LRIgChBzdHJpbmdfd2l0aF96",
240 "ZXJvGBcgASgJOgZoZWwAbG8SIgoPYnl0ZXNfd2l0aF96ZXJvGBggASgMOgl3",
241 "b3JcMDAwbGQSKAoWc3RyaW5nX3BpZWNlX3dpdGhfemVybxgZIAEoCToEYWIA",
242 "Y0ICCAISIAoOY29yZF93aXRoX3plcm8YGiABKAk6BDEyADNCAggBEiYKEnJl",
243 "cGxhY2VtZW50X3N0cmluZxgbIAEoCToKJHt1bmtub3dufSJSChFTcGFyc2VF",
244 "bnVtTWVzc2FnZRI9CgtzcGFyc2VfZW51bRgBIAEoDjIoLnByb3RvYnVmX3Vu",
245 "aXR0ZXN0X3Byb3RvMi5UZXN0U3BhcnNlRW51bSIZCglPbmVTdHJpbmcSDAoE",
246 "ZGF0YRgBIAEoCSIaCgpNb3JlU3RyaW5nEgwKBGRhdGEYASADKAkiGAoIT25l",
247 "Qnl0ZXMSDAoEZGF0YRgBIAEoDCIZCglNb3JlQnl0ZXMSDAoEZGF0YRgBIAMo",
248 "DCIcCgxJbnQzMk1lc3NhZ2USDAoEZGF0YRgBIAEoBSIdCg1VaW50MzJNZXNz",
249 "YWdlEgwKBGRhdGEYASABKA0iHAoMSW50NjRNZXNzYWdlEgwKBGRhdGEYASAB",
250 "KAMiHQoNVWludDY0TWVzc2FnZRIMCgRkYXRhGAEgASgEIhsKC0Jvb2xNZXNz",
251 "YWdlEgwKBGRhdGEYASABKAgi3gEKCVRlc3RPbmVvZhIRCgdmb29faW50GAEg",
252 "ASgFSAASFAoKZm9vX3N0cmluZxgCIAEoCUgAEj0KC2Zvb19tZXNzYWdlGAMg",
253 "ASgLMiYucHJvdG9idWZfdW5pdHRlc3RfcHJvdG8yLlRlc3RBbGxUeXBlc0gA",
254 "EkAKCGZvb2dyb3VwGAQgASgKMiwucHJvdG9idWZfdW5pdHRlc3RfcHJvdG8y",
255 "LlRlc3RPbmVvZi5Gb29Hcm91cEgAGiAKCEZvb0dyb3VwEgkKAWEYBSABKAUS",
256 "CQoBYhgGIAEoCUIFCgNmb28i9QEKHFRlc3RPbmVvZkJhY2t3YXJkc0NvbXBh",
257 "dGlibGUSDwoHZm9vX2ludBgBIAEoBRISCgpmb29fc3RyaW5nGAIgASgJEjsK",
258 "C2Zvb19tZXNzYWdlGAMgASgLMiYucHJvdG9idWZfdW5pdHRlc3RfcHJvdG8y",
259 "LlRlc3RBbGxUeXBlcxJRCghmb29ncm91cBgEIAEoCjI/LnByb3RvYnVmX3Vu",
260 "aXR0ZXN0X3Byb3RvMi5UZXN0T25lb2ZCYWNrd2FyZHNDb21wYXRpYmxlLkZv",
261 "b0dyb3VwGiAKCEZvb0dyb3VwEgkKAWEYBSABKAUSCQoBYhgGIAEoCSLBBgoK",
262 "VGVzdE9uZW9mMhIRCgdmb29faW50GAEgASgFSAASFAoKZm9vX3N0cmluZxgC",
263 "IAEoCUgAEhYKCGZvb19jb3JkGAMgASgJQgIIAUgAEh4KEGZvb19zdHJpbmdf",
264 "cGllY2UYBCABKAlCAggCSAASEwoJZm9vX2J5dGVzGAUgASgMSAASQwoIZm9v",
265 "X2VudW0YBiABKA4yLy5wcm90b2J1Zl91bml0dGVzdF9wcm90bzIuVGVzdE9u",
266 "ZW9mMi5OZXN0ZWRFbnVtSAASSQoLZm9vX21lc3NhZ2UYByABKAsyMi5wcm90",
267 "b2J1Zl91bml0dGVzdF9wcm90bzIuVGVzdE9uZW9mMi5OZXN0ZWRNZXNzYWdl",
268 "SAASQQoIZm9vZ3JvdXAYCCABKAoyLS5wcm90b2J1Zl91bml0dGVzdF9wcm90",
269 "bzIuVGVzdE9uZW9mMi5Gb29Hcm91cEgAElIKEGZvb19sYXp5X21lc3NhZ2UY",
270 "CyABKAsyMi5wcm90b2J1Zl91bml0dGVzdF9wcm90bzIuVGVzdE9uZW9mMi5O",
271 "ZXN0ZWRNZXNzYWdlQgIoAUgAEhQKB2Jhcl9pbnQYDCABKAU6ATVIARIcCgpi",
272 "YXJfc3RyaW5nGA0gASgJOgZTVFJJTkdIARIcCghiYXJfY29yZBgOIAEoCToE",
273 "Q09SREICCAFIARImChBiYXJfc3RyaW5nX3BpZWNlGA8gASgJOgZTUElFQ0VC",
274 "AggCSAESGgoJYmFyX2J5dGVzGBAgASgMOgVCWVRFU0gBEkgKCGJhcl9lbnVt",
275 "GBEgASgOMi8ucHJvdG9idWZfdW5pdHRlc3RfcHJvdG8yLlRlc3RPbmVvZjIu",
276 "TmVzdGVkRW51bToDQkFSSAESDwoHYmF6X2ludBgSIAEoBRIXCgpiYXpfc3Ry",
277 "aW5nGBMgASgJOgNCQVoaIAoIRm9vR3JvdXASCQoBYRgJIAEoBRIJCgFiGAog",
278 "ASgJGjMKDU5lc3RlZE1lc3NhZ2USDwoHcXV4X2ludBgBIAEoAxIRCgljb3Jn",
279 "ZV9pbnQYAiADKAUiJwoKTmVzdGVkRW51bRIHCgNGT08QARIHCgNCQVIQAhIH",
280 "CgNCQVoQA0IFCgNmb29CBQoDYmFyIr8BChFUZXN0UmVxdWlyZWRPbmVvZhIR",
281 "Cgdmb29faW50GAEgASgFSAASFAoKZm9vX3N0cmluZxgCIAEoCUgAElAKC2Zv",
282 "b19tZXNzYWdlGAMgASgLMjkucHJvdG9idWZfdW5pdHRlc3RfcHJvdG8yLlRl",
283 "c3RSZXF1aXJlZE9uZW9mLk5lc3RlZE1lc3NhZ2VIABooCg1OZXN0ZWRNZXNz",
284 "YWdlEhcKD3JlcXVpcmVkX2RvdWJsZRgBIAIoAUIFCgNmb28i4AEKD1Rlc3RS",
285 "ZXF1aXJlZE1hcBI/CgNmb28YASADKAsyMi5wcm90b2J1Zl91bml0dGVzdF9w",
286 "cm90bzIuVGVzdFJlcXVpcmVkTWFwLkZvb0VudHJ5GmMKCEZvb0VudHJ5EgsK",
287 "A2tleRgBIAEoBRJGCgV2YWx1ZRgCIAEoCzI3LnByb3RvYnVmX3VuaXR0ZXN0",
288 "X3Byb3RvMi5UZXN0UmVxdWlyZWRNYXAuTmVzdGVkTWVzc2FnZToCOAEaJwoN",
289 "TmVzdGVkTWVzc2FnZRIWCg5yZXF1aXJlZF9pbnQzMhgBIAIoBSKxAwoPVGVz",
290 "dFBhY2tlZFR5cGVzEhgKDHBhY2tlZF9pbnQzMhhaIAMoBUICEAESGAoMcGFj",
291 "a2VkX2ludDY0GFsgAygDQgIQARIZCg1wYWNrZWRfdWludDMyGFwgAygNQgIQ",
292 "ARIZCg1wYWNrZWRfdWludDY0GF0gAygEQgIQARIZCg1wYWNrZWRfc2ludDMy",
293 "GF4gAygRQgIQARIZCg1wYWNrZWRfc2ludDY0GF8gAygSQgIQARIaCg5wYWNr",
294 "ZWRfZml4ZWQzMhhgIAMoB0ICEAESGgoOcGFja2VkX2ZpeGVkNjQYYSADKAZC",
295 "AhABEhsKD3BhY2tlZF9zZml4ZWQzMhhiIAMoD0ICEAESGwoPcGFja2VkX3Nm",
296 "aXhlZDY0GGMgAygQQgIQARIYCgxwYWNrZWRfZmxvYXQYZCADKAJCAhABEhkK",
297 "DXBhY2tlZF9kb3VibGUYZSADKAFCAhABEhcKC3BhY2tlZF9ib29sGGYgAygI",
298 "QgIQARI+CgtwYWNrZWRfZW51bRhnIAMoDjIlLnByb3RvYnVmX3VuaXR0ZXN0",
299 "X3Byb3RvMi5Gb3JlaWduRW51bUICEAEizwMKEVRlc3RVbnBhY2tlZFR5cGVz",
300 "EhoKDnVucGFja2VkX2ludDMyGFogAygFQgIQABIaCg51bnBhY2tlZF9pbnQ2",
301 "NBhbIAMoA0ICEAASGwoPdW5wYWNrZWRfdWludDMyGFwgAygNQgIQABIbCg91",
302 "bnBhY2tlZF91aW50NjQYXSADKARCAhAAEhsKD3VucGFja2VkX3NpbnQzMhhe",
303 "IAMoEUICEAASGwoPdW5wYWNrZWRfc2ludDY0GF8gAygSQgIQABIcChB1bnBh",
304 "Y2tlZF9maXhlZDMyGGAgAygHQgIQABIcChB1bnBhY2tlZF9maXhlZDY0GGEg",
305 "AygGQgIQABIdChF1bnBhY2tlZF9zZml4ZWQzMhhiIAMoD0ICEAASHQoRdW5w",
306 "YWNrZWRfc2ZpeGVkNjQYYyADKBBCAhAAEhoKDnVucGFja2VkX2Zsb2F0GGQg",
307 "AygCQgIQABIbCg91bnBhY2tlZF9kb3VibGUYZSADKAFCAhAAEhkKDXVucGFj",
308 "a2VkX2Jvb2wYZiADKAhCAhAAEkAKDXVucGFja2VkX2VudW0YZyADKA4yJS5w",
309 "cm90b2J1Zl91bml0dGVzdF9wcm90bzIuRm9yZWlnbkVudW1CAhAAIiAKFFRl",
310 "c3RQYWNrZWRFeHRlbnNpb25zKggIARCAgICAAiIiChZUZXN0VW5wYWNrZWRF",
311 "eHRlbnNpb25zKggIARCAgICAAiK1BAoVVGVzdER5bmFtaWNFeHRlbnNpb25z",
312 "EhkKEHNjYWxhcl9leHRlbnNpb24Y0A8gASgHEj4KDmVudW1fZXh0ZW5zaW9u",
313 "GNEPIAEoDjIlLnByb3RvYnVmX3VuaXR0ZXN0X3Byb3RvMi5Gb3JlaWduRW51",
314 "bRJgChZkeW5hbWljX2VudW1fZXh0ZW5zaW9uGNIPIAEoDjI/LnByb3RvYnVm",
315 "X3VuaXR0ZXN0X3Byb3RvMi5UZXN0RHluYW1pY0V4dGVuc2lvbnMuRHluYW1p",
316 "Y0VudW1UeXBlEkQKEW1lc3NhZ2VfZXh0ZW5zaW9uGNMPIAEoCzIoLnByb3Rv",
317 "YnVmX3VuaXR0ZXN0X3Byb3RvMi5Gb3JlaWduTWVzc2FnZRJmChlkeW5hbWlj",
318 "X21lc3NhZ2VfZXh0ZW5zaW9uGNQPIAEoCzJCLnByb3RvYnVmX3VuaXR0ZXN0",
319 "X3Byb3RvMi5UZXN0RHluYW1pY0V4dGVuc2lvbnMuRHluYW1pY01lc3NhZ2VU",
320 "eXBlEhsKEnJlcGVhdGVkX2V4dGVuc2lvbhjVDyADKAkSHQoQcGFja2VkX2V4",
321 "dGVuc2lvbhjWDyADKBFCAhABGiwKEkR5bmFtaWNNZXNzYWdlVHlwZRIWCg1k",
322 "eW5hbWljX2ZpZWxkGLQQIAEoBSJHCg9EeW5hbWljRW51bVR5cGUSEAoLRFlO",
323 "QU1JQ19GT08QmBESEAoLRFlOQU1JQ19CQVIQmRESEAoLRFlOQU1JQ19CQVoQ",
324 "mhEiwAEKI1Rlc3RSZXBlYXRlZFNjYWxhckRpZmZlcmVudFRhZ1NpemVzEhgK",
325 "EHJlcGVhdGVkX2ZpeGVkMzIYDCADKAcSFgoOcmVwZWF0ZWRfaW50MzIYDSAD",
326 "KAUSGQoQcmVwZWF0ZWRfZml4ZWQ2NBj+DyADKAYSFwoOcmVwZWF0ZWRfaW50",
327 "NjQY/w8gAygDEhgKDnJlcGVhdGVkX2Zsb2F0GP7/DyADKAISGQoPcmVwZWF0",
328 "ZWRfdWludDY0GP//DyADKAQigwsKEFRlc3RQYXJzaW5nTWVyZ2USQgoScmVx",
329 "dWlyZWRfYWxsX3R5cGVzGAEgAigLMiYucHJvdG9idWZfdW5pdHRlc3RfcHJv",
330 "dG8yLlRlc3RBbGxUeXBlcxJCChJvcHRpb25hbF9hbGxfdHlwZXMYAiABKAsy",
331 "Ji5wcm90b2J1Zl91bml0dGVzdF9wcm90bzIuVGVzdEFsbFR5cGVzEkIKEnJl",
332 "cGVhdGVkX2FsbF90eXBlcxgDIAMoCzImLnByb3RvYnVmX3VuaXR0ZXN0X3By",
333 "b3RvMi5UZXN0QWxsVHlwZXMSTwoNb3B0aW9uYWxncm91cBgKIAEoCjI4LnBy",
334 "b3RvYnVmX3VuaXR0ZXN0X3Byb3RvMi5UZXN0UGFyc2luZ01lcmdlLk9wdGlv",
335 "bmFsR3JvdXASTwoNcmVwZWF0ZWRncm91cBgUIAMoCjI4LnByb3RvYnVmX3Vu",
336 "aXR0ZXN0X3Byb3RvMi5UZXN0UGFyc2luZ01lcmdlLlJlcGVhdGVkR3JvdXAa",
337 "6QQKF1JlcGVhdGVkRmllbGRzR2VuZXJhdG9yEjYKBmZpZWxkMRgBIAMoCzIm",
338 "LnByb3RvYnVmX3VuaXR0ZXN0X3Byb3RvMi5UZXN0QWxsVHlwZXMSNgoGZmll",
339 "bGQyGAIgAygLMiYucHJvdG9idWZfdW5pdHRlc3RfcHJvdG8yLlRlc3RBbGxU",
340 "eXBlcxI2CgZmaWVsZDMYAyADKAsyJi5wcm90b2J1Zl91bml0dGVzdF9wcm90",
341 "bzIuVGVzdEFsbFR5cGVzElkKBmdyb3VwMRgKIAMoCjJJLnByb3RvYnVmX3Vu",
342 "aXR0ZXN0X3Byb3RvMi5UZXN0UGFyc2luZ01lcmdlLlJlcGVhdGVkRmllbGRz",
343 "R2VuZXJhdG9yLkdyb3VwMRJZCgZncm91cDIYFCADKAoySS5wcm90b2J1Zl91",
344 "bml0dGVzdF9wcm90bzIuVGVzdFBhcnNpbmdNZXJnZS5SZXBlYXRlZEZpZWxk",
345 "c0dlbmVyYXRvci5Hcm91cDISNQoEZXh0MRjoByADKAsyJi5wcm90b2J1Zl91",
346 "bml0dGVzdF9wcm90bzIuVGVzdEFsbFR5cGVzEjUKBGV4dDIY6QcgAygLMiYu",
347 "cHJvdG9idWZfdW5pdHRlc3RfcHJvdG8yLlRlc3RBbGxUeXBlcxpACgZHcm91",
348 "cDESNgoGZmllbGQxGAsgASgLMiYucHJvdG9idWZfdW5pdHRlc3RfcHJvdG8y",
349 "LlRlc3RBbGxUeXBlcxpACgZHcm91cDISNgoGZmllbGQxGBUgASgLMiYucHJv",
350 "dG9idWZfdW5pdHRlc3RfcHJvdG8yLlRlc3RBbGxUeXBlcxpZCg1PcHRpb25h",
351 "bEdyb3VwEkgKGG9wdGlvbmFsX2dyb3VwX2FsbF90eXBlcxgLIAEoCzImLnBy",
352 "b3RvYnVmX3VuaXR0ZXN0X3Byb3RvMi5UZXN0QWxsVHlwZXMaWQoNUmVwZWF0",
353 "ZWRHcm91cBJIChhyZXBlYXRlZF9ncm91cF9hbGxfdHlwZXMYFSABKAsyJi5w",
354 "cm90b2J1Zl91bml0dGVzdF9wcm90bzIuVGVzdEFsbFR5cGVzKgkI6AcQgICA",
355 "gAIyaQoMb3B0aW9uYWxfZXh0EioucHJvdG9idWZfdW5pdHRlc3RfcHJvdG8y",
356 "LlRlc3RQYXJzaW5nTWVyZ2UY6AcgASgLMiYucHJvdG9idWZfdW5pdHRlc3Rf",
357 "cHJvdG8yLlRlc3RBbGxUeXBlczJpCgxyZXBlYXRlZF9leHQSKi5wcm90b2J1",
358 "Zl91bml0dGVzdF9wcm90bzIuVGVzdFBhcnNpbmdNZXJnZRjpByADKAsyJi5w",
359 "cm90b2J1Zl91bml0dGVzdF9wcm90bzIuVGVzdEFsbFR5cGVzIkQKG1Rlc3RD",
360 "b21tZW50SW5qZWN0aW9uTWVzc2FnZRIlCgFhGAEgASgJOhoqLyA8LSBOZWl0",
361 "aGVyIHNob3VsZCB0aGlzLiIMCgpGb29SZXF1ZXN0Ig0KC0Zvb1Jlc3BvbnNl",
362 "IhIKEEZvb0NsaWVudE1lc3NhZ2UiEgoQRm9vU2VydmVyTWVzc2FnZSIMCgpC",
363 "YXJSZXF1ZXN0Ig0KC0JhclJlc3BvbnNlIpIBCgxUZXN0SnNvbk5hbWUSEwoL",
364 "ZmllbGRfbmFtZTEYASABKAUSEgoKZmllbGROYW1lMhgCIAEoBRISCgpGaWVs",
365 "ZE5hbWUzGAMgASgFEhQKDF9maWVsZF9uYW1lNBgEIAEoBRITCgtGSUVMRF9O",
366 "QU1FNRgFIAEoBRIaCgtmaWVsZF9uYW1lNhgGIAEoBVIFQHR5cGUioAYKFFRl",
367 "c3RIdWdlRmllbGROdW1iZXJzEhoKDm9wdGlvbmFsX2ludDMyGPD4//8BIAEo",
368 "BRIUCghmaXhlZF8zMhjx+P//ASABKAUSHgoOcmVwZWF0ZWRfaW50MzIY8vj/",
369 "/wEgAygFQgIQABIcCgxwYWNrZWRfaW50MzIY8/j//wEgAygFQgIQARJACg1v",
370 "cHRpb25hbF9lbnVtGPT4//8BIAEoDjIlLnByb3RvYnVmX3VuaXR0ZXN0X3By",
371 "b3RvMi5Gb3JlaWduRW51bRIbCg9vcHRpb25hbF9zdHJpbmcY9fj//wEgASgJ",
372 "EhoKDm9wdGlvbmFsX2J5dGVzGPb4//8BIAEoDBJGChBvcHRpb25hbF9tZXNz",
373 "YWdlGPf4//8BIAEoCzIoLnByb3RvYnVmX3VuaXR0ZXN0X3Byb3RvMi5Gb3Jl",
374 "aWduTWVzc2FnZRJXCg1vcHRpb25hbGdyb3VwGPj4//8BIAEoCjI8LnByb3Rv",
375 "YnVmX3VuaXR0ZXN0X3Byb3RvMi5UZXN0SHVnZUZpZWxkTnVtYmVycy5PcHRp",
376 "b25hbEdyb3VwEmIKEXN0cmluZ19zdHJpbmdfbWFwGPr4//8BIAMoCzJDLnBy",
377 "b3RvYnVmX3VuaXR0ZXN0X3Byb3RvMi5UZXN0SHVnZUZpZWxkTnVtYmVycy5T",
378 "dHJpbmdTdHJpbmdNYXBFbnRyeRIaCgxvbmVvZl91aW50MzIY+/j//wEgASgN",
379 "SAASSgoUb25lb2ZfdGVzdF9hbGxfdHlwZXMY/Pj//wEgASgLMiYucHJvdG9i",
380 "dWZfdW5pdHRlc3RfcHJvdG8yLlRlc3RBbGxUeXBlc0gAEhoKDG9uZW9mX3N0",
381 "cmluZxj9+P//ASABKAlIABIZCgtvbmVvZl9ieXRlcxj++P//ASABKAxIABok",
382 "Cg1PcHRpb25hbEdyb3VwEhMKB2dyb3VwX2EY+fj//wEgASgFGjYKFFN0cmlu",
383 "Z1N0cmluZ01hcEVudHJ5EgsKA2tleRgBIAEoCRINCgV2YWx1ZRgCIAEoCToC",
384 "OAEqDAjgqv//ARDw+P//AUINCgtvbmVvZl9maWVsZCKxAQoYVGVzdEV4dGVu",
385 "c2lvbkluc2lkZVRhYmxlEg4KBmZpZWxkMRgBIAEoBRIOCgZmaWVsZDIYAiAB",
386 "KAUSDgoGZmllbGQzGAMgASgFEg4KBmZpZWxkNBgEIAEoBRIOCgZmaWVsZDYY",
387 "BiABKAUSDgoGZmllbGQ3GAcgASgFEg4KBmZpZWxkOBgIIAEoBRIOCgZmaWVs",
388 "ZDkYCSABKAUSDwoHZmllbGQxMBgKIAEoBSoECAUQBipACgtGb3JlaWduRW51",
389 "bRIPCgtGT1JFSUdOX0ZPTxAEEg8KC0ZPUkVJR05fQkFSEAUSDwoLRk9SRUlH",
390 "Tl9CQVoQBipLChRUZXN0RW51bVdpdGhEdXBWYWx1ZRIICgRGT08xEAESCAoE",
391 "QkFSMRACEgcKA0JBWhADEggKBEZPTzIQARIICgRCQVIyEAIaAhABKokBCg5U",
392 "ZXN0U3BhcnNlRW51bRIMCghTUEFSU0VfQRB7Eg4KCFNQQVJTRV9CEKbnAxIP",
393 "CghTUEFSU0VfQxCysYAGEhUKCFNQQVJTRV9EEPH//////////wESFQoIU1BB",
394 "UlNFX0UQtN78////////ARIMCghTUEFSU0VfRhAAEgwKCFNQQVJTRV9HEAIq",
395 "iw8KDVZlcnlMYXJnZUVudW0SFgoSRU5VTV9MQUJFTF9ERUZBVUxUEAASEAoM",
396 "RU5VTV9MQUJFTF8xEAESEAoMRU5VTV9MQUJFTF8yEAISEAoMRU5VTV9MQUJF",
397 "TF8zEAMSEAoMRU5VTV9MQUJFTF80EAQSEAoMRU5VTV9MQUJFTF81EAUSEAoM",
398 "RU5VTV9MQUJFTF82EAYSEAoMRU5VTV9MQUJFTF83EAcSEAoMRU5VTV9MQUJF",
399 "TF84EAgSEAoMRU5VTV9MQUJFTF85EAkSEQoNRU5VTV9MQUJFTF8xMBAKEhEK",
400 "DUVOVU1fTEFCRUxfMTEQCxIRCg1FTlVNX0xBQkVMXzEyEAwSEQoNRU5VTV9M",
401 "QUJFTF8xMxANEhEKDUVOVU1fTEFCRUxfMTQQDhIRCg1FTlVNX0xBQkVMXzE1",
402 "EA8SEQoNRU5VTV9MQUJFTF8xNhAQEhEKDUVOVU1fTEFCRUxfMTcQERIRCg1F",
403 "TlVNX0xBQkVMXzE4EBISEQoNRU5VTV9MQUJFTF8xORATEhEKDUVOVU1fTEFC",
404 "RUxfMjAQFBIRCg1FTlVNX0xBQkVMXzIxEBUSEQoNRU5VTV9MQUJFTF8yMhAW",
405 "EhEKDUVOVU1fTEFCRUxfMjMQFxIRCg1FTlVNX0xBQkVMXzI0EBgSEQoNRU5V",
406 "TV9MQUJFTF8yNRAZEhEKDUVOVU1fTEFCRUxfMjYQGhIRCg1FTlVNX0xBQkVM",
407 "XzI3EBsSEQoNRU5VTV9MQUJFTF8yOBAcEhEKDUVOVU1fTEFCRUxfMjkQHRIR",
408 "Cg1FTlVNX0xBQkVMXzMwEB4SEQoNRU5VTV9MQUJFTF8zMRAfEhEKDUVOVU1f",
409 "TEFCRUxfMzIQIBIRCg1FTlVNX0xBQkVMXzMzECESEQoNRU5VTV9MQUJFTF8z",
410 "NBAiEhEKDUVOVU1fTEFCRUxfMzUQIxIRCg1FTlVNX0xBQkVMXzM2ECQSEQoN",
411 "RU5VTV9MQUJFTF8zNxAlEhEKDUVOVU1fTEFCRUxfMzgQJhIRCg1FTlVNX0xB",
412 "QkVMXzM5ECcSEQoNRU5VTV9MQUJFTF80MBAoEhEKDUVOVU1fTEFCRUxfNDEQ",
413 "KRIRCg1FTlVNX0xBQkVMXzQyECoSEQoNRU5VTV9MQUJFTF80MxArEhEKDUVO",
414 "VU1fTEFCRUxfNDQQLBIRCg1FTlVNX0xBQkVMXzQ1EC0SEQoNRU5VTV9MQUJF",
415 "TF80NhAuEhEKDUVOVU1fTEFCRUxfNDcQLxIRCg1FTlVNX0xBQkVMXzQ4EDAS",
416 "EQoNRU5VTV9MQUJFTF80ORAxEhEKDUVOVU1fTEFCRUxfNTAQMhIRCg1FTlVN",
417 "X0xBQkVMXzUxEDMSEQoNRU5VTV9MQUJFTF81MhA0EhEKDUVOVU1fTEFCRUxf",
418 "NTMQNRIRCg1FTlVNX0xBQkVMXzU0EDYSEQoNRU5VTV9MQUJFTF81NRA3EhEK",
419 "DUVOVU1fTEFCRUxfNTYQOBIRCg1FTlVNX0xBQkVMXzU3EDkSEQoNRU5VTV9M",
420 "QUJFTF81OBA6EhEKDUVOVU1fTEFCRUxfNTkQOxIRCg1FTlVNX0xBQkVMXzYw",
421 "EDwSEQoNRU5VTV9MQUJFTF82MRA9EhEKDUVOVU1fTEFCRUxfNjIQPhIRCg1F",
422 "TlVNX0xBQkVMXzYzED8SEQoNRU5VTV9MQUJFTF82NBBAEhEKDUVOVU1fTEFC",
423 "RUxfNjUQQRIRCg1FTlVNX0xBQkVMXzY2EEISEQoNRU5VTV9MQUJFTF82NxBD",
424 "EhEKDUVOVU1fTEFCRUxfNjgQRBIRCg1FTlVNX0xBQkVMXzY5EEUSEQoNRU5V",
425 "TV9MQUJFTF83MBBGEhEKDUVOVU1fTEFCRUxfNzEQRxIRCg1FTlVNX0xBQkVM",
426 "XzcyEEgSEQoNRU5VTV9MQUJFTF83MxBJEhEKDUVOVU1fTEFCRUxfNzQQShIR",
427 "Cg1FTlVNX0xBQkVMXzc1EEsSEQoNRU5VTV9MQUJFTF83NhBMEhEKDUVOVU1f",
428 "TEFCRUxfNzcQTRIRCg1FTlVNX0xBQkVMXzc4EE4SEQoNRU5VTV9MQUJFTF83",
429 "ORBPEhEKDUVOVU1fTEFCRUxfODAQUBIRCg1FTlVNX0xBQkVMXzgxEFESEQoN",
430 "RU5VTV9MQUJFTF84MhBSEhEKDUVOVU1fTEFCRUxfODMQUxIRCg1FTlVNX0xB",
431 "QkVMXzg0EFQSEQoNRU5VTV9MQUJFTF84NRBVEhEKDUVOVU1fTEFCRUxfODYQ",
432 "VhIRCg1FTlVNX0xBQkVMXzg3EFcSEQoNRU5VTV9MQUJFTF84OBBYEhEKDUVO",
433 "VU1fTEFCRUxfODkQWRIRCg1FTlVNX0xBQkVMXzkwEFoSEQoNRU5VTV9MQUJF",
434 "TF85MRBbEhEKDUVOVU1fTEFCRUxfOTIQXBIRCg1FTlVNX0xBQkVMXzkzEF0S",
435 "EQoNRU5VTV9MQUJFTF85NBBeEhEKDUVOVU1fTEFCRUxfOTUQXxIRCg1FTlVN",
436 "X0xBQkVMXzk2EGASEQoNRU5VTV9MQUJFTF85NxBhEhEKDUVOVU1fTEFCRUxf",
437 "OTgQYhIRCg1FTlVNX0xBQkVMXzk5EGMSEgoORU5VTV9MQUJFTF8xMDAQZDK1",
438 "AQoLVGVzdFNlcnZpY2USUgoDRm9vEiQucHJvdG9idWZfdW5pdHRlc3RfcHJv",
439 "dG8yLkZvb1JlcXVlc3QaJS5wcm90b2J1Zl91bml0dGVzdF9wcm90bzIuRm9v",
440 "UmVzcG9uc2USUgoDQmFyEiQucHJvdG9idWZfdW5pdHRlc3RfcHJvdG8yLkJh",
441 "clJlcXVlc3QaJS5wcm90b2J1Zl91bml0dGVzdF9wcm90bzIuQmFyUmVzcG9u",
442 "c2U6TQoYb3B0aW9uYWxfaW50MzJfZXh0ZW5zaW9uEisucHJvdG9idWZfdW5p",
443 "dHRlc3RfcHJvdG8yLlRlc3RBbGxFeHRlbnNpb25zGAEgASgFOk0KGG9wdGlv",
444 "bmFsX2ludDY0X2V4dGVuc2lvbhIrLnByb3RvYnVmX3VuaXR0ZXN0X3Byb3Rv",
445 "Mi5UZXN0QWxsRXh0ZW5zaW9ucxgCIAEoAzpOChlvcHRpb25hbF91aW50MzJf",
446 "ZXh0ZW5zaW9uEisucHJvdG9idWZfdW5pdHRlc3RfcHJvdG8yLlRlc3RBbGxF",
447 "eHRlbnNpb25zGAMgASgNOk4KGW9wdGlvbmFsX3VpbnQ2NF9leHRlbnNpb24S",
Protobuf Team Botaf559fc2023-01-31 17:18:07 +0000448 "Ky5wcm90b2J1Zl91bml0dGVzdF9wcm90bzIuVGVzdEFsbEV4dGVuc2lvbnMY",
Protobuf Team Bota12b0c02023-01-31 09:58:51 -0800449 "BCABKAQ6TgoZb3B0aW9uYWxfc2ludDMyX2V4dGVuc2lvbhIrLnByb3RvYnVm",
450 "X3VuaXR0ZXN0X3Byb3RvMi5UZXN0QWxsRXh0ZW5zaW9ucxgFIAEoETpOChlv",
451 "cHRpb25hbF9zaW50NjRfZXh0ZW5zaW9uEisucHJvdG9idWZfdW5pdHRlc3Rf",
452 "cHJvdG8yLlRlc3RBbGxFeHRlbnNpb25zGAYgASgSOk8KGm9wdGlvbmFsX2Zp",
453 "eGVkMzJfZXh0ZW5zaW9uEisucHJvdG9idWZfdW5pdHRlc3RfcHJvdG8yLlRl",
454 "c3RBbGxFeHRlbnNpb25zGAcgASgHOk8KGm9wdGlvbmFsX2ZpeGVkNjRfZXh0",
455 "ZW5zaW9uEisucHJvdG9idWZfdW5pdHRlc3RfcHJvdG8yLlRlc3RBbGxFeHRl",
456 "bnNpb25zGAggASgGOlAKG29wdGlvbmFsX3NmaXhlZDMyX2V4dGVuc2lvbhIr",
457 "LnByb3RvYnVmX3VuaXR0ZXN0X3Byb3RvMi5UZXN0QWxsRXh0ZW5zaW9ucxgJ",
458 "IAEoDzpQChtvcHRpb25hbF9zZml4ZWQ2NF9leHRlbnNpb24SKy5wcm90b2J1",
459 "Zl91bml0dGVzdF9wcm90bzIuVGVzdEFsbEV4dGVuc2lvbnMYCiABKBA6TQoY",
460 "b3B0aW9uYWxfZmxvYXRfZXh0ZW5zaW9uEisucHJvdG9idWZfdW5pdHRlc3Rf",
461 "cHJvdG8yLlRlc3RBbGxFeHRlbnNpb25zGAsgASgCOk4KGW9wdGlvbmFsX2Rv",
462 "dWJsZV9leHRlbnNpb24SKy5wcm90b2J1Zl91bml0dGVzdF9wcm90bzIuVGVz",
463 "dEFsbEV4dGVuc2lvbnMYDCABKAE6TAoXb3B0aW9uYWxfYm9vbF9leHRlbnNp",
Protobuf Team Botaf559fc2023-01-31 17:18:07 +0000464 "b24SKy5wcm90b2J1Zl91bml0dGVzdF9wcm90bzIuVGVzdEFsbEV4dGVuc2lv",
Protobuf Team Bota12b0c02023-01-31 09:58:51 -0800465 "bnMYDSABKAg6TgoZb3B0aW9uYWxfc3RyaW5nX2V4dGVuc2lvbhIrLnByb3Rv",
466 "YnVmX3VuaXR0ZXN0X3Byb3RvMi5UZXN0QWxsRXh0ZW5zaW9ucxgOIAEoCTpN",
467 "ChhvcHRpb25hbF9ieXRlc19leHRlbnNpb24SKy5wcm90b2J1Zl91bml0dGVz",
468 "dF9wcm90bzIuVGVzdEFsbEV4dGVuc2lvbnMYDyABKAw6fwoXb3B0aW9uYWxn",
469 "cm91cF9leHRlbnNpb24SKy5wcm90b2J1Zl91bml0dGVzdF9wcm90bzIuVGVz",
470 "dEFsbEV4dGVuc2lvbnMYECABKAoyMS5wcm90b2J1Zl91bml0dGVzdF9wcm90",
471 "bzIuT3B0aW9uYWxHcm91cF9leHRlbnNpb246jAEKIW9wdGlvbmFsX25lc3Rl",
472 "ZF9tZXNzYWdlX2V4dGVuc2lvbhIrLnByb3RvYnVmX3VuaXR0ZXN0X3Byb3Rv",
473 "Mi5UZXN0QWxsRXh0ZW5zaW9ucxgSIAEoCzI0LnByb3RvYnVmX3VuaXR0ZXN0",
474 "X3Byb3RvMi5UZXN0QWxsVHlwZXMuTmVzdGVkTWVzc2FnZTqBAQoib3B0aW9u",
475 "YWxfZm9yZWlnbl9tZXNzYWdlX2V4dGVuc2lvbhIrLnByb3RvYnVmX3VuaXR0",
476 "ZXN0X3Byb3RvMi5UZXN0QWxsRXh0ZW5zaW9ucxgTIAEoCzIoLnByb3RvYnVm",
477 "X3VuaXR0ZXN0X3Byb3RvMi5Gb3JlaWduTWVzc2FnZTqGAQohb3B0aW9uYWxf",
478 "aW1wb3J0X21lc3NhZ2VfZXh0ZW5zaW9uEisucHJvdG9idWZfdW5pdHRlc3Rf",
479 "cHJvdG8yLlRlc3RBbGxFeHRlbnNpb25zGBQgASgLMi4ucHJvdG9idWZfdW5p",
480 "dHRlc3RfaW1wb3J0X3Byb3RvMi5JbXBvcnRNZXNzYWdlOoYBCh5vcHRpb25h",
481 "bF9uZXN0ZWRfZW51bV9leHRlbnNpb24SKy5wcm90b2J1Zl91bml0dGVzdF9w",
482 "cm90bzIuVGVzdEFsbEV4dGVuc2lvbnMYFSABKA4yMS5wcm90b2J1Zl91bml0",
483 "dGVzdF9wcm90bzIuVGVzdEFsbFR5cGVzLk5lc3RlZEVudW06ewofb3B0aW9u",
484 "YWxfZm9yZWlnbl9lbnVtX2V4dGVuc2lvbhIrLnByb3RvYnVmX3VuaXR0ZXN0",
485 "X3Byb3RvMi5UZXN0QWxsRXh0ZW5zaW9ucxgWIAEoDjIlLnByb3RvYnVmX3Vu",
486 "aXR0ZXN0X3Byb3RvMi5Gb3JlaWduRW51bTqAAQoeb3B0aW9uYWxfaW1wb3J0",
487 "X2VudW1fZXh0ZW5zaW9uEisucHJvdG9idWZfdW5pdHRlc3RfcHJvdG8yLlRl",
488 "c3RBbGxFeHRlbnNpb25zGBcgASgOMisucHJvdG9idWZfdW5pdHRlc3RfaW1w",
489 "b3J0X3Byb3RvMi5JbXBvcnRFbnVtOlgKH29wdGlvbmFsX3N0cmluZ19waWVj",
490 "ZV9leHRlbnNpb24SKy5wcm90b2J1Zl91bml0dGVzdF9wcm90bzIuVGVzdEFs",
491 "bEV4dGVuc2lvbnMYGCABKAlCAggCOlAKF29wdGlvbmFsX2NvcmRfZXh0ZW5z",
492 "aW9uEisucHJvdG9idWZfdW5pdHRlc3RfcHJvdG8yLlRlc3RBbGxFeHRlbnNp",
493 "b25zGBkgASgJQgIIATqTAQoob3B0aW9uYWxfcHVibGljX2ltcG9ydF9tZXNz",
494 "YWdlX2V4dGVuc2lvbhIrLnByb3RvYnVmX3VuaXR0ZXN0X3Byb3RvMi5UZXN0",
495 "QWxsRXh0ZW5zaW9ucxgaIAEoCzI0LnByb3RvYnVmX3VuaXR0ZXN0X2ltcG9y",
496 "dF9wcm90bzIuUHVibGljSW1wb3J0TWVzc2FnZTqOAQofb3B0aW9uYWxfbGF6",
497 "eV9tZXNzYWdlX2V4dGVuc2lvbhIrLnByb3RvYnVmX3VuaXR0ZXN0X3Byb3Rv",
498 "Mi5UZXN0QWxsRXh0ZW5zaW9ucxgbIAEoCzI0LnByb3RvYnVmX3VuaXR0ZXN0",
499 "X3Byb3RvMi5UZXN0QWxsVHlwZXMuTmVzdGVkTWVzc2FnZUICKAE6TQoYcmVw",
500 "ZWF0ZWRfaW50MzJfZXh0ZW5zaW9uEisucHJvdG9idWZfdW5pdHRlc3RfcHJv",
501 "dG8yLlRlc3RBbGxFeHRlbnNpb25zGB8gAygFOk0KGHJlcGVhdGVkX2ludDY0",
502 "X2V4dGVuc2lvbhIrLnByb3RvYnVmX3VuaXR0ZXN0X3Byb3RvMi5UZXN0QWxs",
503 "RXh0ZW5zaW9ucxggIAMoAzpOChlyZXBlYXRlZF91aW50MzJfZXh0ZW5zaW9u",
Protobuf Team Botaf559fc2023-01-31 17:18:07 +0000504 "EisucHJvdG9idWZfdW5pdHRlc3RfcHJvdG8yLlRlc3RBbGxFeHRlbnNpb25z",
Protobuf Team Bota12b0c02023-01-31 09:58:51 -0800505 "GCEgAygNOk4KGXJlcGVhdGVkX3VpbnQ2NF9leHRlbnNpb24SKy5wcm90b2J1",
506 "Zl91bml0dGVzdF9wcm90bzIuVGVzdEFsbEV4dGVuc2lvbnMYIiADKAQ6TgoZ",
507 "cmVwZWF0ZWRfc2ludDMyX2V4dGVuc2lvbhIrLnByb3RvYnVmX3VuaXR0ZXN0",
508 "X3Byb3RvMi5UZXN0QWxsRXh0ZW5zaW9ucxgjIAMoETpOChlyZXBlYXRlZF9z",
509 "aW50NjRfZXh0ZW5zaW9uEisucHJvdG9idWZfdW5pdHRlc3RfcHJvdG8yLlRl",
510 "c3RBbGxFeHRlbnNpb25zGCQgAygSOk8KGnJlcGVhdGVkX2ZpeGVkMzJfZXh0",
511 "ZW5zaW9uEisucHJvdG9idWZfdW5pdHRlc3RfcHJvdG8yLlRlc3RBbGxFeHRl",
512 "bnNpb25zGCUgAygHOk8KGnJlcGVhdGVkX2ZpeGVkNjRfZXh0ZW5zaW9uEisu",
513 "cHJvdG9idWZfdW5pdHRlc3RfcHJvdG8yLlRlc3RBbGxFeHRlbnNpb25zGCYg",
514 "AygGOlAKG3JlcGVhdGVkX3NmaXhlZDMyX2V4dGVuc2lvbhIrLnByb3RvYnVm",
515 "X3VuaXR0ZXN0X3Byb3RvMi5UZXN0QWxsRXh0ZW5zaW9ucxgnIAMoDzpQChty",
516 "ZXBlYXRlZF9zZml4ZWQ2NF9leHRlbnNpb24SKy5wcm90b2J1Zl91bml0dGVz",
517 "dF9wcm90bzIuVGVzdEFsbEV4dGVuc2lvbnMYKCADKBA6TQoYcmVwZWF0ZWRf",
518 "ZmxvYXRfZXh0ZW5zaW9uEisucHJvdG9idWZfdW5pdHRlc3RfcHJvdG8yLlRl",
519 "c3RBbGxFeHRlbnNpb25zGCkgAygCOk4KGXJlcGVhdGVkX2RvdWJsZV9leHRl",
520 "bnNpb24SKy5wcm90b2J1Zl91bml0dGVzdF9wcm90bzIuVGVzdEFsbEV4dGVu",
521 "c2lvbnMYKiADKAE6TAoXcmVwZWF0ZWRfYm9vbF9leHRlbnNpb24SKy5wcm90",
522 "b2J1Zl91bml0dGVzdF9wcm90bzIuVGVzdEFsbEV4dGVuc2lvbnMYKyADKAg6",
523 "TgoZcmVwZWF0ZWRfc3RyaW5nX2V4dGVuc2lvbhIrLnByb3RvYnVmX3VuaXR0",
524 "ZXN0X3Byb3RvMi5UZXN0QWxsRXh0ZW5zaW9ucxgsIAMoCTpNChhyZXBlYXRl",
525 "ZF9ieXRlc19leHRlbnNpb24SKy5wcm90b2J1Zl91bml0dGVzdF9wcm90bzIu",
526 "VGVzdEFsbEV4dGVuc2lvbnMYLSADKAw6fwoXcmVwZWF0ZWRncm91cF9leHRl",
527 "bnNpb24SKy5wcm90b2J1Zl91bml0dGVzdF9wcm90bzIuVGVzdEFsbEV4dGVu",
528 "c2lvbnMYLiADKAoyMS5wcm90b2J1Zl91bml0dGVzdF9wcm90bzIuUmVwZWF0",
529 "ZWRHcm91cF9leHRlbnNpb246jAEKIXJlcGVhdGVkX25lc3RlZF9tZXNzYWdl",
530 "X2V4dGVuc2lvbhIrLnByb3RvYnVmX3VuaXR0ZXN0X3Byb3RvMi5UZXN0QWxs",
531 "RXh0ZW5zaW9ucxgwIAMoCzI0LnByb3RvYnVmX3VuaXR0ZXN0X3Byb3RvMi5U",
532 "ZXN0QWxsVHlwZXMuTmVzdGVkTWVzc2FnZTqBAQoicmVwZWF0ZWRfZm9yZWln",
533 "bl9tZXNzYWdlX2V4dGVuc2lvbhIrLnByb3RvYnVmX3VuaXR0ZXN0X3Byb3Rv",
534 "Mi5UZXN0QWxsRXh0ZW5zaW9ucxgxIAMoCzIoLnByb3RvYnVmX3VuaXR0ZXN0",
535 "X3Byb3RvMi5Gb3JlaWduTWVzc2FnZTqGAQohcmVwZWF0ZWRfaW1wb3J0X21l",
536 "c3NhZ2VfZXh0ZW5zaW9uEisucHJvdG9idWZfdW5pdHRlc3RfcHJvdG8yLlRl",
537 "c3RBbGxFeHRlbnNpb25zGDIgAygLMi4ucHJvdG9idWZfdW5pdHRlc3RfaW1w",
538 "b3J0X3Byb3RvMi5JbXBvcnRNZXNzYWdlOoYBCh5yZXBlYXRlZF9uZXN0ZWRf",
539 "ZW51bV9leHRlbnNpb24SKy5wcm90b2J1Zl91bml0dGVzdF9wcm90bzIuVGVz",
540 "dEFsbEV4dGVuc2lvbnMYMyADKA4yMS5wcm90b2J1Zl91bml0dGVzdF9wcm90",
541 "bzIuVGVzdEFsbFR5cGVzLk5lc3RlZEVudW06ewofcmVwZWF0ZWRfZm9yZWln",
542 "bl9lbnVtX2V4dGVuc2lvbhIrLnByb3RvYnVmX3VuaXR0ZXN0X3Byb3RvMi5U",
543 "ZXN0QWxsRXh0ZW5zaW9ucxg0IAMoDjIlLnByb3RvYnVmX3VuaXR0ZXN0X3By",
544 "b3RvMi5Gb3JlaWduRW51bTqAAQoecmVwZWF0ZWRfaW1wb3J0X2VudW1fZXh0",
545 "ZW5zaW9uEisucHJvdG9idWZfdW5pdHRlc3RfcHJvdG8yLlRlc3RBbGxFeHRl",
546 "bnNpb25zGDUgAygOMisucHJvdG9idWZfdW5pdHRlc3RfaW1wb3J0X3Byb3Rv",
547 "Mi5JbXBvcnRFbnVtOlgKH3JlcGVhdGVkX3N0cmluZ19waWVjZV9leHRlbnNp",
Protobuf Team Botaf559fc2023-01-31 17:18:07 +0000548 "b24SKy5wcm90b2J1Zl91bml0dGVzdF9wcm90bzIuVGVzdEFsbEV4dGVuc2lv",
Protobuf Team Bota12b0c02023-01-31 09:58:51 -0800549 "bnMYNiADKAlCAggCOlAKF3JlcGVhdGVkX2NvcmRfZXh0ZW5zaW9uEisucHJv",
550 "dG9idWZfdW5pdHRlc3RfcHJvdG8yLlRlc3RBbGxFeHRlbnNpb25zGDcgAygJ",
551 "QgIIATqOAQofcmVwZWF0ZWRfbGF6eV9tZXNzYWdlX2V4dGVuc2lvbhIrLnBy",
552 "b3RvYnVmX3VuaXR0ZXN0X3Byb3RvMi5UZXN0QWxsRXh0ZW5zaW9ucxg5IAMo",
553 "CzI0LnByb3RvYnVmX3VuaXR0ZXN0X3Byb3RvMi5UZXN0QWxsVHlwZXMuTmVz",
554 "dGVkTWVzc2FnZUICKAE6UAoXZGVmYXVsdF9pbnQzMl9leHRlbnNpb24SKy5w",
555 "cm90b2J1Zl91bml0dGVzdF9wcm90bzIuVGVzdEFsbEV4dGVuc2lvbnMYPSAB",
556 "KAU6AjQxOlAKF2RlZmF1bHRfaW50NjRfZXh0ZW5zaW9uEisucHJvdG9idWZf",
557 "dW5pdHRlc3RfcHJvdG8yLlRlc3RBbGxFeHRlbnNpb25zGD4gASgDOgI0MjpR",
558 "ChhkZWZhdWx0X3VpbnQzMl9leHRlbnNpb24SKy5wcm90b2J1Zl91bml0dGVz",
559 "dF9wcm90bzIuVGVzdEFsbEV4dGVuc2lvbnMYPyABKA06AjQzOlEKGGRlZmF1",
560 "bHRfdWludDY0X2V4dGVuc2lvbhIrLnByb3RvYnVmX3VuaXR0ZXN0X3Byb3Rv",
561 "Mi5UZXN0QWxsRXh0ZW5zaW9ucxhAIAEoBDoCNDQ6UgoYZGVmYXVsdF9zaW50",
562 "MzJfZXh0ZW5zaW9uEisucHJvdG9idWZfdW5pdHRlc3RfcHJvdG8yLlRlc3RB",
563 "bGxFeHRlbnNpb25zGEEgASgROgMtNDU6UQoYZGVmYXVsdF9zaW50NjRfZXh0",
564 "ZW5zaW9uEisucHJvdG9idWZfdW5pdHRlc3RfcHJvdG8yLlRlc3RBbGxFeHRl",
565 "bnNpb25zGEIgASgSOgI0NjpSChlkZWZhdWx0X2ZpeGVkMzJfZXh0ZW5zaW9u",
566 "EisucHJvdG9idWZfdW5pdHRlc3RfcHJvdG8yLlRlc3RBbGxFeHRlbnNpb25z",
567 "GEMgASgHOgI0NzpSChlkZWZhdWx0X2ZpeGVkNjRfZXh0ZW5zaW9uEisucHJv",
568 "dG9idWZfdW5pdHRlc3RfcHJvdG8yLlRlc3RBbGxFeHRlbnNpb25zGEQgASgG",
569 "OgI0ODpTChpkZWZhdWx0X3NmaXhlZDMyX2V4dGVuc2lvbhIrLnByb3RvYnVm",
570 "X3VuaXR0ZXN0X3Byb3RvMi5UZXN0QWxsRXh0ZW5zaW9ucxhFIAEoDzoCNDk6",
571 "VAoaZGVmYXVsdF9zZml4ZWQ2NF9leHRlbnNpb24SKy5wcm90b2J1Zl91bml0",
572 "dGVzdF9wcm90bzIuVGVzdEFsbEV4dGVuc2lvbnMYRiABKBA6Ay01MDpSChdk",
573 "ZWZhdWx0X2Zsb2F0X2V4dGVuc2lvbhIrLnByb3RvYnVmX3VuaXR0ZXN0X3By",
574 "b3RvMi5UZXN0QWxsRXh0ZW5zaW9ucxhHIAEoAjoENTEuNTpUChhkZWZhdWx0",
575 "X2RvdWJsZV9leHRlbnNpb24SKy5wcm90b2J1Zl91bml0dGVzdF9wcm90bzIu",
576 "VGVzdEFsbEV4dGVuc2lvbnMYSCABKAE6BTUyMDAwOlEKFmRlZmF1bHRfYm9v",
577 "bF9leHRlbnNpb24SKy5wcm90b2J1Zl91bml0dGVzdF9wcm90bzIuVGVzdEFs",
578 "bEV4dGVuc2lvbnMYSSABKAg6BHRydWU6VAoYZGVmYXVsdF9zdHJpbmdfZXh0",
579 "ZW5zaW9uEisucHJvdG9idWZfdW5pdHRlc3RfcHJvdG8yLlRlc3RBbGxFeHRl",
580 "bnNpb25zGEogASgJOgVoZWxsbzpTChdkZWZhdWx0X2J5dGVzX2V4dGVuc2lv",
581 "bhIrLnByb3RvYnVmX3VuaXR0ZXN0X3Byb3RvMi5UZXN0QWxsRXh0ZW5zaW9u",
582 "cxhLIAEoDDoFd29ybGQ6igEKHWRlZmF1bHRfbmVzdGVkX2VudW1fZXh0ZW5z",
583 "aW9uEisucHJvdG9idWZfdW5pdHRlc3RfcHJvdG8yLlRlc3RBbGxFeHRlbnNp",
584 "b25zGFEgASgOMjEucHJvdG9idWZfdW5pdHRlc3RfcHJvdG8yLlRlc3RBbGxU",
585 "eXBlcy5OZXN0ZWRFbnVtOgNCQVI6hwEKHmRlZmF1bHRfZm9yZWlnbl9lbnVt",
586 "X2V4dGVuc2lvbhIrLnByb3RvYnVmX3VuaXR0ZXN0X3Byb3RvMi5UZXN0QWxs",
587 "RXh0ZW5zaW9ucxhSIAEoDjIlLnByb3RvYnVmX3VuaXR0ZXN0X3Byb3RvMi5G",
588 "b3JlaWduRW51bToLRk9SRUlHTl9CQVI6iwEKHWRlZmF1bHRfaW1wb3J0X2Vu",
589 "dW1fZXh0ZW5zaW9uEisucHJvdG9idWZfdW5pdHRlc3RfcHJvdG8yLlRlc3RB",
590 "bGxFeHRlbnNpb25zGFMgASgOMisucHJvdG9idWZfdW5pdHRlc3RfaW1wb3J0",
591 "X3Byb3RvMi5JbXBvcnRFbnVtOgpJTVBPUlRfQkFSOlwKHmRlZmF1bHRfc3Ry",
592 "aW5nX3BpZWNlX2V4dGVuc2lvbhIrLnByb3RvYnVmX3VuaXR0ZXN0X3Byb3Rv",
593 "Mi5UZXN0QWxsRXh0ZW5zaW9ucxhUIAEoCToDYWJjQgIIAjpUChZkZWZhdWx0",
594 "X2NvcmRfZXh0ZW5zaW9uEisucHJvdG9idWZfdW5pdHRlc3RfcHJvdG8yLlRl",
595 "c3RBbGxFeHRlbnNpb25zGFUgASgJOgMxMjNCAggBOksKFm9uZW9mX3VpbnQz",
596 "Ml9leHRlbnNpb24SKy5wcm90b2J1Zl91bml0dGVzdF9wcm90bzIuVGVzdEFs",
597 "bEV4dGVuc2lvbnMYbyABKA06iQEKHm9uZW9mX25lc3RlZF9tZXNzYWdlX2V4",
598 "dGVuc2lvbhIrLnByb3RvYnVmX3VuaXR0ZXN0X3Byb3RvMi5UZXN0QWxsRXh0",
599 "ZW5zaW9ucxhwIAEoCzI0LnByb3RvYnVmX3VuaXR0ZXN0X3Byb3RvMi5UZXN0",
600 "QWxsVHlwZXMuTmVzdGVkTWVzc2FnZTpLChZvbmVvZl9zdHJpbmdfZXh0ZW5z",
601 "aW9uEisucHJvdG9idWZfdW5pdHRlc3RfcHJvdG8yLlRlc3RBbGxFeHRlbnNp",
602 "b25zGHEgASgJOkoKFW9uZW9mX2J5dGVzX2V4dGVuc2lvbhIrLnByb3RvYnVm",
603 "X3VuaXR0ZXN0X3Byb3RvMi5UZXN0QWxsRXh0ZW5zaW9ucxhyIAEoDDpJChNt",
604 "eV9leHRlbnNpb25fc3RyaW5nEiwucHJvdG9idWZfdW5pdHRlc3RfcHJvdG8y",
605 "LlRlc3RGaWVsZE9yZGVyaW5ncxgyIAEoCTpGChBteV9leHRlbnNpb25faW50",
606 "EiwucHJvdG9idWZfdW5pdHRlc3RfcHJvdG8yLlRlc3RGaWVsZE9yZGVyaW5n",
607 "cxgFIAEoBTpSChZwYWNrZWRfaW50MzJfZXh0ZW5zaW9uEi4ucHJvdG9idWZf",
608 "dW5pdHRlc3RfcHJvdG8yLlRlc3RQYWNrZWRFeHRlbnNpb25zGFogAygFQgIQ",
609 "ATpSChZwYWNrZWRfaW50NjRfZXh0ZW5zaW9uEi4ucHJvdG9idWZfdW5pdHRl",
610 "c3RfcHJvdG8yLlRlc3RQYWNrZWRFeHRlbnNpb25zGFsgAygDQgIQATpTChdw",
611 "YWNrZWRfdWludDMyX2V4dGVuc2lvbhIuLnByb3RvYnVmX3VuaXR0ZXN0X3By",
612 "b3RvMi5UZXN0UGFja2VkRXh0ZW5zaW9ucxhcIAMoDUICEAE6UwoXcGFja2Vk",
613 "X3VpbnQ2NF9leHRlbnNpb24SLi5wcm90b2J1Zl91bml0dGVzdF9wcm90bzIu",
614 "VGVzdFBhY2tlZEV4dGVuc2lvbnMYXSADKARCAhABOlMKF3BhY2tlZF9zaW50",
615 "MzJfZXh0ZW5zaW9uEi4ucHJvdG9idWZfdW5pdHRlc3RfcHJvdG8yLlRlc3RQ",
616 "YWNrZWRFeHRlbnNpb25zGF4gAygRQgIQATpTChdwYWNrZWRfc2ludDY0X2V4",
617 "dGVuc2lvbhIuLnByb3RvYnVmX3VuaXR0ZXN0X3Byb3RvMi5UZXN0UGFja2Vk",
618 "RXh0ZW5zaW9ucxhfIAMoEkICEAE6VAoYcGFja2VkX2ZpeGVkMzJfZXh0ZW5z",
Sydney Acksman8b7fb7d2019-03-23 11:41:57 -0500619 "aW9uEi4ucHJvdG9idWZfdW5pdHRlc3RfcHJvdG8yLlRlc3RQYWNrZWRFeHRl",
Protobuf Team Bota12b0c02023-01-31 09:58:51 -0800620 "bnNpb25zGGAgAygHQgIQATpUChhwYWNrZWRfZml4ZWQ2NF9leHRlbnNpb24S",
621 "Li5wcm90b2J1Zl91bml0dGVzdF9wcm90bzIuVGVzdFBhY2tlZEV4dGVuc2lv",
622 "bnMYYSADKAZCAhABOlUKGXBhY2tlZF9zZml4ZWQzMl9leHRlbnNpb24SLi5w",
Sydney Acksman8b7fb7d2019-03-23 11:41:57 -0500623 "cm90b2J1Zl91bml0dGVzdF9wcm90bzIuVGVzdFBhY2tlZEV4dGVuc2lvbnMY",
Protobuf Team Bota12b0c02023-01-31 09:58:51 -0800624 "YiADKA9CAhABOlUKGXBhY2tlZF9zZml4ZWQ2NF9leHRlbnNpb24SLi5wcm90",
625 "b2J1Zl91bml0dGVzdF9wcm90bzIuVGVzdFBhY2tlZEV4dGVuc2lvbnMYYyAD",
626 "KBBCAhABOlIKFnBhY2tlZF9mbG9hdF9leHRlbnNpb24SLi5wcm90b2J1Zl91",
627 "bml0dGVzdF9wcm90bzIuVGVzdFBhY2tlZEV4dGVuc2lvbnMYZCADKAJCAhAB",
628 "OlMKF3BhY2tlZF9kb3VibGVfZXh0ZW5zaW9uEi4ucHJvdG9idWZfdW5pdHRl",
629 "c3RfcHJvdG8yLlRlc3RQYWNrZWRFeHRlbnNpb25zGGUgAygBQgIQATpRChVw",
630 "YWNrZWRfYm9vbF9leHRlbnNpb24SLi5wcm90b2J1Zl91bml0dGVzdF9wcm90",
631 "bzIuVGVzdFBhY2tlZEV4dGVuc2lvbnMYZiADKAhCAhABOngKFXBhY2tlZF9l",
632 "bnVtX2V4dGVuc2lvbhIuLnByb3RvYnVmX3VuaXR0ZXN0X3Byb3RvMi5UZXN0",
633 "UGFja2VkRXh0ZW5zaW9ucxhnIAMoDjIlLnByb3RvYnVmX3VuaXR0ZXN0X3By",
634 "b3RvMi5Gb3JlaWduRW51bUICEAE6VgoYdW5wYWNrZWRfaW50MzJfZXh0ZW5z",
635 "aW9uEjAucHJvdG9idWZfdW5pdHRlc3RfcHJvdG8yLlRlc3RVbnBhY2tlZEV4",
636 "dGVuc2lvbnMYWiADKAVCAhAAOlYKGHVucGFja2VkX2ludDY0X2V4dGVuc2lv",
637 "bhIwLnByb3RvYnVmX3VuaXR0ZXN0X3Byb3RvMi5UZXN0VW5wYWNrZWRFeHRl",
638 "bnNpb25zGFsgAygDQgIQADpXChl1bnBhY2tlZF91aW50MzJfZXh0ZW5zaW9u",
639 "EjAucHJvdG9idWZfdW5pdHRlc3RfcHJvdG8yLlRlc3RVbnBhY2tlZEV4dGVu",
640 "c2lvbnMYXCADKA1CAhAAOlcKGXVucGFja2VkX3VpbnQ2NF9leHRlbnNpb24S",
641 "MC5wcm90b2J1Zl91bml0dGVzdF9wcm90bzIuVGVzdFVucGFja2VkRXh0ZW5z",
642 "aW9ucxhdIAMoBEICEAA6VwoZdW5wYWNrZWRfc2ludDMyX2V4dGVuc2lvbhIw",
643 "LnByb3RvYnVmX3VuaXR0ZXN0X3Byb3RvMi5UZXN0VW5wYWNrZWRFeHRlbnNp",
644 "b25zGF4gAygRQgIQADpXChl1bnBhY2tlZF9zaW50NjRfZXh0ZW5zaW9uEjAu",
645 "cHJvdG9idWZfdW5pdHRlc3RfcHJvdG8yLlRlc3RVbnBhY2tlZEV4dGVuc2lv",
646 "bnMYXyADKBJCAhAAOlgKGnVucGFja2VkX2ZpeGVkMzJfZXh0ZW5zaW9uEjAu",
647 "cHJvdG9idWZfdW5pdHRlc3RfcHJvdG8yLlRlc3RVbnBhY2tlZEV4dGVuc2lv",
648 "bnMYYCADKAdCAhAAOlgKGnVucGFja2VkX2ZpeGVkNjRfZXh0ZW5zaW9uEjAu",
649 "cHJvdG9idWZfdW5pdHRlc3RfcHJvdG8yLlRlc3RVbnBhY2tlZEV4dGVuc2lv",
650 "bnMYYSADKAZCAhAAOlkKG3VucGFja2VkX3NmaXhlZDMyX2V4dGVuc2lvbhIw",
651 "LnByb3RvYnVmX3VuaXR0ZXN0X3Byb3RvMi5UZXN0VW5wYWNrZWRFeHRlbnNp",
652 "b25zGGIgAygPQgIQADpZCht1bnBhY2tlZF9zZml4ZWQ2NF9leHRlbnNpb24S",
653 "MC5wcm90b2J1Zl91bml0dGVzdF9wcm90bzIuVGVzdFVucGFja2VkRXh0ZW5z",
654 "aW9ucxhjIAMoEEICEAA6VgoYdW5wYWNrZWRfZmxvYXRfZXh0ZW5zaW9uEjAu",
655 "cHJvdG9idWZfdW5pdHRlc3RfcHJvdG8yLlRlc3RVbnBhY2tlZEV4dGVuc2lv",
656 "bnMYZCADKAJCAhAAOlcKGXVucGFja2VkX2RvdWJsZV9leHRlbnNpb24SMC5w",
657 "cm90b2J1Zl91bml0dGVzdF9wcm90bzIuVGVzdFVucGFja2VkRXh0ZW5zaW9u",
658 "cxhlIAMoAUICEAA6VQoXdW5wYWNrZWRfYm9vbF9leHRlbnNpb24SMC5wcm90",
659 "b2J1Zl91bml0dGVzdF9wcm90bzIuVGVzdFVucGFja2VkRXh0ZW5zaW9ucxhm",
660 "IAMoCEICEAA6fAoXdW5wYWNrZWRfZW51bV9leHRlbnNpb24SMC5wcm90b2J1",
661 "Zl91bml0dGVzdF9wcm90bzIuVGVzdFVucGFja2VkRXh0ZW5zaW9ucxhnIAMo",
662 "DjIlLnByb3RvYnVmX3VuaXR0ZXN0X3Byb3RvMi5Gb3JlaWduRW51bUICEAA6",
663 "cgoOdGVzdF9hbGxfdHlwZXMSLi5wcm90b2J1Zl91bml0dGVzdF9wcm90bzIu",
664 "VGVzdEh1Z2VGaWVsZE51bWJlcnMY4Kr//wEgASgLMiYucHJvdG9idWZfdW5p",
665 "dHRlc3RfcHJvdG8yLlRlc3RBbGxUeXBlczphCiV0ZXN0X2V4dGVuc2lvbl9p",
666 "bnNpZGVfdGFibGVfZXh0ZW5zaW9uEjIucHJvdG9idWZfdW5pdHRlc3RfcHJv",
667 "dG8yLlRlc3RFeHRlbnNpb25JbnNpZGVUYWJsZRgFIAEoBUIySAGAAQGIAQGQ",
668 "AQH4AQGqAiFHb29nbGUuUHJvdG9idWYuVGVzdFByb3Rvcy5Qcm90bzI="));
Sydney Acksman8a57ec82019-03-21 17:36:36 -0500669 descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData,
670 new pbr::FileDescriptor[] { global::Google.Protobuf.TestProtos.Proto2.UnittestImportReflection.Descriptor, },
671 new pbr::GeneratedClrTypeInfo(new[] {typeof(global::Google.Protobuf.TestProtos.Proto2.ForeignEnum), typeof(global::Google.Protobuf.TestProtos.Proto2.TestEnumWithDupValue), typeof(global::Google.Protobuf.TestProtos.Proto2.TestSparseEnum), typeof(global::Google.Protobuf.TestProtos.Proto2.VeryLargeEnum), }, new pb::Extension[] { UnittestExtensions.OptionalInt32Extension, UnittestExtensions.OptionalInt64Extension, UnittestExtensions.OptionalUint32Extension, UnittestExtensions.OptionalUint64Extension, UnittestExtensions.OptionalSint32Extension, UnittestExtensions.OptionalSint64Extension, UnittestExtensions.OptionalFixed32Extension, UnittestExtensions.OptionalFixed64Extension, UnittestExtensions.OptionalSfixed32Extension, UnittestExtensions.OptionalSfixed64Extension, UnittestExtensions.OptionalFloatExtension, UnittestExtensions.OptionalDoubleExtension, UnittestExtensions.OptionalBoolExtension, UnittestExtensions.OptionalStringExtension, UnittestExtensions.OptionalBytesExtension, UnittestExtensions.OptionalGroupExtension, UnittestExtensions.OptionalNestedMessageExtension, UnittestExtensions.OptionalForeignMessageExtension, UnittestExtensions.OptionalImportMessageExtension, UnittestExtensions.OptionalNestedEnumExtension, UnittestExtensions.OptionalForeignEnumExtension, UnittestExtensions.OptionalImportEnumExtension, UnittestExtensions.OptionalStringPieceExtension, UnittestExtensions.OptionalCordExtension, UnittestExtensions.OptionalPublicImportMessageExtension, UnittestExtensions.OptionalLazyMessageExtension, UnittestExtensions.RepeatedInt32Extension, UnittestExtensions.RepeatedInt64Extension, UnittestExtensions.RepeatedUint32Extension, UnittestExtensions.RepeatedUint64Extension, UnittestExtensions.RepeatedSint32Extension, UnittestExtensions.RepeatedSint64Extension, UnittestExtensions.RepeatedFixed32Extension, UnittestExtensions.RepeatedFixed64Extension, UnittestExtensions.RepeatedSfixed32Extension, UnittestExtensions.RepeatedSfixed64Extension, UnittestExtensions.RepeatedFloatExtension, UnittestExtensions.RepeatedDoubleExtension, UnittestExtensions.RepeatedBoolExtension, UnittestExtensions.RepeatedStringExtension, UnittestExtensions.RepeatedBytesExtension, UnittestExtensions.RepeatedGroupExtension, UnittestExtensions.RepeatedNestedMessageExtension, UnittestExtensions.RepeatedForeignMessageExtension, UnittestExtensions.RepeatedImportMessageExtension, UnittestExtensions.RepeatedNestedEnumExtension, UnittestExtensions.RepeatedForeignEnumExtension, UnittestExtensions.RepeatedImportEnumExtension, UnittestExtensions.RepeatedStringPieceExtension, UnittestExtensions.RepeatedCordExtension, UnittestExtensions.RepeatedLazyMessageExtension, UnittestExtensions.DefaultInt32Extension, UnittestExtensions.DefaultInt64Extension, UnittestExtensions.DefaultUint32Extension, UnittestExtensions.DefaultUint64Extension, UnittestExtensions.DefaultSint32Extension, UnittestExtensions.DefaultSint64Extension, UnittestExtensions.DefaultFixed32Extension, UnittestExtensions.DefaultFixed64Extension, UnittestExtensions.DefaultSfixed32Extension, UnittestExtensions.DefaultSfixed64Extension, UnittestExtensions.DefaultFloatExtension, UnittestExtensions.DefaultDoubleExtension, UnittestExtensions.DefaultBoolExtension, UnittestExtensions.DefaultStringExtension, UnittestExtensions.DefaultBytesExtension, UnittestExtensions.DefaultNestedEnumExtension, UnittestExtensions.DefaultForeignEnumExtension, UnittestExtensions.DefaultImportEnumExtension, UnittestExtensions.DefaultStringPieceExtension, UnittestExtensions.DefaultCordExtension, UnittestExtensions.OneofUint32Extension, UnittestExtensions.OneofNestedMessageExtension, UnittestExtensions.OneofStringExtension, UnittestExtensions.OneofBytesExtension, UnittestExtensions.MyExtensionString, UnittestExtensions.MyExtensionInt, UnittestExtensions.PackedInt32Extension, UnittestExtensions.PackedInt64Extension, UnittestExtensions.PackedUint32Extension, UnittestExtensions.PackedUint64Extension, UnittestExtensions.PackedSint32Extension, UnittestExtensions.PackedSint64Extension, UnittestExtensions.PackedFixed32Extension, UnittestExtensions.PackedFixed64Extension, UnittestExtensions.PackedSfixed32Extension, UnittestExtensions.PackedSfixed64Extension, UnittestExtensions.PackedFloatExtension, UnittestExtensions.PackedDoubleExtension, UnittestExtensions.PackedBoolExtension, UnittestExtensions.PackedEnumExtension, UnittestExtensions.UnpackedInt32Extension, UnittestExtensions.UnpackedInt64Extension, UnittestExtensions.UnpackedUint32Extension, UnittestExtensions.UnpackedUint64Extension, UnittestExtensions.UnpackedSint32Extension, UnittestExtensions.UnpackedSint64Extension, UnittestExtensions.UnpackedFixed32Extension, UnittestExtensions.UnpackedFixed64Extension, UnittestExtensions.UnpackedSfixed32Extension, UnittestExtensions.UnpackedSfixed64Extension, UnittestExtensions.UnpackedFloatExtension, UnittestExtensions.UnpackedDoubleExtension, UnittestExtensions.UnpackedBoolExtension, UnittestExtensions.UnpackedEnumExtension, UnittestExtensions.TestAllTypes, UnittestExtensions.TestExtensionInsideTableExtension }, new pbr::GeneratedClrTypeInfo[] {
672 new pbr::GeneratedClrTypeInfo(typeof(global::Google.Protobuf.TestProtos.Proto2.TestAllTypes), global::Google.Protobuf.TestProtos.Proto2.TestAllTypes.Parser, new[]{ "OptionalInt32", "OptionalInt64", "OptionalUint32", "OptionalUint64", "OptionalSint32", "OptionalSint64", "OptionalFixed32", "OptionalFixed64", "OptionalSfixed32", "OptionalSfixed64", "OptionalFloat", "OptionalDouble", "OptionalBool", "OptionalString", "OptionalBytes", "OptionalGroup", "OptionalNestedMessage", "OptionalForeignMessage", "OptionalImportMessage", "OptionalNestedEnum", "OptionalForeignEnum", "OptionalImportEnum", "OptionalStringPiece", "OptionalCord", "OptionalPublicImportMessage", "OptionalLazyMessage", "RepeatedInt32", "RepeatedInt64", "RepeatedUint32", "RepeatedUint64", "RepeatedSint32", "RepeatedSint64", "RepeatedFixed32", "RepeatedFixed64", "RepeatedSfixed32", "RepeatedSfixed64", "RepeatedFloat", "RepeatedDouble", "RepeatedBool", "RepeatedString", "RepeatedBytes", "RepeatedGroup", "RepeatedNestedMessage", "RepeatedForeignMessage", "RepeatedImportMessage", "RepeatedNestedEnum", "RepeatedForeignEnum", "RepeatedImportEnum", "RepeatedStringPiece", "RepeatedCord", "RepeatedLazyMessage", "DefaultInt32", "DefaultInt64", "DefaultUint32", "DefaultUint64", "DefaultSint32", "DefaultSint64", "DefaultFixed32", "DefaultFixed64", "DefaultSfixed32", "DefaultSfixed64", "DefaultFloat", "DefaultDouble", "DefaultBool", "DefaultString", "DefaultBytes", "DefaultNestedEnum", "DefaultForeignEnum", "DefaultImportEnum", "DefaultStringPiece", "DefaultCord", "OneofUint32", "OneofNestedMessage", "OneofString", "OneofBytes" }, new[]{ "OneofField" }, new[]{ typeof(global::Google.Protobuf.TestProtos.Proto2.TestAllTypes.Types.NestedEnum) }, null, new pbr::GeneratedClrTypeInfo[] { new pbr::GeneratedClrTypeInfo(typeof(global::Google.Protobuf.TestProtos.Proto2.TestAllTypes.Types.NestedMessage), global::Google.Protobuf.TestProtos.Proto2.TestAllTypes.Types.NestedMessage.Parser, new[]{ "Bb" }, null, null, null, null),
673 new pbr::GeneratedClrTypeInfo(typeof(global::Google.Protobuf.TestProtos.Proto2.TestAllTypes.Types.OptionalGroup), global::Google.Protobuf.TestProtos.Proto2.TestAllTypes.Types.OptionalGroup.Parser, new[]{ "A" }, null, null, null, null),
674 new pbr::GeneratedClrTypeInfo(typeof(global::Google.Protobuf.TestProtos.Proto2.TestAllTypes.Types.RepeatedGroup), global::Google.Protobuf.TestProtos.Proto2.TestAllTypes.Types.RepeatedGroup.Parser, new[]{ "A" }, null, null, null, null)}),
675 new pbr::GeneratedClrTypeInfo(typeof(global::Google.Protobuf.TestProtos.Proto2.NestedTestAllTypes), global::Google.Protobuf.TestProtos.Proto2.NestedTestAllTypes.Parser, new[]{ "Child", "Payload", "RepeatedChild" }, null, null, null, null),
676 new pbr::GeneratedClrTypeInfo(typeof(global::Google.Protobuf.TestProtos.Proto2.TestDeprecatedFields), global::Google.Protobuf.TestProtos.Proto2.TestDeprecatedFields.Parser, new[]{ "DeprecatedInt32", "DeprecatedInt32InOneof" }, new[]{ "OneofFields" }, null, null, null),
677 new pbr::GeneratedClrTypeInfo(typeof(global::Google.Protobuf.TestProtos.Proto2.TestDeprecatedMessage), global::Google.Protobuf.TestProtos.Proto2.TestDeprecatedMessage.Parser, null, null, null, null, null),
678 new pbr::GeneratedClrTypeInfo(typeof(global::Google.Protobuf.TestProtos.Proto2.ForeignMessage), global::Google.Protobuf.TestProtos.Proto2.ForeignMessage.Parser, new[]{ "C", "D" }, null, null, null, null),
679 new pbr::GeneratedClrTypeInfo(typeof(global::Google.Protobuf.TestProtos.Proto2.TestReservedFields), global::Google.Protobuf.TestProtos.Proto2.TestReservedFields.Parser, null, null, null, null, null),
680 new pbr::GeneratedClrTypeInfo(typeof(global::Google.Protobuf.TestProtos.Proto2.TestAllExtensions), global::Google.Protobuf.TestProtos.Proto2.TestAllExtensions.Parser, null, null, null, null, null),
681 new pbr::GeneratedClrTypeInfo(typeof(global::Google.Protobuf.TestProtos.Proto2.OptionalGroup_extension), global::Google.Protobuf.TestProtos.Proto2.OptionalGroup_extension.Parser, new[]{ "A" }, null, null, null, null),
682 new pbr::GeneratedClrTypeInfo(typeof(global::Google.Protobuf.TestProtos.Proto2.RepeatedGroup_extension), global::Google.Protobuf.TestProtos.Proto2.RepeatedGroup_extension.Parser, new[]{ "A" }, null, null, null, null),
683 new pbr::GeneratedClrTypeInfo(typeof(global::Google.Protobuf.TestProtos.Proto2.TestGroup), global::Google.Protobuf.TestProtos.Proto2.TestGroup.Parser, new[]{ "OptionalGroup", "OptionalForeignEnum" }, null, null, null, new pbr::GeneratedClrTypeInfo[] { new pbr::GeneratedClrTypeInfo(typeof(global::Google.Protobuf.TestProtos.Proto2.TestGroup.Types.OptionalGroup), global::Google.Protobuf.TestProtos.Proto2.TestGroup.Types.OptionalGroup.Parser, new[]{ "A" }, null, null, null, null)}),
684 new pbr::GeneratedClrTypeInfo(typeof(global::Google.Protobuf.TestProtos.Proto2.TestGroupExtension), global::Google.Protobuf.TestProtos.Proto2.TestGroupExtension.Parser, null, null, null, null, null),
685 new pbr::GeneratedClrTypeInfo(typeof(global::Google.Protobuf.TestProtos.Proto2.TestNestedExtension), global::Google.Protobuf.TestProtos.Proto2.TestNestedExtension.Parser, null, null, null, new pb::Extension[] { global::Google.Protobuf.TestProtos.Proto2.TestNestedExtension.Extensions.Test, global::Google.Protobuf.TestProtos.Proto2.TestNestedExtension.Extensions.NestedStringExtension, global::Google.Protobuf.TestProtos.Proto2.TestNestedExtension.Extensions.OptionalGroupExtension, global::Google.Protobuf.TestProtos.Proto2.TestNestedExtension.Extensions.OptionalForeignEnumExtension }, new pbr::GeneratedClrTypeInfo[] { new pbr::GeneratedClrTypeInfo(typeof(global::Google.Protobuf.TestProtos.Proto2.TestNestedExtension.Types.OptionalGroup_extension), global::Google.Protobuf.TestProtos.Proto2.TestNestedExtension.Types.OptionalGroup_extension.Parser, new[]{ "A" }, null, null, null, null)}),
686 new pbr::GeneratedClrTypeInfo(typeof(global::Google.Protobuf.TestProtos.Proto2.TestRequired), global::Google.Protobuf.TestProtos.Proto2.TestRequired.Parser, new[]{ "A", "Dummy2", "B", "Dummy4", "Dummy5", "Dummy6", "Dummy7", "Dummy8", "Dummy9", "Dummy10", "Dummy11", "Dummy12", "Dummy13", "Dummy14", "Dummy15", "Dummy16", "Dummy17", "Dummy18", "Dummy19", "Dummy20", "Dummy21", "Dummy22", "Dummy23", "Dummy24", "Dummy25", "Dummy26", "Dummy27", "Dummy28", "Dummy29", "Dummy30", "Dummy31", "Dummy32", "C" }, null, null, new pb::Extension[] { global::Google.Protobuf.TestProtos.Proto2.TestRequired.Extensions.Single, global::Google.Protobuf.TestProtos.Proto2.TestRequired.Extensions.Multi }, null),
687 new pbr::GeneratedClrTypeInfo(typeof(global::Google.Protobuf.TestProtos.Proto2.TestRequiredForeign), global::Google.Protobuf.TestProtos.Proto2.TestRequiredForeign.Parser, new[]{ "OptionalMessage", "RepeatedMessage", "Dummy" }, null, null, null, null),
688 new pbr::GeneratedClrTypeInfo(typeof(global::Google.Protobuf.TestProtos.Proto2.TestRequiredMessage), global::Google.Protobuf.TestProtos.Proto2.TestRequiredMessage.Parser, new[]{ "OptionalMessage", "RepeatedMessage", "RequiredMessage" }, null, null, null, null),
689 new pbr::GeneratedClrTypeInfo(typeof(global::Google.Protobuf.TestProtos.Proto2.TestForeignNested), global::Google.Protobuf.TestProtos.Proto2.TestForeignNested.Parser, new[]{ "ForeignNested" }, null, null, null, null),
690 new pbr::GeneratedClrTypeInfo(typeof(global::Google.Protobuf.TestProtos.Proto2.TestEmptyMessage), global::Google.Protobuf.TestProtos.Proto2.TestEmptyMessage.Parser, null, null, null, null, null),
691 new pbr::GeneratedClrTypeInfo(typeof(global::Google.Protobuf.TestProtos.Proto2.TestEmptyMessageWithExtensions), global::Google.Protobuf.TestProtos.Proto2.TestEmptyMessageWithExtensions.Parser, null, null, null, null, null),
692 new pbr::GeneratedClrTypeInfo(typeof(global::Google.Protobuf.TestProtos.Proto2.TestMultipleExtensionRanges), global::Google.Protobuf.TestProtos.Proto2.TestMultipleExtensionRanges.Parser, null, null, null, null, null),
693 new pbr::GeneratedClrTypeInfo(typeof(global::Google.Protobuf.TestProtos.Proto2.TestReallyLargeTagNumber), global::Google.Protobuf.TestProtos.Proto2.TestReallyLargeTagNumber.Parser, new[]{ "A", "Bb" }, null, null, null, null),
694 new pbr::GeneratedClrTypeInfo(typeof(global::Google.Protobuf.TestProtos.Proto2.TestRecursiveMessage), global::Google.Protobuf.TestProtos.Proto2.TestRecursiveMessage.Parser, new[]{ "A", "I" }, null, null, null, null),
695 new pbr::GeneratedClrTypeInfo(typeof(global::Google.Protobuf.TestProtos.Proto2.TestMutualRecursionA), global::Google.Protobuf.TestProtos.Proto2.TestMutualRecursionA.Parser, new[]{ "Bb", "SubGroup" }, null, null, null, new pbr::GeneratedClrTypeInfo[] { new pbr::GeneratedClrTypeInfo(typeof(global::Google.Protobuf.TestProtos.Proto2.TestMutualRecursionA.Types.SubMessage), global::Google.Protobuf.TestProtos.Proto2.TestMutualRecursionA.Types.SubMessage.Parser, new[]{ "B" }, null, null, null, null),
696 new pbr::GeneratedClrTypeInfo(typeof(global::Google.Protobuf.TestProtos.Proto2.TestMutualRecursionA.Types.SubGroup), global::Google.Protobuf.TestProtos.Proto2.TestMutualRecursionA.Types.SubGroup.Parser, new[]{ "SubMessage", "NotInThisScc" }, null, null, null, null)}),
697 new pbr::GeneratedClrTypeInfo(typeof(global::Google.Protobuf.TestProtos.Proto2.TestMutualRecursionB), global::Google.Protobuf.TestProtos.Proto2.TestMutualRecursionB.Parser, new[]{ "A", "OptionalInt32" }, null, null, null, null),
698 new pbr::GeneratedClrTypeInfo(typeof(global::Google.Protobuf.TestProtos.Proto2.TestIsInitialized), global::Google.Protobuf.TestProtos.Proto2.TestIsInitialized.Parser, new[]{ "SubMessage" }, null, null, null, new pbr::GeneratedClrTypeInfo[] { new pbr::GeneratedClrTypeInfo(typeof(global::Google.Protobuf.TestProtos.Proto2.TestIsInitialized.Types.SubMessage), global::Google.Protobuf.TestProtos.Proto2.TestIsInitialized.Types.SubMessage.Parser, new[]{ "SubGroup" }, null, null, null, new pbr::GeneratedClrTypeInfo[] { new pbr::GeneratedClrTypeInfo(typeof(global::Google.Protobuf.TestProtos.Proto2.TestIsInitialized.Types.SubMessage.Types.SubGroup), global::Google.Protobuf.TestProtos.Proto2.TestIsInitialized.Types.SubMessage.Types.SubGroup.Parser, new[]{ "I" }, null, null, null, null)})}),
699 new pbr::GeneratedClrTypeInfo(typeof(global::Google.Protobuf.TestProtos.Proto2.TestDupFieldNumber), global::Google.Protobuf.TestProtos.Proto2.TestDupFieldNumber.Parser, new[]{ "A", "Foo", "Bar" }, null, null, null, new pbr::GeneratedClrTypeInfo[] { new pbr::GeneratedClrTypeInfo(typeof(global::Google.Protobuf.TestProtos.Proto2.TestDupFieldNumber.Types.Foo), global::Google.Protobuf.TestProtos.Proto2.TestDupFieldNumber.Types.Foo.Parser, new[]{ "A" }, null, null, null, null),
700 new pbr::GeneratedClrTypeInfo(typeof(global::Google.Protobuf.TestProtos.Proto2.TestDupFieldNumber.Types.Bar), global::Google.Protobuf.TestProtos.Proto2.TestDupFieldNumber.Types.Bar.Parser, new[]{ "A" }, null, null, null, null)}),
701 new pbr::GeneratedClrTypeInfo(typeof(global::Google.Protobuf.TestProtos.Proto2.TestEagerMessage), global::Google.Protobuf.TestProtos.Proto2.TestEagerMessage.Parser, new[]{ "SubMessage" }, null, null, null, null),
702 new pbr::GeneratedClrTypeInfo(typeof(global::Google.Protobuf.TestProtos.Proto2.TestLazyMessage), global::Google.Protobuf.TestProtos.Proto2.TestLazyMessage.Parser, new[]{ "SubMessage" }, null, null, null, null),
703 new pbr::GeneratedClrTypeInfo(typeof(global::Google.Protobuf.TestProtos.Proto2.TestNestedMessageHasBits), global::Google.Protobuf.TestProtos.Proto2.TestNestedMessageHasBits.Parser, new[]{ "OptionalNestedMessage" }, null, null, null, new pbr::GeneratedClrTypeInfo[] { new pbr::GeneratedClrTypeInfo(typeof(global::Google.Protobuf.TestProtos.Proto2.TestNestedMessageHasBits.Types.NestedMessage), global::Google.Protobuf.TestProtos.Proto2.TestNestedMessageHasBits.Types.NestedMessage.Parser, new[]{ "NestedmessageRepeatedInt32", "NestedmessageRepeatedForeignmessage" }, null, null, null, null)}),
704 new pbr::GeneratedClrTypeInfo(typeof(global::Google.Protobuf.TestProtos.Proto2.TestCamelCaseFieldNames), global::Google.Protobuf.TestProtos.Proto2.TestCamelCaseFieldNames.Parser, new[]{ "PrimitiveField", "StringField", "EnumField", "MessageField", "StringPieceField", "CordField", "RepeatedPrimitiveField", "RepeatedStringField", "RepeatedEnumField", "RepeatedMessageField", "RepeatedStringPieceField", "RepeatedCordField" }, null, null, null, null),
705 new pbr::GeneratedClrTypeInfo(typeof(global::Google.Protobuf.TestProtos.Proto2.TestFieldOrderings), global::Google.Protobuf.TestProtos.Proto2.TestFieldOrderings.Parser, new[]{ "MyString", "MyInt", "MyFloat", "OptionalNestedMessage" }, null, null, null, new pbr::GeneratedClrTypeInfo[] { new pbr::GeneratedClrTypeInfo(typeof(global::Google.Protobuf.TestProtos.Proto2.TestFieldOrderings.Types.NestedMessage), global::Google.Protobuf.TestProtos.Proto2.TestFieldOrderings.Types.NestedMessage.Parser, new[]{ "Oo", "Bb" }, null, null, null, null)}),
706 new pbr::GeneratedClrTypeInfo(typeof(global::Google.Protobuf.TestProtos.Proto2.TestExtensionOrderings1), global::Google.Protobuf.TestProtos.Proto2.TestExtensionOrderings1.Parser, new[]{ "MyString" }, null, null, new pb::Extension[] { global::Google.Protobuf.TestProtos.Proto2.TestExtensionOrderings1.Extensions.TestExtOrderings1 }, null),
707 new pbr::GeneratedClrTypeInfo(typeof(global::Google.Protobuf.TestProtos.Proto2.TestExtensionOrderings2), global::Google.Protobuf.TestProtos.Proto2.TestExtensionOrderings2.Parser, new[]{ "MyString" }, null, null, new pb::Extension[] { global::Google.Protobuf.TestProtos.Proto2.TestExtensionOrderings2.Extensions.TestExtOrderings2 }, new pbr::GeneratedClrTypeInfo[] { new pbr::GeneratedClrTypeInfo(typeof(global::Google.Protobuf.TestProtos.Proto2.TestExtensionOrderings2.Types.TestExtensionOrderings3), global::Google.Protobuf.TestProtos.Proto2.TestExtensionOrderings2.Types.TestExtensionOrderings3.Parser, new[]{ "MyString" }, null, null, new pb::Extension[] { global::Google.Protobuf.TestProtos.Proto2.TestExtensionOrderings2.Types.TestExtensionOrderings3.Extensions.TestExtOrderings3 }, null)}),
708 new pbr::GeneratedClrTypeInfo(typeof(global::Google.Protobuf.TestProtos.Proto2.TestExtremeDefaultValues), global::Google.Protobuf.TestProtos.Proto2.TestExtremeDefaultValues.Parser, new[]{ "EscapedBytes", "LargeUint32", "LargeUint64", "SmallInt32", "SmallInt64", "ReallySmallInt32", "ReallySmallInt64", "Utf8String", "ZeroFloat", "OneFloat", "SmallFloat", "NegativeOneFloat", "NegativeFloat", "LargeFloat", "SmallNegativeFloat", "InfDouble", "NegInfDouble", "NanDouble", "InfFloat", "NegInfFloat", "NanFloat", "CppTrigraph", "StringWithZero", "BytesWithZero", "StringPieceWithZero", "CordWithZero", "ReplacementString" }, null, null, null, null),
709 new pbr::GeneratedClrTypeInfo(typeof(global::Google.Protobuf.TestProtos.Proto2.SparseEnumMessage), global::Google.Protobuf.TestProtos.Proto2.SparseEnumMessage.Parser, new[]{ "SparseEnum" }, null, null, null, null),
710 new pbr::GeneratedClrTypeInfo(typeof(global::Google.Protobuf.TestProtos.Proto2.OneString), global::Google.Protobuf.TestProtos.Proto2.OneString.Parser, new[]{ "Data" }, null, null, null, null),
711 new pbr::GeneratedClrTypeInfo(typeof(global::Google.Protobuf.TestProtos.Proto2.MoreString), global::Google.Protobuf.TestProtos.Proto2.MoreString.Parser, new[]{ "Data" }, null, null, null, null),
712 new pbr::GeneratedClrTypeInfo(typeof(global::Google.Protobuf.TestProtos.Proto2.OneBytes), global::Google.Protobuf.TestProtos.Proto2.OneBytes.Parser, new[]{ "Data" }, null, null, null, null),
713 new pbr::GeneratedClrTypeInfo(typeof(global::Google.Protobuf.TestProtos.Proto2.MoreBytes), global::Google.Protobuf.TestProtos.Proto2.MoreBytes.Parser, new[]{ "Data" }, null, null, null, null),
714 new pbr::GeneratedClrTypeInfo(typeof(global::Google.Protobuf.TestProtos.Proto2.Int32Message), global::Google.Protobuf.TestProtos.Proto2.Int32Message.Parser, new[]{ "Data" }, null, null, null, null),
715 new pbr::GeneratedClrTypeInfo(typeof(global::Google.Protobuf.TestProtos.Proto2.Uint32Message), global::Google.Protobuf.TestProtos.Proto2.Uint32Message.Parser, new[]{ "Data" }, null, null, null, null),
716 new pbr::GeneratedClrTypeInfo(typeof(global::Google.Protobuf.TestProtos.Proto2.Int64Message), global::Google.Protobuf.TestProtos.Proto2.Int64Message.Parser, new[]{ "Data" }, null, null, null, null),
717 new pbr::GeneratedClrTypeInfo(typeof(global::Google.Protobuf.TestProtos.Proto2.Uint64Message), global::Google.Protobuf.TestProtos.Proto2.Uint64Message.Parser, new[]{ "Data" }, null, null, null, null),
718 new pbr::GeneratedClrTypeInfo(typeof(global::Google.Protobuf.TestProtos.Proto2.BoolMessage), global::Google.Protobuf.TestProtos.Proto2.BoolMessage.Parser, new[]{ "Data" }, null, null, null, null),
719 new pbr::GeneratedClrTypeInfo(typeof(global::Google.Protobuf.TestProtos.Proto2.TestOneof), global::Google.Protobuf.TestProtos.Proto2.TestOneof.Parser, new[]{ "FooInt", "FooString", "FooMessage", "FooGroup" }, new[]{ "Foo" }, null, null, new pbr::GeneratedClrTypeInfo[] { new pbr::GeneratedClrTypeInfo(typeof(global::Google.Protobuf.TestProtos.Proto2.TestOneof.Types.FooGroup), global::Google.Protobuf.TestProtos.Proto2.TestOneof.Types.FooGroup.Parser, new[]{ "A", "B" }, null, null, null, null)}),
720 new pbr::GeneratedClrTypeInfo(typeof(global::Google.Protobuf.TestProtos.Proto2.TestOneofBackwardsCompatible), global::Google.Protobuf.TestProtos.Proto2.TestOneofBackwardsCompatible.Parser, new[]{ "FooInt", "FooString", "FooMessage", "FooGroup" }, null, null, null, new pbr::GeneratedClrTypeInfo[] { new pbr::GeneratedClrTypeInfo(typeof(global::Google.Protobuf.TestProtos.Proto2.TestOneofBackwardsCompatible.Types.FooGroup), global::Google.Protobuf.TestProtos.Proto2.TestOneofBackwardsCompatible.Types.FooGroup.Parser, new[]{ "A", "B" }, null, null, null, null)}),
721 new pbr::GeneratedClrTypeInfo(typeof(global::Google.Protobuf.TestProtos.Proto2.TestOneof2), global::Google.Protobuf.TestProtos.Proto2.TestOneof2.Parser, new[]{ "FooInt", "FooString", "FooCord", "FooStringPiece", "FooBytes", "FooEnum", "FooMessage", "FooGroup", "FooLazyMessage", "BarInt", "BarString", "BarCord", "BarStringPiece", "BarBytes", "BarEnum", "BazInt", "BazString" }, new[]{ "Foo", "Bar" }, new[]{ typeof(global::Google.Protobuf.TestProtos.Proto2.TestOneof2.Types.NestedEnum) }, null, new pbr::GeneratedClrTypeInfo[] { new pbr::GeneratedClrTypeInfo(typeof(global::Google.Protobuf.TestProtos.Proto2.TestOneof2.Types.FooGroup), global::Google.Protobuf.TestProtos.Proto2.TestOneof2.Types.FooGroup.Parser, new[]{ "A", "B" }, null, null, null, null),
722 new pbr::GeneratedClrTypeInfo(typeof(global::Google.Protobuf.TestProtos.Proto2.TestOneof2.Types.NestedMessage), global::Google.Protobuf.TestProtos.Proto2.TestOneof2.Types.NestedMessage.Parser, new[]{ "QuxInt", "CorgeInt" }, null, null, null, null)}),
723 new pbr::GeneratedClrTypeInfo(typeof(global::Google.Protobuf.TestProtos.Proto2.TestRequiredOneof), global::Google.Protobuf.TestProtos.Proto2.TestRequiredOneof.Parser, new[]{ "FooInt", "FooString", "FooMessage" }, new[]{ "Foo" }, null, null, new pbr::GeneratedClrTypeInfo[] { new pbr::GeneratedClrTypeInfo(typeof(global::Google.Protobuf.TestProtos.Proto2.TestRequiredOneof.Types.NestedMessage), global::Google.Protobuf.TestProtos.Proto2.TestRequiredOneof.Types.NestedMessage.Parser, new[]{ "RequiredDouble" }, null, null, null, null)}),
Sydney Acksman8b7fb7d2019-03-23 11:41:57 -0500724 new pbr::GeneratedClrTypeInfo(typeof(global::Google.Protobuf.TestProtos.Proto2.TestRequiredMap), global::Google.Protobuf.TestProtos.Proto2.TestRequiredMap.Parser, new[]{ "Foo" }, null, null, null, new pbr::GeneratedClrTypeInfo[] { null, new pbr::GeneratedClrTypeInfo(typeof(global::Google.Protobuf.TestProtos.Proto2.TestRequiredMap.Types.NestedMessage), global::Google.Protobuf.TestProtos.Proto2.TestRequiredMap.Types.NestedMessage.Parser, new[]{ "RequiredInt32" }, null, null, null, null)}),
Sydney Acksman8a57ec82019-03-21 17:36:36 -0500725 new pbr::GeneratedClrTypeInfo(typeof(global::Google.Protobuf.TestProtos.Proto2.TestPackedTypes), global::Google.Protobuf.TestProtos.Proto2.TestPackedTypes.Parser, new[]{ "PackedInt32", "PackedInt64", "PackedUint32", "PackedUint64", "PackedSint32", "PackedSint64", "PackedFixed32", "PackedFixed64", "PackedSfixed32", "PackedSfixed64", "PackedFloat", "PackedDouble", "PackedBool", "PackedEnum" }, null, null, null, null),
726 new pbr::GeneratedClrTypeInfo(typeof(global::Google.Protobuf.TestProtos.Proto2.TestUnpackedTypes), global::Google.Protobuf.TestProtos.Proto2.TestUnpackedTypes.Parser, new[]{ "UnpackedInt32", "UnpackedInt64", "UnpackedUint32", "UnpackedUint64", "UnpackedSint32", "UnpackedSint64", "UnpackedFixed32", "UnpackedFixed64", "UnpackedSfixed32", "UnpackedSfixed64", "UnpackedFloat", "UnpackedDouble", "UnpackedBool", "UnpackedEnum" }, null, null, null, null),
727 new pbr::GeneratedClrTypeInfo(typeof(global::Google.Protobuf.TestProtos.Proto2.TestPackedExtensions), global::Google.Protobuf.TestProtos.Proto2.TestPackedExtensions.Parser, null, null, null, null, null),
728 new pbr::GeneratedClrTypeInfo(typeof(global::Google.Protobuf.TestProtos.Proto2.TestUnpackedExtensions), global::Google.Protobuf.TestProtos.Proto2.TestUnpackedExtensions.Parser, null, null, null, null, null),
729 new pbr::GeneratedClrTypeInfo(typeof(global::Google.Protobuf.TestProtos.Proto2.TestDynamicExtensions), global::Google.Protobuf.TestProtos.Proto2.TestDynamicExtensions.Parser, new[]{ "ScalarExtension", "EnumExtension", "DynamicEnumExtension", "MessageExtension", "DynamicMessageExtension", "RepeatedExtension", "PackedExtension" }, null, new[]{ typeof(global::Google.Protobuf.TestProtos.Proto2.TestDynamicExtensions.Types.DynamicEnumType) }, null, new pbr::GeneratedClrTypeInfo[] { new pbr::GeneratedClrTypeInfo(typeof(global::Google.Protobuf.TestProtos.Proto2.TestDynamicExtensions.Types.DynamicMessageType), global::Google.Protobuf.TestProtos.Proto2.TestDynamicExtensions.Types.DynamicMessageType.Parser, new[]{ "DynamicField" }, null, null, null, null)}),
730 new pbr::GeneratedClrTypeInfo(typeof(global::Google.Protobuf.TestProtos.Proto2.TestRepeatedScalarDifferentTagSizes), global::Google.Protobuf.TestProtos.Proto2.TestRepeatedScalarDifferentTagSizes.Parser, new[]{ "RepeatedFixed32", "RepeatedInt32", "RepeatedFixed64", "RepeatedInt64", "RepeatedFloat", "RepeatedUint64" }, null, null, null, null),
731 new pbr::GeneratedClrTypeInfo(typeof(global::Google.Protobuf.TestProtos.Proto2.TestParsingMerge), global::Google.Protobuf.TestProtos.Proto2.TestParsingMerge.Parser, new[]{ "RequiredAllTypes", "OptionalAllTypes", "RepeatedAllTypes", "OptionalGroup", "RepeatedGroup" }, null, null, new pb::Extension[] { global::Google.Protobuf.TestProtos.Proto2.TestParsingMerge.Extensions.OptionalExt, global::Google.Protobuf.TestProtos.Proto2.TestParsingMerge.Extensions.RepeatedExt }, new pbr::GeneratedClrTypeInfo[] { new pbr::GeneratedClrTypeInfo(typeof(global::Google.Protobuf.TestProtos.Proto2.TestParsingMerge.Types.RepeatedFieldsGenerator), global::Google.Protobuf.TestProtos.Proto2.TestParsingMerge.Types.RepeatedFieldsGenerator.Parser, new[]{ "Field1", "Field2", "Field3", "Group1", "Group2", "Ext1", "Ext2" }, null, null, null, new pbr::GeneratedClrTypeInfo[] { new pbr::GeneratedClrTypeInfo(typeof(global::Google.Protobuf.TestProtos.Proto2.TestParsingMerge.Types.RepeatedFieldsGenerator.Types.Group1), global::Google.Protobuf.TestProtos.Proto2.TestParsingMerge.Types.RepeatedFieldsGenerator.Types.Group1.Parser, new[]{ "Field1" }, null, null, null, null),
732 new pbr::GeneratedClrTypeInfo(typeof(global::Google.Protobuf.TestProtos.Proto2.TestParsingMerge.Types.RepeatedFieldsGenerator.Types.Group2), global::Google.Protobuf.TestProtos.Proto2.TestParsingMerge.Types.RepeatedFieldsGenerator.Types.Group2.Parser, new[]{ "Field1" }, null, null, null, null)}),
733 new pbr::GeneratedClrTypeInfo(typeof(global::Google.Protobuf.TestProtos.Proto2.TestParsingMerge.Types.OptionalGroup), global::Google.Protobuf.TestProtos.Proto2.TestParsingMerge.Types.OptionalGroup.Parser, new[]{ "OptionalGroupAllTypes" }, null, null, null, null),
734 new pbr::GeneratedClrTypeInfo(typeof(global::Google.Protobuf.TestProtos.Proto2.TestParsingMerge.Types.RepeatedGroup), global::Google.Protobuf.TestProtos.Proto2.TestParsingMerge.Types.RepeatedGroup.Parser, new[]{ "RepeatedGroupAllTypes" }, null, null, null, null)}),
735 new pbr::GeneratedClrTypeInfo(typeof(global::Google.Protobuf.TestProtos.Proto2.TestCommentInjectionMessage), global::Google.Protobuf.TestProtos.Proto2.TestCommentInjectionMessage.Parser, new[]{ "A" }, null, null, null, null),
736 new pbr::GeneratedClrTypeInfo(typeof(global::Google.Protobuf.TestProtos.Proto2.FooRequest), global::Google.Protobuf.TestProtos.Proto2.FooRequest.Parser, null, null, null, null, null),
737 new pbr::GeneratedClrTypeInfo(typeof(global::Google.Protobuf.TestProtos.Proto2.FooResponse), global::Google.Protobuf.TestProtos.Proto2.FooResponse.Parser, null, null, null, null, null),
738 new pbr::GeneratedClrTypeInfo(typeof(global::Google.Protobuf.TestProtos.Proto2.FooClientMessage), global::Google.Protobuf.TestProtos.Proto2.FooClientMessage.Parser, null, null, null, null, null),
739 new pbr::GeneratedClrTypeInfo(typeof(global::Google.Protobuf.TestProtos.Proto2.FooServerMessage), global::Google.Protobuf.TestProtos.Proto2.FooServerMessage.Parser, null, null, null, null, null),
740 new pbr::GeneratedClrTypeInfo(typeof(global::Google.Protobuf.TestProtos.Proto2.BarRequest), global::Google.Protobuf.TestProtos.Proto2.BarRequest.Parser, null, null, null, null, null),
741 new pbr::GeneratedClrTypeInfo(typeof(global::Google.Protobuf.TestProtos.Proto2.BarResponse), global::Google.Protobuf.TestProtos.Proto2.BarResponse.Parser, null, null, null, null, null),
742 new pbr::GeneratedClrTypeInfo(typeof(global::Google.Protobuf.TestProtos.Proto2.TestJsonName), global::Google.Protobuf.TestProtos.Proto2.TestJsonName.Parser, new[]{ "FieldName1", "FieldName2", "FieldName3", "FieldName4", "FIELDNAME5", "FieldName6" }, null, null, null, null),
743 new pbr::GeneratedClrTypeInfo(typeof(global::Google.Protobuf.TestProtos.Proto2.TestHugeFieldNumbers), global::Google.Protobuf.TestProtos.Proto2.TestHugeFieldNumbers.Parser, new[]{ "OptionalInt32", "Fixed32", "RepeatedInt32", "PackedInt32", "OptionalEnum", "OptionalString", "OptionalBytes", "OptionalMessage", "OptionalGroup", "StringStringMap", "OneofUint32", "OneofTestAllTypes", "OneofString", "OneofBytes" }, new[]{ "OneofField" }, null, null, new pbr::GeneratedClrTypeInfo[] { new pbr::GeneratedClrTypeInfo(typeof(global::Google.Protobuf.TestProtos.Proto2.TestHugeFieldNumbers.Types.OptionalGroup), global::Google.Protobuf.TestProtos.Proto2.TestHugeFieldNumbers.Types.OptionalGroup.Parser, new[]{ "GroupA" }, null, null, null, null),
744 null, }),
745 new pbr::GeneratedClrTypeInfo(typeof(global::Google.Protobuf.TestProtos.Proto2.TestExtensionInsideTable), global::Google.Protobuf.TestProtos.Proto2.TestExtensionInsideTable.Parser, new[]{ "Field1", "Field2", "Field3", "Field4", "Field6", "Field7", "Field8", "Field9", "Field10" }, null, null, null, null)
746 }));
747 }
748 #endregion
749
750 }
Protobuf Team Bota12b0c02023-01-31 09:58:51 -0800751 /// <summary>Holder for extension identifiers generated from the top level of unittest.proto</summary>
Sydney Acksman8a57ec82019-03-21 17:36:36 -0500752 public static partial class UnittestExtensions {
753 /// <summary>
754 /// Singular
755 /// </summary>
756 public static readonly pb::Extension<global::Google.Protobuf.TestProtos.Proto2.TestAllExtensions, int> OptionalInt32Extension =
757 new pb::Extension<global::Google.Protobuf.TestProtos.Proto2.TestAllExtensions, int>(1, pb::FieldCodec.ForInt32(8, 0));
758 public static readonly pb::Extension<global::Google.Protobuf.TestProtos.Proto2.TestAllExtensions, long> OptionalInt64Extension =
759 new pb::Extension<global::Google.Protobuf.TestProtos.Proto2.TestAllExtensions, long>(2, pb::FieldCodec.ForInt64(16, 0L));
760 public static readonly pb::Extension<global::Google.Protobuf.TestProtos.Proto2.TestAllExtensions, uint> OptionalUint32Extension =
761 new pb::Extension<global::Google.Protobuf.TestProtos.Proto2.TestAllExtensions, uint>(3, pb::FieldCodec.ForUInt32(24, 0));
762 public static readonly pb::Extension<global::Google.Protobuf.TestProtos.Proto2.TestAllExtensions, ulong> OptionalUint64Extension =
763 new pb::Extension<global::Google.Protobuf.TestProtos.Proto2.TestAllExtensions, ulong>(4, pb::FieldCodec.ForUInt64(32, 0UL));
764 public static readonly pb::Extension<global::Google.Protobuf.TestProtos.Proto2.TestAllExtensions, int> OptionalSint32Extension =
765 new pb::Extension<global::Google.Protobuf.TestProtos.Proto2.TestAllExtensions, int>(5, pb::FieldCodec.ForSInt32(40, 0));
766 public static readonly pb::Extension<global::Google.Protobuf.TestProtos.Proto2.TestAllExtensions, long> OptionalSint64Extension =
767 new pb::Extension<global::Google.Protobuf.TestProtos.Proto2.TestAllExtensions, long>(6, pb::FieldCodec.ForSInt64(48, 0L));
768 public static readonly pb::Extension<global::Google.Protobuf.TestProtos.Proto2.TestAllExtensions, uint> OptionalFixed32Extension =
769 new pb::Extension<global::Google.Protobuf.TestProtos.Proto2.TestAllExtensions, uint>(7, pb::FieldCodec.ForFixed32(61, 0));
770 public static readonly pb::Extension<global::Google.Protobuf.TestProtos.Proto2.TestAllExtensions, ulong> OptionalFixed64Extension =
771 new pb::Extension<global::Google.Protobuf.TestProtos.Proto2.TestAllExtensions, ulong>(8, pb::FieldCodec.ForFixed64(65, 0UL));
772 public static readonly pb::Extension<global::Google.Protobuf.TestProtos.Proto2.TestAllExtensions, int> OptionalSfixed32Extension =
773 new pb::Extension<global::Google.Protobuf.TestProtos.Proto2.TestAllExtensions, int>(9, pb::FieldCodec.ForSFixed32(77, 0));
774 public static readonly pb::Extension<global::Google.Protobuf.TestProtos.Proto2.TestAllExtensions, long> OptionalSfixed64Extension =
775 new pb::Extension<global::Google.Protobuf.TestProtos.Proto2.TestAllExtensions, long>(10, pb::FieldCodec.ForSFixed64(81, 0L));
776 public static readonly pb::Extension<global::Google.Protobuf.TestProtos.Proto2.TestAllExtensions, float> OptionalFloatExtension =
777 new pb::Extension<global::Google.Protobuf.TestProtos.Proto2.TestAllExtensions, float>(11, pb::FieldCodec.ForFloat(93, 0F));
778 public static readonly pb::Extension<global::Google.Protobuf.TestProtos.Proto2.TestAllExtensions, double> OptionalDoubleExtension =
779 new pb::Extension<global::Google.Protobuf.TestProtos.Proto2.TestAllExtensions, double>(12, pb::FieldCodec.ForDouble(97, 0D));
780 public static readonly pb::Extension<global::Google.Protobuf.TestProtos.Proto2.TestAllExtensions, bool> OptionalBoolExtension =
781 new pb::Extension<global::Google.Protobuf.TestProtos.Proto2.TestAllExtensions, bool>(13, pb::FieldCodec.ForBool(104, false));
782 public static readonly pb::Extension<global::Google.Protobuf.TestProtos.Proto2.TestAllExtensions, string> OptionalStringExtension =
783 new pb::Extension<global::Google.Protobuf.TestProtos.Proto2.TestAllExtensions, string>(14, pb::FieldCodec.ForString(114, ""));
784 public static readonly pb::Extension<global::Google.Protobuf.TestProtos.Proto2.TestAllExtensions, pb::ByteString> OptionalBytesExtension =
785 new pb::Extension<global::Google.Protobuf.TestProtos.Proto2.TestAllExtensions, pb::ByteString>(15, pb::FieldCodec.ForBytes(122, pb::ByteString.Empty));
786 public static readonly pb::Extension<global::Google.Protobuf.TestProtos.Proto2.TestAllExtensions, global::Google.Protobuf.TestProtos.Proto2.OptionalGroup_extension> OptionalGroupExtension =
787 new pb::Extension<global::Google.Protobuf.TestProtos.Proto2.TestAllExtensions, global::Google.Protobuf.TestProtos.Proto2.OptionalGroup_extension>(16, pb::FieldCodec.ForGroup(131, 132, global::Google.Protobuf.TestProtos.Proto2.OptionalGroup_extension.Parser));
788 public static readonly pb::Extension<global::Google.Protobuf.TestProtos.Proto2.TestAllExtensions, global::Google.Protobuf.TestProtos.Proto2.TestAllTypes.Types.NestedMessage> OptionalNestedMessageExtension =
789 new pb::Extension<global::Google.Protobuf.TestProtos.Proto2.TestAllExtensions, global::Google.Protobuf.TestProtos.Proto2.TestAllTypes.Types.NestedMessage>(18, pb::FieldCodec.ForMessage(146, global::Google.Protobuf.TestProtos.Proto2.TestAllTypes.Types.NestedMessage.Parser));
790 public static readonly pb::Extension<global::Google.Protobuf.TestProtos.Proto2.TestAllExtensions, global::Google.Protobuf.TestProtos.Proto2.ForeignMessage> OptionalForeignMessageExtension =
791 new pb::Extension<global::Google.Protobuf.TestProtos.Proto2.TestAllExtensions, global::Google.Protobuf.TestProtos.Proto2.ForeignMessage>(19, pb::FieldCodec.ForMessage(154, global::Google.Protobuf.TestProtos.Proto2.ForeignMessage.Parser));
792 public static readonly pb::Extension<global::Google.Protobuf.TestProtos.Proto2.TestAllExtensions, global::Google.Protobuf.TestProtos.Proto2.ImportMessage> OptionalImportMessageExtension =
793 new pb::Extension<global::Google.Protobuf.TestProtos.Proto2.TestAllExtensions, global::Google.Protobuf.TestProtos.Proto2.ImportMessage>(20, pb::FieldCodec.ForMessage(162, global::Google.Protobuf.TestProtos.Proto2.ImportMessage.Parser));
794 public static readonly pb::Extension<global::Google.Protobuf.TestProtos.Proto2.TestAllExtensions, global::Google.Protobuf.TestProtos.Proto2.TestAllTypes.Types.NestedEnum> OptionalNestedEnumExtension =
795 new pb::Extension<global::Google.Protobuf.TestProtos.Proto2.TestAllExtensions, global::Google.Protobuf.TestProtos.Proto2.TestAllTypes.Types.NestedEnum>(21, pb::FieldCodec.ForEnum(168, x => (int) x, x => (global::Google.Protobuf.TestProtos.Proto2.TestAllTypes.Types.NestedEnum) x, global::Google.Protobuf.TestProtos.Proto2.TestAllTypes.Types.NestedEnum.Foo));
796 public static readonly pb::Extension<global::Google.Protobuf.TestProtos.Proto2.TestAllExtensions, global::Google.Protobuf.TestProtos.Proto2.ForeignEnum> OptionalForeignEnumExtension =
797 new pb::Extension<global::Google.Protobuf.TestProtos.Proto2.TestAllExtensions, global::Google.Protobuf.TestProtos.Proto2.ForeignEnum>(22, pb::FieldCodec.ForEnum(176, x => (int) x, x => (global::Google.Protobuf.TestProtos.Proto2.ForeignEnum) x, global::Google.Protobuf.TestProtos.Proto2.ForeignEnum.ForeignFoo));
798 public static readonly pb::Extension<global::Google.Protobuf.TestProtos.Proto2.TestAllExtensions, global::Google.Protobuf.TestProtos.Proto2.ImportEnum> OptionalImportEnumExtension =
799 new pb::Extension<global::Google.Protobuf.TestProtos.Proto2.TestAllExtensions, global::Google.Protobuf.TestProtos.Proto2.ImportEnum>(23, pb::FieldCodec.ForEnum(184, x => (int) x, x => (global::Google.Protobuf.TestProtos.Proto2.ImportEnum) x, global::Google.Protobuf.TestProtos.Proto2.ImportEnum.ImportFoo));
800 public static readonly pb::Extension<global::Google.Protobuf.TestProtos.Proto2.TestAllExtensions, string> OptionalStringPieceExtension =
801 new pb::Extension<global::Google.Protobuf.TestProtos.Proto2.TestAllExtensions, string>(24, pb::FieldCodec.ForString(194, ""));
802 public static readonly pb::Extension<global::Google.Protobuf.TestProtos.Proto2.TestAllExtensions, string> OptionalCordExtension =
803 new pb::Extension<global::Google.Protobuf.TestProtos.Proto2.TestAllExtensions, string>(25, pb::FieldCodec.ForString(202, ""));
804 public static readonly pb::Extension<global::Google.Protobuf.TestProtos.Proto2.TestAllExtensions, global::Google.Protobuf.TestProtos.Proto2.PublicImportMessage> OptionalPublicImportMessageExtension =
805 new pb::Extension<global::Google.Protobuf.TestProtos.Proto2.TestAllExtensions, global::Google.Protobuf.TestProtos.Proto2.PublicImportMessage>(26, pb::FieldCodec.ForMessage(210, global::Google.Protobuf.TestProtos.Proto2.PublicImportMessage.Parser));
806 public static readonly pb::Extension<global::Google.Protobuf.TestProtos.Proto2.TestAllExtensions, global::Google.Protobuf.TestProtos.Proto2.TestAllTypes.Types.NestedMessage> OptionalLazyMessageExtension =
807 new pb::Extension<global::Google.Protobuf.TestProtos.Proto2.TestAllExtensions, global::Google.Protobuf.TestProtos.Proto2.TestAllTypes.Types.NestedMessage>(27, pb::FieldCodec.ForMessage(218, global::Google.Protobuf.TestProtos.Proto2.TestAllTypes.Types.NestedMessage.Parser));
808 /// <summary>
809 /// Repeated
810 /// </summary>
811 public static readonly pb::RepeatedExtension<global::Google.Protobuf.TestProtos.Proto2.TestAllExtensions, int> RepeatedInt32Extension =
812 new pb::RepeatedExtension<global::Google.Protobuf.TestProtos.Proto2.TestAllExtensions, int>(31, pb::FieldCodec.ForInt32(248));
813 public static readonly pb::RepeatedExtension<global::Google.Protobuf.TestProtos.Proto2.TestAllExtensions, long> RepeatedInt64Extension =
814 new pb::RepeatedExtension<global::Google.Protobuf.TestProtos.Proto2.TestAllExtensions, long>(32, pb::FieldCodec.ForInt64(256));
815 public static readonly pb::RepeatedExtension<global::Google.Protobuf.TestProtos.Proto2.TestAllExtensions, uint> RepeatedUint32Extension =
816 new pb::RepeatedExtension<global::Google.Protobuf.TestProtos.Proto2.TestAllExtensions, uint>(33, pb::FieldCodec.ForUInt32(264));
817 public static readonly pb::RepeatedExtension<global::Google.Protobuf.TestProtos.Proto2.TestAllExtensions, ulong> RepeatedUint64Extension =
818 new pb::RepeatedExtension<global::Google.Protobuf.TestProtos.Proto2.TestAllExtensions, ulong>(34, pb::FieldCodec.ForUInt64(272));
819 public static readonly pb::RepeatedExtension<global::Google.Protobuf.TestProtos.Proto2.TestAllExtensions, int> RepeatedSint32Extension =
820 new pb::RepeatedExtension<global::Google.Protobuf.TestProtos.Proto2.TestAllExtensions, int>(35, pb::FieldCodec.ForSInt32(280));
821 public static readonly pb::RepeatedExtension<global::Google.Protobuf.TestProtos.Proto2.TestAllExtensions, long> RepeatedSint64Extension =
822 new pb::RepeatedExtension<global::Google.Protobuf.TestProtos.Proto2.TestAllExtensions, long>(36, pb::FieldCodec.ForSInt64(288));
823 public static readonly pb::RepeatedExtension<global::Google.Protobuf.TestProtos.Proto2.TestAllExtensions, uint> RepeatedFixed32Extension =
824 new pb::RepeatedExtension<global::Google.Protobuf.TestProtos.Proto2.TestAllExtensions, uint>(37, pb::FieldCodec.ForFixed32(301));
825 public static readonly pb::RepeatedExtension<global::Google.Protobuf.TestProtos.Proto2.TestAllExtensions, ulong> RepeatedFixed64Extension =
826 new pb::RepeatedExtension<global::Google.Protobuf.TestProtos.Proto2.TestAllExtensions, ulong>(38, pb::FieldCodec.ForFixed64(305));
827 public static readonly pb::RepeatedExtension<global::Google.Protobuf.TestProtos.Proto2.TestAllExtensions, int> RepeatedSfixed32Extension =
828 new pb::RepeatedExtension<global::Google.Protobuf.TestProtos.Proto2.TestAllExtensions, int>(39, pb::FieldCodec.ForSFixed32(317));
829 public static readonly pb::RepeatedExtension<global::Google.Protobuf.TestProtos.Proto2.TestAllExtensions, long> RepeatedSfixed64Extension =
830 new pb::RepeatedExtension<global::Google.Protobuf.TestProtos.Proto2.TestAllExtensions, long>(40, pb::FieldCodec.ForSFixed64(321));
831 public static readonly pb::RepeatedExtension<global::Google.Protobuf.TestProtos.Proto2.TestAllExtensions, float> RepeatedFloatExtension =
832 new pb::RepeatedExtension<global::Google.Protobuf.TestProtos.Proto2.TestAllExtensions, float>(41, pb::FieldCodec.ForFloat(333));
833 public static readonly pb::RepeatedExtension<global::Google.Protobuf.TestProtos.Proto2.TestAllExtensions, double> RepeatedDoubleExtension =
834 new pb::RepeatedExtension<global::Google.Protobuf.TestProtos.Proto2.TestAllExtensions, double>(42, pb::FieldCodec.ForDouble(337));
835 public static readonly pb::RepeatedExtension<global::Google.Protobuf.TestProtos.Proto2.TestAllExtensions, bool> RepeatedBoolExtension =
836 new pb::RepeatedExtension<global::Google.Protobuf.TestProtos.Proto2.TestAllExtensions, bool>(43, pb::FieldCodec.ForBool(344));
837 public static readonly pb::RepeatedExtension<global::Google.Protobuf.TestProtos.Proto2.TestAllExtensions, string> RepeatedStringExtension =
838 new pb::RepeatedExtension<global::Google.Protobuf.TestProtos.Proto2.TestAllExtensions, string>(44, pb::FieldCodec.ForString(354));
839 public static readonly pb::RepeatedExtension<global::Google.Protobuf.TestProtos.Proto2.TestAllExtensions, pb::ByteString> RepeatedBytesExtension =
840 new pb::RepeatedExtension<global::Google.Protobuf.TestProtos.Proto2.TestAllExtensions, pb::ByteString>(45, pb::FieldCodec.ForBytes(362));
841 public static readonly pb::RepeatedExtension<global::Google.Protobuf.TestProtos.Proto2.TestAllExtensions, global::Google.Protobuf.TestProtos.Proto2.RepeatedGroup_extension> RepeatedGroupExtension =
842 new pb::RepeatedExtension<global::Google.Protobuf.TestProtos.Proto2.TestAllExtensions, global::Google.Protobuf.TestProtos.Proto2.RepeatedGroup_extension>(46, pb::FieldCodec.ForGroup(371, 372, global::Google.Protobuf.TestProtos.Proto2.RepeatedGroup_extension.Parser));
843 public static readonly pb::RepeatedExtension<global::Google.Protobuf.TestProtos.Proto2.TestAllExtensions, global::Google.Protobuf.TestProtos.Proto2.TestAllTypes.Types.NestedMessage> RepeatedNestedMessageExtension =
844 new pb::RepeatedExtension<global::Google.Protobuf.TestProtos.Proto2.TestAllExtensions, global::Google.Protobuf.TestProtos.Proto2.TestAllTypes.Types.NestedMessage>(48, pb::FieldCodec.ForMessage(386, global::Google.Protobuf.TestProtos.Proto2.TestAllTypes.Types.NestedMessage.Parser));
845 public static readonly pb::RepeatedExtension<global::Google.Protobuf.TestProtos.Proto2.TestAllExtensions, global::Google.Protobuf.TestProtos.Proto2.ForeignMessage> RepeatedForeignMessageExtension =
846 new pb::RepeatedExtension<global::Google.Protobuf.TestProtos.Proto2.TestAllExtensions, global::Google.Protobuf.TestProtos.Proto2.ForeignMessage>(49, pb::FieldCodec.ForMessage(394, global::Google.Protobuf.TestProtos.Proto2.ForeignMessage.Parser));
847 public static readonly pb::RepeatedExtension<global::Google.Protobuf.TestProtos.Proto2.TestAllExtensions, global::Google.Protobuf.TestProtos.Proto2.ImportMessage> RepeatedImportMessageExtension =
848 new pb::RepeatedExtension<global::Google.Protobuf.TestProtos.Proto2.TestAllExtensions, global::Google.Protobuf.TestProtos.Proto2.ImportMessage>(50, pb::FieldCodec.ForMessage(402, global::Google.Protobuf.TestProtos.Proto2.ImportMessage.Parser));
849 public static readonly pb::RepeatedExtension<global::Google.Protobuf.TestProtos.Proto2.TestAllExtensions, global::Google.Protobuf.TestProtos.Proto2.TestAllTypes.Types.NestedEnum> RepeatedNestedEnumExtension =
850 new pb::RepeatedExtension<global::Google.Protobuf.TestProtos.Proto2.TestAllExtensions, global::Google.Protobuf.TestProtos.Proto2.TestAllTypes.Types.NestedEnum>(51, pb::FieldCodec.ForEnum(408, x => (int) x, x => (global::Google.Protobuf.TestProtos.Proto2.TestAllTypes.Types.NestedEnum) x));
851 public static readonly pb::RepeatedExtension<global::Google.Protobuf.TestProtos.Proto2.TestAllExtensions, global::Google.Protobuf.TestProtos.Proto2.ForeignEnum> RepeatedForeignEnumExtension =
852 new pb::RepeatedExtension<global::Google.Protobuf.TestProtos.Proto2.TestAllExtensions, global::Google.Protobuf.TestProtos.Proto2.ForeignEnum>(52, pb::FieldCodec.ForEnum(416, x => (int) x, x => (global::Google.Protobuf.TestProtos.Proto2.ForeignEnum) x));
853 public static readonly pb::RepeatedExtension<global::Google.Protobuf.TestProtos.Proto2.TestAllExtensions, global::Google.Protobuf.TestProtos.Proto2.ImportEnum> RepeatedImportEnumExtension =
854 new pb::RepeatedExtension<global::Google.Protobuf.TestProtos.Proto2.TestAllExtensions, global::Google.Protobuf.TestProtos.Proto2.ImportEnum>(53, pb::FieldCodec.ForEnum(424, x => (int) x, x => (global::Google.Protobuf.TestProtos.Proto2.ImportEnum) x));
855 public static readonly pb::RepeatedExtension<global::Google.Protobuf.TestProtos.Proto2.TestAllExtensions, string> RepeatedStringPieceExtension =
856 new pb::RepeatedExtension<global::Google.Protobuf.TestProtos.Proto2.TestAllExtensions, string>(54, pb::FieldCodec.ForString(434));
857 public static readonly pb::RepeatedExtension<global::Google.Protobuf.TestProtos.Proto2.TestAllExtensions, string> RepeatedCordExtension =
858 new pb::RepeatedExtension<global::Google.Protobuf.TestProtos.Proto2.TestAllExtensions, string>(55, pb::FieldCodec.ForString(442));
859 public static readonly pb::RepeatedExtension<global::Google.Protobuf.TestProtos.Proto2.TestAllExtensions, global::Google.Protobuf.TestProtos.Proto2.TestAllTypes.Types.NestedMessage> RepeatedLazyMessageExtension =
860 new pb::RepeatedExtension<global::Google.Protobuf.TestProtos.Proto2.TestAllExtensions, global::Google.Protobuf.TestProtos.Proto2.TestAllTypes.Types.NestedMessage>(57, pb::FieldCodec.ForMessage(458, global::Google.Protobuf.TestProtos.Proto2.TestAllTypes.Types.NestedMessage.Parser));
861 /// <summary>
862 /// Singular with defaults
863 /// </summary>
864 public static readonly pb::Extension<global::Google.Protobuf.TestProtos.Proto2.TestAllExtensions, int> DefaultInt32Extension =
865 new pb::Extension<global::Google.Protobuf.TestProtos.Proto2.TestAllExtensions, int>(61, pb::FieldCodec.ForInt32(488, 41));
866 public static readonly pb::Extension<global::Google.Protobuf.TestProtos.Proto2.TestAllExtensions, long> DefaultInt64Extension =
867 new pb::Extension<global::Google.Protobuf.TestProtos.Proto2.TestAllExtensions, long>(62, pb::FieldCodec.ForInt64(496, 42L));
868 public static readonly pb::Extension<global::Google.Protobuf.TestProtos.Proto2.TestAllExtensions, uint> DefaultUint32Extension =
869 new pb::Extension<global::Google.Protobuf.TestProtos.Proto2.TestAllExtensions, uint>(63, pb::FieldCodec.ForUInt32(504, 43));
870 public static readonly pb::Extension<global::Google.Protobuf.TestProtos.Proto2.TestAllExtensions, ulong> DefaultUint64Extension =
871 new pb::Extension<global::Google.Protobuf.TestProtos.Proto2.TestAllExtensions, ulong>(64, pb::FieldCodec.ForUInt64(512, 44UL));
872 public static readonly pb::Extension<global::Google.Protobuf.TestProtos.Proto2.TestAllExtensions, int> DefaultSint32Extension =
873 new pb::Extension<global::Google.Protobuf.TestProtos.Proto2.TestAllExtensions, int>(65, pb::FieldCodec.ForSInt32(520, -45));
874 public static readonly pb::Extension<global::Google.Protobuf.TestProtos.Proto2.TestAllExtensions, long> DefaultSint64Extension =
875 new pb::Extension<global::Google.Protobuf.TestProtos.Proto2.TestAllExtensions, long>(66, pb::FieldCodec.ForSInt64(528, 46L));
876 public static readonly pb::Extension<global::Google.Protobuf.TestProtos.Proto2.TestAllExtensions, uint> DefaultFixed32Extension =
877 new pb::Extension<global::Google.Protobuf.TestProtos.Proto2.TestAllExtensions, uint>(67, pb::FieldCodec.ForFixed32(541, 47));
878 public static readonly pb::Extension<global::Google.Protobuf.TestProtos.Proto2.TestAllExtensions, ulong> DefaultFixed64Extension =
879 new pb::Extension<global::Google.Protobuf.TestProtos.Proto2.TestAllExtensions, ulong>(68, pb::FieldCodec.ForFixed64(545, 48UL));
880 public static readonly pb::Extension<global::Google.Protobuf.TestProtos.Proto2.TestAllExtensions, int> DefaultSfixed32Extension =
881 new pb::Extension<global::Google.Protobuf.TestProtos.Proto2.TestAllExtensions, int>(69, pb::FieldCodec.ForSFixed32(557, 49));
882 public static readonly pb::Extension<global::Google.Protobuf.TestProtos.Proto2.TestAllExtensions, long> DefaultSfixed64Extension =
883 new pb::Extension<global::Google.Protobuf.TestProtos.Proto2.TestAllExtensions, long>(70, pb::FieldCodec.ForSFixed64(561, -50L));
884 public static readonly pb::Extension<global::Google.Protobuf.TestProtos.Proto2.TestAllExtensions, float> DefaultFloatExtension =
885 new pb::Extension<global::Google.Protobuf.TestProtos.Proto2.TestAllExtensions, float>(71, pb::FieldCodec.ForFloat(573, 51.5F));
886 public static readonly pb::Extension<global::Google.Protobuf.TestProtos.Proto2.TestAllExtensions, double> DefaultDoubleExtension =
887 new pb::Extension<global::Google.Protobuf.TestProtos.Proto2.TestAllExtensions, double>(72, pb::FieldCodec.ForDouble(577, 52000D));
888 public static readonly pb::Extension<global::Google.Protobuf.TestProtos.Proto2.TestAllExtensions, bool> DefaultBoolExtension =
889 new pb::Extension<global::Google.Protobuf.TestProtos.Proto2.TestAllExtensions, bool>(73, pb::FieldCodec.ForBool(584, true));
890 public static readonly pb::Extension<global::Google.Protobuf.TestProtos.Proto2.TestAllExtensions, string> DefaultStringExtension =
Sydney Acksmane119a432019-10-30 13:02:46 -0500891 new pb::Extension<global::Google.Protobuf.TestProtos.Proto2.TestAllExtensions, string>(74, pb::FieldCodec.ForString(594, global::System.Text.Encoding.UTF8.GetString(global::System.Convert.FromBase64String("aGVsbG8="), 0, 5)));
Sydney Acksman8a57ec82019-03-21 17:36:36 -0500892 public static readonly pb::Extension<global::Google.Protobuf.TestProtos.Proto2.TestAllExtensions, pb::ByteString> DefaultBytesExtension =
893 new pb::Extension<global::Google.Protobuf.TestProtos.Proto2.TestAllExtensions, pb::ByteString>(75, pb::FieldCodec.ForBytes(602, pb::ByteString.FromBase64("d29ybGQ=")));
894 public static readonly pb::Extension<global::Google.Protobuf.TestProtos.Proto2.TestAllExtensions, global::Google.Protobuf.TestProtos.Proto2.TestAllTypes.Types.NestedEnum> DefaultNestedEnumExtension =
895 new pb::Extension<global::Google.Protobuf.TestProtos.Proto2.TestAllExtensions, global::Google.Protobuf.TestProtos.Proto2.TestAllTypes.Types.NestedEnum>(81, pb::FieldCodec.ForEnum(648, x => (int) x, x => (global::Google.Protobuf.TestProtos.Proto2.TestAllTypes.Types.NestedEnum) x, global::Google.Protobuf.TestProtos.Proto2.TestAllTypes.Types.NestedEnum.Bar));
896 public static readonly pb::Extension<global::Google.Protobuf.TestProtos.Proto2.TestAllExtensions, global::Google.Protobuf.TestProtos.Proto2.ForeignEnum> DefaultForeignEnumExtension =
897 new pb::Extension<global::Google.Protobuf.TestProtos.Proto2.TestAllExtensions, global::Google.Protobuf.TestProtos.Proto2.ForeignEnum>(82, pb::FieldCodec.ForEnum(656, x => (int) x, x => (global::Google.Protobuf.TestProtos.Proto2.ForeignEnum) x, global::Google.Protobuf.TestProtos.Proto2.ForeignEnum.ForeignBar));
898 public static readonly pb::Extension<global::Google.Protobuf.TestProtos.Proto2.TestAllExtensions, global::Google.Protobuf.TestProtos.Proto2.ImportEnum> DefaultImportEnumExtension =
899 new pb::Extension<global::Google.Protobuf.TestProtos.Proto2.TestAllExtensions, global::Google.Protobuf.TestProtos.Proto2.ImportEnum>(83, pb::FieldCodec.ForEnum(664, x => (int) x, x => (global::Google.Protobuf.TestProtos.Proto2.ImportEnum) x, global::Google.Protobuf.TestProtos.Proto2.ImportEnum.ImportBar));
900 public static readonly pb::Extension<global::Google.Protobuf.TestProtos.Proto2.TestAllExtensions, string> DefaultStringPieceExtension =
Sydney Acksmane119a432019-10-30 13:02:46 -0500901 new pb::Extension<global::Google.Protobuf.TestProtos.Proto2.TestAllExtensions, string>(84, pb::FieldCodec.ForString(674, global::System.Text.Encoding.UTF8.GetString(global::System.Convert.FromBase64String("YWJj"), 0, 3)));
Sydney Acksman8a57ec82019-03-21 17:36:36 -0500902 public static readonly pb::Extension<global::Google.Protobuf.TestProtos.Proto2.TestAllExtensions, string> DefaultCordExtension =
Sydney Acksmane119a432019-10-30 13:02:46 -0500903 new pb::Extension<global::Google.Protobuf.TestProtos.Proto2.TestAllExtensions, string>(85, pb::FieldCodec.ForString(682, global::System.Text.Encoding.UTF8.GetString(global::System.Convert.FromBase64String("MTIz"), 0, 3)));
Sydney Acksman8a57ec82019-03-21 17:36:36 -0500904 /// <summary>
905 /// For oneof test
906 /// </summary>
907 public static readonly pb::Extension<global::Google.Protobuf.TestProtos.Proto2.TestAllExtensions, uint> OneofUint32Extension =
908 new pb::Extension<global::Google.Protobuf.TestProtos.Proto2.TestAllExtensions, uint>(111, pb::FieldCodec.ForUInt32(888, 0));
909 public static readonly pb::Extension<global::Google.Protobuf.TestProtos.Proto2.TestAllExtensions, global::Google.Protobuf.TestProtos.Proto2.TestAllTypes.Types.NestedMessage> OneofNestedMessageExtension =
910 new pb::Extension<global::Google.Protobuf.TestProtos.Proto2.TestAllExtensions, global::Google.Protobuf.TestProtos.Proto2.TestAllTypes.Types.NestedMessage>(112, pb::FieldCodec.ForMessage(898, global::Google.Protobuf.TestProtos.Proto2.TestAllTypes.Types.NestedMessage.Parser));
911 public static readonly pb::Extension<global::Google.Protobuf.TestProtos.Proto2.TestAllExtensions, string> OneofStringExtension =
912 new pb::Extension<global::Google.Protobuf.TestProtos.Proto2.TestAllExtensions, string>(113, pb::FieldCodec.ForString(906, ""));
913 public static readonly pb::Extension<global::Google.Protobuf.TestProtos.Proto2.TestAllExtensions, pb::ByteString> OneofBytesExtension =
914 new pb::Extension<global::Google.Protobuf.TestProtos.Proto2.TestAllExtensions, pb::ByteString>(114, pb::FieldCodec.ForBytes(914, pb::ByteString.Empty));
915 public static readonly pb::Extension<global::Google.Protobuf.TestProtos.Proto2.TestFieldOrderings, string> MyExtensionString =
916 new pb::Extension<global::Google.Protobuf.TestProtos.Proto2.TestFieldOrderings, string>(50, pb::FieldCodec.ForString(402, ""));
917 public static readonly pb::Extension<global::Google.Protobuf.TestProtos.Proto2.TestFieldOrderings, int> MyExtensionInt =
918 new pb::Extension<global::Google.Protobuf.TestProtos.Proto2.TestFieldOrderings, int>(5, pb::FieldCodec.ForInt32(40, 0));
919 public static readonly pb::RepeatedExtension<global::Google.Protobuf.TestProtos.Proto2.TestPackedExtensions, int> PackedInt32Extension =
920 new pb::RepeatedExtension<global::Google.Protobuf.TestProtos.Proto2.TestPackedExtensions, int>(90, pb::FieldCodec.ForInt32(722));
921 public static readonly pb::RepeatedExtension<global::Google.Protobuf.TestProtos.Proto2.TestPackedExtensions, long> PackedInt64Extension =
922 new pb::RepeatedExtension<global::Google.Protobuf.TestProtos.Proto2.TestPackedExtensions, long>(91, pb::FieldCodec.ForInt64(730));
923 public static readonly pb::RepeatedExtension<global::Google.Protobuf.TestProtos.Proto2.TestPackedExtensions, uint> PackedUint32Extension =
924 new pb::RepeatedExtension<global::Google.Protobuf.TestProtos.Proto2.TestPackedExtensions, uint>(92, pb::FieldCodec.ForUInt32(738));
925 public static readonly pb::RepeatedExtension<global::Google.Protobuf.TestProtos.Proto2.TestPackedExtensions, ulong> PackedUint64Extension =
926 new pb::RepeatedExtension<global::Google.Protobuf.TestProtos.Proto2.TestPackedExtensions, ulong>(93, pb::FieldCodec.ForUInt64(746));
927 public static readonly pb::RepeatedExtension<global::Google.Protobuf.TestProtos.Proto2.TestPackedExtensions, int> PackedSint32Extension =
928 new pb::RepeatedExtension<global::Google.Protobuf.TestProtos.Proto2.TestPackedExtensions, int>(94, pb::FieldCodec.ForSInt32(754));
929 public static readonly pb::RepeatedExtension<global::Google.Protobuf.TestProtos.Proto2.TestPackedExtensions, long> PackedSint64Extension =
930 new pb::RepeatedExtension<global::Google.Protobuf.TestProtos.Proto2.TestPackedExtensions, long>(95, pb::FieldCodec.ForSInt64(762));
931 public static readonly pb::RepeatedExtension<global::Google.Protobuf.TestProtos.Proto2.TestPackedExtensions, uint> PackedFixed32Extension =
932 new pb::RepeatedExtension<global::Google.Protobuf.TestProtos.Proto2.TestPackedExtensions, uint>(96, pb::FieldCodec.ForFixed32(770));
933 public static readonly pb::RepeatedExtension<global::Google.Protobuf.TestProtos.Proto2.TestPackedExtensions, ulong> PackedFixed64Extension =
934 new pb::RepeatedExtension<global::Google.Protobuf.TestProtos.Proto2.TestPackedExtensions, ulong>(97, pb::FieldCodec.ForFixed64(778));
935 public static readonly pb::RepeatedExtension<global::Google.Protobuf.TestProtos.Proto2.TestPackedExtensions, int> PackedSfixed32Extension =
936 new pb::RepeatedExtension<global::Google.Protobuf.TestProtos.Proto2.TestPackedExtensions, int>(98, pb::FieldCodec.ForSFixed32(786));
937 public static readonly pb::RepeatedExtension<global::Google.Protobuf.TestProtos.Proto2.TestPackedExtensions, long> PackedSfixed64Extension =
938 new pb::RepeatedExtension<global::Google.Protobuf.TestProtos.Proto2.TestPackedExtensions, long>(99, pb::FieldCodec.ForSFixed64(794));
939 public static readonly pb::RepeatedExtension<global::Google.Protobuf.TestProtos.Proto2.TestPackedExtensions, float> PackedFloatExtension =
940 new pb::RepeatedExtension<global::Google.Protobuf.TestProtos.Proto2.TestPackedExtensions, float>(100, pb::FieldCodec.ForFloat(802));
941 public static readonly pb::RepeatedExtension<global::Google.Protobuf.TestProtos.Proto2.TestPackedExtensions, double> PackedDoubleExtension =
942 new pb::RepeatedExtension<global::Google.Protobuf.TestProtos.Proto2.TestPackedExtensions, double>(101, pb::FieldCodec.ForDouble(810));
943 public static readonly pb::RepeatedExtension<global::Google.Protobuf.TestProtos.Proto2.TestPackedExtensions, bool> PackedBoolExtension =
944 new pb::RepeatedExtension<global::Google.Protobuf.TestProtos.Proto2.TestPackedExtensions, bool>(102, pb::FieldCodec.ForBool(818));
945 public static readonly pb::RepeatedExtension<global::Google.Protobuf.TestProtos.Proto2.TestPackedExtensions, global::Google.Protobuf.TestProtos.Proto2.ForeignEnum> PackedEnumExtension =
946 new pb::RepeatedExtension<global::Google.Protobuf.TestProtos.Proto2.TestPackedExtensions, global::Google.Protobuf.TestProtos.Proto2.ForeignEnum>(103, pb::FieldCodec.ForEnum(826, x => (int) x, x => (global::Google.Protobuf.TestProtos.Proto2.ForeignEnum) x));
947 public static readonly pb::RepeatedExtension<global::Google.Protobuf.TestProtos.Proto2.TestUnpackedExtensions, int> UnpackedInt32Extension =
948 new pb::RepeatedExtension<global::Google.Protobuf.TestProtos.Proto2.TestUnpackedExtensions, int>(90, pb::FieldCodec.ForInt32(720));
949 public static readonly pb::RepeatedExtension<global::Google.Protobuf.TestProtos.Proto2.TestUnpackedExtensions, long> UnpackedInt64Extension =
950 new pb::RepeatedExtension<global::Google.Protobuf.TestProtos.Proto2.TestUnpackedExtensions, long>(91, pb::FieldCodec.ForInt64(728));
951 public static readonly pb::RepeatedExtension<global::Google.Protobuf.TestProtos.Proto2.TestUnpackedExtensions, uint> UnpackedUint32Extension =
952 new pb::RepeatedExtension<global::Google.Protobuf.TestProtos.Proto2.TestUnpackedExtensions, uint>(92, pb::FieldCodec.ForUInt32(736));
953 public static readonly pb::RepeatedExtension<global::Google.Protobuf.TestProtos.Proto2.TestUnpackedExtensions, ulong> UnpackedUint64Extension =
954 new pb::RepeatedExtension<global::Google.Protobuf.TestProtos.Proto2.TestUnpackedExtensions, ulong>(93, pb::FieldCodec.ForUInt64(744));
955 public static readonly pb::RepeatedExtension<global::Google.Protobuf.TestProtos.Proto2.TestUnpackedExtensions, int> UnpackedSint32Extension =
956 new pb::RepeatedExtension<global::Google.Protobuf.TestProtos.Proto2.TestUnpackedExtensions, int>(94, pb::FieldCodec.ForSInt32(752));
957 public static readonly pb::RepeatedExtension<global::Google.Protobuf.TestProtos.Proto2.TestUnpackedExtensions, long> UnpackedSint64Extension =
958 new pb::RepeatedExtension<global::Google.Protobuf.TestProtos.Proto2.TestUnpackedExtensions, long>(95, pb::FieldCodec.ForSInt64(760));
959 public static readonly pb::RepeatedExtension<global::Google.Protobuf.TestProtos.Proto2.TestUnpackedExtensions, uint> UnpackedFixed32Extension =
960 new pb::RepeatedExtension<global::Google.Protobuf.TestProtos.Proto2.TestUnpackedExtensions, uint>(96, pb::FieldCodec.ForFixed32(773));
961 public static readonly pb::RepeatedExtension<global::Google.Protobuf.TestProtos.Proto2.TestUnpackedExtensions, ulong> UnpackedFixed64Extension =
962 new pb::RepeatedExtension<global::Google.Protobuf.TestProtos.Proto2.TestUnpackedExtensions, ulong>(97, pb::FieldCodec.ForFixed64(777));
963 public static readonly pb::RepeatedExtension<global::Google.Protobuf.TestProtos.Proto2.TestUnpackedExtensions, int> UnpackedSfixed32Extension =
964 new pb::RepeatedExtension<global::Google.Protobuf.TestProtos.Proto2.TestUnpackedExtensions, int>(98, pb::FieldCodec.ForSFixed32(789));
965 public static readonly pb::RepeatedExtension<global::Google.Protobuf.TestProtos.Proto2.TestUnpackedExtensions, long> UnpackedSfixed64Extension =
966 new pb::RepeatedExtension<global::Google.Protobuf.TestProtos.Proto2.TestUnpackedExtensions, long>(99, pb::FieldCodec.ForSFixed64(793));
967 public static readonly pb::RepeatedExtension<global::Google.Protobuf.TestProtos.Proto2.TestUnpackedExtensions, float> UnpackedFloatExtension =
968 new pb::RepeatedExtension<global::Google.Protobuf.TestProtos.Proto2.TestUnpackedExtensions, float>(100, pb::FieldCodec.ForFloat(805));
969 public static readonly pb::RepeatedExtension<global::Google.Protobuf.TestProtos.Proto2.TestUnpackedExtensions, double> UnpackedDoubleExtension =
970 new pb::RepeatedExtension<global::Google.Protobuf.TestProtos.Proto2.TestUnpackedExtensions, double>(101, pb::FieldCodec.ForDouble(809));
971 public static readonly pb::RepeatedExtension<global::Google.Protobuf.TestProtos.Proto2.TestUnpackedExtensions, bool> UnpackedBoolExtension =
972 new pb::RepeatedExtension<global::Google.Protobuf.TestProtos.Proto2.TestUnpackedExtensions, bool>(102, pb::FieldCodec.ForBool(816));
973 public static readonly pb::RepeatedExtension<global::Google.Protobuf.TestProtos.Proto2.TestUnpackedExtensions, global::Google.Protobuf.TestProtos.Proto2.ForeignEnum> UnpackedEnumExtension =
974 new pb::RepeatedExtension<global::Google.Protobuf.TestProtos.Proto2.TestUnpackedExtensions, global::Google.Protobuf.TestProtos.Proto2.ForeignEnum>(103, pb::FieldCodec.ForEnum(824, x => (int) x, x => (global::Google.Protobuf.TestProtos.Proto2.ForeignEnum) x));
975 public static readonly pb::Extension<global::Google.Protobuf.TestProtos.Proto2.TestHugeFieldNumbers, global::Google.Protobuf.TestProtos.Proto2.TestAllTypes> TestAllTypes =
976 new pb::Extension<global::Google.Protobuf.TestProtos.Proto2.TestHugeFieldNumbers, global::Google.Protobuf.TestProtos.Proto2.TestAllTypes>(536860000, pb::FieldCodec.ForMessage(4294880002, global::Google.Protobuf.TestProtos.Proto2.TestAllTypes.Parser));
977 public static readonly pb::Extension<global::Google.Protobuf.TestProtos.Proto2.TestExtensionInsideTable, int> TestExtensionInsideTableExtension =
978 new pb::Extension<global::Google.Protobuf.TestProtos.Proto2.TestExtensionInsideTable, int>(5, pb::FieldCodec.ForInt32(40, 0));
979 }
980
981 #region Enums
982 public enum ForeignEnum {
983 [pbr::OriginalName("FOREIGN_FOO")] ForeignFoo = 4,
984 [pbr::OriginalName("FOREIGN_BAR")] ForeignBar = 5,
985 [pbr::OriginalName("FOREIGN_BAZ")] ForeignBaz = 6,
986 }
987
988 /// <summary>
989 /// Test an enum that has multiple values with the same number.
990 /// </summary>
991 public enum TestEnumWithDupValue {
992 [pbr::OriginalName("FOO1")] Foo1 = 1,
993 [pbr::OriginalName("BAR1")] Bar1 = 2,
994 [pbr::OriginalName("BAZ")] Baz = 3,
995 [pbr::OriginalName("FOO2", PreferredAlias = false)] Foo2 = 1,
996 [pbr::OriginalName("BAR2", PreferredAlias = false)] Bar2 = 2,
997 }
998
999 /// <summary>
1000 /// Test an enum with large, unordered values.
1001 /// </summary>
1002 public enum TestSparseEnum {
1003 [pbr::OriginalName("SPARSE_A")] SparseA = 123,
1004 [pbr::OriginalName("SPARSE_B")] SparseB = 62374,
1005 [pbr::OriginalName("SPARSE_C")] SparseC = 12589234,
1006 [pbr::OriginalName("SPARSE_D")] SparseD = -15,
1007 [pbr::OriginalName("SPARSE_E")] SparseE = -53452,
1008 [pbr::OriginalName("SPARSE_F")] SparseF = 0,
1009 [pbr::OriginalName("SPARSE_G")] SparseG = 2,
1010 }
1011
1012 public enum VeryLargeEnum {
1013 [pbr::OriginalName("ENUM_LABEL_DEFAULT")] EnumLabelDefault = 0,
1014 [pbr::OriginalName("ENUM_LABEL_1")] EnumLabel1 = 1,
1015 [pbr::OriginalName("ENUM_LABEL_2")] EnumLabel2 = 2,
1016 [pbr::OriginalName("ENUM_LABEL_3")] EnumLabel3 = 3,
1017 [pbr::OriginalName("ENUM_LABEL_4")] EnumLabel4 = 4,
1018 [pbr::OriginalName("ENUM_LABEL_5")] EnumLabel5 = 5,
1019 [pbr::OriginalName("ENUM_LABEL_6")] EnumLabel6 = 6,
1020 [pbr::OriginalName("ENUM_LABEL_7")] EnumLabel7 = 7,
1021 [pbr::OriginalName("ENUM_LABEL_8")] EnumLabel8 = 8,
1022 [pbr::OriginalName("ENUM_LABEL_9")] EnumLabel9 = 9,
1023 [pbr::OriginalName("ENUM_LABEL_10")] EnumLabel10 = 10,
1024 [pbr::OriginalName("ENUM_LABEL_11")] EnumLabel11 = 11,
1025 [pbr::OriginalName("ENUM_LABEL_12")] EnumLabel12 = 12,
1026 [pbr::OriginalName("ENUM_LABEL_13")] EnumLabel13 = 13,
1027 [pbr::OriginalName("ENUM_LABEL_14")] EnumLabel14 = 14,
1028 [pbr::OriginalName("ENUM_LABEL_15")] EnumLabel15 = 15,
1029 [pbr::OriginalName("ENUM_LABEL_16")] EnumLabel16 = 16,
1030 [pbr::OriginalName("ENUM_LABEL_17")] EnumLabel17 = 17,
1031 [pbr::OriginalName("ENUM_LABEL_18")] EnumLabel18 = 18,
1032 [pbr::OriginalName("ENUM_LABEL_19")] EnumLabel19 = 19,
1033 [pbr::OriginalName("ENUM_LABEL_20")] EnumLabel20 = 20,
1034 [pbr::OriginalName("ENUM_LABEL_21")] EnumLabel21 = 21,
1035 [pbr::OriginalName("ENUM_LABEL_22")] EnumLabel22 = 22,
1036 [pbr::OriginalName("ENUM_LABEL_23")] EnumLabel23 = 23,
1037 [pbr::OriginalName("ENUM_LABEL_24")] EnumLabel24 = 24,
1038 [pbr::OriginalName("ENUM_LABEL_25")] EnumLabel25 = 25,
1039 [pbr::OriginalName("ENUM_LABEL_26")] EnumLabel26 = 26,
1040 [pbr::OriginalName("ENUM_LABEL_27")] EnumLabel27 = 27,
1041 [pbr::OriginalName("ENUM_LABEL_28")] EnumLabel28 = 28,
1042 [pbr::OriginalName("ENUM_LABEL_29")] EnumLabel29 = 29,
1043 [pbr::OriginalName("ENUM_LABEL_30")] EnumLabel30 = 30,
1044 [pbr::OriginalName("ENUM_LABEL_31")] EnumLabel31 = 31,
1045 [pbr::OriginalName("ENUM_LABEL_32")] EnumLabel32 = 32,
1046 [pbr::OriginalName("ENUM_LABEL_33")] EnumLabel33 = 33,
1047 [pbr::OriginalName("ENUM_LABEL_34")] EnumLabel34 = 34,
1048 [pbr::OriginalName("ENUM_LABEL_35")] EnumLabel35 = 35,
1049 [pbr::OriginalName("ENUM_LABEL_36")] EnumLabel36 = 36,
1050 [pbr::OriginalName("ENUM_LABEL_37")] EnumLabel37 = 37,
1051 [pbr::OriginalName("ENUM_LABEL_38")] EnumLabel38 = 38,
1052 [pbr::OriginalName("ENUM_LABEL_39")] EnumLabel39 = 39,
1053 [pbr::OriginalName("ENUM_LABEL_40")] EnumLabel40 = 40,
1054 [pbr::OriginalName("ENUM_LABEL_41")] EnumLabel41 = 41,
1055 [pbr::OriginalName("ENUM_LABEL_42")] EnumLabel42 = 42,
1056 [pbr::OriginalName("ENUM_LABEL_43")] EnumLabel43 = 43,
1057 [pbr::OriginalName("ENUM_LABEL_44")] EnumLabel44 = 44,
1058 [pbr::OriginalName("ENUM_LABEL_45")] EnumLabel45 = 45,
1059 [pbr::OriginalName("ENUM_LABEL_46")] EnumLabel46 = 46,
1060 [pbr::OriginalName("ENUM_LABEL_47")] EnumLabel47 = 47,
1061 [pbr::OriginalName("ENUM_LABEL_48")] EnumLabel48 = 48,
1062 [pbr::OriginalName("ENUM_LABEL_49")] EnumLabel49 = 49,
1063 [pbr::OriginalName("ENUM_LABEL_50")] EnumLabel50 = 50,
1064 [pbr::OriginalName("ENUM_LABEL_51")] EnumLabel51 = 51,
1065 [pbr::OriginalName("ENUM_LABEL_52")] EnumLabel52 = 52,
1066 [pbr::OriginalName("ENUM_LABEL_53")] EnumLabel53 = 53,
1067 [pbr::OriginalName("ENUM_LABEL_54")] EnumLabel54 = 54,
1068 [pbr::OriginalName("ENUM_LABEL_55")] EnumLabel55 = 55,
1069 [pbr::OriginalName("ENUM_LABEL_56")] EnumLabel56 = 56,
1070 [pbr::OriginalName("ENUM_LABEL_57")] EnumLabel57 = 57,
1071 [pbr::OriginalName("ENUM_LABEL_58")] EnumLabel58 = 58,
1072 [pbr::OriginalName("ENUM_LABEL_59")] EnumLabel59 = 59,
1073 [pbr::OriginalName("ENUM_LABEL_60")] EnumLabel60 = 60,
1074 [pbr::OriginalName("ENUM_LABEL_61")] EnumLabel61 = 61,
1075 [pbr::OriginalName("ENUM_LABEL_62")] EnumLabel62 = 62,
1076 [pbr::OriginalName("ENUM_LABEL_63")] EnumLabel63 = 63,
1077 [pbr::OriginalName("ENUM_LABEL_64")] EnumLabel64 = 64,
1078 [pbr::OriginalName("ENUM_LABEL_65")] EnumLabel65 = 65,
1079 [pbr::OriginalName("ENUM_LABEL_66")] EnumLabel66 = 66,
1080 [pbr::OriginalName("ENUM_LABEL_67")] EnumLabel67 = 67,
1081 [pbr::OriginalName("ENUM_LABEL_68")] EnumLabel68 = 68,
1082 [pbr::OriginalName("ENUM_LABEL_69")] EnumLabel69 = 69,
1083 [pbr::OriginalName("ENUM_LABEL_70")] EnumLabel70 = 70,
1084 [pbr::OriginalName("ENUM_LABEL_71")] EnumLabel71 = 71,
1085 [pbr::OriginalName("ENUM_LABEL_72")] EnumLabel72 = 72,
1086 [pbr::OriginalName("ENUM_LABEL_73")] EnumLabel73 = 73,
1087 [pbr::OriginalName("ENUM_LABEL_74")] EnumLabel74 = 74,
1088 [pbr::OriginalName("ENUM_LABEL_75")] EnumLabel75 = 75,
1089 [pbr::OriginalName("ENUM_LABEL_76")] EnumLabel76 = 76,
1090 [pbr::OriginalName("ENUM_LABEL_77")] EnumLabel77 = 77,
1091 [pbr::OriginalName("ENUM_LABEL_78")] EnumLabel78 = 78,
1092 [pbr::OriginalName("ENUM_LABEL_79")] EnumLabel79 = 79,
1093 [pbr::OriginalName("ENUM_LABEL_80")] EnumLabel80 = 80,
1094 [pbr::OriginalName("ENUM_LABEL_81")] EnumLabel81 = 81,
1095 [pbr::OriginalName("ENUM_LABEL_82")] EnumLabel82 = 82,
1096 [pbr::OriginalName("ENUM_LABEL_83")] EnumLabel83 = 83,
1097 [pbr::OriginalName("ENUM_LABEL_84")] EnumLabel84 = 84,
1098 [pbr::OriginalName("ENUM_LABEL_85")] EnumLabel85 = 85,
1099 [pbr::OriginalName("ENUM_LABEL_86")] EnumLabel86 = 86,
1100 [pbr::OriginalName("ENUM_LABEL_87")] EnumLabel87 = 87,
1101 [pbr::OriginalName("ENUM_LABEL_88")] EnumLabel88 = 88,
1102 [pbr::OriginalName("ENUM_LABEL_89")] EnumLabel89 = 89,
1103 [pbr::OriginalName("ENUM_LABEL_90")] EnumLabel90 = 90,
1104 [pbr::OriginalName("ENUM_LABEL_91")] EnumLabel91 = 91,
1105 [pbr::OriginalName("ENUM_LABEL_92")] EnumLabel92 = 92,
1106 [pbr::OriginalName("ENUM_LABEL_93")] EnumLabel93 = 93,
1107 [pbr::OriginalName("ENUM_LABEL_94")] EnumLabel94 = 94,
1108 [pbr::OriginalName("ENUM_LABEL_95")] EnumLabel95 = 95,
1109 [pbr::OriginalName("ENUM_LABEL_96")] EnumLabel96 = 96,
1110 [pbr::OriginalName("ENUM_LABEL_97")] EnumLabel97 = 97,
1111 [pbr::OriginalName("ENUM_LABEL_98")] EnumLabel98 = 98,
1112 [pbr::OriginalName("ENUM_LABEL_99")] EnumLabel99 = 99,
1113 [pbr::OriginalName("ENUM_LABEL_100")] EnumLabel100 = 100,
1114 }
1115
1116 #endregion
1117
1118 #region Messages
1119 /// <summary>
1120 /// This proto includes every type of field in both singular and repeated
1121 /// forms.
1122 /// </summary>
Jan Tattermusch7cb55972020-06-02 09:26:25 +02001123 public sealed partial class TestAllTypes : pb::IMessage<TestAllTypes>
1124 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
1125 , pb::IBufferMessage
1126 #endif
1127 {
Sydney Acksman8a57ec82019-03-21 17:36:36 -05001128 private static readonly pb::MessageParser<TestAllTypes> _parser = new pb::MessageParser<TestAllTypes>(() => new TestAllTypes());
1129 private pb::UnknownFieldSet _unknownFields;
1130 private int _hasBits0;
1131 private int _hasBits1;
1132 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +02001133 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -05001134 public static pb::MessageParser<TestAllTypes> Parser { get { return _parser; } }
1135
1136 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +02001137 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -05001138 public static pbr::MessageDescriptor Descriptor {
1139 get { return global::Google.Protobuf.TestProtos.Proto2.UnittestReflection.Descriptor.MessageTypes[0]; }
1140 }
1141
1142 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +02001143 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -05001144 pbr::MessageDescriptor pb::IMessage.Descriptor {
1145 get { return Descriptor; }
1146 }
1147
1148 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +02001149 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -05001150 public TestAllTypes() {
1151 OnConstruction();
1152 }
1153
1154 partial void OnConstruction();
1155
1156 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +02001157 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -05001158 public TestAllTypes(TestAllTypes other) : this() {
1159 _hasBits0 = other._hasBits0;
1160 _hasBits1 = other._hasBits1;
1161 optionalInt32_ = other.optionalInt32_;
1162 optionalInt64_ = other.optionalInt64_;
1163 optionalUint32_ = other.optionalUint32_;
1164 optionalUint64_ = other.optionalUint64_;
1165 optionalSint32_ = other.optionalSint32_;
1166 optionalSint64_ = other.optionalSint64_;
1167 optionalFixed32_ = other.optionalFixed32_;
1168 optionalFixed64_ = other.optionalFixed64_;
1169 optionalSfixed32_ = other.optionalSfixed32_;
1170 optionalSfixed64_ = other.optionalSfixed64_;
1171 optionalFloat_ = other.optionalFloat_;
1172 optionalDouble_ = other.optionalDouble_;
1173 optionalBool_ = other.optionalBool_;
1174 optionalString_ = other.optionalString_;
1175 optionalBytes_ = other.optionalBytes_;
1176 optionalGroup_ = other.HasOptionalGroup ? other.optionalGroup_.Clone() : null;
Jon Skeet9926c952020-04-27 07:18:45 +01001177 optionalNestedMessage_ = other.optionalNestedMessage_ != null ? other.optionalNestedMessage_.Clone() : null;
1178 optionalForeignMessage_ = other.optionalForeignMessage_ != null ? other.optionalForeignMessage_.Clone() : null;
1179 optionalImportMessage_ = other.optionalImportMessage_ != null ? other.optionalImportMessage_.Clone() : null;
Sydney Acksman8a57ec82019-03-21 17:36:36 -05001180 optionalNestedEnum_ = other.optionalNestedEnum_;
1181 optionalForeignEnum_ = other.optionalForeignEnum_;
1182 optionalImportEnum_ = other.optionalImportEnum_;
1183 optionalStringPiece_ = other.optionalStringPiece_;
1184 optionalCord_ = other.optionalCord_;
Jon Skeet9926c952020-04-27 07:18:45 +01001185 optionalPublicImportMessage_ = other.optionalPublicImportMessage_ != null ? other.optionalPublicImportMessage_.Clone() : null;
1186 optionalLazyMessage_ = other.optionalLazyMessage_ != null ? other.optionalLazyMessage_.Clone() : null;
Sydney Acksman8a57ec82019-03-21 17:36:36 -05001187 repeatedInt32_ = other.repeatedInt32_.Clone();
1188 repeatedInt64_ = other.repeatedInt64_.Clone();
1189 repeatedUint32_ = other.repeatedUint32_.Clone();
1190 repeatedUint64_ = other.repeatedUint64_.Clone();
1191 repeatedSint32_ = other.repeatedSint32_.Clone();
1192 repeatedSint64_ = other.repeatedSint64_.Clone();
1193 repeatedFixed32_ = other.repeatedFixed32_.Clone();
1194 repeatedFixed64_ = other.repeatedFixed64_.Clone();
1195 repeatedSfixed32_ = other.repeatedSfixed32_.Clone();
1196 repeatedSfixed64_ = other.repeatedSfixed64_.Clone();
1197 repeatedFloat_ = other.repeatedFloat_.Clone();
1198 repeatedDouble_ = other.repeatedDouble_.Clone();
1199 repeatedBool_ = other.repeatedBool_.Clone();
1200 repeatedString_ = other.repeatedString_.Clone();
1201 repeatedBytes_ = other.repeatedBytes_.Clone();
1202 repeatedGroup_ = other.repeatedGroup_.Clone();
1203 repeatedNestedMessage_ = other.repeatedNestedMessage_.Clone();
1204 repeatedForeignMessage_ = other.repeatedForeignMessage_.Clone();
1205 repeatedImportMessage_ = other.repeatedImportMessage_.Clone();
1206 repeatedNestedEnum_ = other.repeatedNestedEnum_.Clone();
1207 repeatedForeignEnum_ = other.repeatedForeignEnum_.Clone();
1208 repeatedImportEnum_ = other.repeatedImportEnum_.Clone();
1209 repeatedStringPiece_ = other.repeatedStringPiece_.Clone();
1210 repeatedCord_ = other.repeatedCord_.Clone();
1211 repeatedLazyMessage_ = other.repeatedLazyMessage_.Clone();
1212 defaultInt32_ = other.defaultInt32_;
1213 defaultInt64_ = other.defaultInt64_;
1214 defaultUint32_ = other.defaultUint32_;
1215 defaultUint64_ = other.defaultUint64_;
1216 defaultSint32_ = other.defaultSint32_;
1217 defaultSint64_ = other.defaultSint64_;
1218 defaultFixed32_ = other.defaultFixed32_;
1219 defaultFixed64_ = other.defaultFixed64_;
1220 defaultSfixed32_ = other.defaultSfixed32_;
1221 defaultSfixed64_ = other.defaultSfixed64_;
1222 defaultFloat_ = other.defaultFloat_;
1223 defaultDouble_ = other.defaultDouble_;
1224 defaultBool_ = other.defaultBool_;
1225 defaultString_ = other.defaultString_;
1226 defaultBytes_ = other.defaultBytes_;
1227 defaultNestedEnum_ = other.defaultNestedEnum_;
1228 defaultForeignEnum_ = other.defaultForeignEnum_;
1229 defaultImportEnum_ = other.defaultImportEnum_;
1230 defaultStringPiece_ = other.defaultStringPiece_;
1231 defaultCord_ = other.defaultCord_;
1232 switch (other.OneofFieldCase) {
1233 case OneofFieldOneofCase.OneofUint32:
1234 OneofUint32 = other.OneofUint32;
1235 break;
1236 case OneofFieldOneofCase.OneofNestedMessage:
1237 OneofNestedMessage = other.OneofNestedMessage.Clone();
1238 break;
1239 case OneofFieldOneofCase.OneofString:
1240 OneofString = other.OneofString;
1241 break;
1242 case OneofFieldOneofCase.OneofBytes:
1243 OneofBytes = other.OneofBytes;
1244 break;
1245 }
1246
1247 _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
1248 }
1249
1250 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +02001251 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -05001252 public TestAllTypes Clone() {
1253 return new TestAllTypes(this);
1254 }
1255
1256 /// <summary>Field number for the "optional_int32" field.</summary>
1257 public const int OptionalInt32FieldNumber = 1;
1258 private readonly static int OptionalInt32DefaultValue = 0;
1259
1260 private int optionalInt32_;
1261 /// <summary>
1262 /// Singular
1263 /// </summary>
1264 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +02001265 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -05001266 public int OptionalInt32 {
1267 get { if ((_hasBits0 & 1) != 0) { return optionalInt32_; } else { return OptionalInt32DefaultValue; } }
1268 set {
1269 _hasBits0 |= 1;
1270 optionalInt32_ = value;
1271 }
1272 }
1273 /// <summary>Gets whether the "optional_int32" field is set</summary>
1274 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +02001275 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -05001276 public bool HasOptionalInt32 {
1277 get { return (_hasBits0 & 1) != 0; }
1278 }
1279 /// <summary>Clears the value of the "optional_int32" field</summary>
1280 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +02001281 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -05001282 public void ClearOptionalInt32() {
1283 _hasBits0 &= ~1;
1284 }
1285
1286 /// <summary>Field number for the "optional_int64" field.</summary>
1287 public const int OptionalInt64FieldNumber = 2;
1288 private readonly static long OptionalInt64DefaultValue = 0L;
1289
1290 private long optionalInt64_;
1291 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +02001292 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -05001293 public long OptionalInt64 {
1294 get { if ((_hasBits0 & 2) != 0) { return optionalInt64_; } else { return OptionalInt64DefaultValue; } }
1295 set {
1296 _hasBits0 |= 2;
1297 optionalInt64_ = value;
1298 }
1299 }
1300 /// <summary>Gets whether the "optional_int64" field is set</summary>
1301 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +02001302 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -05001303 public bool HasOptionalInt64 {
1304 get { return (_hasBits0 & 2) != 0; }
1305 }
1306 /// <summary>Clears the value of the "optional_int64" field</summary>
1307 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +02001308 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -05001309 public void ClearOptionalInt64() {
1310 _hasBits0 &= ~2;
1311 }
1312
1313 /// <summary>Field number for the "optional_uint32" field.</summary>
1314 public const int OptionalUint32FieldNumber = 3;
1315 private readonly static uint OptionalUint32DefaultValue = 0;
1316
1317 private uint optionalUint32_;
1318 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +02001319 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -05001320 public uint OptionalUint32 {
1321 get { if ((_hasBits0 & 4) != 0) { return optionalUint32_; } else { return OptionalUint32DefaultValue; } }
1322 set {
1323 _hasBits0 |= 4;
1324 optionalUint32_ = value;
1325 }
1326 }
1327 /// <summary>Gets whether the "optional_uint32" field is set</summary>
1328 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +02001329 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -05001330 public bool HasOptionalUint32 {
1331 get { return (_hasBits0 & 4) != 0; }
1332 }
1333 /// <summary>Clears the value of the "optional_uint32" field</summary>
1334 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +02001335 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -05001336 public void ClearOptionalUint32() {
1337 _hasBits0 &= ~4;
1338 }
1339
1340 /// <summary>Field number for the "optional_uint64" field.</summary>
1341 public const int OptionalUint64FieldNumber = 4;
1342 private readonly static ulong OptionalUint64DefaultValue = 0UL;
1343
1344 private ulong optionalUint64_;
1345 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +02001346 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -05001347 public ulong OptionalUint64 {
1348 get { if ((_hasBits0 & 8) != 0) { return optionalUint64_; } else { return OptionalUint64DefaultValue; } }
1349 set {
1350 _hasBits0 |= 8;
1351 optionalUint64_ = value;
1352 }
1353 }
1354 /// <summary>Gets whether the "optional_uint64" field is set</summary>
1355 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +02001356 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -05001357 public bool HasOptionalUint64 {
1358 get { return (_hasBits0 & 8) != 0; }
1359 }
1360 /// <summary>Clears the value of the "optional_uint64" field</summary>
1361 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +02001362 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -05001363 public void ClearOptionalUint64() {
1364 _hasBits0 &= ~8;
1365 }
1366
1367 /// <summary>Field number for the "optional_sint32" field.</summary>
1368 public const int OptionalSint32FieldNumber = 5;
1369 private readonly static int OptionalSint32DefaultValue = 0;
1370
1371 private int optionalSint32_;
1372 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +02001373 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -05001374 public int OptionalSint32 {
1375 get { if ((_hasBits0 & 16) != 0) { return optionalSint32_; } else { return OptionalSint32DefaultValue; } }
1376 set {
1377 _hasBits0 |= 16;
1378 optionalSint32_ = value;
1379 }
1380 }
1381 /// <summary>Gets whether the "optional_sint32" field is set</summary>
1382 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +02001383 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -05001384 public bool HasOptionalSint32 {
1385 get { return (_hasBits0 & 16) != 0; }
1386 }
1387 /// <summary>Clears the value of the "optional_sint32" field</summary>
1388 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +02001389 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -05001390 public void ClearOptionalSint32() {
1391 _hasBits0 &= ~16;
1392 }
1393
1394 /// <summary>Field number for the "optional_sint64" field.</summary>
1395 public const int OptionalSint64FieldNumber = 6;
1396 private readonly static long OptionalSint64DefaultValue = 0L;
1397
1398 private long optionalSint64_;
1399 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +02001400 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -05001401 public long OptionalSint64 {
1402 get { if ((_hasBits0 & 32) != 0) { return optionalSint64_; } else { return OptionalSint64DefaultValue; } }
1403 set {
1404 _hasBits0 |= 32;
1405 optionalSint64_ = value;
1406 }
1407 }
1408 /// <summary>Gets whether the "optional_sint64" field is set</summary>
1409 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +02001410 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -05001411 public bool HasOptionalSint64 {
1412 get { return (_hasBits0 & 32) != 0; }
1413 }
1414 /// <summary>Clears the value of the "optional_sint64" field</summary>
1415 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +02001416 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -05001417 public void ClearOptionalSint64() {
1418 _hasBits0 &= ~32;
1419 }
1420
1421 /// <summary>Field number for the "optional_fixed32" field.</summary>
1422 public const int OptionalFixed32FieldNumber = 7;
1423 private readonly static uint OptionalFixed32DefaultValue = 0;
1424
1425 private uint optionalFixed32_;
1426 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +02001427 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -05001428 public uint OptionalFixed32 {
1429 get { if ((_hasBits0 & 64) != 0) { return optionalFixed32_; } else { return OptionalFixed32DefaultValue; } }
1430 set {
1431 _hasBits0 |= 64;
1432 optionalFixed32_ = value;
1433 }
1434 }
1435 /// <summary>Gets whether the "optional_fixed32" field is set</summary>
1436 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +02001437 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -05001438 public bool HasOptionalFixed32 {
1439 get { return (_hasBits0 & 64) != 0; }
1440 }
1441 /// <summary>Clears the value of the "optional_fixed32" field</summary>
1442 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +02001443 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -05001444 public void ClearOptionalFixed32() {
1445 _hasBits0 &= ~64;
1446 }
1447
1448 /// <summary>Field number for the "optional_fixed64" field.</summary>
1449 public const int OptionalFixed64FieldNumber = 8;
1450 private readonly static ulong OptionalFixed64DefaultValue = 0UL;
1451
1452 private ulong optionalFixed64_;
1453 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +02001454 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -05001455 public ulong OptionalFixed64 {
1456 get { if ((_hasBits0 & 128) != 0) { return optionalFixed64_; } else { return OptionalFixed64DefaultValue; } }
1457 set {
1458 _hasBits0 |= 128;
1459 optionalFixed64_ = value;
1460 }
1461 }
1462 /// <summary>Gets whether the "optional_fixed64" field is set</summary>
1463 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +02001464 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -05001465 public bool HasOptionalFixed64 {
1466 get { return (_hasBits0 & 128) != 0; }
1467 }
1468 /// <summary>Clears the value of the "optional_fixed64" field</summary>
1469 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +02001470 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -05001471 public void ClearOptionalFixed64() {
1472 _hasBits0 &= ~128;
1473 }
1474
1475 /// <summary>Field number for the "optional_sfixed32" field.</summary>
1476 public const int OptionalSfixed32FieldNumber = 9;
1477 private readonly static int OptionalSfixed32DefaultValue = 0;
1478
1479 private int optionalSfixed32_;
1480 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +02001481 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -05001482 public int OptionalSfixed32 {
1483 get { if ((_hasBits0 & 256) != 0) { return optionalSfixed32_; } else { return OptionalSfixed32DefaultValue; } }
1484 set {
1485 _hasBits0 |= 256;
1486 optionalSfixed32_ = value;
1487 }
1488 }
1489 /// <summary>Gets whether the "optional_sfixed32" field is set</summary>
1490 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +02001491 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -05001492 public bool HasOptionalSfixed32 {
1493 get { return (_hasBits0 & 256) != 0; }
1494 }
1495 /// <summary>Clears the value of the "optional_sfixed32" field</summary>
1496 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +02001497 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -05001498 public void ClearOptionalSfixed32() {
1499 _hasBits0 &= ~256;
1500 }
1501
1502 /// <summary>Field number for the "optional_sfixed64" field.</summary>
1503 public const int OptionalSfixed64FieldNumber = 10;
1504 private readonly static long OptionalSfixed64DefaultValue = 0L;
1505
1506 private long optionalSfixed64_;
1507 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +02001508 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -05001509 public long OptionalSfixed64 {
1510 get { if ((_hasBits0 & 512) != 0) { return optionalSfixed64_; } else { return OptionalSfixed64DefaultValue; } }
1511 set {
1512 _hasBits0 |= 512;
1513 optionalSfixed64_ = value;
1514 }
1515 }
1516 /// <summary>Gets whether the "optional_sfixed64" field is set</summary>
1517 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +02001518 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -05001519 public bool HasOptionalSfixed64 {
1520 get { return (_hasBits0 & 512) != 0; }
1521 }
1522 /// <summary>Clears the value of the "optional_sfixed64" field</summary>
1523 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +02001524 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -05001525 public void ClearOptionalSfixed64() {
1526 _hasBits0 &= ~512;
1527 }
1528
1529 /// <summary>Field number for the "optional_float" field.</summary>
1530 public const int OptionalFloatFieldNumber = 11;
1531 private readonly static float OptionalFloatDefaultValue = 0F;
1532
1533 private float optionalFloat_;
1534 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +02001535 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -05001536 public float OptionalFloat {
1537 get { if ((_hasBits0 & 1024) != 0) { return optionalFloat_; } else { return OptionalFloatDefaultValue; } }
1538 set {
1539 _hasBits0 |= 1024;
1540 optionalFloat_ = value;
1541 }
1542 }
1543 /// <summary>Gets whether the "optional_float" field is set</summary>
1544 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +02001545 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -05001546 public bool HasOptionalFloat {
1547 get { return (_hasBits0 & 1024) != 0; }
1548 }
1549 /// <summary>Clears the value of the "optional_float" field</summary>
1550 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +02001551 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -05001552 public void ClearOptionalFloat() {
1553 _hasBits0 &= ~1024;
1554 }
1555
1556 /// <summary>Field number for the "optional_double" field.</summary>
1557 public const int OptionalDoubleFieldNumber = 12;
1558 private readonly static double OptionalDoubleDefaultValue = 0D;
1559
1560 private double optionalDouble_;
1561 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +02001562 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -05001563 public double OptionalDouble {
1564 get { if ((_hasBits0 & 2048) != 0) { return optionalDouble_; } else { return OptionalDoubleDefaultValue; } }
1565 set {
1566 _hasBits0 |= 2048;
1567 optionalDouble_ = value;
1568 }
1569 }
1570 /// <summary>Gets whether the "optional_double" field is set</summary>
1571 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +02001572 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -05001573 public bool HasOptionalDouble {
1574 get { return (_hasBits0 & 2048) != 0; }
1575 }
1576 /// <summary>Clears the value of the "optional_double" field</summary>
1577 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +02001578 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -05001579 public void ClearOptionalDouble() {
1580 _hasBits0 &= ~2048;
1581 }
1582
1583 /// <summary>Field number for the "optional_bool" field.</summary>
1584 public const int OptionalBoolFieldNumber = 13;
1585 private readonly static bool OptionalBoolDefaultValue = false;
1586
1587 private bool optionalBool_;
1588 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +02001589 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -05001590 public bool OptionalBool {
1591 get { if ((_hasBits0 & 4096) != 0) { return optionalBool_; } else { return OptionalBoolDefaultValue; } }
1592 set {
1593 _hasBits0 |= 4096;
1594 optionalBool_ = value;
1595 }
1596 }
1597 /// <summary>Gets whether the "optional_bool" field is set</summary>
1598 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +02001599 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -05001600 public bool HasOptionalBool {
1601 get { return (_hasBits0 & 4096) != 0; }
1602 }
1603 /// <summary>Clears the value of the "optional_bool" field</summary>
1604 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +02001605 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -05001606 public void ClearOptionalBool() {
1607 _hasBits0 &= ~4096;
1608 }
1609
1610 /// <summary>Field number for the "optional_string" field.</summary>
1611 public const int OptionalStringFieldNumber = 14;
1612 private readonly static string OptionalStringDefaultValue = "";
1613
1614 private string optionalString_;
1615 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +02001616 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -05001617 public string OptionalString {
1618 get { return optionalString_ ?? OptionalStringDefaultValue; }
1619 set {
1620 optionalString_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
1621 }
1622 }
1623 /// <summary>Gets whether the "optional_string" field is set</summary>
1624 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +02001625 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -05001626 public bool HasOptionalString {
1627 get { return optionalString_ != null; }
1628 }
1629 /// <summary>Clears the value of the "optional_string" field</summary>
1630 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +02001631 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -05001632 public void ClearOptionalString() {
1633 optionalString_ = null;
1634 }
1635
1636 /// <summary>Field number for the "optional_bytes" field.</summary>
1637 public const int OptionalBytesFieldNumber = 15;
1638 private readonly static pb::ByteString OptionalBytesDefaultValue = pb::ByteString.Empty;
1639
1640 private pb::ByteString optionalBytes_;
1641 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +02001642 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -05001643 public pb::ByteString OptionalBytes {
1644 get { return optionalBytes_ ?? OptionalBytesDefaultValue; }
1645 set {
1646 optionalBytes_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
1647 }
1648 }
1649 /// <summary>Gets whether the "optional_bytes" field is set</summary>
1650 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +02001651 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -05001652 public bool HasOptionalBytes {
1653 get { return optionalBytes_ != null; }
1654 }
1655 /// <summary>Clears the value of the "optional_bytes" field</summary>
1656 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +02001657 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -05001658 public void ClearOptionalBytes() {
1659 optionalBytes_ = null;
1660 }
1661
1662 /// <summary>Field number for the "optionalgroup" field.</summary>
1663 public const int OptionalGroupFieldNumber = 16;
1664 private global::Google.Protobuf.TestProtos.Proto2.TestAllTypes.Types.OptionalGroup optionalGroup_;
1665 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +02001666 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -05001667 public global::Google.Protobuf.TestProtos.Proto2.TestAllTypes.Types.OptionalGroup OptionalGroup {
1668 get { return optionalGroup_; }
1669 set {
1670 optionalGroup_ = value;
1671 }
1672 }
1673 /// <summary>Gets whether the optionalgroup field is set</summary>
1674 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +02001675 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -05001676 public bool HasOptionalGroup {
1677 get { return optionalGroup_ != null; }
1678 }
1679 /// <summary>Clears the value of the optionalgroup field</summary>
1680 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +02001681 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -05001682 public void ClearOptionalGroup() {
1683 optionalGroup_ = null;
1684 }
1685
1686 /// <summary>Field number for the "optional_nested_message" field.</summary>
1687 public const int OptionalNestedMessageFieldNumber = 18;
1688 private global::Google.Protobuf.TestProtos.Proto2.TestAllTypes.Types.NestedMessage optionalNestedMessage_;
1689 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +02001690 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -05001691 public global::Google.Protobuf.TestProtos.Proto2.TestAllTypes.Types.NestedMessage OptionalNestedMessage {
1692 get { return optionalNestedMessage_; }
1693 set {
1694 optionalNestedMessage_ = value;
1695 }
1696 }
Sydney Acksman8a57ec82019-03-21 17:36:36 -05001697
1698 /// <summary>Field number for the "optional_foreign_message" field.</summary>
1699 public const int OptionalForeignMessageFieldNumber = 19;
1700 private global::Google.Protobuf.TestProtos.Proto2.ForeignMessage optionalForeignMessage_;
1701 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +02001702 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -05001703 public global::Google.Protobuf.TestProtos.Proto2.ForeignMessage OptionalForeignMessage {
1704 get { return optionalForeignMessage_; }
1705 set {
1706 optionalForeignMessage_ = value;
1707 }
1708 }
Sydney Acksman8a57ec82019-03-21 17:36:36 -05001709
1710 /// <summary>Field number for the "optional_import_message" field.</summary>
1711 public const int OptionalImportMessageFieldNumber = 20;
1712 private global::Google.Protobuf.TestProtos.Proto2.ImportMessage optionalImportMessage_;
1713 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +02001714 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -05001715 public global::Google.Protobuf.TestProtos.Proto2.ImportMessage OptionalImportMessage {
1716 get { return optionalImportMessage_; }
1717 set {
1718 optionalImportMessage_ = value;
1719 }
1720 }
Sydney Acksman8a57ec82019-03-21 17:36:36 -05001721
1722 /// <summary>Field number for the "optional_nested_enum" field.</summary>
1723 public const int OptionalNestedEnumFieldNumber = 21;
1724 private readonly static global::Google.Protobuf.TestProtos.Proto2.TestAllTypes.Types.NestedEnum OptionalNestedEnumDefaultValue = global::Google.Protobuf.TestProtos.Proto2.TestAllTypes.Types.NestedEnum.Foo;
1725
1726 private global::Google.Protobuf.TestProtos.Proto2.TestAllTypes.Types.NestedEnum optionalNestedEnum_;
1727 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +02001728 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -05001729 public global::Google.Protobuf.TestProtos.Proto2.TestAllTypes.Types.NestedEnum OptionalNestedEnum {
1730 get { if ((_hasBits0 & 8192) != 0) { return optionalNestedEnum_; } else { return OptionalNestedEnumDefaultValue; } }
1731 set {
1732 _hasBits0 |= 8192;
1733 optionalNestedEnum_ = value;
1734 }
1735 }
1736 /// <summary>Gets whether the "optional_nested_enum" field is set</summary>
1737 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +02001738 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -05001739 public bool HasOptionalNestedEnum {
1740 get { return (_hasBits0 & 8192) != 0; }
1741 }
1742 /// <summary>Clears the value of the "optional_nested_enum" field</summary>
1743 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +02001744 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -05001745 public void ClearOptionalNestedEnum() {
1746 _hasBits0 &= ~8192;
1747 }
1748
1749 /// <summary>Field number for the "optional_foreign_enum" field.</summary>
1750 public const int OptionalForeignEnumFieldNumber = 22;
1751 private readonly static global::Google.Protobuf.TestProtos.Proto2.ForeignEnum OptionalForeignEnumDefaultValue = global::Google.Protobuf.TestProtos.Proto2.ForeignEnum.ForeignFoo;
1752
1753 private global::Google.Protobuf.TestProtos.Proto2.ForeignEnum optionalForeignEnum_;
1754 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +02001755 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -05001756 public global::Google.Protobuf.TestProtos.Proto2.ForeignEnum OptionalForeignEnum {
1757 get { if ((_hasBits0 & 16384) != 0) { return optionalForeignEnum_; } else { return OptionalForeignEnumDefaultValue; } }
1758 set {
1759 _hasBits0 |= 16384;
1760 optionalForeignEnum_ = value;
1761 }
1762 }
1763 /// <summary>Gets whether the "optional_foreign_enum" field is set</summary>
1764 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +02001765 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -05001766 public bool HasOptionalForeignEnum {
1767 get { return (_hasBits0 & 16384) != 0; }
1768 }
1769 /// <summary>Clears the value of the "optional_foreign_enum" field</summary>
1770 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +02001771 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -05001772 public void ClearOptionalForeignEnum() {
1773 _hasBits0 &= ~16384;
1774 }
1775
1776 /// <summary>Field number for the "optional_import_enum" field.</summary>
1777 public const int OptionalImportEnumFieldNumber = 23;
1778 private readonly static global::Google.Protobuf.TestProtos.Proto2.ImportEnum OptionalImportEnumDefaultValue = global::Google.Protobuf.TestProtos.Proto2.ImportEnum.ImportFoo;
1779
1780 private global::Google.Protobuf.TestProtos.Proto2.ImportEnum optionalImportEnum_;
1781 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +02001782 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -05001783 public global::Google.Protobuf.TestProtos.Proto2.ImportEnum OptionalImportEnum {
1784 get { if ((_hasBits0 & 32768) != 0) { return optionalImportEnum_; } else { return OptionalImportEnumDefaultValue; } }
1785 set {
1786 _hasBits0 |= 32768;
1787 optionalImportEnum_ = value;
1788 }
1789 }
1790 /// <summary>Gets whether the "optional_import_enum" field is set</summary>
1791 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +02001792 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -05001793 public bool HasOptionalImportEnum {
1794 get { return (_hasBits0 & 32768) != 0; }
1795 }
1796 /// <summary>Clears the value of the "optional_import_enum" field</summary>
1797 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +02001798 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -05001799 public void ClearOptionalImportEnum() {
1800 _hasBits0 &= ~32768;
1801 }
1802
1803 /// <summary>Field number for the "optional_string_piece" field.</summary>
1804 public const int OptionalStringPieceFieldNumber = 24;
1805 private readonly static string OptionalStringPieceDefaultValue = "";
1806
1807 private string optionalStringPiece_;
1808 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +02001809 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -05001810 public string OptionalStringPiece {
1811 get { return optionalStringPiece_ ?? OptionalStringPieceDefaultValue; }
1812 set {
1813 optionalStringPiece_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
1814 }
1815 }
1816 /// <summary>Gets whether the "optional_string_piece" field is set</summary>
1817 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +02001818 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -05001819 public bool HasOptionalStringPiece {
1820 get { return optionalStringPiece_ != null; }
1821 }
1822 /// <summary>Clears the value of the "optional_string_piece" field</summary>
1823 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +02001824 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -05001825 public void ClearOptionalStringPiece() {
1826 optionalStringPiece_ = null;
1827 }
1828
1829 /// <summary>Field number for the "optional_cord" field.</summary>
1830 public const int OptionalCordFieldNumber = 25;
1831 private readonly static string OptionalCordDefaultValue = "";
1832
1833 private string optionalCord_;
1834 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +02001835 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -05001836 public string OptionalCord {
1837 get { return optionalCord_ ?? OptionalCordDefaultValue; }
1838 set {
1839 optionalCord_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
1840 }
1841 }
1842 /// <summary>Gets whether the "optional_cord" field is set</summary>
1843 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +02001844 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -05001845 public bool HasOptionalCord {
1846 get { return optionalCord_ != null; }
1847 }
1848 /// <summary>Clears the value of the "optional_cord" field</summary>
1849 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +02001850 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -05001851 public void ClearOptionalCord() {
1852 optionalCord_ = null;
1853 }
1854
1855 /// <summary>Field number for the "optional_public_import_message" field.</summary>
1856 public const int OptionalPublicImportMessageFieldNumber = 26;
1857 private global::Google.Protobuf.TestProtos.Proto2.PublicImportMessage optionalPublicImportMessage_;
1858 /// <summary>
1859 /// Defined in unittest_import_public.proto
1860 /// </summary>
1861 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +02001862 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -05001863 public global::Google.Protobuf.TestProtos.Proto2.PublicImportMessage OptionalPublicImportMessage {
1864 get { return optionalPublicImportMessage_; }
1865 set {
1866 optionalPublicImportMessage_ = value;
1867 }
1868 }
Sydney Acksman8a57ec82019-03-21 17:36:36 -05001869
1870 /// <summary>Field number for the "optional_lazy_message" field.</summary>
1871 public const int OptionalLazyMessageFieldNumber = 27;
1872 private global::Google.Protobuf.TestProtos.Proto2.TestAllTypes.Types.NestedMessage optionalLazyMessage_;
1873 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +02001874 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -05001875 public global::Google.Protobuf.TestProtos.Proto2.TestAllTypes.Types.NestedMessage OptionalLazyMessage {
1876 get { return optionalLazyMessage_; }
1877 set {
1878 optionalLazyMessage_ = value;
1879 }
1880 }
Sydney Acksman8a57ec82019-03-21 17:36:36 -05001881
1882 /// <summary>Field number for the "repeated_int32" field.</summary>
1883 public const int RepeatedInt32FieldNumber = 31;
1884 private static readonly pb::FieldCodec<int> _repeated_repeatedInt32_codec
1885 = pb::FieldCodec.ForInt32(248);
1886 private readonly pbc::RepeatedField<int> repeatedInt32_ = new pbc::RepeatedField<int>();
1887 /// <summary>
1888 /// Repeated
1889 /// </summary>
1890 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +02001891 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -05001892 public pbc::RepeatedField<int> RepeatedInt32 {
1893 get { return repeatedInt32_; }
1894 }
1895
1896 /// <summary>Field number for the "repeated_int64" field.</summary>
1897 public const int RepeatedInt64FieldNumber = 32;
1898 private static readonly pb::FieldCodec<long> _repeated_repeatedInt64_codec
1899 = pb::FieldCodec.ForInt64(256);
1900 private readonly pbc::RepeatedField<long> repeatedInt64_ = new pbc::RepeatedField<long>();
1901 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +02001902 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -05001903 public pbc::RepeatedField<long> RepeatedInt64 {
1904 get { return repeatedInt64_; }
1905 }
1906
1907 /// <summary>Field number for the "repeated_uint32" field.</summary>
1908 public const int RepeatedUint32FieldNumber = 33;
1909 private static readonly pb::FieldCodec<uint> _repeated_repeatedUint32_codec
1910 = pb::FieldCodec.ForUInt32(264);
1911 private readonly pbc::RepeatedField<uint> repeatedUint32_ = new pbc::RepeatedField<uint>();
1912 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +02001913 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -05001914 public pbc::RepeatedField<uint> RepeatedUint32 {
1915 get { return repeatedUint32_; }
1916 }
1917
1918 /// <summary>Field number for the "repeated_uint64" field.</summary>
1919 public const int RepeatedUint64FieldNumber = 34;
1920 private static readonly pb::FieldCodec<ulong> _repeated_repeatedUint64_codec
1921 = pb::FieldCodec.ForUInt64(272);
1922 private readonly pbc::RepeatedField<ulong> repeatedUint64_ = new pbc::RepeatedField<ulong>();
1923 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +02001924 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -05001925 public pbc::RepeatedField<ulong> RepeatedUint64 {
1926 get { return repeatedUint64_; }
1927 }
1928
1929 /// <summary>Field number for the "repeated_sint32" field.</summary>
1930 public const int RepeatedSint32FieldNumber = 35;
1931 private static readonly pb::FieldCodec<int> _repeated_repeatedSint32_codec
1932 = pb::FieldCodec.ForSInt32(280);
1933 private readonly pbc::RepeatedField<int> repeatedSint32_ = new pbc::RepeatedField<int>();
1934 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +02001935 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -05001936 public pbc::RepeatedField<int> RepeatedSint32 {
1937 get { return repeatedSint32_; }
1938 }
1939
1940 /// <summary>Field number for the "repeated_sint64" field.</summary>
1941 public const int RepeatedSint64FieldNumber = 36;
1942 private static readonly pb::FieldCodec<long> _repeated_repeatedSint64_codec
1943 = pb::FieldCodec.ForSInt64(288);
1944 private readonly pbc::RepeatedField<long> repeatedSint64_ = new pbc::RepeatedField<long>();
1945 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +02001946 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -05001947 public pbc::RepeatedField<long> RepeatedSint64 {
1948 get { return repeatedSint64_; }
1949 }
1950
1951 /// <summary>Field number for the "repeated_fixed32" field.</summary>
1952 public const int RepeatedFixed32FieldNumber = 37;
1953 private static readonly pb::FieldCodec<uint> _repeated_repeatedFixed32_codec
1954 = pb::FieldCodec.ForFixed32(301);
1955 private readonly pbc::RepeatedField<uint> repeatedFixed32_ = new pbc::RepeatedField<uint>();
1956 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +02001957 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -05001958 public pbc::RepeatedField<uint> RepeatedFixed32 {
1959 get { return repeatedFixed32_; }
1960 }
1961
1962 /// <summary>Field number for the "repeated_fixed64" field.</summary>
1963 public const int RepeatedFixed64FieldNumber = 38;
1964 private static readonly pb::FieldCodec<ulong> _repeated_repeatedFixed64_codec
1965 = pb::FieldCodec.ForFixed64(305);
1966 private readonly pbc::RepeatedField<ulong> repeatedFixed64_ = new pbc::RepeatedField<ulong>();
1967 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +02001968 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -05001969 public pbc::RepeatedField<ulong> RepeatedFixed64 {
1970 get { return repeatedFixed64_; }
1971 }
1972
1973 /// <summary>Field number for the "repeated_sfixed32" field.</summary>
1974 public const int RepeatedSfixed32FieldNumber = 39;
1975 private static readonly pb::FieldCodec<int> _repeated_repeatedSfixed32_codec
1976 = pb::FieldCodec.ForSFixed32(317);
1977 private readonly pbc::RepeatedField<int> repeatedSfixed32_ = new pbc::RepeatedField<int>();
1978 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +02001979 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -05001980 public pbc::RepeatedField<int> RepeatedSfixed32 {
1981 get { return repeatedSfixed32_; }
1982 }
1983
1984 /// <summary>Field number for the "repeated_sfixed64" field.</summary>
1985 public const int RepeatedSfixed64FieldNumber = 40;
1986 private static readonly pb::FieldCodec<long> _repeated_repeatedSfixed64_codec
1987 = pb::FieldCodec.ForSFixed64(321);
1988 private readonly pbc::RepeatedField<long> repeatedSfixed64_ = new pbc::RepeatedField<long>();
1989 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +02001990 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -05001991 public pbc::RepeatedField<long> RepeatedSfixed64 {
1992 get { return repeatedSfixed64_; }
1993 }
1994
1995 /// <summary>Field number for the "repeated_float" field.</summary>
1996 public const int RepeatedFloatFieldNumber = 41;
1997 private static readonly pb::FieldCodec<float> _repeated_repeatedFloat_codec
1998 = pb::FieldCodec.ForFloat(333);
1999 private readonly pbc::RepeatedField<float> repeatedFloat_ = new pbc::RepeatedField<float>();
2000 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +02002001 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -05002002 public pbc::RepeatedField<float> RepeatedFloat {
2003 get { return repeatedFloat_; }
2004 }
2005
2006 /// <summary>Field number for the "repeated_double" field.</summary>
2007 public const int RepeatedDoubleFieldNumber = 42;
2008 private static readonly pb::FieldCodec<double> _repeated_repeatedDouble_codec
2009 = pb::FieldCodec.ForDouble(337);
2010 private readonly pbc::RepeatedField<double> repeatedDouble_ = new pbc::RepeatedField<double>();
2011 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +02002012 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -05002013 public pbc::RepeatedField<double> RepeatedDouble {
2014 get { return repeatedDouble_; }
2015 }
2016
2017 /// <summary>Field number for the "repeated_bool" field.</summary>
2018 public const int RepeatedBoolFieldNumber = 43;
2019 private static readonly pb::FieldCodec<bool> _repeated_repeatedBool_codec
2020 = pb::FieldCodec.ForBool(344);
2021 private readonly pbc::RepeatedField<bool> repeatedBool_ = new pbc::RepeatedField<bool>();
2022 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +02002023 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -05002024 public pbc::RepeatedField<bool> RepeatedBool {
2025 get { return repeatedBool_; }
2026 }
2027
2028 /// <summary>Field number for the "repeated_string" field.</summary>
2029 public const int RepeatedStringFieldNumber = 44;
2030 private static readonly pb::FieldCodec<string> _repeated_repeatedString_codec
2031 = pb::FieldCodec.ForString(354);
2032 private readonly pbc::RepeatedField<string> repeatedString_ = new pbc::RepeatedField<string>();
2033 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +02002034 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -05002035 public pbc::RepeatedField<string> RepeatedString {
2036 get { return repeatedString_; }
2037 }
2038
2039 /// <summary>Field number for the "repeated_bytes" field.</summary>
2040 public const int RepeatedBytesFieldNumber = 45;
2041 private static readonly pb::FieldCodec<pb::ByteString> _repeated_repeatedBytes_codec
2042 = pb::FieldCodec.ForBytes(362);
2043 private readonly pbc::RepeatedField<pb::ByteString> repeatedBytes_ = new pbc::RepeatedField<pb::ByteString>();
2044 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +02002045 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -05002046 public pbc::RepeatedField<pb::ByteString> RepeatedBytes {
2047 get { return repeatedBytes_; }
2048 }
2049
2050 /// <summary>Field number for the "repeatedgroup" field.</summary>
2051 public const int RepeatedGroupFieldNumber = 46;
2052 private static readonly pb::FieldCodec<global::Google.Protobuf.TestProtos.Proto2.TestAllTypes.Types.RepeatedGroup> _repeated_repeatedGroup_codec
2053 = pb::FieldCodec.ForGroup(371, 372, global::Google.Protobuf.TestProtos.Proto2.TestAllTypes.Types.RepeatedGroup.Parser);
2054 private readonly pbc::RepeatedField<global::Google.Protobuf.TestProtos.Proto2.TestAllTypes.Types.RepeatedGroup> repeatedGroup_ = new pbc::RepeatedField<global::Google.Protobuf.TestProtos.Proto2.TestAllTypes.Types.RepeatedGroup>();
2055 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +02002056 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -05002057 public pbc::RepeatedField<global::Google.Protobuf.TestProtos.Proto2.TestAllTypes.Types.RepeatedGroup> RepeatedGroup {
2058 get { return repeatedGroup_; }
2059 }
2060
2061 /// <summary>Field number for the "repeated_nested_message" field.</summary>
2062 public const int RepeatedNestedMessageFieldNumber = 48;
2063 private static readonly pb::FieldCodec<global::Google.Protobuf.TestProtos.Proto2.TestAllTypes.Types.NestedMessage> _repeated_repeatedNestedMessage_codec
2064 = pb::FieldCodec.ForMessage(386, global::Google.Protobuf.TestProtos.Proto2.TestAllTypes.Types.NestedMessage.Parser);
2065 private readonly pbc::RepeatedField<global::Google.Protobuf.TestProtos.Proto2.TestAllTypes.Types.NestedMessage> repeatedNestedMessage_ = new pbc::RepeatedField<global::Google.Protobuf.TestProtos.Proto2.TestAllTypes.Types.NestedMessage>();
2066 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +02002067 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -05002068 public pbc::RepeatedField<global::Google.Protobuf.TestProtos.Proto2.TestAllTypes.Types.NestedMessage> RepeatedNestedMessage {
2069 get { return repeatedNestedMessage_; }
2070 }
2071
2072 /// <summary>Field number for the "repeated_foreign_message" field.</summary>
2073 public const int RepeatedForeignMessageFieldNumber = 49;
2074 private static readonly pb::FieldCodec<global::Google.Protobuf.TestProtos.Proto2.ForeignMessage> _repeated_repeatedForeignMessage_codec
2075 = pb::FieldCodec.ForMessage(394, global::Google.Protobuf.TestProtos.Proto2.ForeignMessage.Parser);
2076 private readonly pbc::RepeatedField<global::Google.Protobuf.TestProtos.Proto2.ForeignMessage> repeatedForeignMessage_ = new pbc::RepeatedField<global::Google.Protobuf.TestProtos.Proto2.ForeignMessage>();
2077 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +02002078 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -05002079 public pbc::RepeatedField<global::Google.Protobuf.TestProtos.Proto2.ForeignMessage> RepeatedForeignMessage {
2080 get { return repeatedForeignMessage_; }
2081 }
2082
2083 /// <summary>Field number for the "repeated_import_message" field.</summary>
2084 public const int RepeatedImportMessageFieldNumber = 50;
2085 private static readonly pb::FieldCodec<global::Google.Protobuf.TestProtos.Proto2.ImportMessage> _repeated_repeatedImportMessage_codec
2086 = pb::FieldCodec.ForMessage(402, global::Google.Protobuf.TestProtos.Proto2.ImportMessage.Parser);
2087 private readonly pbc::RepeatedField<global::Google.Protobuf.TestProtos.Proto2.ImportMessage> repeatedImportMessage_ = new pbc::RepeatedField<global::Google.Protobuf.TestProtos.Proto2.ImportMessage>();
2088 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +02002089 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -05002090 public pbc::RepeatedField<global::Google.Protobuf.TestProtos.Proto2.ImportMessage> RepeatedImportMessage {
2091 get { return repeatedImportMessage_; }
2092 }
2093
2094 /// <summary>Field number for the "repeated_nested_enum" field.</summary>
2095 public const int RepeatedNestedEnumFieldNumber = 51;
2096 private static readonly pb::FieldCodec<global::Google.Protobuf.TestProtos.Proto2.TestAllTypes.Types.NestedEnum> _repeated_repeatedNestedEnum_codec
2097 = pb::FieldCodec.ForEnum(408, x => (int) x, x => (global::Google.Protobuf.TestProtos.Proto2.TestAllTypes.Types.NestedEnum) x);
2098 private readonly pbc::RepeatedField<global::Google.Protobuf.TestProtos.Proto2.TestAllTypes.Types.NestedEnum> repeatedNestedEnum_ = new pbc::RepeatedField<global::Google.Protobuf.TestProtos.Proto2.TestAllTypes.Types.NestedEnum>();
2099 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +02002100 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -05002101 public pbc::RepeatedField<global::Google.Protobuf.TestProtos.Proto2.TestAllTypes.Types.NestedEnum> RepeatedNestedEnum {
2102 get { return repeatedNestedEnum_; }
2103 }
2104
2105 /// <summary>Field number for the "repeated_foreign_enum" field.</summary>
2106 public const int RepeatedForeignEnumFieldNumber = 52;
2107 private static readonly pb::FieldCodec<global::Google.Protobuf.TestProtos.Proto2.ForeignEnum> _repeated_repeatedForeignEnum_codec
2108 = pb::FieldCodec.ForEnum(416, x => (int) x, x => (global::Google.Protobuf.TestProtos.Proto2.ForeignEnum) x);
2109 private readonly pbc::RepeatedField<global::Google.Protobuf.TestProtos.Proto2.ForeignEnum> repeatedForeignEnum_ = new pbc::RepeatedField<global::Google.Protobuf.TestProtos.Proto2.ForeignEnum>();
2110 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +02002111 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -05002112 public pbc::RepeatedField<global::Google.Protobuf.TestProtos.Proto2.ForeignEnum> RepeatedForeignEnum {
2113 get { return repeatedForeignEnum_; }
2114 }
2115
2116 /// <summary>Field number for the "repeated_import_enum" field.</summary>
2117 public const int RepeatedImportEnumFieldNumber = 53;
2118 private static readonly pb::FieldCodec<global::Google.Protobuf.TestProtos.Proto2.ImportEnum> _repeated_repeatedImportEnum_codec
2119 = pb::FieldCodec.ForEnum(424, x => (int) x, x => (global::Google.Protobuf.TestProtos.Proto2.ImportEnum) x);
2120 private readonly pbc::RepeatedField<global::Google.Protobuf.TestProtos.Proto2.ImportEnum> repeatedImportEnum_ = new pbc::RepeatedField<global::Google.Protobuf.TestProtos.Proto2.ImportEnum>();
2121 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +02002122 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -05002123 public pbc::RepeatedField<global::Google.Protobuf.TestProtos.Proto2.ImportEnum> RepeatedImportEnum {
2124 get { return repeatedImportEnum_; }
2125 }
2126
2127 /// <summary>Field number for the "repeated_string_piece" field.</summary>
2128 public const int RepeatedStringPieceFieldNumber = 54;
2129 private static readonly pb::FieldCodec<string> _repeated_repeatedStringPiece_codec
2130 = pb::FieldCodec.ForString(434);
2131 private readonly pbc::RepeatedField<string> repeatedStringPiece_ = new pbc::RepeatedField<string>();
2132 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +02002133 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -05002134 public pbc::RepeatedField<string> RepeatedStringPiece {
2135 get { return repeatedStringPiece_; }
2136 }
2137
2138 /// <summary>Field number for the "repeated_cord" field.</summary>
2139 public const int RepeatedCordFieldNumber = 55;
2140 private static readonly pb::FieldCodec<string> _repeated_repeatedCord_codec
2141 = pb::FieldCodec.ForString(442);
2142 private readonly pbc::RepeatedField<string> repeatedCord_ = new pbc::RepeatedField<string>();
2143 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +02002144 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -05002145 public pbc::RepeatedField<string> RepeatedCord {
2146 get { return repeatedCord_; }
2147 }
2148
2149 /// <summary>Field number for the "repeated_lazy_message" field.</summary>
2150 public const int RepeatedLazyMessageFieldNumber = 57;
2151 private static readonly pb::FieldCodec<global::Google.Protobuf.TestProtos.Proto2.TestAllTypes.Types.NestedMessage> _repeated_repeatedLazyMessage_codec
2152 = pb::FieldCodec.ForMessage(458, global::Google.Protobuf.TestProtos.Proto2.TestAllTypes.Types.NestedMessage.Parser);
2153 private readonly pbc::RepeatedField<global::Google.Protobuf.TestProtos.Proto2.TestAllTypes.Types.NestedMessage> repeatedLazyMessage_ = new pbc::RepeatedField<global::Google.Protobuf.TestProtos.Proto2.TestAllTypes.Types.NestedMessage>();
2154 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +02002155 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -05002156 public pbc::RepeatedField<global::Google.Protobuf.TestProtos.Proto2.TestAllTypes.Types.NestedMessage> RepeatedLazyMessage {
2157 get { return repeatedLazyMessage_; }
2158 }
2159
2160 /// <summary>Field number for the "default_int32" field.</summary>
2161 public const int DefaultInt32FieldNumber = 61;
2162 private readonly static int DefaultInt32DefaultValue = 41;
2163
2164 private int defaultInt32_;
2165 /// <summary>
2166 /// Singular with defaults
2167 /// </summary>
2168 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +02002169 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -05002170 public int DefaultInt32 {
2171 get { if ((_hasBits0 & 65536) != 0) { return defaultInt32_; } else { return DefaultInt32DefaultValue; } }
2172 set {
2173 _hasBits0 |= 65536;
2174 defaultInt32_ = value;
2175 }
2176 }
2177 /// <summary>Gets whether the "default_int32" field is set</summary>
2178 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +02002179 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -05002180 public bool HasDefaultInt32 {
2181 get { return (_hasBits0 & 65536) != 0; }
2182 }
2183 /// <summary>Clears the value of the "default_int32" field</summary>
2184 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +02002185 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -05002186 public void ClearDefaultInt32() {
2187 _hasBits0 &= ~65536;
2188 }
2189
2190 /// <summary>Field number for the "default_int64" field.</summary>
2191 public const int DefaultInt64FieldNumber = 62;
2192 private readonly static long DefaultInt64DefaultValue = 42L;
2193
2194 private long defaultInt64_;
2195 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +02002196 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -05002197 public long DefaultInt64 {
2198 get { if ((_hasBits0 & 131072) != 0) { return defaultInt64_; } else { return DefaultInt64DefaultValue; } }
2199 set {
2200 _hasBits0 |= 131072;
2201 defaultInt64_ = value;
2202 }
2203 }
2204 /// <summary>Gets whether the "default_int64" field is set</summary>
2205 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +02002206 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -05002207 public bool HasDefaultInt64 {
2208 get { return (_hasBits0 & 131072) != 0; }
2209 }
2210 /// <summary>Clears the value of the "default_int64" field</summary>
2211 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +02002212 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -05002213 public void ClearDefaultInt64() {
2214 _hasBits0 &= ~131072;
2215 }
2216
2217 /// <summary>Field number for the "default_uint32" field.</summary>
2218 public const int DefaultUint32FieldNumber = 63;
2219 private readonly static uint DefaultUint32DefaultValue = 43;
2220
2221 private uint defaultUint32_;
2222 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +02002223 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -05002224 public uint DefaultUint32 {
2225 get { if ((_hasBits0 & 262144) != 0) { return defaultUint32_; } else { return DefaultUint32DefaultValue; } }
2226 set {
2227 _hasBits0 |= 262144;
2228 defaultUint32_ = value;
2229 }
2230 }
2231 /// <summary>Gets whether the "default_uint32" field is set</summary>
2232 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +02002233 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -05002234 public bool HasDefaultUint32 {
2235 get { return (_hasBits0 & 262144) != 0; }
2236 }
2237 /// <summary>Clears the value of the "default_uint32" field</summary>
2238 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +02002239 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -05002240 public void ClearDefaultUint32() {
2241 _hasBits0 &= ~262144;
2242 }
2243
2244 /// <summary>Field number for the "default_uint64" field.</summary>
2245 public const int DefaultUint64FieldNumber = 64;
2246 private readonly static ulong DefaultUint64DefaultValue = 44UL;
2247
2248 private ulong defaultUint64_;
2249 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +02002250 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -05002251 public ulong DefaultUint64 {
2252 get { if ((_hasBits0 & 524288) != 0) { return defaultUint64_; } else { return DefaultUint64DefaultValue; } }
2253 set {
2254 _hasBits0 |= 524288;
2255 defaultUint64_ = value;
2256 }
2257 }
2258 /// <summary>Gets whether the "default_uint64" field is set</summary>
2259 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +02002260 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -05002261 public bool HasDefaultUint64 {
2262 get { return (_hasBits0 & 524288) != 0; }
2263 }
2264 /// <summary>Clears the value of the "default_uint64" field</summary>
2265 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +02002266 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -05002267 public void ClearDefaultUint64() {
2268 _hasBits0 &= ~524288;
2269 }
2270
2271 /// <summary>Field number for the "default_sint32" field.</summary>
2272 public const int DefaultSint32FieldNumber = 65;
2273 private readonly static int DefaultSint32DefaultValue = -45;
2274
2275 private int defaultSint32_;
2276 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +02002277 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -05002278 public int DefaultSint32 {
2279 get { if ((_hasBits0 & 1048576) != 0) { return defaultSint32_; } else { return DefaultSint32DefaultValue; } }
2280 set {
2281 _hasBits0 |= 1048576;
2282 defaultSint32_ = value;
2283 }
2284 }
2285 /// <summary>Gets whether the "default_sint32" field is set</summary>
2286 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +02002287 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -05002288 public bool HasDefaultSint32 {
2289 get { return (_hasBits0 & 1048576) != 0; }
2290 }
2291 /// <summary>Clears the value of the "default_sint32" field</summary>
2292 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +02002293 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -05002294 public void ClearDefaultSint32() {
2295 _hasBits0 &= ~1048576;
2296 }
2297
2298 /// <summary>Field number for the "default_sint64" field.</summary>
2299 public const int DefaultSint64FieldNumber = 66;
2300 private readonly static long DefaultSint64DefaultValue = 46L;
2301
2302 private long defaultSint64_;
2303 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +02002304 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -05002305 public long DefaultSint64 {
2306 get { if ((_hasBits0 & 2097152) != 0) { return defaultSint64_; } else { return DefaultSint64DefaultValue; } }
2307 set {
2308 _hasBits0 |= 2097152;
2309 defaultSint64_ = value;
2310 }
2311 }
2312 /// <summary>Gets whether the "default_sint64" field is set</summary>
2313 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +02002314 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -05002315 public bool HasDefaultSint64 {
2316 get { return (_hasBits0 & 2097152) != 0; }
2317 }
2318 /// <summary>Clears the value of the "default_sint64" field</summary>
2319 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +02002320 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -05002321 public void ClearDefaultSint64() {
2322 _hasBits0 &= ~2097152;
2323 }
2324
2325 /// <summary>Field number for the "default_fixed32" field.</summary>
2326 public const int DefaultFixed32FieldNumber = 67;
2327 private readonly static uint DefaultFixed32DefaultValue = 47;
2328
2329 private uint defaultFixed32_;
2330 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +02002331 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -05002332 public uint DefaultFixed32 {
2333 get { if ((_hasBits0 & 4194304) != 0) { return defaultFixed32_; } else { return DefaultFixed32DefaultValue; } }
2334 set {
2335 _hasBits0 |= 4194304;
2336 defaultFixed32_ = value;
2337 }
2338 }
2339 /// <summary>Gets whether the "default_fixed32" field is set</summary>
2340 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +02002341 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -05002342 public bool HasDefaultFixed32 {
2343 get { return (_hasBits0 & 4194304) != 0; }
2344 }
2345 /// <summary>Clears the value of the "default_fixed32" field</summary>
2346 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +02002347 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -05002348 public void ClearDefaultFixed32() {
2349 _hasBits0 &= ~4194304;
2350 }
2351
2352 /// <summary>Field number for the "default_fixed64" field.</summary>
2353 public const int DefaultFixed64FieldNumber = 68;
2354 private readonly static ulong DefaultFixed64DefaultValue = 48UL;
2355
2356 private ulong defaultFixed64_;
2357 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +02002358 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -05002359 public ulong DefaultFixed64 {
2360 get { if ((_hasBits0 & 8388608) != 0) { return defaultFixed64_; } else { return DefaultFixed64DefaultValue; } }
2361 set {
2362 _hasBits0 |= 8388608;
2363 defaultFixed64_ = value;
2364 }
2365 }
2366 /// <summary>Gets whether the "default_fixed64" field is set</summary>
2367 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +02002368 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -05002369 public bool HasDefaultFixed64 {
2370 get { return (_hasBits0 & 8388608) != 0; }
2371 }
2372 /// <summary>Clears the value of the "default_fixed64" field</summary>
2373 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +02002374 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -05002375 public void ClearDefaultFixed64() {
2376 _hasBits0 &= ~8388608;
2377 }
2378
2379 /// <summary>Field number for the "default_sfixed32" field.</summary>
2380 public const int DefaultSfixed32FieldNumber = 69;
2381 private readonly static int DefaultSfixed32DefaultValue = 49;
2382
2383 private int defaultSfixed32_;
2384 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +02002385 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -05002386 public int DefaultSfixed32 {
2387 get { if ((_hasBits0 & 16777216) != 0) { return defaultSfixed32_; } else { return DefaultSfixed32DefaultValue; } }
2388 set {
2389 _hasBits0 |= 16777216;
2390 defaultSfixed32_ = value;
2391 }
2392 }
2393 /// <summary>Gets whether the "default_sfixed32" field is set</summary>
2394 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +02002395 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -05002396 public bool HasDefaultSfixed32 {
2397 get { return (_hasBits0 & 16777216) != 0; }
2398 }
2399 /// <summary>Clears the value of the "default_sfixed32" field</summary>
2400 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +02002401 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -05002402 public void ClearDefaultSfixed32() {
2403 _hasBits0 &= ~16777216;
2404 }
2405
2406 /// <summary>Field number for the "default_sfixed64" field.</summary>
2407 public const int DefaultSfixed64FieldNumber = 70;
2408 private readonly static long DefaultSfixed64DefaultValue = -50L;
2409
2410 private long defaultSfixed64_;
2411 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +02002412 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -05002413 public long DefaultSfixed64 {
2414 get { if ((_hasBits0 & 33554432) != 0) { return defaultSfixed64_; } else { return DefaultSfixed64DefaultValue; } }
2415 set {
2416 _hasBits0 |= 33554432;
2417 defaultSfixed64_ = value;
2418 }
2419 }
2420 /// <summary>Gets whether the "default_sfixed64" field is set</summary>
2421 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +02002422 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -05002423 public bool HasDefaultSfixed64 {
2424 get { return (_hasBits0 & 33554432) != 0; }
2425 }
2426 /// <summary>Clears the value of the "default_sfixed64" field</summary>
2427 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +02002428 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -05002429 public void ClearDefaultSfixed64() {
2430 _hasBits0 &= ~33554432;
2431 }
2432
2433 /// <summary>Field number for the "default_float" field.</summary>
2434 public const int DefaultFloatFieldNumber = 71;
2435 private readonly static float DefaultFloatDefaultValue = 51.5F;
2436
2437 private float defaultFloat_;
2438 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +02002439 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -05002440 public float DefaultFloat {
2441 get { if ((_hasBits0 & 67108864) != 0) { return defaultFloat_; } else { return DefaultFloatDefaultValue; } }
2442 set {
2443 _hasBits0 |= 67108864;
2444 defaultFloat_ = value;
2445 }
2446 }
2447 /// <summary>Gets whether the "default_float" field is set</summary>
2448 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +02002449 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -05002450 public bool HasDefaultFloat {
2451 get { return (_hasBits0 & 67108864) != 0; }
2452 }
2453 /// <summary>Clears the value of the "default_float" field</summary>
2454 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +02002455 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -05002456 public void ClearDefaultFloat() {
2457 _hasBits0 &= ~67108864;
2458 }
2459
2460 /// <summary>Field number for the "default_double" field.</summary>
2461 public const int DefaultDoubleFieldNumber = 72;
2462 private readonly static double DefaultDoubleDefaultValue = 52000D;
2463
2464 private double defaultDouble_;
2465 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +02002466 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -05002467 public double DefaultDouble {
2468 get { if ((_hasBits0 & 134217728) != 0) { return defaultDouble_; } else { return DefaultDoubleDefaultValue; } }
2469 set {
2470 _hasBits0 |= 134217728;
2471 defaultDouble_ = value;
2472 }
2473 }
2474 /// <summary>Gets whether the "default_double" field is set</summary>
2475 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +02002476 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -05002477 public bool HasDefaultDouble {
2478 get { return (_hasBits0 & 134217728) != 0; }
2479 }
2480 /// <summary>Clears the value of the "default_double" field</summary>
2481 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +02002482 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -05002483 public void ClearDefaultDouble() {
2484 _hasBits0 &= ~134217728;
2485 }
2486
2487 /// <summary>Field number for the "default_bool" field.</summary>
2488 public const int DefaultBoolFieldNumber = 73;
2489 private readonly static bool DefaultBoolDefaultValue = true;
2490
2491 private bool defaultBool_;
2492 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +02002493 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -05002494 public bool DefaultBool {
2495 get { if ((_hasBits0 & 268435456) != 0) { return defaultBool_; } else { return DefaultBoolDefaultValue; } }
2496 set {
2497 _hasBits0 |= 268435456;
2498 defaultBool_ = value;
2499 }
2500 }
2501 /// <summary>Gets whether the "default_bool" field is set</summary>
2502 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +02002503 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -05002504 public bool HasDefaultBool {
2505 get { return (_hasBits0 & 268435456) != 0; }
2506 }
2507 /// <summary>Clears the value of the "default_bool" field</summary>
2508 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +02002509 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -05002510 public void ClearDefaultBool() {
2511 _hasBits0 &= ~268435456;
2512 }
2513
2514 /// <summary>Field number for the "default_string" field.</summary>
2515 public const int DefaultStringFieldNumber = 74;
Sydney Acksmane119a432019-10-30 13:02:46 -05002516 private readonly static string DefaultStringDefaultValue = global::System.Text.Encoding.UTF8.GetString(global::System.Convert.FromBase64String("aGVsbG8="), 0, 5);
Sydney Acksman8a57ec82019-03-21 17:36:36 -05002517
2518 private string defaultString_;
2519 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +02002520 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -05002521 public string DefaultString {
2522 get { return defaultString_ ?? DefaultStringDefaultValue; }
2523 set {
2524 defaultString_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
2525 }
2526 }
2527 /// <summary>Gets whether the "default_string" field is set</summary>
2528 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +02002529 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -05002530 public bool HasDefaultString {
2531 get { return defaultString_ != null; }
2532 }
2533 /// <summary>Clears the value of the "default_string" field</summary>
2534 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +02002535 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -05002536 public void ClearDefaultString() {
2537 defaultString_ = null;
2538 }
2539
2540 /// <summary>Field number for the "default_bytes" field.</summary>
2541 public const int DefaultBytesFieldNumber = 75;
2542 private readonly static pb::ByteString DefaultBytesDefaultValue = pb::ByteString.FromBase64("d29ybGQ=");
2543
2544 private pb::ByteString defaultBytes_;
2545 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +02002546 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -05002547 public pb::ByteString DefaultBytes {
2548 get { return defaultBytes_ ?? DefaultBytesDefaultValue; }
2549 set {
2550 defaultBytes_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
2551 }
2552 }
2553 /// <summary>Gets whether the "default_bytes" field is set</summary>
2554 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +02002555 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -05002556 public bool HasDefaultBytes {
2557 get { return defaultBytes_ != null; }
2558 }
2559 /// <summary>Clears the value of the "default_bytes" field</summary>
2560 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +02002561 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -05002562 public void ClearDefaultBytes() {
2563 defaultBytes_ = null;
2564 }
2565
2566 /// <summary>Field number for the "default_nested_enum" field.</summary>
2567 public const int DefaultNestedEnumFieldNumber = 81;
2568 private readonly static global::Google.Protobuf.TestProtos.Proto2.TestAllTypes.Types.NestedEnum DefaultNestedEnumDefaultValue = global::Google.Protobuf.TestProtos.Proto2.TestAllTypes.Types.NestedEnum.Bar;
2569
2570 private global::Google.Protobuf.TestProtos.Proto2.TestAllTypes.Types.NestedEnum defaultNestedEnum_;
2571 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +02002572 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -05002573 public global::Google.Protobuf.TestProtos.Proto2.TestAllTypes.Types.NestedEnum DefaultNestedEnum {
2574 get { if ((_hasBits0 & 536870912) != 0) { return defaultNestedEnum_; } else { return DefaultNestedEnumDefaultValue; } }
2575 set {
2576 _hasBits0 |= 536870912;
2577 defaultNestedEnum_ = value;
2578 }
2579 }
2580 /// <summary>Gets whether the "default_nested_enum" field is set</summary>
2581 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +02002582 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -05002583 public bool HasDefaultNestedEnum {
2584 get { return (_hasBits0 & 536870912) != 0; }
2585 }
2586 /// <summary>Clears the value of the "default_nested_enum" field</summary>
2587 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +02002588 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -05002589 public void ClearDefaultNestedEnum() {
2590 _hasBits0 &= ~536870912;
2591 }
2592
2593 /// <summary>Field number for the "default_foreign_enum" field.</summary>
2594 public const int DefaultForeignEnumFieldNumber = 82;
2595 private readonly static global::Google.Protobuf.TestProtos.Proto2.ForeignEnum DefaultForeignEnumDefaultValue = global::Google.Protobuf.TestProtos.Proto2.ForeignEnum.ForeignBar;
2596
2597 private global::Google.Protobuf.TestProtos.Proto2.ForeignEnum defaultForeignEnum_;
2598 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +02002599 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -05002600 public global::Google.Protobuf.TestProtos.Proto2.ForeignEnum DefaultForeignEnum {
2601 get { if ((_hasBits0 & 1073741824) != 0) { return defaultForeignEnum_; } else { return DefaultForeignEnumDefaultValue; } }
2602 set {
2603 _hasBits0 |= 1073741824;
2604 defaultForeignEnum_ = value;
2605 }
2606 }
2607 /// <summary>Gets whether the "default_foreign_enum" field is set</summary>
2608 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +02002609 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -05002610 public bool HasDefaultForeignEnum {
2611 get { return (_hasBits0 & 1073741824) != 0; }
2612 }
2613 /// <summary>Clears the value of the "default_foreign_enum" field</summary>
2614 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +02002615 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -05002616 public void ClearDefaultForeignEnum() {
2617 _hasBits0 &= ~1073741824;
2618 }
2619
2620 /// <summary>Field number for the "default_import_enum" field.</summary>
2621 public const int DefaultImportEnumFieldNumber = 83;
2622 private readonly static global::Google.Protobuf.TestProtos.Proto2.ImportEnum DefaultImportEnumDefaultValue = global::Google.Protobuf.TestProtos.Proto2.ImportEnum.ImportBar;
2623
2624 private global::Google.Protobuf.TestProtos.Proto2.ImportEnum defaultImportEnum_;
2625 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +02002626 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -05002627 public global::Google.Protobuf.TestProtos.Proto2.ImportEnum DefaultImportEnum {
2628 get { if ((_hasBits0 & -2147483648) != 0) { return defaultImportEnum_; } else { return DefaultImportEnumDefaultValue; } }
2629 set {
2630 _hasBits0 |= -2147483648;
2631 defaultImportEnum_ = value;
2632 }
2633 }
2634 /// <summary>Gets whether the "default_import_enum" field is set</summary>
2635 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +02002636 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -05002637 public bool HasDefaultImportEnum {
2638 get { return (_hasBits0 & -2147483648) != 0; }
2639 }
2640 /// <summary>Clears the value of the "default_import_enum" field</summary>
2641 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +02002642 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -05002643 public void ClearDefaultImportEnum() {
2644 _hasBits0 &= ~-2147483648;
2645 }
2646
2647 /// <summary>Field number for the "default_string_piece" field.</summary>
2648 public const int DefaultStringPieceFieldNumber = 84;
Sydney Acksmane119a432019-10-30 13:02:46 -05002649 private readonly static string DefaultStringPieceDefaultValue = global::System.Text.Encoding.UTF8.GetString(global::System.Convert.FromBase64String("YWJj"), 0, 3);
Sydney Acksman8a57ec82019-03-21 17:36:36 -05002650
2651 private string defaultStringPiece_;
2652 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +02002653 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -05002654 public string DefaultStringPiece {
2655 get { return defaultStringPiece_ ?? DefaultStringPieceDefaultValue; }
2656 set {
2657 defaultStringPiece_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
2658 }
2659 }
2660 /// <summary>Gets whether the "default_string_piece" field is set</summary>
2661 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +02002662 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -05002663 public bool HasDefaultStringPiece {
2664 get { return defaultStringPiece_ != null; }
2665 }
2666 /// <summary>Clears the value of the "default_string_piece" field</summary>
2667 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +02002668 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -05002669 public void ClearDefaultStringPiece() {
2670 defaultStringPiece_ = null;
2671 }
2672
2673 /// <summary>Field number for the "default_cord" field.</summary>
2674 public const int DefaultCordFieldNumber = 85;
Sydney Acksmane119a432019-10-30 13:02:46 -05002675 private readonly static string DefaultCordDefaultValue = global::System.Text.Encoding.UTF8.GetString(global::System.Convert.FromBase64String("MTIz"), 0, 3);
Sydney Acksman8a57ec82019-03-21 17:36:36 -05002676
2677 private string defaultCord_;
2678 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +02002679 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -05002680 public string DefaultCord {
2681 get { return defaultCord_ ?? DefaultCordDefaultValue; }
2682 set {
2683 defaultCord_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
2684 }
2685 }
2686 /// <summary>Gets whether the "default_cord" field is set</summary>
2687 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +02002688 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -05002689 public bool HasDefaultCord {
2690 get { return defaultCord_ != null; }
2691 }
2692 /// <summary>Clears the value of the "default_cord" field</summary>
2693 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +02002694 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -05002695 public void ClearDefaultCord() {
2696 defaultCord_ = null;
2697 }
2698
2699 /// <summary>Field number for the "oneof_uint32" field.</summary>
2700 public const int OneofUint32FieldNumber = 111;
2701 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +02002702 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -05002703 public uint OneofUint32 {
2704 get { return HasOneofUint32 ? (uint) oneofField_ : 0; }
2705 set {
2706 oneofField_ = value;
2707 oneofFieldCase_ = OneofFieldOneofCase.OneofUint32;
2708 }
2709 }
2710 /// <summary>Gets whether the "oneof_uint32" field is set</summary>
2711 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +02002712 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -05002713 public bool HasOneofUint32 {
2714 get { return oneofFieldCase_ == OneofFieldOneofCase.OneofUint32; }
2715 }
2716 /// <summary> Clears the value of the oneof if it's currently set to "oneof_uint32" </summary>
2717 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +02002718 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -05002719 public void ClearOneofUint32() {
2720 if (HasOneofUint32) {
2721 ClearOneofField();
2722 }
2723 }
2724
2725 /// <summary>Field number for the "oneof_nested_message" field.</summary>
2726 public const int OneofNestedMessageFieldNumber = 112;
2727 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +02002728 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -05002729 public global::Google.Protobuf.TestProtos.Proto2.TestAllTypes.Types.NestedMessage OneofNestedMessage {
Jon Skeet9926c952020-04-27 07:18:45 +01002730 get { return oneofFieldCase_ == OneofFieldOneofCase.OneofNestedMessage ? (global::Google.Protobuf.TestProtos.Proto2.TestAllTypes.Types.NestedMessage) oneofField_ : null; }
Sydney Acksman8a57ec82019-03-21 17:36:36 -05002731 set {
2732 oneofField_ = value;
2733 oneofFieldCase_ = value == null ? OneofFieldOneofCase.None : OneofFieldOneofCase.OneofNestedMessage;
2734 }
2735 }
Sydney Acksman8a57ec82019-03-21 17:36:36 -05002736
2737 /// <summary>Field number for the "oneof_string" field.</summary>
2738 public const int OneofStringFieldNumber = 113;
2739 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +02002740 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -05002741 public string OneofString {
2742 get { return HasOneofString ? (string) oneofField_ : ""; }
2743 set {
2744 oneofField_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
2745 oneofFieldCase_ = OneofFieldOneofCase.OneofString;
2746 }
2747 }
2748 /// <summary>Gets whether the "oneof_string" field is set</summary>
2749 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +02002750 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -05002751 public bool HasOneofString {
2752 get { return oneofFieldCase_ == OneofFieldOneofCase.OneofString; }
2753 }
2754 /// <summary> Clears the value of the oneof if it's currently set to "oneof_string" </summary>
2755 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +02002756 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -05002757 public void ClearOneofString() {
2758 if (HasOneofString) {
2759 ClearOneofField();
2760 }
2761 }
2762
2763 /// <summary>Field number for the "oneof_bytes" field.</summary>
2764 public const int OneofBytesFieldNumber = 114;
2765 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +02002766 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -05002767 public pb::ByteString OneofBytes {
2768 get { return HasOneofBytes ? (pb::ByteString) oneofField_ : pb::ByteString.Empty; }
2769 set {
2770 oneofField_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
2771 oneofFieldCase_ = OneofFieldOneofCase.OneofBytes;
2772 }
2773 }
2774 /// <summary>Gets whether the "oneof_bytes" field is set</summary>
2775 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +02002776 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -05002777 public bool HasOneofBytes {
2778 get { return oneofFieldCase_ == OneofFieldOneofCase.OneofBytes; }
2779 }
2780 /// <summary> Clears the value of the oneof if it's currently set to "oneof_bytes" </summary>
2781 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +02002782 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -05002783 public void ClearOneofBytes() {
2784 if (HasOneofBytes) {
2785 ClearOneofField();
2786 }
2787 }
2788
2789 private object oneofField_;
2790 /// <summary>Enum of possible cases for the "oneof_field" oneof.</summary>
2791 public enum OneofFieldOneofCase {
2792 None = 0,
2793 OneofUint32 = 111,
2794 OneofNestedMessage = 112,
2795 OneofString = 113,
2796 OneofBytes = 114,
2797 }
2798 private OneofFieldOneofCase oneofFieldCase_ = OneofFieldOneofCase.None;
2799 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +02002800 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -05002801 public OneofFieldOneofCase OneofFieldCase {
2802 get { return oneofFieldCase_; }
2803 }
2804
2805 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +02002806 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -05002807 public void ClearOneofField() {
2808 oneofFieldCase_ = OneofFieldOneofCase.None;
2809 oneofField_ = null;
2810 }
2811
2812 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +02002813 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -05002814 public override bool Equals(object other) {
2815 return Equals(other as TestAllTypes);
2816 }
2817
2818 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +02002819 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -05002820 public bool Equals(TestAllTypes other) {
2821 if (ReferenceEquals(other, null)) {
2822 return false;
2823 }
2824 if (ReferenceEquals(other, this)) {
2825 return true;
2826 }
2827 if (OptionalInt32 != other.OptionalInt32) return false;
2828 if (OptionalInt64 != other.OptionalInt64) return false;
2829 if (OptionalUint32 != other.OptionalUint32) return false;
2830 if (OptionalUint64 != other.OptionalUint64) return false;
2831 if (OptionalSint32 != other.OptionalSint32) return false;
2832 if (OptionalSint64 != other.OptionalSint64) return false;
2833 if (OptionalFixed32 != other.OptionalFixed32) return false;
2834 if (OptionalFixed64 != other.OptionalFixed64) return false;
2835 if (OptionalSfixed32 != other.OptionalSfixed32) return false;
2836 if (OptionalSfixed64 != other.OptionalSfixed64) return false;
2837 if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(OptionalFloat, other.OptionalFloat)) return false;
2838 if (!pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.Equals(OptionalDouble, other.OptionalDouble)) return false;
2839 if (OptionalBool != other.OptionalBool) return false;
2840 if (OptionalString != other.OptionalString) return false;
2841 if (OptionalBytes != other.OptionalBytes) return false;
2842 if (!object.Equals(OptionalGroup, other.OptionalGroup)) return false;
2843 if (!object.Equals(OptionalNestedMessage, other.OptionalNestedMessage)) return false;
2844 if (!object.Equals(OptionalForeignMessage, other.OptionalForeignMessage)) return false;
2845 if (!object.Equals(OptionalImportMessage, other.OptionalImportMessage)) return false;
2846 if (OptionalNestedEnum != other.OptionalNestedEnum) return false;
2847 if (OptionalForeignEnum != other.OptionalForeignEnum) return false;
2848 if (OptionalImportEnum != other.OptionalImportEnum) return false;
2849 if (OptionalStringPiece != other.OptionalStringPiece) return false;
2850 if (OptionalCord != other.OptionalCord) return false;
2851 if (!object.Equals(OptionalPublicImportMessage, other.OptionalPublicImportMessage)) return false;
2852 if (!object.Equals(OptionalLazyMessage, other.OptionalLazyMessage)) return false;
2853 if(!repeatedInt32_.Equals(other.repeatedInt32_)) return false;
2854 if(!repeatedInt64_.Equals(other.repeatedInt64_)) return false;
2855 if(!repeatedUint32_.Equals(other.repeatedUint32_)) return false;
2856 if(!repeatedUint64_.Equals(other.repeatedUint64_)) return false;
2857 if(!repeatedSint32_.Equals(other.repeatedSint32_)) return false;
2858 if(!repeatedSint64_.Equals(other.repeatedSint64_)) return false;
2859 if(!repeatedFixed32_.Equals(other.repeatedFixed32_)) return false;
2860 if(!repeatedFixed64_.Equals(other.repeatedFixed64_)) return false;
2861 if(!repeatedSfixed32_.Equals(other.repeatedSfixed32_)) return false;
2862 if(!repeatedSfixed64_.Equals(other.repeatedSfixed64_)) return false;
2863 if(!repeatedFloat_.Equals(other.repeatedFloat_)) return false;
2864 if(!repeatedDouble_.Equals(other.repeatedDouble_)) return false;
2865 if(!repeatedBool_.Equals(other.repeatedBool_)) return false;
2866 if(!repeatedString_.Equals(other.repeatedString_)) return false;
2867 if(!repeatedBytes_.Equals(other.repeatedBytes_)) return false;
2868 if(!repeatedGroup_.Equals(other.repeatedGroup_)) return false;
2869 if(!repeatedNestedMessage_.Equals(other.repeatedNestedMessage_)) return false;
2870 if(!repeatedForeignMessage_.Equals(other.repeatedForeignMessage_)) return false;
2871 if(!repeatedImportMessage_.Equals(other.repeatedImportMessage_)) return false;
2872 if(!repeatedNestedEnum_.Equals(other.repeatedNestedEnum_)) return false;
2873 if(!repeatedForeignEnum_.Equals(other.repeatedForeignEnum_)) return false;
2874 if(!repeatedImportEnum_.Equals(other.repeatedImportEnum_)) return false;
2875 if(!repeatedStringPiece_.Equals(other.repeatedStringPiece_)) return false;
2876 if(!repeatedCord_.Equals(other.repeatedCord_)) return false;
2877 if(!repeatedLazyMessage_.Equals(other.repeatedLazyMessage_)) return false;
2878 if (DefaultInt32 != other.DefaultInt32) return false;
2879 if (DefaultInt64 != other.DefaultInt64) return false;
2880 if (DefaultUint32 != other.DefaultUint32) return false;
2881 if (DefaultUint64 != other.DefaultUint64) return false;
2882 if (DefaultSint32 != other.DefaultSint32) return false;
2883 if (DefaultSint64 != other.DefaultSint64) return false;
2884 if (DefaultFixed32 != other.DefaultFixed32) return false;
2885 if (DefaultFixed64 != other.DefaultFixed64) return false;
2886 if (DefaultSfixed32 != other.DefaultSfixed32) return false;
2887 if (DefaultSfixed64 != other.DefaultSfixed64) return false;
2888 if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(DefaultFloat, other.DefaultFloat)) return false;
2889 if (!pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.Equals(DefaultDouble, other.DefaultDouble)) return false;
2890 if (DefaultBool != other.DefaultBool) return false;
2891 if (DefaultString != other.DefaultString) return false;
2892 if (DefaultBytes != other.DefaultBytes) return false;
2893 if (DefaultNestedEnum != other.DefaultNestedEnum) return false;
2894 if (DefaultForeignEnum != other.DefaultForeignEnum) return false;
2895 if (DefaultImportEnum != other.DefaultImportEnum) return false;
2896 if (DefaultStringPiece != other.DefaultStringPiece) return false;
2897 if (DefaultCord != other.DefaultCord) return false;
2898 if (OneofUint32 != other.OneofUint32) return false;
2899 if (!object.Equals(OneofNestedMessage, other.OneofNestedMessage)) return false;
2900 if (OneofString != other.OneofString) return false;
2901 if (OneofBytes != other.OneofBytes) return false;
2902 if (OneofFieldCase != other.OneofFieldCase) return false;
2903 return Equals(_unknownFields, other._unknownFields);
2904 }
2905
2906 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +02002907 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -05002908 public override int GetHashCode() {
2909 int hash = 1;
2910 if (HasOptionalInt32) hash ^= OptionalInt32.GetHashCode();
2911 if (HasOptionalInt64) hash ^= OptionalInt64.GetHashCode();
2912 if (HasOptionalUint32) hash ^= OptionalUint32.GetHashCode();
2913 if (HasOptionalUint64) hash ^= OptionalUint64.GetHashCode();
2914 if (HasOptionalSint32) hash ^= OptionalSint32.GetHashCode();
2915 if (HasOptionalSint64) hash ^= OptionalSint64.GetHashCode();
2916 if (HasOptionalFixed32) hash ^= OptionalFixed32.GetHashCode();
2917 if (HasOptionalFixed64) hash ^= OptionalFixed64.GetHashCode();
2918 if (HasOptionalSfixed32) hash ^= OptionalSfixed32.GetHashCode();
2919 if (HasOptionalSfixed64) hash ^= OptionalSfixed64.GetHashCode();
2920 if (HasOptionalFloat) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(OptionalFloat);
2921 if (HasOptionalDouble) hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(OptionalDouble);
2922 if (HasOptionalBool) hash ^= OptionalBool.GetHashCode();
2923 if (HasOptionalString) hash ^= OptionalString.GetHashCode();
2924 if (HasOptionalBytes) hash ^= OptionalBytes.GetHashCode();
2925 if (HasOptionalGroup) hash ^= OptionalGroup.GetHashCode();
Jon Skeet9926c952020-04-27 07:18:45 +01002926 if (optionalNestedMessage_ != null) hash ^= OptionalNestedMessage.GetHashCode();
2927 if (optionalForeignMessage_ != null) hash ^= OptionalForeignMessage.GetHashCode();
2928 if (optionalImportMessage_ != null) hash ^= OptionalImportMessage.GetHashCode();
Sydney Acksman8a57ec82019-03-21 17:36:36 -05002929 if (HasOptionalNestedEnum) hash ^= OptionalNestedEnum.GetHashCode();
2930 if (HasOptionalForeignEnum) hash ^= OptionalForeignEnum.GetHashCode();
2931 if (HasOptionalImportEnum) hash ^= OptionalImportEnum.GetHashCode();
2932 if (HasOptionalStringPiece) hash ^= OptionalStringPiece.GetHashCode();
2933 if (HasOptionalCord) hash ^= OptionalCord.GetHashCode();
Jon Skeet9926c952020-04-27 07:18:45 +01002934 if (optionalPublicImportMessage_ != null) hash ^= OptionalPublicImportMessage.GetHashCode();
2935 if (optionalLazyMessage_ != null) hash ^= OptionalLazyMessage.GetHashCode();
Sydney Acksman8a57ec82019-03-21 17:36:36 -05002936 hash ^= repeatedInt32_.GetHashCode();
2937 hash ^= repeatedInt64_.GetHashCode();
2938 hash ^= repeatedUint32_.GetHashCode();
2939 hash ^= repeatedUint64_.GetHashCode();
2940 hash ^= repeatedSint32_.GetHashCode();
2941 hash ^= repeatedSint64_.GetHashCode();
2942 hash ^= repeatedFixed32_.GetHashCode();
2943 hash ^= repeatedFixed64_.GetHashCode();
2944 hash ^= repeatedSfixed32_.GetHashCode();
2945 hash ^= repeatedSfixed64_.GetHashCode();
2946 hash ^= repeatedFloat_.GetHashCode();
2947 hash ^= repeatedDouble_.GetHashCode();
2948 hash ^= repeatedBool_.GetHashCode();
2949 hash ^= repeatedString_.GetHashCode();
2950 hash ^= repeatedBytes_.GetHashCode();
2951 hash ^= repeatedGroup_.GetHashCode();
2952 hash ^= repeatedNestedMessage_.GetHashCode();
2953 hash ^= repeatedForeignMessage_.GetHashCode();
2954 hash ^= repeatedImportMessage_.GetHashCode();
2955 hash ^= repeatedNestedEnum_.GetHashCode();
2956 hash ^= repeatedForeignEnum_.GetHashCode();
2957 hash ^= repeatedImportEnum_.GetHashCode();
2958 hash ^= repeatedStringPiece_.GetHashCode();
2959 hash ^= repeatedCord_.GetHashCode();
2960 hash ^= repeatedLazyMessage_.GetHashCode();
2961 if (HasDefaultInt32) hash ^= DefaultInt32.GetHashCode();
2962 if (HasDefaultInt64) hash ^= DefaultInt64.GetHashCode();
2963 if (HasDefaultUint32) hash ^= DefaultUint32.GetHashCode();
2964 if (HasDefaultUint64) hash ^= DefaultUint64.GetHashCode();
2965 if (HasDefaultSint32) hash ^= DefaultSint32.GetHashCode();
2966 if (HasDefaultSint64) hash ^= DefaultSint64.GetHashCode();
2967 if (HasDefaultFixed32) hash ^= DefaultFixed32.GetHashCode();
2968 if (HasDefaultFixed64) hash ^= DefaultFixed64.GetHashCode();
2969 if (HasDefaultSfixed32) hash ^= DefaultSfixed32.GetHashCode();
2970 if (HasDefaultSfixed64) hash ^= DefaultSfixed64.GetHashCode();
2971 if (HasDefaultFloat) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(DefaultFloat);
2972 if (HasDefaultDouble) hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(DefaultDouble);
2973 if (HasDefaultBool) hash ^= DefaultBool.GetHashCode();
2974 if (HasDefaultString) hash ^= DefaultString.GetHashCode();
2975 if (HasDefaultBytes) hash ^= DefaultBytes.GetHashCode();
2976 if (HasDefaultNestedEnum) hash ^= DefaultNestedEnum.GetHashCode();
2977 if (HasDefaultForeignEnum) hash ^= DefaultForeignEnum.GetHashCode();
2978 if (HasDefaultImportEnum) hash ^= DefaultImportEnum.GetHashCode();
2979 if (HasDefaultStringPiece) hash ^= DefaultStringPiece.GetHashCode();
2980 if (HasDefaultCord) hash ^= DefaultCord.GetHashCode();
2981 if (HasOneofUint32) hash ^= OneofUint32.GetHashCode();
Jon Skeet9926c952020-04-27 07:18:45 +01002982 if (oneofFieldCase_ == OneofFieldOneofCase.OneofNestedMessage) hash ^= OneofNestedMessage.GetHashCode();
Sydney Acksman8a57ec82019-03-21 17:36:36 -05002983 if (HasOneofString) hash ^= OneofString.GetHashCode();
2984 if (HasOneofBytes) hash ^= OneofBytes.GetHashCode();
2985 hash ^= (int) oneofFieldCase_;
2986 if (_unknownFields != null) {
2987 hash ^= _unknownFields.GetHashCode();
2988 }
2989 return hash;
2990 }
2991
2992 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +02002993 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -05002994 public override string ToString() {
2995 return pb::JsonFormatter.ToDiagnosticString(this);
2996 }
2997
2998 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +02002999 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -05003000 public void WriteTo(pb::CodedOutputStream output) {
Jan Tattermusch125e4ad2020-05-29 04:32:43 -04003001 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
3002 output.WriteRawMessage(this);
3003 #else
Sydney Acksman8a57ec82019-03-21 17:36:36 -05003004 if (HasOptionalInt32) {
3005 output.WriteRawTag(8);
3006 output.WriteInt32(OptionalInt32);
3007 }
3008 if (HasOptionalInt64) {
3009 output.WriteRawTag(16);
3010 output.WriteInt64(OptionalInt64);
3011 }
3012 if (HasOptionalUint32) {
3013 output.WriteRawTag(24);
3014 output.WriteUInt32(OptionalUint32);
3015 }
3016 if (HasOptionalUint64) {
3017 output.WriteRawTag(32);
3018 output.WriteUInt64(OptionalUint64);
3019 }
3020 if (HasOptionalSint32) {
3021 output.WriteRawTag(40);
3022 output.WriteSInt32(OptionalSint32);
3023 }
3024 if (HasOptionalSint64) {
3025 output.WriteRawTag(48);
3026 output.WriteSInt64(OptionalSint64);
3027 }
3028 if (HasOptionalFixed32) {
3029 output.WriteRawTag(61);
3030 output.WriteFixed32(OptionalFixed32);
3031 }
3032 if (HasOptionalFixed64) {
3033 output.WriteRawTag(65);
3034 output.WriteFixed64(OptionalFixed64);
3035 }
3036 if (HasOptionalSfixed32) {
3037 output.WriteRawTag(77);
3038 output.WriteSFixed32(OptionalSfixed32);
3039 }
3040 if (HasOptionalSfixed64) {
3041 output.WriteRawTag(81);
3042 output.WriteSFixed64(OptionalSfixed64);
3043 }
3044 if (HasOptionalFloat) {
3045 output.WriteRawTag(93);
3046 output.WriteFloat(OptionalFloat);
3047 }
3048 if (HasOptionalDouble) {
3049 output.WriteRawTag(97);
3050 output.WriteDouble(OptionalDouble);
3051 }
3052 if (HasOptionalBool) {
3053 output.WriteRawTag(104);
3054 output.WriteBool(OptionalBool);
3055 }
3056 if (HasOptionalString) {
3057 output.WriteRawTag(114);
3058 output.WriteString(OptionalString);
3059 }
3060 if (HasOptionalBytes) {
3061 output.WriteRawTag(122);
3062 output.WriteBytes(OptionalBytes);
3063 }
3064 if (HasOptionalGroup) {
3065 output.WriteRawTag(131, 1);
3066 output.WriteGroup(OptionalGroup);
3067 output.WriteRawTag(132, 1);
3068 }
Jon Skeet9926c952020-04-27 07:18:45 +01003069 if (optionalNestedMessage_ != null) {
Sydney Acksman8a57ec82019-03-21 17:36:36 -05003070 output.WriteRawTag(146, 1);
3071 output.WriteMessage(OptionalNestedMessage);
3072 }
Jon Skeet9926c952020-04-27 07:18:45 +01003073 if (optionalForeignMessage_ != null) {
Sydney Acksman8a57ec82019-03-21 17:36:36 -05003074 output.WriteRawTag(154, 1);
3075 output.WriteMessage(OptionalForeignMessage);
3076 }
Jon Skeet9926c952020-04-27 07:18:45 +01003077 if (optionalImportMessage_ != null) {
Sydney Acksman8a57ec82019-03-21 17:36:36 -05003078 output.WriteRawTag(162, 1);
3079 output.WriteMessage(OptionalImportMessage);
3080 }
3081 if (HasOptionalNestedEnum) {
3082 output.WriteRawTag(168, 1);
3083 output.WriteEnum((int) OptionalNestedEnum);
3084 }
3085 if (HasOptionalForeignEnum) {
3086 output.WriteRawTag(176, 1);
3087 output.WriteEnum((int) OptionalForeignEnum);
3088 }
3089 if (HasOptionalImportEnum) {
3090 output.WriteRawTag(184, 1);
3091 output.WriteEnum((int) OptionalImportEnum);
3092 }
3093 if (HasOptionalStringPiece) {
3094 output.WriteRawTag(194, 1);
3095 output.WriteString(OptionalStringPiece);
3096 }
3097 if (HasOptionalCord) {
3098 output.WriteRawTag(202, 1);
3099 output.WriteString(OptionalCord);
3100 }
Jon Skeet9926c952020-04-27 07:18:45 +01003101 if (optionalPublicImportMessage_ != null) {
Sydney Acksman8a57ec82019-03-21 17:36:36 -05003102 output.WriteRawTag(210, 1);
3103 output.WriteMessage(OptionalPublicImportMessage);
3104 }
Jon Skeet9926c952020-04-27 07:18:45 +01003105 if (optionalLazyMessage_ != null) {
Sydney Acksman8a57ec82019-03-21 17:36:36 -05003106 output.WriteRawTag(218, 1);
3107 output.WriteMessage(OptionalLazyMessage);
3108 }
3109 repeatedInt32_.WriteTo(output, _repeated_repeatedInt32_codec);
3110 repeatedInt64_.WriteTo(output, _repeated_repeatedInt64_codec);
3111 repeatedUint32_.WriteTo(output, _repeated_repeatedUint32_codec);
3112 repeatedUint64_.WriteTo(output, _repeated_repeatedUint64_codec);
3113 repeatedSint32_.WriteTo(output, _repeated_repeatedSint32_codec);
3114 repeatedSint64_.WriteTo(output, _repeated_repeatedSint64_codec);
3115 repeatedFixed32_.WriteTo(output, _repeated_repeatedFixed32_codec);
3116 repeatedFixed64_.WriteTo(output, _repeated_repeatedFixed64_codec);
3117 repeatedSfixed32_.WriteTo(output, _repeated_repeatedSfixed32_codec);
3118 repeatedSfixed64_.WriteTo(output, _repeated_repeatedSfixed64_codec);
3119 repeatedFloat_.WriteTo(output, _repeated_repeatedFloat_codec);
3120 repeatedDouble_.WriteTo(output, _repeated_repeatedDouble_codec);
3121 repeatedBool_.WriteTo(output, _repeated_repeatedBool_codec);
3122 repeatedString_.WriteTo(output, _repeated_repeatedString_codec);
3123 repeatedBytes_.WriteTo(output, _repeated_repeatedBytes_codec);
3124 repeatedGroup_.WriteTo(output, _repeated_repeatedGroup_codec);
3125 repeatedNestedMessage_.WriteTo(output, _repeated_repeatedNestedMessage_codec);
3126 repeatedForeignMessage_.WriteTo(output, _repeated_repeatedForeignMessage_codec);
3127 repeatedImportMessage_.WriteTo(output, _repeated_repeatedImportMessage_codec);
Jan Tattermusch90703892020-05-29 07:35:21 -04003128 repeatedNestedEnum_.WriteTo(output, _repeated_repeatedNestedEnum_codec);
3129 repeatedForeignEnum_.WriteTo(output, _repeated_repeatedForeignEnum_codec);
3130 repeatedImportEnum_.WriteTo(output, _repeated_repeatedImportEnum_codec);
Sydney Acksman8a57ec82019-03-21 17:36:36 -05003131 repeatedStringPiece_.WriteTo(output, _repeated_repeatedStringPiece_codec);
3132 repeatedCord_.WriteTo(output, _repeated_repeatedCord_codec);
3133 repeatedLazyMessage_.WriteTo(output, _repeated_repeatedLazyMessage_codec);
3134 if (HasDefaultInt32) {
3135 output.WriteRawTag(232, 3);
3136 output.WriteInt32(DefaultInt32);
3137 }
3138 if (HasDefaultInt64) {
3139 output.WriteRawTag(240, 3);
3140 output.WriteInt64(DefaultInt64);
3141 }
3142 if (HasDefaultUint32) {
3143 output.WriteRawTag(248, 3);
3144 output.WriteUInt32(DefaultUint32);
3145 }
3146 if (HasDefaultUint64) {
3147 output.WriteRawTag(128, 4);
3148 output.WriteUInt64(DefaultUint64);
3149 }
3150 if (HasDefaultSint32) {
3151 output.WriteRawTag(136, 4);
3152 output.WriteSInt32(DefaultSint32);
3153 }
3154 if (HasDefaultSint64) {
3155 output.WriteRawTag(144, 4);
3156 output.WriteSInt64(DefaultSint64);
3157 }
3158 if (HasDefaultFixed32) {
3159 output.WriteRawTag(157, 4);
3160 output.WriteFixed32(DefaultFixed32);
3161 }
3162 if (HasDefaultFixed64) {
3163 output.WriteRawTag(161, 4);
3164 output.WriteFixed64(DefaultFixed64);
3165 }
3166 if (HasDefaultSfixed32) {
3167 output.WriteRawTag(173, 4);
3168 output.WriteSFixed32(DefaultSfixed32);
3169 }
3170 if (HasDefaultSfixed64) {
3171 output.WriteRawTag(177, 4);
3172 output.WriteSFixed64(DefaultSfixed64);
3173 }
3174 if (HasDefaultFloat) {
3175 output.WriteRawTag(189, 4);
3176 output.WriteFloat(DefaultFloat);
3177 }
3178 if (HasDefaultDouble) {
3179 output.WriteRawTag(193, 4);
3180 output.WriteDouble(DefaultDouble);
3181 }
3182 if (HasDefaultBool) {
3183 output.WriteRawTag(200, 4);
3184 output.WriteBool(DefaultBool);
3185 }
3186 if (HasDefaultString) {
3187 output.WriteRawTag(210, 4);
3188 output.WriteString(DefaultString);
3189 }
3190 if (HasDefaultBytes) {
3191 output.WriteRawTag(218, 4);
3192 output.WriteBytes(DefaultBytes);
3193 }
3194 if (HasDefaultNestedEnum) {
3195 output.WriteRawTag(136, 5);
3196 output.WriteEnum((int) DefaultNestedEnum);
3197 }
3198 if (HasDefaultForeignEnum) {
3199 output.WriteRawTag(144, 5);
3200 output.WriteEnum((int) DefaultForeignEnum);
3201 }
3202 if (HasDefaultImportEnum) {
3203 output.WriteRawTag(152, 5);
3204 output.WriteEnum((int) DefaultImportEnum);
3205 }
3206 if (HasDefaultStringPiece) {
3207 output.WriteRawTag(162, 5);
3208 output.WriteString(DefaultStringPiece);
3209 }
3210 if (HasDefaultCord) {
3211 output.WriteRawTag(170, 5);
3212 output.WriteString(DefaultCord);
3213 }
3214 if (HasOneofUint32) {
3215 output.WriteRawTag(248, 6);
3216 output.WriteUInt32(OneofUint32);
3217 }
Jon Skeet9926c952020-04-27 07:18:45 +01003218 if (oneofFieldCase_ == OneofFieldOneofCase.OneofNestedMessage) {
Sydney Acksman8a57ec82019-03-21 17:36:36 -05003219 output.WriteRawTag(130, 7);
3220 output.WriteMessage(OneofNestedMessage);
3221 }
3222 if (HasOneofString) {
3223 output.WriteRawTag(138, 7);
3224 output.WriteString(OneofString);
3225 }
3226 if (HasOneofBytes) {
3227 output.WriteRawTag(146, 7);
3228 output.WriteBytes(OneofBytes);
3229 }
3230 if (_unknownFields != null) {
3231 _unknownFields.WriteTo(output);
3232 }
Jan Tattermusch125e4ad2020-05-29 04:32:43 -04003233 #endif
Sydney Acksman8a57ec82019-03-21 17:36:36 -05003234 }
3235
Jan Tattermusch125e4ad2020-05-29 04:32:43 -04003236 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
3237 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +02003238 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Jan Tattermusch125e4ad2020-05-29 04:32:43 -04003239 void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
3240 if (HasOptionalInt32) {
3241 output.WriteRawTag(8);
3242 output.WriteInt32(OptionalInt32);
3243 }
3244 if (HasOptionalInt64) {
3245 output.WriteRawTag(16);
3246 output.WriteInt64(OptionalInt64);
3247 }
3248 if (HasOptionalUint32) {
3249 output.WriteRawTag(24);
3250 output.WriteUInt32(OptionalUint32);
3251 }
3252 if (HasOptionalUint64) {
3253 output.WriteRawTag(32);
3254 output.WriteUInt64(OptionalUint64);
3255 }
3256 if (HasOptionalSint32) {
3257 output.WriteRawTag(40);
3258 output.WriteSInt32(OptionalSint32);
3259 }
3260 if (HasOptionalSint64) {
3261 output.WriteRawTag(48);
3262 output.WriteSInt64(OptionalSint64);
3263 }
3264 if (HasOptionalFixed32) {
3265 output.WriteRawTag(61);
3266 output.WriteFixed32(OptionalFixed32);
3267 }
3268 if (HasOptionalFixed64) {
3269 output.WriteRawTag(65);
3270 output.WriteFixed64(OptionalFixed64);
3271 }
3272 if (HasOptionalSfixed32) {
3273 output.WriteRawTag(77);
3274 output.WriteSFixed32(OptionalSfixed32);
3275 }
3276 if (HasOptionalSfixed64) {
3277 output.WriteRawTag(81);
3278 output.WriteSFixed64(OptionalSfixed64);
3279 }
3280 if (HasOptionalFloat) {
3281 output.WriteRawTag(93);
3282 output.WriteFloat(OptionalFloat);
3283 }
3284 if (HasOptionalDouble) {
3285 output.WriteRawTag(97);
3286 output.WriteDouble(OptionalDouble);
3287 }
3288 if (HasOptionalBool) {
3289 output.WriteRawTag(104);
3290 output.WriteBool(OptionalBool);
3291 }
3292 if (HasOptionalString) {
3293 output.WriteRawTag(114);
3294 output.WriteString(OptionalString);
3295 }
3296 if (HasOptionalBytes) {
3297 output.WriteRawTag(122);
3298 output.WriteBytes(OptionalBytes);
3299 }
3300 if (HasOptionalGroup) {
3301 output.WriteRawTag(131, 1);
3302 output.WriteGroup(OptionalGroup);
3303 output.WriteRawTag(132, 1);
3304 }
3305 if (optionalNestedMessage_ != null) {
3306 output.WriteRawTag(146, 1);
3307 output.WriteMessage(OptionalNestedMessage);
3308 }
3309 if (optionalForeignMessage_ != null) {
3310 output.WriteRawTag(154, 1);
3311 output.WriteMessage(OptionalForeignMessage);
3312 }
3313 if (optionalImportMessage_ != null) {
3314 output.WriteRawTag(162, 1);
3315 output.WriteMessage(OptionalImportMessage);
3316 }
3317 if (HasOptionalNestedEnum) {
3318 output.WriteRawTag(168, 1);
3319 output.WriteEnum((int) OptionalNestedEnum);
3320 }
3321 if (HasOptionalForeignEnum) {
3322 output.WriteRawTag(176, 1);
3323 output.WriteEnum((int) OptionalForeignEnum);
3324 }
3325 if (HasOptionalImportEnum) {
3326 output.WriteRawTag(184, 1);
3327 output.WriteEnum((int) OptionalImportEnum);
3328 }
3329 if (HasOptionalStringPiece) {
3330 output.WriteRawTag(194, 1);
3331 output.WriteString(OptionalStringPiece);
3332 }
3333 if (HasOptionalCord) {
3334 output.WriteRawTag(202, 1);
3335 output.WriteString(OptionalCord);
3336 }
3337 if (optionalPublicImportMessage_ != null) {
3338 output.WriteRawTag(210, 1);
3339 output.WriteMessage(OptionalPublicImportMessage);
3340 }
3341 if (optionalLazyMessage_ != null) {
3342 output.WriteRawTag(218, 1);
3343 output.WriteMessage(OptionalLazyMessage);
3344 }
3345 repeatedInt32_.WriteTo(ref output, _repeated_repeatedInt32_codec);
3346 repeatedInt64_.WriteTo(ref output, _repeated_repeatedInt64_codec);
3347 repeatedUint32_.WriteTo(ref output, _repeated_repeatedUint32_codec);
3348 repeatedUint64_.WriteTo(ref output, _repeated_repeatedUint64_codec);
3349 repeatedSint32_.WriteTo(ref output, _repeated_repeatedSint32_codec);
3350 repeatedSint64_.WriteTo(ref output, _repeated_repeatedSint64_codec);
3351 repeatedFixed32_.WriteTo(ref output, _repeated_repeatedFixed32_codec);
3352 repeatedFixed64_.WriteTo(ref output, _repeated_repeatedFixed64_codec);
3353 repeatedSfixed32_.WriteTo(ref output, _repeated_repeatedSfixed32_codec);
3354 repeatedSfixed64_.WriteTo(ref output, _repeated_repeatedSfixed64_codec);
3355 repeatedFloat_.WriteTo(ref output, _repeated_repeatedFloat_codec);
3356 repeatedDouble_.WriteTo(ref output, _repeated_repeatedDouble_codec);
3357 repeatedBool_.WriteTo(ref output, _repeated_repeatedBool_codec);
3358 repeatedString_.WriteTo(ref output, _repeated_repeatedString_codec);
3359 repeatedBytes_.WriteTo(ref output, _repeated_repeatedBytes_codec);
3360 repeatedGroup_.WriteTo(ref output, _repeated_repeatedGroup_codec);
3361 repeatedNestedMessage_.WriteTo(ref output, _repeated_repeatedNestedMessage_codec);
3362 repeatedForeignMessage_.WriteTo(ref output, _repeated_repeatedForeignMessage_codec);
3363 repeatedImportMessage_.WriteTo(ref output, _repeated_repeatedImportMessage_codec);
3364 repeatedNestedEnum_.WriteTo(ref output, _repeated_repeatedNestedEnum_codec);
3365 repeatedForeignEnum_.WriteTo(ref output, _repeated_repeatedForeignEnum_codec);
3366 repeatedImportEnum_.WriteTo(ref output, _repeated_repeatedImportEnum_codec);
3367 repeatedStringPiece_.WriteTo(ref output, _repeated_repeatedStringPiece_codec);
3368 repeatedCord_.WriteTo(ref output, _repeated_repeatedCord_codec);
3369 repeatedLazyMessage_.WriteTo(ref output, _repeated_repeatedLazyMessage_codec);
3370 if (HasDefaultInt32) {
3371 output.WriteRawTag(232, 3);
3372 output.WriteInt32(DefaultInt32);
3373 }
3374 if (HasDefaultInt64) {
3375 output.WriteRawTag(240, 3);
3376 output.WriteInt64(DefaultInt64);
3377 }
3378 if (HasDefaultUint32) {
3379 output.WriteRawTag(248, 3);
3380 output.WriteUInt32(DefaultUint32);
3381 }
3382 if (HasDefaultUint64) {
3383 output.WriteRawTag(128, 4);
3384 output.WriteUInt64(DefaultUint64);
3385 }
3386 if (HasDefaultSint32) {
3387 output.WriteRawTag(136, 4);
3388 output.WriteSInt32(DefaultSint32);
3389 }
3390 if (HasDefaultSint64) {
3391 output.WriteRawTag(144, 4);
3392 output.WriteSInt64(DefaultSint64);
3393 }
3394 if (HasDefaultFixed32) {
3395 output.WriteRawTag(157, 4);
3396 output.WriteFixed32(DefaultFixed32);
3397 }
3398 if (HasDefaultFixed64) {
3399 output.WriteRawTag(161, 4);
3400 output.WriteFixed64(DefaultFixed64);
3401 }
3402 if (HasDefaultSfixed32) {
3403 output.WriteRawTag(173, 4);
3404 output.WriteSFixed32(DefaultSfixed32);
3405 }
3406 if (HasDefaultSfixed64) {
3407 output.WriteRawTag(177, 4);
3408 output.WriteSFixed64(DefaultSfixed64);
3409 }
3410 if (HasDefaultFloat) {
3411 output.WriteRawTag(189, 4);
3412 output.WriteFloat(DefaultFloat);
3413 }
3414 if (HasDefaultDouble) {
3415 output.WriteRawTag(193, 4);
3416 output.WriteDouble(DefaultDouble);
3417 }
3418 if (HasDefaultBool) {
3419 output.WriteRawTag(200, 4);
3420 output.WriteBool(DefaultBool);
3421 }
3422 if (HasDefaultString) {
3423 output.WriteRawTag(210, 4);
3424 output.WriteString(DefaultString);
3425 }
3426 if (HasDefaultBytes) {
3427 output.WriteRawTag(218, 4);
3428 output.WriteBytes(DefaultBytes);
3429 }
3430 if (HasDefaultNestedEnum) {
3431 output.WriteRawTag(136, 5);
3432 output.WriteEnum((int) DefaultNestedEnum);
3433 }
3434 if (HasDefaultForeignEnum) {
3435 output.WriteRawTag(144, 5);
3436 output.WriteEnum((int) DefaultForeignEnum);
3437 }
3438 if (HasDefaultImportEnum) {
3439 output.WriteRawTag(152, 5);
3440 output.WriteEnum((int) DefaultImportEnum);
3441 }
3442 if (HasDefaultStringPiece) {
3443 output.WriteRawTag(162, 5);
3444 output.WriteString(DefaultStringPiece);
3445 }
3446 if (HasDefaultCord) {
3447 output.WriteRawTag(170, 5);
3448 output.WriteString(DefaultCord);
3449 }
3450 if (HasOneofUint32) {
3451 output.WriteRawTag(248, 6);
3452 output.WriteUInt32(OneofUint32);
3453 }
3454 if (oneofFieldCase_ == OneofFieldOneofCase.OneofNestedMessage) {
3455 output.WriteRawTag(130, 7);
3456 output.WriteMessage(OneofNestedMessage);
3457 }
3458 if (HasOneofString) {
3459 output.WriteRawTag(138, 7);
3460 output.WriteString(OneofString);
3461 }
3462 if (HasOneofBytes) {
3463 output.WriteRawTag(146, 7);
3464 output.WriteBytes(OneofBytes);
3465 }
3466 if (_unknownFields != null) {
3467 _unknownFields.WriteTo(ref output);
3468 }
3469 }
3470 #endif
3471
Sydney Acksman8a57ec82019-03-21 17:36:36 -05003472 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +02003473 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -05003474 public int CalculateSize() {
3475 int size = 0;
3476 if (HasOptionalInt32) {
3477 size += 1 + pb::CodedOutputStream.ComputeInt32Size(OptionalInt32);
3478 }
3479 if (HasOptionalInt64) {
3480 size += 1 + pb::CodedOutputStream.ComputeInt64Size(OptionalInt64);
3481 }
3482 if (HasOptionalUint32) {
3483 size += 1 + pb::CodedOutputStream.ComputeUInt32Size(OptionalUint32);
3484 }
3485 if (HasOptionalUint64) {
3486 size += 1 + pb::CodedOutputStream.ComputeUInt64Size(OptionalUint64);
3487 }
3488 if (HasOptionalSint32) {
3489 size += 1 + pb::CodedOutputStream.ComputeSInt32Size(OptionalSint32);
3490 }
3491 if (HasOptionalSint64) {
3492 size += 1 + pb::CodedOutputStream.ComputeSInt64Size(OptionalSint64);
3493 }
3494 if (HasOptionalFixed32) {
3495 size += 1 + 4;
3496 }
3497 if (HasOptionalFixed64) {
3498 size += 1 + 8;
3499 }
3500 if (HasOptionalSfixed32) {
3501 size += 1 + 4;
3502 }
3503 if (HasOptionalSfixed64) {
3504 size += 1 + 8;
3505 }
3506 if (HasOptionalFloat) {
3507 size += 1 + 4;
3508 }
3509 if (HasOptionalDouble) {
3510 size += 1 + 8;
3511 }
3512 if (HasOptionalBool) {
3513 size += 1 + 1;
3514 }
3515 if (HasOptionalString) {
3516 size += 1 + pb::CodedOutputStream.ComputeStringSize(OptionalString);
3517 }
3518 if (HasOptionalBytes) {
3519 size += 1 + pb::CodedOutputStream.ComputeBytesSize(OptionalBytes);
3520 }
3521 if (HasOptionalGroup) {
3522 size += 4 + pb::CodedOutputStream.ComputeGroupSize(OptionalGroup);
3523 }
Jon Skeet9926c952020-04-27 07:18:45 +01003524 if (optionalNestedMessage_ != null) {
Sydney Acksman8a57ec82019-03-21 17:36:36 -05003525 size += 2 + pb::CodedOutputStream.ComputeMessageSize(OptionalNestedMessage);
3526 }
Jon Skeet9926c952020-04-27 07:18:45 +01003527 if (optionalForeignMessage_ != null) {
Sydney Acksman8a57ec82019-03-21 17:36:36 -05003528 size += 2 + pb::CodedOutputStream.ComputeMessageSize(OptionalForeignMessage);
3529 }
Jon Skeet9926c952020-04-27 07:18:45 +01003530 if (optionalImportMessage_ != null) {
Sydney Acksman8a57ec82019-03-21 17:36:36 -05003531 size += 2 + pb::CodedOutputStream.ComputeMessageSize(OptionalImportMessage);
3532 }
3533 if (HasOptionalNestedEnum) {
3534 size += 2 + pb::CodedOutputStream.ComputeEnumSize((int) OptionalNestedEnum);
3535 }
3536 if (HasOptionalForeignEnum) {
3537 size += 2 + pb::CodedOutputStream.ComputeEnumSize((int) OptionalForeignEnum);
3538 }
3539 if (HasOptionalImportEnum) {
3540 size += 2 + pb::CodedOutputStream.ComputeEnumSize((int) OptionalImportEnum);
3541 }
3542 if (HasOptionalStringPiece) {
3543 size += 2 + pb::CodedOutputStream.ComputeStringSize(OptionalStringPiece);
3544 }
3545 if (HasOptionalCord) {
3546 size += 2 + pb::CodedOutputStream.ComputeStringSize(OptionalCord);
3547 }
Jon Skeet9926c952020-04-27 07:18:45 +01003548 if (optionalPublicImportMessage_ != null) {
Sydney Acksman8a57ec82019-03-21 17:36:36 -05003549 size += 2 + pb::CodedOutputStream.ComputeMessageSize(OptionalPublicImportMessage);
3550 }
Jon Skeet9926c952020-04-27 07:18:45 +01003551 if (optionalLazyMessage_ != null) {
Sydney Acksman8a57ec82019-03-21 17:36:36 -05003552 size += 2 + pb::CodedOutputStream.ComputeMessageSize(OptionalLazyMessage);
3553 }
3554 size += repeatedInt32_.CalculateSize(_repeated_repeatedInt32_codec);
3555 size += repeatedInt64_.CalculateSize(_repeated_repeatedInt64_codec);
3556 size += repeatedUint32_.CalculateSize(_repeated_repeatedUint32_codec);
3557 size += repeatedUint64_.CalculateSize(_repeated_repeatedUint64_codec);
3558 size += repeatedSint32_.CalculateSize(_repeated_repeatedSint32_codec);
3559 size += repeatedSint64_.CalculateSize(_repeated_repeatedSint64_codec);
3560 size += repeatedFixed32_.CalculateSize(_repeated_repeatedFixed32_codec);
3561 size += repeatedFixed64_.CalculateSize(_repeated_repeatedFixed64_codec);
3562 size += repeatedSfixed32_.CalculateSize(_repeated_repeatedSfixed32_codec);
3563 size += repeatedSfixed64_.CalculateSize(_repeated_repeatedSfixed64_codec);
3564 size += repeatedFloat_.CalculateSize(_repeated_repeatedFloat_codec);
3565 size += repeatedDouble_.CalculateSize(_repeated_repeatedDouble_codec);
3566 size += repeatedBool_.CalculateSize(_repeated_repeatedBool_codec);
3567 size += repeatedString_.CalculateSize(_repeated_repeatedString_codec);
3568 size += repeatedBytes_.CalculateSize(_repeated_repeatedBytes_codec);
3569 size += repeatedGroup_.CalculateSize(_repeated_repeatedGroup_codec);
3570 size += repeatedNestedMessage_.CalculateSize(_repeated_repeatedNestedMessage_codec);
3571 size += repeatedForeignMessage_.CalculateSize(_repeated_repeatedForeignMessage_codec);
3572 size += repeatedImportMessage_.CalculateSize(_repeated_repeatedImportMessage_codec);
3573 size += repeatedNestedEnum_.CalculateSize(_repeated_repeatedNestedEnum_codec);
3574 size += repeatedForeignEnum_.CalculateSize(_repeated_repeatedForeignEnum_codec);
3575 size += repeatedImportEnum_.CalculateSize(_repeated_repeatedImportEnum_codec);
3576 size += repeatedStringPiece_.CalculateSize(_repeated_repeatedStringPiece_codec);
3577 size += repeatedCord_.CalculateSize(_repeated_repeatedCord_codec);
3578 size += repeatedLazyMessage_.CalculateSize(_repeated_repeatedLazyMessage_codec);
3579 if (HasDefaultInt32) {
3580 size += 2 + pb::CodedOutputStream.ComputeInt32Size(DefaultInt32);
3581 }
3582 if (HasDefaultInt64) {
3583 size += 2 + pb::CodedOutputStream.ComputeInt64Size(DefaultInt64);
3584 }
3585 if (HasDefaultUint32) {
3586 size += 2 + pb::CodedOutputStream.ComputeUInt32Size(DefaultUint32);
3587 }
3588 if (HasDefaultUint64) {
3589 size += 2 + pb::CodedOutputStream.ComputeUInt64Size(DefaultUint64);
3590 }
3591 if (HasDefaultSint32) {
3592 size += 2 + pb::CodedOutputStream.ComputeSInt32Size(DefaultSint32);
3593 }
3594 if (HasDefaultSint64) {
3595 size += 2 + pb::CodedOutputStream.ComputeSInt64Size(DefaultSint64);
3596 }
3597 if (HasDefaultFixed32) {
3598 size += 2 + 4;
3599 }
3600 if (HasDefaultFixed64) {
3601 size += 2 + 8;
3602 }
3603 if (HasDefaultSfixed32) {
3604 size += 2 + 4;
3605 }
3606 if (HasDefaultSfixed64) {
3607 size += 2 + 8;
3608 }
3609 if (HasDefaultFloat) {
3610 size += 2 + 4;
3611 }
3612 if (HasDefaultDouble) {
3613 size += 2 + 8;
3614 }
3615 if (HasDefaultBool) {
3616 size += 2 + 1;
3617 }
3618 if (HasDefaultString) {
3619 size += 2 + pb::CodedOutputStream.ComputeStringSize(DefaultString);
3620 }
3621 if (HasDefaultBytes) {
3622 size += 2 + pb::CodedOutputStream.ComputeBytesSize(DefaultBytes);
3623 }
3624 if (HasDefaultNestedEnum) {
3625 size += 2 + pb::CodedOutputStream.ComputeEnumSize((int) DefaultNestedEnum);
3626 }
3627 if (HasDefaultForeignEnum) {
3628 size += 2 + pb::CodedOutputStream.ComputeEnumSize((int) DefaultForeignEnum);
3629 }
3630 if (HasDefaultImportEnum) {
3631 size += 2 + pb::CodedOutputStream.ComputeEnumSize((int) DefaultImportEnum);
3632 }
3633 if (HasDefaultStringPiece) {
3634 size += 2 + pb::CodedOutputStream.ComputeStringSize(DefaultStringPiece);
3635 }
3636 if (HasDefaultCord) {
3637 size += 2 + pb::CodedOutputStream.ComputeStringSize(DefaultCord);
3638 }
3639 if (HasOneofUint32) {
3640 size += 2 + pb::CodedOutputStream.ComputeUInt32Size(OneofUint32);
3641 }
Jon Skeet9926c952020-04-27 07:18:45 +01003642 if (oneofFieldCase_ == OneofFieldOneofCase.OneofNestedMessage) {
Sydney Acksman8a57ec82019-03-21 17:36:36 -05003643 size += 2 + pb::CodedOutputStream.ComputeMessageSize(OneofNestedMessage);
3644 }
3645 if (HasOneofString) {
3646 size += 2 + pb::CodedOutputStream.ComputeStringSize(OneofString);
3647 }
3648 if (HasOneofBytes) {
3649 size += 2 + pb::CodedOutputStream.ComputeBytesSize(OneofBytes);
3650 }
3651 if (_unknownFields != null) {
3652 size += _unknownFields.CalculateSize();
3653 }
3654 return size;
3655 }
3656
3657 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +02003658 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -05003659 public void MergeFrom(TestAllTypes other) {
3660 if (other == null) {
3661 return;
3662 }
3663 if (other.HasOptionalInt32) {
3664 OptionalInt32 = other.OptionalInt32;
3665 }
3666 if (other.HasOptionalInt64) {
3667 OptionalInt64 = other.OptionalInt64;
3668 }
3669 if (other.HasOptionalUint32) {
3670 OptionalUint32 = other.OptionalUint32;
3671 }
3672 if (other.HasOptionalUint64) {
3673 OptionalUint64 = other.OptionalUint64;
3674 }
3675 if (other.HasOptionalSint32) {
3676 OptionalSint32 = other.OptionalSint32;
3677 }
3678 if (other.HasOptionalSint64) {
3679 OptionalSint64 = other.OptionalSint64;
3680 }
3681 if (other.HasOptionalFixed32) {
3682 OptionalFixed32 = other.OptionalFixed32;
3683 }
3684 if (other.HasOptionalFixed64) {
3685 OptionalFixed64 = other.OptionalFixed64;
3686 }
3687 if (other.HasOptionalSfixed32) {
3688 OptionalSfixed32 = other.OptionalSfixed32;
3689 }
3690 if (other.HasOptionalSfixed64) {
3691 OptionalSfixed64 = other.OptionalSfixed64;
3692 }
3693 if (other.HasOptionalFloat) {
3694 OptionalFloat = other.OptionalFloat;
3695 }
3696 if (other.HasOptionalDouble) {
3697 OptionalDouble = other.OptionalDouble;
3698 }
3699 if (other.HasOptionalBool) {
3700 OptionalBool = other.OptionalBool;
3701 }
3702 if (other.HasOptionalString) {
3703 OptionalString = other.OptionalString;
3704 }
3705 if (other.HasOptionalBytes) {
3706 OptionalBytes = other.OptionalBytes;
3707 }
3708 if (other.HasOptionalGroup) {
3709 if (!HasOptionalGroup) {
3710 OptionalGroup = new global::Google.Protobuf.TestProtos.Proto2.TestAllTypes.Types.OptionalGroup();
3711 }
3712 OptionalGroup.MergeFrom(other.OptionalGroup);
3713 }
Jon Skeet9926c952020-04-27 07:18:45 +01003714 if (other.optionalNestedMessage_ != null) {
3715 if (optionalNestedMessage_ == null) {
Sydney Acksman8a57ec82019-03-21 17:36:36 -05003716 OptionalNestedMessage = new global::Google.Protobuf.TestProtos.Proto2.TestAllTypes.Types.NestedMessage();
3717 }
3718 OptionalNestedMessage.MergeFrom(other.OptionalNestedMessage);
3719 }
Jon Skeet9926c952020-04-27 07:18:45 +01003720 if (other.optionalForeignMessage_ != null) {
3721 if (optionalForeignMessage_ == null) {
Sydney Acksman8a57ec82019-03-21 17:36:36 -05003722 OptionalForeignMessage = new global::Google.Protobuf.TestProtos.Proto2.ForeignMessage();
3723 }
3724 OptionalForeignMessage.MergeFrom(other.OptionalForeignMessage);
3725 }
Jon Skeet9926c952020-04-27 07:18:45 +01003726 if (other.optionalImportMessage_ != null) {
3727 if (optionalImportMessage_ == null) {
Sydney Acksman8a57ec82019-03-21 17:36:36 -05003728 OptionalImportMessage = new global::Google.Protobuf.TestProtos.Proto2.ImportMessage();
3729 }
3730 OptionalImportMessage.MergeFrom(other.OptionalImportMessage);
3731 }
3732 if (other.HasOptionalNestedEnum) {
3733 OptionalNestedEnum = other.OptionalNestedEnum;
3734 }
3735 if (other.HasOptionalForeignEnum) {
3736 OptionalForeignEnum = other.OptionalForeignEnum;
3737 }
3738 if (other.HasOptionalImportEnum) {
3739 OptionalImportEnum = other.OptionalImportEnum;
3740 }
3741 if (other.HasOptionalStringPiece) {
3742 OptionalStringPiece = other.OptionalStringPiece;
3743 }
3744 if (other.HasOptionalCord) {
3745 OptionalCord = other.OptionalCord;
3746 }
Jon Skeet9926c952020-04-27 07:18:45 +01003747 if (other.optionalPublicImportMessage_ != null) {
3748 if (optionalPublicImportMessage_ == null) {
Sydney Acksman8a57ec82019-03-21 17:36:36 -05003749 OptionalPublicImportMessage = new global::Google.Protobuf.TestProtos.Proto2.PublicImportMessage();
3750 }
3751 OptionalPublicImportMessage.MergeFrom(other.OptionalPublicImportMessage);
3752 }
Jon Skeet9926c952020-04-27 07:18:45 +01003753 if (other.optionalLazyMessage_ != null) {
3754 if (optionalLazyMessage_ == null) {
Sydney Acksman8a57ec82019-03-21 17:36:36 -05003755 OptionalLazyMessage = new global::Google.Protobuf.TestProtos.Proto2.TestAllTypes.Types.NestedMessage();
3756 }
3757 OptionalLazyMessage.MergeFrom(other.OptionalLazyMessage);
3758 }
3759 repeatedInt32_.Add(other.repeatedInt32_);
3760 repeatedInt64_.Add(other.repeatedInt64_);
3761 repeatedUint32_.Add(other.repeatedUint32_);
3762 repeatedUint64_.Add(other.repeatedUint64_);
3763 repeatedSint32_.Add(other.repeatedSint32_);
3764 repeatedSint64_.Add(other.repeatedSint64_);
3765 repeatedFixed32_.Add(other.repeatedFixed32_);
3766 repeatedFixed64_.Add(other.repeatedFixed64_);
3767 repeatedSfixed32_.Add(other.repeatedSfixed32_);
3768 repeatedSfixed64_.Add(other.repeatedSfixed64_);
3769 repeatedFloat_.Add(other.repeatedFloat_);
3770 repeatedDouble_.Add(other.repeatedDouble_);
3771 repeatedBool_.Add(other.repeatedBool_);
3772 repeatedString_.Add(other.repeatedString_);
3773 repeatedBytes_.Add(other.repeatedBytes_);
3774 repeatedGroup_.Add(other.repeatedGroup_);
3775 repeatedNestedMessage_.Add(other.repeatedNestedMessage_);
3776 repeatedForeignMessage_.Add(other.repeatedForeignMessage_);
3777 repeatedImportMessage_.Add(other.repeatedImportMessage_);
3778 repeatedNestedEnum_.Add(other.repeatedNestedEnum_);
3779 repeatedForeignEnum_.Add(other.repeatedForeignEnum_);
3780 repeatedImportEnum_.Add(other.repeatedImportEnum_);
3781 repeatedStringPiece_.Add(other.repeatedStringPiece_);
3782 repeatedCord_.Add(other.repeatedCord_);
3783 repeatedLazyMessage_.Add(other.repeatedLazyMessage_);
3784 if (other.HasDefaultInt32) {
3785 DefaultInt32 = other.DefaultInt32;
3786 }
3787 if (other.HasDefaultInt64) {
3788 DefaultInt64 = other.DefaultInt64;
3789 }
3790 if (other.HasDefaultUint32) {
3791 DefaultUint32 = other.DefaultUint32;
3792 }
3793 if (other.HasDefaultUint64) {
3794 DefaultUint64 = other.DefaultUint64;
3795 }
3796 if (other.HasDefaultSint32) {
3797 DefaultSint32 = other.DefaultSint32;
3798 }
3799 if (other.HasDefaultSint64) {
3800 DefaultSint64 = other.DefaultSint64;
3801 }
3802 if (other.HasDefaultFixed32) {
3803 DefaultFixed32 = other.DefaultFixed32;
3804 }
3805 if (other.HasDefaultFixed64) {
3806 DefaultFixed64 = other.DefaultFixed64;
3807 }
3808 if (other.HasDefaultSfixed32) {
3809 DefaultSfixed32 = other.DefaultSfixed32;
3810 }
3811 if (other.HasDefaultSfixed64) {
3812 DefaultSfixed64 = other.DefaultSfixed64;
3813 }
3814 if (other.HasDefaultFloat) {
3815 DefaultFloat = other.DefaultFloat;
3816 }
3817 if (other.HasDefaultDouble) {
3818 DefaultDouble = other.DefaultDouble;
3819 }
3820 if (other.HasDefaultBool) {
3821 DefaultBool = other.DefaultBool;
3822 }
3823 if (other.HasDefaultString) {
3824 DefaultString = other.DefaultString;
3825 }
3826 if (other.HasDefaultBytes) {
3827 DefaultBytes = other.DefaultBytes;
3828 }
3829 if (other.HasDefaultNestedEnum) {
3830 DefaultNestedEnum = other.DefaultNestedEnum;
3831 }
3832 if (other.HasDefaultForeignEnum) {
3833 DefaultForeignEnum = other.DefaultForeignEnum;
3834 }
3835 if (other.HasDefaultImportEnum) {
3836 DefaultImportEnum = other.DefaultImportEnum;
3837 }
3838 if (other.HasDefaultStringPiece) {
3839 DefaultStringPiece = other.DefaultStringPiece;
3840 }
3841 if (other.HasDefaultCord) {
3842 DefaultCord = other.DefaultCord;
3843 }
3844 switch (other.OneofFieldCase) {
3845 case OneofFieldOneofCase.OneofUint32:
3846 OneofUint32 = other.OneofUint32;
3847 break;
3848 case OneofFieldOneofCase.OneofNestedMessage:
3849 if (OneofNestedMessage == null) {
3850 OneofNestedMessage = new global::Google.Protobuf.TestProtos.Proto2.TestAllTypes.Types.NestedMessage();
3851 }
3852 OneofNestedMessage.MergeFrom(other.OneofNestedMessage);
3853 break;
3854 case OneofFieldOneofCase.OneofString:
3855 OneofString = other.OneofString;
3856 break;
3857 case OneofFieldOneofCase.OneofBytes:
3858 OneofBytes = other.OneofBytes;
3859 break;
3860 }
3861
3862 _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
3863 }
3864
3865 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +02003866 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -05003867 public void MergeFrom(pb::CodedInputStream input) {
Jan Tattermusch7cb55972020-06-02 09:26:25 +02003868 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
Jan Tattermusch3196ef92020-04-02 15:36:16 +02003869 input.ReadRawMessage(this);
Jan Tattermusch7cb55972020-06-02 09:26:25 +02003870 #else
3871 uint tag;
3872 while ((tag = input.ReadTag()) != 0) {
3873 switch(tag) {
3874 default:
3875 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
3876 break;
3877 case 8: {
3878 OptionalInt32 = input.ReadInt32();
3879 break;
3880 }
3881 case 16: {
3882 OptionalInt64 = input.ReadInt64();
3883 break;
3884 }
3885 case 24: {
3886 OptionalUint32 = input.ReadUInt32();
3887 break;
3888 }
3889 case 32: {
3890 OptionalUint64 = input.ReadUInt64();
3891 break;
3892 }
3893 case 40: {
3894 OptionalSint32 = input.ReadSInt32();
3895 break;
3896 }
3897 case 48: {
3898 OptionalSint64 = input.ReadSInt64();
3899 break;
3900 }
3901 case 61: {
3902 OptionalFixed32 = input.ReadFixed32();
3903 break;
3904 }
3905 case 65: {
3906 OptionalFixed64 = input.ReadFixed64();
3907 break;
3908 }
3909 case 77: {
3910 OptionalSfixed32 = input.ReadSFixed32();
3911 break;
3912 }
3913 case 81: {
3914 OptionalSfixed64 = input.ReadSFixed64();
3915 break;
3916 }
3917 case 93: {
3918 OptionalFloat = input.ReadFloat();
3919 break;
3920 }
3921 case 97: {
3922 OptionalDouble = input.ReadDouble();
3923 break;
3924 }
3925 case 104: {
3926 OptionalBool = input.ReadBool();
3927 break;
3928 }
3929 case 114: {
3930 OptionalString = input.ReadString();
3931 break;
3932 }
3933 case 122: {
3934 OptionalBytes = input.ReadBytes();
3935 break;
3936 }
3937 case 131: {
3938 if (!HasOptionalGroup) {
3939 OptionalGroup = new global::Google.Protobuf.TestProtos.Proto2.TestAllTypes.Types.OptionalGroup();
3940 }
3941 input.ReadGroup(OptionalGroup);
3942 break;
3943 }
3944 case 146: {
3945 if (optionalNestedMessage_ == null) {
3946 OptionalNestedMessage = new global::Google.Protobuf.TestProtos.Proto2.TestAllTypes.Types.NestedMessage();
3947 }
3948 input.ReadMessage(OptionalNestedMessage);
3949 break;
3950 }
3951 case 154: {
3952 if (optionalForeignMessage_ == null) {
3953 OptionalForeignMessage = new global::Google.Protobuf.TestProtos.Proto2.ForeignMessage();
3954 }
3955 input.ReadMessage(OptionalForeignMessage);
3956 break;
3957 }
3958 case 162: {
3959 if (optionalImportMessage_ == null) {
3960 OptionalImportMessage = new global::Google.Protobuf.TestProtos.Proto2.ImportMessage();
3961 }
3962 input.ReadMessage(OptionalImportMessage);
3963 break;
3964 }
3965 case 168: {
3966 OptionalNestedEnum = (global::Google.Protobuf.TestProtos.Proto2.TestAllTypes.Types.NestedEnum) input.ReadEnum();
3967 break;
3968 }
3969 case 176: {
3970 OptionalForeignEnum = (global::Google.Protobuf.TestProtos.Proto2.ForeignEnum) input.ReadEnum();
3971 break;
3972 }
3973 case 184: {
3974 OptionalImportEnum = (global::Google.Protobuf.TestProtos.Proto2.ImportEnum) input.ReadEnum();
3975 break;
3976 }
3977 case 194: {
3978 OptionalStringPiece = input.ReadString();
3979 break;
3980 }
3981 case 202: {
3982 OptionalCord = input.ReadString();
3983 break;
3984 }
3985 case 210: {
3986 if (optionalPublicImportMessage_ == null) {
3987 OptionalPublicImportMessage = new global::Google.Protobuf.TestProtos.Proto2.PublicImportMessage();
3988 }
3989 input.ReadMessage(OptionalPublicImportMessage);
3990 break;
3991 }
3992 case 218: {
3993 if (optionalLazyMessage_ == null) {
3994 OptionalLazyMessage = new global::Google.Protobuf.TestProtos.Proto2.TestAllTypes.Types.NestedMessage();
3995 }
3996 input.ReadMessage(OptionalLazyMessage);
3997 break;
3998 }
3999 case 250:
4000 case 248: {
4001 repeatedInt32_.AddEntriesFrom(input, _repeated_repeatedInt32_codec);
4002 break;
4003 }
4004 case 258:
4005 case 256: {
4006 repeatedInt64_.AddEntriesFrom(input, _repeated_repeatedInt64_codec);
4007 break;
4008 }
4009 case 266:
4010 case 264: {
4011 repeatedUint32_.AddEntriesFrom(input, _repeated_repeatedUint32_codec);
4012 break;
4013 }
4014 case 274:
4015 case 272: {
4016 repeatedUint64_.AddEntriesFrom(input, _repeated_repeatedUint64_codec);
4017 break;
4018 }
4019 case 282:
4020 case 280: {
4021 repeatedSint32_.AddEntriesFrom(input, _repeated_repeatedSint32_codec);
4022 break;
4023 }
4024 case 290:
4025 case 288: {
4026 repeatedSint64_.AddEntriesFrom(input, _repeated_repeatedSint64_codec);
4027 break;
4028 }
4029 case 298:
4030 case 301: {
4031 repeatedFixed32_.AddEntriesFrom(input, _repeated_repeatedFixed32_codec);
4032 break;
4033 }
4034 case 306:
4035 case 305: {
4036 repeatedFixed64_.AddEntriesFrom(input, _repeated_repeatedFixed64_codec);
4037 break;
4038 }
4039 case 314:
4040 case 317: {
4041 repeatedSfixed32_.AddEntriesFrom(input, _repeated_repeatedSfixed32_codec);
4042 break;
4043 }
4044 case 322:
4045 case 321: {
4046 repeatedSfixed64_.AddEntriesFrom(input, _repeated_repeatedSfixed64_codec);
4047 break;
4048 }
4049 case 330:
4050 case 333: {
4051 repeatedFloat_.AddEntriesFrom(input, _repeated_repeatedFloat_codec);
4052 break;
4053 }
4054 case 338:
4055 case 337: {
4056 repeatedDouble_.AddEntriesFrom(input, _repeated_repeatedDouble_codec);
4057 break;
4058 }
4059 case 346:
4060 case 344: {
4061 repeatedBool_.AddEntriesFrom(input, _repeated_repeatedBool_codec);
4062 break;
4063 }
4064 case 354: {
4065 repeatedString_.AddEntriesFrom(input, _repeated_repeatedString_codec);
4066 break;
4067 }
4068 case 362: {
4069 repeatedBytes_.AddEntriesFrom(input, _repeated_repeatedBytes_codec);
4070 break;
4071 }
4072 case 371: {
4073 repeatedGroup_.AddEntriesFrom(input, _repeated_repeatedGroup_codec);
4074 break;
4075 }
4076 case 386: {
4077 repeatedNestedMessage_.AddEntriesFrom(input, _repeated_repeatedNestedMessage_codec);
4078 break;
4079 }
4080 case 394: {
4081 repeatedForeignMessage_.AddEntriesFrom(input, _repeated_repeatedForeignMessage_codec);
4082 break;
4083 }
4084 case 402: {
4085 repeatedImportMessage_.AddEntriesFrom(input, _repeated_repeatedImportMessage_codec);
4086 break;
4087 }
4088 case 410:
4089 case 408: {
4090 repeatedNestedEnum_.AddEntriesFrom(input, _repeated_repeatedNestedEnum_codec);
4091 break;
4092 }
4093 case 418:
4094 case 416: {
4095 repeatedForeignEnum_.AddEntriesFrom(input, _repeated_repeatedForeignEnum_codec);
4096 break;
4097 }
4098 case 426:
4099 case 424: {
4100 repeatedImportEnum_.AddEntriesFrom(input, _repeated_repeatedImportEnum_codec);
4101 break;
4102 }
4103 case 434: {
4104 repeatedStringPiece_.AddEntriesFrom(input, _repeated_repeatedStringPiece_codec);
4105 break;
4106 }
4107 case 442: {
4108 repeatedCord_.AddEntriesFrom(input, _repeated_repeatedCord_codec);
4109 break;
4110 }
4111 case 458: {
4112 repeatedLazyMessage_.AddEntriesFrom(input, _repeated_repeatedLazyMessage_codec);
4113 break;
4114 }
4115 case 488: {
4116 DefaultInt32 = input.ReadInt32();
4117 break;
4118 }
4119 case 496: {
4120 DefaultInt64 = input.ReadInt64();
4121 break;
4122 }
4123 case 504: {
4124 DefaultUint32 = input.ReadUInt32();
4125 break;
4126 }
4127 case 512: {
4128 DefaultUint64 = input.ReadUInt64();
4129 break;
4130 }
4131 case 520: {
4132 DefaultSint32 = input.ReadSInt32();
4133 break;
4134 }
4135 case 528: {
4136 DefaultSint64 = input.ReadSInt64();
4137 break;
4138 }
4139 case 541: {
4140 DefaultFixed32 = input.ReadFixed32();
4141 break;
4142 }
4143 case 545: {
4144 DefaultFixed64 = input.ReadFixed64();
4145 break;
4146 }
4147 case 557: {
4148 DefaultSfixed32 = input.ReadSFixed32();
4149 break;
4150 }
4151 case 561: {
4152 DefaultSfixed64 = input.ReadSFixed64();
4153 break;
4154 }
4155 case 573: {
4156 DefaultFloat = input.ReadFloat();
4157 break;
4158 }
4159 case 577: {
4160 DefaultDouble = input.ReadDouble();
4161 break;
4162 }
4163 case 584: {
4164 DefaultBool = input.ReadBool();
4165 break;
4166 }
4167 case 594: {
4168 DefaultString = input.ReadString();
4169 break;
4170 }
4171 case 602: {
4172 DefaultBytes = input.ReadBytes();
4173 break;
4174 }
4175 case 648: {
4176 DefaultNestedEnum = (global::Google.Protobuf.TestProtos.Proto2.TestAllTypes.Types.NestedEnum) input.ReadEnum();
4177 break;
4178 }
4179 case 656: {
4180 DefaultForeignEnum = (global::Google.Protobuf.TestProtos.Proto2.ForeignEnum) input.ReadEnum();
4181 break;
4182 }
4183 case 664: {
4184 DefaultImportEnum = (global::Google.Protobuf.TestProtos.Proto2.ImportEnum) input.ReadEnum();
4185 break;
4186 }
4187 case 674: {
4188 DefaultStringPiece = input.ReadString();
4189 break;
4190 }
4191 case 682: {
4192 DefaultCord = input.ReadString();
4193 break;
4194 }
4195 case 888: {
4196 OneofUint32 = input.ReadUInt32();
4197 break;
4198 }
4199 case 898: {
4200 global::Google.Protobuf.TestProtos.Proto2.TestAllTypes.Types.NestedMessage subBuilder = new global::Google.Protobuf.TestProtos.Proto2.TestAllTypes.Types.NestedMessage();
4201 if (oneofFieldCase_ == OneofFieldOneofCase.OneofNestedMessage) {
4202 subBuilder.MergeFrom(OneofNestedMessage);
4203 }
4204 input.ReadMessage(subBuilder);
4205 OneofNestedMessage = subBuilder;
4206 break;
4207 }
4208 case 906: {
4209 OneofString = input.ReadString();
4210 break;
4211 }
4212 case 914: {
4213 OneofBytes = input.ReadBytes();
4214 break;
4215 }
4216 }
4217 }
4218 #endif
Jan Tattermusch3196ef92020-04-02 15:36:16 +02004219 }
4220
Jan Tattermusch7cb55972020-06-02 09:26:25 +02004221 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
Jan Tattermusch3196ef92020-04-02 15:36:16 +02004222 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +02004223 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Jan Tattermusch0df7ddc2020-04-14 12:41:03 +02004224 void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
Sydney Acksman8a57ec82019-03-21 17:36:36 -05004225 uint tag;
4226 while ((tag = input.ReadTag()) != 0) {
4227 switch(tag) {
4228 default:
Jan Tattermusch3196ef92020-04-02 15:36:16 +02004229 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
Sydney Acksman8a57ec82019-03-21 17:36:36 -05004230 break;
4231 case 8: {
4232 OptionalInt32 = input.ReadInt32();
4233 break;
4234 }
4235 case 16: {
4236 OptionalInt64 = input.ReadInt64();
4237 break;
4238 }
4239 case 24: {
4240 OptionalUint32 = input.ReadUInt32();
4241 break;
4242 }
4243 case 32: {
4244 OptionalUint64 = input.ReadUInt64();
4245 break;
4246 }
4247 case 40: {
4248 OptionalSint32 = input.ReadSInt32();
4249 break;
4250 }
4251 case 48: {
4252 OptionalSint64 = input.ReadSInt64();
4253 break;
4254 }
4255 case 61: {
4256 OptionalFixed32 = input.ReadFixed32();
4257 break;
4258 }
4259 case 65: {
4260 OptionalFixed64 = input.ReadFixed64();
4261 break;
4262 }
4263 case 77: {
4264 OptionalSfixed32 = input.ReadSFixed32();
4265 break;
4266 }
4267 case 81: {
4268 OptionalSfixed64 = input.ReadSFixed64();
4269 break;
4270 }
4271 case 93: {
4272 OptionalFloat = input.ReadFloat();
4273 break;
4274 }
4275 case 97: {
4276 OptionalDouble = input.ReadDouble();
4277 break;
4278 }
4279 case 104: {
4280 OptionalBool = input.ReadBool();
4281 break;
4282 }
4283 case 114: {
4284 OptionalString = input.ReadString();
4285 break;
4286 }
4287 case 122: {
4288 OptionalBytes = input.ReadBytes();
4289 break;
4290 }
4291 case 131: {
4292 if (!HasOptionalGroup) {
4293 OptionalGroup = new global::Google.Protobuf.TestProtos.Proto2.TestAllTypes.Types.OptionalGroup();
4294 }
4295 input.ReadGroup(OptionalGroup);
4296 break;
4297 }
4298 case 146: {
Jon Skeet9926c952020-04-27 07:18:45 +01004299 if (optionalNestedMessage_ == null) {
Sydney Acksman8a57ec82019-03-21 17:36:36 -05004300 OptionalNestedMessage = new global::Google.Protobuf.TestProtos.Proto2.TestAllTypes.Types.NestedMessage();
4301 }
4302 input.ReadMessage(OptionalNestedMessage);
4303 break;
4304 }
4305 case 154: {
Jon Skeet9926c952020-04-27 07:18:45 +01004306 if (optionalForeignMessage_ == null) {
Sydney Acksman8a57ec82019-03-21 17:36:36 -05004307 OptionalForeignMessage = new global::Google.Protobuf.TestProtos.Proto2.ForeignMessage();
4308 }
4309 input.ReadMessage(OptionalForeignMessage);
4310 break;
4311 }
4312 case 162: {
Jon Skeet9926c952020-04-27 07:18:45 +01004313 if (optionalImportMessage_ == null) {
Sydney Acksman8a57ec82019-03-21 17:36:36 -05004314 OptionalImportMessage = new global::Google.Protobuf.TestProtos.Proto2.ImportMessage();
4315 }
4316 input.ReadMessage(OptionalImportMessage);
4317 break;
4318 }
4319 case 168: {
4320 OptionalNestedEnum = (global::Google.Protobuf.TestProtos.Proto2.TestAllTypes.Types.NestedEnum) input.ReadEnum();
4321 break;
4322 }
4323 case 176: {
4324 OptionalForeignEnum = (global::Google.Protobuf.TestProtos.Proto2.ForeignEnum) input.ReadEnum();
4325 break;
4326 }
4327 case 184: {
4328 OptionalImportEnum = (global::Google.Protobuf.TestProtos.Proto2.ImportEnum) input.ReadEnum();
4329 break;
4330 }
4331 case 194: {
4332 OptionalStringPiece = input.ReadString();
4333 break;
4334 }
4335 case 202: {
4336 OptionalCord = input.ReadString();
4337 break;
4338 }
4339 case 210: {
Jon Skeet9926c952020-04-27 07:18:45 +01004340 if (optionalPublicImportMessage_ == null) {
Sydney Acksman8a57ec82019-03-21 17:36:36 -05004341 OptionalPublicImportMessage = new global::Google.Protobuf.TestProtos.Proto2.PublicImportMessage();
4342 }
4343 input.ReadMessage(OptionalPublicImportMessage);
4344 break;
4345 }
4346 case 218: {
Jon Skeet9926c952020-04-27 07:18:45 +01004347 if (optionalLazyMessage_ == null) {
Sydney Acksman8a57ec82019-03-21 17:36:36 -05004348 OptionalLazyMessage = new global::Google.Protobuf.TestProtos.Proto2.TestAllTypes.Types.NestedMessage();
4349 }
4350 input.ReadMessage(OptionalLazyMessage);
4351 break;
4352 }
4353 case 250:
4354 case 248: {
Jan Tattermusch3196ef92020-04-02 15:36:16 +02004355 repeatedInt32_.AddEntriesFrom(ref input, _repeated_repeatedInt32_codec);
Sydney Acksman8a57ec82019-03-21 17:36:36 -05004356 break;
4357 }
4358 case 258:
4359 case 256: {
Jan Tattermusch3196ef92020-04-02 15:36:16 +02004360 repeatedInt64_.AddEntriesFrom(ref input, _repeated_repeatedInt64_codec);
Sydney Acksman8a57ec82019-03-21 17:36:36 -05004361 break;
4362 }
4363 case 266:
4364 case 264: {
Jan Tattermusch3196ef92020-04-02 15:36:16 +02004365 repeatedUint32_.AddEntriesFrom(ref input, _repeated_repeatedUint32_codec);
Sydney Acksman8a57ec82019-03-21 17:36:36 -05004366 break;
4367 }
4368 case 274:
4369 case 272: {
Jan Tattermusch3196ef92020-04-02 15:36:16 +02004370 repeatedUint64_.AddEntriesFrom(ref input, _repeated_repeatedUint64_codec);
Sydney Acksman8a57ec82019-03-21 17:36:36 -05004371 break;
4372 }
4373 case 282:
4374 case 280: {
Jan Tattermusch3196ef92020-04-02 15:36:16 +02004375 repeatedSint32_.AddEntriesFrom(ref input, _repeated_repeatedSint32_codec);
Sydney Acksman8a57ec82019-03-21 17:36:36 -05004376 break;
4377 }
4378 case 290:
4379 case 288: {
Jan Tattermusch3196ef92020-04-02 15:36:16 +02004380 repeatedSint64_.AddEntriesFrom(ref input, _repeated_repeatedSint64_codec);
Sydney Acksman8a57ec82019-03-21 17:36:36 -05004381 break;
4382 }
4383 case 298:
4384 case 301: {
Jan Tattermusch3196ef92020-04-02 15:36:16 +02004385 repeatedFixed32_.AddEntriesFrom(ref input, _repeated_repeatedFixed32_codec);
Sydney Acksman8a57ec82019-03-21 17:36:36 -05004386 break;
4387 }
4388 case 306:
4389 case 305: {
Jan Tattermusch3196ef92020-04-02 15:36:16 +02004390 repeatedFixed64_.AddEntriesFrom(ref input, _repeated_repeatedFixed64_codec);
Sydney Acksman8a57ec82019-03-21 17:36:36 -05004391 break;
4392 }
4393 case 314:
4394 case 317: {
Jan Tattermusch3196ef92020-04-02 15:36:16 +02004395 repeatedSfixed32_.AddEntriesFrom(ref input, _repeated_repeatedSfixed32_codec);
Sydney Acksman8a57ec82019-03-21 17:36:36 -05004396 break;
4397 }
4398 case 322:
4399 case 321: {
Jan Tattermusch3196ef92020-04-02 15:36:16 +02004400 repeatedSfixed64_.AddEntriesFrom(ref input, _repeated_repeatedSfixed64_codec);
Sydney Acksman8a57ec82019-03-21 17:36:36 -05004401 break;
4402 }
4403 case 330:
4404 case 333: {
Jan Tattermusch3196ef92020-04-02 15:36:16 +02004405 repeatedFloat_.AddEntriesFrom(ref input, _repeated_repeatedFloat_codec);
Sydney Acksman8a57ec82019-03-21 17:36:36 -05004406 break;
4407 }
4408 case 338:
4409 case 337: {
Jan Tattermusch3196ef92020-04-02 15:36:16 +02004410 repeatedDouble_.AddEntriesFrom(ref input, _repeated_repeatedDouble_codec);
Sydney Acksman8a57ec82019-03-21 17:36:36 -05004411 break;
4412 }
4413 case 346:
4414 case 344: {
Jan Tattermusch3196ef92020-04-02 15:36:16 +02004415 repeatedBool_.AddEntriesFrom(ref input, _repeated_repeatedBool_codec);
Sydney Acksman8a57ec82019-03-21 17:36:36 -05004416 break;
4417 }
4418 case 354: {
Jan Tattermusch3196ef92020-04-02 15:36:16 +02004419 repeatedString_.AddEntriesFrom(ref input, _repeated_repeatedString_codec);
Sydney Acksman8a57ec82019-03-21 17:36:36 -05004420 break;
4421 }
4422 case 362: {
Jan Tattermusch3196ef92020-04-02 15:36:16 +02004423 repeatedBytes_.AddEntriesFrom(ref input, _repeated_repeatedBytes_codec);
Sydney Acksman8a57ec82019-03-21 17:36:36 -05004424 break;
4425 }
4426 case 371: {
Jan Tattermusch3196ef92020-04-02 15:36:16 +02004427 repeatedGroup_.AddEntriesFrom(ref input, _repeated_repeatedGroup_codec);
Sydney Acksman8a57ec82019-03-21 17:36:36 -05004428 break;
4429 }
4430 case 386: {
Jan Tattermusch3196ef92020-04-02 15:36:16 +02004431 repeatedNestedMessage_.AddEntriesFrom(ref input, _repeated_repeatedNestedMessage_codec);
Sydney Acksman8a57ec82019-03-21 17:36:36 -05004432 break;
4433 }
4434 case 394: {
Jan Tattermusch3196ef92020-04-02 15:36:16 +02004435 repeatedForeignMessage_.AddEntriesFrom(ref input, _repeated_repeatedForeignMessage_codec);
Sydney Acksman8a57ec82019-03-21 17:36:36 -05004436 break;
4437 }
4438 case 402: {
Jan Tattermusch3196ef92020-04-02 15:36:16 +02004439 repeatedImportMessage_.AddEntriesFrom(ref input, _repeated_repeatedImportMessage_codec);
Sydney Acksman8a57ec82019-03-21 17:36:36 -05004440 break;
4441 }
4442 case 410:
4443 case 408: {
Jan Tattermusch3196ef92020-04-02 15:36:16 +02004444 repeatedNestedEnum_.AddEntriesFrom(ref input, _repeated_repeatedNestedEnum_codec);
Sydney Acksman8a57ec82019-03-21 17:36:36 -05004445 break;
4446 }
4447 case 418:
4448 case 416: {
Jan Tattermusch3196ef92020-04-02 15:36:16 +02004449 repeatedForeignEnum_.AddEntriesFrom(ref input, _repeated_repeatedForeignEnum_codec);
Sydney Acksman8a57ec82019-03-21 17:36:36 -05004450 break;
4451 }
4452 case 426:
4453 case 424: {
Jan Tattermusch3196ef92020-04-02 15:36:16 +02004454 repeatedImportEnum_.AddEntriesFrom(ref input, _repeated_repeatedImportEnum_codec);
Sydney Acksman8a57ec82019-03-21 17:36:36 -05004455 break;
4456 }
4457 case 434: {
Jan Tattermusch3196ef92020-04-02 15:36:16 +02004458 repeatedStringPiece_.AddEntriesFrom(ref input, _repeated_repeatedStringPiece_codec);
Sydney Acksman8a57ec82019-03-21 17:36:36 -05004459 break;
4460 }
4461 case 442: {
Jan Tattermusch3196ef92020-04-02 15:36:16 +02004462 repeatedCord_.AddEntriesFrom(ref input, _repeated_repeatedCord_codec);
Sydney Acksman8a57ec82019-03-21 17:36:36 -05004463 break;
4464 }
4465 case 458: {
Jan Tattermusch3196ef92020-04-02 15:36:16 +02004466 repeatedLazyMessage_.AddEntriesFrom(ref input, _repeated_repeatedLazyMessage_codec);
Sydney Acksman8a57ec82019-03-21 17:36:36 -05004467 break;
4468 }
4469 case 488: {
4470 DefaultInt32 = input.ReadInt32();
4471 break;
4472 }
4473 case 496: {
4474 DefaultInt64 = input.ReadInt64();
4475 break;
4476 }
4477 case 504: {
4478 DefaultUint32 = input.ReadUInt32();
4479 break;
4480 }
4481 case 512: {
4482 DefaultUint64 = input.ReadUInt64();
4483 break;
4484 }
4485 case 520: {
4486 DefaultSint32 = input.ReadSInt32();
4487 break;
4488 }
4489 case 528: {
4490 DefaultSint64 = input.ReadSInt64();
4491 break;
4492 }
4493 case 541: {
4494 DefaultFixed32 = input.ReadFixed32();
4495 break;
4496 }
4497 case 545: {
4498 DefaultFixed64 = input.ReadFixed64();
4499 break;
4500 }
4501 case 557: {
4502 DefaultSfixed32 = input.ReadSFixed32();
4503 break;
4504 }
4505 case 561: {
4506 DefaultSfixed64 = input.ReadSFixed64();
4507 break;
4508 }
4509 case 573: {
4510 DefaultFloat = input.ReadFloat();
4511 break;
4512 }
4513 case 577: {
4514 DefaultDouble = input.ReadDouble();
4515 break;
4516 }
4517 case 584: {
4518 DefaultBool = input.ReadBool();
4519 break;
4520 }
4521 case 594: {
4522 DefaultString = input.ReadString();
4523 break;
4524 }
4525 case 602: {
4526 DefaultBytes = input.ReadBytes();
4527 break;
4528 }
4529 case 648: {
4530 DefaultNestedEnum = (global::Google.Protobuf.TestProtos.Proto2.TestAllTypes.Types.NestedEnum) input.ReadEnum();
4531 break;
4532 }
4533 case 656: {
4534 DefaultForeignEnum = (global::Google.Protobuf.TestProtos.Proto2.ForeignEnum) input.ReadEnum();
4535 break;
4536 }
4537 case 664: {
4538 DefaultImportEnum = (global::Google.Protobuf.TestProtos.Proto2.ImportEnum) input.ReadEnum();
4539 break;
4540 }
4541 case 674: {
4542 DefaultStringPiece = input.ReadString();
4543 break;
4544 }
4545 case 682: {
4546 DefaultCord = input.ReadString();
4547 break;
4548 }
4549 case 888: {
4550 OneofUint32 = input.ReadUInt32();
4551 break;
4552 }
4553 case 898: {
4554 global::Google.Protobuf.TestProtos.Proto2.TestAllTypes.Types.NestedMessage subBuilder = new global::Google.Protobuf.TestProtos.Proto2.TestAllTypes.Types.NestedMessage();
Jon Skeet9926c952020-04-27 07:18:45 +01004555 if (oneofFieldCase_ == OneofFieldOneofCase.OneofNestedMessage) {
Sydney Acksman8a57ec82019-03-21 17:36:36 -05004556 subBuilder.MergeFrom(OneofNestedMessage);
4557 }
4558 input.ReadMessage(subBuilder);
4559 OneofNestedMessage = subBuilder;
4560 break;
4561 }
4562 case 906: {
4563 OneofString = input.ReadString();
4564 break;
4565 }
4566 case 914: {
4567 OneofBytes = input.ReadBytes();
4568 break;
4569 }
4570 }
4571 }
4572 }
Jan Tattermusch7cb55972020-06-02 09:26:25 +02004573 #endif
Sydney Acksman8a57ec82019-03-21 17:36:36 -05004574
4575 #region Nested types
4576 /// <summary>Container for nested types declared in the TestAllTypes message type.</summary>
4577 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +02004578 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -05004579 public static partial class Types {
4580 public enum NestedEnum {
4581 [pbr::OriginalName("FOO")] Foo = 1,
4582 [pbr::OriginalName("BAR")] Bar = 2,
4583 [pbr::OriginalName("BAZ")] Baz = 3,
4584 /// <summary>
4585 /// Intentionally negative.
4586 /// </summary>
4587 [pbr::OriginalName("NEG")] Neg = -1,
4588 }
4589
Jan Tattermusch7cb55972020-06-02 09:26:25 +02004590 public sealed partial class NestedMessage : pb::IMessage<NestedMessage>
4591 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
4592 , pb::IBufferMessage
4593 #endif
4594 {
Sydney Acksman8a57ec82019-03-21 17:36:36 -05004595 private static readonly pb::MessageParser<NestedMessage> _parser = new pb::MessageParser<NestedMessage>(() => new NestedMessage());
4596 private pb::UnknownFieldSet _unknownFields;
4597 private int _hasBits0;
4598 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +02004599 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -05004600 public static pb::MessageParser<NestedMessage> Parser { get { return _parser; } }
4601
4602 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +02004603 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -05004604 public static pbr::MessageDescriptor Descriptor {
4605 get { return global::Google.Protobuf.TestProtos.Proto2.TestAllTypes.Descriptor.NestedTypes[0]; }
4606 }
4607
4608 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +02004609 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -05004610 pbr::MessageDescriptor pb::IMessage.Descriptor {
4611 get { return Descriptor; }
4612 }
4613
4614 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +02004615 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -05004616 public NestedMessage() {
4617 OnConstruction();
4618 }
4619
4620 partial void OnConstruction();
4621
4622 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +02004623 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -05004624 public NestedMessage(NestedMessage other) : this() {
4625 _hasBits0 = other._hasBits0;
4626 bb_ = other.bb_;
4627 _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
4628 }
4629
4630 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +02004631 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -05004632 public NestedMessage Clone() {
4633 return new NestedMessage(this);
4634 }
4635
4636 /// <summary>Field number for the "bb" field.</summary>
4637 public const int BbFieldNumber = 1;
4638 private readonly static int BbDefaultValue = 0;
4639
4640 private int bb_;
4641 /// <summary>
4642 /// The field name "b" fails to compile in proto1 because it conflicts with
4643 /// a local variable named "b" in one of the generated methods. Doh.
4644 /// This file needs to compile in proto1 to test backwards-compatibility.
4645 /// </summary>
4646 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +02004647 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -05004648 public int Bb {
4649 get { if ((_hasBits0 & 1) != 0) { return bb_; } else { return BbDefaultValue; } }
4650 set {
4651 _hasBits0 |= 1;
4652 bb_ = value;
4653 }
4654 }
4655 /// <summary>Gets whether the "bb" field is set</summary>
4656 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +02004657 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -05004658 public bool HasBb {
4659 get { return (_hasBits0 & 1) != 0; }
4660 }
4661 /// <summary>Clears the value of the "bb" field</summary>
4662 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +02004663 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -05004664 public void ClearBb() {
4665 _hasBits0 &= ~1;
4666 }
4667
4668 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +02004669 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -05004670 public override bool Equals(object other) {
4671 return Equals(other as NestedMessage);
4672 }
4673
4674 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +02004675 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -05004676 public bool Equals(NestedMessage other) {
4677 if (ReferenceEquals(other, null)) {
4678 return false;
4679 }
4680 if (ReferenceEquals(other, this)) {
4681 return true;
4682 }
4683 if (Bb != other.Bb) return false;
4684 return Equals(_unknownFields, other._unknownFields);
4685 }
4686
4687 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +02004688 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -05004689 public override int GetHashCode() {
4690 int hash = 1;
4691 if (HasBb) hash ^= Bb.GetHashCode();
4692 if (_unknownFields != null) {
4693 hash ^= _unknownFields.GetHashCode();
4694 }
4695 return hash;
4696 }
4697
4698 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +02004699 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -05004700 public override string ToString() {
4701 return pb::JsonFormatter.ToDiagnosticString(this);
4702 }
4703
4704 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +02004705 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -05004706 public void WriteTo(pb::CodedOutputStream output) {
Jan Tattermusch125e4ad2020-05-29 04:32:43 -04004707 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
4708 output.WriteRawMessage(this);
4709 #else
Sydney Acksman8a57ec82019-03-21 17:36:36 -05004710 if (HasBb) {
4711 output.WriteRawTag(8);
4712 output.WriteInt32(Bb);
4713 }
4714 if (_unknownFields != null) {
4715 _unknownFields.WriteTo(output);
4716 }
Jan Tattermusch125e4ad2020-05-29 04:32:43 -04004717 #endif
Sydney Acksman8a57ec82019-03-21 17:36:36 -05004718 }
4719
Jan Tattermusch125e4ad2020-05-29 04:32:43 -04004720 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
4721 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +02004722 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Jan Tattermusch125e4ad2020-05-29 04:32:43 -04004723 void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
4724 if (HasBb) {
4725 output.WriteRawTag(8);
4726 output.WriteInt32(Bb);
4727 }
4728 if (_unknownFields != null) {
4729 _unknownFields.WriteTo(ref output);
4730 }
4731 }
4732 #endif
4733
Sydney Acksman8a57ec82019-03-21 17:36:36 -05004734 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +02004735 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -05004736 public int CalculateSize() {
4737 int size = 0;
4738 if (HasBb) {
4739 size += 1 + pb::CodedOutputStream.ComputeInt32Size(Bb);
4740 }
4741 if (_unknownFields != null) {
4742 size += _unknownFields.CalculateSize();
4743 }
4744 return size;
4745 }
4746
4747 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +02004748 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -05004749 public void MergeFrom(NestedMessage other) {
4750 if (other == null) {
4751 return;
4752 }
4753 if (other.HasBb) {
4754 Bb = other.Bb;
4755 }
4756 _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
4757 }
4758
4759 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +02004760 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -05004761 public void MergeFrom(pb::CodedInputStream input) {
Jan Tattermusch7cb55972020-06-02 09:26:25 +02004762 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
Jan Tattermusch3196ef92020-04-02 15:36:16 +02004763 input.ReadRawMessage(this);
Jan Tattermusch7cb55972020-06-02 09:26:25 +02004764 #else
4765 uint tag;
4766 while ((tag = input.ReadTag()) != 0) {
4767 switch(tag) {
4768 default:
4769 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
4770 break;
4771 case 8: {
4772 Bb = input.ReadInt32();
4773 break;
4774 }
4775 }
4776 }
4777 #endif
Jan Tattermusch3196ef92020-04-02 15:36:16 +02004778 }
4779
Jan Tattermusch7cb55972020-06-02 09:26:25 +02004780 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
Jan Tattermusch3196ef92020-04-02 15:36:16 +02004781 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +02004782 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Jan Tattermusch0df7ddc2020-04-14 12:41:03 +02004783 void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
Sydney Acksman8a57ec82019-03-21 17:36:36 -05004784 uint tag;
4785 while ((tag = input.ReadTag()) != 0) {
4786 switch(tag) {
4787 default:
Jan Tattermusch3196ef92020-04-02 15:36:16 +02004788 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
Sydney Acksman8a57ec82019-03-21 17:36:36 -05004789 break;
4790 case 8: {
4791 Bb = input.ReadInt32();
4792 break;
4793 }
4794 }
4795 }
4796 }
Jan Tattermusch7cb55972020-06-02 09:26:25 +02004797 #endif
Sydney Acksman8a57ec82019-03-21 17:36:36 -05004798
4799 }
4800
Jan Tattermusch7cb55972020-06-02 09:26:25 +02004801 public sealed partial class OptionalGroup : pb::IMessage<OptionalGroup>
4802 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
4803 , pb::IBufferMessage
4804 #endif
4805 {
Sydney Acksman8a57ec82019-03-21 17:36:36 -05004806 private static readonly pb::MessageParser<OptionalGroup> _parser = new pb::MessageParser<OptionalGroup>(() => new OptionalGroup());
4807 private pb::UnknownFieldSet _unknownFields;
4808 private int _hasBits0;
4809 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +02004810 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -05004811 public static pb::MessageParser<OptionalGroup> Parser { get { return _parser; } }
4812
4813 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +02004814 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -05004815 public static pbr::MessageDescriptor Descriptor {
4816 get { return global::Google.Protobuf.TestProtos.Proto2.TestAllTypes.Descriptor.NestedTypes[1]; }
4817 }
4818
4819 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +02004820 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -05004821 pbr::MessageDescriptor pb::IMessage.Descriptor {
4822 get { return Descriptor; }
4823 }
4824
4825 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +02004826 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -05004827 public OptionalGroup() {
4828 OnConstruction();
4829 }
4830
4831 partial void OnConstruction();
4832
4833 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +02004834 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -05004835 public OptionalGroup(OptionalGroup other) : this() {
4836 _hasBits0 = other._hasBits0;
4837 a_ = other.a_;
4838 _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
4839 }
4840
4841 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +02004842 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -05004843 public OptionalGroup Clone() {
4844 return new OptionalGroup(this);
4845 }
4846
4847 /// <summary>Field number for the "a" field.</summary>
4848 public const int AFieldNumber = 17;
4849 private readonly static int ADefaultValue = 0;
4850
4851 private int a_;
4852 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +02004853 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -05004854 public int A {
4855 get { if ((_hasBits0 & 1) != 0) { return a_; } else { return ADefaultValue; } }
4856 set {
4857 _hasBits0 |= 1;
4858 a_ = value;
4859 }
4860 }
4861 /// <summary>Gets whether the "a" field is set</summary>
4862 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +02004863 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -05004864 public bool HasA {
4865 get { return (_hasBits0 & 1) != 0; }
4866 }
4867 /// <summary>Clears the value of the "a" field</summary>
4868 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +02004869 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -05004870 public void ClearA() {
4871 _hasBits0 &= ~1;
4872 }
4873
4874 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +02004875 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -05004876 public override bool Equals(object other) {
4877 return Equals(other as OptionalGroup);
4878 }
4879
4880 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +02004881 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -05004882 public bool Equals(OptionalGroup other) {
4883 if (ReferenceEquals(other, null)) {
4884 return false;
4885 }
4886 if (ReferenceEquals(other, this)) {
4887 return true;
4888 }
4889 if (A != other.A) return false;
4890 return Equals(_unknownFields, other._unknownFields);
4891 }
4892
4893 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +02004894 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -05004895 public override int GetHashCode() {
4896 int hash = 1;
4897 if (HasA) hash ^= A.GetHashCode();
4898 if (_unknownFields != null) {
4899 hash ^= _unknownFields.GetHashCode();
4900 }
4901 return hash;
4902 }
4903
4904 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +02004905 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -05004906 public override string ToString() {
4907 return pb::JsonFormatter.ToDiagnosticString(this);
4908 }
4909
4910 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +02004911 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -05004912 public void WriteTo(pb::CodedOutputStream output) {
Jan Tattermusch125e4ad2020-05-29 04:32:43 -04004913 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
4914 output.WriteRawMessage(this);
4915 #else
Sydney Acksman8a57ec82019-03-21 17:36:36 -05004916 if (HasA) {
4917 output.WriteRawTag(136, 1);
4918 output.WriteInt32(A);
4919 }
4920 if (_unknownFields != null) {
4921 _unknownFields.WriteTo(output);
4922 }
Jan Tattermusch125e4ad2020-05-29 04:32:43 -04004923 #endif
Sydney Acksman8a57ec82019-03-21 17:36:36 -05004924 }
4925
Jan Tattermusch125e4ad2020-05-29 04:32:43 -04004926 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
4927 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +02004928 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Jan Tattermusch125e4ad2020-05-29 04:32:43 -04004929 void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
4930 if (HasA) {
4931 output.WriteRawTag(136, 1);
4932 output.WriteInt32(A);
4933 }
4934 if (_unknownFields != null) {
4935 _unknownFields.WriteTo(ref output);
4936 }
4937 }
4938 #endif
4939
Sydney Acksman8a57ec82019-03-21 17:36:36 -05004940 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +02004941 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -05004942 public int CalculateSize() {
4943 int size = 0;
4944 if (HasA) {
4945 size += 2 + pb::CodedOutputStream.ComputeInt32Size(A);
4946 }
4947 if (_unknownFields != null) {
4948 size += _unknownFields.CalculateSize();
4949 }
4950 return size;
4951 }
4952
4953 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +02004954 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -05004955 public void MergeFrom(OptionalGroup other) {
4956 if (other == null) {
4957 return;
4958 }
4959 if (other.HasA) {
4960 A = other.A;
4961 }
4962 _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
4963 }
4964
4965 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +02004966 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -05004967 public void MergeFrom(pb::CodedInputStream input) {
Jan Tattermusch7cb55972020-06-02 09:26:25 +02004968 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
Jan Tattermusch3196ef92020-04-02 15:36:16 +02004969 input.ReadRawMessage(this);
Jan Tattermusch7cb55972020-06-02 09:26:25 +02004970 #else
4971 uint tag;
4972 while ((tag = input.ReadTag()) != 0) {
4973 switch(tag) {
4974 case 132:
4975 return;
4976 default:
4977 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
4978 break;
4979 case 136: {
4980 A = input.ReadInt32();
4981 break;
4982 }
4983 }
4984 }
4985 #endif
Jan Tattermusch3196ef92020-04-02 15:36:16 +02004986 }
4987
Jan Tattermusch7cb55972020-06-02 09:26:25 +02004988 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
Jan Tattermusch3196ef92020-04-02 15:36:16 +02004989 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +02004990 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Jan Tattermusch0df7ddc2020-04-14 12:41:03 +02004991 void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
Sydney Acksman8a57ec82019-03-21 17:36:36 -05004992 uint tag;
4993 while ((tag = input.ReadTag()) != 0) {
4994 switch(tag) {
4995 case 132:
4996 return;
4997 default:
Jan Tattermusch3196ef92020-04-02 15:36:16 +02004998 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
Sydney Acksman8a57ec82019-03-21 17:36:36 -05004999 break;
5000 case 136: {
5001 A = input.ReadInt32();
5002 break;
5003 }
5004 }
5005 }
5006 }
Jan Tattermusch7cb55972020-06-02 09:26:25 +02005007 #endif
Sydney Acksman8a57ec82019-03-21 17:36:36 -05005008
5009 }
5010
Jan Tattermusch7cb55972020-06-02 09:26:25 +02005011 public sealed partial class RepeatedGroup : pb::IMessage<RepeatedGroup>
5012 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
5013 , pb::IBufferMessage
5014 #endif
5015 {
Sydney Acksman8a57ec82019-03-21 17:36:36 -05005016 private static readonly pb::MessageParser<RepeatedGroup> _parser = new pb::MessageParser<RepeatedGroup>(() => new RepeatedGroup());
5017 private pb::UnknownFieldSet _unknownFields;
5018 private int _hasBits0;
5019 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +02005020 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -05005021 public static pb::MessageParser<RepeatedGroup> Parser { get { return _parser; } }
5022
5023 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +02005024 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -05005025 public static pbr::MessageDescriptor Descriptor {
5026 get { return global::Google.Protobuf.TestProtos.Proto2.TestAllTypes.Descriptor.NestedTypes[2]; }
5027 }
5028
5029 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +02005030 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -05005031 pbr::MessageDescriptor pb::IMessage.Descriptor {
5032 get { return Descriptor; }
5033 }
5034
5035 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +02005036 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -05005037 public RepeatedGroup() {
5038 OnConstruction();
5039 }
5040
5041 partial void OnConstruction();
5042
5043 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +02005044 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -05005045 public RepeatedGroup(RepeatedGroup other) : this() {
5046 _hasBits0 = other._hasBits0;
5047 a_ = other.a_;
5048 _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
5049 }
5050
5051 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +02005052 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -05005053 public RepeatedGroup Clone() {
5054 return new RepeatedGroup(this);
5055 }
5056
5057 /// <summary>Field number for the "a" field.</summary>
5058 public const int AFieldNumber = 47;
5059 private readonly static int ADefaultValue = 0;
5060
5061 private int a_;
5062 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +02005063 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -05005064 public int A {
5065 get { if ((_hasBits0 & 1) != 0) { return a_; } else { return ADefaultValue; } }
5066 set {
5067 _hasBits0 |= 1;
5068 a_ = value;
5069 }
5070 }
5071 /// <summary>Gets whether the "a" field is set</summary>
5072 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +02005073 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -05005074 public bool HasA {
5075 get { return (_hasBits0 & 1) != 0; }
5076 }
5077 /// <summary>Clears the value of the "a" field</summary>
5078 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +02005079 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -05005080 public void ClearA() {
5081 _hasBits0 &= ~1;
5082 }
5083
5084 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +02005085 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -05005086 public override bool Equals(object other) {
5087 return Equals(other as RepeatedGroup);
5088 }
5089
5090 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +02005091 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -05005092 public bool Equals(RepeatedGroup other) {
5093 if (ReferenceEquals(other, null)) {
5094 return false;
5095 }
5096 if (ReferenceEquals(other, this)) {
5097 return true;
5098 }
5099 if (A != other.A) return false;
5100 return Equals(_unknownFields, other._unknownFields);
5101 }
5102
5103 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +02005104 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -05005105 public override int GetHashCode() {
5106 int hash = 1;
5107 if (HasA) hash ^= A.GetHashCode();
5108 if (_unknownFields != null) {
5109 hash ^= _unknownFields.GetHashCode();
5110 }
5111 return hash;
5112 }
5113
5114 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +02005115 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -05005116 public override string ToString() {
5117 return pb::JsonFormatter.ToDiagnosticString(this);
5118 }
5119
5120 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +02005121 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -05005122 public void WriteTo(pb::CodedOutputStream output) {
Jan Tattermusch125e4ad2020-05-29 04:32:43 -04005123 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
5124 output.WriteRawMessage(this);
5125 #else
Sydney Acksman8a57ec82019-03-21 17:36:36 -05005126 if (HasA) {
5127 output.WriteRawTag(248, 2);
5128 output.WriteInt32(A);
5129 }
5130 if (_unknownFields != null) {
5131 _unknownFields.WriteTo(output);
5132 }
Jan Tattermusch125e4ad2020-05-29 04:32:43 -04005133 #endif
Sydney Acksman8a57ec82019-03-21 17:36:36 -05005134 }
5135
Jan Tattermusch125e4ad2020-05-29 04:32:43 -04005136 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
5137 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +02005138 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Jan Tattermusch125e4ad2020-05-29 04:32:43 -04005139 void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
5140 if (HasA) {
5141 output.WriteRawTag(248, 2);
5142 output.WriteInt32(A);
5143 }
5144 if (_unknownFields != null) {
5145 _unknownFields.WriteTo(ref output);
5146 }
5147 }
5148 #endif
5149
Sydney Acksman8a57ec82019-03-21 17:36:36 -05005150 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +02005151 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -05005152 public int CalculateSize() {
5153 int size = 0;
5154 if (HasA) {
5155 size += 2 + pb::CodedOutputStream.ComputeInt32Size(A);
5156 }
5157 if (_unknownFields != null) {
5158 size += _unknownFields.CalculateSize();
5159 }
5160 return size;
5161 }
5162
5163 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +02005164 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -05005165 public void MergeFrom(RepeatedGroup other) {
5166 if (other == null) {
5167 return;
5168 }
5169 if (other.HasA) {
5170 A = other.A;
5171 }
5172 _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
5173 }
5174
5175 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +02005176 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -05005177 public void MergeFrom(pb::CodedInputStream input) {
Jan Tattermusch7cb55972020-06-02 09:26:25 +02005178 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
Jan Tattermusch3196ef92020-04-02 15:36:16 +02005179 input.ReadRawMessage(this);
Jan Tattermusch7cb55972020-06-02 09:26:25 +02005180 #else
5181 uint tag;
5182 while ((tag = input.ReadTag()) != 0) {
5183 switch(tag) {
5184 case 372:
5185 return;
5186 default:
5187 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
5188 break;
5189 case 376: {
5190 A = input.ReadInt32();
5191 break;
5192 }
5193 }
5194 }
5195 #endif
Jan Tattermusch3196ef92020-04-02 15:36:16 +02005196 }
5197
Jan Tattermusch7cb55972020-06-02 09:26:25 +02005198 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
Jan Tattermusch3196ef92020-04-02 15:36:16 +02005199 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +02005200 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Jan Tattermusch0df7ddc2020-04-14 12:41:03 +02005201 void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
Sydney Acksman8a57ec82019-03-21 17:36:36 -05005202 uint tag;
5203 while ((tag = input.ReadTag()) != 0) {
5204 switch(tag) {
5205 case 372:
5206 return;
5207 default:
Jan Tattermusch3196ef92020-04-02 15:36:16 +02005208 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
Sydney Acksman8a57ec82019-03-21 17:36:36 -05005209 break;
5210 case 376: {
5211 A = input.ReadInt32();
5212 break;
5213 }
5214 }
5215 }
5216 }
Jan Tattermusch7cb55972020-06-02 09:26:25 +02005217 #endif
Sydney Acksman8a57ec82019-03-21 17:36:36 -05005218
5219 }
5220
5221 }
5222 #endregion
5223
5224 }
5225
5226 /// <summary>
Joshua Haberman9c676d82020-03-31 16:35:09 -07005227 /// This proto includes a recursively nested message.
Sydney Acksman8a57ec82019-03-21 17:36:36 -05005228 /// </summary>
Jan Tattermusch7cb55972020-06-02 09:26:25 +02005229 public sealed partial class NestedTestAllTypes : pb::IMessage<NestedTestAllTypes>
5230 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
5231 , pb::IBufferMessage
5232 #endif
5233 {
Sydney Acksman8a57ec82019-03-21 17:36:36 -05005234 private static readonly pb::MessageParser<NestedTestAllTypes> _parser = new pb::MessageParser<NestedTestAllTypes>(() => new NestedTestAllTypes());
5235 private pb::UnknownFieldSet _unknownFields;
5236 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +02005237 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -05005238 public static pb::MessageParser<NestedTestAllTypes> Parser { get { return _parser; } }
5239
5240 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +02005241 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -05005242 public static pbr::MessageDescriptor Descriptor {
5243 get { return global::Google.Protobuf.TestProtos.Proto2.UnittestReflection.Descriptor.MessageTypes[1]; }
5244 }
5245
5246 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +02005247 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -05005248 pbr::MessageDescriptor pb::IMessage.Descriptor {
5249 get { return Descriptor; }
5250 }
5251
5252 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +02005253 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -05005254 public NestedTestAllTypes() {
5255 OnConstruction();
5256 }
5257
5258 partial void OnConstruction();
5259
5260 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +02005261 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -05005262 public NestedTestAllTypes(NestedTestAllTypes other) : this() {
Jon Skeet9926c952020-04-27 07:18:45 +01005263 child_ = other.child_ != null ? other.child_.Clone() : null;
5264 payload_ = other.payload_ != null ? other.payload_.Clone() : null;
Sydney Acksman8a57ec82019-03-21 17:36:36 -05005265 repeatedChild_ = other.repeatedChild_.Clone();
5266 _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
5267 }
5268
5269 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +02005270 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -05005271 public NestedTestAllTypes Clone() {
5272 return new NestedTestAllTypes(this);
5273 }
5274
5275 /// <summary>Field number for the "child" field.</summary>
5276 public const int ChildFieldNumber = 1;
5277 private global::Google.Protobuf.TestProtos.Proto2.NestedTestAllTypes child_;
5278 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +02005279 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -05005280 public global::Google.Protobuf.TestProtos.Proto2.NestedTestAllTypes Child {
5281 get { return child_; }
5282 set {
5283 child_ = value;
5284 }
5285 }
Sydney Acksman8a57ec82019-03-21 17:36:36 -05005286
5287 /// <summary>Field number for the "payload" field.</summary>
5288 public const int PayloadFieldNumber = 2;
5289 private global::Google.Protobuf.TestProtos.Proto2.TestAllTypes payload_;
5290 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +02005291 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -05005292 public global::Google.Protobuf.TestProtos.Proto2.TestAllTypes Payload {
5293 get { return payload_; }
5294 set {
5295 payload_ = value;
5296 }
5297 }
Sydney Acksman8a57ec82019-03-21 17:36:36 -05005298
5299 /// <summary>Field number for the "repeated_child" field.</summary>
5300 public const int RepeatedChildFieldNumber = 3;
5301 private static readonly pb::FieldCodec<global::Google.Protobuf.TestProtos.Proto2.NestedTestAllTypes> _repeated_repeatedChild_codec
5302 = pb::FieldCodec.ForMessage(26, global::Google.Protobuf.TestProtos.Proto2.NestedTestAllTypes.Parser);
5303 private readonly pbc::RepeatedField<global::Google.Protobuf.TestProtos.Proto2.NestedTestAllTypes> repeatedChild_ = new pbc::RepeatedField<global::Google.Protobuf.TestProtos.Proto2.NestedTestAllTypes>();
5304 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +02005305 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -05005306 public pbc::RepeatedField<global::Google.Protobuf.TestProtos.Proto2.NestedTestAllTypes> RepeatedChild {
5307 get { return repeatedChild_; }
5308 }
5309
5310 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +02005311 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -05005312 public override bool Equals(object other) {
5313 return Equals(other as NestedTestAllTypes);
5314 }
5315
5316 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +02005317 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -05005318 public bool Equals(NestedTestAllTypes other) {
5319 if (ReferenceEquals(other, null)) {
5320 return false;
5321 }
5322 if (ReferenceEquals(other, this)) {
5323 return true;
5324 }
5325 if (!object.Equals(Child, other.Child)) return false;
5326 if (!object.Equals(Payload, other.Payload)) return false;
5327 if(!repeatedChild_.Equals(other.repeatedChild_)) return false;
5328 return Equals(_unknownFields, other._unknownFields);
5329 }
5330
5331 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +02005332 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -05005333 public override int GetHashCode() {
5334 int hash = 1;
Jon Skeet9926c952020-04-27 07:18:45 +01005335 if (child_ != null) hash ^= Child.GetHashCode();
5336 if (payload_ != null) hash ^= Payload.GetHashCode();
Sydney Acksman8a57ec82019-03-21 17:36:36 -05005337 hash ^= repeatedChild_.GetHashCode();
5338 if (_unknownFields != null) {
5339 hash ^= _unknownFields.GetHashCode();
5340 }
5341 return hash;
5342 }
5343
5344 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +02005345 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -05005346 public override string ToString() {
5347 return pb::JsonFormatter.ToDiagnosticString(this);
5348 }
5349
5350 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +02005351 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -05005352 public void WriteTo(pb::CodedOutputStream output) {
Jan Tattermusch125e4ad2020-05-29 04:32:43 -04005353 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
5354 output.WriteRawMessage(this);
5355 #else
Jon Skeet9926c952020-04-27 07:18:45 +01005356 if (child_ != null) {
Sydney Acksman8a57ec82019-03-21 17:36:36 -05005357 output.WriteRawTag(10);
5358 output.WriteMessage(Child);
5359 }
Jon Skeet9926c952020-04-27 07:18:45 +01005360 if (payload_ != null) {
Sydney Acksman8a57ec82019-03-21 17:36:36 -05005361 output.WriteRawTag(18);
5362 output.WriteMessage(Payload);
5363 }
5364 repeatedChild_.WriteTo(output, _repeated_repeatedChild_codec);
5365 if (_unknownFields != null) {
5366 _unknownFields.WriteTo(output);
5367 }
Jan Tattermusch125e4ad2020-05-29 04:32:43 -04005368 #endif
Sydney Acksman8a57ec82019-03-21 17:36:36 -05005369 }
5370
Jan Tattermusch125e4ad2020-05-29 04:32:43 -04005371 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
5372 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +02005373 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Jan Tattermusch125e4ad2020-05-29 04:32:43 -04005374 void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
5375 if (child_ != null) {
5376 output.WriteRawTag(10);
5377 output.WriteMessage(Child);
5378 }
5379 if (payload_ != null) {
5380 output.WriteRawTag(18);
5381 output.WriteMessage(Payload);
5382 }
5383 repeatedChild_.WriteTo(ref output, _repeated_repeatedChild_codec);
5384 if (_unknownFields != null) {
5385 _unknownFields.WriteTo(ref output);
5386 }
5387 }
5388 #endif
5389
Sydney Acksman8a57ec82019-03-21 17:36:36 -05005390 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +02005391 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -05005392 public int CalculateSize() {
5393 int size = 0;
Jon Skeet9926c952020-04-27 07:18:45 +01005394 if (child_ != null) {
Sydney Acksman8a57ec82019-03-21 17:36:36 -05005395 size += 1 + pb::CodedOutputStream.ComputeMessageSize(Child);
5396 }
Jon Skeet9926c952020-04-27 07:18:45 +01005397 if (payload_ != null) {
Sydney Acksman8a57ec82019-03-21 17:36:36 -05005398 size += 1 + pb::CodedOutputStream.ComputeMessageSize(Payload);
5399 }
5400 size += repeatedChild_.CalculateSize(_repeated_repeatedChild_codec);
5401 if (_unknownFields != null) {
5402 size += _unknownFields.CalculateSize();
5403 }
5404 return size;
5405 }
5406
5407 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +02005408 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -05005409 public void MergeFrom(NestedTestAllTypes other) {
5410 if (other == null) {
5411 return;
5412 }
Jon Skeet9926c952020-04-27 07:18:45 +01005413 if (other.child_ != null) {
5414 if (child_ == null) {
Sydney Acksman8a57ec82019-03-21 17:36:36 -05005415 Child = new global::Google.Protobuf.TestProtos.Proto2.NestedTestAllTypes();
5416 }
5417 Child.MergeFrom(other.Child);
5418 }
Jon Skeet9926c952020-04-27 07:18:45 +01005419 if (other.payload_ != null) {
5420 if (payload_ == null) {
Sydney Acksman8a57ec82019-03-21 17:36:36 -05005421 Payload = new global::Google.Protobuf.TestProtos.Proto2.TestAllTypes();
5422 }
5423 Payload.MergeFrom(other.Payload);
5424 }
5425 repeatedChild_.Add(other.repeatedChild_);
5426 _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
5427 }
5428
5429 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +02005430 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -05005431 public void MergeFrom(pb::CodedInputStream input) {
Jan Tattermusch7cb55972020-06-02 09:26:25 +02005432 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
Jan Tattermusch3196ef92020-04-02 15:36:16 +02005433 input.ReadRawMessage(this);
Jan Tattermusch7cb55972020-06-02 09:26:25 +02005434 #else
5435 uint tag;
5436 while ((tag = input.ReadTag()) != 0) {
5437 switch(tag) {
5438 default:
5439 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
5440 break;
5441 case 10: {
5442 if (child_ == null) {
5443 Child = new global::Google.Protobuf.TestProtos.Proto2.NestedTestAllTypes();
5444 }
5445 input.ReadMessage(Child);
5446 break;
5447 }
5448 case 18: {
5449 if (payload_ == null) {
5450 Payload = new global::Google.Protobuf.TestProtos.Proto2.TestAllTypes();
5451 }
5452 input.ReadMessage(Payload);
5453 break;
5454 }
5455 case 26: {
5456 repeatedChild_.AddEntriesFrom(input, _repeated_repeatedChild_codec);
5457 break;
5458 }
5459 }
5460 }
5461 #endif
Jan Tattermusch3196ef92020-04-02 15:36:16 +02005462 }
5463
Jan Tattermusch7cb55972020-06-02 09:26:25 +02005464 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
Jan Tattermusch3196ef92020-04-02 15:36:16 +02005465 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +02005466 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Jan Tattermusch0df7ddc2020-04-14 12:41:03 +02005467 void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
Sydney Acksman8a57ec82019-03-21 17:36:36 -05005468 uint tag;
5469 while ((tag = input.ReadTag()) != 0) {
5470 switch(tag) {
5471 default:
Jan Tattermusch3196ef92020-04-02 15:36:16 +02005472 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
Sydney Acksman8a57ec82019-03-21 17:36:36 -05005473 break;
5474 case 10: {
Jon Skeet9926c952020-04-27 07:18:45 +01005475 if (child_ == null) {
Sydney Acksman8a57ec82019-03-21 17:36:36 -05005476 Child = new global::Google.Protobuf.TestProtos.Proto2.NestedTestAllTypes();
5477 }
5478 input.ReadMessage(Child);
5479 break;
5480 }
5481 case 18: {
Jon Skeet9926c952020-04-27 07:18:45 +01005482 if (payload_ == null) {
Sydney Acksman8a57ec82019-03-21 17:36:36 -05005483 Payload = new global::Google.Protobuf.TestProtos.Proto2.TestAllTypes();
5484 }
5485 input.ReadMessage(Payload);
5486 break;
5487 }
5488 case 26: {
Jan Tattermusch3196ef92020-04-02 15:36:16 +02005489 repeatedChild_.AddEntriesFrom(ref input, _repeated_repeatedChild_codec);
Sydney Acksman8a57ec82019-03-21 17:36:36 -05005490 break;
5491 }
5492 }
5493 }
5494 }
Jan Tattermusch7cb55972020-06-02 09:26:25 +02005495 #endif
Sydney Acksman8a57ec82019-03-21 17:36:36 -05005496
5497 }
5498
Jan Tattermusch7cb55972020-06-02 09:26:25 +02005499 public sealed partial class TestDeprecatedFields : pb::IMessage<TestDeprecatedFields>
5500 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
5501 , pb::IBufferMessage
5502 #endif
5503 {
Sydney Acksman8a57ec82019-03-21 17:36:36 -05005504 private static readonly pb::MessageParser<TestDeprecatedFields> _parser = new pb::MessageParser<TestDeprecatedFields>(() => new TestDeprecatedFields());
5505 private pb::UnknownFieldSet _unknownFields;
5506 private int _hasBits0;
5507 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +02005508 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -05005509 public static pb::MessageParser<TestDeprecatedFields> Parser { get { return _parser; } }
5510
5511 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +02005512 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -05005513 public static pbr::MessageDescriptor Descriptor {
5514 get { return global::Google.Protobuf.TestProtos.Proto2.UnittestReflection.Descriptor.MessageTypes[2]; }
5515 }
5516
5517 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +02005518 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -05005519 pbr::MessageDescriptor pb::IMessage.Descriptor {
5520 get { return Descriptor; }
5521 }
5522
5523 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +02005524 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -05005525 public TestDeprecatedFields() {
5526 OnConstruction();
5527 }
5528
5529 partial void OnConstruction();
5530
5531 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +02005532 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -05005533 public TestDeprecatedFields(TestDeprecatedFields other) : this() {
5534 _hasBits0 = other._hasBits0;
5535 deprecatedInt32_ = other.deprecatedInt32_;
5536 switch (other.OneofFieldsCase) {
5537 case OneofFieldsOneofCase.DeprecatedInt32InOneof:
5538 DeprecatedInt32InOneof = other.DeprecatedInt32InOneof;
5539 break;
5540 }
5541
5542 _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
5543 }
5544
5545 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +02005546 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -05005547 public TestDeprecatedFields Clone() {
5548 return new TestDeprecatedFields(this);
5549 }
5550
5551 /// <summary>Field number for the "deprecated_int32" field.</summary>
5552 public const int DeprecatedInt32FieldNumber = 1;
5553 private readonly static int DeprecatedInt32DefaultValue = 0;
5554
5555 private int deprecatedInt32_;
5556 [global::System.ObsoleteAttribute]
5557 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +02005558 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -05005559 public int DeprecatedInt32 {
5560 get { if ((_hasBits0 & 1) != 0) { return deprecatedInt32_; } else { return DeprecatedInt32DefaultValue; } }
5561 set {
5562 _hasBits0 |= 1;
5563 deprecatedInt32_ = value;
5564 }
5565 }
5566 /// <summary>Gets whether the "deprecated_int32" field is set</summary>
5567 [global::System.ObsoleteAttribute]
5568 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +02005569 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -05005570 public bool HasDeprecatedInt32 {
5571 get { return (_hasBits0 & 1) != 0; }
5572 }
5573 /// <summary>Clears the value of the "deprecated_int32" field</summary>
5574 [global::System.ObsoleteAttribute]
5575 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +02005576 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -05005577 public void ClearDeprecatedInt32() {
5578 _hasBits0 &= ~1;
5579 }
5580
5581 /// <summary>Field number for the "deprecated_int32_in_oneof" field.</summary>
5582 public const int DeprecatedInt32InOneofFieldNumber = 2;
5583 [global::System.ObsoleteAttribute]
5584 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +02005585 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -05005586 public int DeprecatedInt32InOneof {
5587 get { return HasDeprecatedInt32InOneof ? (int) oneofFields_ : 0; }
5588 set {
5589 oneofFields_ = value;
5590 oneofFieldsCase_ = OneofFieldsOneofCase.DeprecatedInt32InOneof;
5591 }
5592 }
5593 /// <summary>Gets whether the "deprecated_int32_in_oneof" field is set</summary>
5594 [global::System.ObsoleteAttribute]
5595 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +02005596 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -05005597 public bool HasDeprecatedInt32InOneof {
5598 get { return oneofFieldsCase_ == OneofFieldsOneofCase.DeprecatedInt32InOneof; }
5599 }
5600 /// <summary> Clears the value of the oneof if it's currently set to "deprecated_int32_in_oneof" </summary>
5601 [global::System.ObsoleteAttribute]
5602 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +02005603 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -05005604 public void ClearDeprecatedInt32InOneof() {
5605 if (HasDeprecatedInt32InOneof) {
5606 ClearOneofFields();
5607 }
5608 }
5609
5610 private object oneofFields_;
5611 /// <summary>Enum of possible cases for the "oneof_fields" oneof.</summary>
5612 public enum OneofFieldsOneofCase {
5613 None = 0,
5614 DeprecatedInt32InOneof = 2,
5615 }
5616 private OneofFieldsOneofCase oneofFieldsCase_ = OneofFieldsOneofCase.None;
5617 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +02005618 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -05005619 public OneofFieldsOneofCase OneofFieldsCase {
5620 get { return oneofFieldsCase_; }
5621 }
5622
5623 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +02005624 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -05005625 public void ClearOneofFields() {
5626 oneofFieldsCase_ = OneofFieldsOneofCase.None;
5627 oneofFields_ = null;
5628 }
5629
5630 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +02005631 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -05005632 public override bool Equals(object other) {
5633 return Equals(other as TestDeprecatedFields);
5634 }
5635
5636 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +02005637 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -05005638 public bool Equals(TestDeprecatedFields other) {
5639 if (ReferenceEquals(other, null)) {
5640 return false;
5641 }
5642 if (ReferenceEquals(other, this)) {
5643 return true;
5644 }
5645 if (DeprecatedInt32 != other.DeprecatedInt32) return false;
5646 if (DeprecatedInt32InOneof != other.DeprecatedInt32InOneof) return false;
5647 if (OneofFieldsCase != other.OneofFieldsCase) return false;
5648 return Equals(_unknownFields, other._unknownFields);
5649 }
5650
5651 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +02005652 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -05005653 public override int GetHashCode() {
5654 int hash = 1;
5655 if (HasDeprecatedInt32) hash ^= DeprecatedInt32.GetHashCode();
5656 if (HasDeprecatedInt32InOneof) hash ^= DeprecatedInt32InOneof.GetHashCode();
5657 hash ^= (int) oneofFieldsCase_;
5658 if (_unknownFields != null) {
5659 hash ^= _unknownFields.GetHashCode();
5660 }
5661 return hash;
5662 }
5663
5664 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +02005665 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -05005666 public override string ToString() {
5667 return pb::JsonFormatter.ToDiagnosticString(this);
5668 }
5669
5670 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +02005671 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -05005672 public void WriteTo(pb::CodedOutputStream output) {
Jan Tattermusch125e4ad2020-05-29 04:32:43 -04005673 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
5674 output.WriteRawMessage(this);
5675 #else
Sydney Acksman8a57ec82019-03-21 17:36:36 -05005676 if (HasDeprecatedInt32) {
5677 output.WriteRawTag(8);
5678 output.WriteInt32(DeprecatedInt32);
5679 }
5680 if (HasDeprecatedInt32InOneof) {
5681 output.WriteRawTag(16);
5682 output.WriteInt32(DeprecatedInt32InOneof);
5683 }
5684 if (_unknownFields != null) {
5685 _unknownFields.WriteTo(output);
5686 }
Jan Tattermusch125e4ad2020-05-29 04:32:43 -04005687 #endif
Sydney Acksman8a57ec82019-03-21 17:36:36 -05005688 }
5689
Jan Tattermusch125e4ad2020-05-29 04:32:43 -04005690 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
5691 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +02005692 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Jan Tattermusch125e4ad2020-05-29 04:32:43 -04005693 void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
5694 if (HasDeprecatedInt32) {
5695 output.WriteRawTag(8);
5696 output.WriteInt32(DeprecatedInt32);
5697 }
5698 if (HasDeprecatedInt32InOneof) {
5699 output.WriteRawTag(16);
5700 output.WriteInt32(DeprecatedInt32InOneof);
5701 }
5702 if (_unknownFields != null) {
5703 _unknownFields.WriteTo(ref output);
5704 }
5705 }
5706 #endif
5707
Sydney Acksman8a57ec82019-03-21 17:36:36 -05005708 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +02005709 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -05005710 public int CalculateSize() {
5711 int size = 0;
5712 if (HasDeprecatedInt32) {
5713 size += 1 + pb::CodedOutputStream.ComputeInt32Size(DeprecatedInt32);
5714 }
5715 if (HasDeprecatedInt32InOneof) {
5716 size += 1 + pb::CodedOutputStream.ComputeInt32Size(DeprecatedInt32InOneof);
5717 }
5718 if (_unknownFields != null) {
5719 size += _unknownFields.CalculateSize();
5720 }
5721 return size;
5722 }
5723
5724 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +02005725 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -05005726 public void MergeFrom(TestDeprecatedFields other) {
5727 if (other == null) {
5728 return;
5729 }
5730 if (other.HasDeprecatedInt32) {
5731 DeprecatedInt32 = other.DeprecatedInt32;
5732 }
5733 switch (other.OneofFieldsCase) {
5734 case OneofFieldsOneofCase.DeprecatedInt32InOneof:
5735 DeprecatedInt32InOneof = other.DeprecatedInt32InOneof;
5736 break;
5737 }
5738
5739 _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
5740 }
5741
5742 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +02005743 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -05005744 public void MergeFrom(pb::CodedInputStream input) {
Jan Tattermusch7cb55972020-06-02 09:26:25 +02005745 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
Jan Tattermusch3196ef92020-04-02 15:36:16 +02005746 input.ReadRawMessage(this);
Jan Tattermusch7cb55972020-06-02 09:26:25 +02005747 #else
5748 uint tag;
5749 while ((tag = input.ReadTag()) != 0) {
5750 switch(tag) {
5751 default:
5752 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
5753 break;
5754 case 8: {
5755 DeprecatedInt32 = input.ReadInt32();
5756 break;
5757 }
5758 case 16: {
5759 DeprecatedInt32InOneof = input.ReadInt32();
5760 break;
5761 }
5762 }
5763 }
5764 #endif
Jan Tattermusch3196ef92020-04-02 15:36:16 +02005765 }
5766
Jan Tattermusch7cb55972020-06-02 09:26:25 +02005767 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
Jan Tattermusch3196ef92020-04-02 15:36:16 +02005768 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +02005769 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Jan Tattermusch0df7ddc2020-04-14 12:41:03 +02005770 void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
Sydney Acksman8a57ec82019-03-21 17:36:36 -05005771 uint tag;
5772 while ((tag = input.ReadTag()) != 0) {
5773 switch(tag) {
5774 default:
Jan Tattermusch3196ef92020-04-02 15:36:16 +02005775 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
Sydney Acksman8a57ec82019-03-21 17:36:36 -05005776 break;
5777 case 8: {
5778 DeprecatedInt32 = input.ReadInt32();
5779 break;
5780 }
5781 case 16: {
5782 DeprecatedInt32InOneof = input.ReadInt32();
5783 break;
5784 }
5785 }
5786 }
5787 }
Jan Tattermusch7cb55972020-06-02 09:26:25 +02005788 #endif
Sydney Acksman8a57ec82019-03-21 17:36:36 -05005789
5790 }
5791
5792 [global::System.ObsoleteAttribute]
Jan Tattermusch7cb55972020-06-02 09:26:25 +02005793 public sealed partial class TestDeprecatedMessage : pb::IMessage<TestDeprecatedMessage>
5794 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
5795 , pb::IBufferMessage
5796 #endif
5797 {
Sydney Acksman8a57ec82019-03-21 17:36:36 -05005798 private static readonly pb::MessageParser<TestDeprecatedMessage> _parser = new pb::MessageParser<TestDeprecatedMessage>(() => new TestDeprecatedMessage());
5799 private pb::UnknownFieldSet _unknownFields;
5800 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +02005801 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -05005802 public static pb::MessageParser<TestDeprecatedMessage> Parser { get { return _parser; } }
5803
5804 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +02005805 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -05005806 public static pbr::MessageDescriptor Descriptor {
5807 get { return global::Google.Protobuf.TestProtos.Proto2.UnittestReflection.Descriptor.MessageTypes[3]; }
5808 }
5809
5810 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +02005811 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -05005812 pbr::MessageDescriptor pb::IMessage.Descriptor {
5813 get { return Descriptor; }
5814 }
5815
5816 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +02005817 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -05005818 public TestDeprecatedMessage() {
5819 OnConstruction();
5820 }
5821
5822 partial void OnConstruction();
5823
5824 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +02005825 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -05005826 public TestDeprecatedMessage(TestDeprecatedMessage other) : this() {
5827 _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
5828 }
5829
5830 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +02005831 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -05005832 public TestDeprecatedMessage Clone() {
5833 return new TestDeprecatedMessage(this);
5834 }
5835
5836 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +02005837 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -05005838 public override bool Equals(object other) {
5839 return Equals(other as TestDeprecatedMessage);
5840 }
5841
5842 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +02005843 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -05005844 public bool Equals(TestDeprecatedMessage other) {
5845 if (ReferenceEquals(other, null)) {
5846 return false;
5847 }
5848 if (ReferenceEquals(other, this)) {
5849 return true;
5850 }
5851 return Equals(_unknownFields, other._unknownFields);
5852 }
5853
5854 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +02005855 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -05005856 public override int GetHashCode() {
5857 int hash = 1;
5858 if (_unknownFields != null) {
5859 hash ^= _unknownFields.GetHashCode();
5860 }
5861 return hash;
5862 }
5863
5864 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +02005865 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -05005866 public override string ToString() {
5867 return pb::JsonFormatter.ToDiagnosticString(this);
5868 }
5869
5870 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +02005871 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -05005872 public void WriteTo(pb::CodedOutputStream output) {
Jan Tattermusch125e4ad2020-05-29 04:32:43 -04005873 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
5874 output.WriteRawMessage(this);
5875 #else
Sydney Acksman8a57ec82019-03-21 17:36:36 -05005876 if (_unknownFields != null) {
5877 _unknownFields.WriteTo(output);
5878 }
Jan Tattermusch125e4ad2020-05-29 04:32:43 -04005879 #endif
Sydney Acksman8a57ec82019-03-21 17:36:36 -05005880 }
5881
Jan Tattermusch125e4ad2020-05-29 04:32:43 -04005882 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
5883 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +02005884 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Jan Tattermusch125e4ad2020-05-29 04:32:43 -04005885 void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
5886 if (_unknownFields != null) {
5887 _unknownFields.WriteTo(ref output);
5888 }
5889 }
5890 #endif
5891
Sydney Acksman8a57ec82019-03-21 17:36:36 -05005892 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +02005893 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -05005894 public int CalculateSize() {
5895 int size = 0;
5896 if (_unknownFields != null) {
5897 size += _unknownFields.CalculateSize();
5898 }
5899 return size;
5900 }
5901
5902 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +02005903 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -05005904 public void MergeFrom(TestDeprecatedMessage other) {
5905 if (other == null) {
5906 return;
5907 }
5908 _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
5909 }
5910
5911 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +02005912 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -05005913 public void MergeFrom(pb::CodedInputStream input) {
Jan Tattermusch7cb55972020-06-02 09:26:25 +02005914 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
Jan Tattermusch3196ef92020-04-02 15:36:16 +02005915 input.ReadRawMessage(this);
Jan Tattermusch7cb55972020-06-02 09:26:25 +02005916 #else
5917 uint tag;
5918 while ((tag = input.ReadTag()) != 0) {
5919 switch(tag) {
5920 default:
5921 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
5922 break;
5923 }
5924 }
5925 #endif
Jan Tattermusch3196ef92020-04-02 15:36:16 +02005926 }
5927
Jan Tattermusch7cb55972020-06-02 09:26:25 +02005928 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
Jan Tattermusch3196ef92020-04-02 15:36:16 +02005929 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +02005930 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Jan Tattermusch0df7ddc2020-04-14 12:41:03 +02005931 void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
Sydney Acksman8a57ec82019-03-21 17:36:36 -05005932 uint tag;
5933 while ((tag = input.ReadTag()) != 0) {
5934 switch(tag) {
5935 default:
Jan Tattermusch3196ef92020-04-02 15:36:16 +02005936 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
Sydney Acksman8a57ec82019-03-21 17:36:36 -05005937 break;
5938 }
5939 }
5940 }
Jan Tattermusch7cb55972020-06-02 09:26:25 +02005941 #endif
Sydney Acksman8a57ec82019-03-21 17:36:36 -05005942
5943 }
5944
5945 /// <summary>
5946 /// Define these after TestAllTypes to make sure the compiler can handle
5947 /// that.
5948 /// </summary>
Jan Tattermusch7cb55972020-06-02 09:26:25 +02005949 public sealed partial class ForeignMessage : pb::IMessage<ForeignMessage>
5950 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
5951 , pb::IBufferMessage
5952 #endif
5953 {
Sydney Acksman8a57ec82019-03-21 17:36:36 -05005954 private static readonly pb::MessageParser<ForeignMessage> _parser = new pb::MessageParser<ForeignMessage>(() => new ForeignMessage());
5955 private pb::UnknownFieldSet _unknownFields;
5956 private int _hasBits0;
5957 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +02005958 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -05005959 public static pb::MessageParser<ForeignMessage> Parser { get { return _parser; } }
5960
5961 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +02005962 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -05005963 public static pbr::MessageDescriptor Descriptor {
5964 get { return global::Google.Protobuf.TestProtos.Proto2.UnittestReflection.Descriptor.MessageTypes[4]; }
5965 }
5966
5967 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +02005968 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -05005969 pbr::MessageDescriptor pb::IMessage.Descriptor {
5970 get { return Descriptor; }
5971 }
5972
5973 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +02005974 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -05005975 public ForeignMessage() {
5976 OnConstruction();
5977 }
5978
5979 partial void OnConstruction();
5980
5981 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +02005982 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -05005983 public ForeignMessage(ForeignMessage other) : this() {
5984 _hasBits0 = other._hasBits0;
5985 c_ = other.c_;
5986 d_ = other.d_;
5987 _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
5988 }
5989
5990 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +02005991 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -05005992 public ForeignMessage Clone() {
5993 return new ForeignMessage(this);
5994 }
5995
5996 /// <summary>Field number for the "c" field.</summary>
5997 public const int CFieldNumber = 1;
5998 private readonly static int CDefaultValue = 0;
5999
6000 private int c_;
6001 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +02006002 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -05006003 public int C {
6004 get { if ((_hasBits0 & 1) != 0) { return c_; } else { return CDefaultValue; } }
6005 set {
6006 _hasBits0 |= 1;
6007 c_ = value;
6008 }
6009 }
6010 /// <summary>Gets whether the "c" field is set</summary>
6011 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +02006012 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -05006013 public bool HasC {
6014 get { return (_hasBits0 & 1) != 0; }
6015 }
6016 /// <summary>Clears the value of the "c" field</summary>
6017 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +02006018 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -05006019 public void ClearC() {
6020 _hasBits0 &= ~1;
6021 }
6022
6023 /// <summary>Field number for the "d" field.</summary>
6024 public const int DFieldNumber = 2;
6025 private readonly static int DDefaultValue = 0;
6026
6027 private int d_;
6028 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +02006029 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -05006030 public int D {
6031 get { if ((_hasBits0 & 2) != 0) { return d_; } else { return DDefaultValue; } }
6032 set {
6033 _hasBits0 |= 2;
6034 d_ = value;
6035 }
6036 }
6037 /// <summary>Gets whether the "d" field is set</summary>
6038 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +02006039 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -05006040 public bool HasD {
6041 get { return (_hasBits0 & 2) != 0; }
6042 }
6043 /// <summary>Clears the value of the "d" field</summary>
6044 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +02006045 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -05006046 public void ClearD() {
6047 _hasBits0 &= ~2;
6048 }
6049
6050 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +02006051 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -05006052 public override bool Equals(object other) {
6053 return Equals(other as ForeignMessage);
6054 }
6055
6056 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +02006057 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -05006058 public bool Equals(ForeignMessage other) {
6059 if (ReferenceEquals(other, null)) {
6060 return false;
6061 }
6062 if (ReferenceEquals(other, this)) {
6063 return true;
6064 }
6065 if (C != other.C) return false;
6066 if (D != other.D) return false;
6067 return Equals(_unknownFields, other._unknownFields);
6068 }
6069
6070 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +02006071 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -05006072 public override int GetHashCode() {
6073 int hash = 1;
6074 if (HasC) hash ^= C.GetHashCode();
6075 if (HasD) hash ^= D.GetHashCode();
6076 if (_unknownFields != null) {
6077 hash ^= _unknownFields.GetHashCode();
6078 }
6079 return hash;
6080 }
6081
6082 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +02006083 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -05006084 public override string ToString() {
6085 return pb::JsonFormatter.ToDiagnosticString(this);
6086 }
6087
6088 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +02006089 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -05006090 public void WriteTo(pb::CodedOutputStream output) {
Jan Tattermusch125e4ad2020-05-29 04:32:43 -04006091 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
6092 output.WriteRawMessage(this);
6093 #else
Sydney Acksman8a57ec82019-03-21 17:36:36 -05006094 if (HasC) {
6095 output.WriteRawTag(8);
6096 output.WriteInt32(C);
6097 }
6098 if (HasD) {
6099 output.WriteRawTag(16);
6100 output.WriteInt32(D);
6101 }
6102 if (_unknownFields != null) {
6103 _unknownFields.WriteTo(output);
6104 }
Jan Tattermusch125e4ad2020-05-29 04:32:43 -04006105 #endif
Sydney Acksman8a57ec82019-03-21 17:36:36 -05006106 }
6107
Jan Tattermusch125e4ad2020-05-29 04:32:43 -04006108 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
6109 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +02006110 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Jan Tattermusch125e4ad2020-05-29 04:32:43 -04006111 void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
6112 if (HasC) {
6113 output.WriteRawTag(8);
6114 output.WriteInt32(C);
6115 }
6116 if (HasD) {
6117 output.WriteRawTag(16);
6118 output.WriteInt32(D);
6119 }
6120 if (_unknownFields != null) {
6121 _unknownFields.WriteTo(ref output);
6122 }
6123 }
6124 #endif
6125
Sydney Acksman8a57ec82019-03-21 17:36:36 -05006126 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +02006127 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -05006128 public int CalculateSize() {
6129 int size = 0;
6130 if (HasC) {
6131 size += 1 + pb::CodedOutputStream.ComputeInt32Size(C);
6132 }
6133 if (HasD) {
6134 size += 1 + pb::CodedOutputStream.ComputeInt32Size(D);
6135 }
6136 if (_unknownFields != null) {
6137 size += _unknownFields.CalculateSize();
6138 }
6139 return size;
6140 }
6141
6142 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +02006143 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -05006144 public void MergeFrom(ForeignMessage other) {
6145 if (other == null) {
6146 return;
6147 }
6148 if (other.HasC) {
6149 C = other.C;
6150 }
6151 if (other.HasD) {
6152 D = other.D;
6153 }
6154 _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
6155 }
6156
6157 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +02006158 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -05006159 public void MergeFrom(pb::CodedInputStream input) {
Jan Tattermusch7cb55972020-06-02 09:26:25 +02006160 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
Jan Tattermusch3196ef92020-04-02 15:36:16 +02006161 input.ReadRawMessage(this);
Jan Tattermusch7cb55972020-06-02 09:26:25 +02006162 #else
6163 uint tag;
6164 while ((tag = input.ReadTag()) != 0) {
6165 switch(tag) {
6166 default:
6167 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
6168 break;
6169 case 8: {
6170 C = input.ReadInt32();
6171 break;
6172 }
6173 case 16: {
6174 D = input.ReadInt32();
6175 break;
6176 }
6177 }
6178 }
6179 #endif
Jan Tattermusch3196ef92020-04-02 15:36:16 +02006180 }
6181
Jan Tattermusch7cb55972020-06-02 09:26:25 +02006182 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
Jan Tattermusch3196ef92020-04-02 15:36:16 +02006183 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +02006184 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Jan Tattermusch0df7ddc2020-04-14 12:41:03 +02006185 void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
Sydney Acksman8a57ec82019-03-21 17:36:36 -05006186 uint tag;
6187 while ((tag = input.ReadTag()) != 0) {
6188 switch(tag) {
6189 default:
Jan Tattermusch3196ef92020-04-02 15:36:16 +02006190 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
Sydney Acksman8a57ec82019-03-21 17:36:36 -05006191 break;
6192 case 8: {
6193 C = input.ReadInt32();
6194 break;
6195 }
6196 case 16: {
6197 D = input.ReadInt32();
6198 break;
6199 }
6200 }
6201 }
6202 }
Jan Tattermusch7cb55972020-06-02 09:26:25 +02006203 #endif
Sydney Acksman8a57ec82019-03-21 17:36:36 -05006204
6205 }
6206
Jan Tattermusch7cb55972020-06-02 09:26:25 +02006207 public sealed partial class TestReservedFields : pb::IMessage<TestReservedFields>
6208 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
6209 , pb::IBufferMessage
6210 #endif
6211 {
Sydney Acksman8a57ec82019-03-21 17:36:36 -05006212 private static readonly pb::MessageParser<TestReservedFields> _parser = new pb::MessageParser<TestReservedFields>(() => new TestReservedFields());
6213 private pb::UnknownFieldSet _unknownFields;
6214 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +02006215 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -05006216 public static pb::MessageParser<TestReservedFields> Parser { get { return _parser; } }
6217
6218 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +02006219 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -05006220 public static pbr::MessageDescriptor Descriptor {
6221 get { return global::Google.Protobuf.TestProtos.Proto2.UnittestReflection.Descriptor.MessageTypes[5]; }
6222 }
6223
6224 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +02006225 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -05006226 pbr::MessageDescriptor pb::IMessage.Descriptor {
6227 get { return Descriptor; }
6228 }
6229
6230 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +02006231 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -05006232 public TestReservedFields() {
6233 OnConstruction();
6234 }
6235
6236 partial void OnConstruction();
6237
6238 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +02006239 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -05006240 public TestReservedFields(TestReservedFields other) : this() {
6241 _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
6242 }
6243
6244 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +02006245 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -05006246 public TestReservedFields Clone() {
6247 return new TestReservedFields(this);
6248 }
6249
6250 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +02006251 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -05006252 public override bool Equals(object other) {
6253 return Equals(other as TestReservedFields);
6254 }
6255
6256 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +02006257 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -05006258 public bool Equals(TestReservedFields other) {
6259 if (ReferenceEquals(other, null)) {
6260 return false;
6261 }
6262 if (ReferenceEquals(other, this)) {
6263 return true;
6264 }
6265 return Equals(_unknownFields, other._unknownFields);
6266 }
6267
6268 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +02006269 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -05006270 public override int GetHashCode() {
6271 int hash = 1;
6272 if (_unknownFields != null) {
6273 hash ^= _unknownFields.GetHashCode();
6274 }
6275 return hash;
6276 }
6277
6278 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +02006279 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -05006280 public override string ToString() {
6281 return pb::JsonFormatter.ToDiagnosticString(this);
6282 }
6283
6284 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +02006285 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -05006286 public void WriteTo(pb::CodedOutputStream output) {
Jan Tattermusch125e4ad2020-05-29 04:32:43 -04006287 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
6288 output.WriteRawMessage(this);
6289 #else
Sydney Acksman8a57ec82019-03-21 17:36:36 -05006290 if (_unknownFields != null) {
6291 _unknownFields.WriteTo(output);
6292 }
Jan Tattermusch125e4ad2020-05-29 04:32:43 -04006293 #endif
Sydney Acksman8a57ec82019-03-21 17:36:36 -05006294 }
6295
Jan Tattermusch125e4ad2020-05-29 04:32:43 -04006296 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
6297 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +02006298 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Jan Tattermusch125e4ad2020-05-29 04:32:43 -04006299 void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
6300 if (_unknownFields != null) {
6301 _unknownFields.WriteTo(ref output);
6302 }
6303 }
6304 #endif
6305
Sydney Acksman8a57ec82019-03-21 17:36:36 -05006306 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +02006307 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -05006308 public int CalculateSize() {
6309 int size = 0;
6310 if (_unknownFields != null) {
6311 size += _unknownFields.CalculateSize();
6312 }
6313 return size;
6314 }
6315
6316 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +02006317 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -05006318 public void MergeFrom(TestReservedFields other) {
6319 if (other == null) {
6320 return;
6321 }
6322 _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
6323 }
6324
6325 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +02006326 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -05006327 public void MergeFrom(pb::CodedInputStream input) {
Jan Tattermusch7cb55972020-06-02 09:26:25 +02006328 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
Jan Tattermusch3196ef92020-04-02 15:36:16 +02006329 input.ReadRawMessage(this);
Jan Tattermusch7cb55972020-06-02 09:26:25 +02006330 #else
6331 uint tag;
6332 while ((tag = input.ReadTag()) != 0) {
6333 switch(tag) {
6334 default:
6335 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
6336 break;
6337 }
6338 }
6339 #endif
Jan Tattermusch3196ef92020-04-02 15:36:16 +02006340 }
6341
Jan Tattermusch7cb55972020-06-02 09:26:25 +02006342 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
Jan Tattermusch3196ef92020-04-02 15:36:16 +02006343 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +02006344 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Jan Tattermusch0df7ddc2020-04-14 12:41:03 +02006345 void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
Sydney Acksman8a57ec82019-03-21 17:36:36 -05006346 uint tag;
6347 while ((tag = input.ReadTag()) != 0) {
6348 switch(tag) {
6349 default:
Jan Tattermusch3196ef92020-04-02 15:36:16 +02006350 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
Sydney Acksman8a57ec82019-03-21 17:36:36 -05006351 break;
6352 }
6353 }
6354 }
Jan Tattermusch7cb55972020-06-02 09:26:25 +02006355 #endif
Sydney Acksman8a57ec82019-03-21 17:36:36 -05006356
6357 }
6358
Jan Tattermusch7cb55972020-06-02 09:26:25 +02006359 public sealed partial class TestAllExtensions : pb::IExtendableMessage<TestAllExtensions>
6360 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
6361 , pb::IBufferMessage
6362 #endif
6363 {
Sydney Acksman8a57ec82019-03-21 17:36:36 -05006364 private static readonly pb::MessageParser<TestAllExtensions> _parser = new pb::MessageParser<TestAllExtensions>(() => new TestAllExtensions());
6365 private pb::UnknownFieldSet _unknownFields;
6366 private pb::ExtensionSet<TestAllExtensions> _extensions;
Sydney Acksmanc04a0272019-11-07 15:30:12 -06006367 private pb::ExtensionSet<TestAllExtensions> _Extensions { get { return _extensions; } }
Sydney Acksman8a57ec82019-03-21 17:36:36 -05006368 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +02006369 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -05006370 public static pb::MessageParser<TestAllExtensions> Parser { get { return _parser; } }
6371
6372 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +02006373 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -05006374 public static pbr::MessageDescriptor Descriptor {
6375 get { return global::Google.Protobuf.TestProtos.Proto2.UnittestReflection.Descriptor.MessageTypes[6]; }
6376 }
6377
6378 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +02006379 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -05006380 pbr::MessageDescriptor pb::IMessage.Descriptor {
6381 get { return Descriptor; }
6382 }
6383
6384 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +02006385 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -05006386 public TestAllExtensions() {
6387 OnConstruction();
6388 }
6389
6390 partial void OnConstruction();
6391
6392 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +02006393 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -05006394 public TestAllExtensions(TestAllExtensions other) : this() {
6395 _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
6396 _extensions = pb::ExtensionSet.Clone(other._extensions);
6397 }
6398
6399 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +02006400 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -05006401 public TestAllExtensions Clone() {
6402 return new TestAllExtensions(this);
6403 }
6404
6405 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +02006406 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -05006407 public override bool Equals(object other) {
6408 return Equals(other as TestAllExtensions);
6409 }
6410
6411 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +02006412 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -05006413 public bool Equals(TestAllExtensions other) {
6414 if (ReferenceEquals(other, null)) {
6415 return false;
6416 }
6417 if (ReferenceEquals(other, this)) {
6418 return true;
6419 }
6420 if (!Equals(_extensions, other._extensions)) {
6421 return false;
6422 }
6423 return Equals(_unknownFields, other._unknownFields);
6424 }
6425
6426 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +02006427 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -05006428 public override int GetHashCode() {
6429 int hash = 1;
6430 if (_extensions != null) {
6431 hash ^= _extensions.GetHashCode();
6432 }
6433 if (_unknownFields != null) {
6434 hash ^= _unknownFields.GetHashCode();
6435 }
6436 return hash;
6437 }
6438
6439 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +02006440 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -05006441 public override string ToString() {
6442 return pb::JsonFormatter.ToDiagnosticString(this);
6443 }
6444
6445 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +02006446 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -05006447 public void WriteTo(pb::CodedOutputStream output) {
Jan Tattermusch125e4ad2020-05-29 04:32:43 -04006448 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
6449 output.WriteRawMessage(this);
6450 #else
Sydney Acksman8a57ec82019-03-21 17:36:36 -05006451 if (_extensions != null) {
6452 _extensions.WriteTo(output);
6453 }
6454 if (_unknownFields != null) {
6455 _unknownFields.WriteTo(output);
6456 }
Jan Tattermusch125e4ad2020-05-29 04:32:43 -04006457 #endif
Sydney Acksman8a57ec82019-03-21 17:36:36 -05006458 }
6459
Jan Tattermusch125e4ad2020-05-29 04:32:43 -04006460 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
6461 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +02006462 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Jan Tattermusch125e4ad2020-05-29 04:32:43 -04006463 void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
6464 if (_extensions != null) {
6465 _extensions.WriteTo(ref output);
6466 }
6467 if (_unknownFields != null) {
6468 _unknownFields.WriteTo(ref output);
6469 }
6470 }
6471 #endif
6472
Sydney Acksman8a57ec82019-03-21 17:36:36 -05006473 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +02006474 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -05006475 public int CalculateSize() {
6476 int size = 0;
6477 if (_extensions != null) {
6478 size += _extensions.CalculateSize();
6479 }
6480 if (_unknownFields != null) {
6481 size += _unknownFields.CalculateSize();
6482 }
6483 return size;
6484 }
6485
6486 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +02006487 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -05006488 public void MergeFrom(TestAllExtensions other) {
6489 if (other == null) {
6490 return;
6491 }
6492 pb::ExtensionSet.MergeFrom(ref _extensions, other._extensions);
6493 _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
6494 }
6495
6496 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +02006497 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -05006498 public void MergeFrom(pb::CodedInputStream input) {
Jan Tattermusch7cb55972020-06-02 09:26:25 +02006499 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
Jan Tattermusch3196ef92020-04-02 15:36:16 +02006500 input.ReadRawMessage(this);
Jan Tattermusch7cb55972020-06-02 09:26:25 +02006501 #else
6502 uint tag;
6503 while ((tag = input.ReadTag()) != 0) {
6504 switch(tag) {
6505 default:
6506 if (!pb::ExtensionSet.TryMergeFieldFrom(ref _extensions, input)) {
6507 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
6508 }
6509 break;
6510 }
6511 }
6512 #endif
Jan Tattermusch3196ef92020-04-02 15:36:16 +02006513 }
6514
Jan Tattermusch7cb55972020-06-02 09:26:25 +02006515 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
Jan Tattermusch3196ef92020-04-02 15:36:16 +02006516 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +02006517 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Jan Tattermusch0df7ddc2020-04-14 12:41:03 +02006518 void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
Sydney Acksman8a57ec82019-03-21 17:36:36 -05006519 uint tag;
6520 while ((tag = input.ReadTag()) != 0) {
6521 switch(tag) {
6522 default:
Jan Tattermusch3196ef92020-04-02 15:36:16 +02006523 if (!pb::ExtensionSet.TryMergeFieldFrom(ref _extensions, ref input)) {
6524 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
Sydney Acksman8a57ec82019-03-21 17:36:36 -05006525 }
6526 break;
6527 }
6528 }
6529 }
Jan Tattermusch7cb55972020-06-02 09:26:25 +02006530 #endif
Sydney Acksman8a57ec82019-03-21 17:36:36 -05006531
Sydney Acksman8a57ec82019-03-21 17:36:36 -05006532 public TValue GetExtension<TValue>(pb::Extension<TestAllExtensions, TValue> extension) {
6533 return pb::ExtensionSet.Get(ref _extensions, extension);
6534 }
6535 public pbc::RepeatedField<TValue> GetExtension<TValue>(pb::RepeatedExtension<TestAllExtensions, TValue> extension) {
6536 return pb::ExtensionSet.Get(ref _extensions, extension);
6537 }
Sydney Acksman0436b8d2019-08-01 03:06:03 -05006538 public pbc::RepeatedField<TValue> GetOrInitializeExtension<TValue>(pb::RepeatedExtension<TestAllExtensions, TValue> extension) {
6539 return pb::ExtensionSet.GetOrInitialize(ref _extensions, extension);
Sydney Acksman011427c2019-05-03 21:34:48 -05006540 }
Sydney Acksman8a57ec82019-03-21 17:36:36 -05006541 public void SetExtension<TValue>(pb::Extension<TestAllExtensions, TValue> extension, TValue value) {
6542 pb::ExtensionSet.Set(ref _extensions, extension, value);
6543 }
6544 public bool HasExtension<TValue>(pb::Extension<TestAllExtensions, TValue> extension) {
6545 return pb::ExtensionSet.Has(ref _extensions, extension);
6546 }
6547 public void ClearExtension<TValue>(pb::Extension<TestAllExtensions, TValue> extension) {
6548 pb::ExtensionSet.Clear(ref _extensions, extension);
6549 }
Sydney Acksman011427c2019-05-03 21:34:48 -05006550 public void ClearExtension<TValue>(pb::RepeatedExtension<TestAllExtensions, TValue> extension) {
6551 pb::ExtensionSet.Clear(ref _extensions, extension);
6552 }
Sydney Acksman8a57ec82019-03-21 17:36:36 -05006553
6554 }
6555
Jan Tattermusch7cb55972020-06-02 09:26:25 +02006556 public sealed partial class OptionalGroup_extension : pb::IMessage<OptionalGroup_extension>
6557 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
6558 , pb::IBufferMessage
6559 #endif
6560 {
Sydney Acksman8a57ec82019-03-21 17:36:36 -05006561 private static readonly pb::MessageParser<OptionalGroup_extension> _parser = new pb::MessageParser<OptionalGroup_extension>(() => new OptionalGroup_extension());
6562 private pb::UnknownFieldSet _unknownFields;
6563 private int _hasBits0;
6564 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +02006565 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -05006566 public static pb::MessageParser<OptionalGroup_extension> Parser { get { return _parser; } }
6567
6568 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +02006569 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -05006570 public static pbr::MessageDescriptor Descriptor {
6571 get { return global::Google.Protobuf.TestProtos.Proto2.UnittestReflection.Descriptor.MessageTypes[7]; }
6572 }
6573
6574 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +02006575 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -05006576 pbr::MessageDescriptor pb::IMessage.Descriptor {
6577 get { return Descriptor; }
6578 }
6579
6580 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +02006581 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -05006582 public OptionalGroup_extension() {
6583 OnConstruction();
6584 }
6585
6586 partial void OnConstruction();
6587
6588 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +02006589 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -05006590 public OptionalGroup_extension(OptionalGroup_extension other) : this() {
6591 _hasBits0 = other._hasBits0;
6592 a_ = other.a_;
6593 _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
6594 }
6595
6596 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +02006597 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -05006598 public OptionalGroup_extension Clone() {
6599 return new OptionalGroup_extension(this);
6600 }
6601
6602 /// <summary>Field number for the "a" field.</summary>
6603 public const int AFieldNumber = 17;
6604 private readonly static int ADefaultValue = 0;
6605
6606 private int a_;
6607 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +02006608 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -05006609 public int A {
6610 get { if ((_hasBits0 & 1) != 0) { return a_; } else { return ADefaultValue; } }
6611 set {
6612 _hasBits0 |= 1;
6613 a_ = value;
6614 }
6615 }
6616 /// <summary>Gets whether the "a" field is set</summary>
6617 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +02006618 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -05006619 public bool HasA {
6620 get { return (_hasBits0 & 1) != 0; }
6621 }
6622 /// <summary>Clears the value of the "a" field</summary>
6623 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +02006624 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -05006625 public void ClearA() {
6626 _hasBits0 &= ~1;
6627 }
6628
6629 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +02006630 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -05006631 public override bool Equals(object other) {
6632 return Equals(other as OptionalGroup_extension);
6633 }
6634
6635 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +02006636 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -05006637 public bool Equals(OptionalGroup_extension other) {
6638 if (ReferenceEquals(other, null)) {
6639 return false;
6640 }
6641 if (ReferenceEquals(other, this)) {
6642 return true;
6643 }
6644 if (A != other.A) return false;
6645 return Equals(_unknownFields, other._unknownFields);
6646 }
6647
6648 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +02006649 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -05006650 public override int GetHashCode() {
6651 int hash = 1;
6652 if (HasA) hash ^= A.GetHashCode();
6653 if (_unknownFields != null) {
6654 hash ^= _unknownFields.GetHashCode();
6655 }
6656 return hash;
6657 }
6658
6659 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +02006660 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -05006661 public override string ToString() {
6662 return pb::JsonFormatter.ToDiagnosticString(this);
6663 }
6664
6665 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +02006666 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -05006667 public void WriteTo(pb::CodedOutputStream output) {
Jan Tattermusch125e4ad2020-05-29 04:32:43 -04006668 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
6669 output.WriteRawMessage(this);
6670 #else
Sydney Acksman8a57ec82019-03-21 17:36:36 -05006671 if (HasA) {
6672 output.WriteRawTag(136, 1);
6673 output.WriteInt32(A);
6674 }
6675 if (_unknownFields != null) {
6676 _unknownFields.WriteTo(output);
6677 }
Jan Tattermusch125e4ad2020-05-29 04:32:43 -04006678 #endif
Sydney Acksman8a57ec82019-03-21 17:36:36 -05006679 }
6680
Jan Tattermusch125e4ad2020-05-29 04:32:43 -04006681 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
6682 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +02006683 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Jan Tattermusch125e4ad2020-05-29 04:32:43 -04006684 void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
6685 if (HasA) {
6686 output.WriteRawTag(136, 1);
6687 output.WriteInt32(A);
6688 }
6689 if (_unknownFields != null) {
6690 _unknownFields.WriteTo(ref output);
6691 }
6692 }
6693 #endif
6694
Sydney Acksman8a57ec82019-03-21 17:36:36 -05006695 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +02006696 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -05006697 public int CalculateSize() {
6698 int size = 0;
6699 if (HasA) {
6700 size += 2 + pb::CodedOutputStream.ComputeInt32Size(A);
6701 }
6702 if (_unknownFields != null) {
6703 size += _unknownFields.CalculateSize();
6704 }
6705 return size;
6706 }
6707
6708 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +02006709 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -05006710 public void MergeFrom(OptionalGroup_extension other) {
6711 if (other == null) {
6712 return;
6713 }
6714 if (other.HasA) {
6715 A = other.A;
6716 }
6717 _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
6718 }
6719
6720 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +02006721 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -05006722 public void MergeFrom(pb::CodedInputStream input) {
Jan Tattermusch7cb55972020-06-02 09:26:25 +02006723 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
Jan Tattermusch3196ef92020-04-02 15:36:16 +02006724 input.ReadRawMessage(this);
Jan Tattermusch7cb55972020-06-02 09:26:25 +02006725 #else
6726 uint tag;
6727 while ((tag = input.ReadTag()) != 0) {
6728 switch(tag) {
6729 case 132:
6730 return;
6731 default:
6732 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
6733 break;
6734 case 136: {
6735 A = input.ReadInt32();
6736 break;
6737 }
6738 }
6739 }
6740 #endif
Jan Tattermusch3196ef92020-04-02 15:36:16 +02006741 }
6742
Jan Tattermusch7cb55972020-06-02 09:26:25 +02006743 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
Jan Tattermusch3196ef92020-04-02 15:36:16 +02006744 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +02006745 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Jan Tattermusch0df7ddc2020-04-14 12:41:03 +02006746 void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
Sydney Acksman8a57ec82019-03-21 17:36:36 -05006747 uint tag;
6748 while ((tag = input.ReadTag()) != 0) {
6749 switch(tag) {
Sydney Acksmancd655352019-05-04 11:25:50 -05006750 case 132:
6751 return;
Sydney Acksman8a57ec82019-03-21 17:36:36 -05006752 default:
Jan Tattermusch3196ef92020-04-02 15:36:16 +02006753 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
Sydney Acksman8a57ec82019-03-21 17:36:36 -05006754 break;
6755 case 136: {
6756 A = input.ReadInt32();
6757 break;
6758 }
6759 }
6760 }
6761 }
Jan Tattermusch7cb55972020-06-02 09:26:25 +02006762 #endif
Sydney Acksman8a57ec82019-03-21 17:36:36 -05006763
6764 }
6765
Jan Tattermusch7cb55972020-06-02 09:26:25 +02006766 public sealed partial class RepeatedGroup_extension : pb::IMessage<RepeatedGroup_extension>
6767 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
6768 , pb::IBufferMessage
6769 #endif
6770 {
Sydney Acksman8a57ec82019-03-21 17:36:36 -05006771 private static readonly pb::MessageParser<RepeatedGroup_extension> _parser = new pb::MessageParser<RepeatedGroup_extension>(() => new RepeatedGroup_extension());
6772 private pb::UnknownFieldSet _unknownFields;
6773 private int _hasBits0;
6774 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +02006775 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -05006776 public static pb::MessageParser<RepeatedGroup_extension> Parser { get { return _parser; } }
6777
6778 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +02006779 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -05006780 public static pbr::MessageDescriptor Descriptor {
6781 get { return global::Google.Protobuf.TestProtos.Proto2.UnittestReflection.Descriptor.MessageTypes[8]; }
6782 }
6783
6784 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +02006785 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -05006786 pbr::MessageDescriptor pb::IMessage.Descriptor {
6787 get { return Descriptor; }
6788 }
6789
6790 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +02006791 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -05006792 public RepeatedGroup_extension() {
6793 OnConstruction();
6794 }
6795
6796 partial void OnConstruction();
6797
6798 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +02006799 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -05006800 public RepeatedGroup_extension(RepeatedGroup_extension other) : this() {
6801 _hasBits0 = other._hasBits0;
6802 a_ = other.a_;
6803 _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
6804 }
6805
6806 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +02006807 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -05006808 public RepeatedGroup_extension Clone() {
6809 return new RepeatedGroup_extension(this);
6810 }
6811
6812 /// <summary>Field number for the "a" field.</summary>
6813 public const int AFieldNumber = 47;
6814 private readonly static int ADefaultValue = 0;
6815
6816 private int a_;
6817 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +02006818 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -05006819 public int A {
6820 get { if ((_hasBits0 & 1) != 0) { return a_; } else { return ADefaultValue; } }
6821 set {
6822 _hasBits0 |= 1;
6823 a_ = value;
6824 }
6825 }
6826 /// <summary>Gets whether the "a" field is set</summary>
6827 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +02006828 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -05006829 public bool HasA {
6830 get { return (_hasBits0 & 1) != 0; }
6831 }
6832 /// <summary>Clears the value of the "a" field</summary>
6833 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +02006834 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -05006835 public void ClearA() {
6836 _hasBits0 &= ~1;
6837 }
6838
6839 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +02006840 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -05006841 public override bool Equals(object other) {
6842 return Equals(other as RepeatedGroup_extension);
6843 }
6844
6845 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +02006846 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -05006847 public bool Equals(RepeatedGroup_extension other) {
6848 if (ReferenceEquals(other, null)) {
6849 return false;
6850 }
6851 if (ReferenceEquals(other, this)) {
6852 return true;
6853 }
6854 if (A != other.A) return false;
6855 return Equals(_unknownFields, other._unknownFields);
6856 }
6857
6858 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +02006859 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -05006860 public override int GetHashCode() {
6861 int hash = 1;
6862 if (HasA) hash ^= A.GetHashCode();
6863 if (_unknownFields != null) {
6864 hash ^= _unknownFields.GetHashCode();
6865 }
6866 return hash;
6867 }
6868
6869 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +02006870 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -05006871 public override string ToString() {
6872 return pb::JsonFormatter.ToDiagnosticString(this);
6873 }
6874
6875 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +02006876 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -05006877 public void WriteTo(pb::CodedOutputStream output) {
Jan Tattermusch125e4ad2020-05-29 04:32:43 -04006878 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
6879 output.WriteRawMessage(this);
6880 #else
Sydney Acksman8a57ec82019-03-21 17:36:36 -05006881 if (HasA) {
6882 output.WriteRawTag(248, 2);
6883 output.WriteInt32(A);
6884 }
6885 if (_unknownFields != null) {
6886 _unknownFields.WriteTo(output);
6887 }
Jan Tattermusch125e4ad2020-05-29 04:32:43 -04006888 #endif
Sydney Acksman8a57ec82019-03-21 17:36:36 -05006889 }
6890
Jan Tattermusch125e4ad2020-05-29 04:32:43 -04006891 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
6892 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +02006893 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Jan Tattermusch125e4ad2020-05-29 04:32:43 -04006894 void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
6895 if (HasA) {
6896 output.WriteRawTag(248, 2);
6897 output.WriteInt32(A);
6898 }
6899 if (_unknownFields != null) {
6900 _unknownFields.WriteTo(ref output);
6901 }
6902 }
6903 #endif
6904
Sydney Acksman8a57ec82019-03-21 17:36:36 -05006905 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +02006906 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -05006907 public int CalculateSize() {
6908 int size = 0;
6909 if (HasA) {
6910 size += 2 + pb::CodedOutputStream.ComputeInt32Size(A);
6911 }
6912 if (_unknownFields != null) {
6913 size += _unknownFields.CalculateSize();
6914 }
6915 return size;
6916 }
6917
6918 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +02006919 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -05006920 public void MergeFrom(RepeatedGroup_extension other) {
6921 if (other == null) {
6922 return;
6923 }
6924 if (other.HasA) {
6925 A = other.A;
6926 }
6927 _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
6928 }
6929
6930 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +02006931 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -05006932 public void MergeFrom(pb::CodedInputStream input) {
Jan Tattermusch7cb55972020-06-02 09:26:25 +02006933 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
Jan Tattermusch3196ef92020-04-02 15:36:16 +02006934 input.ReadRawMessage(this);
Jan Tattermusch7cb55972020-06-02 09:26:25 +02006935 #else
6936 uint tag;
6937 while ((tag = input.ReadTag()) != 0) {
6938 switch(tag) {
6939 case 372:
6940 return;
6941 default:
6942 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
6943 break;
6944 case 376: {
6945 A = input.ReadInt32();
6946 break;
6947 }
6948 }
6949 }
6950 #endif
Jan Tattermusch3196ef92020-04-02 15:36:16 +02006951 }
6952
Jan Tattermusch7cb55972020-06-02 09:26:25 +02006953 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
Jan Tattermusch3196ef92020-04-02 15:36:16 +02006954 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +02006955 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Jan Tattermusch0df7ddc2020-04-14 12:41:03 +02006956 void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
Sydney Acksman8a57ec82019-03-21 17:36:36 -05006957 uint tag;
6958 while ((tag = input.ReadTag()) != 0) {
6959 switch(tag) {
Sydney Acksmancd655352019-05-04 11:25:50 -05006960 case 372:
6961 return;
Sydney Acksman8a57ec82019-03-21 17:36:36 -05006962 default:
Jan Tattermusch3196ef92020-04-02 15:36:16 +02006963 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
Sydney Acksman8a57ec82019-03-21 17:36:36 -05006964 break;
6965 case 376: {
6966 A = input.ReadInt32();
6967 break;
6968 }
6969 }
6970 }
6971 }
Jan Tattermusch7cb55972020-06-02 09:26:25 +02006972 #endif
Sydney Acksman8a57ec82019-03-21 17:36:36 -05006973
6974 }
6975
Jan Tattermusch7cb55972020-06-02 09:26:25 +02006976 public sealed partial class TestGroup : pb::IMessage<TestGroup>
6977 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
6978 , pb::IBufferMessage
6979 #endif
6980 {
Sydney Acksman8a57ec82019-03-21 17:36:36 -05006981 private static readonly pb::MessageParser<TestGroup> _parser = new pb::MessageParser<TestGroup>(() => new TestGroup());
6982 private pb::UnknownFieldSet _unknownFields;
6983 private int _hasBits0;
6984 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +02006985 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -05006986 public static pb::MessageParser<TestGroup> Parser { get { return _parser; } }
6987
6988 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +02006989 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -05006990 public static pbr::MessageDescriptor Descriptor {
6991 get { return global::Google.Protobuf.TestProtos.Proto2.UnittestReflection.Descriptor.MessageTypes[9]; }
6992 }
6993
6994 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +02006995 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -05006996 pbr::MessageDescriptor pb::IMessage.Descriptor {
6997 get { return Descriptor; }
6998 }
6999
7000 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +02007001 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -05007002 public TestGroup() {
7003 OnConstruction();
7004 }
7005
7006 partial void OnConstruction();
7007
7008 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +02007009 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -05007010 public TestGroup(TestGroup other) : this() {
7011 _hasBits0 = other._hasBits0;
7012 optionalGroup_ = other.HasOptionalGroup ? other.optionalGroup_.Clone() : null;
7013 optionalForeignEnum_ = other.optionalForeignEnum_;
7014 _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
7015 }
7016
7017 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +02007018 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -05007019 public TestGroup Clone() {
7020 return new TestGroup(this);
7021 }
7022
7023 /// <summary>Field number for the "optionalgroup" field.</summary>
7024 public const int OptionalGroupFieldNumber = 16;
7025 private global::Google.Protobuf.TestProtos.Proto2.TestGroup.Types.OptionalGroup optionalGroup_;
7026 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +02007027 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -05007028 public global::Google.Protobuf.TestProtos.Proto2.TestGroup.Types.OptionalGroup OptionalGroup {
7029 get { return optionalGroup_; }
7030 set {
7031 optionalGroup_ = value;
7032 }
7033 }
7034 /// <summary>Gets whether the optionalgroup field is set</summary>
7035 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +02007036 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -05007037 public bool HasOptionalGroup {
7038 get { return optionalGroup_ != null; }
7039 }
7040 /// <summary>Clears the value of the optionalgroup field</summary>
7041 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +02007042 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -05007043 public void ClearOptionalGroup() {
7044 optionalGroup_ = null;
7045 }
7046
7047 /// <summary>Field number for the "optional_foreign_enum" field.</summary>
7048 public const int OptionalForeignEnumFieldNumber = 22;
7049 private readonly static global::Google.Protobuf.TestProtos.Proto2.ForeignEnum OptionalForeignEnumDefaultValue = global::Google.Protobuf.TestProtos.Proto2.ForeignEnum.ForeignFoo;
7050
7051 private global::Google.Protobuf.TestProtos.Proto2.ForeignEnum optionalForeignEnum_;
7052 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +02007053 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -05007054 public global::Google.Protobuf.TestProtos.Proto2.ForeignEnum OptionalForeignEnum {
7055 get { if ((_hasBits0 & 1) != 0) { return optionalForeignEnum_; } else { return OptionalForeignEnumDefaultValue; } }
7056 set {
7057 _hasBits0 |= 1;
7058 optionalForeignEnum_ = value;
7059 }
7060 }
7061 /// <summary>Gets whether the "optional_foreign_enum" field is set</summary>
7062 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +02007063 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -05007064 public bool HasOptionalForeignEnum {
7065 get { return (_hasBits0 & 1) != 0; }
7066 }
7067 /// <summary>Clears the value of the "optional_foreign_enum" field</summary>
7068 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +02007069 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -05007070 public void ClearOptionalForeignEnum() {
7071 _hasBits0 &= ~1;
7072 }
7073
7074 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +02007075 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -05007076 public override bool Equals(object other) {
7077 return Equals(other as TestGroup);
7078 }
7079
7080 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +02007081 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -05007082 public bool Equals(TestGroup other) {
7083 if (ReferenceEquals(other, null)) {
7084 return false;
7085 }
7086 if (ReferenceEquals(other, this)) {
7087 return true;
7088 }
7089 if (!object.Equals(OptionalGroup, other.OptionalGroup)) return false;
7090 if (OptionalForeignEnum != other.OptionalForeignEnum) return false;
7091 return Equals(_unknownFields, other._unknownFields);
7092 }
7093
7094 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +02007095 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -05007096 public override int GetHashCode() {
7097 int hash = 1;
7098 if (HasOptionalGroup) hash ^= OptionalGroup.GetHashCode();
7099 if (HasOptionalForeignEnum) hash ^= OptionalForeignEnum.GetHashCode();
7100 if (_unknownFields != null) {
7101 hash ^= _unknownFields.GetHashCode();
7102 }
7103 return hash;
7104 }
7105
7106 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +02007107 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -05007108 public override string ToString() {
7109 return pb::JsonFormatter.ToDiagnosticString(this);
7110 }
7111
7112 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +02007113 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -05007114 public void WriteTo(pb::CodedOutputStream output) {
Jan Tattermusch125e4ad2020-05-29 04:32:43 -04007115 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
7116 output.WriteRawMessage(this);
7117 #else
Sydney Acksman8a57ec82019-03-21 17:36:36 -05007118 if (HasOptionalGroup) {
7119 output.WriteRawTag(131, 1);
7120 output.WriteGroup(OptionalGroup);
7121 output.WriteRawTag(132, 1);
7122 }
7123 if (HasOptionalForeignEnum) {
7124 output.WriteRawTag(176, 1);
7125 output.WriteEnum((int) OptionalForeignEnum);
7126 }
7127 if (_unknownFields != null) {
7128 _unknownFields.WriteTo(output);
7129 }
Jan Tattermusch125e4ad2020-05-29 04:32:43 -04007130 #endif
Sydney Acksman8a57ec82019-03-21 17:36:36 -05007131 }
7132
Jan Tattermusch125e4ad2020-05-29 04:32:43 -04007133 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
7134 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +02007135 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Jan Tattermusch125e4ad2020-05-29 04:32:43 -04007136 void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
7137 if (HasOptionalGroup) {
7138 output.WriteRawTag(131, 1);
7139 output.WriteGroup(OptionalGroup);
7140 output.WriteRawTag(132, 1);
7141 }
7142 if (HasOptionalForeignEnum) {
7143 output.WriteRawTag(176, 1);
7144 output.WriteEnum((int) OptionalForeignEnum);
7145 }
7146 if (_unknownFields != null) {
7147 _unknownFields.WriteTo(ref output);
7148 }
7149 }
7150 #endif
7151
Sydney Acksman8a57ec82019-03-21 17:36:36 -05007152 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +02007153 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -05007154 public int CalculateSize() {
7155 int size = 0;
7156 if (HasOptionalGroup) {
7157 size += 4 + pb::CodedOutputStream.ComputeGroupSize(OptionalGroup);
7158 }
7159 if (HasOptionalForeignEnum) {
7160 size += 2 + pb::CodedOutputStream.ComputeEnumSize((int) OptionalForeignEnum);
7161 }
7162 if (_unknownFields != null) {
7163 size += _unknownFields.CalculateSize();
7164 }
7165 return size;
7166 }
7167
7168 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +02007169 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -05007170 public void MergeFrom(TestGroup other) {
7171 if (other == null) {
7172 return;
7173 }
7174 if (other.HasOptionalGroup) {
7175 if (!HasOptionalGroup) {
7176 OptionalGroup = new global::Google.Protobuf.TestProtos.Proto2.TestGroup.Types.OptionalGroup();
7177 }
7178 OptionalGroup.MergeFrom(other.OptionalGroup);
7179 }
7180 if (other.HasOptionalForeignEnum) {
7181 OptionalForeignEnum = other.OptionalForeignEnum;
7182 }
7183 _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
7184 }
7185
7186 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +02007187 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -05007188 public void MergeFrom(pb::CodedInputStream input) {
Jan Tattermusch7cb55972020-06-02 09:26:25 +02007189 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
Jan Tattermusch3196ef92020-04-02 15:36:16 +02007190 input.ReadRawMessage(this);
Jan Tattermusch7cb55972020-06-02 09:26:25 +02007191 #else
7192 uint tag;
7193 while ((tag = input.ReadTag()) != 0) {
7194 switch(tag) {
7195 default:
7196 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
7197 break;
7198 case 131: {
7199 if (!HasOptionalGroup) {
7200 OptionalGroup = new global::Google.Protobuf.TestProtos.Proto2.TestGroup.Types.OptionalGroup();
7201 }
7202 input.ReadGroup(OptionalGroup);
7203 break;
7204 }
7205 case 176: {
7206 OptionalForeignEnum = (global::Google.Protobuf.TestProtos.Proto2.ForeignEnum) input.ReadEnum();
7207 break;
7208 }
7209 }
7210 }
7211 #endif
Jan Tattermusch3196ef92020-04-02 15:36:16 +02007212 }
7213
Jan Tattermusch7cb55972020-06-02 09:26:25 +02007214 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
Jan Tattermusch3196ef92020-04-02 15:36:16 +02007215 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +02007216 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Jan Tattermusch0df7ddc2020-04-14 12:41:03 +02007217 void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
Sydney Acksman8a57ec82019-03-21 17:36:36 -05007218 uint tag;
7219 while ((tag = input.ReadTag()) != 0) {
7220 switch(tag) {
7221 default:
Jan Tattermusch3196ef92020-04-02 15:36:16 +02007222 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
Sydney Acksman8a57ec82019-03-21 17:36:36 -05007223 break;
7224 case 131: {
7225 if (!HasOptionalGroup) {
7226 OptionalGroup = new global::Google.Protobuf.TestProtos.Proto2.TestGroup.Types.OptionalGroup();
7227 }
7228 input.ReadGroup(OptionalGroup);
7229 break;
7230 }
7231 case 176: {
7232 OptionalForeignEnum = (global::Google.Protobuf.TestProtos.Proto2.ForeignEnum) input.ReadEnum();
7233 break;
7234 }
7235 }
7236 }
7237 }
Jan Tattermusch7cb55972020-06-02 09:26:25 +02007238 #endif
Sydney Acksman8a57ec82019-03-21 17:36:36 -05007239
7240 #region Nested types
7241 /// <summary>Container for nested types declared in the TestGroup message type.</summary>
7242 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +02007243 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -05007244 public static partial class Types {
Jan Tattermusch7cb55972020-06-02 09:26:25 +02007245 public sealed partial class OptionalGroup : pb::IMessage<OptionalGroup>
7246 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
7247 , pb::IBufferMessage
7248 #endif
7249 {
Sydney Acksman8a57ec82019-03-21 17:36:36 -05007250 private static readonly pb::MessageParser<OptionalGroup> _parser = new pb::MessageParser<OptionalGroup>(() => new OptionalGroup());
7251 private pb::UnknownFieldSet _unknownFields;
7252 private int _hasBits0;
7253 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +02007254 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -05007255 public static pb::MessageParser<OptionalGroup> Parser { get { return _parser; } }
7256
7257 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +02007258 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -05007259 public static pbr::MessageDescriptor Descriptor {
7260 get { return global::Google.Protobuf.TestProtos.Proto2.TestGroup.Descriptor.NestedTypes[0]; }
7261 }
7262
7263 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +02007264 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -05007265 pbr::MessageDescriptor pb::IMessage.Descriptor {
7266 get { return Descriptor; }
7267 }
7268
7269 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +02007270 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -05007271 public OptionalGroup() {
7272 OnConstruction();
7273 }
7274
7275 partial void OnConstruction();
7276
7277 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +02007278 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -05007279 public OptionalGroup(OptionalGroup other) : this() {
7280 _hasBits0 = other._hasBits0;
7281 a_ = other.a_;
7282 _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
7283 }
7284
7285 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +02007286 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -05007287 public OptionalGroup Clone() {
7288 return new OptionalGroup(this);
7289 }
7290
7291 /// <summary>Field number for the "a" field.</summary>
7292 public const int AFieldNumber = 17;
7293 private readonly static int ADefaultValue = 0;
7294
7295 private int a_;
7296 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +02007297 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -05007298 public int A {
7299 get { if ((_hasBits0 & 1) != 0) { return a_; } else { return ADefaultValue; } }
7300 set {
7301 _hasBits0 |= 1;
7302 a_ = value;
7303 }
7304 }
7305 /// <summary>Gets whether the "a" field is set</summary>
7306 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +02007307 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -05007308 public bool HasA {
7309 get { return (_hasBits0 & 1) != 0; }
7310 }
7311 /// <summary>Clears the value of the "a" field</summary>
7312 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +02007313 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -05007314 public void ClearA() {
7315 _hasBits0 &= ~1;
7316 }
7317
7318 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +02007319 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -05007320 public override bool Equals(object other) {
7321 return Equals(other as OptionalGroup);
7322 }
7323
7324 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +02007325 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -05007326 public bool Equals(OptionalGroup other) {
7327 if (ReferenceEquals(other, null)) {
7328 return false;
7329 }
7330 if (ReferenceEquals(other, this)) {
7331 return true;
7332 }
7333 if (A != other.A) return false;
7334 return Equals(_unknownFields, other._unknownFields);
7335 }
7336
7337 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +02007338 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -05007339 public override int GetHashCode() {
7340 int hash = 1;
7341 if (HasA) hash ^= A.GetHashCode();
7342 if (_unknownFields != null) {
7343 hash ^= _unknownFields.GetHashCode();
7344 }
7345 return hash;
7346 }
7347
7348 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +02007349 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -05007350 public override string ToString() {
7351 return pb::JsonFormatter.ToDiagnosticString(this);
7352 }
7353
7354 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +02007355 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -05007356 public void WriteTo(pb::CodedOutputStream output) {
Jan Tattermusch125e4ad2020-05-29 04:32:43 -04007357 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
7358 output.WriteRawMessage(this);
7359 #else
Sydney Acksman8a57ec82019-03-21 17:36:36 -05007360 if (HasA) {
7361 output.WriteRawTag(136, 1);
7362 output.WriteInt32(A);
7363 }
7364 if (_unknownFields != null) {
7365 _unknownFields.WriteTo(output);
7366 }
Jan Tattermusch125e4ad2020-05-29 04:32:43 -04007367 #endif
Sydney Acksman8a57ec82019-03-21 17:36:36 -05007368 }
7369
Jan Tattermusch125e4ad2020-05-29 04:32:43 -04007370 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
7371 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +02007372 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Jan Tattermusch125e4ad2020-05-29 04:32:43 -04007373 void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
7374 if (HasA) {
7375 output.WriteRawTag(136, 1);
7376 output.WriteInt32(A);
7377 }
7378 if (_unknownFields != null) {
7379 _unknownFields.WriteTo(ref output);
7380 }
7381 }
7382 #endif
7383
Sydney Acksman8a57ec82019-03-21 17:36:36 -05007384 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +02007385 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -05007386 public int CalculateSize() {
7387 int size = 0;
7388 if (HasA) {
7389 size += 2 + pb::CodedOutputStream.ComputeInt32Size(A);
7390 }
7391 if (_unknownFields != null) {
7392 size += _unknownFields.CalculateSize();
7393 }
7394 return size;
7395 }
7396
7397 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +02007398 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -05007399 public void MergeFrom(OptionalGroup other) {
7400 if (other == null) {
7401 return;
7402 }
7403 if (other.HasA) {
7404 A = other.A;
7405 }
7406 _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
7407 }
7408
7409 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +02007410 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -05007411 public void MergeFrom(pb::CodedInputStream input) {
Jan Tattermusch7cb55972020-06-02 09:26:25 +02007412 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
Jan Tattermusch3196ef92020-04-02 15:36:16 +02007413 input.ReadRawMessage(this);
Jan Tattermusch7cb55972020-06-02 09:26:25 +02007414 #else
7415 uint tag;
7416 while ((tag = input.ReadTag()) != 0) {
7417 switch(tag) {
7418 case 132:
7419 return;
7420 default:
7421 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
7422 break;
7423 case 136: {
7424 A = input.ReadInt32();
7425 break;
7426 }
7427 }
7428 }
7429 #endif
Jan Tattermusch3196ef92020-04-02 15:36:16 +02007430 }
7431
Jan Tattermusch7cb55972020-06-02 09:26:25 +02007432 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
Jan Tattermusch3196ef92020-04-02 15:36:16 +02007433 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +02007434 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Jan Tattermusch0df7ddc2020-04-14 12:41:03 +02007435 void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
Sydney Acksman8a57ec82019-03-21 17:36:36 -05007436 uint tag;
7437 while ((tag = input.ReadTag()) != 0) {
7438 switch(tag) {
7439 case 132:
7440 return;
7441 default:
Jan Tattermusch3196ef92020-04-02 15:36:16 +02007442 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
Sydney Acksman8a57ec82019-03-21 17:36:36 -05007443 break;
7444 case 136: {
7445 A = input.ReadInt32();
7446 break;
7447 }
7448 }
7449 }
7450 }
Jan Tattermusch7cb55972020-06-02 09:26:25 +02007451 #endif
Sydney Acksman8a57ec82019-03-21 17:36:36 -05007452
7453 }
7454
7455 }
7456 #endregion
7457
7458 }
7459
Jan Tattermusch7cb55972020-06-02 09:26:25 +02007460 public sealed partial class TestGroupExtension : pb::IExtendableMessage<TestGroupExtension>
7461 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
7462 , pb::IBufferMessage
7463 #endif
7464 {
Sydney Acksman8a57ec82019-03-21 17:36:36 -05007465 private static readonly pb::MessageParser<TestGroupExtension> _parser = new pb::MessageParser<TestGroupExtension>(() => new TestGroupExtension());
7466 private pb::UnknownFieldSet _unknownFields;
7467 private pb::ExtensionSet<TestGroupExtension> _extensions;
Sydney Acksmanc04a0272019-11-07 15:30:12 -06007468 private pb::ExtensionSet<TestGroupExtension> _Extensions { get { return _extensions; } }
Sydney Acksman8a57ec82019-03-21 17:36:36 -05007469 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +02007470 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -05007471 public static pb::MessageParser<TestGroupExtension> Parser { get { return _parser; } }
7472
7473 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +02007474 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -05007475 public static pbr::MessageDescriptor Descriptor {
7476 get { return global::Google.Protobuf.TestProtos.Proto2.UnittestReflection.Descriptor.MessageTypes[10]; }
7477 }
7478
7479 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +02007480 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -05007481 pbr::MessageDescriptor pb::IMessage.Descriptor {
7482 get { return Descriptor; }
7483 }
7484
7485 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +02007486 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -05007487 public TestGroupExtension() {
7488 OnConstruction();
7489 }
7490
7491 partial void OnConstruction();
7492
7493 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +02007494 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -05007495 public TestGroupExtension(TestGroupExtension other) : this() {
7496 _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
7497 _extensions = pb::ExtensionSet.Clone(other._extensions);
7498 }
7499
7500 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +02007501 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -05007502 public TestGroupExtension Clone() {
7503 return new TestGroupExtension(this);
7504 }
7505
7506 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +02007507 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -05007508 public override bool Equals(object other) {
7509 return Equals(other as TestGroupExtension);
7510 }
7511
7512 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +02007513 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -05007514 public bool Equals(TestGroupExtension other) {
7515 if (ReferenceEquals(other, null)) {
7516 return false;
7517 }
7518 if (ReferenceEquals(other, this)) {
7519 return true;
7520 }
7521 if (!Equals(_extensions, other._extensions)) {
7522 return false;
7523 }
7524 return Equals(_unknownFields, other._unknownFields);
7525 }
7526
7527 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +02007528 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -05007529 public override int GetHashCode() {
7530 int hash = 1;
7531 if (_extensions != null) {
7532 hash ^= _extensions.GetHashCode();
7533 }
7534 if (_unknownFields != null) {
7535 hash ^= _unknownFields.GetHashCode();
7536 }
7537 return hash;
7538 }
7539
7540 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +02007541 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -05007542 public override string ToString() {
7543 return pb::JsonFormatter.ToDiagnosticString(this);
7544 }
7545
7546 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +02007547 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -05007548 public void WriteTo(pb::CodedOutputStream output) {
Jan Tattermusch125e4ad2020-05-29 04:32:43 -04007549 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
7550 output.WriteRawMessage(this);
7551 #else
Sydney Acksman8a57ec82019-03-21 17:36:36 -05007552 if (_extensions != null) {
7553 _extensions.WriteTo(output);
7554 }
7555 if (_unknownFields != null) {
7556 _unknownFields.WriteTo(output);
7557 }
Jan Tattermusch125e4ad2020-05-29 04:32:43 -04007558 #endif
Sydney Acksman8a57ec82019-03-21 17:36:36 -05007559 }
7560
Jan Tattermusch125e4ad2020-05-29 04:32:43 -04007561 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
7562 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +02007563 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Jan Tattermusch125e4ad2020-05-29 04:32:43 -04007564 void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
7565 if (_extensions != null) {
7566 _extensions.WriteTo(ref output);
7567 }
7568 if (_unknownFields != null) {
7569 _unknownFields.WriteTo(ref output);
7570 }
7571 }
7572 #endif
7573
Sydney Acksman8a57ec82019-03-21 17:36:36 -05007574 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +02007575 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -05007576 public int CalculateSize() {
7577 int size = 0;
7578 if (_extensions != null) {
7579 size += _extensions.CalculateSize();
7580 }
7581 if (_unknownFields != null) {
7582 size += _unknownFields.CalculateSize();
7583 }
7584 return size;
7585 }
7586
7587 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +02007588 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -05007589 public void MergeFrom(TestGroupExtension other) {
7590 if (other == null) {
7591 return;
7592 }
7593 pb::ExtensionSet.MergeFrom(ref _extensions, other._extensions);
7594 _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
7595 }
7596
7597 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +02007598 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -05007599 public void MergeFrom(pb::CodedInputStream input) {
Jan Tattermusch7cb55972020-06-02 09:26:25 +02007600 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
Jan Tattermusch3196ef92020-04-02 15:36:16 +02007601 input.ReadRawMessage(this);
Jan Tattermusch7cb55972020-06-02 09:26:25 +02007602 #else
7603 uint tag;
7604 while ((tag = input.ReadTag()) != 0) {
7605 switch(tag) {
7606 default:
7607 if (!pb::ExtensionSet.TryMergeFieldFrom(ref _extensions, input)) {
7608 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
7609 }
7610 break;
7611 }
7612 }
7613 #endif
Jan Tattermusch3196ef92020-04-02 15:36:16 +02007614 }
7615
Jan Tattermusch7cb55972020-06-02 09:26:25 +02007616 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
Jan Tattermusch3196ef92020-04-02 15:36:16 +02007617 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +02007618 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Jan Tattermusch0df7ddc2020-04-14 12:41:03 +02007619 void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
Sydney Acksman8a57ec82019-03-21 17:36:36 -05007620 uint tag;
7621 while ((tag = input.ReadTag()) != 0) {
7622 switch(tag) {
7623 default:
Jan Tattermusch3196ef92020-04-02 15:36:16 +02007624 if (!pb::ExtensionSet.TryMergeFieldFrom(ref _extensions, ref input)) {
7625 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
Sydney Acksman8a57ec82019-03-21 17:36:36 -05007626 }
7627 break;
7628 }
7629 }
7630 }
Jan Tattermusch7cb55972020-06-02 09:26:25 +02007631 #endif
Sydney Acksman8a57ec82019-03-21 17:36:36 -05007632
Sydney Acksman8a57ec82019-03-21 17:36:36 -05007633 public TValue GetExtension<TValue>(pb::Extension<TestGroupExtension, TValue> extension) {
7634 return pb::ExtensionSet.Get(ref _extensions, extension);
7635 }
7636 public pbc::RepeatedField<TValue> GetExtension<TValue>(pb::RepeatedExtension<TestGroupExtension, TValue> extension) {
7637 return pb::ExtensionSet.Get(ref _extensions, extension);
7638 }
Sydney Acksman0436b8d2019-08-01 03:06:03 -05007639 public pbc::RepeatedField<TValue> GetOrInitializeExtension<TValue>(pb::RepeatedExtension<TestGroupExtension, TValue> extension) {
7640 return pb::ExtensionSet.GetOrInitialize(ref _extensions, extension);
Sydney Acksman011427c2019-05-03 21:34:48 -05007641 }
Sydney Acksman8a57ec82019-03-21 17:36:36 -05007642 public void SetExtension<TValue>(pb::Extension<TestGroupExtension, TValue> extension, TValue value) {
7643 pb::ExtensionSet.Set(ref _extensions, extension, value);
7644 }
7645 public bool HasExtension<TValue>(pb::Extension<TestGroupExtension, TValue> extension) {
7646 return pb::ExtensionSet.Has(ref _extensions, extension);
7647 }
7648 public void ClearExtension<TValue>(pb::Extension<TestGroupExtension, TValue> extension) {
7649 pb::ExtensionSet.Clear(ref _extensions, extension);
7650 }
Sydney Acksman011427c2019-05-03 21:34:48 -05007651 public void ClearExtension<TValue>(pb::RepeatedExtension<TestGroupExtension, TValue> extension) {
7652 pb::ExtensionSet.Clear(ref _extensions, extension);
7653 }
Sydney Acksman8a57ec82019-03-21 17:36:36 -05007654
7655 }
7656
Jan Tattermusch7cb55972020-06-02 09:26:25 +02007657 public sealed partial class TestNestedExtension : pb::IMessage<TestNestedExtension>
7658 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
7659 , pb::IBufferMessage
7660 #endif
7661 {
Sydney Acksman8a57ec82019-03-21 17:36:36 -05007662 private static readonly pb::MessageParser<TestNestedExtension> _parser = new pb::MessageParser<TestNestedExtension>(() => new TestNestedExtension());
7663 private pb::UnknownFieldSet _unknownFields;
7664 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +02007665 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -05007666 public static pb::MessageParser<TestNestedExtension> Parser { get { return _parser; } }
7667
7668 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +02007669 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -05007670 public static pbr::MessageDescriptor Descriptor {
7671 get { return global::Google.Protobuf.TestProtos.Proto2.UnittestReflection.Descriptor.MessageTypes[11]; }
7672 }
7673
7674 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +02007675 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -05007676 pbr::MessageDescriptor pb::IMessage.Descriptor {
7677 get { return Descriptor; }
7678 }
7679
7680 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +02007681 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -05007682 public TestNestedExtension() {
7683 OnConstruction();
7684 }
7685
7686 partial void OnConstruction();
7687
7688 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +02007689 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -05007690 public TestNestedExtension(TestNestedExtension other) : this() {
7691 _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
7692 }
7693
7694 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +02007695 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -05007696 public TestNestedExtension Clone() {
7697 return new TestNestedExtension(this);
7698 }
7699
7700 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +02007701 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -05007702 public override bool Equals(object other) {
7703 return Equals(other as TestNestedExtension);
7704 }
7705
7706 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +02007707 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -05007708 public bool Equals(TestNestedExtension other) {
7709 if (ReferenceEquals(other, null)) {
7710 return false;
7711 }
7712 if (ReferenceEquals(other, this)) {
7713 return true;
7714 }
7715 return Equals(_unknownFields, other._unknownFields);
7716 }
7717
7718 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +02007719 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -05007720 public override int GetHashCode() {
7721 int hash = 1;
7722 if (_unknownFields != null) {
7723 hash ^= _unknownFields.GetHashCode();
7724 }
7725 return hash;
7726 }
7727
7728 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +02007729 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -05007730 public override string ToString() {
7731 return pb::JsonFormatter.ToDiagnosticString(this);
7732 }
7733
7734 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +02007735 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -05007736 public void WriteTo(pb::CodedOutputStream output) {
Jan Tattermusch125e4ad2020-05-29 04:32:43 -04007737 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
7738 output.WriteRawMessage(this);
7739 #else
Sydney Acksman8a57ec82019-03-21 17:36:36 -05007740 if (_unknownFields != null) {
7741 _unknownFields.WriteTo(output);
7742 }
Jan Tattermusch125e4ad2020-05-29 04:32:43 -04007743 #endif
Sydney Acksman8a57ec82019-03-21 17:36:36 -05007744 }
7745
Jan Tattermusch125e4ad2020-05-29 04:32:43 -04007746 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
7747 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +02007748 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Jan Tattermusch125e4ad2020-05-29 04:32:43 -04007749 void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
7750 if (_unknownFields != null) {
7751 _unknownFields.WriteTo(ref output);
7752 }
7753 }
7754 #endif
7755
Sydney Acksman8a57ec82019-03-21 17:36:36 -05007756 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +02007757 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -05007758 public int CalculateSize() {
7759 int size = 0;
7760 if (_unknownFields != null) {
7761 size += _unknownFields.CalculateSize();
7762 }
7763 return size;
7764 }
7765
7766 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +02007767 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -05007768 public void MergeFrom(TestNestedExtension other) {
7769 if (other == null) {
7770 return;
7771 }
7772 _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
7773 }
7774
7775 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +02007776 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -05007777 public void MergeFrom(pb::CodedInputStream input) {
Jan Tattermusch7cb55972020-06-02 09:26:25 +02007778 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
Jan Tattermusch3196ef92020-04-02 15:36:16 +02007779 input.ReadRawMessage(this);
Jan Tattermusch7cb55972020-06-02 09:26:25 +02007780 #else
7781 uint tag;
7782 while ((tag = input.ReadTag()) != 0) {
7783 switch(tag) {
7784 default:
7785 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
7786 break;
7787 }
7788 }
7789 #endif
Jan Tattermusch3196ef92020-04-02 15:36:16 +02007790 }
7791
Jan Tattermusch7cb55972020-06-02 09:26:25 +02007792 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
Jan Tattermusch3196ef92020-04-02 15:36:16 +02007793 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +02007794 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Jan Tattermusch0df7ddc2020-04-14 12:41:03 +02007795 void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
Sydney Acksman8a57ec82019-03-21 17:36:36 -05007796 uint tag;
7797 while ((tag = input.ReadTag()) != 0) {
7798 switch(tag) {
7799 default:
Jan Tattermusch3196ef92020-04-02 15:36:16 +02007800 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
Sydney Acksman8a57ec82019-03-21 17:36:36 -05007801 break;
7802 }
7803 }
7804 }
Jan Tattermusch7cb55972020-06-02 09:26:25 +02007805 #endif
Sydney Acksman8a57ec82019-03-21 17:36:36 -05007806
7807 #region Nested types
7808 /// <summary>Container for nested types declared in the TestNestedExtension message type.</summary>
7809 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +02007810 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -05007811 public static partial class Types {
Jan Tattermusch7cb55972020-06-02 09:26:25 +02007812 public sealed partial class OptionalGroup_extension : pb::IMessage<OptionalGroup_extension>
7813 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
7814 , pb::IBufferMessage
7815 #endif
7816 {
Sydney Acksman8a57ec82019-03-21 17:36:36 -05007817 private static readonly pb::MessageParser<OptionalGroup_extension> _parser = new pb::MessageParser<OptionalGroup_extension>(() => new OptionalGroup_extension());
7818 private pb::UnknownFieldSet _unknownFields;
7819 private int _hasBits0;
7820 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +02007821 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -05007822 public static pb::MessageParser<OptionalGroup_extension> Parser { get { return _parser; } }
7823
7824 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +02007825 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -05007826 public static pbr::MessageDescriptor Descriptor {
7827 get { return global::Google.Protobuf.TestProtos.Proto2.TestNestedExtension.Descriptor.NestedTypes[0]; }
7828 }
7829
7830 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +02007831 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -05007832 pbr::MessageDescriptor pb::IMessage.Descriptor {
7833 get { return Descriptor; }
7834 }
7835
7836 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +02007837 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -05007838 public OptionalGroup_extension() {
7839 OnConstruction();
7840 }
7841
7842 partial void OnConstruction();
7843
7844 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +02007845 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -05007846 public OptionalGroup_extension(OptionalGroup_extension other) : this() {
7847 _hasBits0 = other._hasBits0;
7848 a_ = other.a_;
7849 _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
7850 }
7851
7852 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +02007853 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -05007854 public OptionalGroup_extension Clone() {
7855 return new OptionalGroup_extension(this);
7856 }
7857
7858 /// <summary>Field number for the "a" field.</summary>
7859 public const int AFieldNumber = 17;
7860 private readonly static int ADefaultValue = 0;
7861
7862 private int a_;
7863 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +02007864 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -05007865 public int A {
7866 get { if ((_hasBits0 & 1) != 0) { return a_; } else { return ADefaultValue; } }
7867 set {
7868 _hasBits0 |= 1;
7869 a_ = value;
7870 }
7871 }
7872 /// <summary>Gets whether the "a" field is set</summary>
7873 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +02007874 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -05007875 public bool HasA {
7876 get { return (_hasBits0 & 1) != 0; }
7877 }
7878 /// <summary>Clears the value of the "a" field</summary>
7879 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +02007880 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -05007881 public void ClearA() {
7882 _hasBits0 &= ~1;
7883 }
7884
7885 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +02007886 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -05007887 public override bool Equals(object other) {
7888 return Equals(other as OptionalGroup_extension);
7889 }
7890
7891 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +02007892 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -05007893 public bool Equals(OptionalGroup_extension other) {
7894 if (ReferenceEquals(other, null)) {
7895 return false;
7896 }
7897 if (ReferenceEquals(other, this)) {
7898 return true;
7899 }
7900 if (A != other.A) return false;
7901 return Equals(_unknownFields, other._unknownFields);
7902 }
7903
7904 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +02007905 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -05007906 public override int GetHashCode() {
7907 int hash = 1;
7908 if (HasA) hash ^= A.GetHashCode();
7909 if (_unknownFields != null) {
7910 hash ^= _unknownFields.GetHashCode();
7911 }
7912 return hash;
7913 }
7914
7915 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +02007916 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -05007917 public override string ToString() {
7918 return pb::JsonFormatter.ToDiagnosticString(this);
7919 }
7920
7921 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +02007922 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -05007923 public void WriteTo(pb::CodedOutputStream output) {
Jan Tattermusch125e4ad2020-05-29 04:32:43 -04007924 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
7925 output.WriteRawMessage(this);
7926 #else
Sydney Acksman8a57ec82019-03-21 17:36:36 -05007927 if (HasA) {
7928 output.WriteRawTag(136, 1);
7929 output.WriteInt32(A);
7930 }
7931 if (_unknownFields != null) {
7932 _unknownFields.WriteTo(output);
7933 }
Jan Tattermusch125e4ad2020-05-29 04:32:43 -04007934 #endif
Sydney Acksman8a57ec82019-03-21 17:36:36 -05007935 }
7936
Jan Tattermusch125e4ad2020-05-29 04:32:43 -04007937 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
7938 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +02007939 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Jan Tattermusch125e4ad2020-05-29 04:32:43 -04007940 void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
7941 if (HasA) {
7942 output.WriteRawTag(136, 1);
7943 output.WriteInt32(A);
7944 }
7945 if (_unknownFields != null) {
7946 _unknownFields.WriteTo(ref output);
7947 }
7948 }
7949 #endif
7950
Sydney Acksman8a57ec82019-03-21 17:36:36 -05007951 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +02007952 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -05007953 public int CalculateSize() {
7954 int size = 0;
7955 if (HasA) {
7956 size += 2 + pb::CodedOutputStream.ComputeInt32Size(A);
7957 }
7958 if (_unknownFields != null) {
7959 size += _unknownFields.CalculateSize();
7960 }
7961 return size;
7962 }
7963
7964 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +02007965 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -05007966 public void MergeFrom(OptionalGroup_extension other) {
7967 if (other == null) {
7968 return;
7969 }
7970 if (other.HasA) {
7971 A = other.A;
7972 }
7973 _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
7974 }
7975
7976 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +02007977 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -05007978 public void MergeFrom(pb::CodedInputStream input) {
Jan Tattermusch7cb55972020-06-02 09:26:25 +02007979 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
Jan Tattermusch3196ef92020-04-02 15:36:16 +02007980 input.ReadRawMessage(this);
Jan Tattermusch7cb55972020-06-02 09:26:25 +02007981 #else
7982 uint tag;
7983 while ((tag = input.ReadTag()) != 0) {
7984 switch(tag) {
7985 case 132:
7986 return;
7987 default:
7988 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
7989 break;
7990 case 136: {
7991 A = input.ReadInt32();
7992 break;
7993 }
7994 }
7995 }
7996 #endif
Jan Tattermusch3196ef92020-04-02 15:36:16 +02007997 }
7998
Jan Tattermusch7cb55972020-06-02 09:26:25 +02007999 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
Jan Tattermusch3196ef92020-04-02 15:36:16 +02008000 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +02008001 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Jan Tattermusch0df7ddc2020-04-14 12:41:03 +02008002 void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
Sydney Acksman8a57ec82019-03-21 17:36:36 -05008003 uint tag;
8004 while ((tag = input.ReadTag()) != 0) {
8005 switch(tag) {
Sydney Acksmancd655352019-05-04 11:25:50 -05008006 case 132:
8007 return;
Sydney Acksman8a57ec82019-03-21 17:36:36 -05008008 default:
Jan Tattermusch3196ef92020-04-02 15:36:16 +02008009 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
Sydney Acksman8a57ec82019-03-21 17:36:36 -05008010 break;
8011 case 136: {
8012 A = input.ReadInt32();
8013 break;
8014 }
8015 }
8016 }
8017 }
Jan Tattermusch7cb55972020-06-02 09:26:25 +02008018 #endif
Sydney Acksman8a57ec82019-03-21 17:36:36 -05008019
8020 }
8021
8022 }
8023 #endregion
8024
8025 #region Extensions
8026 /// <summary>Container for extensions for other messages declared in the TestNestedExtension message type.</summary>
8027 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +02008028 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -05008029 public static partial class Extensions {
8030 /// <summary>
8031 /// Check for bug where string extensions declared in tested scope did not
8032 /// compile.
8033 /// </summary>
8034 public static readonly pb::Extension<global::Google.Protobuf.TestProtos.Proto2.TestAllExtensions, string> Test =
Sydney Acksmane119a432019-10-30 13:02:46 -05008035 new pb::Extension<global::Google.Protobuf.TestProtos.Proto2.TestAllExtensions, string>(1002, pb::FieldCodec.ForString(8018, global::System.Text.Encoding.UTF8.GetString(global::System.Convert.FromBase64String("dGVzdA=="), 0, 4)));
Sydney Acksman8a57ec82019-03-21 17:36:36 -05008036 /// <summary>
8037 /// Used to test if generated extension name is correct when there are
8038 /// underscores.
8039 /// </summary>
8040 public static readonly pb::Extension<global::Google.Protobuf.TestProtos.Proto2.TestAllExtensions, string> NestedStringExtension =
8041 new pb::Extension<global::Google.Protobuf.TestProtos.Proto2.TestAllExtensions, string>(1003, pb::FieldCodec.ForString(8026, ""));
8042 public static readonly pb::Extension<global::Google.Protobuf.TestProtos.Proto2.TestGroupExtension, global::Google.Protobuf.TestProtos.Proto2.TestNestedExtension.Types.OptionalGroup_extension> OptionalGroupExtension =
8043 new pb::Extension<global::Google.Protobuf.TestProtos.Proto2.TestGroupExtension, global::Google.Protobuf.TestProtos.Proto2.TestNestedExtension.Types.OptionalGroup_extension>(16, pb::FieldCodec.ForGroup(131, 132, global::Google.Protobuf.TestProtos.Proto2.TestNestedExtension.Types.OptionalGroup_extension.Parser));
8044 public static readonly pb::Extension<global::Google.Protobuf.TestProtos.Proto2.TestGroupExtension, global::Google.Protobuf.TestProtos.Proto2.ForeignEnum> OptionalForeignEnumExtension =
8045 new pb::Extension<global::Google.Protobuf.TestProtos.Proto2.TestGroupExtension, global::Google.Protobuf.TestProtos.Proto2.ForeignEnum>(22, pb::FieldCodec.ForEnum(176, x => (int) x, x => (global::Google.Protobuf.TestProtos.Proto2.ForeignEnum) x, global::Google.Protobuf.TestProtos.Proto2.ForeignEnum.ForeignFoo));
8046 }
8047 #endregion
8048
8049 }
8050
8051 /// <summary>
8052 /// We have separate messages for testing required fields because it's
8053 /// annoying to have to fill in required fields in TestProto in order to
8054 /// do anything with it. Note that we don't need to test every type of
8055 /// required filed because the code output is basically identical to
8056 /// optional fields for all types.
8057 /// </summary>
Jan Tattermusch7cb55972020-06-02 09:26:25 +02008058 public sealed partial class TestRequired : pb::IMessage<TestRequired>
8059 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
8060 , pb::IBufferMessage
8061 #endif
8062 {
Sydney Acksman8a57ec82019-03-21 17:36:36 -05008063 private static readonly pb::MessageParser<TestRequired> _parser = new pb::MessageParser<TestRequired>(() => new TestRequired());
8064 private pb::UnknownFieldSet _unknownFields;
8065 private int _hasBits0;
8066 private int _hasBits1;
8067 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +02008068 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -05008069 public static pb::MessageParser<TestRequired> Parser { get { return _parser; } }
8070
8071 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +02008072 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -05008073 public static pbr::MessageDescriptor Descriptor {
8074 get { return global::Google.Protobuf.TestProtos.Proto2.UnittestReflection.Descriptor.MessageTypes[12]; }
8075 }
8076
8077 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +02008078 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -05008079 pbr::MessageDescriptor pb::IMessage.Descriptor {
8080 get { return Descriptor; }
8081 }
8082
8083 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +02008084 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -05008085 public TestRequired() {
8086 OnConstruction();
8087 }
8088
8089 partial void OnConstruction();
8090
8091 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +02008092 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -05008093 public TestRequired(TestRequired other) : this() {
8094 _hasBits0 = other._hasBits0;
8095 _hasBits1 = other._hasBits1;
8096 a_ = other.a_;
8097 dummy2_ = other.dummy2_;
8098 b_ = other.b_;
8099 dummy4_ = other.dummy4_;
8100 dummy5_ = other.dummy5_;
8101 dummy6_ = other.dummy6_;
8102 dummy7_ = other.dummy7_;
8103 dummy8_ = other.dummy8_;
8104 dummy9_ = other.dummy9_;
8105 dummy10_ = other.dummy10_;
8106 dummy11_ = other.dummy11_;
8107 dummy12_ = other.dummy12_;
8108 dummy13_ = other.dummy13_;
8109 dummy14_ = other.dummy14_;
8110 dummy15_ = other.dummy15_;
8111 dummy16_ = other.dummy16_;
8112 dummy17_ = other.dummy17_;
8113 dummy18_ = other.dummy18_;
8114 dummy19_ = other.dummy19_;
8115 dummy20_ = other.dummy20_;
8116 dummy21_ = other.dummy21_;
8117 dummy22_ = other.dummy22_;
8118 dummy23_ = other.dummy23_;
8119 dummy24_ = other.dummy24_;
8120 dummy25_ = other.dummy25_;
8121 dummy26_ = other.dummy26_;
8122 dummy27_ = other.dummy27_;
8123 dummy28_ = other.dummy28_;
8124 dummy29_ = other.dummy29_;
8125 dummy30_ = other.dummy30_;
8126 dummy31_ = other.dummy31_;
8127 dummy32_ = other.dummy32_;
8128 c_ = other.c_;
8129 _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
8130 }
8131
8132 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +02008133 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -05008134 public TestRequired Clone() {
8135 return new TestRequired(this);
8136 }
8137
8138 /// <summary>Field number for the "a" field.</summary>
8139 public const int AFieldNumber = 1;
8140 private readonly static int ADefaultValue = 0;
8141
8142 private int a_;
8143 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +02008144 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -05008145 public int A {
8146 get { if ((_hasBits0 & 1) != 0) { return a_; } else { return ADefaultValue; } }
8147 set {
8148 _hasBits0 |= 1;
8149 a_ = value;
8150 }
8151 }
8152 /// <summary>Gets whether the "a" field is set</summary>
8153 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +02008154 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -05008155 public bool HasA {
8156 get { return (_hasBits0 & 1) != 0; }
8157 }
8158 /// <summary>Clears the value of the "a" field</summary>
8159 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +02008160 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -05008161 public void ClearA() {
8162 _hasBits0 &= ~1;
8163 }
8164
8165 /// <summary>Field number for the "dummy2" field.</summary>
8166 public const int Dummy2FieldNumber = 2;
8167 private readonly static int Dummy2DefaultValue = 0;
8168
8169 private int dummy2_;
8170 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +02008171 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -05008172 public int Dummy2 {
8173 get { if ((_hasBits0 & 2) != 0) { return dummy2_; } else { return Dummy2DefaultValue; } }
8174 set {
8175 _hasBits0 |= 2;
8176 dummy2_ = value;
8177 }
8178 }
8179 /// <summary>Gets whether the "dummy2" field is set</summary>
8180 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +02008181 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -05008182 public bool HasDummy2 {
8183 get { return (_hasBits0 & 2) != 0; }
8184 }
8185 /// <summary>Clears the value of the "dummy2" field</summary>
8186 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +02008187 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -05008188 public void ClearDummy2() {
8189 _hasBits0 &= ~2;
8190 }
8191
8192 /// <summary>Field number for the "b" field.</summary>
8193 public const int BFieldNumber = 3;
8194 private readonly static int BDefaultValue = 0;
8195
8196 private int b_;
8197 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +02008198 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -05008199 public int B {
8200 get { if ((_hasBits0 & 4) != 0) { return b_; } else { return BDefaultValue; } }
8201 set {
8202 _hasBits0 |= 4;
8203 b_ = value;
8204 }
8205 }
8206 /// <summary>Gets whether the "b" field is set</summary>
8207 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +02008208 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -05008209 public bool HasB {
8210 get { return (_hasBits0 & 4) != 0; }
8211 }
8212 /// <summary>Clears the value of the "b" field</summary>
8213 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +02008214 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -05008215 public void ClearB() {
8216 _hasBits0 &= ~4;
8217 }
8218
8219 /// <summary>Field number for the "dummy4" field.</summary>
8220 public const int Dummy4FieldNumber = 4;
8221 private readonly static int Dummy4DefaultValue = 0;
8222
8223 private int dummy4_;
8224 /// <summary>
8225 /// Pad the field count to 32 so that we can test that IsInitialized()
8226 /// properly checks multiple elements of has_bits_.
8227 /// </summary>
8228 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +02008229 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -05008230 public int Dummy4 {
8231 get { if ((_hasBits0 & 8) != 0) { return dummy4_; } else { return Dummy4DefaultValue; } }
8232 set {
8233 _hasBits0 |= 8;
8234 dummy4_ = value;
8235 }
8236 }
8237 /// <summary>Gets whether the "dummy4" field is set</summary>
8238 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +02008239 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -05008240 public bool HasDummy4 {
8241 get { return (_hasBits0 & 8) != 0; }
8242 }
8243 /// <summary>Clears the value of the "dummy4" field</summary>
8244 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +02008245 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -05008246 public void ClearDummy4() {
8247 _hasBits0 &= ~8;
8248 }
8249
8250 /// <summary>Field number for the "dummy5" field.</summary>
8251 public const int Dummy5FieldNumber = 5;
8252 private readonly static int Dummy5DefaultValue = 0;
8253
8254 private int dummy5_;
8255 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +02008256 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -05008257 public int Dummy5 {
8258 get { if ((_hasBits0 & 16) != 0) { return dummy5_; } else { return Dummy5DefaultValue; } }
8259 set {
8260 _hasBits0 |= 16;
8261 dummy5_ = value;
8262 }
8263 }
8264 /// <summary>Gets whether the "dummy5" field is set</summary>
8265 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +02008266 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -05008267 public bool HasDummy5 {
8268 get { return (_hasBits0 & 16) != 0; }
8269 }
8270 /// <summary>Clears the value of the "dummy5" field</summary>
8271 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +02008272 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -05008273 public void ClearDummy5() {
8274 _hasBits0 &= ~16;
8275 }
8276
8277 /// <summary>Field number for the "dummy6" field.</summary>
8278 public const int Dummy6FieldNumber = 6;
8279 private readonly static int Dummy6DefaultValue = 0;
8280
8281 private int dummy6_;
8282 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +02008283 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -05008284 public int Dummy6 {
8285 get { if ((_hasBits0 & 32) != 0) { return dummy6_; } else { return Dummy6DefaultValue; } }
8286 set {
8287 _hasBits0 |= 32;
8288 dummy6_ = value;
8289 }
8290 }
8291 /// <summary>Gets whether the "dummy6" field is set</summary>
8292 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +02008293 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -05008294 public bool HasDummy6 {
8295 get { return (_hasBits0 & 32) != 0; }
8296 }
8297 /// <summary>Clears the value of the "dummy6" field</summary>
8298 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +02008299 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -05008300 public void ClearDummy6() {
8301 _hasBits0 &= ~32;
8302 }
8303
8304 /// <summary>Field number for the "dummy7" field.</summary>
8305 public const int Dummy7FieldNumber = 7;
8306 private readonly static int Dummy7DefaultValue = 0;
8307
8308 private int dummy7_;
8309 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +02008310 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -05008311 public int Dummy7 {
8312 get { if ((_hasBits0 & 64) != 0) { return dummy7_; } else { return Dummy7DefaultValue; } }
8313 set {
8314 _hasBits0 |= 64;
8315 dummy7_ = value;
8316 }
8317 }
8318 /// <summary>Gets whether the "dummy7" field is set</summary>
8319 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +02008320 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -05008321 public bool HasDummy7 {
8322 get { return (_hasBits0 & 64) != 0; }
8323 }
8324 /// <summary>Clears the value of the "dummy7" field</summary>
8325 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +02008326 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -05008327 public void ClearDummy7() {
8328 _hasBits0 &= ~64;
8329 }
8330
8331 /// <summary>Field number for the "dummy8" field.</summary>
8332 public const int Dummy8FieldNumber = 8;
8333 private readonly static int Dummy8DefaultValue = 0;
8334
8335 private int dummy8_;
8336 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +02008337 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -05008338 public int Dummy8 {
8339 get { if ((_hasBits0 & 128) != 0) { return dummy8_; } else { return Dummy8DefaultValue; } }
8340 set {
8341 _hasBits0 |= 128;
8342 dummy8_ = value;
8343 }
8344 }
8345 /// <summary>Gets whether the "dummy8" field is set</summary>
8346 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +02008347 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -05008348 public bool HasDummy8 {
8349 get { return (_hasBits0 & 128) != 0; }
8350 }
8351 /// <summary>Clears the value of the "dummy8" field</summary>
8352 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +02008353 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -05008354 public void ClearDummy8() {
8355 _hasBits0 &= ~128;
8356 }
8357
8358 /// <summary>Field number for the "dummy9" field.</summary>
8359 public const int Dummy9FieldNumber = 9;
8360 private readonly static int Dummy9DefaultValue = 0;
8361
8362 private int dummy9_;
8363 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +02008364 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -05008365 public int Dummy9 {
8366 get { if ((_hasBits0 & 256) != 0) { return dummy9_; } else { return Dummy9DefaultValue; } }
8367 set {
8368 _hasBits0 |= 256;
8369 dummy9_ = value;
8370 }
8371 }
8372 /// <summary>Gets whether the "dummy9" field is set</summary>
8373 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +02008374 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -05008375 public bool HasDummy9 {
8376 get { return (_hasBits0 & 256) != 0; }
8377 }
8378 /// <summary>Clears the value of the "dummy9" field</summary>
8379 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +02008380 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -05008381 public void ClearDummy9() {
8382 _hasBits0 &= ~256;
8383 }
8384
8385 /// <summary>Field number for the "dummy10" field.</summary>
8386 public const int Dummy10FieldNumber = 10;
8387 private readonly static int Dummy10DefaultValue = 0;
8388
8389 private int dummy10_;
8390 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +02008391 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -05008392 public int Dummy10 {
8393 get { if ((_hasBits0 & 512) != 0) { return dummy10_; } else { return Dummy10DefaultValue; } }
8394 set {
8395 _hasBits0 |= 512;
8396 dummy10_ = value;
8397 }
8398 }
8399 /// <summary>Gets whether the "dummy10" field is set</summary>
8400 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +02008401 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -05008402 public bool HasDummy10 {
8403 get { return (_hasBits0 & 512) != 0; }
8404 }
8405 /// <summary>Clears the value of the "dummy10" field</summary>
8406 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +02008407 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -05008408 public void ClearDummy10() {
8409 _hasBits0 &= ~512;
8410 }
8411
8412 /// <summary>Field number for the "dummy11" field.</summary>
8413 public const int Dummy11FieldNumber = 11;
8414 private readonly static int Dummy11DefaultValue = 0;
8415
8416 private int dummy11_;
8417 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +02008418 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -05008419 public int Dummy11 {
8420 get { if ((_hasBits0 & 1024) != 0) { return dummy11_; } else { return Dummy11DefaultValue; } }
8421 set {
8422 _hasBits0 |= 1024;
8423 dummy11_ = value;
8424 }
8425 }
8426 /// <summary>Gets whether the "dummy11" field is set</summary>
8427 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +02008428 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -05008429 public bool HasDummy11 {
8430 get { return (_hasBits0 & 1024) != 0; }
8431 }
8432 /// <summary>Clears the value of the "dummy11" field</summary>
8433 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +02008434 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -05008435 public void ClearDummy11() {
8436 _hasBits0 &= ~1024;
8437 }
8438
8439 /// <summary>Field number for the "dummy12" field.</summary>
8440 public const int Dummy12FieldNumber = 12;
8441 private readonly static int Dummy12DefaultValue = 0;
8442
8443 private int dummy12_;
8444 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +02008445 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -05008446 public int Dummy12 {
8447 get { if ((_hasBits0 & 2048) != 0) { return dummy12_; } else { return Dummy12DefaultValue; } }
8448 set {
8449 _hasBits0 |= 2048;
8450 dummy12_ = value;
8451 }
8452 }
8453 /// <summary>Gets whether the "dummy12" field is set</summary>
8454 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +02008455 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -05008456 public bool HasDummy12 {
8457 get { return (_hasBits0 & 2048) != 0; }
8458 }
8459 /// <summary>Clears the value of the "dummy12" field</summary>
8460 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +02008461 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -05008462 public void ClearDummy12() {
8463 _hasBits0 &= ~2048;
8464 }
8465
8466 /// <summary>Field number for the "dummy13" field.</summary>
8467 public const int Dummy13FieldNumber = 13;
8468 private readonly static int Dummy13DefaultValue = 0;
8469
8470 private int dummy13_;
8471 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +02008472 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -05008473 public int Dummy13 {
8474 get { if ((_hasBits0 & 4096) != 0) { return dummy13_; } else { return Dummy13DefaultValue; } }
8475 set {
8476 _hasBits0 |= 4096;
8477 dummy13_ = value;
8478 }
8479 }
8480 /// <summary>Gets whether the "dummy13" field is set</summary>
8481 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +02008482 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -05008483 public bool HasDummy13 {
8484 get { return (_hasBits0 & 4096) != 0; }
8485 }
8486 /// <summary>Clears the value of the "dummy13" field</summary>
8487 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +02008488 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -05008489 public void ClearDummy13() {
8490 _hasBits0 &= ~4096;
8491 }
8492
8493 /// <summary>Field number for the "dummy14" field.</summary>
8494 public const int Dummy14FieldNumber = 14;
8495 private readonly static int Dummy14DefaultValue = 0;
8496
8497 private int dummy14_;
8498 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +02008499 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -05008500 public int Dummy14 {
8501 get { if ((_hasBits0 & 8192) != 0) { return dummy14_; } else { return Dummy14DefaultValue; } }
8502 set {
8503 _hasBits0 |= 8192;
8504 dummy14_ = value;
8505 }
8506 }
8507 /// <summary>Gets whether the "dummy14" field is set</summary>
8508 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +02008509 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -05008510 public bool HasDummy14 {
8511 get { return (_hasBits0 & 8192) != 0; }
8512 }
8513 /// <summary>Clears the value of the "dummy14" field</summary>
8514 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +02008515 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -05008516 public void ClearDummy14() {
8517 _hasBits0 &= ~8192;
8518 }
8519
8520 /// <summary>Field number for the "dummy15" field.</summary>
8521 public const int Dummy15FieldNumber = 15;
8522 private readonly static int Dummy15DefaultValue = 0;
8523
8524 private int dummy15_;
8525 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +02008526 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -05008527 public int Dummy15 {
8528 get { if ((_hasBits0 & 16384) != 0) { return dummy15_; } else { return Dummy15DefaultValue; } }
8529 set {
8530 _hasBits0 |= 16384;
8531 dummy15_ = value;
8532 }
8533 }
8534 /// <summary>Gets whether the "dummy15" field is set</summary>
8535 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +02008536 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -05008537 public bool HasDummy15 {
8538 get { return (_hasBits0 & 16384) != 0; }
8539 }
8540 /// <summary>Clears the value of the "dummy15" field</summary>
8541 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +02008542 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -05008543 public void ClearDummy15() {
8544 _hasBits0 &= ~16384;
8545 }
8546
8547 /// <summary>Field number for the "dummy16" field.</summary>
8548 public const int Dummy16FieldNumber = 16;
8549 private readonly static int Dummy16DefaultValue = 0;
8550
8551 private int dummy16_;
8552 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +02008553 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -05008554 public int Dummy16 {
8555 get { if ((_hasBits0 & 32768) != 0) { return dummy16_; } else { return Dummy16DefaultValue; } }
8556 set {
8557 _hasBits0 |= 32768;
8558 dummy16_ = value;
8559 }
8560 }
8561 /// <summary>Gets whether the "dummy16" field is set</summary>
8562 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +02008563 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -05008564 public bool HasDummy16 {
8565 get { return (_hasBits0 & 32768) != 0; }
8566 }
8567 /// <summary>Clears the value of the "dummy16" field</summary>
8568 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +02008569 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -05008570 public void ClearDummy16() {
8571 _hasBits0 &= ~32768;
8572 }
8573
8574 /// <summary>Field number for the "dummy17" field.</summary>
8575 public const int Dummy17FieldNumber = 17;
8576 private readonly static int Dummy17DefaultValue = 0;
8577
8578 private int dummy17_;
8579 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +02008580 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -05008581 public int Dummy17 {
8582 get { if ((_hasBits0 & 65536) != 0) { return dummy17_; } else { return Dummy17DefaultValue; } }
8583 set {
8584 _hasBits0 |= 65536;
8585 dummy17_ = value;
8586 }
8587 }
8588 /// <summary>Gets whether the "dummy17" field is set</summary>
8589 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +02008590 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -05008591 public bool HasDummy17 {
8592 get { return (_hasBits0 & 65536) != 0; }
8593 }
8594 /// <summary>Clears the value of the "dummy17" field</summary>
8595 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +02008596 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -05008597 public void ClearDummy17() {
8598 _hasBits0 &= ~65536;
8599 }
8600
8601 /// <summary>Field number for the "dummy18" field.</summary>
8602 public const int Dummy18FieldNumber = 18;
8603 private readonly static int Dummy18DefaultValue = 0;
8604
8605 private int dummy18_;
8606 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +02008607 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -05008608 public int Dummy18 {
8609 get { if ((_hasBits0 & 131072) != 0) { return dummy18_; } else { return Dummy18DefaultValue; } }
8610 set {
8611 _hasBits0 |= 131072;
8612 dummy18_ = value;
8613 }
8614 }
8615 /// <summary>Gets whether the "dummy18" field is set</summary>
8616 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +02008617 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -05008618 public bool HasDummy18 {
8619 get { return (_hasBits0 & 131072) != 0; }
8620 }
8621 /// <summary>Clears the value of the "dummy18" field</summary>
8622 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +02008623 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -05008624 public void ClearDummy18() {
8625 _hasBits0 &= ~131072;
8626 }
8627
8628 /// <summary>Field number for the "dummy19" field.</summary>
8629 public const int Dummy19FieldNumber = 19;
8630 private readonly static int Dummy19DefaultValue = 0;
8631
8632 private int dummy19_;
8633 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +02008634 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -05008635 public int Dummy19 {
8636 get { if ((_hasBits0 & 262144) != 0) { return dummy19_; } else { return Dummy19DefaultValue; } }
8637 set {
8638 _hasBits0 |= 262144;
8639 dummy19_ = value;
8640 }
8641 }
8642 /// <summary>Gets whether the "dummy19" field is set</summary>
8643 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +02008644 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -05008645 public bool HasDummy19 {
8646 get { return (_hasBits0 & 262144) != 0; }
8647 }
8648 /// <summary>Clears the value of the "dummy19" field</summary>
8649 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +02008650 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -05008651 public void ClearDummy19() {
8652 _hasBits0 &= ~262144;
8653 }
8654
8655 /// <summary>Field number for the "dummy20" field.</summary>
8656 public const int Dummy20FieldNumber = 20;
8657 private readonly static int Dummy20DefaultValue = 0;
8658
8659 private int dummy20_;
8660 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +02008661 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -05008662 public int Dummy20 {
8663 get { if ((_hasBits0 & 524288) != 0) { return dummy20_; } else { return Dummy20DefaultValue; } }
8664 set {
8665 _hasBits0 |= 524288;
8666 dummy20_ = value;
8667 }
8668 }
8669 /// <summary>Gets whether the "dummy20" field is set</summary>
8670 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +02008671 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -05008672 public bool HasDummy20 {
8673 get { return (_hasBits0 & 524288) != 0; }
8674 }
8675 /// <summary>Clears the value of the "dummy20" field</summary>
8676 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +02008677 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -05008678 public void ClearDummy20() {
8679 _hasBits0 &= ~524288;
8680 }
8681
8682 /// <summary>Field number for the "dummy21" field.</summary>
8683 public const int Dummy21FieldNumber = 21;
8684 private readonly static int Dummy21DefaultValue = 0;
8685
8686 private int dummy21_;
8687 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +02008688 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -05008689 public int Dummy21 {
8690 get { if ((_hasBits0 & 1048576) != 0) { return dummy21_; } else { return Dummy21DefaultValue; } }
8691 set {
8692 _hasBits0 |= 1048576;
8693 dummy21_ = value;
8694 }
8695 }
8696 /// <summary>Gets whether the "dummy21" field is set</summary>
8697 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +02008698 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -05008699 public bool HasDummy21 {
8700 get { return (_hasBits0 & 1048576) != 0; }
8701 }
8702 /// <summary>Clears the value of the "dummy21" field</summary>
8703 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +02008704 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -05008705 public void ClearDummy21() {
8706 _hasBits0 &= ~1048576;
8707 }
8708
8709 /// <summary>Field number for the "dummy22" field.</summary>
8710 public const int Dummy22FieldNumber = 22;
8711 private readonly static int Dummy22DefaultValue = 0;
8712
8713 private int dummy22_;
8714 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +02008715 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -05008716 public int Dummy22 {
8717 get { if ((_hasBits0 & 2097152) != 0) { return dummy22_; } else { return Dummy22DefaultValue; } }
8718 set {
8719 _hasBits0 |= 2097152;
8720 dummy22_ = value;
8721 }
8722 }
8723 /// <summary>Gets whether the "dummy22" field is set</summary>
8724 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +02008725 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -05008726 public bool HasDummy22 {
8727 get { return (_hasBits0 & 2097152) != 0; }
8728 }
8729 /// <summary>Clears the value of the "dummy22" field</summary>
8730 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +02008731 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -05008732 public void ClearDummy22() {
8733 _hasBits0 &= ~2097152;
8734 }
8735
8736 /// <summary>Field number for the "dummy23" field.</summary>
8737 public const int Dummy23FieldNumber = 23;
8738 private readonly static int Dummy23DefaultValue = 0;
8739
8740 private int dummy23_;
8741 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +02008742 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -05008743 public int Dummy23 {
8744 get { if ((_hasBits0 & 4194304) != 0) { return dummy23_; } else { return Dummy23DefaultValue; } }
8745 set {
8746 _hasBits0 |= 4194304;
8747 dummy23_ = value;
8748 }
8749 }
8750 /// <summary>Gets whether the "dummy23" field is set</summary>
8751 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +02008752 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -05008753 public bool HasDummy23 {
8754 get { return (_hasBits0 & 4194304) != 0; }
8755 }
8756 /// <summary>Clears the value of the "dummy23" field</summary>
8757 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +02008758 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -05008759 public void ClearDummy23() {
8760 _hasBits0 &= ~4194304;
8761 }
8762
8763 /// <summary>Field number for the "dummy24" field.</summary>
8764 public const int Dummy24FieldNumber = 24;
8765 private readonly static int Dummy24DefaultValue = 0;
8766
8767 private int dummy24_;
8768 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +02008769 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -05008770 public int Dummy24 {
8771 get { if ((_hasBits0 & 8388608) != 0) { return dummy24_; } else { return Dummy24DefaultValue; } }
8772 set {
8773 _hasBits0 |= 8388608;
8774 dummy24_ = value;
8775 }
8776 }
8777 /// <summary>Gets whether the "dummy24" field is set</summary>
8778 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +02008779 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -05008780 public bool HasDummy24 {
8781 get { return (_hasBits0 & 8388608) != 0; }
8782 }
8783 /// <summary>Clears the value of the "dummy24" field</summary>
8784 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +02008785 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -05008786 public void ClearDummy24() {
8787 _hasBits0 &= ~8388608;
8788 }
8789
8790 /// <summary>Field number for the "dummy25" field.</summary>
8791 public const int Dummy25FieldNumber = 25;
8792 private readonly static int Dummy25DefaultValue = 0;
8793
8794 private int dummy25_;
8795 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +02008796 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -05008797 public int Dummy25 {
8798 get { if ((_hasBits0 & 16777216) != 0) { return dummy25_; } else { return Dummy25DefaultValue; } }
8799 set {
8800 _hasBits0 |= 16777216;
8801 dummy25_ = value;
8802 }
8803 }
8804 /// <summary>Gets whether the "dummy25" field is set</summary>
8805 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +02008806 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -05008807 public bool HasDummy25 {
8808 get { return (_hasBits0 & 16777216) != 0; }
8809 }
8810 /// <summary>Clears the value of the "dummy25" field</summary>
8811 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +02008812 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -05008813 public void ClearDummy25() {
8814 _hasBits0 &= ~16777216;
8815 }
8816
8817 /// <summary>Field number for the "dummy26" field.</summary>
8818 public const int Dummy26FieldNumber = 26;
8819 private readonly static int Dummy26DefaultValue = 0;
8820
8821 private int dummy26_;
8822 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +02008823 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -05008824 public int Dummy26 {
8825 get { if ((_hasBits0 & 33554432) != 0) { return dummy26_; } else { return Dummy26DefaultValue; } }
8826 set {
8827 _hasBits0 |= 33554432;
8828 dummy26_ = value;
8829 }
8830 }
8831 /// <summary>Gets whether the "dummy26" field is set</summary>
8832 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +02008833 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -05008834 public bool HasDummy26 {
8835 get { return (_hasBits0 & 33554432) != 0; }
8836 }
8837 /// <summary>Clears the value of the "dummy26" field</summary>
8838 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +02008839 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -05008840 public void ClearDummy26() {
8841 _hasBits0 &= ~33554432;
8842 }
8843
8844 /// <summary>Field number for the "dummy27" field.</summary>
8845 public const int Dummy27FieldNumber = 27;
8846 private readonly static int Dummy27DefaultValue = 0;
8847
8848 private int dummy27_;
8849 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +02008850 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -05008851 public int Dummy27 {
8852 get { if ((_hasBits0 & 67108864) != 0) { return dummy27_; } else { return Dummy27DefaultValue; } }
8853 set {
8854 _hasBits0 |= 67108864;
8855 dummy27_ = value;
8856 }
8857 }
8858 /// <summary>Gets whether the "dummy27" field is set</summary>
8859 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +02008860 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -05008861 public bool HasDummy27 {
8862 get { return (_hasBits0 & 67108864) != 0; }
8863 }
8864 /// <summary>Clears the value of the "dummy27" field</summary>
8865 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +02008866 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -05008867 public void ClearDummy27() {
8868 _hasBits0 &= ~67108864;
8869 }
8870
8871 /// <summary>Field number for the "dummy28" field.</summary>
8872 public const int Dummy28FieldNumber = 28;
8873 private readonly static int Dummy28DefaultValue = 0;
8874
8875 private int dummy28_;
8876 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +02008877 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -05008878 public int Dummy28 {
8879 get { if ((_hasBits0 & 134217728) != 0) { return dummy28_; } else { return Dummy28DefaultValue; } }
8880 set {
8881 _hasBits0 |= 134217728;
8882 dummy28_ = value;
8883 }
8884 }
8885 /// <summary>Gets whether the "dummy28" field is set</summary>
8886 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +02008887 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -05008888 public bool HasDummy28 {
8889 get { return (_hasBits0 & 134217728) != 0; }
8890 }
8891 /// <summary>Clears the value of the "dummy28" field</summary>
8892 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +02008893 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -05008894 public void ClearDummy28() {
8895 _hasBits0 &= ~134217728;
8896 }
8897
8898 /// <summary>Field number for the "dummy29" field.</summary>
8899 public const int Dummy29FieldNumber = 29;
8900 private readonly static int Dummy29DefaultValue = 0;
8901
8902 private int dummy29_;
8903 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +02008904 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -05008905 public int Dummy29 {
8906 get { if ((_hasBits0 & 268435456) != 0) { return dummy29_; } else { return Dummy29DefaultValue; } }
8907 set {
8908 _hasBits0 |= 268435456;
8909 dummy29_ = value;
8910 }
8911 }
8912 /// <summary>Gets whether the "dummy29" field is set</summary>
8913 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +02008914 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -05008915 public bool HasDummy29 {
8916 get { return (_hasBits0 & 268435456) != 0; }
8917 }
8918 /// <summary>Clears the value of the "dummy29" field</summary>
8919 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +02008920 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -05008921 public void ClearDummy29() {
8922 _hasBits0 &= ~268435456;
8923 }
8924
8925 /// <summary>Field number for the "dummy30" field.</summary>
8926 public const int Dummy30FieldNumber = 30;
8927 private readonly static int Dummy30DefaultValue = 0;
8928
8929 private int dummy30_;
8930 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +02008931 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -05008932 public int Dummy30 {
8933 get { if ((_hasBits0 & 536870912) != 0) { return dummy30_; } else { return Dummy30DefaultValue; } }
8934 set {
8935 _hasBits0 |= 536870912;
8936 dummy30_ = value;
8937 }
8938 }
8939 /// <summary>Gets whether the "dummy30" field is set</summary>
8940 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +02008941 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -05008942 public bool HasDummy30 {
8943 get { return (_hasBits0 & 536870912) != 0; }
8944 }
8945 /// <summary>Clears the value of the "dummy30" field</summary>
8946 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +02008947 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -05008948 public void ClearDummy30() {
8949 _hasBits0 &= ~536870912;
8950 }
8951
8952 /// <summary>Field number for the "dummy31" field.</summary>
8953 public const int Dummy31FieldNumber = 31;
8954 private readonly static int Dummy31DefaultValue = 0;
8955
8956 private int dummy31_;
8957 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +02008958 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -05008959 public int Dummy31 {
8960 get { if ((_hasBits0 & 1073741824) != 0) { return dummy31_; } else { return Dummy31DefaultValue; } }
8961 set {
8962 _hasBits0 |= 1073741824;
8963 dummy31_ = value;
8964 }
8965 }
8966 /// <summary>Gets whether the "dummy31" field is set</summary>
8967 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +02008968 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -05008969 public bool HasDummy31 {
8970 get { return (_hasBits0 & 1073741824) != 0; }
8971 }
8972 /// <summary>Clears the value of the "dummy31" field</summary>
8973 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +02008974 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -05008975 public void ClearDummy31() {
8976 _hasBits0 &= ~1073741824;
8977 }
8978
8979 /// <summary>Field number for the "dummy32" field.</summary>
8980 public const int Dummy32FieldNumber = 32;
8981 private readonly static int Dummy32DefaultValue = 0;
8982
8983 private int dummy32_;
8984 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +02008985 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -05008986 public int Dummy32 {
8987 get { if ((_hasBits0 & -2147483648) != 0) { return dummy32_; } else { return Dummy32DefaultValue; } }
8988 set {
8989 _hasBits0 |= -2147483648;
8990 dummy32_ = value;
8991 }
8992 }
8993 /// <summary>Gets whether the "dummy32" field is set</summary>
8994 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +02008995 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -05008996 public bool HasDummy32 {
8997 get { return (_hasBits0 & -2147483648) != 0; }
8998 }
8999 /// <summary>Clears the value of the "dummy32" field</summary>
9000 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +02009001 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -05009002 public void ClearDummy32() {
9003 _hasBits0 &= ~-2147483648;
9004 }
9005
9006 /// <summary>Field number for the "c" field.</summary>
9007 public const int CFieldNumber = 33;
9008 private readonly static int CDefaultValue = 0;
9009
9010 private int c_;
9011 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +02009012 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -05009013 public int C {
9014 get { if ((_hasBits1 & 1) != 0) { return c_; } else { return CDefaultValue; } }
9015 set {
9016 _hasBits1 |= 1;
9017 c_ = value;
9018 }
9019 }
9020 /// <summary>Gets whether the "c" field is set</summary>
9021 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +02009022 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -05009023 public bool HasC {
9024 get { return (_hasBits1 & 1) != 0; }
9025 }
9026 /// <summary>Clears the value of the "c" field</summary>
9027 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +02009028 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -05009029 public void ClearC() {
9030 _hasBits1 &= ~1;
9031 }
9032
9033 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +02009034 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -05009035 public override bool Equals(object other) {
9036 return Equals(other as TestRequired);
9037 }
9038
9039 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +02009040 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -05009041 public bool Equals(TestRequired other) {
9042 if (ReferenceEquals(other, null)) {
9043 return false;
9044 }
9045 if (ReferenceEquals(other, this)) {
9046 return true;
9047 }
9048 if (A != other.A) return false;
9049 if (Dummy2 != other.Dummy2) return false;
9050 if (B != other.B) return false;
9051 if (Dummy4 != other.Dummy4) return false;
9052 if (Dummy5 != other.Dummy5) return false;
9053 if (Dummy6 != other.Dummy6) return false;
9054 if (Dummy7 != other.Dummy7) return false;
9055 if (Dummy8 != other.Dummy8) return false;
9056 if (Dummy9 != other.Dummy9) return false;
9057 if (Dummy10 != other.Dummy10) return false;
9058 if (Dummy11 != other.Dummy11) return false;
9059 if (Dummy12 != other.Dummy12) return false;
9060 if (Dummy13 != other.Dummy13) return false;
9061 if (Dummy14 != other.Dummy14) return false;
9062 if (Dummy15 != other.Dummy15) return false;
9063 if (Dummy16 != other.Dummy16) return false;
9064 if (Dummy17 != other.Dummy17) return false;
9065 if (Dummy18 != other.Dummy18) return false;
9066 if (Dummy19 != other.Dummy19) return false;
9067 if (Dummy20 != other.Dummy20) return false;
9068 if (Dummy21 != other.Dummy21) return false;
9069 if (Dummy22 != other.Dummy22) return false;
9070 if (Dummy23 != other.Dummy23) return false;
9071 if (Dummy24 != other.Dummy24) return false;
9072 if (Dummy25 != other.Dummy25) return false;
9073 if (Dummy26 != other.Dummy26) return false;
9074 if (Dummy27 != other.Dummy27) return false;
9075 if (Dummy28 != other.Dummy28) return false;
9076 if (Dummy29 != other.Dummy29) return false;
9077 if (Dummy30 != other.Dummy30) return false;
9078 if (Dummy31 != other.Dummy31) return false;
9079 if (Dummy32 != other.Dummy32) return false;
9080 if (C != other.C) return false;
9081 return Equals(_unknownFields, other._unknownFields);
9082 }
9083
9084 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +02009085 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -05009086 public override int GetHashCode() {
9087 int hash = 1;
9088 if (HasA) hash ^= A.GetHashCode();
9089 if (HasDummy2) hash ^= Dummy2.GetHashCode();
9090 if (HasB) hash ^= B.GetHashCode();
9091 if (HasDummy4) hash ^= Dummy4.GetHashCode();
9092 if (HasDummy5) hash ^= Dummy5.GetHashCode();
9093 if (HasDummy6) hash ^= Dummy6.GetHashCode();
9094 if (HasDummy7) hash ^= Dummy7.GetHashCode();
9095 if (HasDummy8) hash ^= Dummy8.GetHashCode();
9096 if (HasDummy9) hash ^= Dummy9.GetHashCode();
9097 if (HasDummy10) hash ^= Dummy10.GetHashCode();
9098 if (HasDummy11) hash ^= Dummy11.GetHashCode();
9099 if (HasDummy12) hash ^= Dummy12.GetHashCode();
9100 if (HasDummy13) hash ^= Dummy13.GetHashCode();
9101 if (HasDummy14) hash ^= Dummy14.GetHashCode();
9102 if (HasDummy15) hash ^= Dummy15.GetHashCode();
9103 if (HasDummy16) hash ^= Dummy16.GetHashCode();
9104 if (HasDummy17) hash ^= Dummy17.GetHashCode();
9105 if (HasDummy18) hash ^= Dummy18.GetHashCode();
9106 if (HasDummy19) hash ^= Dummy19.GetHashCode();
9107 if (HasDummy20) hash ^= Dummy20.GetHashCode();
9108 if (HasDummy21) hash ^= Dummy21.GetHashCode();
9109 if (HasDummy22) hash ^= Dummy22.GetHashCode();
9110 if (HasDummy23) hash ^= Dummy23.GetHashCode();
9111 if (HasDummy24) hash ^= Dummy24.GetHashCode();
9112 if (HasDummy25) hash ^= Dummy25.GetHashCode();
9113 if (HasDummy26) hash ^= Dummy26.GetHashCode();
9114 if (HasDummy27) hash ^= Dummy27.GetHashCode();
9115 if (HasDummy28) hash ^= Dummy28.GetHashCode();
9116 if (HasDummy29) hash ^= Dummy29.GetHashCode();
9117 if (HasDummy30) hash ^= Dummy30.GetHashCode();
9118 if (HasDummy31) hash ^= Dummy31.GetHashCode();
9119 if (HasDummy32) hash ^= Dummy32.GetHashCode();
9120 if (HasC) hash ^= C.GetHashCode();
9121 if (_unknownFields != null) {
9122 hash ^= _unknownFields.GetHashCode();
9123 }
9124 return hash;
9125 }
9126
9127 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +02009128 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -05009129 public override string ToString() {
9130 return pb::JsonFormatter.ToDiagnosticString(this);
9131 }
9132
9133 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +02009134 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -05009135 public void WriteTo(pb::CodedOutputStream output) {
Jan Tattermusch125e4ad2020-05-29 04:32:43 -04009136 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
9137 output.WriteRawMessage(this);
9138 #else
Sydney Acksman8a57ec82019-03-21 17:36:36 -05009139 if (HasA) {
9140 output.WriteRawTag(8);
9141 output.WriteInt32(A);
9142 }
9143 if (HasDummy2) {
9144 output.WriteRawTag(16);
9145 output.WriteInt32(Dummy2);
9146 }
9147 if (HasB) {
9148 output.WriteRawTag(24);
9149 output.WriteInt32(B);
9150 }
9151 if (HasDummy4) {
9152 output.WriteRawTag(32);
9153 output.WriteInt32(Dummy4);
9154 }
9155 if (HasDummy5) {
9156 output.WriteRawTag(40);
9157 output.WriteInt32(Dummy5);
9158 }
9159 if (HasDummy6) {
9160 output.WriteRawTag(48);
9161 output.WriteInt32(Dummy6);
9162 }
9163 if (HasDummy7) {
9164 output.WriteRawTag(56);
9165 output.WriteInt32(Dummy7);
9166 }
9167 if (HasDummy8) {
9168 output.WriteRawTag(64);
9169 output.WriteInt32(Dummy8);
9170 }
9171 if (HasDummy9) {
9172 output.WriteRawTag(72);
9173 output.WriteInt32(Dummy9);
9174 }
9175 if (HasDummy10) {
9176 output.WriteRawTag(80);
9177 output.WriteInt32(Dummy10);
9178 }
9179 if (HasDummy11) {
9180 output.WriteRawTag(88);
9181 output.WriteInt32(Dummy11);
9182 }
9183 if (HasDummy12) {
9184 output.WriteRawTag(96);
9185 output.WriteInt32(Dummy12);
9186 }
9187 if (HasDummy13) {
9188 output.WriteRawTag(104);
9189 output.WriteInt32(Dummy13);
9190 }
9191 if (HasDummy14) {
9192 output.WriteRawTag(112);
9193 output.WriteInt32(Dummy14);
9194 }
9195 if (HasDummy15) {
9196 output.WriteRawTag(120);
9197 output.WriteInt32(Dummy15);
9198 }
9199 if (HasDummy16) {
9200 output.WriteRawTag(128, 1);
9201 output.WriteInt32(Dummy16);
9202 }
9203 if (HasDummy17) {
9204 output.WriteRawTag(136, 1);
9205 output.WriteInt32(Dummy17);
9206 }
9207 if (HasDummy18) {
9208 output.WriteRawTag(144, 1);
9209 output.WriteInt32(Dummy18);
9210 }
9211 if (HasDummy19) {
9212 output.WriteRawTag(152, 1);
9213 output.WriteInt32(Dummy19);
9214 }
9215 if (HasDummy20) {
9216 output.WriteRawTag(160, 1);
9217 output.WriteInt32(Dummy20);
9218 }
9219 if (HasDummy21) {
9220 output.WriteRawTag(168, 1);
9221 output.WriteInt32(Dummy21);
9222 }
9223 if (HasDummy22) {
9224 output.WriteRawTag(176, 1);
9225 output.WriteInt32(Dummy22);
9226 }
9227 if (HasDummy23) {
9228 output.WriteRawTag(184, 1);
9229 output.WriteInt32(Dummy23);
9230 }
9231 if (HasDummy24) {
9232 output.WriteRawTag(192, 1);
9233 output.WriteInt32(Dummy24);
9234 }
9235 if (HasDummy25) {
9236 output.WriteRawTag(200, 1);
9237 output.WriteInt32(Dummy25);
9238 }
9239 if (HasDummy26) {
9240 output.WriteRawTag(208, 1);
9241 output.WriteInt32(Dummy26);
9242 }
9243 if (HasDummy27) {
9244 output.WriteRawTag(216, 1);
9245 output.WriteInt32(Dummy27);
9246 }
9247 if (HasDummy28) {
9248 output.WriteRawTag(224, 1);
9249 output.WriteInt32(Dummy28);
9250 }
9251 if (HasDummy29) {
9252 output.WriteRawTag(232, 1);
9253 output.WriteInt32(Dummy29);
9254 }
9255 if (HasDummy30) {
9256 output.WriteRawTag(240, 1);
9257 output.WriteInt32(Dummy30);
9258 }
9259 if (HasDummy31) {
9260 output.WriteRawTag(248, 1);
9261 output.WriteInt32(Dummy31);
9262 }
9263 if (HasDummy32) {
9264 output.WriteRawTag(128, 2);
9265 output.WriteInt32(Dummy32);
9266 }
9267 if (HasC) {
9268 output.WriteRawTag(136, 2);
9269 output.WriteInt32(C);
9270 }
9271 if (_unknownFields != null) {
9272 _unknownFields.WriteTo(output);
9273 }
Jan Tattermusch125e4ad2020-05-29 04:32:43 -04009274 #endif
Sydney Acksman8a57ec82019-03-21 17:36:36 -05009275 }
9276
Jan Tattermusch125e4ad2020-05-29 04:32:43 -04009277 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
9278 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +02009279 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Jan Tattermusch125e4ad2020-05-29 04:32:43 -04009280 void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
9281 if (HasA) {
9282 output.WriteRawTag(8);
9283 output.WriteInt32(A);
9284 }
9285 if (HasDummy2) {
9286 output.WriteRawTag(16);
9287 output.WriteInt32(Dummy2);
9288 }
9289 if (HasB) {
9290 output.WriteRawTag(24);
9291 output.WriteInt32(B);
9292 }
9293 if (HasDummy4) {
9294 output.WriteRawTag(32);
9295 output.WriteInt32(Dummy4);
9296 }
9297 if (HasDummy5) {
9298 output.WriteRawTag(40);
9299 output.WriteInt32(Dummy5);
9300 }
9301 if (HasDummy6) {
9302 output.WriteRawTag(48);
9303 output.WriteInt32(Dummy6);
9304 }
9305 if (HasDummy7) {
9306 output.WriteRawTag(56);
9307 output.WriteInt32(Dummy7);
9308 }
9309 if (HasDummy8) {
9310 output.WriteRawTag(64);
9311 output.WriteInt32(Dummy8);
9312 }
9313 if (HasDummy9) {
9314 output.WriteRawTag(72);
9315 output.WriteInt32(Dummy9);
9316 }
9317 if (HasDummy10) {
9318 output.WriteRawTag(80);
9319 output.WriteInt32(Dummy10);
9320 }
9321 if (HasDummy11) {
9322 output.WriteRawTag(88);
9323 output.WriteInt32(Dummy11);
9324 }
9325 if (HasDummy12) {
9326 output.WriteRawTag(96);
9327 output.WriteInt32(Dummy12);
9328 }
9329 if (HasDummy13) {
9330 output.WriteRawTag(104);
9331 output.WriteInt32(Dummy13);
9332 }
9333 if (HasDummy14) {
9334 output.WriteRawTag(112);
9335 output.WriteInt32(Dummy14);
9336 }
9337 if (HasDummy15) {
9338 output.WriteRawTag(120);
9339 output.WriteInt32(Dummy15);
9340 }
9341 if (HasDummy16) {
9342 output.WriteRawTag(128, 1);
9343 output.WriteInt32(Dummy16);
9344 }
9345 if (HasDummy17) {
9346 output.WriteRawTag(136, 1);
9347 output.WriteInt32(Dummy17);
9348 }
9349 if (HasDummy18) {
9350 output.WriteRawTag(144, 1);
9351 output.WriteInt32(Dummy18);
9352 }
9353 if (HasDummy19) {
9354 output.WriteRawTag(152, 1);
9355 output.WriteInt32(Dummy19);
9356 }
9357 if (HasDummy20) {
9358 output.WriteRawTag(160, 1);
9359 output.WriteInt32(Dummy20);
9360 }
9361 if (HasDummy21) {
9362 output.WriteRawTag(168, 1);
9363 output.WriteInt32(Dummy21);
9364 }
9365 if (HasDummy22) {
9366 output.WriteRawTag(176, 1);
9367 output.WriteInt32(Dummy22);
9368 }
9369 if (HasDummy23) {
9370 output.WriteRawTag(184, 1);
9371 output.WriteInt32(Dummy23);
9372 }
9373 if (HasDummy24) {
9374 output.WriteRawTag(192, 1);
9375 output.WriteInt32(Dummy24);
9376 }
9377 if (HasDummy25) {
9378 output.WriteRawTag(200, 1);
9379 output.WriteInt32(Dummy25);
9380 }
9381 if (HasDummy26) {
9382 output.WriteRawTag(208, 1);
9383 output.WriteInt32(Dummy26);
9384 }
9385 if (HasDummy27) {
9386 output.WriteRawTag(216, 1);
9387 output.WriteInt32(Dummy27);
9388 }
9389 if (HasDummy28) {
9390 output.WriteRawTag(224, 1);
9391 output.WriteInt32(Dummy28);
9392 }
9393 if (HasDummy29) {
9394 output.WriteRawTag(232, 1);
9395 output.WriteInt32(Dummy29);
9396 }
9397 if (HasDummy30) {
9398 output.WriteRawTag(240, 1);
9399 output.WriteInt32(Dummy30);
9400 }
9401 if (HasDummy31) {
9402 output.WriteRawTag(248, 1);
9403 output.WriteInt32(Dummy31);
9404 }
9405 if (HasDummy32) {
9406 output.WriteRawTag(128, 2);
9407 output.WriteInt32(Dummy32);
9408 }
9409 if (HasC) {
9410 output.WriteRawTag(136, 2);
9411 output.WriteInt32(C);
9412 }
9413 if (_unknownFields != null) {
9414 _unknownFields.WriteTo(ref output);
9415 }
9416 }
9417 #endif
9418
Sydney Acksman8a57ec82019-03-21 17:36:36 -05009419 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +02009420 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -05009421 public int CalculateSize() {
9422 int size = 0;
9423 if (HasA) {
9424 size += 1 + pb::CodedOutputStream.ComputeInt32Size(A);
9425 }
9426 if (HasDummy2) {
9427 size += 1 + pb::CodedOutputStream.ComputeInt32Size(Dummy2);
9428 }
9429 if (HasB) {
9430 size += 1 + pb::CodedOutputStream.ComputeInt32Size(B);
9431 }
9432 if (HasDummy4) {
9433 size += 1 + pb::CodedOutputStream.ComputeInt32Size(Dummy4);
9434 }
9435 if (HasDummy5) {
9436 size += 1 + pb::CodedOutputStream.ComputeInt32Size(Dummy5);
9437 }
9438 if (HasDummy6) {
9439 size += 1 + pb::CodedOutputStream.ComputeInt32Size(Dummy6);
9440 }
9441 if (HasDummy7) {
9442 size += 1 + pb::CodedOutputStream.ComputeInt32Size(Dummy7);
9443 }
9444 if (HasDummy8) {
9445 size += 1 + pb::CodedOutputStream.ComputeInt32Size(Dummy8);
9446 }
9447 if (HasDummy9) {
9448 size += 1 + pb::CodedOutputStream.ComputeInt32Size(Dummy9);
9449 }
9450 if (HasDummy10) {
9451 size += 1 + pb::CodedOutputStream.ComputeInt32Size(Dummy10);
9452 }
9453 if (HasDummy11) {
9454 size += 1 + pb::CodedOutputStream.ComputeInt32Size(Dummy11);
9455 }
9456 if (HasDummy12) {
9457 size += 1 + pb::CodedOutputStream.ComputeInt32Size(Dummy12);
9458 }
9459 if (HasDummy13) {
9460 size += 1 + pb::CodedOutputStream.ComputeInt32Size(Dummy13);
9461 }
9462 if (HasDummy14) {
9463 size += 1 + pb::CodedOutputStream.ComputeInt32Size(Dummy14);
9464 }
9465 if (HasDummy15) {
9466 size += 1 + pb::CodedOutputStream.ComputeInt32Size(Dummy15);
9467 }
9468 if (HasDummy16) {
9469 size += 2 + pb::CodedOutputStream.ComputeInt32Size(Dummy16);
9470 }
9471 if (HasDummy17) {
9472 size += 2 + pb::CodedOutputStream.ComputeInt32Size(Dummy17);
9473 }
9474 if (HasDummy18) {
9475 size += 2 + pb::CodedOutputStream.ComputeInt32Size(Dummy18);
9476 }
9477 if (HasDummy19) {
9478 size += 2 + pb::CodedOutputStream.ComputeInt32Size(Dummy19);
9479 }
9480 if (HasDummy20) {
9481 size += 2 + pb::CodedOutputStream.ComputeInt32Size(Dummy20);
9482 }
9483 if (HasDummy21) {
9484 size += 2 + pb::CodedOutputStream.ComputeInt32Size(Dummy21);
9485 }
9486 if (HasDummy22) {
9487 size += 2 + pb::CodedOutputStream.ComputeInt32Size(Dummy22);
9488 }
9489 if (HasDummy23) {
9490 size += 2 + pb::CodedOutputStream.ComputeInt32Size(Dummy23);
9491 }
9492 if (HasDummy24) {
9493 size += 2 + pb::CodedOutputStream.ComputeInt32Size(Dummy24);
9494 }
9495 if (HasDummy25) {
9496 size += 2 + pb::CodedOutputStream.ComputeInt32Size(Dummy25);
9497 }
9498 if (HasDummy26) {
9499 size += 2 + pb::CodedOutputStream.ComputeInt32Size(Dummy26);
9500 }
9501 if (HasDummy27) {
9502 size += 2 + pb::CodedOutputStream.ComputeInt32Size(Dummy27);
9503 }
9504 if (HasDummy28) {
9505 size += 2 + pb::CodedOutputStream.ComputeInt32Size(Dummy28);
9506 }
9507 if (HasDummy29) {
9508 size += 2 + pb::CodedOutputStream.ComputeInt32Size(Dummy29);
9509 }
9510 if (HasDummy30) {
9511 size += 2 + pb::CodedOutputStream.ComputeInt32Size(Dummy30);
9512 }
9513 if (HasDummy31) {
9514 size += 2 + pb::CodedOutputStream.ComputeInt32Size(Dummy31);
9515 }
9516 if (HasDummy32) {
9517 size += 2 + pb::CodedOutputStream.ComputeInt32Size(Dummy32);
9518 }
9519 if (HasC) {
9520 size += 2 + pb::CodedOutputStream.ComputeInt32Size(C);
9521 }
9522 if (_unknownFields != null) {
9523 size += _unknownFields.CalculateSize();
9524 }
9525 return size;
9526 }
9527
9528 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +02009529 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -05009530 public void MergeFrom(TestRequired other) {
9531 if (other == null) {
9532 return;
9533 }
9534 if (other.HasA) {
9535 A = other.A;
9536 }
9537 if (other.HasDummy2) {
9538 Dummy2 = other.Dummy2;
9539 }
9540 if (other.HasB) {
9541 B = other.B;
9542 }
9543 if (other.HasDummy4) {
9544 Dummy4 = other.Dummy4;
9545 }
9546 if (other.HasDummy5) {
9547 Dummy5 = other.Dummy5;
9548 }
9549 if (other.HasDummy6) {
9550 Dummy6 = other.Dummy6;
9551 }
9552 if (other.HasDummy7) {
9553 Dummy7 = other.Dummy7;
9554 }
9555 if (other.HasDummy8) {
9556 Dummy8 = other.Dummy8;
9557 }
9558 if (other.HasDummy9) {
9559 Dummy9 = other.Dummy9;
9560 }
9561 if (other.HasDummy10) {
9562 Dummy10 = other.Dummy10;
9563 }
9564 if (other.HasDummy11) {
9565 Dummy11 = other.Dummy11;
9566 }
9567 if (other.HasDummy12) {
9568 Dummy12 = other.Dummy12;
9569 }
9570 if (other.HasDummy13) {
9571 Dummy13 = other.Dummy13;
9572 }
9573 if (other.HasDummy14) {
9574 Dummy14 = other.Dummy14;
9575 }
9576 if (other.HasDummy15) {
9577 Dummy15 = other.Dummy15;
9578 }
9579 if (other.HasDummy16) {
9580 Dummy16 = other.Dummy16;
9581 }
9582 if (other.HasDummy17) {
9583 Dummy17 = other.Dummy17;
9584 }
9585 if (other.HasDummy18) {
9586 Dummy18 = other.Dummy18;
9587 }
9588 if (other.HasDummy19) {
9589 Dummy19 = other.Dummy19;
9590 }
9591 if (other.HasDummy20) {
9592 Dummy20 = other.Dummy20;
9593 }
9594 if (other.HasDummy21) {
9595 Dummy21 = other.Dummy21;
9596 }
9597 if (other.HasDummy22) {
9598 Dummy22 = other.Dummy22;
9599 }
9600 if (other.HasDummy23) {
9601 Dummy23 = other.Dummy23;
9602 }
9603 if (other.HasDummy24) {
9604 Dummy24 = other.Dummy24;
9605 }
9606 if (other.HasDummy25) {
9607 Dummy25 = other.Dummy25;
9608 }
9609 if (other.HasDummy26) {
9610 Dummy26 = other.Dummy26;
9611 }
9612 if (other.HasDummy27) {
9613 Dummy27 = other.Dummy27;
9614 }
9615 if (other.HasDummy28) {
9616 Dummy28 = other.Dummy28;
9617 }
9618 if (other.HasDummy29) {
9619 Dummy29 = other.Dummy29;
9620 }
9621 if (other.HasDummy30) {
9622 Dummy30 = other.Dummy30;
9623 }
9624 if (other.HasDummy31) {
9625 Dummy31 = other.Dummy31;
9626 }
9627 if (other.HasDummy32) {
9628 Dummy32 = other.Dummy32;
9629 }
9630 if (other.HasC) {
9631 C = other.C;
9632 }
9633 _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
9634 }
9635
9636 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +02009637 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -05009638 public void MergeFrom(pb::CodedInputStream input) {
Jan Tattermusch7cb55972020-06-02 09:26:25 +02009639 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
Jan Tattermusch3196ef92020-04-02 15:36:16 +02009640 input.ReadRawMessage(this);
Jan Tattermusch7cb55972020-06-02 09:26:25 +02009641 #else
9642 uint tag;
9643 while ((tag = input.ReadTag()) != 0) {
9644 switch(tag) {
9645 default:
9646 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
9647 break;
9648 case 8: {
9649 A = input.ReadInt32();
9650 break;
9651 }
9652 case 16: {
9653 Dummy2 = input.ReadInt32();
9654 break;
9655 }
9656 case 24: {
9657 B = input.ReadInt32();
9658 break;
9659 }
9660 case 32: {
9661 Dummy4 = input.ReadInt32();
9662 break;
9663 }
9664 case 40: {
9665 Dummy5 = input.ReadInt32();
9666 break;
9667 }
9668 case 48: {
9669 Dummy6 = input.ReadInt32();
9670 break;
9671 }
9672 case 56: {
9673 Dummy7 = input.ReadInt32();
9674 break;
9675 }
9676 case 64: {
9677 Dummy8 = input.ReadInt32();
9678 break;
9679 }
9680 case 72: {
9681 Dummy9 = input.ReadInt32();
9682 break;
9683 }
9684 case 80: {
9685 Dummy10 = input.ReadInt32();
9686 break;
9687 }
9688 case 88: {
9689 Dummy11 = input.ReadInt32();
9690 break;
9691 }
9692 case 96: {
9693 Dummy12 = input.ReadInt32();
9694 break;
9695 }
9696 case 104: {
9697 Dummy13 = input.ReadInt32();
9698 break;
9699 }
9700 case 112: {
9701 Dummy14 = input.ReadInt32();
9702 break;
9703 }
9704 case 120: {
9705 Dummy15 = input.ReadInt32();
9706 break;
9707 }
9708 case 128: {
9709 Dummy16 = input.ReadInt32();
9710 break;
9711 }
9712 case 136: {
9713 Dummy17 = input.ReadInt32();
9714 break;
9715 }
9716 case 144: {
9717 Dummy18 = input.ReadInt32();
9718 break;
9719 }
9720 case 152: {
9721 Dummy19 = input.ReadInt32();
9722 break;
9723 }
9724 case 160: {
9725 Dummy20 = input.ReadInt32();
9726 break;
9727 }
9728 case 168: {
9729 Dummy21 = input.ReadInt32();
9730 break;
9731 }
9732 case 176: {
9733 Dummy22 = input.ReadInt32();
9734 break;
9735 }
9736 case 184: {
9737 Dummy23 = input.ReadInt32();
9738 break;
9739 }
9740 case 192: {
9741 Dummy24 = input.ReadInt32();
9742 break;
9743 }
9744 case 200: {
9745 Dummy25 = input.ReadInt32();
9746 break;
9747 }
9748 case 208: {
9749 Dummy26 = input.ReadInt32();
9750 break;
9751 }
9752 case 216: {
9753 Dummy27 = input.ReadInt32();
9754 break;
9755 }
9756 case 224: {
9757 Dummy28 = input.ReadInt32();
9758 break;
9759 }
9760 case 232: {
9761 Dummy29 = input.ReadInt32();
9762 break;
9763 }
9764 case 240: {
9765 Dummy30 = input.ReadInt32();
9766 break;
9767 }
9768 case 248: {
9769 Dummy31 = input.ReadInt32();
9770 break;
9771 }
9772 case 256: {
9773 Dummy32 = input.ReadInt32();
9774 break;
9775 }
9776 case 264: {
9777 C = input.ReadInt32();
9778 break;
9779 }
9780 }
9781 }
9782 #endif
Jan Tattermusch3196ef92020-04-02 15:36:16 +02009783 }
9784
Jan Tattermusch7cb55972020-06-02 09:26:25 +02009785 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
Jan Tattermusch3196ef92020-04-02 15:36:16 +02009786 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +02009787 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Jan Tattermusch0df7ddc2020-04-14 12:41:03 +02009788 void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
Sydney Acksman8a57ec82019-03-21 17:36:36 -05009789 uint tag;
9790 while ((tag = input.ReadTag()) != 0) {
9791 switch(tag) {
9792 default:
Jan Tattermusch3196ef92020-04-02 15:36:16 +02009793 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
Sydney Acksman8a57ec82019-03-21 17:36:36 -05009794 break;
9795 case 8: {
9796 A = input.ReadInt32();
9797 break;
9798 }
9799 case 16: {
9800 Dummy2 = input.ReadInt32();
9801 break;
9802 }
9803 case 24: {
9804 B = input.ReadInt32();
9805 break;
9806 }
9807 case 32: {
9808 Dummy4 = input.ReadInt32();
9809 break;
9810 }
9811 case 40: {
9812 Dummy5 = input.ReadInt32();
9813 break;
9814 }
9815 case 48: {
9816 Dummy6 = input.ReadInt32();
9817 break;
9818 }
9819 case 56: {
9820 Dummy7 = input.ReadInt32();
9821 break;
9822 }
9823 case 64: {
9824 Dummy8 = input.ReadInt32();
9825 break;
9826 }
9827 case 72: {
9828 Dummy9 = input.ReadInt32();
9829 break;
9830 }
9831 case 80: {
9832 Dummy10 = input.ReadInt32();
9833 break;
9834 }
9835 case 88: {
9836 Dummy11 = input.ReadInt32();
9837 break;
9838 }
9839 case 96: {
9840 Dummy12 = input.ReadInt32();
9841 break;
9842 }
9843 case 104: {
9844 Dummy13 = input.ReadInt32();
9845 break;
9846 }
9847 case 112: {
9848 Dummy14 = input.ReadInt32();
9849 break;
9850 }
9851 case 120: {
9852 Dummy15 = input.ReadInt32();
9853 break;
9854 }
9855 case 128: {
9856 Dummy16 = input.ReadInt32();
9857 break;
9858 }
9859 case 136: {
9860 Dummy17 = input.ReadInt32();
9861 break;
9862 }
9863 case 144: {
9864 Dummy18 = input.ReadInt32();
9865 break;
9866 }
9867 case 152: {
9868 Dummy19 = input.ReadInt32();
9869 break;
9870 }
9871 case 160: {
9872 Dummy20 = input.ReadInt32();
9873 break;
9874 }
9875 case 168: {
9876 Dummy21 = input.ReadInt32();
9877 break;
9878 }
9879 case 176: {
9880 Dummy22 = input.ReadInt32();
9881 break;
9882 }
9883 case 184: {
9884 Dummy23 = input.ReadInt32();
9885 break;
9886 }
9887 case 192: {
9888 Dummy24 = input.ReadInt32();
9889 break;
9890 }
9891 case 200: {
9892 Dummy25 = input.ReadInt32();
9893 break;
9894 }
9895 case 208: {
9896 Dummy26 = input.ReadInt32();
9897 break;
9898 }
9899 case 216: {
9900 Dummy27 = input.ReadInt32();
9901 break;
9902 }
9903 case 224: {
9904 Dummy28 = input.ReadInt32();
9905 break;
9906 }
9907 case 232: {
9908 Dummy29 = input.ReadInt32();
9909 break;
9910 }
9911 case 240: {
9912 Dummy30 = input.ReadInt32();
9913 break;
9914 }
9915 case 248: {
9916 Dummy31 = input.ReadInt32();
9917 break;
9918 }
9919 case 256: {
9920 Dummy32 = input.ReadInt32();
9921 break;
9922 }
9923 case 264: {
9924 C = input.ReadInt32();
9925 break;
9926 }
9927 }
9928 }
9929 }
Jan Tattermusch7cb55972020-06-02 09:26:25 +02009930 #endif
Sydney Acksman8a57ec82019-03-21 17:36:36 -05009931
9932 #region Extensions
9933 /// <summary>Container for extensions for other messages declared in the TestRequired message type.</summary>
9934 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +02009935 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -05009936 public static partial class Extensions {
9937 public static readonly pb::Extension<global::Google.Protobuf.TestProtos.Proto2.TestAllExtensions, global::Google.Protobuf.TestProtos.Proto2.TestRequired> Single =
9938 new pb::Extension<global::Google.Protobuf.TestProtos.Proto2.TestAllExtensions, global::Google.Protobuf.TestProtos.Proto2.TestRequired>(1000, pb::FieldCodec.ForMessage(8002, global::Google.Protobuf.TestProtos.Proto2.TestRequired.Parser));
9939 public static readonly pb::RepeatedExtension<global::Google.Protobuf.TestProtos.Proto2.TestAllExtensions, global::Google.Protobuf.TestProtos.Proto2.TestRequired> Multi =
9940 new pb::RepeatedExtension<global::Google.Protobuf.TestProtos.Proto2.TestAllExtensions, global::Google.Protobuf.TestProtos.Proto2.TestRequired>(1001, pb::FieldCodec.ForMessage(8010, global::Google.Protobuf.TestProtos.Proto2.TestRequired.Parser));
9941 }
9942 #endregion
9943
9944 }
9945
Jan Tattermusch7cb55972020-06-02 09:26:25 +02009946 public sealed partial class TestRequiredForeign : pb::IMessage<TestRequiredForeign>
9947 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
9948 , pb::IBufferMessage
9949 #endif
9950 {
Sydney Acksman8a57ec82019-03-21 17:36:36 -05009951 private static readonly pb::MessageParser<TestRequiredForeign> _parser = new pb::MessageParser<TestRequiredForeign>(() => new TestRequiredForeign());
9952 private pb::UnknownFieldSet _unknownFields;
9953 private int _hasBits0;
9954 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +02009955 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -05009956 public static pb::MessageParser<TestRequiredForeign> Parser { get { return _parser; } }
9957
9958 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +02009959 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -05009960 public static pbr::MessageDescriptor Descriptor {
9961 get { return global::Google.Protobuf.TestProtos.Proto2.UnittestReflection.Descriptor.MessageTypes[13]; }
9962 }
9963
9964 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +02009965 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -05009966 pbr::MessageDescriptor pb::IMessage.Descriptor {
9967 get { return Descriptor; }
9968 }
9969
9970 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +02009971 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -05009972 public TestRequiredForeign() {
9973 OnConstruction();
9974 }
9975
9976 partial void OnConstruction();
9977
9978 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +02009979 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -05009980 public TestRequiredForeign(TestRequiredForeign other) : this() {
9981 _hasBits0 = other._hasBits0;
Jon Skeet9926c952020-04-27 07:18:45 +01009982 optionalMessage_ = other.optionalMessage_ != null ? other.optionalMessage_.Clone() : null;
Sydney Acksman8a57ec82019-03-21 17:36:36 -05009983 repeatedMessage_ = other.repeatedMessage_.Clone();
9984 dummy_ = other.dummy_;
9985 _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
9986 }
9987
9988 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +02009989 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -05009990 public TestRequiredForeign Clone() {
9991 return new TestRequiredForeign(this);
9992 }
9993
9994 /// <summary>Field number for the "optional_message" field.</summary>
9995 public const int OptionalMessageFieldNumber = 1;
9996 private global::Google.Protobuf.TestProtos.Proto2.TestRequired optionalMessage_;
9997 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +02009998 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -05009999 public global::Google.Protobuf.TestProtos.Proto2.TestRequired OptionalMessage {
10000 get { return optionalMessage_; }
10001 set {
10002 optionalMessage_ = value;
10003 }
10004 }
Sydney Acksman8a57ec82019-03-21 17:36:36 -050010005
10006 /// <summary>Field number for the "repeated_message" field.</summary>
10007 public const int RepeatedMessageFieldNumber = 2;
10008 private static readonly pb::FieldCodec<global::Google.Protobuf.TestProtos.Proto2.TestRequired> _repeated_repeatedMessage_codec
10009 = pb::FieldCodec.ForMessage(18, global::Google.Protobuf.TestProtos.Proto2.TestRequired.Parser);
10010 private readonly pbc::RepeatedField<global::Google.Protobuf.TestProtos.Proto2.TestRequired> repeatedMessage_ = new pbc::RepeatedField<global::Google.Protobuf.TestProtos.Proto2.TestRequired>();
10011 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020010012 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050010013 public pbc::RepeatedField<global::Google.Protobuf.TestProtos.Proto2.TestRequired> RepeatedMessage {
10014 get { return repeatedMessage_; }
10015 }
10016
10017 /// <summary>Field number for the "dummy" field.</summary>
10018 public const int DummyFieldNumber = 3;
10019 private readonly static int DummyDefaultValue = 0;
10020
10021 private int dummy_;
10022 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020010023 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050010024 public int Dummy {
10025 get { if ((_hasBits0 & 1) != 0) { return dummy_; } else { return DummyDefaultValue; } }
10026 set {
10027 _hasBits0 |= 1;
10028 dummy_ = value;
10029 }
10030 }
10031 /// <summary>Gets whether the "dummy" field is set</summary>
10032 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020010033 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050010034 public bool HasDummy {
10035 get { return (_hasBits0 & 1) != 0; }
10036 }
10037 /// <summary>Clears the value of the "dummy" field</summary>
10038 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020010039 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050010040 public void ClearDummy() {
10041 _hasBits0 &= ~1;
10042 }
10043
10044 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020010045 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050010046 public override bool Equals(object other) {
10047 return Equals(other as TestRequiredForeign);
10048 }
10049
10050 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020010051 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050010052 public bool Equals(TestRequiredForeign other) {
10053 if (ReferenceEquals(other, null)) {
10054 return false;
10055 }
10056 if (ReferenceEquals(other, this)) {
10057 return true;
10058 }
10059 if (!object.Equals(OptionalMessage, other.OptionalMessage)) return false;
10060 if(!repeatedMessage_.Equals(other.repeatedMessage_)) return false;
10061 if (Dummy != other.Dummy) return false;
10062 return Equals(_unknownFields, other._unknownFields);
10063 }
10064
10065 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020010066 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050010067 public override int GetHashCode() {
10068 int hash = 1;
Jon Skeet9926c952020-04-27 07:18:45 +010010069 if (optionalMessage_ != null) hash ^= OptionalMessage.GetHashCode();
Sydney Acksman8a57ec82019-03-21 17:36:36 -050010070 hash ^= repeatedMessage_.GetHashCode();
10071 if (HasDummy) hash ^= Dummy.GetHashCode();
10072 if (_unknownFields != null) {
10073 hash ^= _unknownFields.GetHashCode();
10074 }
10075 return hash;
10076 }
10077
10078 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020010079 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050010080 public override string ToString() {
10081 return pb::JsonFormatter.ToDiagnosticString(this);
10082 }
10083
10084 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020010085 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050010086 public void WriteTo(pb::CodedOutputStream output) {
Jan Tattermusch125e4ad2020-05-29 04:32:43 -040010087 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
10088 output.WriteRawMessage(this);
10089 #else
Jon Skeet9926c952020-04-27 07:18:45 +010010090 if (optionalMessage_ != null) {
Sydney Acksman8a57ec82019-03-21 17:36:36 -050010091 output.WriteRawTag(10);
10092 output.WriteMessage(OptionalMessage);
10093 }
10094 repeatedMessage_.WriteTo(output, _repeated_repeatedMessage_codec);
10095 if (HasDummy) {
10096 output.WriteRawTag(24);
10097 output.WriteInt32(Dummy);
10098 }
10099 if (_unknownFields != null) {
10100 _unknownFields.WriteTo(output);
10101 }
Jan Tattermusch125e4ad2020-05-29 04:32:43 -040010102 #endif
Sydney Acksman8a57ec82019-03-21 17:36:36 -050010103 }
10104
Jan Tattermusch125e4ad2020-05-29 04:32:43 -040010105 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
10106 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020010107 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Jan Tattermusch125e4ad2020-05-29 04:32:43 -040010108 void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
10109 if (optionalMessage_ != null) {
10110 output.WriteRawTag(10);
10111 output.WriteMessage(OptionalMessage);
10112 }
10113 repeatedMessage_.WriteTo(ref output, _repeated_repeatedMessage_codec);
10114 if (HasDummy) {
10115 output.WriteRawTag(24);
10116 output.WriteInt32(Dummy);
10117 }
10118 if (_unknownFields != null) {
10119 _unknownFields.WriteTo(ref output);
10120 }
10121 }
10122 #endif
10123
Sydney Acksman8a57ec82019-03-21 17:36:36 -050010124 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020010125 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050010126 public int CalculateSize() {
10127 int size = 0;
Jon Skeet9926c952020-04-27 07:18:45 +010010128 if (optionalMessage_ != null) {
Sydney Acksman8a57ec82019-03-21 17:36:36 -050010129 size += 1 + pb::CodedOutputStream.ComputeMessageSize(OptionalMessage);
10130 }
10131 size += repeatedMessage_.CalculateSize(_repeated_repeatedMessage_codec);
10132 if (HasDummy) {
10133 size += 1 + pb::CodedOutputStream.ComputeInt32Size(Dummy);
10134 }
10135 if (_unknownFields != null) {
10136 size += _unknownFields.CalculateSize();
10137 }
10138 return size;
10139 }
10140
10141 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020010142 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050010143 public void MergeFrom(TestRequiredForeign other) {
10144 if (other == null) {
10145 return;
10146 }
Jon Skeet9926c952020-04-27 07:18:45 +010010147 if (other.optionalMessage_ != null) {
10148 if (optionalMessage_ == null) {
Sydney Acksman8a57ec82019-03-21 17:36:36 -050010149 OptionalMessage = new global::Google.Protobuf.TestProtos.Proto2.TestRequired();
10150 }
10151 OptionalMessage.MergeFrom(other.OptionalMessage);
10152 }
10153 repeatedMessage_.Add(other.repeatedMessage_);
10154 if (other.HasDummy) {
10155 Dummy = other.Dummy;
10156 }
10157 _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
10158 }
10159
10160 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020010161 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050010162 public void MergeFrom(pb::CodedInputStream input) {
Jan Tattermusch7cb55972020-06-02 09:26:25 +020010163 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
Jan Tattermusch3196ef92020-04-02 15:36:16 +020010164 input.ReadRawMessage(this);
Jan Tattermusch7cb55972020-06-02 09:26:25 +020010165 #else
10166 uint tag;
10167 while ((tag = input.ReadTag()) != 0) {
10168 switch(tag) {
10169 default:
10170 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
10171 break;
10172 case 10: {
10173 if (optionalMessage_ == null) {
10174 OptionalMessage = new global::Google.Protobuf.TestProtos.Proto2.TestRequired();
10175 }
10176 input.ReadMessage(OptionalMessage);
10177 break;
10178 }
10179 case 18: {
10180 repeatedMessage_.AddEntriesFrom(input, _repeated_repeatedMessage_codec);
10181 break;
10182 }
10183 case 24: {
10184 Dummy = input.ReadInt32();
10185 break;
10186 }
10187 }
10188 }
10189 #endif
Jan Tattermusch3196ef92020-04-02 15:36:16 +020010190 }
10191
Jan Tattermusch7cb55972020-06-02 09:26:25 +020010192 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
Jan Tattermusch3196ef92020-04-02 15:36:16 +020010193 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020010194 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Jan Tattermusch0df7ddc2020-04-14 12:41:03 +020010195 void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
Sydney Acksman8a57ec82019-03-21 17:36:36 -050010196 uint tag;
10197 while ((tag = input.ReadTag()) != 0) {
10198 switch(tag) {
10199 default:
Jan Tattermusch3196ef92020-04-02 15:36:16 +020010200 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
Sydney Acksman8a57ec82019-03-21 17:36:36 -050010201 break;
10202 case 10: {
Jon Skeet9926c952020-04-27 07:18:45 +010010203 if (optionalMessage_ == null) {
Sydney Acksman8a57ec82019-03-21 17:36:36 -050010204 OptionalMessage = new global::Google.Protobuf.TestProtos.Proto2.TestRequired();
10205 }
10206 input.ReadMessage(OptionalMessage);
10207 break;
10208 }
10209 case 18: {
Jan Tattermusch3196ef92020-04-02 15:36:16 +020010210 repeatedMessage_.AddEntriesFrom(ref input, _repeated_repeatedMessage_codec);
Sydney Acksman8a57ec82019-03-21 17:36:36 -050010211 break;
10212 }
10213 case 24: {
10214 Dummy = input.ReadInt32();
10215 break;
10216 }
10217 }
10218 }
10219 }
Jan Tattermusch7cb55972020-06-02 09:26:25 +020010220 #endif
Sydney Acksman8a57ec82019-03-21 17:36:36 -050010221
10222 }
10223
Jan Tattermusch7cb55972020-06-02 09:26:25 +020010224 public sealed partial class TestRequiredMessage : pb::IMessage<TestRequiredMessage>
10225 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
10226 , pb::IBufferMessage
10227 #endif
10228 {
Sydney Acksman8a57ec82019-03-21 17:36:36 -050010229 private static readonly pb::MessageParser<TestRequiredMessage> _parser = new pb::MessageParser<TestRequiredMessage>(() => new TestRequiredMessage());
10230 private pb::UnknownFieldSet _unknownFields;
10231 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020010232 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050010233 public static pb::MessageParser<TestRequiredMessage> Parser { get { return _parser; } }
10234
10235 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020010236 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050010237 public static pbr::MessageDescriptor Descriptor {
10238 get { return global::Google.Protobuf.TestProtos.Proto2.UnittestReflection.Descriptor.MessageTypes[14]; }
10239 }
10240
10241 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020010242 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050010243 pbr::MessageDescriptor pb::IMessage.Descriptor {
10244 get { return Descriptor; }
10245 }
10246
10247 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020010248 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050010249 public TestRequiredMessage() {
10250 OnConstruction();
10251 }
10252
10253 partial void OnConstruction();
10254
10255 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020010256 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050010257 public TestRequiredMessage(TestRequiredMessage other) : this() {
Jon Skeet9926c952020-04-27 07:18:45 +010010258 optionalMessage_ = other.optionalMessage_ != null ? other.optionalMessage_.Clone() : null;
Sydney Acksman8a57ec82019-03-21 17:36:36 -050010259 repeatedMessage_ = other.repeatedMessage_.Clone();
Jon Skeet9926c952020-04-27 07:18:45 +010010260 requiredMessage_ = other.requiredMessage_ != null ? other.requiredMessage_.Clone() : null;
Sydney Acksman8a57ec82019-03-21 17:36:36 -050010261 _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
10262 }
10263
10264 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020010265 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050010266 public TestRequiredMessage Clone() {
10267 return new TestRequiredMessage(this);
10268 }
10269
10270 /// <summary>Field number for the "optional_message" field.</summary>
10271 public const int OptionalMessageFieldNumber = 1;
10272 private global::Google.Protobuf.TestProtos.Proto2.TestRequired optionalMessage_;
10273 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020010274 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050010275 public global::Google.Protobuf.TestProtos.Proto2.TestRequired OptionalMessage {
10276 get { return optionalMessage_; }
10277 set {
10278 optionalMessage_ = value;
10279 }
10280 }
Sydney Acksman8a57ec82019-03-21 17:36:36 -050010281
10282 /// <summary>Field number for the "repeated_message" field.</summary>
10283 public const int RepeatedMessageFieldNumber = 2;
10284 private static readonly pb::FieldCodec<global::Google.Protobuf.TestProtos.Proto2.TestRequired> _repeated_repeatedMessage_codec
10285 = pb::FieldCodec.ForMessage(18, global::Google.Protobuf.TestProtos.Proto2.TestRequired.Parser);
10286 private readonly pbc::RepeatedField<global::Google.Protobuf.TestProtos.Proto2.TestRequired> repeatedMessage_ = new pbc::RepeatedField<global::Google.Protobuf.TestProtos.Proto2.TestRequired>();
10287 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020010288 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050010289 public pbc::RepeatedField<global::Google.Protobuf.TestProtos.Proto2.TestRequired> RepeatedMessage {
10290 get { return repeatedMessage_; }
10291 }
10292
10293 /// <summary>Field number for the "required_message" field.</summary>
10294 public const int RequiredMessageFieldNumber = 3;
10295 private global::Google.Protobuf.TestProtos.Proto2.TestRequired requiredMessage_;
10296 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020010297 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050010298 public global::Google.Protobuf.TestProtos.Proto2.TestRequired RequiredMessage {
10299 get { return requiredMessage_; }
10300 set {
10301 requiredMessage_ = value;
10302 }
10303 }
Sydney Acksman8a57ec82019-03-21 17:36:36 -050010304
10305 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020010306 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050010307 public override bool Equals(object other) {
10308 return Equals(other as TestRequiredMessage);
10309 }
10310
10311 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020010312 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050010313 public bool Equals(TestRequiredMessage other) {
10314 if (ReferenceEquals(other, null)) {
10315 return false;
10316 }
10317 if (ReferenceEquals(other, this)) {
10318 return true;
10319 }
10320 if (!object.Equals(OptionalMessage, other.OptionalMessage)) return false;
10321 if(!repeatedMessage_.Equals(other.repeatedMessage_)) return false;
10322 if (!object.Equals(RequiredMessage, other.RequiredMessage)) return false;
10323 return Equals(_unknownFields, other._unknownFields);
10324 }
10325
10326 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020010327 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050010328 public override int GetHashCode() {
10329 int hash = 1;
Jon Skeet9926c952020-04-27 07:18:45 +010010330 if (optionalMessage_ != null) hash ^= OptionalMessage.GetHashCode();
Sydney Acksman8a57ec82019-03-21 17:36:36 -050010331 hash ^= repeatedMessage_.GetHashCode();
Jon Skeet9926c952020-04-27 07:18:45 +010010332 if (requiredMessage_ != null) hash ^= RequiredMessage.GetHashCode();
Sydney Acksman8a57ec82019-03-21 17:36:36 -050010333 if (_unknownFields != null) {
10334 hash ^= _unknownFields.GetHashCode();
10335 }
10336 return hash;
10337 }
10338
10339 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020010340 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050010341 public override string ToString() {
10342 return pb::JsonFormatter.ToDiagnosticString(this);
10343 }
10344
10345 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020010346 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050010347 public void WriteTo(pb::CodedOutputStream output) {
Jan Tattermusch125e4ad2020-05-29 04:32:43 -040010348 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
10349 output.WriteRawMessage(this);
10350 #else
Jon Skeet9926c952020-04-27 07:18:45 +010010351 if (optionalMessage_ != null) {
Sydney Acksman8a57ec82019-03-21 17:36:36 -050010352 output.WriteRawTag(10);
10353 output.WriteMessage(OptionalMessage);
10354 }
10355 repeatedMessage_.WriteTo(output, _repeated_repeatedMessage_codec);
Jon Skeet9926c952020-04-27 07:18:45 +010010356 if (requiredMessage_ != null) {
Sydney Acksman8a57ec82019-03-21 17:36:36 -050010357 output.WriteRawTag(26);
10358 output.WriteMessage(RequiredMessage);
10359 }
10360 if (_unknownFields != null) {
10361 _unknownFields.WriteTo(output);
10362 }
Jan Tattermusch125e4ad2020-05-29 04:32:43 -040010363 #endif
Sydney Acksman8a57ec82019-03-21 17:36:36 -050010364 }
10365
Jan Tattermusch125e4ad2020-05-29 04:32:43 -040010366 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
10367 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020010368 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Jan Tattermusch125e4ad2020-05-29 04:32:43 -040010369 void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
10370 if (optionalMessage_ != null) {
10371 output.WriteRawTag(10);
10372 output.WriteMessage(OptionalMessage);
10373 }
10374 repeatedMessage_.WriteTo(ref output, _repeated_repeatedMessage_codec);
10375 if (requiredMessage_ != null) {
10376 output.WriteRawTag(26);
10377 output.WriteMessage(RequiredMessage);
10378 }
10379 if (_unknownFields != null) {
10380 _unknownFields.WriteTo(ref output);
10381 }
10382 }
10383 #endif
10384
Sydney Acksman8a57ec82019-03-21 17:36:36 -050010385 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020010386 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050010387 public int CalculateSize() {
10388 int size = 0;
Jon Skeet9926c952020-04-27 07:18:45 +010010389 if (optionalMessage_ != null) {
Sydney Acksman8a57ec82019-03-21 17:36:36 -050010390 size += 1 + pb::CodedOutputStream.ComputeMessageSize(OptionalMessage);
10391 }
10392 size += repeatedMessage_.CalculateSize(_repeated_repeatedMessage_codec);
Jon Skeet9926c952020-04-27 07:18:45 +010010393 if (requiredMessage_ != null) {
Sydney Acksman8a57ec82019-03-21 17:36:36 -050010394 size += 1 + pb::CodedOutputStream.ComputeMessageSize(RequiredMessage);
10395 }
10396 if (_unknownFields != null) {
10397 size += _unknownFields.CalculateSize();
10398 }
10399 return size;
10400 }
10401
10402 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020010403 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050010404 public void MergeFrom(TestRequiredMessage other) {
10405 if (other == null) {
10406 return;
10407 }
Jon Skeet9926c952020-04-27 07:18:45 +010010408 if (other.optionalMessage_ != null) {
10409 if (optionalMessage_ == null) {
Sydney Acksman8a57ec82019-03-21 17:36:36 -050010410 OptionalMessage = new global::Google.Protobuf.TestProtos.Proto2.TestRequired();
10411 }
10412 OptionalMessage.MergeFrom(other.OptionalMessage);
10413 }
10414 repeatedMessage_.Add(other.repeatedMessage_);
Jon Skeet9926c952020-04-27 07:18:45 +010010415 if (other.requiredMessage_ != null) {
10416 if (requiredMessage_ == null) {
Sydney Acksman8a57ec82019-03-21 17:36:36 -050010417 RequiredMessage = new global::Google.Protobuf.TestProtos.Proto2.TestRequired();
10418 }
10419 RequiredMessage.MergeFrom(other.RequiredMessage);
10420 }
10421 _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
10422 }
10423
10424 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020010425 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050010426 public void MergeFrom(pb::CodedInputStream input) {
Jan Tattermusch7cb55972020-06-02 09:26:25 +020010427 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
Jan Tattermusch3196ef92020-04-02 15:36:16 +020010428 input.ReadRawMessage(this);
Jan Tattermusch7cb55972020-06-02 09:26:25 +020010429 #else
10430 uint tag;
10431 while ((tag = input.ReadTag()) != 0) {
10432 switch(tag) {
10433 default:
10434 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
10435 break;
10436 case 10: {
10437 if (optionalMessage_ == null) {
10438 OptionalMessage = new global::Google.Protobuf.TestProtos.Proto2.TestRequired();
10439 }
10440 input.ReadMessage(OptionalMessage);
10441 break;
10442 }
10443 case 18: {
10444 repeatedMessage_.AddEntriesFrom(input, _repeated_repeatedMessage_codec);
10445 break;
10446 }
10447 case 26: {
10448 if (requiredMessage_ == null) {
10449 RequiredMessage = new global::Google.Protobuf.TestProtos.Proto2.TestRequired();
10450 }
10451 input.ReadMessage(RequiredMessage);
10452 break;
10453 }
10454 }
10455 }
10456 #endif
Jan Tattermusch3196ef92020-04-02 15:36:16 +020010457 }
10458
Jan Tattermusch7cb55972020-06-02 09:26:25 +020010459 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
Jan Tattermusch3196ef92020-04-02 15:36:16 +020010460 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020010461 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Jan Tattermusch0df7ddc2020-04-14 12:41:03 +020010462 void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
Sydney Acksman8a57ec82019-03-21 17:36:36 -050010463 uint tag;
10464 while ((tag = input.ReadTag()) != 0) {
10465 switch(tag) {
10466 default:
Jan Tattermusch3196ef92020-04-02 15:36:16 +020010467 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
Sydney Acksman8a57ec82019-03-21 17:36:36 -050010468 break;
10469 case 10: {
Jon Skeet9926c952020-04-27 07:18:45 +010010470 if (optionalMessage_ == null) {
Sydney Acksman8a57ec82019-03-21 17:36:36 -050010471 OptionalMessage = new global::Google.Protobuf.TestProtos.Proto2.TestRequired();
10472 }
10473 input.ReadMessage(OptionalMessage);
10474 break;
10475 }
10476 case 18: {
Jan Tattermusch3196ef92020-04-02 15:36:16 +020010477 repeatedMessage_.AddEntriesFrom(ref input, _repeated_repeatedMessage_codec);
Sydney Acksman8a57ec82019-03-21 17:36:36 -050010478 break;
10479 }
10480 case 26: {
Jon Skeet9926c952020-04-27 07:18:45 +010010481 if (requiredMessage_ == null) {
Sydney Acksman8a57ec82019-03-21 17:36:36 -050010482 RequiredMessage = new global::Google.Protobuf.TestProtos.Proto2.TestRequired();
10483 }
10484 input.ReadMessage(RequiredMessage);
10485 break;
10486 }
10487 }
10488 }
10489 }
Jan Tattermusch7cb55972020-06-02 09:26:25 +020010490 #endif
Sydney Acksman8a57ec82019-03-21 17:36:36 -050010491
10492 }
10493
10494 /// <summary>
10495 /// Test that we can use NestedMessage from outside TestAllTypes.
10496 /// </summary>
Jan Tattermusch7cb55972020-06-02 09:26:25 +020010497 public sealed partial class TestForeignNested : pb::IMessage<TestForeignNested>
10498 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
10499 , pb::IBufferMessage
10500 #endif
10501 {
Sydney Acksman8a57ec82019-03-21 17:36:36 -050010502 private static readonly pb::MessageParser<TestForeignNested> _parser = new pb::MessageParser<TestForeignNested>(() => new TestForeignNested());
10503 private pb::UnknownFieldSet _unknownFields;
10504 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020010505 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050010506 public static pb::MessageParser<TestForeignNested> Parser { get { return _parser; } }
10507
10508 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020010509 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050010510 public static pbr::MessageDescriptor Descriptor {
10511 get { return global::Google.Protobuf.TestProtos.Proto2.UnittestReflection.Descriptor.MessageTypes[15]; }
10512 }
10513
10514 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020010515 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050010516 pbr::MessageDescriptor pb::IMessage.Descriptor {
10517 get { return Descriptor; }
10518 }
10519
10520 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020010521 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050010522 public TestForeignNested() {
10523 OnConstruction();
10524 }
10525
10526 partial void OnConstruction();
10527
10528 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020010529 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050010530 public TestForeignNested(TestForeignNested other) : this() {
Jon Skeet9926c952020-04-27 07:18:45 +010010531 foreignNested_ = other.foreignNested_ != null ? other.foreignNested_.Clone() : null;
Sydney Acksman8a57ec82019-03-21 17:36:36 -050010532 _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
10533 }
10534
10535 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020010536 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050010537 public TestForeignNested Clone() {
10538 return new TestForeignNested(this);
10539 }
10540
10541 /// <summary>Field number for the "foreign_nested" field.</summary>
10542 public const int ForeignNestedFieldNumber = 1;
10543 private global::Google.Protobuf.TestProtos.Proto2.TestAllTypes.Types.NestedMessage foreignNested_;
10544 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020010545 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050010546 public global::Google.Protobuf.TestProtos.Proto2.TestAllTypes.Types.NestedMessage ForeignNested {
10547 get { return foreignNested_; }
10548 set {
10549 foreignNested_ = value;
10550 }
10551 }
Sydney Acksman8a57ec82019-03-21 17:36:36 -050010552
10553 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020010554 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050010555 public override bool Equals(object other) {
10556 return Equals(other as TestForeignNested);
10557 }
10558
10559 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020010560 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050010561 public bool Equals(TestForeignNested other) {
10562 if (ReferenceEquals(other, null)) {
10563 return false;
10564 }
10565 if (ReferenceEquals(other, this)) {
10566 return true;
10567 }
10568 if (!object.Equals(ForeignNested, other.ForeignNested)) return false;
10569 return Equals(_unknownFields, other._unknownFields);
10570 }
10571
10572 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020010573 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050010574 public override int GetHashCode() {
10575 int hash = 1;
Jon Skeet9926c952020-04-27 07:18:45 +010010576 if (foreignNested_ != null) hash ^= ForeignNested.GetHashCode();
Sydney Acksman8a57ec82019-03-21 17:36:36 -050010577 if (_unknownFields != null) {
10578 hash ^= _unknownFields.GetHashCode();
10579 }
10580 return hash;
10581 }
10582
10583 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020010584 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050010585 public override string ToString() {
10586 return pb::JsonFormatter.ToDiagnosticString(this);
10587 }
10588
10589 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020010590 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050010591 public void WriteTo(pb::CodedOutputStream output) {
Jan Tattermusch125e4ad2020-05-29 04:32:43 -040010592 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
10593 output.WriteRawMessage(this);
10594 #else
Jon Skeet9926c952020-04-27 07:18:45 +010010595 if (foreignNested_ != null) {
Sydney Acksman8a57ec82019-03-21 17:36:36 -050010596 output.WriteRawTag(10);
10597 output.WriteMessage(ForeignNested);
10598 }
10599 if (_unknownFields != null) {
10600 _unknownFields.WriteTo(output);
10601 }
Jan Tattermusch125e4ad2020-05-29 04:32:43 -040010602 #endif
Sydney Acksman8a57ec82019-03-21 17:36:36 -050010603 }
10604
Jan Tattermusch125e4ad2020-05-29 04:32:43 -040010605 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
10606 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020010607 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Jan Tattermusch125e4ad2020-05-29 04:32:43 -040010608 void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
10609 if (foreignNested_ != null) {
10610 output.WriteRawTag(10);
10611 output.WriteMessage(ForeignNested);
10612 }
10613 if (_unknownFields != null) {
10614 _unknownFields.WriteTo(ref output);
10615 }
10616 }
10617 #endif
10618
Sydney Acksman8a57ec82019-03-21 17:36:36 -050010619 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020010620 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050010621 public int CalculateSize() {
10622 int size = 0;
Jon Skeet9926c952020-04-27 07:18:45 +010010623 if (foreignNested_ != null) {
Sydney Acksman8a57ec82019-03-21 17:36:36 -050010624 size += 1 + pb::CodedOutputStream.ComputeMessageSize(ForeignNested);
10625 }
10626 if (_unknownFields != null) {
10627 size += _unknownFields.CalculateSize();
10628 }
10629 return size;
10630 }
10631
10632 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020010633 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050010634 public void MergeFrom(TestForeignNested other) {
10635 if (other == null) {
10636 return;
10637 }
Jon Skeet9926c952020-04-27 07:18:45 +010010638 if (other.foreignNested_ != null) {
10639 if (foreignNested_ == null) {
Sydney Acksman8a57ec82019-03-21 17:36:36 -050010640 ForeignNested = new global::Google.Protobuf.TestProtos.Proto2.TestAllTypes.Types.NestedMessage();
10641 }
10642 ForeignNested.MergeFrom(other.ForeignNested);
10643 }
10644 _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
10645 }
10646
10647 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020010648 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050010649 public void MergeFrom(pb::CodedInputStream input) {
Jan Tattermusch7cb55972020-06-02 09:26:25 +020010650 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
Jan Tattermusch3196ef92020-04-02 15:36:16 +020010651 input.ReadRawMessage(this);
Jan Tattermusch7cb55972020-06-02 09:26:25 +020010652 #else
10653 uint tag;
10654 while ((tag = input.ReadTag()) != 0) {
10655 switch(tag) {
10656 default:
10657 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
10658 break;
10659 case 10: {
10660 if (foreignNested_ == null) {
10661 ForeignNested = new global::Google.Protobuf.TestProtos.Proto2.TestAllTypes.Types.NestedMessage();
10662 }
10663 input.ReadMessage(ForeignNested);
10664 break;
10665 }
10666 }
10667 }
10668 #endif
Jan Tattermusch3196ef92020-04-02 15:36:16 +020010669 }
10670
Jan Tattermusch7cb55972020-06-02 09:26:25 +020010671 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
Jan Tattermusch3196ef92020-04-02 15:36:16 +020010672 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020010673 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Jan Tattermusch0df7ddc2020-04-14 12:41:03 +020010674 void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
Sydney Acksman8a57ec82019-03-21 17:36:36 -050010675 uint tag;
10676 while ((tag = input.ReadTag()) != 0) {
10677 switch(tag) {
10678 default:
Jan Tattermusch3196ef92020-04-02 15:36:16 +020010679 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
Sydney Acksman8a57ec82019-03-21 17:36:36 -050010680 break;
10681 case 10: {
Jon Skeet9926c952020-04-27 07:18:45 +010010682 if (foreignNested_ == null) {
Sydney Acksman8a57ec82019-03-21 17:36:36 -050010683 ForeignNested = new global::Google.Protobuf.TestProtos.Proto2.TestAllTypes.Types.NestedMessage();
10684 }
10685 input.ReadMessage(ForeignNested);
10686 break;
10687 }
10688 }
10689 }
10690 }
Jan Tattermusch7cb55972020-06-02 09:26:25 +020010691 #endif
Sydney Acksman8a57ec82019-03-21 17:36:36 -050010692
10693 }
10694
10695 /// <summary>
10696 /// TestEmptyMessage is used to test unknown field support.
10697 /// </summary>
Jan Tattermusch7cb55972020-06-02 09:26:25 +020010698 public sealed partial class TestEmptyMessage : pb::IMessage<TestEmptyMessage>
10699 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
10700 , pb::IBufferMessage
10701 #endif
10702 {
Sydney Acksman8a57ec82019-03-21 17:36:36 -050010703 private static readonly pb::MessageParser<TestEmptyMessage> _parser = new pb::MessageParser<TestEmptyMessage>(() => new TestEmptyMessage());
10704 private pb::UnknownFieldSet _unknownFields;
10705 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020010706 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050010707 public static pb::MessageParser<TestEmptyMessage> Parser { get { return _parser; } }
10708
10709 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020010710 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050010711 public static pbr::MessageDescriptor Descriptor {
10712 get { return global::Google.Protobuf.TestProtos.Proto2.UnittestReflection.Descriptor.MessageTypes[16]; }
10713 }
10714
10715 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020010716 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050010717 pbr::MessageDescriptor pb::IMessage.Descriptor {
10718 get { return Descriptor; }
10719 }
10720
10721 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020010722 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050010723 public TestEmptyMessage() {
10724 OnConstruction();
10725 }
10726
10727 partial void OnConstruction();
10728
10729 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020010730 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050010731 public TestEmptyMessage(TestEmptyMessage other) : this() {
10732 _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
10733 }
10734
10735 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020010736 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050010737 public TestEmptyMessage Clone() {
10738 return new TestEmptyMessage(this);
10739 }
10740
10741 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020010742 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050010743 public override bool Equals(object other) {
10744 return Equals(other as TestEmptyMessage);
10745 }
10746
10747 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020010748 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050010749 public bool Equals(TestEmptyMessage other) {
10750 if (ReferenceEquals(other, null)) {
10751 return false;
10752 }
10753 if (ReferenceEquals(other, this)) {
10754 return true;
10755 }
10756 return Equals(_unknownFields, other._unknownFields);
10757 }
10758
10759 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020010760 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050010761 public override int GetHashCode() {
10762 int hash = 1;
10763 if (_unknownFields != null) {
10764 hash ^= _unknownFields.GetHashCode();
10765 }
10766 return hash;
10767 }
10768
10769 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020010770 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050010771 public override string ToString() {
10772 return pb::JsonFormatter.ToDiagnosticString(this);
10773 }
10774
10775 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020010776 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050010777 public void WriteTo(pb::CodedOutputStream output) {
Jan Tattermusch125e4ad2020-05-29 04:32:43 -040010778 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
10779 output.WriteRawMessage(this);
10780 #else
Sydney Acksman8a57ec82019-03-21 17:36:36 -050010781 if (_unknownFields != null) {
10782 _unknownFields.WriteTo(output);
10783 }
Jan Tattermusch125e4ad2020-05-29 04:32:43 -040010784 #endif
Sydney Acksman8a57ec82019-03-21 17:36:36 -050010785 }
10786
Jan Tattermusch125e4ad2020-05-29 04:32:43 -040010787 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
10788 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020010789 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Jan Tattermusch125e4ad2020-05-29 04:32:43 -040010790 void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
10791 if (_unknownFields != null) {
10792 _unknownFields.WriteTo(ref output);
10793 }
10794 }
10795 #endif
10796
Sydney Acksman8a57ec82019-03-21 17:36:36 -050010797 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020010798 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050010799 public int CalculateSize() {
10800 int size = 0;
10801 if (_unknownFields != null) {
10802 size += _unknownFields.CalculateSize();
10803 }
10804 return size;
10805 }
10806
10807 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020010808 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050010809 public void MergeFrom(TestEmptyMessage other) {
10810 if (other == null) {
10811 return;
10812 }
10813 _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
10814 }
10815
10816 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020010817 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050010818 public void MergeFrom(pb::CodedInputStream input) {
Jan Tattermusch7cb55972020-06-02 09:26:25 +020010819 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
Jan Tattermusch3196ef92020-04-02 15:36:16 +020010820 input.ReadRawMessage(this);
Jan Tattermusch7cb55972020-06-02 09:26:25 +020010821 #else
10822 uint tag;
10823 while ((tag = input.ReadTag()) != 0) {
10824 switch(tag) {
10825 default:
10826 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
10827 break;
10828 }
10829 }
10830 #endif
Jan Tattermusch3196ef92020-04-02 15:36:16 +020010831 }
10832
Jan Tattermusch7cb55972020-06-02 09:26:25 +020010833 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
Jan Tattermusch3196ef92020-04-02 15:36:16 +020010834 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020010835 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Jan Tattermusch0df7ddc2020-04-14 12:41:03 +020010836 void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
Sydney Acksman8a57ec82019-03-21 17:36:36 -050010837 uint tag;
10838 while ((tag = input.ReadTag()) != 0) {
10839 switch(tag) {
10840 default:
Jan Tattermusch3196ef92020-04-02 15:36:16 +020010841 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
Sydney Acksman8a57ec82019-03-21 17:36:36 -050010842 break;
10843 }
10844 }
10845 }
Jan Tattermusch7cb55972020-06-02 09:26:25 +020010846 #endif
Sydney Acksman8a57ec82019-03-21 17:36:36 -050010847
10848 }
10849
10850 /// <summary>
10851 /// Like above, but declare all field numbers as potential extensions. No
10852 /// actual extensions should ever be defined for this type.
10853 /// </summary>
Jan Tattermusch7cb55972020-06-02 09:26:25 +020010854 public sealed partial class TestEmptyMessageWithExtensions : pb::IExtendableMessage<TestEmptyMessageWithExtensions>
10855 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
10856 , pb::IBufferMessage
10857 #endif
10858 {
Sydney Acksman8a57ec82019-03-21 17:36:36 -050010859 private static readonly pb::MessageParser<TestEmptyMessageWithExtensions> _parser = new pb::MessageParser<TestEmptyMessageWithExtensions>(() => new TestEmptyMessageWithExtensions());
10860 private pb::UnknownFieldSet _unknownFields;
10861 private pb::ExtensionSet<TestEmptyMessageWithExtensions> _extensions;
Sydney Acksmanc04a0272019-11-07 15:30:12 -060010862 private pb::ExtensionSet<TestEmptyMessageWithExtensions> _Extensions { get { return _extensions; } }
Sydney Acksman8a57ec82019-03-21 17:36:36 -050010863 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020010864 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050010865 public static pb::MessageParser<TestEmptyMessageWithExtensions> Parser { get { return _parser; } }
10866
10867 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020010868 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050010869 public static pbr::MessageDescriptor Descriptor {
10870 get { return global::Google.Protobuf.TestProtos.Proto2.UnittestReflection.Descriptor.MessageTypes[17]; }
10871 }
10872
10873 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020010874 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050010875 pbr::MessageDescriptor pb::IMessage.Descriptor {
10876 get { return Descriptor; }
10877 }
10878
10879 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020010880 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050010881 public TestEmptyMessageWithExtensions() {
10882 OnConstruction();
10883 }
10884
10885 partial void OnConstruction();
10886
10887 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020010888 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050010889 public TestEmptyMessageWithExtensions(TestEmptyMessageWithExtensions other) : this() {
10890 _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
10891 _extensions = pb::ExtensionSet.Clone(other._extensions);
10892 }
10893
10894 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020010895 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050010896 public TestEmptyMessageWithExtensions Clone() {
10897 return new TestEmptyMessageWithExtensions(this);
10898 }
10899
10900 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020010901 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050010902 public override bool Equals(object other) {
10903 return Equals(other as TestEmptyMessageWithExtensions);
10904 }
10905
10906 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020010907 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050010908 public bool Equals(TestEmptyMessageWithExtensions other) {
10909 if (ReferenceEquals(other, null)) {
10910 return false;
10911 }
10912 if (ReferenceEquals(other, this)) {
10913 return true;
10914 }
10915 if (!Equals(_extensions, other._extensions)) {
10916 return false;
10917 }
10918 return Equals(_unknownFields, other._unknownFields);
10919 }
10920
10921 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020010922 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050010923 public override int GetHashCode() {
10924 int hash = 1;
10925 if (_extensions != null) {
10926 hash ^= _extensions.GetHashCode();
10927 }
10928 if (_unknownFields != null) {
10929 hash ^= _unknownFields.GetHashCode();
10930 }
10931 return hash;
10932 }
10933
10934 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020010935 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050010936 public override string ToString() {
10937 return pb::JsonFormatter.ToDiagnosticString(this);
10938 }
10939
10940 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020010941 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050010942 public void WriteTo(pb::CodedOutputStream output) {
Jan Tattermusch125e4ad2020-05-29 04:32:43 -040010943 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
10944 output.WriteRawMessage(this);
10945 #else
Sydney Acksman8a57ec82019-03-21 17:36:36 -050010946 if (_extensions != null) {
10947 _extensions.WriteTo(output);
10948 }
10949 if (_unknownFields != null) {
10950 _unknownFields.WriteTo(output);
10951 }
Jan Tattermusch125e4ad2020-05-29 04:32:43 -040010952 #endif
Sydney Acksman8a57ec82019-03-21 17:36:36 -050010953 }
10954
Jan Tattermusch125e4ad2020-05-29 04:32:43 -040010955 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
10956 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020010957 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Jan Tattermusch125e4ad2020-05-29 04:32:43 -040010958 void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
10959 if (_extensions != null) {
10960 _extensions.WriteTo(ref output);
10961 }
10962 if (_unknownFields != null) {
10963 _unknownFields.WriteTo(ref output);
10964 }
10965 }
10966 #endif
10967
Sydney Acksman8a57ec82019-03-21 17:36:36 -050010968 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020010969 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050010970 public int CalculateSize() {
10971 int size = 0;
10972 if (_extensions != null) {
10973 size += _extensions.CalculateSize();
10974 }
10975 if (_unknownFields != null) {
10976 size += _unknownFields.CalculateSize();
10977 }
10978 return size;
10979 }
10980
10981 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020010982 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050010983 public void MergeFrom(TestEmptyMessageWithExtensions other) {
10984 if (other == null) {
10985 return;
10986 }
10987 pb::ExtensionSet.MergeFrom(ref _extensions, other._extensions);
10988 _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
10989 }
10990
10991 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020010992 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050010993 public void MergeFrom(pb::CodedInputStream input) {
Jan Tattermusch7cb55972020-06-02 09:26:25 +020010994 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
Jan Tattermusch3196ef92020-04-02 15:36:16 +020010995 input.ReadRawMessage(this);
Jan Tattermusch7cb55972020-06-02 09:26:25 +020010996 #else
10997 uint tag;
10998 while ((tag = input.ReadTag()) != 0) {
10999 switch(tag) {
11000 default:
11001 if (!pb::ExtensionSet.TryMergeFieldFrom(ref _extensions, input)) {
11002 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
11003 }
11004 break;
11005 }
11006 }
11007 #endif
Jan Tattermusch3196ef92020-04-02 15:36:16 +020011008 }
11009
Jan Tattermusch7cb55972020-06-02 09:26:25 +020011010 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
Jan Tattermusch3196ef92020-04-02 15:36:16 +020011011 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020011012 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Jan Tattermusch0df7ddc2020-04-14 12:41:03 +020011013 void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
Sydney Acksman8a57ec82019-03-21 17:36:36 -050011014 uint tag;
11015 while ((tag = input.ReadTag()) != 0) {
11016 switch(tag) {
11017 default:
Jan Tattermusch3196ef92020-04-02 15:36:16 +020011018 if (!pb::ExtensionSet.TryMergeFieldFrom(ref _extensions, ref input)) {
11019 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
Sydney Acksman8a57ec82019-03-21 17:36:36 -050011020 }
11021 break;
11022 }
11023 }
11024 }
Jan Tattermusch7cb55972020-06-02 09:26:25 +020011025 #endif
Sydney Acksman8a57ec82019-03-21 17:36:36 -050011026
Sydney Acksman8a57ec82019-03-21 17:36:36 -050011027 public TValue GetExtension<TValue>(pb::Extension<TestEmptyMessageWithExtensions, TValue> extension) {
11028 return pb::ExtensionSet.Get(ref _extensions, extension);
11029 }
11030 public pbc::RepeatedField<TValue> GetExtension<TValue>(pb::RepeatedExtension<TestEmptyMessageWithExtensions, TValue> extension) {
11031 return pb::ExtensionSet.Get(ref _extensions, extension);
11032 }
Sydney Acksman0436b8d2019-08-01 03:06:03 -050011033 public pbc::RepeatedField<TValue> GetOrInitializeExtension<TValue>(pb::RepeatedExtension<TestEmptyMessageWithExtensions, TValue> extension) {
11034 return pb::ExtensionSet.GetOrInitialize(ref _extensions, extension);
Sydney Acksman011427c2019-05-03 21:34:48 -050011035 }
Sydney Acksman8a57ec82019-03-21 17:36:36 -050011036 public void SetExtension<TValue>(pb::Extension<TestEmptyMessageWithExtensions, TValue> extension, TValue value) {
11037 pb::ExtensionSet.Set(ref _extensions, extension, value);
11038 }
11039 public bool HasExtension<TValue>(pb::Extension<TestEmptyMessageWithExtensions, TValue> extension) {
11040 return pb::ExtensionSet.Has(ref _extensions, extension);
11041 }
11042 public void ClearExtension<TValue>(pb::Extension<TestEmptyMessageWithExtensions, TValue> extension) {
11043 pb::ExtensionSet.Clear(ref _extensions, extension);
11044 }
Sydney Acksman011427c2019-05-03 21:34:48 -050011045 public void ClearExtension<TValue>(pb::RepeatedExtension<TestEmptyMessageWithExtensions, TValue> extension) {
11046 pb::ExtensionSet.Clear(ref _extensions, extension);
11047 }
Sydney Acksman8a57ec82019-03-21 17:36:36 -050011048
11049 }
11050
Jan Tattermusch7cb55972020-06-02 09:26:25 +020011051 public sealed partial class TestMultipleExtensionRanges : pb::IExtendableMessage<TestMultipleExtensionRanges>
11052 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
11053 , pb::IBufferMessage
11054 #endif
11055 {
Sydney Acksman8a57ec82019-03-21 17:36:36 -050011056 private static readonly pb::MessageParser<TestMultipleExtensionRanges> _parser = new pb::MessageParser<TestMultipleExtensionRanges>(() => new TestMultipleExtensionRanges());
11057 private pb::UnknownFieldSet _unknownFields;
11058 private pb::ExtensionSet<TestMultipleExtensionRanges> _extensions;
Sydney Acksmanc04a0272019-11-07 15:30:12 -060011059 private pb::ExtensionSet<TestMultipleExtensionRanges> _Extensions { get { return _extensions; } }
Sydney Acksman8a57ec82019-03-21 17:36:36 -050011060 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020011061 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050011062 public static pb::MessageParser<TestMultipleExtensionRanges> Parser { get { return _parser; } }
11063
11064 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020011065 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050011066 public static pbr::MessageDescriptor Descriptor {
11067 get { return global::Google.Protobuf.TestProtos.Proto2.UnittestReflection.Descriptor.MessageTypes[18]; }
11068 }
11069
11070 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020011071 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050011072 pbr::MessageDescriptor pb::IMessage.Descriptor {
11073 get { return Descriptor; }
11074 }
11075
11076 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020011077 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050011078 public TestMultipleExtensionRanges() {
11079 OnConstruction();
11080 }
11081
11082 partial void OnConstruction();
11083
11084 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020011085 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050011086 public TestMultipleExtensionRanges(TestMultipleExtensionRanges other) : this() {
11087 _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
11088 _extensions = pb::ExtensionSet.Clone(other._extensions);
11089 }
11090
11091 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020011092 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050011093 public TestMultipleExtensionRanges Clone() {
11094 return new TestMultipleExtensionRanges(this);
11095 }
11096
11097 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020011098 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050011099 public override bool Equals(object other) {
11100 return Equals(other as TestMultipleExtensionRanges);
11101 }
11102
11103 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020011104 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050011105 public bool Equals(TestMultipleExtensionRanges other) {
11106 if (ReferenceEquals(other, null)) {
11107 return false;
11108 }
11109 if (ReferenceEquals(other, this)) {
11110 return true;
11111 }
11112 if (!Equals(_extensions, other._extensions)) {
11113 return false;
11114 }
11115 return Equals(_unknownFields, other._unknownFields);
11116 }
11117
11118 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020011119 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050011120 public override int GetHashCode() {
11121 int hash = 1;
11122 if (_extensions != null) {
11123 hash ^= _extensions.GetHashCode();
11124 }
11125 if (_unknownFields != null) {
11126 hash ^= _unknownFields.GetHashCode();
11127 }
11128 return hash;
11129 }
11130
11131 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020011132 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050011133 public override string ToString() {
11134 return pb::JsonFormatter.ToDiagnosticString(this);
11135 }
11136
11137 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020011138 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050011139 public void WriteTo(pb::CodedOutputStream output) {
Jan Tattermusch125e4ad2020-05-29 04:32:43 -040011140 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
11141 output.WriteRawMessage(this);
11142 #else
Sydney Acksman8a57ec82019-03-21 17:36:36 -050011143 if (_extensions != null) {
11144 _extensions.WriteTo(output);
11145 }
11146 if (_unknownFields != null) {
11147 _unknownFields.WriteTo(output);
11148 }
Jan Tattermusch125e4ad2020-05-29 04:32:43 -040011149 #endif
Sydney Acksman8a57ec82019-03-21 17:36:36 -050011150 }
11151
Jan Tattermusch125e4ad2020-05-29 04:32:43 -040011152 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
11153 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020011154 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Jan Tattermusch125e4ad2020-05-29 04:32:43 -040011155 void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
11156 if (_extensions != null) {
11157 _extensions.WriteTo(ref output);
11158 }
11159 if (_unknownFields != null) {
11160 _unknownFields.WriteTo(ref output);
11161 }
11162 }
11163 #endif
11164
Sydney Acksman8a57ec82019-03-21 17:36:36 -050011165 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020011166 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050011167 public int CalculateSize() {
11168 int size = 0;
11169 if (_extensions != null) {
11170 size += _extensions.CalculateSize();
11171 }
11172 if (_unknownFields != null) {
11173 size += _unknownFields.CalculateSize();
11174 }
11175 return size;
11176 }
11177
11178 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020011179 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050011180 public void MergeFrom(TestMultipleExtensionRanges other) {
11181 if (other == null) {
11182 return;
11183 }
11184 pb::ExtensionSet.MergeFrom(ref _extensions, other._extensions);
11185 _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
11186 }
11187
11188 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020011189 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050011190 public void MergeFrom(pb::CodedInputStream input) {
Jan Tattermusch7cb55972020-06-02 09:26:25 +020011191 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
Jan Tattermusch3196ef92020-04-02 15:36:16 +020011192 input.ReadRawMessage(this);
Jan Tattermusch7cb55972020-06-02 09:26:25 +020011193 #else
11194 uint tag;
11195 while ((tag = input.ReadTag()) != 0) {
11196 switch(tag) {
11197 default:
11198 if (!pb::ExtensionSet.TryMergeFieldFrom(ref _extensions, input)) {
11199 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
11200 }
11201 break;
11202 }
11203 }
11204 #endif
Jan Tattermusch3196ef92020-04-02 15:36:16 +020011205 }
11206
Jan Tattermusch7cb55972020-06-02 09:26:25 +020011207 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
Jan Tattermusch3196ef92020-04-02 15:36:16 +020011208 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020011209 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Jan Tattermusch0df7ddc2020-04-14 12:41:03 +020011210 void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
Sydney Acksman8a57ec82019-03-21 17:36:36 -050011211 uint tag;
11212 while ((tag = input.ReadTag()) != 0) {
11213 switch(tag) {
11214 default:
Jan Tattermusch3196ef92020-04-02 15:36:16 +020011215 if (!pb::ExtensionSet.TryMergeFieldFrom(ref _extensions, ref input)) {
11216 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
Sydney Acksman8a57ec82019-03-21 17:36:36 -050011217 }
11218 break;
11219 }
11220 }
11221 }
Jan Tattermusch7cb55972020-06-02 09:26:25 +020011222 #endif
Sydney Acksman8a57ec82019-03-21 17:36:36 -050011223
Sydney Acksman8a57ec82019-03-21 17:36:36 -050011224 public TValue GetExtension<TValue>(pb::Extension<TestMultipleExtensionRanges, TValue> extension) {
11225 return pb::ExtensionSet.Get(ref _extensions, extension);
11226 }
11227 public pbc::RepeatedField<TValue> GetExtension<TValue>(pb::RepeatedExtension<TestMultipleExtensionRanges, TValue> extension) {
11228 return pb::ExtensionSet.Get(ref _extensions, extension);
11229 }
Sydney Acksman0436b8d2019-08-01 03:06:03 -050011230 public pbc::RepeatedField<TValue> GetOrInitializeExtension<TValue>(pb::RepeatedExtension<TestMultipleExtensionRanges, TValue> extension) {
11231 return pb::ExtensionSet.GetOrInitialize(ref _extensions, extension);
Sydney Acksman011427c2019-05-03 21:34:48 -050011232 }
Sydney Acksman8a57ec82019-03-21 17:36:36 -050011233 public void SetExtension<TValue>(pb::Extension<TestMultipleExtensionRanges, TValue> extension, TValue value) {
11234 pb::ExtensionSet.Set(ref _extensions, extension, value);
11235 }
11236 public bool HasExtension<TValue>(pb::Extension<TestMultipleExtensionRanges, TValue> extension) {
11237 return pb::ExtensionSet.Has(ref _extensions, extension);
11238 }
11239 public void ClearExtension<TValue>(pb::Extension<TestMultipleExtensionRanges, TValue> extension) {
11240 pb::ExtensionSet.Clear(ref _extensions, extension);
11241 }
Sydney Acksman011427c2019-05-03 21:34:48 -050011242 public void ClearExtension<TValue>(pb::RepeatedExtension<TestMultipleExtensionRanges, TValue> extension) {
11243 pb::ExtensionSet.Clear(ref _extensions, extension);
11244 }
Sydney Acksman8a57ec82019-03-21 17:36:36 -050011245
11246 }
11247
11248 /// <summary>
11249 /// Test that really large tag numbers don't break anything.
11250 /// </summary>
Jan Tattermusch7cb55972020-06-02 09:26:25 +020011251 public sealed partial class TestReallyLargeTagNumber : pb::IMessage<TestReallyLargeTagNumber>
11252 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
11253 , pb::IBufferMessage
11254 #endif
11255 {
Sydney Acksman8a57ec82019-03-21 17:36:36 -050011256 private static readonly pb::MessageParser<TestReallyLargeTagNumber> _parser = new pb::MessageParser<TestReallyLargeTagNumber>(() => new TestReallyLargeTagNumber());
11257 private pb::UnknownFieldSet _unknownFields;
11258 private int _hasBits0;
11259 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020011260 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050011261 public static pb::MessageParser<TestReallyLargeTagNumber> Parser { get { return _parser; } }
11262
11263 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020011264 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050011265 public static pbr::MessageDescriptor Descriptor {
11266 get { return global::Google.Protobuf.TestProtos.Proto2.UnittestReflection.Descriptor.MessageTypes[19]; }
11267 }
11268
11269 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020011270 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050011271 pbr::MessageDescriptor pb::IMessage.Descriptor {
11272 get { return Descriptor; }
11273 }
11274
11275 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020011276 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050011277 public TestReallyLargeTagNumber() {
11278 OnConstruction();
11279 }
11280
11281 partial void OnConstruction();
11282
11283 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020011284 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050011285 public TestReallyLargeTagNumber(TestReallyLargeTagNumber other) : this() {
11286 _hasBits0 = other._hasBits0;
11287 a_ = other.a_;
11288 bb_ = other.bb_;
11289 _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
11290 }
11291
11292 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020011293 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050011294 public TestReallyLargeTagNumber Clone() {
11295 return new TestReallyLargeTagNumber(this);
11296 }
11297
11298 /// <summary>Field number for the "a" field.</summary>
11299 public const int AFieldNumber = 1;
11300 private readonly static int ADefaultValue = 0;
11301
11302 private int a_;
11303 /// <summary>
11304 /// The largest possible tag number is 2^28 - 1, since the wire format uses
11305 /// three bits to communicate wire type.
11306 /// </summary>
11307 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020011308 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050011309 public int A {
11310 get { if ((_hasBits0 & 1) != 0) { return a_; } else { return ADefaultValue; } }
11311 set {
11312 _hasBits0 |= 1;
11313 a_ = value;
11314 }
11315 }
11316 /// <summary>Gets whether the "a" field is set</summary>
11317 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020011318 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050011319 public bool HasA {
11320 get { return (_hasBits0 & 1) != 0; }
11321 }
11322 /// <summary>Clears the value of the "a" field</summary>
11323 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020011324 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050011325 public void ClearA() {
11326 _hasBits0 &= ~1;
11327 }
11328
11329 /// <summary>Field number for the "bb" field.</summary>
11330 public const int BbFieldNumber = 268435455;
11331 private readonly static int BbDefaultValue = 0;
11332
11333 private int bb_;
11334 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020011335 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050011336 public int Bb {
11337 get { if ((_hasBits0 & 2) != 0) { return bb_; } else { return BbDefaultValue; } }
11338 set {
11339 _hasBits0 |= 2;
11340 bb_ = value;
11341 }
11342 }
11343 /// <summary>Gets whether the "bb" field is set</summary>
11344 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020011345 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050011346 public bool HasBb {
11347 get { return (_hasBits0 & 2) != 0; }
11348 }
11349 /// <summary>Clears the value of the "bb" field</summary>
11350 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020011351 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050011352 public void ClearBb() {
11353 _hasBits0 &= ~2;
11354 }
11355
11356 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020011357 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050011358 public override bool Equals(object other) {
11359 return Equals(other as TestReallyLargeTagNumber);
11360 }
11361
11362 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020011363 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050011364 public bool Equals(TestReallyLargeTagNumber other) {
11365 if (ReferenceEquals(other, null)) {
11366 return false;
11367 }
11368 if (ReferenceEquals(other, this)) {
11369 return true;
11370 }
11371 if (A != other.A) return false;
11372 if (Bb != other.Bb) return false;
11373 return Equals(_unknownFields, other._unknownFields);
11374 }
11375
11376 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020011377 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050011378 public override int GetHashCode() {
11379 int hash = 1;
11380 if (HasA) hash ^= A.GetHashCode();
11381 if (HasBb) hash ^= Bb.GetHashCode();
11382 if (_unknownFields != null) {
11383 hash ^= _unknownFields.GetHashCode();
11384 }
11385 return hash;
11386 }
11387
11388 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020011389 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050011390 public override string ToString() {
11391 return pb::JsonFormatter.ToDiagnosticString(this);
11392 }
11393
11394 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020011395 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050011396 public void WriteTo(pb::CodedOutputStream output) {
Jan Tattermusch125e4ad2020-05-29 04:32:43 -040011397 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
11398 output.WriteRawMessage(this);
11399 #else
Sydney Acksman8a57ec82019-03-21 17:36:36 -050011400 if (HasA) {
11401 output.WriteRawTag(8);
11402 output.WriteInt32(A);
11403 }
11404 if (HasBb) {
11405 output.WriteRawTag(248, 255, 255, 255, 7);
11406 output.WriteInt32(Bb);
11407 }
11408 if (_unknownFields != null) {
11409 _unknownFields.WriteTo(output);
11410 }
Jan Tattermusch125e4ad2020-05-29 04:32:43 -040011411 #endif
Sydney Acksman8a57ec82019-03-21 17:36:36 -050011412 }
11413
Jan Tattermusch125e4ad2020-05-29 04:32:43 -040011414 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
11415 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020011416 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Jan Tattermusch125e4ad2020-05-29 04:32:43 -040011417 void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
11418 if (HasA) {
11419 output.WriteRawTag(8);
11420 output.WriteInt32(A);
11421 }
11422 if (HasBb) {
11423 output.WriteRawTag(248, 255, 255, 255, 7);
11424 output.WriteInt32(Bb);
11425 }
11426 if (_unknownFields != null) {
11427 _unknownFields.WriteTo(ref output);
11428 }
11429 }
11430 #endif
11431
Sydney Acksman8a57ec82019-03-21 17:36:36 -050011432 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020011433 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050011434 public int CalculateSize() {
11435 int size = 0;
11436 if (HasA) {
11437 size += 1 + pb::CodedOutputStream.ComputeInt32Size(A);
11438 }
11439 if (HasBb) {
11440 size += 5 + pb::CodedOutputStream.ComputeInt32Size(Bb);
11441 }
11442 if (_unknownFields != null) {
11443 size += _unknownFields.CalculateSize();
11444 }
11445 return size;
11446 }
11447
11448 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020011449 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050011450 public void MergeFrom(TestReallyLargeTagNumber other) {
11451 if (other == null) {
11452 return;
11453 }
11454 if (other.HasA) {
11455 A = other.A;
11456 }
11457 if (other.HasBb) {
11458 Bb = other.Bb;
11459 }
11460 _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
11461 }
11462
11463 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020011464 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050011465 public void MergeFrom(pb::CodedInputStream input) {
Jan Tattermusch7cb55972020-06-02 09:26:25 +020011466 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
Jan Tattermusch3196ef92020-04-02 15:36:16 +020011467 input.ReadRawMessage(this);
Jan Tattermusch7cb55972020-06-02 09:26:25 +020011468 #else
11469 uint tag;
11470 while ((tag = input.ReadTag()) != 0) {
11471 switch(tag) {
11472 default:
11473 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
11474 break;
11475 case 8: {
11476 A = input.ReadInt32();
11477 break;
11478 }
11479 case 2147483640: {
11480 Bb = input.ReadInt32();
11481 break;
11482 }
11483 }
11484 }
11485 #endif
Jan Tattermusch3196ef92020-04-02 15:36:16 +020011486 }
11487
Jan Tattermusch7cb55972020-06-02 09:26:25 +020011488 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
Jan Tattermusch3196ef92020-04-02 15:36:16 +020011489 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020011490 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Jan Tattermusch0df7ddc2020-04-14 12:41:03 +020011491 void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
Sydney Acksman8a57ec82019-03-21 17:36:36 -050011492 uint tag;
11493 while ((tag = input.ReadTag()) != 0) {
11494 switch(tag) {
11495 default:
Jan Tattermusch3196ef92020-04-02 15:36:16 +020011496 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
Sydney Acksman8a57ec82019-03-21 17:36:36 -050011497 break;
11498 case 8: {
11499 A = input.ReadInt32();
11500 break;
11501 }
11502 case 2147483640: {
11503 Bb = input.ReadInt32();
11504 break;
11505 }
11506 }
11507 }
11508 }
Jan Tattermusch7cb55972020-06-02 09:26:25 +020011509 #endif
Sydney Acksman8a57ec82019-03-21 17:36:36 -050011510
11511 }
11512
Jan Tattermusch7cb55972020-06-02 09:26:25 +020011513 public sealed partial class TestRecursiveMessage : pb::IMessage<TestRecursiveMessage>
11514 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
11515 , pb::IBufferMessage
11516 #endif
11517 {
Sydney Acksman8a57ec82019-03-21 17:36:36 -050011518 private static readonly pb::MessageParser<TestRecursiveMessage> _parser = new pb::MessageParser<TestRecursiveMessage>(() => new TestRecursiveMessage());
11519 private pb::UnknownFieldSet _unknownFields;
11520 private int _hasBits0;
11521 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020011522 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050011523 public static pb::MessageParser<TestRecursiveMessage> Parser { get { return _parser; } }
11524
11525 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020011526 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050011527 public static pbr::MessageDescriptor Descriptor {
11528 get { return global::Google.Protobuf.TestProtos.Proto2.UnittestReflection.Descriptor.MessageTypes[20]; }
11529 }
11530
11531 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020011532 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050011533 pbr::MessageDescriptor pb::IMessage.Descriptor {
11534 get { return Descriptor; }
11535 }
11536
11537 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020011538 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050011539 public TestRecursiveMessage() {
11540 OnConstruction();
11541 }
11542
11543 partial void OnConstruction();
11544
11545 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020011546 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050011547 public TestRecursiveMessage(TestRecursiveMessage other) : this() {
11548 _hasBits0 = other._hasBits0;
Jon Skeet9926c952020-04-27 07:18:45 +010011549 a_ = other.a_ != null ? other.a_.Clone() : null;
Sydney Acksman8a57ec82019-03-21 17:36:36 -050011550 i_ = other.i_;
11551 _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
11552 }
11553
11554 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020011555 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050011556 public TestRecursiveMessage Clone() {
11557 return new TestRecursiveMessage(this);
11558 }
11559
11560 /// <summary>Field number for the "a" field.</summary>
11561 public const int AFieldNumber = 1;
11562 private global::Google.Protobuf.TestProtos.Proto2.TestRecursiveMessage a_;
11563 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020011564 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050011565 public global::Google.Protobuf.TestProtos.Proto2.TestRecursiveMessage A {
11566 get { return a_; }
11567 set {
11568 a_ = value;
11569 }
11570 }
Sydney Acksman8a57ec82019-03-21 17:36:36 -050011571
11572 /// <summary>Field number for the "i" field.</summary>
11573 public const int IFieldNumber = 2;
11574 private readonly static int IDefaultValue = 0;
11575
11576 private int i_;
11577 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020011578 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050011579 public int I {
11580 get { if ((_hasBits0 & 1) != 0) { return i_; } else { return IDefaultValue; } }
11581 set {
11582 _hasBits0 |= 1;
11583 i_ = value;
11584 }
11585 }
11586 /// <summary>Gets whether the "i" field is set</summary>
11587 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020011588 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050011589 public bool HasI {
11590 get { return (_hasBits0 & 1) != 0; }
11591 }
11592 /// <summary>Clears the value of the "i" field</summary>
11593 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020011594 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050011595 public void ClearI() {
11596 _hasBits0 &= ~1;
11597 }
11598
11599 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020011600 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050011601 public override bool Equals(object other) {
11602 return Equals(other as TestRecursiveMessage);
11603 }
11604
11605 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020011606 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050011607 public bool Equals(TestRecursiveMessage other) {
11608 if (ReferenceEquals(other, null)) {
11609 return false;
11610 }
11611 if (ReferenceEquals(other, this)) {
11612 return true;
11613 }
11614 if (!object.Equals(A, other.A)) return false;
11615 if (I != other.I) return false;
11616 return Equals(_unknownFields, other._unknownFields);
11617 }
11618
11619 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020011620 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050011621 public override int GetHashCode() {
11622 int hash = 1;
Jon Skeet9926c952020-04-27 07:18:45 +010011623 if (a_ != null) hash ^= A.GetHashCode();
Sydney Acksman8a57ec82019-03-21 17:36:36 -050011624 if (HasI) hash ^= I.GetHashCode();
11625 if (_unknownFields != null) {
11626 hash ^= _unknownFields.GetHashCode();
11627 }
11628 return hash;
11629 }
11630
11631 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020011632 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050011633 public override string ToString() {
11634 return pb::JsonFormatter.ToDiagnosticString(this);
11635 }
11636
11637 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020011638 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050011639 public void WriteTo(pb::CodedOutputStream output) {
Jan Tattermusch125e4ad2020-05-29 04:32:43 -040011640 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
11641 output.WriteRawMessage(this);
11642 #else
Jon Skeet9926c952020-04-27 07:18:45 +010011643 if (a_ != null) {
Sydney Acksman8a57ec82019-03-21 17:36:36 -050011644 output.WriteRawTag(10);
11645 output.WriteMessage(A);
11646 }
11647 if (HasI) {
11648 output.WriteRawTag(16);
11649 output.WriteInt32(I);
11650 }
11651 if (_unknownFields != null) {
11652 _unknownFields.WriteTo(output);
11653 }
Jan Tattermusch125e4ad2020-05-29 04:32:43 -040011654 #endif
Sydney Acksman8a57ec82019-03-21 17:36:36 -050011655 }
11656
Jan Tattermusch125e4ad2020-05-29 04:32:43 -040011657 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
11658 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020011659 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Jan Tattermusch125e4ad2020-05-29 04:32:43 -040011660 void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
11661 if (a_ != null) {
11662 output.WriteRawTag(10);
11663 output.WriteMessage(A);
11664 }
11665 if (HasI) {
11666 output.WriteRawTag(16);
11667 output.WriteInt32(I);
11668 }
11669 if (_unknownFields != null) {
11670 _unknownFields.WriteTo(ref output);
11671 }
11672 }
11673 #endif
11674
Sydney Acksman8a57ec82019-03-21 17:36:36 -050011675 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020011676 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050011677 public int CalculateSize() {
11678 int size = 0;
Jon Skeet9926c952020-04-27 07:18:45 +010011679 if (a_ != null) {
Sydney Acksman8a57ec82019-03-21 17:36:36 -050011680 size += 1 + pb::CodedOutputStream.ComputeMessageSize(A);
11681 }
11682 if (HasI) {
11683 size += 1 + pb::CodedOutputStream.ComputeInt32Size(I);
11684 }
11685 if (_unknownFields != null) {
11686 size += _unknownFields.CalculateSize();
11687 }
11688 return size;
11689 }
11690
11691 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020011692 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050011693 public void MergeFrom(TestRecursiveMessage other) {
11694 if (other == null) {
11695 return;
11696 }
Jon Skeet9926c952020-04-27 07:18:45 +010011697 if (other.a_ != null) {
11698 if (a_ == null) {
Sydney Acksman8a57ec82019-03-21 17:36:36 -050011699 A = new global::Google.Protobuf.TestProtos.Proto2.TestRecursiveMessage();
11700 }
11701 A.MergeFrom(other.A);
11702 }
11703 if (other.HasI) {
11704 I = other.I;
11705 }
11706 _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
11707 }
11708
11709 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020011710 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050011711 public void MergeFrom(pb::CodedInputStream input) {
Jan Tattermusch7cb55972020-06-02 09:26:25 +020011712 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
Jan Tattermusch3196ef92020-04-02 15:36:16 +020011713 input.ReadRawMessage(this);
Jan Tattermusch7cb55972020-06-02 09:26:25 +020011714 #else
11715 uint tag;
11716 while ((tag = input.ReadTag()) != 0) {
11717 switch(tag) {
11718 default:
11719 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
11720 break;
11721 case 10: {
11722 if (a_ == null) {
11723 A = new global::Google.Protobuf.TestProtos.Proto2.TestRecursiveMessage();
11724 }
11725 input.ReadMessage(A);
11726 break;
11727 }
11728 case 16: {
11729 I = input.ReadInt32();
11730 break;
11731 }
11732 }
11733 }
11734 #endif
Jan Tattermusch3196ef92020-04-02 15:36:16 +020011735 }
11736
Jan Tattermusch7cb55972020-06-02 09:26:25 +020011737 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
Jan Tattermusch3196ef92020-04-02 15:36:16 +020011738 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020011739 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Jan Tattermusch0df7ddc2020-04-14 12:41:03 +020011740 void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
Sydney Acksman8a57ec82019-03-21 17:36:36 -050011741 uint tag;
11742 while ((tag = input.ReadTag()) != 0) {
11743 switch(tag) {
11744 default:
Jan Tattermusch3196ef92020-04-02 15:36:16 +020011745 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
Sydney Acksman8a57ec82019-03-21 17:36:36 -050011746 break;
11747 case 10: {
Jon Skeet9926c952020-04-27 07:18:45 +010011748 if (a_ == null) {
Sydney Acksman8a57ec82019-03-21 17:36:36 -050011749 A = new global::Google.Protobuf.TestProtos.Proto2.TestRecursiveMessage();
11750 }
11751 input.ReadMessage(A);
11752 break;
11753 }
11754 case 16: {
11755 I = input.ReadInt32();
11756 break;
11757 }
11758 }
11759 }
11760 }
Jan Tattermusch7cb55972020-06-02 09:26:25 +020011761 #endif
Sydney Acksman8a57ec82019-03-21 17:36:36 -050011762
11763 }
11764
11765 /// <summary>
11766 /// Test that mutual recursion works.
11767 /// </summary>
Jan Tattermusch7cb55972020-06-02 09:26:25 +020011768 public sealed partial class TestMutualRecursionA : pb::IMessage<TestMutualRecursionA>
11769 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
11770 , pb::IBufferMessage
11771 #endif
11772 {
Sydney Acksman8a57ec82019-03-21 17:36:36 -050011773 private static readonly pb::MessageParser<TestMutualRecursionA> _parser = new pb::MessageParser<TestMutualRecursionA>(() => new TestMutualRecursionA());
11774 private pb::UnknownFieldSet _unknownFields;
11775 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020011776 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050011777 public static pb::MessageParser<TestMutualRecursionA> Parser { get { return _parser; } }
11778
11779 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020011780 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050011781 public static pbr::MessageDescriptor Descriptor {
11782 get { return global::Google.Protobuf.TestProtos.Proto2.UnittestReflection.Descriptor.MessageTypes[21]; }
11783 }
11784
11785 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020011786 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050011787 pbr::MessageDescriptor pb::IMessage.Descriptor {
11788 get { return Descriptor; }
11789 }
11790
11791 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020011792 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050011793 public TestMutualRecursionA() {
11794 OnConstruction();
11795 }
11796
11797 partial void OnConstruction();
11798
11799 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020011800 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050011801 public TestMutualRecursionA(TestMutualRecursionA other) : this() {
Jon Skeet9926c952020-04-27 07:18:45 +010011802 bb_ = other.bb_ != null ? other.bb_.Clone() : null;
Sydney Acksman8a57ec82019-03-21 17:36:36 -050011803 subGroup_ = other.HasSubGroup ? other.subGroup_.Clone() : null;
11804 _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
11805 }
11806
11807 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020011808 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050011809 public TestMutualRecursionA Clone() {
11810 return new TestMutualRecursionA(this);
11811 }
11812
11813 /// <summary>Field number for the "bb" field.</summary>
11814 public const int BbFieldNumber = 1;
11815 private global::Google.Protobuf.TestProtos.Proto2.TestMutualRecursionB bb_;
11816 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020011817 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050011818 public global::Google.Protobuf.TestProtos.Proto2.TestMutualRecursionB Bb {
11819 get { return bb_; }
11820 set {
11821 bb_ = value;
11822 }
11823 }
Sydney Acksman8a57ec82019-03-21 17:36:36 -050011824
11825 /// <summary>Field number for the "subgroup" field.</summary>
11826 public const int SubGroupFieldNumber = 2;
11827 private global::Google.Protobuf.TestProtos.Proto2.TestMutualRecursionA.Types.SubGroup subGroup_;
11828 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020011829 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050011830 public global::Google.Protobuf.TestProtos.Proto2.TestMutualRecursionA.Types.SubGroup SubGroup {
11831 get { return subGroup_; }
11832 set {
11833 subGroup_ = value;
11834 }
11835 }
11836 /// <summary>Gets whether the subgroup field is set</summary>
11837 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020011838 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050011839 public bool HasSubGroup {
11840 get { return subGroup_ != null; }
11841 }
11842 /// <summary>Clears the value of the subgroup field</summary>
11843 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020011844 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050011845 public void ClearSubGroup() {
11846 subGroup_ = null;
11847 }
11848
11849 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020011850 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050011851 public override bool Equals(object other) {
11852 return Equals(other as TestMutualRecursionA);
11853 }
11854
11855 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020011856 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050011857 public bool Equals(TestMutualRecursionA other) {
11858 if (ReferenceEquals(other, null)) {
11859 return false;
11860 }
11861 if (ReferenceEquals(other, this)) {
11862 return true;
11863 }
11864 if (!object.Equals(Bb, other.Bb)) return false;
11865 if (!object.Equals(SubGroup, other.SubGroup)) return false;
11866 return Equals(_unknownFields, other._unknownFields);
11867 }
11868
11869 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020011870 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050011871 public override int GetHashCode() {
11872 int hash = 1;
Jon Skeet9926c952020-04-27 07:18:45 +010011873 if (bb_ != null) hash ^= Bb.GetHashCode();
Sydney Acksman8a57ec82019-03-21 17:36:36 -050011874 if (HasSubGroup) hash ^= SubGroup.GetHashCode();
11875 if (_unknownFields != null) {
11876 hash ^= _unknownFields.GetHashCode();
11877 }
11878 return hash;
11879 }
11880
11881 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020011882 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050011883 public override string ToString() {
11884 return pb::JsonFormatter.ToDiagnosticString(this);
11885 }
11886
11887 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020011888 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050011889 public void WriteTo(pb::CodedOutputStream output) {
Jan Tattermusch125e4ad2020-05-29 04:32:43 -040011890 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
11891 output.WriteRawMessage(this);
11892 #else
Jon Skeet9926c952020-04-27 07:18:45 +010011893 if (bb_ != null) {
Sydney Acksman8a57ec82019-03-21 17:36:36 -050011894 output.WriteRawTag(10);
11895 output.WriteMessage(Bb);
11896 }
11897 if (HasSubGroup) {
11898 output.WriteRawTag(19);
11899 output.WriteGroup(SubGroup);
11900 output.WriteRawTag(20);
11901 }
11902 if (_unknownFields != null) {
11903 _unknownFields.WriteTo(output);
11904 }
Jan Tattermusch125e4ad2020-05-29 04:32:43 -040011905 #endif
Sydney Acksman8a57ec82019-03-21 17:36:36 -050011906 }
11907
Jan Tattermusch125e4ad2020-05-29 04:32:43 -040011908 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
11909 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020011910 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Jan Tattermusch125e4ad2020-05-29 04:32:43 -040011911 void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
11912 if (bb_ != null) {
11913 output.WriteRawTag(10);
11914 output.WriteMessage(Bb);
11915 }
11916 if (HasSubGroup) {
11917 output.WriteRawTag(19);
11918 output.WriteGroup(SubGroup);
11919 output.WriteRawTag(20);
11920 }
11921 if (_unknownFields != null) {
11922 _unknownFields.WriteTo(ref output);
11923 }
11924 }
11925 #endif
11926
Sydney Acksman8a57ec82019-03-21 17:36:36 -050011927 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020011928 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050011929 public int CalculateSize() {
11930 int size = 0;
Jon Skeet9926c952020-04-27 07:18:45 +010011931 if (bb_ != null) {
Sydney Acksman8a57ec82019-03-21 17:36:36 -050011932 size += 1 + pb::CodedOutputStream.ComputeMessageSize(Bb);
11933 }
11934 if (HasSubGroup) {
11935 size += 2 + pb::CodedOutputStream.ComputeGroupSize(SubGroup);
11936 }
11937 if (_unknownFields != null) {
11938 size += _unknownFields.CalculateSize();
11939 }
11940 return size;
11941 }
11942
11943 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020011944 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050011945 public void MergeFrom(TestMutualRecursionA other) {
11946 if (other == null) {
11947 return;
11948 }
Jon Skeet9926c952020-04-27 07:18:45 +010011949 if (other.bb_ != null) {
11950 if (bb_ == null) {
Sydney Acksman8a57ec82019-03-21 17:36:36 -050011951 Bb = new global::Google.Protobuf.TestProtos.Proto2.TestMutualRecursionB();
11952 }
11953 Bb.MergeFrom(other.Bb);
11954 }
11955 if (other.HasSubGroup) {
11956 if (!HasSubGroup) {
11957 SubGroup = new global::Google.Protobuf.TestProtos.Proto2.TestMutualRecursionA.Types.SubGroup();
11958 }
11959 SubGroup.MergeFrom(other.SubGroup);
11960 }
11961 _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
11962 }
11963
11964 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020011965 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050011966 public void MergeFrom(pb::CodedInputStream input) {
Jan Tattermusch7cb55972020-06-02 09:26:25 +020011967 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
Jan Tattermusch3196ef92020-04-02 15:36:16 +020011968 input.ReadRawMessage(this);
Jan Tattermusch7cb55972020-06-02 09:26:25 +020011969 #else
11970 uint tag;
11971 while ((tag = input.ReadTag()) != 0) {
11972 switch(tag) {
11973 default:
11974 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
11975 break;
11976 case 10: {
11977 if (bb_ == null) {
11978 Bb = new global::Google.Protobuf.TestProtos.Proto2.TestMutualRecursionB();
11979 }
11980 input.ReadMessage(Bb);
11981 break;
11982 }
11983 case 19: {
11984 if (!HasSubGroup) {
11985 SubGroup = new global::Google.Protobuf.TestProtos.Proto2.TestMutualRecursionA.Types.SubGroup();
11986 }
11987 input.ReadGroup(SubGroup);
11988 break;
11989 }
11990 }
11991 }
11992 #endif
Jan Tattermusch3196ef92020-04-02 15:36:16 +020011993 }
11994
Jan Tattermusch7cb55972020-06-02 09:26:25 +020011995 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
Jan Tattermusch3196ef92020-04-02 15:36:16 +020011996 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020011997 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Jan Tattermusch0df7ddc2020-04-14 12:41:03 +020011998 void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
Sydney Acksman8a57ec82019-03-21 17:36:36 -050011999 uint tag;
12000 while ((tag = input.ReadTag()) != 0) {
12001 switch(tag) {
12002 default:
Jan Tattermusch3196ef92020-04-02 15:36:16 +020012003 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
Sydney Acksman8a57ec82019-03-21 17:36:36 -050012004 break;
12005 case 10: {
Jon Skeet9926c952020-04-27 07:18:45 +010012006 if (bb_ == null) {
Sydney Acksman8a57ec82019-03-21 17:36:36 -050012007 Bb = new global::Google.Protobuf.TestProtos.Proto2.TestMutualRecursionB();
12008 }
12009 input.ReadMessage(Bb);
12010 break;
12011 }
12012 case 19: {
12013 if (!HasSubGroup) {
12014 SubGroup = new global::Google.Protobuf.TestProtos.Proto2.TestMutualRecursionA.Types.SubGroup();
12015 }
12016 input.ReadGroup(SubGroup);
12017 break;
12018 }
12019 }
12020 }
12021 }
Jan Tattermusch7cb55972020-06-02 09:26:25 +020012022 #endif
Sydney Acksman8a57ec82019-03-21 17:36:36 -050012023
12024 #region Nested types
12025 /// <summary>Container for nested types declared in the TestMutualRecursionA message type.</summary>
12026 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020012027 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050012028 public static partial class Types {
Jan Tattermusch7cb55972020-06-02 09:26:25 +020012029 public sealed partial class SubMessage : pb::IMessage<SubMessage>
12030 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
12031 , pb::IBufferMessage
12032 #endif
12033 {
Sydney Acksman8a57ec82019-03-21 17:36:36 -050012034 private static readonly pb::MessageParser<SubMessage> _parser = new pb::MessageParser<SubMessage>(() => new SubMessage());
12035 private pb::UnknownFieldSet _unknownFields;
12036 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020012037 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050012038 public static pb::MessageParser<SubMessage> Parser { get { return _parser; } }
12039
12040 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020012041 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050012042 public static pbr::MessageDescriptor Descriptor {
12043 get { return global::Google.Protobuf.TestProtos.Proto2.TestMutualRecursionA.Descriptor.NestedTypes[0]; }
12044 }
12045
12046 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020012047 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050012048 pbr::MessageDescriptor pb::IMessage.Descriptor {
12049 get { return Descriptor; }
12050 }
12051
12052 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020012053 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050012054 public SubMessage() {
12055 OnConstruction();
12056 }
12057
12058 partial void OnConstruction();
12059
12060 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020012061 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050012062 public SubMessage(SubMessage other) : this() {
Jon Skeet9926c952020-04-27 07:18:45 +010012063 b_ = other.b_ != null ? other.b_.Clone() : null;
Sydney Acksman8a57ec82019-03-21 17:36:36 -050012064 _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
12065 }
12066
12067 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020012068 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050012069 public SubMessage Clone() {
12070 return new SubMessage(this);
12071 }
12072
12073 /// <summary>Field number for the "b" field.</summary>
12074 public const int BFieldNumber = 1;
12075 private global::Google.Protobuf.TestProtos.Proto2.TestMutualRecursionB b_;
12076 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020012077 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050012078 public global::Google.Protobuf.TestProtos.Proto2.TestMutualRecursionB B {
12079 get { return b_; }
12080 set {
12081 b_ = value;
12082 }
12083 }
Sydney Acksman8a57ec82019-03-21 17:36:36 -050012084
12085 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020012086 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050012087 public override bool Equals(object other) {
12088 return Equals(other as SubMessage);
12089 }
12090
12091 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020012092 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050012093 public bool Equals(SubMessage other) {
12094 if (ReferenceEquals(other, null)) {
12095 return false;
12096 }
12097 if (ReferenceEquals(other, this)) {
12098 return true;
12099 }
12100 if (!object.Equals(B, other.B)) return false;
12101 return Equals(_unknownFields, other._unknownFields);
12102 }
12103
12104 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020012105 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050012106 public override int GetHashCode() {
12107 int hash = 1;
Jon Skeet9926c952020-04-27 07:18:45 +010012108 if (b_ != null) hash ^= B.GetHashCode();
Sydney Acksman8a57ec82019-03-21 17:36:36 -050012109 if (_unknownFields != null) {
12110 hash ^= _unknownFields.GetHashCode();
12111 }
12112 return hash;
12113 }
12114
12115 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020012116 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050012117 public override string ToString() {
12118 return pb::JsonFormatter.ToDiagnosticString(this);
12119 }
12120
12121 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020012122 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050012123 public void WriteTo(pb::CodedOutputStream output) {
Jan Tattermusch125e4ad2020-05-29 04:32:43 -040012124 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
12125 output.WriteRawMessage(this);
12126 #else
Jon Skeet9926c952020-04-27 07:18:45 +010012127 if (b_ != null) {
Sydney Acksman8a57ec82019-03-21 17:36:36 -050012128 output.WriteRawTag(10);
12129 output.WriteMessage(B);
12130 }
12131 if (_unknownFields != null) {
12132 _unknownFields.WriteTo(output);
12133 }
Jan Tattermusch125e4ad2020-05-29 04:32:43 -040012134 #endif
Sydney Acksman8a57ec82019-03-21 17:36:36 -050012135 }
12136
Jan Tattermusch125e4ad2020-05-29 04:32:43 -040012137 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
12138 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020012139 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Jan Tattermusch125e4ad2020-05-29 04:32:43 -040012140 void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
12141 if (b_ != null) {
12142 output.WriteRawTag(10);
12143 output.WriteMessage(B);
12144 }
12145 if (_unknownFields != null) {
12146 _unknownFields.WriteTo(ref output);
12147 }
12148 }
12149 #endif
12150
Sydney Acksman8a57ec82019-03-21 17:36:36 -050012151 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020012152 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050012153 public int CalculateSize() {
12154 int size = 0;
Jon Skeet9926c952020-04-27 07:18:45 +010012155 if (b_ != null) {
Sydney Acksman8a57ec82019-03-21 17:36:36 -050012156 size += 1 + pb::CodedOutputStream.ComputeMessageSize(B);
12157 }
12158 if (_unknownFields != null) {
12159 size += _unknownFields.CalculateSize();
12160 }
12161 return size;
12162 }
12163
12164 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020012165 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050012166 public void MergeFrom(SubMessage other) {
12167 if (other == null) {
12168 return;
12169 }
Jon Skeet9926c952020-04-27 07:18:45 +010012170 if (other.b_ != null) {
12171 if (b_ == null) {
Sydney Acksman8a57ec82019-03-21 17:36:36 -050012172 B = new global::Google.Protobuf.TestProtos.Proto2.TestMutualRecursionB();
12173 }
12174 B.MergeFrom(other.B);
12175 }
12176 _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
12177 }
12178
12179 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020012180 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050012181 public void MergeFrom(pb::CodedInputStream input) {
Jan Tattermusch7cb55972020-06-02 09:26:25 +020012182 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
Jan Tattermusch3196ef92020-04-02 15:36:16 +020012183 input.ReadRawMessage(this);
Jan Tattermusch7cb55972020-06-02 09:26:25 +020012184 #else
12185 uint tag;
12186 while ((tag = input.ReadTag()) != 0) {
12187 switch(tag) {
12188 default:
12189 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
12190 break;
12191 case 10: {
12192 if (b_ == null) {
12193 B = new global::Google.Protobuf.TestProtos.Proto2.TestMutualRecursionB();
12194 }
12195 input.ReadMessage(B);
12196 break;
12197 }
12198 }
12199 }
12200 #endif
Jan Tattermusch3196ef92020-04-02 15:36:16 +020012201 }
12202
Jan Tattermusch7cb55972020-06-02 09:26:25 +020012203 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
Jan Tattermusch3196ef92020-04-02 15:36:16 +020012204 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020012205 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Jan Tattermusch0df7ddc2020-04-14 12:41:03 +020012206 void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
Sydney Acksman8a57ec82019-03-21 17:36:36 -050012207 uint tag;
12208 while ((tag = input.ReadTag()) != 0) {
12209 switch(tag) {
12210 default:
Jan Tattermusch3196ef92020-04-02 15:36:16 +020012211 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
Sydney Acksman8a57ec82019-03-21 17:36:36 -050012212 break;
12213 case 10: {
Jon Skeet9926c952020-04-27 07:18:45 +010012214 if (b_ == null) {
Sydney Acksman8a57ec82019-03-21 17:36:36 -050012215 B = new global::Google.Protobuf.TestProtos.Proto2.TestMutualRecursionB();
12216 }
12217 input.ReadMessage(B);
12218 break;
12219 }
12220 }
12221 }
12222 }
Jan Tattermusch7cb55972020-06-02 09:26:25 +020012223 #endif
Sydney Acksman8a57ec82019-03-21 17:36:36 -050012224
12225 }
12226
Jan Tattermusch7cb55972020-06-02 09:26:25 +020012227 public sealed partial class SubGroup : pb::IMessage<SubGroup>
12228 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
12229 , pb::IBufferMessage
12230 #endif
12231 {
Sydney Acksman8a57ec82019-03-21 17:36:36 -050012232 private static readonly pb::MessageParser<SubGroup> _parser = new pb::MessageParser<SubGroup>(() => new SubGroup());
12233 private pb::UnknownFieldSet _unknownFields;
12234 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020012235 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050012236 public static pb::MessageParser<SubGroup> Parser { get { return _parser; } }
12237
12238 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020012239 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050012240 public static pbr::MessageDescriptor Descriptor {
12241 get { return global::Google.Protobuf.TestProtos.Proto2.TestMutualRecursionA.Descriptor.NestedTypes[1]; }
12242 }
12243
12244 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020012245 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050012246 pbr::MessageDescriptor pb::IMessage.Descriptor {
12247 get { return Descriptor; }
12248 }
12249
12250 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020012251 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050012252 public SubGroup() {
12253 OnConstruction();
12254 }
12255
12256 partial void OnConstruction();
12257
12258 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020012259 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050012260 public SubGroup(SubGroup other) : this() {
Jon Skeet9926c952020-04-27 07:18:45 +010012261 subMessage_ = other.subMessage_ != null ? other.subMessage_.Clone() : null;
12262 notInThisScc_ = other.notInThisScc_ != null ? other.notInThisScc_.Clone() : null;
Sydney Acksman8a57ec82019-03-21 17:36:36 -050012263 _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
12264 }
12265
12266 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020012267 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050012268 public SubGroup Clone() {
12269 return new SubGroup(this);
12270 }
12271
12272 /// <summary>Field number for the "sub_message" field.</summary>
12273 public const int SubMessageFieldNumber = 3;
12274 private global::Google.Protobuf.TestProtos.Proto2.TestMutualRecursionA.Types.SubMessage subMessage_;
12275 /// <summary>
12276 /// Needed because of bug in javatest
12277 /// </summary>
12278 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020012279 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050012280 public global::Google.Protobuf.TestProtos.Proto2.TestMutualRecursionA.Types.SubMessage SubMessage {
12281 get { return subMessage_; }
12282 set {
12283 subMessage_ = value;
12284 }
12285 }
Sydney Acksman8a57ec82019-03-21 17:36:36 -050012286
12287 /// <summary>Field number for the "not_in_this_scc" field.</summary>
12288 public const int NotInThisSccFieldNumber = 4;
12289 private global::Google.Protobuf.TestProtos.Proto2.TestAllTypes notInThisScc_;
12290 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020012291 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050012292 public global::Google.Protobuf.TestProtos.Proto2.TestAllTypes NotInThisScc {
12293 get { return notInThisScc_; }
12294 set {
12295 notInThisScc_ = value;
12296 }
12297 }
Sydney Acksman8a57ec82019-03-21 17:36:36 -050012298
12299 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020012300 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050012301 public override bool Equals(object other) {
12302 return Equals(other as SubGroup);
12303 }
12304
12305 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020012306 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050012307 public bool Equals(SubGroup other) {
12308 if (ReferenceEquals(other, null)) {
12309 return false;
12310 }
12311 if (ReferenceEquals(other, this)) {
12312 return true;
12313 }
12314 if (!object.Equals(SubMessage, other.SubMessage)) return false;
12315 if (!object.Equals(NotInThisScc, other.NotInThisScc)) return false;
12316 return Equals(_unknownFields, other._unknownFields);
12317 }
12318
12319 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020012320 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050012321 public override int GetHashCode() {
12322 int hash = 1;
Jon Skeet9926c952020-04-27 07:18:45 +010012323 if (subMessage_ != null) hash ^= SubMessage.GetHashCode();
12324 if (notInThisScc_ != null) hash ^= NotInThisScc.GetHashCode();
Sydney Acksman8a57ec82019-03-21 17:36:36 -050012325 if (_unknownFields != null) {
12326 hash ^= _unknownFields.GetHashCode();
12327 }
12328 return hash;
12329 }
12330
12331 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020012332 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050012333 public override string ToString() {
12334 return pb::JsonFormatter.ToDiagnosticString(this);
12335 }
12336
12337 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020012338 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050012339 public void WriteTo(pb::CodedOutputStream output) {
Jan Tattermusch125e4ad2020-05-29 04:32:43 -040012340 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
12341 output.WriteRawMessage(this);
12342 #else
Jon Skeet9926c952020-04-27 07:18:45 +010012343 if (subMessage_ != null) {
Sydney Acksman8a57ec82019-03-21 17:36:36 -050012344 output.WriteRawTag(26);
12345 output.WriteMessage(SubMessage);
12346 }
Jon Skeet9926c952020-04-27 07:18:45 +010012347 if (notInThisScc_ != null) {
Sydney Acksman8a57ec82019-03-21 17:36:36 -050012348 output.WriteRawTag(34);
12349 output.WriteMessage(NotInThisScc);
12350 }
12351 if (_unknownFields != null) {
12352 _unknownFields.WriteTo(output);
12353 }
Jan Tattermusch125e4ad2020-05-29 04:32:43 -040012354 #endif
Sydney Acksman8a57ec82019-03-21 17:36:36 -050012355 }
12356
Jan Tattermusch125e4ad2020-05-29 04:32:43 -040012357 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
12358 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020012359 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Jan Tattermusch125e4ad2020-05-29 04:32:43 -040012360 void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
12361 if (subMessage_ != null) {
12362 output.WriteRawTag(26);
12363 output.WriteMessage(SubMessage);
12364 }
12365 if (notInThisScc_ != null) {
12366 output.WriteRawTag(34);
12367 output.WriteMessage(NotInThisScc);
12368 }
12369 if (_unknownFields != null) {
12370 _unknownFields.WriteTo(ref output);
12371 }
12372 }
12373 #endif
12374
Sydney Acksman8a57ec82019-03-21 17:36:36 -050012375 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020012376 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050012377 public int CalculateSize() {
12378 int size = 0;
Jon Skeet9926c952020-04-27 07:18:45 +010012379 if (subMessage_ != null) {
Sydney Acksman8a57ec82019-03-21 17:36:36 -050012380 size += 1 + pb::CodedOutputStream.ComputeMessageSize(SubMessage);
12381 }
Jon Skeet9926c952020-04-27 07:18:45 +010012382 if (notInThisScc_ != null) {
Sydney Acksman8a57ec82019-03-21 17:36:36 -050012383 size += 1 + pb::CodedOutputStream.ComputeMessageSize(NotInThisScc);
12384 }
12385 if (_unknownFields != null) {
12386 size += _unknownFields.CalculateSize();
12387 }
12388 return size;
12389 }
12390
12391 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020012392 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050012393 public void MergeFrom(SubGroup other) {
12394 if (other == null) {
12395 return;
12396 }
Jon Skeet9926c952020-04-27 07:18:45 +010012397 if (other.subMessage_ != null) {
12398 if (subMessage_ == null) {
Sydney Acksman8a57ec82019-03-21 17:36:36 -050012399 SubMessage = new global::Google.Protobuf.TestProtos.Proto2.TestMutualRecursionA.Types.SubMessage();
12400 }
12401 SubMessage.MergeFrom(other.SubMessage);
12402 }
Jon Skeet9926c952020-04-27 07:18:45 +010012403 if (other.notInThisScc_ != null) {
12404 if (notInThisScc_ == null) {
Sydney Acksman8a57ec82019-03-21 17:36:36 -050012405 NotInThisScc = new global::Google.Protobuf.TestProtos.Proto2.TestAllTypes();
12406 }
12407 NotInThisScc.MergeFrom(other.NotInThisScc);
12408 }
12409 _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
12410 }
12411
12412 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020012413 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050012414 public void MergeFrom(pb::CodedInputStream input) {
Jan Tattermusch7cb55972020-06-02 09:26:25 +020012415 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
Jan Tattermusch3196ef92020-04-02 15:36:16 +020012416 input.ReadRawMessage(this);
Jan Tattermusch7cb55972020-06-02 09:26:25 +020012417 #else
12418 uint tag;
12419 while ((tag = input.ReadTag()) != 0) {
12420 switch(tag) {
12421 case 20:
12422 return;
12423 default:
12424 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
12425 break;
12426 case 26: {
12427 if (subMessage_ == null) {
12428 SubMessage = new global::Google.Protobuf.TestProtos.Proto2.TestMutualRecursionA.Types.SubMessage();
12429 }
12430 input.ReadMessage(SubMessage);
12431 break;
12432 }
12433 case 34: {
12434 if (notInThisScc_ == null) {
12435 NotInThisScc = new global::Google.Protobuf.TestProtos.Proto2.TestAllTypes();
12436 }
12437 input.ReadMessage(NotInThisScc);
12438 break;
12439 }
12440 }
12441 }
12442 #endif
Jan Tattermusch3196ef92020-04-02 15:36:16 +020012443 }
12444
Jan Tattermusch7cb55972020-06-02 09:26:25 +020012445 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
Jan Tattermusch3196ef92020-04-02 15:36:16 +020012446 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020012447 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Jan Tattermusch0df7ddc2020-04-14 12:41:03 +020012448 void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
Sydney Acksman8a57ec82019-03-21 17:36:36 -050012449 uint tag;
12450 while ((tag = input.ReadTag()) != 0) {
12451 switch(tag) {
12452 case 20:
12453 return;
12454 default:
Jan Tattermusch3196ef92020-04-02 15:36:16 +020012455 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
Sydney Acksman8a57ec82019-03-21 17:36:36 -050012456 break;
12457 case 26: {
Jon Skeet9926c952020-04-27 07:18:45 +010012458 if (subMessage_ == null) {
Sydney Acksman8a57ec82019-03-21 17:36:36 -050012459 SubMessage = new global::Google.Protobuf.TestProtos.Proto2.TestMutualRecursionA.Types.SubMessage();
12460 }
12461 input.ReadMessage(SubMessage);
12462 break;
12463 }
12464 case 34: {
Jon Skeet9926c952020-04-27 07:18:45 +010012465 if (notInThisScc_ == null) {
Sydney Acksman8a57ec82019-03-21 17:36:36 -050012466 NotInThisScc = new global::Google.Protobuf.TestProtos.Proto2.TestAllTypes();
12467 }
12468 input.ReadMessage(NotInThisScc);
12469 break;
12470 }
12471 }
12472 }
12473 }
Jan Tattermusch7cb55972020-06-02 09:26:25 +020012474 #endif
Sydney Acksman8a57ec82019-03-21 17:36:36 -050012475
12476 }
12477
12478 }
12479 #endregion
12480
12481 }
12482
Jan Tattermusch7cb55972020-06-02 09:26:25 +020012483 public sealed partial class TestMutualRecursionB : pb::IMessage<TestMutualRecursionB>
12484 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
12485 , pb::IBufferMessage
12486 #endif
12487 {
Sydney Acksman8a57ec82019-03-21 17:36:36 -050012488 private static readonly pb::MessageParser<TestMutualRecursionB> _parser = new pb::MessageParser<TestMutualRecursionB>(() => new TestMutualRecursionB());
12489 private pb::UnknownFieldSet _unknownFields;
12490 private int _hasBits0;
12491 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020012492 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050012493 public static pb::MessageParser<TestMutualRecursionB> Parser { get { return _parser; } }
12494
12495 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020012496 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050012497 public static pbr::MessageDescriptor Descriptor {
12498 get { return global::Google.Protobuf.TestProtos.Proto2.UnittestReflection.Descriptor.MessageTypes[22]; }
12499 }
12500
12501 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020012502 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050012503 pbr::MessageDescriptor pb::IMessage.Descriptor {
12504 get { return Descriptor; }
12505 }
12506
12507 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020012508 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050012509 public TestMutualRecursionB() {
12510 OnConstruction();
12511 }
12512
12513 partial void OnConstruction();
12514
12515 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020012516 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050012517 public TestMutualRecursionB(TestMutualRecursionB other) : this() {
12518 _hasBits0 = other._hasBits0;
Jon Skeet9926c952020-04-27 07:18:45 +010012519 a_ = other.a_ != null ? other.a_.Clone() : null;
Sydney Acksman8a57ec82019-03-21 17:36:36 -050012520 optionalInt32_ = other.optionalInt32_;
12521 _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
12522 }
12523
12524 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020012525 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050012526 public TestMutualRecursionB Clone() {
12527 return new TestMutualRecursionB(this);
12528 }
12529
12530 /// <summary>Field number for the "a" field.</summary>
12531 public const int AFieldNumber = 1;
12532 private global::Google.Protobuf.TestProtos.Proto2.TestMutualRecursionA a_;
12533 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020012534 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050012535 public global::Google.Protobuf.TestProtos.Proto2.TestMutualRecursionA A {
12536 get { return a_; }
12537 set {
12538 a_ = value;
12539 }
12540 }
Sydney Acksman8a57ec82019-03-21 17:36:36 -050012541
12542 /// <summary>Field number for the "optional_int32" field.</summary>
12543 public const int OptionalInt32FieldNumber = 2;
12544 private readonly static int OptionalInt32DefaultValue = 0;
12545
12546 private int optionalInt32_;
12547 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020012548 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050012549 public int OptionalInt32 {
12550 get { if ((_hasBits0 & 1) != 0) { return optionalInt32_; } else { return OptionalInt32DefaultValue; } }
12551 set {
12552 _hasBits0 |= 1;
12553 optionalInt32_ = value;
12554 }
12555 }
12556 /// <summary>Gets whether the "optional_int32" field is set</summary>
12557 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020012558 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050012559 public bool HasOptionalInt32 {
12560 get { return (_hasBits0 & 1) != 0; }
12561 }
12562 /// <summary>Clears the value of the "optional_int32" field</summary>
12563 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020012564 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050012565 public void ClearOptionalInt32() {
12566 _hasBits0 &= ~1;
12567 }
12568
12569 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020012570 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050012571 public override bool Equals(object other) {
12572 return Equals(other as TestMutualRecursionB);
12573 }
12574
12575 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020012576 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050012577 public bool Equals(TestMutualRecursionB other) {
12578 if (ReferenceEquals(other, null)) {
12579 return false;
12580 }
12581 if (ReferenceEquals(other, this)) {
12582 return true;
12583 }
12584 if (!object.Equals(A, other.A)) return false;
12585 if (OptionalInt32 != other.OptionalInt32) return false;
12586 return Equals(_unknownFields, other._unknownFields);
12587 }
12588
12589 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020012590 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050012591 public override int GetHashCode() {
12592 int hash = 1;
Jon Skeet9926c952020-04-27 07:18:45 +010012593 if (a_ != null) hash ^= A.GetHashCode();
Sydney Acksman8a57ec82019-03-21 17:36:36 -050012594 if (HasOptionalInt32) hash ^= OptionalInt32.GetHashCode();
12595 if (_unknownFields != null) {
12596 hash ^= _unknownFields.GetHashCode();
12597 }
12598 return hash;
12599 }
12600
12601 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020012602 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050012603 public override string ToString() {
12604 return pb::JsonFormatter.ToDiagnosticString(this);
12605 }
12606
12607 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020012608 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050012609 public void WriteTo(pb::CodedOutputStream output) {
Jan Tattermusch125e4ad2020-05-29 04:32:43 -040012610 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
12611 output.WriteRawMessage(this);
12612 #else
Jon Skeet9926c952020-04-27 07:18:45 +010012613 if (a_ != null) {
Sydney Acksman8a57ec82019-03-21 17:36:36 -050012614 output.WriteRawTag(10);
12615 output.WriteMessage(A);
12616 }
12617 if (HasOptionalInt32) {
12618 output.WriteRawTag(16);
12619 output.WriteInt32(OptionalInt32);
12620 }
12621 if (_unknownFields != null) {
12622 _unknownFields.WriteTo(output);
12623 }
Jan Tattermusch125e4ad2020-05-29 04:32:43 -040012624 #endif
Sydney Acksman8a57ec82019-03-21 17:36:36 -050012625 }
12626
Jan Tattermusch125e4ad2020-05-29 04:32:43 -040012627 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
12628 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020012629 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Jan Tattermusch125e4ad2020-05-29 04:32:43 -040012630 void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
12631 if (a_ != null) {
12632 output.WriteRawTag(10);
12633 output.WriteMessage(A);
12634 }
12635 if (HasOptionalInt32) {
12636 output.WriteRawTag(16);
12637 output.WriteInt32(OptionalInt32);
12638 }
12639 if (_unknownFields != null) {
12640 _unknownFields.WriteTo(ref output);
12641 }
12642 }
12643 #endif
12644
Sydney Acksman8a57ec82019-03-21 17:36:36 -050012645 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020012646 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050012647 public int CalculateSize() {
12648 int size = 0;
Jon Skeet9926c952020-04-27 07:18:45 +010012649 if (a_ != null) {
Sydney Acksman8a57ec82019-03-21 17:36:36 -050012650 size += 1 + pb::CodedOutputStream.ComputeMessageSize(A);
12651 }
12652 if (HasOptionalInt32) {
12653 size += 1 + pb::CodedOutputStream.ComputeInt32Size(OptionalInt32);
12654 }
12655 if (_unknownFields != null) {
12656 size += _unknownFields.CalculateSize();
12657 }
12658 return size;
12659 }
12660
12661 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020012662 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050012663 public void MergeFrom(TestMutualRecursionB other) {
12664 if (other == null) {
12665 return;
12666 }
Jon Skeet9926c952020-04-27 07:18:45 +010012667 if (other.a_ != null) {
12668 if (a_ == null) {
Sydney Acksman8a57ec82019-03-21 17:36:36 -050012669 A = new global::Google.Protobuf.TestProtos.Proto2.TestMutualRecursionA();
12670 }
12671 A.MergeFrom(other.A);
12672 }
12673 if (other.HasOptionalInt32) {
12674 OptionalInt32 = other.OptionalInt32;
12675 }
12676 _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
12677 }
12678
12679 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020012680 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050012681 public void MergeFrom(pb::CodedInputStream input) {
Jan Tattermusch7cb55972020-06-02 09:26:25 +020012682 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
Jan Tattermusch3196ef92020-04-02 15:36:16 +020012683 input.ReadRawMessage(this);
Jan Tattermusch7cb55972020-06-02 09:26:25 +020012684 #else
12685 uint tag;
12686 while ((tag = input.ReadTag()) != 0) {
12687 switch(tag) {
12688 default:
12689 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
12690 break;
12691 case 10: {
12692 if (a_ == null) {
12693 A = new global::Google.Protobuf.TestProtos.Proto2.TestMutualRecursionA();
12694 }
12695 input.ReadMessage(A);
12696 break;
12697 }
12698 case 16: {
12699 OptionalInt32 = input.ReadInt32();
12700 break;
12701 }
12702 }
12703 }
12704 #endif
Jan Tattermusch3196ef92020-04-02 15:36:16 +020012705 }
12706
Jan Tattermusch7cb55972020-06-02 09:26:25 +020012707 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
Jan Tattermusch3196ef92020-04-02 15:36:16 +020012708 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020012709 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Jan Tattermusch0df7ddc2020-04-14 12:41:03 +020012710 void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
Sydney Acksman8a57ec82019-03-21 17:36:36 -050012711 uint tag;
12712 while ((tag = input.ReadTag()) != 0) {
12713 switch(tag) {
12714 default:
Jan Tattermusch3196ef92020-04-02 15:36:16 +020012715 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
Sydney Acksman8a57ec82019-03-21 17:36:36 -050012716 break;
12717 case 10: {
Jon Skeet9926c952020-04-27 07:18:45 +010012718 if (a_ == null) {
Sydney Acksman8a57ec82019-03-21 17:36:36 -050012719 A = new global::Google.Protobuf.TestProtos.Proto2.TestMutualRecursionA();
12720 }
12721 input.ReadMessage(A);
12722 break;
12723 }
12724 case 16: {
12725 OptionalInt32 = input.ReadInt32();
12726 break;
12727 }
12728 }
12729 }
12730 }
Jan Tattermusch7cb55972020-06-02 09:26:25 +020012731 #endif
Sydney Acksman8a57ec82019-03-21 17:36:36 -050012732
12733 }
12734
Jan Tattermusch7cb55972020-06-02 09:26:25 +020012735 public sealed partial class TestIsInitialized : pb::IMessage<TestIsInitialized>
12736 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
12737 , pb::IBufferMessage
12738 #endif
12739 {
Sydney Acksman8a57ec82019-03-21 17:36:36 -050012740 private static readonly pb::MessageParser<TestIsInitialized> _parser = new pb::MessageParser<TestIsInitialized>(() => new TestIsInitialized());
12741 private pb::UnknownFieldSet _unknownFields;
12742 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020012743 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050012744 public static pb::MessageParser<TestIsInitialized> Parser { get { return _parser; } }
12745
12746 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020012747 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050012748 public static pbr::MessageDescriptor Descriptor {
12749 get { return global::Google.Protobuf.TestProtos.Proto2.UnittestReflection.Descriptor.MessageTypes[23]; }
12750 }
12751
12752 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020012753 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050012754 pbr::MessageDescriptor pb::IMessage.Descriptor {
12755 get { return Descriptor; }
12756 }
12757
12758 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020012759 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050012760 public TestIsInitialized() {
12761 OnConstruction();
12762 }
12763
12764 partial void OnConstruction();
12765
12766 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020012767 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050012768 public TestIsInitialized(TestIsInitialized other) : this() {
Jon Skeet9926c952020-04-27 07:18:45 +010012769 subMessage_ = other.subMessage_ != null ? other.subMessage_.Clone() : null;
Sydney Acksman8a57ec82019-03-21 17:36:36 -050012770 _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
12771 }
12772
12773 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020012774 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050012775 public TestIsInitialized Clone() {
12776 return new TestIsInitialized(this);
12777 }
12778
12779 /// <summary>Field number for the "sub_message" field.</summary>
12780 public const int SubMessageFieldNumber = 1;
12781 private global::Google.Protobuf.TestProtos.Proto2.TestIsInitialized.Types.SubMessage subMessage_;
12782 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020012783 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050012784 public global::Google.Protobuf.TestProtos.Proto2.TestIsInitialized.Types.SubMessage SubMessage {
12785 get { return subMessage_; }
12786 set {
12787 subMessage_ = value;
12788 }
12789 }
Sydney Acksman8a57ec82019-03-21 17:36:36 -050012790
12791 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020012792 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050012793 public override bool Equals(object other) {
12794 return Equals(other as TestIsInitialized);
12795 }
12796
12797 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020012798 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050012799 public bool Equals(TestIsInitialized other) {
12800 if (ReferenceEquals(other, null)) {
12801 return false;
12802 }
12803 if (ReferenceEquals(other, this)) {
12804 return true;
12805 }
12806 if (!object.Equals(SubMessage, other.SubMessage)) return false;
12807 return Equals(_unknownFields, other._unknownFields);
12808 }
12809
12810 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020012811 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050012812 public override int GetHashCode() {
12813 int hash = 1;
Jon Skeet9926c952020-04-27 07:18:45 +010012814 if (subMessage_ != null) hash ^= SubMessage.GetHashCode();
Sydney Acksman8a57ec82019-03-21 17:36:36 -050012815 if (_unknownFields != null) {
12816 hash ^= _unknownFields.GetHashCode();
12817 }
12818 return hash;
12819 }
12820
12821 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020012822 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050012823 public override string ToString() {
12824 return pb::JsonFormatter.ToDiagnosticString(this);
12825 }
12826
12827 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020012828 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050012829 public void WriteTo(pb::CodedOutputStream output) {
Jan Tattermusch125e4ad2020-05-29 04:32:43 -040012830 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
12831 output.WriteRawMessage(this);
12832 #else
Jon Skeet9926c952020-04-27 07:18:45 +010012833 if (subMessage_ != null) {
Sydney Acksman8a57ec82019-03-21 17:36:36 -050012834 output.WriteRawTag(10);
12835 output.WriteMessage(SubMessage);
12836 }
12837 if (_unknownFields != null) {
12838 _unknownFields.WriteTo(output);
12839 }
Jan Tattermusch125e4ad2020-05-29 04:32:43 -040012840 #endif
Sydney Acksman8a57ec82019-03-21 17:36:36 -050012841 }
12842
Jan Tattermusch125e4ad2020-05-29 04:32:43 -040012843 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
12844 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020012845 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Jan Tattermusch125e4ad2020-05-29 04:32:43 -040012846 void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
12847 if (subMessage_ != null) {
12848 output.WriteRawTag(10);
12849 output.WriteMessage(SubMessage);
12850 }
12851 if (_unknownFields != null) {
12852 _unknownFields.WriteTo(ref output);
12853 }
12854 }
12855 #endif
12856
Sydney Acksman8a57ec82019-03-21 17:36:36 -050012857 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020012858 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050012859 public int CalculateSize() {
12860 int size = 0;
Jon Skeet9926c952020-04-27 07:18:45 +010012861 if (subMessage_ != null) {
Sydney Acksman8a57ec82019-03-21 17:36:36 -050012862 size += 1 + pb::CodedOutputStream.ComputeMessageSize(SubMessage);
12863 }
12864 if (_unknownFields != null) {
12865 size += _unknownFields.CalculateSize();
12866 }
12867 return size;
12868 }
12869
12870 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020012871 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050012872 public void MergeFrom(TestIsInitialized other) {
12873 if (other == null) {
12874 return;
12875 }
Jon Skeet9926c952020-04-27 07:18:45 +010012876 if (other.subMessage_ != null) {
12877 if (subMessage_ == null) {
Sydney Acksman8a57ec82019-03-21 17:36:36 -050012878 SubMessage = new global::Google.Protobuf.TestProtos.Proto2.TestIsInitialized.Types.SubMessage();
12879 }
12880 SubMessage.MergeFrom(other.SubMessage);
12881 }
12882 _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
12883 }
12884
12885 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020012886 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050012887 public void MergeFrom(pb::CodedInputStream input) {
Jan Tattermusch7cb55972020-06-02 09:26:25 +020012888 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
Jan Tattermusch3196ef92020-04-02 15:36:16 +020012889 input.ReadRawMessage(this);
Jan Tattermusch7cb55972020-06-02 09:26:25 +020012890 #else
12891 uint tag;
12892 while ((tag = input.ReadTag()) != 0) {
12893 switch(tag) {
12894 default:
12895 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
12896 break;
12897 case 10: {
12898 if (subMessage_ == null) {
12899 SubMessage = new global::Google.Protobuf.TestProtos.Proto2.TestIsInitialized.Types.SubMessage();
12900 }
12901 input.ReadMessage(SubMessage);
12902 break;
12903 }
12904 }
12905 }
12906 #endif
Jan Tattermusch3196ef92020-04-02 15:36:16 +020012907 }
12908
Jan Tattermusch7cb55972020-06-02 09:26:25 +020012909 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
Jan Tattermusch3196ef92020-04-02 15:36:16 +020012910 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020012911 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Jan Tattermusch0df7ddc2020-04-14 12:41:03 +020012912 void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
Sydney Acksman8a57ec82019-03-21 17:36:36 -050012913 uint tag;
12914 while ((tag = input.ReadTag()) != 0) {
12915 switch(tag) {
12916 default:
Jan Tattermusch3196ef92020-04-02 15:36:16 +020012917 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
Sydney Acksman8a57ec82019-03-21 17:36:36 -050012918 break;
12919 case 10: {
Jon Skeet9926c952020-04-27 07:18:45 +010012920 if (subMessage_ == null) {
Sydney Acksman8a57ec82019-03-21 17:36:36 -050012921 SubMessage = new global::Google.Protobuf.TestProtos.Proto2.TestIsInitialized.Types.SubMessage();
12922 }
12923 input.ReadMessage(SubMessage);
12924 break;
12925 }
12926 }
12927 }
12928 }
Jan Tattermusch7cb55972020-06-02 09:26:25 +020012929 #endif
Sydney Acksman8a57ec82019-03-21 17:36:36 -050012930
12931 #region Nested types
12932 /// <summary>Container for nested types declared in the TestIsInitialized message type.</summary>
12933 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020012934 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050012935 public static partial class Types {
Jan Tattermusch7cb55972020-06-02 09:26:25 +020012936 public sealed partial class SubMessage : pb::IMessage<SubMessage>
12937 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
12938 , pb::IBufferMessage
12939 #endif
12940 {
Sydney Acksman8a57ec82019-03-21 17:36:36 -050012941 private static readonly pb::MessageParser<SubMessage> _parser = new pb::MessageParser<SubMessage>(() => new SubMessage());
12942 private pb::UnknownFieldSet _unknownFields;
12943 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020012944 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050012945 public static pb::MessageParser<SubMessage> Parser { get { return _parser; } }
12946
12947 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020012948 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050012949 public static pbr::MessageDescriptor Descriptor {
12950 get { return global::Google.Protobuf.TestProtos.Proto2.TestIsInitialized.Descriptor.NestedTypes[0]; }
12951 }
12952
12953 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020012954 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050012955 pbr::MessageDescriptor pb::IMessage.Descriptor {
12956 get { return Descriptor; }
12957 }
12958
12959 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020012960 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050012961 public SubMessage() {
12962 OnConstruction();
12963 }
12964
12965 partial void OnConstruction();
12966
12967 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020012968 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050012969 public SubMessage(SubMessage other) : this() {
12970 subGroup_ = other.HasSubGroup ? other.subGroup_.Clone() : null;
12971 _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
12972 }
12973
12974 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020012975 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050012976 public SubMessage Clone() {
12977 return new SubMessage(this);
12978 }
12979
12980 /// <summary>Field number for the "subgroup" field.</summary>
12981 public const int SubGroupFieldNumber = 1;
12982 private global::Google.Protobuf.TestProtos.Proto2.TestIsInitialized.Types.SubMessage.Types.SubGroup subGroup_;
12983 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020012984 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050012985 public global::Google.Protobuf.TestProtos.Proto2.TestIsInitialized.Types.SubMessage.Types.SubGroup SubGroup {
12986 get { return subGroup_; }
12987 set {
12988 subGroup_ = value;
12989 }
12990 }
12991 /// <summary>Gets whether the subgroup field is set</summary>
12992 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020012993 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050012994 public bool HasSubGroup {
12995 get { return subGroup_ != null; }
12996 }
12997 /// <summary>Clears the value of the subgroup field</summary>
12998 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020012999 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050013000 public void ClearSubGroup() {
13001 subGroup_ = null;
13002 }
13003
13004 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020013005 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050013006 public override bool Equals(object other) {
13007 return Equals(other as SubMessage);
13008 }
13009
13010 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020013011 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050013012 public bool Equals(SubMessage other) {
13013 if (ReferenceEquals(other, null)) {
13014 return false;
13015 }
13016 if (ReferenceEquals(other, this)) {
13017 return true;
13018 }
13019 if (!object.Equals(SubGroup, other.SubGroup)) return false;
13020 return Equals(_unknownFields, other._unknownFields);
13021 }
13022
13023 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020013024 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050013025 public override int GetHashCode() {
13026 int hash = 1;
13027 if (HasSubGroup) hash ^= SubGroup.GetHashCode();
13028 if (_unknownFields != null) {
13029 hash ^= _unknownFields.GetHashCode();
13030 }
13031 return hash;
13032 }
13033
13034 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020013035 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050013036 public override string ToString() {
13037 return pb::JsonFormatter.ToDiagnosticString(this);
13038 }
13039
13040 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020013041 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050013042 public void WriteTo(pb::CodedOutputStream output) {
Jan Tattermusch125e4ad2020-05-29 04:32:43 -040013043 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
13044 output.WriteRawMessage(this);
13045 #else
Sydney Acksman8a57ec82019-03-21 17:36:36 -050013046 if (HasSubGroup) {
13047 output.WriteRawTag(11);
13048 output.WriteGroup(SubGroup);
13049 output.WriteRawTag(12);
13050 }
13051 if (_unknownFields != null) {
13052 _unknownFields.WriteTo(output);
13053 }
Jan Tattermusch125e4ad2020-05-29 04:32:43 -040013054 #endif
Sydney Acksman8a57ec82019-03-21 17:36:36 -050013055 }
13056
Jan Tattermusch125e4ad2020-05-29 04:32:43 -040013057 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
13058 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020013059 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Jan Tattermusch125e4ad2020-05-29 04:32:43 -040013060 void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
13061 if (HasSubGroup) {
13062 output.WriteRawTag(11);
13063 output.WriteGroup(SubGroup);
13064 output.WriteRawTag(12);
13065 }
13066 if (_unknownFields != null) {
13067 _unknownFields.WriteTo(ref output);
13068 }
13069 }
13070 #endif
13071
Sydney Acksman8a57ec82019-03-21 17:36:36 -050013072 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020013073 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050013074 public int CalculateSize() {
13075 int size = 0;
13076 if (HasSubGroup) {
13077 size += 2 + pb::CodedOutputStream.ComputeGroupSize(SubGroup);
13078 }
13079 if (_unknownFields != null) {
13080 size += _unknownFields.CalculateSize();
13081 }
13082 return size;
13083 }
13084
13085 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020013086 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050013087 public void MergeFrom(SubMessage other) {
13088 if (other == null) {
13089 return;
13090 }
13091 if (other.HasSubGroup) {
13092 if (!HasSubGroup) {
13093 SubGroup = new global::Google.Protobuf.TestProtos.Proto2.TestIsInitialized.Types.SubMessage.Types.SubGroup();
13094 }
13095 SubGroup.MergeFrom(other.SubGroup);
13096 }
13097 _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
13098 }
13099
13100 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020013101 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050013102 public void MergeFrom(pb::CodedInputStream input) {
Jan Tattermusch7cb55972020-06-02 09:26:25 +020013103 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
Jan Tattermusch3196ef92020-04-02 15:36:16 +020013104 input.ReadRawMessage(this);
Jan Tattermusch7cb55972020-06-02 09:26:25 +020013105 #else
13106 uint tag;
13107 while ((tag = input.ReadTag()) != 0) {
13108 switch(tag) {
13109 default:
13110 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
13111 break;
13112 case 11: {
13113 if (!HasSubGroup) {
13114 SubGroup = new global::Google.Protobuf.TestProtos.Proto2.TestIsInitialized.Types.SubMessage.Types.SubGroup();
13115 }
13116 input.ReadGroup(SubGroup);
13117 break;
13118 }
13119 }
13120 }
13121 #endif
Jan Tattermusch3196ef92020-04-02 15:36:16 +020013122 }
13123
Jan Tattermusch7cb55972020-06-02 09:26:25 +020013124 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
Jan Tattermusch3196ef92020-04-02 15:36:16 +020013125 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020013126 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Jan Tattermusch0df7ddc2020-04-14 12:41:03 +020013127 void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
Sydney Acksman8a57ec82019-03-21 17:36:36 -050013128 uint tag;
13129 while ((tag = input.ReadTag()) != 0) {
13130 switch(tag) {
13131 default:
Jan Tattermusch3196ef92020-04-02 15:36:16 +020013132 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
Sydney Acksman8a57ec82019-03-21 17:36:36 -050013133 break;
13134 case 11: {
13135 if (!HasSubGroup) {
13136 SubGroup = new global::Google.Protobuf.TestProtos.Proto2.TestIsInitialized.Types.SubMessage.Types.SubGroup();
13137 }
13138 input.ReadGroup(SubGroup);
13139 break;
13140 }
13141 }
13142 }
13143 }
Jan Tattermusch7cb55972020-06-02 09:26:25 +020013144 #endif
Sydney Acksman8a57ec82019-03-21 17:36:36 -050013145
13146 #region Nested types
13147 /// <summary>Container for nested types declared in the SubMessage message type.</summary>
13148 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020013149 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050013150 public static partial class Types {
Jan Tattermusch7cb55972020-06-02 09:26:25 +020013151 public sealed partial class SubGroup : pb::IMessage<SubGroup>
13152 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
13153 , pb::IBufferMessage
13154 #endif
13155 {
Sydney Acksman8a57ec82019-03-21 17:36:36 -050013156 private static readonly pb::MessageParser<SubGroup> _parser = new pb::MessageParser<SubGroup>(() => new SubGroup());
13157 private pb::UnknownFieldSet _unknownFields;
13158 private int _hasBits0;
13159 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020013160 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050013161 public static pb::MessageParser<SubGroup> Parser { get { return _parser; } }
13162
13163 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020013164 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050013165 public static pbr::MessageDescriptor Descriptor {
13166 get { return global::Google.Protobuf.TestProtos.Proto2.TestIsInitialized.Types.SubMessage.Descriptor.NestedTypes[0]; }
13167 }
13168
13169 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020013170 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050013171 pbr::MessageDescriptor pb::IMessage.Descriptor {
13172 get { return Descriptor; }
13173 }
13174
13175 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020013176 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050013177 public SubGroup() {
13178 OnConstruction();
13179 }
13180
13181 partial void OnConstruction();
13182
13183 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020013184 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050013185 public SubGroup(SubGroup other) : this() {
13186 _hasBits0 = other._hasBits0;
13187 i_ = other.i_;
13188 _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
13189 }
13190
13191 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020013192 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050013193 public SubGroup Clone() {
13194 return new SubGroup(this);
13195 }
13196
13197 /// <summary>Field number for the "i" field.</summary>
13198 public const int IFieldNumber = 2;
13199 private readonly static int IDefaultValue = 0;
13200
13201 private int i_;
13202 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020013203 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050013204 public int I {
13205 get { if ((_hasBits0 & 1) != 0) { return i_; } else { return IDefaultValue; } }
13206 set {
13207 _hasBits0 |= 1;
13208 i_ = value;
13209 }
13210 }
13211 /// <summary>Gets whether the "i" field is set</summary>
13212 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020013213 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050013214 public bool HasI {
13215 get { return (_hasBits0 & 1) != 0; }
13216 }
13217 /// <summary>Clears the value of the "i" field</summary>
13218 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020013219 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050013220 public void ClearI() {
13221 _hasBits0 &= ~1;
13222 }
13223
13224 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020013225 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050013226 public override bool Equals(object other) {
13227 return Equals(other as SubGroup);
13228 }
13229
13230 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020013231 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050013232 public bool Equals(SubGroup other) {
13233 if (ReferenceEquals(other, null)) {
13234 return false;
13235 }
13236 if (ReferenceEquals(other, this)) {
13237 return true;
13238 }
13239 if (I != other.I) return false;
13240 return Equals(_unknownFields, other._unknownFields);
13241 }
13242
13243 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020013244 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050013245 public override int GetHashCode() {
13246 int hash = 1;
13247 if (HasI) hash ^= I.GetHashCode();
13248 if (_unknownFields != null) {
13249 hash ^= _unknownFields.GetHashCode();
13250 }
13251 return hash;
13252 }
13253
13254 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020013255 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050013256 public override string ToString() {
13257 return pb::JsonFormatter.ToDiagnosticString(this);
13258 }
13259
13260 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020013261 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050013262 public void WriteTo(pb::CodedOutputStream output) {
Jan Tattermusch125e4ad2020-05-29 04:32:43 -040013263 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
13264 output.WriteRawMessage(this);
13265 #else
Sydney Acksman8a57ec82019-03-21 17:36:36 -050013266 if (HasI) {
13267 output.WriteRawTag(16);
13268 output.WriteInt32(I);
13269 }
13270 if (_unknownFields != null) {
13271 _unknownFields.WriteTo(output);
13272 }
Jan Tattermusch125e4ad2020-05-29 04:32:43 -040013273 #endif
Sydney Acksman8a57ec82019-03-21 17:36:36 -050013274 }
13275
Jan Tattermusch125e4ad2020-05-29 04:32:43 -040013276 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
13277 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020013278 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Jan Tattermusch125e4ad2020-05-29 04:32:43 -040013279 void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
13280 if (HasI) {
13281 output.WriteRawTag(16);
13282 output.WriteInt32(I);
13283 }
13284 if (_unknownFields != null) {
13285 _unknownFields.WriteTo(ref output);
13286 }
13287 }
13288 #endif
13289
Sydney Acksman8a57ec82019-03-21 17:36:36 -050013290 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020013291 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050013292 public int CalculateSize() {
13293 int size = 0;
13294 if (HasI) {
13295 size += 1 + pb::CodedOutputStream.ComputeInt32Size(I);
13296 }
13297 if (_unknownFields != null) {
13298 size += _unknownFields.CalculateSize();
13299 }
13300 return size;
13301 }
13302
13303 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020013304 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050013305 public void MergeFrom(SubGroup other) {
13306 if (other == null) {
13307 return;
13308 }
13309 if (other.HasI) {
13310 I = other.I;
13311 }
13312 _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
13313 }
13314
13315 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020013316 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050013317 public void MergeFrom(pb::CodedInputStream input) {
Jan Tattermusch7cb55972020-06-02 09:26:25 +020013318 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
Jan Tattermusch3196ef92020-04-02 15:36:16 +020013319 input.ReadRawMessage(this);
Jan Tattermusch7cb55972020-06-02 09:26:25 +020013320 #else
13321 uint tag;
13322 while ((tag = input.ReadTag()) != 0) {
13323 switch(tag) {
13324 case 12:
13325 return;
13326 default:
13327 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
13328 break;
13329 case 16: {
13330 I = input.ReadInt32();
13331 break;
13332 }
13333 }
13334 }
13335 #endif
Jan Tattermusch3196ef92020-04-02 15:36:16 +020013336 }
13337
Jan Tattermusch7cb55972020-06-02 09:26:25 +020013338 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
Jan Tattermusch3196ef92020-04-02 15:36:16 +020013339 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020013340 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Jan Tattermusch0df7ddc2020-04-14 12:41:03 +020013341 void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
Sydney Acksman8a57ec82019-03-21 17:36:36 -050013342 uint tag;
13343 while ((tag = input.ReadTag()) != 0) {
13344 switch(tag) {
13345 case 12:
13346 return;
13347 default:
Jan Tattermusch3196ef92020-04-02 15:36:16 +020013348 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
Sydney Acksman8a57ec82019-03-21 17:36:36 -050013349 break;
13350 case 16: {
13351 I = input.ReadInt32();
13352 break;
13353 }
13354 }
13355 }
13356 }
Jan Tattermusch7cb55972020-06-02 09:26:25 +020013357 #endif
Sydney Acksman8a57ec82019-03-21 17:36:36 -050013358
13359 }
13360
13361 }
13362 #endregion
13363
13364 }
13365
13366 }
13367 #endregion
13368
13369 }
13370
13371 /// <summary>
13372 /// Test that groups have disjoint field numbers from their siblings and
Protobuf Team Bota12b0c02023-01-31 09:58:51 -080013373 /// parents. This is NOT possible in proto1; only google.protobuf. When attempting
13374 /// to compile with proto1, this will emit an error; so we only include it
13375 /// in protobuf_unittest_proto.
Sydney Acksman8a57ec82019-03-21 17:36:36 -050013376 /// </summary>
Jan Tattermusch7cb55972020-06-02 09:26:25 +020013377 public sealed partial class TestDupFieldNumber : pb::IMessage<TestDupFieldNumber>
13378 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
13379 , pb::IBufferMessage
13380 #endif
13381 {
Sydney Acksman8a57ec82019-03-21 17:36:36 -050013382 private static readonly pb::MessageParser<TestDupFieldNumber> _parser = new pb::MessageParser<TestDupFieldNumber>(() => new TestDupFieldNumber());
13383 private pb::UnknownFieldSet _unknownFields;
13384 private int _hasBits0;
13385 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020013386 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050013387 public static pb::MessageParser<TestDupFieldNumber> Parser { get { return _parser; } }
13388
13389 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020013390 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050013391 public static pbr::MessageDescriptor Descriptor {
13392 get { return global::Google.Protobuf.TestProtos.Proto2.UnittestReflection.Descriptor.MessageTypes[24]; }
13393 }
13394
13395 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020013396 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050013397 pbr::MessageDescriptor pb::IMessage.Descriptor {
13398 get { return Descriptor; }
13399 }
13400
13401 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020013402 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050013403 public TestDupFieldNumber() {
13404 OnConstruction();
13405 }
13406
13407 partial void OnConstruction();
13408
13409 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020013410 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050013411 public TestDupFieldNumber(TestDupFieldNumber other) : this() {
13412 _hasBits0 = other._hasBits0;
13413 a_ = other.a_;
13414 foo_ = other.HasFoo ? other.foo_.Clone() : null;
13415 bar_ = other.HasBar ? other.bar_.Clone() : null;
13416 _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
13417 }
13418
13419 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020013420 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050013421 public TestDupFieldNumber Clone() {
13422 return new TestDupFieldNumber(this);
13423 }
13424
13425 /// <summary>Field number for the "a" field.</summary>
13426 public const int AFieldNumber = 1;
13427 private readonly static int ADefaultValue = 0;
13428
13429 private int a_;
13430 /// <summary>
13431 /// NO_PROTO1
13432 /// </summary>
13433 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020013434 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050013435 public int A {
13436 get { if ((_hasBits0 & 1) != 0) { return a_; } else { return ADefaultValue; } }
13437 set {
13438 _hasBits0 |= 1;
13439 a_ = value;
13440 }
13441 }
13442 /// <summary>Gets whether the "a" field is set</summary>
13443 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020013444 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050013445 public bool HasA {
13446 get { return (_hasBits0 & 1) != 0; }
13447 }
13448 /// <summary>Clears the value of the "a" field</summary>
13449 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020013450 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050013451 public void ClearA() {
13452 _hasBits0 &= ~1;
13453 }
13454
13455 /// <summary>Field number for the "foo" field.</summary>
13456 public const int FooFieldNumber = 2;
13457 private global::Google.Protobuf.TestProtos.Proto2.TestDupFieldNumber.Types.Foo foo_;
13458 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020013459 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050013460 public global::Google.Protobuf.TestProtos.Proto2.TestDupFieldNumber.Types.Foo Foo {
13461 get { return foo_; }
13462 set {
13463 foo_ = value;
13464 }
13465 }
13466 /// <summary>Gets whether the foo field is set</summary>
13467 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020013468 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050013469 public bool HasFoo {
13470 get { return foo_ != null; }
13471 }
13472 /// <summary>Clears the value of the foo field</summary>
13473 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020013474 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050013475 public void ClearFoo() {
13476 foo_ = null;
13477 }
13478
13479 /// <summary>Field number for the "bar" field.</summary>
13480 public const int BarFieldNumber = 3;
13481 private global::Google.Protobuf.TestProtos.Proto2.TestDupFieldNumber.Types.Bar bar_;
13482 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020013483 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050013484 public global::Google.Protobuf.TestProtos.Proto2.TestDupFieldNumber.Types.Bar Bar {
13485 get { return bar_; }
13486 set {
13487 bar_ = value;
13488 }
13489 }
13490 /// <summary>Gets whether the bar field is set</summary>
13491 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020013492 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050013493 public bool HasBar {
13494 get { return bar_ != null; }
13495 }
13496 /// <summary>Clears the value of the bar field</summary>
13497 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020013498 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050013499 public void ClearBar() {
13500 bar_ = null;
13501 }
13502
13503 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020013504 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050013505 public override bool Equals(object other) {
13506 return Equals(other as TestDupFieldNumber);
13507 }
13508
13509 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020013510 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050013511 public bool Equals(TestDupFieldNumber other) {
13512 if (ReferenceEquals(other, null)) {
13513 return false;
13514 }
13515 if (ReferenceEquals(other, this)) {
13516 return true;
13517 }
13518 if (A != other.A) return false;
13519 if (!object.Equals(Foo, other.Foo)) return false;
13520 if (!object.Equals(Bar, other.Bar)) return false;
13521 return Equals(_unknownFields, other._unknownFields);
13522 }
13523
13524 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020013525 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050013526 public override int GetHashCode() {
13527 int hash = 1;
13528 if (HasA) hash ^= A.GetHashCode();
13529 if (HasFoo) hash ^= Foo.GetHashCode();
13530 if (HasBar) hash ^= Bar.GetHashCode();
13531 if (_unknownFields != null) {
13532 hash ^= _unknownFields.GetHashCode();
13533 }
13534 return hash;
13535 }
13536
13537 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020013538 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050013539 public override string ToString() {
13540 return pb::JsonFormatter.ToDiagnosticString(this);
13541 }
13542
13543 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020013544 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050013545 public void WriteTo(pb::CodedOutputStream output) {
Jan Tattermusch125e4ad2020-05-29 04:32:43 -040013546 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
13547 output.WriteRawMessage(this);
13548 #else
Sydney Acksman8a57ec82019-03-21 17:36:36 -050013549 if (HasA) {
13550 output.WriteRawTag(8);
13551 output.WriteInt32(A);
13552 }
13553 if (HasFoo) {
13554 output.WriteRawTag(19);
13555 output.WriteGroup(Foo);
13556 output.WriteRawTag(20);
13557 }
13558 if (HasBar) {
13559 output.WriteRawTag(27);
13560 output.WriteGroup(Bar);
13561 output.WriteRawTag(28);
13562 }
13563 if (_unknownFields != null) {
13564 _unknownFields.WriteTo(output);
13565 }
Jan Tattermusch125e4ad2020-05-29 04:32:43 -040013566 #endif
Sydney Acksman8a57ec82019-03-21 17:36:36 -050013567 }
13568
Jan Tattermusch125e4ad2020-05-29 04:32:43 -040013569 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
13570 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020013571 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Jan Tattermusch125e4ad2020-05-29 04:32:43 -040013572 void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
13573 if (HasA) {
13574 output.WriteRawTag(8);
13575 output.WriteInt32(A);
13576 }
13577 if (HasFoo) {
13578 output.WriteRawTag(19);
13579 output.WriteGroup(Foo);
13580 output.WriteRawTag(20);
13581 }
13582 if (HasBar) {
13583 output.WriteRawTag(27);
13584 output.WriteGroup(Bar);
13585 output.WriteRawTag(28);
13586 }
13587 if (_unknownFields != null) {
13588 _unknownFields.WriteTo(ref output);
13589 }
13590 }
13591 #endif
13592
Sydney Acksman8a57ec82019-03-21 17:36:36 -050013593 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020013594 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050013595 public int CalculateSize() {
13596 int size = 0;
13597 if (HasA) {
13598 size += 1 + pb::CodedOutputStream.ComputeInt32Size(A);
13599 }
13600 if (HasFoo) {
13601 size += 2 + pb::CodedOutputStream.ComputeGroupSize(Foo);
13602 }
13603 if (HasBar) {
13604 size += 2 + pb::CodedOutputStream.ComputeGroupSize(Bar);
13605 }
13606 if (_unknownFields != null) {
13607 size += _unknownFields.CalculateSize();
13608 }
13609 return size;
13610 }
13611
13612 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020013613 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050013614 public void MergeFrom(TestDupFieldNumber other) {
13615 if (other == null) {
13616 return;
13617 }
13618 if (other.HasA) {
13619 A = other.A;
13620 }
13621 if (other.HasFoo) {
13622 if (!HasFoo) {
13623 Foo = new global::Google.Protobuf.TestProtos.Proto2.TestDupFieldNumber.Types.Foo();
13624 }
13625 Foo.MergeFrom(other.Foo);
13626 }
13627 if (other.HasBar) {
13628 if (!HasBar) {
13629 Bar = new global::Google.Protobuf.TestProtos.Proto2.TestDupFieldNumber.Types.Bar();
13630 }
13631 Bar.MergeFrom(other.Bar);
13632 }
13633 _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
13634 }
13635
13636 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020013637 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050013638 public void MergeFrom(pb::CodedInputStream input) {
Jan Tattermusch7cb55972020-06-02 09:26:25 +020013639 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
Jan Tattermusch3196ef92020-04-02 15:36:16 +020013640 input.ReadRawMessage(this);
Jan Tattermusch7cb55972020-06-02 09:26:25 +020013641 #else
13642 uint tag;
13643 while ((tag = input.ReadTag()) != 0) {
13644 switch(tag) {
13645 default:
13646 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
13647 break;
13648 case 8: {
13649 A = input.ReadInt32();
13650 break;
13651 }
13652 case 19: {
13653 if (!HasFoo) {
13654 Foo = new global::Google.Protobuf.TestProtos.Proto2.TestDupFieldNumber.Types.Foo();
13655 }
13656 input.ReadGroup(Foo);
13657 break;
13658 }
13659 case 27: {
13660 if (!HasBar) {
13661 Bar = new global::Google.Protobuf.TestProtos.Proto2.TestDupFieldNumber.Types.Bar();
13662 }
13663 input.ReadGroup(Bar);
13664 break;
13665 }
13666 }
13667 }
13668 #endif
Jan Tattermusch3196ef92020-04-02 15:36:16 +020013669 }
13670
Jan Tattermusch7cb55972020-06-02 09:26:25 +020013671 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
Jan Tattermusch3196ef92020-04-02 15:36:16 +020013672 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020013673 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Jan Tattermusch0df7ddc2020-04-14 12:41:03 +020013674 void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
Sydney Acksman8a57ec82019-03-21 17:36:36 -050013675 uint tag;
13676 while ((tag = input.ReadTag()) != 0) {
13677 switch(tag) {
13678 default:
Jan Tattermusch3196ef92020-04-02 15:36:16 +020013679 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
Sydney Acksman8a57ec82019-03-21 17:36:36 -050013680 break;
13681 case 8: {
13682 A = input.ReadInt32();
13683 break;
13684 }
13685 case 19: {
13686 if (!HasFoo) {
13687 Foo = new global::Google.Protobuf.TestProtos.Proto2.TestDupFieldNumber.Types.Foo();
13688 }
13689 input.ReadGroup(Foo);
13690 break;
13691 }
13692 case 27: {
13693 if (!HasBar) {
13694 Bar = new global::Google.Protobuf.TestProtos.Proto2.TestDupFieldNumber.Types.Bar();
13695 }
13696 input.ReadGroup(Bar);
13697 break;
13698 }
13699 }
13700 }
13701 }
Jan Tattermusch7cb55972020-06-02 09:26:25 +020013702 #endif
Sydney Acksman8a57ec82019-03-21 17:36:36 -050013703
13704 #region Nested types
13705 /// <summary>Container for nested types declared in the TestDupFieldNumber message type.</summary>
13706 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020013707 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050013708 public static partial class Types {
Jan Tattermusch7cb55972020-06-02 09:26:25 +020013709 public sealed partial class Foo : pb::IMessage<Foo>
13710 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
13711 , pb::IBufferMessage
13712 #endif
13713 {
Sydney Acksman8a57ec82019-03-21 17:36:36 -050013714 private static readonly pb::MessageParser<Foo> _parser = new pb::MessageParser<Foo>(() => new Foo());
13715 private pb::UnknownFieldSet _unknownFields;
13716 private int _hasBits0;
13717 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020013718 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050013719 public static pb::MessageParser<Foo> Parser { get { return _parser; } }
13720
13721 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020013722 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050013723 public static pbr::MessageDescriptor Descriptor {
13724 get { return global::Google.Protobuf.TestProtos.Proto2.TestDupFieldNumber.Descriptor.NestedTypes[0]; }
13725 }
13726
13727 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020013728 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050013729 pbr::MessageDescriptor pb::IMessage.Descriptor {
13730 get { return Descriptor; }
13731 }
13732
13733 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020013734 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050013735 public Foo() {
13736 OnConstruction();
13737 }
13738
13739 partial void OnConstruction();
13740
13741 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020013742 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050013743 public Foo(Foo other) : this() {
13744 _hasBits0 = other._hasBits0;
13745 a_ = other.a_;
13746 _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
13747 }
13748
13749 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020013750 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050013751 public Foo Clone() {
13752 return new Foo(this);
13753 }
13754
13755 /// <summary>Field number for the "a" field.</summary>
13756 public const int AFieldNumber = 1;
13757 private readonly static int ADefaultValue = 0;
13758
13759 private int a_;
13760 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020013761 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050013762 public int A {
13763 get { if ((_hasBits0 & 1) != 0) { return a_; } else { return ADefaultValue; } }
13764 set {
13765 _hasBits0 |= 1;
13766 a_ = value;
13767 }
13768 }
13769 /// <summary>Gets whether the "a" field is set</summary>
13770 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020013771 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050013772 public bool HasA {
13773 get { return (_hasBits0 & 1) != 0; }
13774 }
13775 /// <summary>Clears the value of the "a" field</summary>
13776 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020013777 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050013778 public void ClearA() {
13779 _hasBits0 &= ~1;
13780 }
13781
13782 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020013783 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050013784 public override bool Equals(object other) {
13785 return Equals(other as Foo);
13786 }
13787
13788 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020013789 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050013790 public bool Equals(Foo other) {
13791 if (ReferenceEquals(other, null)) {
13792 return false;
13793 }
13794 if (ReferenceEquals(other, this)) {
13795 return true;
13796 }
13797 if (A != other.A) return false;
13798 return Equals(_unknownFields, other._unknownFields);
13799 }
13800
13801 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020013802 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050013803 public override int GetHashCode() {
13804 int hash = 1;
13805 if (HasA) hash ^= A.GetHashCode();
13806 if (_unknownFields != null) {
13807 hash ^= _unknownFields.GetHashCode();
13808 }
13809 return hash;
13810 }
13811
13812 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020013813 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050013814 public override string ToString() {
13815 return pb::JsonFormatter.ToDiagnosticString(this);
13816 }
13817
13818 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020013819 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050013820 public void WriteTo(pb::CodedOutputStream output) {
Jan Tattermusch125e4ad2020-05-29 04:32:43 -040013821 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
13822 output.WriteRawMessage(this);
13823 #else
Sydney Acksman8a57ec82019-03-21 17:36:36 -050013824 if (HasA) {
13825 output.WriteRawTag(8);
13826 output.WriteInt32(A);
13827 }
13828 if (_unknownFields != null) {
13829 _unknownFields.WriteTo(output);
13830 }
Jan Tattermusch125e4ad2020-05-29 04:32:43 -040013831 #endif
Sydney Acksman8a57ec82019-03-21 17:36:36 -050013832 }
13833
Jan Tattermusch125e4ad2020-05-29 04:32:43 -040013834 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
13835 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020013836 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Jan Tattermusch125e4ad2020-05-29 04:32:43 -040013837 void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
13838 if (HasA) {
13839 output.WriteRawTag(8);
13840 output.WriteInt32(A);
13841 }
13842 if (_unknownFields != null) {
13843 _unknownFields.WriteTo(ref output);
13844 }
13845 }
13846 #endif
13847
Sydney Acksman8a57ec82019-03-21 17:36:36 -050013848 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020013849 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050013850 public int CalculateSize() {
13851 int size = 0;
13852 if (HasA) {
13853 size += 1 + pb::CodedOutputStream.ComputeInt32Size(A);
13854 }
13855 if (_unknownFields != null) {
13856 size += _unknownFields.CalculateSize();
13857 }
13858 return size;
13859 }
13860
13861 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020013862 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050013863 public void MergeFrom(Foo other) {
13864 if (other == null) {
13865 return;
13866 }
13867 if (other.HasA) {
13868 A = other.A;
13869 }
13870 _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
13871 }
13872
13873 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020013874 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050013875 public void MergeFrom(pb::CodedInputStream input) {
Jan Tattermusch7cb55972020-06-02 09:26:25 +020013876 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
Jan Tattermusch3196ef92020-04-02 15:36:16 +020013877 input.ReadRawMessage(this);
Jan Tattermusch7cb55972020-06-02 09:26:25 +020013878 #else
13879 uint tag;
13880 while ((tag = input.ReadTag()) != 0) {
13881 switch(tag) {
13882 case 20:
13883 return;
13884 default:
13885 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
13886 break;
13887 case 8: {
13888 A = input.ReadInt32();
13889 break;
13890 }
13891 }
13892 }
13893 #endif
Jan Tattermusch3196ef92020-04-02 15:36:16 +020013894 }
13895
Jan Tattermusch7cb55972020-06-02 09:26:25 +020013896 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
Jan Tattermusch3196ef92020-04-02 15:36:16 +020013897 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020013898 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Jan Tattermusch0df7ddc2020-04-14 12:41:03 +020013899 void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
Sydney Acksman8a57ec82019-03-21 17:36:36 -050013900 uint tag;
13901 while ((tag = input.ReadTag()) != 0) {
13902 switch(tag) {
13903 case 20:
13904 return;
13905 default:
Jan Tattermusch3196ef92020-04-02 15:36:16 +020013906 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
Sydney Acksman8a57ec82019-03-21 17:36:36 -050013907 break;
13908 case 8: {
13909 A = input.ReadInt32();
13910 break;
13911 }
13912 }
13913 }
13914 }
Jan Tattermusch7cb55972020-06-02 09:26:25 +020013915 #endif
Sydney Acksman8a57ec82019-03-21 17:36:36 -050013916
13917 }
13918
Jan Tattermusch7cb55972020-06-02 09:26:25 +020013919 public sealed partial class Bar : pb::IMessage<Bar>
13920 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
13921 , pb::IBufferMessage
13922 #endif
13923 {
Sydney Acksman8a57ec82019-03-21 17:36:36 -050013924 private static readonly pb::MessageParser<Bar> _parser = new pb::MessageParser<Bar>(() => new Bar());
13925 private pb::UnknownFieldSet _unknownFields;
13926 private int _hasBits0;
13927 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020013928 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050013929 public static pb::MessageParser<Bar> Parser { get { return _parser; } }
13930
13931 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020013932 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050013933 public static pbr::MessageDescriptor Descriptor {
13934 get { return global::Google.Protobuf.TestProtos.Proto2.TestDupFieldNumber.Descriptor.NestedTypes[1]; }
13935 }
13936
13937 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020013938 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050013939 pbr::MessageDescriptor pb::IMessage.Descriptor {
13940 get { return Descriptor; }
13941 }
13942
13943 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020013944 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050013945 public Bar() {
13946 OnConstruction();
13947 }
13948
13949 partial void OnConstruction();
13950
13951 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020013952 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050013953 public Bar(Bar other) : this() {
13954 _hasBits0 = other._hasBits0;
13955 a_ = other.a_;
13956 _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
13957 }
13958
13959 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020013960 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050013961 public Bar Clone() {
13962 return new Bar(this);
13963 }
13964
13965 /// <summary>Field number for the "a" field.</summary>
13966 public const int AFieldNumber = 1;
13967 private readonly static int ADefaultValue = 0;
13968
13969 private int a_;
13970 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020013971 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050013972 public int A {
13973 get { if ((_hasBits0 & 1) != 0) { return a_; } else { return ADefaultValue; } }
13974 set {
13975 _hasBits0 |= 1;
13976 a_ = value;
13977 }
13978 }
13979 /// <summary>Gets whether the "a" field is set</summary>
13980 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020013981 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050013982 public bool HasA {
13983 get { return (_hasBits0 & 1) != 0; }
13984 }
13985 /// <summary>Clears the value of the "a" field</summary>
13986 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020013987 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050013988 public void ClearA() {
13989 _hasBits0 &= ~1;
13990 }
13991
13992 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020013993 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050013994 public override bool Equals(object other) {
13995 return Equals(other as Bar);
13996 }
13997
13998 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020013999 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050014000 public bool Equals(Bar other) {
14001 if (ReferenceEquals(other, null)) {
14002 return false;
14003 }
14004 if (ReferenceEquals(other, this)) {
14005 return true;
14006 }
14007 if (A != other.A) return false;
14008 return Equals(_unknownFields, other._unknownFields);
14009 }
14010
14011 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020014012 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050014013 public override int GetHashCode() {
14014 int hash = 1;
14015 if (HasA) hash ^= A.GetHashCode();
14016 if (_unknownFields != null) {
14017 hash ^= _unknownFields.GetHashCode();
14018 }
14019 return hash;
14020 }
14021
14022 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020014023 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050014024 public override string ToString() {
14025 return pb::JsonFormatter.ToDiagnosticString(this);
14026 }
14027
14028 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020014029 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050014030 public void WriteTo(pb::CodedOutputStream output) {
Jan Tattermusch125e4ad2020-05-29 04:32:43 -040014031 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
14032 output.WriteRawMessage(this);
14033 #else
Sydney Acksman8a57ec82019-03-21 17:36:36 -050014034 if (HasA) {
14035 output.WriteRawTag(8);
14036 output.WriteInt32(A);
14037 }
14038 if (_unknownFields != null) {
14039 _unknownFields.WriteTo(output);
14040 }
Jan Tattermusch125e4ad2020-05-29 04:32:43 -040014041 #endif
Sydney Acksman8a57ec82019-03-21 17:36:36 -050014042 }
14043
Jan Tattermusch125e4ad2020-05-29 04:32:43 -040014044 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
14045 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020014046 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Jan Tattermusch125e4ad2020-05-29 04:32:43 -040014047 void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
14048 if (HasA) {
14049 output.WriteRawTag(8);
14050 output.WriteInt32(A);
14051 }
14052 if (_unknownFields != null) {
14053 _unknownFields.WriteTo(ref output);
14054 }
14055 }
14056 #endif
14057
Sydney Acksman8a57ec82019-03-21 17:36:36 -050014058 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020014059 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050014060 public int CalculateSize() {
14061 int size = 0;
14062 if (HasA) {
14063 size += 1 + pb::CodedOutputStream.ComputeInt32Size(A);
14064 }
14065 if (_unknownFields != null) {
14066 size += _unknownFields.CalculateSize();
14067 }
14068 return size;
14069 }
14070
14071 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020014072 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050014073 public void MergeFrom(Bar other) {
14074 if (other == null) {
14075 return;
14076 }
14077 if (other.HasA) {
14078 A = other.A;
14079 }
14080 _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
14081 }
14082
14083 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020014084 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050014085 public void MergeFrom(pb::CodedInputStream input) {
Jan Tattermusch7cb55972020-06-02 09:26:25 +020014086 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
Jan Tattermusch3196ef92020-04-02 15:36:16 +020014087 input.ReadRawMessage(this);
Jan Tattermusch7cb55972020-06-02 09:26:25 +020014088 #else
14089 uint tag;
14090 while ((tag = input.ReadTag()) != 0) {
14091 switch(tag) {
14092 case 28:
14093 return;
14094 default:
14095 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
14096 break;
14097 case 8: {
14098 A = input.ReadInt32();
14099 break;
14100 }
14101 }
14102 }
14103 #endif
Jan Tattermusch3196ef92020-04-02 15:36:16 +020014104 }
14105
Jan Tattermusch7cb55972020-06-02 09:26:25 +020014106 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
Jan Tattermusch3196ef92020-04-02 15:36:16 +020014107 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020014108 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Jan Tattermusch0df7ddc2020-04-14 12:41:03 +020014109 void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
Sydney Acksman8a57ec82019-03-21 17:36:36 -050014110 uint tag;
14111 while ((tag = input.ReadTag()) != 0) {
14112 switch(tag) {
14113 case 28:
14114 return;
14115 default:
Jan Tattermusch3196ef92020-04-02 15:36:16 +020014116 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
Sydney Acksman8a57ec82019-03-21 17:36:36 -050014117 break;
14118 case 8: {
14119 A = input.ReadInt32();
14120 break;
14121 }
14122 }
14123 }
14124 }
Jan Tattermusch7cb55972020-06-02 09:26:25 +020014125 #endif
Sydney Acksman8a57ec82019-03-21 17:36:36 -050014126
14127 }
14128
14129 }
14130 #endregion
14131
14132 }
14133
14134 /// <summary>
14135 /// Additional messages for testing lazy fields.
14136 /// </summary>
Jan Tattermusch7cb55972020-06-02 09:26:25 +020014137 public sealed partial class TestEagerMessage : pb::IMessage<TestEagerMessage>
14138 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
14139 , pb::IBufferMessage
14140 #endif
14141 {
Sydney Acksman8a57ec82019-03-21 17:36:36 -050014142 private static readonly pb::MessageParser<TestEagerMessage> _parser = new pb::MessageParser<TestEagerMessage>(() => new TestEagerMessage());
14143 private pb::UnknownFieldSet _unknownFields;
14144 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020014145 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050014146 public static pb::MessageParser<TestEagerMessage> Parser { get { return _parser; } }
14147
14148 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020014149 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050014150 public static pbr::MessageDescriptor Descriptor {
14151 get { return global::Google.Protobuf.TestProtos.Proto2.UnittestReflection.Descriptor.MessageTypes[25]; }
14152 }
14153
14154 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020014155 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050014156 pbr::MessageDescriptor pb::IMessage.Descriptor {
14157 get { return Descriptor; }
14158 }
14159
14160 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020014161 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050014162 public TestEagerMessage() {
14163 OnConstruction();
14164 }
14165
14166 partial void OnConstruction();
14167
14168 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020014169 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050014170 public TestEagerMessage(TestEagerMessage other) : this() {
Jon Skeet9926c952020-04-27 07:18:45 +010014171 subMessage_ = other.subMessage_ != null ? other.subMessage_.Clone() : null;
Sydney Acksman8a57ec82019-03-21 17:36:36 -050014172 _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
14173 }
14174
14175 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020014176 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050014177 public TestEagerMessage Clone() {
14178 return new TestEagerMessage(this);
14179 }
14180
14181 /// <summary>Field number for the "sub_message" field.</summary>
14182 public const int SubMessageFieldNumber = 1;
14183 private global::Google.Protobuf.TestProtos.Proto2.TestAllTypes subMessage_;
14184 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020014185 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050014186 public global::Google.Protobuf.TestProtos.Proto2.TestAllTypes SubMessage {
14187 get { return subMessage_; }
14188 set {
14189 subMessage_ = value;
14190 }
14191 }
Sydney Acksman8a57ec82019-03-21 17:36:36 -050014192
14193 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020014194 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050014195 public override bool Equals(object other) {
14196 return Equals(other as TestEagerMessage);
14197 }
14198
14199 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020014200 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050014201 public bool Equals(TestEagerMessage other) {
14202 if (ReferenceEquals(other, null)) {
14203 return false;
14204 }
14205 if (ReferenceEquals(other, this)) {
14206 return true;
14207 }
14208 if (!object.Equals(SubMessage, other.SubMessage)) return false;
14209 return Equals(_unknownFields, other._unknownFields);
14210 }
14211
14212 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020014213 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050014214 public override int GetHashCode() {
14215 int hash = 1;
Jon Skeet9926c952020-04-27 07:18:45 +010014216 if (subMessage_ != null) hash ^= SubMessage.GetHashCode();
Sydney Acksman8a57ec82019-03-21 17:36:36 -050014217 if (_unknownFields != null) {
14218 hash ^= _unknownFields.GetHashCode();
14219 }
14220 return hash;
14221 }
14222
14223 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020014224 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050014225 public override string ToString() {
14226 return pb::JsonFormatter.ToDiagnosticString(this);
14227 }
14228
14229 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020014230 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050014231 public void WriteTo(pb::CodedOutputStream output) {
Jan Tattermusch125e4ad2020-05-29 04:32:43 -040014232 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
14233 output.WriteRawMessage(this);
14234 #else
Jon Skeet9926c952020-04-27 07:18:45 +010014235 if (subMessage_ != null) {
Sydney Acksman8a57ec82019-03-21 17:36:36 -050014236 output.WriteRawTag(10);
14237 output.WriteMessage(SubMessage);
14238 }
14239 if (_unknownFields != null) {
14240 _unknownFields.WriteTo(output);
14241 }
Jan Tattermusch125e4ad2020-05-29 04:32:43 -040014242 #endif
Sydney Acksman8a57ec82019-03-21 17:36:36 -050014243 }
14244
Jan Tattermusch125e4ad2020-05-29 04:32:43 -040014245 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
14246 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020014247 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Jan Tattermusch125e4ad2020-05-29 04:32:43 -040014248 void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
14249 if (subMessage_ != null) {
14250 output.WriteRawTag(10);
14251 output.WriteMessage(SubMessage);
14252 }
14253 if (_unknownFields != null) {
14254 _unknownFields.WriteTo(ref output);
14255 }
14256 }
14257 #endif
14258
Sydney Acksman8a57ec82019-03-21 17:36:36 -050014259 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020014260 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050014261 public int CalculateSize() {
14262 int size = 0;
Jon Skeet9926c952020-04-27 07:18:45 +010014263 if (subMessage_ != null) {
Sydney Acksman8a57ec82019-03-21 17:36:36 -050014264 size += 1 + pb::CodedOutputStream.ComputeMessageSize(SubMessage);
14265 }
14266 if (_unknownFields != null) {
14267 size += _unknownFields.CalculateSize();
14268 }
14269 return size;
14270 }
14271
14272 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020014273 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050014274 public void MergeFrom(TestEagerMessage other) {
14275 if (other == null) {
14276 return;
14277 }
Jon Skeet9926c952020-04-27 07:18:45 +010014278 if (other.subMessage_ != null) {
14279 if (subMessage_ == null) {
Sydney Acksman8a57ec82019-03-21 17:36:36 -050014280 SubMessage = new global::Google.Protobuf.TestProtos.Proto2.TestAllTypes();
14281 }
14282 SubMessage.MergeFrom(other.SubMessage);
14283 }
14284 _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
14285 }
14286
14287 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020014288 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050014289 public void MergeFrom(pb::CodedInputStream input) {
Jan Tattermusch7cb55972020-06-02 09:26:25 +020014290 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
Jan Tattermusch3196ef92020-04-02 15:36:16 +020014291 input.ReadRawMessage(this);
Jan Tattermusch7cb55972020-06-02 09:26:25 +020014292 #else
14293 uint tag;
14294 while ((tag = input.ReadTag()) != 0) {
14295 switch(tag) {
14296 default:
14297 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
14298 break;
14299 case 10: {
14300 if (subMessage_ == null) {
14301 SubMessage = new global::Google.Protobuf.TestProtos.Proto2.TestAllTypes();
14302 }
14303 input.ReadMessage(SubMessage);
14304 break;
14305 }
14306 }
14307 }
14308 #endif
Jan Tattermusch3196ef92020-04-02 15:36:16 +020014309 }
14310
Jan Tattermusch7cb55972020-06-02 09:26:25 +020014311 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
Jan Tattermusch3196ef92020-04-02 15:36:16 +020014312 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020014313 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Jan Tattermusch0df7ddc2020-04-14 12:41:03 +020014314 void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
Sydney Acksman8a57ec82019-03-21 17:36:36 -050014315 uint tag;
14316 while ((tag = input.ReadTag()) != 0) {
14317 switch(tag) {
14318 default:
Jan Tattermusch3196ef92020-04-02 15:36:16 +020014319 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
Sydney Acksman8a57ec82019-03-21 17:36:36 -050014320 break;
14321 case 10: {
Jon Skeet9926c952020-04-27 07:18:45 +010014322 if (subMessage_ == null) {
Sydney Acksman8a57ec82019-03-21 17:36:36 -050014323 SubMessage = new global::Google.Protobuf.TestProtos.Proto2.TestAllTypes();
14324 }
14325 input.ReadMessage(SubMessage);
14326 break;
14327 }
14328 }
14329 }
14330 }
Jan Tattermusch7cb55972020-06-02 09:26:25 +020014331 #endif
Sydney Acksman8a57ec82019-03-21 17:36:36 -050014332
14333 }
14334
Jan Tattermusch7cb55972020-06-02 09:26:25 +020014335 public sealed partial class TestLazyMessage : pb::IMessage<TestLazyMessage>
14336 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
14337 , pb::IBufferMessage
14338 #endif
14339 {
Sydney Acksman8a57ec82019-03-21 17:36:36 -050014340 private static readonly pb::MessageParser<TestLazyMessage> _parser = new pb::MessageParser<TestLazyMessage>(() => new TestLazyMessage());
14341 private pb::UnknownFieldSet _unknownFields;
14342 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020014343 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050014344 public static pb::MessageParser<TestLazyMessage> Parser { get { return _parser; } }
14345
14346 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020014347 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050014348 public static pbr::MessageDescriptor Descriptor {
14349 get { return global::Google.Protobuf.TestProtos.Proto2.UnittestReflection.Descriptor.MessageTypes[26]; }
14350 }
14351
14352 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020014353 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050014354 pbr::MessageDescriptor pb::IMessage.Descriptor {
14355 get { return Descriptor; }
14356 }
14357
14358 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020014359 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050014360 public TestLazyMessage() {
14361 OnConstruction();
14362 }
14363
14364 partial void OnConstruction();
14365
14366 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020014367 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050014368 public TestLazyMessage(TestLazyMessage other) : this() {
Jon Skeet9926c952020-04-27 07:18:45 +010014369 subMessage_ = other.subMessage_ != null ? other.subMessage_.Clone() : null;
Sydney Acksman8a57ec82019-03-21 17:36:36 -050014370 _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
14371 }
14372
14373 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020014374 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050014375 public TestLazyMessage Clone() {
14376 return new TestLazyMessage(this);
14377 }
14378
14379 /// <summary>Field number for the "sub_message" field.</summary>
14380 public const int SubMessageFieldNumber = 1;
14381 private global::Google.Protobuf.TestProtos.Proto2.TestAllTypes subMessage_;
14382 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020014383 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050014384 public global::Google.Protobuf.TestProtos.Proto2.TestAllTypes SubMessage {
14385 get { return subMessage_; }
14386 set {
14387 subMessage_ = value;
14388 }
14389 }
Sydney Acksman8a57ec82019-03-21 17:36:36 -050014390
14391 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020014392 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050014393 public override bool Equals(object other) {
14394 return Equals(other as TestLazyMessage);
14395 }
14396
14397 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020014398 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050014399 public bool Equals(TestLazyMessage other) {
14400 if (ReferenceEquals(other, null)) {
14401 return false;
14402 }
14403 if (ReferenceEquals(other, this)) {
14404 return true;
14405 }
14406 if (!object.Equals(SubMessage, other.SubMessage)) return false;
14407 return Equals(_unknownFields, other._unknownFields);
14408 }
14409
14410 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020014411 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050014412 public override int GetHashCode() {
14413 int hash = 1;
Jon Skeet9926c952020-04-27 07:18:45 +010014414 if (subMessage_ != null) hash ^= SubMessage.GetHashCode();
Sydney Acksman8a57ec82019-03-21 17:36:36 -050014415 if (_unknownFields != null) {
14416 hash ^= _unknownFields.GetHashCode();
14417 }
14418 return hash;
14419 }
14420
14421 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020014422 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050014423 public override string ToString() {
14424 return pb::JsonFormatter.ToDiagnosticString(this);
14425 }
14426
14427 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020014428 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050014429 public void WriteTo(pb::CodedOutputStream output) {
Jan Tattermusch125e4ad2020-05-29 04:32:43 -040014430 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
14431 output.WriteRawMessage(this);
14432 #else
Jon Skeet9926c952020-04-27 07:18:45 +010014433 if (subMessage_ != null) {
Sydney Acksman8a57ec82019-03-21 17:36:36 -050014434 output.WriteRawTag(10);
14435 output.WriteMessage(SubMessage);
14436 }
14437 if (_unknownFields != null) {
14438 _unknownFields.WriteTo(output);
14439 }
Jan Tattermusch125e4ad2020-05-29 04:32:43 -040014440 #endif
Sydney Acksman8a57ec82019-03-21 17:36:36 -050014441 }
14442
Jan Tattermusch125e4ad2020-05-29 04:32:43 -040014443 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
14444 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020014445 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Jan Tattermusch125e4ad2020-05-29 04:32:43 -040014446 void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
14447 if (subMessage_ != null) {
14448 output.WriteRawTag(10);
14449 output.WriteMessage(SubMessage);
14450 }
14451 if (_unknownFields != null) {
14452 _unknownFields.WriteTo(ref output);
14453 }
14454 }
14455 #endif
14456
Sydney Acksman8a57ec82019-03-21 17:36:36 -050014457 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020014458 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050014459 public int CalculateSize() {
14460 int size = 0;
Jon Skeet9926c952020-04-27 07:18:45 +010014461 if (subMessage_ != null) {
Sydney Acksman8a57ec82019-03-21 17:36:36 -050014462 size += 1 + pb::CodedOutputStream.ComputeMessageSize(SubMessage);
14463 }
14464 if (_unknownFields != null) {
14465 size += _unknownFields.CalculateSize();
14466 }
14467 return size;
14468 }
14469
14470 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020014471 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050014472 public void MergeFrom(TestLazyMessage other) {
14473 if (other == null) {
14474 return;
14475 }
Jon Skeet9926c952020-04-27 07:18:45 +010014476 if (other.subMessage_ != null) {
14477 if (subMessage_ == null) {
Sydney Acksman8a57ec82019-03-21 17:36:36 -050014478 SubMessage = new global::Google.Protobuf.TestProtos.Proto2.TestAllTypes();
14479 }
14480 SubMessage.MergeFrom(other.SubMessage);
14481 }
14482 _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
14483 }
14484
14485 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020014486 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050014487 public void MergeFrom(pb::CodedInputStream input) {
Jan Tattermusch7cb55972020-06-02 09:26:25 +020014488 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
Jan Tattermusch3196ef92020-04-02 15:36:16 +020014489 input.ReadRawMessage(this);
Jan Tattermusch7cb55972020-06-02 09:26:25 +020014490 #else
14491 uint tag;
14492 while ((tag = input.ReadTag()) != 0) {
14493 switch(tag) {
14494 default:
14495 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
14496 break;
14497 case 10: {
14498 if (subMessage_ == null) {
14499 SubMessage = new global::Google.Protobuf.TestProtos.Proto2.TestAllTypes();
14500 }
14501 input.ReadMessage(SubMessage);
14502 break;
14503 }
14504 }
14505 }
14506 #endif
Jan Tattermusch3196ef92020-04-02 15:36:16 +020014507 }
14508
Jan Tattermusch7cb55972020-06-02 09:26:25 +020014509 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
Jan Tattermusch3196ef92020-04-02 15:36:16 +020014510 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020014511 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Jan Tattermusch0df7ddc2020-04-14 12:41:03 +020014512 void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
Sydney Acksman8a57ec82019-03-21 17:36:36 -050014513 uint tag;
14514 while ((tag = input.ReadTag()) != 0) {
14515 switch(tag) {
14516 default:
Jan Tattermusch3196ef92020-04-02 15:36:16 +020014517 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
Sydney Acksman8a57ec82019-03-21 17:36:36 -050014518 break;
14519 case 10: {
Jon Skeet9926c952020-04-27 07:18:45 +010014520 if (subMessage_ == null) {
Sydney Acksman8a57ec82019-03-21 17:36:36 -050014521 SubMessage = new global::Google.Protobuf.TestProtos.Proto2.TestAllTypes();
14522 }
14523 input.ReadMessage(SubMessage);
14524 break;
14525 }
14526 }
14527 }
14528 }
Jan Tattermusch7cb55972020-06-02 09:26:25 +020014529 #endif
Sydney Acksman8a57ec82019-03-21 17:36:36 -050014530
14531 }
14532
14533 /// <summary>
14534 /// Needed for a Python test.
14535 /// </summary>
Jan Tattermusch7cb55972020-06-02 09:26:25 +020014536 public sealed partial class TestNestedMessageHasBits : pb::IMessage<TestNestedMessageHasBits>
14537 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
14538 , pb::IBufferMessage
14539 #endif
14540 {
Sydney Acksman8a57ec82019-03-21 17:36:36 -050014541 private static readonly pb::MessageParser<TestNestedMessageHasBits> _parser = new pb::MessageParser<TestNestedMessageHasBits>(() => new TestNestedMessageHasBits());
14542 private pb::UnknownFieldSet _unknownFields;
14543 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020014544 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050014545 public static pb::MessageParser<TestNestedMessageHasBits> Parser { get { return _parser; } }
14546
14547 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020014548 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050014549 public static pbr::MessageDescriptor Descriptor {
14550 get { return global::Google.Protobuf.TestProtos.Proto2.UnittestReflection.Descriptor.MessageTypes[27]; }
14551 }
14552
14553 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020014554 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050014555 pbr::MessageDescriptor pb::IMessage.Descriptor {
14556 get { return Descriptor; }
14557 }
14558
14559 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020014560 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050014561 public TestNestedMessageHasBits() {
14562 OnConstruction();
14563 }
14564
14565 partial void OnConstruction();
14566
14567 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020014568 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050014569 public TestNestedMessageHasBits(TestNestedMessageHasBits other) : this() {
Jon Skeet9926c952020-04-27 07:18:45 +010014570 optionalNestedMessage_ = other.optionalNestedMessage_ != null ? other.optionalNestedMessage_.Clone() : null;
Sydney Acksman8a57ec82019-03-21 17:36:36 -050014571 _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
14572 }
14573
14574 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020014575 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050014576 public TestNestedMessageHasBits Clone() {
14577 return new TestNestedMessageHasBits(this);
14578 }
14579
14580 /// <summary>Field number for the "optional_nested_message" field.</summary>
14581 public const int OptionalNestedMessageFieldNumber = 1;
14582 private global::Google.Protobuf.TestProtos.Proto2.TestNestedMessageHasBits.Types.NestedMessage optionalNestedMessage_;
14583 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020014584 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050014585 public global::Google.Protobuf.TestProtos.Proto2.TestNestedMessageHasBits.Types.NestedMessage OptionalNestedMessage {
14586 get { return optionalNestedMessage_; }
14587 set {
14588 optionalNestedMessage_ = value;
14589 }
14590 }
Sydney Acksman8a57ec82019-03-21 17:36:36 -050014591
14592 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020014593 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050014594 public override bool Equals(object other) {
14595 return Equals(other as TestNestedMessageHasBits);
14596 }
14597
14598 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020014599 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050014600 public bool Equals(TestNestedMessageHasBits other) {
14601 if (ReferenceEquals(other, null)) {
14602 return false;
14603 }
14604 if (ReferenceEquals(other, this)) {
14605 return true;
14606 }
14607 if (!object.Equals(OptionalNestedMessage, other.OptionalNestedMessage)) return false;
14608 return Equals(_unknownFields, other._unknownFields);
14609 }
14610
14611 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020014612 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050014613 public override int GetHashCode() {
14614 int hash = 1;
Jon Skeet9926c952020-04-27 07:18:45 +010014615 if (optionalNestedMessage_ != null) hash ^= OptionalNestedMessage.GetHashCode();
Sydney Acksman8a57ec82019-03-21 17:36:36 -050014616 if (_unknownFields != null) {
14617 hash ^= _unknownFields.GetHashCode();
14618 }
14619 return hash;
14620 }
14621
14622 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020014623 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050014624 public override string ToString() {
14625 return pb::JsonFormatter.ToDiagnosticString(this);
14626 }
14627
14628 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020014629 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050014630 public void WriteTo(pb::CodedOutputStream output) {
Jan Tattermusch125e4ad2020-05-29 04:32:43 -040014631 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
14632 output.WriteRawMessage(this);
14633 #else
Jon Skeet9926c952020-04-27 07:18:45 +010014634 if (optionalNestedMessage_ != null) {
Sydney Acksman8a57ec82019-03-21 17:36:36 -050014635 output.WriteRawTag(10);
14636 output.WriteMessage(OptionalNestedMessage);
14637 }
14638 if (_unknownFields != null) {
14639 _unknownFields.WriteTo(output);
14640 }
Jan Tattermusch125e4ad2020-05-29 04:32:43 -040014641 #endif
Sydney Acksman8a57ec82019-03-21 17:36:36 -050014642 }
14643
Jan Tattermusch125e4ad2020-05-29 04:32:43 -040014644 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
14645 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020014646 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Jan Tattermusch125e4ad2020-05-29 04:32:43 -040014647 void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
14648 if (optionalNestedMessage_ != null) {
14649 output.WriteRawTag(10);
14650 output.WriteMessage(OptionalNestedMessage);
14651 }
14652 if (_unknownFields != null) {
14653 _unknownFields.WriteTo(ref output);
14654 }
14655 }
14656 #endif
14657
Sydney Acksman8a57ec82019-03-21 17:36:36 -050014658 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020014659 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050014660 public int CalculateSize() {
14661 int size = 0;
Jon Skeet9926c952020-04-27 07:18:45 +010014662 if (optionalNestedMessage_ != null) {
Sydney Acksman8a57ec82019-03-21 17:36:36 -050014663 size += 1 + pb::CodedOutputStream.ComputeMessageSize(OptionalNestedMessage);
14664 }
14665 if (_unknownFields != null) {
14666 size += _unknownFields.CalculateSize();
14667 }
14668 return size;
14669 }
14670
14671 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020014672 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050014673 public void MergeFrom(TestNestedMessageHasBits other) {
14674 if (other == null) {
14675 return;
14676 }
Jon Skeet9926c952020-04-27 07:18:45 +010014677 if (other.optionalNestedMessage_ != null) {
14678 if (optionalNestedMessage_ == null) {
Sydney Acksman8a57ec82019-03-21 17:36:36 -050014679 OptionalNestedMessage = new global::Google.Protobuf.TestProtos.Proto2.TestNestedMessageHasBits.Types.NestedMessage();
14680 }
14681 OptionalNestedMessage.MergeFrom(other.OptionalNestedMessage);
14682 }
14683 _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
14684 }
14685
14686 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020014687 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050014688 public void MergeFrom(pb::CodedInputStream input) {
Jan Tattermusch7cb55972020-06-02 09:26:25 +020014689 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
Jan Tattermusch3196ef92020-04-02 15:36:16 +020014690 input.ReadRawMessage(this);
Jan Tattermusch7cb55972020-06-02 09:26:25 +020014691 #else
14692 uint tag;
14693 while ((tag = input.ReadTag()) != 0) {
14694 switch(tag) {
14695 default:
14696 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
14697 break;
14698 case 10: {
14699 if (optionalNestedMessage_ == null) {
14700 OptionalNestedMessage = new global::Google.Protobuf.TestProtos.Proto2.TestNestedMessageHasBits.Types.NestedMessage();
14701 }
14702 input.ReadMessage(OptionalNestedMessage);
14703 break;
14704 }
14705 }
14706 }
14707 #endif
Jan Tattermusch3196ef92020-04-02 15:36:16 +020014708 }
14709
Jan Tattermusch7cb55972020-06-02 09:26:25 +020014710 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
Jan Tattermusch3196ef92020-04-02 15:36:16 +020014711 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020014712 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Jan Tattermusch0df7ddc2020-04-14 12:41:03 +020014713 void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
Sydney Acksman8a57ec82019-03-21 17:36:36 -050014714 uint tag;
14715 while ((tag = input.ReadTag()) != 0) {
14716 switch(tag) {
14717 default:
Jan Tattermusch3196ef92020-04-02 15:36:16 +020014718 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
Sydney Acksman8a57ec82019-03-21 17:36:36 -050014719 break;
14720 case 10: {
Jon Skeet9926c952020-04-27 07:18:45 +010014721 if (optionalNestedMessage_ == null) {
Sydney Acksman8a57ec82019-03-21 17:36:36 -050014722 OptionalNestedMessage = new global::Google.Protobuf.TestProtos.Proto2.TestNestedMessageHasBits.Types.NestedMessage();
14723 }
14724 input.ReadMessage(OptionalNestedMessage);
14725 break;
14726 }
14727 }
14728 }
14729 }
Jan Tattermusch7cb55972020-06-02 09:26:25 +020014730 #endif
Sydney Acksman8a57ec82019-03-21 17:36:36 -050014731
14732 #region Nested types
14733 /// <summary>Container for nested types declared in the TestNestedMessageHasBits message type.</summary>
14734 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020014735 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050014736 public static partial class Types {
Jan Tattermusch7cb55972020-06-02 09:26:25 +020014737 public sealed partial class NestedMessage : pb::IMessage<NestedMessage>
14738 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
14739 , pb::IBufferMessage
14740 #endif
14741 {
Sydney Acksman8a57ec82019-03-21 17:36:36 -050014742 private static readonly pb::MessageParser<NestedMessage> _parser = new pb::MessageParser<NestedMessage>(() => new NestedMessage());
14743 private pb::UnknownFieldSet _unknownFields;
14744 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020014745 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050014746 public static pb::MessageParser<NestedMessage> Parser { get { return _parser; } }
14747
14748 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020014749 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050014750 public static pbr::MessageDescriptor Descriptor {
14751 get { return global::Google.Protobuf.TestProtos.Proto2.TestNestedMessageHasBits.Descriptor.NestedTypes[0]; }
14752 }
14753
14754 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020014755 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050014756 pbr::MessageDescriptor pb::IMessage.Descriptor {
14757 get { return Descriptor; }
14758 }
14759
14760 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020014761 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050014762 public NestedMessage() {
14763 OnConstruction();
14764 }
14765
14766 partial void OnConstruction();
14767
14768 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020014769 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050014770 public NestedMessage(NestedMessage other) : this() {
14771 nestedmessageRepeatedInt32_ = other.nestedmessageRepeatedInt32_.Clone();
14772 nestedmessageRepeatedForeignmessage_ = other.nestedmessageRepeatedForeignmessage_.Clone();
14773 _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
14774 }
14775
14776 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020014777 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050014778 public NestedMessage Clone() {
14779 return new NestedMessage(this);
14780 }
14781
14782 /// <summary>Field number for the "nestedmessage_repeated_int32" field.</summary>
14783 public const int NestedmessageRepeatedInt32FieldNumber = 1;
14784 private static readonly pb::FieldCodec<int> _repeated_nestedmessageRepeatedInt32_codec
14785 = pb::FieldCodec.ForInt32(8);
14786 private readonly pbc::RepeatedField<int> nestedmessageRepeatedInt32_ = new pbc::RepeatedField<int>();
14787 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020014788 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050014789 public pbc::RepeatedField<int> NestedmessageRepeatedInt32 {
14790 get { return nestedmessageRepeatedInt32_; }
14791 }
14792
14793 /// <summary>Field number for the "nestedmessage_repeated_foreignmessage" field.</summary>
14794 public const int NestedmessageRepeatedForeignmessageFieldNumber = 2;
14795 private static readonly pb::FieldCodec<global::Google.Protobuf.TestProtos.Proto2.ForeignMessage> _repeated_nestedmessageRepeatedForeignmessage_codec
14796 = pb::FieldCodec.ForMessage(18, global::Google.Protobuf.TestProtos.Proto2.ForeignMessage.Parser);
14797 private readonly pbc::RepeatedField<global::Google.Protobuf.TestProtos.Proto2.ForeignMessage> nestedmessageRepeatedForeignmessage_ = new pbc::RepeatedField<global::Google.Protobuf.TestProtos.Proto2.ForeignMessage>();
14798 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020014799 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050014800 public pbc::RepeatedField<global::Google.Protobuf.TestProtos.Proto2.ForeignMessage> NestedmessageRepeatedForeignmessage {
14801 get { return nestedmessageRepeatedForeignmessage_; }
14802 }
14803
14804 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020014805 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050014806 public override bool Equals(object other) {
14807 return Equals(other as NestedMessage);
14808 }
14809
14810 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020014811 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050014812 public bool Equals(NestedMessage other) {
14813 if (ReferenceEquals(other, null)) {
14814 return false;
14815 }
14816 if (ReferenceEquals(other, this)) {
14817 return true;
14818 }
14819 if(!nestedmessageRepeatedInt32_.Equals(other.nestedmessageRepeatedInt32_)) return false;
14820 if(!nestedmessageRepeatedForeignmessage_.Equals(other.nestedmessageRepeatedForeignmessage_)) return false;
14821 return Equals(_unknownFields, other._unknownFields);
14822 }
14823
14824 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020014825 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050014826 public override int GetHashCode() {
14827 int hash = 1;
14828 hash ^= nestedmessageRepeatedInt32_.GetHashCode();
14829 hash ^= nestedmessageRepeatedForeignmessage_.GetHashCode();
14830 if (_unknownFields != null) {
14831 hash ^= _unknownFields.GetHashCode();
14832 }
14833 return hash;
14834 }
14835
14836 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020014837 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050014838 public override string ToString() {
14839 return pb::JsonFormatter.ToDiagnosticString(this);
14840 }
14841
14842 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020014843 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050014844 public void WriteTo(pb::CodedOutputStream output) {
Jan Tattermusch125e4ad2020-05-29 04:32:43 -040014845 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
14846 output.WriteRawMessage(this);
14847 #else
Sydney Acksman8a57ec82019-03-21 17:36:36 -050014848 nestedmessageRepeatedInt32_.WriteTo(output, _repeated_nestedmessageRepeatedInt32_codec);
14849 nestedmessageRepeatedForeignmessage_.WriteTo(output, _repeated_nestedmessageRepeatedForeignmessage_codec);
14850 if (_unknownFields != null) {
14851 _unknownFields.WriteTo(output);
14852 }
Jan Tattermusch125e4ad2020-05-29 04:32:43 -040014853 #endif
Sydney Acksman8a57ec82019-03-21 17:36:36 -050014854 }
14855
Jan Tattermusch125e4ad2020-05-29 04:32:43 -040014856 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
14857 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020014858 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Jan Tattermusch125e4ad2020-05-29 04:32:43 -040014859 void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
14860 nestedmessageRepeatedInt32_.WriteTo(ref output, _repeated_nestedmessageRepeatedInt32_codec);
14861 nestedmessageRepeatedForeignmessage_.WriteTo(ref output, _repeated_nestedmessageRepeatedForeignmessage_codec);
14862 if (_unknownFields != null) {
14863 _unknownFields.WriteTo(ref output);
14864 }
14865 }
14866 #endif
14867
Sydney Acksman8a57ec82019-03-21 17:36:36 -050014868 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020014869 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050014870 public int CalculateSize() {
14871 int size = 0;
14872 size += nestedmessageRepeatedInt32_.CalculateSize(_repeated_nestedmessageRepeatedInt32_codec);
14873 size += nestedmessageRepeatedForeignmessage_.CalculateSize(_repeated_nestedmessageRepeatedForeignmessage_codec);
14874 if (_unknownFields != null) {
14875 size += _unknownFields.CalculateSize();
14876 }
14877 return size;
14878 }
14879
14880 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020014881 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050014882 public void MergeFrom(NestedMessage other) {
14883 if (other == null) {
14884 return;
14885 }
14886 nestedmessageRepeatedInt32_.Add(other.nestedmessageRepeatedInt32_);
14887 nestedmessageRepeatedForeignmessage_.Add(other.nestedmessageRepeatedForeignmessage_);
14888 _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
14889 }
14890
14891 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020014892 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050014893 public void MergeFrom(pb::CodedInputStream input) {
Jan Tattermusch7cb55972020-06-02 09:26:25 +020014894 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
Jan Tattermusch3196ef92020-04-02 15:36:16 +020014895 input.ReadRawMessage(this);
Jan Tattermusch7cb55972020-06-02 09:26:25 +020014896 #else
14897 uint tag;
14898 while ((tag = input.ReadTag()) != 0) {
14899 switch(tag) {
14900 default:
14901 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
14902 break;
14903 case 10:
14904 case 8: {
14905 nestedmessageRepeatedInt32_.AddEntriesFrom(input, _repeated_nestedmessageRepeatedInt32_codec);
14906 break;
14907 }
14908 case 18: {
14909 nestedmessageRepeatedForeignmessage_.AddEntriesFrom(input, _repeated_nestedmessageRepeatedForeignmessage_codec);
14910 break;
14911 }
14912 }
14913 }
14914 #endif
Jan Tattermusch3196ef92020-04-02 15:36:16 +020014915 }
14916
Jan Tattermusch7cb55972020-06-02 09:26:25 +020014917 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
Jan Tattermusch3196ef92020-04-02 15:36:16 +020014918 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020014919 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Jan Tattermusch0df7ddc2020-04-14 12:41:03 +020014920 void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
Sydney Acksman8a57ec82019-03-21 17:36:36 -050014921 uint tag;
14922 while ((tag = input.ReadTag()) != 0) {
14923 switch(tag) {
14924 default:
Jan Tattermusch3196ef92020-04-02 15:36:16 +020014925 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
Sydney Acksman8a57ec82019-03-21 17:36:36 -050014926 break;
14927 case 10:
14928 case 8: {
Jan Tattermusch3196ef92020-04-02 15:36:16 +020014929 nestedmessageRepeatedInt32_.AddEntriesFrom(ref input, _repeated_nestedmessageRepeatedInt32_codec);
Sydney Acksman8a57ec82019-03-21 17:36:36 -050014930 break;
14931 }
14932 case 18: {
Jan Tattermusch3196ef92020-04-02 15:36:16 +020014933 nestedmessageRepeatedForeignmessage_.AddEntriesFrom(ref input, _repeated_nestedmessageRepeatedForeignmessage_codec);
Sydney Acksman8a57ec82019-03-21 17:36:36 -050014934 break;
14935 }
14936 }
14937 }
14938 }
Jan Tattermusch7cb55972020-06-02 09:26:25 +020014939 #endif
Sydney Acksman8a57ec82019-03-21 17:36:36 -050014940
14941 }
14942
14943 }
14944 #endregion
14945
14946 }
14947
14948 /// <summary>
14949 /// Test message with CamelCase field names. This violates Protocol Buffer
14950 /// standard style.
14951 /// </summary>
Jan Tattermusch7cb55972020-06-02 09:26:25 +020014952 public sealed partial class TestCamelCaseFieldNames : pb::IMessage<TestCamelCaseFieldNames>
14953 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
14954 , pb::IBufferMessage
14955 #endif
14956 {
Sydney Acksman8a57ec82019-03-21 17:36:36 -050014957 private static readonly pb::MessageParser<TestCamelCaseFieldNames> _parser = new pb::MessageParser<TestCamelCaseFieldNames>(() => new TestCamelCaseFieldNames());
14958 private pb::UnknownFieldSet _unknownFields;
14959 private int _hasBits0;
14960 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020014961 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050014962 public static pb::MessageParser<TestCamelCaseFieldNames> Parser { get { return _parser; } }
14963
14964 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020014965 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050014966 public static pbr::MessageDescriptor Descriptor {
14967 get { return global::Google.Protobuf.TestProtos.Proto2.UnittestReflection.Descriptor.MessageTypes[28]; }
14968 }
14969
14970 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020014971 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050014972 pbr::MessageDescriptor pb::IMessage.Descriptor {
14973 get { return Descriptor; }
14974 }
14975
14976 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020014977 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050014978 public TestCamelCaseFieldNames() {
14979 OnConstruction();
14980 }
14981
14982 partial void OnConstruction();
14983
14984 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020014985 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050014986 public TestCamelCaseFieldNames(TestCamelCaseFieldNames other) : this() {
14987 _hasBits0 = other._hasBits0;
14988 primitiveField_ = other.primitiveField_;
14989 stringField_ = other.stringField_;
14990 enumField_ = other.enumField_;
Jon Skeet9926c952020-04-27 07:18:45 +010014991 messageField_ = other.messageField_ != null ? other.messageField_.Clone() : null;
Sydney Acksman8a57ec82019-03-21 17:36:36 -050014992 stringPieceField_ = other.stringPieceField_;
14993 cordField_ = other.cordField_;
14994 repeatedPrimitiveField_ = other.repeatedPrimitiveField_.Clone();
14995 repeatedStringField_ = other.repeatedStringField_.Clone();
14996 repeatedEnumField_ = other.repeatedEnumField_.Clone();
14997 repeatedMessageField_ = other.repeatedMessageField_.Clone();
14998 repeatedStringPieceField_ = other.repeatedStringPieceField_.Clone();
14999 repeatedCordField_ = other.repeatedCordField_.Clone();
15000 _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
15001 }
15002
15003 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020015004 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050015005 public TestCamelCaseFieldNames Clone() {
15006 return new TestCamelCaseFieldNames(this);
15007 }
15008
15009 /// <summary>Field number for the "PrimitiveField" field.</summary>
15010 public const int PrimitiveFieldFieldNumber = 1;
15011 private readonly static int PrimitiveFieldDefaultValue = 0;
15012
15013 private int primitiveField_;
15014 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020015015 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050015016 public int PrimitiveField {
15017 get { if ((_hasBits0 & 1) != 0) { return primitiveField_; } else { return PrimitiveFieldDefaultValue; } }
15018 set {
15019 _hasBits0 |= 1;
15020 primitiveField_ = value;
15021 }
15022 }
15023 /// <summary>Gets whether the "PrimitiveField" field is set</summary>
15024 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020015025 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050015026 public bool HasPrimitiveField {
15027 get { return (_hasBits0 & 1) != 0; }
15028 }
15029 /// <summary>Clears the value of the "PrimitiveField" field</summary>
15030 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020015031 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050015032 public void ClearPrimitiveField() {
15033 _hasBits0 &= ~1;
15034 }
15035
15036 /// <summary>Field number for the "StringField" field.</summary>
15037 public const int StringFieldFieldNumber = 2;
15038 private readonly static string StringFieldDefaultValue = "";
15039
15040 private string stringField_;
15041 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020015042 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050015043 public string StringField {
15044 get { return stringField_ ?? StringFieldDefaultValue; }
15045 set {
15046 stringField_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
15047 }
15048 }
15049 /// <summary>Gets whether the "StringField" field is set</summary>
15050 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020015051 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050015052 public bool HasStringField {
15053 get { return stringField_ != null; }
15054 }
15055 /// <summary>Clears the value of the "StringField" field</summary>
15056 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020015057 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050015058 public void ClearStringField() {
15059 stringField_ = null;
15060 }
15061
15062 /// <summary>Field number for the "EnumField" field.</summary>
15063 public const int EnumFieldFieldNumber = 3;
15064 private readonly static global::Google.Protobuf.TestProtos.Proto2.ForeignEnum EnumFieldDefaultValue = global::Google.Protobuf.TestProtos.Proto2.ForeignEnum.ForeignFoo;
15065
15066 private global::Google.Protobuf.TestProtos.Proto2.ForeignEnum enumField_;
15067 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020015068 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050015069 public global::Google.Protobuf.TestProtos.Proto2.ForeignEnum EnumField {
15070 get { if ((_hasBits0 & 2) != 0) { return enumField_; } else { return EnumFieldDefaultValue; } }
15071 set {
15072 _hasBits0 |= 2;
15073 enumField_ = value;
15074 }
15075 }
15076 /// <summary>Gets whether the "EnumField" field is set</summary>
15077 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020015078 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050015079 public bool HasEnumField {
15080 get { return (_hasBits0 & 2) != 0; }
15081 }
15082 /// <summary>Clears the value of the "EnumField" field</summary>
15083 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020015084 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050015085 public void ClearEnumField() {
15086 _hasBits0 &= ~2;
15087 }
15088
15089 /// <summary>Field number for the "MessageField" field.</summary>
15090 public const int MessageFieldFieldNumber = 4;
15091 private global::Google.Protobuf.TestProtos.Proto2.ForeignMessage messageField_;
15092 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020015093 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050015094 public global::Google.Protobuf.TestProtos.Proto2.ForeignMessage MessageField {
15095 get { return messageField_; }
15096 set {
15097 messageField_ = value;
15098 }
15099 }
Sydney Acksman8a57ec82019-03-21 17:36:36 -050015100
15101 /// <summary>Field number for the "StringPieceField" field.</summary>
15102 public const int StringPieceFieldFieldNumber = 5;
15103 private readonly static string StringPieceFieldDefaultValue = "";
15104
15105 private string stringPieceField_;
15106 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020015107 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050015108 public string StringPieceField {
15109 get { return stringPieceField_ ?? StringPieceFieldDefaultValue; }
15110 set {
15111 stringPieceField_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
15112 }
15113 }
15114 /// <summary>Gets whether the "StringPieceField" field is set</summary>
15115 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020015116 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050015117 public bool HasStringPieceField {
15118 get { return stringPieceField_ != null; }
15119 }
15120 /// <summary>Clears the value of the "StringPieceField" field</summary>
15121 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020015122 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050015123 public void ClearStringPieceField() {
15124 stringPieceField_ = null;
15125 }
15126
15127 /// <summary>Field number for the "CordField" field.</summary>
15128 public const int CordFieldFieldNumber = 6;
15129 private readonly static string CordFieldDefaultValue = "";
15130
15131 private string cordField_;
15132 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020015133 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050015134 public string CordField {
15135 get { return cordField_ ?? CordFieldDefaultValue; }
15136 set {
15137 cordField_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
15138 }
15139 }
15140 /// <summary>Gets whether the "CordField" field is set</summary>
15141 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020015142 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050015143 public bool HasCordField {
15144 get { return cordField_ != null; }
15145 }
15146 /// <summary>Clears the value of the "CordField" field</summary>
15147 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020015148 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050015149 public void ClearCordField() {
15150 cordField_ = null;
15151 }
15152
15153 /// <summary>Field number for the "RepeatedPrimitiveField" field.</summary>
15154 public const int RepeatedPrimitiveFieldFieldNumber = 7;
15155 private static readonly pb::FieldCodec<int> _repeated_repeatedPrimitiveField_codec
15156 = pb::FieldCodec.ForInt32(56);
15157 private readonly pbc::RepeatedField<int> repeatedPrimitiveField_ = new pbc::RepeatedField<int>();
15158 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020015159 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050015160 public pbc::RepeatedField<int> RepeatedPrimitiveField {
15161 get { return repeatedPrimitiveField_; }
15162 }
15163
15164 /// <summary>Field number for the "RepeatedStringField" field.</summary>
15165 public const int RepeatedStringFieldFieldNumber = 8;
15166 private static readonly pb::FieldCodec<string> _repeated_repeatedStringField_codec
15167 = pb::FieldCodec.ForString(66);
15168 private readonly pbc::RepeatedField<string> repeatedStringField_ = new pbc::RepeatedField<string>();
15169 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020015170 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050015171 public pbc::RepeatedField<string> RepeatedStringField {
15172 get { return repeatedStringField_; }
15173 }
15174
15175 /// <summary>Field number for the "RepeatedEnumField" field.</summary>
15176 public const int RepeatedEnumFieldFieldNumber = 9;
15177 private static readonly pb::FieldCodec<global::Google.Protobuf.TestProtos.Proto2.ForeignEnum> _repeated_repeatedEnumField_codec
15178 = pb::FieldCodec.ForEnum(72, x => (int) x, x => (global::Google.Protobuf.TestProtos.Proto2.ForeignEnum) x);
15179 private readonly pbc::RepeatedField<global::Google.Protobuf.TestProtos.Proto2.ForeignEnum> repeatedEnumField_ = new pbc::RepeatedField<global::Google.Protobuf.TestProtos.Proto2.ForeignEnum>();
15180 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020015181 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050015182 public pbc::RepeatedField<global::Google.Protobuf.TestProtos.Proto2.ForeignEnum> RepeatedEnumField {
15183 get { return repeatedEnumField_; }
15184 }
15185
15186 /// <summary>Field number for the "RepeatedMessageField" field.</summary>
15187 public const int RepeatedMessageFieldFieldNumber = 10;
15188 private static readonly pb::FieldCodec<global::Google.Protobuf.TestProtos.Proto2.ForeignMessage> _repeated_repeatedMessageField_codec
15189 = pb::FieldCodec.ForMessage(82, global::Google.Protobuf.TestProtos.Proto2.ForeignMessage.Parser);
15190 private readonly pbc::RepeatedField<global::Google.Protobuf.TestProtos.Proto2.ForeignMessage> repeatedMessageField_ = new pbc::RepeatedField<global::Google.Protobuf.TestProtos.Proto2.ForeignMessage>();
15191 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020015192 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050015193 public pbc::RepeatedField<global::Google.Protobuf.TestProtos.Proto2.ForeignMessage> RepeatedMessageField {
15194 get { return repeatedMessageField_; }
15195 }
15196
15197 /// <summary>Field number for the "RepeatedStringPieceField" field.</summary>
15198 public const int RepeatedStringPieceFieldFieldNumber = 11;
15199 private static readonly pb::FieldCodec<string> _repeated_repeatedStringPieceField_codec
15200 = pb::FieldCodec.ForString(90);
15201 private readonly pbc::RepeatedField<string> repeatedStringPieceField_ = new pbc::RepeatedField<string>();
15202 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020015203 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050015204 public pbc::RepeatedField<string> RepeatedStringPieceField {
15205 get { return repeatedStringPieceField_; }
15206 }
15207
15208 /// <summary>Field number for the "RepeatedCordField" field.</summary>
15209 public const int RepeatedCordFieldFieldNumber = 12;
15210 private static readonly pb::FieldCodec<string> _repeated_repeatedCordField_codec
15211 = pb::FieldCodec.ForString(98);
15212 private readonly pbc::RepeatedField<string> repeatedCordField_ = new pbc::RepeatedField<string>();
15213 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020015214 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050015215 public pbc::RepeatedField<string> RepeatedCordField {
15216 get { return repeatedCordField_; }
15217 }
15218
15219 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020015220 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050015221 public override bool Equals(object other) {
15222 return Equals(other as TestCamelCaseFieldNames);
15223 }
15224
15225 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020015226 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050015227 public bool Equals(TestCamelCaseFieldNames other) {
15228 if (ReferenceEquals(other, null)) {
15229 return false;
15230 }
15231 if (ReferenceEquals(other, this)) {
15232 return true;
15233 }
15234 if (PrimitiveField != other.PrimitiveField) return false;
15235 if (StringField != other.StringField) return false;
15236 if (EnumField != other.EnumField) return false;
15237 if (!object.Equals(MessageField, other.MessageField)) return false;
15238 if (StringPieceField != other.StringPieceField) return false;
15239 if (CordField != other.CordField) return false;
15240 if(!repeatedPrimitiveField_.Equals(other.repeatedPrimitiveField_)) return false;
15241 if(!repeatedStringField_.Equals(other.repeatedStringField_)) return false;
15242 if(!repeatedEnumField_.Equals(other.repeatedEnumField_)) return false;
15243 if(!repeatedMessageField_.Equals(other.repeatedMessageField_)) return false;
15244 if(!repeatedStringPieceField_.Equals(other.repeatedStringPieceField_)) return false;
15245 if(!repeatedCordField_.Equals(other.repeatedCordField_)) return false;
15246 return Equals(_unknownFields, other._unknownFields);
15247 }
15248
15249 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020015250 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050015251 public override int GetHashCode() {
15252 int hash = 1;
15253 if (HasPrimitiveField) hash ^= PrimitiveField.GetHashCode();
15254 if (HasStringField) hash ^= StringField.GetHashCode();
15255 if (HasEnumField) hash ^= EnumField.GetHashCode();
Jon Skeet9926c952020-04-27 07:18:45 +010015256 if (messageField_ != null) hash ^= MessageField.GetHashCode();
Sydney Acksman8a57ec82019-03-21 17:36:36 -050015257 if (HasStringPieceField) hash ^= StringPieceField.GetHashCode();
15258 if (HasCordField) hash ^= CordField.GetHashCode();
15259 hash ^= repeatedPrimitiveField_.GetHashCode();
15260 hash ^= repeatedStringField_.GetHashCode();
15261 hash ^= repeatedEnumField_.GetHashCode();
15262 hash ^= repeatedMessageField_.GetHashCode();
15263 hash ^= repeatedStringPieceField_.GetHashCode();
15264 hash ^= repeatedCordField_.GetHashCode();
15265 if (_unknownFields != null) {
15266 hash ^= _unknownFields.GetHashCode();
15267 }
15268 return hash;
15269 }
15270
15271 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020015272 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050015273 public override string ToString() {
15274 return pb::JsonFormatter.ToDiagnosticString(this);
15275 }
15276
15277 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020015278 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050015279 public void WriteTo(pb::CodedOutputStream output) {
Jan Tattermusch125e4ad2020-05-29 04:32:43 -040015280 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
15281 output.WriteRawMessage(this);
15282 #else
Sydney Acksman8a57ec82019-03-21 17:36:36 -050015283 if (HasPrimitiveField) {
15284 output.WriteRawTag(8);
15285 output.WriteInt32(PrimitiveField);
15286 }
15287 if (HasStringField) {
15288 output.WriteRawTag(18);
15289 output.WriteString(StringField);
15290 }
15291 if (HasEnumField) {
15292 output.WriteRawTag(24);
15293 output.WriteEnum((int) EnumField);
15294 }
Jon Skeet9926c952020-04-27 07:18:45 +010015295 if (messageField_ != null) {
Sydney Acksman8a57ec82019-03-21 17:36:36 -050015296 output.WriteRawTag(34);
15297 output.WriteMessage(MessageField);
15298 }
15299 if (HasStringPieceField) {
15300 output.WriteRawTag(42);
15301 output.WriteString(StringPieceField);
15302 }
15303 if (HasCordField) {
15304 output.WriteRawTag(50);
15305 output.WriteString(CordField);
15306 }
15307 repeatedPrimitiveField_.WriteTo(output, _repeated_repeatedPrimitiveField_codec);
15308 repeatedStringField_.WriteTo(output, _repeated_repeatedStringField_codec);
Jan Tattermusch90703892020-05-29 07:35:21 -040015309 repeatedEnumField_.WriteTo(output, _repeated_repeatedEnumField_codec);
Sydney Acksman8a57ec82019-03-21 17:36:36 -050015310 repeatedMessageField_.WriteTo(output, _repeated_repeatedMessageField_codec);
15311 repeatedStringPieceField_.WriteTo(output, _repeated_repeatedStringPieceField_codec);
15312 repeatedCordField_.WriteTo(output, _repeated_repeatedCordField_codec);
15313 if (_unknownFields != null) {
15314 _unknownFields.WriteTo(output);
15315 }
Jan Tattermusch125e4ad2020-05-29 04:32:43 -040015316 #endif
Sydney Acksman8a57ec82019-03-21 17:36:36 -050015317 }
15318
Jan Tattermusch125e4ad2020-05-29 04:32:43 -040015319 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
15320 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020015321 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Jan Tattermusch125e4ad2020-05-29 04:32:43 -040015322 void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
15323 if (HasPrimitiveField) {
15324 output.WriteRawTag(8);
15325 output.WriteInt32(PrimitiveField);
15326 }
15327 if (HasStringField) {
15328 output.WriteRawTag(18);
15329 output.WriteString(StringField);
15330 }
15331 if (HasEnumField) {
15332 output.WriteRawTag(24);
15333 output.WriteEnum((int) EnumField);
15334 }
15335 if (messageField_ != null) {
15336 output.WriteRawTag(34);
15337 output.WriteMessage(MessageField);
15338 }
15339 if (HasStringPieceField) {
15340 output.WriteRawTag(42);
15341 output.WriteString(StringPieceField);
15342 }
15343 if (HasCordField) {
15344 output.WriteRawTag(50);
15345 output.WriteString(CordField);
15346 }
15347 repeatedPrimitiveField_.WriteTo(ref output, _repeated_repeatedPrimitiveField_codec);
15348 repeatedStringField_.WriteTo(ref output, _repeated_repeatedStringField_codec);
15349 repeatedEnumField_.WriteTo(ref output, _repeated_repeatedEnumField_codec);
15350 repeatedMessageField_.WriteTo(ref output, _repeated_repeatedMessageField_codec);
15351 repeatedStringPieceField_.WriteTo(ref output, _repeated_repeatedStringPieceField_codec);
15352 repeatedCordField_.WriteTo(ref output, _repeated_repeatedCordField_codec);
15353 if (_unknownFields != null) {
15354 _unknownFields.WriteTo(ref output);
15355 }
15356 }
15357 #endif
15358
Sydney Acksman8a57ec82019-03-21 17:36:36 -050015359 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020015360 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050015361 public int CalculateSize() {
15362 int size = 0;
15363 if (HasPrimitiveField) {
15364 size += 1 + pb::CodedOutputStream.ComputeInt32Size(PrimitiveField);
15365 }
15366 if (HasStringField) {
15367 size += 1 + pb::CodedOutputStream.ComputeStringSize(StringField);
15368 }
15369 if (HasEnumField) {
15370 size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) EnumField);
15371 }
Jon Skeet9926c952020-04-27 07:18:45 +010015372 if (messageField_ != null) {
Sydney Acksman8a57ec82019-03-21 17:36:36 -050015373 size += 1 + pb::CodedOutputStream.ComputeMessageSize(MessageField);
15374 }
15375 if (HasStringPieceField) {
15376 size += 1 + pb::CodedOutputStream.ComputeStringSize(StringPieceField);
15377 }
15378 if (HasCordField) {
15379 size += 1 + pb::CodedOutputStream.ComputeStringSize(CordField);
15380 }
15381 size += repeatedPrimitiveField_.CalculateSize(_repeated_repeatedPrimitiveField_codec);
15382 size += repeatedStringField_.CalculateSize(_repeated_repeatedStringField_codec);
15383 size += repeatedEnumField_.CalculateSize(_repeated_repeatedEnumField_codec);
15384 size += repeatedMessageField_.CalculateSize(_repeated_repeatedMessageField_codec);
15385 size += repeatedStringPieceField_.CalculateSize(_repeated_repeatedStringPieceField_codec);
15386 size += repeatedCordField_.CalculateSize(_repeated_repeatedCordField_codec);
15387 if (_unknownFields != null) {
15388 size += _unknownFields.CalculateSize();
15389 }
15390 return size;
15391 }
15392
15393 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020015394 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050015395 public void MergeFrom(TestCamelCaseFieldNames other) {
15396 if (other == null) {
15397 return;
15398 }
15399 if (other.HasPrimitiveField) {
15400 PrimitiveField = other.PrimitiveField;
15401 }
15402 if (other.HasStringField) {
15403 StringField = other.StringField;
15404 }
15405 if (other.HasEnumField) {
15406 EnumField = other.EnumField;
15407 }
Jon Skeet9926c952020-04-27 07:18:45 +010015408 if (other.messageField_ != null) {
15409 if (messageField_ == null) {
Sydney Acksman8a57ec82019-03-21 17:36:36 -050015410 MessageField = new global::Google.Protobuf.TestProtos.Proto2.ForeignMessage();
15411 }
15412 MessageField.MergeFrom(other.MessageField);
15413 }
15414 if (other.HasStringPieceField) {
15415 StringPieceField = other.StringPieceField;
15416 }
15417 if (other.HasCordField) {
15418 CordField = other.CordField;
15419 }
15420 repeatedPrimitiveField_.Add(other.repeatedPrimitiveField_);
15421 repeatedStringField_.Add(other.repeatedStringField_);
15422 repeatedEnumField_.Add(other.repeatedEnumField_);
15423 repeatedMessageField_.Add(other.repeatedMessageField_);
15424 repeatedStringPieceField_.Add(other.repeatedStringPieceField_);
15425 repeatedCordField_.Add(other.repeatedCordField_);
15426 _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
15427 }
15428
15429 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020015430 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050015431 public void MergeFrom(pb::CodedInputStream input) {
Jan Tattermusch7cb55972020-06-02 09:26:25 +020015432 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
Jan Tattermusch3196ef92020-04-02 15:36:16 +020015433 input.ReadRawMessage(this);
Jan Tattermusch7cb55972020-06-02 09:26:25 +020015434 #else
15435 uint tag;
15436 while ((tag = input.ReadTag()) != 0) {
15437 switch(tag) {
15438 default:
15439 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
15440 break;
15441 case 8: {
15442 PrimitiveField = input.ReadInt32();
15443 break;
15444 }
15445 case 18: {
15446 StringField = input.ReadString();
15447 break;
15448 }
15449 case 24: {
15450 EnumField = (global::Google.Protobuf.TestProtos.Proto2.ForeignEnum) input.ReadEnum();
15451 break;
15452 }
15453 case 34: {
15454 if (messageField_ == null) {
15455 MessageField = new global::Google.Protobuf.TestProtos.Proto2.ForeignMessage();
15456 }
15457 input.ReadMessage(MessageField);
15458 break;
15459 }
15460 case 42: {
15461 StringPieceField = input.ReadString();
15462 break;
15463 }
15464 case 50: {
15465 CordField = input.ReadString();
15466 break;
15467 }
15468 case 58:
15469 case 56: {
15470 repeatedPrimitiveField_.AddEntriesFrom(input, _repeated_repeatedPrimitiveField_codec);
15471 break;
15472 }
15473 case 66: {
15474 repeatedStringField_.AddEntriesFrom(input, _repeated_repeatedStringField_codec);
15475 break;
15476 }
15477 case 74:
15478 case 72: {
15479 repeatedEnumField_.AddEntriesFrom(input, _repeated_repeatedEnumField_codec);
15480 break;
15481 }
15482 case 82: {
15483 repeatedMessageField_.AddEntriesFrom(input, _repeated_repeatedMessageField_codec);
15484 break;
15485 }
15486 case 90: {
15487 repeatedStringPieceField_.AddEntriesFrom(input, _repeated_repeatedStringPieceField_codec);
15488 break;
15489 }
15490 case 98: {
15491 repeatedCordField_.AddEntriesFrom(input, _repeated_repeatedCordField_codec);
15492 break;
15493 }
15494 }
15495 }
15496 #endif
Jan Tattermusch3196ef92020-04-02 15:36:16 +020015497 }
15498
Jan Tattermusch7cb55972020-06-02 09:26:25 +020015499 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
Jan Tattermusch3196ef92020-04-02 15:36:16 +020015500 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020015501 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Jan Tattermusch0df7ddc2020-04-14 12:41:03 +020015502 void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
Sydney Acksman8a57ec82019-03-21 17:36:36 -050015503 uint tag;
15504 while ((tag = input.ReadTag()) != 0) {
15505 switch(tag) {
15506 default:
Jan Tattermusch3196ef92020-04-02 15:36:16 +020015507 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
Sydney Acksman8a57ec82019-03-21 17:36:36 -050015508 break;
15509 case 8: {
15510 PrimitiveField = input.ReadInt32();
15511 break;
15512 }
15513 case 18: {
15514 StringField = input.ReadString();
15515 break;
15516 }
15517 case 24: {
15518 EnumField = (global::Google.Protobuf.TestProtos.Proto2.ForeignEnum) input.ReadEnum();
15519 break;
15520 }
15521 case 34: {
Jon Skeet9926c952020-04-27 07:18:45 +010015522 if (messageField_ == null) {
Sydney Acksman8a57ec82019-03-21 17:36:36 -050015523 MessageField = new global::Google.Protobuf.TestProtos.Proto2.ForeignMessage();
15524 }
15525 input.ReadMessage(MessageField);
15526 break;
15527 }
15528 case 42: {
15529 StringPieceField = input.ReadString();
15530 break;
15531 }
15532 case 50: {
15533 CordField = input.ReadString();
15534 break;
15535 }
15536 case 58:
15537 case 56: {
Jan Tattermusch3196ef92020-04-02 15:36:16 +020015538 repeatedPrimitiveField_.AddEntriesFrom(ref input, _repeated_repeatedPrimitiveField_codec);
Sydney Acksman8a57ec82019-03-21 17:36:36 -050015539 break;
15540 }
15541 case 66: {
Jan Tattermusch3196ef92020-04-02 15:36:16 +020015542 repeatedStringField_.AddEntriesFrom(ref input, _repeated_repeatedStringField_codec);
Sydney Acksman8a57ec82019-03-21 17:36:36 -050015543 break;
15544 }
15545 case 74:
15546 case 72: {
Jan Tattermusch3196ef92020-04-02 15:36:16 +020015547 repeatedEnumField_.AddEntriesFrom(ref input, _repeated_repeatedEnumField_codec);
Sydney Acksman8a57ec82019-03-21 17:36:36 -050015548 break;
15549 }
15550 case 82: {
Jan Tattermusch3196ef92020-04-02 15:36:16 +020015551 repeatedMessageField_.AddEntriesFrom(ref input, _repeated_repeatedMessageField_codec);
Sydney Acksman8a57ec82019-03-21 17:36:36 -050015552 break;
15553 }
15554 case 90: {
Jan Tattermusch3196ef92020-04-02 15:36:16 +020015555 repeatedStringPieceField_.AddEntriesFrom(ref input, _repeated_repeatedStringPieceField_codec);
Sydney Acksman8a57ec82019-03-21 17:36:36 -050015556 break;
15557 }
15558 case 98: {
Jan Tattermusch3196ef92020-04-02 15:36:16 +020015559 repeatedCordField_.AddEntriesFrom(ref input, _repeated_repeatedCordField_codec);
Sydney Acksman8a57ec82019-03-21 17:36:36 -050015560 break;
15561 }
15562 }
15563 }
15564 }
Jan Tattermusch7cb55972020-06-02 09:26:25 +020015565 #endif
Sydney Acksman8a57ec82019-03-21 17:36:36 -050015566
15567 }
15568
15569 /// <summary>
15570 /// We list fields out of order, to ensure that we're using field number and not
15571 /// field index to determine serialization order.
15572 /// </summary>
Jan Tattermusch7cb55972020-06-02 09:26:25 +020015573 public sealed partial class TestFieldOrderings : pb::IExtendableMessage<TestFieldOrderings>
15574 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
15575 , pb::IBufferMessage
15576 #endif
15577 {
Sydney Acksman8a57ec82019-03-21 17:36:36 -050015578 private static readonly pb::MessageParser<TestFieldOrderings> _parser = new pb::MessageParser<TestFieldOrderings>(() => new TestFieldOrderings());
15579 private pb::UnknownFieldSet _unknownFields;
15580 private pb::ExtensionSet<TestFieldOrderings> _extensions;
Sydney Acksmanc04a0272019-11-07 15:30:12 -060015581 private pb::ExtensionSet<TestFieldOrderings> _Extensions { get { return _extensions; } }
Sydney Acksman8a57ec82019-03-21 17:36:36 -050015582 private int _hasBits0;
15583 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020015584 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050015585 public static pb::MessageParser<TestFieldOrderings> Parser { get { return _parser; } }
15586
15587 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020015588 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050015589 public static pbr::MessageDescriptor Descriptor {
15590 get { return global::Google.Protobuf.TestProtos.Proto2.UnittestReflection.Descriptor.MessageTypes[29]; }
15591 }
15592
15593 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020015594 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050015595 pbr::MessageDescriptor pb::IMessage.Descriptor {
15596 get { return Descriptor; }
15597 }
15598
15599 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020015600 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050015601 public TestFieldOrderings() {
15602 OnConstruction();
15603 }
15604
15605 partial void OnConstruction();
15606
15607 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020015608 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050015609 public TestFieldOrderings(TestFieldOrderings other) : this() {
15610 _hasBits0 = other._hasBits0;
15611 myString_ = other.myString_;
15612 myInt_ = other.myInt_;
15613 myFloat_ = other.myFloat_;
Jon Skeet9926c952020-04-27 07:18:45 +010015614 optionalNestedMessage_ = other.optionalNestedMessage_ != null ? other.optionalNestedMessage_.Clone() : null;
Sydney Acksman8a57ec82019-03-21 17:36:36 -050015615 _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
15616 _extensions = pb::ExtensionSet.Clone(other._extensions);
15617 }
15618
15619 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020015620 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050015621 public TestFieldOrderings Clone() {
15622 return new TestFieldOrderings(this);
15623 }
15624
15625 /// <summary>Field number for the "my_string" field.</summary>
15626 public const int MyStringFieldNumber = 11;
15627 private readonly static string MyStringDefaultValue = "";
15628
15629 private string myString_;
15630 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020015631 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050015632 public string MyString {
15633 get { return myString_ ?? MyStringDefaultValue; }
15634 set {
15635 myString_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
15636 }
15637 }
15638 /// <summary>Gets whether the "my_string" field is set</summary>
15639 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020015640 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050015641 public bool HasMyString {
15642 get { return myString_ != null; }
15643 }
15644 /// <summary>Clears the value of the "my_string" field</summary>
15645 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020015646 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050015647 public void ClearMyString() {
15648 myString_ = null;
15649 }
15650
15651 /// <summary>Field number for the "my_int" field.</summary>
15652 public const int MyIntFieldNumber = 1;
15653 private readonly static long MyIntDefaultValue = 0L;
15654
15655 private long myInt_;
15656 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020015657 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050015658 public long MyInt {
15659 get { if ((_hasBits0 & 1) != 0) { return myInt_; } else { return MyIntDefaultValue; } }
15660 set {
15661 _hasBits0 |= 1;
15662 myInt_ = value;
15663 }
15664 }
15665 /// <summary>Gets whether the "my_int" field is set</summary>
15666 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020015667 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050015668 public bool HasMyInt {
15669 get { return (_hasBits0 & 1) != 0; }
15670 }
15671 /// <summary>Clears the value of the "my_int" field</summary>
15672 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020015673 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050015674 public void ClearMyInt() {
15675 _hasBits0 &= ~1;
15676 }
15677
15678 /// <summary>Field number for the "my_float" field.</summary>
15679 public const int MyFloatFieldNumber = 101;
15680 private readonly static float MyFloatDefaultValue = 0F;
15681
15682 private float myFloat_;
15683 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020015684 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050015685 public float MyFloat {
15686 get { if ((_hasBits0 & 2) != 0) { return myFloat_; } else { return MyFloatDefaultValue; } }
15687 set {
15688 _hasBits0 |= 2;
15689 myFloat_ = value;
15690 }
15691 }
15692 /// <summary>Gets whether the "my_float" field is set</summary>
15693 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020015694 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050015695 public bool HasMyFloat {
15696 get { return (_hasBits0 & 2) != 0; }
15697 }
15698 /// <summary>Clears the value of the "my_float" field</summary>
15699 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020015700 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050015701 public void ClearMyFloat() {
15702 _hasBits0 &= ~2;
15703 }
15704
15705 /// <summary>Field number for the "optional_nested_message" field.</summary>
15706 public const int OptionalNestedMessageFieldNumber = 200;
15707 private global::Google.Protobuf.TestProtos.Proto2.TestFieldOrderings.Types.NestedMessage optionalNestedMessage_;
15708 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020015709 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050015710 public global::Google.Protobuf.TestProtos.Proto2.TestFieldOrderings.Types.NestedMessage OptionalNestedMessage {
15711 get { return optionalNestedMessage_; }
15712 set {
15713 optionalNestedMessage_ = value;
15714 }
15715 }
Sydney Acksman8a57ec82019-03-21 17:36:36 -050015716
15717 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020015718 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050015719 public override bool Equals(object other) {
15720 return Equals(other as TestFieldOrderings);
15721 }
15722
15723 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020015724 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050015725 public bool Equals(TestFieldOrderings other) {
15726 if (ReferenceEquals(other, null)) {
15727 return false;
15728 }
15729 if (ReferenceEquals(other, this)) {
15730 return true;
15731 }
15732 if (MyString != other.MyString) return false;
15733 if (MyInt != other.MyInt) return false;
15734 if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(MyFloat, other.MyFloat)) return false;
15735 if (!object.Equals(OptionalNestedMessage, other.OptionalNestedMessage)) return false;
15736 if (!Equals(_extensions, other._extensions)) {
15737 return false;
15738 }
15739 return Equals(_unknownFields, other._unknownFields);
15740 }
15741
15742 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020015743 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050015744 public override int GetHashCode() {
15745 int hash = 1;
15746 if (HasMyString) hash ^= MyString.GetHashCode();
15747 if (HasMyInt) hash ^= MyInt.GetHashCode();
15748 if (HasMyFloat) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(MyFloat);
Jon Skeet9926c952020-04-27 07:18:45 +010015749 if (optionalNestedMessage_ != null) hash ^= OptionalNestedMessage.GetHashCode();
Sydney Acksman8a57ec82019-03-21 17:36:36 -050015750 if (_extensions != null) {
15751 hash ^= _extensions.GetHashCode();
15752 }
15753 if (_unknownFields != null) {
15754 hash ^= _unknownFields.GetHashCode();
15755 }
15756 return hash;
15757 }
15758
15759 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020015760 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050015761 public override string ToString() {
15762 return pb::JsonFormatter.ToDiagnosticString(this);
15763 }
15764
15765 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020015766 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050015767 public void WriteTo(pb::CodedOutputStream output) {
Jan Tattermusch125e4ad2020-05-29 04:32:43 -040015768 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
15769 output.WriteRawMessage(this);
15770 #else
Sydney Acksman8a57ec82019-03-21 17:36:36 -050015771 if (HasMyInt) {
15772 output.WriteRawTag(8);
15773 output.WriteInt64(MyInt);
15774 }
15775 if (HasMyString) {
15776 output.WriteRawTag(90);
15777 output.WriteString(MyString);
15778 }
15779 if (HasMyFloat) {
15780 output.WriteRawTag(173, 6);
15781 output.WriteFloat(MyFloat);
15782 }
Jon Skeet9926c952020-04-27 07:18:45 +010015783 if (optionalNestedMessage_ != null) {
Sydney Acksman8a57ec82019-03-21 17:36:36 -050015784 output.WriteRawTag(194, 12);
15785 output.WriteMessage(OptionalNestedMessage);
15786 }
15787 if (_extensions != null) {
15788 _extensions.WriteTo(output);
15789 }
15790 if (_unknownFields != null) {
15791 _unknownFields.WriteTo(output);
15792 }
Jan Tattermusch125e4ad2020-05-29 04:32:43 -040015793 #endif
Sydney Acksman8a57ec82019-03-21 17:36:36 -050015794 }
15795
Jan Tattermusch125e4ad2020-05-29 04:32:43 -040015796 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
15797 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020015798 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Jan Tattermusch125e4ad2020-05-29 04:32:43 -040015799 void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
15800 if (HasMyInt) {
15801 output.WriteRawTag(8);
15802 output.WriteInt64(MyInt);
15803 }
15804 if (HasMyString) {
15805 output.WriteRawTag(90);
15806 output.WriteString(MyString);
15807 }
15808 if (HasMyFloat) {
15809 output.WriteRawTag(173, 6);
15810 output.WriteFloat(MyFloat);
15811 }
15812 if (optionalNestedMessage_ != null) {
15813 output.WriteRawTag(194, 12);
15814 output.WriteMessage(OptionalNestedMessage);
15815 }
15816 if (_extensions != null) {
15817 _extensions.WriteTo(ref output);
15818 }
15819 if (_unknownFields != null) {
15820 _unknownFields.WriteTo(ref output);
15821 }
15822 }
15823 #endif
15824
Sydney Acksman8a57ec82019-03-21 17:36:36 -050015825 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020015826 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050015827 public int CalculateSize() {
15828 int size = 0;
15829 if (HasMyString) {
15830 size += 1 + pb::CodedOutputStream.ComputeStringSize(MyString);
15831 }
15832 if (HasMyInt) {
15833 size += 1 + pb::CodedOutputStream.ComputeInt64Size(MyInt);
15834 }
15835 if (HasMyFloat) {
15836 size += 2 + 4;
15837 }
Jon Skeet9926c952020-04-27 07:18:45 +010015838 if (optionalNestedMessage_ != null) {
Sydney Acksman8a57ec82019-03-21 17:36:36 -050015839 size += 2 + pb::CodedOutputStream.ComputeMessageSize(OptionalNestedMessage);
15840 }
15841 if (_extensions != null) {
15842 size += _extensions.CalculateSize();
15843 }
15844 if (_unknownFields != null) {
15845 size += _unknownFields.CalculateSize();
15846 }
15847 return size;
15848 }
15849
15850 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020015851 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050015852 public void MergeFrom(TestFieldOrderings other) {
15853 if (other == null) {
15854 return;
15855 }
15856 if (other.HasMyString) {
15857 MyString = other.MyString;
15858 }
15859 if (other.HasMyInt) {
15860 MyInt = other.MyInt;
15861 }
15862 if (other.HasMyFloat) {
15863 MyFloat = other.MyFloat;
15864 }
Jon Skeet9926c952020-04-27 07:18:45 +010015865 if (other.optionalNestedMessage_ != null) {
15866 if (optionalNestedMessage_ == null) {
Sydney Acksman8a57ec82019-03-21 17:36:36 -050015867 OptionalNestedMessage = new global::Google.Protobuf.TestProtos.Proto2.TestFieldOrderings.Types.NestedMessage();
15868 }
15869 OptionalNestedMessage.MergeFrom(other.OptionalNestedMessage);
15870 }
15871 pb::ExtensionSet.MergeFrom(ref _extensions, other._extensions);
15872 _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
15873 }
15874
15875 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020015876 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050015877 public void MergeFrom(pb::CodedInputStream input) {
Jan Tattermusch7cb55972020-06-02 09:26:25 +020015878 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
Jan Tattermusch3196ef92020-04-02 15:36:16 +020015879 input.ReadRawMessage(this);
Jan Tattermusch7cb55972020-06-02 09:26:25 +020015880 #else
15881 uint tag;
15882 while ((tag = input.ReadTag()) != 0) {
15883 switch(tag) {
15884 default:
15885 if (!pb::ExtensionSet.TryMergeFieldFrom(ref _extensions, input)) {
15886 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
15887 }
15888 break;
15889 case 8: {
15890 MyInt = input.ReadInt64();
15891 break;
15892 }
15893 case 90: {
15894 MyString = input.ReadString();
15895 break;
15896 }
15897 case 813: {
15898 MyFloat = input.ReadFloat();
15899 break;
15900 }
15901 case 1602: {
15902 if (optionalNestedMessage_ == null) {
15903 OptionalNestedMessage = new global::Google.Protobuf.TestProtos.Proto2.TestFieldOrderings.Types.NestedMessage();
15904 }
15905 input.ReadMessage(OptionalNestedMessage);
15906 break;
15907 }
15908 }
15909 }
15910 #endif
Jan Tattermusch3196ef92020-04-02 15:36:16 +020015911 }
15912
Jan Tattermusch7cb55972020-06-02 09:26:25 +020015913 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
Jan Tattermusch3196ef92020-04-02 15:36:16 +020015914 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020015915 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Jan Tattermusch0df7ddc2020-04-14 12:41:03 +020015916 void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
Sydney Acksman8a57ec82019-03-21 17:36:36 -050015917 uint tag;
15918 while ((tag = input.ReadTag()) != 0) {
15919 switch(tag) {
15920 default:
Jan Tattermusch3196ef92020-04-02 15:36:16 +020015921 if (!pb::ExtensionSet.TryMergeFieldFrom(ref _extensions, ref input)) {
15922 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
Sydney Acksman8a57ec82019-03-21 17:36:36 -050015923 }
15924 break;
15925 case 8: {
15926 MyInt = input.ReadInt64();
15927 break;
15928 }
15929 case 90: {
15930 MyString = input.ReadString();
15931 break;
15932 }
15933 case 813: {
15934 MyFloat = input.ReadFloat();
15935 break;
15936 }
15937 case 1602: {
Jon Skeet9926c952020-04-27 07:18:45 +010015938 if (optionalNestedMessage_ == null) {
Sydney Acksman8a57ec82019-03-21 17:36:36 -050015939 OptionalNestedMessage = new global::Google.Protobuf.TestProtos.Proto2.TestFieldOrderings.Types.NestedMessage();
15940 }
15941 input.ReadMessage(OptionalNestedMessage);
15942 break;
15943 }
15944 }
15945 }
15946 }
Jan Tattermusch7cb55972020-06-02 09:26:25 +020015947 #endif
Sydney Acksman8a57ec82019-03-21 17:36:36 -050015948
Sydney Acksman8a57ec82019-03-21 17:36:36 -050015949 public TValue GetExtension<TValue>(pb::Extension<TestFieldOrderings, TValue> extension) {
15950 return pb::ExtensionSet.Get(ref _extensions, extension);
15951 }
15952 public pbc::RepeatedField<TValue> GetExtension<TValue>(pb::RepeatedExtension<TestFieldOrderings, TValue> extension) {
15953 return pb::ExtensionSet.Get(ref _extensions, extension);
15954 }
Sydney Acksman0436b8d2019-08-01 03:06:03 -050015955 public pbc::RepeatedField<TValue> GetOrInitializeExtension<TValue>(pb::RepeatedExtension<TestFieldOrderings, TValue> extension) {
15956 return pb::ExtensionSet.GetOrInitialize(ref _extensions, extension);
Sydney Acksman011427c2019-05-03 21:34:48 -050015957 }
Sydney Acksman8a57ec82019-03-21 17:36:36 -050015958 public void SetExtension<TValue>(pb::Extension<TestFieldOrderings, TValue> extension, TValue value) {
15959 pb::ExtensionSet.Set(ref _extensions, extension, value);
15960 }
15961 public bool HasExtension<TValue>(pb::Extension<TestFieldOrderings, TValue> extension) {
15962 return pb::ExtensionSet.Has(ref _extensions, extension);
15963 }
15964 public void ClearExtension<TValue>(pb::Extension<TestFieldOrderings, TValue> extension) {
15965 pb::ExtensionSet.Clear(ref _extensions, extension);
15966 }
Sydney Acksman011427c2019-05-03 21:34:48 -050015967 public void ClearExtension<TValue>(pb::RepeatedExtension<TestFieldOrderings, TValue> extension) {
15968 pb::ExtensionSet.Clear(ref _extensions, extension);
15969 }
Sydney Acksman8a57ec82019-03-21 17:36:36 -050015970
15971 #region Nested types
15972 /// <summary>Container for nested types declared in the TestFieldOrderings message type.</summary>
15973 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020015974 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050015975 public static partial class Types {
Jan Tattermusch7cb55972020-06-02 09:26:25 +020015976 public sealed partial class NestedMessage : pb::IMessage<NestedMessage>
15977 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
15978 , pb::IBufferMessage
15979 #endif
15980 {
Sydney Acksman8a57ec82019-03-21 17:36:36 -050015981 private static readonly pb::MessageParser<NestedMessage> _parser = new pb::MessageParser<NestedMessage>(() => new NestedMessage());
15982 private pb::UnknownFieldSet _unknownFields;
15983 private int _hasBits0;
15984 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020015985 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050015986 public static pb::MessageParser<NestedMessage> Parser { get { return _parser; } }
15987
15988 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020015989 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050015990 public static pbr::MessageDescriptor Descriptor {
15991 get { return global::Google.Protobuf.TestProtos.Proto2.TestFieldOrderings.Descriptor.NestedTypes[0]; }
15992 }
15993
15994 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020015995 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050015996 pbr::MessageDescriptor pb::IMessage.Descriptor {
15997 get { return Descriptor; }
15998 }
15999
16000 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020016001 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050016002 public NestedMessage() {
16003 OnConstruction();
16004 }
16005
16006 partial void OnConstruction();
16007
16008 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020016009 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050016010 public NestedMessage(NestedMessage other) : this() {
16011 _hasBits0 = other._hasBits0;
16012 oo_ = other.oo_;
16013 bb_ = other.bb_;
16014 _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
16015 }
16016
16017 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020016018 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050016019 public NestedMessage Clone() {
16020 return new NestedMessage(this);
16021 }
16022
16023 /// <summary>Field number for the "oo" field.</summary>
16024 public const int OoFieldNumber = 2;
16025 private readonly static long OoDefaultValue = 0L;
16026
16027 private long oo_;
16028 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020016029 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050016030 public long Oo {
16031 get { if ((_hasBits0 & 2) != 0) { return oo_; } else { return OoDefaultValue; } }
16032 set {
16033 _hasBits0 |= 2;
16034 oo_ = value;
16035 }
16036 }
16037 /// <summary>Gets whether the "oo" field is set</summary>
16038 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020016039 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050016040 public bool HasOo {
16041 get { return (_hasBits0 & 2) != 0; }
16042 }
16043 /// <summary>Clears the value of the "oo" field</summary>
16044 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020016045 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050016046 public void ClearOo() {
16047 _hasBits0 &= ~2;
16048 }
16049
16050 /// <summary>Field number for the "bb" field.</summary>
16051 public const int BbFieldNumber = 1;
16052 private readonly static int BbDefaultValue = 0;
16053
16054 private int bb_;
16055 /// <summary>
16056 /// The field name "b" fails to compile in proto1 because it conflicts with
16057 /// a local variable named "b" in one of the generated methods. Doh.
16058 /// This file needs to compile in proto1 to test backwards-compatibility.
16059 /// </summary>
16060 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020016061 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050016062 public int Bb {
16063 get { if ((_hasBits0 & 1) != 0) { return bb_; } else { return BbDefaultValue; } }
16064 set {
16065 _hasBits0 |= 1;
16066 bb_ = value;
16067 }
16068 }
16069 /// <summary>Gets whether the "bb" field is set</summary>
16070 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020016071 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050016072 public bool HasBb {
16073 get { return (_hasBits0 & 1) != 0; }
16074 }
16075 /// <summary>Clears the value of the "bb" field</summary>
16076 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020016077 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050016078 public void ClearBb() {
16079 _hasBits0 &= ~1;
16080 }
16081
16082 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020016083 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050016084 public override bool Equals(object other) {
16085 return Equals(other as NestedMessage);
16086 }
16087
16088 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020016089 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050016090 public bool Equals(NestedMessage other) {
16091 if (ReferenceEquals(other, null)) {
16092 return false;
16093 }
16094 if (ReferenceEquals(other, this)) {
16095 return true;
16096 }
16097 if (Oo != other.Oo) return false;
16098 if (Bb != other.Bb) return false;
16099 return Equals(_unknownFields, other._unknownFields);
16100 }
16101
16102 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020016103 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050016104 public override int GetHashCode() {
16105 int hash = 1;
16106 if (HasOo) hash ^= Oo.GetHashCode();
16107 if (HasBb) hash ^= Bb.GetHashCode();
16108 if (_unknownFields != null) {
16109 hash ^= _unknownFields.GetHashCode();
16110 }
16111 return hash;
16112 }
16113
16114 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020016115 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050016116 public override string ToString() {
16117 return pb::JsonFormatter.ToDiagnosticString(this);
16118 }
16119
16120 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020016121 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050016122 public void WriteTo(pb::CodedOutputStream output) {
Jan Tattermusch125e4ad2020-05-29 04:32:43 -040016123 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
16124 output.WriteRawMessage(this);
16125 #else
Sydney Acksman8a57ec82019-03-21 17:36:36 -050016126 if (HasBb) {
16127 output.WriteRawTag(8);
16128 output.WriteInt32(Bb);
16129 }
16130 if (HasOo) {
16131 output.WriteRawTag(16);
16132 output.WriteInt64(Oo);
16133 }
16134 if (_unknownFields != null) {
16135 _unknownFields.WriteTo(output);
16136 }
Jan Tattermusch125e4ad2020-05-29 04:32:43 -040016137 #endif
Sydney Acksman8a57ec82019-03-21 17:36:36 -050016138 }
16139
Jan Tattermusch125e4ad2020-05-29 04:32:43 -040016140 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
16141 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020016142 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Jan Tattermusch125e4ad2020-05-29 04:32:43 -040016143 void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
16144 if (HasBb) {
16145 output.WriteRawTag(8);
16146 output.WriteInt32(Bb);
16147 }
16148 if (HasOo) {
16149 output.WriteRawTag(16);
16150 output.WriteInt64(Oo);
16151 }
16152 if (_unknownFields != null) {
16153 _unknownFields.WriteTo(ref output);
16154 }
16155 }
16156 #endif
16157
Sydney Acksman8a57ec82019-03-21 17:36:36 -050016158 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020016159 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050016160 public int CalculateSize() {
16161 int size = 0;
16162 if (HasOo) {
16163 size += 1 + pb::CodedOutputStream.ComputeInt64Size(Oo);
16164 }
16165 if (HasBb) {
16166 size += 1 + pb::CodedOutputStream.ComputeInt32Size(Bb);
16167 }
16168 if (_unknownFields != null) {
16169 size += _unknownFields.CalculateSize();
16170 }
16171 return size;
16172 }
16173
16174 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020016175 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050016176 public void MergeFrom(NestedMessage other) {
16177 if (other == null) {
16178 return;
16179 }
16180 if (other.HasOo) {
16181 Oo = other.Oo;
16182 }
16183 if (other.HasBb) {
16184 Bb = other.Bb;
16185 }
16186 _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
16187 }
16188
16189 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020016190 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050016191 public void MergeFrom(pb::CodedInputStream input) {
Jan Tattermusch7cb55972020-06-02 09:26:25 +020016192 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
Jan Tattermusch3196ef92020-04-02 15:36:16 +020016193 input.ReadRawMessage(this);
Jan Tattermusch7cb55972020-06-02 09:26:25 +020016194 #else
16195 uint tag;
16196 while ((tag = input.ReadTag()) != 0) {
16197 switch(tag) {
16198 default:
16199 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
16200 break;
16201 case 8: {
16202 Bb = input.ReadInt32();
16203 break;
16204 }
16205 case 16: {
16206 Oo = input.ReadInt64();
16207 break;
16208 }
16209 }
16210 }
16211 #endif
Jan Tattermusch3196ef92020-04-02 15:36:16 +020016212 }
16213
Jan Tattermusch7cb55972020-06-02 09:26:25 +020016214 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
Jan Tattermusch3196ef92020-04-02 15:36:16 +020016215 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020016216 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Jan Tattermusch0df7ddc2020-04-14 12:41:03 +020016217 void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
Sydney Acksman8a57ec82019-03-21 17:36:36 -050016218 uint tag;
16219 while ((tag = input.ReadTag()) != 0) {
16220 switch(tag) {
16221 default:
Jan Tattermusch3196ef92020-04-02 15:36:16 +020016222 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
Sydney Acksman8a57ec82019-03-21 17:36:36 -050016223 break;
16224 case 8: {
16225 Bb = input.ReadInt32();
16226 break;
16227 }
16228 case 16: {
16229 Oo = input.ReadInt64();
16230 break;
16231 }
16232 }
16233 }
16234 }
Jan Tattermusch7cb55972020-06-02 09:26:25 +020016235 #endif
Sydney Acksman8a57ec82019-03-21 17:36:36 -050016236
16237 }
16238
16239 }
16240 #endregion
16241
16242 }
16243
Jan Tattermusch7cb55972020-06-02 09:26:25 +020016244 public sealed partial class TestExtensionOrderings1 : pb::IMessage<TestExtensionOrderings1>
16245 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
16246 , pb::IBufferMessage
16247 #endif
16248 {
Sydney Acksman8a57ec82019-03-21 17:36:36 -050016249 private static readonly pb::MessageParser<TestExtensionOrderings1> _parser = new pb::MessageParser<TestExtensionOrderings1>(() => new TestExtensionOrderings1());
16250 private pb::UnknownFieldSet _unknownFields;
16251 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020016252 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050016253 public static pb::MessageParser<TestExtensionOrderings1> Parser { get { return _parser; } }
16254
16255 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020016256 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050016257 public static pbr::MessageDescriptor Descriptor {
16258 get { return global::Google.Protobuf.TestProtos.Proto2.UnittestReflection.Descriptor.MessageTypes[30]; }
16259 }
16260
16261 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020016262 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050016263 pbr::MessageDescriptor pb::IMessage.Descriptor {
16264 get { return Descriptor; }
16265 }
16266
16267 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020016268 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050016269 public TestExtensionOrderings1() {
16270 OnConstruction();
16271 }
16272
16273 partial void OnConstruction();
16274
16275 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020016276 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050016277 public TestExtensionOrderings1(TestExtensionOrderings1 other) : this() {
16278 myString_ = other.myString_;
16279 _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
16280 }
16281
16282 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020016283 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050016284 public TestExtensionOrderings1 Clone() {
16285 return new TestExtensionOrderings1(this);
16286 }
16287
16288 /// <summary>Field number for the "my_string" field.</summary>
16289 public const int MyStringFieldNumber = 1;
16290 private readonly static string MyStringDefaultValue = "";
16291
16292 private string myString_;
16293 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020016294 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050016295 public string MyString {
16296 get { return myString_ ?? MyStringDefaultValue; }
16297 set {
16298 myString_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
16299 }
16300 }
16301 /// <summary>Gets whether the "my_string" field is set</summary>
16302 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020016303 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050016304 public bool HasMyString {
16305 get { return myString_ != null; }
16306 }
16307 /// <summary>Clears the value of the "my_string" field</summary>
16308 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020016309 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050016310 public void ClearMyString() {
16311 myString_ = null;
16312 }
16313
16314 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020016315 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050016316 public override bool Equals(object other) {
16317 return Equals(other as TestExtensionOrderings1);
16318 }
16319
16320 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020016321 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050016322 public bool Equals(TestExtensionOrderings1 other) {
16323 if (ReferenceEquals(other, null)) {
16324 return false;
16325 }
16326 if (ReferenceEquals(other, this)) {
16327 return true;
16328 }
16329 if (MyString != other.MyString) return false;
16330 return Equals(_unknownFields, other._unknownFields);
16331 }
16332
16333 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020016334 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050016335 public override int GetHashCode() {
16336 int hash = 1;
16337 if (HasMyString) hash ^= MyString.GetHashCode();
16338 if (_unknownFields != null) {
16339 hash ^= _unknownFields.GetHashCode();
16340 }
16341 return hash;
16342 }
16343
16344 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020016345 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050016346 public override string ToString() {
16347 return pb::JsonFormatter.ToDiagnosticString(this);
16348 }
16349
16350 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020016351 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050016352 public void WriteTo(pb::CodedOutputStream output) {
Jan Tattermusch125e4ad2020-05-29 04:32:43 -040016353 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
16354 output.WriteRawMessage(this);
16355 #else
Sydney Acksman8a57ec82019-03-21 17:36:36 -050016356 if (HasMyString) {
16357 output.WriteRawTag(10);
16358 output.WriteString(MyString);
16359 }
16360 if (_unknownFields != null) {
16361 _unknownFields.WriteTo(output);
16362 }
Jan Tattermusch125e4ad2020-05-29 04:32:43 -040016363 #endif
Sydney Acksman8a57ec82019-03-21 17:36:36 -050016364 }
16365
Jan Tattermusch125e4ad2020-05-29 04:32:43 -040016366 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
16367 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020016368 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Jan Tattermusch125e4ad2020-05-29 04:32:43 -040016369 void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
16370 if (HasMyString) {
16371 output.WriteRawTag(10);
16372 output.WriteString(MyString);
16373 }
16374 if (_unknownFields != null) {
16375 _unknownFields.WriteTo(ref output);
16376 }
16377 }
16378 #endif
16379
Sydney Acksman8a57ec82019-03-21 17:36:36 -050016380 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020016381 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050016382 public int CalculateSize() {
16383 int size = 0;
16384 if (HasMyString) {
16385 size += 1 + pb::CodedOutputStream.ComputeStringSize(MyString);
16386 }
16387 if (_unknownFields != null) {
16388 size += _unknownFields.CalculateSize();
16389 }
16390 return size;
16391 }
16392
16393 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020016394 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050016395 public void MergeFrom(TestExtensionOrderings1 other) {
16396 if (other == null) {
16397 return;
16398 }
16399 if (other.HasMyString) {
16400 MyString = other.MyString;
16401 }
16402 _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
16403 }
16404
16405 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020016406 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050016407 public void MergeFrom(pb::CodedInputStream input) {
Jan Tattermusch7cb55972020-06-02 09:26:25 +020016408 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
Jan Tattermusch3196ef92020-04-02 15:36:16 +020016409 input.ReadRawMessage(this);
Jan Tattermusch7cb55972020-06-02 09:26:25 +020016410 #else
16411 uint tag;
16412 while ((tag = input.ReadTag()) != 0) {
16413 switch(tag) {
16414 default:
16415 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
16416 break;
16417 case 10: {
16418 MyString = input.ReadString();
16419 break;
16420 }
16421 }
16422 }
16423 #endif
Jan Tattermusch3196ef92020-04-02 15:36:16 +020016424 }
16425
Jan Tattermusch7cb55972020-06-02 09:26:25 +020016426 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
Jan Tattermusch3196ef92020-04-02 15:36:16 +020016427 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020016428 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Jan Tattermusch0df7ddc2020-04-14 12:41:03 +020016429 void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
Sydney Acksman8a57ec82019-03-21 17:36:36 -050016430 uint tag;
16431 while ((tag = input.ReadTag()) != 0) {
16432 switch(tag) {
16433 default:
Jan Tattermusch3196ef92020-04-02 15:36:16 +020016434 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
Sydney Acksman8a57ec82019-03-21 17:36:36 -050016435 break;
16436 case 10: {
16437 MyString = input.ReadString();
16438 break;
16439 }
16440 }
16441 }
16442 }
Jan Tattermusch7cb55972020-06-02 09:26:25 +020016443 #endif
Sydney Acksman8a57ec82019-03-21 17:36:36 -050016444
16445 #region Extensions
16446 /// <summary>Container for extensions for other messages declared in the TestExtensionOrderings1 message type.</summary>
16447 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020016448 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050016449 public static partial class Extensions {
16450 public static readonly pb::Extension<global::Google.Protobuf.TestProtos.Proto2.TestFieldOrderings, global::Google.Protobuf.TestProtos.Proto2.TestExtensionOrderings1> TestExtOrderings1 =
16451 new pb::Extension<global::Google.Protobuf.TestProtos.Proto2.TestFieldOrderings, global::Google.Protobuf.TestProtos.Proto2.TestExtensionOrderings1>(13, pb::FieldCodec.ForMessage(106, global::Google.Protobuf.TestProtos.Proto2.TestExtensionOrderings1.Parser));
16452 }
16453 #endregion
16454
16455 }
16456
Jan Tattermusch7cb55972020-06-02 09:26:25 +020016457 public sealed partial class TestExtensionOrderings2 : pb::IMessage<TestExtensionOrderings2>
16458 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
16459 , pb::IBufferMessage
16460 #endif
16461 {
Sydney Acksman8a57ec82019-03-21 17:36:36 -050016462 private static readonly pb::MessageParser<TestExtensionOrderings2> _parser = new pb::MessageParser<TestExtensionOrderings2>(() => new TestExtensionOrderings2());
16463 private pb::UnknownFieldSet _unknownFields;
16464 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020016465 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050016466 public static pb::MessageParser<TestExtensionOrderings2> Parser { get { return _parser; } }
16467
16468 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020016469 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050016470 public static pbr::MessageDescriptor Descriptor {
16471 get { return global::Google.Protobuf.TestProtos.Proto2.UnittestReflection.Descriptor.MessageTypes[31]; }
16472 }
16473
16474 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020016475 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050016476 pbr::MessageDescriptor pb::IMessage.Descriptor {
16477 get { return Descriptor; }
16478 }
16479
16480 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020016481 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050016482 public TestExtensionOrderings2() {
16483 OnConstruction();
16484 }
16485
16486 partial void OnConstruction();
16487
16488 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020016489 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050016490 public TestExtensionOrderings2(TestExtensionOrderings2 other) : this() {
16491 myString_ = other.myString_;
16492 _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
16493 }
16494
16495 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020016496 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050016497 public TestExtensionOrderings2 Clone() {
16498 return new TestExtensionOrderings2(this);
16499 }
16500
16501 /// <summary>Field number for the "my_string" field.</summary>
16502 public const int MyStringFieldNumber = 1;
16503 private readonly static string MyStringDefaultValue = "";
16504
16505 private string myString_;
16506 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020016507 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050016508 public string MyString {
16509 get { return myString_ ?? MyStringDefaultValue; }
16510 set {
16511 myString_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
16512 }
16513 }
16514 /// <summary>Gets whether the "my_string" field is set</summary>
16515 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020016516 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050016517 public bool HasMyString {
16518 get { return myString_ != null; }
16519 }
16520 /// <summary>Clears the value of the "my_string" field</summary>
16521 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020016522 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050016523 public void ClearMyString() {
16524 myString_ = null;
16525 }
16526
16527 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020016528 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050016529 public override bool Equals(object other) {
16530 return Equals(other as TestExtensionOrderings2);
16531 }
16532
16533 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020016534 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050016535 public bool Equals(TestExtensionOrderings2 other) {
16536 if (ReferenceEquals(other, null)) {
16537 return false;
16538 }
16539 if (ReferenceEquals(other, this)) {
16540 return true;
16541 }
16542 if (MyString != other.MyString) return false;
16543 return Equals(_unknownFields, other._unknownFields);
16544 }
16545
16546 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020016547 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050016548 public override int GetHashCode() {
16549 int hash = 1;
16550 if (HasMyString) hash ^= MyString.GetHashCode();
16551 if (_unknownFields != null) {
16552 hash ^= _unknownFields.GetHashCode();
16553 }
16554 return hash;
16555 }
16556
16557 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020016558 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050016559 public override string ToString() {
16560 return pb::JsonFormatter.ToDiagnosticString(this);
16561 }
16562
16563 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020016564 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050016565 public void WriteTo(pb::CodedOutputStream output) {
Jan Tattermusch125e4ad2020-05-29 04:32:43 -040016566 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
16567 output.WriteRawMessage(this);
16568 #else
Sydney Acksman8a57ec82019-03-21 17:36:36 -050016569 if (HasMyString) {
16570 output.WriteRawTag(10);
16571 output.WriteString(MyString);
16572 }
16573 if (_unknownFields != null) {
16574 _unknownFields.WriteTo(output);
16575 }
Jan Tattermusch125e4ad2020-05-29 04:32:43 -040016576 #endif
Sydney Acksman8a57ec82019-03-21 17:36:36 -050016577 }
16578
Jan Tattermusch125e4ad2020-05-29 04:32:43 -040016579 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
16580 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020016581 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Jan Tattermusch125e4ad2020-05-29 04:32:43 -040016582 void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
16583 if (HasMyString) {
16584 output.WriteRawTag(10);
16585 output.WriteString(MyString);
16586 }
16587 if (_unknownFields != null) {
16588 _unknownFields.WriteTo(ref output);
16589 }
16590 }
16591 #endif
16592
Sydney Acksman8a57ec82019-03-21 17:36:36 -050016593 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020016594 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050016595 public int CalculateSize() {
16596 int size = 0;
16597 if (HasMyString) {
16598 size += 1 + pb::CodedOutputStream.ComputeStringSize(MyString);
16599 }
16600 if (_unknownFields != null) {
16601 size += _unknownFields.CalculateSize();
16602 }
16603 return size;
16604 }
16605
16606 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020016607 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050016608 public void MergeFrom(TestExtensionOrderings2 other) {
16609 if (other == null) {
16610 return;
16611 }
16612 if (other.HasMyString) {
16613 MyString = other.MyString;
16614 }
16615 _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
16616 }
16617
16618 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020016619 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050016620 public void MergeFrom(pb::CodedInputStream input) {
Jan Tattermusch7cb55972020-06-02 09:26:25 +020016621 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
Jan Tattermusch3196ef92020-04-02 15:36:16 +020016622 input.ReadRawMessage(this);
Jan Tattermusch7cb55972020-06-02 09:26:25 +020016623 #else
16624 uint tag;
16625 while ((tag = input.ReadTag()) != 0) {
16626 switch(tag) {
16627 default:
16628 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
16629 break;
16630 case 10: {
16631 MyString = input.ReadString();
16632 break;
16633 }
16634 }
16635 }
16636 #endif
Jan Tattermusch3196ef92020-04-02 15:36:16 +020016637 }
16638
Jan Tattermusch7cb55972020-06-02 09:26:25 +020016639 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
Jan Tattermusch3196ef92020-04-02 15:36:16 +020016640 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020016641 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Jan Tattermusch0df7ddc2020-04-14 12:41:03 +020016642 void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
Sydney Acksman8a57ec82019-03-21 17:36:36 -050016643 uint tag;
16644 while ((tag = input.ReadTag()) != 0) {
16645 switch(tag) {
16646 default:
Jan Tattermusch3196ef92020-04-02 15:36:16 +020016647 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
Sydney Acksman8a57ec82019-03-21 17:36:36 -050016648 break;
16649 case 10: {
16650 MyString = input.ReadString();
16651 break;
16652 }
16653 }
16654 }
16655 }
Jan Tattermusch7cb55972020-06-02 09:26:25 +020016656 #endif
Sydney Acksman8a57ec82019-03-21 17:36:36 -050016657
16658 #region Nested types
16659 /// <summary>Container for nested types declared in the TestExtensionOrderings2 message type.</summary>
16660 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020016661 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050016662 public static partial class Types {
Jan Tattermusch7cb55972020-06-02 09:26:25 +020016663 public sealed partial class TestExtensionOrderings3 : pb::IMessage<TestExtensionOrderings3>
16664 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
16665 , pb::IBufferMessage
16666 #endif
16667 {
Sydney Acksman8a57ec82019-03-21 17:36:36 -050016668 private static readonly pb::MessageParser<TestExtensionOrderings3> _parser = new pb::MessageParser<TestExtensionOrderings3>(() => new TestExtensionOrderings3());
16669 private pb::UnknownFieldSet _unknownFields;
16670 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020016671 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050016672 public static pb::MessageParser<TestExtensionOrderings3> Parser { get { return _parser; } }
16673
16674 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020016675 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050016676 public static pbr::MessageDescriptor Descriptor {
16677 get { return global::Google.Protobuf.TestProtos.Proto2.TestExtensionOrderings2.Descriptor.NestedTypes[0]; }
16678 }
16679
16680 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020016681 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050016682 pbr::MessageDescriptor pb::IMessage.Descriptor {
16683 get { return Descriptor; }
16684 }
16685
16686 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020016687 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050016688 public TestExtensionOrderings3() {
16689 OnConstruction();
16690 }
16691
16692 partial void OnConstruction();
16693
16694 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020016695 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050016696 public TestExtensionOrderings3(TestExtensionOrderings3 other) : this() {
16697 myString_ = other.myString_;
16698 _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
16699 }
16700
16701 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020016702 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050016703 public TestExtensionOrderings3 Clone() {
16704 return new TestExtensionOrderings3(this);
16705 }
16706
16707 /// <summary>Field number for the "my_string" field.</summary>
16708 public const int MyStringFieldNumber = 1;
16709 private readonly static string MyStringDefaultValue = "";
16710
16711 private string myString_;
16712 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020016713 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050016714 public string MyString {
16715 get { return myString_ ?? MyStringDefaultValue; }
16716 set {
16717 myString_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
16718 }
16719 }
16720 /// <summary>Gets whether the "my_string" field is set</summary>
16721 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020016722 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050016723 public bool HasMyString {
16724 get { return myString_ != null; }
16725 }
16726 /// <summary>Clears the value of the "my_string" field</summary>
16727 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020016728 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050016729 public void ClearMyString() {
16730 myString_ = null;
16731 }
16732
16733 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020016734 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050016735 public override bool Equals(object other) {
16736 return Equals(other as TestExtensionOrderings3);
16737 }
16738
16739 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020016740 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050016741 public bool Equals(TestExtensionOrderings3 other) {
16742 if (ReferenceEquals(other, null)) {
16743 return false;
16744 }
16745 if (ReferenceEquals(other, this)) {
16746 return true;
16747 }
16748 if (MyString != other.MyString) return false;
16749 return Equals(_unknownFields, other._unknownFields);
16750 }
16751
16752 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020016753 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050016754 public override int GetHashCode() {
16755 int hash = 1;
16756 if (HasMyString) hash ^= MyString.GetHashCode();
16757 if (_unknownFields != null) {
16758 hash ^= _unknownFields.GetHashCode();
16759 }
16760 return hash;
16761 }
16762
16763 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020016764 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050016765 public override string ToString() {
16766 return pb::JsonFormatter.ToDiagnosticString(this);
16767 }
16768
16769 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020016770 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050016771 public void WriteTo(pb::CodedOutputStream output) {
Jan Tattermusch125e4ad2020-05-29 04:32:43 -040016772 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
16773 output.WriteRawMessage(this);
16774 #else
Sydney Acksman8a57ec82019-03-21 17:36:36 -050016775 if (HasMyString) {
16776 output.WriteRawTag(10);
16777 output.WriteString(MyString);
16778 }
16779 if (_unknownFields != null) {
16780 _unknownFields.WriteTo(output);
16781 }
Jan Tattermusch125e4ad2020-05-29 04:32:43 -040016782 #endif
Sydney Acksman8a57ec82019-03-21 17:36:36 -050016783 }
16784
Jan Tattermusch125e4ad2020-05-29 04:32:43 -040016785 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
16786 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020016787 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Jan Tattermusch125e4ad2020-05-29 04:32:43 -040016788 void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
16789 if (HasMyString) {
16790 output.WriteRawTag(10);
16791 output.WriteString(MyString);
16792 }
16793 if (_unknownFields != null) {
16794 _unknownFields.WriteTo(ref output);
16795 }
16796 }
16797 #endif
16798
Sydney Acksman8a57ec82019-03-21 17:36:36 -050016799 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020016800 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050016801 public int CalculateSize() {
16802 int size = 0;
16803 if (HasMyString) {
16804 size += 1 + pb::CodedOutputStream.ComputeStringSize(MyString);
16805 }
16806 if (_unknownFields != null) {
16807 size += _unknownFields.CalculateSize();
16808 }
16809 return size;
16810 }
16811
16812 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020016813 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050016814 public void MergeFrom(TestExtensionOrderings3 other) {
16815 if (other == null) {
16816 return;
16817 }
16818 if (other.HasMyString) {
16819 MyString = other.MyString;
16820 }
16821 _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
16822 }
16823
16824 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020016825 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050016826 public void MergeFrom(pb::CodedInputStream input) {
Jan Tattermusch7cb55972020-06-02 09:26:25 +020016827 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
Jan Tattermusch3196ef92020-04-02 15:36:16 +020016828 input.ReadRawMessage(this);
Jan Tattermusch7cb55972020-06-02 09:26:25 +020016829 #else
16830 uint tag;
16831 while ((tag = input.ReadTag()) != 0) {
16832 switch(tag) {
16833 default:
16834 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
16835 break;
16836 case 10: {
16837 MyString = input.ReadString();
16838 break;
16839 }
16840 }
16841 }
16842 #endif
Jan Tattermusch3196ef92020-04-02 15:36:16 +020016843 }
16844
Jan Tattermusch7cb55972020-06-02 09:26:25 +020016845 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
Jan Tattermusch3196ef92020-04-02 15:36:16 +020016846 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020016847 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Jan Tattermusch0df7ddc2020-04-14 12:41:03 +020016848 void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
Sydney Acksman8a57ec82019-03-21 17:36:36 -050016849 uint tag;
16850 while ((tag = input.ReadTag()) != 0) {
16851 switch(tag) {
16852 default:
Jan Tattermusch3196ef92020-04-02 15:36:16 +020016853 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
Sydney Acksman8a57ec82019-03-21 17:36:36 -050016854 break;
16855 case 10: {
16856 MyString = input.ReadString();
16857 break;
16858 }
16859 }
16860 }
16861 }
Jan Tattermusch7cb55972020-06-02 09:26:25 +020016862 #endif
Sydney Acksman8a57ec82019-03-21 17:36:36 -050016863
16864 #region Extensions
16865 /// <summary>Container for extensions for other messages declared in the TestExtensionOrderings3 message type.</summary>
16866 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020016867 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050016868 public static partial class Extensions {
16869 public static readonly pb::Extension<global::Google.Protobuf.TestProtos.Proto2.TestFieldOrderings, global::Google.Protobuf.TestProtos.Proto2.TestExtensionOrderings2.Types.TestExtensionOrderings3> TestExtOrderings3 =
16870 new pb::Extension<global::Google.Protobuf.TestProtos.Proto2.TestFieldOrderings, global::Google.Protobuf.TestProtos.Proto2.TestExtensionOrderings2.Types.TestExtensionOrderings3>(14, pb::FieldCodec.ForMessage(114, global::Google.Protobuf.TestProtos.Proto2.TestExtensionOrderings2.Types.TestExtensionOrderings3.Parser));
16871 }
16872 #endregion
16873
16874 }
16875
16876 }
16877 #endregion
16878
16879 #region Extensions
16880 /// <summary>Container for extensions for other messages declared in the TestExtensionOrderings2 message type.</summary>
16881 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020016882 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050016883 public static partial class Extensions {
16884 public static readonly pb::Extension<global::Google.Protobuf.TestProtos.Proto2.TestFieldOrderings, global::Google.Protobuf.TestProtos.Proto2.TestExtensionOrderings2> TestExtOrderings2 =
16885 new pb::Extension<global::Google.Protobuf.TestProtos.Proto2.TestFieldOrderings, global::Google.Protobuf.TestProtos.Proto2.TestExtensionOrderings2>(12, pb::FieldCodec.ForMessage(98, global::Google.Protobuf.TestProtos.Proto2.TestExtensionOrderings2.Parser));
16886 }
16887 #endregion
16888
16889 }
16890
Jan Tattermusch7cb55972020-06-02 09:26:25 +020016891 public sealed partial class TestExtremeDefaultValues : pb::IMessage<TestExtremeDefaultValues>
16892 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
16893 , pb::IBufferMessage
16894 #endif
16895 {
Sydney Acksman8a57ec82019-03-21 17:36:36 -050016896 private static readonly pb::MessageParser<TestExtremeDefaultValues> _parser = new pb::MessageParser<TestExtremeDefaultValues>(() => new TestExtremeDefaultValues());
16897 private pb::UnknownFieldSet _unknownFields;
16898 private int _hasBits0;
16899 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020016900 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050016901 public static pb::MessageParser<TestExtremeDefaultValues> Parser { get { return _parser; } }
16902
16903 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020016904 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050016905 public static pbr::MessageDescriptor Descriptor {
16906 get { return global::Google.Protobuf.TestProtos.Proto2.UnittestReflection.Descriptor.MessageTypes[32]; }
16907 }
16908
16909 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020016910 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050016911 pbr::MessageDescriptor pb::IMessage.Descriptor {
16912 get { return Descriptor; }
16913 }
16914
16915 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020016916 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050016917 public TestExtremeDefaultValues() {
16918 OnConstruction();
16919 }
16920
16921 partial void OnConstruction();
16922
16923 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020016924 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050016925 public TestExtremeDefaultValues(TestExtremeDefaultValues other) : this() {
16926 _hasBits0 = other._hasBits0;
16927 escapedBytes_ = other.escapedBytes_;
16928 largeUint32_ = other.largeUint32_;
16929 largeUint64_ = other.largeUint64_;
16930 smallInt32_ = other.smallInt32_;
16931 smallInt64_ = other.smallInt64_;
16932 reallySmallInt32_ = other.reallySmallInt32_;
16933 reallySmallInt64_ = other.reallySmallInt64_;
16934 utf8String_ = other.utf8String_;
16935 zeroFloat_ = other.zeroFloat_;
16936 oneFloat_ = other.oneFloat_;
16937 smallFloat_ = other.smallFloat_;
16938 negativeOneFloat_ = other.negativeOneFloat_;
16939 negativeFloat_ = other.negativeFloat_;
16940 largeFloat_ = other.largeFloat_;
16941 smallNegativeFloat_ = other.smallNegativeFloat_;
16942 infDouble_ = other.infDouble_;
16943 negInfDouble_ = other.negInfDouble_;
16944 nanDouble_ = other.nanDouble_;
16945 infFloat_ = other.infFloat_;
16946 negInfFloat_ = other.negInfFloat_;
16947 nanFloat_ = other.nanFloat_;
16948 cppTrigraph_ = other.cppTrigraph_;
16949 stringWithZero_ = other.stringWithZero_;
16950 bytesWithZero_ = other.bytesWithZero_;
16951 stringPieceWithZero_ = other.stringPieceWithZero_;
16952 cordWithZero_ = other.cordWithZero_;
16953 replacementString_ = other.replacementString_;
16954 _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
16955 }
16956
16957 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020016958 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050016959 public TestExtremeDefaultValues Clone() {
16960 return new TestExtremeDefaultValues(this);
16961 }
16962
16963 /// <summary>Field number for the "escaped_bytes" field.</summary>
16964 public const int EscapedBytesFieldNumber = 1;
16965 private readonly static pb::ByteString EscapedBytesDefaultValue = pb::ByteString.FromBase64("AAEHCAwKDQkLXCci/g==");
16966
16967 private pb::ByteString escapedBytes_;
16968 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020016969 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050016970 public pb::ByteString EscapedBytes {
16971 get { return escapedBytes_ ?? EscapedBytesDefaultValue; }
16972 set {
16973 escapedBytes_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
16974 }
16975 }
16976 /// <summary>Gets whether the "escaped_bytes" field is set</summary>
16977 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020016978 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050016979 public bool HasEscapedBytes {
16980 get { return escapedBytes_ != null; }
16981 }
16982 /// <summary>Clears the value of the "escaped_bytes" field</summary>
16983 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020016984 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050016985 public void ClearEscapedBytes() {
16986 escapedBytes_ = null;
16987 }
16988
16989 /// <summary>Field number for the "large_uint32" field.</summary>
16990 public const int LargeUint32FieldNumber = 2;
16991 private readonly static uint LargeUint32DefaultValue = 4294967295;
16992
16993 private uint largeUint32_;
16994 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020016995 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050016996 public uint LargeUint32 {
16997 get { if ((_hasBits0 & 1) != 0) { return largeUint32_; } else { return LargeUint32DefaultValue; } }
16998 set {
16999 _hasBits0 |= 1;
17000 largeUint32_ = value;
17001 }
17002 }
17003 /// <summary>Gets whether the "large_uint32" field is set</summary>
17004 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020017005 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050017006 public bool HasLargeUint32 {
17007 get { return (_hasBits0 & 1) != 0; }
17008 }
17009 /// <summary>Clears the value of the "large_uint32" field</summary>
17010 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020017011 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050017012 public void ClearLargeUint32() {
17013 _hasBits0 &= ~1;
17014 }
17015
17016 /// <summary>Field number for the "large_uint64" field.</summary>
17017 public const int LargeUint64FieldNumber = 3;
17018 private readonly static ulong LargeUint64DefaultValue = 18446744073709551615UL;
17019
17020 private ulong largeUint64_;
17021 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020017022 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050017023 public ulong LargeUint64 {
17024 get { if ((_hasBits0 & 2) != 0) { return largeUint64_; } else { return LargeUint64DefaultValue; } }
17025 set {
17026 _hasBits0 |= 2;
17027 largeUint64_ = value;
17028 }
17029 }
17030 /// <summary>Gets whether the "large_uint64" field is set</summary>
17031 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020017032 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050017033 public bool HasLargeUint64 {
17034 get { return (_hasBits0 & 2) != 0; }
17035 }
17036 /// <summary>Clears the value of the "large_uint64" field</summary>
17037 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020017038 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050017039 public void ClearLargeUint64() {
17040 _hasBits0 &= ~2;
17041 }
17042
17043 /// <summary>Field number for the "small_int32" field.</summary>
17044 public const int SmallInt32FieldNumber = 4;
17045 private readonly static int SmallInt32DefaultValue = -2147483647;
17046
17047 private int smallInt32_;
17048 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020017049 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050017050 public int SmallInt32 {
17051 get { if ((_hasBits0 & 4) != 0) { return smallInt32_; } else { return SmallInt32DefaultValue; } }
17052 set {
17053 _hasBits0 |= 4;
17054 smallInt32_ = value;
17055 }
17056 }
17057 /// <summary>Gets whether the "small_int32" field is set</summary>
17058 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020017059 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050017060 public bool HasSmallInt32 {
17061 get { return (_hasBits0 & 4) != 0; }
17062 }
17063 /// <summary>Clears the value of the "small_int32" field</summary>
17064 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020017065 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050017066 public void ClearSmallInt32() {
17067 _hasBits0 &= ~4;
17068 }
17069
17070 /// <summary>Field number for the "small_int64" field.</summary>
17071 public const int SmallInt64FieldNumber = 5;
17072 private readonly static long SmallInt64DefaultValue = -9223372036854775807L;
17073
17074 private long smallInt64_;
17075 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020017076 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050017077 public long SmallInt64 {
17078 get { if ((_hasBits0 & 8) != 0) { return smallInt64_; } else { return SmallInt64DefaultValue; } }
17079 set {
17080 _hasBits0 |= 8;
17081 smallInt64_ = value;
17082 }
17083 }
17084 /// <summary>Gets whether the "small_int64" field is set</summary>
17085 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020017086 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050017087 public bool HasSmallInt64 {
17088 get { return (_hasBits0 & 8) != 0; }
17089 }
17090 /// <summary>Clears the value of the "small_int64" field</summary>
17091 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020017092 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050017093 public void ClearSmallInt64() {
17094 _hasBits0 &= ~8;
17095 }
17096
17097 /// <summary>Field number for the "really_small_int32" field.</summary>
17098 public const int ReallySmallInt32FieldNumber = 21;
17099 private readonly static int ReallySmallInt32DefaultValue = -2147483648;
17100
17101 private int reallySmallInt32_;
17102 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020017103 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050017104 public int ReallySmallInt32 {
17105 get { if ((_hasBits0 & 131072) != 0) { return reallySmallInt32_; } else { return ReallySmallInt32DefaultValue; } }
17106 set {
17107 _hasBits0 |= 131072;
17108 reallySmallInt32_ = value;
17109 }
17110 }
17111 /// <summary>Gets whether the "really_small_int32" field is set</summary>
17112 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020017113 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050017114 public bool HasReallySmallInt32 {
17115 get { return (_hasBits0 & 131072) != 0; }
17116 }
17117 /// <summary>Clears the value of the "really_small_int32" field</summary>
17118 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020017119 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050017120 public void ClearReallySmallInt32() {
17121 _hasBits0 &= ~131072;
17122 }
17123
17124 /// <summary>Field number for the "really_small_int64" field.</summary>
17125 public const int ReallySmallInt64FieldNumber = 22;
17126 private readonly static long ReallySmallInt64DefaultValue = -9223372036854775808L;
17127
17128 private long reallySmallInt64_;
17129 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020017130 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050017131 public long ReallySmallInt64 {
17132 get { if ((_hasBits0 & 262144) != 0) { return reallySmallInt64_; } else { return ReallySmallInt64DefaultValue; } }
17133 set {
17134 _hasBits0 |= 262144;
17135 reallySmallInt64_ = value;
17136 }
17137 }
17138 /// <summary>Gets whether the "really_small_int64" field is set</summary>
17139 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020017140 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050017141 public bool HasReallySmallInt64 {
17142 get { return (_hasBits0 & 262144) != 0; }
17143 }
17144 /// <summary>Clears the value of the "really_small_int64" field</summary>
17145 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020017146 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050017147 public void ClearReallySmallInt64() {
17148 _hasBits0 &= ~262144;
17149 }
17150
17151 /// <summary>Field number for the "utf8_string" field.</summary>
17152 public const int Utf8StringFieldNumber = 6;
Sydney Acksmane119a432019-10-30 13:02:46 -050017153 private readonly static string Utf8StringDefaultValue = global::System.Text.Encoding.UTF8.GetString(global::System.Convert.FromBase64String("4Yi0"), 0, 3);
Sydney Acksman8a57ec82019-03-21 17:36:36 -050017154
17155 private string utf8String_;
17156 /// <summary>
17157 /// The default value here is UTF-8 for "\u1234". (We could also just type
17158 /// the UTF-8 text directly into this text file rather than escape it, but
17159 /// lots of people use editors that would be confused by this.)
17160 /// </summary>
17161 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020017162 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050017163 public string Utf8String {
17164 get { return utf8String_ ?? Utf8StringDefaultValue; }
17165 set {
17166 utf8String_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
17167 }
17168 }
17169 /// <summary>Gets whether the "utf8_string" field is set</summary>
17170 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020017171 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050017172 public bool HasUtf8String {
17173 get { return utf8String_ != null; }
17174 }
17175 /// <summary>Clears the value of the "utf8_string" field</summary>
17176 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020017177 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050017178 public void ClearUtf8String() {
17179 utf8String_ = null;
17180 }
17181
17182 /// <summary>Field number for the "zero_float" field.</summary>
17183 public const int ZeroFloatFieldNumber = 7;
17184 private readonly static float ZeroFloatDefaultValue = 0F;
17185
17186 private float zeroFloat_;
17187 /// <summary>
17188 /// Tests for single-precision floating-point values.
17189 /// </summary>
17190 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020017191 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050017192 public float ZeroFloat {
17193 get { if ((_hasBits0 & 16) != 0) { return zeroFloat_; } else { return ZeroFloatDefaultValue; } }
17194 set {
17195 _hasBits0 |= 16;
17196 zeroFloat_ = value;
17197 }
17198 }
17199 /// <summary>Gets whether the "zero_float" field is set</summary>
17200 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020017201 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050017202 public bool HasZeroFloat {
17203 get { return (_hasBits0 & 16) != 0; }
17204 }
17205 /// <summary>Clears the value of the "zero_float" field</summary>
17206 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020017207 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050017208 public void ClearZeroFloat() {
17209 _hasBits0 &= ~16;
17210 }
17211
17212 /// <summary>Field number for the "one_float" field.</summary>
17213 public const int OneFloatFieldNumber = 8;
17214 private readonly static float OneFloatDefaultValue = 1F;
17215
17216 private float oneFloat_;
17217 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020017218 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050017219 public float OneFloat {
17220 get { if ((_hasBits0 & 32) != 0) { return oneFloat_; } else { return OneFloatDefaultValue; } }
17221 set {
17222 _hasBits0 |= 32;
17223 oneFloat_ = value;
17224 }
17225 }
17226 /// <summary>Gets whether the "one_float" field is set</summary>
17227 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020017228 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050017229 public bool HasOneFloat {
17230 get { return (_hasBits0 & 32) != 0; }
17231 }
17232 /// <summary>Clears the value of the "one_float" field</summary>
17233 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020017234 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050017235 public void ClearOneFloat() {
17236 _hasBits0 &= ~32;
17237 }
17238
17239 /// <summary>Field number for the "small_float" field.</summary>
17240 public const int SmallFloatFieldNumber = 9;
17241 private readonly static float SmallFloatDefaultValue = 1.5F;
17242
17243 private float smallFloat_;
17244 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020017245 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050017246 public float SmallFloat {
17247 get { if ((_hasBits0 & 64) != 0) { return smallFloat_; } else { return SmallFloatDefaultValue; } }
17248 set {
17249 _hasBits0 |= 64;
17250 smallFloat_ = value;
17251 }
17252 }
17253 /// <summary>Gets whether the "small_float" field is set</summary>
17254 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020017255 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050017256 public bool HasSmallFloat {
17257 get { return (_hasBits0 & 64) != 0; }
17258 }
17259 /// <summary>Clears the value of the "small_float" field</summary>
17260 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020017261 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050017262 public void ClearSmallFloat() {
17263 _hasBits0 &= ~64;
17264 }
17265
17266 /// <summary>Field number for the "negative_one_float" field.</summary>
17267 public const int NegativeOneFloatFieldNumber = 10;
17268 private readonly static float NegativeOneFloatDefaultValue = -1F;
17269
17270 private float negativeOneFloat_;
17271 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020017272 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050017273 public float NegativeOneFloat {
17274 get { if ((_hasBits0 & 128) != 0) { return negativeOneFloat_; } else { return NegativeOneFloatDefaultValue; } }
17275 set {
17276 _hasBits0 |= 128;
17277 negativeOneFloat_ = value;
17278 }
17279 }
17280 /// <summary>Gets whether the "negative_one_float" field is set</summary>
17281 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020017282 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050017283 public bool HasNegativeOneFloat {
17284 get { return (_hasBits0 & 128) != 0; }
17285 }
17286 /// <summary>Clears the value of the "negative_one_float" field</summary>
17287 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020017288 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050017289 public void ClearNegativeOneFloat() {
17290 _hasBits0 &= ~128;
17291 }
17292
17293 /// <summary>Field number for the "negative_float" field.</summary>
17294 public const int NegativeFloatFieldNumber = 11;
17295 private readonly static float NegativeFloatDefaultValue = -1.5F;
17296
17297 private float negativeFloat_;
17298 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020017299 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050017300 public float NegativeFloat {
17301 get { if ((_hasBits0 & 256) != 0) { return negativeFloat_; } else { return NegativeFloatDefaultValue; } }
17302 set {
17303 _hasBits0 |= 256;
17304 negativeFloat_ = value;
17305 }
17306 }
17307 /// <summary>Gets whether the "negative_float" field is set</summary>
17308 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020017309 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050017310 public bool HasNegativeFloat {
17311 get { return (_hasBits0 & 256) != 0; }
17312 }
17313 /// <summary>Clears the value of the "negative_float" field</summary>
17314 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020017315 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050017316 public void ClearNegativeFloat() {
17317 _hasBits0 &= ~256;
17318 }
17319
17320 /// <summary>Field number for the "large_float" field.</summary>
17321 public const int LargeFloatFieldNumber = 12;
17322 private readonly static float LargeFloatDefaultValue = 2e+08F;
17323
17324 private float largeFloat_;
17325 /// <summary>
17326 /// Using exponents
17327 /// </summary>
17328 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020017329 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050017330 public float LargeFloat {
17331 get { if ((_hasBits0 & 512) != 0) { return largeFloat_; } else { return LargeFloatDefaultValue; } }
17332 set {
17333 _hasBits0 |= 512;
17334 largeFloat_ = value;
17335 }
17336 }
17337 /// <summary>Gets whether the "large_float" field is set</summary>
17338 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020017339 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050017340 public bool HasLargeFloat {
17341 get { return (_hasBits0 & 512) != 0; }
17342 }
17343 /// <summary>Clears the value of the "large_float" field</summary>
17344 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020017345 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050017346 public void ClearLargeFloat() {
17347 _hasBits0 &= ~512;
17348 }
17349
17350 /// <summary>Field number for the "small_negative_float" field.</summary>
17351 public const int SmallNegativeFloatFieldNumber = 13;
17352 private readonly static float SmallNegativeFloatDefaultValue = -8e-28F;
17353
17354 private float smallNegativeFloat_;
17355 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020017356 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050017357 public float SmallNegativeFloat {
17358 get { if ((_hasBits0 & 1024) != 0) { return smallNegativeFloat_; } else { return SmallNegativeFloatDefaultValue; } }
17359 set {
17360 _hasBits0 |= 1024;
17361 smallNegativeFloat_ = value;
17362 }
17363 }
17364 /// <summary>Gets whether the "small_negative_float" field is set</summary>
17365 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020017366 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050017367 public bool HasSmallNegativeFloat {
17368 get { return (_hasBits0 & 1024) != 0; }
17369 }
17370 /// <summary>Clears the value of the "small_negative_float" field</summary>
17371 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020017372 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050017373 public void ClearSmallNegativeFloat() {
17374 _hasBits0 &= ~1024;
17375 }
17376
17377 /// <summary>Field number for the "inf_double" field.</summary>
17378 public const int InfDoubleFieldNumber = 14;
17379 private readonly static double InfDoubleDefaultValue = double.PositiveInfinity;
17380
17381 private double infDouble_;
17382 /// <summary>
17383 /// Text for nonfinite floating-point values.
17384 /// </summary>
17385 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020017386 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050017387 public double InfDouble {
17388 get { if ((_hasBits0 & 2048) != 0) { return infDouble_; } else { return InfDoubleDefaultValue; } }
17389 set {
17390 _hasBits0 |= 2048;
17391 infDouble_ = value;
17392 }
17393 }
17394 /// <summary>Gets whether the "inf_double" field is set</summary>
17395 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020017396 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050017397 public bool HasInfDouble {
17398 get { return (_hasBits0 & 2048) != 0; }
17399 }
17400 /// <summary>Clears the value of the "inf_double" field</summary>
17401 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020017402 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050017403 public void ClearInfDouble() {
17404 _hasBits0 &= ~2048;
17405 }
17406
17407 /// <summary>Field number for the "neg_inf_double" field.</summary>
17408 public const int NegInfDoubleFieldNumber = 15;
17409 private readonly static double NegInfDoubleDefaultValue = double.NegativeInfinity;
17410
17411 private double negInfDouble_;
17412 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020017413 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050017414 public double NegInfDouble {
17415 get { if ((_hasBits0 & 4096) != 0) { return negInfDouble_; } else { return NegInfDoubleDefaultValue; } }
17416 set {
17417 _hasBits0 |= 4096;
17418 negInfDouble_ = value;
17419 }
17420 }
17421 /// <summary>Gets whether the "neg_inf_double" field is set</summary>
17422 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020017423 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050017424 public bool HasNegInfDouble {
17425 get { return (_hasBits0 & 4096) != 0; }
17426 }
17427 /// <summary>Clears the value of the "neg_inf_double" field</summary>
17428 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020017429 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050017430 public void ClearNegInfDouble() {
17431 _hasBits0 &= ~4096;
17432 }
17433
17434 /// <summary>Field number for the "nan_double" field.</summary>
17435 public const int NanDoubleFieldNumber = 16;
17436 private readonly static double NanDoubleDefaultValue = double.NaN;
17437
17438 private double nanDouble_;
17439 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020017440 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050017441 public double NanDouble {
17442 get { if ((_hasBits0 & 8192) != 0) { return nanDouble_; } else { return NanDoubleDefaultValue; } }
17443 set {
17444 _hasBits0 |= 8192;
17445 nanDouble_ = value;
17446 }
17447 }
17448 /// <summary>Gets whether the "nan_double" field is set</summary>
17449 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020017450 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050017451 public bool HasNanDouble {
17452 get { return (_hasBits0 & 8192) != 0; }
17453 }
17454 /// <summary>Clears the value of the "nan_double" field</summary>
17455 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020017456 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050017457 public void ClearNanDouble() {
17458 _hasBits0 &= ~8192;
17459 }
17460
17461 /// <summary>Field number for the "inf_float" field.</summary>
17462 public const int InfFloatFieldNumber = 17;
17463 private readonly static float InfFloatDefaultValue = float.PositiveInfinity;
17464
17465 private float infFloat_;
17466 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020017467 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050017468 public float InfFloat {
17469 get { if ((_hasBits0 & 16384) != 0) { return infFloat_; } else { return InfFloatDefaultValue; } }
17470 set {
17471 _hasBits0 |= 16384;
17472 infFloat_ = value;
17473 }
17474 }
17475 /// <summary>Gets whether the "inf_float" field is set</summary>
17476 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020017477 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050017478 public bool HasInfFloat {
17479 get { return (_hasBits0 & 16384) != 0; }
17480 }
17481 /// <summary>Clears the value of the "inf_float" field</summary>
17482 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020017483 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050017484 public void ClearInfFloat() {
17485 _hasBits0 &= ~16384;
17486 }
17487
17488 /// <summary>Field number for the "neg_inf_float" field.</summary>
17489 public const int NegInfFloatFieldNumber = 18;
17490 private readonly static float NegInfFloatDefaultValue = float.NegativeInfinity;
17491
17492 private float negInfFloat_;
17493 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020017494 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050017495 public float NegInfFloat {
17496 get { if ((_hasBits0 & 32768) != 0) { return negInfFloat_; } else { return NegInfFloatDefaultValue; } }
17497 set {
17498 _hasBits0 |= 32768;
17499 negInfFloat_ = value;
17500 }
17501 }
17502 /// <summary>Gets whether the "neg_inf_float" field is set</summary>
17503 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020017504 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050017505 public bool HasNegInfFloat {
17506 get { return (_hasBits0 & 32768) != 0; }
17507 }
17508 /// <summary>Clears the value of the "neg_inf_float" field</summary>
17509 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020017510 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050017511 public void ClearNegInfFloat() {
17512 _hasBits0 &= ~32768;
17513 }
17514
17515 /// <summary>Field number for the "nan_float" field.</summary>
17516 public const int NanFloatFieldNumber = 19;
17517 private readonly static float NanFloatDefaultValue = float.NaN;
17518
17519 private float nanFloat_;
17520 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020017521 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050017522 public float NanFloat {
17523 get { if ((_hasBits0 & 65536) != 0) { return nanFloat_; } else { return NanFloatDefaultValue; } }
17524 set {
17525 _hasBits0 |= 65536;
17526 nanFloat_ = value;
17527 }
17528 }
17529 /// <summary>Gets whether the "nan_float" field is set</summary>
17530 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020017531 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050017532 public bool HasNanFloat {
17533 get { return (_hasBits0 & 65536) != 0; }
17534 }
17535 /// <summary>Clears the value of the "nan_float" field</summary>
17536 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020017537 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050017538 public void ClearNanFloat() {
17539 _hasBits0 &= ~65536;
17540 }
17541
17542 /// <summary>Field number for the "cpp_trigraph" field.</summary>
17543 public const int CppTrigraphFieldNumber = 20;
Sydney Acksmane119a432019-10-30 13:02:46 -050017544 private readonly static string CppTrigraphDefaultValue = global::System.Text.Encoding.UTF8.GetString(global::System.Convert.FromBase64String("PyA/ID8/ID8/ID8/PyA/Py8gPz8t"), 0, 21);
Sydney Acksman8a57ec82019-03-21 17:36:36 -050017545
17546 private string cppTrigraph_;
17547 /// <summary>
17548 /// Tests for C++ trigraphs.
17549 /// Trigraphs should be escaped in C++ generated files, but they should not be
17550 /// escaped for other languages.
17551 /// Note that in .proto file, "\?" is a valid way to escape ? in string
17552 /// literals.
17553 /// </summary>
17554 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020017555 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050017556 public string CppTrigraph {
17557 get { return cppTrigraph_ ?? CppTrigraphDefaultValue; }
17558 set {
17559 cppTrigraph_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
17560 }
17561 }
17562 /// <summary>Gets whether the "cpp_trigraph" field is set</summary>
17563 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020017564 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050017565 public bool HasCppTrigraph {
17566 get { return cppTrigraph_ != null; }
17567 }
17568 /// <summary>Clears the value of the "cpp_trigraph" field</summary>
17569 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020017570 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050017571 public void ClearCppTrigraph() {
17572 cppTrigraph_ = null;
17573 }
17574
17575 /// <summary>Field number for the "string_with_zero" field.</summary>
17576 public const int StringWithZeroFieldNumber = 23;
Sydney Acksmane119a432019-10-30 13:02:46 -050017577 private readonly static string StringWithZeroDefaultValue = global::System.Text.Encoding.UTF8.GetString(global::System.Convert.FromBase64String("aGVsAGxv"), 0, 6);
Sydney Acksman8a57ec82019-03-21 17:36:36 -050017578
17579 private string stringWithZero_;
17580 /// <summary>
17581 /// String defaults containing the character '\000'
17582 /// </summary>
17583 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020017584 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050017585 public string StringWithZero {
17586 get { return stringWithZero_ ?? StringWithZeroDefaultValue; }
17587 set {
17588 stringWithZero_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
17589 }
17590 }
17591 /// <summary>Gets whether the "string_with_zero" field is set</summary>
17592 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020017593 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050017594 public bool HasStringWithZero {
17595 get { return stringWithZero_ != null; }
17596 }
17597 /// <summary>Clears the value of the "string_with_zero" field</summary>
17598 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020017599 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050017600 public void ClearStringWithZero() {
17601 stringWithZero_ = null;
17602 }
17603
17604 /// <summary>Field number for the "bytes_with_zero" field.</summary>
17605 public const int BytesWithZeroFieldNumber = 24;
17606 private readonly static pb::ByteString BytesWithZeroDefaultValue = pb::ByteString.FromBase64("d29yAGxk");
17607
17608 private pb::ByteString bytesWithZero_;
17609 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020017610 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050017611 public pb::ByteString BytesWithZero {
17612 get { return bytesWithZero_ ?? BytesWithZeroDefaultValue; }
17613 set {
17614 bytesWithZero_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
17615 }
17616 }
17617 /// <summary>Gets whether the "bytes_with_zero" field is set</summary>
17618 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020017619 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050017620 public bool HasBytesWithZero {
17621 get { return bytesWithZero_ != null; }
17622 }
17623 /// <summary>Clears the value of the "bytes_with_zero" field</summary>
17624 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020017625 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050017626 public void ClearBytesWithZero() {
17627 bytesWithZero_ = null;
17628 }
17629
17630 /// <summary>Field number for the "string_piece_with_zero" field.</summary>
17631 public const int StringPieceWithZeroFieldNumber = 25;
Sydney Acksmane119a432019-10-30 13:02:46 -050017632 private readonly static string StringPieceWithZeroDefaultValue = global::System.Text.Encoding.UTF8.GetString(global::System.Convert.FromBase64String("YWIAYw=="), 0, 4);
Sydney Acksman8a57ec82019-03-21 17:36:36 -050017633
17634 private string stringPieceWithZero_;
17635 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020017636 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050017637 public string StringPieceWithZero {
17638 get { return stringPieceWithZero_ ?? StringPieceWithZeroDefaultValue; }
17639 set {
17640 stringPieceWithZero_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
17641 }
17642 }
17643 /// <summary>Gets whether the "string_piece_with_zero" field is set</summary>
17644 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020017645 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050017646 public bool HasStringPieceWithZero {
17647 get { return stringPieceWithZero_ != null; }
17648 }
17649 /// <summary>Clears the value of the "string_piece_with_zero" field</summary>
17650 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020017651 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050017652 public void ClearStringPieceWithZero() {
17653 stringPieceWithZero_ = null;
17654 }
17655
17656 /// <summary>Field number for the "cord_with_zero" field.</summary>
17657 public const int CordWithZeroFieldNumber = 26;
Sydney Acksmane119a432019-10-30 13:02:46 -050017658 private readonly static string CordWithZeroDefaultValue = global::System.Text.Encoding.UTF8.GetString(global::System.Convert.FromBase64String("MTIAMw=="), 0, 4);
Sydney Acksman8a57ec82019-03-21 17:36:36 -050017659
17660 private string cordWithZero_;
17661 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020017662 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050017663 public string CordWithZero {
17664 get { return cordWithZero_ ?? CordWithZeroDefaultValue; }
17665 set {
17666 cordWithZero_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
17667 }
17668 }
17669 /// <summary>Gets whether the "cord_with_zero" field is set</summary>
17670 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020017671 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050017672 public bool HasCordWithZero {
17673 get { return cordWithZero_ != null; }
17674 }
17675 /// <summary>Clears the value of the "cord_with_zero" field</summary>
17676 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020017677 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050017678 public void ClearCordWithZero() {
17679 cordWithZero_ = null;
17680 }
17681
17682 /// <summary>Field number for the "replacement_string" field.</summary>
17683 public const int ReplacementStringFieldNumber = 27;
Sydney Acksmane119a432019-10-30 13:02:46 -050017684 private readonly static string ReplacementStringDefaultValue = global::System.Text.Encoding.UTF8.GetString(global::System.Convert.FromBase64String("JHt1bmtub3dufQ=="), 0, 10);
Sydney Acksman8a57ec82019-03-21 17:36:36 -050017685
17686 private string replacementString_;
17687 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020017688 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050017689 public string ReplacementString {
17690 get { return replacementString_ ?? ReplacementStringDefaultValue; }
17691 set {
17692 replacementString_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
17693 }
17694 }
17695 /// <summary>Gets whether the "replacement_string" field is set</summary>
17696 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020017697 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050017698 public bool HasReplacementString {
17699 get { return replacementString_ != null; }
17700 }
17701 /// <summary>Clears the value of the "replacement_string" field</summary>
17702 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020017703 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050017704 public void ClearReplacementString() {
17705 replacementString_ = null;
17706 }
17707
17708 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020017709 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050017710 public override bool Equals(object other) {
17711 return Equals(other as TestExtremeDefaultValues);
17712 }
17713
17714 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020017715 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050017716 public bool Equals(TestExtremeDefaultValues other) {
17717 if (ReferenceEquals(other, null)) {
17718 return false;
17719 }
17720 if (ReferenceEquals(other, this)) {
17721 return true;
17722 }
17723 if (EscapedBytes != other.EscapedBytes) return false;
17724 if (LargeUint32 != other.LargeUint32) return false;
17725 if (LargeUint64 != other.LargeUint64) return false;
17726 if (SmallInt32 != other.SmallInt32) return false;
17727 if (SmallInt64 != other.SmallInt64) return false;
17728 if (ReallySmallInt32 != other.ReallySmallInt32) return false;
17729 if (ReallySmallInt64 != other.ReallySmallInt64) return false;
17730 if (Utf8String != other.Utf8String) return false;
17731 if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(ZeroFloat, other.ZeroFloat)) return false;
17732 if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(OneFloat, other.OneFloat)) return false;
17733 if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(SmallFloat, other.SmallFloat)) return false;
17734 if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(NegativeOneFloat, other.NegativeOneFloat)) return false;
17735 if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(NegativeFloat, other.NegativeFloat)) return false;
17736 if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(LargeFloat, other.LargeFloat)) return false;
17737 if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(SmallNegativeFloat, other.SmallNegativeFloat)) return false;
17738 if (!pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.Equals(InfDouble, other.InfDouble)) return false;
17739 if (!pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.Equals(NegInfDouble, other.NegInfDouble)) return false;
17740 if (!pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.Equals(NanDouble, other.NanDouble)) return false;
17741 if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(InfFloat, other.InfFloat)) return false;
17742 if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(NegInfFloat, other.NegInfFloat)) return false;
17743 if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(NanFloat, other.NanFloat)) return false;
17744 if (CppTrigraph != other.CppTrigraph) return false;
17745 if (StringWithZero != other.StringWithZero) return false;
17746 if (BytesWithZero != other.BytesWithZero) return false;
17747 if (StringPieceWithZero != other.StringPieceWithZero) return false;
17748 if (CordWithZero != other.CordWithZero) return false;
17749 if (ReplacementString != other.ReplacementString) return false;
17750 return Equals(_unknownFields, other._unknownFields);
17751 }
17752
17753 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020017754 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050017755 public override int GetHashCode() {
17756 int hash = 1;
17757 if (HasEscapedBytes) hash ^= EscapedBytes.GetHashCode();
17758 if (HasLargeUint32) hash ^= LargeUint32.GetHashCode();
17759 if (HasLargeUint64) hash ^= LargeUint64.GetHashCode();
17760 if (HasSmallInt32) hash ^= SmallInt32.GetHashCode();
17761 if (HasSmallInt64) hash ^= SmallInt64.GetHashCode();
17762 if (HasReallySmallInt32) hash ^= ReallySmallInt32.GetHashCode();
17763 if (HasReallySmallInt64) hash ^= ReallySmallInt64.GetHashCode();
17764 if (HasUtf8String) hash ^= Utf8String.GetHashCode();
17765 if (HasZeroFloat) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(ZeroFloat);
17766 if (HasOneFloat) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(OneFloat);
17767 if (HasSmallFloat) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(SmallFloat);
17768 if (HasNegativeOneFloat) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(NegativeOneFloat);
17769 if (HasNegativeFloat) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(NegativeFloat);
17770 if (HasLargeFloat) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(LargeFloat);
17771 if (HasSmallNegativeFloat) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(SmallNegativeFloat);
17772 if (HasInfDouble) hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(InfDouble);
17773 if (HasNegInfDouble) hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(NegInfDouble);
17774 if (HasNanDouble) hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(NanDouble);
17775 if (HasInfFloat) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(InfFloat);
17776 if (HasNegInfFloat) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(NegInfFloat);
17777 if (HasNanFloat) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(NanFloat);
17778 if (HasCppTrigraph) hash ^= CppTrigraph.GetHashCode();
17779 if (HasStringWithZero) hash ^= StringWithZero.GetHashCode();
17780 if (HasBytesWithZero) hash ^= BytesWithZero.GetHashCode();
17781 if (HasStringPieceWithZero) hash ^= StringPieceWithZero.GetHashCode();
17782 if (HasCordWithZero) hash ^= CordWithZero.GetHashCode();
17783 if (HasReplacementString) hash ^= ReplacementString.GetHashCode();
17784 if (_unknownFields != null) {
17785 hash ^= _unknownFields.GetHashCode();
17786 }
17787 return hash;
17788 }
17789
17790 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020017791 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050017792 public override string ToString() {
17793 return pb::JsonFormatter.ToDiagnosticString(this);
17794 }
17795
17796 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020017797 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050017798 public void WriteTo(pb::CodedOutputStream output) {
Jan Tattermusch125e4ad2020-05-29 04:32:43 -040017799 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
17800 output.WriteRawMessage(this);
17801 #else
Sydney Acksman8a57ec82019-03-21 17:36:36 -050017802 if (HasEscapedBytes) {
17803 output.WriteRawTag(10);
17804 output.WriteBytes(EscapedBytes);
17805 }
17806 if (HasLargeUint32) {
17807 output.WriteRawTag(16);
17808 output.WriteUInt32(LargeUint32);
17809 }
17810 if (HasLargeUint64) {
17811 output.WriteRawTag(24);
17812 output.WriteUInt64(LargeUint64);
17813 }
17814 if (HasSmallInt32) {
17815 output.WriteRawTag(32);
17816 output.WriteInt32(SmallInt32);
17817 }
17818 if (HasSmallInt64) {
17819 output.WriteRawTag(40);
17820 output.WriteInt64(SmallInt64);
17821 }
17822 if (HasUtf8String) {
17823 output.WriteRawTag(50);
17824 output.WriteString(Utf8String);
17825 }
17826 if (HasZeroFloat) {
17827 output.WriteRawTag(61);
17828 output.WriteFloat(ZeroFloat);
17829 }
17830 if (HasOneFloat) {
17831 output.WriteRawTag(69);
17832 output.WriteFloat(OneFloat);
17833 }
17834 if (HasSmallFloat) {
17835 output.WriteRawTag(77);
17836 output.WriteFloat(SmallFloat);
17837 }
17838 if (HasNegativeOneFloat) {
17839 output.WriteRawTag(85);
17840 output.WriteFloat(NegativeOneFloat);
17841 }
17842 if (HasNegativeFloat) {
17843 output.WriteRawTag(93);
17844 output.WriteFloat(NegativeFloat);
17845 }
17846 if (HasLargeFloat) {
17847 output.WriteRawTag(101);
17848 output.WriteFloat(LargeFloat);
17849 }
17850 if (HasSmallNegativeFloat) {
17851 output.WriteRawTag(109);
17852 output.WriteFloat(SmallNegativeFloat);
17853 }
17854 if (HasInfDouble) {
17855 output.WriteRawTag(113);
17856 output.WriteDouble(InfDouble);
17857 }
17858 if (HasNegInfDouble) {
17859 output.WriteRawTag(121);
17860 output.WriteDouble(NegInfDouble);
17861 }
17862 if (HasNanDouble) {
17863 output.WriteRawTag(129, 1);
17864 output.WriteDouble(NanDouble);
17865 }
17866 if (HasInfFloat) {
17867 output.WriteRawTag(141, 1);
17868 output.WriteFloat(InfFloat);
17869 }
17870 if (HasNegInfFloat) {
17871 output.WriteRawTag(149, 1);
17872 output.WriteFloat(NegInfFloat);
17873 }
17874 if (HasNanFloat) {
17875 output.WriteRawTag(157, 1);
17876 output.WriteFloat(NanFloat);
17877 }
17878 if (HasCppTrigraph) {
17879 output.WriteRawTag(162, 1);
17880 output.WriteString(CppTrigraph);
17881 }
17882 if (HasReallySmallInt32) {
17883 output.WriteRawTag(168, 1);
17884 output.WriteInt32(ReallySmallInt32);
17885 }
17886 if (HasReallySmallInt64) {
17887 output.WriteRawTag(176, 1);
17888 output.WriteInt64(ReallySmallInt64);
17889 }
17890 if (HasStringWithZero) {
17891 output.WriteRawTag(186, 1);
17892 output.WriteString(StringWithZero);
17893 }
17894 if (HasBytesWithZero) {
17895 output.WriteRawTag(194, 1);
17896 output.WriteBytes(BytesWithZero);
17897 }
17898 if (HasStringPieceWithZero) {
17899 output.WriteRawTag(202, 1);
17900 output.WriteString(StringPieceWithZero);
17901 }
17902 if (HasCordWithZero) {
17903 output.WriteRawTag(210, 1);
17904 output.WriteString(CordWithZero);
17905 }
17906 if (HasReplacementString) {
17907 output.WriteRawTag(218, 1);
17908 output.WriteString(ReplacementString);
17909 }
17910 if (_unknownFields != null) {
17911 _unknownFields.WriteTo(output);
17912 }
Jan Tattermusch125e4ad2020-05-29 04:32:43 -040017913 #endif
Sydney Acksman8a57ec82019-03-21 17:36:36 -050017914 }
17915
Jan Tattermusch125e4ad2020-05-29 04:32:43 -040017916 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
17917 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020017918 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Jan Tattermusch125e4ad2020-05-29 04:32:43 -040017919 void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
17920 if (HasEscapedBytes) {
17921 output.WriteRawTag(10);
17922 output.WriteBytes(EscapedBytes);
17923 }
17924 if (HasLargeUint32) {
17925 output.WriteRawTag(16);
17926 output.WriteUInt32(LargeUint32);
17927 }
17928 if (HasLargeUint64) {
17929 output.WriteRawTag(24);
17930 output.WriteUInt64(LargeUint64);
17931 }
17932 if (HasSmallInt32) {
17933 output.WriteRawTag(32);
17934 output.WriteInt32(SmallInt32);
17935 }
17936 if (HasSmallInt64) {
17937 output.WriteRawTag(40);
17938 output.WriteInt64(SmallInt64);
17939 }
17940 if (HasUtf8String) {
17941 output.WriteRawTag(50);
17942 output.WriteString(Utf8String);
17943 }
17944 if (HasZeroFloat) {
17945 output.WriteRawTag(61);
17946 output.WriteFloat(ZeroFloat);
17947 }
17948 if (HasOneFloat) {
17949 output.WriteRawTag(69);
17950 output.WriteFloat(OneFloat);
17951 }
17952 if (HasSmallFloat) {
17953 output.WriteRawTag(77);
17954 output.WriteFloat(SmallFloat);
17955 }
17956 if (HasNegativeOneFloat) {
17957 output.WriteRawTag(85);
17958 output.WriteFloat(NegativeOneFloat);
17959 }
17960 if (HasNegativeFloat) {
17961 output.WriteRawTag(93);
17962 output.WriteFloat(NegativeFloat);
17963 }
17964 if (HasLargeFloat) {
17965 output.WriteRawTag(101);
17966 output.WriteFloat(LargeFloat);
17967 }
17968 if (HasSmallNegativeFloat) {
17969 output.WriteRawTag(109);
17970 output.WriteFloat(SmallNegativeFloat);
17971 }
17972 if (HasInfDouble) {
17973 output.WriteRawTag(113);
17974 output.WriteDouble(InfDouble);
17975 }
17976 if (HasNegInfDouble) {
17977 output.WriteRawTag(121);
17978 output.WriteDouble(NegInfDouble);
17979 }
17980 if (HasNanDouble) {
17981 output.WriteRawTag(129, 1);
17982 output.WriteDouble(NanDouble);
17983 }
17984 if (HasInfFloat) {
17985 output.WriteRawTag(141, 1);
17986 output.WriteFloat(InfFloat);
17987 }
17988 if (HasNegInfFloat) {
17989 output.WriteRawTag(149, 1);
17990 output.WriteFloat(NegInfFloat);
17991 }
17992 if (HasNanFloat) {
17993 output.WriteRawTag(157, 1);
17994 output.WriteFloat(NanFloat);
17995 }
17996 if (HasCppTrigraph) {
17997 output.WriteRawTag(162, 1);
17998 output.WriteString(CppTrigraph);
17999 }
18000 if (HasReallySmallInt32) {
18001 output.WriteRawTag(168, 1);
18002 output.WriteInt32(ReallySmallInt32);
18003 }
18004 if (HasReallySmallInt64) {
18005 output.WriteRawTag(176, 1);
18006 output.WriteInt64(ReallySmallInt64);
18007 }
18008 if (HasStringWithZero) {
18009 output.WriteRawTag(186, 1);
18010 output.WriteString(StringWithZero);
18011 }
18012 if (HasBytesWithZero) {
18013 output.WriteRawTag(194, 1);
18014 output.WriteBytes(BytesWithZero);
18015 }
18016 if (HasStringPieceWithZero) {
18017 output.WriteRawTag(202, 1);
18018 output.WriteString(StringPieceWithZero);
18019 }
18020 if (HasCordWithZero) {
18021 output.WriteRawTag(210, 1);
18022 output.WriteString(CordWithZero);
18023 }
18024 if (HasReplacementString) {
18025 output.WriteRawTag(218, 1);
18026 output.WriteString(ReplacementString);
18027 }
18028 if (_unknownFields != null) {
18029 _unknownFields.WriteTo(ref output);
18030 }
18031 }
18032 #endif
18033
Sydney Acksman8a57ec82019-03-21 17:36:36 -050018034 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020018035 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050018036 public int CalculateSize() {
18037 int size = 0;
18038 if (HasEscapedBytes) {
18039 size += 1 + pb::CodedOutputStream.ComputeBytesSize(EscapedBytes);
18040 }
18041 if (HasLargeUint32) {
18042 size += 1 + pb::CodedOutputStream.ComputeUInt32Size(LargeUint32);
18043 }
18044 if (HasLargeUint64) {
18045 size += 1 + pb::CodedOutputStream.ComputeUInt64Size(LargeUint64);
18046 }
18047 if (HasSmallInt32) {
18048 size += 1 + pb::CodedOutputStream.ComputeInt32Size(SmallInt32);
18049 }
18050 if (HasSmallInt64) {
18051 size += 1 + pb::CodedOutputStream.ComputeInt64Size(SmallInt64);
18052 }
18053 if (HasReallySmallInt32) {
18054 size += 2 + pb::CodedOutputStream.ComputeInt32Size(ReallySmallInt32);
18055 }
18056 if (HasReallySmallInt64) {
18057 size += 2 + pb::CodedOutputStream.ComputeInt64Size(ReallySmallInt64);
18058 }
18059 if (HasUtf8String) {
18060 size += 1 + pb::CodedOutputStream.ComputeStringSize(Utf8String);
18061 }
18062 if (HasZeroFloat) {
18063 size += 1 + 4;
18064 }
18065 if (HasOneFloat) {
18066 size += 1 + 4;
18067 }
18068 if (HasSmallFloat) {
18069 size += 1 + 4;
18070 }
18071 if (HasNegativeOneFloat) {
18072 size += 1 + 4;
18073 }
18074 if (HasNegativeFloat) {
18075 size += 1 + 4;
18076 }
18077 if (HasLargeFloat) {
18078 size += 1 + 4;
18079 }
18080 if (HasSmallNegativeFloat) {
18081 size += 1 + 4;
18082 }
18083 if (HasInfDouble) {
18084 size += 1 + 8;
18085 }
18086 if (HasNegInfDouble) {
18087 size += 1 + 8;
18088 }
18089 if (HasNanDouble) {
18090 size += 2 + 8;
18091 }
18092 if (HasInfFloat) {
18093 size += 2 + 4;
18094 }
18095 if (HasNegInfFloat) {
18096 size += 2 + 4;
18097 }
18098 if (HasNanFloat) {
18099 size += 2 + 4;
18100 }
18101 if (HasCppTrigraph) {
18102 size += 2 + pb::CodedOutputStream.ComputeStringSize(CppTrigraph);
18103 }
18104 if (HasStringWithZero) {
18105 size += 2 + pb::CodedOutputStream.ComputeStringSize(StringWithZero);
18106 }
18107 if (HasBytesWithZero) {
18108 size += 2 + pb::CodedOutputStream.ComputeBytesSize(BytesWithZero);
18109 }
18110 if (HasStringPieceWithZero) {
18111 size += 2 + pb::CodedOutputStream.ComputeStringSize(StringPieceWithZero);
18112 }
18113 if (HasCordWithZero) {
18114 size += 2 + pb::CodedOutputStream.ComputeStringSize(CordWithZero);
18115 }
18116 if (HasReplacementString) {
18117 size += 2 + pb::CodedOutputStream.ComputeStringSize(ReplacementString);
18118 }
18119 if (_unknownFields != null) {
18120 size += _unknownFields.CalculateSize();
18121 }
18122 return size;
18123 }
18124
18125 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020018126 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050018127 public void MergeFrom(TestExtremeDefaultValues other) {
18128 if (other == null) {
18129 return;
18130 }
18131 if (other.HasEscapedBytes) {
18132 EscapedBytes = other.EscapedBytes;
18133 }
18134 if (other.HasLargeUint32) {
18135 LargeUint32 = other.LargeUint32;
18136 }
18137 if (other.HasLargeUint64) {
18138 LargeUint64 = other.LargeUint64;
18139 }
18140 if (other.HasSmallInt32) {
18141 SmallInt32 = other.SmallInt32;
18142 }
18143 if (other.HasSmallInt64) {
18144 SmallInt64 = other.SmallInt64;
18145 }
18146 if (other.HasReallySmallInt32) {
18147 ReallySmallInt32 = other.ReallySmallInt32;
18148 }
18149 if (other.HasReallySmallInt64) {
18150 ReallySmallInt64 = other.ReallySmallInt64;
18151 }
18152 if (other.HasUtf8String) {
18153 Utf8String = other.Utf8String;
18154 }
18155 if (other.HasZeroFloat) {
18156 ZeroFloat = other.ZeroFloat;
18157 }
18158 if (other.HasOneFloat) {
18159 OneFloat = other.OneFloat;
18160 }
18161 if (other.HasSmallFloat) {
18162 SmallFloat = other.SmallFloat;
18163 }
18164 if (other.HasNegativeOneFloat) {
18165 NegativeOneFloat = other.NegativeOneFloat;
18166 }
18167 if (other.HasNegativeFloat) {
18168 NegativeFloat = other.NegativeFloat;
18169 }
18170 if (other.HasLargeFloat) {
18171 LargeFloat = other.LargeFloat;
18172 }
18173 if (other.HasSmallNegativeFloat) {
18174 SmallNegativeFloat = other.SmallNegativeFloat;
18175 }
18176 if (other.HasInfDouble) {
18177 InfDouble = other.InfDouble;
18178 }
18179 if (other.HasNegInfDouble) {
18180 NegInfDouble = other.NegInfDouble;
18181 }
18182 if (other.HasNanDouble) {
18183 NanDouble = other.NanDouble;
18184 }
18185 if (other.HasInfFloat) {
18186 InfFloat = other.InfFloat;
18187 }
18188 if (other.HasNegInfFloat) {
18189 NegInfFloat = other.NegInfFloat;
18190 }
18191 if (other.HasNanFloat) {
18192 NanFloat = other.NanFloat;
18193 }
18194 if (other.HasCppTrigraph) {
18195 CppTrigraph = other.CppTrigraph;
18196 }
18197 if (other.HasStringWithZero) {
18198 StringWithZero = other.StringWithZero;
18199 }
18200 if (other.HasBytesWithZero) {
18201 BytesWithZero = other.BytesWithZero;
18202 }
18203 if (other.HasStringPieceWithZero) {
18204 StringPieceWithZero = other.StringPieceWithZero;
18205 }
18206 if (other.HasCordWithZero) {
18207 CordWithZero = other.CordWithZero;
18208 }
18209 if (other.HasReplacementString) {
18210 ReplacementString = other.ReplacementString;
18211 }
18212 _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
18213 }
18214
18215 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020018216 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050018217 public void MergeFrom(pb::CodedInputStream input) {
Jan Tattermusch7cb55972020-06-02 09:26:25 +020018218 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
Jan Tattermusch3196ef92020-04-02 15:36:16 +020018219 input.ReadRawMessage(this);
Jan Tattermusch7cb55972020-06-02 09:26:25 +020018220 #else
18221 uint tag;
18222 while ((tag = input.ReadTag()) != 0) {
18223 switch(tag) {
18224 default:
18225 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
18226 break;
18227 case 10: {
18228 EscapedBytes = input.ReadBytes();
18229 break;
18230 }
18231 case 16: {
18232 LargeUint32 = input.ReadUInt32();
18233 break;
18234 }
18235 case 24: {
18236 LargeUint64 = input.ReadUInt64();
18237 break;
18238 }
18239 case 32: {
18240 SmallInt32 = input.ReadInt32();
18241 break;
18242 }
18243 case 40: {
18244 SmallInt64 = input.ReadInt64();
18245 break;
18246 }
18247 case 50: {
18248 Utf8String = input.ReadString();
18249 break;
18250 }
18251 case 61: {
18252 ZeroFloat = input.ReadFloat();
18253 break;
18254 }
18255 case 69: {
18256 OneFloat = input.ReadFloat();
18257 break;
18258 }
18259 case 77: {
18260 SmallFloat = input.ReadFloat();
18261 break;
18262 }
18263 case 85: {
18264 NegativeOneFloat = input.ReadFloat();
18265 break;
18266 }
18267 case 93: {
18268 NegativeFloat = input.ReadFloat();
18269 break;
18270 }
18271 case 101: {
18272 LargeFloat = input.ReadFloat();
18273 break;
18274 }
18275 case 109: {
18276 SmallNegativeFloat = input.ReadFloat();
18277 break;
18278 }
18279 case 113: {
18280 InfDouble = input.ReadDouble();
18281 break;
18282 }
18283 case 121: {
18284 NegInfDouble = input.ReadDouble();
18285 break;
18286 }
18287 case 129: {
18288 NanDouble = input.ReadDouble();
18289 break;
18290 }
18291 case 141: {
18292 InfFloat = input.ReadFloat();
18293 break;
18294 }
18295 case 149: {
18296 NegInfFloat = input.ReadFloat();
18297 break;
18298 }
18299 case 157: {
18300 NanFloat = input.ReadFloat();
18301 break;
18302 }
18303 case 162: {
18304 CppTrigraph = input.ReadString();
18305 break;
18306 }
18307 case 168: {
18308 ReallySmallInt32 = input.ReadInt32();
18309 break;
18310 }
18311 case 176: {
18312 ReallySmallInt64 = input.ReadInt64();
18313 break;
18314 }
18315 case 186: {
18316 StringWithZero = input.ReadString();
18317 break;
18318 }
18319 case 194: {
18320 BytesWithZero = input.ReadBytes();
18321 break;
18322 }
18323 case 202: {
18324 StringPieceWithZero = input.ReadString();
18325 break;
18326 }
18327 case 210: {
18328 CordWithZero = input.ReadString();
18329 break;
18330 }
18331 case 218: {
18332 ReplacementString = input.ReadString();
18333 break;
18334 }
18335 }
18336 }
18337 #endif
Jan Tattermusch3196ef92020-04-02 15:36:16 +020018338 }
18339
Jan Tattermusch7cb55972020-06-02 09:26:25 +020018340 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
Jan Tattermusch3196ef92020-04-02 15:36:16 +020018341 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020018342 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Jan Tattermusch0df7ddc2020-04-14 12:41:03 +020018343 void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
Sydney Acksman8a57ec82019-03-21 17:36:36 -050018344 uint tag;
18345 while ((tag = input.ReadTag()) != 0) {
18346 switch(tag) {
18347 default:
Jan Tattermusch3196ef92020-04-02 15:36:16 +020018348 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
Sydney Acksman8a57ec82019-03-21 17:36:36 -050018349 break;
18350 case 10: {
18351 EscapedBytes = input.ReadBytes();
18352 break;
18353 }
18354 case 16: {
18355 LargeUint32 = input.ReadUInt32();
18356 break;
18357 }
18358 case 24: {
18359 LargeUint64 = input.ReadUInt64();
18360 break;
18361 }
18362 case 32: {
18363 SmallInt32 = input.ReadInt32();
18364 break;
18365 }
18366 case 40: {
18367 SmallInt64 = input.ReadInt64();
18368 break;
18369 }
18370 case 50: {
18371 Utf8String = input.ReadString();
18372 break;
18373 }
18374 case 61: {
18375 ZeroFloat = input.ReadFloat();
18376 break;
18377 }
18378 case 69: {
18379 OneFloat = input.ReadFloat();
18380 break;
18381 }
18382 case 77: {
18383 SmallFloat = input.ReadFloat();
18384 break;
18385 }
18386 case 85: {
18387 NegativeOneFloat = input.ReadFloat();
18388 break;
18389 }
18390 case 93: {
18391 NegativeFloat = input.ReadFloat();
18392 break;
18393 }
18394 case 101: {
18395 LargeFloat = input.ReadFloat();
18396 break;
18397 }
18398 case 109: {
18399 SmallNegativeFloat = input.ReadFloat();
18400 break;
18401 }
18402 case 113: {
18403 InfDouble = input.ReadDouble();
18404 break;
18405 }
18406 case 121: {
18407 NegInfDouble = input.ReadDouble();
18408 break;
18409 }
18410 case 129: {
18411 NanDouble = input.ReadDouble();
18412 break;
18413 }
18414 case 141: {
18415 InfFloat = input.ReadFloat();
18416 break;
18417 }
18418 case 149: {
18419 NegInfFloat = input.ReadFloat();
18420 break;
18421 }
18422 case 157: {
18423 NanFloat = input.ReadFloat();
18424 break;
18425 }
18426 case 162: {
18427 CppTrigraph = input.ReadString();
18428 break;
18429 }
18430 case 168: {
18431 ReallySmallInt32 = input.ReadInt32();
18432 break;
18433 }
18434 case 176: {
18435 ReallySmallInt64 = input.ReadInt64();
18436 break;
18437 }
18438 case 186: {
18439 StringWithZero = input.ReadString();
18440 break;
18441 }
18442 case 194: {
18443 BytesWithZero = input.ReadBytes();
18444 break;
18445 }
18446 case 202: {
18447 StringPieceWithZero = input.ReadString();
18448 break;
18449 }
18450 case 210: {
18451 CordWithZero = input.ReadString();
18452 break;
18453 }
18454 case 218: {
18455 ReplacementString = input.ReadString();
18456 break;
18457 }
18458 }
18459 }
18460 }
Jan Tattermusch7cb55972020-06-02 09:26:25 +020018461 #endif
Sydney Acksman8a57ec82019-03-21 17:36:36 -050018462
18463 }
18464
Jan Tattermusch7cb55972020-06-02 09:26:25 +020018465 public sealed partial class SparseEnumMessage : pb::IMessage<SparseEnumMessage>
18466 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
18467 , pb::IBufferMessage
18468 #endif
18469 {
Sydney Acksman8a57ec82019-03-21 17:36:36 -050018470 private static readonly pb::MessageParser<SparseEnumMessage> _parser = new pb::MessageParser<SparseEnumMessage>(() => new SparseEnumMessage());
18471 private pb::UnknownFieldSet _unknownFields;
18472 private int _hasBits0;
18473 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020018474 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050018475 public static pb::MessageParser<SparseEnumMessage> Parser { get { return _parser; } }
18476
18477 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020018478 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050018479 public static pbr::MessageDescriptor Descriptor {
18480 get { return global::Google.Protobuf.TestProtos.Proto2.UnittestReflection.Descriptor.MessageTypes[33]; }
18481 }
18482
18483 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020018484 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050018485 pbr::MessageDescriptor pb::IMessage.Descriptor {
18486 get { return Descriptor; }
18487 }
18488
18489 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020018490 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050018491 public SparseEnumMessage() {
18492 OnConstruction();
18493 }
18494
18495 partial void OnConstruction();
18496
18497 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020018498 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050018499 public SparseEnumMessage(SparseEnumMessage other) : this() {
18500 _hasBits0 = other._hasBits0;
18501 sparseEnum_ = other.sparseEnum_;
18502 _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
18503 }
18504
18505 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020018506 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050018507 public SparseEnumMessage Clone() {
18508 return new SparseEnumMessage(this);
18509 }
18510
18511 /// <summary>Field number for the "sparse_enum" field.</summary>
18512 public const int SparseEnumFieldNumber = 1;
18513 private readonly static global::Google.Protobuf.TestProtos.Proto2.TestSparseEnum SparseEnumDefaultValue = global::Google.Protobuf.TestProtos.Proto2.TestSparseEnum.SparseA;
18514
18515 private global::Google.Protobuf.TestProtos.Proto2.TestSparseEnum sparseEnum_;
18516 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020018517 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050018518 public global::Google.Protobuf.TestProtos.Proto2.TestSparseEnum SparseEnum {
18519 get { if ((_hasBits0 & 1) != 0) { return sparseEnum_; } else { return SparseEnumDefaultValue; } }
18520 set {
18521 _hasBits0 |= 1;
18522 sparseEnum_ = value;
18523 }
18524 }
18525 /// <summary>Gets whether the "sparse_enum" field is set</summary>
18526 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020018527 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050018528 public bool HasSparseEnum {
18529 get { return (_hasBits0 & 1) != 0; }
18530 }
18531 /// <summary>Clears the value of the "sparse_enum" field</summary>
18532 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020018533 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050018534 public void ClearSparseEnum() {
18535 _hasBits0 &= ~1;
18536 }
18537
18538 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020018539 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050018540 public override bool Equals(object other) {
18541 return Equals(other as SparseEnumMessage);
18542 }
18543
18544 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020018545 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050018546 public bool Equals(SparseEnumMessage other) {
18547 if (ReferenceEquals(other, null)) {
18548 return false;
18549 }
18550 if (ReferenceEquals(other, this)) {
18551 return true;
18552 }
18553 if (SparseEnum != other.SparseEnum) return false;
18554 return Equals(_unknownFields, other._unknownFields);
18555 }
18556
18557 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020018558 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050018559 public override int GetHashCode() {
18560 int hash = 1;
18561 if (HasSparseEnum) hash ^= SparseEnum.GetHashCode();
18562 if (_unknownFields != null) {
18563 hash ^= _unknownFields.GetHashCode();
18564 }
18565 return hash;
18566 }
18567
18568 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020018569 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050018570 public override string ToString() {
18571 return pb::JsonFormatter.ToDiagnosticString(this);
18572 }
18573
18574 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020018575 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050018576 public void WriteTo(pb::CodedOutputStream output) {
Jan Tattermusch125e4ad2020-05-29 04:32:43 -040018577 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
18578 output.WriteRawMessage(this);
18579 #else
Sydney Acksman8a57ec82019-03-21 17:36:36 -050018580 if (HasSparseEnum) {
18581 output.WriteRawTag(8);
18582 output.WriteEnum((int) SparseEnum);
18583 }
18584 if (_unknownFields != null) {
18585 _unknownFields.WriteTo(output);
18586 }
Jan Tattermusch125e4ad2020-05-29 04:32:43 -040018587 #endif
Sydney Acksman8a57ec82019-03-21 17:36:36 -050018588 }
18589
Jan Tattermusch125e4ad2020-05-29 04:32:43 -040018590 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
18591 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020018592 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Jan Tattermusch125e4ad2020-05-29 04:32:43 -040018593 void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
18594 if (HasSparseEnum) {
18595 output.WriteRawTag(8);
18596 output.WriteEnum((int) SparseEnum);
18597 }
18598 if (_unknownFields != null) {
18599 _unknownFields.WriteTo(ref output);
18600 }
18601 }
18602 #endif
18603
Sydney Acksman8a57ec82019-03-21 17:36:36 -050018604 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020018605 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050018606 public int CalculateSize() {
18607 int size = 0;
18608 if (HasSparseEnum) {
18609 size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) SparseEnum);
18610 }
18611 if (_unknownFields != null) {
18612 size += _unknownFields.CalculateSize();
18613 }
18614 return size;
18615 }
18616
18617 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020018618 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050018619 public void MergeFrom(SparseEnumMessage other) {
18620 if (other == null) {
18621 return;
18622 }
18623 if (other.HasSparseEnum) {
18624 SparseEnum = other.SparseEnum;
18625 }
18626 _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
18627 }
18628
18629 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020018630 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050018631 public void MergeFrom(pb::CodedInputStream input) {
Jan Tattermusch7cb55972020-06-02 09:26:25 +020018632 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
Jan Tattermusch3196ef92020-04-02 15:36:16 +020018633 input.ReadRawMessage(this);
Jan Tattermusch7cb55972020-06-02 09:26:25 +020018634 #else
18635 uint tag;
18636 while ((tag = input.ReadTag()) != 0) {
18637 switch(tag) {
18638 default:
18639 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
18640 break;
18641 case 8: {
18642 SparseEnum = (global::Google.Protobuf.TestProtos.Proto2.TestSparseEnum) input.ReadEnum();
18643 break;
18644 }
18645 }
18646 }
18647 #endif
Jan Tattermusch3196ef92020-04-02 15:36:16 +020018648 }
18649
Jan Tattermusch7cb55972020-06-02 09:26:25 +020018650 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
Jan Tattermusch3196ef92020-04-02 15:36:16 +020018651 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020018652 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Jan Tattermusch0df7ddc2020-04-14 12:41:03 +020018653 void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
Sydney Acksman8a57ec82019-03-21 17:36:36 -050018654 uint tag;
18655 while ((tag = input.ReadTag()) != 0) {
18656 switch(tag) {
18657 default:
Jan Tattermusch3196ef92020-04-02 15:36:16 +020018658 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
Sydney Acksman8a57ec82019-03-21 17:36:36 -050018659 break;
18660 case 8: {
18661 SparseEnum = (global::Google.Protobuf.TestProtos.Proto2.TestSparseEnum) input.ReadEnum();
18662 break;
18663 }
18664 }
18665 }
18666 }
Jan Tattermusch7cb55972020-06-02 09:26:25 +020018667 #endif
Sydney Acksman8a57ec82019-03-21 17:36:36 -050018668
18669 }
18670
18671 /// <summary>
18672 /// Test String and Bytes: string is for valid UTF-8 strings
18673 /// </summary>
Jan Tattermusch7cb55972020-06-02 09:26:25 +020018674 public sealed partial class OneString : pb::IMessage<OneString>
18675 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
18676 , pb::IBufferMessage
18677 #endif
18678 {
Sydney Acksman8a57ec82019-03-21 17:36:36 -050018679 private static readonly pb::MessageParser<OneString> _parser = new pb::MessageParser<OneString>(() => new OneString());
18680 private pb::UnknownFieldSet _unknownFields;
18681 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020018682 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050018683 public static pb::MessageParser<OneString> Parser { get { return _parser; } }
18684
18685 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020018686 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050018687 public static pbr::MessageDescriptor Descriptor {
18688 get { return global::Google.Protobuf.TestProtos.Proto2.UnittestReflection.Descriptor.MessageTypes[34]; }
18689 }
18690
18691 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020018692 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050018693 pbr::MessageDescriptor pb::IMessage.Descriptor {
18694 get { return Descriptor; }
18695 }
18696
18697 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020018698 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050018699 public OneString() {
18700 OnConstruction();
18701 }
18702
18703 partial void OnConstruction();
18704
18705 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020018706 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050018707 public OneString(OneString other) : this() {
18708 data_ = other.data_;
18709 _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
18710 }
18711
18712 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020018713 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050018714 public OneString Clone() {
18715 return new OneString(this);
18716 }
18717
18718 /// <summary>Field number for the "data" field.</summary>
18719 public const int DataFieldNumber = 1;
18720 private readonly static string DataDefaultValue = "";
18721
18722 private string data_;
18723 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020018724 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050018725 public string Data {
18726 get { return data_ ?? DataDefaultValue; }
18727 set {
18728 data_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
18729 }
18730 }
18731 /// <summary>Gets whether the "data" field is set</summary>
18732 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020018733 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050018734 public bool HasData {
18735 get { return data_ != null; }
18736 }
18737 /// <summary>Clears the value of the "data" field</summary>
18738 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020018739 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050018740 public void ClearData() {
18741 data_ = null;
18742 }
18743
18744 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020018745 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050018746 public override bool Equals(object other) {
18747 return Equals(other as OneString);
18748 }
18749
18750 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020018751 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050018752 public bool Equals(OneString other) {
18753 if (ReferenceEquals(other, null)) {
18754 return false;
18755 }
18756 if (ReferenceEquals(other, this)) {
18757 return true;
18758 }
18759 if (Data != other.Data) return false;
18760 return Equals(_unknownFields, other._unknownFields);
18761 }
18762
18763 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020018764 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050018765 public override int GetHashCode() {
18766 int hash = 1;
18767 if (HasData) hash ^= Data.GetHashCode();
18768 if (_unknownFields != null) {
18769 hash ^= _unknownFields.GetHashCode();
18770 }
18771 return hash;
18772 }
18773
18774 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020018775 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050018776 public override string ToString() {
18777 return pb::JsonFormatter.ToDiagnosticString(this);
18778 }
18779
18780 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020018781 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050018782 public void WriteTo(pb::CodedOutputStream output) {
Jan Tattermusch125e4ad2020-05-29 04:32:43 -040018783 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
18784 output.WriteRawMessage(this);
18785 #else
Sydney Acksman8a57ec82019-03-21 17:36:36 -050018786 if (HasData) {
18787 output.WriteRawTag(10);
18788 output.WriteString(Data);
18789 }
18790 if (_unknownFields != null) {
18791 _unknownFields.WriteTo(output);
18792 }
Jan Tattermusch125e4ad2020-05-29 04:32:43 -040018793 #endif
Sydney Acksman8a57ec82019-03-21 17:36:36 -050018794 }
18795
Jan Tattermusch125e4ad2020-05-29 04:32:43 -040018796 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
18797 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020018798 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Jan Tattermusch125e4ad2020-05-29 04:32:43 -040018799 void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
18800 if (HasData) {
18801 output.WriteRawTag(10);
18802 output.WriteString(Data);
18803 }
18804 if (_unknownFields != null) {
18805 _unknownFields.WriteTo(ref output);
18806 }
18807 }
18808 #endif
18809
Sydney Acksman8a57ec82019-03-21 17:36:36 -050018810 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020018811 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050018812 public int CalculateSize() {
18813 int size = 0;
18814 if (HasData) {
18815 size += 1 + pb::CodedOutputStream.ComputeStringSize(Data);
18816 }
18817 if (_unknownFields != null) {
18818 size += _unknownFields.CalculateSize();
18819 }
18820 return size;
18821 }
18822
18823 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020018824 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050018825 public void MergeFrom(OneString other) {
18826 if (other == null) {
18827 return;
18828 }
18829 if (other.HasData) {
18830 Data = other.Data;
18831 }
18832 _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
18833 }
18834
18835 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020018836 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050018837 public void MergeFrom(pb::CodedInputStream input) {
Jan Tattermusch7cb55972020-06-02 09:26:25 +020018838 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
Jan Tattermusch3196ef92020-04-02 15:36:16 +020018839 input.ReadRawMessage(this);
Jan Tattermusch7cb55972020-06-02 09:26:25 +020018840 #else
18841 uint tag;
18842 while ((tag = input.ReadTag()) != 0) {
18843 switch(tag) {
18844 default:
18845 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
18846 break;
18847 case 10: {
18848 Data = input.ReadString();
18849 break;
18850 }
18851 }
18852 }
18853 #endif
Jan Tattermusch3196ef92020-04-02 15:36:16 +020018854 }
18855
Jan Tattermusch7cb55972020-06-02 09:26:25 +020018856 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
Jan Tattermusch3196ef92020-04-02 15:36:16 +020018857 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020018858 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Jan Tattermusch0df7ddc2020-04-14 12:41:03 +020018859 void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
Sydney Acksman8a57ec82019-03-21 17:36:36 -050018860 uint tag;
18861 while ((tag = input.ReadTag()) != 0) {
18862 switch(tag) {
18863 default:
Jan Tattermusch3196ef92020-04-02 15:36:16 +020018864 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
Sydney Acksman8a57ec82019-03-21 17:36:36 -050018865 break;
18866 case 10: {
18867 Data = input.ReadString();
18868 break;
18869 }
18870 }
18871 }
18872 }
Jan Tattermusch7cb55972020-06-02 09:26:25 +020018873 #endif
Sydney Acksman8a57ec82019-03-21 17:36:36 -050018874
18875 }
18876
Jan Tattermusch7cb55972020-06-02 09:26:25 +020018877 public sealed partial class MoreString : pb::IMessage<MoreString>
18878 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
18879 , pb::IBufferMessage
18880 #endif
18881 {
Sydney Acksman8a57ec82019-03-21 17:36:36 -050018882 private static readonly pb::MessageParser<MoreString> _parser = new pb::MessageParser<MoreString>(() => new MoreString());
18883 private pb::UnknownFieldSet _unknownFields;
18884 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020018885 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050018886 public static pb::MessageParser<MoreString> Parser { get { return _parser; } }
18887
18888 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020018889 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050018890 public static pbr::MessageDescriptor Descriptor {
18891 get { return global::Google.Protobuf.TestProtos.Proto2.UnittestReflection.Descriptor.MessageTypes[35]; }
18892 }
18893
18894 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020018895 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050018896 pbr::MessageDescriptor pb::IMessage.Descriptor {
18897 get { return Descriptor; }
18898 }
18899
18900 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020018901 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050018902 public MoreString() {
18903 OnConstruction();
18904 }
18905
18906 partial void OnConstruction();
18907
18908 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020018909 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050018910 public MoreString(MoreString other) : this() {
18911 data_ = other.data_.Clone();
18912 _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
18913 }
18914
18915 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020018916 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050018917 public MoreString Clone() {
18918 return new MoreString(this);
18919 }
18920
18921 /// <summary>Field number for the "data" field.</summary>
18922 public const int DataFieldNumber = 1;
18923 private static readonly pb::FieldCodec<string> _repeated_data_codec
18924 = pb::FieldCodec.ForString(10);
18925 private readonly pbc::RepeatedField<string> data_ = new pbc::RepeatedField<string>();
18926 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020018927 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050018928 public pbc::RepeatedField<string> Data {
18929 get { return data_; }
18930 }
18931
18932 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020018933 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050018934 public override bool Equals(object other) {
18935 return Equals(other as MoreString);
18936 }
18937
18938 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020018939 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050018940 public bool Equals(MoreString other) {
18941 if (ReferenceEquals(other, null)) {
18942 return false;
18943 }
18944 if (ReferenceEquals(other, this)) {
18945 return true;
18946 }
18947 if(!data_.Equals(other.data_)) return false;
18948 return Equals(_unknownFields, other._unknownFields);
18949 }
18950
18951 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020018952 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050018953 public override int GetHashCode() {
18954 int hash = 1;
18955 hash ^= data_.GetHashCode();
18956 if (_unknownFields != null) {
18957 hash ^= _unknownFields.GetHashCode();
18958 }
18959 return hash;
18960 }
18961
18962 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020018963 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050018964 public override string ToString() {
18965 return pb::JsonFormatter.ToDiagnosticString(this);
18966 }
18967
18968 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020018969 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050018970 public void WriteTo(pb::CodedOutputStream output) {
Jan Tattermusch125e4ad2020-05-29 04:32:43 -040018971 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
18972 output.WriteRawMessage(this);
18973 #else
Sydney Acksman8a57ec82019-03-21 17:36:36 -050018974 data_.WriteTo(output, _repeated_data_codec);
18975 if (_unknownFields != null) {
18976 _unknownFields.WriteTo(output);
18977 }
Jan Tattermusch125e4ad2020-05-29 04:32:43 -040018978 #endif
Sydney Acksman8a57ec82019-03-21 17:36:36 -050018979 }
18980
Jan Tattermusch125e4ad2020-05-29 04:32:43 -040018981 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
18982 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020018983 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Jan Tattermusch125e4ad2020-05-29 04:32:43 -040018984 void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
18985 data_.WriteTo(ref output, _repeated_data_codec);
18986 if (_unknownFields != null) {
18987 _unknownFields.WriteTo(ref output);
18988 }
18989 }
18990 #endif
18991
Sydney Acksman8a57ec82019-03-21 17:36:36 -050018992 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020018993 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050018994 public int CalculateSize() {
18995 int size = 0;
18996 size += data_.CalculateSize(_repeated_data_codec);
18997 if (_unknownFields != null) {
18998 size += _unknownFields.CalculateSize();
18999 }
19000 return size;
19001 }
19002
19003 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020019004 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050019005 public void MergeFrom(MoreString other) {
19006 if (other == null) {
19007 return;
19008 }
19009 data_.Add(other.data_);
19010 _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
19011 }
19012
19013 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020019014 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050019015 public void MergeFrom(pb::CodedInputStream input) {
Jan Tattermusch7cb55972020-06-02 09:26:25 +020019016 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
Jan Tattermusch3196ef92020-04-02 15:36:16 +020019017 input.ReadRawMessage(this);
Jan Tattermusch7cb55972020-06-02 09:26:25 +020019018 #else
19019 uint tag;
19020 while ((tag = input.ReadTag()) != 0) {
19021 switch(tag) {
19022 default:
19023 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
19024 break;
19025 case 10: {
19026 data_.AddEntriesFrom(input, _repeated_data_codec);
19027 break;
19028 }
19029 }
19030 }
19031 #endif
Jan Tattermusch3196ef92020-04-02 15:36:16 +020019032 }
19033
Jan Tattermusch7cb55972020-06-02 09:26:25 +020019034 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
Jan Tattermusch3196ef92020-04-02 15:36:16 +020019035 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020019036 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Jan Tattermusch0df7ddc2020-04-14 12:41:03 +020019037 void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
Sydney Acksman8a57ec82019-03-21 17:36:36 -050019038 uint tag;
19039 while ((tag = input.ReadTag()) != 0) {
19040 switch(tag) {
19041 default:
Jan Tattermusch3196ef92020-04-02 15:36:16 +020019042 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
Sydney Acksman8a57ec82019-03-21 17:36:36 -050019043 break;
19044 case 10: {
Jan Tattermusch3196ef92020-04-02 15:36:16 +020019045 data_.AddEntriesFrom(ref input, _repeated_data_codec);
Sydney Acksman8a57ec82019-03-21 17:36:36 -050019046 break;
19047 }
19048 }
19049 }
19050 }
Jan Tattermusch7cb55972020-06-02 09:26:25 +020019051 #endif
Sydney Acksman8a57ec82019-03-21 17:36:36 -050019052
19053 }
19054
Jan Tattermusch7cb55972020-06-02 09:26:25 +020019055 public sealed partial class OneBytes : pb::IMessage<OneBytes>
19056 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
19057 , pb::IBufferMessage
19058 #endif
19059 {
Sydney Acksman8a57ec82019-03-21 17:36:36 -050019060 private static readonly pb::MessageParser<OneBytes> _parser = new pb::MessageParser<OneBytes>(() => new OneBytes());
19061 private pb::UnknownFieldSet _unknownFields;
19062 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020019063 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050019064 public static pb::MessageParser<OneBytes> Parser { get { return _parser; } }
19065
19066 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020019067 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050019068 public static pbr::MessageDescriptor Descriptor {
19069 get { return global::Google.Protobuf.TestProtos.Proto2.UnittestReflection.Descriptor.MessageTypes[36]; }
19070 }
19071
19072 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020019073 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050019074 pbr::MessageDescriptor pb::IMessage.Descriptor {
19075 get { return Descriptor; }
19076 }
19077
19078 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020019079 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050019080 public OneBytes() {
19081 OnConstruction();
19082 }
19083
19084 partial void OnConstruction();
19085
19086 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020019087 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050019088 public OneBytes(OneBytes other) : this() {
19089 data_ = other.data_;
19090 _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
19091 }
19092
19093 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020019094 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050019095 public OneBytes Clone() {
19096 return new OneBytes(this);
19097 }
19098
19099 /// <summary>Field number for the "data" field.</summary>
19100 public const int DataFieldNumber = 1;
19101 private readonly static pb::ByteString DataDefaultValue = pb::ByteString.Empty;
19102
19103 private pb::ByteString data_;
19104 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020019105 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050019106 public pb::ByteString Data {
19107 get { return data_ ?? DataDefaultValue; }
19108 set {
19109 data_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
19110 }
19111 }
19112 /// <summary>Gets whether the "data" field is set</summary>
19113 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020019114 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050019115 public bool HasData {
19116 get { return data_ != null; }
19117 }
19118 /// <summary>Clears the value of the "data" field</summary>
19119 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020019120 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050019121 public void ClearData() {
19122 data_ = null;
19123 }
19124
19125 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020019126 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050019127 public override bool Equals(object other) {
19128 return Equals(other as OneBytes);
19129 }
19130
19131 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020019132 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050019133 public bool Equals(OneBytes other) {
19134 if (ReferenceEquals(other, null)) {
19135 return false;
19136 }
19137 if (ReferenceEquals(other, this)) {
19138 return true;
19139 }
19140 if (Data != other.Data) return false;
19141 return Equals(_unknownFields, other._unknownFields);
19142 }
19143
19144 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020019145 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050019146 public override int GetHashCode() {
19147 int hash = 1;
19148 if (HasData) hash ^= Data.GetHashCode();
19149 if (_unknownFields != null) {
19150 hash ^= _unknownFields.GetHashCode();
19151 }
19152 return hash;
19153 }
19154
19155 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020019156 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050019157 public override string ToString() {
19158 return pb::JsonFormatter.ToDiagnosticString(this);
19159 }
19160
19161 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020019162 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050019163 public void WriteTo(pb::CodedOutputStream output) {
Jan Tattermusch125e4ad2020-05-29 04:32:43 -040019164 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
19165 output.WriteRawMessage(this);
19166 #else
Sydney Acksman8a57ec82019-03-21 17:36:36 -050019167 if (HasData) {
19168 output.WriteRawTag(10);
19169 output.WriteBytes(Data);
19170 }
19171 if (_unknownFields != null) {
19172 _unknownFields.WriteTo(output);
19173 }
Jan Tattermusch125e4ad2020-05-29 04:32:43 -040019174 #endif
Sydney Acksman8a57ec82019-03-21 17:36:36 -050019175 }
19176
Jan Tattermusch125e4ad2020-05-29 04:32:43 -040019177 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
19178 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020019179 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Jan Tattermusch125e4ad2020-05-29 04:32:43 -040019180 void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
19181 if (HasData) {
19182 output.WriteRawTag(10);
19183 output.WriteBytes(Data);
19184 }
19185 if (_unknownFields != null) {
19186 _unknownFields.WriteTo(ref output);
19187 }
19188 }
19189 #endif
19190
Sydney Acksman8a57ec82019-03-21 17:36:36 -050019191 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020019192 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050019193 public int CalculateSize() {
19194 int size = 0;
19195 if (HasData) {
19196 size += 1 + pb::CodedOutputStream.ComputeBytesSize(Data);
19197 }
19198 if (_unknownFields != null) {
19199 size += _unknownFields.CalculateSize();
19200 }
19201 return size;
19202 }
19203
19204 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020019205 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050019206 public void MergeFrom(OneBytes other) {
19207 if (other == null) {
19208 return;
19209 }
19210 if (other.HasData) {
19211 Data = other.Data;
19212 }
19213 _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
19214 }
19215
19216 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020019217 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050019218 public void MergeFrom(pb::CodedInputStream input) {
Jan Tattermusch7cb55972020-06-02 09:26:25 +020019219 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
Jan Tattermusch3196ef92020-04-02 15:36:16 +020019220 input.ReadRawMessage(this);
Jan Tattermusch7cb55972020-06-02 09:26:25 +020019221 #else
19222 uint tag;
19223 while ((tag = input.ReadTag()) != 0) {
19224 switch(tag) {
19225 default:
19226 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
19227 break;
19228 case 10: {
19229 Data = input.ReadBytes();
19230 break;
19231 }
19232 }
19233 }
19234 #endif
Jan Tattermusch3196ef92020-04-02 15:36:16 +020019235 }
19236
Jan Tattermusch7cb55972020-06-02 09:26:25 +020019237 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
Jan Tattermusch3196ef92020-04-02 15:36:16 +020019238 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020019239 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Jan Tattermusch0df7ddc2020-04-14 12:41:03 +020019240 void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
Sydney Acksman8a57ec82019-03-21 17:36:36 -050019241 uint tag;
19242 while ((tag = input.ReadTag()) != 0) {
19243 switch(tag) {
19244 default:
Jan Tattermusch3196ef92020-04-02 15:36:16 +020019245 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
Sydney Acksman8a57ec82019-03-21 17:36:36 -050019246 break;
19247 case 10: {
19248 Data = input.ReadBytes();
19249 break;
19250 }
19251 }
19252 }
19253 }
Jan Tattermusch7cb55972020-06-02 09:26:25 +020019254 #endif
Sydney Acksman8a57ec82019-03-21 17:36:36 -050019255
19256 }
19257
Jan Tattermusch7cb55972020-06-02 09:26:25 +020019258 public sealed partial class MoreBytes : pb::IMessage<MoreBytes>
19259 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
19260 , pb::IBufferMessage
19261 #endif
19262 {
Sydney Acksman8a57ec82019-03-21 17:36:36 -050019263 private static readonly pb::MessageParser<MoreBytes> _parser = new pb::MessageParser<MoreBytes>(() => new MoreBytes());
19264 private pb::UnknownFieldSet _unknownFields;
19265 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020019266 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050019267 public static pb::MessageParser<MoreBytes> Parser { get { return _parser; } }
19268
19269 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020019270 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050019271 public static pbr::MessageDescriptor Descriptor {
19272 get { return global::Google.Protobuf.TestProtos.Proto2.UnittestReflection.Descriptor.MessageTypes[37]; }
19273 }
19274
19275 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020019276 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050019277 pbr::MessageDescriptor pb::IMessage.Descriptor {
19278 get { return Descriptor; }
19279 }
19280
19281 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020019282 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050019283 public MoreBytes() {
19284 OnConstruction();
19285 }
19286
19287 partial void OnConstruction();
19288
19289 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020019290 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050019291 public MoreBytes(MoreBytes other) : this() {
19292 data_ = other.data_.Clone();
19293 _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
19294 }
19295
19296 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020019297 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050019298 public MoreBytes Clone() {
19299 return new MoreBytes(this);
19300 }
19301
19302 /// <summary>Field number for the "data" field.</summary>
19303 public const int DataFieldNumber = 1;
19304 private static readonly pb::FieldCodec<pb::ByteString> _repeated_data_codec
19305 = pb::FieldCodec.ForBytes(10);
19306 private readonly pbc::RepeatedField<pb::ByteString> data_ = new pbc::RepeatedField<pb::ByteString>();
19307 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020019308 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050019309 public pbc::RepeatedField<pb::ByteString> Data {
19310 get { return data_; }
19311 }
19312
19313 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020019314 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050019315 public override bool Equals(object other) {
19316 return Equals(other as MoreBytes);
19317 }
19318
19319 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020019320 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050019321 public bool Equals(MoreBytes other) {
19322 if (ReferenceEquals(other, null)) {
19323 return false;
19324 }
19325 if (ReferenceEquals(other, this)) {
19326 return true;
19327 }
19328 if(!data_.Equals(other.data_)) return false;
19329 return Equals(_unknownFields, other._unknownFields);
19330 }
19331
19332 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020019333 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050019334 public override int GetHashCode() {
19335 int hash = 1;
19336 hash ^= data_.GetHashCode();
19337 if (_unknownFields != null) {
19338 hash ^= _unknownFields.GetHashCode();
19339 }
19340 return hash;
19341 }
19342
19343 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020019344 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050019345 public override string ToString() {
19346 return pb::JsonFormatter.ToDiagnosticString(this);
19347 }
19348
19349 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020019350 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050019351 public void WriteTo(pb::CodedOutputStream output) {
Jan Tattermusch125e4ad2020-05-29 04:32:43 -040019352 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
19353 output.WriteRawMessage(this);
19354 #else
Sydney Acksman8a57ec82019-03-21 17:36:36 -050019355 data_.WriteTo(output, _repeated_data_codec);
19356 if (_unknownFields != null) {
19357 _unknownFields.WriteTo(output);
19358 }
Jan Tattermusch125e4ad2020-05-29 04:32:43 -040019359 #endif
Sydney Acksman8a57ec82019-03-21 17:36:36 -050019360 }
19361
Jan Tattermusch125e4ad2020-05-29 04:32:43 -040019362 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
19363 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020019364 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Jan Tattermusch125e4ad2020-05-29 04:32:43 -040019365 void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
19366 data_.WriteTo(ref output, _repeated_data_codec);
19367 if (_unknownFields != null) {
19368 _unknownFields.WriteTo(ref output);
19369 }
19370 }
19371 #endif
19372
Sydney Acksman8a57ec82019-03-21 17:36:36 -050019373 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020019374 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050019375 public int CalculateSize() {
19376 int size = 0;
19377 size += data_.CalculateSize(_repeated_data_codec);
19378 if (_unknownFields != null) {
19379 size += _unknownFields.CalculateSize();
19380 }
19381 return size;
19382 }
19383
19384 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020019385 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050019386 public void MergeFrom(MoreBytes other) {
19387 if (other == null) {
19388 return;
19389 }
19390 data_.Add(other.data_);
19391 _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
19392 }
19393
19394 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020019395 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050019396 public void MergeFrom(pb::CodedInputStream input) {
Jan Tattermusch7cb55972020-06-02 09:26:25 +020019397 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
Jan Tattermusch3196ef92020-04-02 15:36:16 +020019398 input.ReadRawMessage(this);
Jan Tattermusch7cb55972020-06-02 09:26:25 +020019399 #else
19400 uint tag;
19401 while ((tag = input.ReadTag()) != 0) {
19402 switch(tag) {
19403 default:
19404 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
19405 break;
19406 case 10: {
19407 data_.AddEntriesFrom(input, _repeated_data_codec);
19408 break;
19409 }
19410 }
19411 }
19412 #endif
Jan Tattermusch3196ef92020-04-02 15:36:16 +020019413 }
19414
Jan Tattermusch7cb55972020-06-02 09:26:25 +020019415 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
Jan Tattermusch3196ef92020-04-02 15:36:16 +020019416 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020019417 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Jan Tattermusch0df7ddc2020-04-14 12:41:03 +020019418 void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
Sydney Acksman8a57ec82019-03-21 17:36:36 -050019419 uint tag;
19420 while ((tag = input.ReadTag()) != 0) {
19421 switch(tag) {
19422 default:
Jan Tattermusch3196ef92020-04-02 15:36:16 +020019423 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
Sydney Acksman8a57ec82019-03-21 17:36:36 -050019424 break;
19425 case 10: {
Jan Tattermusch3196ef92020-04-02 15:36:16 +020019426 data_.AddEntriesFrom(ref input, _repeated_data_codec);
Sydney Acksman8a57ec82019-03-21 17:36:36 -050019427 break;
19428 }
19429 }
19430 }
19431 }
Jan Tattermusch7cb55972020-06-02 09:26:25 +020019432 #endif
Sydney Acksman8a57ec82019-03-21 17:36:36 -050019433
19434 }
19435
19436 /// <summary>
19437 /// Test int32, uint32, int64, uint64, and bool are all compatible
19438 /// </summary>
Jan Tattermusch7cb55972020-06-02 09:26:25 +020019439 public sealed partial class Int32Message : pb::IMessage<Int32Message>
19440 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
19441 , pb::IBufferMessage
19442 #endif
19443 {
Sydney Acksman8a57ec82019-03-21 17:36:36 -050019444 private static readonly pb::MessageParser<Int32Message> _parser = new pb::MessageParser<Int32Message>(() => new Int32Message());
19445 private pb::UnknownFieldSet _unknownFields;
19446 private int _hasBits0;
19447 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020019448 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050019449 public static pb::MessageParser<Int32Message> Parser { get { return _parser; } }
19450
19451 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020019452 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050019453 public static pbr::MessageDescriptor Descriptor {
19454 get { return global::Google.Protobuf.TestProtos.Proto2.UnittestReflection.Descriptor.MessageTypes[38]; }
19455 }
19456
19457 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020019458 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050019459 pbr::MessageDescriptor pb::IMessage.Descriptor {
19460 get { return Descriptor; }
19461 }
19462
19463 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020019464 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050019465 public Int32Message() {
19466 OnConstruction();
19467 }
19468
19469 partial void OnConstruction();
19470
19471 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020019472 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050019473 public Int32Message(Int32Message other) : this() {
19474 _hasBits0 = other._hasBits0;
19475 data_ = other.data_;
19476 _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
19477 }
19478
19479 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020019480 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050019481 public Int32Message Clone() {
19482 return new Int32Message(this);
19483 }
19484
19485 /// <summary>Field number for the "data" field.</summary>
19486 public const int DataFieldNumber = 1;
19487 private readonly static int DataDefaultValue = 0;
19488
19489 private int data_;
19490 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020019491 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050019492 public int Data {
19493 get { if ((_hasBits0 & 1) != 0) { return data_; } else { return DataDefaultValue; } }
19494 set {
19495 _hasBits0 |= 1;
19496 data_ = value;
19497 }
19498 }
19499 /// <summary>Gets whether the "data" field is set</summary>
19500 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020019501 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050019502 public bool HasData {
19503 get { return (_hasBits0 & 1) != 0; }
19504 }
19505 /// <summary>Clears the value of the "data" field</summary>
19506 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020019507 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050019508 public void ClearData() {
19509 _hasBits0 &= ~1;
19510 }
19511
19512 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020019513 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050019514 public override bool Equals(object other) {
19515 return Equals(other as Int32Message);
19516 }
19517
19518 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020019519 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050019520 public bool Equals(Int32Message other) {
19521 if (ReferenceEquals(other, null)) {
19522 return false;
19523 }
19524 if (ReferenceEquals(other, this)) {
19525 return true;
19526 }
19527 if (Data != other.Data) return false;
19528 return Equals(_unknownFields, other._unknownFields);
19529 }
19530
19531 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020019532 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050019533 public override int GetHashCode() {
19534 int hash = 1;
19535 if (HasData) hash ^= Data.GetHashCode();
19536 if (_unknownFields != null) {
19537 hash ^= _unknownFields.GetHashCode();
19538 }
19539 return hash;
19540 }
19541
19542 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020019543 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050019544 public override string ToString() {
19545 return pb::JsonFormatter.ToDiagnosticString(this);
19546 }
19547
19548 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020019549 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050019550 public void WriteTo(pb::CodedOutputStream output) {
Jan Tattermusch125e4ad2020-05-29 04:32:43 -040019551 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
19552 output.WriteRawMessage(this);
19553 #else
Sydney Acksman8a57ec82019-03-21 17:36:36 -050019554 if (HasData) {
19555 output.WriteRawTag(8);
19556 output.WriteInt32(Data);
19557 }
19558 if (_unknownFields != null) {
19559 _unknownFields.WriteTo(output);
19560 }
Jan Tattermusch125e4ad2020-05-29 04:32:43 -040019561 #endif
Sydney Acksman8a57ec82019-03-21 17:36:36 -050019562 }
19563
Jan Tattermusch125e4ad2020-05-29 04:32:43 -040019564 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
19565 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020019566 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Jan Tattermusch125e4ad2020-05-29 04:32:43 -040019567 void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
19568 if (HasData) {
19569 output.WriteRawTag(8);
19570 output.WriteInt32(Data);
19571 }
19572 if (_unknownFields != null) {
19573 _unknownFields.WriteTo(ref output);
19574 }
19575 }
19576 #endif
19577
Sydney Acksman8a57ec82019-03-21 17:36:36 -050019578 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020019579 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050019580 public int CalculateSize() {
19581 int size = 0;
19582 if (HasData) {
19583 size += 1 + pb::CodedOutputStream.ComputeInt32Size(Data);
19584 }
19585 if (_unknownFields != null) {
19586 size += _unknownFields.CalculateSize();
19587 }
19588 return size;
19589 }
19590
19591 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020019592 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050019593 public void MergeFrom(Int32Message other) {
19594 if (other == null) {
19595 return;
19596 }
19597 if (other.HasData) {
19598 Data = other.Data;
19599 }
19600 _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
19601 }
19602
19603 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020019604 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050019605 public void MergeFrom(pb::CodedInputStream input) {
Jan Tattermusch7cb55972020-06-02 09:26:25 +020019606 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
Jan Tattermusch3196ef92020-04-02 15:36:16 +020019607 input.ReadRawMessage(this);
Jan Tattermusch7cb55972020-06-02 09:26:25 +020019608 #else
19609 uint tag;
19610 while ((tag = input.ReadTag()) != 0) {
19611 switch(tag) {
19612 default:
19613 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
19614 break;
19615 case 8: {
19616 Data = input.ReadInt32();
19617 break;
19618 }
19619 }
19620 }
19621 #endif
Jan Tattermusch3196ef92020-04-02 15:36:16 +020019622 }
19623
Jan Tattermusch7cb55972020-06-02 09:26:25 +020019624 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
Jan Tattermusch3196ef92020-04-02 15:36:16 +020019625 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020019626 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Jan Tattermusch0df7ddc2020-04-14 12:41:03 +020019627 void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
Sydney Acksman8a57ec82019-03-21 17:36:36 -050019628 uint tag;
19629 while ((tag = input.ReadTag()) != 0) {
19630 switch(tag) {
19631 default:
Jan Tattermusch3196ef92020-04-02 15:36:16 +020019632 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
Sydney Acksman8a57ec82019-03-21 17:36:36 -050019633 break;
19634 case 8: {
19635 Data = input.ReadInt32();
19636 break;
19637 }
19638 }
19639 }
19640 }
Jan Tattermusch7cb55972020-06-02 09:26:25 +020019641 #endif
Sydney Acksman8a57ec82019-03-21 17:36:36 -050019642
19643 }
19644
Jan Tattermusch7cb55972020-06-02 09:26:25 +020019645 public sealed partial class Uint32Message : pb::IMessage<Uint32Message>
19646 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
19647 , pb::IBufferMessage
19648 #endif
19649 {
Sydney Acksman8a57ec82019-03-21 17:36:36 -050019650 private static readonly pb::MessageParser<Uint32Message> _parser = new pb::MessageParser<Uint32Message>(() => new Uint32Message());
19651 private pb::UnknownFieldSet _unknownFields;
19652 private int _hasBits0;
19653 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020019654 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050019655 public static pb::MessageParser<Uint32Message> Parser { get { return _parser; } }
19656
19657 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020019658 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050019659 public static pbr::MessageDescriptor Descriptor {
19660 get { return global::Google.Protobuf.TestProtos.Proto2.UnittestReflection.Descriptor.MessageTypes[39]; }
19661 }
19662
19663 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020019664 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050019665 pbr::MessageDescriptor pb::IMessage.Descriptor {
19666 get { return Descriptor; }
19667 }
19668
19669 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020019670 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050019671 public Uint32Message() {
19672 OnConstruction();
19673 }
19674
19675 partial void OnConstruction();
19676
19677 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020019678 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050019679 public Uint32Message(Uint32Message other) : this() {
19680 _hasBits0 = other._hasBits0;
19681 data_ = other.data_;
19682 _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
19683 }
19684
19685 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020019686 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050019687 public Uint32Message Clone() {
19688 return new Uint32Message(this);
19689 }
19690
19691 /// <summary>Field number for the "data" field.</summary>
19692 public const int DataFieldNumber = 1;
19693 private readonly static uint DataDefaultValue = 0;
19694
19695 private uint data_;
19696 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020019697 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050019698 public uint Data {
19699 get { if ((_hasBits0 & 1) != 0) { return data_; } else { return DataDefaultValue; } }
19700 set {
19701 _hasBits0 |= 1;
19702 data_ = value;
19703 }
19704 }
19705 /// <summary>Gets whether the "data" field is set</summary>
19706 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020019707 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050019708 public bool HasData {
19709 get { return (_hasBits0 & 1) != 0; }
19710 }
19711 /// <summary>Clears the value of the "data" field</summary>
19712 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020019713 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050019714 public void ClearData() {
19715 _hasBits0 &= ~1;
19716 }
19717
19718 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020019719 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050019720 public override bool Equals(object other) {
19721 return Equals(other as Uint32Message);
19722 }
19723
19724 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020019725 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050019726 public bool Equals(Uint32Message other) {
19727 if (ReferenceEquals(other, null)) {
19728 return false;
19729 }
19730 if (ReferenceEquals(other, this)) {
19731 return true;
19732 }
19733 if (Data != other.Data) return false;
19734 return Equals(_unknownFields, other._unknownFields);
19735 }
19736
19737 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020019738 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050019739 public override int GetHashCode() {
19740 int hash = 1;
19741 if (HasData) hash ^= Data.GetHashCode();
19742 if (_unknownFields != null) {
19743 hash ^= _unknownFields.GetHashCode();
19744 }
19745 return hash;
19746 }
19747
19748 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020019749 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050019750 public override string ToString() {
19751 return pb::JsonFormatter.ToDiagnosticString(this);
19752 }
19753
19754 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020019755 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050019756 public void WriteTo(pb::CodedOutputStream output) {
Jan Tattermusch125e4ad2020-05-29 04:32:43 -040019757 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
19758 output.WriteRawMessage(this);
19759 #else
Sydney Acksman8a57ec82019-03-21 17:36:36 -050019760 if (HasData) {
19761 output.WriteRawTag(8);
19762 output.WriteUInt32(Data);
19763 }
19764 if (_unknownFields != null) {
19765 _unknownFields.WriteTo(output);
19766 }
Jan Tattermusch125e4ad2020-05-29 04:32:43 -040019767 #endif
Sydney Acksman8a57ec82019-03-21 17:36:36 -050019768 }
19769
Jan Tattermusch125e4ad2020-05-29 04:32:43 -040019770 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
19771 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020019772 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Jan Tattermusch125e4ad2020-05-29 04:32:43 -040019773 void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
19774 if (HasData) {
19775 output.WriteRawTag(8);
19776 output.WriteUInt32(Data);
19777 }
19778 if (_unknownFields != null) {
19779 _unknownFields.WriteTo(ref output);
19780 }
19781 }
19782 #endif
19783
Sydney Acksman8a57ec82019-03-21 17:36:36 -050019784 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020019785 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050019786 public int CalculateSize() {
19787 int size = 0;
19788 if (HasData) {
19789 size += 1 + pb::CodedOutputStream.ComputeUInt32Size(Data);
19790 }
19791 if (_unknownFields != null) {
19792 size += _unknownFields.CalculateSize();
19793 }
19794 return size;
19795 }
19796
19797 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020019798 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050019799 public void MergeFrom(Uint32Message other) {
19800 if (other == null) {
19801 return;
19802 }
19803 if (other.HasData) {
19804 Data = other.Data;
19805 }
19806 _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
19807 }
19808
19809 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020019810 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050019811 public void MergeFrom(pb::CodedInputStream input) {
Jan Tattermusch7cb55972020-06-02 09:26:25 +020019812 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
Jan Tattermusch3196ef92020-04-02 15:36:16 +020019813 input.ReadRawMessage(this);
Jan Tattermusch7cb55972020-06-02 09:26:25 +020019814 #else
19815 uint tag;
19816 while ((tag = input.ReadTag()) != 0) {
19817 switch(tag) {
19818 default:
19819 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
19820 break;
19821 case 8: {
19822 Data = input.ReadUInt32();
19823 break;
19824 }
19825 }
19826 }
19827 #endif
Jan Tattermusch3196ef92020-04-02 15:36:16 +020019828 }
19829
Jan Tattermusch7cb55972020-06-02 09:26:25 +020019830 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
Jan Tattermusch3196ef92020-04-02 15:36:16 +020019831 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020019832 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Jan Tattermusch0df7ddc2020-04-14 12:41:03 +020019833 void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
Sydney Acksman8a57ec82019-03-21 17:36:36 -050019834 uint tag;
19835 while ((tag = input.ReadTag()) != 0) {
19836 switch(tag) {
19837 default:
Jan Tattermusch3196ef92020-04-02 15:36:16 +020019838 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
Sydney Acksman8a57ec82019-03-21 17:36:36 -050019839 break;
19840 case 8: {
19841 Data = input.ReadUInt32();
19842 break;
19843 }
19844 }
19845 }
19846 }
Jan Tattermusch7cb55972020-06-02 09:26:25 +020019847 #endif
Sydney Acksman8a57ec82019-03-21 17:36:36 -050019848
19849 }
19850
Jan Tattermusch7cb55972020-06-02 09:26:25 +020019851 public sealed partial class Int64Message : pb::IMessage<Int64Message>
19852 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
19853 , pb::IBufferMessage
19854 #endif
19855 {
Sydney Acksman8a57ec82019-03-21 17:36:36 -050019856 private static readonly pb::MessageParser<Int64Message> _parser = new pb::MessageParser<Int64Message>(() => new Int64Message());
19857 private pb::UnknownFieldSet _unknownFields;
19858 private int _hasBits0;
19859 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020019860 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050019861 public static pb::MessageParser<Int64Message> Parser { get { return _parser; } }
19862
19863 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020019864 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050019865 public static pbr::MessageDescriptor Descriptor {
19866 get { return global::Google.Protobuf.TestProtos.Proto2.UnittestReflection.Descriptor.MessageTypes[40]; }
19867 }
19868
19869 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020019870 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050019871 pbr::MessageDescriptor pb::IMessage.Descriptor {
19872 get { return Descriptor; }
19873 }
19874
19875 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020019876 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050019877 public Int64Message() {
19878 OnConstruction();
19879 }
19880
19881 partial void OnConstruction();
19882
19883 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020019884 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050019885 public Int64Message(Int64Message other) : this() {
19886 _hasBits0 = other._hasBits0;
19887 data_ = other.data_;
19888 _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
19889 }
19890
19891 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020019892 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050019893 public Int64Message Clone() {
19894 return new Int64Message(this);
19895 }
19896
19897 /// <summary>Field number for the "data" field.</summary>
19898 public const int DataFieldNumber = 1;
19899 private readonly static long DataDefaultValue = 0L;
19900
19901 private long data_;
19902 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020019903 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050019904 public long Data {
19905 get { if ((_hasBits0 & 1) != 0) { return data_; } else { return DataDefaultValue; } }
19906 set {
19907 _hasBits0 |= 1;
19908 data_ = value;
19909 }
19910 }
19911 /// <summary>Gets whether the "data" field is set</summary>
19912 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020019913 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050019914 public bool HasData {
19915 get { return (_hasBits0 & 1) != 0; }
19916 }
19917 /// <summary>Clears the value of the "data" field</summary>
19918 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020019919 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050019920 public void ClearData() {
19921 _hasBits0 &= ~1;
19922 }
19923
19924 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020019925 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050019926 public override bool Equals(object other) {
19927 return Equals(other as Int64Message);
19928 }
19929
19930 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020019931 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050019932 public bool Equals(Int64Message other) {
19933 if (ReferenceEquals(other, null)) {
19934 return false;
19935 }
19936 if (ReferenceEquals(other, this)) {
19937 return true;
19938 }
19939 if (Data != other.Data) return false;
19940 return Equals(_unknownFields, other._unknownFields);
19941 }
19942
19943 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020019944 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050019945 public override int GetHashCode() {
19946 int hash = 1;
19947 if (HasData) hash ^= Data.GetHashCode();
19948 if (_unknownFields != null) {
19949 hash ^= _unknownFields.GetHashCode();
19950 }
19951 return hash;
19952 }
19953
19954 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020019955 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050019956 public override string ToString() {
19957 return pb::JsonFormatter.ToDiagnosticString(this);
19958 }
19959
19960 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020019961 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050019962 public void WriteTo(pb::CodedOutputStream output) {
Jan Tattermusch125e4ad2020-05-29 04:32:43 -040019963 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
19964 output.WriteRawMessage(this);
19965 #else
Sydney Acksman8a57ec82019-03-21 17:36:36 -050019966 if (HasData) {
19967 output.WriteRawTag(8);
19968 output.WriteInt64(Data);
19969 }
19970 if (_unknownFields != null) {
19971 _unknownFields.WriteTo(output);
19972 }
Jan Tattermusch125e4ad2020-05-29 04:32:43 -040019973 #endif
Sydney Acksman8a57ec82019-03-21 17:36:36 -050019974 }
19975
Jan Tattermusch125e4ad2020-05-29 04:32:43 -040019976 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
19977 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020019978 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Jan Tattermusch125e4ad2020-05-29 04:32:43 -040019979 void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
19980 if (HasData) {
19981 output.WriteRawTag(8);
19982 output.WriteInt64(Data);
19983 }
19984 if (_unknownFields != null) {
19985 _unknownFields.WriteTo(ref output);
19986 }
19987 }
19988 #endif
19989
Sydney Acksman8a57ec82019-03-21 17:36:36 -050019990 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020019991 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050019992 public int CalculateSize() {
19993 int size = 0;
19994 if (HasData) {
19995 size += 1 + pb::CodedOutputStream.ComputeInt64Size(Data);
19996 }
19997 if (_unknownFields != null) {
19998 size += _unknownFields.CalculateSize();
19999 }
20000 return size;
20001 }
20002
20003 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020020004 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050020005 public void MergeFrom(Int64Message other) {
20006 if (other == null) {
20007 return;
20008 }
20009 if (other.HasData) {
20010 Data = other.Data;
20011 }
20012 _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
20013 }
20014
20015 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020020016 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050020017 public void MergeFrom(pb::CodedInputStream input) {
Jan Tattermusch7cb55972020-06-02 09:26:25 +020020018 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
Jan Tattermusch3196ef92020-04-02 15:36:16 +020020019 input.ReadRawMessage(this);
Jan Tattermusch7cb55972020-06-02 09:26:25 +020020020 #else
20021 uint tag;
20022 while ((tag = input.ReadTag()) != 0) {
20023 switch(tag) {
20024 default:
20025 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
20026 break;
20027 case 8: {
20028 Data = input.ReadInt64();
20029 break;
20030 }
20031 }
20032 }
20033 #endif
Jan Tattermusch3196ef92020-04-02 15:36:16 +020020034 }
20035
Jan Tattermusch7cb55972020-06-02 09:26:25 +020020036 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
Jan Tattermusch3196ef92020-04-02 15:36:16 +020020037 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020020038 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Jan Tattermusch0df7ddc2020-04-14 12:41:03 +020020039 void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
Sydney Acksman8a57ec82019-03-21 17:36:36 -050020040 uint tag;
20041 while ((tag = input.ReadTag()) != 0) {
20042 switch(tag) {
20043 default:
Jan Tattermusch3196ef92020-04-02 15:36:16 +020020044 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
Sydney Acksman8a57ec82019-03-21 17:36:36 -050020045 break;
20046 case 8: {
20047 Data = input.ReadInt64();
20048 break;
20049 }
20050 }
20051 }
20052 }
Jan Tattermusch7cb55972020-06-02 09:26:25 +020020053 #endif
Sydney Acksman8a57ec82019-03-21 17:36:36 -050020054
20055 }
20056
Jan Tattermusch7cb55972020-06-02 09:26:25 +020020057 public sealed partial class Uint64Message : pb::IMessage<Uint64Message>
20058 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
20059 , pb::IBufferMessage
20060 #endif
20061 {
Sydney Acksman8a57ec82019-03-21 17:36:36 -050020062 private static readonly pb::MessageParser<Uint64Message> _parser = new pb::MessageParser<Uint64Message>(() => new Uint64Message());
20063 private pb::UnknownFieldSet _unknownFields;
20064 private int _hasBits0;
20065 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020020066 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050020067 public static pb::MessageParser<Uint64Message> Parser { get { return _parser; } }
20068
20069 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020020070 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050020071 public static pbr::MessageDescriptor Descriptor {
20072 get { return global::Google.Protobuf.TestProtos.Proto2.UnittestReflection.Descriptor.MessageTypes[41]; }
20073 }
20074
20075 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020020076 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050020077 pbr::MessageDescriptor pb::IMessage.Descriptor {
20078 get { return Descriptor; }
20079 }
20080
20081 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020020082 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050020083 public Uint64Message() {
20084 OnConstruction();
20085 }
20086
20087 partial void OnConstruction();
20088
20089 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020020090 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050020091 public Uint64Message(Uint64Message other) : this() {
20092 _hasBits0 = other._hasBits0;
20093 data_ = other.data_;
20094 _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
20095 }
20096
20097 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020020098 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050020099 public Uint64Message Clone() {
20100 return new Uint64Message(this);
20101 }
20102
20103 /// <summary>Field number for the "data" field.</summary>
20104 public const int DataFieldNumber = 1;
20105 private readonly static ulong DataDefaultValue = 0UL;
20106
20107 private ulong data_;
20108 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020020109 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050020110 public ulong Data {
20111 get { if ((_hasBits0 & 1) != 0) { return data_; } else { return DataDefaultValue; } }
20112 set {
20113 _hasBits0 |= 1;
20114 data_ = value;
20115 }
20116 }
20117 /// <summary>Gets whether the "data" field is set</summary>
20118 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020020119 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050020120 public bool HasData {
20121 get { return (_hasBits0 & 1) != 0; }
20122 }
20123 /// <summary>Clears the value of the "data" field</summary>
20124 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020020125 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050020126 public void ClearData() {
20127 _hasBits0 &= ~1;
20128 }
20129
20130 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020020131 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050020132 public override bool Equals(object other) {
20133 return Equals(other as Uint64Message);
20134 }
20135
20136 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020020137 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050020138 public bool Equals(Uint64Message other) {
20139 if (ReferenceEquals(other, null)) {
20140 return false;
20141 }
20142 if (ReferenceEquals(other, this)) {
20143 return true;
20144 }
20145 if (Data != other.Data) return false;
20146 return Equals(_unknownFields, other._unknownFields);
20147 }
20148
20149 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020020150 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050020151 public override int GetHashCode() {
20152 int hash = 1;
20153 if (HasData) hash ^= Data.GetHashCode();
20154 if (_unknownFields != null) {
20155 hash ^= _unknownFields.GetHashCode();
20156 }
20157 return hash;
20158 }
20159
20160 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020020161 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050020162 public override string ToString() {
20163 return pb::JsonFormatter.ToDiagnosticString(this);
20164 }
20165
20166 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020020167 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050020168 public void WriteTo(pb::CodedOutputStream output) {
Jan Tattermusch125e4ad2020-05-29 04:32:43 -040020169 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
20170 output.WriteRawMessage(this);
20171 #else
Sydney Acksman8a57ec82019-03-21 17:36:36 -050020172 if (HasData) {
20173 output.WriteRawTag(8);
20174 output.WriteUInt64(Data);
20175 }
20176 if (_unknownFields != null) {
20177 _unknownFields.WriteTo(output);
20178 }
Jan Tattermusch125e4ad2020-05-29 04:32:43 -040020179 #endif
Sydney Acksman8a57ec82019-03-21 17:36:36 -050020180 }
20181
Jan Tattermusch125e4ad2020-05-29 04:32:43 -040020182 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
20183 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020020184 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Jan Tattermusch125e4ad2020-05-29 04:32:43 -040020185 void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
20186 if (HasData) {
20187 output.WriteRawTag(8);
20188 output.WriteUInt64(Data);
20189 }
20190 if (_unknownFields != null) {
20191 _unknownFields.WriteTo(ref output);
20192 }
20193 }
20194 #endif
20195
Sydney Acksman8a57ec82019-03-21 17:36:36 -050020196 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020020197 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050020198 public int CalculateSize() {
20199 int size = 0;
20200 if (HasData) {
20201 size += 1 + pb::CodedOutputStream.ComputeUInt64Size(Data);
20202 }
20203 if (_unknownFields != null) {
20204 size += _unknownFields.CalculateSize();
20205 }
20206 return size;
20207 }
20208
20209 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020020210 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050020211 public void MergeFrom(Uint64Message other) {
20212 if (other == null) {
20213 return;
20214 }
20215 if (other.HasData) {
20216 Data = other.Data;
20217 }
20218 _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
20219 }
20220
20221 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020020222 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050020223 public void MergeFrom(pb::CodedInputStream input) {
Jan Tattermusch7cb55972020-06-02 09:26:25 +020020224 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
Jan Tattermusch3196ef92020-04-02 15:36:16 +020020225 input.ReadRawMessage(this);
Jan Tattermusch7cb55972020-06-02 09:26:25 +020020226 #else
20227 uint tag;
20228 while ((tag = input.ReadTag()) != 0) {
20229 switch(tag) {
20230 default:
20231 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
20232 break;
20233 case 8: {
20234 Data = input.ReadUInt64();
20235 break;
20236 }
20237 }
20238 }
20239 #endif
Jan Tattermusch3196ef92020-04-02 15:36:16 +020020240 }
20241
Jan Tattermusch7cb55972020-06-02 09:26:25 +020020242 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
Jan Tattermusch3196ef92020-04-02 15:36:16 +020020243 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020020244 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Jan Tattermusch0df7ddc2020-04-14 12:41:03 +020020245 void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
Sydney Acksman8a57ec82019-03-21 17:36:36 -050020246 uint tag;
20247 while ((tag = input.ReadTag()) != 0) {
20248 switch(tag) {
20249 default:
Jan Tattermusch3196ef92020-04-02 15:36:16 +020020250 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
Sydney Acksman8a57ec82019-03-21 17:36:36 -050020251 break;
20252 case 8: {
20253 Data = input.ReadUInt64();
20254 break;
20255 }
20256 }
20257 }
20258 }
Jan Tattermusch7cb55972020-06-02 09:26:25 +020020259 #endif
Sydney Acksman8a57ec82019-03-21 17:36:36 -050020260
20261 }
20262
Jan Tattermusch7cb55972020-06-02 09:26:25 +020020263 public sealed partial class BoolMessage : pb::IMessage<BoolMessage>
20264 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
20265 , pb::IBufferMessage
20266 #endif
20267 {
Sydney Acksman8a57ec82019-03-21 17:36:36 -050020268 private static readonly pb::MessageParser<BoolMessage> _parser = new pb::MessageParser<BoolMessage>(() => new BoolMessage());
20269 private pb::UnknownFieldSet _unknownFields;
20270 private int _hasBits0;
20271 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020020272 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050020273 public static pb::MessageParser<BoolMessage> Parser { get { return _parser; } }
20274
20275 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020020276 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050020277 public static pbr::MessageDescriptor Descriptor {
20278 get { return global::Google.Protobuf.TestProtos.Proto2.UnittestReflection.Descriptor.MessageTypes[42]; }
20279 }
20280
20281 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020020282 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050020283 pbr::MessageDescriptor pb::IMessage.Descriptor {
20284 get { return Descriptor; }
20285 }
20286
20287 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020020288 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050020289 public BoolMessage() {
20290 OnConstruction();
20291 }
20292
20293 partial void OnConstruction();
20294
20295 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020020296 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050020297 public BoolMessage(BoolMessage other) : this() {
20298 _hasBits0 = other._hasBits0;
20299 data_ = other.data_;
20300 _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
20301 }
20302
20303 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020020304 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050020305 public BoolMessage Clone() {
20306 return new BoolMessage(this);
20307 }
20308
20309 /// <summary>Field number for the "data" field.</summary>
20310 public const int DataFieldNumber = 1;
20311 private readonly static bool DataDefaultValue = false;
20312
20313 private bool data_;
20314 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020020315 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050020316 public bool Data {
20317 get { if ((_hasBits0 & 1) != 0) { return data_; } else { return DataDefaultValue; } }
20318 set {
20319 _hasBits0 |= 1;
20320 data_ = value;
20321 }
20322 }
20323 /// <summary>Gets whether the "data" field is set</summary>
20324 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020020325 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050020326 public bool HasData {
20327 get { return (_hasBits0 & 1) != 0; }
20328 }
20329 /// <summary>Clears the value of the "data" field</summary>
20330 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020020331 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050020332 public void ClearData() {
20333 _hasBits0 &= ~1;
20334 }
20335
20336 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020020337 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050020338 public override bool Equals(object other) {
20339 return Equals(other as BoolMessage);
20340 }
20341
20342 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020020343 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050020344 public bool Equals(BoolMessage other) {
20345 if (ReferenceEquals(other, null)) {
20346 return false;
20347 }
20348 if (ReferenceEquals(other, this)) {
20349 return true;
20350 }
20351 if (Data != other.Data) return false;
20352 return Equals(_unknownFields, other._unknownFields);
20353 }
20354
20355 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020020356 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050020357 public override int GetHashCode() {
20358 int hash = 1;
20359 if (HasData) hash ^= Data.GetHashCode();
20360 if (_unknownFields != null) {
20361 hash ^= _unknownFields.GetHashCode();
20362 }
20363 return hash;
20364 }
20365
20366 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020020367 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050020368 public override string ToString() {
20369 return pb::JsonFormatter.ToDiagnosticString(this);
20370 }
20371
20372 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020020373 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050020374 public void WriteTo(pb::CodedOutputStream output) {
Jan Tattermusch125e4ad2020-05-29 04:32:43 -040020375 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
20376 output.WriteRawMessage(this);
20377 #else
Sydney Acksman8a57ec82019-03-21 17:36:36 -050020378 if (HasData) {
20379 output.WriteRawTag(8);
20380 output.WriteBool(Data);
20381 }
20382 if (_unknownFields != null) {
20383 _unknownFields.WriteTo(output);
20384 }
Jan Tattermusch125e4ad2020-05-29 04:32:43 -040020385 #endif
Sydney Acksman8a57ec82019-03-21 17:36:36 -050020386 }
20387
Jan Tattermusch125e4ad2020-05-29 04:32:43 -040020388 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
20389 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020020390 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Jan Tattermusch125e4ad2020-05-29 04:32:43 -040020391 void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
20392 if (HasData) {
20393 output.WriteRawTag(8);
20394 output.WriteBool(Data);
20395 }
20396 if (_unknownFields != null) {
20397 _unknownFields.WriteTo(ref output);
20398 }
20399 }
20400 #endif
20401
Sydney Acksman8a57ec82019-03-21 17:36:36 -050020402 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020020403 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050020404 public int CalculateSize() {
20405 int size = 0;
20406 if (HasData) {
20407 size += 1 + 1;
20408 }
20409 if (_unknownFields != null) {
20410 size += _unknownFields.CalculateSize();
20411 }
20412 return size;
20413 }
20414
20415 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020020416 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050020417 public void MergeFrom(BoolMessage other) {
20418 if (other == null) {
20419 return;
20420 }
20421 if (other.HasData) {
20422 Data = other.Data;
20423 }
20424 _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
20425 }
20426
20427 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020020428 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050020429 public void MergeFrom(pb::CodedInputStream input) {
Jan Tattermusch7cb55972020-06-02 09:26:25 +020020430 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
Jan Tattermusch3196ef92020-04-02 15:36:16 +020020431 input.ReadRawMessage(this);
Jan Tattermusch7cb55972020-06-02 09:26:25 +020020432 #else
20433 uint tag;
20434 while ((tag = input.ReadTag()) != 0) {
20435 switch(tag) {
20436 default:
20437 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
20438 break;
20439 case 8: {
20440 Data = input.ReadBool();
20441 break;
20442 }
20443 }
20444 }
20445 #endif
Jan Tattermusch3196ef92020-04-02 15:36:16 +020020446 }
20447
Jan Tattermusch7cb55972020-06-02 09:26:25 +020020448 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
Jan Tattermusch3196ef92020-04-02 15:36:16 +020020449 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020020450 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Jan Tattermusch0df7ddc2020-04-14 12:41:03 +020020451 void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
Sydney Acksman8a57ec82019-03-21 17:36:36 -050020452 uint tag;
20453 while ((tag = input.ReadTag()) != 0) {
20454 switch(tag) {
20455 default:
Jan Tattermusch3196ef92020-04-02 15:36:16 +020020456 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
Sydney Acksman8a57ec82019-03-21 17:36:36 -050020457 break;
20458 case 8: {
20459 Data = input.ReadBool();
20460 break;
20461 }
20462 }
20463 }
20464 }
Jan Tattermusch7cb55972020-06-02 09:26:25 +020020465 #endif
Sydney Acksman8a57ec82019-03-21 17:36:36 -050020466
20467 }
20468
20469 /// <summary>
20470 /// Test oneofs.
20471 /// </summary>
Jan Tattermusch7cb55972020-06-02 09:26:25 +020020472 public sealed partial class TestOneof : pb::IMessage<TestOneof>
20473 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
20474 , pb::IBufferMessage
20475 #endif
20476 {
Sydney Acksman8a57ec82019-03-21 17:36:36 -050020477 private static readonly pb::MessageParser<TestOneof> _parser = new pb::MessageParser<TestOneof>(() => new TestOneof());
20478 private pb::UnknownFieldSet _unknownFields;
Sydney Acksman8a57ec82019-03-21 17:36:36 -050020479 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020020480 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050020481 public static pb::MessageParser<TestOneof> Parser { get { return _parser; } }
20482
20483 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020020484 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050020485 public static pbr::MessageDescriptor Descriptor {
20486 get { return global::Google.Protobuf.TestProtos.Proto2.UnittestReflection.Descriptor.MessageTypes[43]; }
20487 }
20488
20489 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020020490 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050020491 pbr::MessageDescriptor pb::IMessage.Descriptor {
20492 get { return Descriptor; }
20493 }
20494
20495 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020020496 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050020497 public TestOneof() {
20498 OnConstruction();
20499 }
20500
20501 partial void OnConstruction();
20502
20503 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020020504 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050020505 public TestOneof(TestOneof other) : this() {
Sydney Acksman8a57ec82019-03-21 17:36:36 -050020506 switch (other.FooCase) {
20507 case FooOneofCase.FooInt:
20508 FooInt = other.FooInt;
20509 break;
20510 case FooOneofCase.FooString:
20511 FooString = other.FooString;
20512 break;
20513 case FooOneofCase.FooMessage:
20514 FooMessage = other.FooMessage.Clone();
20515 break;
20516 case FooOneofCase.FooGroup:
20517 FooGroup = other.FooGroup.Clone();
20518 break;
20519 }
20520
20521 _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
20522 }
20523
20524 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020020525 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050020526 public TestOneof Clone() {
20527 return new TestOneof(this);
20528 }
20529
20530 /// <summary>Field number for the "foo_int" field.</summary>
20531 public const int FooIntFieldNumber = 1;
20532 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020020533 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050020534 public int FooInt {
20535 get { return HasFooInt ? (int) foo_ : 0; }
20536 set {
20537 foo_ = value;
20538 fooCase_ = FooOneofCase.FooInt;
20539 }
20540 }
20541 /// <summary>Gets whether the "foo_int" field is set</summary>
20542 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020020543 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050020544 public bool HasFooInt {
20545 get { return fooCase_ == FooOneofCase.FooInt; }
20546 }
20547 /// <summary> Clears the value of the oneof if it's currently set to "foo_int" </summary>
20548 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020020549 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050020550 public void ClearFooInt() {
20551 if (HasFooInt) {
20552 ClearFoo();
20553 }
20554 }
20555
20556 /// <summary>Field number for the "foo_string" field.</summary>
20557 public const int FooStringFieldNumber = 2;
20558 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020020559 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050020560 public string FooString {
20561 get { return HasFooString ? (string) foo_ : ""; }
20562 set {
20563 foo_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
20564 fooCase_ = FooOneofCase.FooString;
20565 }
20566 }
20567 /// <summary>Gets whether the "foo_string" field is set</summary>
20568 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020020569 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050020570 public bool HasFooString {
20571 get { return fooCase_ == FooOneofCase.FooString; }
20572 }
20573 /// <summary> Clears the value of the oneof if it's currently set to "foo_string" </summary>
20574 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020020575 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050020576 public void ClearFooString() {
20577 if (HasFooString) {
20578 ClearFoo();
20579 }
20580 }
20581
20582 /// <summary>Field number for the "foo_message" field.</summary>
20583 public const int FooMessageFieldNumber = 3;
20584 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020020585 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050020586 public global::Google.Protobuf.TestProtos.Proto2.TestAllTypes FooMessage {
Jon Skeet9926c952020-04-27 07:18:45 +010020587 get { return fooCase_ == FooOneofCase.FooMessage ? (global::Google.Protobuf.TestProtos.Proto2.TestAllTypes) foo_ : null; }
Sydney Acksman8a57ec82019-03-21 17:36:36 -050020588 set {
20589 foo_ = value;
20590 fooCase_ = value == null ? FooOneofCase.None : FooOneofCase.FooMessage;
20591 }
20592 }
Sydney Acksman8a57ec82019-03-21 17:36:36 -050020593
20594 /// <summary>Field number for the "foogroup" field.</summary>
20595 public const int FooGroupFieldNumber = 4;
20596 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020020597 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050020598 public global::Google.Protobuf.TestProtos.Proto2.TestOneof.Types.FooGroup FooGroup {
20599 get { return HasFooGroup ? (global::Google.Protobuf.TestProtos.Proto2.TestOneof.Types.FooGroup) foo_ : null; }
20600 set {
20601 foo_ = value;
20602 fooCase_ = value == null ? FooOneofCase.None : FooOneofCase.FooGroup;
20603 }
20604 }
20605 /// <summary>Gets whether the "foogroup" field is set</summary>
20606 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020020607 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050020608 public bool HasFooGroup {
20609 get { return fooCase_ == FooOneofCase.FooGroup; }
20610 }
20611 /// <summary> Clears the value of the oneof if it's currently set to "foogroup" </summary>
20612 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020020613 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050020614 public void ClearFooGroup() {
20615 if (HasFooGroup) {
20616 ClearFoo();
20617 }
20618 }
20619
20620 private object foo_;
20621 /// <summary>Enum of possible cases for the "foo" oneof.</summary>
20622 public enum FooOneofCase {
20623 None = 0,
20624 FooInt = 1,
20625 FooString = 2,
20626 FooMessage = 3,
20627 FooGroup = 4,
20628 }
20629 private FooOneofCase fooCase_ = FooOneofCase.None;
20630 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020020631 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050020632 public FooOneofCase FooCase {
20633 get { return fooCase_; }
20634 }
20635
20636 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020020637 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050020638 public void ClearFoo() {
20639 fooCase_ = FooOneofCase.None;
20640 foo_ = null;
20641 }
20642
20643 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020020644 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050020645 public override bool Equals(object other) {
20646 return Equals(other as TestOneof);
20647 }
20648
20649 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020020650 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050020651 public bool Equals(TestOneof other) {
20652 if (ReferenceEquals(other, null)) {
20653 return false;
20654 }
20655 if (ReferenceEquals(other, this)) {
20656 return true;
20657 }
20658 if (FooInt != other.FooInt) return false;
20659 if (FooString != other.FooString) return false;
20660 if (!object.Equals(FooMessage, other.FooMessage)) return false;
20661 if (!object.Equals(FooGroup, other.FooGroup)) return false;
20662 if (FooCase != other.FooCase) return false;
20663 return Equals(_unknownFields, other._unknownFields);
20664 }
20665
20666 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020020667 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050020668 public override int GetHashCode() {
20669 int hash = 1;
20670 if (HasFooInt) hash ^= FooInt.GetHashCode();
20671 if (HasFooString) hash ^= FooString.GetHashCode();
Jon Skeet9926c952020-04-27 07:18:45 +010020672 if (fooCase_ == FooOneofCase.FooMessage) hash ^= FooMessage.GetHashCode();
Sydney Acksman8a57ec82019-03-21 17:36:36 -050020673 if (HasFooGroup) hash ^= FooGroup.GetHashCode();
20674 hash ^= (int) fooCase_;
20675 if (_unknownFields != null) {
20676 hash ^= _unknownFields.GetHashCode();
20677 }
20678 return hash;
20679 }
20680
20681 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020020682 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050020683 public override string ToString() {
20684 return pb::JsonFormatter.ToDiagnosticString(this);
20685 }
20686
20687 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020020688 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050020689 public void WriteTo(pb::CodedOutputStream output) {
Jan Tattermusch125e4ad2020-05-29 04:32:43 -040020690 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
20691 output.WriteRawMessage(this);
20692 #else
Sydney Acksman8a57ec82019-03-21 17:36:36 -050020693 if (HasFooInt) {
20694 output.WriteRawTag(8);
20695 output.WriteInt32(FooInt);
20696 }
20697 if (HasFooString) {
20698 output.WriteRawTag(18);
20699 output.WriteString(FooString);
20700 }
Jon Skeet9926c952020-04-27 07:18:45 +010020701 if (fooCase_ == FooOneofCase.FooMessage) {
Sydney Acksman8a57ec82019-03-21 17:36:36 -050020702 output.WriteRawTag(26);
20703 output.WriteMessage(FooMessage);
20704 }
20705 if (HasFooGroup) {
20706 output.WriteRawTag(35);
20707 output.WriteGroup(FooGroup);
20708 output.WriteRawTag(36);
20709 }
20710 if (_unknownFields != null) {
20711 _unknownFields.WriteTo(output);
20712 }
Jan Tattermusch125e4ad2020-05-29 04:32:43 -040020713 #endif
Sydney Acksman8a57ec82019-03-21 17:36:36 -050020714 }
20715
Jan Tattermusch125e4ad2020-05-29 04:32:43 -040020716 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
20717 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020020718 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Jan Tattermusch125e4ad2020-05-29 04:32:43 -040020719 void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
20720 if (HasFooInt) {
20721 output.WriteRawTag(8);
20722 output.WriteInt32(FooInt);
20723 }
20724 if (HasFooString) {
20725 output.WriteRawTag(18);
20726 output.WriteString(FooString);
20727 }
20728 if (fooCase_ == FooOneofCase.FooMessage) {
20729 output.WriteRawTag(26);
20730 output.WriteMessage(FooMessage);
20731 }
20732 if (HasFooGroup) {
20733 output.WriteRawTag(35);
20734 output.WriteGroup(FooGroup);
20735 output.WriteRawTag(36);
20736 }
20737 if (_unknownFields != null) {
20738 _unknownFields.WriteTo(ref output);
20739 }
20740 }
20741 #endif
20742
Sydney Acksman8a57ec82019-03-21 17:36:36 -050020743 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020020744 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050020745 public int CalculateSize() {
20746 int size = 0;
20747 if (HasFooInt) {
20748 size += 1 + pb::CodedOutputStream.ComputeInt32Size(FooInt);
20749 }
20750 if (HasFooString) {
20751 size += 1 + pb::CodedOutputStream.ComputeStringSize(FooString);
20752 }
Jon Skeet9926c952020-04-27 07:18:45 +010020753 if (fooCase_ == FooOneofCase.FooMessage) {
Sydney Acksman8a57ec82019-03-21 17:36:36 -050020754 size += 1 + pb::CodedOutputStream.ComputeMessageSize(FooMessage);
20755 }
20756 if (HasFooGroup) {
20757 size += 2 + pb::CodedOutputStream.ComputeGroupSize(FooGroup);
20758 }
20759 if (_unknownFields != null) {
20760 size += _unknownFields.CalculateSize();
20761 }
20762 return size;
20763 }
20764
20765 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020020766 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050020767 public void MergeFrom(TestOneof other) {
20768 if (other == null) {
20769 return;
20770 }
20771 switch (other.FooCase) {
20772 case FooOneofCase.FooInt:
20773 FooInt = other.FooInt;
20774 break;
20775 case FooOneofCase.FooString:
20776 FooString = other.FooString;
20777 break;
20778 case FooOneofCase.FooMessage:
20779 if (FooMessage == null) {
20780 FooMessage = new global::Google.Protobuf.TestProtos.Proto2.TestAllTypes();
20781 }
20782 FooMessage.MergeFrom(other.FooMessage);
20783 break;
20784 case FooOneofCase.FooGroup:
20785 if (FooGroup == null) {
20786 FooGroup = new global::Google.Protobuf.TestProtos.Proto2.TestOneof.Types.FooGroup();
20787 }
20788 FooGroup.MergeFrom(other.FooGroup);
20789 break;
20790 }
20791
20792 _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
20793 }
20794
20795 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020020796 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050020797 public void MergeFrom(pb::CodedInputStream input) {
Jan Tattermusch7cb55972020-06-02 09:26:25 +020020798 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
Jan Tattermusch3196ef92020-04-02 15:36:16 +020020799 input.ReadRawMessage(this);
Jan Tattermusch7cb55972020-06-02 09:26:25 +020020800 #else
20801 uint tag;
20802 while ((tag = input.ReadTag()) != 0) {
20803 switch(tag) {
20804 default:
20805 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
20806 break;
20807 case 8: {
20808 FooInt = input.ReadInt32();
20809 break;
20810 }
20811 case 18: {
20812 FooString = input.ReadString();
20813 break;
20814 }
20815 case 26: {
20816 global::Google.Protobuf.TestProtos.Proto2.TestAllTypes subBuilder = new global::Google.Protobuf.TestProtos.Proto2.TestAllTypes();
20817 if (fooCase_ == FooOneofCase.FooMessage) {
20818 subBuilder.MergeFrom(FooMessage);
20819 }
20820 input.ReadMessage(subBuilder);
20821 FooMessage = subBuilder;
20822 break;
20823 }
20824 case 35: {
20825 global::Google.Protobuf.TestProtos.Proto2.TestOneof.Types.FooGroup subBuilder = new global::Google.Protobuf.TestProtos.Proto2.TestOneof.Types.FooGroup();
20826 if (HasFooGroup) {
20827 subBuilder.MergeFrom(FooGroup);
20828 }
20829 input.ReadGroup(subBuilder);
20830 FooGroup = subBuilder;
20831 break;
20832 }
20833 }
20834 }
20835 #endif
Jan Tattermusch3196ef92020-04-02 15:36:16 +020020836 }
20837
Jan Tattermusch7cb55972020-06-02 09:26:25 +020020838 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
Jan Tattermusch3196ef92020-04-02 15:36:16 +020020839 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020020840 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Jan Tattermusch0df7ddc2020-04-14 12:41:03 +020020841 void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
Sydney Acksman8a57ec82019-03-21 17:36:36 -050020842 uint tag;
20843 while ((tag = input.ReadTag()) != 0) {
20844 switch(tag) {
20845 default:
Jan Tattermusch3196ef92020-04-02 15:36:16 +020020846 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
Sydney Acksman8a57ec82019-03-21 17:36:36 -050020847 break;
20848 case 8: {
20849 FooInt = input.ReadInt32();
20850 break;
20851 }
20852 case 18: {
20853 FooString = input.ReadString();
20854 break;
20855 }
20856 case 26: {
20857 global::Google.Protobuf.TestProtos.Proto2.TestAllTypes subBuilder = new global::Google.Protobuf.TestProtos.Proto2.TestAllTypes();
Jon Skeet9926c952020-04-27 07:18:45 +010020858 if (fooCase_ == FooOneofCase.FooMessage) {
Sydney Acksman8a57ec82019-03-21 17:36:36 -050020859 subBuilder.MergeFrom(FooMessage);
20860 }
20861 input.ReadMessage(subBuilder);
20862 FooMessage = subBuilder;
20863 break;
20864 }
20865 case 35: {
20866 global::Google.Protobuf.TestProtos.Proto2.TestOneof.Types.FooGroup subBuilder = new global::Google.Protobuf.TestProtos.Proto2.TestOneof.Types.FooGroup();
20867 if (HasFooGroup) {
20868 subBuilder.MergeFrom(FooGroup);
20869 }
20870 input.ReadGroup(subBuilder);
20871 FooGroup = subBuilder;
20872 break;
20873 }
20874 }
20875 }
20876 }
Jan Tattermusch7cb55972020-06-02 09:26:25 +020020877 #endif
Sydney Acksman8a57ec82019-03-21 17:36:36 -050020878
20879 #region Nested types
20880 /// <summary>Container for nested types declared in the TestOneof message type.</summary>
20881 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020020882 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050020883 public static partial class Types {
Jan Tattermusch7cb55972020-06-02 09:26:25 +020020884 public sealed partial class FooGroup : pb::IMessage<FooGroup>
20885 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
20886 , pb::IBufferMessage
20887 #endif
20888 {
Sydney Acksman8a57ec82019-03-21 17:36:36 -050020889 private static readonly pb::MessageParser<FooGroup> _parser = new pb::MessageParser<FooGroup>(() => new FooGroup());
20890 private pb::UnknownFieldSet _unknownFields;
20891 private int _hasBits0;
20892 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020020893 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050020894 public static pb::MessageParser<FooGroup> Parser { get { return _parser; } }
20895
20896 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020020897 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050020898 public static pbr::MessageDescriptor Descriptor {
20899 get { return global::Google.Protobuf.TestProtos.Proto2.TestOneof.Descriptor.NestedTypes[0]; }
20900 }
20901
20902 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020020903 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050020904 pbr::MessageDescriptor pb::IMessage.Descriptor {
20905 get { return Descriptor; }
20906 }
20907
20908 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020020909 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050020910 public FooGroup() {
20911 OnConstruction();
20912 }
20913
20914 partial void OnConstruction();
20915
20916 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020020917 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050020918 public FooGroup(FooGroup other) : this() {
20919 _hasBits0 = other._hasBits0;
20920 a_ = other.a_;
20921 b_ = other.b_;
20922 _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
20923 }
20924
20925 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020020926 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050020927 public FooGroup Clone() {
20928 return new FooGroup(this);
20929 }
20930
20931 /// <summary>Field number for the "a" field.</summary>
20932 public const int AFieldNumber = 5;
20933 private readonly static int ADefaultValue = 0;
20934
20935 private int a_;
20936 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020020937 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050020938 public int A {
20939 get { if ((_hasBits0 & 1) != 0) { return a_; } else { return ADefaultValue; } }
20940 set {
20941 _hasBits0 |= 1;
20942 a_ = value;
20943 }
20944 }
20945 /// <summary>Gets whether the "a" field is set</summary>
20946 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020020947 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050020948 public bool HasA {
20949 get { return (_hasBits0 & 1) != 0; }
20950 }
20951 /// <summary>Clears the value of the "a" field</summary>
20952 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020020953 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050020954 public void ClearA() {
20955 _hasBits0 &= ~1;
20956 }
20957
20958 /// <summary>Field number for the "b" field.</summary>
20959 public const int BFieldNumber = 6;
20960 private readonly static string BDefaultValue = "";
20961
20962 private string b_;
20963 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020020964 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050020965 public string B {
20966 get { return b_ ?? BDefaultValue; }
20967 set {
20968 b_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
20969 }
20970 }
20971 /// <summary>Gets whether the "b" field is set</summary>
20972 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020020973 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050020974 public bool HasB {
20975 get { return b_ != null; }
20976 }
20977 /// <summary>Clears the value of the "b" field</summary>
20978 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020020979 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050020980 public void ClearB() {
20981 b_ = null;
20982 }
20983
20984 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020020985 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050020986 public override bool Equals(object other) {
20987 return Equals(other as FooGroup);
20988 }
20989
20990 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020020991 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050020992 public bool Equals(FooGroup other) {
20993 if (ReferenceEquals(other, null)) {
20994 return false;
20995 }
20996 if (ReferenceEquals(other, this)) {
20997 return true;
20998 }
20999 if (A != other.A) return false;
21000 if (B != other.B) return false;
21001 return Equals(_unknownFields, other._unknownFields);
21002 }
21003
21004 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020021005 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050021006 public override int GetHashCode() {
21007 int hash = 1;
21008 if (HasA) hash ^= A.GetHashCode();
21009 if (HasB) hash ^= B.GetHashCode();
21010 if (_unknownFields != null) {
21011 hash ^= _unknownFields.GetHashCode();
21012 }
21013 return hash;
21014 }
21015
21016 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020021017 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050021018 public override string ToString() {
21019 return pb::JsonFormatter.ToDiagnosticString(this);
21020 }
21021
21022 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020021023 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050021024 public void WriteTo(pb::CodedOutputStream output) {
Jan Tattermusch125e4ad2020-05-29 04:32:43 -040021025 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
21026 output.WriteRawMessage(this);
21027 #else
Sydney Acksman8a57ec82019-03-21 17:36:36 -050021028 if (HasA) {
21029 output.WriteRawTag(40);
21030 output.WriteInt32(A);
21031 }
21032 if (HasB) {
21033 output.WriteRawTag(50);
21034 output.WriteString(B);
21035 }
21036 if (_unknownFields != null) {
21037 _unknownFields.WriteTo(output);
21038 }
Jan Tattermusch125e4ad2020-05-29 04:32:43 -040021039 #endif
Sydney Acksman8a57ec82019-03-21 17:36:36 -050021040 }
21041
Jan Tattermusch125e4ad2020-05-29 04:32:43 -040021042 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
21043 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020021044 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Jan Tattermusch125e4ad2020-05-29 04:32:43 -040021045 void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
21046 if (HasA) {
21047 output.WriteRawTag(40);
21048 output.WriteInt32(A);
21049 }
21050 if (HasB) {
21051 output.WriteRawTag(50);
21052 output.WriteString(B);
21053 }
21054 if (_unknownFields != null) {
21055 _unknownFields.WriteTo(ref output);
21056 }
21057 }
21058 #endif
21059
Sydney Acksman8a57ec82019-03-21 17:36:36 -050021060 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020021061 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050021062 public int CalculateSize() {
21063 int size = 0;
21064 if (HasA) {
21065 size += 1 + pb::CodedOutputStream.ComputeInt32Size(A);
21066 }
21067 if (HasB) {
21068 size += 1 + pb::CodedOutputStream.ComputeStringSize(B);
21069 }
21070 if (_unknownFields != null) {
21071 size += _unknownFields.CalculateSize();
21072 }
21073 return size;
21074 }
21075
21076 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020021077 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050021078 public void MergeFrom(FooGroup other) {
21079 if (other == null) {
21080 return;
21081 }
21082 if (other.HasA) {
21083 A = other.A;
21084 }
21085 if (other.HasB) {
21086 B = other.B;
21087 }
21088 _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
21089 }
21090
21091 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020021092 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050021093 public void MergeFrom(pb::CodedInputStream input) {
Jan Tattermusch7cb55972020-06-02 09:26:25 +020021094 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
Jan Tattermusch3196ef92020-04-02 15:36:16 +020021095 input.ReadRawMessage(this);
Jan Tattermusch7cb55972020-06-02 09:26:25 +020021096 #else
21097 uint tag;
21098 while ((tag = input.ReadTag()) != 0) {
21099 switch(tag) {
21100 case 36:
21101 return;
21102 default:
21103 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
21104 break;
21105 case 40: {
21106 A = input.ReadInt32();
21107 break;
21108 }
21109 case 50: {
21110 B = input.ReadString();
21111 break;
21112 }
21113 }
21114 }
21115 #endif
Jan Tattermusch3196ef92020-04-02 15:36:16 +020021116 }
21117
Jan Tattermusch7cb55972020-06-02 09:26:25 +020021118 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
Jan Tattermusch3196ef92020-04-02 15:36:16 +020021119 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020021120 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Jan Tattermusch0df7ddc2020-04-14 12:41:03 +020021121 void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
Sydney Acksman8a57ec82019-03-21 17:36:36 -050021122 uint tag;
21123 while ((tag = input.ReadTag()) != 0) {
21124 switch(tag) {
21125 case 36:
21126 return;
21127 default:
Jan Tattermusch3196ef92020-04-02 15:36:16 +020021128 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
Sydney Acksman8a57ec82019-03-21 17:36:36 -050021129 break;
21130 case 40: {
21131 A = input.ReadInt32();
21132 break;
21133 }
21134 case 50: {
21135 B = input.ReadString();
21136 break;
21137 }
21138 }
21139 }
21140 }
Jan Tattermusch7cb55972020-06-02 09:26:25 +020021141 #endif
Sydney Acksman8a57ec82019-03-21 17:36:36 -050021142
21143 }
21144
21145 }
21146 #endregion
21147
21148 }
21149
Jan Tattermusch7cb55972020-06-02 09:26:25 +020021150 public sealed partial class TestOneofBackwardsCompatible : pb::IMessage<TestOneofBackwardsCompatible>
21151 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
21152 , pb::IBufferMessage
21153 #endif
21154 {
Sydney Acksman8a57ec82019-03-21 17:36:36 -050021155 private static readonly pb::MessageParser<TestOneofBackwardsCompatible> _parser = new pb::MessageParser<TestOneofBackwardsCompatible>(() => new TestOneofBackwardsCompatible());
21156 private pb::UnknownFieldSet _unknownFields;
21157 private int _hasBits0;
21158 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020021159 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050021160 public static pb::MessageParser<TestOneofBackwardsCompatible> Parser { get { return _parser; } }
21161
21162 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020021163 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050021164 public static pbr::MessageDescriptor Descriptor {
21165 get { return global::Google.Protobuf.TestProtos.Proto2.UnittestReflection.Descriptor.MessageTypes[44]; }
21166 }
21167
21168 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020021169 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050021170 pbr::MessageDescriptor pb::IMessage.Descriptor {
21171 get { return Descriptor; }
21172 }
21173
21174 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020021175 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050021176 public TestOneofBackwardsCompatible() {
21177 OnConstruction();
21178 }
21179
21180 partial void OnConstruction();
21181
21182 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020021183 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050021184 public TestOneofBackwardsCompatible(TestOneofBackwardsCompatible other) : this() {
21185 _hasBits0 = other._hasBits0;
21186 fooInt_ = other.fooInt_;
21187 fooString_ = other.fooString_;
Jon Skeet9926c952020-04-27 07:18:45 +010021188 fooMessage_ = other.fooMessage_ != null ? other.fooMessage_.Clone() : null;
Sydney Acksman8a57ec82019-03-21 17:36:36 -050021189 fooGroup_ = other.HasFooGroup ? other.fooGroup_.Clone() : null;
21190 _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
21191 }
21192
21193 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020021194 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050021195 public TestOneofBackwardsCompatible Clone() {
21196 return new TestOneofBackwardsCompatible(this);
21197 }
21198
21199 /// <summary>Field number for the "foo_int" field.</summary>
21200 public const int FooIntFieldNumber = 1;
21201 private readonly static int FooIntDefaultValue = 0;
21202
21203 private int fooInt_;
21204 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020021205 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050021206 public int FooInt {
21207 get { if ((_hasBits0 & 1) != 0) { return fooInt_; } else { return FooIntDefaultValue; } }
21208 set {
21209 _hasBits0 |= 1;
21210 fooInt_ = value;
21211 }
21212 }
21213 /// <summary>Gets whether the "foo_int" field is set</summary>
21214 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020021215 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050021216 public bool HasFooInt {
21217 get { return (_hasBits0 & 1) != 0; }
21218 }
21219 /// <summary>Clears the value of the "foo_int" field</summary>
21220 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020021221 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050021222 public void ClearFooInt() {
21223 _hasBits0 &= ~1;
21224 }
21225
21226 /// <summary>Field number for the "foo_string" field.</summary>
21227 public const int FooStringFieldNumber = 2;
21228 private readonly static string FooStringDefaultValue = "";
21229
21230 private string fooString_;
21231 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020021232 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050021233 public string FooString {
21234 get { return fooString_ ?? FooStringDefaultValue; }
21235 set {
21236 fooString_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
21237 }
21238 }
21239 /// <summary>Gets whether the "foo_string" field is set</summary>
21240 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020021241 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050021242 public bool HasFooString {
21243 get { return fooString_ != null; }
21244 }
21245 /// <summary>Clears the value of the "foo_string" field</summary>
21246 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020021247 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050021248 public void ClearFooString() {
21249 fooString_ = null;
21250 }
21251
21252 /// <summary>Field number for the "foo_message" field.</summary>
21253 public const int FooMessageFieldNumber = 3;
21254 private global::Google.Protobuf.TestProtos.Proto2.TestAllTypes fooMessage_;
21255 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020021256 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050021257 public global::Google.Protobuf.TestProtos.Proto2.TestAllTypes FooMessage {
21258 get { return fooMessage_; }
21259 set {
21260 fooMessage_ = value;
21261 }
21262 }
Sydney Acksman8a57ec82019-03-21 17:36:36 -050021263
21264 /// <summary>Field number for the "foogroup" field.</summary>
21265 public const int FooGroupFieldNumber = 4;
21266 private global::Google.Protobuf.TestProtos.Proto2.TestOneofBackwardsCompatible.Types.FooGroup fooGroup_;
21267 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020021268 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050021269 public global::Google.Protobuf.TestProtos.Proto2.TestOneofBackwardsCompatible.Types.FooGroup FooGroup {
21270 get { return fooGroup_; }
21271 set {
21272 fooGroup_ = value;
21273 }
21274 }
21275 /// <summary>Gets whether the foogroup field is set</summary>
21276 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020021277 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050021278 public bool HasFooGroup {
21279 get { return fooGroup_ != null; }
21280 }
21281 /// <summary>Clears the value of the foogroup field</summary>
21282 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020021283 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050021284 public void ClearFooGroup() {
21285 fooGroup_ = null;
21286 }
21287
21288 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020021289 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050021290 public override bool Equals(object other) {
21291 return Equals(other as TestOneofBackwardsCompatible);
21292 }
21293
21294 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020021295 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050021296 public bool Equals(TestOneofBackwardsCompatible other) {
21297 if (ReferenceEquals(other, null)) {
21298 return false;
21299 }
21300 if (ReferenceEquals(other, this)) {
21301 return true;
21302 }
21303 if (FooInt != other.FooInt) return false;
21304 if (FooString != other.FooString) return false;
21305 if (!object.Equals(FooMessage, other.FooMessage)) return false;
21306 if (!object.Equals(FooGroup, other.FooGroup)) return false;
21307 return Equals(_unknownFields, other._unknownFields);
21308 }
21309
21310 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020021311 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050021312 public override int GetHashCode() {
21313 int hash = 1;
21314 if (HasFooInt) hash ^= FooInt.GetHashCode();
21315 if (HasFooString) hash ^= FooString.GetHashCode();
Jon Skeet9926c952020-04-27 07:18:45 +010021316 if (fooMessage_ != null) hash ^= FooMessage.GetHashCode();
Sydney Acksman8a57ec82019-03-21 17:36:36 -050021317 if (HasFooGroup) hash ^= FooGroup.GetHashCode();
21318 if (_unknownFields != null) {
21319 hash ^= _unknownFields.GetHashCode();
21320 }
21321 return hash;
21322 }
21323
21324 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020021325 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050021326 public override string ToString() {
21327 return pb::JsonFormatter.ToDiagnosticString(this);
21328 }
21329
21330 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020021331 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050021332 public void WriteTo(pb::CodedOutputStream output) {
Jan Tattermusch125e4ad2020-05-29 04:32:43 -040021333 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
21334 output.WriteRawMessage(this);
21335 #else
Sydney Acksman8a57ec82019-03-21 17:36:36 -050021336 if (HasFooInt) {
21337 output.WriteRawTag(8);
21338 output.WriteInt32(FooInt);
21339 }
21340 if (HasFooString) {
21341 output.WriteRawTag(18);
21342 output.WriteString(FooString);
21343 }
Jon Skeet9926c952020-04-27 07:18:45 +010021344 if (fooMessage_ != null) {
Sydney Acksman8a57ec82019-03-21 17:36:36 -050021345 output.WriteRawTag(26);
21346 output.WriteMessage(FooMessage);
21347 }
21348 if (HasFooGroup) {
21349 output.WriteRawTag(35);
21350 output.WriteGroup(FooGroup);
21351 output.WriteRawTag(36);
21352 }
21353 if (_unknownFields != null) {
21354 _unknownFields.WriteTo(output);
21355 }
Jan Tattermusch125e4ad2020-05-29 04:32:43 -040021356 #endif
Sydney Acksman8a57ec82019-03-21 17:36:36 -050021357 }
21358
Jan Tattermusch125e4ad2020-05-29 04:32:43 -040021359 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
21360 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020021361 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Jan Tattermusch125e4ad2020-05-29 04:32:43 -040021362 void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
21363 if (HasFooInt) {
21364 output.WriteRawTag(8);
21365 output.WriteInt32(FooInt);
21366 }
21367 if (HasFooString) {
21368 output.WriteRawTag(18);
21369 output.WriteString(FooString);
21370 }
21371 if (fooMessage_ != null) {
21372 output.WriteRawTag(26);
21373 output.WriteMessage(FooMessage);
21374 }
21375 if (HasFooGroup) {
21376 output.WriteRawTag(35);
21377 output.WriteGroup(FooGroup);
21378 output.WriteRawTag(36);
21379 }
21380 if (_unknownFields != null) {
21381 _unknownFields.WriteTo(ref output);
21382 }
21383 }
21384 #endif
21385
Sydney Acksman8a57ec82019-03-21 17:36:36 -050021386 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020021387 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050021388 public int CalculateSize() {
21389 int size = 0;
21390 if (HasFooInt) {
21391 size += 1 + pb::CodedOutputStream.ComputeInt32Size(FooInt);
21392 }
21393 if (HasFooString) {
21394 size += 1 + pb::CodedOutputStream.ComputeStringSize(FooString);
21395 }
Jon Skeet9926c952020-04-27 07:18:45 +010021396 if (fooMessage_ != null) {
Sydney Acksman8a57ec82019-03-21 17:36:36 -050021397 size += 1 + pb::CodedOutputStream.ComputeMessageSize(FooMessage);
21398 }
21399 if (HasFooGroup) {
21400 size += 2 + pb::CodedOutputStream.ComputeGroupSize(FooGroup);
21401 }
21402 if (_unknownFields != null) {
21403 size += _unknownFields.CalculateSize();
21404 }
21405 return size;
21406 }
21407
21408 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020021409 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050021410 public void MergeFrom(TestOneofBackwardsCompatible other) {
21411 if (other == null) {
21412 return;
21413 }
21414 if (other.HasFooInt) {
21415 FooInt = other.FooInt;
21416 }
21417 if (other.HasFooString) {
21418 FooString = other.FooString;
21419 }
Jon Skeet9926c952020-04-27 07:18:45 +010021420 if (other.fooMessage_ != null) {
21421 if (fooMessage_ == null) {
Sydney Acksman8a57ec82019-03-21 17:36:36 -050021422 FooMessage = new global::Google.Protobuf.TestProtos.Proto2.TestAllTypes();
21423 }
21424 FooMessage.MergeFrom(other.FooMessage);
21425 }
21426 if (other.HasFooGroup) {
21427 if (!HasFooGroup) {
21428 FooGroup = new global::Google.Protobuf.TestProtos.Proto2.TestOneofBackwardsCompatible.Types.FooGroup();
21429 }
21430 FooGroup.MergeFrom(other.FooGroup);
21431 }
21432 _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
21433 }
21434
21435 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020021436 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050021437 public void MergeFrom(pb::CodedInputStream input) {
Jan Tattermusch7cb55972020-06-02 09:26:25 +020021438 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
Jan Tattermusch3196ef92020-04-02 15:36:16 +020021439 input.ReadRawMessage(this);
Jan Tattermusch7cb55972020-06-02 09:26:25 +020021440 #else
21441 uint tag;
21442 while ((tag = input.ReadTag()) != 0) {
21443 switch(tag) {
21444 default:
21445 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
21446 break;
21447 case 8: {
21448 FooInt = input.ReadInt32();
21449 break;
21450 }
21451 case 18: {
21452 FooString = input.ReadString();
21453 break;
21454 }
21455 case 26: {
21456 if (fooMessage_ == null) {
21457 FooMessage = new global::Google.Protobuf.TestProtos.Proto2.TestAllTypes();
21458 }
21459 input.ReadMessage(FooMessage);
21460 break;
21461 }
21462 case 35: {
21463 if (!HasFooGroup) {
21464 FooGroup = new global::Google.Protobuf.TestProtos.Proto2.TestOneofBackwardsCompatible.Types.FooGroup();
21465 }
21466 input.ReadGroup(FooGroup);
21467 break;
21468 }
21469 }
21470 }
21471 #endif
Jan Tattermusch3196ef92020-04-02 15:36:16 +020021472 }
21473
Jan Tattermusch7cb55972020-06-02 09:26:25 +020021474 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
Jan Tattermusch3196ef92020-04-02 15:36:16 +020021475 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020021476 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Jan Tattermusch0df7ddc2020-04-14 12:41:03 +020021477 void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
Sydney Acksman8a57ec82019-03-21 17:36:36 -050021478 uint tag;
21479 while ((tag = input.ReadTag()) != 0) {
21480 switch(tag) {
21481 default:
Jan Tattermusch3196ef92020-04-02 15:36:16 +020021482 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
Sydney Acksman8a57ec82019-03-21 17:36:36 -050021483 break;
21484 case 8: {
21485 FooInt = input.ReadInt32();
21486 break;
21487 }
21488 case 18: {
21489 FooString = input.ReadString();
21490 break;
21491 }
21492 case 26: {
Jon Skeet9926c952020-04-27 07:18:45 +010021493 if (fooMessage_ == null) {
Sydney Acksman8a57ec82019-03-21 17:36:36 -050021494 FooMessage = new global::Google.Protobuf.TestProtos.Proto2.TestAllTypes();
21495 }
21496 input.ReadMessage(FooMessage);
21497 break;
21498 }
21499 case 35: {
21500 if (!HasFooGroup) {
21501 FooGroup = new global::Google.Protobuf.TestProtos.Proto2.TestOneofBackwardsCompatible.Types.FooGroup();
21502 }
21503 input.ReadGroup(FooGroup);
21504 break;
21505 }
21506 }
21507 }
21508 }
Jan Tattermusch7cb55972020-06-02 09:26:25 +020021509 #endif
Sydney Acksman8a57ec82019-03-21 17:36:36 -050021510
21511 #region Nested types
21512 /// <summary>Container for nested types declared in the TestOneofBackwardsCompatible message type.</summary>
21513 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020021514 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050021515 public static partial class Types {
Jan Tattermusch7cb55972020-06-02 09:26:25 +020021516 public sealed partial class FooGroup : pb::IMessage<FooGroup>
21517 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
21518 , pb::IBufferMessage
21519 #endif
21520 {
Sydney Acksman8a57ec82019-03-21 17:36:36 -050021521 private static readonly pb::MessageParser<FooGroup> _parser = new pb::MessageParser<FooGroup>(() => new FooGroup());
21522 private pb::UnknownFieldSet _unknownFields;
21523 private int _hasBits0;
21524 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020021525 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050021526 public static pb::MessageParser<FooGroup> Parser { get { return _parser; } }
21527
21528 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020021529 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050021530 public static pbr::MessageDescriptor Descriptor {
21531 get { return global::Google.Protobuf.TestProtos.Proto2.TestOneofBackwardsCompatible.Descriptor.NestedTypes[0]; }
21532 }
21533
21534 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020021535 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050021536 pbr::MessageDescriptor pb::IMessage.Descriptor {
21537 get { return Descriptor; }
21538 }
21539
21540 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020021541 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050021542 public FooGroup() {
21543 OnConstruction();
21544 }
21545
21546 partial void OnConstruction();
21547
21548 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020021549 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050021550 public FooGroup(FooGroup other) : this() {
21551 _hasBits0 = other._hasBits0;
21552 a_ = other.a_;
21553 b_ = other.b_;
21554 _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
21555 }
21556
21557 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020021558 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050021559 public FooGroup Clone() {
21560 return new FooGroup(this);
21561 }
21562
21563 /// <summary>Field number for the "a" field.</summary>
21564 public const int AFieldNumber = 5;
21565 private readonly static int ADefaultValue = 0;
21566
21567 private int a_;
21568 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020021569 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050021570 public int A {
21571 get { if ((_hasBits0 & 1) != 0) { return a_; } else { return ADefaultValue; } }
21572 set {
21573 _hasBits0 |= 1;
21574 a_ = value;
21575 }
21576 }
21577 /// <summary>Gets whether the "a" field is set</summary>
21578 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020021579 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050021580 public bool HasA {
21581 get { return (_hasBits0 & 1) != 0; }
21582 }
21583 /// <summary>Clears the value of the "a" field</summary>
21584 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020021585 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050021586 public void ClearA() {
21587 _hasBits0 &= ~1;
21588 }
21589
21590 /// <summary>Field number for the "b" field.</summary>
21591 public const int BFieldNumber = 6;
21592 private readonly static string BDefaultValue = "";
21593
21594 private string b_;
21595 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020021596 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050021597 public string B {
21598 get { return b_ ?? BDefaultValue; }
21599 set {
21600 b_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
21601 }
21602 }
21603 /// <summary>Gets whether the "b" field is set</summary>
21604 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020021605 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050021606 public bool HasB {
21607 get { return b_ != null; }
21608 }
21609 /// <summary>Clears the value of the "b" field</summary>
21610 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020021611 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050021612 public void ClearB() {
21613 b_ = null;
21614 }
21615
21616 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020021617 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050021618 public override bool Equals(object other) {
21619 return Equals(other as FooGroup);
21620 }
21621
21622 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020021623 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050021624 public bool Equals(FooGroup other) {
21625 if (ReferenceEquals(other, null)) {
21626 return false;
21627 }
21628 if (ReferenceEquals(other, this)) {
21629 return true;
21630 }
21631 if (A != other.A) return false;
21632 if (B != other.B) return false;
21633 return Equals(_unknownFields, other._unknownFields);
21634 }
21635
21636 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020021637 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050021638 public override int GetHashCode() {
21639 int hash = 1;
21640 if (HasA) hash ^= A.GetHashCode();
21641 if (HasB) hash ^= B.GetHashCode();
21642 if (_unknownFields != null) {
21643 hash ^= _unknownFields.GetHashCode();
21644 }
21645 return hash;
21646 }
21647
21648 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020021649 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050021650 public override string ToString() {
21651 return pb::JsonFormatter.ToDiagnosticString(this);
21652 }
21653
21654 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020021655 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050021656 public void WriteTo(pb::CodedOutputStream output) {
Jan Tattermusch125e4ad2020-05-29 04:32:43 -040021657 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
21658 output.WriteRawMessage(this);
21659 #else
Sydney Acksman8a57ec82019-03-21 17:36:36 -050021660 if (HasA) {
21661 output.WriteRawTag(40);
21662 output.WriteInt32(A);
21663 }
21664 if (HasB) {
21665 output.WriteRawTag(50);
21666 output.WriteString(B);
21667 }
21668 if (_unknownFields != null) {
21669 _unknownFields.WriteTo(output);
21670 }
Jan Tattermusch125e4ad2020-05-29 04:32:43 -040021671 #endif
Sydney Acksman8a57ec82019-03-21 17:36:36 -050021672 }
21673
Jan Tattermusch125e4ad2020-05-29 04:32:43 -040021674 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
21675 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020021676 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Jan Tattermusch125e4ad2020-05-29 04:32:43 -040021677 void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
21678 if (HasA) {
21679 output.WriteRawTag(40);
21680 output.WriteInt32(A);
21681 }
21682 if (HasB) {
21683 output.WriteRawTag(50);
21684 output.WriteString(B);
21685 }
21686 if (_unknownFields != null) {
21687 _unknownFields.WriteTo(ref output);
21688 }
21689 }
21690 #endif
21691
Sydney Acksman8a57ec82019-03-21 17:36:36 -050021692 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020021693 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050021694 public int CalculateSize() {
21695 int size = 0;
21696 if (HasA) {
21697 size += 1 + pb::CodedOutputStream.ComputeInt32Size(A);
21698 }
21699 if (HasB) {
21700 size += 1 + pb::CodedOutputStream.ComputeStringSize(B);
21701 }
21702 if (_unknownFields != null) {
21703 size += _unknownFields.CalculateSize();
21704 }
21705 return size;
21706 }
21707
21708 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020021709 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050021710 public void MergeFrom(FooGroup other) {
21711 if (other == null) {
21712 return;
21713 }
21714 if (other.HasA) {
21715 A = other.A;
21716 }
21717 if (other.HasB) {
21718 B = other.B;
21719 }
21720 _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
21721 }
21722
21723 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020021724 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050021725 public void MergeFrom(pb::CodedInputStream input) {
Jan Tattermusch7cb55972020-06-02 09:26:25 +020021726 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
Jan Tattermusch3196ef92020-04-02 15:36:16 +020021727 input.ReadRawMessage(this);
Jan Tattermusch7cb55972020-06-02 09:26:25 +020021728 #else
21729 uint tag;
21730 while ((tag = input.ReadTag()) != 0) {
21731 switch(tag) {
21732 case 36:
21733 return;
21734 default:
21735 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
21736 break;
21737 case 40: {
21738 A = input.ReadInt32();
21739 break;
21740 }
21741 case 50: {
21742 B = input.ReadString();
21743 break;
21744 }
21745 }
21746 }
21747 #endif
Jan Tattermusch3196ef92020-04-02 15:36:16 +020021748 }
21749
Jan Tattermusch7cb55972020-06-02 09:26:25 +020021750 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
Jan Tattermusch3196ef92020-04-02 15:36:16 +020021751 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020021752 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Jan Tattermusch0df7ddc2020-04-14 12:41:03 +020021753 void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
Sydney Acksman8a57ec82019-03-21 17:36:36 -050021754 uint tag;
21755 while ((tag = input.ReadTag()) != 0) {
21756 switch(tag) {
21757 case 36:
21758 return;
21759 default:
Jan Tattermusch3196ef92020-04-02 15:36:16 +020021760 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
Sydney Acksman8a57ec82019-03-21 17:36:36 -050021761 break;
21762 case 40: {
21763 A = input.ReadInt32();
21764 break;
21765 }
21766 case 50: {
21767 B = input.ReadString();
21768 break;
21769 }
21770 }
21771 }
21772 }
Jan Tattermusch7cb55972020-06-02 09:26:25 +020021773 #endif
Sydney Acksman8a57ec82019-03-21 17:36:36 -050021774
21775 }
21776
21777 }
21778 #endregion
21779
21780 }
21781
Jan Tattermusch7cb55972020-06-02 09:26:25 +020021782 public sealed partial class TestOneof2 : pb::IMessage<TestOneof2>
21783 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
21784 , pb::IBufferMessage
21785 #endif
21786 {
Sydney Acksman8a57ec82019-03-21 17:36:36 -050021787 private static readonly pb::MessageParser<TestOneof2> _parser = new pb::MessageParser<TestOneof2>(() => new TestOneof2());
21788 private pb::UnknownFieldSet _unknownFields;
21789 private int _hasBits0;
21790 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020021791 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050021792 public static pb::MessageParser<TestOneof2> Parser { get { return _parser; } }
21793
21794 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020021795 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050021796 public static pbr::MessageDescriptor Descriptor {
21797 get { return global::Google.Protobuf.TestProtos.Proto2.UnittestReflection.Descriptor.MessageTypes[45]; }
21798 }
21799
21800 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020021801 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050021802 pbr::MessageDescriptor pb::IMessage.Descriptor {
21803 get { return Descriptor; }
21804 }
21805
21806 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020021807 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050021808 public TestOneof2() {
21809 OnConstruction();
21810 }
21811
21812 partial void OnConstruction();
21813
21814 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020021815 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050021816 public TestOneof2(TestOneof2 other) : this() {
21817 _hasBits0 = other._hasBits0;
21818 bazInt_ = other.bazInt_;
21819 bazString_ = other.bazString_;
21820 switch (other.FooCase) {
21821 case FooOneofCase.FooInt:
21822 FooInt = other.FooInt;
21823 break;
21824 case FooOneofCase.FooString:
21825 FooString = other.FooString;
21826 break;
21827 case FooOneofCase.FooCord:
21828 FooCord = other.FooCord;
21829 break;
21830 case FooOneofCase.FooStringPiece:
21831 FooStringPiece = other.FooStringPiece;
21832 break;
21833 case FooOneofCase.FooBytes:
21834 FooBytes = other.FooBytes;
21835 break;
21836 case FooOneofCase.FooEnum:
21837 FooEnum = other.FooEnum;
21838 break;
21839 case FooOneofCase.FooMessage:
21840 FooMessage = other.FooMessage.Clone();
21841 break;
21842 case FooOneofCase.FooGroup:
21843 FooGroup = other.FooGroup.Clone();
21844 break;
21845 case FooOneofCase.FooLazyMessage:
21846 FooLazyMessage = other.FooLazyMessage.Clone();
21847 break;
21848 }
21849
21850 switch (other.BarCase) {
21851 case BarOneofCase.BarInt:
21852 BarInt = other.BarInt;
21853 break;
21854 case BarOneofCase.BarString:
21855 BarString = other.BarString;
21856 break;
21857 case BarOneofCase.BarCord:
21858 BarCord = other.BarCord;
21859 break;
21860 case BarOneofCase.BarStringPiece:
21861 BarStringPiece = other.BarStringPiece;
21862 break;
21863 case BarOneofCase.BarBytes:
21864 BarBytes = other.BarBytes;
21865 break;
21866 case BarOneofCase.BarEnum:
21867 BarEnum = other.BarEnum;
21868 break;
21869 }
21870
21871 _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
21872 }
21873
21874 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020021875 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050021876 public TestOneof2 Clone() {
21877 return new TestOneof2(this);
21878 }
21879
21880 /// <summary>Field number for the "foo_int" field.</summary>
21881 public const int FooIntFieldNumber = 1;
21882 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020021883 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050021884 public int FooInt {
21885 get { return HasFooInt ? (int) foo_ : 0; }
21886 set {
21887 foo_ = value;
21888 fooCase_ = FooOneofCase.FooInt;
21889 }
21890 }
21891 /// <summary>Gets whether the "foo_int" field is set</summary>
21892 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020021893 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050021894 public bool HasFooInt {
21895 get { return fooCase_ == FooOneofCase.FooInt; }
21896 }
21897 /// <summary> Clears the value of the oneof if it's currently set to "foo_int" </summary>
21898 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020021899 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050021900 public void ClearFooInt() {
21901 if (HasFooInt) {
21902 ClearFoo();
21903 }
21904 }
21905
21906 /// <summary>Field number for the "foo_string" field.</summary>
21907 public const int FooStringFieldNumber = 2;
21908 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020021909 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050021910 public string FooString {
21911 get { return HasFooString ? (string) foo_ : ""; }
21912 set {
21913 foo_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
21914 fooCase_ = FooOneofCase.FooString;
21915 }
21916 }
21917 /// <summary>Gets whether the "foo_string" field is set</summary>
21918 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020021919 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050021920 public bool HasFooString {
21921 get { return fooCase_ == FooOneofCase.FooString; }
21922 }
21923 /// <summary> Clears the value of the oneof if it's currently set to "foo_string" </summary>
21924 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020021925 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050021926 public void ClearFooString() {
21927 if (HasFooString) {
21928 ClearFoo();
21929 }
21930 }
21931
21932 /// <summary>Field number for the "foo_cord" field.</summary>
21933 public const int FooCordFieldNumber = 3;
21934 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020021935 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050021936 public string FooCord {
21937 get { return HasFooCord ? (string) foo_ : ""; }
21938 set {
21939 foo_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
21940 fooCase_ = FooOneofCase.FooCord;
21941 }
21942 }
21943 /// <summary>Gets whether the "foo_cord" field is set</summary>
21944 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020021945 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050021946 public bool HasFooCord {
21947 get { return fooCase_ == FooOneofCase.FooCord; }
21948 }
21949 /// <summary> Clears the value of the oneof if it's currently set to "foo_cord" </summary>
21950 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020021951 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050021952 public void ClearFooCord() {
21953 if (HasFooCord) {
21954 ClearFoo();
21955 }
21956 }
21957
21958 /// <summary>Field number for the "foo_string_piece" field.</summary>
21959 public const int FooStringPieceFieldNumber = 4;
21960 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020021961 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050021962 public string FooStringPiece {
21963 get { return HasFooStringPiece ? (string) foo_ : ""; }
21964 set {
21965 foo_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
21966 fooCase_ = FooOneofCase.FooStringPiece;
21967 }
21968 }
21969 /// <summary>Gets whether the "foo_string_piece" field is set</summary>
21970 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020021971 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050021972 public bool HasFooStringPiece {
21973 get { return fooCase_ == FooOneofCase.FooStringPiece; }
21974 }
21975 /// <summary> Clears the value of the oneof if it's currently set to "foo_string_piece" </summary>
21976 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020021977 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050021978 public void ClearFooStringPiece() {
21979 if (HasFooStringPiece) {
21980 ClearFoo();
21981 }
21982 }
21983
21984 /// <summary>Field number for the "foo_bytes" field.</summary>
21985 public const int FooBytesFieldNumber = 5;
21986 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020021987 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050021988 public pb::ByteString FooBytes {
21989 get { return HasFooBytes ? (pb::ByteString) foo_ : pb::ByteString.Empty; }
21990 set {
21991 foo_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
21992 fooCase_ = FooOneofCase.FooBytes;
21993 }
21994 }
21995 /// <summary>Gets whether the "foo_bytes" field is set</summary>
21996 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020021997 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050021998 public bool HasFooBytes {
21999 get { return fooCase_ == FooOneofCase.FooBytes; }
22000 }
22001 /// <summary> Clears the value of the oneof if it's currently set to "foo_bytes" </summary>
22002 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020022003 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050022004 public void ClearFooBytes() {
22005 if (HasFooBytes) {
22006 ClearFoo();
22007 }
22008 }
22009
22010 /// <summary>Field number for the "foo_enum" field.</summary>
22011 public const int FooEnumFieldNumber = 6;
22012 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020022013 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050022014 public global::Google.Protobuf.TestProtos.Proto2.TestOneof2.Types.NestedEnum FooEnum {
22015 get { return HasFooEnum ? (global::Google.Protobuf.TestProtos.Proto2.TestOneof2.Types.NestedEnum) foo_ : global::Google.Protobuf.TestProtos.Proto2.TestOneof2.Types.NestedEnum.Foo; }
22016 set {
22017 foo_ = value;
22018 fooCase_ = FooOneofCase.FooEnum;
22019 }
22020 }
22021 /// <summary>Gets whether the "foo_enum" field is set</summary>
22022 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020022023 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050022024 public bool HasFooEnum {
22025 get { return fooCase_ == FooOneofCase.FooEnum; }
22026 }
22027 /// <summary> Clears the value of the oneof if it's currently set to "foo_enum" </summary>
22028 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020022029 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050022030 public void ClearFooEnum() {
22031 if (HasFooEnum) {
22032 ClearFoo();
22033 }
22034 }
22035
22036 /// <summary>Field number for the "foo_message" field.</summary>
22037 public const int FooMessageFieldNumber = 7;
22038 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020022039 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050022040 public global::Google.Protobuf.TestProtos.Proto2.TestOneof2.Types.NestedMessage FooMessage {
Jon Skeet9926c952020-04-27 07:18:45 +010022041 get { return fooCase_ == FooOneofCase.FooMessage ? (global::Google.Protobuf.TestProtos.Proto2.TestOneof2.Types.NestedMessage) foo_ : null; }
Sydney Acksman8a57ec82019-03-21 17:36:36 -050022042 set {
22043 foo_ = value;
22044 fooCase_ = value == null ? FooOneofCase.None : FooOneofCase.FooMessage;
22045 }
22046 }
Sydney Acksman8a57ec82019-03-21 17:36:36 -050022047
22048 /// <summary>Field number for the "foogroup" field.</summary>
22049 public const int FooGroupFieldNumber = 8;
22050 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020022051 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050022052 public global::Google.Protobuf.TestProtos.Proto2.TestOneof2.Types.FooGroup FooGroup {
22053 get { return HasFooGroup ? (global::Google.Protobuf.TestProtos.Proto2.TestOneof2.Types.FooGroup) foo_ : null; }
22054 set {
22055 foo_ = value;
22056 fooCase_ = value == null ? FooOneofCase.None : FooOneofCase.FooGroup;
22057 }
22058 }
22059 /// <summary>Gets whether the "foogroup" field is set</summary>
22060 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020022061 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050022062 public bool HasFooGroup {
22063 get { return fooCase_ == FooOneofCase.FooGroup; }
22064 }
22065 /// <summary> Clears the value of the oneof if it's currently set to "foogroup" </summary>
22066 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020022067 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050022068 public void ClearFooGroup() {
22069 if (HasFooGroup) {
22070 ClearFoo();
22071 }
22072 }
22073
22074 /// <summary>Field number for the "foo_lazy_message" field.</summary>
22075 public const int FooLazyMessageFieldNumber = 11;
22076 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020022077 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050022078 public global::Google.Protobuf.TestProtos.Proto2.TestOneof2.Types.NestedMessage FooLazyMessage {
Jon Skeet9926c952020-04-27 07:18:45 +010022079 get { return fooCase_ == FooOneofCase.FooLazyMessage ? (global::Google.Protobuf.TestProtos.Proto2.TestOneof2.Types.NestedMessage) foo_ : null; }
Sydney Acksman8a57ec82019-03-21 17:36:36 -050022080 set {
22081 foo_ = value;
22082 fooCase_ = value == null ? FooOneofCase.None : FooOneofCase.FooLazyMessage;
22083 }
22084 }
Sydney Acksman8a57ec82019-03-21 17:36:36 -050022085
22086 /// <summary>Field number for the "bar_int" field.</summary>
22087 public const int BarIntFieldNumber = 12;
22088 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020022089 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050022090 public int BarInt {
22091 get { return HasBarInt ? (int) bar_ : 5; }
22092 set {
22093 bar_ = value;
22094 barCase_ = BarOneofCase.BarInt;
22095 }
22096 }
22097 /// <summary>Gets whether the "bar_int" field is set</summary>
22098 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020022099 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050022100 public bool HasBarInt {
22101 get { return barCase_ == BarOneofCase.BarInt; }
22102 }
22103 /// <summary> Clears the value of the oneof if it's currently set to "bar_int" </summary>
22104 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020022105 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050022106 public void ClearBarInt() {
22107 if (HasBarInt) {
22108 ClearBar();
22109 }
22110 }
22111
22112 /// <summary>Field number for the "bar_string" field.</summary>
22113 public const int BarStringFieldNumber = 13;
22114 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020022115 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050022116 public string BarString {
Sydney Acksmane119a432019-10-30 13:02:46 -050022117 get { return HasBarString ? (string) bar_ : global::System.Text.Encoding.UTF8.GetString(global::System.Convert.FromBase64String("U1RSSU5H"), 0, 6); }
Sydney Acksman8a57ec82019-03-21 17:36:36 -050022118 set {
22119 bar_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
22120 barCase_ = BarOneofCase.BarString;
22121 }
22122 }
22123 /// <summary>Gets whether the "bar_string" field is set</summary>
22124 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020022125 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050022126 public bool HasBarString {
22127 get { return barCase_ == BarOneofCase.BarString; }
22128 }
22129 /// <summary> Clears the value of the oneof if it's currently set to "bar_string" </summary>
22130 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020022131 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050022132 public void ClearBarString() {
22133 if (HasBarString) {
22134 ClearBar();
22135 }
22136 }
22137
22138 /// <summary>Field number for the "bar_cord" field.</summary>
22139 public const int BarCordFieldNumber = 14;
22140 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020022141 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050022142 public string BarCord {
Sydney Acksmane119a432019-10-30 13:02:46 -050022143 get { return HasBarCord ? (string) bar_ : global::System.Text.Encoding.UTF8.GetString(global::System.Convert.FromBase64String("Q09SRA=="), 0, 4); }
Sydney Acksman8a57ec82019-03-21 17:36:36 -050022144 set {
22145 bar_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
22146 barCase_ = BarOneofCase.BarCord;
22147 }
22148 }
22149 /// <summary>Gets whether the "bar_cord" field is set</summary>
22150 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020022151 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050022152 public bool HasBarCord {
22153 get { return barCase_ == BarOneofCase.BarCord; }
22154 }
22155 /// <summary> Clears the value of the oneof if it's currently set to "bar_cord" </summary>
22156 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020022157 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050022158 public void ClearBarCord() {
22159 if (HasBarCord) {
22160 ClearBar();
22161 }
22162 }
22163
22164 /// <summary>Field number for the "bar_string_piece" field.</summary>
22165 public const int BarStringPieceFieldNumber = 15;
22166 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020022167 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050022168 public string BarStringPiece {
Sydney Acksmane119a432019-10-30 13:02:46 -050022169 get { return HasBarStringPiece ? (string) bar_ : global::System.Text.Encoding.UTF8.GetString(global::System.Convert.FromBase64String("U1BJRUNF"), 0, 6); }
Sydney Acksman8a57ec82019-03-21 17:36:36 -050022170 set {
22171 bar_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
22172 barCase_ = BarOneofCase.BarStringPiece;
22173 }
22174 }
22175 /// <summary>Gets whether the "bar_string_piece" field is set</summary>
22176 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020022177 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050022178 public bool HasBarStringPiece {
22179 get { return barCase_ == BarOneofCase.BarStringPiece; }
22180 }
22181 /// <summary> Clears the value of the oneof if it's currently set to "bar_string_piece" </summary>
22182 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020022183 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050022184 public void ClearBarStringPiece() {
22185 if (HasBarStringPiece) {
22186 ClearBar();
22187 }
22188 }
22189
22190 /// <summary>Field number for the "bar_bytes" field.</summary>
22191 public const int BarBytesFieldNumber = 16;
22192 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020022193 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050022194 public pb::ByteString BarBytes {
22195 get { return HasBarBytes ? (pb::ByteString) bar_ : pb::ByteString.FromBase64("QllURVM="); }
22196 set {
22197 bar_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
22198 barCase_ = BarOneofCase.BarBytes;
22199 }
22200 }
22201 /// <summary>Gets whether the "bar_bytes" field is set</summary>
22202 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020022203 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050022204 public bool HasBarBytes {
22205 get { return barCase_ == BarOneofCase.BarBytes; }
22206 }
22207 /// <summary> Clears the value of the oneof if it's currently set to "bar_bytes" </summary>
22208 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020022209 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050022210 public void ClearBarBytes() {
22211 if (HasBarBytes) {
22212 ClearBar();
22213 }
22214 }
22215
22216 /// <summary>Field number for the "bar_enum" field.</summary>
22217 public const int BarEnumFieldNumber = 17;
22218 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020022219 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050022220 public global::Google.Protobuf.TestProtos.Proto2.TestOneof2.Types.NestedEnum BarEnum {
22221 get { return HasBarEnum ? (global::Google.Protobuf.TestProtos.Proto2.TestOneof2.Types.NestedEnum) bar_ : global::Google.Protobuf.TestProtos.Proto2.TestOneof2.Types.NestedEnum.Bar; }
22222 set {
22223 bar_ = value;
22224 barCase_ = BarOneofCase.BarEnum;
22225 }
22226 }
22227 /// <summary>Gets whether the "bar_enum" field is set</summary>
22228 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020022229 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050022230 public bool HasBarEnum {
22231 get { return barCase_ == BarOneofCase.BarEnum; }
22232 }
22233 /// <summary> Clears the value of the oneof if it's currently set to "bar_enum" </summary>
22234 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020022235 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050022236 public void ClearBarEnum() {
22237 if (HasBarEnum) {
22238 ClearBar();
22239 }
22240 }
22241
22242 /// <summary>Field number for the "baz_int" field.</summary>
22243 public const int BazIntFieldNumber = 18;
22244 private readonly static int BazIntDefaultValue = 0;
22245
22246 private int bazInt_;
22247 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020022248 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050022249 public int BazInt {
Jon Skeetb0649a02020-04-15 11:57:38 +010022250 get { if ((_hasBits0 & 1) != 0) { return bazInt_; } else { return BazIntDefaultValue; } }
Sydney Acksman8a57ec82019-03-21 17:36:36 -050022251 set {
Jon Skeetb0649a02020-04-15 11:57:38 +010022252 _hasBits0 |= 1;
Sydney Acksman8a57ec82019-03-21 17:36:36 -050022253 bazInt_ = value;
22254 }
22255 }
22256 /// <summary>Gets whether the "baz_int" field is set</summary>
22257 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020022258 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050022259 public bool HasBazInt {
Jon Skeetb0649a02020-04-15 11:57:38 +010022260 get { return (_hasBits0 & 1) != 0; }
Sydney Acksman8a57ec82019-03-21 17:36:36 -050022261 }
22262 /// <summary>Clears the value of the "baz_int" field</summary>
22263 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020022264 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050022265 public void ClearBazInt() {
Jon Skeetb0649a02020-04-15 11:57:38 +010022266 _hasBits0 &= ~1;
Sydney Acksman8a57ec82019-03-21 17:36:36 -050022267 }
22268
22269 /// <summary>Field number for the "baz_string" field.</summary>
22270 public const int BazStringFieldNumber = 19;
Sydney Acksmane119a432019-10-30 13:02:46 -050022271 private readonly static string BazStringDefaultValue = global::System.Text.Encoding.UTF8.GetString(global::System.Convert.FromBase64String("QkFa"), 0, 3);
Sydney Acksman8a57ec82019-03-21 17:36:36 -050022272
22273 private string bazString_;
22274 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020022275 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050022276 public string BazString {
22277 get { return bazString_ ?? BazStringDefaultValue; }
22278 set {
22279 bazString_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
22280 }
22281 }
22282 /// <summary>Gets whether the "baz_string" field is set</summary>
22283 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020022284 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050022285 public bool HasBazString {
22286 get { return bazString_ != null; }
22287 }
22288 /// <summary>Clears the value of the "baz_string" field</summary>
22289 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020022290 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050022291 public void ClearBazString() {
22292 bazString_ = null;
22293 }
22294
22295 private object foo_;
22296 /// <summary>Enum of possible cases for the "foo" oneof.</summary>
22297 public enum FooOneofCase {
22298 None = 0,
22299 FooInt = 1,
22300 FooString = 2,
22301 FooCord = 3,
22302 FooStringPiece = 4,
22303 FooBytes = 5,
22304 FooEnum = 6,
22305 FooMessage = 7,
22306 FooGroup = 8,
22307 FooLazyMessage = 11,
22308 }
22309 private FooOneofCase fooCase_ = FooOneofCase.None;
22310 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020022311 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050022312 public FooOneofCase FooCase {
22313 get { return fooCase_; }
22314 }
22315
22316 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020022317 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050022318 public void ClearFoo() {
22319 fooCase_ = FooOneofCase.None;
22320 foo_ = null;
22321 }
22322
22323 private object bar_;
22324 /// <summary>Enum of possible cases for the "bar" oneof.</summary>
22325 public enum BarOneofCase {
22326 None = 0,
22327 BarInt = 12,
22328 BarString = 13,
22329 BarCord = 14,
22330 BarStringPiece = 15,
22331 BarBytes = 16,
22332 BarEnum = 17,
22333 }
22334 private BarOneofCase barCase_ = BarOneofCase.None;
22335 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020022336 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050022337 public BarOneofCase BarCase {
22338 get { return barCase_; }
22339 }
22340
22341 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020022342 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050022343 public void ClearBar() {
22344 barCase_ = BarOneofCase.None;
22345 bar_ = null;
22346 }
22347
22348 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020022349 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050022350 public override bool Equals(object other) {
22351 return Equals(other as TestOneof2);
22352 }
22353
22354 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020022355 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050022356 public bool Equals(TestOneof2 other) {
22357 if (ReferenceEquals(other, null)) {
22358 return false;
22359 }
22360 if (ReferenceEquals(other, this)) {
22361 return true;
22362 }
22363 if (FooInt != other.FooInt) return false;
22364 if (FooString != other.FooString) return false;
22365 if (FooCord != other.FooCord) return false;
22366 if (FooStringPiece != other.FooStringPiece) return false;
22367 if (FooBytes != other.FooBytes) return false;
22368 if (FooEnum != other.FooEnum) return false;
22369 if (!object.Equals(FooMessage, other.FooMessage)) return false;
22370 if (!object.Equals(FooGroup, other.FooGroup)) return false;
22371 if (!object.Equals(FooLazyMessage, other.FooLazyMessage)) return false;
22372 if (BarInt != other.BarInt) return false;
22373 if (BarString != other.BarString) return false;
22374 if (BarCord != other.BarCord) return false;
22375 if (BarStringPiece != other.BarStringPiece) return false;
22376 if (BarBytes != other.BarBytes) return false;
22377 if (BarEnum != other.BarEnum) return false;
22378 if (BazInt != other.BazInt) return false;
22379 if (BazString != other.BazString) return false;
22380 if (FooCase != other.FooCase) return false;
22381 if (BarCase != other.BarCase) return false;
22382 return Equals(_unknownFields, other._unknownFields);
22383 }
22384
22385 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020022386 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050022387 public override int GetHashCode() {
22388 int hash = 1;
22389 if (HasFooInt) hash ^= FooInt.GetHashCode();
22390 if (HasFooString) hash ^= FooString.GetHashCode();
22391 if (HasFooCord) hash ^= FooCord.GetHashCode();
22392 if (HasFooStringPiece) hash ^= FooStringPiece.GetHashCode();
22393 if (HasFooBytes) hash ^= FooBytes.GetHashCode();
22394 if (HasFooEnum) hash ^= FooEnum.GetHashCode();
Jon Skeet9926c952020-04-27 07:18:45 +010022395 if (fooCase_ == FooOneofCase.FooMessage) hash ^= FooMessage.GetHashCode();
Sydney Acksman8a57ec82019-03-21 17:36:36 -050022396 if (HasFooGroup) hash ^= FooGroup.GetHashCode();
Jon Skeet9926c952020-04-27 07:18:45 +010022397 if (fooCase_ == FooOneofCase.FooLazyMessage) hash ^= FooLazyMessage.GetHashCode();
Sydney Acksman8a57ec82019-03-21 17:36:36 -050022398 if (HasBarInt) hash ^= BarInt.GetHashCode();
22399 if (HasBarString) hash ^= BarString.GetHashCode();
22400 if (HasBarCord) hash ^= BarCord.GetHashCode();
22401 if (HasBarStringPiece) hash ^= BarStringPiece.GetHashCode();
22402 if (HasBarBytes) hash ^= BarBytes.GetHashCode();
22403 if (HasBarEnum) hash ^= BarEnum.GetHashCode();
22404 if (HasBazInt) hash ^= BazInt.GetHashCode();
22405 if (HasBazString) hash ^= BazString.GetHashCode();
22406 hash ^= (int) fooCase_;
22407 hash ^= (int) barCase_;
22408 if (_unknownFields != null) {
22409 hash ^= _unknownFields.GetHashCode();
22410 }
22411 return hash;
22412 }
22413
22414 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020022415 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050022416 public override string ToString() {
22417 return pb::JsonFormatter.ToDiagnosticString(this);
22418 }
22419
22420 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020022421 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050022422 public void WriteTo(pb::CodedOutputStream output) {
Jan Tattermusch125e4ad2020-05-29 04:32:43 -040022423 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
22424 output.WriteRawMessage(this);
22425 #else
Sydney Acksman8a57ec82019-03-21 17:36:36 -050022426 if (HasFooInt) {
22427 output.WriteRawTag(8);
22428 output.WriteInt32(FooInt);
22429 }
22430 if (HasFooString) {
22431 output.WriteRawTag(18);
22432 output.WriteString(FooString);
22433 }
22434 if (HasFooCord) {
22435 output.WriteRawTag(26);
22436 output.WriteString(FooCord);
22437 }
22438 if (HasFooStringPiece) {
22439 output.WriteRawTag(34);
22440 output.WriteString(FooStringPiece);
22441 }
22442 if (HasFooBytes) {
22443 output.WriteRawTag(42);
22444 output.WriteBytes(FooBytes);
22445 }
22446 if (HasFooEnum) {
22447 output.WriteRawTag(48);
22448 output.WriteEnum((int) FooEnum);
22449 }
Jon Skeet9926c952020-04-27 07:18:45 +010022450 if (fooCase_ == FooOneofCase.FooMessage) {
Sydney Acksman8a57ec82019-03-21 17:36:36 -050022451 output.WriteRawTag(58);
22452 output.WriteMessage(FooMessage);
22453 }
22454 if (HasFooGroup) {
22455 output.WriteRawTag(67);
22456 output.WriteGroup(FooGroup);
22457 output.WriteRawTag(68);
22458 }
Jon Skeet9926c952020-04-27 07:18:45 +010022459 if (fooCase_ == FooOneofCase.FooLazyMessage) {
Sydney Acksman8a57ec82019-03-21 17:36:36 -050022460 output.WriteRawTag(90);
22461 output.WriteMessage(FooLazyMessage);
22462 }
22463 if (HasBarInt) {
22464 output.WriteRawTag(96);
22465 output.WriteInt32(BarInt);
22466 }
22467 if (HasBarString) {
22468 output.WriteRawTag(106);
22469 output.WriteString(BarString);
22470 }
22471 if (HasBarCord) {
22472 output.WriteRawTag(114);
22473 output.WriteString(BarCord);
22474 }
22475 if (HasBarStringPiece) {
22476 output.WriteRawTag(122);
22477 output.WriteString(BarStringPiece);
22478 }
22479 if (HasBarBytes) {
22480 output.WriteRawTag(130, 1);
22481 output.WriteBytes(BarBytes);
22482 }
22483 if (HasBarEnum) {
22484 output.WriteRawTag(136, 1);
22485 output.WriteEnum((int) BarEnum);
22486 }
22487 if (HasBazInt) {
22488 output.WriteRawTag(144, 1);
22489 output.WriteInt32(BazInt);
22490 }
22491 if (HasBazString) {
22492 output.WriteRawTag(154, 1);
22493 output.WriteString(BazString);
22494 }
22495 if (_unknownFields != null) {
22496 _unknownFields.WriteTo(output);
22497 }
Jan Tattermusch125e4ad2020-05-29 04:32:43 -040022498 #endif
Sydney Acksman8a57ec82019-03-21 17:36:36 -050022499 }
22500
Jan Tattermusch125e4ad2020-05-29 04:32:43 -040022501 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
22502 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020022503 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Jan Tattermusch125e4ad2020-05-29 04:32:43 -040022504 void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
22505 if (HasFooInt) {
22506 output.WriteRawTag(8);
22507 output.WriteInt32(FooInt);
22508 }
22509 if (HasFooString) {
22510 output.WriteRawTag(18);
22511 output.WriteString(FooString);
22512 }
22513 if (HasFooCord) {
22514 output.WriteRawTag(26);
22515 output.WriteString(FooCord);
22516 }
22517 if (HasFooStringPiece) {
22518 output.WriteRawTag(34);
22519 output.WriteString(FooStringPiece);
22520 }
22521 if (HasFooBytes) {
22522 output.WriteRawTag(42);
22523 output.WriteBytes(FooBytes);
22524 }
22525 if (HasFooEnum) {
22526 output.WriteRawTag(48);
22527 output.WriteEnum((int) FooEnum);
22528 }
22529 if (fooCase_ == FooOneofCase.FooMessage) {
22530 output.WriteRawTag(58);
22531 output.WriteMessage(FooMessage);
22532 }
22533 if (HasFooGroup) {
22534 output.WriteRawTag(67);
22535 output.WriteGroup(FooGroup);
22536 output.WriteRawTag(68);
22537 }
22538 if (fooCase_ == FooOneofCase.FooLazyMessage) {
22539 output.WriteRawTag(90);
22540 output.WriteMessage(FooLazyMessage);
22541 }
22542 if (HasBarInt) {
22543 output.WriteRawTag(96);
22544 output.WriteInt32(BarInt);
22545 }
22546 if (HasBarString) {
22547 output.WriteRawTag(106);
22548 output.WriteString(BarString);
22549 }
22550 if (HasBarCord) {
22551 output.WriteRawTag(114);
22552 output.WriteString(BarCord);
22553 }
22554 if (HasBarStringPiece) {
22555 output.WriteRawTag(122);
22556 output.WriteString(BarStringPiece);
22557 }
22558 if (HasBarBytes) {
22559 output.WriteRawTag(130, 1);
22560 output.WriteBytes(BarBytes);
22561 }
22562 if (HasBarEnum) {
22563 output.WriteRawTag(136, 1);
22564 output.WriteEnum((int) BarEnum);
22565 }
22566 if (HasBazInt) {
22567 output.WriteRawTag(144, 1);
22568 output.WriteInt32(BazInt);
22569 }
22570 if (HasBazString) {
22571 output.WriteRawTag(154, 1);
22572 output.WriteString(BazString);
22573 }
22574 if (_unknownFields != null) {
22575 _unknownFields.WriteTo(ref output);
22576 }
22577 }
22578 #endif
22579
Sydney Acksman8a57ec82019-03-21 17:36:36 -050022580 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020022581 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050022582 public int CalculateSize() {
22583 int size = 0;
22584 if (HasFooInt) {
22585 size += 1 + pb::CodedOutputStream.ComputeInt32Size(FooInt);
22586 }
22587 if (HasFooString) {
22588 size += 1 + pb::CodedOutputStream.ComputeStringSize(FooString);
22589 }
22590 if (HasFooCord) {
22591 size += 1 + pb::CodedOutputStream.ComputeStringSize(FooCord);
22592 }
22593 if (HasFooStringPiece) {
22594 size += 1 + pb::CodedOutputStream.ComputeStringSize(FooStringPiece);
22595 }
22596 if (HasFooBytes) {
22597 size += 1 + pb::CodedOutputStream.ComputeBytesSize(FooBytes);
22598 }
22599 if (HasFooEnum) {
22600 size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) FooEnum);
22601 }
Jon Skeet9926c952020-04-27 07:18:45 +010022602 if (fooCase_ == FooOneofCase.FooMessage) {
Sydney Acksman8a57ec82019-03-21 17:36:36 -050022603 size += 1 + pb::CodedOutputStream.ComputeMessageSize(FooMessage);
22604 }
22605 if (HasFooGroup) {
22606 size += 2 + pb::CodedOutputStream.ComputeGroupSize(FooGroup);
22607 }
Jon Skeet9926c952020-04-27 07:18:45 +010022608 if (fooCase_ == FooOneofCase.FooLazyMessage) {
Sydney Acksman8a57ec82019-03-21 17:36:36 -050022609 size += 1 + pb::CodedOutputStream.ComputeMessageSize(FooLazyMessage);
22610 }
22611 if (HasBarInt) {
22612 size += 1 + pb::CodedOutputStream.ComputeInt32Size(BarInt);
22613 }
22614 if (HasBarString) {
22615 size += 1 + pb::CodedOutputStream.ComputeStringSize(BarString);
22616 }
22617 if (HasBarCord) {
22618 size += 1 + pb::CodedOutputStream.ComputeStringSize(BarCord);
22619 }
22620 if (HasBarStringPiece) {
22621 size += 1 + pb::CodedOutputStream.ComputeStringSize(BarStringPiece);
22622 }
22623 if (HasBarBytes) {
22624 size += 2 + pb::CodedOutputStream.ComputeBytesSize(BarBytes);
22625 }
22626 if (HasBarEnum) {
22627 size += 2 + pb::CodedOutputStream.ComputeEnumSize((int) BarEnum);
22628 }
22629 if (HasBazInt) {
22630 size += 2 + pb::CodedOutputStream.ComputeInt32Size(BazInt);
22631 }
22632 if (HasBazString) {
22633 size += 2 + pb::CodedOutputStream.ComputeStringSize(BazString);
22634 }
22635 if (_unknownFields != null) {
22636 size += _unknownFields.CalculateSize();
22637 }
22638 return size;
22639 }
22640
22641 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020022642 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050022643 public void MergeFrom(TestOneof2 other) {
22644 if (other == null) {
22645 return;
22646 }
22647 if (other.HasBazInt) {
22648 BazInt = other.BazInt;
22649 }
22650 if (other.HasBazString) {
22651 BazString = other.BazString;
22652 }
22653 switch (other.FooCase) {
22654 case FooOneofCase.FooInt:
22655 FooInt = other.FooInt;
22656 break;
22657 case FooOneofCase.FooString:
22658 FooString = other.FooString;
22659 break;
22660 case FooOneofCase.FooCord:
22661 FooCord = other.FooCord;
22662 break;
22663 case FooOneofCase.FooStringPiece:
22664 FooStringPiece = other.FooStringPiece;
22665 break;
22666 case FooOneofCase.FooBytes:
22667 FooBytes = other.FooBytes;
22668 break;
22669 case FooOneofCase.FooEnum:
22670 FooEnum = other.FooEnum;
22671 break;
22672 case FooOneofCase.FooMessage:
22673 if (FooMessage == null) {
22674 FooMessage = new global::Google.Protobuf.TestProtos.Proto2.TestOneof2.Types.NestedMessage();
22675 }
22676 FooMessage.MergeFrom(other.FooMessage);
22677 break;
22678 case FooOneofCase.FooGroup:
22679 if (FooGroup == null) {
22680 FooGroup = new global::Google.Protobuf.TestProtos.Proto2.TestOneof2.Types.FooGroup();
22681 }
22682 FooGroup.MergeFrom(other.FooGroup);
22683 break;
22684 case FooOneofCase.FooLazyMessage:
22685 if (FooLazyMessage == null) {
22686 FooLazyMessage = new global::Google.Protobuf.TestProtos.Proto2.TestOneof2.Types.NestedMessage();
22687 }
22688 FooLazyMessage.MergeFrom(other.FooLazyMessage);
22689 break;
22690 }
22691
22692 switch (other.BarCase) {
22693 case BarOneofCase.BarInt:
22694 BarInt = other.BarInt;
22695 break;
22696 case BarOneofCase.BarString:
22697 BarString = other.BarString;
22698 break;
22699 case BarOneofCase.BarCord:
22700 BarCord = other.BarCord;
22701 break;
22702 case BarOneofCase.BarStringPiece:
22703 BarStringPiece = other.BarStringPiece;
22704 break;
22705 case BarOneofCase.BarBytes:
22706 BarBytes = other.BarBytes;
22707 break;
22708 case BarOneofCase.BarEnum:
22709 BarEnum = other.BarEnum;
22710 break;
22711 }
22712
22713 _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
22714 }
22715
22716 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020022717 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050022718 public void MergeFrom(pb::CodedInputStream input) {
Jan Tattermusch7cb55972020-06-02 09:26:25 +020022719 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
Jan Tattermusch3196ef92020-04-02 15:36:16 +020022720 input.ReadRawMessage(this);
Jan Tattermusch7cb55972020-06-02 09:26:25 +020022721 #else
22722 uint tag;
22723 while ((tag = input.ReadTag()) != 0) {
22724 switch(tag) {
22725 default:
22726 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
22727 break;
22728 case 8: {
22729 FooInt = input.ReadInt32();
22730 break;
22731 }
22732 case 18: {
22733 FooString = input.ReadString();
22734 break;
22735 }
22736 case 26: {
22737 FooCord = input.ReadString();
22738 break;
22739 }
22740 case 34: {
22741 FooStringPiece = input.ReadString();
22742 break;
22743 }
22744 case 42: {
22745 FooBytes = input.ReadBytes();
22746 break;
22747 }
22748 case 48: {
22749 foo_ = input.ReadEnum();
22750 fooCase_ = FooOneofCase.FooEnum;
22751 break;
22752 }
22753 case 58: {
22754 global::Google.Protobuf.TestProtos.Proto2.TestOneof2.Types.NestedMessage subBuilder = new global::Google.Protobuf.TestProtos.Proto2.TestOneof2.Types.NestedMessage();
22755 if (fooCase_ == FooOneofCase.FooMessage) {
22756 subBuilder.MergeFrom(FooMessage);
22757 }
22758 input.ReadMessage(subBuilder);
22759 FooMessage = subBuilder;
22760 break;
22761 }
22762 case 67: {
22763 global::Google.Protobuf.TestProtos.Proto2.TestOneof2.Types.FooGroup subBuilder = new global::Google.Protobuf.TestProtos.Proto2.TestOneof2.Types.FooGroup();
22764 if (HasFooGroup) {
22765 subBuilder.MergeFrom(FooGroup);
22766 }
22767 input.ReadGroup(subBuilder);
22768 FooGroup = subBuilder;
22769 break;
22770 }
22771 case 90: {
22772 global::Google.Protobuf.TestProtos.Proto2.TestOneof2.Types.NestedMessage subBuilder = new global::Google.Protobuf.TestProtos.Proto2.TestOneof2.Types.NestedMessage();
22773 if (fooCase_ == FooOneofCase.FooLazyMessage) {
22774 subBuilder.MergeFrom(FooLazyMessage);
22775 }
22776 input.ReadMessage(subBuilder);
22777 FooLazyMessage = subBuilder;
22778 break;
22779 }
22780 case 96: {
22781 BarInt = input.ReadInt32();
22782 break;
22783 }
22784 case 106: {
22785 BarString = input.ReadString();
22786 break;
22787 }
22788 case 114: {
22789 BarCord = input.ReadString();
22790 break;
22791 }
22792 case 122: {
22793 BarStringPiece = input.ReadString();
22794 break;
22795 }
22796 case 130: {
22797 BarBytes = input.ReadBytes();
22798 break;
22799 }
22800 case 136: {
22801 bar_ = input.ReadEnum();
22802 barCase_ = BarOneofCase.BarEnum;
22803 break;
22804 }
22805 case 144: {
22806 BazInt = input.ReadInt32();
22807 break;
22808 }
22809 case 154: {
22810 BazString = input.ReadString();
22811 break;
22812 }
22813 }
22814 }
22815 #endif
Jan Tattermusch3196ef92020-04-02 15:36:16 +020022816 }
22817
Jan Tattermusch7cb55972020-06-02 09:26:25 +020022818 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
Jan Tattermusch3196ef92020-04-02 15:36:16 +020022819 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020022820 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Jan Tattermusch0df7ddc2020-04-14 12:41:03 +020022821 void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
Sydney Acksman8a57ec82019-03-21 17:36:36 -050022822 uint tag;
22823 while ((tag = input.ReadTag()) != 0) {
22824 switch(tag) {
22825 default:
Jan Tattermusch3196ef92020-04-02 15:36:16 +020022826 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
Sydney Acksman8a57ec82019-03-21 17:36:36 -050022827 break;
22828 case 8: {
22829 FooInt = input.ReadInt32();
22830 break;
22831 }
22832 case 18: {
22833 FooString = input.ReadString();
22834 break;
22835 }
22836 case 26: {
22837 FooCord = input.ReadString();
22838 break;
22839 }
22840 case 34: {
22841 FooStringPiece = input.ReadString();
22842 break;
22843 }
22844 case 42: {
22845 FooBytes = input.ReadBytes();
22846 break;
22847 }
22848 case 48: {
22849 foo_ = input.ReadEnum();
22850 fooCase_ = FooOneofCase.FooEnum;
22851 break;
22852 }
22853 case 58: {
22854 global::Google.Protobuf.TestProtos.Proto2.TestOneof2.Types.NestedMessage subBuilder = new global::Google.Protobuf.TestProtos.Proto2.TestOneof2.Types.NestedMessage();
Jon Skeet9926c952020-04-27 07:18:45 +010022855 if (fooCase_ == FooOneofCase.FooMessage) {
Sydney Acksman8a57ec82019-03-21 17:36:36 -050022856 subBuilder.MergeFrom(FooMessage);
22857 }
22858 input.ReadMessage(subBuilder);
22859 FooMessage = subBuilder;
22860 break;
22861 }
22862 case 67: {
22863 global::Google.Protobuf.TestProtos.Proto2.TestOneof2.Types.FooGroup subBuilder = new global::Google.Protobuf.TestProtos.Proto2.TestOneof2.Types.FooGroup();
22864 if (HasFooGroup) {
22865 subBuilder.MergeFrom(FooGroup);
22866 }
22867 input.ReadGroup(subBuilder);
22868 FooGroup = subBuilder;
22869 break;
22870 }
22871 case 90: {
22872 global::Google.Protobuf.TestProtos.Proto2.TestOneof2.Types.NestedMessage subBuilder = new global::Google.Protobuf.TestProtos.Proto2.TestOneof2.Types.NestedMessage();
Jon Skeet9926c952020-04-27 07:18:45 +010022873 if (fooCase_ == FooOneofCase.FooLazyMessage) {
Sydney Acksman8a57ec82019-03-21 17:36:36 -050022874 subBuilder.MergeFrom(FooLazyMessage);
22875 }
22876 input.ReadMessage(subBuilder);
22877 FooLazyMessage = subBuilder;
22878 break;
22879 }
22880 case 96: {
22881 BarInt = input.ReadInt32();
22882 break;
22883 }
22884 case 106: {
22885 BarString = input.ReadString();
22886 break;
22887 }
22888 case 114: {
22889 BarCord = input.ReadString();
22890 break;
22891 }
22892 case 122: {
22893 BarStringPiece = input.ReadString();
22894 break;
22895 }
22896 case 130: {
22897 BarBytes = input.ReadBytes();
22898 break;
22899 }
22900 case 136: {
22901 bar_ = input.ReadEnum();
22902 barCase_ = BarOneofCase.BarEnum;
22903 break;
22904 }
22905 case 144: {
22906 BazInt = input.ReadInt32();
22907 break;
22908 }
22909 case 154: {
22910 BazString = input.ReadString();
22911 break;
22912 }
22913 }
22914 }
22915 }
Jan Tattermusch7cb55972020-06-02 09:26:25 +020022916 #endif
Sydney Acksman8a57ec82019-03-21 17:36:36 -050022917
22918 #region Nested types
22919 /// <summary>Container for nested types declared in the TestOneof2 message type.</summary>
22920 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020022921 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050022922 public static partial class Types {
22923 public enum NestedEnum {
22924 [pbr::OriginalName("FOO")] Foo = 1,
22925 [pbr::OriginalName("BAR")] Bar = 2,
22926 [pbr::OriginalName("BAZ")] Baz = 3,
22927 }
22928
Jan Tattermusch7cb55972020-06-02 09:26:25 +020022929 public sealed partial class FooGroup : pb::IMessage<FooGroup>
22930 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
22931 , pb::IBufferMessage
22932 #endif
22933 {
Sydney Acksman8a57ec82019-03-21 17:36:36 -050022934 private static readonly pb::MessageParser<FooGroup> _parser = new pb::MessageParser<FooGroup>(() => new FooGroup());
22935 private pb::UnknownFieldSet _unknownFields;
22936 private int _hasBits0;
22937 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020022938 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050022939 public static pb::MessageParser<FooGroup> Parser { get { return _parser; } }
22940
22941 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020022942 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050022943 public static pbr::MessageDescriptor Descriptor {
22944 get { return global::Google.Protobuf.TestProtos.Proto2.TestOneof2.Descriptor.NestedTypes[0]; }
22945 }
22946
22947 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020022948 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050022949 pbr::MessageDescriptor pb::IMessage.Descriptor {
22950 get { return Descriptor; }
22951 }
22952
22953 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020022954 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050022955 public FooGroup() {
22956 OnConstruction();
22957 }
22958
22959 partial void OnConstruction();
22960
22961 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020022962 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050022963 public FooGroup(FooGroup other) : this() {
22964 _hasBits0 = other._hasBits0;
22965 a_ = other.a_;
22966 b_ = other.b_;
22967 _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
22968 }
22969
22970 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020022971 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050022972 public FooGroup Clone() {
22973 return new FooGroup(this);
22974 }
22975
22976 /// <summary>Field number for the "a" field.</summary>
22977 public const int AFieldNumber = 9;
22978 private readonly static int ADefaultValue = 0;
22979
22980 private int a_;
22981 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020022982 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050022983 public int A {
22984 get { if ((_hasBits0 & 1) != 0) { return a_; } else { return ADefaultValue; } }
22985 set {
22986 _hasBits0 |= 1;
22987 a_ = value;
22988 }
22989 }
22990 /// <summary>Gets whether the "a" field is set</summary>
22991 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020022992 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050022993 public bool HasA {
22994 get { return (_hasBits0 & 1) != 0; }
22995 }
22996 /// <summary>Clears the value of the "a" field</summary>
22997 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020022998 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050022999 public void ClearA() {
23000 _hasBits0 &= ~1;
23001 }
23002
23003 /// <summary>Field number for the "b" field.</summary>
23004 public const int BFieldNumber = 10;
23005 private readonly static string BDefaultValue = "";
23006
23007 private string b_;
23008 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020023009 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050023010 public string B {
23011 get { return b_ ?? BDefaultValue; }
23012 set {
23013 b_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
23014 }
23015 }
23016 /// <summary>Gets whether the "b" field is set</summary>
23017 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020023018 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050023019 public bool HasB {
23020 get { return b_ != null; }
23021 }
23022 /// <summary>Clears the value of the "b" field</summary>
23023 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020023024 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050023025 public void ClearB() {
23026 b_ = null;
23027 }
23028
23029 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020023030 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050023031 public override bool Equals(object other) {
23032 return Equals(other as FooGroup);
23033 }
23034
23035 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020023036 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050023037 public bool Equals(FooGroup other) {
23038 if (ReferenceEquals(other, null)) {
23039 return false;
23040 }
23041 if (ReferenceEquals(other, this)) {
23042 return true;
23043 }
23044 if (A != other.A) return false;
23045 if (B != other.B) return false;
23046 return Equals(_unknownFields, other._unknownFields);
23047 }
23048
23049 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020023050 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050023051 public override int GetHashCode() {
23052 int hash = 1;
23053 if (HasA) hash ^= A.GetHashCode();
23054 if (HasB) hash ^= B.GetHashCode();
23055 if (_unknownFields != null) {
23056 hash ^= _unknownFields.GetHashCode();
23057 }
23058 return hash;
23059 }
23060
23061 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020023062 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050023063 public override string ToString() {
23064 return pb::JsonFormatter.ToDiagnosticString(this);
23065 }
23066
23067 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020023068 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050023069 public void WriteTo(pb::CodedOutputStream output) {
Jan Tattermusch125e4ad2020-05-29 04:32:43 -040023070 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
23071 output.WriteRawMessage(this);
23072 #else
Sydney Acksman8a57ec82019-03-21 17:36:36 -050023073 if (HasA) {
23074 output.WriteRawTag(72);
23075 output.WriteInt32(A);
23076 }
23077 if (HasB) {
23078 output.WriteRawTag(82);
23079 output.WriteString(B);
23080 }
23081 if (_unknownFields != null) {
23082 _unknownFields.WriteTo(output);
23083 }
Jan Tattermusch125e4ad2020-05-29 04:32:43 -040023084 #endif
Sydney Acksman8a57ec82019-03-21 17:36:36 -050023085 }
23086
Jan Tattermusch125e4ad2020-05-29 04:32:43 -040023087 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
23088 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020023089 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Jan Tattermusch125e4ad2020-05-29 04:32:43 -040023090 void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
23091 if (HasA) {
23092 output.WriteRawTag(72);
23093 output.WriteInt32(A);
23094 }
23095 if (HasB) {
23096 output.WriteRawTag(82);
23097 output.WriteString(B);
23098 }
23099 if (_unknownFields != null) {
23100 _unknownFields.WriteTo(ref output);
23101 }
23102 }
23103 #endif
23104
Sydney Acksman8a57ec82019-03-21 17:36:36 -050023105 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020023106 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050023107 public int CalculateSize() {
23108 int size = 0;
23109 if (HasA) {
23110 size += 1 + pb::CodedOutputStream.ComputeInt32Size(A);
23111 }
23112 if (HasB) {
23113 size += 1 + pb::CodedOutputStream.ComputeStringSize(B);
23114 }
23115 if (_unknownFields != null) {
23116 size += _unknownFields.CalculateSize();
23117 }
23118 return size;
23119 }
23120
23121 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020023122 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050023123 public void MergeFrom(FooGroup other) {
23124 if (other == null) {
23125 return;
23126 }
23127 if (other.HasA) {
23128 A = other.A;
23129 }
23130 if (other.HasB) {
23131 B = other.B;
23132 }
23133 _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
23134 }
23135
23136 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020023137 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050023138 public void MergeFrom(pb::CodedInputStream input) {
Jan Tattermusch7cb55972020-06-02 09:26:25 +020023139 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
Jan Tattermusch3196ef92020-04-02 15:36:16 +020023140 input.ReadRawMessage(this);
Jan Tattermusch7cb55972020-06-02 09:26:25 +020023141 #else
23142 uint tag;
23143 while ((tag = input.ReadTag()) != 0) {
23144 switch(tag) {
23145 case 68:
23146 return;
23147 default:
23148 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
23149 break;
23150 case 72: {
23151 A = input.ReadInt32();
23152 break;
23153 }
23154 case 82: {
23155 B = input.ReadString();
23156 break;
23157 }
23158 }
23159 }
23160 #endif
Jan Tattermusch3196ef92020-04-02 15:36:16 +020023161 }
23162
Jan Tattermusch7cb55972020-06-02 09:26:25 +020023163 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
Jan Tattermusch3196ef92020-04-02 15:36:16 +020023164 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020023165 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Jan Tattermusch0df7ddc2020-04-14 12:41:03 +020023166 void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
Sydney Acksman8a57ec82019-03-21 17:36:36 -050023167 uint tag;
23168 while ((tag = input.ReadTag()) != 0) {
23169 switch(tag) {
23170 case 68:
23171 return;
23172 default:
Jan Tattermusch3196ef92020-04-02 15:36:16 +020023173 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
Sydney Acksman8a57ec82019-03-21 17:36:36 -050023174 break;
23175 case 72: {
23176 A = input.ReadInt32();
23177 break;
23178 }
23179 case 82: {
23180 B = input.ReadString();
23181 break;
23182 }
23183 }
23184 }
23185 }
Jan Tattermusch7cb55972020-06-02 09:26:25 +020023186 #endif
Sydney Acksman8a57ec82019-03-21 17:36:36 -050023187
23188 }
23189
Jan Tattermusch7cb55972020-06-02 09:26:25 +020023190 public sealed partial class NestedMessage : pb::IMessage<NestedMessage>
23191 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
23192 , pb::IBufferMessage
23193 #endif
23194 {
Sydney Acksman8a57ec82019-03-21 17:36:36 -050023195 private static readonly pb::MessageParser<NestedMessage> _parser = new pb::MessageParser<NestedMessage>(() => new NestedMessage());
23196 private pb::UnknownFieldSet _unknownFields;
23197 private int _hasBits0;
23198 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020023199 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050023200 public static pb::MessageParser<NestedMessage> Parser { get { return _parser; } }
23201
23202 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020023203 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050023204 public static pbr::MessageDescriptor Descriptor {
23205 get { return global::Google.Protobuf.TestProtos.Proto2.TestOneof2.Descriptor.NestedTypes[1]; }
23206 }
23207
23208 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020023209 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050023210 pbr::MessageDescriptor pb::IMessage.Descriptor {
23211 get { return Descriptor; }
23212 }
23213
23214 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020023215 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050023216 public NestedMessage() {
23217 OnConstruction();
23218 }
23219
23220 partial void OnConstruction();
23221
23222 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020023223 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050023224 public NestedMessage(NestedMessage other) : this() {
23225 _hasBits0 = other._hasBits0;
23226 quxInt_ = other.quxInt_;
23227 corgeInt_ = other.corgeInt_.Clone();
23228 _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
23229 }
23230
23231 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020023232 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050023233 public NestedMessage Clone() {
23234 return new NestedMessage(this);
23235 }
23236
23237 /// <summary>Field number for the "qux_int" field.</summary>
23238 public const int QuxIntFieldNumber = 1;
23239 private readonly static long QuxIntDefaultValue = 0L;
23240
23241 private long quxInt_;
23242 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020023243 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050023244 public long QuxInt {
23245 get { if ((_hasBits0 & 1) != 0) { return quxInt_; } else { return QuxIntDefaultValue; } }
23246 set {
23247 _hasBits0 |= 1;
23248 quxInt_ = value;
23249 }
23250 }
23251 /// <summary>Gets whether the "qux_int" field is set</summary>
23252 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020023253 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050023254 public bool HasQuxInt {
23255 get { return (_hasBits0 & 1) != 0; }
23256 }
23257 /// <summary>Clears the value of the "qux_int" field</summary>
23258 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020023259 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050023260 public void ClearQuxInt() {
23261 _hasBits0 &= ~1;
23262 }
23263
23264 /// <summary>Field number for the "corge_int" field.</summary>
23265 public const int CorgeIntFieldNumber = 2;
23266 private static readonly pb::FieldCodec<int> _repeated_corgeInt_codec
23267 = pb::FieldCodec.ForInt32(16);
23268 private readonly pbc::RepeatedField<int> corgeInt_ = new pbc::RepeatedField<int>();
23269 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020023270 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050023271 public pbc::RepeatedField<int> CorgeInt {
23272 get { return corgeInt_; }
23273 }
23274
23275 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020023276 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050023277 public override bool Equals(object other) {
23278 return Equals(other as NestedMessage);
23279 }
23280
23281 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020023282 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050023283 public bool Equals(NestedMessage other) {
23284 if (ReferenceEquals(other, null)) {
23285 return false;
23286 }
23287 if (ReferenceEquals(other, this)) {
23288 return true;
23289 }
23290 if (QuxInt != other.QuxInt) return false;
23291 if(!corgeInt_.Equals(other.corgeInt_)) return false;
23292 return Equals(_unknownFields, other._unknownFields);
23293 }
23294
23295 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020023296 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050023297 public override int GetHashCode() {
23298 int hash = 1;
23299 if (HasQuxInt) hash ^= QuxInt.GetHashCode();
23300 hash ^= corgeInt_.GetHashCode();
23301 if (_unknownFields != null) {
23302 hash ^= _unknownFields.GetHashCode();
23303 }
23304 return hash;
23305 }
23306
23307 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020023308 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050023309 public override string ToString() {
23310 return pb::JsonFormatter.ToDiagnosticString(this);
23311 }
23312
23313 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020023314 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050023315 public void WriteTo(pb::CodedOutputStream output) {
Jan Tattermusch125e4ad2020-05-29 04:32:43 -040023316 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
23317 output.WriteRawMessage(this);
23318 #else
Sydney Acksman8a57ec82019-03-21 17:36:36 -050023319 if (HasQuxInt) {
23320 output.WriteRawTag(8);
23321 output.WriteInt64(QuxInt);
23322 }
23323 corgeInt_.WriteTo(output, _repeated_corgeInt_codec);
23324 if (_unknownFields != null) {
23325 _unknownFields.WriteTo(output);
23326 }
Jan Tattermusch125e4ad2020-05-29 04:32:43 -040023327 #endif
Sydney Acksman8a57ec82019-03-21 17:36:36 -050023328 }
23329
Jan Tattermusch125e4ad2020-05-29 04:32:43 -040023330 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
23331 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020023332 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Jan Tattermusch125e4ad2020-05-29 04:32:43 -040023333 void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
23334 if (HasQuxInt) {
23335 output.WriteRawTag(8);
23336 output.WriteInt64(QuxInt);
23337 }
23338 corgeInt_.WriteTo(ref output, _repeated_corgeInt_codec);
23339 if (_unknownFields != null) {
23340 _unknownFields.WriteTo(ref output);
23341 }
23342 }
23343 #endif
23344
Sydney Acksman8a57ec82019-03-21 17:36:36 -050023345 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020023346 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050023347 public int CalculateSize() {
23348 int size = 0;
23349 if (HasQuxInt) {
23350 size += 1 + pb::CodedOutputStream.ComputeInt64Size(QuxInt);
23351 }
23352 size += corgeInt_.CalculateSize(_repeated_corgeInt_codec);
23353 if (_unknownFields != null) {
23354 size += _unknownFields.CalculateSize();
23355 }
23356 return size;
23357 }
23358
23359 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020023360 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050023361 public void MergeFrom(NestedMessage other) {
23362 if (other == null) {
23363 return;
23364 }
23365 if (other.HasQuxInt) {
23366 QuxInt = other.QuxInt;
23367 }
23368 corgeInt_.Add(other.corgeInt_);
23369 _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
23370 }
23371
23372 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020023373 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050023374 public void MergeFrom(pb::CodedInputStream input) {
Jan Tattermusch7cb55972020-06-02 09:26:25 +020023375 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
Jan Tattermusch3196ef92020-04-02 15:36:16 +020023376 input.ReadRawMessage(this);
Jan Tattermusch7cb55972020-06-02 09:26:25 +020023377 #else
23378 uint tag;
23379 while ((tag = input.ReadTag()) != 0) {
23380 switch(tag) {
23381 default:
23382 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
23383 break;
23384 case 8: {
23385 QuxInt = input.ReadInt64();
23386 break;
23387 }
23388 case 18:
23389 case 16: {
23390 corgeInt_.AddEntriesFrom(input, _repeated_corgeInt_codec);
23391 break;
23392 }
23393 }
23394 }
23395 #endif
Jan Tattermusch3196ef92020-04-02 15:36:16 +020023396 }
23397
Jan Tattermusch7cb55972020-06-02 09:26:25 +020023398 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
Jan Tattermusch3196ef92020-04-02 15:36:16 +020023399 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020023400 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Jan Tattermusch0df7ddc2020-04-14 12:41:03 +020023401 void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
Sydney Acksman8a57ec82019-03-21 17:36:36 -050023402 uint tag;
23403 while ((tag = input.ReadTag()) != 0) {
23404 switch(tag) {
23405 default:
Jan Tattermusch3196ef92020-04-02 15:36:16 +020023406 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
Sydney Acksman8a57ec82019-03-21 17:36:36 -050023407 break;
23408 case 8: {
23409 QuxInt = input.ReadInt64();
23410 break;
23411 }
23412 case 18:
23413 case 16: {
Jan Tattermusch3196ef92020-04-02 15:36:16 +020023414 corgeInt_.AddEntriesFrom(ref input, _repeated_corgeInt_codec);
Sydney Acksman8a57ec82019-03-21 17:36:36 -050023415 break;
23416 }
23417 }
23418 }
23419 }
Jan Tattermusch7cb55972020-06-02 09:26:25 +020023420 #endif
Sydney Acksman8a57ec82019-03-21 17:36:36 -050023421
23422 }
23423
23424 }
23425 #endregion
23426
23427 }
23428
Jan Tattermusch7cb55972020-06-02 09:26:25 +020023429 public sealed partial class TestRequiredOneof : pb::IMessage<TestRequiredOneof>
23430 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
23431 , pb::IBufferMessage
23432 #endif
23433 {
Sydney Acksman8a57ec82019-03-21 17:36:36 -050023434 private static readonly pb::MessageParser<TestRequiredOneof> _parser = new pb::MessageParser<TestRequiredOneof>(() => new TestRequiredOneof());
23435 private pb::UnknownFieldSet _unknownFields;
Sydney Acksman8a57ec82019-03-21 17:36:36 -050023436 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020023437 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050023438 public static pb::MessageParser<TestRequiredOneof> Parser { get { return _parser; } }
23439
23440 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020023441 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050023442 public static pbr::MessageDescriptor Descriptor {
23443 get { return global::Google.Protobuf.TestProtos.Proto2.UnittestReflection.Descriptor.MessageTypes[46]; }
23444 }
23445
23446 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020023447 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050023448 pbr::MessageDescriptor pb::IMessage.Descriptor {
23449 get { return Descriptor; }
23450 }
23451
23452 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020023453 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050023454 public TestRequiredOneof() {
23455 OnConstruction();
23456 }
23457
23458 partial void OnConstruction();
23459
23460 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020023461 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050023462 public TestRequiredOneof(TestRequiredOneof other) : this() {
Sydney Acksman8a57ec82019-03-21 17:36:36 -050023463 switch (other.FooCase) {
23464 case FooOneofCase.FooInt:
23465 FooInt = other.FooInt;
23466 break;
23467 case FooOneofCase.FooString:
23468 FooString = other.FooString;
23469 break;
23470 case FooOneofCase.FooMessage:
23471 FooMessage = other.FooMessage.Clone();
23472 break;
23473 }
23474
23475 _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
23476 }
23477
23478 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020023479 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050023480 public TestRequiredOneof Clone() {
23481 return new TestRequiredOneof(this);
23482 }
23483
23484 /// <summary>Field number for the "foo_int" field.</summary>
23485 public const int FooIntFieldNumber = 1;
23486 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020023487 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050023488 public int FooInt {
23489 get { return HasFooInt ? (int) foo_ : 0; }
23490 set {
23491 foo_ = value;
23492 fooCase_ = FooOneofCase.FooInt;
23493 }
23494 }
23495 /// <summary>Gets whether the "foo_int" field is set</summary>
23496 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020023497 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050023498 public bool HasFooInt {
23499 get { return fooCase_ == FooOneofCase.FooInt; }
23500 }
23501 /// <summary> Clears the value of the oneof if it's currently set to "foo_int" </summary>
23502 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020023503 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050023504 public void ClearFooInt() {
23505 if (HasFooInt) {
23506 ClearFoo();
23507 }
23508 }
23509
23510 /// <summary>Field number for the "foo_string" field.</summary>
23511 public const int FooStringFieldNumber = 2;
23512 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020023513 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050023514 public string FooString {
23515 get { return HasFooString ? (string) foo_ : ""; }
23516 set {
23517 foo_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
23518 fooCase_ = FooOneofCase.FooString;
23519 }
23520 }
23521 /// <summary>Gets whether the "foo_string" field is set</summary>
23522 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020023523 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050023524 public bool HasFooString {
23525 get { return fooCase_ == FooOneofCase.FooString; }
23526 }
23527 /// <summary> Clears the value of the oneof if it's currently set to "foo_string" </summary>
23528 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020023529 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050023530 public void ClearFooString() {
23531 if (HasFooString) {
23532 ClearFoo();
23533 }
23534 }
23535
23536 /// <summary>Field number for the "foo_message" field.</summary>
23537 public const int FooMessageFieldNumber = 3;
23538 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020023539 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050023540 public global::Google.Protobuf.TestProtos.Proto2.TestRequiredOneof.Types.NestedMessage FooMessage {
Jon Skeet9926c952020-04-27 07:18:45 +010023541 get { return fooCase_ == FooOneofCase.FooMessage ? (global::Google.Protobuf.TestProtos.Proto2.TestRequiredOneof.Types.NestedMessage) foo_ : null; }
Sydney Acksman8a57ec82019-03-21 17:36:36 -050023542 set {
23543 foo_ = value;
23544 fooCase_ = value == null ? FooOneofCase.None : FooOneofCase.FooMessage;
23545 }
23546 }
Sydney Acksman8a57ec82019-03-21 17:36:36 -050023547
23548 private object foo_;
23549 /// <summary>Enum of possible cases for the "foo" oneof.</summary>
23550 public enum FooOneofCase {
23551 None = 0,
23552 FooInt = 1,
23553 FooString = 2,
23554 FooMessage = 3,
23555 }
23556 private FooOneofCase fooCase_ = FooOneofCase.None;
23557 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020023558 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050023559 public FooOneofCase FooCase {
23560 get { return fooCase_; }
23561 }
23562
23563 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020023564 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050023565 public void ClearFoo() {
23566 fooCase_ = FooOneofCase.None;
23567 foo_ = null;
23568 }
23569
23570 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020023571 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050023572 public override bool Equals(object other) {
23573 return Equals(other as TestRequiredOneof);
23574 }
23575
23576 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020023577 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050023578 public bool Equals(TestRequiredOneof other) {
23579 if (ReferenceEquals(other, null)) {
23580 return false;
23581 }
23582 if (ReferenceEquals(other, this)) {
23583 return true;
23584 }
23585 if (FooInt != other.FooInt) return false;
23586 if (FooString != other.FooString) return false;
23587 if (!object.Equals(FooMessage, other.FooMessage)) return false;
23588 if (FooCase != other.FooCase) return false;
23589 return Equals(_unknownFields, other._unknownFields);
23590 }
23591
23592 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020023593 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050023594 public override int GetHashCode() {
23595 int hash = 1;
23596 if (HasFooInt) hash ^= FooInt.GetHashCode();
23597 if (HasFooString) hash ^= FooString.GetHashCode();
Jon Skeet9926c952020-04-27 07:18:45 +010023598 if (fooCase_ == FooOneofCase.FooMessage) hash ^= FooMessage.GetHashCode();
Sydney Acksman8a57ec82019-03-21 17:36:36 -050023599 hash ^= (int) fooCase_;
23600 if (_unknownFields != null) {
23601 hash ^= _unknownFields.GetHashCode();
23602 }
23603 return hash;
23604 }
23605
23606 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020023607 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050023608 public override string ToString() {
23609 return pb::JsonFormatter.ToDiagnosticString(this);
23610 }
23611
23612 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020023613 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050023614 public void WriteTo(pb::CodedOutputStream output) {
Jan Tattermusch125e4ad2020-05-29 04:32:43 -040023615 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
23616 output.WriteRawMessage(this);
23617 #else
Sydney Acksman8a57ec82019-03-21 17:36:36 -050023618 if (HasFooInt) {
23619 output.WriteRawTag(8);
23620 output.WriteInt32(FooInt);
23621 }
23622 if (HasFooString) {
23623 output.WriteRawTag(18);
23624 output.WriteString(FooString);
23625 }
Jon Skeet9926c952020-04-27 07:18:45 +010023626 if (fooCase_ == FooOneofCase.FooMessage) {
Sydney Acksman8a57ec82019-03-21 17:36:36 -050023627 output.WriteRawTag(26);
23628 output.WriteMessage(FooMessage);
23629 }
23630 if (_unknownFields != null) {
23631 _unknownFields.WriteTo(output);
23632 }
Jan Tattermusch125e4ad2020-05-29 04:32:43 -040023633 #endif
Sydney Acksman8a57ec82019-03-21 17:36:36 -050023634 }
23635
Jan Tattermusch125e4ad2020-05-29 04:32:43 -040023636 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
23637 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020023638 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Jan Tattermusch125e4ad2020-05-29 04:32:43 -040023639 void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
23640 if (HasFooInt) {
23641 output.WriteRawTag(8);
23642 output.WriteInt32(FooInt);
23643 }
23644 if (HasFooString) {
23645 output.WriteRawTag(18);
23646 output.WriteString(FooString);
23647 }
23648 if (fooCase_ == FooOneofCase.FooMessage) {
23649 output.WriteRawTag(26);
23650 output.WriteMessage(FooMessage);
23651 }
23652 if (_unknownFields != null) {
23653 _unknownFields.WriteTo(ref output);
23654 }
23655 }
23656 #endif
23657
Sydney Acksman8a57ec82019-03-21 17:36:36 -050023658 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020023659 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050023660 public int CalculateSize() {
23661 int size = 0;
23662 if (HasFooInt) {
23663 size += 1 + pb::CodedOutputStream.ComputeInt32Size(FooInt);
23664 }
23665 if (HasFooString) {
23666 size += 1 + pb::CodedOutputStream.ComputeStringSize(FooString);
23667 }
Jon Skeet9926c952020-04-27 07:18:45 +010023668 if (fooCase_ == FooOneofCase.FooMessage) {
Sydney Acksman8a57ec82019-03-21 17:36:36 -050023669 size += 1 + pb::CodedOutputStream.ComputeMessageSize(FooMessage);
23670 }
23671 if (_unknownFields != null) {
23672 size += _unknownFields.CalculateSize();
23673 }
23674 return size;
23675 }
23676
23677 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020023678 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050023679 public void MergeFrom(TestRequiredOneof other) {
23680 if (other == null) {
23681 return;
23682 }
23683 switch (other.FooCase) {
23684 case FooOneofCase.FooInt:
23685 FooInt = other.FooInt;
23686 break;
23687 case FooOneofCase.FooString:
23688 FooString = other.FooString;
23689 break;
23690 case FooOneofCase.FooMessage:
23691 if (FooMessage == null) {
23692 FooMessage = new global::Google.Protobuf.TestProtos.Proto2.TestRequiredOneof.Types.NestedMessage();
23693 }
23694 FooMessage.MergeFrom(other.FooMessage);
23695 break;
23696 }
23697
23698 _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
23699 }
23700
23701 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020023702 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050023703 public void MergeFrom(pb::CodedInputStream input) {
Jan Tattermusch7cb55972020-06-02 09:26:25 +020023704 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
Jan Tattermusch3196ef92020-04-02 15:36:16 +020023705 input.ReadRawMessage(this);
Jan Tattermusch7cb55972020-06-02 09:26:25 +020023706 #else
23707 uint tag;
23708 while ((tag = input.ReadTag()) != 0) {
23709 switch(tag) {
23710 default:
23711 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
23712 break;
23713 case 8: {
23714 FooInt = input.ReadInt32();
23715 break;
23716 }
23717 case 18: {
23718 FooString = input.ReadString();
23719 break;
23720 }
23721 case 26: {
23722 global::Google.Protobuf.TestProtos.Proto2.TestRequiredOneof.Types.NestedMessage subBuilder = new global::Google.Protobuf.TestProtos.Proto2.TestRequiredOneof.Types.NestedMessage();
23723 if (fooCase_ == FooOneofCase.FooMessage) {
23724 subBuilder.MergeFrom(FooMessage);
23725 }
23726 input.ReadMessage(subBuilder);
23727 FooMessage = subBuilder;
23728 break;
23729 }
23730 }
23731 }
23732 #endif
Jan Tattermusch3196ef92020-04-02 15:36:16 +020023733 }
23734
Jan Tattermusch7cb55972020-06-02 09:26:25 +020023735 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
Jan Tattermusch3196ef92020-04-02 15:36:16 +020023736 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020023737 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Jan Tattermusch0df7ddc2020-04-14 12:41:03 +020023738 void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
Sydney Acksman8a57ec82019-03-21 17:36:36 -050023739 uint tag;
23740 while ((tag = input.ReadTag()) != 0) {
23741 switch(tag) {
23742 default:
Jan Tattermusch3196ef92020-04-02 15:36:16 +020023743 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
Sydney Acksman8a57ec82019-03-21 17:36:36 -050023744 break;
23745 case 8: {
23746 FooInt = input.ReadInt32();
23747 break;
23748 }
23749 case 18: {
23750 FooString = input.ReadString();
23751 break;
23752 }
23753 case 26: {
23754 global::Google.Protobuf.TestProtos.Proto2.TestRequiredOneof.Types.NestedMessage subBuilder = new global::Google.Protobuf.TestProtos.Proto2.TestRequiredOneof.Types.NestedMessage();
Jon Skeet9926c952020-04-27 07:18:45 +010023755 if (fooCase_ == FooOneofCase.FooMessage) {
Sydney Acksman8a57ec82019-03-21 17:36:36 -050023756 subBuilder.MergeFrom(FooMessage);
23757 }
23758 input.ReadMessage(subBuilder);
23759 FooMessage = subBuilder;
23760 break;
23761 }
23762 }
23763 }
23764 }
Jan Tattermusch7cb55972020-06-02 09:26:25 +020023765 #endif
Sydney Acksman8a57ec82019-03-21 17:36:36 -050023766
23767 #region Nested types
23768 /// <summary>Container for nested types declared in the TestRequiredOneof message type.</summary>
23769 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020023770 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050023771 public static partial class Types {
Jan Tattermusch7cb55972020-06-02 09:26:25 +020023772 public sealed partial class NestedMessage : pb::IMessage<NestedMessage>
23773 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
23774 , pb::IBufferMessage
23775 #endif
23776 {
Sydney Acksman8a57ec82019-03-21 17:36:36 -050023777 private static readonly pb::MessageParser<NestedMessage> _parser = new pb::MessageParser<NestedMessage>(() => new NestedMessage());
23778 private pb::UnknownFieldSet _unknownFields;
23779 private int _hasBits0;
23780 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020023781 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050023782 public static pb::MessageParser<NestedMessage> Parser { get { return _parser; } }
23783
23784 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020023785 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050023786 public static pbr::MessageDescriptor Descriptor {
23787 get { return global::Google.Protobuf.TestProtos.Proto2.TestRequiredOneof.Descriptor.NestedTypes[0]; }
23788 }
23789
23790 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020023791 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050023792 pbr::MessageDescriptor pb::IMessage.Descriptor {
23793 get { return Descriptor; }
23794 }
23795
23796 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020023797 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050023798 public NestedMessage() {
23799 OnConstruction();
23800 }
23801
23802 partial void OnConstruction();
23803
23804 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020023805 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050023806 public NestedMessage(NestedMessage other) : this() {
23807 _hasBits0 = other._hasBits0;
23808 requiredDouble_ = other.requiredDouble_;
23809 _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
23810 }
23811
23812 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020023813 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050023814 public NestedMessage Clone() {
23815 return new NestedMessage(this);
23816 }
23817
23818 /// <summary>Field number for the "required_double" field.</summary>
23819 public const int RequiredDoubleFieldNumber = 1;
23820 private readonly static double RequiredDoubleDefaultValue = 0D;
23821
23822 private double requiredDouble_;
23823 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020023824 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050023825 public double RequiredDouble {
23826 get { if ((_hasBits0 & 1) != 0) { return requiredDouble_; } else { return RequiredDoubleDefaultValue; } }
23827 set {
23828 _hasBits0 |= 1;
23829 requiredDouble_ = value;
23830 }
23831 }
23832 /// <summary>Gets whether the "required_double" field is set</summary>
23833 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020023834 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050023835 public bool HasRequiredDouble {
23836 get { return (_hasBits0 & 1) != 0; }
23837 }
23838 /// <summary>Clears the value of the "required_double" field</summary>
23839 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020023840 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050023841 public void ClearRequiredDouble() {
23842 _hasBits0 &= ~1;
23843 }
23844
23845 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020023846 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050023847 public override bool Equals(object other) {
23848 return Equals(other as NestedMessage);
23849 }
23850
23851 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020023852 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050023853 public bool Equals(NestedMessage other) {
23854 if (ReferenceEquals(other, null)) {
23855 return false;
23856 }
23857 if (ReferenceEquals(other, this)) {
23858 return true;
23859 }
23860 if (!pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.Equals(RequiredDouble, other.RequiredDouble)) return false;
23861 return Equals(_unknownFields, other._unknownFields);
23862 }
23863
23864 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020023865 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050023866 public override int GetHashCode() {
23867 int hash = 1;
23868 if (HasRequiredDouble) hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(RequiredDouble);
23869 if (_unknownFields != null) {
23870 hash ^= _unknownFields.GetHashCode();
23871 }
23872 return hash;
23873 }
23874
23875 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020023876 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050023877 public override string ToString() {
23878 return pb::JsonFormatter.ToDiagnosticString(this);
23879 }
23880
23881 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020023882 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050023883 public void WriteTo(pb::CodedOutputStream output) {
Jan Tattermusch125e4ad2020-05-29 04:32:43 -040023884 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
23885 output.WriteRawMessage(this);
23886 #else
Sydney Acksman8a57ec82019-03-21 17:36:36 -050023887 if (HasRequiredDouble) {
23888 output.WriteRawTag(9);
23889 output.WriteDouble(RequiredDouble);
23890 }
23891 if (_unknownFields != null) {
23892 _unknownFields.WriteTo(output);
23893 }
Jan Tattermusch125e4ad2020-05-29 04:32:43 -040023894 #endif
Sydney Acksman8a57ec82019-03-21 17:36:36 -050023895 }
23896
Jan Tattermusch125e4ad2020-05-29 04:32:43 -040023897 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
23898 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020023899 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Jan Tattermusch125e4ad2020-05-29 04:32:43 -040023900 void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
23901 if (HasRequiredDouble) {
23902 output.WriteRawTag(9);
23903 output.WriteDouble(RequiredDouble);
23904 }
23905 if (_unknownFields != null) {
23906 _unknownFields.WriteTo(ref output);
23907 }
23908 }
23909 #endif
23910
Sydney Acksman8a57ec82019-03-21 17:36:36 -050023911 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020023912 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050023913 public int CalculateSize() {
23914 int size = 0;
23915 if (HasRequiredDouble) {
23916 size += 1 + 8;
23917 }
23918 if (_unknownFields != null) {
23919 size += _unknownFields.CalculateSize();
23920 }
23921 return size;
23922 }
23923
23924 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020023925 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050023926 public void MergeFrom(NestedMessage other) {
23927 if (other == null) {
23928 return;
23929 }
23930 if (other.HasRequiredDouble) {
23931 RequiredDouble = other.RequiredDouble;
23932 }
23933 _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
23934 }
23935
23936 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020023937 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050023938 public void MergeFrom(pb::CodedInputStream input) {
Jan Tattermusch7cb55972020-06-02 09:26:25 +020023939 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
Jan Tattermusch3196ef92020-04-02 15:36:16 +020023940 input.ReadRawMessage(this);
Jan Tattermusch7cb55972020-06-02 09:26:25 +020023941 #else
23942 uint tag;
23943 while ((tag = input.ReadTag()) != 0) {
23944 switch(tag) {
23945 default:
23946 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
23947 break;
23948 case 9: {
23949 RequiredDouble = input.ReadDouble();
23950 break;
23951 }
23952 }
23953 }
23954 #endif
Jan Tattermusch3196ef92020-04-02 15:36:16 +020023955 }
23956
Jan Tattermusch7cb55972020-06-02 09:26:25 +020023957 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
Jan Tattermusch3196ef92020-04-02 15:36:16 +020023958 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020023959 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Jan Tattermusch0df7ddc2020-04-14 12:41:03 +020023960 void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
Sydney Acksman8a57ec82019-03-21 17:36:36 -050023961 uint tag;
23962 while ((tag = input.ReadTag()) != 0) {
23963 switch(tag) {
23964 default:
Jan Tattermusch3196ef92020-04-02 15:36:16 +020023965 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
Sydney Acksman8a57ec82019-03-21 17:36:36 -050023966 break;
23967 case 9: {
23968 RequiredDouble = input.ReadDouble();
23969 break;
23970 }
23971 }
23972 }
23973 }
Jan Tattermusch7cb55972020-06-02 09:26:25 +020023974 #endif
Sydney Acksman8a57ec82019-03-21 17:36:36 -050023975
23976 }
23977
23978 }
23979 #endregion
23980
23981 }
23982
Jan Tattermusch7cb55972020-06-02 09:26:25 +020023983 public sealed partial class TestRequiredMap : pb::IMessage<TestRequiredMap>
23984 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
23985 , pb::IBufferMessage
23986 #endif
23987 {
Sydney Acksman8b7fb7d2019-03-23 11:41:57 -050023988 private static readonly pb::MessageParser<TestRequiredMap> _parser = new pb::MessageParser<TestRequiredMap>(() => new TestRequiredMap());
23989 private pb::UnknownFieldSet _unknownFields;
23990 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020023991 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8b7fb7d2019-03-23 11:41:57 -050023992 public static pb::MessageParser<TestRequiredMap> Parser { get { return _parser; } }
23993
23994 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020023995 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8b7fb7d2019-03-23 11:41:57 -050023996 public static pbr::MessageDescriptor Descriptor {
23997 get { return global::Google.Protobuf.TestProtos.Proto2.UnittestReflection.Descriptor.MessageTypes[47]; }
23998 }
23999
24000 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020024001 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8b7fb7d2019-03-23 11:41:57 -050024002 pbr::MessageDescriptor pb::IMessage.Descriptor {
24003 get { return Descriptor; }
24004 }
24005
24006 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020024007 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8b7fb7d2019-03-23 11:41:57 -050024008 public TestRequiredMap() {
24009 OnConstruction();
24010 }
24011
24012 partial void OnConstruction();
24013
24014 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020024015 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8b7fb7d2019-03-23 11:41:57 -050024016 public TestRequiredMap(TestRequiredMap other) : this() {
24017 foo_ = other.foo_.Clone();
24018 _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
24019 }
24020
24021 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020024022 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8b7fb7d2019-03-23 11:41:57 -050024023 public TestRequiredMap Clone() {
24024 return new TestRequiredMap(this);
24025 }
24026
24027 /// <summary>Field number for the "foo" field.</summary>
24028 public const int FooFieldNumber = 1;
24029 private static readonly pbc::MapField<int, global::Google.Protobuf.TestProtos.Proto2.TestRequiredMap.Types.NestedMessage>.Codec _map_foo_codec
24030 = new pbc::MapField<int, global::Google.Protobuf.TestProtos.Proto2.TestRequiredMap.Types.NestedMessage>.Codec(pb::FieldCodec.ForInt32(8, 0), pb::FieldCodec.ForMessage(18, global::Google.Protobuf.TestProtos.Proto2.TestRequiredMap.Types.NestedMessage.Parser), 10);
24031 private readonly pbc::MapField<int, global::Google.Protobuf.TestProtos.Proto2.TestRequiredMap.Types.NestedMessage> foo_ = new pbc::MapField<int, global::Google.Protobuf.TestProtos.Proto2.TestRequiredMap.Types.NestedMessage>();
24032 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020024033 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8b7fb7d2019-03-23 11:41:57 -050024034 public pbc::MapField<int, global::Google.Protobuf.TestProtos.Proto2.TestRequiredMap.Types.NestedMessage> Foo {
24035 get { return foo_; }
24036 }
24037
24038 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020024039 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8b7fb7d2019-03-23 11:41:57 -050024040 public override bool Equals(object other) {
24041 return Equals(other as TestRequiredMap);
24042 }
24043
24044 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020024045 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8b7fb7d2019-03-23 11:41:57 -050024046 public bool Equals(TestRequiredMap other) {
24047 if (ReferenceEquals(other, null)) {
24048 return false;
24049 }
24050 if (ReferenceEquals(other, this)) {
24051 return true;
24052 }
24053 if (!Foo.Equals(other.Foo)) return false;
24054 return Equals(_unknownFields, other._unknownFields);
24055 }
24056
24057 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020024058 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8b7fb7d2019-03-23 11:41:57 -050024059 public override int GetHashCode() {
24060 int hash = 1;
24061 hash ^= Foo.GetHashCode();
24062 if (_unknownFields != null) {
24063 hash ^= _unknownFields.GetHashCode();
24064 }
24065 return hash;
24066 }
24067
24068 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020024069 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8b7fb7d2019-03-23 11:41:57 -050024070 public override string ToString() {
24071 return pb::JsonFormatter.ToDiagnosticString(this);
24072 }
24073
24074 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020024075 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8b7fb7d2019-03-23 11:41:57 -050024076 public void WriteTo(pb::CodedOutputStream output) {
Jan Tattermusch125e4ad2020-05-29 04:32:43 -040024077 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
24078 output.WriteRawMessage(this);
24079 #else
Sydney Acksman8b7fb7d2019-03-23 11:41:57 -050024080 foo_.WriteTo(output, _map_foo_codec);
24081 if (_unknownFields != null) {
24082 _unknownFields.WriteTo(output);
24083 }
Jan Tattermusch125e4ad2020-05-29 04:32:43 -040024084 #endif
Sydney Acksman8b7fb7d2019-03-23 11:41:57 -050024085 }
24086
Jan Tattermusch125e4ad2020-05-29 04:32:43 -040024087 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
24088 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020024089 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Jan Tattermusch125e4ad2020-05-29 04:32:43 -040024090 void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
24091 foo_.WriteTo(ref output, _map_foo_codec);
24092 if (_unknownFields != null) {
24093 _unknownFields.WriteTo(ref output);
24094 }
24095 }
24096 #endif
24097
Sydney Acksman8b7fb7d2019-03-23 11:41:57 -050024098 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020024099 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8b7fb7d2019-03-23 11:41:57 -050024100 public int CalculateSize() {
24101 int size = 0;
24102 size += foo_.CalculateSize(_map_foo_codec);
24103 if (_unknownFields != null) {
24104 size += _unknownFields.CalculateSize();
24105 }
24106 return size;
24107 }
24108
24109 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020024110 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8b7fb7d2019-03-23 11:41:57 -050024111 public void MergeFrom(TestRequiredMap other) {
24112 if (other == null) {
24113 return;
24114 }
Jon Skeeta7dcf1b2022-08-02 09:40:40 +010024115 foo_.MergeFrom(other.foo_);
Sydney Acksman8b7fb7d2019-03-23 11:41:57 -050024116 _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
24117 }
24118
24119 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020024120 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8b7fb7d2019-03-23 11:41:57 -050024121 public void MergeFrom(pb::CodedInputStream input) {
Jan Tattermusch7cb55972020-06-02 09:26:25 +020024122 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
Jan Tattermusch3196ef92020-04-02 15:36:16 +020024123 input.ReadRawMessage(this);
Jan Tattermusch7cb55972020-06-02 09:26:25 +020024124 #else
24125 uint tag;
24126 while ((tag = input.ReadTag()) != 0) {
24127 switch(tag) {
24128 default:
24129 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
24130 break;
24131 case 10: {
24132 foo_.AddEntriesFrom(input, _map_foo_codec);
24133 break;
24134 }
24135 }
24136 }
24137 #endif
Jan Tattermusch3196ef92020-04-02 15:36:16 +020024138 }
24139
Jan Tattermusch7cb55972020-06-02 09:26:25 +020024140 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
Jan Tattermusch3196ef92020-04-02 15:36:16 +020024141 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020024142 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Jan Tattermusch0df7ddc2020-04-14 12:41:03 +020024143 void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
Sydney Acksman8b7fb7d2019-03-23 11:41:57 -050024144 uint tag;
24145 while ((tag = input.ReadTag()) != 0) {
24146 switch(tag) {
24147 default:
Jan Tattermusch3196ef92020-04-02 15:36:16 +020024148 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
Sydney Acksman8b7fb7d2019-03-23 11:41:57 -050024149 break;
24150 case 10: {
Jan Tattermusch3196ef92020-04-02 15:36:16 +020024151 foo_.AddEntriesFrom(ref input, _map_foo_codec);
Sydney Acksman8b7fb7d2019-03-23 11:41:57 -050024152 break;
24153 }
24154 }
24155 }
24156 }
Jan Tattermusch7cb55972020-06-02 09:26:25 +020024157 #endif
Sydney Acksman8b7fb7d2019-03-23 11:41:57 -050024158
24159 #region Nested types
24160 /// <summary>Container for nested types declared in the TestRequiredMap message type.</summary>
24161 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020024162 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8b7fb7d2019-03-23 11:41:57 -050024163 public static partial class Types {
Jan Tattermusch7cb55972020-06-02 09:26:25 +020024164 public sealed partial class NestedMessage : pb::IMessage<NestedMessage>
24165 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
24166 , pb::IBufferMessage
24167 #endif
24168 {
Sydney Acksman8b7fb7d2019-03-23 11:41:57 -050024169 private static readonly pb::MessageParser<NestedMessage> _parser = new pb::MessageParser<NestedMessage>(() => new NestedMessage());
24170 private pb::UnknownFieldSet _unknownFields;
24171 private int _hasBits0;
24172 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020024173 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8b7fb7d2019-03-23 11:41:57 -050024174 public static pb::MessageParser<NestedMessage> Parser { get { return _parser; } }
24175
24176 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020024177 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8b7fb7d2019-03-23 11:41:57 -050024178 public static pbr::MessageDescriptor Descriptor {
24179 get { return global::Google.Protobuf.TestProtos.Proto2.TestRequiredMap.Descriptor.NestedTypes[1]; }
24180 }
24181
24182 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020024183 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8b7fb7d2019-03-23 11:41:57 -050024184 pbr::MessageDescriptor pb::IMessage.Descriptor {
24185 get { return Descriptor; }
24186 }
24187
24188 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020024189 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8b7fb7d2019-03-23 11:41:57 -050024190 public NestedMessage() {
24191 OnConstruction();
24192 }
24193
24194 partial void OnConstruction();
24195
24196 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020024197 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8b7fb7d2019-03-23 11:41:57 -050024198 public NestedMessage(NestedMessage other) : this() {
24199 _hasBits0 = other._hasBits0;
24200 requiredInt32_ = other.requiredInt32_;
24201 _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
24202 }
24203
24204 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020024205 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8b7fb7d2019-03-23 11:41:57 -050024206 public NestedMessage Clone() {
24207 return new NestedMessage(this);
24208 }
24209
24210 /// <summary>Field number for the "required_int32" field.</summary>
24211 public const int RequiredInt32FieldNumber = 1;
24212 private readonly static int RequiredInt32DefaultValue = 0;
24213
24214 private int requiredInt32_;
24215 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020024216 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8b7fb7d2019-03-23 11:41:57 -050024217 public int RequiredInt32 {
24218 get { if ((_hasBits0 & 1) != 0) { return requiredInt32_; } else { return RequiredInt32DefaultValue; } }
24219 set {
24220 _hasBits0 |= 1;
24221 requiredInt32_ = value;
24222 }
24223 }
24224 /// <summary>Gets whether the "required_int32" field is set</summary>
24225 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020024226 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8b7fb7d2019-03-23 11:41:57 -050024227 public bool HasRequiredInt32 {
24228 get { return (_hasBits0 & 1) != 0; }
24229 }
24230 /// <summary>Clears the value of the "required_int32" field</summary>
24231 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020024232 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8b7fb7d2019-03-23 11:41:57 -050024233 public void ClearRequiredInt32() {
24234 _hasBits0 &= ~1;
24235 }
24236
24237 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020024238 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8b7fb7d2019-03-23 11:41:57 -050024239 public override bool Equals(object other) {
24240 return Equals(other as NestedMessage);
24241 }
24242
24243 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020024244 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8b7fb7d2019-03-23 11:41:57 -050024245 public bool Equals(NestedMessage other) {
24246 if (ReferenceEquals(other, null)) {
24247 return false;
24248 }
24249 if (ReferenceEquals(other, this)) {
24250 return true;
24251 }
24252 if (RequiredInt32 != other.RequiredInt32) return false;
24253 return Equals(_unknownFields, other._unknownFields);
24254 }
24255
24256 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020024257 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8b7fb7d2019-03-23 11:41:57 -050024258 public override int GetHashCode() {
24259 int hash = 1;
24260 if (HasRequiredInt32) hash ^= RequiredInt32.GetHashCode();
24261 if (_unknownFields != null) {
24262 hash ^= _unknownFields.GetHashCode();
24263 }
24264 return hash;
24265 }
24266
24267 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020024268 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8b7fb7d2019-03-23 11:41:57 -050024269 public override string ToString() {
24270 return pb::JsonFormatter.ToDiagnosticString(this);
24271 }
24272
24273 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020024274 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8b7fb7d2019-03-23 11:41:57 -050024275 public void WriteTo(pb::CodedOutputStream output) {
Jan Tattermusch125e4ad2020-05-29 04:32:43 -040024276 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
24277 output.WriteRawMessage(this);
24278 #else
Sydney Acksman8b7fb7d2019-03-23 11:41:57 -050024279 if (HasRequiredInt32) {
24280 output.WriteRawTag(8);
24281 output.WriteInt32(RequiredInt32);
24282 }
24283 if (_unknownFields != null) {
24284 _unknownFields.WriteTo(output);
24285 }
Jan Tattermusch125e4ad2020-05-29 04:32:43 -040024286 #endif
Sydney Acksman8b7fb7d2019-03-23 11:41:57 -050024287 }
24288
Jan Tattermusch125e4ad2020-05-29 04:32:43 -040024289 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
24290 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020024291 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Jan Tattermusch125e4ad2020-05-29 04:32:43 -040024292 void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
24293 if (HasRequiredInt32) {
24294 output.WriteRawTag(8);
24295 output.WriteInt32(RequiredInt32);
24296 }
24297 if (_unknownFields != null) {
24298 _unknownFields.WriteTo(ref output);
24299 }
24300 }
24301 #endif
24302
Sydney Acksman8b7fb7d2019-03-23 11:41:57 -050024303 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020024304 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8b7fb7d2019-03-23 11:41:57 -050024305 public int CalculateSize() {
24306 int size = 0;
24307 if (HasRequiredInt32) {
24308 size += 1 + pb::CodedOutputStream.ComputeInt32Size(RequiredInt32);
24309 }
24310 if (_unknownFields != null) {
24311 size += _unknownFields.CalculateSize();
24312 }
24313 return size;
24314 }
24315
24316 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020024317 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8b7fb7d2019-03-23 11:41:57 -050024318 public void MergeFrom(NestedMessage other) {
24319 if (other == null) {
24320 return;
24321 }
24322 if (other.HasRequiredInt32) {
24323 RequiredInt32 = other.RequiredInt32;
24324 }
24325 _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
24326 }
24327
24328 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020024329 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8b7fb7d2019-03-23 11:41:57 -050024330 public void MergeFrom(pb::CodedInputStream input) {
Jan Tattermusch7cb55972020-06-02 09:26:25 +020024331 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
Jan Tattermusch3196ef92020-04-02 15:36:16 +020024332 input.ReadRawMessage(this);
Jan Tattermusch7cb55972020-06-02 09:26:25 +020024333 #else
24334 uint tag;
24335 while ((tag = input.ReadTag()) != 0) {
24336 switch(tag) {
24337 default:
24338 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
24339 break;
24340 case 8: {
24341 RequiredInt32 = input.ReadInt32();
24342 break;
24343 }
24344 }
24345 }
24346 #endif
Jan Tattermusch3196ef92020-04-02 15:36:16 +020024347 }
24348
Jan Tattermusch7cb55972020-06-02 09:26:25 +020024349 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
Jan Tattermusch3196ef92020-04-02 15:36:16 +020024350 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020024351 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Jan Tattermusch0df7ddc2020-04-14 12:41:03 +020024352 void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
Sydney Acksman8b7fb7d2019-03-23 11:41:57 -050024353 uint tag;
24354 while ((tag = input.ReadTag()) != 0) {
24355 switch(tag) {
24356 default:
Jan Tattermusch3196ef92020-04-02 15:36:16 +020024357 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
Sydney Acksman8b7fb7d2019-03-23 11:41:57 -050024358 break;
24359 case 8: {
24360 RequiredInt32 = input.ReadInt32();
24361 break;
24362 }
24363 }
24364 }
24365 }
Jan Tattermusch7cb55972020-06-02 09:26:25 +020024366 #endif
Sydney Acksman8b7fb7d2019-03-23 11:41:57 -050024367
24368 }
24369
24370 }
24371 #endregion
24372
24373 }
24374
Jan Tattermusch7cb55972020-06-02 09:26:25 +020024375 public sealed partial class TestPackedTypes : pb::IMessage<TestPackedTypes>
24376 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
24377 , pb::IBufferMessage
24378 #endif
24379 {
Sydney Acksman8a57ec82019-03-21 17:36:36 -050024380 private static readonly pb::MessageParser<TestPackedTypes> _parser = new pb::MessageParser<TestPackedTypes>(() => new TestPackedTypes());
24381 private pb::UnknownFieldSet _unknownFields;
24382 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020024383 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050024384 public static pb::MessageParser<TestPackedTypes> Parser { get { return _parser; } }
24385
24386 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020024387 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050024388 public static pbr::MessageDescriptor Descriptor {
Sydney Acksman8b7fb7d2019-03-23 11:41:57 -050024389 get { return global::Google.Protobuf.TestProtos.Proto2.UnittestReflection.Descriptor.MessageTypes[48]; }
Sydney Acksman8a57ec82019-03-21 17:36:36 -050024390 }
24391
24392 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020024393 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050024394 pbr::MessageDescriptor pb::IMessage.Descriptor {
24395 get { return Descriptor; }
24396 }
24397
24398 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020024399 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050024400 public TestPackedTypes() {
24401 OnConstruction();
24402 }
24403
24404 partial void OnConstruction();
24405
24406 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020024407 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050024408 public TestPackedTypes(TestPackedTypes other) : this() {
24409 packedInt32_ = other.packedInt32_.Clone();
24410 packedInt64_ = other.packedInt64_.Clone();
24411 packedUint32_ = other.packedUint32_.Clone();
24412 packedUint64_ = other.packedUint64_.Clone();
24413 packedSint32_ = other.packedSint32_.Clone();
24414 packedSint64_ = other.packedSint64_.Clone();
24415 packedFixed32_ = other.packedFixed32_.Clone();
24416 packedFixed64_ = other.packedFixed64_.Clone();
24417 packedSfixed32_ = other.packedSfixed32_.Clone();
24418 packedSfixed64_ = other.packedSfixed64_.Clone();
24419 packedFloat_ = other.packedFloat_.Clone();
24420 packedDouble_ = other.packedDouble_.Clone();
24421 packedBool_ = other.packedBool_.Clone();
24422 packedEnum_ = other.packedEnum_.Clone();
24423 _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
24424 }
24425
24426 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020024427 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050024428 public TestPackedTypes Clone() {
24429 return new TestPackedTypes(this);
24430 }
24431
24432 /// <summary>Field number for the "packed_int32" field.</summary>
24433 public const int PackedInt32FieldNumber = 90;
24434 private static readonly pb::FieldCodec<int> _repeated_packedInt32_codec
24435 = pb::FieldCodec.ForInt32(722);
24436 private readonly pbc::RepeatedField<int> packedInt32_ = new pbc::RepeatedField<int>();
24437 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020024438 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050024439 public pbc::RepeatedField<int> PackedInt32 {
24440 get { return packedInt32_; }
24441 }
24442
24443 /// <summary>Field number for the "packed_int64" field.</summary>
24444 public const int PackedInt64FieldNumber = 91;
24445 private static readonly pb::FieldCodec<long> _repeated_packedInt64_codec
24446 = pb::FieldCodec.ForInt64(730);
24447 private readonly pbc::RepeatedField<long> packedInt64_ = new pbc::RepeatedField<long>();
24448 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020024449 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050024450 public pbc::RepeatedField<long> PackedInt64 {
24451 get { return packedInt64_; }
24452 }
24453
24454 /// <summary>Field number for the "packed_uint32" field.</summary>
24455 public const int PackedUint32FieldNumber = 92;
24456 private static readonly pb::FieldCodec<uint> _repeated_packedUint32_codec
24457 = pb::FieldCodec.ForUInt32(738);
24458 private readonly pbc::RepeatedField<uint> packedUint32_ = new pbc::RepeatedField<uint>();
24459 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020024460 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050024461 public pbc::RepeatedField<uint> PackedUint32 {
24462 get { return packedUint32_; }
24463 }
24464
24465 /// <summary>Field number for the "packed_uint64" field.</summary>
24466 public const int PackedUint64FieldNumber = 93;
24467 private static readonly pb::FieldCodec<ulong> _repeated_packedUint64_codec
24468 = pb::FieldCodec.ForUInt64(746);
24469 private readonly pbc::RepeatedField<ulong> packedUint64_ = new pbc::RepeatedField<ulong>();
24470 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020024471 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050024472 public pbc::RepeatedField<ulong> PackedUint64 {
24473 get { return packedUint64_; }
24474 }
24475
24476 /// <summary>Field number for the "packed_sint32" field.</summary>
24477 public const int PackedSint32FieldNumber = 94;
24478 private static readonly pb::FieldCodec<int> _repeated_packedSint32_codec
24479 = pb::FieldCodec.ForSInt32(754);
24480 private readonly pbc::RepeatedField<int> packedSint32_ = new pbc::RepeatedField<int>();
24481 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020024482 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050024483 public pbc::RepeatedField<int> PackedSint32 {
24484 get { return packedSint32_; }
24485 }
24486
24487 /// <summary>Field number for the "packed_sint64" field.</summary>
24488 public const int PackedSint64FieldNumber = 95;
24489 private static readonly pb::FieldCodec<long> _repeated_packedSint64_codec
24490 = pb::FieldCodec.ForSInt64(762);
24491 private readonly pbc::RepeatedField<long> packedSint64_ = new pbc::RepeatedField<long>();
24492 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020024493 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050024494 public pbc::RepeatedField<long> PackedSint64 {
24495 get { return packedSint64_; }
24496 }
24497
24498 /// <summary>Field number for the "packed_fixed32" field.</summary>
24499 public const int PackedFixed32FieldNumber = 96;
24500 private static readonly pb::FieldCodec<uint> _repeated_packedFixed32_codec
24501 = pb::FieldCodec.ForFixed32(770);
24502 private readonly pbc::RepeatedField<uint> packedFixed32_ = new pbc::RepeatedField<uint>();
24503 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020024504 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050024505 public pbc::RepeatedField<uint> PackedFixed32 {
24506 get { return packedFixed32_; }
24507 }
24508
24509 /// <summary>Field number for the "packed_fixed64" field.</summary>
24510 public const int PackedFixed64FieldNumber = 97;
24511 private static readonly pb::FieldCodec<ulong> _repeated_packedFixed64_codec
24512 = pb::FieldCodec.ForFixed64(778);
24513 private readonly pbc::RepeatedField<ulong> packedFixed64_ = new pbc::RepeatedField<ulong>();
24514 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020024515 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050024516 public pbc::RepeatedField<ulong> PackedFixed64 {
24517 get { return packedFixed64_; }
24518 }
24519
24520 /// <summary>Field number for the "packed_sfixed32" field.</summary>
24521 public const int PackedSfixed32FieldNumber = 98;
24522 private static readonly pb::FieldCodec<int> _repeated_packedSfixed32_codec
24523 = pb::FieldCodec.ForSFixed32(786);
24524 private readonly pbc::RepeatedField<int> packedSfixed32_ = new pbc::RepeatedField<int>();
24525 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020024526 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050024527 public pbc::RepeatedField<int> PackedSfixed32 {
24528 get { return packedSfixed32_; }
24529 }
24530
24531 /// <summary>Field number for the "packed_sfixed64" field.</summary>
24532 public const int PackedSfixed64FieldNumber = 99;
24533 private static readonly pb::FieldCodec<long> _repeated_packedSfixed64_codec
24534 = pb::FieldCodec.ForSFixed64(794);
24535 private readonly pbc::RepeatedField<long> packedSfixed64_ = new pbc::RepeatedField<long>();
24536 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020024537 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050024538 public pbc::RepeatedField<long> PackedSfixed64 {
24539 get { return packedSfixed64_; }
24540 }
24541
24542 /// <summary>Field number for the "packed_float" field.</summary>
24543 public const int PackedFloatFieldNumber = 100;
24544 private static readonly pb::FieldCodec<float> _repeated_packedFloat_codec
24545 = pb::FieldCodec.ForFloat(802);
24546 private readonly pbc::RepeatedField<float> packedFloat_ = new pbc::RepeatedField<float>();
24547 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020024548 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050024549 public pbc::RepeatedField<float> PackedFloat {
24550 get { return packedFloat_; }
24551 }
24552
24553 /// <summary>Field number for the "packed_double" field.</summary>
24554 public const int PackedDoubleFieldNumber = 101;
24555 private static readonly pb::FieldCodec<double> _repeated_packedDouble_codec
24556 = pb::FieldCodec.ForDouble(810);
24557 private readonly pbc::RepeatedField<double> packedDouble_ = new pbc::RepeatedField<double>();
24558 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020024559 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050024560 public pbc::RepeatedField<double> PackedDouble {
24561 get { return packedDouble_; }
24562 }
24563
24564 /// <summary>Field number for the "packed_bool" field.</summary>
24565 public const int PackedBoolFieldNumber = 102;
24566 private static readonly pb::FieldCodec<bool> _repeated_packedBool_codec
24567 = pb::FieldCodec.ForBool(818);
24568 private readonly pbc::RepeatedField<bool> packedBool_ = new pbc::RepeatedField<bool>();
24569 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020024570 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050024571 public pbc::RepeatedField<bool> PackedBool {
24572 get { return packedBool_; }
24573 }
24574
24575 /// <summary>Field number for the "packed_enum" field.</summary>
24576 public const int PackedEnumFieldNumber = 103;
24577 private static readonly pb::FieldCodec<global::Google.Protobuf.TestProtos.Proto2.ForeignEnum> _repeated_packedEnum_codec
24578 = pb::FieldCodec.ForEnum(826, x => (int) x, x => (global::Google.Protobuf.TestProtos.Proto2.ForeignEnum) x);
24579 private readonly pbc::RepeatedField<global::Google.Protobuf.TestProtos.Proto2.ForeignEnum> packedEnum_ = new pbc::RepeatedField<global::Google.Protobuf.TestProtos.Proto2.ForeignEnum>();
24580 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020024581 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050024582 public pbc::RepeatedField<global::Google.Protobuf.TestProtos.Proto2.ForeignEnum> PackedEnum {
24583 get { return packedEnum_; }
24584 }
24585
24586 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020024587 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050024588 public override bool Equals(object other) {
24589 return Equals(other as TestPackedTypes);
24590 }
24591
24592 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020024593 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050024594 public bool Equals(TestPackedTypes other) {
24595 if (ReferenceEquals(other, null)) {
24596 return false;
24597 }
24598 if (ReferenceEquals(other, this)) {
24599 return true;
24600 }
24601 if(!packedInt32_.Equals(other.packedInt32_)) return false;
24602 if(!packedInt64_.Equals(other.packedInt64_)) return false;
24603 if(!packedUint32_.Equals(other.packedUint32_)) return false;
24604 if(!packedUint64_.Equals(other.packedUint64_)) return false;
24605 if(!packedSint32_.Equals(other.packedSint32_)) return false;
24606 if(!packedSint64_.Equals(other.packedSint64_)) return false;
24607 if(!packedFixed32_.Equals(other.packedFixed32_)) return false;
24608 if(!packedFixed64_.Equals(other.packedFixed64_)) return false;
24609 if(!packedSfixed32_.Equals(other.packedSfixed32_)) return false;
24610 if(!packedSfixed64_.Equals(other.packedSfixed64_)) return false;
24611 if(!packedFloat_.Equals(other.packedFloat_)) return false;
24612 if(!packedDouble_.Equals(other.packedDouble_)) return false;
24613 if(!packedBool_.Equals(other.packedBool_)) return false;
24614 if(!packedEnum_.Equals(other.packedEnum_)) return false;
24615 return Equals(_unknownFields, other._unknownFields);
24616 }
24617
24618 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020024619 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050024620 public override int GetHashCode() {
24621 int hash = 1;
24622 hash ^= packedInt32_.GetHashCode();
24623 hash ^= packedInt64_.GetHashCode();
24624 hash ^= packedUint32_.GetHashCode();
24625 hash ^= packedUint64_.GetHashCode();
24626 hash ^= packedSint32_.GetHashCode();
24627 hash ^= packedSint64_.GetHashCode();
24628 hash ^= packedFixed32_.GetHashCode();
24629 hash ^= packedFixed64_.GetHashCode();
24630 hash ^= packedSfixed32_.GetHashCode();
24631 hash ^= packedSfixed64_.GetHashCode();
24632 hash ^= packedFloat_.GetHashCode();
24633 hash ^= packedDouble_.GetHashCode();
24634 hash ^= packedBool_.GetHashCode();
24635 hash ^= packedEnum_.GetHashCode();
24636 if (_unknownFields != null) {
24637 hash ^= _unknownFields.GetHashCode();
24638 }
24639 return hash;
24640 }
24641
24642 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020024643 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050024644 public override string ToString() {
24645 return pb::JsonFormatter.ToDiagnosticString(this);
24646 }
24647
24648 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020024649 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050024650 public void WriteTo(pb::CodedOutputStream output) {
Jan Tattermusch125e4ad2020-05-29 04:32:43 -040024651 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
24652 output.WriteRawMessage(this);
24653 #else
Sydney Acksman8a57ec82019-03-21 17:36:36 -050024654 packedInt32_.WriteTo(output, _repeated_packedInt32_codec);
24655 packedInt64_.WriteTo(output, _repeated_packedInt64_codec);
24656 packedUint32_.WriteTo(output, _repeated_packedUint32_codec);
24657 packedUint64_.WriteTo(output, _repeated_packedUint64_codec);
24658 packedSint32_.WriteTo(output, _repeated_packedSint32_codec);
24659 packedSint64_.WriteTo(output, _repeated_packedSint64_codec);
24660 packedFixed32_.WriteTo(output, _repeated_packedFixed32_codec);
24661 packedFixed64_.WriteTo(output, _repeated_packedFixed64_codec);
24662 packedSfixed32_.WriteTo(output, _repeated_packedSfixed32_codec);
24663 packedSfixed64_.WriteTo(output, _repeated_packedSfixed64_codec);
24664 packedFloat_.WriteTo(output, _repeated_packedFloat_codec);
24665 packedDouble_.WriteTo(output, _repeated_packedDouble_codec);
24666 packedBool_.WriteTo(output, _repeated_packedBool_codec);
Jan Tattermusch90703892020-05-29 07:35:21 -040024667 packedEnum_.WriteTo(output, _repeated_packedEnum_codec);
Sydney Acksman8a57ec82019-03-21 17:36:36 -050024668 if (_unknownFields != null) {
24669 _unknownFields.WriteTo(output);
24670 }
Jan Tattermusch125e4ad2020-05-29 04:32:43 -040024671 #endif
Sydney Acksman8a57ec82019-03-21 17:36:36 -050024672 }
24673
Jan Tattermusch125e4ad2020-05-29 04:32:43 -040024674 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
24675 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020024676 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Jan Tattermusch125e4ad2020-05-29 04:32:43 -040024677 void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
24678 packedInt32_.WriteTo(ref output, _repeated_packedInt32_codec);
24679 packedInt64_.WriteTo(ref output, _repeated_packedInt64_codec);
24680 packedUint32_.WriteTo(ref output, _repeated_packedUint32_codec);
24681 packedUint64_.WriteTo(ref output, _repeated_packedUint64_codec);
24682 packedSint32_.WriteTo(ref output, _repeated_packedSint32_codec);
24683 packedSint64_.WriteTo(ref output, _repeated_packedSint64_codec);
24684 packedFixed32_.WriteTo(ref output, _repeated_packedFixed32_codec);
24685 packedFixed64_.WriteTo(ref output, _repeated_packedFixed64_codec);
24686 packedSfixed32_.WriteTo(ref output, _repeated_packedSfixed32_codec);
24687 packedSfixed64_.WriteTo(ref output, _repeated_packedSfixed64_codec);
24688 packedFloat_.WriteTo(ref output, _repeated_packedFloat_codec);
24689 packedDouble_.WriteTo(ref output, _repeated_packedDouble_codec);
24690 packedBool_.WriteTo(ref output, _repeated_packedBool_codec);
24691 packedEnum_.WriteTo(ref output, _repeated_packedEnum_codec);
24692 if (_unknownFields != null) {
24693 _unknownFields.WriteTo(ref output);
24694 }
24695 }
24696 #endif
24697
Sydney Acksman8a57ec82019-03-21 17:36:36 -050024698 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020024699 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050024700 public int CalculateSize() {
24701 int size = 0;
24702 size += packedInt32_.CalculateSize(_repeated_packedInt32_codec);
24703 size += packedInt64_.CalculateSize(_repeated_packedInt64_codec);
24704 size += packedUint32_.CalculateSize(_repeated_packedUint32_codec);
24705 size += packedUint64_.CalculateSize(_repeated_packedUint64_codec);
24706 size += packedSint32_.CalculateSize(_repeated_packedSint32_codec);
24707 size += packedSint64_.CalculateSize(_repeated_packedSint64_codec);
24708 size += packedFixed32_.CalculateSize(_repeated_packedFixed32_codec);
24709 size += packedFixed64_.CalculateSize(_repeated_packedFixed64_codec);
24710 size += packedSfixed32_.CalculateSize(_repeated_packedSfixed32_codec);
24711 size += packedSfixed64_.CalculateSize(_repeated_packedSfixed64_codec);
24712 size += packedFloat_.CalculateSize(_repeated_packedFloat_codec);
24713 size += packedDouble_.CalculateSize(_repeated_packedDouble_codec);
24714 size += packedBool_.CalculateSize(_repeated_packedBool_codec);
24715 size += packedEnum_.CalculateSize(_repeated_packedEnum_codec);
24716 if (_unknownFields != null) {
24717 size += _unknownFields.CalculateSize();
24718 }
24719 return size;
24720 }
24721
24722 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020024723 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050024724 public void MergeFrom(TestPackedTypes other) {
24725 if (other == null) {
24726 return;
24727 }
24728 packedInt32_.Add(other.packedInt32_);
24729 packedInt64_.Add(other.packedInt64_);
24730 packedUint32_.Add(other.packedUint32_);
24731 packedUint64_.Add(other.packedUint64_);
24732 packedSint32_.Add(other.packedSint32_);
24733 packedSint64_.Add(other.packedSint64_);
24734 packedFixed32_.Add(other.packedFixed32_);
24735 packedFixed64_.Add(other.packedFixed64_);
24736 packedSfixed32_.Add(other.packedSfixed32_);
24737 packedSfixed64_.Add(other.packedSfixed64_);
24738 packedFloat_.Add(other.packedFloat_);
24739 packedDouble_.Add(other.packedDouble_);
24740 packedBool_.Add(other.packedBool_);
24741 packedEnum_.Add(other.packedEnum_);
24742 _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
24743 }
24744
24745 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020024746 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050024747 public void MergeFrom(pb::CodedInputStream input) {
Jan Tattermusch7cb55972020-06-02 09:26:25 +020024748 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
Jan Tattermusch3196ef92020-04-02 15:36:16 +020024749 input.ReadRawMessage(this);
Jan Tattermusch7cb55972020-06-02 09:26:25 +020024750 #else
24751 uint tag;
24752 while ((tag = input.ReadTag()) != 0) {
24753 switch(tag) {
24754 default:
24755 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
24756 break;
24757 case 722:
24758 case 720: {
24759 packedInt32_.AddEntriesFrom(input, _repeated_packedInt32_codec);
24760 break;
24761 }
24762 case 730:
24763 case 728: {
24764 packedInt64_.AddEntriesFrom(input, _repeated_packedInt64_codec);
24765 break;
24766 }
24767 case 738:
24768 case 736: {
24769 packedUint32_.AddEntriesFrom(input, _repeated_packedUint32_codec);
24770 break;
24771 }
24772 case 746:
24773 case 744: {
24774 packedUint64_.AddEntriesFrom(input, _repeated_packedUint64_codec);
24775 break;
24776 }
24777 case 754:
24778 case 752: {
24779 packedSint32_.AddEntriesFrom(input, _repeated_packedSint32_codec);
24780 break;
24781 }
24782 case 762:
24783 case 760: {
24784 packedSint64_.AddEntriesFrom(input, _repeated_packedSint64_codec);
24785 break;
24786 }
24787 case 770:
24788 case 773: {
24789 packedFixed32_.AddEntriesFrom(input, _repeated_packedFixed32_codec);
24790 break;
24791 }
24792 case 778:
24793 case 777: {
24794 packedFixed64_.AddEntriesFrom(input, _repeated_packedFixed64_codec);
24795 break;
24796 }
24797 case 786:
24798 case 789: {
24799 packedSfixed32_.AddEntriesFrom(input, _repeated_packedSfixed32_codec);
24800 break;
24801 }
24802 case 794:
24803 case 793: {
24804 packedSfixed64_.AddEntriesFrom(input, _repeated_packedSfixed64_codec);
24805 break;
24806 }
24807 case 802:
24808 case 805: {
24809 packedFloat_.AddEntriesFrom(input, _repeated_packedFloat_codec);
24810 break;
24811 }
24812 case 810:
24813 case 809: {
24814 packedDouble_.AddEntriesFrom(input, _repeated_packedDouble_codec);
24815 break;
24816 }
24817 case 818:
24818 case 816: {
24819 packedBool_.AddEntriesFrom(input, _repeated_packedBool_codec);
24820 break;
24821 }
24822 case 826:
24823 case 824: {
24824 packedEnum_.AddEntriesFrom(input, _repeated_packedEnum_codec);
24825 break;
24826 }
24827 }
24828 }
24829 #endif
Jan Tattermusch3196ef92020-04-02 15:36:16 +020024830 }
24831
Jan Tattermusch7cb55972020-06-02 09:26:25 +020024832 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
Jan Tattermusch3196ef92020-04-02 15:36:16 +020024833 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020024834 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Jan Tattermusch0df7ddc2020-04-14 12:41:03 +020024835 void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
Sydney Acksman8a57ec82019-03-21 17:36:36 -050024836 uint tag;
24837 while ((tag = input.ReadTag()) != 0) {
24838 switch(tag) {
24839 default:
Jan Tattermusch3196ef92020-04-02 15:36:16 +020024840 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
Sydney Acksman8a57ec82019-03-21 17:36:36 -050024841 break;
24842 case 722:
24843 case 720: {
Jan Tattermusch3196ef92020-04-02 15:36:16 +020024844 packedInt32_.AddEntriesFrom(ref input, _repeated_packedInt32_codec);
Sydney Acksman8a57ec82019-03-21 17:36:36 -050024845 break;
24846 }
24847 case 730:
24848 case 728: {
Jan Tattermusch3196ef92020-04-02 15:36:16 +020024849 packedInt64_.AddEntriesFrom(ref input, _repeated_packedInt64_codec);
Sydney Acksman8a57ec82019-03-21 17:36:36 -050024850 break;
24851 }
24852 case 738:
24853 case 736: {
Jan Tattermusch3196ef92020-04-02 15:36:16 +020024854 packedUint32_.AddEntriesFrom(ref input, _repeated_packedUint32_codec);
Sydney Acksman8a57ec82019-03-21 17:36:36 -050024855 break;
24856 }
24857 case 746:
24858 case 744: {
Jan Tattermusch3196ef92020-04-02 15:36:16 +020024859 packedUint64_.AddEntriesFrom(ref input, _repeated_packedUint64_codec);
Sydney Acksman8a57ec82019-03-21 17:36:36 -050024860 break;
24861 }
24862 case 754:
24863 case 752: {
Jan Tattermusch3196ef92020-04-02 15:36:16 +020024864 packedSint32_.AddEntriesFrom(ref input, _repeated_packedSint32_codec);
Sydney Acksman8a57ec82019-03-21 17:36:36 -050024865 break;
24866 }
24867 case 762:
24868 case 760: {
Jan Tattermusch3196ef92020-04-02 15:36:16 +020024869 packedSint64_.AddEntriesFrom(ref input, _repeated_packedSint64_codec);
Sydney Acksman8a57ec82019-03-21 17:36:36 -050024870 break;
24871 }
24872 case 770:
24873 case 773: {
Jan Tattermusch3196ef92020-04-02 15:36:16 +020024874 packedFixed32_.AddEntriesFrom(ref input, _repeated_packedFixed32_codec);
Sydney Acksman8a57ec82019-03-21 17:36:36 -050024875 break;
24876 }
24877 case 778:
24878 case 777: {
Jan Tattermusch3196ef92020-04-02 15:36:16 +020024879 packedFixed64_.AddEntriesFrom(ref input, _repeated_packedFixed64_codec);
Sydney Acksman8a57ec82019-03-21 17:36:36 -050024880 break;
24881 }
24882 case 786:
24883 case 789: {
Jan Tattermusch3196ef92020-04-02 15:36:16 +020024884 packedSfixed32_.AddEntriesFrom(ref input, _repeated_packedSfixed32_codec);
Sydney Acksman8a57ec82019-03-21 17:36:36 -050024885 break;
24886 }
24887 case 794:
24888 case 793: {
Jan Tattermusch3196ef92020-04-02 15:36:16 +020024889 packedSfixed64_.AddEntriesFrom(ref input, _repeated_packedSfixed64_codec);
Sydney Acksman8a57ec82019-03-21 17:36:36 -050024890 break;
24891 }
24892 case 802:
24893 case 805: {
Jan Tattermusch3196ef92020-04-02 15:36:16 +020024894 packedFloat_.AddEntriesFrom(ref input, _repeated_packedFloat_codec);
Sydney Acksman8a57ec82019-03-21 17:36:36 -050024895 break;
24896 }
24897 case 810:
24898 case 809: {
Jan Tattermusch3196ef92020-04-02 15:36:16 +020024899 packedDouble_.AddEntriesFrom(ref input, _repeated_packedDouble_codec);
Sydney Acksman8a57ec82019-03-21 17:36:36 -050024900 break;
24901 }
24902 case 818:
24903 case 816: {
Jan Tattermusch3196ef92020-04-02 15:36:16 +020024904 packedBool_.AddEntriesFrom(ref input, _repeated_packedBool_codec);
Sydney Acksman8a57ec82019-03-21 17:36:36 -050024905 break;
24906 }
24907 case 826:
24908 case 824: {
Jan Tattermusch3196ef92020-04-02 15:36:16 +020024909 packedEnum_.AddEntriesFrom(ref input, _repeated_packedEnum_codec);
Sydney Acksman8a57ec82019-03-21 17:36:36 -050024910 break;
24911 }
24912 }
24913 }
24914 }
Jan Tattermusch7cb55972020-06-02 09:26:25 +020024915 #endif
Sydney Acksman8a57ec82019-03-21 17:36:36 -050024916
24917 }
24918
24919 /// <summary>
24920 /// A message with the same fields as TestPackedTypes, but without packing. Used
24921 /// to test packed &lt;-> unpacked wire compatibility.
24922 /// </summary>
Jan Tattermusch7cb55972020-06-02 09:26:25 +020024923 public sealed partial class TestUnpackedTypes : pb::IMessage<TestUnpackedTypes>
24924 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
24925 , pb::IBufferMessage
24926 #endif
24927 {
Sydney Acksman8a57ec82019-03-21 17:36:36 -050024928 private static readonly pb::MessageParser<TestUnpackedTypes> _parser = new pb::MessageParser<TestUnpackedTypes>(() => new TestUnpackedTypes());
24929 private pb::UnknownFieldSet _unknownFields;
24930 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020024931 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050024932 public static pb::MessageParser<TestUnpackedTypes> Parser { get { return _parser; } }
24933
24934 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020024935 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050024936 public static pbr::MessageDescriptor Descriptor {
Sydney Acksman8b7fb7d2019-03-23 11:41:57 -050024937 get { return global::Google.Protobuf.TestProtos.Proto2.UnittestReflection.Descriptor.MessageTypes[49]; }
Sydney Acksman8a57ec82019-03-21 17:36:36 -050024938 }
24939
24940 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020024941 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050024942 pbr::MessageDescriptor pb::IMessage.Descriptor {
24943 get { return Descriptor; }
24944 }
24945
24946 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020024947 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050024948 public TestUnpackedTypes() {
24949 OnConstruction();
24950 }
24951
24952 partial void OnConstruction();
24953
24954 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020024955 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050024956 public TestUnpackedTypes(TestUnpackedTypes other) : this() {
24957 unpackedInt32_ = other.unpackedInt32_.Clone();
24958 unpackedInt64_ = other.unpackedInt64_.Clone();
24959 unpackedUint32_ = other.unpackedUint32_.Clone();
24960 unpackedUint64_ = other.unpackedUint64_.Clone();
24961 unpackedSint32_ = other.unpackedSint32_.Clone();
24962 unpackedSint64_ = other.unpackedSint64_.Clone();
24963 unpackedFixed32_ = other.unpackedFixed32_.Clone();
24964 unpackedFixed64_ = other.unpackedFixed64_.Clone();
24965 unpackedSfixed32_ = other.unpackedSfixed32_.Clone();
24966 unpackedSfixed64_ = other.unpackedSfixed64_.Clone();
24967 unpackedFloat_ = other.unpackedFloat_.Clone();
24968 unpackedDouble_ = other.unpackedDouble_.Clone();
24969 unpackedBool_ = other.unpackedBool_.Clone();
24970 unpackedEnum_ = other.unpackedEnum_.Clone();
24971 _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
24972 }
24973
24974 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020024975 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050024976 public TestUnpackedTypes Clone() {
24977 return new TestUnpackedTypes(this);
24978 }
24979
24980 /// <summary>Field number for the "unpacked_int32" field.</summary>
24981 public const int UnpackedInt32FieldNumber = 90;
24982 private static readonly pb::FieldCodec<int> _repeated_unpackedInt32_codec
24983 = pb::FieldCodec.ForInt32(720);
24984 private readonly pbc::RepeatedField<int> unpackedInt32_ = new pbc::RepeatedField<int>();
24985 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020024986 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050024987 public pbc::RepeatedField<int> UnpackedInt32 {
24988 get { return unpackedInt32_; }
24989 }
24990
24991 /// <summary>Field number for the "unpacked_int64" field.</summary>
24992 public const int UnpackedInt64FieldNumber = 91;
24993 private static readonly pb::FieldCodec<long> _repeated_unpackedInt64_codec
24994 = pb::FieldCodec.ForInt64(728);
24995 private readonly pbc::RepeatedField<long> unpackedInt64_ = new pbc::RepeatedField<long>();
24996 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020024997 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050024998 public pbc::RepeatedField<long> UnpackedInt64 {
24999 get { return unpackedInt64_; }
25000 }
25001
25002 /// <summary>Field number for the "unpacked_uint32" field.</summary>
25003 public const int UnpackedUint32FieldNumber = 92;
25004 private static readonly pb::FieldCodec<uint> _repeated_unpackedUint32_codec
25005 = pb::FieldCodec.ForUInt32(736);
25006 private readonly pbc::RepeatedField<uint> unpackedUint32_ = new pbc::RepeatedField<uint>();
25007 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020025008 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050025009 public pbc::RepeatedField<uint> UnpackedUint32 {
25010 get { return unpackedUint32_; }
25011 }
25012
25013 /// <summary>Field number for the "unpacked_uint64" field.</summary>
25014 public const int UnpackedUint64FieldNumber = 93;
25015 private static readonly pb::FieldCodec<ulong> _repeated_unpackedUint64_codec
25016 = pb::FieldCodec.ForUInt64(744);
25017 private readonly pbc::RepeatedField<ulong> unpackedUint64_ = new pbc::RepeatedField<ulong>();
25018 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020025019 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050025020 public pbc::RepeatedField<ulong> UnpackedUint64 {
25021 get { return unpackedUint64_; }
25022 }
25023
25024 /// <summary>Field number for the "unpacked_sint32" field.</summary>
25025 public const int UnpackedSint32FieldNumber = 94;
25026 private static readonly pb::FieldCodec<int> _repeated_unpackedSint32_codec
25027 = pb::FieldCodec.ForSInt32(752);
25028 private readonly pbc::RepeatedField<int> unpackedSint32_ = new pbc::RepeatedField<int>();
25029 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020025030 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050025031 public pbc::RepeatedField<int> UnpackedSint32 {
25032 get { return unpackedSint32_; }
25033 }
25034
25035 /// <summary>Field number for the "unpacked_sint64" field.</summary>
25036 public const int UnpackedSint64FieldNumber = 95;
25037 private static readonly pb::FieldCodec<long> _repeated_unpackedSint64_codec
25038 = pb::FieldCodec.ForSInt64(760);
25039 private readonly pbc::RepeatedField<long> unpackedSint64_ = new pbc::RepeatedField<long>();
25040 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020025041 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050025042 public pbc::RepeatedField<long> UnpackedSint64 {
25043 get { return unpackedSint64_; }
25044 }
25045
25046 /// <summary>Field number for the "unpacked_fixed32" field.</summary>
25047 public const int UnpackedFixed32FieldNumber = 96;
25048 private static readonly pb::FieldCodec<uint> _repeated_unpackedFixed32_codec
25049 = pb::FieldCodec.ForFixed32(773);
25050 private readonly pbc::RepeatedField<uint> unpackedFixed32_ = new pbc::RepeatedField<uint>();
25051 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020025052 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050025053 public pbc::RepeatedField<uint> UnpackedFixed32 {
25054 get { return unpackedFixed32_; }
25055 }
25056
25057 /// <summary>Field number for the "unpacked_fixed64" field.</summary>
25058 public const int UnpackedFixed64FieldNumber = 97;
25059 private static readonly pb::FieldCodec<ulong> _repeated_unpackedFixed64_codec
25060 = pb::FieldCodec.ForFixed64(777);
25061 private readonly pbc::RepeatedField<ulong> unpackedFixed64_ = new pbc::RepeatedField<ulong>();
25062 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020025063 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050025064 public pbc::RepeatedField<ulong> UnpackedFixed64 {
25065 get { return unpackedFixed64_; }
25066 }
25067
25068 /// <summary>Field number for the "unpacked_sfixed32" field.</summary>
25069 public const int UnpackedSfixed32FieldNumber = 98;
25070 private static readonly pb::FieldCodec<int> _repeated_unpackedSfixed32_codec
25071 = pb::FieldCodec.ForSFixed32(789);
25072 private readonly pbc::RepeatedField<int> unpackedSfixed32_ = new pbc::RepeatedField<int>();
25073 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020025074 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050025075 public pbc::RepeatedField<int> UnpackedSfixed32 {
25076 get { return unpackedSfixed32_; }
25077 }
25078
25079 /// <summary>Field number for the "unpacked_sfixed64" field.</summary>
25080 public const int UnpackedSfixed64FieldNumber = 99;
25081 private static readonly pb::FieldCodec<long> _repeated_unpackedSfixed64_codec
25082 = pb::FieldCodec.ForSFixed64(793);
25083 private readonly pbc::RepeatedField<long> unpackedSfixed64_ = new pbc::RepeatedField<long>();
25084 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020025085 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050025086 public pbc::RepeatedField<long> UnpackedSfixed64 {
25087 get { return unpackedSfixed64_; }
25088 }
25089
25090 /// <summary>Field number for the "unpacked_float" field.</summary>
25091 public const int UnpackedFloatFieldNumber = 100;
25092 private static readonly pb::FieldCodec<float> _repeated_unpackedFloat_codec
25093 = pb::FieldCodec.ForFloat(805);
25094 private readonly pbc::RepeatedField<float> unpackedFloat_ = new pbc::RepeatedField<float>();
25095 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020025096 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050025097 public pbc::RepeatedField<float> UnpackedFloat {
25098 get { return unpackedFloat_; }
25099 }
25100
25101 /// <summary>Field number for the "unpacked_double" field.</summary>
25102 public const int UnpackedDoubleFieldNumber = 101;
25103 private static readonly pb::FieldCodec<double> _repeated_unpackedDouble_codec
25104 = pb::FieldCodec.ForDouble(809);
25105 private readonly pbc::RepeatedField<double> unpackedDouble_ = new pbc::RepeatedField<double>();
25106 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020025107 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050025108 public pbc::RepeatedField<double> UnpackedDouble {
25109 get { return unpackedDouble_; }
25110 }
25111
25112 /// <summary>Field number for the "unpacked_bool" field.</summary>
25113 public const int UnpackedBoolFieldNumber = 102;
25114 private static readonly pb::FieldCodec<bool> _repeated_unpackedBool_codec
25115 = pb::FieldCodec.ForBool(816);
25116 private readonly pbc::RepeatedField<bool> unpackedBool_ = new pbc::RepeatedField<bool>();
25117 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020025118 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050025119 public pbc::RepeatedField<bool> UnpackedBool {
25120 get { return unpackedBool_; }
25121 }
25122
25123 /// <summary>Field number for the "unpacked_enum" field.</summary>
25124 public const int UnpackedEnumFieldNumber = 103;
25125 private static readonly pb::FieldCodec<global::Google.Protobuf.TestProtos.Proto2.ForeignEnum> _repeated_unpackedEnum_codec
25126 = pb::FieldCodec.ForEnum(824, x => (int) x, x => (global::Google.Protobuf.TestProtos.Proto2.ForeignEnum) x);
25127 private readonly pbc::RepeatedField<global::Google.Protobuf.TestProtos.Proto2.ForeignEnum> unpackedEnum_ = new pbc::RepeatedField<global::Google.Protobuf.TestProtos.Proto2.ForeignEnum>();
25128 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020025129 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050025130 public pbc::RepeatedField<global::Google.Protobuf.TestProtos.Proto2.ForeignEnum> UnpackedEnum {
25131 get { return unpackedEnum_; }
25132 }
25133
25134 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020025135 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050025136 public override bool Equals(object other) {
25137 return Equals(other as TestUnpackedTypes);
25138 }
25139
25140 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020025141 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050025142 public bool Equals(TestUnpackedTypes other) {
25143 if (ReferenceEquals(other, null)) {
25144 return false;
25145 }
25146 if (ReferenceEquals(other, this)) {
25147 return true;
25148 }
25149 if(!unpackedInt32_.Equals(other.unpackedInt32_)) return false;
25150 if(!unpackedInt64_.Equals(other.unpackedInt64_)) return false;
25151 if(!unpackedUint32_.Equals(other.unpackedUint32_)) return false;
25152 if(!unpackedUint64_.Equals(other.unpackedUint64_)) return false;
25153 if(!unpackedSint32_.Equals(other.unpackedSint32_)) return false;
25154 if(!unpackedSint64_.Equals(other.unpackedSint64_)) return false;
25155 if(!unpackedFixed32_.Equals(other.unpackedFixed32_)) return false;
25156 if(!unpackedFixed64_.Equals(other.unpackedFixed64_)) return false;
25157 if(!unpackedSfixed32_.Equals(other.unpackedSfixed32_)) return false;
25158 if(!unpackedSfixed64_.Equals(other.unpackedSfixed64_)) return false;
25159 if(!unpackedFloat_.Equals(other.unpackedFloat_)) return false;
25160 if(!unpackedDouble_.Equals(other.unpackedDouble_)) return false;
25161 if(!unpackedBool_.Equals(other.unpackedBool_)) return false;
25162 if(!unpackedEnum_.Equals(other.unpackedEnum_)) return false;
25163 return Equals(_unknownFields, other._unknownFields);
25164 }
25165
25166 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020025167 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050025168 public override int GetHashCode() {
25169 int hash = 1;
25170 hash ^= unpackedInt32_.GetHashCode();
25171 hash ^= unpackedInt64_.GetHashCode();
25172 hash ^= unpackedUint32_.GetHashCode();
25173 hash ^= unpackedUint64_.GetHashCode();
25174 hash ^= unpackedSint32_.GetHashCode();
25175 hash ^= unpackedSint64_.GetHashCode();
25176 hash ^= unpackedFixed32_.GetHashCode();
25177 hash ^= unpackedFixed64_.GetHashCode();
25178 hash ^= unpackedSfixed32_.GetHashCode();
25179 hash ^= unpackedSfixed64_.GetHashCode();
25180 hash ^= unpackedFloat_.GetHashCode();
25181 hash ^= unpackedDouble_.GetHashCode();
25182 hash ^= unpackedBool_.GetHashCode();
25183 hash ^= unpackedEnum_.GetHashCode();
25184 if (_unknownFields != null) {
25185 hash ^= _unknownFields.GetHashCode();
25186 }
25187 return hash;
25188 }
25189
25190 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020025191 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050025192 public override string ToString() {
25193 return pb::JsonFormatter.ToDiagnosticString(this);
25194 }
25195
25196 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020025197 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050025198 public void WriteTo(pb::CodedOutputStream output) {
Jan Tattermusch125e4ad2020-05-29 04:32:43 -040025199 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
25200 output.WriteRawMessage(this);
25201 #else
Sydney Acksman8a57ec82019-03-21 17:36:36 -050025202 unpackedInt32_.WriteTo(output, _repeated_unpackedInt32_codec);
25203 unpackedInt64_.WriteTo(output, _repeated_unpackedInt64_codec);
25204 unpackedUint32_.WriteTo(output, _repeated_unpackedUint32_codec);
25205 unpackedUint64_.WriteTo(output, _repeated_unpackedUint64_codec);
25206 unpackedSint32_.WriteTo(output, _repeated_unpackedSint32_codec);
25207 unpackedSint64_.WriteTo(output, _repeated_unpackedSint64_codec);
25208 unpackedFixed32_.WriteTo(output, _repeated_unpackedFixed32_codec);
25209 unpackedFixed64_.WriteTo(output, _repeated_unpackedFixed64_codec);
25210 unpackedSfixed32_.WriteTo(output, _repeated_unpackedSfixed32_codec);
25211 unpackedSfixed64_.WriteTo(output, _repeated_unpackedSfixed64_codec);
25212 unpackedFloat_.WriteTo(output, _repeated_unpackedFloat_codec);
25213 unpackedDouble_.WriteTo(output, _repeated_unpackedDouble_codec);
25214 unpackedBool_.WriteTo(output, _repeated_unpackedBool_codec);
Jan Tattermusch90703892020-05-29 07:35:21 -040025215 unpackedEnum_.WriteTo(output, _repeated_unpackedEnum_codec);
Sydney Acksman8a57ec82019-03-21 17:36:36 -050025216 if (_unknownFields != null) {
25217 _unknownFields.WriteTo(output);
25218 }
Jan Tattermusch125e4ad2020-05-29 04:32:43 -040025219 #endif
Sydney Acksman8a57ec82019-03-21 17:36:36 -050025220 }
25221
Jan Tattermusch125e4ad2020-05-29 04:32:43 -040025222 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
25223 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020025224 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Jan Tattermusch125e4ad2020-05-29 04:32:43 -040025225 void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
25226 unpackedInt32_.WriteTo(ref output, _repeated_unpackedInt32_codec);
25227 unpackedInt64_.WriteTo(ref output, _repeated_unpackedInt64_codec);
25228 unpackedUint32_.WriteTo(ref output, _repeated_unpackedUint32_codec);
25229 unpackedUint64_.WriteTo(ref output, _repeated_unpackedUint64_codec);
25230 unpackedSint32_.WriteTo(ref output, _repeated_unpackedSint32_codec);
25231 unpackedSint64_.WriteTo(ref output, _repeated_unpackedSint64_codec);
25232 unpackedFixed32_.WriteTo(ref output, _repeated_unpackedFixed32_codec);
25233 unpackedFixed64_.WriteTo(ref output, _repeated_unpackedFixed64_codec);
25234 unpackedSfixed32_.WriteTo(ref output, _repeated_unpackedSfixed32_codec);
25235 unpackedSfixed64_.WriteTo(ref output, _repeated_unpackedSfixed64_codec);
25236 unpackedFloat_.WriteTo(ref output, _repeated_unpackedFloat_codec);
25237 unpackedDouble_.WriteTo(ref output, _repeated_unpackedDouble_codec);
25238 unpackedBool_.WriteTo(ref output, _repeated_unpackedBool_codec);
25239 unpackedEnum_.WriteTo(ref output, _repeated_unpackedEnum_codec);
25240 if (_unknownFields != null) {
25241 _unknownFields.WriteTo(ref output);
25242 }
25243 }
25244 #endif
25245
Sydney Acksman8a57ec82019-03-21 17:36:36 -050025246 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020025247 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050025248 public int CalculateSize() {
25249 int size = 0;
25250 size += unpackedInt32_.CalculateSize(_repeated_unpackedInt32_codec);
25251 size += unpackedInt64_.CalculateSize(_repeated_unpackedInt64_codec);
25252 size += unpackedUint32_.CalculateSize(_repeated_unpackedUint32_codec);
25253 size += unpackedUint64_.CalculateSize(_repeated_unpackedUint64_codec);
25254 size += unpackedSint32_.CalculateSize(_repeated_unpackedSint32_codec);
25255 size += unpackedSint64_.CalculateSize(_repeated_unpackedSint64_codec);
25256 size += unpackedFixed32_.CalculateSize(_repeated_unpackedFixed32_codec);
25257 size += unpackedFixed64_.CalculateSize(_repeated_unpackedFixed64_codec);
25258 size += unpackedSfixed32_.CalculateSize(_repeated_unpackedSfixed32_codec);
25259 size += unpackedSfixed64_.CalculateSize(_repeated_unpackedSfixed64_codec);
25260 size += unpackedFloat_.CalculateSize(_repeated_unpackedFloat_codec);
25261 size += unpackedDouble_.CalculateSize(_repeated_unpackedDouble_codec);
25262 size += unpackedBool_.CalculateSize(_repeated_unpackedBool_codec);
25263 size += unpackedEnum_.CalculateSize(_repeated_unpackedEnum_codec);
25264 if (_unknownFields != null) {
25265 size += _unknownFields.CalculateSize();
25266 }
25267 return size;
25268 }
25269
25270 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020025271 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050025272 public void MergeFrom(TestUnpackedTypes other) {
25273 if (other == null) {
25274 return;
25275 }
25276 unpackedInt32_.Add(other.unpackedInt32_);
25277 unpackedInt64_.Add(other.unpackedInt64_);
25278 unpackedUint32_.Add(other.unpackedUint32_);
25279 unpackedUint64_.Add(other.unpackedUint64_);
25280 unpackedSint32_.Add(other.unpackedSint32_);
25281 unpackedSint64_.Add(other.unpackedSint64_);
25282 unpackedFixed32_.Add(other.unpackedFixed32_);
25283 unpackedFixed64_.Add(other.unpackedFixed64_);
25284 unpackedSfixed32_.Add(other.unpackedSfixed32_);
25285 unpackedSfixed64_.Add(other.unpackedSfixed64_);
25286 unpackedFloat_.Add(other.unpackedFloat_);
25287 unpackedDouble_.Add(other.unpackedDouble_);
25288 unpackedBool_.Add(other.unpackedBool_);
25289 unpackedEnum_.Add(other.unpackedEnum_);
25290 _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
25291 }
25292
25293 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020025294 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050025295 public void MergeFrom(pb::CodedInputStream input) {
Jan Tattermusch7cb55972020-06-02 09:26:25 +020025296 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
Jan Tattermusch3196ef92020-04-02 15:36:16 +020025297 input.ReadRawMessage(this);
Jan Tattermusch7cb55972020-06-02 09:26:25 +020025298 #else
25299 uint tag;
25300 while ((tag = input.ReadTag()) != 0) {
25301 switch(tag) {
25302 default:
25303 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
25304 break;
25305 case 722:
25306 case 720: {
25307 unpackedInt32_.AddEntriesFrom(input, _repeated_unpackedInt32_codec);
25308 break;
25309 }
25310 case 730:
25311 case 728: {
25312 unpackedInt64_.AddEntriesFrom(input, _repeated_unpackedInt64_codec);
25313 break;
25314 }
25315 case 738:
25316 case 736: {
25317 unpackedUint32_.AddEntriesFrom(input, _repeated_unpackedUint32_codec);
25318 break;
25319 }
25320 case 746:
25321 case 744: {
25322 unpackedUint64_.AddEntriesFrom(input, _repeated_unpackedUint64_codec);
25323 break;
25324 }
25325 case 754:
25326 case 752: {
25327 unpackedSint32_.AddEntriesFrom(input, _repeated_unpackedSint32_codec);
25328 break;
25329 }
25330 case 762:
25331 case 760: {
25332 unpackedSint64_.AddEntriesFrom(input, _repeated_unpackedSint64_codec);
25333 break;
25334 }
25335 case 770:
25336 case 773: {
25337 unpackedFixed32_.AddEntriesFrom(input, _repeated_unpackedFixed32_codec);
25338 break;
25339 }
25340 case 778:
25341 case 777: {
25342 unpackedFixed64_.AddEntriesFrom(input, _repeated_unpackedFixed64_codec);
25343 break;
25344 }
25345 case 786:
25346 case 789: {
25347 unpackedSfixed32_.AddEntriesFrom(input, _repeated_unpackedSfixed32_codec);
25348 break;
25349 }
25350 case 794:
25351 case 793: {
25352 unpackedSfixed64_.AddEntriesFrom(input, _repeated_unpackedSfixed64_codec);
25353 break;
25354 }
25355 case 802:
25356 case 805: {
25357 unpackedFloat_.AddEntriesFrom(input, _repeated_unpackedFloat_codec);
25358 break;
25359 }
25360 case 810:
25361 case 809: {
25362 unpackedDouble_.AddEntriesFrom(input, _repeated_unpackedDouble_codec);
25363 break;
25364 }
25365 case 818:
25366 case 816: {
25367 unpackedBool_.AddEntriesFrom(input, _repeated_unpackedBool_codec);
25368 break;
25369 }
25370 case 826:
25371 case 824: {
25372 unpackedEnum_.AddEntriesFrom(input, _repeated_unpackedEnum_codec);
25373 break;
25374 }
25375 }
25376 }
25377 #endif
Jan Tattermusch3196ef92020-04-02 15:36:16 +020025378 }
25379
Jan Tattermusch7cb55972020-06-02 09:26:25 +020025380 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
Jan Tattermusch3196ef92020-04-02 15:36:16 +020025381 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020025382 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Jan Tattermusch0df7ddc2020-04-14 12:41:03 +020025383 void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
Sydney Acksman8a57ec82019-03-21 17:36:36 -050025384 uint tag;
25385 while ((tag = input.ReadTag()) != 0) {
25386 switch(tag) {
25387 default:
Jan Tattermusch3196ef92020-04-02 15:36:16 +020025388 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
Sydney Acksman8a57ec82019-03-21 17:36:36 -050025389 break;
25390 case 722:
25391 case 720: {
Jan Tattermusch3196ef92020-04-02 15:36:16 +020025392 unpackedInt32_.AddEntriesFrom(ref input, _repeated_unpackedInt32_codec);
Sydney Acksman8a57ec82019-03-21 17:36:36 -050025393 break;
25394 }
25395 case 730:
25396 case 728: {
Jan Tattermusch3196ef92020-04-02 15:36:16 +020025397 unpackedInt64_.AddEntriesFrom(ref input, _repeated_unpackedInt64_codec);
Sydney Acksman8a57ec82019-03-21 17:36:36 -050025398 break;
25399 }
25400 case 738:
25401 case 736: {
Jan Tattermusch3196ef92020-04-02 15:36:16 +020025402 unpackedUint32_.AddEntriesFrom(ref input, _repeated_unpackedUint32_codec);
Sydney Acksman8a57ec82019-03-21 17:36:36 -050025403 break;
25404 }
25405 case 746:
25406 case 744: {
Jan Tattermusch3196ef92020-04-02 15:36:16 +020025407 unpackedUint64_.AddEntriesFrom(ref input, _repeated_unpackedUint64_codec);
Sydney Acksman8a57ec82019-03-21 17:36:36 -050025408 break;
25409 }
25410 case 754:
25411 case 752: {
Jan Tattermusch3196ef92020-04-02 15:36:16 +020025412 unpackedSint32_.AddEntriesFrom(ref input, _repeated_unpackedSint32_codec);
Sydney Acksman8a57ec82019-03-21 17:36:36 -050025413 break;
25414 }
25415 case 762:
25416 case 760: {
Jan Tattermusch3196ef92020-04-02 15:36:16 +020025417 unpackedSint64_.AddEntriesFrom(ref input, _repeated_unpackedSint64_codec);
Sydney Acksman8a57ec82019-03-21 17:36:36 -050025418 break;
25419 }
25420 case 770:
25421 case 773: {
Jan Tattermusch3196ef92020-04-02 15:36:16 +020025422 unpackedFixed32_.AddEntriesFrom(ref input, _repeated_unpackedFixed32_codec);
Sydney Acksman8a57ec82019-03-21 17:36:36 -050025423 break;
25424 }
25425 case 778:
25426 case 777: {
Jan Tattermusch3196ef92020-04-02 15:36:16 +020025427 unpackedFixed64_.AddEntriesFrom(ref input, _repeated_unpackedFixed64_codec);
Sydney Acksman8a57ec82019-03-21 17:36:36 -050025428 break;
25429 }
25430 case 786:
25431 case 789: {
Jan Tattermusch3196ef92020-04-02 15:36:16 +020025432 unpackedSfixed32_.AddEntriesFrom(ref input, _repeated_unpackedSfixed32_codec);
Sydney Acksman8a57ec82019-03-21 17:36:36 -050025433 break;
25434 }
25435 case 794:
25436 case 793: {
Jan Tattermusch3196ef92020-04-02 15:36:16 +020025437 unpackedSfixed64_.AddEntriesFrom(ref input, _repeated_unpackedSfixed64_codec);
Sydney Acksman8a57ec82019-03-21 17:36:36 -050025438 break;
25439 }
25440 case 802:
25441 case 805: {
Jan Tattermusch3196ef92020-04-02 15:36:16 +020025442 unpackedFloat_.AddEntriesFrom(ref input, _repeated_unpackedFloat_codec);
Sydney Acksman8a57ec82019-03-21 17:36:36 -050025443 break;
25444 }
25445 case 810:
25446 case 809: {
Jan Tattermusch3196ef92020-04-02 15:36:16 +020025447 unpackedDouble_.AddEntriesFrom(ref input, _repeated_unpackedDouble_codec);
Sydney Acksman8a57ec82019-03-21 17:36:36 -050025448 break;
25449 }
25450 case 818:
25451 case 816: {
Jan Tattermusch3196ef92020-04-02 15:36:16 +020025452 unpackedBool_.AddEntriesFrom(ref input, _repeated_unpackedBool_codec);
Sydney Acksman8a57ec82019-03-21 17:36:36 -050025453 break;
25454 }
25455 case 826:
25456 case 824: {
Jan Tattermusch3196ef92020-04-02 15:36:16 +020025457 unpackedEnum_.AddEntriesFrom(ref input, _repeated_unpackedEnum_codec);
Sydney Acksman8a57ec82019-03-21 17:36:36 -050025458 break;
25459 }
25460 }
25461 }
25462 }
Jan Tattermusch7cb55972020-06-02 09:26:25 +020025463 #endif
Sydney Acksman8a57ec82019-03-21 17:36:36 -050025464
25465 }
25466
Jan Tattermusch7cb55972020-06-02 09:26:25 +020025467 public sealed partial class TestPackedExtensions : pb::IExtendableMessage<TestPackedExtensions>
25468 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
25469 , pb::IBufferMessage
25470 #endif
25471 {
Sydney Acksman8a57ec82019-03-21 17:36:36 -050025472 private static readonly pb::MessageParser<TestPackedExtensions> _parser = new pb::MessageParser<TestPackedExtensions>(() => new TestPackedExtensions());
25473 private pb::UnknownFieldSet _unknownFields;
25474 private pb::ExtensionSet<TestPackedExtensions> _extensions;
Sydney Acksmanc04a0272019-11-07 15:30:12 -060025475 private pb::ExtensionSet<TestPackedExtensions> _Extensions { get { return _extensions; } }
Sydney Acksman8a57ec82019-03-21 17:36:36 -050025476 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020025477 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050025478 public static pb::MessageParser<TestPackedExtensions> Parser { get { return _parser; } }
25479
25480 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020025481 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050025482 public static pbr::MessageDescriptor Descriptor {
Sydney Acksman8b7fb7d2019-03-23 11:41:57 -050025483 get { return global::Google.Protobuf.TestProtos.Proto2.UnittestReflection.Descriptor.MessageTypes[50]; }
Sydney Acksman8a57ec82019-03-21 17:36:36 -050025484 }
25485
25486 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020025487 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050025488 pbr::MessageDescriptor pb::IMessage.Descriptor {
25489 get { return Descriptor; }
25490 }
25491
25492 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020025493 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050025494 public TestPackedExtensions() {
25495 OnConstruction();
25496 }
25497
25498 partial void OnConstruction();
25499
25500 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020025501 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050025502 public TestPackedExtensions(TestPackedExtensions other) : this() {
25503 _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
25504 _extensions = pb::ExtensionSet.Clone(other._extensions);
25505 }
25506
25507 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020025508 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050025509 public TestPackedExtensions Clone() {
25510 return new TestPackedExtensions(this);
25511 }
25512
25513 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020025514 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050025515 public override bool Equals(object other) {
25516 return Equals(other as TestPackedExtensions);
25517 }
25518
25519 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020025520 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050025521 public bool Equals(TestPackedExtensions other) {
25522 if (ReferenceEquals(other, null)) {
25523 return false;
25524 }
25525 if (ReferenceEquals(other, this)) {
25526 return true;
25527 }
25528 if (!Equals(_extensions, other._extensions)) {
25529 return false;
25530 }
25531 return Equals(_unknownFields, other._unknownFields);
25532 }
25533
25534 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020025535 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050025536 public override int GetHashCode() {
25537 int hash = 1;
25538 if (_extensions != null) {
25539 hash ^= _extensions.GetHashCode();
25540 }
25541 if (_unknownFields != null) {
25542 hash ^= _unknownFields.GetHashCode();
25543 }
25544 return hash;
25545 }
25546
25547 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020025548 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050025549 public override string ToString() {
25550 return pb::JsonFormatter.ToDiagnosticString(this);
25551 }
25552
25553 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020025554 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050025555 public void WriteTo(pb::CodedOutputStream output) {
Jan Tattermusch125e4ad2020-05-29 04:32:43 -040025556 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
25557 output.WriteRawMessage(this);
25558 #else
Sydney Acksman8a57ec82019-03-21 17:36:36 -050025559 if (_extensions != null) {
25560 _extensions.WriteTo(output);
25561 }
25562 if (_unknownFields != null) {
25563 _unknownFields.WriteTo(output);
25564 }
Jan Tattermusch125e4ad2020-05-29 04:32:43 -040025565 #endif
Sydney Acksman8a57ec82019-03-21 17:36:36 -050025566 }
25567
Jan Tattermusch125e4ad2020-05-29 04:32:43 -040025568 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
25569 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020025570 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Jan Tattermusch125e4ad2020-05-29 04:32:43 -040025571 void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
25572 if (_extensions != null) {
25573 _extensions.WriteTo(ref output);
25574 }
25575 if (_unknownFields != null) {
25576 _unknownFields.WriteTo(ref output);
25577 }
25578 }
25579 #endif
25580
Sydney Acksman8a57ec82019-03-21 17:36:36 -050025581 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020025582 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050025583 public int CalculateSize() {
25584 int size = 0;
25585 if (_extensions != null) {
25586 size += _extensions.CalculateSize();
25587 }
25588 if (_unknownFields != null) {
25589 size += _unknownFields.CalculateSize();
25590 }
25591 return size;
25592 }
25593
25594 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020025595 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050025596 public void MergeFrom(TestPackedExtensions other) {
25597 if (other == null) {
25598 return;
25599 }
25600 pb::ExtensionSet.MergeFrom(ref _extensions, other._extensions);
25601 _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
25602 }
25603
25604 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020025605 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050025606 public void MergeFrom(pb::CodedInputStream input) {
Jan Tattermusch7cb55972020-06-02 09:26:25 +020025607 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
Jan Tattermusch3196ef92020-04-02 15:36:16 +020025608 input.ReadRawMessage(this);
Jan Tattermusch7cb55972020-06-02 09:26:25 +020025609 #else
25610 uint tag;
25611 while ((tag = input.ReadTag()) != 0) {
25612 switch(tag) {
25613 default:
25614 if (!pb::ExtensionSet.TryMergeFieldFrom(ref _extensions, input)) {
25615 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
25616 }
25617 break;
25618 }
25619 }
25620 #endif
Jan Tattermusch3196ef92020-04-02 15:36:16 +020025621 }
25622
Jan Tattermusch7cb55972020-06-02 09:26:25 +020025623 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
Jan Tattermusch3196ef92020-04-02 15:36:16 +020025624 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020025625 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Jan Tattermusch0df7ddc2020-04-14 12:41:03 +020025626 void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
Sydney Acksman8a57ec82019-03-21 17:36:36 -050025627 uint tag;
25628 while ((tag = input.ReadTag()) != 0) {
25629 switch(tag) {
25630 default:
Jan Tattermusch3196ef92020-04-02 15:36:16 +020025631 if (!pb::ExtensionSet.TryMergeFieldFrom(ref _extensions, ref input)) {
25632 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
Sydney Acksman8a57ec82019-03-21 17:36:36 -050025633 }
25634 break;
25635 }
25636 }
25637 }
Jan Tattermusch7cb55972020-06-02 09:26:25 +020025638 #endif
Sydney Acksman8a57ec82019-03-21 17:36:36 -050025639
Sydney Acksman8a57ec82019-03-21 17:36:36 -050025640 public TValue GetExtension<TValue>(pb::Extension<TestPackedExtensions, TValue> extension) {
25641 return pb::ExtensionSet.Get(ref _extensions, extension);
25642 }
25643 public pbc::RepeatedField<TValue> GetExtension<TValue>(pb::RepeatedExtension<TestPackedExtensions, TValue> extension) {
25644 return pb::ExtensionSet.Get(ref _extensions, extension);
25645 }
Sydney Acksman0436b8d2019-08-01 03:06:03 -050025646 public pbc::RepeatedField<TValue> GetOrInitializeExtension<TValue>(pb::RepeatedExtension<TestPackedExtensions, TValue> extension) {
25647 return pb::ExtensionSet.GetOrInitialize(ref _extensions, extension);
Sydney Acksman011427c2019-05-03 21:34:48 -050025648 }
Sydney Acksman8a57ec82019-03-21 17:36:36 -050025649 public void SetExtension<TValue>(pb::Extension<TestPackedExtensions, TValue> extension, TValue value) {
25650 pb::ExtensionSet.Set(ref _extensions, extension, value);
25651 }
25652 public bool HasExtension<TValue>(pb::Extension<TestPackedExtensions, TValue> extension) {
25653 return pb::ExtensionSet.Has(ref _extensions, extension);
25654 }
25655 public void ClearExtension<TValue>(pb::Extension<TestPackedExtensions, TValue> extension) {
25656 pb::ExtensionSet.Clear(ref _extensions, extension);
25657 }
Sydney Acksman011427c2019-05-03 21:34:48 -050025658 public void ClearExtension<TValue>(pb::RepeatedExtension<TestPackedExtensions, TValue> extension) {
25659 pb::ExtensionSet.Clear(ref _extensions, extension);
25660 }
Sydney Acksman8a57ec82019-03-21 17:36:36 -050025661
25662 }
25663
Jan Tattermusch7cb55972020-06-02 09:26:25 +020025664 public sealed partial class TestUnpackedExtensions : pb::IExtendableMessage<TestUnpackedExtensions>
25665 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
25666 , pb::IBufferMessage
25667 #endif
25668 {
Sydney Acksman8a57ec82019-03-21 17:36:36 -050025669 private static readonly pb::MessageParser<TestUnpackedExtensions> _parser = new pb::MessageParser<TestUnpackedExtensions>(() => new TestUnpackedExtensions());
25670 private pb::UnknownFieldSet _unknownFields;
25671 private pb::ExtensionSet<TestUnpackedExtensions> _extensions;
Sydney Acksmanc04a0272019-11-07 15:30:12 -060025672 private pb::ExtensionSet<TestUnpackedExtensions> _Extensions { get { return _extensions; } }
Sydney Acksman8a57ec82019-03-21 17:36:36 -050025673 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020025674 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050025675 public static pb::MessageParser<TestUnpackedExtensions> Parser { get { return _parser; } }
25676
25677 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020025678 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050025679 public static pbr::MessageDescriptor Descriptor {
Sydney Acksman8b7fb7d2019-03-23 11:41:57 -050025680 get { return global::Google.Protobuf.TestProtos.Proto2.UnittestReflection.Descriptor.MessageTypes[51]; }
Sydney Acksman8a57ec82019-03-21 17:36:36 -050025681 }
25682
25683 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020025684 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050025685 pbr::MessageDescriptor pb::IMessage.Descriptor {
25686 get { return Descriptor; }
25687 }
25688
25689 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020025690 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050025691 public TestUnpackedExtensions() {
25692 OnConstruction();
25693 }
25694
25695 partial void OnConstruction();
25696
25697 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020025698 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050025699 public TestUnpackedExtensions(TestUnpackedExtensions other) : this() {
25700 _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
25701 _extensions = pb::ExtensionSet.Clone(other._extensions);
25702 }
25703
25704 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020025705 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050025706 public TestUnpackedExtensions Clone() {
25707 return new TestUnpackedExtensions(this);
25708 }
25709
25710 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020025711 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050025712 public override bool Equals(object other) {
25713 return Equals(other as TestUnpackedExtensions);
25714 }
25715
25716 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020025717 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050025718 public bool Equals(TestUnpackedExtensions other) {
25719 if (ReferenceEquals(other, null)) {
25720 return false;
25721 }
25722 if (ReferenceEquals(other, this)) {
25723 return true;
25724 }
25725 if (!Equals(_extensions, other._extensions)) {
25726 return false;
25727 }
25728 return Equals(_unknownFields, other._unknownFields);
25729 }
25730
25731 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020025732 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050025733 public override int GetHashCode() {
25734 int hash = 1;
25735 if (_extensions != null) {
25736 hash ^= _extensions.GetHashCode();
25737 }
25738 if (_unknownFields != null) {
25739 hash ^= _unknownFields.GetHashCode();
25740 }
25741 return hash;
25742 }
25743
25744 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020025745 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050025746 public override string ToString() {
25747 return pb::JsonFormatter.ToDiagnosticString(this);
25748 }
25749
25750 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020025751 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050025752 public void WriteTo(pb::CodedOutputStream output) {
Jan Tattermusch125e4ad2020-05-29 04:32:43 -040025753 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
25754 output.WriteRawMessage(this);
25755 #else
Sydney Acksman8a57ec82019-03-21 17:36:36 -050025756 if (_extensions != null) {
25757 _extensions.WriteTo(output);
25758 }
25759 if (_unknownFields != null) {
25760 _unknownFields.WriteTo(output);
25761 }
Jan Tattermusch125e4ad2020-05-29 04:32:43 -040025762 #endif
Sydney Acksman8a57ec82019-03-21 17:36:36 -050025763 }
25764
Jan Tattermusch125e4ad2020-05-29 04:32:43 -040025765 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
25766 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020025767 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Jan Tattermusch125e4ad2020-05-29 04:32:43 -040025768 void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
25769 if (_extensions != null) {
25770 _extensions.WriteTo(ref output);
25771 }
25772 if (_unknownFields != null) {
25773 _unknownFields.WriteTo(ref output);
25774 }
25775 }
25776 #endif
25777
Sydney Acksman8a57ec82019-03-21 17:36:36 -050025778 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020025779 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050025780 public int CalculateSize() {
25781 int size = 0;
25782 if (_extensions != null) {
25783 size += _extensions.CalculateSize();
25784 }
25785 if (_unknownFields != null) {
25786 size += _unknownFields.CalculateSize();
25787 }
25788 return size;
25789 }
25790
25791 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020025792 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050025793 public void MergeFrom(TestUnpackedExtensions other) {
25794 if (other == null) {
25795 return;
25796 }
25797 pb::ExtensionSet.MergeFrom(ref _extensions, other._extensions);
25798 _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
25799 }
25800
25801 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020025802 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050025803 public void MergeFrom(pb::CodedInputStream input) {
Jan Tattermusch7cb55972020-06-02 09:26:25 +020025804 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
Jan Tattermusch3196ef92020-04-02 15:36:16 +020025805 input.ReadRawMessage(this);
Jan Tattermusch7cb55972020-06-02 09:26:25 +020025806 #else
25807 uint tag;
25808 while ((tag = input.ReadTag()) != 0) {
25809 switch(tag) {
25810 default:
25811 if (!pb::ExtensionSet.TryMergeFieldFrom(ref _extensions, input)) {
25812 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
25813 }
25814 break;
25815 }
25816 }
25817 #endif
Jan Tattermusch3196ef92020-04-02 15:36:16 +020025818 }
25819
Jan Tattermusch7cb55972020-06-02 09:26:25 +020025820 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
Jan Tattermusch3196ef92020-04-02 15:36:16 +020025821 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020025822 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Jan Tattermusch0df7ddc2020-04-14 12:41:03 +020025823 void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
Sydney Acksman8a57ec82019-03-21 17:36:36 -050025824 uint tag;
25825 while ((tag = input.ReadTag()) != 0) {
25826 switch(tag) {
25827 default:
Jan Tattermusch3196ef92020-04-02 15:36:16 +020025828 if (!pb::ExtensionSet.TryMergeFieldFrom(ref _extensions, ref input)) {
25829 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
Sydney Acksman8a57ec82019-03-21 17:36:36 -050025830 }
25831 break;
25832 }
25833 }
25834 }
Jan Tattermusch7cb55972020-06-02 09:26:25 +020025835 #endif
Sydney Acksman8a57ec82019-03-21 17:36:36 -050025836
Sydney Acksman8a57ec82019-03-21 17:36:36 -050025837 public TValue GetExtension<TValue>(pb::Extension<TestUnpackedExtensions, TValue> extension) {
25838 return pb::ExtensionSet.Get(ref _extensions, extension);
25839 }
25840 public pbc::RepeatedField<TValue> GetExtension<TValue>(pb::RepeatedExtension<TestUnpackedExtensions, TValue> extension) {
25841 return pb::ExtensionSet.Get(ref _extensions, extension);
25842 }
Sydney Acksman0436b8d2019-08-01 03:06:03 -050025843 public pbc::RepeatedField<TValue> GetOrInitializeExtension<TValue>(pb::RepeatedExtension<TestUnpackedExtensions, TValue> extension) {
25844 return pb::ExtensionSet.GetOrInitialize(ref _extensions, extension);
Sydney Acksman011427c2019-05-03 21:34:48 -050025845 }
Sydney Acksman8a57ec82019-03-21 17:36:36 -050025846 public void SetExtension<TValue>(pb::Extension<TestUnpackedExtensions, TValue> extension, TValue value) {
25847 pb::ExtensionSet.Set(ref _extensions, extension, value);
25848 }
25849 public bool HasExtension<TValue>(pb::Extension<TestUnpackedExtensions, TValue> extension) {
25850 return pb::ExtensionSet.Has(ref _extensions, extension);
25851 }
25852 public void ClearExtension<TValue>(pb::Extension<TestUnpackedExtensions, TValue> extension) {
25853 pb::ExtensionSet.Clear(ref _extensions, extension);
25854 }
Sydney Acksman011427c2019-05-03 21:34:48 -050025855 public void ClearExtension<TValue>(pb::RepeatedExtension<TestUnpackedExtensions, TValue> extension) {
25856 pb::ExtensionSet.Clear(ref _extensions, extension);
25857 }
Sydney Acksman8a57ec82019-03-21 17:36:36 -050025858
25859 }
25860
25861 /// <summary>
25862 /// Used by ExtensionSetTest/DynamicExtensions. The test actually builds
25863 /// a set of extensions to TestAllExtensions dynamically, based on the fields
25864 /// of this message type.
25865 /// </summary>
Jan Tattermusch7cb55972020-06-02 09:26:25 +020025866 public sealed partial class TestDynamicExtensions : pb::IMessage<TestDynamicExtensions>
25867 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
25868 , pb::IBufferMessage
25869 #endif
25870 {
Sydney Acksman8a57ec82019-03-21 17:36:36 -050025871 private static readonly pb::MessageParser<TestDynamicExtensions> _parser = new pb::MessageParser<TestDynamicExtensions>(() => new TestDynamicExtensions());
25872 private pb::UnknownFieldSet _unknownFields;
25873 private int _hasBits0;
25874 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020025875 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050025876 public static pb::MessageParser<TestDynamicExtensions> Parser { get { return _parser; } }
25877
25878 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020025879 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050025880 public static pbr::MessageDescriptor Descriptor {
Sydney Acksman8b7fb7d2019-03-23 11:41:57 -050025881 get { return global::Google.Protobuf.TestProtos.Proto2.UnittestReflection.Descriptor.MessageTypes[52]; }
Sydney Acksman8a57ec82019-03-21 17:36:36 -050025882 }
25883
25884 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020025885 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050025886 pbr::MessageDescriptor pb::IMessage.Descriptor {
25887 get { return Descriptor; }
25888 }
25889
25890 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020025891 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050025892 public TestDynamicExtensions() {
25893 OnConstruction();
25894 }
25895
25896 partial void OnConstruction();
25897
25898 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020025899 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050025900 public TestDynamicExtensions(TestDynamicExtensions other) : this() {
25901 _hasBits0 = other._hasBits0;
25902 scalarExtension_ = other.scalarExtension_;
25903 enumExtension_ = other.enumExtension_;
25904 dynamicEnumExtension_ = other.dynamicEnumExtension_;
Jon Skeet9926c952020-04-27 07:18:45 +010025905 messageExtension_ = other.messageExtension_ != null ? other.messageExtension_.Clone() : null;
25906 dynamicMessageExtension_ = other.dynamicMessageExtension_ != null ? other.dynamicMessageExtension_.Clone() : null;
Sydney Acksman8a57ec82019-03-21 17:36:36 -050025907 repeatedExtension_ = other.repeatedExtension_.Clone();
25908 packedExtension_ = other.packedExtension_.Clone();
25909 _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
25910 }
25911
25912 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020025913 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050025914 public TestDynamicExtensions Clone() {
25915 return new TestDynamicExtensions(this);
25916 }
25917
25918 /// <summary>Field number for the "scalar_extension" field.</summary>
25919 public const int ScalarExtensionFieldNumber = 2000;
25920 private readonly static uint ScalarExtensionDefaultValue = 0;
25921
25922 private uint scalarExtension_;
25923 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020025924 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050025925 public uint ScalarExtension {
25926 get { if ((_hasBits0 & 1) != 0) { return scalarExtension_; } else { return ScalarExtensionDefaultValue; } }
25927 set {
25928 _hasBits0 |= 1;
25929 scalarExtension_ = value;
25930 }
25931 }
25932 /// <summary>Gets whether the "scalar_extension" field is set</summary>
25933 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020025934 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050025935 public bool HasScalarExtension {
25936 get { return (_hasBits0 & 1) != 0; }
25937 }
25938 /// <summary>Clears the value of the "scalar_extension" field</summary>
25939 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020025940 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050025941 public void ClearScalarExtension() {
25942 _hasBits0 &= ~1;
25943 }
25944
25945 /// <summary>Field number for the "enum_extension" field.</summary>
25946 public const int EnumExtensionFieldNumber = 2001;
25947 private readonly static global::Google.Protobuf.TestProtos.Proto2.ForeignEnum EnumExtensionDefaultValue = global::Google.Protobuf.TestProtos.Proto2.ForeignEnum.ForeignFoo;
25948
25949 private global::Google.Protobuf.TestProtos.Proto2.ForeignEnum enumExtension_;
25950 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020025951 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050025952 public global::Google.Protobuf.TestProtos.Proto2.ForeignEnum EnumExtension {
25953 get { if ((_hasBits0 & 2) != 0) { return enumExtension_; } else { return EnumExtensionDefaultValue; } }
25954 set {
25955 _hasBits0 |= 2;
25956 enumExtension_ = value;
25957 }
25958 }
25959 /// <summary>Gets whether the "enum_extension" field is set</summary>
25960 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020025961 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050025962 public bool HasEnumExtension {
25963 get { return (_hasBits0 & 2) != 0; }
25964 }
25965 /// <summary>Clears the value of the "enum_extension" field</summary>
25966 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020025967 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050025968 public void ClearEnumExtension() {
25969 _hasBits0 &= ~2;
25970 }
25971
25972 /// <summary>Field number for the "dynamic_enum_extension" field.</summary>
25973 public const int DynamicEnumExtensionFieldNumber = 2002;
25974 private readonly static global::Google.Protobuf.TestProtos.Proto2.TestDynamicExtensions.Types.DynamicEnumType DynamicEnumExtensionDefaultValue = global::Google.Protobuf.TestProtos.Proto2.TestDynamicExtensions.Types.DynamicEnumType.DynamicFoo;
25975
25976 private global::Google.Protobuf.TestProtos.Proto2.TestDynamicExtensions.Types.DynamicEnumType dynamicEnumExtension_;
25977 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020025978 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050025979 public global::Google.Protobuf.TestProtos.Proto2.TestDynamicExtensions.Types.DynamicEnumType DynamicEnumExtension {
25980 get { if ((_hasBits0 & 4) != 0) { return dynamicEnumExtension_; } else { return DynamicEnumExtensionDefaultValue; } }
25981 set {
25982 _hasBits0 |= 4;
25983 dynamicEnumExtension_ = value;
25984 }
25985 }
25986 /// <summary>Gets whether the "dynamic_enum_extension" field is set</summary>
25987 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020025988 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050025989 public bool HasDynamicEnumExtension {
25990 get { return (_hasBits0 & 4) != 0; }
25991 }
25992 /// <summary>Clears the value of the "dynamic_enum_extension" field</summary>
25993 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020025994 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050025995 public void ClearDynamicEnumExtension() {
25996 _hasBits0 &= ~4;
25997 }
25998
25999 /// <summary>Field number for the "message_extension" field.</summary>
26000 public const int MessageExtensionFieldNumber = 2003;
26001 private global::Google.Protobuf.TestProtos.Proto2.ForeignMessage messageExtension_;
26002 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020026003 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050026004 public global::Google.Protobuf.TestProtos.Proto2.ForeignMessage MessageExtension {
26005 get { return messageExtension_; }
26006 set {
26007 messageExtension_ = value;
26008 }
26009 }
Sydney Acksman8a57ec82019-03-21 17:36:36 -050026010
26011 /// <summary>Field number for the "dynamic_message_extension" field.</summary>
26012 public const int DynamicMessageExtensionFieldNumber = 2004;
26013 private global::Google.Protobuf.TestProtos.Proto2.TestDynamicExtensions.Types.DynamicMessageType dynamicMessageExtension_;
26014 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020026015 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050026016 public global::Google.Protobuf.TestProtos.Proto2.TestDynamicExtensions.Types.DynamicMessageType DynamicMessageExtension {
26017 get { return dynamicMessageExtension_; }
26018 set {
26019 dynamicMessageExtension_ = value;
26020 }
26021 }
Sydney Acksman8a57ec82019-03-21 17:36:36 -050026022
26023 /// <summary>Field number for the "repeated_extension" field.</summary>
26024 public const int RepeatedExtensionFieldNumber = 2005;
26025 private static readonly pb::FieldCodec<string> _repeated_repeatedExtension_codec
26026 = pb::FieldCodec.ForString(16042);
26027 private readonly pbc::RepeatedField<string> repeatedExtension_ = new pbc::RepeatedField<string>();
26028 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020026029 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050026030 public pbc::RepeatedField<string> RepeatedExtension {
26031 get { return repeatedExtension_; }
26032 }
26033
26034 /// <summary>Field number for the "packed_extension" field.</summary>
26035 public const int PackedExtensionFieldNumber = 2006;
26036 private static readonly pb::FieldCodec<int> _repeated_packedExtension_codec
26037 = pb::FieldCodec.ForSInt32(16050);
26038 private readonly pbc::RepeatedField<int> packedExtension_ = new pbc::RepeatedField<int>();
26039 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020026040 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050026041 public pbc::RepeatedField<int> PackedExtension {
26042 get { return packedExtension_; }
26043 }
26044
26045 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020026046 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050026047 public override bool Equals(object other) {
26048 return Equals(other as TestDynamicExtensions);
26049 }
26050
26051 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020026052 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050026053 public bool Equals(TestDynamicExtensions other) {
26054 if (ReferenceEquals(other, null)) {
26055 return false;
26056 }
26057 if (ReferenceEquals(other, this)) {
26058 return true;
26059 }
26060 if (ScalarExtension != other.ScalarExtension) return false;
26061 if (EnumExtension != other.EnumExtension) return false;
26062 if (DynamicEnumExtension != other.DynamicEnumExtension) return false;
26063 if (!object.Equals(MessageExtension, other.MessageExtension)) return false;
26064 if (!object.Equals(DynamicMessageExtension, other.DynamicMessageExtension)) return false;
26065 if(!repeatedExtension_.Equals(other.repeatedExtension_)) return false;
26066 if(!packedExtension_.Equals(other.packedExtension_)) return false;
26067 return Equals(_unknownFields, other._unknownFields);
26068 }
26069
26070 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020026071 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050026072 public override int GetHashCode() {
26073 int hash = 1;
26074 if (HasScalarExtension) hash ^= ScalarExtension.GetHashCode();
26075 if (HasEnumExtension) hash ^= EnumExtension.GetHashCode();
26076 if (HasDynamicEnumExtension) hash ^= DynamicEnumExtension.GetHashCode();
Jon Skeet9926c952020-04-27 07:18:45 +010026077 if (messageExtension_ != null) hash ^= MessageExtension.GetHashCode();
26078 if (dynamicMessageExtension_ != null) hash ^= DynamicMessageExtension.GetHashCode();
Sydney Acksman8a57ec82019-03-21 17:36:36 -050026079 hash ^= repeatedExtension_.GetHashCode();
26080 hash ^= packedExtension_.GetHashCode();
26081 if (_unknownFields != null) {
26082 hash ^= _unknownFields.GetHashCode();
26083 }
26084 return hash;
26085 }
26086
26087 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020026088 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050026089 public override string ToString() {
26090 return pb::JsonFormatter.ToDiagnosticString(this);
26091 }
26092
26093 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020026094 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050026095 public void WriteTo(pb::CodedOutputStream output) {
Jan Tattermusch125e4ad2020-05-29 04:32:43 -040026096 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
26097 output.WriteRawMessage(this);
26098 #else
Sydney Acksman8a57ec82019-03-21 17:36:36 -050026099 if (HasScalarExtension) {
26100 output.WriteRawTag(133, 125);
26101 output.WriteFixed32(ScalarExtension);
26102 }
26103 if (HasEnumExtension) {
26104 output.WriteRawTag(136, 125);
26105 output.WriteEnum((int) EnumExtension);
26106 }
26107 if (HasDynamicEnumExtension) {
26108 output.WriteRawTag(144, 125);
26109 output.WriteEnum((int) DynamicEnumExtension);
26110 }
Jon Skeet9926c952020-04-27 07:18:45 +010026111 if (messageExtension_ != null) {
Sydney Acksman8a57ec82019-03-21 17:36:36 -050026112 output.WriteRawTag(154, 125);
26113 output.WriteMessage(MessageExtension);
26114 }
Jon Skeet9926c952020-04-27 07:18:45 +010026115 if (dynamicMessageExtension_ != null) {
Sydney Acksman8a57ec82019-03-21 17:36:36 -050026116 output.WriteRawTag(162, 125);
26117 output.WriteMessage(DynamicMessageExtension);
26118 }
26119 repeatedExtension_.WriteTo(output, _repeated_repeatedExtension_codec);
26120 packedExtension_.WriteTo(output, _repeated_packedExtension_codec);
26121 if (_unknownFields != null) {
26122 _unknownFields.WriteTo(output);
26123 }
Jan Tattermusch125e4ad2020-05-29 04:32:43 -040026124 #endif
Sydney Acksman8a57ec82019-03-21 17:36:36 -050026125 }
26126
Jan Tattermusch125e4ad2020-05-29 04:32:43 -040026127 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
26128 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020026129 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Jan Tattermusch125e4ad2020-05-29 04:32:43 -040026130 void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
26131 if (HasScalarExtension) {
26132 output.WriteRawTag(133, 125);
26133 output.WriteFixed32(ScalarExtension);
26134 }
26135 if (HasEnumExtension) {
26136 output.WriteRawTag(136, 125);
26137 output.WriteEnum((int) EnumExtension);
26138 }
26139 if (HasDynamicEnumExtension) {
26140 output.WriteRawTag(144, 125);
26141 output.WriteEnum((int) DynamicEnumExtension);
26142 }
26143 if (messageExtension_ != null) {
26144 output.WriteRawTag(154, 125);
26145 output.WriteMessage(MessageExtension);
26146 }
26147 if (dynamicMessageExtension_ != null) {
26148 output.WriteRawTag(162, 125);
26149 output.WriteMessage(DynamicMessageExtension);
26150 }
26151 repeatedExtension_.WriteTo(ref output, _repeated_repeatedExtension_codec);
26152 packedExtension_.WriteTo(ref output, _repeated_packedExtension_codec);
26153 if (_unknownFields != null) {
26154 _unknownFields.WriteTo(ref output);
26155 }
26156 }
26157 #endif
26158
Sydney Acksman8a57ec82019-03-21 17:36:36 -050026159 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020026160 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050026161 public int CalculateSize() {
26162 int size = 0;
26163 if (HasScalarExtension) {
26164 size += 2 + 4;
26165 }
26166 if (HasEnumExtension) {
26167 size += 2 + pb::CodedOutputStream.ComputeEnumSize((int) EnumExtension);
26168 }
26169 if (HasDynamicEnumExtension) {
26170 size += 2 + pb::CodedOutputStream.ComputeEnumSize((int) DynamicEnumExtension);
26171 }
Jon Skeet9926c952020-04-27 07:18:45 +010026172 if (messageExtension_ != null) {
Sydney Acksman8a57ec82019-03-21 17:36:36 -050026173 size += 2 + pb::CodedOutputStream.ComputeMessageSize(MessageExtension);
26174 }
Jon Skeet9926c952020-04-27 07:18:45 +010026175 if (dynamicMessageExtension_ != null) {
Sydney Acksman8a57ec82019-03-21 17:36:36 -050026176 size += 2 + pb::CodedOutputStream.ComputeMessageSize(DynamicMessageExtension);
26177 }
26178 size += repeatedExtension_.CalculateSize(_repeated_repeatedExtension_codec);
26179 size += packedExtension_.CalculateSize(_repeated_packedExtension_codec);
26180 if (_unknownFields != null) {
26181 size += _unknownFields.CalculateSize();
26182 }
26183 return size;
26184 }
26185
26186 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020026187 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050026188 public void MergeFrom(TestDynamicExtensions other) {
26189 if (other == null) {
26190 return;
26191 }
26192 if (other.HasScalarExtension) {
26193 ScalarExtension = other.ScalarExtension;
26194 }
26195 if (other.HasEnumExtension) {
26196 EnumExtension = other.EnumExtension;
26197 }
26198 if (other.HasDynamicEnumExtension) {
26199 DynamicEnumExtension = other.DynamicEnumExtension;
26200 }
Jon Skeet9926c952020-04-27 07:18:45 +010026201 if (other.messageExtension_ != null) {
26202 if (messageExtension_ == null) {
Sydney Acksman8a57ec82019-03-21 17:36:36 -050026203 MessageExtension = new global::Google.Protobuf.TestProtos.Proto2.ForeignMessage();
26204 }
26205 MessageExtension.MergeFrom(other.MessageExtension);
26206 }
Jon Skeet9926c952020-04-27 07:18:45 +010026207 if (other.dynamicMessageExtension_ != null) {
26208 if (dynamicMessageExtension_ == null) {
Sydney Acksman8a57ec82019-03-21 17:36:36 -050026209 DynamicMessageExtension = new global::Google.Protobuf.TestProtos.Proto2.TestDynamicExtensions.Types.DynamicMessageType();
26210 }
26211 DynamicMessageExtension.MergeFrom(other.DynamicMessageExtension);
26212 }
26213 repeatedExtension_.Add(other.repeatedExtension_);
26214 packedExtension_.Add(other.packedExtension_);
26215 _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
26216 }
26217
26218 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020026219 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050026220 public void MergeFrom(pb::CodedInputStream input) {
Jan Tattermusch7cb55972020-06-02 09:26:25 +020026221 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
Jan Tattermusch3196ef92020-04-02 15:36:16 +020026222 input.ReadRawMessage(this);
Jan Tattermusch7cb55972020-06-02 09:26:25 +020026223 #else
26224 uint tag;
26225 while ((tag = input.ReadTag()) != 0) {
26226 switch(tag) {
26227 default:
26228 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
26229 break;
26230 case 16005: {
26231 ScalarExtension = input.ReadFixed32();
26232 break;
26233 }
26234 case 16008: {
26235 EnumExtension = (global::Google.Protobuf.TestProtos.Proto2.ForeignEnum) input.ReadEnum();
26236 break;
26237 }
26238 case 16016: {
26239 DynamicEnumExtension = (global::Google.Protobuf.TestProtos.Proto2.TestDynamicExtensions.Types.DynamicEnumType) input.ReadEnum();
26240 break;
26241 }
26242 case 16026: {
26243 if (messageExtension_ == null) {
26244 MessageExtension = new global::Google.Protobuf.TestProtos.Proto2.ForeignMessage();
26245 }
26246 input.ReadMessage(MessageExtension);
26247 break;
26248 }
26249 case 16034: {
26250 if (dynamicMessageExtension_ == null) {
26251 DynamicMessageExtension = new global::Google.Protobuf.TestProtos.Proto2.TestDynamicExtensions.Types.DynamicMessageType();
26252 }
26253 input.ReadMessage(DynamicMessageExtension);
26254 break;
26255 }
26256 case 16042: {
26257 repeatedExtension_.AddEntriesFrom(input, _repeated_repeatedExtension_codec);
26258 break;
26259 }
26260 case 16050:
26261 case 16048: {
26262 packedExtension_.AddEntriesFrom(input, _repeated_packedExtension_codec);
26263 break;
26264 }
26265 }
26266 }
26267 #endif
Jan Tattermusch3196ef92020-04-02 15:36:16 +020026268 }
26269
Jan Tattermusch7cb55972020-06-02 09:26:25 +020026270 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
Jan Tattermusch3196ef92020-04-02 15:36:16 +020026271 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020026272 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Jan Tattermusch0df7ddc2020-04-14 12:41:03 +020026273 void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
Sydney Acksman8a57ec82019-03-21 17:36:36 -050026274 uint tag;
26275 while ((tag = input.ReadTag()) != 0) {
26276 switch(tag) {
26277 default:
Jan Tattermusch3196ef92020-04-02 15:36:16 +020026278 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
Sydney Acksman8a57ec82019-03-21 17:36:36 -050026279 break;
26280 case 16005: {
26281 ScalarExtension = input.ReadFixed32();
26282 break;
26283 }
26284 case 16008: {
26285 EnumExtension = (global::Google.Protobuf.TestProtos.Proto2.ForeignEnum) input.ReadEnum();
26286 break;
26287 }
26288 case 16016: {
26289 DynamicEnumExtension = (global::Google.Protobuf.TestProtos.Proto2.TestDynamicExtensions.Types.DynamicEnumType) input.ReadEnum();
26290 break;
26291 }
26292 case 16026: {
Jon Skeet9926c952020-04-27 07:18:45 +010026293 if (messageExtension_ == null) {
Sydney Acksman8a57ec82019-03-21 17:36:36 -050026294 MessageExtension = new global::Google.Protobuf.TestProtos.Proto2.ForeignMessage();
26295 }
26296 input.ReadMessage(MessageExtension);
26297 break;
26298 }
26299 case 16034: {
Jon Skeet9926c952020-04-27 07:18:45 +010026300 if (dynamicMessageExtension_ == null) {
Sydney Acksman8a57ec82019-03-21 17:36:36 -050026301 DynamicMessageExtension = new global::Google.Protobuf.TestProtos.Proto2.TestDynamicExtensions.Types.DynamicMessageType();
26302 }
26303 input.ReadMessage(DynamicMessageExtension);
26304 break;
26305 }
26306 case 16042: {
Jan Tattermusch3196ef92020-04-02 15:36:16 +020026307 repeatedExtension_.AddEntriesFrom(ref input, _repeated_repeatedExtension_codec);
Sydney Acksman8a57ec82019-03-21 17:36:36 -050026308 break;
26309 }
26310 case 16050:
26311 case 16048: {
Jan Tattermusch3196ef92020-04-02 15:36:16 +020026312 packedExtension_.AddEntriesFrom(ref input, _repeated_packedExtension_codec);
Sydney Acksman8a57ec82019-03-21 17:36:36 -050026313 break;
26314 }
26315 }
26316 }
26317 }
Jan Tattermusch7cb55972020-06-02 09:26:25 +020026318 #endif
Sydney Acksman8a57ec82019-03-21 17:36:36 -050026319
26320 #region Nested types
26321 /// <summary>Container for nested types declared in the TestDynamicExtensions message type.</summary>
26322 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020026323 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050026324 public static partial class Types {
26325 public enum DynamicEnumType {
26326 [pbr::OriginalName("DYNAMIC_FOO")] DynamicFoo = 2200,
26327 [pbr::OriginalName("DYNAMIC_BAR")] DynamicBar = 2201,
26328 [pbr::OriginalName("DYNAMIC_BAZ")] DynamicBaz = 2202,
26329 }
26330
Jan Tattermusch7cb55972020-06-02 09:26:25 +020026331 public sealed partial class DynamicMessageType : pb::IMessage<DynamicMessageType>
26332 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
26333 , pb::IBufferMessage
26334 #endif
26335 {
Sydney Acksman8a57ec82019-03-21 17:36:36 -050026336 private static readonly pb::MessageParser<DynamicMessageType> _parser = new pb::MessageParser<DynamicMessageType>(() => new DynamicMessageType());
26337 private pb::UnknownFieldSet _unknownFields;
26338 private int _hasBits0;
26339 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020026340 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050026341 public static pb::MessageParser<DynamicMessageType> Parser { get { return _parser; } }
26342
26343 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020026344 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050026345 public static pbr::MessageDescriptor Descriptor {
26346 get { return global::Google.Protobuf.TestProtos.Proto2.TestDynamicExtensions.Descriptor.NestedTypes[0]; }
26347 }
26348
26349 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020026350 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050026351 pbr::MessageDescriptor pb::IMessage.Descriptor {
26352 get { return Descriptor; }
26353 }
26354
26355 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020026356 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050026357 public DynamicMessageType() {
26358 OnConstruction();
26359 }
26360
26361 partial void OnConstruction();
26362
26363 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020026364 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050026365 public DynamicMessageType(DynamicMessageType other) : this() {
26366 _hasBits0 = other._hasBits0;
26367 dynamicField_ = other.dynamicField_;
26368 _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
26369 }
26370
26371 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020026372 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050026373 public DynamicMessageType Clone() {
26374 return new DynamicMessageType(this);
26375 }
26376
26377 /// <summary>Field number for the "dynamic_field" field.</summary>
26378 public const int DynamicFieldFieldNumber = 2100;
26379 private readonly static int DynamicFieldDefaultValue = 0;
26380
26381 private int dynamicField_;
26382 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020026383 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050026384 public int DynamicField {
26385 get { if ((_hasBits0 & 1) != 0) { return dynamicField_; } else { return DynamicFieldDefaultValue; } }
26386 set {
26387 _hasBits0 |= 1;
26388 dynamicField_ = value;
26389 }
26390 }
26391 /// <summary>Gets whether the "dynamic_field" field is set</summary>
26392 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020026393 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050026394 public bool HasDynamicField {
26395 get { return (_hasBits0 & 1) != 0; }
26396 }
26397 /// <summary>Clears the value of the "dynamic_field" field</summary>
26398 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020026399 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050026400 public void ClearDynamicField() {
26401 _hasBits0 &= ~1;
26402 }
26403
26404 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020026405 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050026406 public override bool Equals(object other) {
26407 return Equals(other as DynamicMessageType);
26408 }
26409
26410 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020026411 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050026412 public bool Equals(DynamicMessageType other) {
26413 if (ReferenceEquals(other, null)) {
26414 return false;
26415 }
26416 if (ReferenceEquals(other, this)) {
26417 return true;
26418 }
26419 if (DynamicField != other.DynamicField) return false;
26420 return Equals(_unknownFields, other._unknownFields);
26421 }
26422
26423 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020026424 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050026425 public override int GetHashCode() {
26426 int hash = 1;
26427 if (HasDynamicField) hash ^= DynamicField.GetHashCode();
26428 if (_unknownFields != null) {
26429 hash ^= _unknownFields.GetHashCode();
26430 }
26431 return hash;
26432 }
26433
26434 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020026435 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050026436 public override string ToString() {
26437 return pb::JsonFormatter.ToDiagnosticString(this);
26438 }
26439
26440 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020026441 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050026442 public void WriteTo(pb::CodedOutputStream output) {
Jan Tattermusch125e4ad2020-05-29 04:32:43 -040026443 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
26444 output.WriteRawMessage(this);
26445 #else
Sydney Acksman8a57ec82019-03-21 17:36:36 -050026446 if (HasDynamicField) {
26447 output.WriteRawTag(160, 131, 1);
26448 output.WriteInt32(DynamicField);
26449 }
26450 if (_unknownFields != null) {
26451 _unknownFields.WriteTo(output);
26452 }
Jan Tattermusch125e4ad2020-05-29 04:32:43 -040026453 #endif
Sydney Acksman8a57ec82019-03-21 17:36:36 -050026454 }
26455
Jan Tattermusch125e4ad2020-05-29 04:32:43 -040026456 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
26457 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020026458 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Jan Tattermusch125e4ad2020-05-29 04:32:43 -040026459 void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
26460 if (HasDynamicField) {
26461 output.WriteRawTag(160, 131, 1);
26462 output.WriteInt32(DynamicField);
26463 }
26464 if (_unknownFields != null) {
26465 _unknownFields.WriteTo(ref output);
26466 }
26467 }
26468 #endif
26469
Sydney Acksman8a57ec82019-03-21 17:36:36 -050026470 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020026471 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050026472 public int CalculateSize() {
26473 int size = 0;
26474 if (HasDynamicField) {
26475 size += 3 + pb::CodedOutputStream.ComputeInt32Size(DynamicField);
26476 }
26477 if (_unknownFields != null) {
26478 size += _unknownFields.CalculateSize();
26479 }
26480 return size;
26481 }
26482
26483 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020026484 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050026485 public void MergeFrom(DynamicMessageType other) {
26486 if (other == null) {
26487 return;
26488 }
26489 if (other.HasDynamicField) {
26490 DynamicField = other.DynamicField;
26491 }
26492 _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
26493 }
26494
26495 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020026496 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050026497 public void MergeFrom(pb::CodedInputStream input) {
Jan Tattermusch7cb55972020-06-02 09:26:25 +020026498 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
Jan Tattermusch3196ef92020-04-02 15:36:16 +020026499 input.ReadRawMessage(this);
Jan Tattermusch7cb55972020-06-02 09:26:25 +020026500 #else
26501 uint tag;
26502 while ((tag = input.ReadTag()) != 0) {
26503 switch(tag) {
26504 default:
26505 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
26506 break;
26507 case 16800: {
26508 DynamicField = input.ReadInt32();
26509 break;
26510 }
26511 }
26512 }
26513 #endif
Jan Tattermusch3196ef92020-04-02 15:36:16 +020026514 }
26515
Jan Tattermusch7cb55972020-06-02 09:26:25 +020026516 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
Jan Tattermusch3196ef92020-04-02 15:36:16 +020026517 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020026518 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Jan Tattermusch0df7ddc2020-04-14 12:41:03 +020026519 void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
Sydney Acksman8a57ec82019-03-21 17:36:36 -050026520 uint tag;
26521 while ((tag = input.ReadTag()) != 0) {
26522 switch(tag) {
26523 default:
Jan Tattermusch3196ef92020-04-02 15:36:16 +020026524 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
Sydney Acksman8a57ec82019-03-21 17:36:36 -050026525 break;
26526 case 16800: {
26527 DynamicField = input.ReadInt32();
26528 break;
26529 }
26530 }
26531 }
26532 }
Jan Tattermusch7cb55972020-06-02 09:26:25 +020026533 #endif
Sydney Acksman8a57ec82019-03-21 17:36:36 -050026534
26535 }
26536
26537 }
26538 #endregion
26539
26540 }
26541
Jan Tattermusch7cb55972020-06-02 09:26:25 +020026542 public sealed partial class TestRepeatedScalarDifferentTagSizes : pb::IMessage<TestRepeatedScalarDifferentTagSizes>
26543 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
26544 , pb::IBufferMessage
26545 #endif
26546 {
Sydney Acksman8a57ec82019-03-21 17:36:36 -050026547 private static readonly pb::MessageParser<TestRepeatedScalarDifferentTagSizes> _parser = new pb::MessageParser<TestRepeatedScalarDifferentTagSizes>(() => new TestRepeatedScalarDifferentTagSizes());
26548 private pb::UnknownFieldSet _unknownFields;
26549 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020026550 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050026551 public static pb::MessageParser<TestRepeatedScalarDifferentTagSizes> Parser { get { return _parser; } }
26552
26553 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020026554 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050026555 public static pbr::MessageDescriptor Descriptor {
Sydney Acksman8b7fb7d2019-03-23 11:41:57 -050026556 get { return global::Google.Protobuf.TestProtos.Proto2.UnittestReflection.Descriptor.MessageTypes[53]; }
Sydney Acksman8a57ec82019-03-21 17:36:36 -050026557 }
26558
26559 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020026560 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050026561 pbr::MessageDescriptor pb::IMessage.Descriptor {
26562 get { return Descriptor; }
26563 }
26564
26565 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020026566 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050026567 public TestRepeatedScalarDifferentTagSizes() {
26568 OnConstruction();
26569 }
26570
26571 partial void OnConstruction();
26572
26573 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020026574 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050026575 public TestRepeatedScalarDifferentTagSizes(TestRepeatedScalarDifferentTagSizes other) : this() {
26576 repeatedFixed32_ = other.repeatedFixed32_.Clone();
26577 repeatedInt32_ = other.repeatedInt32_.Clone();
26578 repeatedFixed64_ = other.repeatedFixed64_.Clone();
26579 repeatedInt64_ = other.repeatedInt64_.Clone();
26580 repeatedFloat_ = other.repeatedFloat_.Clone();
26581 repeatedUint64_ = other.repeatedUint64_.Clone();
26582 _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
26583 }
26584
26585 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020026586 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050026587 public TestRepeatedScalarDifferentTagSizes Clone() {
26588 return new TestRepeatedScalarDifferentTagSizes(this);
26589 }
26590
26591 /// <summary>Field number for the "repeated_fixed32" field.</summary>
26592 public const int RepeatedFixed32FieldNumber = 12;
26593 private static readonly pb::FieldCodec<uint> _repeated_repeatedFixed32_codec
26594 = pb::FieldCodec.ForFixed32(101);
26595 private readonly pbc::RepeatedField<uint> repeatedFixed32_ = new pbc::RepeatedField<uint>();
26596 /// <summary>
26597 /// Parsing repeated fixed size values used to fail. This message needs to be
26598 /// used in order to get a tag of the right size; all of the repeated fields
26599 /// in TestAllTypes didn't trigger the check.
26600 /// </summary>
26601 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020026602 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050026603 public pbc::RepeatedField<uint> RepeatedFixed32 {
26604 get { return repeatedFixed32_; }
26605 }
26606
26607 /// <summary>Field number for the "repeated_int32" field.</summary>
26608 public const int RepeatedInt32FieldNumber = 13;
26609 private static readonly pb::FieldCodec<int> _repeated_repeatedInt32_codec
26610 = pb::FieldCodec.ForInt32(104);
26611 private readonly pbc::RepeatedField<int> repeatedInt32_ = new pbc::RepeatedField<int>();
26612 /// <summary>
26613 /// Check for a varint type, just for good measure.
26614 /// </summary>
26615 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020026616 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050026617 public pbc::RepeatedField<int> RepeatedInt32 {
26618 get { return repeatedInt32_; }
26619 }
26620
26621 /// <summary>Field number for the "repeated_fixed64" field.</summary>
26622 public const int RepeatedFixed64FieldNumber = 2046;
26623 private static readonly pb::FieldCodec<ulong> _repeated_repeatedFixed64_codec
26624 = pb::FieldCodec.ForFixed64(16369);
26625 private readonly pbc::RepeatedField<ulong> repeatedFixed64_ = new pbc::RepeatedField<ulong>();
26626 /// <summary>
26627 /// These have two-byte tags.
26628 /// </summary>
26629 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020026630 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050026631 public pbc::RepeatedField<ulong> RepeatedFixed64 {
26632 get { return repeatedFixed64_; }
26633 }
26634
26635 /// <summary>Field number for the "repeated_int64" field.</summary>
26636 public const int RepeatedInt64FieldNumber = 2047;
26637 private static readonly pb::FieldCodec<long> _repeated_repeatedInt64_codec
26638 = pb::FieldCodec.ForInt64(16376);
26639 private readonly pbc::RepeatedField<long> repeatedInt64_ = new pbc::RepeatedField<long>();
26640 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020026641 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050026642 public pbc::RepeatedField<long> RepeatedInt64 {
26643 get { return repeatedInt64_; }
26644 }
26645
26646 /// <summary>Field number for the "repeated_float" field.</summary>
26647 public const int RepeatedFloatFieldNumber = 262142;
26648 private static readonly pb::FieldCodec<float> _repeated_repeatedFloat_codec
26649 = pb::FieldCodec.ForFloat(2097141);
26650 private readonly pbc::RepeatedField<float> repeatedFloat_ = new pbc::RepeatedField<float>();
26651 /// <summary>
26652 /// Three byte tags.
26653 /// </summary>
26654 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020026655 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050026656 public pbc::RepeatedField<float> RepeatedFloat {
26657 get { return repeatedFloat_; }
26658 }
26659
26660 /// <summary>Field number for the "repeated_uint64" field.</summary>
26661 public const int RepeatedUint64FieldNumber = 262143;
26662 private static readonly pb::FieldCodec<ulong> _repeated_repeatedUint64_codec
26663 = pb::FieldCodec.ForUInt64(2097144);
26664 private readonly pbc::RepeatedField<ulong> repeatedUint64_ = new pbc::RepeatedField<ulong>();
26665 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020026666 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050026667 public pbc::RepeatedField<ulong> RepeatedUint64 {
26668 get { return repeatedUint64_; }
26669 }
26670
26671 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020026672 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050026673 public override bool Equals(object other) {
26674 return Equals(other as TestRepeatedScalarDifferentTagSizes);
26675 }
26676
26677 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020026678 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050026679 public bool Equals(TestRepeatedScalarDifferentTagSizes other) {
26680 if (ReferenceEquals(other, null)) {
26681 return false;
26682 }
26683 if (ReferenceEquals(other, this)) {
26684 return true;
26685 }
26686 if(!repeatedFixed32_.Equals(other.repeatedFixed32_)) return false;
26687 if(!repeatedInt32_.Equals(other.repeatedInt32_)) return false;
26688 if(!repeatedFixed64_.Equals(other.repeatedFixed64_)) return false;
26689 if(!repeatedInt64_.Equals(other.repeatedInt64_)) return false;
26690 if(!repeatedFloat_.Equals(other.repeatedFloat_)) return false;
26691 if(!repeatedUint64_.Equals(other.repeatedUint64_)) return false;
26692 return Equals(_unknownFields, other._unknownFields);
26693 }
26694
26695 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020026696 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050026697 public override int GetHashCode() {
26698 int hash = 1;
26699 hash ^= repeatedFixed32_.GetHashCode();
26700 hash ^= repeatedInt32_.GetHashCode();
26701 hash ^= repeatedFixed64_.GetHashCode();
26702 hash ^= repeatedInt64_.GetHashCode();
26703 hash ^= repeatedFloat_.GetHashCode();
26704 hash ^= repeatedUint64_.GetHashCode();
26705 if (_unknownFields != null) {
26706 hash ^= _unknownFields.GetHashCode();
26707 }
26708 return hash;
26709 }
26710
26711 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020026712 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050026713 public override string ToString() {
26714 return pb::JsonFormatter.ToDiagnosticString(this);
26715 }
26716
26717 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020026718 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050026719 public void WriteTo(pb::CodedOutputStream output) {
Jan Tattermusch125e4ad2020-05-29 04:32:43 -040026720 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
26721 output.WriteRawMessage(this);
26722 #else
Sydney Acksman8a57ec82019-03-21 17:36:36 -050026723 repeatedFixed32_.WriteTo(output, _repeated_repeatedFixed32_codec);
26724 repeatedInt32_.WriteTo(output, _repeated_repeatedInt32_codec);
26725 repeatedFixed64_.WriteTo(output, _repeated_repeatedFixed64_codec);
26726 repeatedInt64_.WriteTo(output, _repeated_repeatedInt64_codec);
26727 repeatedFloat_.WriteTo(output, _repeated_repeatedFloat_codec);
26728 repeatedUint64_.WriteTo(output, _repeated_repeatedUint64_codec);
26729 if (_unknownFields != null) {
26730 _unknownFields.WriteTo(output);
26731 }
Jan Tattermusch125e4ad2020-05-29 04:32:43 -040026732 #endif
Sydney Acksman8a57ec82019-03-21 17:36:36 -050026733 }
26734
Jan Tattermusch125e4ad2020-05-29 04:32:43 -040026735 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
26736 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020026737 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Jan Tattermusch125e4ad2020-05-29 04:32:43 -040026738 void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
26739 repeatedFixed32_.WriteTo(ref output, _repeated_repeatedFixed32_codec);
26740 repeatedInt32_.WriteTo(ref output, _repeated_repeatedInt32_codec);
26741 repeatedFixed64_.WriteTo(ref output, _repeated_repeatedFixed64_codec);
26742 repeatedInt64_.WriteTo(ref output, _repeated_repeatedInt64_codec);
26743 repeatedFloat_.WriteTo(ref output, _repeated_repeatedFloat_codec);
26744 repeatedUint64_.WriteTo(ref output, _repeated_repeatedUint64_codec);
26745 if (_unknownFields != null) {
26746 _unknownFields.WriteTo(ref output);
26747 }
26748 }
26749 #endif
26750
Sydney Acksman8a57ec82019-03-21 17:36:36 -050026751 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020026752 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050026753 public int CalculateSize() {
26754 int size = 0;
26755 size += repeatedFixed32_.CalculateSize(_repeated_repeatedFixed32_codec);
26756 size += repeatedInt32_.CalculateSize(_repeated_repeatedInt32_codec);
26757 size += repeatedFixed64_.CalculateSize(_repeated_repeatedFixed64_codec);
26758 size += repeatedInt64_.CalculateSize(_repeated_repeatedInt64_codec);
26759 size += repeatedFloat_.CalculateSize(_repeated_repeatedFloat_codec);
26760 size += repeatedUint64_.CalculateSize(_repeated_repeatedUint64_codec);
26761 if (_unknownFields != null) {
26762 size += _unknownFields.CalculateSize();
26763 }
26764 return size;
26765 }
26766
26767 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020026768 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050026769 public void MergeFrom(TestRepeatedScalarDifferentTagSizes other) {
26770 if (other == null) {
26771 return;
26772 }
26773 repeatedFixed32_.Add(other.repeatedFixed32_);
26774 repeatedInt32_.Add(other.repeatedInt32_);
26775 repeatedFixed64_.Add(other.repeatedFixed64_);
26776 repeatedInt64_.Add(other.repeatedInt64_);
26777 repeatedFloat_.Add(other.repeatedFloat_);
26778 repeatedUint64_.Add(other.repeatedUint64_);
26779 _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
26780 }
26781
26782 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020026783 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050026784 public void MergeFrom(pb::CodedInputStream input) {
Jan Tattermusch7cb55972020-06-02 09:26:25 +020026785 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
Jan Tattermusch3196ef92020-04-02 15:36:16 +020026786 input.ReadRawMessage(this);
Jan Tattermusch7cb55972020-06-02 09:26:25 +020026787 #else
26788 uint tag;
26789 while ((tag = input.ReadTag()) != 0) {
26790 switch(tag) {
26791 default:
26792 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
26793 break;
26794 case 98:
26795 case 101: {
26796 repeatedFixed32_.AddEntriesFrom(input, _repeated_repeatedFixed32_codec);
26797 break;
26798 }
26799 case 106:
26800 case 104: {
26801 repeatedInt32_.AddEntriesFrom(input, _repeated_repeatedInt32_codec);
26802 break;
26803 }
26804 case 16370:
26805 case 16369: {
26806 repeatedFixed64_.AddEntriesFrom(input, _repeated_repeatedFixed64_codec);
26807 break;
26808 }
26809 case 16378:
26810 case 16376: {
26811 repeatedInt64_.AddEntriesFrom(input, _repeated_repeatedInt64_codec);
26812 break;
26813 }
26814 case 2097138:
26815 case 2097141: {
26816 repeatedFloat_.AddEntriesFrom(input, _repeated_repeatedFloat_codec);
26817 break;
26818 }
26819 case 2097146:
26820 case 2097144: {
26821 repeatedUint64_.AddEntriesFrom(input, _repeated_repeatedUint64_codec);
26822 break;
26823 }
26824 }
26825 }
26826 #endif
Jan Tattermusch3196ef92020-04-02 15:36:16 +020026827 }
26828
Jan Tattermusch7cb55972020-06-02 09:26:25 +020026829 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
Jan Tattermusch3196ef92020-04-02 15:36:16 +020026830 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020026831 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Jan Tattermusch0df7ddc2020-04-14 12:41:03 +020026832 void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
Sydney Acksman8a57ec82019-03-21 17:36:36 -050026833 uint tag;
26834 while ((tag = input.ReadTag()) != 0) {
26835 switch(tag) {
26836 default:
Jan Tattermusch3196ef92020-04-02 15:36:16 +020026837 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
Sydney Acksman8a57ec82019-03-21 17:36:36 -050026838 break;
26839 case 98:
26840 case 101: {
Jan Tattermusch3196ef92020-04-02 15:36:16 +020026841 repeatedFixed32_.AddEntriesFrom(ref input, _repeated_repeatedFixed32_codec);
Sydney Acksman8a57ec82019-03-21 17:36:36 -050026842 break;
26843 }
26844 case 106:
26845 case 104: {
Jan Tattermusch3196ef92020-04-02 15:36:16 +020026846 repeatedInt32_.AddEntriesFrom(ref input, _repeated_repeatedInt32_codec);
Sydney Acksman8a57ec82019-03-21 17:36:36 -050026847 break;
26848 }
26849 case 16370:
26850 case 16369: {
Jan Tattermusch3196ef92020-04-02 15:36:16 +020026851 repeatedFixed64_.AddEntriesFrom(ref input, _repeated_repeatedFixed64_codec);
Sydney Acksman8a57ec82019-03-21 17:36:36 -050026852 break;
26853 }
26854 case 16378:
26855 case 16376: {
Jan Tattermusch3196ef92020-04-02 15:36:16 +020026856 repeatedInt64_.AddEntriesFrom(ref input, _repeated_repeatedInt64_codec);
Sydney Acksman8a57ec82019-03-21 17:36:36 -050026857 break;
26858 }
26859 case 2097138:
26860 case 2097141: {
Jan Tattermusch3196ef92020-04-02 15:36:16 +020026861 repeatedFloat_.AddEntriesFrom(ref input, _repeated_repeatedFloat_codec);
Sydney Acksman8a57ec82019-03-21 17:36:36 -050026862 break;
26863 }
26864 case 2097146:
26865 case 2097144: {
Jan Tattermusch3196ef92020-04-02 15:36:16 +020026866 repeatedUint64_.AddEntriesFrom(ref input, _repeated_repeatedUint64_codec);
Sydney Acksman8a57ec82019-03-21 17:36:36 -050026867 break;
26868 }
26869 }
26870 }
26871 }
Jan Tattermusch7cb55972020-06-02 09:26:25 +020026872 #endif
Sydney Acksman8a57ec82019-03-21 17:36:36 -050026873
26874 }
26875
26876 /// <summary>
26877 /// Test that if an optional or required message/group field appears multiple
26878 /// times in the input, they need to be merged.
26879 /// </summary>
Jan Tattermusch7cb55972020-06-02 09:26:25 +020026880 public sealed partial class TestParsingMerge : pb::IExtendableMessage<TestParsingMerge>
26881 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
26882 , pb::IBufferMessage
26883 #endif
26884 {
Sydney Acksman8a57ec82019-03-21 17:36:36 -050026885 private static readonly pb::MessageParser<TestParsingMerge> _parser = new pb::MessageParser<TestParsingMerge>(() => new TestParsingMerge());
26886 private pb::UnknownFieldSet _unknownFields;
26887 private pb::ExtensionSet<TestParsingMerge> _extensions;
Sydney Acksmanc04a0272019-11-07 15:30:12 -060026888 private pb::ExtensionSet<TestParsingMerge> _Extensions { get { return _extensions; } }
Sydney Acksman8a57ec82019-03-21 17:36:36 -050026889 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020026890 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050026891 public static pb::MessageParser<TestParsingMerge> Parser { get { return _parser; } }
26892
26893 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020026894 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050026895 public static pbr::MessageDescriptor Descriptor {
Sydney Acksman8b7fb7d2019-03-23 11:41:57 -050026896 get { return global::Google.Protobuf.TestProtos.Proto2.UnittestReflection.Descriptor.MessageTypes[54]; }
Sydney Acksman8a57ec82019-03-21 17:36:36 -050026897 }
26898
26899 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020026900 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050026901 pbr::MessageDescriptor pb::IMessage.Descriptor {
26902 get { return Descriptor; }
26903 }
26904
26905 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020026906 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050026907 public TestParsingMerge() {
26908 OnConstruction();
26909 }
26910
26911 partial void OnConstruction();
26912
26913 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020026914 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050026915 public TestParsingMerge(TestParsingMerge other) : this() {
Jon Skeet9926c952020-04-27 07:18:45 +010026916 requiredAllTypes_ = other.requiredAllTypes_ != null ? other.requiredAllTypes_.Clone() : null;
26917 optionalAllTypes_ = other.optionalAllTypes_ != null ? other.optionalAllTypes_.Clone() : null;
Sydney Acksman8a57ec82019-03-21 17:36:36 -050026918 repeatedAllTypes_ = other.repeatedAllTypes_.Clone();
26919 optionalGroup_ = other.HasOptionalGroup ? other.optionalGroup_.Clone() : null;
26920 repeatedGroup_ = other.repeatedGroup_.Clone();
26921 _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
26922 _extensions = pb::ExtensionSet.Clone(other._extensions);
26923 }
26924
26925 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020026926 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050026927 public TestParsingMerge Clone() {
26928 return new TestParsingMerge(this);
26929 }
26930
26931 /// <summary>Field number for the "required_all_types" field.</summary>
26932 public const int RequiredAllTypesFieldNumber = 1;
26933 private global::Google.Protobuf.TestProtos.Proto2.TestAllTypes requiredAllTypes_;
26934 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020026935 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050026936 public global::Google.Protobuf.TestProtos.Proto2.TestAllTypes RequiredAllTypes {
26937 get { return requiredAllTypes_; }
26938 set {
26939 requiredAllTypes_ = value;
26940 }
26941 }
Sydney Acksman8a57ec82019-03-21 17:36:36 -050026942
26943 /// <summary>Field number for the "optional_all_types" field.</summary>
26944 public const int OptionalAllTypesFieldNumber = 2;
26945 private global::Google.Protobuf.TestProtos.Proto2.TestAllTypes optionalAllTypes_;
26946 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020026947 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050026948 public global::Google.Protobuf.TestProtos.Proto2.TestAllTypes OptionalAllTypes {
26949 get { return optionalAllTypes_; }
26950 set {
26951 optionalAllTypes_ = value;
26952 }
26953 }
Sydney Acksman8a57ec82019-03-21 17:36:36 -050026954
26955 /// <summary>Field number for the "repeated_all_types" field.</summary>
26956 public const int RepeatedAllTypesFieldNumber = 3;
26957 private static readonly pb::FieldCodec<global::Google.Protobuf.TestProtos.Proto2.TestAllTypes> _repeated_repeatedAllTypes_codec
26958 = pb::FieldCodec.ForMessage(26, global::Google.Protobuf.TestProtos.Proto2.TestAllTypes.Parser);
26959 private readonly pbc::RepeatedField<global::Google.Protobuf.TestProtos.Proto2.TestAllTypes> repeatedAllTypes_ = new pbc::RepeatedField<global::Google.Protobuf.TestProtos.Proto2.TestAllTypes>();
26960 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020026961 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050026962 public pbc::RepeatedField<global::Google.Protobuf.TestProtos.Proto2.TestAllTypes> RepeatedAllTypes {
26963 get { return repeatedAllTypes_; }
26964 }
26965
26966 /// <summary>Field number for the "optionalgroup" field.</summary>
26967 public const int OptionalGroupFieldNumber = 10;
26968 private global::Google.Protobuf.TestProtos.Proto2.TestParsingMerge.Types.OptionalGroup optionalGroup_;
26969 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020026970 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050026971 public global::Google.Protobuf.TestProtos.Proto2.TestParsingMerge.Types.OptionalGroup OptionalGroup {
26972 get { return optionalGroup_; }
26973 set {
26974 optionalGroup_ = value;
26975 }
26976 }
26977 /// <summary>Gets whether the optionalgroup field is set</summary>
26978 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020026979 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050026980 public bool HasOptionalGroup {
26981 get { return optionalGroup_ != null; }
26982 }
26983 /// <summary>Clears the value of the optionalgroup field</summary>
26984 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020026985 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050026986 public void ClearOptionalGroup() {
26987 optionalGroup_ = null;
26988 }
26989
26990 /// <summary>Field number for the "repeatedgroup" field.</summary>
26991 public const int RepeatedGroupFieldNumber = 20;
26992 private static readonly pb::FieldCodec<global::Google.Protobuf.TestProtos.Proto2.TestParsingMerge.Types.RepeatedGroup> _repeated_repeatedGroup_codec
26993 = pb::FieldCodec.ForGroup(163, 164, global::Google.Protobuf.TestProtos.Proto2.TestParsingMerge.Types.RepeatedGroup.Parser);
26994 private readonly pbc::RepeatedField<global::Google.Protobuf.TestProtos.Proto2.TestParsingMerge.Types.RepeatedGroup> repeatedGroup_ = new pbc::RepeatedField<global::Google.Protobuf.TestProtos.Proto2.TestParsingMerge.Types.RepeatedGroup>();
26995 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020026996 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050026997 public pbc::RepeatedField<global::Google.Protobuf.TestProtos.Proto2.TestParsingMerge.Types.RepeatedGroup> RepeatedGroup {
26998 get { return repeatedGroup_; }
26999 }
27000
27001 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020027002 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050027003 public override bool Equals(object other) {
27004 return Equals(other as TestParsingMerge);
27005 }
27006
27007 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020027008 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050027009 public bool Equals(TestParsingMerge other) {
27010 if (ReferenceEquals(other, null)) {
27011 return false;
27012 }
27013 if (ReferenceEquals(other, this)) {
27014 return true;
27015 }
27016 if (!object.Equals(RequiredAllTypes, other.RequiredAllTypes)) return false;
27017 if (!object.Equals(OptionalAllTypes, other.OptionalAllTypes)) return false;
27018 if(!repeatedAllTypes_.Equals(other.repeatedAllTypes_)) return false;
27019 if (!object.Equals(OptionalGroup, other.OptionalGroup)) return false;
27020 if(!repeatedGroup_.Equals(other.repeatedGroup_)) return false;
27021 if (!Equals(_extensions, other._extensions)) {
27022 return false;
27023 }
27024 return Equals(_unknownFields, other._unknownFields);
27025 }
27026
27027 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020027028 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050027029 public override int GetHashCode() {
27030 int hash = 1;
Jon Skeet9926c952020-04-27 07:18:45 +010027031 if (requiredAllTypes_ != null) hash ^= RequiredAllTypes.GetHashCode();
27032 if (optionalAllTypes_ != null) hash ^= OptionalAllTypes.GetHashCode();
Sydney Acksman8a57ec82019-03-21 17:36:36 -050027033 hash ^= repeatedAllTypes_.GetHashCode();
27034 if (HasOptionalGroup) hash ^= OptionalGroup.GetHashCode();
27035 hash ^= repeatedGroup_.GetHashCode();
27036 if (_extensions != null) {
27037 hash ^= _extensions.GetHashCode();
27038 }
27039 if (_unknownFields != null) {
27040 hash ^= _unknownFields.GetHashCode();
27041 }
27042 return hash;
27043 }
27044
27045 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020027046 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050027047 public override string ToString() {
27048 return pb::JsonFormatter.ToDiagnosticString(this);
27049 }
27050
27051 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020027052 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050027053 public void WriteTo(pb::CodedOutputStream output) {
Jan Tattermusch125e4ad2020-05-29 04:32:43 -040027054 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
27055 output.WriteRawMessage(this);
27056 #else
Jon Skeet9926c952020-04-27 07:18:45 +010027057 if (requiredAllTypes_ != null) {
Sydney Acksman8a57ec82019-03-21 17:36:36 -050027058 output.WriteRawTag(10);
27059 output.WriteMessage(RequiredAllTypes);
27060 }
Jon Skeet9926c952020-04-27 07:18:45 +010027061 if (optionalAllTypes_ != null) {
Sydney Acksman8a57ec82019-03-21 17:36:36 -050027062 output.WriteRawTag(18);
27063 output.WriteMessage(OptionalAllTypes);
27064 }
27065 repeatedAllTypes_.WriteTo(output, _repeated_repeatedAllTypes_codec);
27066 if (HasOptionalGroup) {
27067 output.WriteRawTag(83);
27068 output.WriteGroup(OptionalGroup);
27069 output.WriteRawTag(84);
27070 }
27071 repeatedGroup_.WriteTo(output, _repeated_repeatedGroup_codec);
27072 if (_extensions != null) {
27073 _extensions.WriteTo(output);
27074 }
27075 if (_unknownFields != null) {
27076 _unknownFields.WriteTo(output);
27077 }
Jan Tattermusch125e4ad2020-05-29 04:32:43 -040027078 #endif
Sydney Acksman8a57ec82019-03-21 17:36:36 -050027079 }
27080
Jan Tattermusch125e4ad2020-05-29 04:32:43 -040027081 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
27082 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020027083 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Jan Tattermusch125e4ad2020-05-29 04:32:43 -040027084 void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
27085 if (requiredAllTypes_ != null) {
27086 output.WriteRawTag(10);
27087 output.WriteMessage(RequiredAllTypes);
27088 }
27089 if (optionalAllTypes_ != null) {
27090 output.WriteRawTag(18);
27091 output.WriteMessage(OptionalAllTypes);
27092 }
27093 repeatedAllTypes_.WriteTo(ref output, _repeated_repeatedAllTypes_codec);
27094 if (HasOptionalGroup) {
27095 output.WriteRawTag(83);
27096 output.WriteGroup(OptionalGroup);
27097 output.WriteRawTag(84);
27098 }
27099 repeatedGroup_.WriteTo(ref output, _repeated_repeatedGroup_codec);
27100 if (_extensions != null) {
27101 _extensions.WriteTo(ref output);
27102 }
27103 if (_unknownFields != null) {
27104 _unknownFields.WriteTo(ref output);
27105 }
27106 }
27107 #endif
27108
Sydney Acksman8a57ec82019-03-21 17:36:36 -050027109 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020027110 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050027111 public int CalculateSize() {
27112 int size = 0;
Jon Skeet9926c952020-04-27 07:18:45 +010027113 if (requiredAllTypes_ != null) {
Sydney Acksman8a57ec82019-03-21 17:36:36 -050027114 size += 1 + pb::CodedOutputStream.ComputeMessageSize(RequiredAllTypes);
27115 }
Jon Skeet9926c952020-04-27 07:18:45 +010027116 if (optionalAllTypes_ != null) {
Sydney Acksman8a57ec82019-03-21 17:36:36 -050027117 size += 1 + pb::CodedOutputStream.ComputeMessageSize(OptionalAllTypes);
27118 }
27119 size += repeatedAllTypes_.CalculateSize(_repeated_repeatedAllTypes_codec);
27120 if (HasOptionalGroup) {
27121 size += 2 + pb::CodedOutputStream.ComputeGroupSize(OptionalGroup);
27122 }
27123 size += repeatedGroup_.CalculateSize(_repeated_repeatedGroup_codec);
27124 if (_extensions != null) {
27125 size += _extensions.CalculateSize();
27126 }
27127 if (_unknownFields != null) {
27128 size += _unknownFields.CalculateSize();
27129 }
27130 return size;
27131 }
27132
27133 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020027134 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050027135 public void MergeFrom(TestParsingMerge other) {
27136 if (other == null) {
27137 return;
27138 }
Jon Skeet9926c952020-04-27 07:18:45 +010027139 if (other.requiredAllTypes_ != null) {
27140 if (requiredAllTypes_ == null) {
Sydney Acksman8a57ec82019-03-21 17:36:36 -050027141 RequiredAllTypes = new global::Google.Protobuf.TestProtos.Proto2.TestAllTypes();
27142 }
27143 RequiredAllTypes.MergeFrom(other.RequiredAllTypes);
27144 }
Jon Skeet9926c952020-04-27 07:18:45 +010027145 if (other.optionalAllTypes_ != null) {
27146 if (optionalAllTypes_ == null) {
Sydney Acksman8a57ec82019-03-21 17:36:36 -050027147 OptionalAllTypes = new global::Google.Protobuf.TestProtos.Proto2.TestAllTypes();
27148 }
27149 OptionalAllTypes.MergeFrom(other.OptionalAllTypes);
27150 }
27151 repeatedAllTypes_.Add(other.repeatedAllTypes_);
27152 if (other.HasOptionalGroup) {
27153 if (!HasOptionalGroup) {
27154 OptionalGroup = new global::Google.Protobuf.TestProtos.Proto2.TestParsingMerge.Types.OptionalGroup();
27155 }
27156 OptionalGroup.MergeFrom(other.OptionalGroup);
27157 }
27158 repeatedGroup_.Add(other.repeatedGroup_);
27159 pb::ExtensionSet.MergeFrom(ref _extensions, other._extensions);
27160 _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
27161 }
27162
27163 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020027164 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050027165 public void MergeFrom(pb::CodedInputStream input) {
Jan Tattermusch7cb55972020-06-02 09:26:25 +020027166 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
Jan Tattermusch3196ef92020-04-02 15:36:16 +020027167 input.ReadRawMessage(this);
Jan Tattermusch7cb55972020-06-02 09:26:25 +020027168 #else
27169 uint tag;
27170 while ((tag = input.ReadTag()) != 0) {
27171 switch(tag) {
27172 default:
27173 if (!pb::ExtensionSet.TryMergeFieldFrom(ref _extensions, input)) {
27174 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
27175 }
27176 break;
27177 case 10: {
27178 if (requiredAllTypes_ == null) {
27179 RequiredAllTypes = new global::Google.Protobuf.TestProtos.Proto2.TestAllTypes();
27180 }
27181 input.ReadMessage(RequiredAllTypes);
27182 break;
27183 }
27184 case 18: {
27185 if (optionalAllTypes_ == null) {
27186 OptionalAllTypes = new global::Google.Protobuf.TestProtos.Proto2.TestAllTypes();
27187 }
27188 input.ReadMessage(OptionalAllTypes);
27189 break;
27190 }
27191 case 26: {
27192 repeatedAllTypes_.AddEntriesFrom(input, _repeated_repeatedAllTypes_codec);
27193 break;
27194 }
27195 case 83: {
27196 if (!HasOptionalGroup) {
27197 OptionalGroup = new global::Google.Protobuf.TestProtos.Proto2.TestParsingMerge.Types.OptionalGroup();
27198 }
27199 input.ReadGroup(OptionalGroup);
27200 break;
27201 }
27202 case 163: {
27203 repeatedGroup_.AddEntriesFrom(input, _repeated_repeatedGroup_codec);
27204 break;
27205 }
27206 }
27207 }
27208 #endif
Jan Tattermusch3196ef92020-04-02 15:36:16 +020027209 }
27210
Jan Tattermusch7cb55972020-06-02 09:26:25 +020027211 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
Jan Tattermusch3196ef92020-04-02 15:36:16 +020027212 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020027213 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Jan Tattermusch0df7ddc2020-04-14 12:41:03 +020027214 void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
Sydney Acksman8a57ec82019-03-21 17:36:36 -050027215 uint tag;
27216 while ((tag = input.ReadTag()) != 0) {
27217 switch(tag) {
27218 default:
Jan Tattermusch3196ef92020-04-02 15:36:16 +020027219 if (!pb::ExtensionSet.TryMergeFieldFrom(ref _extensions, ref input)) {
27220 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
Sydney Acksman8a57ec82019-03-21 17:36:36 -050027221 }
27222 break;
27223 case 10: {
Jon Skeet9926c952020-04-27 07:18:45 +010027224 if (requiredAllTypes_ == null) {
Sydney Acksman8a57ec82019-03-21 17:36:36 -050027225 RequiredAllTypes = new global::Google.Protobuf.TestProtos.Proto2.TestAllTypes();
27226 }
27227 input.ReadMessage(RequiredAllTypes);
27228 break;
27229 }
27230 case 18: {
Jon Skeet9926c952020-04-27 07:18:45 +010027231 if (optionalAllTypes_ == null) {
Sydney Acksman8a57ec82019-03-21 17:36:36 -050027232 OptionalAllTypes = new global::Google.Protobuf.TestProtos.Proto2.TestAllTypes();
27233 }
27234 input.ReadMessage(OptionalAllTypes);
27235 break;
27236 }
27237 case 26: {
Jan Tattermusch3196ef92020-04-02 15:36:16 +020027238 repeatedAllTypes_.AddEntriesFrom(ref input, _repeated_repeatedAllTypes_codec);
Sydney Acksman8a57ec82019-03-21 17:36:36 -050027239 break;
27240 }
27241 case 83: {
27242 if (!HasOptionalGroup) {
27243 OptionalGroup = new global::Google.Protobuf.TestProtos.Proto2.TestParsingMerge.Types.OptionalGroup();
27244 }
27245 input.ReadGroup(OptionalGroup);
27246 break;
27247 }
27248 case 163: {
Jan Tattermusch3196ef92020-04-02 15:36:16 +020027249 repeatedGroup_.AddEntriesFrom(ref input, _repeated_repeatedGroup_codec);
Sydney Acksman8a57ec82019-03-21 17:36:36 -050027250 break;
27251 }
27252 }
27253 }
27254 }
Jan Tattermusch7cb55972020-06-02 09:26:25 +020027255 #endif
Sydney Acksman8a57ec82019-03-21 17:36:36 -050027256
Sydney Acksman8a57ec82019-03-21 17:36:36 -050027257 public TValue GetExtension<TValue>(pb::Extension<TestParsingMerge, TValue> extension) {
27258 return pb::ExtensionSet.Get(ref _extensions, extension);
27259 }
27260 public pbc::RepeatedField<TValue> GetExtension<TValue>(pb::RepeatedExtension<TestParsingMerge, TValue> extension) {
27261 return pb::ExtensionSet.Get(ref _extensions, extension);
27262 }
Sydney Acksman0436b8d2019-08-01 03:06:03 -050027263 public pbc::RepeatedField<TValue> GetOrInitializeExtension<TValue>(pb::RepeatedExtension<TestParsingMerge, TValue> extension) {
27264 return pb::ExtensionSet.GetOrInitialize(ref _extensions, extension);
Sydney Acksman011427c2019-05-03 21:34:48 -050027265 }
Sydney Acksman8a57ec82019-03-21 17:36:36 -050027266 public void SetExtension<TValue>(pb::Extension<TestParsingMerge, TValue> extension, TValue value) {
27267 pb::ExtensionSet.Set(ref _extensions, extension, value);
27268 }
27269 public bool HasExtension<TValue>(pb::Extension<TestParsingMerge, TValue> extension) {
27270 return pb::ExtensionSet.Has(ref _extensions, extension);
27271 }
27272 public void ClearExtension<TValue>(pb::Extension<TestParsingMerge, TValue> extension) {
27273 pb::ExtensionSet.Clear(ref _extensions, extension);
27274 }
Sydney Acksman011427c2019-05-03 21:34:48 -050027275 public void ClearExtension<TValue>(pb::RepeatedExtension<TestParsingMerge, TValue> extension) {
27276 pb::ExtensionSet.Clear(ref _extensions, extension);
27277 }
Sydney Acksman8a57ec82019-03-21 17:36:36 -050027278
27279 #region Nested types
27280 /// <summary>Container for nested types declared in the TestParsingMerge message type.</summary>
27281 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020027282 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050027283 public static partial class Types {
27284 /// <summary>
27285 /// RepeatedFieldsGenerator defines matching field types as TestParsingMerge,
27286 /// except that all fields are repeated. In the tests, we will serialize the
27287 /// RepeatedFieldsGenerator to bytes, and parse the bytes to TestParsingMerge.
27288 /// Repeated fields in RepeatedFieldsGenerator are expected to be merged into
27289 /// the corresponding required/optional fields in TestParsingMerge.
27290 /// </summary>
Jan Tattermusch7cb55972020-06-02 09:26:25 +020027291 public sealed partial class RepeatedFieldsGenerator : pb::IMessage<RepeatedFieldsGenerator>
27292 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
27293 , pb::IBufferMessage
27294 #endif
27295 {
Sydney Acksman8a57ec82019-03-21 17:36:36 -050027296 private static readonly pb::MessageParser<RepeatedFieldsGenerator> _parser = new pb::MessageParser<RepeatedFieldsGenerator>(() => new RepeatedFieldsGenerator());
27297 private pb::UnknownFieldSet _unknownFields;
27298 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020027299 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050027300 public static pb::MessageParser<RepeatedFieldsGenerator> Parser { get { return _parser; } }
27301
27302 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020027303 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050027304 public static pbr::MessageDescriptor Descriptor {
27305 get { return global::Google.Protobuf.TestProtos.Proto2.TestParsingMerge.Descriptor.NestedTypes[0]; }
27306 }
27307
27308 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020027309 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050027310 pbr::MessageDescriptor pb::IMessage.Descriptor {
27311 get { return Descriptor; }
27312 }
27313
27314 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020027315 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050027316 public RepeatedFieldsGenerator() {
27317 OnConstruction();
27318 }
27319
27320 partial void OnConstruction();
27321
27322 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020027323 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050027324 public RepeatedFieldsGenerator(RepeatedFieldsGenerator other) : this() {
27325 field1_ = other.field1_.Clone();
27326 field2_ = other.field2_.Clone();
27327 field3_ = other.field3_.Clone();
27328 group1_ = other.group1_.Clone();
27329 group2_ = other.group2_.Clone();
27330 ext1_ = other.ext1_.Clone();
27331 ext2_ = other.ext2_.Clone();
27332 _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
27333 }
27334
27335 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020027336 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050027337 public RepeatedFieldsGenerator Clone() {
27338 return new RepeatedFieldsGenerator(this);
27339 }
27340
27341 /// <summary>Field number for the "field1" field.</summary>
27342 public const int Field1FieldNumber = 1;
27343 private static readonly pb::FieldCodec<global::Google.Protobuf.TestProtos.Proto2.TestAllTypes> _repeated_field1_codec
27344 = pb::FieldCodec.ForMessage(10, global::Google.Protobuf.TestProtos.Proto2.TestAllTypes.Parser);
27345 private readonly pbc::RepeatedField<global::Google.Protobuf.TestProtos.Proto2.TestAllTypes> field1_ = new pbc::RepeatedField<global::Google.Protobuf.TestProtos.Proto2.TestAllTypes>();
27346 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020027347 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050027348 public pbc::RepeatedField<global::Google.Protobuf.TestProtos.Proto2.TestAllTypes> Field1 {
27349 get { return field1_; }
27350 }
27351
27352 /// <summary>Field number for the "field2" field.</summary>
27353 public const int Field2FieldNumber = 2;
27354 private static readonly pb::FieldCodec<global::Google.Protobuf.TestProtos.Proto2.TestAllTypes> _repeated_field2_codec
27355 = pb::FieldCodec.ForMessage(18, global::Google.Protobuf.TestProtos.Proto2.TestAllTypes.Parser);
27356 private readonly pbc::RepeatedField<global::Google.Protobuf.TestProtos.Proto2.TestAllTypes> field2_ = new pbc::RepeatedField<global::Google.Protobuf.TestProtos.Proto2.TestAllTypes>();
27357 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020027358 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050027359 public pbc::RepeatedField<global::Google.Protobuf.TestProtos.Proto2.TestAllTypes> Field2 {
27360 get { return field2_; }
27361 }
27362
27363 /// <summary>Field number for the "field3" field.</summary>
27364 public const int Field3FieldNumber = 3;
27365 private static readonly pb::FieldCodec<global::Google.Protobuf.TestProtos.Proto2.TestAllTypes> _repeated_field3_codec
27366 = pb::FieldCodec.ForMessage(26, global::Google.Protobuf.TestProtos.Proto2.TestAllTypes.Parser);
27367 private readonly pbc::RepeatedField<global::Google.Protobuf.TestProtos.Proto2.TestAllTypes> field3_ = new pbc::RepeatedField<global::Google.Protobuf.TestProtos.Proto2.TestAllTypes>();
27368 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020027369 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050027370 public pbc::RepeatedField<global::Google.Protobuf.TestProtos.Proto2.TestAllTypes> Field3 {
27371 get { return field3_; }
27372 }
27373
27374 /// <summary>Field number for the "group1" field.</summary>
27375 public const int Group1FieldNumber = 10;
27376 private static readonly pb::FieldCodec<global::Google.Protobuf.TestProtos.Proto2.TestParsingMerge.Types.RepeatedFieldsGenerator.Types.Group1> _repeated_group1_codec
27377 = pb::FieldCodec.ForGroup(83, 84, global::Google.Protobuf.TestProtos.Proto2.TestParsingMerge.Types.RepeatedFieldsGenerator.Types.Group1.Parser);
27378 private readonly pbc::RepeatedField<global::Google.Protobuf.TestProtos.Proto2.TestParsingMerge.Types.RepeatedFieldsGenerator.Types.Group1> group1_ = new pbc::RepeatedField<global::Google.Protobuf.TestProtos.Proto2.TestParsingMerge.Types.RepeatedFieldsGenerator.Types.Group1>();
27379 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020027380 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050027381 public pbc::RepeatedField<global::Google.Protobuf.TestProtos.Proto2.TestParsingMerge.Types.RepeatedFieldsGenerator.Types.Group1> Group1 {
27382 get { return group1_; }
27383 }
27384
27385 /// <summary>Field number for the "group2" field.</summary>
27386 public const int Group2FieldNumber = 20;
27387 private static readonly pb::FieldCodec<global::Google.Protobuf.TestProtos.Proto2.TestParsingMerge.Types.RepeatedFieldsGenerator.Types.Group2> _repeated_group2_codec
27388 = pb::FieldCodec.ForGroup(163, 164, global::Google.Protobuf.TestProtos.Proto2.TestParsingMerge.Types.RepeatedFieldsGenerator.Types.Group2.Parser);
27389 private readonly pbc::RepeatedField<global::Google.Protobuf.TestProtos.Proto2.TestParsingMerge.Types.RepeatedFieldsGenerator.Types.Group2> group2_ = new pbc::RepeatedField<global::Google.Protobuf.TestProtos.Proto2.TestParsingMerge.Types.RepeatedFieldsGenerator.Types.Group2>();
27390 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020027391 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050027392 public pbc::RepeatedField<global::Google.Protobuf.TestProtos.Proto2.TestParsingMerge.Types.RepeatedFieldsGenerator.Types.Group2> Group2 {
27393 get { return group2_; }
27394 }
27395
27396 /// <summary>Field number for the "ext1" field.</summary>
27397 public const int Ext1FieldNumber = 1000;
27398 private static readonly pb::FieldCodec<global::Google.Protobuf.TestProtos.Proto2.TestAllTypes> _repeated_ext1_codec
27399 = pb::FieldCodec.ForMessage(8002, global::Google.Protobuf.TestProtos.Proto2.TestAllTypes.Parser);
27400 private readonly pbc::RepeatedField<global::Google.Protobuf.TestProtos.Proto2.TestAllTypes> ext1_ = new pbc::RepeatedField<global::Google.Protobuf.TestProtos.Proto2.TestAllTypes>();
27401 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020027402 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050027403 public pbc::RepeatedField<global::Google.Protobuf.TestProtos.Proto2.TestAllTypes> Ext1 {
27404 get { return ext1_; }
27405 }
27406
27407 /// <summary>Field number for the "ext2" field.</summary>
27408 public const int Ext2FieldNumber = 1001;
27409 private static readonly pb::FieldCodec<global::Google.Protobuf.TestProtos.Proto2.TestAllTypes> _repeated_ext2_codec
27410 = pb::FieldCodec.ForMessage(8010, global::Google.Protobuf.TestProtos.Proto2.TestAllTypes.Parser);
27411 private readonly pbc::RepeatedField<global::Google.Protobuf.TestProtos.Proto2.TestAllTypes> ext2_ = new pbc::RepeatedField<global::Google.Protobuf.TestProtos.Proto2.TestAllTypes>();
27412 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020027413 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050027414 public pbc::RepeatedField<global::Google.Protobuf.TestProtos.Proto2.TestAllTypes> Ext2 {
27415 get { return ext2_; }
27416 }
27417
27418 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020027419 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050027420 public override bool Equals(object other) {
27421 return Equals(other as RepeatedFieldsGenerator);
27422 }
27423
27424 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020027425 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050027426 public bool Equals(RepeatedFieldsGenerator other) {
27427 if (ReferenceEquals(other, null)) {
27428 return false;
27429 }
27430 if (ReferenceEquals(other, this)) {
27431 return true;
27432 }
27433 if(!field1_.Equals(other.field1_)) return false;
27434 if(!field2_.Equals(other.field2_)) return false;
27435 if(!field3_.Equals(other.field3_)) return false;
27436 if(!group1_.Equals(other.group1_)) return false;
27437 if(!group2_.Equals(other.group2_)) return false;
27438 if(!ext1_.Equals(other.ext1_)) return false;
27439 if(!ext2_.Equals(other.ext2_)) return false;
27440 return Equals(_unknownFields, other._unknownFields);
27441 }
27442
27443 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020027444 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050027445 public override int GetHashCode() {
27446 int hash = 1;
27447 hash ^= field1_.GetHashCode();
27448 hash ^= field2_.GetHashCode();
27449 hash ^= field3_.GetHashCode();
27450 hash ^= group1_.GetHashCode();
27451 hash ^= group2_.GetHashCode();
27452 hash ^= ext1_.GetHashCode();
27453 hash ^= ext2_.GetHashCode();
27454 if (_unknownFields != null) {
27455 hash ^= _unknownFields.GetHashCode();
27456 }
27457 return hash;
27458 }
27459
27460 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020027461 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050027462 public override string ToString() {
27463 return pb::JsonFormatter.ToDiagnosticString(this);
27464 }
27465
27466 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020027467 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050027468 public void WriteTo(pb::CodedOutputStream output) {
Jan Tattermusch125e4ad2020-05-29 04:32:43 -040027469 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
27470 output.WriteRawMessage(this);
27471 #else
Sydney Acksman8a57ec82019-03-21 17:36:36 -050027472 field1_.WriteTo(output, _repeated_field1_codec);
27473 field2_.WriteTo(output, _repeated_field2_codec);
27474 field3_.WriteTo(output, _repeated_field3_codec);
27475 group1_.WriteTo(output, _repeated_group1_codec);
27476 group2_.WriteTo(output, _repeated_group2_codec);
27477 ext1_.WriteTo(output, _repeated_ext1_codec);
27478 ext2_.WriteTo(output, _repeated_ext2_codec);
27479 if (_unknownFields != null) {
27480 _unknownFields.WriteTo(output);
27481 }
Jan Tattermusch125e4ad2020-05-29 04:32:43 -040027482 #endif
Sydney Acksman8a57ec82019-03-21 17:36:36 -050027483 }
27484
Jan Tattermusch125e4ad2020-05-29 04:32:43 -040027485 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
27486 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020027487 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Jan Tattermusch125e4ad2020-05-29 04:32:43 -040027488 void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
27489 field1_.WriteTo(ref output, _repeated_field1_codec);
27490 field2_.WriteTo(ref output, _repeated_field2_codec);
27491 field3_.WriteTo(ref output, _repeated_field3_codec);
27492 group1_.WriteTo(ref output, _repeated_group1_codec);
27493 group2_.WriteTo(ref output, _repeated_group2_codec);
27494 ext1_.WriteTo(ref output, _repeated_ext1_codec);
27495 ext2_.WriteTo(ref output, _repeated_ext2_codec);
27496 if (_unknownFields != null) {
27497 _unknownFields.WriteTo(ref output);
27498 }
27499 }
27500 #endif
27501
Sydney Acksman8a57ec82019-03-21 17:36:36 -050027502 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020027503 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050027504 public int CalculateSize() {
27505 int size = 0;
27506 size += field1_.CalculateSize(_repeated_field1_codec);
27507 size += field2_.CalculateSize(_repeated_field2_codec);
27508 size += field3_.CalculateSize(_repeated_field3_codec);
27509 size += group1_.CalculateSize(_repeated_group1_codec);
27510 size += group2_.CalculateSize(_repeated_group2_codec);
27511 size += ext1_.CalculateSize(_repeated_ext1_codec);
27512 size += ext2_.CalculateSize(_repeated_ext2_codec);
27513 if (_unknownFields != null) {
27514 size += _unknownFields.CalculateSize();
27515 }
27516 return size;
27517 }
27518
27519 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020027520 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050027521 public void MergeFrom(RepeatedFieldsGenerator other) {
27522 if (other == null) {
27523 return;
27524 }
27525 field1_.Add(other.field1_);
27526 field2_.Add(other.field2_);
27527 field3_.Add(other.field3_);
27528 group1_.Add(other.group1_);
27529 group2_.Add(other.group2_);
27530 ext1_.Add(other.ext1_);
27531 ext2_.Add(other.ext2_);
27532 _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
27533 }
27534
27535 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020027536 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050027537 public void MergeFrom(pb::CodedInputStream input) {
Jan Tattermusch7cb55972020-06-02 09:26:25 +020027538 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
Jan Tattermusch3196ef92020-04-02 15:36:16 +020027539 input.ReadRawMessage(this);
Jan Tattermusch7cb55972020-06-02 09:26:25 +020027540 #else
27541 uint tag;
27542 while ((tag = input.ReadTag()) != 0) {
27543 switch(tag) {
27544 default:
27545 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
27546 break;
27547 case 10: {
27548 field1_.AddEntriesFrom(input, _repeated_field1_codec);
27549 break;
27550 }
27551 case 18: {
27552 field2_.AddEntriesFrom(input, _repeated_field2_codec);
27553 break;
27554 }
27555 case 26: {
27556 field3_.AddEntriesFrom(input, _repeated_field3_codec);
27557 break;
27558 }
27559 case 83: {
27560 group1_.AddEntriesFrom(input, _repeated_group1_codec);
27561 break;
27562 }
27563 case 163: {
27564 group2_.AddEntriesFrom(input, _repeated_group2_codec);
27565 break;
27566 }
27567 case 8002: {
27568 ext1_.AddEntriesFrom(input, _repeated_ext1_codec);
27569 break;
27570 }
27571 case 8010: {
27572 ext2_.AddEntriesFrom(input, _repeated_ext2_codec);
27573 break;
27574 }
27575 }
27576 }
27577 #endif
Jan Tattermusch3196ef92020-04-02 15:36:16 +020027578 }
27579
Jan Tattermusch7cb55972020-06-02 09:26:25 +020027580 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
Jan Tattermusch3196ef92020-04-02 15:36:16 +020027581 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020027582 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Jan Tattermusch0df7ddc2020-04-14 12:41:03 +020027583 void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
Sydney Acksman8a57ec82019-03-21 17:36:36 -050027584 uint tag;
27585 while ((tag = input.ReadTag()) != 0) {
27586 switch(tag) {
27587 default:
Jan Tattermusch3196ef92020-04-02 15:36:16 +020027588 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
Sydney Acksman8a57ec82019-03-21 17:36:36 -050027589 break;
27590 case 10: {
Jan Tattermusch3196ef92020-04-02 15:36:16 +020027591 field1_.AddEntriesFrom(ref input, _repeated_field1_codec);
Sydney Acksman8a57ec82019-03-21 17:36:36 -050027592 break;
27593 }
27594 case 18: {
Jan Tattermusch3196ef92020-04-02 15:36:16 +020027595 field2_.AddEntriesFrom(ref input, _repeated_field2_codec);
Sydney Acksman8a57ec82019-03-21 17:36:36 -050027596 break;
27597 }
27598 case 26: {
Jan Tattermusch3196ef92020-04-02 15:36:16 +020027599 field3_.AddEntriesFrom(ref input, _repeated_field3_codec);
Sydney Acksman8a57ec82019-03-21 17:36:36 -050027600 break;
27601 }
27602 case 83: {
Jan Tattermusch3196ef92020-04-02 15:36:16 +020027603 group1_.AddEntriesFrom(ref input, _repeated_group1_codec);
Sydney Acksman8a57ec82019-03-21 17:36:36 -050027604 break;
27605 }
27606 case 163: {
Jan Tattermusch3196ef92020-04-02 15:36:16 +020027607 group2_.AddEntriesFrom(ref input, _repeated_group2_codec);
Sydney Acksman8a57ec82019-03-21 17:36:36 -050027608 break;
27609 }
27610 case 8002: {
Jan Tattermusch3196ef92020-04-02 15:36:16 +020027611 ext1_.AddEntriesFrom(ref input, _repeated_ext1_codec);
Sydney Acksman8a57ec82019-03-21 17:36:36 -050027612 break;
27613 }
27614 case 8010: {
Jan Tattermusch3196ef92020-04-02 15:36:16 +020027615 ext2_.AddEntriesFrom(ref input, _repeated_ext2_codec);
Sydney Acksman8a57ec82019-03-21 17:36:36 -050027616 break;
27617 }
27618 }
27619 }
27620 }
Jan Tattermusch7cb55972020-06-02 09:26:25 +020027621 #endif
Sydney Acksman8a57ec82019-03-21 17:36:36 -050027622
27623 #region Nested types
27624 /// <summary>Container for nested types declared in the RepeatedFieldsGenerator message type.</summary>
27625 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020027626 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050027627 public static partial class Types {
Jan Tattermusch7cb55972020-06-02 09:26:25 +020027628 public sealed partial class Group1 : pb::IMessage<Group1>
27629 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
27630 , pb::IBufferMessage
27631 #endif
27632 {
Sydney Acksman8a57ec82019-03-21 17:36:36 -050027633 private static readonly pb::MessageParser<Group1> _parser = new pb::MessageParser<Group1>(() => new Group1());
27634 private pb::UnknownFieldSet _unknownFields;
27635 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020027636 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050027637 public static pb::MessageParser<Group1> Parser { get { return _parser; } }
27638
27639 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020027640 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050027641 public static pbr::MessageDescriptor Descriptor {
27642 get { return global::Google.Protobuf.TestProtos.Proto2.TestParsingMerge.Types.RepeatedFieldsGenerator.Descriptor.NestedTypes[0]; }
27643 }
27644
27645 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020027646 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050027647 pbr::MessageDescriptor pb::IMessage.Descriptor {
27648 get { return Descriptor; }
27649 }
27650
27651 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020027652 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050027653 public Group1() {
27654 OnConstruction();
27655 }
27656
27657 partial void OnConstruction();
27658
27659 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020027660 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050027661 public Group1(Group1 other) : this() {
Jon Skeet9926c952020-04-27 07:18:45 +010027662 field1_ = other.field1_ != null ? other.field1_.Clone() : null;
Sydney Acksman8a57ec82019-03-21 17:36:36 -050027663 _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
27664 }
27665
27666 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020027667 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050027668 public Group1 Clone() {
27669 return new Group1(this);
27670 }
27671
27672 /// <summary>Field number for the "field1" field.</summary>
27673 public const int Field1FieldNumber = 11;
27674 private global::Google.Protobuf.TestProtos.Proto2.TestAllTypes field1_;
27675 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020027676 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050027677 public global::Google.Protobuf.TestProtos.Proto2.TestAllTypes Field1 {
27678 get { return field1_; }
27679 set {
27680 field1_ = value;
27681 }
27682 }
Sydney Acksman8a57ec82019-03-21 17:36:36 -050027683
27684 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020027685 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050027686 public override bool Equals(object other) {
27687 return Equals(other as Group1);
27688 }
27689
27690 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020027691 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050027692 public bool Equals(Group1 other) {
27693 if (ReferenceEquals(other, null)) {
27694 return false;
27695 }
27696 if (ReferenceEquals(other, this)) {
27697 return true;
27698 }
27699 if (!object.Equals(Field1, other.Field1)) return false;
27700 return Equals(_unknownFields, other._unknownFields);
27701 }
27702
27703 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020027704 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050027705 public override int GetHashCode() {
27706 int hash = 1;
Jon Skeet9926c952020-04-27 07:18:45 +010027707 if (field1_ != null) hash ^= Field1.GetHashCode();
Sydney Acksman8a57ec82019-03-21 17:36:36 -050027708 if (_unknownFields != null) {
27709 hash ^= _unknownFields.GetHashCode();
27710 }
27711 return hash;
27712 }
27713
27714 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020027715 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050027716 public override string ToString() {
27717 return pb::JsonFormatter.ToDiagnosticString(this);
27718 }
27719
27720 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020027721 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050027722 public void WriteTo(pb::CodedOutputStream output) {
Jan Tattermusch125e4ad2020-05-29 04:32:43 -040027723 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
27724 output.WriteRawMessage(this);
27725 #else
Jon Skeet9926c952020-04-27 07:18:45 +010027726 if (field1_ != null) {
Sydney Acksman8a57ec82019-03-21 17:36:36 -050027727 output.WriteRawTag(90);
27728 output.WriteMessage(Field1);
27729 }
27730 if (_unknownFields != null) {
27731 _unknownFields.WriteTo(output);
27732 }
Jan Tattermusch125e4ad2020-05-29 04:32:43 -040027733 #endif
Sydney Acksman8a57ec82019-03-21 17:36:36 -050027734 }
27735
Jan Tattermusch125e4ad2020-05-29 04:32:43 -040027736 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
27737 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020027738 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Jan Tattermusch125e4ad2020-05-29 04:32:43 -040027739 void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
27740 if (field1_ != null) {
27741 output.WriteRawTag(90);
27742 output.WriteMessage(Field1);
27743 }
27744 if (_unknownFields != null) {
27745 _unknownFields.WriteTo(ref output);
27746 }
27747 }
27748 #endif
27749
Sydney Acksman8a57ec82019-03-21 17:36:36 -050027750 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020027751 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050027752 public int CalculateSize() {
27753 int size = 0;
Jon Skeet9926c952020-04-27 07:18:45 +010027754 if (field1_ != null) {
Sydney Acksman8a57ec82019-03-21 17:36:36 -050027755 size += 1 + pb::CodedOutputStream.ComputeMessageSize(Field1);
27756 }
27757 if (_unknownFields != null) {
27758 size += _unknownFields.CalculateSize();
27759 }
27760 return size;
27761 }
27762
27763 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020027764 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050027765 public void MergeFrom(Group1 other) {
27766 if (other == null) {
27767 return;
27768 }
Jon Skeet9926c952020-04-27 07:18:45 +010027769 if (other.field1_ != null) {
27770 if (field1_ == null) {
Sydney Acksman8a57ec82019-03-21 17:36:36 -050027771 Field1 = new global::Google.Protobuf.TestProtos.Proto2.TestAllTypes();
27772 }
27773 Field1.MergeFrom(other.Field1);
27774 }
27775 _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
27776 }
27777
27778 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020027779 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050027780 public void MergeFrom(pb::CodedInputStream input) {
Jan Tattermusch7cb55972020-06-02 09:26:25 +020027781 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
Jan Tattermusch3196ef92020-04-02 15:36:16 +020027782 input.ReadRawMessage(this);
Jan Tattermusch7cb55972020-06-02 09:26:25 +020027783 #else
27784 uint tag;
27785 while ((tag = input.ReadTag()) != 0) {
27786 switch(tag) {
27787 case 84:
27788 return;
27789 default:
27790 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
27791 break;
27792 case 90: {
27793 if (field1_ == null) {
27794 Field1 = new global::Google.Protobuf.TestProtos.Proto2.TestAllTypes();
27795 }
27796 input.ReadMessage(Field1);
27797 break;
27798 }
27799 }
27800 }
27801 #endif
Jan Tattermusch3196ef92020-04-02 15:36:16 +020027802 }
27803
Jan Tattermusch7cb55972020-06-02 09:26:25 +020027804 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
Jan Tattermusch3196ef92020-04-02 15:36:16 +020027805 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020027806 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Jan Tattermusch0df7ddc2020-04-14 12:41:03 +020027807 void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
Sydney Acksman8a57ec82019-03-21 17:36:36 -050027808 uint tag;
27809 while ((tag = input.ReadTag()) != 0) {
27810 switch(tag) {
27811 case 84:
27812 return;
27813 default:
Jan Tattermusch3196ef92020-04-02 15:36:16 +020027814 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
Sydney Acksman8a57ec82019-03-21 17:36:36 -050027815 break;
27816 case 90: {
Jon Skeet9926c952020-04-27 07:18:45 +010027817 if (field1_ == null) {
Sydney Acksman8a57ec82019-03-21 17:36:36 -050027818 Field1 = new global::Google.Protobuf.TestProtos.Proto2.TestAllTypes();
27819 }
27820 input.ReadMessage(Field1);
27821 break;
27822 }
27823 }
27824 }
27825 }
Jan Tattermusch7cb55972020-06-02 09:26:25 +020027826 #endif
Sydney Acksman8a57ec82019-03-21 17:36:36 -050027827
27828 }
27829
Jan Tattermusch7cb55972020-06-02 09:26:25 +020027830 public sealed partial class Group2 : pb::IMessage<Group2>
27831 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
27832 , pb::IBufferMessage
27833 #endif
27834 {
Sydney Acksman8a57ec82019-03-21 17:36:36 -050027835 private static readonly pb::MessageParser<Group2> _parser = new pb::MessageParser<Group2>(() => new Group2());
27836 private pb::UnknownFieldSet _unknownFields;
27837 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020027838 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050027839 public static pb::MessageParser<Group2> Parser { get { return _parser; } }
27840
27841 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020027842 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050027843 public static pbr::MessageDescriptor Descriptor {
27844 get { return global::Google.Protobuf.TestProtos.Proto2.TestParsingMerge.Types.RepeatedFieldsGenerator.Descriptor.NestedTypes[1]; }
27845 }
27846
27847 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020027848 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050027849 pbr::MessageDescriptor pb::IMessage.Descriptor {
27850 get { return Descriptor; }
27851 }
27852
27853 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020027854 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050027855 public Group2() {
27856 OnConstruction();
27857 }
27858
27859 partial void OnConstruction();
27860
27861 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020027862 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050027863 public Group2(Group2 other) : this() {
Jon Skeet9926c952020-04-27 07:18:45 +010027864 field1_ = other.field1_ != null ? other.field1_.Clone() : null;
Sydney Acksman8a57ec82019-03-21 17:36:36 -050027865 _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
27866 }
27867
27868 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020027869 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050027870 public Group2 Clone() {
27871 return new Group2(this);
27872 }
27873
27874 /// <summary>Field number for the "field1" field.</summary>
27875 public const int Field1FieldNumber = 21;
27876 private global::Google.Protobuf.TestProtos.Proto2.TestAllTypes field1_;
27877 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020027878 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050027879 public global::Google.Protobuf.TestProtos.Proto2.TestAllTypes Field1 {
27880 get { return field1_; }
27881 set {
27882 field1_ = value;
27883 }
27884 }
Sydney Acksman8a57ec82019-03-21 17:36:36 -050027885
27886 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020027887 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050027888 public override bool Equals(object other) {
27889 return Equals(other as Group2);
27890 }
27891
27892 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020027893 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050027894 public bool Equals(Group2 other) {
27895 if (ReferenceEquals(other, null)) {
27896 return false;
27897 }
27898 if (ReferenceEquals(other, this)) {
27899 return true;
27900 }
27901 if (!object.Equals(Field1, other.Field1)) return false;
27902 return Equals(_unknownFields, other._unknownFields);
27903 }
27904
27905 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020027906 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050027907 public override int GetHashCode() {
27908 int hash = 1;
Jon Skeet9926c952020-04-27 07:18:45 +010027909 if (field1_ != null) hash ^= Field1.GetHashCode();
Sydney Acksman8a57ec82019-03-21 17:36:36 -050027910 if (_unknownFields != null) {
27911 hash ^= _unknownFields.GetHashCode();
27912 }
27913 return hash;
27914 }
27915
27916 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020027917 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050027918 public override string ToString() {
27919 return pb::JsonFormatter.ToDiagnosticString(this);
27920 }
27921
27922 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020027923 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050027924 public void WriteTo(pb::CodedOutputStream output) {
Jan Tattermusch125e4ad2020-05-29 04:32:43 -040027925 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
27926 output.WriteRawMessage(this);
27927 #else
Jon Skeet9926c952020-04-27 07:18:45 +010027928 if (field1_ != null) {
Sydney Acksman8a57ec82019-03-21 17:36:36 -050027929 output.WriteRawTag(170, 1);
27930 output.WriteMessage(Field1);
27931 }
27932 if (_unknownFields != null) {
27933 _unknownFields.WriteTo(output);
27934 }
Jan Tattermusch125e4ad2020-05-29 04:32:43 -040027935 #endif
Sydney Acksman8a57ec82019-03-21 17:36:36 -050027936 }
27937
Jan Tattermusch125e4ad2020-05-29 04:32:43 -040027938 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
27939 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020027940 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Jan Tattermusch125e4ad2020-05-29 04:32:43 -040027941 void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
27942 if (field1_ != null) {
27943 output.WriteRawTag(170, 1);
27944 output.WriteMessage(Field1);
27945 }
27946 if (_unknownFields != null) {
27947 _unknownFields.WriteTo(ref output);
27948 }
27949 }
27950 #endif
27951
Sydney Acksman8a57ec82019-03-21 17:36:36 -050027952 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020027953 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050027954 public int CalculateSize() {
27955 int size = 0;
Jon Skeet9926c952020-04-27 07:18:45 +010027956 if (field1_ != null) {
Sydney Acksman8a57ec82019-03-21 17:36:36 -050027957 size += 2 + pb::CodedOutputStream.ComputeMessageSize(Field1);
27958 }
27959 if (_unknownFields != null) {
27960 size += _unknownFields.CalculateSize();
27961 }
27962 return size;
27963 }
27964
27965 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020027966 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050027967 public void MergeFrom(Group2 other) {
27968 if (other == null) {
27969 return;
27970 }
Jon Skeet9926c952020-04-27 07:18:45 +010027971 if (other.field1_ != null) {
27972 if (field1_ == null) {
Sydney Acksman8a57ec82019-03-21 17:36:36 -050027973 Field1 = new global::Google.Protobuf.TestProtos.Proto2.TestAllTypes();
27974 }
27975 Field1.MergeFrom(other.Field1);
27976 }
27977 _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
27978 }
27979
27980 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020027981 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050027982 public void MergeFrom(pb::CodedInputStream input) {
Jan Tattermusch7cb55972020-06-02 09:26:25 +020027983 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
Jan Tattermusch3196ef92020-04-02 15:36:16 +020027984 input.ReadRawMessage(this);
Jan Tattermusch7cb55972020-06-02 09:26:25 +020027985 #else
27986 uint tag;
27987 while ((tag = input.ReadTag()) != 0) {
27988 switch(tag) {
27989 case 164:
27990 return;
27991 default:
27992 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
27993 break;
27994 case 170: {
27995 if (field1_ == null) {
27996 Field1 = new global::Google.Protobuf.TestProtos.Proto2.TestAllTypes();
27997 }
27998 input.ReadMessage(Field1);
27999 break;
28000 }
28001 }
28002 }
28003 #endif
Jan Tattermusch3196ef92020-04-02 15:36:16 +020028004 }
28005
Jan Tattermusch7cb55972020-06-02 09:26:25 +020028006 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
Jan Tattermusch3196ef92020-04-02 15:36:16 +020028007 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020028008 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Jan Tattermusch0df7ddc2020-04-14 12:41:03 +020028009 void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
Sydney Acksman8a57ec82019-03-21 17:36:36 -050028010 uint tag;
28011 while ((tag = input.ReadTag()) != 0) {
28012 switch(tag) {
28013 case 164:
28014 return;
28015 default:
Jan Tattermusch3196ef92020-04-02 15:36:16 +020028016 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
Sydney Acksman8a57ec82019-03-21 17:36:36 -050028017 break;
28018 case 170: {
Jon Skeet9926c952020-04-27 07:18:45 +010028019 if (field1_ == null) {
Sydney Acksman8a57ec82019-03-21 17:36:36 -050028020 Field1 = new global::Google.Protobuf.TestProtos.Proto2.TestAllTypes();
28021 }
28022 input.ReadMessage(Field1);
28023 break;
28024 }
28025 }
28026 }
28027 }
Jan Tattermusch7cb55972020-06-02 09:26:25 +020028028 #endif
Sydney Acksman8a57ec82019-03-21 17:36:36 -050028029
28030 }
28031
28032 }
28033 #endregion
28034
28035 }
28036
Jan Tattermusch7cb55972020-06-02 09:26:25 +020028037 public sealed partial class OptionalGroup : pb::IMessage<OptionalGroup>
28038 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
28039 , pb::IBufferMessage
28040 #endif
28041 {
Sydney Acksman8a57ec82019-03-21 17:36:36 -050028042 private static readonly pb::MessageParser<OptionalGroup> _parser = new pb::MessageParser<OptionalGroup>(() => new OptionalGroup());
28043 private pb::UnknownFieldSet _unknownFields;
28044 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020028045 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050028046 public static pb::MessageParser<OptionalGroup> Parser { get { return _parser; } }
28047
28048 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020028049 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050028050 public static pbr::MessageDescriptor Descriptor {
28051 get { return global::Google.Protobuf.TestProtos.Proto2.TestParsingMerge.Descriptor.NestedTypes[1]; }
28052 }
28053
28054 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020028055 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050028056 pbr::MessageDescriptor pb::IMessage.Descriptor {
28057 get { return Descriptor; }
28058 }
28059
28060 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020028061 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050028062 public OptionalGroup() {
28063 OnConstruction();
28064 }
28065
28066 partial void OnConstruction();
28067
28068 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020028069 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050028070 public OptionalGroup(OptionalGroup other) : this() {
Jon Skeet9926c952020-04-27 07:18:45 +010028071 optionalGroupAllTypes_ = other.optionalGroupAllTypes_ != null ? other.optionalGroupAllTypes_.Clone() : null;
Sydney Acksman8a57ec82019-03-21 17:36:36 -050028072 _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
28073 }
28074
28075 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020028076 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050028077 public OptionalGroup Clone() {
28078 return new OptionalGroup(this);
28079 }
28080
28081 /// <summary>Field number for the "optional_group_all_types" field.</summary>
28082 public const int OptionalGroupAllTypesFieldNumber = 11;
28083 private global::Google.Protobuf.TestProtos.Proto2.TestAllTypes optionalGroupAllTypes_;
28084 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020028085 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050028086 public global::Google.Protobuf.TestProtos.Proto2.TestAllTypes OptionalGroupAllTypes {
28087 get { return optionalGroupAllTypes_; }
28088 set {
28089 optionalGroupAllTypes_ = value;
28090 }
28091 }
Sydney Acksman8a57ec82019-03-21 17:36:36 -050028092
28093 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020028094 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050028095 public override bool Equals(object other) {
28096 return Equals(other as OptionalGroup);
28097 }
28098
28099 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020028100 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050028101 public bool Equals(OptionalGroup other) {
28102 if (ReferenceEquals(other, null)) {
28103 return false;
28104 }
28105 if (ReferenceEquals(other, this)) {
28106 return true;
28107 }
28108 if (!object.Equals(OptionalGroupAllTypes, other.OptionalGroupAllTypes)) return false;
28109 return Equals(_unknownFields, other._unknownFields);
28110 }
28111
28112 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020028113 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050028114 public override int GetHashCode() {
28115 int hash = 1;
Jon Skeet9926c952020-04-27 07:18:45 +010028116 if (optionalGroupAllTypes_ != null) hash ^= OptionalGroupAllTypes.GetHashCode();
Sydney Acksman8a57ec82019-03-21 17:36:36 -050028117 if (_unknownFields != null) {
28118 hash ^= _unknownFields.GetHashCode();
28119 }
28120 return hash;
28121 }
28122
28123 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020028124 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050028125 public override string ToString() {
28126 return pb::JsonFormatter.ToDiagnosticString(this);
28127 }
28128
28129 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020028130 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050028131 public void WriteTo(pb::CodedOutputStream output) {
Jan Tattermusch125e4ad2020-05-29 04:32:43 -040028132 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
28133 output.WriteRawMessage(this);
28134 #else
Jon Skeet9926c952020-04-27 07:18:45 +010028135 if (optionalGroupAllTypes_ != null) {
Sydney Acksman8a57ec82019-03-21 17:36:36 -050028136 output.WriteRawTag(90);
28137 output.WriteMessage(OptionalGroupAllTypes);
28138 }
28139 if (_unknownFields != null) {
28140 _unknownFields.WriteTo(output);
28141 }
Jan Tattermusch125e4ad2020-05-29 04:32:43 -040028142 #endif
Sydney Acksman8a57ec82019-03-21 17:36:36 -050028143 }
28144
Jan Tattermusch125e4ad2020-05-29 04:32:43 -040028145 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
28146 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020028147 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Jan Tattermusch125e4ad2020-05-29 04:32:43 -040028148 void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
28149 if (optionalGroupAllTypes_ != null) {
28150 output.WriteRawTag(90);
28151 output.WriteMessage(OptionalGroupAllTypes);
28152 }
28153 if (_unknownFields != null) {
28154 _unknownFields.WriteTo(ref output);
28155 }
28156 }
28157 #endif
28158
Sydney Acksman8a57ec82019-03-21 17:36:36 -050028159 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020028160 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050028161 public int CalculateSize() {
28162 int size = 0;
Jon Skeet9926c952020-04-27 07:18:45 +010028163 if (optionalGroupAllTypes_ != null) {
Sydney Acksman8a57ec82019-03-21 17:36:36 -050028164 size += 1 + pb::CodedOutputStream.ComputeMessageSize(OptionalGroupAllTypes);
28165 }
28166 if (_unknownFields != null) {
28167 size += _unknownFields.CalculateSize();
28168 }
28169 return size;
28170 }
28171
28172 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020028173 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050028174 public void MergeFrom(OptionalGroup other) {
28175 if (other == null) {
28176 return;
28177 }
Jon Skeet9926c952020-04-27 07:18:45 +010028178 if (other.optionalGroupAllTypes_ != null) {
28179 if (optionalGroupAllTypes_ == null) {
Sydney Acksman8a57ec82019-03-21 17:36:36 -050028180 OptionalGroupAllTypes = new global::Google.Protobuf.TestProtos.Proto2.TestAllTypes();
28181 }
28182 OptionalGroupAllTypes.MergeFrom(other.OptionalGroupAllTypes);
28183 }
28184 _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
28185 }
28186
28187 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020028188 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050028189 public void MergeFrom(pb::CodedInputStream input) {
Jan Tattermusch7cb55972020-06-02 09:26:25 +020028190 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
Jan Tattermusch3196ef92020-04-02 15:36:16 +020028191 input.ReadRawMessage(this);
Jan Tattermusch7cb55972020-06-02 09:26:25 +020028192 #else
28193 uint tag;
28194 while ((tag = input.ReadTag()) != 0) {
28195 switch(tag) {
28196 case 84:
28197 return;
28198 default:
28199 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
28200 break;
28201 case 90: {
28202 if (optionalGroupAllTypes_ == null) {
28203 OptionalGroupAllTypes = new global::Google.Protobuf.TestProtos.Proto2.TestAllTypes();
28204 }
28205 input.ReadMessage(OptionalGroupAllTypes);
28206 break;
28207 }
28208 }
28209 }
28210 #endif
Jan Tattermusch3196ef92020-04-02 15:36:16 +020028211 }
28212
Jan Tattermusch7cb55972020-06-02 09:26:25 +020028213 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
Jan Tattermusch3196ef92020-04-02 15:36:16 +020028214 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020028215 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Jan Tattermusch0df7ddc2020-04-14 12:41:03 +020028216 void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
Sydney Acksman8a57ec82019-03-21 17:36:36 -050028217 uint tag;
28218 while ((tag = input.ReadTag()) != 0) {
28219 switch(tag) {
28220 case 84:
28221 return;
28222 default:
Jan Tattermusch3196ef92020-04-02 15:36:16 +020028223 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
Sydney Acksman8a57ec82019-03-21 17:36:36 -050028224 break;
28225 case 90: {
Jon Skeet9926c952020-04-27 07:18:45 +010028226 if (optionalGroupAllTypes_ == null) {
Sydney Acksman8a57ec82019-03-21 17:36:36 -050028227 OptionalGroupAllTypes = new global::Google.Protobuf.TestProtos.Proto2.TestAllTypes();
28228 }
28229 input.ReadMessage(OptionalGroupAllTypes);
28230 break;
28231 }
28232 }
28233 }
28234 }
Jan Tattermusch7cb55972020-06-02 09:26:25 +020028235 #endif
Sydney Acksman8a57ec82019-03-21 17:36:36 -050028236
28237 }
28238
Jan Tattermusch7cb55972020-06-02 09:26:25 +020028239 public sealed partial class RepeatedGroup : pb::IMessage<RepeatedGroup>
28240 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
28241 , pb::IBufferMessage
28242 #endif
28243 {
Sydney Acksman8a57ec82019-03-21 17:36:36 -050028244 private static readonly pb::MessageParser<RepeatedGroup> _parser = new pb::MessageParser<RepeatedGroup>(() => new RepeatedGroup());
28245 private pb::UnknownFieldSet _unknownFields;
28246 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020028247 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050028248 public static pb::MessageParser<RepeatedGroup> Parser { get { return _parser; } }
28249
28250 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020028251 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050028252 public static pbr::MessageDescriptor Descriptor {
28253 get { return global::Google.Protobuf.TestProtos.Proto2.TestParsingMerge.Descriptor.NestedTypes[2]; }
28254 }
28255
28256 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020028257 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050028258 pbr::MessageDescriptor pb::IMessage.Descriptor {
28259 get { return Descriptor; }
28260 }
28261
28262 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020028263 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050028264 public RepeatedGroup() {
28265 OnConstruction();
28266 }
28267
28268 partial void OnConstruction();
28269
28270 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020028271 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050028272 public RepeatedGroup(RepeatedGroup other) : this() {
Jon Skeet9926c952020-04-27 07:18:45 +010028273 repeatedGroupAllTypes_ = other.repeatedGroupAllTypes_ != null ? other.repeatedGroupAllTypes_.Clone() : null;
Sydney Acksman8a57ec82019-03-21 17:36:36 -050028274 _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
28275 }
28276
28277 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020028278 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050028279 public RepeatedGroup Clone() {
28280 return new RepeatedGroup(this);
28281 }
28282
28283 /// <summary>Field number for the "repeated_group_all_types" field.</summary>
28284 public const int RepeatedGroupAllTypesFieldNumber = 21;
28285 private global::Google.Protobuf.TestProtos.Proto2.TestAllTypes repeatedGroupAllTypes_;
28286 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020028287 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050028288 public global::Google.Protobuf.TestProtos.Proto2.TestAllTypes RepeatedGroupAllTypes {
28289 get { return repeatedGroupAllTypes_; }
28290 set {
28291 repeatedGroupAllTypes_ = value;
28292 }
28293 }
Sydney Acksman8a57ec82019-03-21 17:36:36 -050028294
28295 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020028296 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050028297 public override bool Equals(object other) {
28298 return Equals(other as RepeatedGroup);
28299 }
28300
28301 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020028302 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050028303 public bool Equals(RepeatedGroup other) {
28304 if (ReferenceEquals(other, null)) {
28305 return false;
28306 }
28307 if (ReferenceEquals(other, this)) {
28308 return true;
28309 }
28310 if (!object.Equals(RepeatedGroupAllTypes, other.RepeatedGroupAllTypes)) return false;
28311 return Equals(_unknownFields, other._unknownFields);
28312 }
28313
28314 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020028315 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050028316 public override int GetHashCode() {
28317 int hash = 1;
Jon Skeet9926c952020-04-27 07:18:45 +010028318 if (repeatedGroupAllTypes_ != null) hash ^= RepeatedGroupAllTypes.GetHashCode();
Sydney Acksman8a57ec82019-03-21 17:36:36 -050028319 if (_unknownFields != null) {
28320 hash ^= _unknownFields.GetHashCode();
28321 }
28322 return hash;
28323 }
28324
28325 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020028326 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050028327 public override string ToString() {
28328 return pb::JsonFormatter.ToDiagnosticString(this);
28329 }
28330
28331 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020028332 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050028333 public void WriteTo(pb::CodedOutputStream output) {
Jan Tattermusch125e4ad2020-05-29 04:32:43 -040028334 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
28335 output.WriteRawMessage(this);
28336 #else
Jon Skeet9926c952020-04-27 07:18:45 +010028337 if (repeatedGroupAllTypes_ != null) {
Sydney Acksman8a57ec82019-03-21 17:36:36 -050028338 output.WriteRawTag(170, 1);
28339 output.WriteMessage(RepeatedGroupAllTypes);
28340 }
28341 if (_unknownFields != null) {
28342 _unknownFields.WriteTo(output);
28343 }
Jan Tattermusch125e4ad2020-05-29 04:32:43 -040028344 #endif
Sydney Acksman8a57ec82019-03-21 17:36:36 -050028345 }
28346
Jan Tattermusch125e4ad2020-05-29 04:32:43 -040028347 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
28348 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020028349 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Jan Tattermusch125e4ad2020-05-29 04:32:43 -040028350 void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
28351 if (repeatedGroupAllTypes_ != null) {
28352 output.WriteRawTag(170, 1);
28353 output.WriteMessage(RepeatedGroupAllTypes);
28354 }
28355 if (_unknownFields != null) {
28356 _unknownFields.WriteTo(ref output);
28357 }
28358 }
28359 #endif
28360
Sydney Acksman8a57ec82019-03-21 17:36:36 -050028361 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020028362 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050028363 public int CalculateSize() {
28364 int size = 0;
Jon Skeet9926c952020-04-27 07:18:45 +010028365 if (repeatedGroupAllTypes_ != null) {
Sydney Acksman8a57ec82019-03-21 17:36:36 -050028366 size += 2 + pb::CodedOutputStream.ComputeMessageSize(RepeatedGroupAllTypes);
28367 }
28368 if (_unknownFields != null) {
28369 size += _unknownFields.CalculateSize();
28370 }
28371 return size;
28372 }
28373
28374 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020028375 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050028376 public void MergeFrom(RepeatedGroup other) {
28377 if (other == null) {
28378 return;
28379 }
Jon Skeet9926c952020-04-27 07:18:45 +010028380 if (other.repeatedGroupAllTypes_ != null) {
28381 if (repeatedGroupAllTypes_ == null) {
Sydney Acksman8a57ec82019-03-21 17:36:36 -050028382 RepeatedGroupAllTypes = new global::Google.Protobuf.TestProtos.Proto2.TestAllTypes();
28383 }
28384 RepeatedGroupAllTypes.MergeFrom(other.RepeatedGroupAllTypes);
28385 }
28386 _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
28387 }
28388
28389 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020028390 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050028391 public void MergeFrom(pb::CodedInputStream input) {
Jan Tattermusch7cb55972020-06-02 09:26:25 +020028392 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
Jan Tattermusch3196ef92020-04-02 15:36:16 +020028393 input.ReadRawMessage(this);
Jan Tattermusch7cb55972020-06-02 09:26:25 +020028394 #else
28395 uint tag;
28396 while ((tag = input.ReadTag()) != 0) {
28397 switch(tag) {
28398 case 164:
28399 return;
28400 default:
28401 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
28402 break;
28403 case 170: {
28404 if (repeatedGroupAllTypes_ == null) {
28405 RepeatedGroupAllTypes = new global::Google.Protobuf.TestProtos.Proto2.TestAllTypes();
28406 }
28407 input.ReadMessage(RepeatedGroupAllTypes);
28408 break;
28409 }
28410 }
28411 }
28412 #endif
Jan Tattermusch3196ef92020-04-02 15:36:16 +020028413 }
28414
Jan Tattermusch7cb55972020-06-02 09:26:25 +020028415 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
Jan Tattermusch3196ef92020-04-02 15:36:16 +020028416 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020028417 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Jan Tattermusch0df7ddc2020-04-14 12:41:03 +020028418 void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
Sydney Acksman8a57ec82019-03-21 17:36:36 -050028419 uint tag;
28420 while ((tag = input.ReadTag()) != 0) {
28421 switch(tag) {
28422 case 164:
28423 return;
28424 default:
Jan Tattermusch3196ef92020-04-02 15:36:16 +020028425 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
Sydney Acksman8a57ec82019-03-21 17:36:36 -050028426 break;
28427 case 170: {
Jon Skeet9926c952020-04-27 07:18:45 +010028428 if (repeatedGroupAllTypes_ == null) {
Sydney Acksman8a57ec82019-03-21 17:36:36 -050028429 RepeatedGroupAllTypes = new global::Google.Protobuf.TestProtos.Proto2.TestAllTypes();
28430 }
28431 input.ReadMessage(RepeatedGroupAllTypes);
28432 break;
28433 }
28434 }
28435 }
28436 }
Jan Tattermusch7cb55972020-06-02 09:26:25 +020028437 #endif
Sydney Acksman8a57ec82019-03-21 17:36:36 -050028438
28439 }
28440
28441 }
28442 #endregion
28443
28444 #region Extensions
28445 /// <summary>Container for extensions for other messages declared in the TestParsingMerge message type.</summary>
28446 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020028447 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050028448 public static partial class Extensions {
28449 public static readonly pb::Extension<global::Google.Protobuf.TestProtos.Proto2.TestParsingMerge, global::Google.Protobuf.TestProtos.Proto2.TestAllTypes> OptionalExt =
28450 new pb::Extension<global::Google.Protobuf.TestProtos.Proto2.TestParsingMerge, global::Google.Protobuf.TestProtos.Proto2.TestAllTypes>(1000, pb::FieldCodec.ForMessage(8002, global::Google.Protobuf.TestProtos.Proto2.TestAllTypes.Parser));
28451 public static readonly pb::RepeatedExtension<global::Google.Protobuf.TestProtos.Proto2.TestParsingMerge, global::Google.Protobuf.TestProtos.Proto2.TestAllTypes> RepeatedExt =
28452 new pb::RepeatedExtension<global::Google.Protobuf.TestProtos.Proto2.TestParsingMerge, global::Google.Protobuf.TestProtos.Proto2.TestAllTypes>(1001, pb::FieldCodec.ForMessage(8010, global::Google.Protobuf.TestProtos.Proto2.TestAllTypes.Parser));
28453 }
28454 #endregion
28455
28456 }
28457
Jan Tattermusch7cb55972020-06-02 09:26:25 +020028458 public sealed partial class TestCommentInjectionMessage : pb::IMessage<TestCommentInjectionMessage>
28459 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
28460 , pb::IBufferMessage
28461 #endif
28462 {
Sydney Acksman8a57ec82019-03-21 17:36:36 -050028463 private static readonly pb::MessageParser<TestCommentInjectionMessage> _parser = new pb::MessageParser<TestCommentInjectionMessage>(() => new TestCommentInjectionMessage());
28464 private pb::UnknownFieldSet _unknownFields;
28465 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020028466 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050028467 public static pb::MessageParser<TestCommentInjectionMessage> Parser { get { return _parser; } }
28468
28469 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020028470 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050028471 public static pbr::MessageDescriptor Descriptor {
Sydney Acksman8b7fb7d2019-03-23 11:41:57 -050028472 get { return global::Google.Protobuf.TestProtos.Proto2.UnittestReflection.Descriptor.MessageTypes[55]; }
Sydney Acksman8a57ec82019-03-21 17:36:36 -050028473 }
28474
28475 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020028476 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050028477 pbr::MessageDescriptor pb::IMessage.Descriptor {
28478 get { return Descriptor; }
28479 }
28480
28481 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020028482 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050028483 public TestCommentInjectionMessage() {
28484 OnConstruction();
28485 }
28486
28487 partial void OnConstruction();
28488
28489 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020028490 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050028491 public TestCommentInjectionMessage(TestCommentInjectionMessage other) : this() {
28492 a_ = other.a_;
28493 _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
28494 }
28495
28496 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020028497 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050028498 public TestCommentInjectionMessage Clone() {
28499 return new TestCommentInjectionMessage(this);
28500 }
28501
28502 /// <summary>Field number for the "a" field.</summary>
28503 public const int AFieldNumber = 1;
Sydney Acksmane119a432019-10-30 13:02:46 -050028504 private readonly static string ADefaultValue = global::System.Text.Encoding.UTF8.GetString(global::System.Convert.FromBase64String("Ki8gPC0gTmVpdGhlciBzaG91bGQgdGhpcy4="), 0, 26);
Sydney Acksman8a57ec82019-03-21 17:36:36 -050028505
28506 private string a_;
28507 /// <summary>
28508 /// */ &lt;- This should not close the generated doc comment
28509 /// </summary>
28510 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020028511 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050028512 public string A {
28513 get { return a_ ?? ADefaultValue; }
28514 set {
28515 a_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
28516 }
28517 }
28518 /// <summary>Gets whether the "a" field is set</summary>
28519 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020028520 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050028521 public bool HasA {
28522 get { return a_ != null; }
28523 }
28524 /// <summary>Clears the value of the "a" field</summary>
28525 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020028526 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050028527 public void ClearA() {
28528 a_ = null;
28529 }
28530
28531 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020028532 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050028533 public override bool Equals(object other) {
28534 return Equals(other as TestCommentInjectionMessage);
28535 }
28536
28537 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020028538 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050028539 public bool Equals(TestCommentInjectionMessage other) {
28540 if (ReferenceEquals(other, null)) {
28541 return false;
28542 }
28543 if (ReferenceEquals(other, this)) {
28544 return true;
28545 }
28546 if (A != other.A) return false;
28547 return Equals(_unknownFields, other._unknownFields);
28548 }
28549
28550 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020028551 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050028552 public override int GetHashCode() {
28553 int hash = 1;
28554 if (HasA) hash ^= A.GetHashCode();
28555 if (_unknownFields != null) {
28556 hash ^= _unknownFields.GetHashCode();
28557 }
28558 return hash;
28559 }
28560
28561 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020028562 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050028563 public override string ToString() {
28564 return pb::JsonFormatter.ToDiagnosticString(this);
28565 }
28566
28567 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020028568 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050028569 public void WriteTo(pb::CodedOutputStream output) {
Jan Tattermusch125e4ad2020-05-29 04:32:43 -040028570 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
28571 output.WriteRawMessage(this);
28572 #else
Sydney Acksman8a57ec82019-03-21 17:36:36 -050028573 if (HasA) {
28574 output.WriteRawTag(10);
28575 output.WriteString(A);
28576 }
28577 if (_unknownFields != null) {
28578 _unknownFields.WriteTo(output);
28579 }
Jan Tattermusch125e4ad2020-05-29 04:32:43 -040028580 #endif
Sydney Acksman8a57ec82019-03-21 17:36:36 -050028581 }
28582
Jan Tattermusch125e4ad2020-05-29 04:32:43 -040028583 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
28584 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020028585 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Jan Tattermusch125e4ad2020-05-29 04:32:43 -040028586 void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
28587 if (HasA) {
28588 output.WriteRawTag(10);
28589 output.WriteString(A);
28590 }
28591 if (_unknownFields != null) {
28592 _unknownFields.WriteTo(ref output);
28593 }
28594 }
28595 #endif
28596
Sydney Acksman8a57ec82019-03-21 17:36:36 -050028597 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020028598 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050028599 public int CalculateSize() {
28600 int size = 0;
28601 if (HasA) {
28602 size += 1 + pb::CodedOutputStream.ComputeStringSize(A);
28603 }
28604 if (_unknownFields != null) {
28605 size += _unknownFields.CalculateSize();
28606 }
28607 return size;
28608 }
28609
28610 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020028611 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050028612 public void MergeFrom(TestCommentInjectionMessage other) {
28613 if (other == null) {
28614 return;
28615 }
28616 if (other.HasA) {
28617 A = other.A;
28618 }
28619 _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
28620 }
28621
28622 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020028623 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050028624 public void MergeFrom(pb::CodedInputStream input) {
Jan Tattermusch7cb55972020-06-02 09:26:25 +020028625 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
Jan Tattermusch3196ef92020-04-02 15:36:16 +020028626 input.ReadRawMessage(this);
Jan Tattermusch7cb55972020-06-02 09:26:25 +020028627 #else
28628 uint tag;
28629 while ((tag = input.ReadTag()) != 0) {
28630 switch(tag) {
28631 default:
28632 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
28633 break;
28634 case 10: {
28635 A = input.ReadString();
28636 break;
28637 }
28638 }
28639 }
28640 #endif
Jan Tattermusch3196ef92020-04-02 15:36:16 +020028641 }
28642
Jan Tattermusch7cb55972020-06-02 09:26:25 +020028643 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
Jan Tattermusch3196ef92020-04-02 15:36:16 +020028644 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020028645 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Jan Tattermusch0df7ddc2020-04-14 12:41:03 +020028646 void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
Sydney Acksman8a57ec82019-03-21 17:36:36 -050028647 uint tag;
28648 while ((tag = input.ReadTag()) != 0) {
28649 switch(tag) {
28650 default:
Jan Tattermusch3196ef92020-04-02 15:36:16 +020028651 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
Sydney Acksman8a57ec82019-03-21 17:36:36 -050028652 break;
28653 case 10: {
28654 A = input.ReadString();
28655 break;
28656 }
28657 }
28658 }
28659 }
Jan Tattermusch7cb55972020-06-02 09:26:25 +020028660 #endif
Sydney Acksman8a57ec82019-03-21 17:36:36 -050028661
28662 }
28663
28664 /// <summary>
28665 /// Test that RPC services work.
28666 /// </summary>
Jan Tattermusch7cb55972020-06-02 09:26:25 +020028667 public sealed partial class FooRequest : pb::IMessage<FooRequest>
28668 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
28669 , pb::IBufferMessage
28670 #endif
28671 {
Sydney Acksman8a57ec82019-03-21 17:36:36 -050028672 private static readonly pb::MessageParser<FooRequest> _parser = new pb::MessageParser<FooRequest>(() => new FooRequest());
28673 private pb::UnknownFieldSet _unknownFields;
28674 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020028675 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050028676 public static pb::MessageParser<FooRequest> Parser { get { return _parser; } }
28677
28678 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020028679 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050028680 public static pbr::MessageDescriptor Descriptor {
Sydney Acksman8b7fb7d2019-03-23 11:41:57 -050028681 get { return global::Google.Protobuf.TestProtos.Proto2.UnittestReflection.Descriptor.MessageTypes[56]; }
Sydney Acksman8a57ec82019-03-21 17:36:36 -050028682 }
28683
28684 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020028685 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050028686 pbr::MessageDescriptor pb::IMessage.Descriptor {
28687 get { return Descriptor; }
28688 }
28689
28690 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020028691 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050028692 public FooRequest() {
28693 OnConstruction();
28694 }
28695
28696 partial void OnConstruction();
28697
28698 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020028699 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050028700 public FooRequest(FooRequest other) : this() {
28701 _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
28702 }
28703
28704 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020028705 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050028706 public FooRequest Clone() {
28707 return new FooRequest(this);
28708 }
28709
28710 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020028711 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050028712 public override bool Equals(object other) {
28713 return Equals(other as FooRequest);
28714 }
28715
28716 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020028717 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050028718 public bool Equals(FooRequest other) {
28719 if (ReferenceEquals(other, null)) {
28720 return false;
28721 }
28722 if (ReferenceEquals(other, this)) {
28723 return true;
28724 }
28725 return Equals(_unknownFields, other._unknownFields);
28726 }
28727
28728 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020028729 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050028730 public override int GetHashCode() {
28731 int hash = 1;
28732 if (_unknownFields != null) {
28733 hash ^= _unknownFields.GetHashCode();
28734 }
28735 return hash;
28736 }
28737
28738 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020028739 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050028740 public override string ToString() {
28741 return pb::JsonFormatter.ToDiagnosticString(this);
28742 }
28743
28744 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020028745 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050028746 public void WriteTo(pb::CodedOutputStream output) {
Jan Tattermusch125e4ad2020-05-29 04:32:43 -040028747 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
28748 output.WriteRawMessage(this);
28749 #else
Sydney Acksman8a57ec82019-03-21 17:36:36 -050028750 if (_unknownFields != null) {
28751 _unknownFields.WriteTo(output);
28752 }
Jan Tattermusch125e4ad2020-05-29 04:32:43 -040028753 #endif
Sydney Acksman8a57ec82019-03-21 17:36:36 -050028754 }
28755
Jan Tattermusch125e4ad2020-05-29 04:32:43 -040028756 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
28757 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020028758 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Jan Tattermusch125e4ad2020-05-29 04:32:43 -040028759 void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
28760 if (_unknownFields != null) {
28761 _unknownFields.WriteTo(ref output);
28762 }
28763 }
28764 #endif
28765
Sydney Acksman8a57ec82019-03-21 17:36:36 -050028766 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020028767 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050028768 public int CalculateSize() {
28769 int size = 0;
28770 if (_unknownFields != null) {
28771 size += _unknownFields.CalculateSize();
28772 }
28773 return size;
28774 }
28775
28776 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020028777 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050028778 public void MergeFrom(FooRequest other) {
28779 if (other == null) {
28780 return;
28781 }
28782 _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
28783 }
28784
28785 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020028786 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050028787 public void MergeFrom(pb::CodedInputStream input) {
Jan Tattermusch7cb55972020-06-02 09:26:25 +020028788 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
Jan Tattermusch3196ef92020-04-02 15:36:16 +020028789 input.ReadRawMessage(this);
Jan Tattermusch7cb55972020-06-02 09:26:25 +020028790 #else
28791 uint tag;
28792 while ((tag = input.ReadTag()) != 0) {
28793 switch(tag) {
28794 default:
28795 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
28796 break;
28797 }
28798 }
28799 #endif
Jan Tattermusch3196ef92020-04-02 15:36:16 +020028800 }
28801
Jan Tattermusch7cb55972020-06-02 09:26:25 +020028802 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
Jan Tattermusch3196ef92020-04-02 15:36:16 +020028803 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020028804 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Jan Tattermusch0df7ddc2020-04-14 12:41:03 +020028805 void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
Sydney Acksman8a57ec82019-03-21 17:36:36 -050028806 uint tag;
28807 while ((tag = input.ReadTag()) != 0) {
28808 switch(tag) {
28809 default:
Jan Tattermusch3196ef92020-04-02 15:36:16 +020028810 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
Sydney Acksman8a57ec82019-03-21 17:36:36 -050028811 break;
28812 }
28813 }
28814 }
Jan Tattermusch7cb55972020-06-02 09:26:25 +020028815 #endif
Sydney Acksman8a57ec82019-03-21 17:36:36 -050028816
28817 }
28818
Jan Tattermusch7cb55972020-06-02 09:26:25 +020028819 public sealed partial class FooResponse : pb::IMessage<FooResponse>
28820 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
28821 , pb::IBufferMessage
28822 #endif
28823 {
Sydney Acksman8a57ec82019-03-21 17:36:36 -050028824 private static readonly pb::MessageParser<FooResponse> _parser = new pb::MessageParser<FooResponse>(() => new FooResponse());
28825 private pb::UnknownFieldSet _unknownFields;
28826 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020028827 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050028828 public static pb::MessageParser<FooResponse> Parser { get { return _parser; } }
28829
28830 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020028831 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050028832 public static pbr::MessageDescriptor Descriptor {
Sydney Acksman8b7fb7d2019-03-23 11:41:57 -050028833 get { return global::Google.Protobuf.TestProtos.Proto2.UnittestReflection.Descriptor.MessageTypes[57]; }
Sydney Acksman8a57ec82019-03-21 17:36:36 -050028834 }
28835
28836 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020028837 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050028838 pbr::MessageDescriptor pb::IMessage.Descriptor {
28839 get { return Descriptor; }
28840 }
28841
28842 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020028843 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050028844 public FooResponse() {
28845 OnConstruction();
28846 }
28847
28848 partial void OnConstruction();
28849
28850 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020028851 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050028852 public FooResponse(FooResponse other) : this() {
28853 _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
28854 }
28855
28856 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020028857 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050028858 public FooResponse Clone() {
28859 return new FooResponse(this);
28860 }
28861
28862 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020028863 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050028864 public override bool Equals(object other) {
28865 return Equals(other as FooResponse);
28866 }
28867
28868 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020028869 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050028870 public bool Equals(FooResponse other) {
28871 if (ReferenceEquals(other, null)) {
28872 return false;
28873 }
28874 if (ReferenceEquals(other, this)) {
28875 return true;
28876 }
28877 return Equals(_unknownFields, other._unknownFields);
28878 }
28879
28880 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020028881 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050028882 public override int GetHashCode() {
28883 int hash = 1;
28884 if (_unknownFields != null) {
28885 hash ^= _unknownFields.GetHashCode();
28886 }
28887 return hash;
28888 }
28889
28890 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020028891 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050028892 public override string ToString() {
28893 return pb::JsonFormatter.ToDiagnosticString(this);
28894 }
28895
28896 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020028897 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050028898 public void WriteTo(pb::CodedOutputStream output) {
Jan Tattermusch125e4ad2020-05-29 04:32:43 -040028899 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
28900 output.WriteRawMessage(this);
28901 #else
Sydney Acksman8a57ec82019-03-21 17:36:36 -050028902 if (_unknownFields != null) {
28903 _unknownFields.WriteTo(output);
28904 }
Jan Tattermusch125e4ad2020-05-29 04:32:43 -040028905 #endif
Sydney Acksman8a57ec82019-03-21 17:36:36 -050028906 }
28907
Jan Tattermusch125e4ad2020-05-29 04:32:43 -040028908 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
28909 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020028910 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Jan Tattermusch125e4ad2020-05-29 04:32:43 -040028911 void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
28912 if (_unknownFields != null) {
28913 _unknownFields.WriteTo(ref output);
28914 }
28915 }
28916 #endif
28917
Sydney Acksman8a57ec82019-03-21 17:36:36 -050028918 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020028919 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050028920 public int CalculateSize() {
28921 int size = 0;
28922 if (_unknownFields != null) {
28923 size += _unknownFields.CalculateSize();
28924 }
28925 return size;
28926 }
28927
28928 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020028929 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050028930 public void MergeFrom(FooResponse other) {
28931 if (other == null) {
28932 return;
28933 }
28934 _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
28935 }
28936
28937 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020028938 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050028939 public void MergeFrom(pb::CodedInputStream input) {
Jan Tattermusch7cb55972020-06-02 09:26:25 +020028940 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
Jan Tattermusch3196ef92020-04-02 15:36:16 +020028941 input.ReadRawMessage(this);
Jan Tattermusch7cb55972020-06-02 09:26:25 +020028942 #else
28943 uint tag;
28944 while ((tag = input.ReadTag()) != 0) {
28945 switch(tag) {
28946 default:
28947 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
28948 break;
28949 }
28950 }
28951 #endif
Jan Tattermusch3196ef92020-04-02 15:36:16 +020028952 }
28953
Jan Tattermusch7cb55972020-06-02 09:26:25 +020028954 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
Jan Tattermusch3196ef92020-04-02 15:36:16 +020028955 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020028956 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Jan Tattermusch0df7ddc2020-04-14 12:41:03 +020028957 void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
Sydney Acksman8a57ec82019-03-21 17:36:36 -050028958 uint tag;
28959 while ((tag = input.ReadTag()) != 0) {
28960 switch(tag) {
28961 default:
Jan Tattermusch3196ef92020-04-02 15:36:16 +020028962 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
Sydney Acksman8a57ec82019-03-21 17:36:36 -050028963 break;
28964 }
28965 }
28966 }
Jan Tattermusch7cb55972020-06-02 09:26:25 +020028967 #endif
Sydney Acksman8a57ec82019-03-21 17:36:36 -050028968
28969 }
28970
Jan Tattermusch7cb55972020-06-02 09:26:25 +020028971 public sealed partial class FooClientMessage : pb::IMessage<FooClientMessage>
28972 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
28973 , pb::IBufferMessage
28974 #endif
28975 {
Sydney Acksman8a57ec82019-03-21 17:36:36 -050028976 private static readonly pb::MessageParser<FooClientMessage> _parser = new pb::MessageParser<FooClientMessage>(() => new FooClientMessage());
28977 private pb::UnknownFieldSet _unknownFields;
28978 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020028979 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050028980 public static pb::MessageParser<FooClientMessage> Parser { get { return _parser; } }
28981
28982 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020028983 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050028984 public static pbr::MessageDescriptor Descriptor {
Sydney Acksman8b7fb7d2019-03-23 11:41:57 -050028985 get { return global::Google.Protobuf.TestProtos.Proto2.UnittestReflection.Descriptor.MessageTypes[58]; }
Sydney Acksman8a57ec82019-03-21 17:36:36 -050028986 }
28987
28988 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020028989 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050028990 pbr::MessageDescriptor pb::IMessage.Descriptor {
28991 get { return Descriptor; }
28992 }
28993
28994 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020028995 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050028996 public FooClientMessage() {
28997 OnConstruction();
28998 }
28999
29000 partial void OnConstruction();
29001
29002 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020029003 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050029004 public FooClientMessage(FooClientMessage other) : this() {
29005 _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
29006 }
29007
29008 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020029009 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050029010 public FooClientMessage Clone() {
29011 return new FooClientMessage(this);
29012 }
29013
29014 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020029015 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050029016 public override bool Equals(object other) {
29017 return Equals(other as FooClientMessage);
29018 }
29019
29020 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020029021 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050029022 public bool Equals(FooClientMessage other) {
29023 if (ReferenceEquals(other, null)) {
29024 return false;
29025 }
29026 if (ReferenceEquals(other, this)) {
29027 return true;
29028 }
29029 return Equals(_unknownFields, other._unknownFields);
29030 }
29031
29032 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020029033 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050029034 public override int GetHashCode() {
29035 int hash = 1;
29036 if (_unknownFields != null) {
29037 hash ^= _unknownFields.GetHashCode();
29038 }
29039 return hash;
29040 }
29041
29042 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020029043 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050029044 public override string ToString() {
29045 return pb::JsonFormatter.ToDiagnosticString(this);
29046 }
29047
29048 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020029049 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050029050 public void WriteTo(pb::CodedOutputStream output) {
Jan Tattermusch125e4ad2020-05-29 04:32:43 -040029051 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
29052 output.WriteRawMessage(this);
29053 #else
Sydney Acksman8a57ec82019-03-21 17:36:36 -050029054 if (_unknownFields != null) {
29055 _unknownFields.WriteTo(output);
29056 }
Jan Tattermusch125e4ad2020-05-29 04:32:43 -040029057 #endif
Sydney Acksman8a57ec82019-03-21 17:36:36 -050029058 }
29059
Jan Tattermusch125e4ad2020-05-29 04:32:43 -040029060 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
29061 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020029062 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Jan Tattermusch125e4ad2020-05-29 04:32:43 -040029063 void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
29064 if (_unknownFields != null) {
29065 _unknownFields.WriteTo(ref output);
29066 }
29067 }
29068 #endif
29069
Sydney Acksman8a57ec82019-03-21 17:36:36 -050029070 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020029071 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050029072 public int CalculateSize() {
29073 int size = 0;
29074 if (_unknownFields != null) {
29075 size += _unknownFields.CalculateSize();
29076 }
29077 return size;
29078 }
29079
29080 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020029081 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050029082 public void MergeFrom(FooClientMessage other) {
29083 if (other == null) {
29084 return;
29085 }
29086 _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
29087 }
29088
29089 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020029090 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050029091 public void MergeFrom(pb::CodedInputStream input) {
Jan Tattermusch7cb55972020-06-02 09:26:25 +020029092 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
Jan Tattermusch3196ef92020-04-02 15:36:16 +020029093 input.ReadRawMessage(this);
Jan Tattermusch7cb55972020-06-02 09:26:25 +020029094 #else
29095 uint tag;
29096 while ((tag = input.ReadTag()) != 0) {
29097 switch(tag) {
29098 default:
29099 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
29100 break;
29101 }
29102 }
29103 #endif
Jan Tattermusch3196ef92020-04-02 15:36:16 +020029104 }
29105
Jan Tattermusch7cb55972020-06-02 09:26:25 +020029106 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
Jan Tattermusch3196ef92020-04-02 15:36:16 +020029107 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020029108 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Jan Tattermusch0df7ddc2020-04-14 12:41:03 +020029109 void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
Sydney Acksman8a57ec82019-03-21 17:36:36 -050029110 uint tag;
29111 while ((tag = input.ReadTag()) != 0) {
29112 switch(tag) {
29113 default:
Jan Tattermusch3196ef92020-04-02 15:36:16 +020029114 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
Sydney Acksman8a57ec82019-03-21 17:36:36 -050029115 break;
29116 }
29117 }
29118 }
Jan Tattermusch7cb55972020-06-02 09:26:25 +020029119 #endif
Sydney Acksman8a57ec82019-03-21 17:36:36 -050029120
29121 }
29122
Jan Tattermusch7cb55972020-06-02 09:26:25 +020029123 public sealed partial class FooServerMessage : pb::IMessage<FooServerMessage>
29124 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
29125 , pb::IBufferMessage
29126 #endif
29127 {
Sydney Acksman8a57ec82019-03-21 17:36:36 -050029128 private static readonly pb::MessageParser<FooServerMessage> _parser = new pb::MessageParser<FooServerMessage>(() => new FooServerMessage());
29129 private pb::UnknownFieldSet _unknownFields;
29130 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020029131 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050029132 public static pb::MessageParser<FooServerMessage> Parser { get { return _parser; } }
29133
29134 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020029135 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050029136 public static pbr::MessageDescriptor Descriptor {
Sydney Acksman8b7fb7d2019-03-23 11:41:57 -050029137 get { return global::Google.Protobuf.TestProtos.Proto2.UnittestReflection.Descriptor.MessageTypes[59]; }
Sydney Acksman8a57ec82019-03-21 17:36:36 -050029138 }
29139
29140 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020029141 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050029142 pbr::MessageDescriptor pb::IMessage.Descriptor {
29143 get { return Descriptor; }
29144 }
29145
29146 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020029147 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050029148 public FooServerMessage() {
29149 OnConstruction();
29150 }
29151
29152 partial void OnConstruction();
29153
29154 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020029155 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050029156 public FooServerMessage(FooServerMessage other) : this() {
29157 _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
29158 }
29159
29160 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020029161 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050029162 public FooServerMessage Clone() {
29163 return new FooServerMessage(this);
29164 }
29165
29166 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020029167 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050029168 public override bool Equals(object other) {
29169 return Equals(other as FooServerMessage);
29170 }
29171
29172 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020029173 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050029174 public bool Equals(FooServerMessage other) {
29175 if (ReferenceEquals(other, null)) {
29176 return false;
29177 }
29178 if (ReferenceEquals(other, this)) {
29179 return true;
29180 }
29181 return Equals(_unknownFields, other._unknownFields);
29182 }
29183
29184 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020029185 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050029186 public override int GetHashCode() {
29187 int hash = 1;
29188 if (_unknownFields != null) {
29189 hash ^= _unknownFields.GetHashCode();
29190 }
29191 return hash;
29192 }
29193
29194 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020029195 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050029196 public override string ToString() {
29197 return pb::JsonFormatter.ToDiagnosticString(this);
29198 }
29199
29200 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020029201 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050029202 public void WriteTo(pb::CodedOutputStream output) {
Jan Tattermusch125e4ad2020-05-29 04:32:43 -040029203 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
29204 output.WriteRawMessage(this);
29205 #else
Sydney Acksman8a57ec82019-03-21 17:36:36 -050029206 if (_unknownFields != null) {
29207 _unknownFields.WriteTo(output);
29208 }
Jan Tattermusch125e4ad2020-05-29 04:32:43 -040029209 #endif
Sydney Acksman8a57ec82019-03-21 17:36:36 -050029210 }
29211
Jan Tattermusch125e4ad2020-05-29 04:32:43 -040029212 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
29213 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020029214 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Jan Tattermusch125e4ad2020-05-29 04:32:43 -040029215 void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
29216 if (_unknownFields != null) {
29217 _unknownFields.WriteTo(ref output);
29218 }
29219 }
29220 #endif
29221
Sydney Acksman8a57ec82019-03-21 17:36:36 -050029222 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020029223 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050029224 public int CalculateSize() {
29225 int size = 0;
29226 if (_unknownFields != null) {
29227 size += _unknownFields.CalculateSize();
29228 }
29229 return size;
29230 }
29231
29232 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020029233 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050029234 public void MergeFrom(FooServerMessage other) {
29235 if (other == null) {
29236 return;
29237 }
29238 _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
29239 }
29240
29241 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020029242 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050029243 public void MergeFrom(pb::CodedInputStream input) {
Jan Tattermusch7cb55972020-06-02 09:26:25 +020029244 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
Jan Tattermusch3196ef92020-04-02 15:36:16 +020029245 input.ReadRawMessage(this);
Jan Tattermusch7cb55972020-06-02 09:26:25 +020029246 #else
29247 uint tag;
29248 while ((tag = input.ReadTag()) != 0) {
29249 switch(tag) {
29250 default:
29251 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
29252 break;
29253 }
29254 }
29255 #endif
Jan Tattermusch3196ef92020-04-02 15:36:16 +020029256 }
29257
Jan Tattermusch7cb55972020-06-02 09:26:25 +020029258 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
Jan Tattermusch3196ef92020-04-02 15:36:16 +020029259 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020029260 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Jan Tattermusch0df7ddc2020-04-14 12:41:03 +020029261 void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
Sydney Acksman8a57ec82019-03-21 17:36:36 -050029262 uint tag;
29263 while ((tag = input.ReadTag()) != 0) {
29264 switch(tag) {
29265 default:
Jan Tattermusch3196ef92020-04-02 15:36:16 +020029266 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
Sydney Acksman8a57ec82019-03-21 17:36:36 -050029267 break;
29268 }
29269 }
29270 }
Jan Tattermusch7cb55972020-06-02 09:26:25 +020029271 #endif
Sydney Acksman8a57ec82019-03-21 17:36:36 -050029272
29273 }
29274
Jan Tattermusch7cb55972020-06-02 09:26:25 +020029275 public sealed partial class BarRequest : pb::IMessage<BarRequest>
29276 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
29277 , pb::IBufferMessage
29278 #endif
29279 {
Sydney Acksman8a57ec82019-03-21 17:36:36 -050029280 private static readonly pb::MessageParser<BarRequest> _parser = new pb::MessageParser<BarRequest>(() => new BarRequest());
29281 private pb::UnknownFieldSet _unknownFields;
29282 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020029283 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050029284 public static pb::MessageParser<BarRequest> Parser { get { return _parser; } }
29285
29286 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020029287 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050029288 public static pbr::MessageDescriptor Descriptor {
Sydney Acksman8b7fb7d2019-03-23 11:41:57 -050029289 get { return global::Google.Protobuf.TestProtos.Proto2.UnittestReflection.Descriptor.MessageTypes[60]; }
Sydney Acksman8a57ec82019-03-21 17:36:36 -050029290 }
29291
29292 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020029293 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050029294 pbr::MessageDescriptor pb::IMessage.Descriptor {
29295 get { return Descriptor; }
29296 }
29297
29298 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020029299 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050029300 public BarRequest() {
29301 OnConstruction();
29302 }
29303
29304 partial void OnConstruction();
29305
29306 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020029307 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050029308 public BarRequest(BarRequest other) : this() {
29309 _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
29310 }
29311
29312 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020029313 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050029314 public BarRequest Clone() {
29315 return new BarRequest(this);
29316 }
29317
29318 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020029319 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050029320 public override bool Equals(object other) {
29321 return Equals(other as BarRequest);
29322 }
29323
29324 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020029325 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050029326 public bool Equals(BarRequest other) {
29327 if (ReferenceEquals(other, null)) {
29328 return false;
29329 }
29330 if (ReferenceEquals(other, this)) {
29331 return true;
29332 }
29333 return Equals(_unknownFields, other._unknownFields);
29334 }
29335
29336 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020029337 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050029338 public override int GetHashCode() {
29339 int hash = 1;
29340 if (_unknownFields != null) {
29341 hash ^= _unknownFields.GetHashCode();
29342 }
29343 return hash;
29344 }
29345
29346 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020029347 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050029348 public override string ToString() {
29349 return pb::JsonFormatter.ToDiagnosticString(this);
29350 }
29351
29352 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020029353 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050029354 public void WriteTo(pb::CodedOutputStream output) {
Jan Tattermusch125e4ad2020-05-29 04:32:43 -040029355 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
29356 output.WriteRawMessage(this);
29357 #else
Sydney Acksman8a57ec82019-03-21 17:36:36 -050029358 if (_unknownFields != null) {
29359 _unknownFields.WriteTo(output);
29360 }
Jan Tattermusch125e4ad2020-05-29 04:32:43 -040029361 #endif
Sydney Acksman8a57ec82019-03-21 17:36:36 -050029362 }
29363
Jan Tattermusch125e4ad2020-05-29 04:32:43 -040029364 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
29365 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020029366 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Jan Tattermusch125e4ad2020-05-29 04:32:43 -040029367 void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
29368 if (_unknownFields != null) {
29369 _unknownFields.WriteTo(ref output);
29370 }
29371 }
29372 #endif
29373
Sydney Acksman8a57ec82019-03-21 17:36:36 -050029374 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020029375 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050029376 public int CalculateSize() {
29377 int size = 0;
29378 if (_unknownFields != null) {
29379 size += _unknownFields.CalculateSize();
29380 }
29381 return size;
29382 }
29383
29384 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020029385 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050029386 public void MergeFrom(BarRequest other) {
29387 if (other == null) {
29388 return;
29389 }
29390 _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
29391 }
29392
29393 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020029394 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050029395 public void MergeFrom(pb::CodedInputStream input) {
Jan Tattermusch7cb55972020-06-02 09:26:25 +020029396 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
Jan Tattermusch3196ef92020-04-02 15:36:16 +020029397 input.ReadRawMessage(this);
Jan Tattermusch7cb55972020-06-02 09:26:25 +020029398 #else
29399 uint tag;
29400 while ((tag = input.ReadTag()) != 0) {
29401 switch(tag) {
29402 default:
29403 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
29404 break;
29405 }
29406 }
29407 #endif
Jan Tattermusch3196ef92020-04-02 15:36:16 +020029408 }
29409
Jan Tattermusch7cb55972020-06-02 09:26:25 +020029410 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
Jan Tattermusch3196ef92020-04-02 15:36:16 +020029411 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020029412 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Jan Tattermusch0df7ddc2020-04-14 12:41:03 +020029413 void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
Sydney Acksman8a57ec82019-03-21 17:36:36 -050029414 uint tag;
29415 while ((tag = input.ReadTag()) != 0) {
29416 switch(tag) {
29417 default:
Jan Tattermusch3196ef92020-04-02 15:36:16 +020029418 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
Sydney Acksman8a57ec82019-03-21 17:36:36 -050029419 break;
29420 }
29421 }
29422 }
Jan Tattermusch7cb55972020-06-02 09:26:25 +020029423 #endif
Sydney Acksman8a57ec82019-03-21 17:36:36 -050029424
29425 }
29426
Jan Tattermusch7cb55972020-06-02 09:26:25 +020029427 public sealed partial class BarResponse : pb::IMessage<BarResponse>
29428 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
29429 , pb::IBufferMessage
29430 #endif
29431 {
Sydney Acksman8a57ec82019-03-21 17:36:36 -050029432 private static readonly pb::MessageParser<BarResponse> _parser = new pb::MessageParser<BarResponse>(() => new BarResponse());
29433 private pb::UnknownFieldSet _unknownFields;
29434 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020029435 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050029436 public static pb::MessageParser<BarResponse> Parser { get { return _parser; } }
29437
29438 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020029439 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050029440 public static pbr::MessageDescriptor Descriptor {
Sydney Acksman8b7fb7d2019-03-23 11:41:57 -050029441 get { return global::Google.Protobuf.TestProtos.Proto2.UnittestReflection.Descriptor.MessageTypes[61]; }
Sydney Acksman8a57ec82019-03-21 17:36:36 -050029442 }
29443
29444 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020029445 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050029446 pbr::MessageDescriptor pb::IMessage.Descriptor {
29447 get { return Descriptor; }
29448 }
29449
29450 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020029451 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050029452 public BarResponse() {
29453 OnConstruction();
29454 }
29455
29456 partial void OnConstruction();
29457
29458 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020029459 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050029460 public BarResponse(BarResponse other) : this() {
29461 _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
29462 }
29463
29464 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020029465 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050029466 public BarResponse Clone() {
29467 return new BarResponse(this);
29468 }
29469
29470 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020029471 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050029472 public override bool Equals(object other) {
29473 return Equals(other as BarResponse);
29474 }
29475
29476 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020029477 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050029478 public bool Equals(BarResponse other) {
29479 if (ReferenceEquals(other, null)) {
29480 return false;
29481 }
29482 if (ReferenceEquals(other, this)) {
29483 return true;
29484 }
29485 return Equals(_unknownFields, other._unknownFields);
29486 }
29487
29488 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020029489 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050029490 public override int GetHashCode() {
29491 int hash = 1;
29492 if (_unknownFields != null) {
29493 hash ^= _unknownFields.GetHashCode();
29494 }
29495 return hash;
29496 }
29497
29498 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020029499 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050029500 public override string ToString() {
29501 return pb::JsonFormatter.ToDiagnosticString(this);
29502 }
29503
29504 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020029505 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050029506 public void WriteTo(pb::CodedOutputStream output) {
Jan Tattermusch125e4ad2020-05-29 04:32:43 -040029507 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
29508 output.WriteRawMessage(this);
29509 #else
Sydney Acksman8a57ec82019-03-21 17:36:36 -050029510 if (_unknownFields != null) {
29511 _unknownFields.WriteTo(output);
29512 }
Jan Tattermusch125e4ad2020-05-29 04:32:43 -040029513 #endif
Sydney Acksman8a57ec82019-03-21 17:36:36 -050029514 }
29515
Jan Tattermusch125e4ad2020-05-29 04:32:43 -040029516 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
29517 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020029518 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Jan Tattermusch125e4ad2020-05-29 04:32:43 -040029519 void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
29520 if (_unknownFields != null) {
29521 _unknownFields.WriteTo(ref output);
29522 }
29523 }
29524 #endif
29525
Sydney Acksman8a57ec82019-03-21 17:36:36 -050029526 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020029527 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050029528 public int CalculateSize() {
29529 int size = 0;
29530 if (_unknownFields != null) {
29531 size += _unknownFields.CalculateSize();
29532 }
29533 return size;
29534 }
29535
29536 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020029537 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050029538 public void MergeFrom(BarResponse other) {
29539 if (other == null) {
29540 return;
29541 }
29542 _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
29543 }
29544
29545 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020029546 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050029547 public void MergeFrom(pb::CodedInputStream input) {
Jan Tattermusch7cb55972020-06-02 09:26:25 +020029548 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
Jan Tattermusch3196ef92020-04-02 15:36:16 +020029549 input.ReadRawMessage(this);
Jan Tattermusch7cb55972020-06-02 09:26:25 +020029550 #else
29551 uint tag;
29552 while ((tag = input.ReadTag()) != 0) {
29553 switch(tag) {
29554 default:
29555 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
29556 break;
29557 }
29558 }
29559 #endif
Jan Tattermusch3196ef92020-04-02 15:36:16 +020029560 }
29561
Jan Tattermusch7cb55972020-06-02 09:26:25 +020029562 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
Jan Tattermusch3196ef92020-04-02 15:36:16 +020029563 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020029564 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Jan Tattermusch0df7ddc2020-04-14 12:41:03 +020029565 void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
Sydney Acksman8a57ec82019-03-21 17:36:36 -050029566 uint tag;
29567 while ((tag = input.ReadTag()) != 0) {
29568 switch(tag) {
29569 default:
Jan Tattermusch3196ef92020-04-02 15:36:16 +020029570 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
Sydney Acksman8a57ec82019-03-21 17:36:36 -050029571 break;
29572 }
29573 }
29574 }
Jan Tattermusch7cb55972020-06-02 09:26:25 +020029575 #endif
Sydney Acksman8a57ec82019-03-21 17:36:36 -050029576
29577 }
29578
Jan Tattermusch7cb55972020-06-02 09:26:25 +020029579 public sealed partial class TestJsonName : pb::IMessage<TestJsonName>
29580 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
29581 , pb::IBufferMessage
29582 #endif
29583 {
Sydney Acksman8a57ec82019-03-21 17:36:36 -050029584 private static readonly pb::MessageParser<TestJsonName> _parser = new pb::MessageParser<TestJsonName>(() => new TestJsonName());
29585 private pb::UnknownFieldSet _unknownFields;
29586 private int _hasBits0;
29587 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020029588 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050029589 public static pb::MessageParser<TestJsonName> Parser { get { return _parser; } }
29590
29591 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020029592 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050029593 public static pbr::MessageDescriptor Descriptor {
Sydney Acksman8b7fb7d2019-03-23 11:41:57 -050029594 get { return global::Google.Protobuf.TestProtos.Proto2.UnittestReflection.Descriptor.MessageTypes[62]; }
Sydney Acksman8a57ec82019-03-21 17:36:36 -050029595 }
29596
29597 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020029598 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050029599 pbr::MessageDescriptor pb::IMessage.Descriptor {
29600 get { return Descriptor; }
29601 }
29602
29603 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020029604 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050029605 public TestJsonName() {
29606 OnConstruction();
29607 }
29608
29609 partial void OnConstruction();
29610
29611 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020029612 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050029613 public TestJsonName(TestJsonName other) : this() {
29614 _hasBits0 = other._hasBits0;
29615 fieldName1_ = other.fieldName1_;
29616 fieldName2_ = other.fieldName2_;
29617 fieldName3_ = other.fieldName3_;
29618 FieldName4_ = other.FieldName4_;
29619 fIELDNAME5_ = other.fIELDNAME5_;
29620 fieldName6_ = other.fieldName6_;
29621 _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
29622 }
29623
29624 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020029625 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050029626 public TestJsonName Clone() {
29627 return new TestJsonName(this);
29628 }
29629
29630 /// <summary>Field number for the "field_name1" field.</summary>
29631 public const int FieldName1FieldNumber = 1;
29632 private readonly static int FieldName1DefaultValue = 0;
29633
29634 private int fieldName1_;
29635 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020029636 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050029637 public int FieldName1 {
29638 get { if ((_hasBits0 & 1) != 0) { return fieldName1_; } else { return FieldName1DefaultValue; } }
29639 set {
29640 _hasBits0 |= 1;
29641 fieldName1_ = value;
29642 }
29643 }
29644 /// <summary>Gets whether the "field_name1" field is set</summary>
29645 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020029646 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050029647 public bool HasFieldName1 {
29648 get { return (_hasBits0 & 1) != 0; }
29649 }
29650 /// <summary>Clears the value of the "field_name1" field</summary>
29651 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020029652 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050029653 public void ClearFieldName1() {
29654 _hasBits0 &= ~1;
29655 }
29656
29657 /// <summary>Field number for the "fieldName2" field.</summary>
29658 public const int FieldName2FieldNumber = 2;
29659 private readonly static int FieldName2DefaultValue = 0;
29660
29661 private int fieldName2_;
29662 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020029663 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050029664 public int FieldName2 {
29665 get { if ((_hasBits0 & 2) != 0) { return fieldName2_; } else { return FieldName2DefaultValue; } }
29666 set {
29667 _hasBits0 |= 2;
29668 fieldName2_ = value;
29669 }
29670 }
29671 /// <summary>Gets whether the "fieldName2" field is set</summary>
29672 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020029673 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050029674 public bool HasFieldName2 {
29675 get { return (_hasBits0 & 2) != 0; }
29676 }
29677 /// <summary>Clears the value of the "fieldName2" field</summary>
29678 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020029679 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050029680 public void ClearFieldName2() {
29681 _hasBits0 &= ~2;
29682 }
29683
29684 /// <summary>Field number for the "FieldName3" field.</summary>
29685 public const int FieldName3FieldNumber = 3;
29686 private readonly static int FieldName3DefaultValue = 0;
29687
29688 private int fieldName3_;
29689 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020029690 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050029691 public int FieldName3 {
29692 get { if ((_hasBits0 & 4) != 0) { return fieldName3_; } else { return FieldName3DefaultValue; } }
29693 set {
29694 _hasBits0 |= 4;
29695 fieldName3_ = value;
29696 }
29697 }
29698 /// <summary>Gets whether the "FieldName3" field is set</summary>
29699 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020029700 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050029701 public bool HasFieldName3 {
29702 get { return (_hasBits0 & 4) != 0; }
29703 }
29704 /// <summary>Clears the value of the "FieldName3" field</summary>
29705 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020029706 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050029707 public void ClearFieldName3() {
29708 _hasBits0 &= ~4;
29709 }
29710
29711 /// <summary>Field number for the "_field_name4" field.</summary>
29712 public const int FieldName4FieldNumber = 4;
29713 private readonly static int FieldName4DefaultValue = 0;
29714
29715 private int FieldName4_;
29716 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020029717 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050029718 public int FieldName4 {
29719 get { if ((_hasBits0 & 8) != 0) { return FieldName4_; } else { return FieldName4DefaultValue; } }
29720 set {
29721 _hasBits0 |= 8;
29722 FieldName4_ = value;
29723 }
29724 }
29725 /// <summary>Gets whether the "_field_name4" field is set</summary>
29726 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020029727 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050029728 public bool HasFieldName4 {
29729 get { return (_hasBits0 & 8) != 0; }
29730 }
29731 /// <summary>Clears the value of the "_field_name4" field</summary>
29732 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020029733 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050029734 public void ClearFieldName4() {
29735 _hasBits0 &= ~8;
29736 }
29737
29738 /// <summary>Field number for the "FIELD_NAME5" field.</summary>
29739 public const int FIELDNAME5FieldNumber = 5;
29740 private readonly static int FIELDNAME5DefaultValue = 0;
29741
29742 private int fIELDNAME5_;
29743 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020029744 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050029745 public int FIELDNAME5 {
29746 get { if ((_hasBits0 & 16) != 0) { return fIELDNAME5_; } else { return FIELDNAME5DefaultValue; } }
29747 set {
29748 _hasBits0 |= 16;
29749 fIELDNAME5_ = value;
29750 }
29751 }
29752 /// <summary>Gets whether the "FIELD_NAME5" field is set</summary>
29753 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020029754 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050029755 public bool HasFIELDNAME5 {
29756 get { return (_hasBits0 & 16) != 0; }
29757 }
29758 /// <summary>Clears the value of the "FIELD_NAME5" field</summary>
29759 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020029760 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050029761 public void ClearFIELDNAME5() {
29762 _hasBits0 &= ~16;
29763 }
29764
29765 /// <summary>Field number for the "field_name6" field.</summary>
29766 public const int FieldName6FieldNumber = 6;
29767 private readonly static int FieldName6DefaultValue = 0;
29768
29769 private int fieldName6_;
29770 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020029771 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050029772 public int FieldName6 {
29773 get { if ((_hasBits0 & 32) != 0) { return fieldName6_; } else { return FieldName6DefaultValue; } }
29774 set {
29775 _hasBits0 |= 32;
29776 fieldName6_ = value;
29777 }
29778 }
29779 /// <summary>Gets whether the "field_name6" field is set</summary>
29780 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020029781 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050029782 public bool HasFieldName6 {
29783 get { return (_hasBits0 & 32) != 0; }
29784 }
29785 /// <summary>Clears the value of the "field_name6" field</summary>
29786 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020029787 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050029788 public void ClearFieldName6() {
29789 _hasBits0 &= ~32;
29790 }
29791
29792 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020029793 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050029794 public override bool Equals(object other) {
29795 return Equals(other as TestJsonName);
29796 }
29797
29798 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020029799 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050029800 public bool Equals(TestJsonName other) {
29801 if (ReferenceEquals(other, null)) {
29802 return false;
29803 }
29804 if (ReferenceEquals(other, this)) {
29805 return true;
29806 }
29807 if (FieldName1 != other.FieldName1) return false;
29808 if (FieldName2 != other.FieldName2) return false;
29809 if (FieldName3 != other.FieldName3) return false;
29810 if (FieldName4 != other.FieldName4) return false;
29811 if (FIELDNAME5 != other.FIELDNAME5) return false;
29812 if (FieldName6 != other.FieldName6) return false;
29813 return Equals(_unknownFields, other._unknownFields);
29814 }
29815
29816 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020029817 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050029818 public override int GetHashCode() {
29819 int hash = 1;
29820 if (HasFieldName1) hash ^= FieldName1.GetHashCode();
29821 if (HasFieldName2) hash ^= FieldName2.GetHashCode();
29822 if (HasFieldName3) hash ^= FieldName3.GetHashCode();
29823 if (HasFieldName4) hash ^= FieldName4.GetHashCode();
29824 if (HasFIELDNAME5) hash ^= FIELDNAME5.GetHashCode();
29825 if (HasFieldName6) hash ^= FieldName6.GetHashCode();
29826 if (_unknownFields != null) {
29827 hash ^= _unknownFields.GetHashCode();
29828 }
29829 return hash;
29830 }
29831
29832 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020029833 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050029834 public override string ToString() {
29835 return pb::JsonFormatter.ToDiagnosticString(this);
29836 }
29837
29838 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020029839 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050029840 public void WriteTo(pb::CodedOutputStream output) {
Jan Tattermusch125e4ad2020-05-29 04:32:43 -040029841 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
29842 output.WriteRawMessage(this);
29843 #else
Sydney Acksman8a57ec82019-03-21 17:36:36 -050029844 if (HasFieldName1) {
29845 output.WriteRawTag(8);
29846 output.WriteInt32(FieldName1);
29847 }
29848 if (HasFieldName2) {
29849 output.WriteRawTag(16);
29850 output.WriteInt32(FieldName2);
29851 }
29852 if (HasFieldName3) {
29853 output.WriteRawTag(24);
29854 output.WriteInt32(FieldName3);
29855 }
29856 if (HasFieldName4) {
29857 output.WriteRawTag(32);
29858 output.WriteInt32(FieldName4);
29859 }
29860 if (HasFIELDNAME5) {
29861 output.WriteRawTag(40);
29862 output.WriteInt32(FIELDNAME5);
29863 }
29864 if (HasFieldName6) {
29865 output.WriteRawTag(48);
29866 output.WriteInt32(FieldName6);
29867 }
29868 if (_unknownFields != null) {
29869 _unknownFields.WriteTo(output);
29870 }
Jan Tattermusch125e4ad2020-05-29 04:32:43 -040029871 #endif
Sydney Acksman8a57ec82019-03-21 17:36:36 -050029872 }
29873
Jan Tattermusch125e4ad2020-05-29 04:32:43 -040029874 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
29875 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020029876 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Jan Tattermusch125e4ad2020-05-29 04:32:43 -040029877 void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
29878 if (HasFieldName1) {
29879 output.WriteRawTag(8);
29880 output.WriteInt32(FieldName1);
29881 }
29882 if (HasFieldName2) {
29883 output.WriteRawTag(16);
29884 output.WriteInt32(FieldName2);
29885 }
29886 if (HasFieldName3) {
29887 output.WriteRawTag(24);
29888 output.WriteInt32(FieldName3);
29889 }
29890 if (HasFieldName4) {
29891 output.WriteRawTag(32);
29892 output.WriteInt32(FieldName4);
29893 }
29894 if (HasFIELDNAME5) {
29895 output.WriteRawTag(40);
29896 output.WriteInt32(FIELDNAME5);
29897 }
29898 if (HasFieldName6) {
29899 output.WriteRawTag(48);
29900 output.WriteInt32(FieldName6);
29901 }
29902 if (_unknownFields != null) {
29903 _unknownFields.WriteTo(ref output);
29904 }
29905 }
29906 #endif
29907
Sydney Acksman8a57ec82019-03-21 17:36:36 -050029908 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020029909 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050029910 public int CalculateSize() {
29911 int size = 0;
29912 if (HasFieldName1) {
29913 size += 1 + pb::CodedOutputStream.ComputeInt32Size(FieldName1);
29914 }
29915 if (HasFieldName2) {
29916 size += 1 + pb::CodedOutputStream.ComputeInt32Size(FieldName2);
29917 }
29918 if (HasFieldName3) {
29919 size += 1 + pb::CodedOutputStream.ComputeInt32Size(FieldName3);
29920 }
29921 if (HasFieldName4) {
29922 size += 1 + pb::CodedOutputStream.ComputeInt32Size(FieldName4);
29923 }
29924 if (HasFIELDNAME5) {
29925 size += 1 + pb::CodedOutputStream.ComputeInt32Size(FIELDNAME5);
29926 }
29927 if (HasFieldName6) {
29928 size += 1 + pb::CodedOutputStream.ComputeInt32Size(FieldName6);
29929 }
29930 if (_unknownFields != null) {
29931 size += _unknownFields.CalculateSize();
29932 }
29933 return size;
29934 }
29935
29936 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020029937 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050029938 public void MergeFrom(TestJsonName other) {
29939 if (other == null) {
29940 return;
29941 }
29942 if (other.HasFieldName1) {
29943 FieldName1 = other.FieldName1;
29944 }
29945 if (other.HasFieldName2) {
29946 FieldName2 = other.FieldName2;
29947 }
29948 if (other.HasFieldName3) {
29949 FieldName3 = other.FieldName3;
29950 }
29951 if (other.HasFieldName4) {
29952 FieldName4 = other.FieldName4;
29953 }
29954 if (other.HasFIELDNAME5) {
29955 FIELDNAME5 = other.FIELDNAME5;
29956 }
29957 if (other.HasFieldName6) {
29958 FieldName6 = other.FieldName6;
29959 }
29960 _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
29961 }
29962
29963 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020029964 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050029965 public void MergeFrom(pb::CodedInputStream input) {
Jan Tattermusch7cb55972020-06-02 09:26:25 +020029966 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
Jan Tattermusch3196ef92020-04-02 15:36:16 +020029967 input.ReadRawMessage(this);
Jan Tattermusch7cb55972020-06-02 09:26:25 +020029968 #else
29969 uint tag;
29970 while ((tag = input.ReadTag()) != 0) {
29971 switch(tag) {
29972 default:
29973 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
29974 break;
29975 case 8: {
29976 FieldName1 = input.ReadInt32();
29977 break;
29978 }
29979 case 16: {
29980 FieldName2 = input.ReadInt32();
29981 break;
29982 }
29983 case 24: {
29984 FieldName3 = input.ReadInt32();
29985 break;
29986 }
29987 case 32: {
29988 FieldName4 = input.ReadInt32();
29989 break;
29990 }
29991 case 40: {
29992 FIELDNAME5 = input.ReadInt32();
29993 break;
29994 }
29995 case 48: {
29996 FieldName6 = input.ReadInt32();
29997 break;
29998 }
29999 }
30000 }
30001 #endif
Jan Tattermusch3196ef92020-04-02 15:36:16 +020030002 }
30003
Jan Tattermusch7cb55972020-06-02 09:26:25 +020030004 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
Jan Tattermusch3196ef92020-04-02 15:36:16 +020030005 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020030006 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Jan Tattermusch0df7ddc2020-04-14 12:41:03 +020030007 void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
Sydney Acksman8a57ec82019-03-21 17:36:36 -050030008 uint tag;
30009 while ((tag = input.ReadTag()) != 0) {
30010 switch(tag) {
30011 default:
Jan Tattermusch3196ef92020-04-02 15:36:16 +020030012 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
Sydney Acksman8a57ec82019-03-21 17:36:36 -050030013 break;
30014 case 8: {
30015 FieldName1 = input.ReadInt32();
30016 break;
30017 }
30018 case 16: {
30019 FieldName2 = input.ReadInt32();
30020 break;
30021 }
30022 case 24: {
30023 FieldName3 = input.ReadInt32();
30024 break;
30025 }
30026 case 32: {
30027 FieldName4 = input.ReadInt32();
30028 break;
30029 }
30030 case 40: {
30031 FIELDNAME5 = input.ReadInt32();
30032 break;
30033 }
30034 case 48: {
30035 FieldName6 = input.ReadInt32();
30036 break;
30037 }
30038 }
30039 }
30040 }
Jan Tattermusch7cb55972020-06-02 09:26:25 +020030041 #endif
Sydney Acksman8a57ec82019-03-21 17:36:36 -050030042
30043 }
30044
Jan Tattermusch7cb55972020-06-02 09:26:25 +020030045 public sealed partial class TestHugeFieldNumbers : pb::IExtendableMessage<TestHugeFieldNumbers>
30046 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
30047 , pb::IBufferMessage
30048 #endif
30049 {
Sydney Acksman8a57ec82019-03-21 17:36:36 -050030050 private static readonly pb::MessageParser<TestHugeFieldNumbers> _parser = new pb::MessageParser<TestHugeFieldNumbers>(() => new TestHugeFieldNumbers());
30051 private pb::UnknownFieldSet _unknownFields;
30052 private pb::ExtensionSet<TestHugeFieldNumbers> _extensions;
Sydney Acksmanc04a0272019-11-07 15:30:12 -060030053 private pb::ExtensionSet<TestHugeFieldNumbers> _Extensions { get { return _extensions; } }
Sydney Acksman8a57ec82019-03-21 17:36:36 -050030054 private int _hasBits0;
30055 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020030056 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050030057 public static pb::MessageParser<TestHugeFieldNumbers> Parser { get { return _parser; } }
30058
30059 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020030060 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050030061 public static pbr::MessageDescriptor Descriptor {
Sydney Acksman8b7fb7d2019-03-23 11:41:57 -050030062 get { return global::Google.Protobuf.TestProtos.Proto2.UnittestReflection.Descriptor.MessageTypes[63]; }
Sydney Acksman8a57ec82019-03-21 17:36:36 -050030063 }
30064
30065 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020030066 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050030067 pbr::MessageDescriptor pb::IMessage.Descriptor {
30068 get { return Descriptor; }
30069 }
30070
30071 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020030072 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050030073 public TestHugeFieldNumbers() {
30074 OnConstruction();
30075 }
30076
30077 partial void OnConstruction();
30078
30079 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020030080 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050030081 public TestHugeFieldNumbers(TestHugeFieldNumbers other) : this() {
30082 _hasBits0 = other._hasBits0;
30083 optionalInt32_ = other.optionalInt32_;
30084 fixed32_ = other.fixed32_;
30085 repeatedInt32_ = other.repeatedInt32_.Clone();
30086 packedInt32_ = other.packedInt32_.Clone();
30087 optionalEnum_ = other.optionalEnum_;
30088 optionalString_ = other.optionalString_;
30089 optionalBytes_ = other.optionalBytes_;
Jon Skeet9926c952020-04-27 07:18:45 +010030090 optionalMessage_ = other.optionalMessage_ != null ? other.optionalMessage_.Clone() : null;
Sydney Acksman8a57ec82019-03-21 17:36:36 -050030091 optionalGroup_ = other.HasOptionalGroup ? other.optionalGroup_.Clone() : null;
30092 stringStringMap_ = other.stringStringMap_.Clone();
30093 switch (other.OneofFieldCase) {
30094 case OneofFieldOneofCase.OneofUint32:
30095 OneofUint32 = other.OneofUint32;
30096 break;
30097 case OneofFieldOneofCase.OneofTestAllTypes:
30098 OneofTestAllTypes = other.OneofTestAllTypes.Clone();
30099 break;
30100 case OneofFieldOneofCase.OneofString:
30101 OneofString = other.OneofString;
30102 break;
30103 case OneofFieldOneofCase.OneofBytes:
30104 OneofBytes = other.OneofBytes;
30105 break;
30106 }
30107
30108 _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
30109 _extensions = pb::ExtensionSet.Clone(other._extensions);
30110 }
30111
30112 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020030113 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050030114 public TestHugeFieldNumbers Clone() {
30115 return new TestHugeFieldNumbers(this);
30116 }
30117
30118 /// <summary>Field number for the "optional_int32" field.</summary>
30119 public const int OptionalInt32FieldNumber = 536870000;
30120 private readonly static int OptionalInt32DefaultValue = 0;
30121
30122 private int optionalInt32_;
30123 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020030124 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050030125 public int OptionalInt32 {
30126 get { if ((_hasBits0 & 1) != 0) { return optionalInt32_; } else { return OptionalInt32DefaultValue; } }
30127 set {
30128 _hasBits0 |= 1;
30129 optionalInt32_ = value;
30130 }
30131 }
30132 /// <summary>Gets whether the "optional_int32" field is set</summary>
30133 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020030134 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050030135 public bool HasOptionalInt32 {
30136 get { return (_hasBits0 & 1) != 0; }
30137 }
30138 /// <summary>Clears the value of the "optional_int32" field</summary>
30139 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020030140 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050030141 public void ClearOptionalInt32() {
30142 _hasBits0 &= ~1;
30143 }
30144
30145 /// <summary>Field number for the "fixed_32" field.</summary>
30146 public const int Fixed32FieldNumber = 536870001;
30147 private readonly static int Fixed32DefaultValue = 0;
30148
30149 private int fixed32_;
30150 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020030151 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050030152 public int Fixed32 {
30153 get { if ((_hasBits0 & 2) != 0) { return fixed32_; } else { return Fixed32DefaultValue; } }
30154 set {
30155 _hasBits0 |= 2;
30156 fixed32_ = value;
30157 }
30158 }
30159 /// <summary>Gets whether the "fixed_32" field is set</summary>
30160 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020030161 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050030162 public bool HasFixed32 {
30163 get { return (_hasBits0 & 2) != 0; }
30164 }
30165 /// <summary>Clears the value of the "fixed_32" field</summary>
30166 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020030167 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050030168 public void ClearFixed32() {
30169 _hasBits0 &= ~2;
30170 }
30171
30172 /// <summary>Field number for the "repeated_int32" field.</summary>
30173 public const int RepeatedInt32FieldNumber = 536870002;
30174 private static readonly pb::FieldCodec<int> _repeated_repeatedInt32_codec
30175 = pb::FieldCodec.ForInt32(4294960016);
30176 private readonly pbc::RepeatedField<int> repeatedInt32_ = new pbc::RepeatedField<int>();
30177 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020030178 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050030179 public pbc::RepeatedField<int> RepeatedInt32 {
30180 get { return repeatedInt32_; }
30181 }
30182
30183 /// <summary>Field number for the "packed_int32" field.</summary>
30184 public const int PackedInt32FieldNumber = 536870003;
30185 private static readonly pb::FieldCodec<int> _repeated_packedInt32_codec
30186 = pb::FieldCodec.ForInt32(4294960026);
30187 private readonly pbc::RepeatedField<int> packedInt32_ = new pbc::RepeatedField<int>();
30188 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020030189 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050030190 public pbc::RepeatedField<int> PackedInt32 {
30191 get { return packedInt32_; }
30192 }
30193
30194 /// <summary>Field number for the "optional_enum" field.</summary>
30195 public const int OptionalEnumFieldNumber = 536870004;
30196 private readonly static global::Google.Protobuf.TestProtos.Proto2.ForeignEnum OptionalEnumDefaultValue = global::Google.Protobuf.TestProtos.Proto2.ForeignEnum.ForeignFoo;
30197
30198 private global::Google.Protobuf.TestProtos.Proto2.ForeignEnum optionalEnum_;
30199 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020030200 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050030201 public global::Google.Protobuf.TestProtos.Proto2.ForeignEnum OptionalEnum {
30202 get { if ((_hasBits0 & 4) != 0) { return optionalEnum_; } else { return OptionalEnumDefaultValue; } }
30203 set {
30204 _hasBits0 |= 4;
30205 optionalEnum_ = value;
30206 }
30207 }
30208 /// <summary>Gets whether the "optional_enum" field is set</summary>
30209 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020030210 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050030211 public bool HasOptionalEnum {
30212 get { return (_hasBits0 & 4) != 0; }
30213 }
30214 /// <summary>Clears the value of the "optional_enum" field</summary>
30215 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020030216 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050030217 public void ClearOptionalEnum() {
30218 _hasBits0 &= ~4;
30219 }
30220
30221 /// <summary>Field number for the "optional_string" field.</summary>
30222 public const int OptionalStringFieldNumber = 536870005;
30223 private readonly static string OptionalStringDefaultValue = "";
30224
30225 private string optionalString_;
30226 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020030227 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050030228 public string OptionalString {
30229 get { return optionalString_ ?? OptionalStringDefaultValue; }
30230 set {
30231 optionalString_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
30232 }
30233 }
30234 /// <summary>Gets whether the "optional_string" field is set</summary>
30235 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020030236 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050030237 public bool HasOptionalString {
30238 get { return optionalString_ != null; }
30239 }
30240 /// <summary>Clears the value of the "optional_string" field</summary>
30241 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020030242 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050030243 public void ClearOptionalString() {
30244 optionalString_ = null;
30245 }
30246
30247 /// <summary>Field number for the "optional_bytes" field.</summary>
30248 public const int OptionalBytesFieldNumber = 536870006;
30249 private readonly static pb::ByteString OptionalBytesDefaultValue = pb::ByteString.Empty;
30250
30251 private pb::ByteString optionalBytes_;
30252 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020030253 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050030254 public pb::ByteString OptionalBytes {
30255 get { return optionalBytes_ ?? OptionalBytesDefaultValue; }
30256 set {
30257 optionalBytes_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
30258 }
30259 }
30260 /// <summary>Gets whether the "optional_bytes" field is set</summary>
30261 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020030262 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050030263 public bool HasOptionalBytes {
30264 get { return optionalBytes_ != null; }
30265 }
30266 /// <summary>Clears the value of the "optional_bytes" field</summary>
30267 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020030268 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050030269 public void ClearOptionalBytes() {
30270 optionalBytes_ = null;
30271 }
30272
30273 /// <summary>Field number for the "optional_message" field.</summary>
30274 public const int OptionalMessageFieldNumber = 536870007;
30275 private global::Google.Protobuf.TestProtos.Proto2.ForeignMessage optionalMessage_;
30276 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020030277 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050030278 public global::Google.Protobuf.TestProtos.Proto2.ForeignMessage OptionalMessage {
30279 get { return optionalMessage_; }
30280 set {
30281 optionalMessage_ = value;
30282 }
30283 }
Sydney Acksman8a57ec82019-03-21 17:36:36 -050030284
30285 /// <summary>Field number for the "optionalgroup" field.</summary>
30286 public const int OptionalGroupFieldNumber = 536870008;
30287 private global::Google.Protobuf.TestProtos.Proto2.TestHugeFieldNumbers.Types.OptionalGroup optionalGroup_;
30288 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020030289 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050030290 public global::Google.Protobuf.TestProtos.Proto2.TestHugeFieldNumbers.Types.OptionalGroup OptionalGroup {
30291 get { return optionalGroup_; }
30292 set {
30293 optionalGroup_ = value;
30294 }
30295 }
30296 /// <summary>Gets whether the optionalgroup field is set</summary>
30297 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020030298 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050030299 public bool HasOptionalGroup {
30300 get { return optionalGroup_ != null; }
30301 }
30302 /// <summary>Clears the value of the optionalgroup field</summary>
30303 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020030304 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050030305 public void ClearOptionalGroup() {
30306 optionalGroup_ = null;
30307 }
30308
30309 /// <summary>Field number for the "string_string_map" field.</summary>
30310 public const int StringStringMapFieldNumber = 536870010;
30311 private static readonly pbc::MapField<string, string>.Codec _map_stringStringMap_codec
30312 = new pbc::MapField<string, string>.Codec(pb::FieldCodec.ForString(10, ""), pb::FieldCodec.ForString(18, ""), 4294960082);
30313 private readonly pbc::MapField<string, string> stringStringMap_ = new pbc::MapField<string, string>();
30314 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020030315 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050030316 public pbc::MapField<string, string> StringStringMap {
30317 get { return stringStringMap_; }
30318 }
30319
30320 /// <summary>Field number for the "oneof_uint32" field.</summary>
30321 public const int OneofUint32FieldNumber = 536870011;
30322 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020030323 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050030324 public uint OneofUint32 {
30325 get { return HasOneofUint32 ? (uint) oneofField_ : 0; }
30326 set {
30327 oneofField_ = value;
30328 oneofFieldCase_ = OneofFieldOneofCase.OneofUint32;
30329 }
30330 }
30331 /// <summary>Gets whether the "oneof_uint32" field is set</summary>
30332 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020030333 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050030334 public bool HasOneofUint32 {
30335 get { return oneofFieldCase_ == OneofFieldOneofCase.OneofUint32; }
30336 }
30337 /// <summary> Clears the value of the oneof if it's currently set to "oneof_uint32" </summary>
30338 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020030339 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050030340 public void ClearOneofUint32() {
30341 if (HasOneofUint32) {
30342 ClearOneofField();
30343 }
30344 }
30345
30346 /// <summary>Field number for the "oneof_test_all_types" field.</summary>
30347 public const int OneofTestAllTypesFieldNumber = 536870012;
30348 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020030349 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050030350 public global::Google.Protobuf.TestProtos.Proto2.TestAllTypes OneofTestAllTypes {
Jon Skeet9926c952020-04-27 07:18:45 +010030351 get { return oneofFieldCase_ == OneofFieldOneofCase.OneofTestAllTypes ? (global::Google.Protobuf.TestProtos.Proto2.TestAllTypes) oneofField_ : null; }
Sydney Acksman8a57ec82019-03-21 17:36:36 -050030352 set {
30353 oneofField_ = value;
30354 oneofFieldCase_ = value == null ? OneofFieldOneofCase.None : OneofFieldOneofCase.OneofTestAllTypes;
30355 }
30356 }
Sydney Acksman8a57ec82019-03-21 17:36:36 -050030357
30358 /// <summary>Field number for the "oneof_string" field.</summary>
30359 public const int OneofStringFieldNumber = 536870013;
30360 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020030361 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050030362 public string OneofString {
30363 get { return HasOneofString ? (string) oneofField_ : ""; }
30364 set {
30365 oneofField_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
30366 oneofFieldCase_ = OneofFieldOneofCase.OneofString;
30367 }
30368 }
30369 /// <summary>Gets whether the "oneof_string" field is set</summary>
30370 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020030371 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050030372 public bool HasOneofString {
30373 get { return oneofFieldCase_ == OneofFieldOneofCase.OneofString; }
30374 }
30375 /// <summary> Clears the value of the oneof if it's currently set to "oneof_string" </summary>
30376 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020030377 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050030378 public void ClearOneofString() {
30379 if (HasOneofString) {
30380 ClearOneofField();
30381 }
30382 }
30383
30384 /// <summary>Field number for the "oneof_bytes" field.</summary>
30385 public const int OneofBytesFieldNumber = 536870014;
30386 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020030387 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050030388 public pb::ByteString OneofBytes {
30389 get { return HasOneofBytes ? (pb::ByteString) oneofField_ : pb::ByteString.Empty; }
30390 set {
30391 oneofField_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
30392 oneofFieldCase_ = OneofFieldOneofCase.OneofBytes;
30393 }
30394 }
30395 /// <summary>Gets whether the "oneof_bytes" field is set</summary>
30396 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020030397 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050030398 public bool HasOneofBytes {
30399 get { return oneofFieldCase_ == OneofFieldOneofCase.OneofBytes; }
30400 }
30401 /// <summary> Clears the value of the oneof if it's currently set to "oneof_bytes" </summary>
30402 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020030403 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050030404 public void ClearOneofBytes() {
30405 if (HasOneofBytes) {
30406 ClearOneofField();
30407 }
30408 }
30409
30410 private object oneofField_;
30411 /// <summary>Enum of possible cases for the "oneof_field" oneof.</summary>
30412 public enum OneofFieldOneofCase {
30413 None = 0,
30414 OneofUint32 = 536870011,
30415 OneofTestAllTypes = 536870012,
30416 OneofString = 536870013,
30417 OneofBytes = 536870014,
30418 }
30419 private OneofFieldOneofCase oneofFieldCase_ = OneofFieldOneofCase.None;
30420 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020030421 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050030422 public OneofFieldOneofCase OneofFieldCase {
30423 get { return oneofFieldCase_; }
30424 }
30425
30426 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020030427 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050030428 public void ClearOneofField() {
30429 oneofFieldCase_ = OneofFieldOneofCase.None;
30430 oneofField_ = null;
30431 }
30432
30433 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020030434 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050030435 public override bool Equals(object other) {
30436 return Equals(other as TestHugeFieldNumbers);
30437 }
30438
30439 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020030440 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050030441 public bool Equals(TestHugeFieldNumbers other) {
30442 if (ReferenceEquals(other, null)) {
30443 return false;
30444 }
30445 if (ReferenceEquals(other, this)) {
30446 return true;
30447 }
30448 if (OptionalInt32 != other.OptionalInt32) return false;
30449 if (Fixed32 != other.Fixed32) return false;
30450 if(!repeatedInt32_.Equals(other.repeatedInt32_)) return false;
30451 if(!packedInt32_.Equals(other.packedInt32_)) return false;
30452 if (OptionalEnum != other.OptionalEnum) return false;
30453 if (OptionalString != other.OptionalString) return false;
30454 if (OptionalBytes != other.OptionalBytes) return false;
30455 if (!object.Equals(OptionalMessage, other.OptionalMessage)) return false;
30456 if (!object.Equals(OptionalGroup, other.OptionalGroup)) return false;
30457 if (!StringStringMap.Equals(other.StringStringMap)) return false;
30458 if (OneofUint32 != other.OneofUint32) return false;
30459 if (!object.Equals(OneofTestAllTypes, other.OneofTestAllTypes)) return false;
30460 if (OneofString != other.OneofString) return false;
30461 if (OneofBytes != other.OneofBytes) return false;
30462 if (OneofFieldCase != other.OneofFieldCase) return false;
30463 if (!Equals(_extensions, other._extensions)) {
30464 return false;
30465 }
30466 return Equals(_unknownFields, other._unknownFields);
30467 }
30468
30469 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020030470 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050030471 public override int GetHashCode() {
30472 int hash = 1;
30473 if (HasOptionalInt32) hash ^= OptionalInt32.GetHashCode();
30474 if (HasFixed32) hash ^= Fixed32.GetHashCode();
30475 hash ^= repeatedInt32_.GetHashCode();
30476 hash ^= packedInt32_.GetHashCode();
30477 if (HasOptionalEnum) hash ^= OptionalEnum.GetHashCode();
30478 if (HasOptionalString) hash ^= OptionalString.GetHashCode();
30479 if (HasOptionalBytes) hash ^= OptionalBytes.GetHashCode();
Jon Skeet9926c952020-04-27 07:18:45 +010030480 if (optionalMessage_ != null) hash ^= OptionalMessage.GetHashCode();
Sydney Acksman8a57ec82019-03-21 17:36:36 -050030481 if (HasOptionalGroup) hash ^= OptionalGroup.GetHashCode();
30482 hash ^= StringStringMap.GetHashCode();
30483 if (HasOneofUint32) hash ^= OneofUint32.GetHashCode();
Jon Skeet9926c952020-04-27 07:18:45 +010030484 if (oneofFieldCase_ == OneofFieldOneofCase.OneofTestAllTypes) hash ^= OneofTestAllTypes.GetHashCode();
Sydney Acksman8a57ec82019-03-21 17:36:36 -050030485 if (HasOneofString) hash ^= OneofString.GetHashCode();
30486 if (HasOneofBytes) hash ^= OneofBytes.GetHashCode();
30487 hash ^= (int) oneofFieldCase_;
30488 if (_extensions != null) {
30489 hash ^= _extensions.GetHashCode();
30490 }
30491 if (_unknownFields != null) {
30492 hash ^= _unknownFields.GetHashCode();
30493 }
30494 return hash;
30495 }
30496
30497 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020030498 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050030499 public override string ToString() {
30500 return pb::JsonFormatter.ToDiagnosticString(this);
30501 }
30502
30503 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020030504 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050030505 public void WriteTo(pb::CodedOutputStream output) {
Jan Tattermusch125e4ad2020-05-29 04:32:43 -040030506 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
30507 output.WriteRawMessage(this);
30508 #else
Sydney Acksman8a57ec82019-03-21 17:36:36 -050030509 if (HasOptionalInt32) {
30510 output.WriteRawTag(128, 199, 255, 255, 15);
30511 output.WriteInt32(OptionalInt32);
30512 }
30513 if (HasFixed32) {
30514 output.WriteRawTag(136, 199, 255, 255, 15);
30515 output.WriteInt32(Fixed32);
30516 }
30517 repeatedInt32_.WriteTo(output, _repeated_repeatedInt32_codec);
30518 packedInt32_.WriteTo(output, _repeated_packedInt32_codec);
30519 if (HasOptionalEnum) {
30520 output.WriteRawTag(160, 199, 255, 255, 15);
30521 output.WriteEnum((int) OptionalEnum);
30522 }
30523 if (HasOptionalString) {
30524 output.WriteRawTag(170, 199, 255, 255, 15);
30525 output.WriteString(OptionalString);
30526 }
30527 if (HasOptionalBytes) {
30528 output.WriteRawTag(178, 199, 255, 255, 15);
30529 output.WriteBytes(OptionalBytes);
30530 }
Jon Skeet9926c952020-04-27 07:18:45 +010030531 if (optionalMessage_ != null) {
Sydney Acksman8a57ec82019-03-21 17:36:36 -050030532 output.WriteRawTag(186, 199, 255, 255, 15);
30533 output.WriteMessage(OptionalMessage);
30534 }
30535 if (HasOptionalGroup) {
30536 output.WriteRawTag(195, 199, 255, 255, 15);
30537 output.WriteGroup(OptionalGroup);
30538 output.WriteRawTag(196, 199, 255, 255, 15);
30539 }
30540 stringStringMap_.WriteTo(output, _map_stringStringMap_codec);
30541 if (HasOneofUint32) {
30542 output.WriteRawTag(216, 199, 255, 255, 15);
30543 output.WriteUInt32(OneofUint32);
30544 }
Jon Skeet9926c952020-04-27 07:18:45 +010030545 if (oneofFieldCase_ == OneofFieldOneofCase.OneofTestAllTypes) {
Sydney Acksman8a57ec82019-03-21 17:36:36 -050030546 output.WriteRawTag(226, 199, 255, 255, 15);
30547 output.WriteMessage(OneofTestAllTypes);
30548 }
30549 if (HasOneofString) {
30550 output.WriteRawTag(234, 199, 255, 255, 15);
30551 output.WriteString(OneofString);
30552 }
30553 if (HasOneofBytes) {
30554 output.WriteRawTag(242, 199, 255, 255, 15);
30555 output.WriteBytes(OneofBytes);
30556 }
30557 if (_extensions != null) {
30558 _extensions.WriteTo(output);
30559 }
30560 if (_unknownFields != null) {
30561 _unknownFields.WriteTo(output);
30562 }
Jan Tattermusch125e4ad2020-05-29 04:32:43 -040030563 #endif
Sydney Acksman8a57ec82019-03-21 17:36:36 -050030564 }
30565
Jan Tattermusch125e4ad2020-05-29 04:32:43 -040030566 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
30567 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020030568 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Jan Tattermusch125e4ad2020-05-29 04:32:43 -040030569 void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
30570 if (HasOptionalInt32) {
30571 output.WriteRawTag(128, 199, 255, 255, 15);
30572 output.WriteInt32(OptionalInt32);
30573 }
30574 if (HasFixed32) {
30575 output.WriteRawTag(136, 199, 255, 255, 15);
30576 output.WriteInt32(Fixed32);
30577 }
30578 repeatedInt32_.WriteTo(ref output, _repeated_repeatedInt32_codec);
30579 packedInt32_.WriteTo(ref output, _repeated_packedInt32_codec);
30580 if (HasOptionalEnum) {
30581 output.WriteRawTag(160, 199, 255, 255, 15);
30582 output.WriteEnum((int) OptionalEnum);
30583 }
30584 if (HasOptionalString) {
30585 output.WriteRawTag(170, 199, 255, 255, 15);
30586 output.WriteString(OptionalString);
30587 }
30588 if (HasOptionalBytes) {
30589 output.WriteRawTag(178, 199, 255, 255, 15);
30590 output.WriteBytes(OptionalBytes);
30591 }
30592 if (optionalMessage_ != null) {
30593 output.WriteRawTag(186, 199, 255, 255, 15);
30594 output.WriteMessage(OptionalMessage);
30595 }
30596 if (HasOptionalGroup) {
30597 output.WriteRawTag(195, 199, 255, 255, 15);
30598 output.WriteGroup(OptionalGroup);
30599 output.WriteRawTag(196, 199, 255, 255, 15);
30600 }
30601 stringStringMap_.WriteTo(ref output, _map_stringStringMap_codec);
30602 if (HasOneofUint32) {
30603 output.WriteRawTag(216, 199, 255, 255, 15);
30604 output.WriteUInt32(OneofUint32);
30605 }
30606 if (oneofFieldCase_ == OneofFieldOneofCase.OneofTestAllTypes) {
30607 output.WriteRawTag(226, 199, 255, 255, 15);
30608 output.WriteMessage(OneofTestAllTypes);
30609 }
30610 if (HasOneofString) {
30611 output.WriteRawTag(234, 199, 255, 255, 15);
30612 output.WriteString(OneofString);
30613 }
30614 if (HasOneofBytes) {
30615 output.WriteRawTag(242, 199, 255, 255, 15);
30616 output.WriteBytes(OneofBytes);
30617 }
30618 if (_extensions != null) {
30619 _extensions.WriteTo(ref output);
30620 }
30621 if (_unknownFields != null) {
30622 _unknownFields.WriteTo(ref output);
30623 }
30624 }
30625 #endif
30626
Sydney Acksman8a57ec82019-03-21 17:36:36 -050030627 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020030628 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050030629 public int CalculateSize() {
30630 int size = 0;
30631 if (HasOptionalInt32) {
30632 size += 5 + pb::CodedOutputStream.ComputeInt32Size(OptionalInt32);
30633 }
30634 if (HasFixed32) {
30635 size += 5 + pb::CodedOutputStream.ComputeInt32Size(Fixed32);
30636 }
30637 size += repeatedInt32_.CalculateSize(_repeated_repeatedInt32_codec);
30638 size += packedInt32_.CalculateSize(_repeated_packedInt32_codec);
30639 if (HasOptionalEnum) {
30640 size += 5 + pb::CodedOutputStream.ComputeEnumSize((int) OptionalEnum);
30641 }
30642 if (HasOptionalString) {
30643 size += 5 + pb::CodedOutputStream.ComputeStringSize(OptionalString);
30644 }
30645 if (HasOptionalBytes) {
30646 size += 5 + pb::CodedOutputStream.ComputeBytesSize(OptionalBytes);
30647 }
Jon Skeet9926c952020-04-27 07:18:45 +010030648 if (optionalMessage_ != null) {
Sydney Acksman8a57ec82019-03-21 17:36:36 -050030649 size += 5 + pb::CodedOutputStream.ComputeMessageSize(OptionalMessage);
30650 }
30651 if (HasOptionalGroup) {
30652 size += 10 + pb::CodedOutputStream.ComputeGroupSize(OptionalGroup);
30653 }
30654 size += stringStringMap_.CalculateSize(_map_stringStringMap_codec);
30655 if (HasOneofUint32) {
30656 size += 5 + pb::CodedOutputStream.ComputeUInt32Size(OneofUint32);
30657 }
Jon Skeet9926c952020-04-27 07:18:45 +010030658 if (oneofFieldCase_ == OneofFieldOneofCase.OneofTestAllTypes) {
Sydney Acksman8a57ec82019-03-21 17:36:36 -050030659 size += 5 + pb::CodedOutputStream.ComputeMessageSize(OneofTestAllTypes);
30660 }
30661 if (HasOneofString) {
30662 size += 5 + pb::CodedOutputStream.ComputeStringSize(OneofString);
30663 }
30664 if (HasOneofBytes) {
30665 size += 5 + pb::CodedOutputStream.ComputeBytesSize(OneofBytes);
30666 }
30667 if (_extensions != null) {
30668 size += _extensions.CalculateSize();
30669 }
30670 if (_unknownFields != null) {
30671 size += _unknownFields.CalculateSize();
30672 }
30673 return size;
30674 }
30675
30676 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020030677 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050030678 public void MergeFrom(TestHugeFieldNumbers other) {
30679 if (other == null) {
30680 return;
30681 }
30682 if (other.HasOptionalInt32) {
30683 OptionalInt32 = other.OptionalInt32;
30684 }
30685 if (other.HasFixed32) {
30686 Fixed32 = other.Fixed32;
30687 }
30688 repeatedInt32_.Add(other.repeatedInt32_);
30689 packedInt32_.Add(other.packedInt32_);
30690 if (other.HasOptionalEnum) {
30691 OptionalEnum = other.OptionalEnum;
30692 }
30693 if (other.HasOptionalString) {
30694 OptionalString = other.OptionalString;
30695 }
30696 if (other.HasOptionalBytes) {
30697 OptionalBytes = other.OptionalBytes;
30698 }
Jon Skeet9926c952020-04-27 07:18:45 +010030699 if (other.optionalMessage_ != null) {
30700 if (optionalMessage_ == null) {
Sydney Acksman8a57ec82019-03-21 17:36:36 -050030701 OptionalMessage = new global::Google.Protobuf.TestProtos.Proto2.ForeignMessage();
30702 }
30703 OptionalMessage.MergeFrom(other.OptionalMessage);
30704 }
30705 if (other.HasOptionalGroup) {
30706 if (!HasOptionalGroup) {
30707 OptionalGroup = new global::Google.Protobuf.TestProtos.Proto2.TestHugeFieldNumbers.Types.OptionalGroup();
30708 }
30709 OptionalGroup.MergeFrom(other.OptionalGroup);
30710 }
Jon Skeeta7dcf1b2022-08-02 09:40:40 +010030711 stringStringMap_.MergeFrom(other.stringStringMap_);
Sydney Acksman8a57ec82019-03-21 17:36:36 -050030712 switch (other.OneofFieldCase) {
30713 case OneofFieldOneofCase.OneofUint32:
30714 OneofUint32 = other.OneofUint32;
30715 break;
30716 case OneofFieldOneofCase.OneofTestAllTypes:
30717 if (OneofTestAllTypes == null) {
30718 OneofTestAllTypes = new global::Google.Protobuf.TestProtos.Proto2.TestAllTypes();
30719 }
30720 OneofTestAllTypes.MergeFrom(other.OneofTestAllTypes);
30721 break;
30722 case OneofFieldOneofCase.OneofString:
30723 OneofString = other.OneofString;
30724 break;
30725 case OneofFieldOneofCase.OneofBytes:
30726 OneofBytes = other.OneofBytes;
30727 break;
30728 }
30729
30730 pb::ExtensionSet.MergeFrom(ref _extensions, other._extensions);
30731 _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
30732 }
30733
30734 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020030735 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050030736 public void MergeFrom(pb::CodedInputStream input) {
Jan Tattermusch7cb55972020-06-02 09:26:25 +020030737 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
Jan Tattermusch3196ef92020-04-02 15:36:16 +020030738 input.ReadRawMessage(this);
Jan Tattermusch7cb55972020-06-02 09:26:25 +020030739 #else
30740 uint tag;
30741 while ((tag = input.ReadTag()) != 0) {
30742 switch(tag) {
30743 default:
30744 if (!pb::ExtensionSet.TryMergeFieldFrom(ref _extensions, input)) {
30745 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
30746 }
30747 break;
30748 case 4294960000: {
30749 OptionalInt32 = input.ReadInt32();
30750 break;
30751 }
30752 case 4294960008: {
30753 Fixed32 = input.ReadInt32();
30754 break;
30755 }
30756 case 4294960018:
30757 case 4294960016: {
30758 repeatedInt32_.AddEntriesFrom(input, _repeated_repeatedInt32_codec);
30759 break;
30760 }
30761 case 4294960026:
30762 case 4294960024: {
30763 packedInt32_.AddEntriesFrom(input, _repeated_packedInt32_codec);
30764 break;
30765 }
30766 case 4294960032: {
30767 OptionalEnum = (global::Google.Protobuf.TestProtos.Proto2.ForeignEnum) input.ReadEnum();
30768 break;
30769 }
30770 case 4294960042: {
30771 OptionalString = input.ReadString();
30772 break;
30773 }
30774 case 4294960050: {
30775 OptionalBytes = input.ReadBytes();
30776 break;
30777 }
30778 case 4294960058: {
30779 if (optionalMessage_ == null) {
30780 OptionalMessage = new global::Google.Protobuf.TestProtos.Proto2.ForeignMessage();
30781 }
30782 input.ReadMessage(OptionalMessage);
30783 break;
30784 }
30785 case 4294960067: {
30786 if (!HasOptionalGroup) {
30787 OptionalGroup = new global::Google.Protobuf.TestProtos.Proto2.TestHugeFieldNumbers.Types.OptionalGroup();
30788 }
30789 input.ReadGroup(OptionalGroup);
30790 break;
30791 }
30792 case 4294960082: {
30793 stringStringMap_.AddEntriesFrom(input, _map_stringStringMap_codec);
30794 break;
30795 }
30796 case 4294960088: {
30797 OneofUint32 = input.ReadUInt32();
30798 break;
30799 }
30800 case 4294960098: {
30801 global::Google.Protobuf.TestProtos.Proto2.TestAllTypes subBuilder = new global::Google.Protobuf.TestProtos.Proto2.TestAllTypes();
30802 if (oneofFieldCase_ == OneofFieldOneofCase.OneofTestAllTypes) {
30803 subBuilder.MergeFrom(OneofTestAllTypes);
30804 }
30805 input.ReadMessage(subBuilder);
30806 OneofTestAllTypes = subBuilder;
30807 break;
30808 }
30809 case 4294960106: {
30810 OneofString = input.ReadString();
30811 break;
30812 }
30813 case 4294960114: {
30814 OneofBytes = input.ReadBytes();
30815 break;
30816 }
30817 }
30818 }
30819 #endif
Jan Tattermusch3196ef92020-04-02 15:36:16 +020030820 }
30821
Jan Tattermusch7cb55972020-06-02 09:26:25 +020030822 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
Jan Tattermusch3196ef92020-04-02 15:36:16 +020030823 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020030824 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Jan Tattermusch0df7ddc2020-04-14 12:41:03 +020030825 void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
Sydney Acksman8a57ec82019-03-21 17:36:36 -050030826 uint tag;
30827 while ((tag = input.ReadTag()) != 0) {
30828 switch(tag) {
30829 default:
Jan Tattermusch3196ef92020-04-02 15:36:16 +020030830 if (!pb::ExtensionSet.TryMergeFieldFrom(ref _extensions, ref input)) {
30831 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
Sydney Acksman8a57ec82019-03-21 17:36:36 -050030832 }
30833 break;
30834 case 4294960000: {
30835 OptionalInt32 = input.ReadInt32();
30836 break;
30837 }
30838 case 4294960008: {
30839 Fixed32 = input.ReadInt32();
30840 break;
30841 }
30842 case 4294960018:
30843 case 4294960016: {
Jan Tattermusch3196ef92020-04-02 15:36:16 +020030844 repeatedInt32_.AddEntriesFrom(ref input, _repeated_repeatedInt32_codec);
Sydney Acksman8a57ec82019-03-21 17:36:36 -050030845 break;
30846 }
30847 case 4294960026:
30848 case 4294960024: {
Jan Tattermusch3196ef92020-04-02 15:36:16 +020030849 packedInt32_.AddEntriesFrom(ref input, _repeated_packedInt32_codec);
Sydney Acksman8a57ec82019-03-21 17:36:36 -050030850 break;
30851 }
30852 case 4294960032: {
30853 OptionalEnum = (global::Google.Protobuf.TestProtos.Proto2.ForeignEnum) input.ReadEnum();
30854 break;
30855 }
30856 case 4294960042: {
30857 OptionalString = input.ReadString();
30858 break;
30859 }
30860 case 4294960050: {
30861 OptionalBytes = input.ReadBytes();
30862 break;
30863 }
30864 case 4294960058: {
Jon Skeet9926c952020-04-27 07:18:45 +010030865 if (optionalMessage_ == null) {
Sydney Acksman8a57ec82019-03-21 17:36:36 -050030866 OptionalMessage = new global::Google.Protobuf.TestProtos.Proto2.ForeignMessage();
30867 }
30868 input.ReadMessage(OptionalMessage);
30869 break;
30870 }
30871 case 4294960067: {
30872 if (!HasOptionalGroup) {
30873 OptionalGroup = new global::Google.Protobuf.TestProtos.Proto2.TestHugeFieldNumbers.Types.OptionalGroup();
30874 }
30875 input.ReadGroup(OptionalGroup);
30876 break;
30877 }
30878 case 4294960082: {
Jan Tattermusch3196ef92020-04-02 15:36:16 +020030879 stringStringMap_.AddEntriesFrom(ref input, _map_stringStringMap_codec);
Sydney Acksman8a57ec82019-03-21 17:36:36 -050030880 break;
30881 }
30882 case 4294960088: {
30883 OneofUint32 = input.ReadUInt32();
30884 break;
30885 }
30886 case 4294960098: {
30887 global::Google.Protobuf.TestProtos.Proto2.TestAllTypes subBuilder = new global::Google.Protobuf.TestProtos.Proto2.TestAllTypes();
Jon Skeet9926c952020-04-27 07:18:45 +010030888 if (oneofFieldCase_ == OneofFieldOneofCase.OneofTestAllTypes) {
Sydney Acksman8a57ec82019-03-21 17:36:36 -050030889 subBuilder.MergeFrom(OneofTestAllTypes);
30890 }
30891 input.ReadMessage(subBuilder);
30892 OneofTestAllTypes = subBuilder;
30893 break;
30894 }
30895 case 4294960106: {
30896 OneofString = input.ReadString();
30897 break;
30898 }
30899 case 4294960114: {
30900 OneofBytes = input.ReadBytes();
30901 break;
30902 }
30903 }
30904 }
30905 }
Jan Tattermusch7cb55972020-06-02 09:26:25 +020030906 #endif
Sydney Acksman8a57ec82019-03-21 17:36:36 -050030907
Sydney Acksman8a57ec82019-03-21 17:36:36 -050030908 public TValue GetExtension<TValue>(pb::Extension<TestHugeFieldNumbers, TValue> extension) {
30909 return pb::ExtensionSet.Get(ref _extensions, extension);
30910 }
30911 public pbc::RepeatedField<TValue> GetExtension<TValue>(pb::RepeatedExtension<TestHugeFieldNumbers, TValue> extension) {
30912 return pb::ExtensionSet.Get(ref _extensions, extension);
30913 }
Sydney Acksman0436b8d2019-08-01 03:06:03 -050030914 public pbc::RepeatedField<TValue> GetOrInitializeExtension<TValue>(pb::RepeatedExtension<TestHugeFieldNumbers, TValue> extension) {
30915 return pb::ExtensionSet.GetOrInitialize(ref _extensions, extension);
Sydney Acksman011427c2019-05-03 21:34:48 -050030916 }
Sydney Acksman8a57ec82019-03-21 17:36:36 -050030917 public void SetExtension<TValue>(pb::Extension<TestHugeFieldNumbers, TValue> extension, TValue value) {
30918 pb::ExtensionSet.Set(ref _extensions, extension, value);
30919 }
30920 public bool HasExtension<TValue>(pb::Extension<TestHugeFieldNumbers, TValue> extension) {
30921 return pb::ExtensionSet.Has(ref _extensions, extension);
30922 }
30923 public void ClearExtension<TValue>(pb::Extension<TestHugeFieldNumbers, TValue> extension) {
30924 pb::ExtensionSet.Clear(ref _extensions, extension);
30925 }
Sydney Acksman011427c2019-05-03 21:34:48 -050030926 public void ClearExtension<TValue>(pb::RepeatedExtension<TestHugeFieldNumbers, TValue> extension) {
30927 pb::ExtensionSet.Clear(ref _extensions, extension);
30928 }
Sydney Acksman8a57ec82019-03-21 17:36:36 -050030929
30930 #region Nested types
30931 /// <summary>Container for nested types declared in the TestHugeFieldNumbers message type.</summary>
30932 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020030933 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050030934 public static partial class Types {
Jan Tattermusch7cb55972020-06-02 09:26:25 +020030935 public sealed partial class OptionalGroup : pb::IMessage<OptionalGroup>
30936 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
30937 , pb::IBufferMessage
30938 #endif
30939 {
Sydney Acksman8a57ec82019-03-21 17:36:36 -050030940 private static readonly pb::MessageParser<OptionalGroup> _parser = new pb::MessageParser<OptionalGroup>(() => new OptionalGroup());
30941 private pb::UnknownFieldSet _unknownFields;
30942 private int _hasBits0;
30943 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020030944 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050030945 public static pb::MessageParser<OptionalGroup> Parser { get { return _parser; } }
30946
30947 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020030948 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050030949 public static pbr::MessageDescriptor Descriptor {
30950 get { return global::Google.Protobuf.TestProtos.Proto2.TestHugeFieldNumbers.Descriptor.NestedTypes[0]; }
30951 }
30952
30953 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020030954 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050030955 pbr::MessageDescriptor pb::IMessage.Descriptor {
30956 get { return Descriptor; }
30957 }
30958
30959 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020030960 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050030961 public OptionalGroup() {
30962 OnConstruction();
30963 }
30964
30965 partial void OnConstruction();
30966
30967 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020030968 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050030969 public OptionalGroup(OptionalGroup other) : this() {
30970 _hasBits0 = other._hasBits0;
30971 groupA_ = other.groupA_;
30972 _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
30973 }
30974
30975 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020030976 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050030977 public OptionalGroup Clone() {
30978 return new OptionalGroup(this);
30979 }
30980
30981 /// <summary>Field number for the "group_a" field.</summary>
30982 public const int GroupAFieldNumber = 536870009;
30983 private readonly static int GroupADefaultValue = 0;
30984
30985 private int groupA_;
30986 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020030987 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050030988 public int GroupA {
30989 get { if ((_hasBits0 & 1) != 0) { return groupA_; } else { return GroupADefaultValue; } }
30990 set {
30991 _hasBits0 |= 1;
30992 groupA_ = value;
30993 }
30994 }
30995 /// <summary>Gets whether the "group_a" field is set</summary>
30996 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020030997 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050030998 public bool HasGroupA {
30999 get { return (_hasBits0 & 1) != 0; }
31000 }
31001 /// <summary>Clears the value of the "group_a" field</summary>
31002 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020031003 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050031004 public void ClearGroupA() {
31005 _hasBits0 &= ~1;
31006 }
31007
31008 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020031009 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050031010 public override bool Equals(object other) {
31011 return Equals(other as OptionalGroup);
31012 }
31013
31014 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020031015 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050031016 public bool Equals(OptionalGroup other) {
31017 if (ReferenceEquals(other, null)) {
31018 return false;
31019 }
31020 if (ReferenceEquals(other, this)) {
31021 return true;
31022 }
31023 if (GroupA != other.GroupA) return false;
31024 return Equals(_unknownFields, other._unknownFields);
31025 }
31026
31027 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020031028 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050031029 public override int GetHashCode() {
31030 int hash = 1;
31031 if (HasGroupA) hash ^= GroupA.GetHashCode();
31032 if (_unknownFields != null) {
31033 hash ^= _unknownFields.GetHashCode();
31034 }
31035 return hash;
31036 }
31037
31038 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020031039 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050031040 public override string ToString() {
31041 return pb::JsonFormatter.ToDiagnosticString(this);
31042 }
31043
31044 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020031045 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050031046 public void WriteTo(pb::CodedOutputStream output) {
Jan Tattermusch125e4ad2020-05-29 04:32:43 -040031047 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
31048 output.WriteRawMessage(this);
31049 #else
Sydney Acksman8a57ec82019-03-21 17:36:36 -050031050 if (HasGroupA) {
31051 output.WriteRawTag(200, 199, 255, 255, 15);
31052 output.WriteInt32(GroupA);
31053 }
31054 if (_unknownFields != null) {
31055 _unknownFields.WriteTo(output);
31056 }
Jan Tattermusch125e4ad2020-05-29 04:32:43 -040031057 #endif
Sydney Acksman8a57ec82019-03-21 17:36:36 -050031058 }
31059
Jan Tattermusch125e4ad2020-05-29 04:32:43 -040031060 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
31061 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020031062 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Jan Tattermusch125e4ad2020-05-29 04:32:43 -040031063 void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
31064 if (HasGroupA) {
31065 output.WriteRawTag(200, 199, 255, 255, 15);
31066 output.WriteInt32(GroupA);
31067 }
31068 if (_unknownFields != null) {
31069 _unknownFields.WriteTo(ref output);
31070 }
31071 }
31072 #endif
31073
Sydney Acksman8a57ec82019-03-21 17:36:36 -050031074 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020031075 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050031076 public int CalculateSize() {
31077 int size = 0;
31078 if (HasGroupA) {
31079 size += 5 + pb::CodedOutputStream.ComputeInt32Size(GroupA);
31080 }
31081 if (_unknownFields != null) {
31082 size += _unknownFields.CalculateSize();
31083 }
31084 return size;
31085 }
31086
31087 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020031088 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050031089 public void MergeFrom(OptionalGroup other) {
31090 if (other == null) {
31091 return;
31092 }
31093 if (other.HasGroupA) {
31094 GroupA = other.GroupA;
31095 }
31096 _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
31097 }
31098
31099 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020031100 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050031101 public void MergeFrom(pb::CodedInputStream input) {
Jan Tattermusch7cb55972020-06-02 09:26:25 +020031102 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
Jan Tattermusch3196ef92020-04-02 15:36:16 +020031103 input.ReadRawMessage(this);
Jan Tattermusch7cb55972020-06-02 09:26:25 +020031104 #else
31105 uint tag;
31106 while ((tag = input.ReadTag()) != 0) {
31107 switch(tag) {
31108 case 4294960068:
31109 return;
31110 default:
31111 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
31112 break;
31113 case 4294960072: {
31114 GroupA = input.ReadInt32();
31115 break;
31116 }
31117 }
31118 }
31119 #endif
Jan Tattermusch3196ef92020-04-02 15:36:16 +020031120 }
31121
Jan Tattermusch7cb55972020-06-02 09:26:25 +020031122 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
Jan Tattermusch3196ef92020-04-02 15:36:16 +020031123 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020031124 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Jan Tattermusch0df7ddc2020-04-14 12:41:03 +020031125 void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
Sydney Acksman8a57ec82019-03-21 17:36:36 -050031126 uint tag;
31127 while ((tag = input.ReadTag()) != 0) {
31128 switch(tag) {
31129 case 4294960068:
31130 return;
31131 default:
Jan Tattermusch3196ef92020-04-02 15:36:16 +020031132 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
Sydney Acksman8a57ec82019-03-21 17:36:36 -050031133 break;
31134 case 4294960072: {
31135 GroupA = input.ReadInt32();
31136 break;
31137 }
31138 }
31139 }
31140 }
Jan Tattermusch7cb55972020-06-02 09:26:25 +020031141 #endif
Sydney Acksman8a57ec82019-03-21 17:36:36 -050031142
31143 }
31144
31145 }
31146 #endregion
31147
31148 }
31149
Jan Tattermusch7cb55972020-06-02 09:26:25 +020031150 public sealed partial class TestExtensionInsideTable : pb::IExtendableMessage<TestExtensionInsideTable>
31151 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
31152 , pb::IBufferMessage
31153 #endif
31154 {
Sydney Acksman8a57ec82019-03-21 17:36:36 -050031155 private static readonly pb::MessageParser<TestExtensionInsideTable> _parser = new pb::MessageParser<TestExtensionInsideTable>(() => new TestExtensionInsideTable());
31156 private pb::UnknownFieldSet _unknownFields;
31157 private pb::ExtensionSet<TestExtensionInsideTable> _extensions;
Sydney Acksmanc04a0272019-11-07 15:30:12 -060031158 private pb::ExtensionSet<TestExtensionInsideTable> _Extensions { get { return _extensions; } }
Sydney Acksman8a57ec82019-03-21 17:36:36 -050031159 private int _hasBits0;
31160 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020031161 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050031162 public static pb::MessageParser<TestExtensionInsideTable> Parser { get { return _parser; } }
31163
31164 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020031165 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050031166 public static pbr::MessageDescriptor Descriptor {
Sydney Acksman8b7fb7d2019-03-23 11:41:57 -050031167 get { return global::Google.Protobuf.TestProtos.Proto2.UnittestReflection.Descriptor.MessageTypes[64]; }
Sydney Acksman8a57ec82019-03-21 17:36:36 -050031168 }
31169
31170 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020031171 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050031172 pbr::MessageDescriptor pb::IMessage.Descriptor {
31173 get { return Descriptor; }
31174 }
31175
31176 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020031177 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050031178 public TestExtensionInsideTable() {
31179 OnConstruction();
31180 }
31181
31182 partial void OnConstruction();
31183
31184 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020031185 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050031186 public TestExtensionInsideTable(TestExtensionInsideTable other) : this() {
31187 _hasBits0 = other._hasBits0;
31188 field1_ = other.field1_;
31189 field2_ = other.field2_;
31190 field3_ = other.field3_;
31191 field4_ = other.field4_;
31192 field6_ = other.field6_;
31193 field7_ = other.field7_;
31194 field8_ = other.field8_;
31195 field9_ = other.field9_;
31196 field10_ = other.field10_;
31197 _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
31198 _extensions = pb::ExtensionSet.Clone(other._extensions);
31199 }
31200
31201 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020031202 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050031203 public TestExtensionInsideTable Clone() {
31204 return new TestExtensionInsideTable(this);
31205 }
31206
31207 /// <summary>Field number for the "field1" field.</summary>
31208 public const int Field1FieldNumber = 1;
31209 private readonly static int Field1DefaultValue = 0;
31210
31211 private int field1_;
31212 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020031213 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050031214 public int Field1 {
31215 get { if ((_hasBits0 & 1) != 0) { return field1_; } else { return Field1DefaultValue; } }
31216 set {
31217 _hasBits0 |= 1;
31218 field1_ = value;
31219 }
31220 }
31221 /// <summary>Gets whether the "field1" field is set</summary>
31222 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020031223 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050031224 public bool HasField1 {
31225 get { return (_hasBits0 & 1) != 0; }
31226 }
31227 /// <summary>Clears the value of the "field1" field</summary>
31228 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020031229 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050031230 public void ClearField1() {
31231 _hasBits0 &= ~1;
31232 }
31233
31234 /// <summary>Field number for the "field2" field.</summary>
31235 public const int Field2FieldNumber = 2;
31236 private readonly static int Field2DefaultValue = 0;
31237
31238 private int field2_;
31239 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020031240 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050031241 public int Field2 {
31242 get { if ((_hasBits0 & 2) != 0) { return field2_; } else { return Field2DefaultValue; } }
31243 set {
31244 _hasBits0 |= 2;
31245 field2_ = value;
31246 }
31247 }
31248 /// <summary>Gets whether the "field2" field is set</summary>
31249 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020031250 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050031251 public bool HasField2 {
31252 get { return (_hasBits0 & 2) != 0; }
31253 }
31254 /// <summary>Clears the value of the "field2" field</summary>
31255 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020031256 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050031257 public void ClearField2() {
31258 _hasBits0 &= ~2;
31259 }
31260
31261 /// <summary>Field number for the "field3" field.</summary>
31262 public const int Field3FieldNumber = 3;
31263 private readonly static int Field3DefaultValue = 0;
31264
31265 private int field3_;
31266 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020031267 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050031268 public int Field3 {
31269 get { if ((_hasBits0 & 4) != 0) { return field3_; } else { return Field3DefaultValue; } }
31270 set {
31271 _hasBits0 |= 4;
31272 field3_ = value;
31273 }
31274 }
31275 /// <summary>Gets whether the "field3" field is set</summary>
31276 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020031277 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050031278 public bool HasField3 {
31279 get { return (_hasBits0 & 4) != 0; }
31280 }
31281 /// <summary>Clears the value of the "field3" field</summary>
31282 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020031283 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050031284 public void ClearField3() {
31285 _hasBits0 &= ~4;
31286 }
31287
31288 /// <summary>Field number for the "field4" field.</summary>
31289 public const int Field4FieldNumber = 4;
31290 private readonly static int Field4DefaultValue = 0;
31291
31292 private int field4_;
31293 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020031294 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050031295 public int Field4 {
31296 get { if ((_hasBits0 & 8) != 0) { return field4_; } else { return Field4DefaultValue; } }
31297 set {
31298 _hasBits0 |= 8;
31299 field4_ = value;
31300 }
31301 }
31302 /// <summary>Gets whether the "field4" field is set</summary>
31303 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020031304 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050031305 public bool HasField4 {
31306 get { return (_hasBits0 & 8) != 0; }
31307 }
31308 /// <summary>Clears the value of the "field4" field</summary>
31309 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020031310 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050031311 public void ClearField4() {
31312 _hasBits0 &= ~8;
31313 }
31314
31315 /// <summary>Field number for the "field6" field.</summary>
31316 public const int Field6FieldNumber = 6;
31317 private readonly static int Field6DefaultValue = 0;
31318
31319 private int field6_;
31320 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020031321 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050031322 public int Field6 {
31323 get { if ((_hasBits0 & 16) != 0) { return field6_; } else { return Field6DefaultValue; } }
31324 set {
31325 _hasBits0 |= 16;
31326 field6_ = value;
31327 }
31328 }
31329 /// <summary>Gets whether the "field6" field is set</summary>
31330 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020031331 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050031332 public bool HasField6 {
31333 get { return (_hasBits0 & 16) != 0; }
31334 }
31335 /// <summary>Clears the value of the "field6" field</summary>
31336 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020031337 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050031338 public void ClearField6() {
31339 _hasBits0 &= ~16;
31340 }
31341
31342 /// <summary>Field number for the "field7" field.</summary>
31343 public const int Field7FieldNumber = 7;
31344 private readonly static int Field7DefaultValue = 0;
31345
31346 private int field7_;
31347 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020031348 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050031349 public int Field7 {
31350 get { if ((_hasBits0 & 32) != 0) { return field7_; } else { return Field7DefaultValue; } }
31351 set {
31352 _hasBits0 |= 32;
31353 field7_ = value;
31354 }
31355 }
31356 /// <summary>Gets whether the "field7" field is set</summary>
31357 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020031358 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050031359 public bool HasField7 {
31360 get { return (_hasBits0 & 32) != 0; }
31361 }
31362 /// <summary>Clears the value of the "field7" field</summary>
31363 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020031364 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050031365 public void ClearField7() {
31366 _hasBits0 &= ~32;
31367 }
31368
31369 /// <summary>Field number for the "field8" field.</summary>
31370 public const int Field8FieldNumber = 8;
31371 private readonly static int Field8DefaultValue = 0;
31372
31373 private int field8_;
31374 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020031375 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050031376 public int Field8 {
31377 get { if ((_hasBits0 & 64) != 0) { return field8_; } else { return Field8DefaultValue; } }
31378 set {
31379 _hasBits0 |= 64;
31380 field8_ = value;
31381 }
31382 }
31383 /// <summary>Gets whether the "field8" field is set</summary>
31384 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020031385 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050031386 public bool HasField8 {
31387 get { return (_hasBits0 & 64) != 0; }
31388 }
31389 /// <summary>Clears the value of the "field8" field</summary>
31390 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020031391 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050031392 public void ClearField8() {
31393 _hasBits0 &= ~64;
31394 }
31395
31396 /// <summary>Field number for the "field9" field.</summary>
31397 public const int Field9FieldNumber = 9;
31398 private readonly static int Field9DefaultValue = 0;
31399
31400 private int field9_;
31401 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020031402 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050031403 public int Field9 {
31404 get { if ((_hasBits0 & 128) != 0) { return field9_; } else { return Field9DefaultValue; } }
31405 set {
31406 _hasBits0 |= 128;
31407 field9_ = value;
31408 }
31409 }
31410 /// <summary>Gets whether the "field9" field is set</summary>
31411 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020031412 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050031413 public bool HasField9 {
31414 get { return (_hasBits0 & 128) != 0; }
31415 }
31416 /// <summary>Clears the value of the "field9" field</summary>
31417 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020031418 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050031419 public void ClearField9() {
31420 _hasBits0 &= ~128;
31421 }
31422
31423 /// <summary>Field number for the "field10" field.</summary>
31424 public const int Field10FieldNumber = 10;
31425 private readonly static int Field10DefaultValue = 0;
31426
31427 private int field10_;
31428 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020031429 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050031430 public int Field10 {
31431 get { if ((_hasBits0 & 256) != 0) { return field10_; } else { return Field10DefaultValue; } }
31432 set {
31433 _hasBits0 |= 256;
31434 field10_ = value;
31435 }
31436 }
31437 /// <summary>Gets whether the "field10" field is set</summary>
31438 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020031439 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050031440 public bool HasField10 {
31441 get { return (_hasBits0 & 256) != 0; }
31442 }
31443 /// <summary>Clears the value of the "field10" field</summary>
31444 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020031445 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050031446 public void ClearField10() {
31447 _hasBits0 &= ~256;
31448 }
31449
31450 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020031451 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050031452 public override bool Equals(object other) {
31453 return Equals(other as TestExtensionInsideTable);
31454 }
31455
31456 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020031457 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050031458 public bool Equals(TestExtensionInsideTable other) {
31459 if (ReferenceEquals(other, null)) {
31460 return false;
31461 }
31462 if (ReferenceEquals(other, this)) {
31463 return true;
31464 }
31465 if (Field1 != other.Field1) return false;
31466 if (Field2 != other.Field2) return false;
31467 if (Field3 != other.Field3) return false;
31468 if (Field4 != other.Field4) return false;
31469 if (Field6 != other.Field6) return false;
31470 if (Field7 != other.Field7) return false;
31471 if (Field8 != other.Field8) return false;
31472 if (Field9 != other.Field9) return false;
31473 if (Field10 != other.Field10) return false;
31474 if (!Equals(_extensions, other._extensions)) {
31475 return false;
31476 }
31477 return Equals(_unknownFields, other._unknownFields);
31478 }
31479
31480 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020031481 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050031482 public override int GetHashCode() {
31483 int hash = 1;
31484 if (HasField1) hash ^= Field1.GetHashCode();
31485 if (HasField2) hash ^= Field2.GetHashCode();
31486 if (HasField3) hash ^= Field3.GetHashCode();
31487 if (HasField4) hash ^= Field4.GetHashCode();
31488 if (HasField6) hash ^= Field6.GetHashCode();
31489 if (HasField7) hash ^= Field7.GetHashCode();
31490 if (HasField8) hash ^= Field8.GetHashCode();
31491 if (HasField9) hash ^= Field9.GetHashCode();
31492 if (HasField10) hash ^= Field10.GetHashCode();
31493 if (_extensions != null) {
31494 hash ^= _extensions.GetHashCode();
31495 }
31496 if (_unknownFields != null) {
31497 hash ^= _unknownFields.GetHashCode();
31498 }
31499 return hash;
31500 }
31501
31502 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020031503 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050031504 public override string ToString() {
31505 return pb::JsonFormatter.ToDiagnosticString(this);
31506 }
31507
31508 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020031509 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050031510 public void WriteTo(pb::CodedOutputStream output) {
Jan Tattermusch125e4ad2020-05-29 04:32:43 -040031511 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
31512 output.WriteRawMessage(this);
31513 #else
Sydney Acksman8a57ec82019-03-21 17:36:36 -050031514 if (HasField1) {
31515 output.WriteRawTag(8);
31516 output.WriteInt32(Field1);
31517 }
31518 if (HasField2) {
31519 output.WriteRawTag(16);
31520 output.WriteInt32(Field2);
31521 }
31522 if (HasField3) {
31523 output.WriteRawTag(24);
31524 output.WriteInt32(Field3);
31525 }
31526 if (HasField4) {
31527 output.WriteRawTag(32);
31528 output.WriteInt32(Field4);
31529 }
31530 if (HasField6) {
31531 output.WriteRawTag(48);
31532 output.WriteInt32(Field6);
31533 }
31534 if (HasField7) {
31535 output.WriteRawTag(56);
31536 output.WriteInt32(Field7);
31537 }
31538 if (HasField8) {
31539 output.WriteRawTag(64);
31540 output.WriteInt32(Field8);
31541 }
31542 if (HasField9) {
31543 output.WriteRawTag(72);
31544 output.WriteInt32(Field9);
31545 }
31546 if (HasField10) {
31547 output.WriteRawTag(80);
31548 output.WriteInt32(Field10);
31549 }
31550 if (_extensions != null) {
31551 _extensions.WriteTo(output);
31552 }
31553 if (_unknownFields != null) {
31554 _unknownFields.WriteTo(output);
31555 }
Jan Tattermusch125e4ad2020-05-29 04:32:43 -040031556 #endif
Sydney Acksman8a57ec82019-03-21 17:36:36 -050031557 }
31558
Jan Tattermusch125e4ad2020-05-29 04:32:43 -040031559 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
31560 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020031561 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Jan Tattermusch125e4ad2020-05-29 04:32:43 -040031562 void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
31563 if (HasField1) {
31564 output.WriteRawTag(8);
31565 output.WriteInt32(Field1);
31566 }
31567 if (HasField2) {
31568 output.WriteRawTag(16);
31569 output.WriteInt32(Field2);
31570 }
31571 if (HasField3) {
31572 output.WriteRawTag(24);
31573 output.WriteInt32(Field3);
31574 }
31575 if (HasField4) {
31576 output.WriteRawTag(32);
31577 output.WriteInt32(Field4);
31578 }
31579 if (HasField6) {
31580 output.WriteRawTag(48);
31581 output.WriteInt32(Field6);
31582 }
31583 if (HasField7) {
31584 output.WriteRawTag(56);
31585 output.WriteInt32(Field7);
31586 }
31587 if (HasField8) {
31588 output.WriteRawTag(64);
31589 output.WriteInt32(Field8);
31590 }
31591 if (HasField9) {
31592 output.WriteRawTag(72);
31593 output.WriteInt32(Field9);
31594 }
31595 if (HasField10) {
31596 output.WriteRawTag(80);
31597 output.WriteInt32(Field10);
31598 }
31599 if (_extensions != null) {
31600 _extensions.WriteTo(ref output);
31601 }
31602 if (_unknownFields != null) {
31603 _unknownFields.WriteTo(ref output);
31604 }
31605 }
31606 #endif
31607
Sydney Acksman8a57ec82019-03-21 17:36:36 -050031608 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020031609 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050031610 public int CalculateSize() {
31611 int size = 0;
31612 if (HasField1) {
31613 size += 1 + pb::CodedOutputStream.ComputeInt32Size(Field1);
31614 }
31615 if (HasField2) {
31616 size += 1 + pb::CodedOutputStream.ComputeInt32Size(Field2);
31617 }
31618 if (HasField3) {
31619 size += 1 + pb::CodedOutputStream.ComputeInt32Size(Field3);
31620 }
31621 if (HasField4) {
31622 size += 1 + pb::CodedOutputStream.ComputeInt32Size(Field4);
31623 }
31624 if (HasField6) {
31625 size += 1 + pb::CodedOutputStream.ComputeInt32Size(Field6);
31626 }
31627 if (HasField7) {
31628 size += 1 + pb::CodedOutputStream.ComputeInt32Size(Field7);
31629 }
31630 if (HasField8) {
31631 size += 1 + pb::CodedOutputStream.ComputeInt32Size(Field8);
31632 }
31633 if (HasField9) {
31634 size += 1 + pb::CodedOutputStream.ComputeInt32Size(Field9);
31635 }
31636 if (HasField10) {
31637 size += 1 + pb::CodedOutputStream.ComputeInt32Size(Field10);
31638 }
31639 if (_extensions != null) {
31640 size += _extensions.CalculateSize();
31641 }
31642 if (_unknownFields != null) {
31643 size += _unknownFields.CalculateSize();
31644 }
31645 return size;
31646 }
31647
31648 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020031649 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050031650 public void MergeFrom(TestExtensionInsideTable other) {
31651 if (other == null) {
31652 return;
31653 }
31654 if (other.HasField1) {
31655 Field1 = other.Field1;
31656 }
31657 if (other.HasField2) {
31658 Field2 = other.Field2;
31659 }
31660 if (other.HasField3) {
31661 Field3 = other.Field3;
31662 }
31663 if (other.HasField4) {
31664 Field4 = other.Field4;
31665 }
31666 if (other.HasField6) {
31667 Field6 = other.Field6;
31668 }
31669 if (other.HasField7) {
31670 Field7 = other.Field7;
31671 }
31672 if (other.HasField8) {
31673 Field8 = other.Field8;
31674 }
31675 if (other.HasField9) {
31676 Field9 = other.Field9;
31677 }
31678 if (other.HasField10) {
31679 Field10 = other.Field10;
31680 }
31681 pb::ExtensionSet.MergeFrom(ref _extensions, other._extensions);
31682 _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
31683 }
31684
31685 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020031686 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Sydney Acksman8a57ec82019-03-21 17:36:36 -050031687 public void MergeFrom(pb::CodedInputStream input) {
Jan Tattermusch7cb55972020-06-02 09:26:25 +020031688 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
Jan Tattermusch3196ef92020-04-02 15:36:16 +020031689 input.ReadRawMessage(this);
Jan Tattermusch7cb55972020-06-02 09:26:25 +020031690 #else
31691 uint tag;
31692 while ((tag = input.ReadTag()) != 0) {
31693 switch(tag) {
31694 default:
31695 if (!pb::ExtensionSet.TryMergeFieldFrom(ref _extensions, input)) {
31696 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
31697 }
31698 break;
31699 case 8: {
31700 Field1 = input.ReadInt32();
31701 break;
31702 }
31703 case 16: {
31704 Field2 = input.ReadInt32();
31705 break;
31706 }
31707 case 24: {
31708 Field3 = input.ReadInt32();
31709 break;
31710 }
31711 case 32: {
31712 Field4 = input.ReadInt32();
31713 break;
31714 }
31715 case 48: {
31716 Field6 = input.ReadInt32();
31717 break;
31718 }
31719 case 56: {
31720 Field7 = input.ReadInt32();
31721 break;
31722 }
31723 case 64: {
31724 Field8 = input.ReadInt32();
31725 break;
31726 }
31727 case 72: {
31728 Field9 = input.ReadInt32();
31729 break;
31730 }
31731 case 80: {
31732 Field10 = input.ReadInt32();
31733 break;
31734 }
31735 }
31736 }
31737 #endif
Jan Tattermusch3196ef92020-04-02 15:36:16 +020031738 }
31739
Jan Tattermusch7cb55972020-06-02 09:26:25 +020031740 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
Jan Tattermusch3196ef92020-04-02 15:36:16 +020031741 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jan Tattermusch77a64e72021-05-10 15:13:50 +020031742 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Jan Tattermusch0df7ddc2020-04-14 12:41:03 +020031743 void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
Sydney Acksman8a57ec82019-03-21 17:36:36 -050031744 uint tag;
31745 while ((tag = input.ReadTag()) != 0) {
31746 switch(tag) {
31747 default:
Jan Tattermusch3196ef92020-04-02 15:36:16 +020031748 if (!pb::ExtensionSet.TryMergeFieldFrom(ref _extensions, ref input)) {
31749 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
Sydney Acksman8a57ec82019-03-21 17:36:36 -050031750 }
31751 break;
31752 case 8: {
31753 Field1 = input.ReadInt32();
31754 break;
31755 }
31756 case 16: {
31757 Field2 = input.ReadInt32();
31758 break;
31759 }
31760 case 24: {
31761 Field3 = input.ReadInt32();
31762 break;
31763 }
31764 case 32: {
31765 Field4 = input.ReadInt32();
31766 break;
31767 }
31768 case 48: {
31769 Field6 = input.ReadInt32();
31770 break;
31771 }
31772 case 56: {
31773 Field7 = input.ReadInt32();
31774 break;
31775 }
31776 case 64: {
31777 Field8 = input.ReadInt32();
31778 break;
31779 }
31780 case 72: {
31781 Field9 = input.ReadInt32();
31782 break;
31783 }
31784 case 80: {
31785 Field10 = input.ReadInt32();
31786 break;
31787 }
31788 }
31789 }
31790 }
Jan Tattermusch7cb55972020-06-02 09:26:25 +020031791 #endif
Sydney Acksman8a57ec82019-03-21 17:36:36 -050031792
Sydney Acksman8a57ec82019-03-21 17:36:36 -050031793 public TValue GetExtension<TValue>(pb::Extension<TestExtensionInsideTable, TValue> extension) {
31794 return pb::ExtensionSet.Get(ref _extensions, extension);
31795 }
31796 public pbc::RepeatedField<TValue> GetExtension<TValue>(pb::RepeatedExtension<TestExtensionInsideTable, TValue> extension) {
31797 return pb::ExtensionSet.Get(ref _extensions, extension);
31798 }
Sydney Acksman0436b8d2019-08-01 03:06:03 -050031799 public pbc::RepeatedField<TValue> GetOrInitializeExtension<TValue>(pb::RepeatedExtension<TestExtensionInsideTable, TValue> extension) {
31800 return pb::ExtensionSet.GetOrInitialize(ref _extensions, extension);
Sydney Acksman011427c2019-05-03 21:34:48 -050031801 }
Sydney Acksman8a57ec82019-03-21 17:36:36 -050031802 public void SetExtension<TValue>(pb::Extension<TestExtensionInsideTable, TValue> extension, TValue value) {
31803 pb::ExtensionSet.Set(ref _extensions, extension, value);
31804 }
31805 public bool HasExtension<TValue>(pb::Extension<TestExtensionInsideTable, TValue> extension) {
31806 return pb::ExtensionSet.Has(ref _extensions, extension);
31807 }
31808 public void ClearExtension<TValue>(pb::Extension<TestExtensionInsideTable, TValue> extension) {
31809 pb::ExtensionSet.Clear(ref _extensions, extension);
31810 }
Sydney Acksman011427c2019-05-03 21:34:48 -050031811 public void ClearExtension<TValue>(pb::RepeatedExtension<TestExtensionInsideTable, TValue> extension) {
31812 pb::ExtensionSet.Clear(ref _extensions, extension);
31813 }
Sydney Acksman8a57ec82019-03-21 17:36:36 -050031814
31815 }
31816
31817 #endregion
31818
31819}
31820
31821#endregion Designer generated code