1 // Generated by the protocol buffer compiler. DO NOT EDIT! 2 // source: unittest_issues.proto 3 #pragma warning disable 1591, 0612, 3021 4 #region Designer generated code 5 6 using pb = global::Google.Protobuf; 7 using pbc = global::Google.Protobuf.Collections; 8 using pbr = global::Google.Protobuf.Reflection; 9 using scg = global::System.Collections.Generic; 10 namespace UnitTest.Issues.TestProtos { 11 12 /// <summary>Holder for reflection information generated from unittest_issues.proto</summary> 13 public static partial class UnittestIssuesReflection { 14 15 #region Descriptor 16 /// <summary>File descriptor for unittest_issues.proto</summary> 17 public static pbr::FileDescriptor Descriptor { 18 get { return descriptor; } 19 } 20 private static pbr::FileDescriptor descriptor; 21 UnittestIssuesReflection()22 static UnittestIssuesReflection() { 23 byte[] descriptorData = global::System.Convert.FromBase64String( 24 string.Concat( 25 "ChV1bml0dGVzdF9pc3N1ZXMucHJvdG8SD3VuaXR0ZXN0X2lzc3VlcyInCghJ", 26 "c3N1ZTMwNxobCgpOZXN0ZWRPbmNlGg0KC05lc3RlZFR3aWNlIrABChNOZWdh", 27 "dGl2ZUVudW1NZXNzYWdlEiwKBXZhbHVlGAEgASgOMh0udW5pdHRlc3RfaXNz", 28 "dWVzLk5lZ2F0aXZlRW51bRIxCgZ2YWx1ZXMYAiADKA4yHS51bml0dGVzdF9p", 29 "c3N1ZXMuTmVnYXRpdmVFbnVtQgIQABI4Cg1wYWNrZWRfdmFsdWVzGAMgAygO", 30 "Mh0udW5pdHRlc3RfaXNzdWVzLk5lZ2F0aXZlRW51bUICEAEiEQoPRGVwcmVj", 31 "YXRlZENoaWxkIrkCChdEZXByZWNhdGVkRmllbGRzTWVzc2FnZRIaCg5Qcmlt", 32 "aXRpdmVWYWx1ZRgBIAEoBUICGAESGgoOUHJpbWl0aXZlQXJyYXkYAiADKAVC", 33 "AhgBEjoKDE1lc3NhZ2VWYWx1ZRgDIAEoCzIgLnVuaXR0ZXN0X2lzc3Vlcy5E", 34 "ZXByZWNhdGVkQ2hpbGRCAhgBEjoKDE1lc3NhZ2VBcnJheRgEIAMoCzIgLnVu", 35 "aXR0ZXN0X2lzc3Vlcy5EZXByZWNhdGVkQ2hpbGRCAhgBEjYKCUVudW1WYWx1", 36 "ZRgFIAEoDjIfLnVuaXR0ZXN0X2lzc3Vlcy5EZXByZWNhdGVkRW51bUICGAES", 37 "NgoJRW51bUFycmF5GAYgAygOMh8udW5pdHRlc3RfaXNzdWVzLkRlcHJlY2F0", 38 "ZWRFbnVtQgIYASIZCglJdGVtRmllbGQSDAoEaXRlbRgBIAEoBSJECg1SZXNl", 39 "cnZlZE5hbWVzEg0KBXR5cGVzGAEgASgFEhIKCmRlc2NyaXB0b3IYAiABKAUa", 40 "EAoOU29tZU5lc3RlZFR5cGUioAEKFVRlc3RKc29uRmllbGRPcmRlcmluZxIT", 41 "CgtwbGFpbl9pbnQzMhgEIAEoBRITCglvMV9zdHJpbmcYAiABKAlIABISCghv", 42 "MV9pbnQzMhgFIAEoBUgAEhQKDHBsYWluX3N0cmluZxgBIAEoCRISCghvMl9p", 43 "bnQzMhgGIAEoBUgBEhMKCW8yX3N0cmluZxgDIAEoCUgBQgQKAm8xQgQKAm8y", 44 "IksKDFRlc3RKc29uTmFtZRIMCgRuYW1lGAEgASgJEhkKC2Rlc2NyaXB0aW9u", 45 "GAIgASgJUgRkZXNjEhIKBGd1aWQYAyABKAlSBGV4aWQqVQoMTmVnYXRpdmVF", 46 "bnVtEhYKEk5FR0FUSVZFX0VOVU1fWkVSTxAAEhYKCUZpdmVCZWxvdxD7////", 47 "//////8BEhUKCE1pbnVzT25lEP///////////wEqLgoORGVwcmVjYXRlZEVu", 48 "dW0SEwoPREVQUkVDQVRFRF9aRVJPEAASBwoDb25lEAFCH0gBqgIaVW5pdFRl", 49 "c3QuSXNzdWVzLlRlc3RQcm90b3NiBnByb3RvMw==")); 50 descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, 51 new pbr::FileDescriptor[] { }, 52 new pbr::GeneratedClrTypeInfo(new[] {typeof(global::UnitTest.Issues.TestProtos.NegativeEnum), typeof(global::UnitTest.Issues.TestProtos.DeprecatedEnum), }, new pbr::GeneratedClrTypeInfo[] { 53 new pbr::GeneratedClrTypeInfo(typeof(global::UnitTest.Issues.TestProtos.Issue307), global::UnitTest.Issues.TestProtos.Issue307.Parser, null, null, null, new pbr::GeneratedClrTypeInfo[] { new pbr::GeneratedClrTypeInfo(typeof(global::UnitTest.Issues.TestProtos.Issue307.Types.NestedOnce), global::UnitTest.Issues.TestProtos.Issue307.Types.NestedOnce.Parser, null, null, null, new pbr::GeneratedClrTypeInfo[] { new pbr::GeneratedClrTypeInfo(typeof(global::UnitTest.Issues.TestProtos.Issue307.Types.NestedOnce.Types.NestedTwice), global::UnitTest.Issues.TestProtos.Issue307.Types.NestedOnce.Types.NestedTwice.Parser, null, null, null, null)})}), 54 new pbr::GeneratedClrTypeInfo(typeof(global::UnitTest.Issues.TestProtos.NegativeEnumMessage), global::UnitTest.Issues.TestProtos.NegativeEnumMessage.Parser, new[]{ "Value", "Values", "PackedValues" }, null, null, null), 55 new pbr::GeneratedClrTypeInfo(typeof(global::UnitTest.Issues.TestProtos.DeprecatedChild), global::UnitTest.Issues.TestProtos.DeprecatedChild.Parser, null, null, null, null), 56 new pbr::GeneratedClrTypeInfo(typeof(global::UnitTest.Issues.TestProtos.DeprecatedFieldsMessage), global::UnitTest.Issues.TestProtos.DeprecatedFieldsMessage.Parser, new[]{ "PrimitiveValue", "PrimitiveArray", "MessageValue", "MessageArray", "EnumValue", "EnumArray" }, null, null, null), 57 new pbr::GeneratedClrTypeInfo(typeof(global::UnitTest.Issues.TestProtos.ItemField), global::UnitTest.Issues.TestProtos.ItemField.Parser, new[]{ "Item" }, null, null, null), 58 new pbr::GeneratedClrTypeInfo(typeof(global::UnitTest.Issues.TestProtos.ReservedNames), global::UnitTest.Issues.TestProtos.ReservedNames.Parser, new[]{ "Types_", "Descriptor_" }, null, null, new pbr::GeneratedClrTypeInfo[] { new pbr::GeneratedClrTypeInfo(typeof(global::UnitTest.Issues.TestProtos.ReservedNames.Types.SomeNestedType), global::UnitTest.Issues.TestProtos.ReservedNames.Types.SomeNestedType.Parser, null, null, null, null)}), 59 new pbr::GeneratedClrTypeInfo(typeof(global::UnitTest.Issues.TestProtos.TestJsonFieldOrdering), global::UnitTest.Issues.TestProtos.TestJsonFieldOrdering.Parser, new[]{ "PlainInt32", "O1String", "O1Int32", "PlainString", "O2Int32", "O2String" }, new[]{ "O1", "O2" }, null, null), 60 new pbr::GeneratedClrTypeInfo(typeof(global::UnitTest.Issues.TestProtos.TestJsonName), global::UnitTest.Issues.TestProtos.TestJsonName.Parser, new[]{ "Name", "Description", "Guid" }, null, null, null) 61 })); 62 } 63 #endregion 64 65 } 66 #region Enums 67 public enum NegativeEnum { 68 [pbr::OriginalName("NEGATIVE_ENUM_ZERO")] Zero = 0, 69 [pbr::OriginalName("FiveBelow")] FiveBelow = -5, 70 [pbr::OriginalName("MinusOne")] MinusOne = -1, 71 } 72 73 public enum DeprecatedEnum { 74 [pbr::OriginalName("DEPRECATED_ZERO")] DeprecatedZero = 0, 75 [pbr::OriginalName("one")] One = 1, 76 } 77 78 #endregion 79 80 #region Messages 81 /// <summary> 82 /// Issue 307: when generating doubly-nested types, any references 83 /// should be of the form A.Types.B.Types.C. 84 /// </summary> 85 public sealed partial class Issue307 : pb::IMessage<Issue307> { 86 private static readonly pb::MessageParser<Issue307> _parser = new pb::MessageParser<Issue307>(() => new Issue307()); 87 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 88 public static pb::MessageParser<Issue307> Parser { get { return _parser; } } 89 90 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 91 public static pbr::MessageDescriptor Descriptor { 92 get { return global::UnitTest.Issues.TestProtos.UnittestIssuesReflection.Descriptor.MessageTypes[0]; } 93 } 94 95 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 96 pbr::MessageDescriptor pb::IMessage.Descriptor { 97 get { return Descriptor; } 98 } 99 100 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] Issue307()101 public Issue307() { 102 OnConstruction(); 103 } 104 OnConstruction()105 partial void OnConstruction(); 106 107 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] Issue307(Issue307 other)108 public Issue307(Issue307 other) : this() { 109 } 110 111 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] Clone()112 public Issue307 Clone() { 113 return new Issue307(this); 114 } 115 116 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] Equals(object other)117 public override bool Equals(object other) { 118 return Equals(other as Issue307); 119 } 120 121 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] Equals(Issue307 other)122 public bool Equals(Issue307 other) { 123 if (ReferenceEquals(other, null)) { 124 return false; 125 } 126 if (ReferenceEquals(other, this)) { 127 return true; 128 } 129 return true; 130 } 131 132 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] GetHashCode()133 public override int GetHashCode() { 134 int hash = 1; 135 return hash; 136 } 137 138 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] ToString()139 public override string ToString() { 140 return pb::JsonFormatter.ToDiagnosticString(this); 141 } 142 143 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] WriteTo(pb::CodedOutputStream output)144 public void WriteTo(pb::CodedOutputStream output) { 145 } 146 147 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] CalculateSize()148 public int CalculateSize() { 149 int size = 0; 150 return size; 151 } 152 153 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] MergeFrom(Issue307 other)154 public void MergeFrom(Issue307 other) { 155 if (other == null) { 156 return; 157 } 158 } 159 160 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] MergeFrom(pb::CodedInputStream input)161 public void MergeFrom(pb::CodedInputStream input) { 162 uint tag; 163 while ((tag = input.ReadTag()) != 0) { 164 switch(tag) { 165 default: 166 input.SkipLastField(); 167 break; 168 } 169 } 170 } 171 172 #region Nested types 173 /// <summary>Container for nested types declared in the Issue307 message type.</summary> 174 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 175 public static partial class Types { 176 public sealed partial class NestedOnce : pb::IMessage<NestedOnce> { 177 private static readonly pb::MessageParser<NestedOnce> _parser = new pb::MessageParser<NestedOnce>(() => new NestedOnce()); 178 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 179 public static pb::MessageParser<NestedOnce> Parser { get { return _parser; } } 180 181 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 182 public static pbr::MessageDescriptor Descriptor { 183 get { return global::UnitTest.Issues.TestProtos.Issue307.Descriptor.NestedTypes[0]; } 184 } 185 186 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 187 pbr::MessageDescriptor pb::IMessage.Descriptor { 188 get { return Descriptor; } 189 } 190 191 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] NestedOnce()192 public NestedOnce() { 193 OnConstruction(); 194 } 195 OnConstruction()196 partial void OnConstruction(); 197 198 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] NestedOnce(NestedOnce other)199 public NestedOnce(NestedOnce other) : this() { 200 } 201 202 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] Clone()203 public NestedOnce Clone() { 204 return new NestedOnce(this); 205 } 206 207 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] Equals(object other)208 public override bool Equals(object other) { 209 return Equals(other as NestedOnce); 210 } 211 212 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] Equals(NestedOnce other)213 public bool Equals(NestedOnce other) { 214 if (ReferenceEquals(other, null)) { 215 return false; 216 } 217 if (ReferenceEquals(other, this)) { 218 return true; 219 } 220 return true; 221 } 222 223 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] GetHashCode()224 public override int GetHashCode() { 225 int hash = 1; 226 return hash; 227 } 228 229 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] ToString()230 public override string ToString() { 231 return pb::JsonFormatter.ToDiagnosticString(this); 232 } 233 234 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] WriteTo(pb::CodedOutputStream output)235 public void WriteTo(pb::CodedOutputStream output) { 236 } 237 238 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] CalculateSize()239 public int CalculateSize() { 240 int size = 0; 241 return size; 242 } 243 244 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] MergeFrom(NestedOnce other)245 public void MergeFrom(NestedOnce other) { 246 if (other == null) { 247 return; 248 } 249 } 250 251 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] MergeFrom(pb::CodedInputStream input)252 public void MergeFrom(pb::CodedInputStream input) { 253 uint tag; 254 while ((tag = input.ReadTag()) != 0) { 255 switch(tag) { 256 default: 257 input.SkipLastField(); 258 break; 259 } 260 } 261 } 262 263 #region Nested types 264 /// <summary>Container for nested types declared in the NestedOnce message type.</summary> 265 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 266 public static partial class Types { 267 public sealed partial class NestedTwice : pb::IMessage<NestedTwice> { 268 private static readonly pb::MessageParser<NestedTwice> _parser = new pb::MessageParser<NestedTwice>(() => new NestedTwice()); 269 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 270 public static pb::MessageParser<NestedTwice> Parser { get { return _parser; } } 271 272 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 273 public static pbr::MessageDescriptor Descriptor { 274 get { return global::UnitTest.Issues.TestProtos.Issue307.Types.NestedOnce.Descriptor.NestedTypes[0]; } 275 } 276 277 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 278 pbr::MessageDescriptor pb::IMessage.Descriptor { 279 get { return Descriptor; } 280 } 281 282 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] NestedTwice()283 public NestedTwice() { 284 OnConstruction(); 285 } 286 OnConstruction()287 partial void OnConstruction(); 288 289 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] NestedTwice(NestedTwice other)290 public NestedTwice(NestedTwice other) : this() { 291 } 292 293 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] Clone()294 public NestedTwice Clone() { 295 return new NestedTwice(this); 296 } 297 298 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] Equals(object other)299 public override bool Equals(object other) { 300 return Equals(other as NestedTwice); 301 } 302 303 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] Equals(NestedTwice other)304 public bool Equals(NestedTwice other) { 305 if (ReferenceEquals(other, null)) { 306 return false; 307 } 308 if (ReferenceEquals(other, this)) { 309 return true; 310 } 311 return true; 312 } 313 314 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] GetHashCode()315 public override int GetHashCode() { 316 int hash = 1; 317 return hash; 318 } 319 320 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] ToString()321 public override string ToString() { 322 return pb::JsonFormatter.ToDiagnosticString(this); 323 } 324 325 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] WriteTo(pb::CodedOutputStream output)326 public void WriteTo(pb::CodedOutputStream output) { 327 } 328 329 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] CalculateSize()330 public int CalculateSize() { 331 int size = 0; 332 return size; 333 } 334 335 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] MergeFrom(NestedTwice other)336 public void MergeFrom(NestedTwice other) { 337 if (other == null) { 338 return; 339 } 340 } 341 342 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] MergeFrom(pb::CodedInputStream input)343 public void MergeFrom(pb::CodedInputStream input) { 344 uint tag; 345 while ((tag = input.ReadTag()) != 0) { 346 switch(tag) { 347 default: 348 input.SkipLastField(); 349 break; 350 } 351 } 352 } 353 354 } 355 356 } 357 #endregion 358 359 } 360 361 } 362 #endregion 363 364 } 365 366 public sealed partial class NegativeEnumMessage : pb::IMessage<NegativeEnumMessage> { 367 private static readonly pb::MessageParser<NegativeEnumMessage> _parser = new pb::MessageParser<NegativeEnumMessage>(() => new NegativeEnumMessage()); 368 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 369 public static pb::MessageParser<NegativeEnumMessage> Parser { get { return _parser; } } 370 371 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 372 public static pbr::MessageDescriptor Descriptor { 373 get { return global::UnitTest.Issues.TestProtos.UnittestIssuesReflection.Descriptor.MessageTypes[1]; } 374 } 375 376 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 377 pbr::MessageDescriptor pb::IMessage.Descriptor { 378 get { return Descriptor; } 379 } 380 381 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] NegativeEnumMessage()382 public NegativeEnumMessage() { 383 OnConstruction(); 384 } 385 OnConstruction()386 partial void OnConstruction(); 387 388 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] NegativeEnumMessage(NegativeEnumMessage other)389 public NegativeEnumMessage(NegativeEnumMessage other) : this() { 390 value_ = other.value_; 391 values_ = other.values_.Clone(); 392 packedValues_ = other.packedValues_.Clone(); 393 } 394 395 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] Clone()396 public NegativeEnumMessage Clone() { 397 return new NegativeEnumMessage(this); 398 } 399 400 /// <summary>Field number for the "value" field.</summary> 401 public const int ValueFieldNumber = 1; 402 private global::UnitTest.Issues.TestProtos.NegativeEnum value_ = 0; 403 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 404 public global::UnitTest.Issues.TestProtos.NegativeEnum Value { 405 get { return value_; } 406 set { 407 value_ = value; 408 } 409 } 410 411 /// <summary>Field number for the "values" field.</summary> 412 public const int ValuesFieldNumber = 2; 413 private static readonly pb::FieldCodec<global::UnitTest.Issues.TestProtos.NegativeEnum> _repeated_values_codec 414 = pb::FieldCodec.ForEnum(16, x => (int) x, x => (global::UnitTest.Issues.TestProtos.NegativeEnum) x); 415 private readonly pbc::RepeatedField<global::UnitTest.Issues.TestProtos.NegativeEnum> values_ = new pbc::RepeatedField<global::UnitTest.Issues.TestProtos.NegativeEnum>(); 416 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 417 public pbc::RepeatedField<global::UnitTest.Issues.TestProtos.NegativeEnum> Values { 418 get { return values_; } 419 } 420 421 /// <summary>Field number for the "packed_values" field.</summary> 422 public const int PackedValuesFieldNumber = 3; 423 private static readonly pb::FieldCodec<global::UnitTest.Issues.TestProtos.NegativeEnum> _repeated_packedValues_codec 424 = pb::FieldCodec.ForEnum(26, x => (int) x, x => (global::UnitTest.Issues.TestProtos.NegativeEnum) x); 425 private readonly pbc::RepeatedField<global::UnitTest.Issues.TestProtos.NegativeEnum> packedValues_ = new pbc::RepeatedField<global::UnitTest.Issues.TestProtos.NegativeEnum>(); 426 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 427 public pbc::RepeatedField<global::UnitTest.Issues.TestProtos.NegativeEnum> PackedValues { 428 get { return packedValues_; } 429 } 430 431 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] Equals(object other)432 public override bool Equals(object other) { 433 return Equals(other as NegativeEnumMessage); 434 } 435 436 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] Equals(NegativeEnumMessage other)437 public bool Equals(NegativeEnumMessage other) { 438 if (ReferenceEquals(other, null)) { 439 return false; 440 } 441 if (ReferenceEquals(other, this)) { 442 return true; 443 } 444 if (Value != other.Value) return false; 445 if(!values_.Equals(other.values_)) return false; 446 if(!packedValues_.Equals(other.packedValues_)) return false; 447 return true; 448 } 449 450 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] GetHashCode()451 public override int GetHashCode() { 452 int hash = 1; 453 if (Value != 0) hash ^= Value.GetHashCode(); 454 hash ^= values_.GetHashCode(); 455 hash ^= packedValues_.GetHashCode(); 456 return hash; 457 } 458 459 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] ToString()460 public override string ToString() { 461 return pb::JsonFormatter.ToDiagnosticString(this); 462 } 463 464 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] WriteTo(pb::CodedOutputStream output)465 public void WriteTo(pb::CodedOutputStream output) { 466 if (Value != 0) { 467 output.WriteRawTag(8); 468 output.WriteEnum((int) Value); 469 } 470 values_.WriteTo(output, _repeated_values_codec); 471 packedValues_.WriteTo(output, _repeated_packedValues_codec); 472 } 473 474 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] CalculateSize()475 public int CalculateSize() { 476 int size = 0; 477 if (Value != 0) { 478 size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) Value); 479 } 480 size += values_.CalculateSize(_repeated_values_codec); 481 size += packedValues_.CalculateSize(_repeated_packedValues_codec); 482 return size; 483 } 484 485 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] MergeFrom(NegativeEnumMessage other)486 public void MergeFrom(NegativeEnumMessage other) { 487 if (other == null) { 488 return; 489 } 490 if (other.Value != 0) { 491 Value = other.Value; 492 } 493 values_.Add(other.values_); 494 packedValues_.Add(other.packedValues_); 495 } 496 497 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] MergeFrom(pb::CodedInputStream input)498 public void MergeFrom(pb::CodedInputStream input) { 499 uint tag; 500 while ((tag = input.ReadTag()) != 0) { 501 switch(tag) { 502 default: 503 input.SkipLastField(); 504 break; 505 case 8: { 506 value_ = (global::UnitTest.Issues.TestProtos.NegativeEnum) input.ReadEnum(); 507 break; 508 } 509 case 18: 510 case 16: { 511 values_.AddEntriesFrom(input, _repeated_values_codec); 512 break; 513 } 514 case 26: 515 case 24: { 516 packedValues_.AddEntriesFrom(input, _repeated_packedValues_codec); 517 break; 518 } 519 } 520 } 521 } 522 523 } 524 525 public sealed partial class DeprecatedChild : pb::IMessage<DeprecatedChild> { 526 private static readonly pb::MessageParser<DeprecatedChild> _parser = new pb::MessageParser<DeprecatedChild>(() => new DeprecatedChild()); 527 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 528 public static pb::MessageParser<DeprecatedChild> Parser { get { return _parser; } } 529 530 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 531 public static pbr::MessageDescriptor Descriptor { 532 get { return global::UnitTest.Issues.TestProtos.UnittestIssuesReflection.Descriptor.MessageTypes[2]; } 533 } 534 535 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 536 pbr::MessageDescriptor pb::IMessage.Descriptor { 537 get { return Descriptor; } 538 } 539 540 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] DeprecatedChild()541 public DeprecatedChild() { 542 OnConstruction(); 543 } 544 OnConstruction()545 partial void OnConstruction(); 546 547 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] DeprecatedChild(DeprecatedChild other)548 public DeprecatedChild(DeprecatedChild other) : this() { 549 } 550 551 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] Clone()552 public DeprecatedChild Clone() { 553 return new DeprecatedChild(this); 554 } 555 556 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] Equals(object other)557 public override bool Equals(object other) { 558 return Equals(other as DeprecatedChild); 559 } 560 561 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] Equals(DeprecatedChild other)562 public bool Equals(DeprecatedChild other) { 563 if (ReferenceEquals(other, null)) { 564 return false; 565 } 566 if (ReferenceEquals(other, this)) { 567 return true; 568 } 569 return true; 570 } 571 572 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] GetHashCode()573 public override int GetHashCode() { 574 int hash = 1; 575 return hash; 576 } 577 578 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] ToString()579 public override string ToString() { 580 return pb::JsonFormatter.ToDiagnosticString(this); 581 } 582 583 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] WriteTo(pb::CodedOutputStream output)584 public void WriteTo(pb::CodedOutputStream output) { 585 } 586 587 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] CalculateSize()588 public int CalculateSize() { 589 int size = 0; 590 return size; 591 } 592 593 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] MergeFrom(DeprecatedChild other)594 public void MergeFrom(DeprecatedChild other) { 595 if (other == null) { 596 return; 597 } 598 } 599 600 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] MergeFrom(pb::CodedInputStream input)601 public void MergeFrom(pb::CodedInputStream input) { 602 uint tag; 603 while ((tag = input.ReadTag()) != 0) { 604 switch(tag) { 605 default: 606 input.SkipLastField(); 607 break; 608 } 609 } 610 } 611 612 } 613 614 public sealed partial class DeprecatedFieldsMessage : pb::IMessage<DeprecatedFieldsMessage> { 615 private static readonly pb::MessageParser<DeprecatedFieldsMessage> _parser = new pb::MessageParser<DeprecatedFieldsMessage>(() => new DeprecatedFieldsMessage()); 616 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 617 public static pb::MessageParser<DeprecatedFieldsMessage> Parser { get { return _parser; } } 618 619 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 620 public static pbr::MessageDescriptor Descriptor { 621 get { return global::UnitTest.Issues.TestProtos.UnittestIssuesReflection.Descriptor.MessageTypes[3]; } 622 } 623 624 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 625 pbr::MessageDescriptor pb::IMessage.Descriptor { 626 get { return Descriptor; } 627 } 628 629 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] DeprecatedFieldsMessage()630 public DeprecatedFieldsMessage() { 631 OnConstruction(); 632 } 633 OnConstruction()634 partial void OnConstruction(); 635 636 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] DeprecatedFieldsMessage(DeprecatedFieldsMessage other)637 public DeprecatedFieldsMessage(DeprecatedFieldsMessage other) : this() { 638 primitiveValue_ = other.primitiveValue_; 639 primitiveArray_ = other.primitiveArray_.Clone(); 640 MessageValue = other.messageValue_ != null ? other.MessageValue.Clone() : null; 641 messageArray_ = other.messageArray_.Clone(); 642 enumValue_ = other.enumValue_; 643 enumArray_ = other.enumArray_.Clone(); 644 } 645 646 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] Clone()647 public DeprecatedFieldsMessage Clone() { 648 return new DeprecatedFieldsMessage(this); 649 } 650 651 /// <summary>Field number for the "PrimitiveValue" field.</summary> 652 public const int PrimitiveValueFieldNumber = 1; 653 private int primitiveValue_; 654 [global::System.ObsoleteAttribute] 655 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 656 public int PrimitiveValue { 657 get { return primitiveValue_; } 658 set { 659 primitiveValue_ = value; 660 } 661 } 662 663 /// <summary>Field number for the "PrimitiveArray" field.</summary> 664 public const int PrimitiveArrayFieldNumber = 2; 665 private static readonly pb::FieldCodec<int> _repeated_primitiveArray_codec 666 = pb::FieldCodec.ForInt32(18); 667 private readonly pbc::RepeatedField<int> primitiveArray_ = new pbc::RepeatedField<int>(); 668 [global::System.ObsoleteAttribute] 669 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 670 public pbc::RepeatedField<int> PrimitiveArray { 671 get { return primitiveArray_; } 672 } 673 674 /// <summary>Field number for the "MessageValue" field.</summary> 675 public const int MessageValueFieldNumber = 3; 676 private global::UnitTest.Issues.TestProtos.DeprecatedChild messageValue_; 677 [global::System.ObsoleteAttribute] 678 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 679 public global::UnitTest.Issues.TestProtos.DeprecatedChild MessageValue { 680 get { return messageValue_; } 681 set { 682 messageValue_ = value; 683 } 684 } 685 686 /// <summary>Field number for the "MessageArray" field.</summary> 687 public const int MessageArrayFieldNumber = 4; 688 private static readonly pb::FieldCodec<global::UnitTest.Issues.TestProtos.DeprecatedChild> _repeated_messageArray_codec 689 = pb::FieldCodec.ForMessage(34, global::UnitTest.Issues.TestProtos.DeprecatedChild.Parser); 690 private readonly pbc::RepeatedField<global::UnitTest.Issues.TestProtos.DeprecatedChild> messageArray_ = new pbc::RepeatedField<global::UnitTest.Issues.TestProtos.DeprecatedChild>(); 691 [global::System.ObsoleteAttribute] 692 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 693 public pbc::RepeatedField<global::UnitTest.Issues.TestProtos.DeprecatedChild> MessageArray { 694 get { return messageArray_; } 695 } 696 697 /// <summary>Field number for the "EnumValue" field.</summary> 698 public const int EnumValueFieldNumber = 5; 699 private global::UnitTest.Issues.TestProtos.DeprecatedEnum enumValue_ = 0; 700 [global::System.ObsoleteAttribute] 701 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 702 public global::UnitTest.Issues.TestProtos.DeprecatedEnum EnumValue { 703 get { return enumValue_; } 704 set { 705 enumValue_ = value; 706 } 707 } 708 709 /// <summary>Field number for the "EnumArray" field.</summary> 710 public const int EnumArrayFieldNumber = 6; 711 private static readonly pb::FieldCodec<global::UnitTest.Issues.TestProtos.DeprecatedEnum> _repeated_enumArray_codec 712 = pb::FieldCodec.ForEnum(50, x => (int) x, x => (global::UnitTest.Issues.TestProtos.DeprecatedEnum) x); 713 private readonly pbc::RepeatedField<global::UnitTest.Issues.TestProtos.DeprecatedEnum> enumArray_ = new pbc::RepeatedField<global::UnitTest.Issues.TestProtos.DeprecatedEnum>(); 714 [global::System.ObsoleteAttribute] 715 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 716 public pbc::RepeatedField<global::UnitTest.Issues.TestProtos.DeprecatedEnum> EnumArray { 717 get { return enumArray_; } 718 } 719 720 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] Equals(object other)721 public override bool Equals(object other) { 722 return Equals(other as DeprecatedFieldsMessage); 723 } 724 725 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] Equals(DeprecatedFieldsMessage other)726 public bool Equals(DeprecatedFieldsMessage other) { 727 if (ReferenceEquals(other, null)) { 728 return false; 729 } 730 if (ReferenceEquals(other, this)) { 731 return true; 732 } 733 if (PrimitiveValue != other.PrimitiveValue) return false; 734 if(!primitiveArray_.Equals(other.primitiveArray_)) return false; 735 if (!object.Equals(MessageValue, other.MessageValue)) return false; 736 if(!messageArray_.Equals(other.messageArray_)) return false; 737 if (EnumValue != other.EnumValue) return false; 738 if(!enumArray_.Equals(other.enumArray_)) return false; 739 return true; 740 } 741 742 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] GetHashCode()743 public override int GetHashCode() { 744 int hash = 1; 745 if (PrimitiveValue != 0) hash ^= PrimitiveValue.GetHashCode(); 746 hash ^= primitiveArray_.GetHashCode(); 747 if (messageValue_ != null) hash ^= MessageValue.GetHashCode(); 748 hash ^= messageArray_.GetHashCode(); 749 if (EnumValue != 0) hash ^= EnumValue.GetHashCode(); 750 hash ^= enumArray_.GetHashCode(); 751 return hash; 752 } 753 754 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] ToString()755 public override string ToString() { 756 return pb::JsonFormatter.ToDiagnosticString(this); 757 } 758 759 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] WriteTo(pb::CodedOutputStream output)760 public void WriteTo(pb::CodedOutputStream output) { 761 if (PrimitiveValue != 0) { 762 output.WriteRawTag(8); 763 output.WriteInt32(PrimitiveValue); 764 } 765 primitiveArray_.WriteTo(output, _repeated_primitiveArray_codec); 766 if (messageValue_ != null) { 767 output.WriteRawTag(26); 768 output.WriteMessage(MessageValue); 769 } 770 messageArray_.WriteTo(output, _repeated_messageArray_codec); 771 if (EnumValue != 0) { 772 output.WriteRawTag(40); 773 output.WriteEnum((int) EnumValue); 774 } 775 enumArray_.WriteTo(output, _repeated_enumArray_codec); 776 } 777 778 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] CalculateSize()779 public int CalculateSize() { 780 int size = 0; 781 if (PrimitiveValue != 0) { 782 size += 1 + pb::CodedOutputStream.ComputeInt32Size(PrimitiveValue); 783 } 784 size += primitiveArray_.CalculateSize(_repeated_primitiveArray_codec); 785 if (messageValue_ != null) { 786 size += 1 + pb::CodedOutputStream.ComputeMessageSize(MessageValue); 787 } 788 size += messageArray_.CalculateSize(_repeated_messageArray_codec); 789 if (EnumValue != 0) { 790 size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) EnumValue); 791 } 792 size += enumArray_.CalculateSize(_repeated_enumArray_codec); 793 return size; 794 } 795 796 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] MergeFrom(DeprecatedFieldsMessage other)797 public void MergeFrom(DeprecatedFieldsMessage other) { 798 if (other == null) { 799 return; 800 } 801 if (other.PrimitiveValue != 0) { 802 PrimitiveValue = other.PrimitiveValue; 803 } 804 primitiveArray_.Add(other.primitiveArray_); 805 if (other.messageValue_ != null) { 806 if (messageValue_ == null) { 807 messageValue_ = new global::UnitTest.Issues.TestProtos.DeprecatedChild(); 808 } 809 MessageValue.MergeFrom(other.MessageValue); 810 } 811 messageArray_.Add(other.messageArray_); 812 if (other.EnumValue != 0) { 813 EnumValue = other.EnumValue; 814 } 815 enumArray_.Add(other.enumArray_); 816 } 817 818 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] MergeFrom(pb::CodedInputStream input)819 public void MergeFrom(pb::CodedInputStream input) { 820 uint tag; 821 while ((tag = input.ReadTag()) != 0) { 822 switch(tag) { 823 default: 824 input.SkipLastField(); 825 break; 826 case 8: { 827 PrimitiveValue = input.ReadInt32(); 828 break; 829 } 830 case 18: 831 case 16: { 832 primitiveArray_.AddEntriesFrom(input, _repeated_primitiveArray_codec); 833 break; 834 } 835 case 26: { 836 if (messageValue_ == null) { 837 messageValue_ = new global::UnitTest.Issues.TestProtos.DeprecatedChild(); 838 } 839 input.ReadMessage(messageValue_); 840 break; 841 } 842 case 34: { 843 messageArray_.AddEntriesFrom(input, _repeated_messageArray_codec); 844 break; 845 } 846 case 40: { 847 enumValue_ = (global::UnitTest.Issues.TestProtos.DeprecatedEnum) input.ReadEnum(); 848 break; 849 } 850 case 50: 851 case 48: { 852 enumArray_.AddEntriesFrom(input, _repeated_enumArray_codec); 853 break; 854 } 855 } 856 } 857 } 858 859 } 860 861 /// <summary> 862 /// Issue 45: http://code.google.com/p/protobuf-csharp-port/issues/detail?id=45 863 /// </summary> 864 public sealed partial class ItemField : pb::IMessage<ItemField> { 865 private static readonly pb::MessageParser<ItemField> _parser = new pb::MessageParser<ItemField>(() => new ItemField()); 866 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 867 public static pb::MessageParser<ItemField> Parser { get { return _parser; } } 868 869 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 870 public static pbr::MessageDescriptor Descriptor { 871 get { return global::UnitTest.Issues.TestProtos.UnittestIssuesReflection.Descriptor.MessageTypes[4]; } 872 } 873 874 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 875 pbr::MessageDescriptor pb::IMessage.Descriptor { 876 get { return Descriptor; } 877 } 878 879 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] ItemField()880 public ItemField() { 881 OnConstruction(); 882 } 883 OnConstruction()884 partial void OnConstruction(); 885 886 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] ItemField(ItemField other)887 public ItemField(ItemField other) : this() { 888 item_ = other.item_; 889 } 890 891 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] Clone()892 public ItemField Clone() { 893 return new ItemField(this); 894 } 895 896 /// <summary>Field number for the "item" field.</summary> 897 public const int ItemFieldNumber = 1; 898 private int item_; 899 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 900 public int Item { 901 get { return item_; } 902 set { 903 item_ = value; 904 } 905 } 906 907 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] Equals(object other)908 public override bool Equals(object other) { 909 return Equals(other as ItemField); 910 } 911 912 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] Equals(ItemField other)913 public bool Equals(ItemField other) { 914 if (ReferenceEquals(other, null)) { 915 return false; 916 } 917 if (ReferenceEquals(other, this)) { 918 return true; 919 } 920 if (Item != other.Item) return false; 921 return true; 922 } 923 924 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] GetHashCode()925 public override int GetHashCode() { 926 int hash = 1; 927 if (Item != 0) hash ^= Item.GetHashCode(); 928 return hash; 929 } 930 931 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] ToString()932 public override string ToString() { 933 return pb::JsonFormatter.ToDiagnosticString(this); 934 } 935 936 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] WriteTo(pb::CodedOutputStream output)937 public void WriteTo(pb::CodedOutputStream output) { 938 if (Item != 0) { 939 output.WriteRawTag(8); 940 output.WriteInt32(Item); 941 } 942 } 943 944 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] CalculateSize()945 public int CalculateSize() { 946 int size = 0; 947 if (Item != 0) { 948 size += 1 + pb::CodedOutputStream.ComputeInt32Size(Item); 949 } 950 return size; 951 } 952 953 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] MergeFrom(ItemField other)954 public void MergeFrom(ItemField other) { 955 if (other == null) { 956 return; 957 } 958 if (other.Item != 0) { 959 Item = other.Item; 960 } 961 } 962 963 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] MergeFrom(pb::CodedInputStream input)964 public void MergeFrom(pb::CodedInputStream input) { 965 uint tag; 966 while ((tag = input.ReadTag()) != 0) { 967 switch(tag) { 968 default: 969 input.SkipLastField(); 970 break; 971 case 8: { 972 Item = input.ReadInt32(); 973 break; 974 } 975 } 976 } 977 } 978 979 } 980 981 public sealed partial class ReservedNames : pb::IMessage<ReservedNames> { 982 private static readonly pb::MessageParser<ReservedNames> _parser = new pb::MessageParser<ReservedNames>(() => new ReservedNames()); 983 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 984 public static pb::MessageParser<ReservedNames> Parser { get { return _parser; } } 985 986 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 987 public static pbr::MessageDescriptor Descriptor { 988 get { return global::UnitTest.Issues.TestProtos.UnittestIssuesReflection.Descriptor.MessageTypes[5]; } 989 } 990 991 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 992 pbr::MessageDescriptor pb::IMessage.Descriptor { 993 get { return Descriptor; } 994 } 995 996 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] ReservedNames()997 public ReservedNames() { 998 OnConstruction(); 999 } 1000 OnConstruction()1001 partial void OnConstruction(); 1002 1003 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] ReservedNames(ReservedNames other)1004 public ReservedNames(ReservedNames other) : this() { 1005 types_ = other.types_; 1006 descriptor_ = other.descriptor_; 1007 } 1008 1009 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] Clone()1010 public ReservedNames Clone() { 1011 return new ReservedNames(this); 1012 } 1013 1014 /// <summary>Field number for the "types" field.</summary> 1015 public const int Types_FieldNumber = 1; 1016 private int types_; 1017 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 1018 public int Types_ { 1019 get { return types_; } 1020 set { 1021 types_ = value; 1022 } 1023 } 1024 1025 /// <summary>Field number for the "descriptor" field.</summary> 1026 public const int Descriptor_FieldNumber = 2; 1027 private int descriptor_; 1028 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 1029 public int Descriptor_ { 1030 get { return descriptor_; } 1031 set { 1032 descriptor_ = value; 1033 } 1034 } 1035 1036 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] Equals(object other)1037 public override bool Equals(object other) { 1038 return Equals(other as ReservedNames); 1039 } 1040 1041 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] Equals(ReservedNames other)1042 public bool Equals(ReservedNames other) { 1043 if (ReferenceEquals(other, null)) { 1044 return false; 1045 } 1046 if (ReferenceEquals(other, this)) { 1047 return true; 1048 } 1049 if (Types_ != other.Types_) return false; 1050 if (Descriptor_ != other.Descriptor_) return false; 1051 return true; 1052 } 1053 1054 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] GetHashCode()1055 public override int GetHashCode() { 1056 int hash = 1; 1057 if (Types_ != 0) hash ^= Types_.GetHashCode(); 1058 if (Descriptor_ != 0) hash ^= Descriptor_.GetHashCode(); 1059 return hash; 1060 } 1061 1062 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] ToString()1063 public override string ToString() { 1064 return pb::JsonFormatter.ToDiagnosticString(this); 1065 } 1066 1067 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] WriteTo(pb::CodedOutputStream output)1068 public void WriteTo(pb::CodedOutputStream output) { 1069 if (Types_ != 0) { 1070 output.WriteRawTag(8); 1071 output.WriteInt32(Types_); 1072 } 1073 if (Descriptor_ != 0) { 1074 output.WriteRawTag(16); 1075 output.WriteInt32(Descriptor_); 1076 } 1077 } 1078 1079 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] CalculateSize()1080 public int CalculateSize() { 1081 int size = 0; 1082 if (Types_ != 0) { 1083 size += 1 + pb::CodedOutputStream.ComputeInt32Size(Types_); 1084 } 1085 if (Descriptor_ != 0) { 1086 size += 1 + pb::CodedOutputStream.ComputeInt32Size(Descriptor_); 1087 } 1088 return size; 1089 } 1090 1091 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] MergeFrom(ReservedNames other)1092 public void MergeFrom(ReservedNames other) { 1093 if (other == null) { 1094 return; 1095 } 1096 if (other.Types_ != 0) { 1097 Types_ = other.Types_; 1098 } 1099 if (other.Descriptor_ != 0) { 1100 Descriptor_ = other.Descriptor_; 1101 } 1102 } 1103 1104 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] MergeFrom(pb::CodedInputStream input)1105 public void MergeFrom(pb::CodedInputStream input) { 1106 uint tag; 1107 while ((tag = input.ReadTag()) != 0) { 1108 switch(tag) { 1109 default: 1110 input.SkipLastField(); 1111 break; 1112 case 8: { 1113 Types_ = input.ReadInt32(); 1114 break; 1115 } 1116 case 16: { 1117 Descriptor_ = input.ReadInt32(); 1118 break; 1119 } 1120 } 1121 } 1122 } 1123 1124 #region Nested types 1125 /// <summary>Container for nested types declared in the ReservedNames message type.</summary> 1126 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 1127 public static partial class Types { 1128 /// <summary> 1129 /// Force a nested type called Types 1130 /// </summary> 1131 public sealed partial class SomeNestedType : pb::IMessage<SomeNestedType> { 1132 private static readonly pb::MessageParser<SomeNestedType> _parser = new pb::MessageParser<SomeNestedType>(() => new SomeNestedType()); 1133 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 1134 public static pb::MessageParser<SomeNestedType> Parser { get { return _parser; } } 1135 1136 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 1137 public static pbr::MessageDescriptor Descriptor { 1138 get { return global::UnitTest.Issues.TestProtos.ReservedNames.Descriptor.NestedTypes[0]; } 1139 } 1140 1141 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 1142 pbr::MessageDescriptor pb::IMessage.Descriptor { 1143 get { return Descriptor; } 1144 } 1145 1146 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] SomeNestedType()1147 public SomeNestedType() { 1148 OnConstruction(); 1149 } 1150 OnConstruction()1151 partial void OnConstruction(); 1152 1153 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] SomeNestedType(SomeNestedType other)1154 public SomeNestedType(SomeNestedType other) : this() { 1155 } 1156 1157 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] Clone()1158 public SomeNestedType Clone() { 1159 return new SomeNestedType(this); 1160 } 1161 1162 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] Equals(object other)1163 public override bool Equals(object other) { 1164 return Equals(other as SomeNestedType); 1165 } 1166 1167 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] Equals(SomeNestedType other)1168 public bool Equals(SomeNestedType other) { 1169 if (ReferenceEquals(other, null)) { 1170 return false; 1171 } 1172 if (ReferenceEquals(other, this)) { 1173 return true; 1174 } 1175 return true; 1176 } 1177 1178 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] GetHashCode()1179 public override int GetHashCode() { 1180 int hash = 1; 1181 return hash; 1182 } 1183 1184 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] ToString()1185 public override string ToString() { 1186 return pb::JsonFormatter.ToDiagnosticString(this); 1187 } 1188 1189 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] WriteTo(pb::CodedOutputStream output)1190 public void WriteTo(pb::CodedOutputStream output) { 1191 } 1192 1193 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] CalculateSize()1194 public int CalculateSize() { 1195 int size = 0; 1196 return size; 1197 } 1198 1199 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] MergeFrom(SomeNestedType other)1200 public void MergeFrom(SomeNestedType other) { 1201 if (other == null) { 1202 return; 1203 } 1204 } 1205 1206 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] MergeFrom(pb::CodedInputStream input)1207 public void MergeFrom(pb::CodedInputStream input) { 1208 uint tag; 1209 while ((tag = input.ReadTag()) != 0) { 1210 switch(tag) { 1211 default: 1212 input.SkipLastField(); 1213 break; 1214 } 1215 } 1216 } 1217 1218 } 1219 1220 } 1221 #endregion 1222 1223 } 1224 1225 /// <summary> 1226 /// These fields are deliberately not declared in numeric 1227 /// order, and the oneof fields aren't contiguous either. 1228 /// This allows for reasonably robust tests of JSON output 1229 /// ordering. 1230 /// TestFieldOrderings in unittest_proto3.proto is similar, 1231 /// but doesn't include oneofs. 1232 /// TODO: Consider adding oneofs to TestFieldOrderings, although 1233 /// that will require fixing other tests in multiple platforms. 1234 /// Alternatively, consider just adding this to 1235 /// unittest_proto3.proto if multiple platforms want it. 1236 /// </summary> 1237 public sealed partial class TestJsonFieldOrdering : pb::IMessage<TestJsonFieldOrdering> { 1238 private static readonly pb::MessageParser<TestJsonFieldOrdering> _parser = new pb::MessageParser<TestJsonFieldOrdering>(() => new TestJsonFieldOrdering()); 1239 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 1240 public static pb::MessageParser<TestJsonFieldOrdering> Parser { get { return _parser; } } 1241 1242 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 1243 public static pbr::MessageDescriptor Descriptor { 1244 get { return global::UnitTest.Issues.TestProtos.UnittestIssuesReflection.Descriptor.MessageTypes[6]; } 1245 } 1246 1247 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 1248 pbr::MessageDescriptor pb::IMessage.Descriptor { 1249 get { return Descriptor; } 1250 } 1251 1252 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] TestJsonFieldOrdering()1253 public TestJsonFieldOrdering() { 1254 OnConstruction(); 1255 } 1256 OnConstruction()1257 partial void OnConstruction(); 1258 1259 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] TestJsonFieldOrdering(TestJsonFieldOrdering other)1260 public TestJsonFieldOrdering(TestJsonFieldOrdering other) : this() { 1261 plainInt32_ = other.plainInt32_; 1262 plainString_ = other.plainString_; 1263 switch (other.O1Case) { 1264 case O1OneofCase.O1String: 1265 O1String = other.O1String; 1266 break; 1267 case O1OneofCase.O1Int32: 1268 O1Int32 = other.O1Int32; 1269 break; 1270 } 1271 1272 switch (other.O2Case) { 1273 case O2OneofCase.O2Int32: 1274 O2Int32 = other.O2Int32; 1275 break; 1276 case O2OneofCase.O2String: 1277 O2String = other.O2String; 1278 break; 1279 } 1280 1281 } 1282 1283 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] Clone()1284 public TestJsonFieldOrdering Clone() { 1285 return new TestJsonFieldOrdering(this); 1286 } 1287 1288 /// <summary>Field number for the "plain_int32" field.</summary> 1289 public const int PlainInt32FieldNumber = 4; 1290 private int plainInt32_; 1291 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 1292 public int PlainInt32 { 1293 get { return plainInt32_; } 1294 set { 1295 plainInt32_ = value; 1296 } 1297 } 1298 1299 /// <summary>Field number for the "o1_string" field.</summary> 1300 public const int O1StringFieldNumber = 2; 1301 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 1302 public string O1String { 1303 get { return o1Case_ == O1OneofCase.O1String ? (string) o1_ : ""; } 1304 set { 1305 o1_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); 1306 o1Case_ = O1OneofCase.O1String; 1307 } 1308 } 1309 1310 /// <summary>Field number for the "o1_int32" field.</summary> 1311 public const int O1Int32FieldNumber = 5; 1312 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 1313 public int O1Int32 { 1314 get { return o1Case_ == O1OneofCase.O1Int32 ? (int) o1_ : 0; } 1315 set { 1316 o1_ = value; 1317 o1Case_ = O1OneofCase.O1Int32; 1318 } 1319 } 1320 1321 /// <summary>Field number for the "plain_string" field.</summary> 1322 public const int PlainStringFieldNumber = 1; 1323 private string plainString_ = ""; 1324 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 1325 public string PlainString { 1326 get { return plainString_; } 1327 set { 1328 plainString_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); 1329 } 1330 } 1331 1332 /// <summary>Field number for the "o2_int32" field.</summary> 1333 public const int O2Int32FieldNumber = 6; 1334 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 1335 public int O2Int32 { 1336 get { return o2Case_ == O2OneofCase.O2Int32 ? (int) o2_ : 0; } 1337 set { 1338 o2_ = value; 1339 o2Case_ = O2OneofCase.O2Int32; 1340 } 1341 } 1342 1343 /// <summary>Field number for the "o2_string" field.</summary> 1344 public const int O2StringFieldNumber = 3; 1345 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 1346 public string O2String { 1347 get { return o2Case_ == O2OneofCase.O2String ? (string) o2_ : ""; } 1348 set { 1349 o2_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); 1350 o2Case_ = O2OneofCase.O2String; 1351 } 1352 } 1353 1354 private object o1_; 1355 /// <summary>Enum of possible cases for the "o1" oneof.</summary> 1356 public enum O1OneofCase { 1357 None = 0, 1358 O1String = 2, 1359 O1Int32 = 5, 1360 } 1361 private O1OneofCase o1Case_ = O1OneofCase.None; 1362 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 1363 public O1OneofCase O1Case { 1364 get { return o1Case_; } 1365 } 1366 1367 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] ClearO1()1368 public void ClearO1() { 1369 o1Case_ = O1OneofCase.None; 1370 o1_ = null; 1371 } 1372 1373 private object o2_; 1374 /// <summary>Enum of possible cases for the "o2" oneof.</summary> 1375 public enum O2OneofCase { 1376 None = 0, 1377 O2Int32 = 6, 1378 O2String = 3, 1379 } 1380 private O2OneofCase o2Case_ = O2OneofCase.None; 1381 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 1382 public O2OneofCase O2Case { 1383 get { return o2Case_; } 1384 } 1385 1386 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] ClearO2()1387 public void ClearO2() { 1388 o2Case_ = O2OneofCase.None; 1389 o2_ = null; 1390 } 1391 1392 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] Equals(object other)1393 public override bool Equals(object other) { 1394 return Equals(other as TestJsonFieldOrdering); 1395 } 1396 1397 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] Equals(TestJsonFieldOrdering other)1398 public bool Equals(TestJsonFieldOrdering other) { 1399 if (ReferenceEquals(other, null)) { 1400 return false; 1401 } 1402 if (ReferenceEquals(other, this)) { 1403 return true; 1404 } 1405 if (PlainInt32 != other.PlainInt32) return false; 1406 if (O1String != other.O1String) return false; 1407 if (O1Int32 != other.O1Int32) return false; 1408 if (PlainString != other.PlainString) return false; 1409 if (O2Int32 != other.O2Int32) return false; 1410 if (O2String != other.O2String) return false; 1411 if (O1Case != other.O1Case) return false; 1412 if (O2Case != other.O2Case) return false; 1413 return true; 1414 } 1415 1416 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] GetHashCode()1417 public override int GetHashCode() { 1418 int hash = 1; 1419 if (PlainInt32 != 0) hash ^= PlainInt32.GetHashCode(); 1420 if (o1Case_ == O1OneofCase.O1String) hash ^= O1String.GetHashCode(); 1421 if (o1Case_ == O1OneofCase.O1Int32) hash ^= O1Int32.GetHashCode(); 1422 if (PlainString.Length != 0) hash ^= PlainString.GetHashCode(); 1423 if (o2Case_ == O2OneofCase.O2Int32) hash ^= O2Int32.GetHashCode(); 1424 if (o2Case_ == O2OneofCase.O2String) hash ^= O2String.GetHashCode(); 1425 hash ^= (int) o1Case_; 1426 hash ^= (int) o2Case_; 1427 return hash; 1428 } 1429 1430 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] ToString()1431 public override string ToString() { 1432 return pb::JsonFormatter.ToDiagnosticString(this); 1433 } 1434 1435 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] WriteTo(pb::CodedOutputStream output)1436 public void WriteTo(pb::CodedOutputStream output) { 1437 if (PlainString.Length != 0) { 1438 output.WriteRawTag(10); 1439 output.WriteString(PlainString); 1440 } 1441 if (o1Case_ == O1OneofCase.O1String) { 1442 output.WriteRawTag(18); 1443 output.WriteString(O1String); 1444 } 1445 if (o2Case_ == O2OneofCase.O2String) { 1446 output.WriteRawTag(26); 1447 output.WriteString(O2String); 1448 } 1449 if (PlainInt32 != 0) { 1450 output.WriteRawTag(32); 1451 output.WriteInt32(PlainInt32); 1452 } 1453 if (o1Case_ == O1OneofCase.O1Int32) { 1454 output.WriteRawTag(40); 1455 output.WriteInt32(O1Int32); 1456 } 1457 if (o2Case_ == O2OneofCase.O2Int32) { 1458 output.WriteRawTag(48); 1459 output.WriteInt32(O2Int32); 1460 } 1461 } 1462 1463 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] CalculateSize()1464 public int CalculateSize() { 1465 int size = 0; 1466 if (PlainInt32 != 0) { 1467 size += 1 + pb::CodedOutputStream.ComputeInt32Size(PlainInt32); 1468 } 1469 if (o1Case_ == O1OneofCase.O1String) { 1470 size += 1 + pb::CodedOutputStream.ComputeStringSize(O1String); 1471 } 1472 if (o1Case_ == O1OneofCase.O1Int32) { 1473 size += 1 + pb::CodedOutputStream.ComputeInt32Size(O1Int32); 1474 } 1475 if (PlainString.Length != 0) { 1476 size += 1 + pb::CodedOutputStream.ComputeStringSize(PlainString); 1477 } 1478 if (o2Case_ == O2OneofCase.O2Int32) { 1479 size += 1 + pb::CodedOutputStream.ComputeInt32Size(O2Int32); 1480 } 1481 if (o2Case_ == O2OneofCase.O2String) { 1482 size += 1 + pb::CodedOutputStream.ComputeStringSize(O2String); 1483 } 1484 return size; 1485 } 1486 1487 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] MergeFrom(TestJsonFieldOrdering other)1488 public void MergeFrom(TestJsonFieldOrdering other) { 1489 if (other == null) { 1490 return; 1491 } 1492 if (other.PlainInt32 != 0) { 1493 PlainInt32 = other.PlainInt32; 1494 } 1495 if (other.PlainString.Length != 0) { 1496 PlainString = other.PlainString; 1497 } 1498 switch (other.O1Case) { 1499 case O1OneofCase.O1String: 1500 O1String = other.O1String; 1501 break; 1502 case O1OneofCase.O1Int32: 1503 O1Int32 = other.O1Int32; 1504 break; 1505 } 1506 1507 switch (other.O2Case) { 1508 case O2OneofCase.O2Int32: 1509 O2Int32 = other.O2Int32; 1510 break; 1511 case O2OneofCase.O2String: 1512 O2String = other.O2String; 1513 break; 1514 } 1515 1516 } 1517 1518 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] MergeFrom(pb::CodedInputStream input)1519 public void MergeFrom(pb::CodedInputStream input) { 1520 uint tag; 1521 while ((tag = input.ReadTag()) != 0) { 1522 switch(tag) { 1523 default: 1524 input.SkipLastField(); 1525 break; 1526 case 10: { 1527 PlainString = input.ReadString(); 1528 break; 1529 } 1530 case 18: { 1531 O1String = input.ReadString(); 1532 break; 1533 } 1534 case 26: { 1535 O2String = input.ReadString(); 1536 break; 1537 } 1538 case 32: { 1539 PlainInt32 = input.ReadInt32(); 1540 break; 1541 } 1542 case 40: { 1543 O1Int32 = input.ReadInt32(); 1544 break; 1545 } 1546 case 48: { 1547 O2Int32 = input.ReadInt32(); 1548 break; 1549 } 1550 } 1551 } 1552 } 1553 1554 } 1555 1556 public sealed partial class TestJsonName : pb::IMessage<TestJsonName> { 1557 private static readonly pb::MessageParser<TestJsonName> _parser = new pb::MessageParser<TestJsonName>(() => new TestJsonName()); 1558 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 1559 public static pb::MessageParser<TestJsonName> Parser { get { return _parser; } } 1560 1561 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 1562 public static pbr::MessageDescriptor Descriptor { 1563 get { return global::UnitTest.Issues.TestProtos.UnittestIssuesReflection.Descriptor.MessageTypes[7]; } 1564 } 1565 1566 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 1567 pbr::MessageDescriptor pb::IMessage.Descriptor { 1568 get { return Descriptor; } 1569 } 1570 1571 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] TestJsonName()1572 public TestJsonName() { 1573 OnConstruction(); 1574 } 1575 OnConstruction()1576 partial void OnConstruction(); 1577 1578 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] TestJsonName(TestJsonName other)1579 public TestJsonName(TestJsonName other) : this() { 1580 name_ = other.name_; 1581 description_ = other.description_; 1582 guid_ = other.guid_; 1583 } 1584 1585 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] Clone()1586 public TestJsonName Clone() { 1587 return new TestJsonName(this); 1588 } 1589 1590 /// <summary>Field number for the "name" field.</summary> 1591 public const int NameFieldNumber = 1; 1592 private string name_ = ""; 1593 /// <summary> 1594 /// Message for testing the effects for of the json_name option 1595 /// </summary> 1596 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 1597 public string Name { 1598 get { return name_; } 1599 set { 1600 name_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); 1601 } 1602 } 1603 1604 /// <summary>Field number for the "description" field.</summary> 1605 public const int DescriptionFieldNumber = 2; 1606 private string description_ = ""; 1607 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 1608 public string Description { 1609 get { return description_; } 1610 set { 1611 description_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); 1612 } 1613 } 1614 1615 /// <summary>Field number for the "guid" field.</summary> 1616 public const int GuidFieldNumber = 3; 1617 private string guid_ = ""; 1618 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 1619 public string Guid { 1620 get { return guid_; } 1621 set { 1622 guid_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); 1623 } 1624 } 1625 1626 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] Equals(object other)1627 public override bool Equals(object other) { 1628 return Equals(other as TestJsonName); 1629 } 1630 1631 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] Equals(TestJsonName other)1632 public bool Equals(TestJsonName other) { 1633 if (ReferenceEquals(other, null)) { 1634 return false; 1635 } 1636 if (ReferenceEquals(other, this)) { 1637 return true; 1638 } 1639 if (Name != other.Name) return false; 1640 if (Description != other.Description) return false; 1641 if (Guid != other.Guid) return false; 1642 return true; 1643 } 1644 1645 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] GetHashCode()1646 public override int GetHashCode() { 1647 int hash = 1; 1648 if (Name.Length != 0) hash ^= Name.GetHashCode(); 1649 if (Description.Length != 0) hash ^= Description.GetHashCode(); 1650 if (Guid.Length != 0) hash ^= Guid.GetHashCode(); 1651 return hash; 1652 } 1653 1654 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] ToString()1655 public override string ToString() { 1656 return pb::JsonFormatter.ToDiagnosticString(this); 1657 } 1658 1659 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] WriteTo(pb::CodedOutputStream output)1660 public void WriteTo(pb::CodedOutputStream output) { 1661 if (Name.Length != 0) { 1662 output.WriteRawTag(10); 1663 output.WriteString(Name); 1664 } 1665 if (Description.Length != 0) { 1666 output.WriteRawTag(18); 1667 output.WriteString(Description); 1668 } 1669 if (Guid.Length != 0) { 1670 output.WriteRawTag(26); 1671 output.WriteString(Guid); 1672 } 1673 } 1674 1675 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] CalculateSize()1676 public int CalculateSize() { 1677 int size = 0; 1678 if (Name.Length != 0) { 1679 size += 1 + pb::CodedOutputStream.ComputeStringSize(Name); 1680 } 1681 if (Description.Length != 0) { 1682 size += 1 + pb::CodedOutputStream.ComputeStringSize(Description); 1683 } 1684 if (Guid.Length != 0) { 1685 size += 1 + pb::CodedOutputStream.ComputeStringSize(Guid); 1686 } 1687 return size; 1688 } 1689 1690 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] MergeFrom(TestJsonName other)1691 public void MergeFrom(TestJsonName other) { 1692 if (other == null) { 1693 return; 1694 } 1695 if (other.Name.Length != 0) { 1696 Name = other.Name; 1697 } 1698 if (other.Description.Length != 0) { 1699 Description = other.Description; 1700 } 1701 if (other.Guid.Length != 0) { 1702 Guid = other.Guid; 1703 } 1704 } 1705 1706 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] MergeFrom(pb::CodedInputStream input)1707 public void MergeFrom(pb::CodedInputStream input) { 1708 uint tag; 1709 while ((tag = input.ReadTag()) != 0) { 1710 switch(tag) { 1711 default: 1712 input.SkipLastField(); 1713 break; 1714 case 10: { 1715 Name = input.ReadString(); 1716 break; 1717 } 1718 case 18: { 1719 Description = input.ReadString(); 1720 break; 1721 } 1722 case 26: { 1723 Guid = input.ReadString(); 1724 break; 1725 } 1726 } 1727 } 1728 } 1729 1730 } 1731 1732 #endregion 1733 1734 } 1735 1736 #endregion Designer generated code 1737