1 // <auto-generated> 2 // Generated by the protocol buffer compiler. DO NOT EDIT! 3 // source: csharp/protos/unittest.proto 4 // </auto-generated> 5 #pragma warning disable 1591, 0612, 3021, 8981 6 #region Designer generated code 7 8 using pb = global::Google.Protobuf; 9 using pbc = global::Google.Protobuf.Collections; 10 using pbr = global::Google.Protobuf.Reflection; 11 using scg = global::System.Collections.Generic; 12 namespace Google.Protobuf.TestProtos.Proto2 { 13 14 /// <summary>Holder for reflection information generated from csharp/protos/unittest.proto</summary> 15 public static partial class UnittestReflection { 16 17 #region Descriptor 18 /// <summary>File descriptor for csharp/protos/unittest.proto</summary> 19 public static pbr::FileDescriptor Descriptor { 20 get { return descriptor; } 21 } 22 private static pbr::FileDescriptor descriptor; 23 UnittestReflection()24 static UnittestReflection() { 25 byte[] descriptorData = global::System.Convert.FromBase64String( 26 string.Concat( 27 "Chxjc2hhcnAvcHJvdG9zL3VuaXR0ZXN0LnByb3RvEhhwcm90b2J1Zl91bml0", 28 "dGVzdF9wcm90bzIaI2NzaGFycC9wcm90b3MvdW5pdHRlc3RfaW1wb3J0LnBy", 29 "b3RvIvwZCgxUZXN0QWxsVHlwZXMSFgoOb3B0aW9uYWxfaW50MzIYASABKAUS", 30 "FgoOb3B0aW9uYWxfaW50NjQYAiABKAMSFwoPb3B0aW9uYWxfdWludDMyGAMg", 31 "ASgNEhcKD29wdGlvbmFsX3VpbnQ2NBgEIAEoBBIXCg9vcHRpb25hbF9zaW50", 32 "MzIYBSABKBESFwoPb3B0aW9uYWxfc2ludDY0GAYgASgSEhgKEG9wdGlvbmFs", 33 "X2ZpeGVkMzIYByABKAcSGAoQb3B0aW9uYWxfZml4ZWQ2NBgIIAEoBhIZChFv", 34 "cHRpb25hbF9zZml4ZWQzMhgJIAEoDxIZChFvcHRpb25hbF9zZml4ZWQ2NBgK", 35 "IAEoEBIWCg5vcHRpb25hbF9mbG9hdBgLIAEoAhIXCg9vcHRpb25hbF9kb3Vi", 36 "bGUYDCABKAESFQoNb3B0aW9uYWxfYm9vbBgNIAEoCBIXCg9vcHRpb25hbF9z", 37 "dHJpbmcYDiABKAkSFgoOb3B0aW9uYWxfYnl0ZXMYDyABKAwSSwoNb3B0aW9u", 38 "YWxncm91cBgQIAEoCjI0LnByb3RvYnVmX3VuaXR0ZXN0X3Byb3RvMi5UZXN0", 39 "QWxsVHlwZXMuT3B0aW9uYWxHcm91cBJVChdvcHRpb25hbF9uZXN0ZWRfbWVz", 40 "c2FnZRgSIAEoCzI0LnByb3RvYnVmX3VuaXR0ZXN0X3Byb3RvMi5UZXN0QWxs", 41 "VHlwZXMuTmVzdGVkTWVzc2FnZRJKChhvcHRpb25hbF9mb3JlaWduX21lc3Nh", 42 "Z2UYEyABKAsyKC5wcm90b2J1Zl91bml0dGVzdF9wcm90bzIuRm9yZWlnbk1l", 43 "c3NhZ2USTwoXb3B0aW9uYWxfaW1wb3J0X21lc3NhZ2UYFCABKAsyLi5wcm90", 44 "b2J1Zl91bml0dGVzdF9pbXBvcnRfcHJvdG8yLkltcG9ydE1lc3NhZ2USTwoU", 45 "b3B0aW9uYWxfbmVzdGVkX2VudW0YFSABKA4yMS5wcm90b2J1Zl91bml0dGVz", 46 "dF9wcm90bzIuVGVzdEFsbFR5cGVzLk5lc3RlZEVudW0SRAoVb3B0aW9uYWxf", 47 "Zm9yZWlnbl9lbnVtGBYgASgOMiUucHJvdG9idWZfdW5pdHRlc3RfcHJvdG8y", 48 "LkZvcmVpZ25FbnVtEkkKFG9wdGlvbmFsX2ltcG9ydF9lbnVtGBcgASgOMisu", 49 "cHJvdG9idWZfdW5pdHRlc3RfaW1wb3J0X3Byb3RvMi5JbXBvcnRFbnVtEiEK", 50 "FW9wdGlvbmFsX3N0cmluZ19waWVjZRgYIAEoCUICCAISGQoNb3B0aW9uYWxf", 51 "Y29yZBgZIAEoCUICCAESXAoeb3B0aW9uYWxfcHVibGljX2ltcG9ydF9tZXNz", 52 "YWdlGBogASgLMjQucHJvdG9idWZfdW5pdHRlc3RfaW1wb3J0X3Byb3RvMi5Q", 53 "dWJsaWNJbXBvcnRNZXNzYWdlElcKFW9wdGlvbmFsX2xhenlfbWVzc2FnZRgb", 54 "IAEoCzI0LnByb3RvYnVmX3VuaXR0ZXN0X3Byb3RvMi5UZXN0QWxsVHlwZXMu", 55 "TmVzdGVkTWVzc2FnZUICKAESFgoOcmVwZWF0ZWRfaW50MzIYHyADKAUSFgoO", 56 "cmVwZWF0ZWRfaW50NjQYICADKAMSFwoPcmVwZWF0ZWRfdWludDMyGCEgAygN", 57 "EhcKD3JlcGVhdGVkX3VpbnQ2NBgiIAMoBBIXCg9yZXBlYXRlZF9zaW50MzIY", 58 "IyADKBESFwoPcmVwZWF0ZWRfc2ludDY0GCQgAygSEhgKEHJlcGVhdGVkX2Zp", 59 "eGVkMzIYJSADKAcSGAoQcmVwZWF0ZWRfZml4ZWQ2NBgmIAMoBhIZChFyZXBl", 60 "YXRlZF9zZml4ZWQzMhgnIAMoDxIZChFyZXBlYXRlZF9zZml4ZWQ2NBgoIAMo", 61 "EBIWCg5yZXBlYXRlZF9mbG9hdBgpIAMoAhIXCg9yZXBlYXRlZF9kb3VibGUY", 62 "KiADKAESFQoNcmVwZWF0ZWRfYm9vbBgrIAMoCBIXCg9yZXBlYXRlZF9zdHJp", 63 "bmcYLCADKAkSFgoOcmVwZWF0ZWRfYnl0ZXMYLSADKAwSSwoNcmVwZWF0ZWRn", 64 "cm91cBguIAMoCjI0LnByb3RvYnVmX3VuaXR0ZXN0X3Byb3RvMi5UZXN0QWxs", 65 "VHlwZXMuUmVwZWF0ZWRHcm91cBJVChdyZXBlYXRlZF9uZXN0ZWRfbWVzc2Fn", 66 "ZRgwIAMoCzI0LnByb3RvYnVmX3VuaXR0ZXN0X3Byb3RvMi5UZXN0QWxsVHlw", 67 "ZXMuTmVzdGVkTWVzc2FnZRJKChhyZXBlYXRlZF9mb3JlaWduX21lc3NhZ2UY", 68 "MSADKAsyKC5wcm90b2J1Zl91bml0dGVzdF9wcm90bzIuRm9yZWlnbk1lc3Nh", 69 "Z2USTwoXcmVwZWF0ZWRfaW1wb3J0X21lc3NhZ2UYMiADKAsyLi5wcm90b2J1", 70 "Zl91bml0dGVzdF9pbXBvcnRfcHJvdG8yLkltcG9ydE1lc3NhZ2USTwoUcmVw", 71 "ZWF0ZWRfbmVzdGVkX2VudW0YMyADKA4yMS5wcm90b2J1Zl91bml0dGVzdF9w", 72 "cm90bzIuVGVzdEFsbFR5cGVzLk5lc3RlZEVudW0SRAoVcmVwZWF0ZWRfZm9y", 73 "ZWlnbl9lbnVtGDQgAygOMiUucHJvdG9idWZfdW5pdHRlc3RfcHJvdG8yLkZv", 74 "cmVpZ25FbnVtEkkKFHJlcGVhdGVkX2ltcG9ydF9lbnVtGDUgAygOMisucHJv", 75 "dG9idWZfdW5pdHRlc3RfaW1wb3J0X3Byb3RvMi5JbXBvcnRFbnVtEiEKFXJl", 76 "cGVhdGVkX3N0cmluZ19waWVjZRg2IAMoCUICCAISGQoNcmVwZWF0ZWRfY29y", 77 "ZBg3IAMoCUICCAESUwoVcmVwZWF0ZWRfbGF6eV9tZXNzYWdlGDkgAygLMjQu", 78 "cHJvdG9idWZfdW5pdHRlc3RfcHJvdG8yLlRlc3RBbGxUeXBlcy5OZXN0ZWRN", 79 "ZXNzYWdlEhkKDWRlZmF1bHRfaW50MzIYPSABKAU6AjQxEhkKDWRlZmF1bHRf", 80 "aW50NjQYPiABKAM6AjQyEhoKDmRlZmF1bHRfdWludDMyGD8gASgNOgI0MxIa", 81 "Cg5kZWZhdWx0X3VpbnQ2NBhAIAEoBDoCNDQSGwoOZGVmYXVsdF9zaW50MzIY", 82 "QSABKBE6Ay00NRIaCg5kZWZhdWx0X3NpbnQ2NBhCIAEoEjoCNDYSGwoPZGVm", 83 "YXVsdF9maXhlZDMyGEMgASgHOgI0NxIbCg9kZWZhdWx0X2ZpeGVkNjQYRCAB", 84 "KAY6AjQ4EhwKEGRlZmF1bHRfc2ZpeGVkMzIYRSABKA86AjQ5Eh0KEGRlZmF1", 85 "bHRfc2ZpeGVkNjQYRiABKBA6Ay01MBIbCg1kZWZhdWx0X2Zsb2F0GEcgASgC", 86 "OgQ1MS41Eh0KDmRlZmF1bHRfZG91YmxlGEggASgBOgU1MjAwMBIaCgxkZWZh", 87 "dWx0X2Jvb2wYSSABKAg6BHRydWUSHQoOZGVmYXVsdF9zdHJpbmcYSiABKAk6", 88 "BWhlbGxvEhwKDWRlZmF1bHRfYnl0ZXMYSyABKAw6BXdvcmxkElMKE2RlZmF1", 89 "bHRfbmVzdGVkX2VudW0YUSABKA4yMS5wcm90b2J1Zl91bml0dGVzdF9wcm90", 90 "bzIuVGVzdEFsbFR5cGVzLk5lc3RlZEVudW06A0JBUhJQChRkZWZhdWx0X2Zv", 91 "cmVpZ25fZW51bRhSIAEoDjIlLnByb3RvYnVmX3VuaXR0ZXN0X3Byb3RvMi5G", 92 "b3JlaWduRW51bToLRk9SRUlHTl9CQVISVAoTZGVmYXVsdF9pbXBvcnRfZW51", 93 "bRhTIAEoDjIrLnByb3RvYnVmX3VuaXR0ZXN0X2ltcG9ydF9wcm90bzIuSW1w", 94 "b3J0RW51bToKSU1QT1JUX0JBUhIlChRkZWZhdWx0X3N0cmluZ19waWVjZRhU", 95 "IAEoCToDYWJjQgIIAhIdCgxkZWZhdWx0X2NvcmQYVSABKAk6AzEyM0ICCAES", 96 "FgoMb25lb2ZfdWludDMyGG8gASgNSAASVAoUb25lb2ZfbmVzdGVkX21lc3Nh", 97 "Z2UYcCABKAsyNC5wcm90b2J1Zl91bml0dGVzdF9wcm90bzIuVGVzdEFsbFR5", 98 "cGVzLk5lc3RlZE1lc3NhZ2VIABIWCgxvbmVvZl9zdHJpbmcYcSABKAlIABIV", 99 "CgtvbmVvZl9ieXRlcxhyIAEoDEgAGhsKDU5lc3RlZE1lc3NhZ2USCgoCYmIY", 100 "ASABKAUaGgoNT3B0aW9uYWxHcm91cBIJCgFhGBEgASgFGhoKDVJlcGVhdGVk", 101 "R3JvdXASCQoBYRgvIAEoBSI5CgpOZXN0ZWRFbnVtEgcKA0ZPTxABEgcKA0JB", 102 "UhACEgcKA0JBWhADEhAKA05FRxD///////////8BQg0KC29uZW9mX2ZpZWxk", 103 "ItABChJOZXN0ZWRUZXN0QWxsVHlwZXMSOwoFY2hpbGQYASABKAsyLC5wcm90", 104 "b2J1Zl91bml0dGVzdF9wcm90bzIuTmVzdGVkVGVzdEFsbFR5cGVzEjcKB3Bh", 105 "eWxvYWQYAiABKAsyJi5wcm90b2J1Zl91bml0dGVzdF9wcm90bzIuVGVzdEFs", 106 "bFR5cGVzEkQKDnJlcGVhdGVkX2NoaWxkGAMgAygLMiwucHJvdG9idWZfdW5p", 107 "dHRlc3RfcHJvdG8yLk5lc3RlZFRlc3RBbGxUeXBlcyJtChRUZXN0RGVwcmVj", 108 "YXRlZEZpZWxkcxIcChBkZXByZWNhdGVkX2ludDMyGAEgASgFQgIYARInChlk", 109 "ZXByZWNhdGVkX2ludDMyX2luX29uZW9mGAIgASgFQgIYAUgAQg4KDG9uZW9m", 110 "X2ZpZWxkcyIbChVUZXN0RGVwcmVjYXRlZE1lc3NhZ2U6AhgBIiYKDkZvcmVp", 111 "Z25NZXNzYWdlEgkKAWMYASABKAUSCQoBZBgCIAEoBSIwChJUZXN0UmVzZXJ2", 112 "ZWRGaWVsZHNKBAgCEANKBAgPEBBKBAgJEAxSA2JhclIDYmF6Ih0KEVRlc3RB", 113 "bGxFeHRlbnNpb25zKggIARCAgICAAiIkChdPcHRpb25hbEdyb3VwX2V4dGVu", 114 "c2lvbhIJCgFhGBEgASgFIiQKF1JlcGVhdGVkR3JvdXBfZXh0ZW5zaW9uEgkK", 115 "AWEYLyABKAUitwEKCVRlc3RHcm91cBJICg1vcHRpb25hbGdyb3VwGBAgASgK", 116 "MjEucHJvdG9idWZfdW5pdHRlc3RfcHJvdG8yLlRlc3RHcm91cC5PcHRpb25h", 117 "bEdyb3VwEkQKFW9wdGlvbmFsX2ZvcmVpZ25fZW51bRgWIAEoDjIlLnByb3Rv", 118 "YnVmX3VuaXR0ZXN0X3Byb3RvMi5Gb3JlaWduRW51bRoaCg1PcHRpb25hbEdy", 119 "b3VwEgkKAWEYESABKAUiHgoSVGVzdEdyb3VwRXh0ZW5zaW9uKggIARCAgICA", 120 "AiLhAwoTVGVzdE5lc3RlZEV4dGVuc2lvbhokChdPcHRpb25hbEdyb3VwX2V4", 121 "dGVuc2lvbhIJCgFhGBEgASgFMkAKBHRlc3QSKy5wcm90b2J1Zl91bml0dGVz", 122 "dF9wcm90bzIuVGVzdEFsbEV4dGVuc2lvbnMY6gcgASgJOgR0ZXN0Mk0KF25l", 123 "c3RlZF9zdHJpbmdfZXh0ZW5zaW9uEisucHJvdG9idWZfdW5pdHRlc3RfcHJv", 124 "dG8yLlRlc3RBbGxFeHRlbnNpb25zGOsHIAEoCTKUAQoXb3B0aW9uYWxncm91", 125 "cF9leHRlbnNpb24SLC5wcm90b2J1Zl91bml0dGVzdF9wcm90bzIuVGVzdEdy", 126 "b3VwRXh0ZW5zaW9uGBAgASgKMkUucHJvdG9idWZfdW5pdHRlc3RfcHJvdG8y", 127 "LlRlc3ROZXN0ZWRFeHRlbnNpb24uT3B0aW9uYWxHcm91cF9leHRlbnNpb24y", 128 "fAofb3B0aW9uYWxfZm9yZWlnbl9lbnVtX2V4dGVuc2lvbhIsLnByb3RvYnVm", 129 "X3VuaXR0ZXN0X3Byb3RvMi5UZXN0R3JvdXBFeHRlbnNpb24YFiABKA4yJS5w", 130 "cm90b2J1Zl91bml0dGVzdF9wcm90bzIuRm9yZWlnbkVudW0i8QUKDFRlc3RS", 131 "ZXF1aXJlZBIJCgFhGAEgAigFEg4KBmR1bW15MhgCIAEoBRIJCgFiGAMgAigF", 132 "Eg4KBmR1bW15NBgEIAEoBRIOCgZkdW1teTUYBSABKAUSDgoGZHVtbXk2GAYg", 133 "ASgFEg4KBmR1bW15NxgHIAEoBRIOCgZkdW1teTgYCCABKAUSDgoGZHVtbXk5", 134 "GAkgASgFEg8KB2R1bW15MTAYCiABKAUSDwoHZHVtbXkxMRgLIAEoBRIPCgdk", 135 "dW1teTEyGAwgASgFEg8KB2R1bW15MTMYDSABKAUSDwoHZHVtbXkxNBgOIAEo", 136 "BRIPCgdkdW1teTE1GA8gASgFEg8KB2R1bW15MTYYECABKAUSDwoHZHVtbXkx", 137 "NxgRIAEoBRIPCgdkdW1teTE4GBIgASgFEg8KB2R1bW15MTkYEyABKAUSDwoH", 138 "ZHVtbXkyMBgUIAEoBRIPCgdkdW1teTIxGBUgASgFEg8KB2R1bW15MjIYFiAB", 139 "KAUSDwoHZHVtbXkyMxgXIAEoBRIPCgdkdW1teTI0GBggASgFEg8KB2R1bW15", 140 "MjUYGSABKAUSDwoHZHVtbXkyNhgaIAEoBRIPCgdkdW1teTI3GBsgASgFEg8K", 141 "B2R1bW15MjgYHCABKAUSDwoHZHVtbXkyORgdIAEoBRIPCgdkdW1teTMwGB4g", 142 "ASgFEg8KB2R1bW15MzEYHyABKAUSDwoHZHVtbXkzMhggIAEoBRIJCgFjGCEg", 143 "AigFMmQKBnNpbmdsZRIrLnByb3RvYnVmX3VuaXR0ZXN0X3Byb3RvMi5UZXN0", 144 "QWxsRXh0ZW5zaW9ucxjoByABKAsyJi5wcm90b2J1Zl91bml0dGVzdF9wcm90", 145 "bzIuVGVzdFJlcXVpcmVkMmMKBW11bHRpEisucHJvdG9idWZfdW5pdHRlc3Rf", 146 "cHJvdG8yLlRlc3RBbGxFeHRlbnNpb25zGOkHIAMoCzImLnByb3RvYnVmX3Vu", 147 "aXR0ZXN0X3Byb3RvMi5UZXN0UmVxdWlyZWQiqAEKE1Rlc3RSZXF1aXJlZEZv", 148 "cmVpZ24SQAoQb3B0aW9uYWxfbWVzc2FnZRgBIAEoCzImLnByb3RvYnVmX3Vu", 149 "aXR0ZXN0X3Byb3RvMi5UZXN0UmVxdWlyZWQSQAoQcmVwZWF0ZWRfbWVzc2Fn", 150 "ZRgCIAMoCzImLnByb3RvYnVmX3VuaXR0ZXN0X3Byb3RvMi5UZXN0UmVxdWly", 151 "ZWQSDQoFZHVtbXkYAyABKAUi2wEKE1Rlc3RSZXF1aXJlZE1lc3NhZ2USQAoQ", 152 "b3B0aW9uYWxfbWVzc2FnZRgBIAEoCzImLnByb3RvYnVmX3VuaXR0ZXN0X3By", 153 "b3RvMi5UZXN0UmVxdWlyZWQSQAoQcmVwZWF0ZWRfbWVzc2FnZRgCIAMoCzIm", 154 "LnByb3RvYnVmX3VuaXR0ZXN0X3Byb3RvMi5UZXN0UmVxdWlyZWQSQAoQcmVx", 155 "dWlyZWRfbWVzc2FnZRgDIAIoCzImLnByb3RvYnVmX3VuaXR0ZXN0X3Byb3Rv", 156 "Mi5UZXN0UmVxdWlyZWQiYQoRVGVzdEZvcmVpZ25OZXN0ZWQSTAoOZm9yZWln", 157 "bl9uZXN0ZWQYASABKAsyNC5wcm90b2J1Zl91bml0dGVzdF9wcm90bzIuVGVz", 158 "dEFsbFR5cGVzLk5lc3RlZE1lc3NhZ2UiEgoQVGVzdEVtcHR5TWVzc2FnZSIq", 159 "Ch5UZXN0RW1wdHlNZXNzYWdlV2l0aEV4dGVuc2lvbnMqCAgBEICAgIACIjcK", 160 "G1Rlc3RNdWx0aXBsZUV4dGVuc2lvblJhbmdlcyoECCoQKyoGCK8gEJQhKgoI", 161 "gIAEEICAgIACIjQKGFRlc3RSZWFsbHlMYXJnZVRhZ051bWJlchIJCgFhGAEg", 162 "ASgFEg0KAmJiGP///38gASgFIlwKFFRlc3RSZWN1cnNpdmVNZXNzYWdlEjkK", 163 "AWEYASABKAsyLi5wcm90b2J1Zl91bml0dGVzdF9wcm90bzIuVGVzdFJlY3Vy", 164 "c2l2ZU1lc3NhZ2USCQoBaRgCIAEoBSKEAwoUVGVzdE11dHVhbFJlY3Vyc2lv", 165 "bkESOgoCYmIYASABKAsyLi5wcm90b2J1Zl91bml0dGVzdF9wcm90bzIuVGVz", 166 "dE11dHVhbFJlY3Vyc2lvbkISSQoIc3ViZ3JvdXAYAiABKAoyNy5wcm90b2J1", 167 "Zl91bml0dGVzdF9wcm90bzIuVGVzdE11dHVhbFJlY3Vyc2lvbkEuU3ViR3Jv", 168 "dXAaRwoKU3ViTWVzc2FnZRI5CgFiGAEgASgLMi4ucHJvdG9idWZfdW5pdHRl", 169 "c3RfcHJvdG8yLlRlc3RNdXR1YWxSZWN1cnNpb25CGpsBCghTdWJHcm91cBJO", 170 "CgtzdWJfbWVzc2FnZRgDIAEoCzI5LnByb3RvYnVmX3VuaXR0ZXN0X3Byb3Rv", 171 "Mi5UZXN0TXV0dWFsUmVjdXJzaW9uQS5TdWJNZXNzYWdlEj8KD25vdF9pbl90", 172 "aGlzX3NjYxgEIAEoCzImLnByb3RvYnVmX3VuaXR0ZXN0X3Byb3RvMi5UZXN0", 173 "QWxsVHlwZXMiaQoUVGVzdE11dHVhbFJlY3Vyc2lvbkISOQoBYRgBIAEoCzIu", 174 "LnByb3RvYnVmX3VuaXR0ZXN0X3Byb3RvMi5UZXN0TXV0dWFsUmVjdXJzaW9u", 175 "QRIWCg5vcHRpb25hbF9pbnQzMhgCIAEoBSLYAQoRVGVzdElzSW5pdGlhbGl6", 176 "ZWQSSwoLc3ViX21lc3NhZ2UYASABKAsyNi5wcm90b2J1Zl91bml0dGVzdF9w", 177 "cm90bzIuVGVzdElzSW5pdGlhbGl6ZWQuU3ViTWVzc2FnZRp2CgpTdWJNZXNz", 178 "YWdlElEKCHN1Ymdyb3VwGAEgASgKMj8ucHJvdG9idWZfdW5pdHRlc3RfcHJv", 179 "dG8yLlRlc3RJc0luaXRpYWxpemVkLlN1Yk1lc3NhZ2UuU3ViR3JvdXAaFQoI", 180 "U3ViR3JvdXASCQoBaRgCIAIoBSLBAQoSVGVzdER1cEZpZWxkTnVtYmVyEgkK", 181 "AWEYASABKAUSPQoDZm9vGAIgASgKMjAucHJvdG9idWZfdW5pdHRlc3RfcHJv", 182 "dG8yLlRlc3REdXBGaWVsZE51bWJlci5Gb28SPQoDYmFyGAMgASgKMjAucHJv", 183 "dG9idWZfdW5pdHRlc3RfcHJvdG8yLlRlc3REdXBGaWVsZE51bWJlci5CYXIa", 184 "EAoDRm9vEgkKAWEYASABKAUaEAoDQmFyEgkKAWEYASABKAUiUwoQVGVzdEVh", 185 "Z2VyTWVzc2FnZRI/CgtzdWJfbWVzc2FnZRgBIAEoCzImLnByb3RvYnVmX3Vu", 186 "aXR0ZXN0X3Byb3RvMi5UZXN0QWxsVHlwZXNCAigAIlIKD1Rlc3RMYXp5TWVz", 187 "c2FnZRI/CgtzdWJfbWVzc2FnZRgBIAEoCzImLnByb3RvYnVmX3VuaXR0ZXN0", 188 "X3Byb3RvMi5UZXN0QWxsVHlwZXNCAigBIo4CChhUZXN0TmVzdGVkTWVzc2Fn", 189 "ZUhhc0JpdHMSYQoXb3B0aW9uYWxfbmVzdGVkX21lc3NhZ2UYASABKAsyQC5w", 190 "cm90b2J1Zl91bml0dGVzdF9wcm90bzIuVGVzdE5lc3RlZE1lc3NhZ2VIYXNC", 191 "aXRzLk5lc3RlZE1lc3NhZ2UajgEKDU5lc3RlZE1lc3NhZ2USJAocbmVzdGVk", 192 "bWVzc2FnZV9yZXBlYXRlZF9pbnQzMhgBIAMoBRJXCiVuZXN0ZWRtZXNzYWdl", 193 "X3JlcGVhdGVkX2ZvcmVpZ25tZXNzYWdlGAIgAygLMigucHJvdG9idWZfdW5p", 194 "dHRlc3RfcHJvdG8yLkZvcmVpZ25NZXNzYWdlIoEEChdUZXN0Q2FtZWxDYXNl", 195 "RmllbGROYW1lcxIWCg5QcmltaXRpdmVGaWVsZBgBIAEoBRITCgtTdHJpbmdG", 196 "aWVsZBgCIAEoCRI4CglFbnVtRmllbGQYAyABKA4yJS5wcm90b2J1Zl91bml0", 197 "dGVzdF9wcm90bzIuRm9yZWlnbkVudW0SPgoMTWVzc2FnZUZpZWxkGAQgASgL", 198 "MigucHJvdG9idWZfdW5pdHRlc3RfcHJvdG8yLkZvcmVpZ25NZXNzYWdlEhwK", 199 "EFN0cmluZ1BpZWNlRmllbGQYBSABKAlCAggCEhUKCUNvcmRGaWVsZBgGIAEo", 200 "CUICCAESHgoWUmVwZWF0ZWRQcmltaXRpdmVGaWVsZBgHIAMoBRIbChNSZXBl", 201 "YXRlZFN0cmluZ0ZpZWxkGAggAygJEkAKEVJlcGVhdGVkRW51bUZpZWxkGAkg", 202 "AygOMiUucHJvdG9idWZfdW5pdHRlc3RfcHJvdG8yLkZvcmVpZ25FbnVtEkYK", 203 "FFJlcGVhdGVkTWVzc2FnZUZpZWxkGAogAygLMigucHJvdG9idWZfdW5pdHRl", 204 "c3RfcHJvdG8yLkZvcmVpZ25NZXNzYWdlEiQKGFJlcGVhdGVkU3RyaW5nUGll", 205 "Y2VGaWVsZBgLIAMoCUICCAISHQoRUmVwZWF0ZWRDb3JkRmllbGQYDCADKAlC", 206 "AggBItwBChJUZXN0RmllbGRPcmRlcmluZ3MSEQoJbXlfc3RyaW5nGAsgASgJ", 207 "Eg4KBm15X2ludBgBIAEoAxIQCghteV9mbG9hdBhlIAEoAhJcChdvcHRpb25h", 208 "bF9uZXN0ZWRfbWVzc2FnZRjIASABKAsyOi5wcm90b2J1Zl91bml0dGVzdF9w", 209 "cm90bzIuVGVzdEZpZWxkT3JkZXJpbmdzLk5lc3RlZE1lc3NhZ2UaJwoNTmVz", 210 "dGVkTWVzc2FnZRIKCgJvbxgCIAEoAxIKCgJiYhgBIAEoBSoECAIQCyoECAwQ", 211 "ZSKqAQoXVGVzdEV4dGVuc2lvbk9yZGVyaW5nczESEQoJbXlfc3RyaW5nGAEg", 212 "ASgJMnwKE3Rlc3RfZXh0X29yZGVyaW5nczESLC5wcm90b2J1Zl91bml0dGVz", 213 "dF9wcm90bzIuVGVzdEZpZWxkT3JkZXJpbmdzGA0gASgLMjEucHJvdG9idWZf", 214 "dW5pdHRlc3RfcHJvdG8yLlRlc3RFeHRlbnNpb25PcmRlcmluZ3MxIvACChdU", 215 "ZXN0RXh0ZW5zaW9uT3JkZXJpbmdzMhIRCglteV9zdHJpbmcYASABKAkawwEK", 216 "F1Rlc3RFeHRlbnNpb25PcmRlcmluZ3MzEhEKCW15X3N0cmluZxgBIAEoCTKU", 217 "AQoTdGVzdF9leHRfb3JkZXJpbmdzMxIsLnByb3RvYnVmX3VuaXR0ZXN0X3By", 218 "b3RvMi5UZXN0RmllbGRPcmRlcmluZ3MYDiABKAsySS5wcm90b2J1Zl91bml0", 219 "dGVzdF9wcm90bzIuVGVzdEV4dGVuc2lvbk9yZGVyaW5nczIuVGVzdEV4dGVu", 220 "c2lvbk9yZGVyaW5nczMyfAoTdGVzdF9leHRfb3JkZXJpbmdzMhIsLnByb3Rv", 221 "YnVmX3VuaXR0ZXN0X3Byb3RvMi5UZXN0RmllbGRPcmRlcmluZ3MYDCABKAsy", 222 "MS5wcm90b2J1Zl91bml0dGVzdF9wcm90bzIuVGVzdEV4dGVuc2lvbk9yZGVy", 223 "aW5nczIitgcKGFRlc3RFeHRyZW1lRGVmYXVsdFZhbHVlcxI/Cg1lc2NhcGVk", 224 "X2J5dGVzGAEgASgMOihcMDAwXDAwMVwwMDdcMDEwXDAxNFxuXHJcdFwwMTNc", 225 "XFwnXCJcMzc2EiAKDGxhcmdlX3VpbnQzMhgCIAEoDToKNDI5NDk2NzI5NRIq", 226 "CgxsYXJnZV91aW50NjQYAyABKAQ6FDE4NDQ2NzQ0MDczNzA5NTUxNjE1EiAK", 227 "C3NtYWxsX2ludDMyGAQgASgFOgstMjE0NzQ4MzY0NxIpCgtzbWFsbF9pbnQ2", 228 "NBgFIAEoAzoULTkyMjMzNzIwMzY4NTQ3NzU4MDcSJwoScmVhbGx5X3NtYWxs", 229 "X2ludDMyGBUgASgFOgstMjE0NzQ4MzY0OBIwChJyZWFsbHlfc21hbGxfaW50", 230 "NjQYFiABKAM6FC05MjIzMzcyMDM2ODU0Nzc1ODA4EhgKC3V0Zjhfc3RyaW5n", 231 "GAYgASgJOgPhiLQSFQoKemVyb19mbG9hdBgHIAEoAjoBMBIUCglvbmVfZmxv", 232 "YXQYCCABKAI6ATESGAoLc21hbGxfZmxvYXQYCSABKAI6AzEuNRIeChJuZWdh", 233 "dGl2ZV9vbmVfZmxvYXQYCiABKAI6Ai0xEhwKDm5lZ2F0aXZlX2Zsb2F0GAsg", 234 "ASgCOgQtMS41EhoKC2xhcmdlX2Zsb2F0GAwgASgCOgUyZSswOBIkChRzbWFs", 235 "bF9uZWdhdGl2ZV9mbG9hdBgNIAEoAjoGLThlLTI4EhcKCmluZl9kb3VibGUY", 236 "DiABKAE6A2luZhIcCg5uZWdfaW5mX2RvdWJsZRgPIAEoAToELWluZhIXCgpu", 237 "YW5fZG91YmxlGBAgASgBOgNuYW4SFgoJaW5mX2Zsb2F0GBEgASgCOgNpbmYS", 238 "GwoNbmVnX2luZl9mbG9hdBgSIAEoAjoELWluZhIWCgluYW5fZmxvYXQYEyAB", 239 "KAI6A25hbhIrCgxjcHBfdHJpZ3JhcGgYFCABKAk6FT8gPyA/PyA/PyA/Pz8g", 240 "Pz8vID8/LRIgChBzdHJpbmdfd2l0aF96ZXJvGBcgASgJOgZoZWwAbG8SIgoP", 241 "Ynl0ZXNfd2l0aF96ZXJvGBggASgMOgl3b3JcMDAwbGQSKAoWc3RyaW5nX3Bp", 242 "ZWNlX3dpdGhfemVybxgZIAEoCToEYWIAY0ICCAISIAoOY29yZF93aXRoX3pl", 243 "cm8YGiABKAk6BDEyADNCAggBEiYKEnJlcGxhY2VtZW50X3N0cmluZxgbIAEo", 244 "CToKJHt1bmtub3dufSJSChFTcGFyc2VFbnVtTWVzc2FnZRI9CgtzcGFyc2Vf", 245 "ZW51bRgBIAEoDjIoLnByb3RvYnVmX3VuaXR0ZXN0X3Byb3RvMi5UZXN0U3Bh", 246 "cnNlRW51bSIZCglPbmVTdHJpbmcSDAoEZGF0YRgBIAEoCSIaCgpNb3JlU3Ry", 247 "aW5nEgwKBGRhdGEYASADKAkiGAoIT25lQnl0ZXMSDAoEZGF0YRgBIAEoDCIZ", 248 "CglNb3JlQnl0ZXMSDAoEZGF0YRgBIAMoDCIcCgxJbnQzMk1lc3NhZ2USDAoE", 249 "ZGF0YRgBIAEoBSIdCg1VaW50MzJNZXNzYWdlEgwKBGRhdGEYASABKA0iHAoM", 250 "SW50NjRNZXNzYWdlEgwKBGRhdGEYASABKAMiHQoNVWludDY0TWVzc2FnZRIM", 251 "CgRkYXRhGAEgASgEIhsKC0Jvb2xNZXNzYWdlEgwKBGRhdGEYASABKAgi3gEK", 252 "CVRlc3RPbmVvZhIRCgdmb29faW50GAEgASgFSAASFAoKZm9vX3N0cmluZxgC", 253 "IAEoCUgAEj0KC2Zvb19tZXNzYWdlGAMgASgLMiYucHJvdG9idWZfdW5pdHRl", 254 "c3RfcHJvdG8yLlRlc3RBbGxUeXBlc0gAEkAKCGZvb2dyb3VwGAQgASgKMiwu", 255 "cHJvdG9idWZfdW5pdHRlc3RfcHJvdG8yLlRlc3RPbmVvZi5Gb29Hcm91cEgA", 256 "GiAKCEZvb0dyb3VwEgkKAWEYBSABKAUSCQoBYhgGIAEoCUIFCgNmb28i9QEK", 257 "HFRlc3RPbmVvZkJhY2t3YXJkc0NvbXBhdGlibGUSDwoHZm9vX2ludBgBIAEo", 258 "BRISCgpmb29fc3RyaW5nGAIgASgJEjsKC2Zvb19tZXNzYWdlGAMgASgLMiYu", 259 "cHJvdG9idWZfdW5pdHRlc3RfcHJvdG8yLlRlc3RBbGxUeXBlcxJRCghmb29n", 260 "cm91cBgEIAEoCjI/LnByb3RvYnVmX3VuaXR0ZXN0X3Byb3RvMi5UZXN0T25l", 261 "b2ZCYWNrd2FyZHNDb21wYXRpYmxlLkZvb0dyb3VwGiAKCEZvb0dyb3VwEgkK", 262 "AWEYBSABKAUSCQoBYhgGIAEoCSLBBgoKVGVzdE9uZW9mMhIRCgdmb29faW50", 263 "GAEgASgFSAASFAoKZm9vX3N0cmluZxgCIAEoCUgAEhYKCGZvb19jb3JkGAMg", 264 "ASgJQgIIAUgAEh4KEGZvb19zdHJpbmdfcGllY2UYBCABKAlCAggCSAASEwoJ", 265 "Zm9vX2J5dGVzGAUgASgMSAASQwoIZm9vX2VudW0YBiABKA4yLy5wcm90b2J1", 266 "Zl91bml0dGVzdF9wcm90bzIuVGVzdE9uZW9mMi5OZXN0ZWRFbnVtSAASSQoL", 267 "Zm9vX21lc3NhZ2UYByABKAsyMi5wcm90b2J1Zl91bml0dGVzdF9wcm90bzIu", 268 "VGVzdE9uZW9mMi5OZXN0ZWRNZXNzYWdlSAASQQoIZm9vZ3JvdXAYCCABKAoy", 269 "LS5wcm90b2J1Zl91bml0dGVzdF9wcm90bzIuVGVzdE9uZW9mMi5Gb29Hcm91", 270 "cEgAElIKEGZvb19sYXp5X21lc3NhZ2UYCyABKAsyMi5wcm90b2J1Zl91bml0", 271 "dGVzdF9wcm90bzIuVGVzdE9uZW9mMi5OZXN0ZWRNZXNzYWdlQgIoAUgAEhQK", 272 "B2Jhcl9pbnQYDCABKAU6ATVIARIcCgpiYXJfc3RyaW5nGA0gASgJOgZTVFJJ", 273 "TkdIARIcCghiYXJfY29yZBgOIAEoCToEQ09SREICCAFIARImChBiYXJfc3Ry", 274 "aW5nX3BpZWNlGA8gASgJOgZTUElFQ0VCAggCSAESGgoJYmFyX2J5dGVzGBAg", 275 "ASgMOgVCWVRFU0gBEkgKCGJhcl9lbnVtGBEgASgOMi8ucHJvdG9idWZfdW5p", 276 "dHRlc3RfcHJvdG8yLlRlc3RPbmVvZjIuTmVzdGVkRW51bToDQkFSSAESDwoH", 277 "YmF6X2ludBgSIAEoBRIXCgpiYXpfc3RyaW5nGBMgASgJOgNCQVoaIAoIRm9v", 278 "R3JvdXASCQoBYRgJIAEoBRIJCgFiGAogASgJGjMKDU5lc3RlZE1lc3NhZ2US", 279 "DwoHcXV4X2ludBgBIAEoAxIRCgljb3JnZV9pbnQYAiADKAUiJwoKTmVzdGVk", 280 "RW51bRIHCgNGT08QARIHCgNCQVIQAhIHCgNCQVoQA0IFCgNmb29CBQoDYmFy", 281 "Ir8BChFUZXN0UmVxdWlyZWRPbmVvZhIRCgdmb29faW50GAEgASgFSAASFAoK", 282 "Zm9vX3N0cmluZxgCIAEoCUgAElAKC2Zvb19tZXNzYWdlGAMgASgLMjkucHJv", 283 "dG9idWZfdW5pdHRlc3RfcHJvdG8yLlRlc3RSZXF1aXJlZE9uZW9mLk5lc3Rl", 284 "ZE1lc3NhZ2VIABooCg1OZXN0ZWRNZXNzYWdlEhcKD3JlcXVpcmVkX2RvdWJs", 285 "ZRgBIAIoAUIFCgNmb28i4AEKD1Rlc3RSZXF1aXJlZE1hcBI/CgNmb28YASAD", 286 "KAsyMi5wcm90b2J1Zl91bml0dGVzdF9wcm90bzIuVGVzdFJlcXVpcmVkTWFw", 287 "LkZvb0VudHJ5GmMKCEZvb0VudHJ5EgsKA2tleRgBIAEoBRJGCgV2YWx1ZRgC", 288 "IAEoCzI3LnByb3RvYnVmX3VuaXR0ZXN0X3Byb3RvMi5UZXN0UmVxdWlyZWRN", 289 "YXAuTmVzdGVkTWVzc2FnZToCOAEaJwoNTmVzdGVkTWVzc2FnZRIWCg5yZXF1", 290 "aXJlZF9pbnQzMhgBIAIoBSKxAwoPVGVzdFBhY2tlZFR5cGVzEhgKDHBhY2tl", 291 "ZF9pbnQzMhhaIAMoBUICEAESGAoMcGFja2VkX2ludDY0GFsgAygDQgIQARIZ", 292 "Cg1wYWNrZWRfdWludDMyGFwgAygNQgIQARIZCg1wYWNrZWRfdWludDY0GF0g", 293 "AygEQgIQARIZCg1wYWNrZWRfc2ludDMyGF4gAygRQgIQARIZCg1wYWNrZWRf", 294 "c2ludDY0GF8gAygSQgIQARIaCg5wYWNrZWRfZml4ZWQzMhhgIAMoB0ICEAES", 295 "GgoOcGFja2VkX2ZpeGVkNjQYYSADKAZCAhABEhsKD3BhY2tlZF9zZml4ZWQz", 296 "MhhiIAMoD0ICEAESGwoPcGFja2VkX3NmaXhlZDY0GGMgAygQQgIQARIYCgxw", 297 "YWNrZWRfZmxvYXQYZCADKAJCAhABEhkKDXBhY2tlZF9kb3VibGUYZSADKAFC", 298 "AhABEhcKC3BhY2tlZF9ib29sGGYgAygIQgIQARI+CgtwYWNrZWRfZW51bRhn", 299 "IAMoDjIlLnByb3RvYnVmX3VuaXR0ZXN0X3Byb3RvMi5Gb3JlaWduRW51bUIC", 300 "EAEizwMKEVRlc3RVbnBhY2tlZFR5cGVzEhoKDnVucGFja2VkX2ludDMyGFog", 301 "AygFQgIQABIaCg51bnBhY2tlZF9pbnQ2NBhbIAMoA0ICEAASGwoPdW5wYWNr", 302 "ZWRfdWludDMyGFwgAygNQgIQABIbCg91bnBhY2tlZF91aW50NjQYXSADKARC", 303 "AhAAEhsKD3VucGFja2VkX3NpbnQzMhheIAMoEUICEAASGwoPdW5wYWNrZWRf", 304 "c2ludDY0GF8gAygSQgIQABIcChB1bnBhY2tlZF9maXhlZDMyGGAgAygHQgIQ", 305 "ABIcChB1bnBhY2tlZF9maXhlZDY0GGEgAygGQgIQABIdChF1bnBhY2tlZF9z", 306 "Zml4ZWQzMhhiIAMoD0ICEAASHQoRdW5wYWNrZWRfc2ZpeGVkNjQYYyADKBBC", 307 "AhAAEhoKDnVucGFja2VkX2Zsb2F0GGQgAygCQgIQABIbCg91bnBhY2tlZF9k", 308 "b3VibGUYZSADKAFCAhAAEhkKDXVucGFja2VkX2Jvb2wYZiADKAhCAhAAEkAK", 309 "DXVucGFja2VkX2VudW0YZyADKA4yJS5wcm90b2J1Zl91bml0dGVzdF9wcm90", 310 "bzIuRm9yZWlnbkVudW1CAhAAIiAKFFRlc3RQYWNrZWRFeHRlbnNpb25zKggI", 311 "ARCAgICAAiIiChZUZXN0VW5wYWNrZWRFeHRlbnNpb25zKggIARCAgICAAiK1", 312 "BAoVVGVzdER5bmFtaWNFeHRlbnNpb25zEhkKEHNjYWxhcl9leHRlbnNpb24Y", 313 "0A8gASgHEj4KDmVudW1fZXh0ZW5zaW9uGNEPIAEoDjIlLnByb3RvYnVmX3Vu", 314 "aXR0ZXN0X3Byb3RvMi5Gb3JlaWduRW51bRJgChZkeW5hbWljX2VudW1fZXh0", 315 "ZW5zaW9uGNIPIAEoDjI/LnByb3RvYnVmX3VuaXR0ZXN0X3Byb3RvMi5UZXN0", 316 "RHluYW1pY0V4dGVuc2lvbnMuRHluYW1pY0VudW1UeXBlEkQKEW1lc3NhZ2Vf", 317 "ZXh0ZW5zaW9uGNMPIAEoCzIoLnByb3RvYnVmX3VuaXR0ZXN0X3Byb3RvMi5G", 318 "b3JlaWduTWVzc2FnZRJmChlkeW5hbWljX21lc3NhZ2VfZXh0ZW5zaW9uGNQP", 319 "IAEoCzJCLnByb3RvYnVmX3VuaXR0ZXN0X3Byb3RvMi5UZXN0RHluYW1pY0V4", 320 "dGVuc2lvbnMuRHluYW1pY01lc3NhZ2VUeXBlEhsKEnJlcGVhdGVkX2V4dGVu", 321 "c2lvbhjVDyADKAkSHQoQcGFja2VkX2V4dGVuc2lvbhjWDyADKBFCAhABGiwK", 322 "EkR5bmFtaWNNZXNzYWdlVHlwZRIWCg1keW5hbWljX2ZpZWxkGLQQIAEoBSJH", 323 "Cg9EeW5hbWljRW51bVR5cGUSEAoLRFlOQU1JQ19GT08QmBESEAoLRFlOQU1J", 324 "Q19CQVIQmRESEAoLRFlOQU1JQ19CQVoQmhEiwAEKI1Rlc3RSZXBlYXRlZFNj", 325 "YWxhckRpZmZlcmVudFRhZ1NpemVzEhgKEHJlcGVhdGVkX2ZpeGVkMzIYDCAD", 326 "KAcSFgoOcmVwZWF0ZWRfaW50MzIYDSADKAUSGQoQcmVwZWF0ZWRfZml4ZWQ2", 327 "NBj+DyADKAYSFwoOcmVwZWF0ZWRfaW50NjQY/w8gAygDEhgKDnJlcGVhdGVk", 328 "X2Zsb2F0GP7/DyADKAISGQoPcmVwZWF0ZWRfdWludDY0GP//DyADKAQigwsK", 329 "EFRlc3RQYXJzaW5nTWVyZ2USQgoScmVxdWlyZWRfYWxsX3R5cGVzGAEgAigL", 330 "MiYucHJvdG9idWZfdW5pdHRlc3RfcHJvdG8yLlRlc3RBbGxUeXBlcxJCChJv", 331 "cHRpb25hbF9hbGxfdHlwZXMYAiABKAsyJi5wcm90b2J1Zl91bml0dGVzdF9w", 332 "cm90bzIuVGVzdEFsbFR5cGVzEkIKEnJlcGVhdGVkX2FsbF90eXBlcxgDIAMo", 333 "CzImLnByb3RvYnVmX3VuaXR0ZXN0X3Byb3RvMi5UZXN0QWxsVHlwZXMSTwoN", 334 "b3B0aW9uYWxncm91cBgKIAEoCjI4LnByb3RvYnVmX3VuaXR0ZXN0X3Byb3Rv", 335 "Mi5UZXN0UGFyc2luZ01lcmdlLk9wdGlvbmFsR3JvdXASTwoNcmVwZWF0ZWRn", 336 "cm91cBgUIAMoCjI4LnByb3RvYnVmX3VuaXR0ZXN0X3Byb3RvMi5UZXN0UGFy", 337 "c2luZ01lcmdlLlJlcGVhdGVkR3JvdXAa6QQKF1JlcGVhdGVkRmllbGRzR2Vu", 338 "ZXJhdG9yEjYKBmZpZWxkMRgBIAMoCzImLnByb3RvYnVmX3VuaXR0ZXN0X3By", 339 "b3RvMi5UZXN0QWxsVHlwZXMSNgoGZmllbGQyGAIgAygLMiYucHJvdG9idWZf", 340 "dW5pdHRlc3RfcHJvdG8yLlRlc3RBbGxUeXBlcxI2CgZmaWVsZDMYAyADKAsy", 341 "Ji5wcm90b2J1Zl91bml0dGVzdF9wcm90bzIuVGVzdEFsbFR5cGVzElkKBmdy", 342 "b3VwMRgKIAMoCjJJLnByb3RvYnVmX3VuaXR0ZXN0X3Byb3RvMi5UZXN0UGFy", 343 "c2luZ01lcmdlLlJlcGVhdGVkRmllbGRzR2VuZXJhdG9yLkdyb3VwMRJZCgZn", 344 "cm91cDIYFCADKAoySS5wcm90b2J1Zl91bml0dGVzdF9wcm90bzIuVGVzdFBh", 345 "cnNpbmdNZXJnZS5SZXBlYXRlZEZpZWxkc0dlbmVyYXRvci5Hcm91cDISNQoE", 346 "ZXh0MRjoByADKAsyJi5wcm90b2J1Zl91bml0dGVzdF9wcm90bzIuVGVzdEFs", 347 "bFR5cGVzEjUKBGV4dDIY6QcgAygLMiYucHJvdG9idWZfdW5pdHRlc3RfcHJv", 348 "dG8yLlRlc3RBbGxUeXBlcxpACgZHcm91cDESNgoGZmllbGQxGAsgASgLMiYu", 349 "cHJvdG9idWZfdW5pdHRlc3RfcHJvdG8yLlRlc3RBbGxUeXBlcxpACgZHcm91", 350 "cDISNgoGZmllbGQxGBUgASgLMiYucHJvdG9idWZfdW5pdHRlc3RfcHJvdG8y", 351 "LlRlc3RBbGxUeXBlcxpZCg1PcHRpb25hbEdyb3VwEkgKGG9wdGlvbmFsX2dy", 352 "b3VwX2FsbF90eXBlcxgLIAEoCzImLnByb3RvYnVmX3VuaXR0ZXN0X3Byb3Rv", 353 "Mi5UZXN0QWxsVHlwZXMaWQoNUmVwZWF0ZWRHcm91cBJIChhyZXBlYXRlZF9n", 354 "cm91cF9hbGxfdHlwZXMYFSABKAsyJi5wcm90b2J1Zl91bml0dGVzdF9wcm90", 355 "bzIuVGVzdEFsbFR5cGVzKgkI6AcQgICAgAIyaQoMb3B0aW9uYWxfZXh0Eiou", 356 "cHJvdG9idWZfdW5pdHRlc3RfcHJvdG8yLlRlc3RQYXJzaW5nTWVyZ2UY6Acg", 357 "ASgLMiYucHJvdG9idWZfdW5pdHRlc3RfcHJvdG8yLlRlc3RBbGxUeXBlczJp", 358 "CgxyZXBlYXRlZF9leHQSKi5wcm90b2J1Zl91bml0dGVzdF9wcm90bzIuVGVz", 359 "dFBhcnNpbmdNZXJnZRjpByADKAsyJi5wcm90b2J1Zl91bml0dGVzdF9wcm90", 360 "bzIuVGVzdEFsbFR5cGVzIkQKG1Rlc3RDb21tZW50SW5qZWN0aW9uTWVzc2Fn", 361 "ZRIlCgFhGAEgASgJOhoqLyA8LSBOZWl0aGVyIHNob3VsZCB0aGlzLiIMCgpG", 362 "b29SZXF1ZXN0Ig0KC0Zvb1Jlc3BvbnNlIhIKEEZvb0NsaWVudE1lc3NhZ2Ui", 363 "EgoQRm9vU2VydmVyTWVzc2FnZSIMCgpCYXJSZXF1ZXN0Ig0KC0JhclJlc3Bv", 364 "bnNlIpIBCgxUZXN0SnNvbk5hbWUSEwoLZmllbGRfbmFtZTEYASABKAUSEgoK", 365 "ZmllbGROYW1lMhgCIAEoBRISCgpGaWVsZE5hbWUzGAMgASgFEhQKDF9maWVs", 366 "ZF9uYW1lNBgEIAEoBRITCgtGSUVMRF9OQU1FNRgFIAEoBRIaCgtmaWVsZF9u", 367 "YW1lNhgGIAEoBVIFQHR5cGUioAYKFFRlc3RIdWdlRmllbGROdW1iZXJzEhoK", 368 "Dm9wdGlvbmFsX2ludDMyGPD4//8BIAEoBRIUCghmaXhlZF8zMhjx+P//ASAB", 369 "KAUSHgoOcmVwZWF0ZWRfaW50MzIY8vj//wEgAygFQgIQABIcCgxwYWNrZWRf", 370 "aW50MzIY8/j//wEgAygFQgIQARJACg1vcHRpb25hbF9lbnVtGPT4//8BIAEo", 371 "DjIlLnByb3RvYnVmX3VuaXR0ZXN0X3Byb3RvMi5Gb3JlaWduRW51bRIbCg9v", 372 "cHRpb25hbF9zdHJpbmcY9fj//wEgASgJEhoKDm9wdGlvbmFsX2J5dGVzGPb4", 373 "//8BIAEoDBJGChBvcHRpb25hbF9tZXNzYWdlGPf4//8BIAEoCzIoLnByb3Rv", 374 "YnVmX3VuaXR0ZXN0X3Byb3RvMi5Gb3JlaWduTWVzc2FnZRJXCg1vcHRpb25h", 375 "bGdyb3VwGPj4//8BIAEoCjI8LnByb3RvYnVmX3VuaXR0ZXN0X3Byb3RvMi5U", 376 "ZXN0SHVnZUZpZWxkTnVtYmVycy5PcHRpb25hbEdyb3VwEmIKEXN0cmluZ19z", 377 "dHJpbmdfbWFwGPr4//8BIAMoCzJDLnByb3RvYnVmX3VuaXR0ZXN0X3Byb3Rv", 378 "Mi5UZXN0SHVnZUZpZWxkTnVtYmVycy5TdHJpbmdTdHJpbmdNYXBFbnRyeRIa", 379 "CgxvbmVvZl91aW50MzIY+/j//wEgASgNSAASSgoUb25lb2ZfdGVzdF9hbGxf", 380 "dHlwZXMY/Pj//wEgASgLMiYucHJvdG9idWZfdW5pdHRlc3RfcHJvdG8yLlRl", 381 "c3RBbGxUeXBlc0gAEhoKDG9uZW9mX3N0cmluZxj9+P//ASABKAlIABIZCgtv", 382 "bmVvZl9ieXRlcxj++P//ASABKAxIABokCg1PcHRpb25hbEdyb3VwEhMKB2dy", 383 "b3VwX2EY+fj//wEgASgFGjYKFFN0cmluZ1N0cmluZ01hcEVudHJ5EgsKA2tl", 384 "eRgBIAEoCRINCgV2YWx1ZRgCIAEoCToCOAEqDAjgqv//ARDw+P//AUINCgtv", 385 "bmVvZl9maWVsZCKxAQoYVGVzdEV4dGVuc2lvbkluc2lkZVRhYmxlEg4KBmZp", 386 "ZWxkMRgBIAEoBRIOCgZmaWVsZDIYAiABKAUSDgoGZmllbGQzGAMgASgFEg4K", 387 "BmZpZWxkNBgEIAEoBRIOCgZmaWVsZDYYBiABKAUSDgoGZmllbGQ3GAcgASgF", 388 "Eg4KBmZpZWxkOBgIIAEoBRIOCgZmaWVsZDkYCSABKAUSDwoHZmllbGQxMBgK", 389 "IAEoBSoECAUQBipACgtGb3JlaWduRW51bRIPCgtGT1JFSUdOX0ZPTxAEEg8K", 390 "C0ZPUkVJR05fQkFSEAUSDwoLRk9SRUlHTl9CQVoQBipLChRUZXN0RW51bVdp", 391 "dGhEdXBWYWx1ZRIICgRGT08xEAESCAoEQkFSMRACEgcKA0JBWhADEggKBEZP", 392 "TzIQARIICgRCQVIyEAIaAhABKokBCg5UZXN0U3BhcnNlRW51bRIMCghTUEFS", 393 "U0VfQRB7Eg4KCFNQQVJTRV9CEKbnAxIPCghTUEFSU0VfQxCysYAGEhUKCFNQ", 394 "QVJTRV9EEPH//////////wESFQoIU1BBUlNFX0UQtN78////////ARIMCghT", 395 "UEFSU0VfRhAAEgwKCFNQQVJTRV9HEAIqiw8KDVZlcnlMYXJnZUVudW0SFgoS", 396 "RU5VTV9MQUJFTF9ERUZBVUxUEAASEAoMRU5VTV9MQUJFTF8xEAESEAoMRU5V", 397 "TV9MQUJFTF8yEAISEAoMRU5VTV9MQUJFTF8zEAMSEAoMRU5VTV9MQUJFTF80", 398 "EAQSEAoMRU5VTV9MQUJFTF81EAUSEAoMRU5VTV9MQUJFTF82EAYSEAoMRU5V", 399 "TV9MQUJFTF83EAcSEAoMRU5VTV9MQUJFTF84EAgSEAoMRU5VTV9MQUJFTF85", 400 "EAkSEQoNRU5VTV9MQUJFTF8xMBAKEhEKDUVOVU1fTEFCRUxfMTEQCxIRCg1F", 401 "TlVNX0xBQkVMXzEyEAwSEQoNRU5VTV9MQUJFTF8xMxANEhEKDUVOVU1fTEFC", 402 "RUxfMTQQDhIRCg1FTlVNX0xBQkVMXzE1EA8SEQoNRU5VTV9MQUJFTF8xNhAQ", 403 "EhEKDUVOVU1fTEFCRUxfMTcQERIRCg1FTlVNX0xBQkVMXzE4EBISEQoNRU5V", 404 "TV9MQUJFTF8xORATEhEKDUVOVU1fTEFCRUxfMjAQFBIRCg1FTlVNX0xBQkVM", 405 "XzIxEBUSEQoNRU5VTV9MQUJFTF8yMhAWEhEKDUVOVU1fTEFCRUxfMjMQFxIR", 406 "Cg1FTlVNX0xBQkVMXzI0EBgSEQoNRU5VTV9MQUJFTF8yNRAZEhEKDUVOVU1f", 407 "TEFCRUxfMjYQGhIRCg1FTlVNX0xBQkVMXzI3EBsSEQoNRU5VTV9MQUJFTF8y", 408 "OBAcEhEKDUVOVU1fTEFCRUxfMjkQHRIRCg1FTlVNX0xBQkVMXzMwEB4SEQoN", 409 "RU5VTV9MQUJFTF8zMRAfEhEKDUVOVU1fTEFCRUxfMzIQIBIRCg1FTlVNX0xB", 410 "QkVMXzMzECESEQoNRU5VTV9MQUJFTF8zNBAiEhEKDUVOVU1fTEFCRUxfMzUQ", 411 "IxIRCg1FTlVNX0xBQkVMXzM2ECQSEQoNRU5VTV9MQUJFTF8zNxAlEhEKDUVO", 412 "VU1fTEFCRUxfMzgQJhIRCg1FTlVNX0xBQkVMXzM5ECcSEQoNRU5VTV9MQUJF", 413 "TF80MBAoEhEKDUVOVU1fTEFCRUxfNDEQKRIRCg1FTlVNX0xBQkVMXzQyECoS", 414 "EQoNRU5VTV9MQUJFTF80MxArEhEKDUVOVU1fTEFCRUxfNDQQLBIRCg1FTlVN", 415 "X0xBQkVMXzQ1EC0SEQoNRU5VTV9MQUJFTF80NhAuEhEKDUVOVU1fTEFCRUxf", 416 "NDcQLxIRCg1FTlVNX0xBQkVMXzQ4EDASEQoNRU5VTV9MQUJFTF80ORAxEhEK", 417 "DUVOVU1fTEFCRUxfNTAQMhIRCg1FTlVNX0xBQkVMXzUxEDMSEQoNRU5VTV9M", 418 "QUJFTF81MhA0EhEKDUVOVU1fTEFCRUxfNTMQNRIRCg1FTlVNX0xBQkVMXzU0", 419 "EDYSEQoNRU5VTV9MQUJFTF81NRA3EhEKDUVOVU1fTEFCRUxfNTYQOBIRCg1F", 420 "TlVNX0xBQkVMXzU3EDkSEQoNRU5VTV9MQUJFTF81OBA6EhEKDUVOVU1fTEFC", 421 "RUxfNTkQOxIRCg1FTlVNX0xBQkVMXzYwEDwSEQoNRU5VTV9MQUJFTF82MRA9", 422 "EhEKDUVOVU1fTEFCRUxfNjIQPhIRCg1FTlVNX0xBQkVMXzYzED8SEQoNRU5V", 423 "TV9MQUJFTF82NBBAEhEKDUVOVU1fTEFCRUxfNjUQQRIRCg1FTlVNX0xBQkVM", 424 "XzY2EEISEQoNRU5VTV9MQUJFTF82NxBDEhEKDUVOVU1fTEFCRUxfNjgQRBIR", 425 "Cg1FTlVNX0xBQkVMXzY5EEUSEQoNRU5VTV9MQUJFTF83MBBGEhEKDUVOVU1f", 426 "TEFCRUxfNzEQRxIRCg1FTlVNX0xBQkVMXzcyEEgSEQoNRU5VTV9MQUJFTF83", 427 "MxBJEhEKDUVOVU1fTEFCRUxfNzQQShIRCg1FTlVNX0xBQkVMXzc1EEsSEQoN", 428 "RU5VTV9MQUJFTF83NhBMEhEKDUVOVU1fTEFCRUxfNzcQTRIRCg1FTlVNX0xB", 429 "QkVMXzc4EE4SEQoNRU5VTV9MQUJFTF83ORBPEhEKDUVOVU1fTEFCRUxfODAQ", 430 "UBIRCg1FTlVNX0xBQkVMXzgxEFESEQoNRU5VTV9MQUJFTF84MhBSEhEKDUVO", 431 "VU1fTEFCRUxfODMQUxIRCg1FTlVNX0xBQkVMXzg0EFQSEQoNRU5VTV9MQUJF", 432 "TF84NRBVEhEKDUVOVU1fTEFCRUxfODYQVhIRCg1FTlVNX0xBQkVMXzg3EFcS", 433 "EQoNRU5VTV9MQUJFTF84OBBYEhEKDUVOVU1fTEFCRUxfODkQWRIRCg1FTlVN", 434 "X0xBQkVMXzkwEFoSEQoNRU5VTV9MQUJFTF85MRBbEhEKDUVOVU1fTEFCRUxf", 435 "OTIQXBIRCg1FTlVNX0xBQkVMXzkzEF0SEQoNRU5VTV9MQUJFTF85NBBeEhEK", 436 "DUVOVU1fTEFCRUxfOTUQXxIRCg1FTlVNX0xBQkVMXzk2EGASEQoNRU5VTV9M", 437 "QUJFTF85NxBhEhEKDUVOVU1fTEFCRUxfOTgQYhIRCg1FTlVNX0xBQkVMXzk5", 438 "EGMSEgoORU5VTV9MQUJFTF8xMDAQZDK1AQoLVGVzdFNlcnZpY2USUgoDRm9v", 439 "EiQucHJvdG9idWZfdW5pdHRlc3RfcHJvdG8yLkZvb1JlcXVlc3QaJS5wcm90", 440 "b2J1Zl91bml0dGVzdF9wcm90bzIuRm9vUmVzcG9uc2USUgoDQmFyEiQucHJv", 441 "dG9idWZfdW5pdHRlc3RfcHJvdG8yLkJhclJlcXVlc3QaJS5wcm90b2J1Zl91", 442 "bml0dGVzdF9wcm90bzIuQmFyUmVzcG9uc2U6TQoYb3B0aW9uYWxfaW50MzJf", 443 "ZXh0ZW5zaW9uEisucHJvdG9idWZfdW5pdHRlc3RfcHJvdG8yLlRlc3RBbGxF", 444 "eHRlbnNpb25zGAEgASgFOk0KGG9wdGlvbmFsX2ludDY0X2V4dGVuc2lvbhIr", 445 "LnByb3RvYnVmX3VuaXR0ZXN0X3Byb3RvMi5UZXN0QWxsRXh0ZW5zaW9ucxgC", 446 "IAEoAzpOChlvcHRpb25hbF91aW50MzJfZXh0ZW5zaW9uEisucHJvdG9idWZf", 447 "dW5pdHRlc3RfcHJvdG8yLlRlc3RBbGxFeHRlbnNpb25zGAMgASgNOk4KGW9w", 448 "dGlvbmFsX3VpbnQ2NF9leHRlbnNpb24SKy5wcm90b2J1Zl91bml0dGVzdF9w", 449 "cm90bzIuVGVzdEFsbEV4dGVuc2lvbnMYBCABKAQ6TgoZb3B0aW9uYWxfc2lu", 450 "dDMyX2V4dGVuc2lvbhIrLnByb3RvYnVmX3VuaXR0ZXN0X3Byb3RvMi5UZXN0", 451 "QWxsRXh0ZW5zaW9ucxgFIAEoETpOChlvcHRpb25hbF9zaW50NjRfZXh0ZW5z", 452 "aW9uEisucHJvdG9idWZfdW5pdHRlc3RfcHJvdG8yLlRlc3RBbGxFeHRlbnNp", 453 "b25zGAYgASgSOk8KGm9wdGlvbmFsX2ZpeGVkMzJfZXh0ZW5zaW9uEisucHJv", 454 "dG9idWZfdW5pdHRlc3RfcHJvdG8yLlRlc3RBbGxFeHRlbnNpb25zGAcgASgH", 455 "Ok8KGm9wdGlvbmFsX2ZpeGVkNjRfZXh0ZW5zaW9uEisucHJvdG9idWZfdW5p", 456 "dHRlc3RfcHJvdG8yLlRlc3RBbGxFeHRlbnNpb25zGAggASgGOlAKG29wdGlv", 457 "bmFsX3NmaXhlZDMyX2V4dGVuc2lvbhIrLnByb3RvYnVmX3VuaXR0ZXN0X3By", 458 "b3RvMi5UZXN0QWxsRXh0ZW5zaW9ucxgJIAEoDzpQChtvcHRpb25hbF9zZml4", 459 "ZWQ2NF9leHRlbnNpb24SKy5wcm90b2J1Zl91bml0dGVzdF9wcm90bzIuVGVz", 460 "dEFsbEV4dGVuc2lvbnMYCiABKBA6TQoYb3B0aW9uYWxfZmxvYXRfZXh0ZW5z", 461 "aW9uEisucHJvdG9idWZfdW5pdHRlc3RfcHJvdG8yLlRlc3RBbGxFeHRlbnNp", 462 "b25zGAsgASgCOk4KGW9wdGlvbmFsX2RvdWJsZV9leHRlbnNpb24SKy5wcm90", 463 "b2J1Zl91bml0dGVzdF9wcm90bzIuVGVzdEFsbEV4dGVuc2lvbnMYDCABKAE6", 464 "TAoXb3B0aW9uYWxfYm9vbF9leHRlbnNpb24SKy5wcm90b2J1Zl91bml0dGVz", 465 "dF9wcm90bzIuVGVzdEFsbEV4dGVuc2lvbnMYDSABKAg6TgoZb3B0aW9uYWxf", 466 "c3RyaW5nX2V4dGVuc2lvbhIrLnByb3RvYnVmX3VuaXR0ZXN0X3Byb3RvMi5U", 467 "ZXN0QWxsRXh0ZW5zaW9ucxgOIAEoCTpNChhvcHRpb25hbF9ieXRlc19leHRl", 468 "bnNpb24SKy5wcm90b2J1Zl91bml0dGVzdF9wcm90bzIuVGVzdEFsbEV4dGVu", 469 "c2lvbnMYDyABKAw6fwoXb3B0aW9uYWxncm91cF9leHRlbnNpb24SKy5wcm90", 470 "b2J1Zl91bml0dGVzdF9wcm90bzIuVGVzdEFsbEV4dGVuc2lvbnMYECABKAoy", 471 "MS5wcm90b2J1Zl91bml0dGVzdF9wcm90bzIuT3B0aW9uYWxHcm91cF9leHRl", 472 "bnNpb246jAEKIW9wdGlvbmFsX25lc3RlZF9tZXNzYWdlX2V4dGVuc2lvbhIr", 473 "LnByb3RvYnVmX3VuaXR0ZXN0X3Byb3RvMi5UZXN0QWxsRXh0ZW5zaW9ucxgS", 474 "IAEoCzI0LnByb3RvYnVmX3VuaXR0ZXN0X3Byb3RvMi5UZXN0QWxsVHlwZXMu", 475 "TmVzdGVkTWVzc2FnZTqBAQoib3B0aW9uYWxfZm9yZWlnbl9tZXNzYWdlX2V4", 476 "dGVuc2lvbhIrLnByb3RvYnVmX3VuaXR0ZXN0X3Byb3RvMi5UZXN0QWxsRXh0", 477 "ZW5zaW9ucxgTIAEoCzIoLnByb3RvYnVmX3VuaXR0ZXN0X3Byb3RvMi5Gb3Jl", 478 "aWduTWVzc2FnZTqGAQohb3B0aW9uYWxfaW1wb3J0X21lc3NhZ2VfZXh0ZW5z", 479 "aW9uEisucHJvdG9idWZfdW5pdHRlc3RfcHJvdG8yLlRlc3RBbGxFeHRlbnNp", 480 "b25zGBQgASgLMi4ucHJvdG9idWZfdW5pdHRlc3RfaW1wb3J0X3Byb3RvMi5J", 481 "bXBvcnRNZXNzYWdlOoYBCh5vcHRpb25hbF9uZXN0ZWRfZW51bV9leHRlbnNp", 482 "b24SKy5wcm90b2J1Zl91bml0dGVzdF9wcm90bzIuVGVzdEFsbEV4dGVuc2lv", 483 "bnMYFSABKA4yMS5wcm90b2J1Zl91bml0dGVzdF9wcm90bzIuVGVzdEFsbFR5", 484 "cGVzLk5lc3RlZEVudW06ewofb3B0aW9uYWxfZm9yZWlnbl9lbnVtX2V4dGVu", 485 "c2lvbhIrLnByb3RvYnVmX3VuaXR0ZXN0X3Byb3RvMi5UZXN0QWxsRXh0ZW5z", 486 "aW9ucxgWIAEoDjIlLnByb3RvYnVmX3VuaXR0ZXN0X3Byb3RvMi5Gb3JlaWdu", 487 "RW51bTqAAQoeb3B0aW9uYWxfaW1wb3J0X2VudW1fZXh0ZW5zaW9uEisucHJv", 488 "dG9idWZfdW5pdHRlc3RfcHJvdG8yLlRlc3RBbGxFeHRlbnNpb25zGBcgASgO", 489 "MisucHJvdG9idWZfdW5pdHRlc3RfaW1wb3J0X3Byb3RvMi5JbXBvcnRFbnVt", 490 "OlgKH29wdGlvbmFsX3N0cmluZ19waWVjZV9leHRlbnNpb24SKy5wcm90b2J1", 491 "Zl91bml0dGVzdF9wcm90bzIuVGVzdEFsbEV4dGVuc2lvbnMYGCABKAlCAggC", 492 "OkwKF29wdGlvbmFsX2NvcmRfZXh0ZW5zaW9uEisucHJvdG9idWZfdW5pdHRl", 493 "c3RfcHJvdG8yLlRlc3RBbGxFeHRlbnNpb25zGBkgASgJOpMBCihvcHRpb25h", 494 "bF9wdWJsaWNfaW1wb3J0X21lc3NhZ2VfZXh0ZW5zaW9uEisucHJvdG9idWZf", 495 "dW5pdHRlc3RfcHJvdG8yLlRlc3RBbGxFeHRlbnNpb25zGBogASgLMjQucHJv", 496 "dG9idWZfdW5pdHRlc3RfaW1wb3J0X3Byb3RvMi5QdWJsaWNJbXBvcnRNZXNz", 497 "YWdlOo4BCh9vcHRpb25hbF9sYXp5X21lc3NhZ2VfZXh0ZW5zaW9uEisucHJv", 498 "dG9idWZfdW5pdHRlc3RfcHJvdG8yLlRlc3RBbGxFeHRlbnNpb25zGBsgASgL", 499 "MjQucHJvdG9idWZfdW5pdHRlc3RfcHJvdG8yLlRlc3RBbGxUeXBlcy5OZXN0", 500 "ZWRNZXNzYWdlQgIoATpNChhyZXBlYXRlZF9pbnQzMl9leHRlbnNpb24SKy5w", 501 "cm90b2J1Zl91bml0dGVzdF9wcm90bzIuVGVzdEFsbEV4dGVuc2lvbnMYHyAD", 502 "KAU6TQoYcmVwZWF0ZWRfaW50NjRfZXh0ZW5zaW9uEisucHJvdG9idWZfdW5p", 503 "dHRlc3RfcHJvdG8yLlRlc3RBbGxFeHRlbnNpb25zGCAgAygDOk4KGXJlcGVh", 504 "dGVkX3VpbnQzMl9leHRlbnNpb24SKy5wcm90b2J1Zl91bml0dGVzdF9wcm90", 505 "bzIuVGVzdEFsbEV4dGVuc2lvbnMYISADKA06TgoZcmVwZWF0ZWRfdWludDY0", 506 "X2V4dGVuc2lvbhIrLnByb3RvYnVmX3VuaXR0ZXN0X3Byb3RvMi5UZXN0QWxs", 507 "RXh0ZW5zaW9ucxgiIAMoBDpOChlyZXBlYXRlZF9zaW50MzJfZXh0ZW5zaW9u", 508 "EisucHJvdG9idWZfdW5pdHRlc3RfcHJvdG8yLlRlc3RBbGxFeHRlbnNpb25z", 509 "GCMgAygROk4KGXJlcGVhdGVkX3NpbnQ2NF9leHRlbnNpb24SKy5wcm90b2J1", 510 "Zl91bml0dGVzdF9wcm90bzIuVGVzdEFsbEV4dGVuc2lvbnMYJCADKBI6Twoa", 511 "cmVwZWF0ZWRfZml4ZWQzMl9leHRlbnNpb24SKy5wcm90b2J1Zl91bml0dGVz", 512 "dF9wcm90bzIuVGVzdEFsbEV4dGVuc2lvbnMYJSADKAc6TwoacmVwZWF0ZWRf", 513 "Zml4ZWQ2NF9leHRlbnNpb24SKy5wcm90b2J1Zl91bml0dGVzdF9wcm90bzIu", 514 "VGVzdEFsbEV4dGVuc2lvbnMYJiADKAY6UAobcmVwZWF0ZWRfc2ZpeGVkMzJf", 515 "ZXh0ZW5zaW9uEisucHJvdG9idWZfdW5pdHRlc3RfcHJvdG8yLlRlc3RBbGxF", 516 "eHRlbnNpb25zGCcgAygPOlAKG3JlcGVhdGVkX3NmaXhlZDY0X2V4dGVuc2lv", 517 "bhIrLnByb3RvYnVmX3VuaXR0ZXN0X3Byb3RvMi5UZXN0QWxsRXh0ZW5zaW9u", 518 "cxgoIAMoEDpNChhyZXBlYXRlZF9mbG9hdF9leHRlbnNpb24SKy5wcm90b2J1", 519 "Zl91bml0dGVzdF9wcm90bzIuVGVzdEFsbEV4dGVuc2lvbnMYKSADKAI6TgoZ", 520 "cmVwZWF0ZWRfZG91YmxlX2V4dGVuc2lvbhIrLnByb3RvYnVmX3VuaXR0ZXN0", 521 "X3Byb3RvMi5UZXN0QWxsRXh0ZW5zaW9ucxgqIAMoATpMChdyZXBlYXRlZF9i", 522 "b29sX2V4dGVuc2lvbhIrLnByb3RvYnVmX3VuaXR0ZXN0X3Byb3RvMi5UZXN0", 523 "QWxsRXh0ZW5zaW9ucxgrIAMoCDpOChlyZXBlYXRlZF9zdHJpbmdfZXh0ZW5z", 524 "aW9uEisucHJvdG9idWZfdW5pdHRlc3RfcHJvdG8yLlRlc3RBbGxFeHRlbnNp", 525 "b25zGCwgAygJOk0KGHJlcGVhdGVkX2J5dGVzX2V4dGVuc2lvbhIrLnByb3Rv", 526 "YnVmX3VuaXR0ZXN0X3Byb3RvMi5UZXN0QWxsRXh0ZW5zaW9ucxgtIAMoDDp/", 527 "ChdyZXBlYXRlZGdyb3VwX2V4dGVuc2lvbhIrLnByb3RvYnVmX3VuaXR0ZXN0", 528 "X3Byb3RvMi5UZXN0QWxsRXh0ZW5zaW9ucxguIAMoCjIxLnByb3RvYnVmX3Vu", 529 "aXR0ZXN0X3Byb3RvMi5SZXBlYXRlZEdyb3VwX2V4dGVuc2lvbjqMAQohcmVw", 530 "ZWF0ZWRfbmVzdGVkX21lc3NhZ2VfZXh0ZW5zaW9uEisucHJvdG9idWZfdW5p", 531 "dHRlc3RfcHJvdG8yLlRlc3RBbGxFeHRlbnNpb25zGDAgAygLMjQucHJvdG9i", 532 "dWZfdW5pdHRlc3RfcHJvdG8yLlRlc3RBbGxUeXBlcy5OZXN0ZWRNZXNzYWdl", 533 "OoEBCiJyZXBlYXRlZF9mb3JlaWduX21lc3NhZ2VfZXh0ZW5zaW9uEisucHJv", 534 "dG9idWZfdW5pdHRlc3RfcHJvdG8yLlRlc3RBbGxFeHRlbnNpb25zGDEgAygL", 535 "MigucHJvdG9idWZfdW5pdHRlc3RfcHJvdG8yLkZvcmVpZ25NZXNzYWdlOoYB", 536 "CiFyZXBlYXRlZF9pbXBvcnRfbWVzc2FnZV9leHRlbnNpb24SKy5wcm90b2J1", 537 "Zl91bml0dGVzdF9wcm90bzIuVGVzdEFsbEV4dGVuc2lvbnMYMiADKAsyLi5w", 538 "cm90b2J1Zl91bml0dGVzdF9pbXBvcnRfcHJvdG8yLkltcG9ydE1lc3NhZ2U6", 539 "hgEKHnJlcGVhdGVkX25lc3RlZF9lbnVtX2V4dGVuc2lvbhIrLnByb3RvYnVm", 540 "X3VuaXR0ZXN0X3Byb3RvMi5UZXN0QWxsRXh0ZW5zaW9ucxgzIAMoDjIxLnBy", 541 "b3RvYnVmX3VuaXR0ZXN0X3Byb3RvMi5UZXN0QWxsVHlwZXMuTmVzdGVkRW51", 542 "bTp7Ch9yZXBlYXRlZF9mb3JlaWduX2VudW1fZXh0ZW5zaW9uEisucHJvdG9i", 543 "dWZfdW5pdHRlc3RfcHJvdG8yLlRlc3RBbGxFeHRlbnNpb25zGDQgAygOMiUu", 544 "cHJvdG9idWZfdW5pdHRlc3RfcHJvdG8yLkZvcmVpZ25FbnVtOoABCh5yZXBl", 545 "YXRlZF9pbXBvcnRfZW51bV9leHRlbnNpb24SKy5wcm90b2J1Zl91bml0dGVz", 546 "dF9wcm90bzIuVGVzdEFsbEV4dGVuc2lvbnMYNSADKA4yKy5wcm90b2J1Zl91", 547 "bml0dGVzdF9pbXBvcnRfcHJvdG8yLkltcG9ydEVudW06WAofcmVwZWF0ZWRf", 548 "c3RyaW5nX3BpZWNlX2V4dGVuc2lvbhIrLnByb3RvYnVmX3VuaXR0ZXN0X3By", 549 "b3RvMi5UZXN0QWxsRXh0ZW5zaW9ucxg2IAMoCUICCAI6TAoXcmVwZWF0ZWRf", 550 "Y29yZF9leHRlbnNpb24SKy5wcm90b2J1Zl91bml0dGVzdF9wcm90bzIuVGVz", 551 "dEFsbEV4dGVuc2lvbnMYNyADKAk6jgEKH3JlcGVhdGVkX2xhenlfbWVzc2Fn", 552 "ZV9leHRlbnNpb24SKy5wcm90b2J1Zl91bml0dGVzdF9wcm90bzIuVGVzdEFs", 553 "bEV4dGVuc2lvbnMYOSADKAsyNC5wcm90b2J1Zl91bml0dGVzdF9wcm90bzIu", 554 "VGVzdEFsbFR5cGVzLk5lc3RlZE1lc3NhZ2VCAigBOlAKF2RlZmF1bHRfaW50", 555 "MzJfZXh0ZW5zaW9uEisucHJvdG9idWZfdW5pdHRlc3RfcHJvdG8yLlRlc3RB", 556 "bGxFeHRlbnNpb25zGD0gASgFOgI0MTpQChdkZWZhdWx0X2ludDY0X2V4dGVu", 557 "c2lvbhIrLnByb3RvYnVmX3VuaXR0ZXN0X3Byb3RvMi5UZXN0QWxsRXh0ZW5z", 558 "aW9ucxg+IAEoAzoCNDI6UQoYZGVmYXVsdF91aW50MzJfZXh0ZW5zaW9uEisu", 559 "cHJvdG9idWZfdW5pdHRlc3RfcHJvdG8yLlRlc3RBbGxFeHRlbnNpb25zGD8g", 560 "ASgNOgI0MzpRChhkZWZhdWx0X3VpbnQ2NF9leHRlbnNpb24SKy5wcm90b2J1", 561 "Zl91bml0dGVzdF9wcm90bzIuVGVzdEFsbEV4dGVuc2lvbnMYQCABKAQ6AjQ0", 562 "OlIKGGRlZmF1bHRfc2ludDMyX2V4dGVuc2lvbhIrLnByb3RvYnVmX3VuaXR0", 563 "ZXN0X3Byb3RvMi5UZXN0QWxsRXh0ZW5zaW9ucxhBIAEoEToDLTQ1OlEKGGRl", 564 "ZmF1bHRfc2ludDY0X2V4dGVuc2lvbhIrLnByb3RvYnVmX3VuaXR0ZXN0X3By", 565 "b3RvMi5UZXN0QWxsRXh0ZW5zaW9ucxhCIAEoEjoCNDY6UgoZZGVmYXVsdF9m", 566 "aXhlZDMyX2V4dGVuc2lvbhIrLnByb3RvYnVmX3VuaXR0ZXN0X3Byb3RvMi5U", 567 "ZXN0QWxsRXh0ZW5zaW9ucxhDIAEoBzoCNDc6UgoZZGVmYXVsdF9maXhlZDY0", 568 "X2V4dGVuc2lvbhIrLnByb3RvYnVmX3VuaXR0ZXN0X3Byb3RvMi5UZXN0QWxs", 569 "RXh0ZW5zaW9ucxhEIAEoBjoCNDg6UwoaZGVmYXVsdF9zZml4ZWQzMl9leHRl", 570 "bnNpb24SKy5wcm90b2J1Zl91bml0dGVzdF9wcm90bzIuVGVzdEFsbEV4dGVu", 571 "c2lvbnMYRSABKA86AjQ5OlQKGmRlZmF1bHRfc2ZpeGVkNjRfZXh0ZW5zaW9u", 572 "EisucHJvdG9idWZfdW5pdHRlc3RfcHJvdG8yLlRlc3RBbGxFeHRlbnNpb25z", 573 "GEYgASgQOgMtNTA6UgoXZGVmYXVsdF9mbG9hdF9leHRlbnNpb24SKy5wcm90", 574 "b2J1Zl91bml0dGVzdF9wcm90bzIuVGVzdEFsbEV4dGVuc2lvbnMYRyABKAI6", 575 "BDUxLjU6VAoYZGVmYXVsdF9kb3VibGVfZXh0ZW5zaW9uEisucHJvdG9idWZf", 576 "dW5pdHRlc3RfcHJvdG8yLlRlc3RBbGxFeHRlbnNpb25zGEggASgBOgU1MjAw", 577 "MDpRChZkZWZhdWx0X2Jvb2xfZXh0ZW5zaW9uEisucHJvdG9idWZfdW5pdHRl", 578 "c3RfcHJvdG8yLlRlc3RBbGxFeHRlbnNpb25zGEkgASgIOgR0cnVlOlQKGGRl", 579 "ZmF1bHRfc3RyaW5nX2V4dGVuc2lvbhIrLnByb3RvYnVmX3VuaXR0ZXN0X3By", 580 "b3RvMi5UZXN0QWxsRXh0ZW5zaW9ucxhKIAEoCToFaGVsbG86UwoXZGVmYXVs", 581 "dF9ieXRlc19leHRlbnNpb24SKy5wcm90b2J1Zl91bml0dGVzdF9wcm90bzIu", 582 "VGVzdEFsbEV4dGVuc2lvbnMYSyABKAw6BXdvcmxkOooBCh1kZWZhdWx0X25l", 583 "c3RlZF9lbnVtX2V4dGVuc2lvbhIrLnByb3RvYnVmX3VuaXR0ZXN0X3Byb3Rv", 584 "Mi5UZXN0QWxsRXh0ZW5zaW9ucxhRIAEoDjIxLnByb3RvYnVmX3VuaXR0ZXN0", 585 "X3Byb3RvMi5UZXN0QWxsVHlwZXMuTmVzdGVkRW51bToDQkFSOocBCh5kZWZh", 586 "dWx0X2ZvcmVpZ25fZW51bV9leHRlbnNpb24SKy5wcm90b2J1Zl91bml0dGVz", 587 "dF9wcm90bzIuVGVzdEFsbEV4dGVuc2lvbnMYUiABKA4yJS5wcm90b2J1Zl91", 588 "bml0dGVzdF9wcm90bzIuRm9yZWlnbkVudW06C0ZPUkVJR05fQkFSOosBCh1k", 589 "ZWZhdWx0X2ltcG9ydF9lbnVtX2V4dGVuc2lvbhIrLnByb3RvYnVmX3VuaXR0", 590 "ZXN0X3Byb3RvMi5UZXN0QWxsRXh0ZW5zaW9ucxhTIAEoDjIrLnByb3RvYnVm", 591 "X3VuaXR0ZXN0X2ltcG9ydF9wcm90bzIuSW1wb3J0RW51bToKSU1QT1JUX0JB", 592 "UjpcCh5kZWZhdWx0X3N0cmluZ19waWVjZV9leHRlbnNpb24SKy5wcm90b2J1", 593 "Zl91bml0dGVzdF9wcm90bzIuVGVzdEFsbEV4dGVuc2lvbnMYVCABKAk6A2Fi", 594 "Y0ICCAI6UAoWZGVmYXVsdF9jb3JkX2V4dGVuc2lvbhIrLnByb3RvYnVmX3Vu", 595 "aXR0ZXN0X3Byb3RvMi5UZXN0QWxsRXh0ZW5zaW9ucxhVIAEoCToDMTIzOksK", 596 "Fm9uZW9mX3VpbnQzMl9leHRlbnNpb24SKy5wcm90b2J1Zl91bml0dGVzdF9w", 597 "cm90bzIuVGVzdEFsbEV4dGVuc2lvbnMYbyABKA06iQEKHm9uZW9mX25lc3Rl", 598 "ZF9tZXNzYWdlX2V4dGVuc2lvbhIrLnByb3RvYnVmX3VuaXR0ZXN0X3Byb3Rv", 599 "Mi5UZXN0QWxsRXh0ZW5zaW9ucxhwIAEoCzI0LnByb3RvYnVmX3VuaXR0ZXN0", 600 "X3Byb3RvMi5UZXN0QWxsVHlwZXMuTmVzdGVkTWVzc2FnZTpLChZvbmVvZl9z", 601 "dHJpbmdfZXh0ZW5zaW9uEisucHJvdG9idWZfdW5pdHRlc3RfcHJvdG8yLlRl", 602 "c3RBbGxFeHRlbnNpb25zGHEgASgJOkoKFW9uZW9mX2J5dGVzX2V4dGVuc2lv", 603 "bhIrLnByb3RvYnVmX3VuaXR0ZXN0X3Byb3RvMi5UZXN0QWxsRXh0ZW5zaW9u", 604 "cxhyIAEoDDpJChNteV9leHRlbnNpb25fc3RyaW5nEiwucHJvdG9idWZfdW5p", 605 "dHRlc3RfcHJvdG8yLlRlc3RGaWVsZE9yZGVyaW5ncxgyIAEoCTpGChBteV9l", 606 "eHRlbnNpb25faW50EiwucHJvdG9idWZfdW5pdHRlc3RfcHJvdG8yLlRlc3RG", 607 "aWVsZE9yZGVyaW5ncxgFIAEoBTpSChZwYWNrZWRfaW50MzJfZXh0ZW5zaW9u", 608 "Ei4ucHJvdG9idWZfdW5pdHRlc3RfcHJvdG8yLlRlc3RQYWNrZWRFeHRlbnNp", 609 "b25zGFogAygFQgIQATpSChZwYWNrZWRfaW50NjRfZXh0ZW5zaW9uEi4ucHJv", 610 "dG9idWZfdW5pdHRlc3RfcHJvdG8yLlRlc3RQYWNrZWRFeHRlbnNpb25zGFsg", 611 "AygDQgIQATpTChdwYWNrZWRfdWludDMyX2V4dGVuc2lvbhIuLnByb3RvYnVm", 612 "X3VuaXR0ZXN0X3Byb3RvMi5UZXN0UGFja2VkRXh0ZW5zaW9ucxhcIAMoDUIC", 613 "EAE6UwoXcGFja2VkX3VpbnQ2NF9leHRlbnNpb24SLi5wcm90b2J1Zl91bml0", 614 "dGVzdF9wcm90bzIuVGVzdFBhY2tlZEV4dGVuc2lvbnMYXSADKARCAhABOlMK", 615 "F3BhY2tlZF9zaW50MzJfZXh0ZW5zaW9uEi4ucHJvdG9idWZfdW5pdHRlc3Rf", 616 "cHJvdG8yLlRlc3RQYWNrZWRFeHRlbnNpb25zGF4gAygRQgIQATpTChdwYWNr", 617 "ZWRfc2ludDY0X2V4dGVuc2lvbhIuLnByb3RvYnVmX3VuaXR0ZXN0X3Byb3Rv", 618 "Mi5UZXN0UGFja2VkRXh0ZW5zaW9ucxhfIAMoEkICEAE6VAoYcGFja2VkX2Zp", 619 "eGVkMzJfZXh0ZW5zaW9uEi4ucHJvdG9idWZfdW5pdHRlc3RfcHJvdG8yLlRl", 620 "c3RQYWNrZWRFeHRlbnNpb25zGGAgAygHQgIQATpUChhwYWNrZWRfZml4ZWQ2", 621 "NF9leHRlbnNpb24SLi5wcm90b2J1Zl91bml0dGVzdF9wcm90bzIuVGVzdFBh", 622 "Y2tlZEV4dGVuc2lvbnMYYSADKAZCAhABOlUKGXBhY2tlZF9zZml4ZWQzMl9l", 623 "eHRlbnNpb24SLi5wcm90b2J1Zl91bml0dGVzdF9wcm90bzIuVGVzdFBhY2tl", 624 "ZEV4dGVuc2lvbnMYYiADKA9CAhABOlUKGXBhY2tlZF9zZml4ZWQ2NF9leHRl", 625 "bnNpb24SLi5wcm90b2J1Zl91bml0dGVzdF9wcm90bzIuVGVzdFBhY2tlZEV4", 626 "dGVuc2lvbnMYYyADKBBCAhABOlIKFnBhY2tlZF9mbG9hdF9leHRlbnNpb24S", 627 "Li5wcm90b2J1Zl91bml0dGVzdF9wcm90bzIuVGVzdFBhY2tlZEV4dGVuc2lv", 628 "bnMYZCADKAJCAhABOlMKF3BhY2tlZF9kb3VibGVfZXh0ZW5zaW9uEi4ucHJv", 629 "dG9idWZfdW5pdHRlc3RfcHJvdG8yLlRlc3RQYWNrZWRFeHRlbnNpb25zGGUg", 630 "AygBQgIQATpRChVwYWNrZWRfYm9vbF9leHRlbnNpb24SLi5wcm90b2J1Zl91", 631 "bml0dGVzdF9wcm90bzIuVGVzdFBhY2tlZEV4dGVuc2lvbnMYZiADKAhCAhAB", 632 "OngKFXBhY2tlZF9lbnVtX2V4dGVuc2lvbhIuLnByb3RvYnVmX3VuaXR0ZXN0", 633 "X3Byb3RvMi5UZXN0UGFja2VkRXh0ZW5zaW9ucxhnIAMoDjIlLnByb3RvYnVm", 634 "X3VuaXR0ZXN0X3Byb3RvMi5Gb3JlaWduRW51bUICEAE6VgoYdW5wYWNrZWRf", 635 "aW50MzJfZXh0ZW5zaW9uEjAucHJvdG9idWZfdW5pdHRlc3RfcHJvdG8yLlRl", 636 "c3RVbnBhY2tlZEV4dGVuc2lvbnMYWiADKAVCAhAAOlYKGHVucGFja2VkX2lu", 637 "dDY0X2V4dGVuc2lvbhIwLnByb3RvYnVmX3VuaXR0ZXN0X3Byb3RvMi5UZXN0", 638 "VW5wYWNrZWRFeHRlbnNpb25zGFsgAygDQgIQADpXChl1bnBhY2tlZF91aW50", 639 "MzJfZXh0ZW5zaW9uEjAucHJvdG9idWZfdW5pdHRlc3RfcHJvdG8yLlRlc3RV", 640 "bnBhY2tlZEV4dGVuc2lvbnMYXCADKA1CAhAAOlcKGXVucGFja2VkX3VpbnQ2", 641 "NF9leHRlbnNpb24SMC5wcm90b2J1Zl91bml0dGVzdF9wcm90bzIuVGVzdFVu", 642 "cGFja2VkRXh0ZW5zaW9ucxhdIAMoBEICEAA6VwoZdW5wYWNrZWRfc2ludDMy", 643 "X2V4dGVuc2lvbhIwLnByb3RvYnVmX3VuaXR0ZXN0X3Byb3RvMi5UZXN0VW5w", 644 "YWNrZWRFeHRlbnNpb25zGF4gAygRQgIQADpXChl1bnBhY2tlZF9zaW50NjRf", 645 "ZXh0ZW5zaW9uEjAucHJvdG9idWZfdW5pdHRlc3RfcHJvdG8yLlRlc3RVbnBh", 646 "Y2tlZEV4dGVuc2lvbnMYXyADKBJCAhAAOlgKGnVucGFja2VkX2ZpeGVkMzJf", 647 "ZXh0ZW5zaW9uEjAucHJvdG9idWZfdW5pdHRlc3RfcHJvdG8yLlRlc3RVbnBh", 648 "Y2tlZEV4dGVuc2lvbnMYYCADKAdCAhAAOlgKGnVucGFja2VkX2ZpeGVkNjRf", 649 "ZXh0ZW5zaW9uEjAucHJvdG9idWZfdW5pdHRlc3RfcHJvdG8yLlRlc3RVbnBh", 650 "Y2tlZEV4dGVuc2lvbnMYYSADKAZCAhAAOlkKG3VucGFja2VkX3NmaXhlZDMy", 651 "X2V4dGVuc2lvbhIwLnByb3RvYnVmX3VuaXR0ZXN0X3Byb3RvMi5UZXN0VW5w", 652 "YWNrZWRFeHRlbnNpb25zGGIgAygPQgIQADpZCht1bnBhY2tlZF9zZml4ZWQ2", 653 "NF9leHRlbnNpb24SMC5wcm90b2J1Zl91bml0dGVzdF9wcm90bzIuVGVzdFVu", 654 "cGFja2VkRXh0ZW5zaW9ucxhjIAMoEEICEAA6VgoYdW5wYWNrZWRfZmxvYXRf", 655 "ZXh0ZW5zaW9uEjAucHJvdG9idWZfdW5pdHRlc3RfcHJvdG8yLlRlc3RVbnBh", 656 "Y2tlZEV4dGVuc2lvbnMYZCADKAJCAhAAOlcKGXVucGFja2VkX2RvdWJsZV9l", 657 "eHRlbnNpb24SMC5wcm90b2J1Zl91bml0dGVzdF9wcm90bzIuVGVzdFVucGFj", 658 "a2VkRXh0ZW5zaW9ucxhlIAMoAUICEAA6VQoXdW5wYWNrZWRfYm9vbF9leHRl", 659 "bnNpb24SMC5wcm90b2J1Zl91bml0dGVzdF9wcm90bzIuVGVzdFVucGFja2Vk", 660 "RXh0ZW5zaW9ucxhmIAMoCEICEAA6fAoXdW5wYWNrZWRfZW51bV9leHRlbnNp", 661 "b24SMC5wcm90b2J1Zl91bml0dGVzdF9wcm90bzIuVGVzdFVucGFja2VkRXh0", 662 "ZW5zaW9ucxhnIAMoDjIlLnByb3RvYnVmX3VuaXR0ZXN0X3Byb3RvMi5Gb3Jl", 663 "aWduRW51bUICEAA6cgoOdGVzdF9hbGxfdHlwZXMSLi5wcm90b2J1Zl91bml0", 664 "dGVzdF9wcm90bzIuVGVzdEh1Z2VGaWVsZE51bWJlcnMY4Kr//wEgASgLMiYu", 665 "cHJvdG9idWZfdW5pdHRlc3RfcHJvdG8yLlRlc3RBbGxUeXBlczphCiV0ZXN0", 666 "X2V4dGVuc2lvbl9pbnNpZGVfdGFibGVfZXh0ZW5zaW9uEjIucHJvdG9idWZf", 667 "dW5pdHRlc3RfcHJvdG8yLlRlc3RFeHRlbnNpb25JbnNpZGVUYWJsZRgFIAEo", 668 "BUIySAGAAQGIAQGQAQH4AQGqAiFHb29nbGUuUHJvdG9idWYuVGVzdFByb3Rv", 669 "cy5Qcm90bzI=")); 670 descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, 671 new pbr::FileDescriptor[] { global::Google.Protobuf.TestProtos.Proto2.UnittestImportReflection.Descriptor, }, 672 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[] { 673 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), 674 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), 675 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)}), 676 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), 677 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), 678 new pbr::GeneratedClrTypeInfo(typeof(global::Google.Protobuf.TestProtos.Proto2.TestDeprecatedMessage), global::Google.Protobuf.TestProtos.Proto2.TestDeprecatedMessage.Parser, null, null, null, null, null), 679 new pbr::GeneratedClrTypeInfo(typeof(global::Google.Protobuf.TestProtos.Proto2.ForeignMessage), global::Google.Protobuf.TestProtos.Proto2.ForeignMessage.Parser, new[]{ "C", "D" }, null, null, null, null), 680 new pbr::GeneratedClrTypeInfo(typeof(global::Google.Protobuf.TestProtos.Proto2.TestReservedFields), global::Google.Protobuf.TestProtos.Proto2.TestReservedFields.Parser, null, null, null, null, null), 681 new pbr::GeneratedClrTypeInfo(typeof(global::Google.Protobuf.TestProtos.Proto2.TestAllExtensions), global::Google.Protobuf.TestProtos.Proto2.TestAllExtensions.Parser, null, null, null, null, null), 682 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), 683 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), 684 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)}), 685 new pbr::GeneratedClrTypeInfo(typeof(global::Google.Protobuf.TestProtos.Proto2.TestGroupExtension), global::Google.Protobuf.TestProtos.Proto2.TestGroupExtension.Parser, null, null, null, null, null), 686 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)}), 687 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), 688 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), 689 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), 690 new pbr::GeneratedClrTypeInfo(typeof(global::Google.Protobuf.TestProtos.Proto2.TestForeignNested), global::Google.Protobuf.TestProtos.Proto2.TestForeignNested.Parser, new[]{ "ForeignNested" }, null, null, null, null), 691 new pbr::GeneratedClrTypeInfo(typeof(global::Google.Protobuf.TestProtos.Proto2.TestEmptyMessage), global::Google.Protobuf.TestProtos.Proto2.TestEmptyMessage.Parser, null, null, null, null, null), 692 new pbr::GeneratedClrTypeInfo(typeof(global::Google.Protobuf.TestProtos.Proto2.TestEmptyMessageWithExtensions), global::Google.Protobuf.TestProtos.Proto2.TestEmptyMessageWithExtensions.Parser, null, null, null, null, null), 693 new pbr::GeneratedClrTypeInfo(typeof(global::Google.Protobuf.TestProtos.Proto2.TestMultipleExtensionRanges), global::Google.Protobuf.TestProtos.Proto2.TestMultipleExtensionRanges.Parser, null, null, null, null, null), 694 new pbr::GeneratedClrTypeInfo(typeof(global::Google.Protobuf.TestProtos.Proto2.TestReallyLargeTagNumber), global::Google.Protobuf.TestProtos.Proto2.TestReallyLargeTagNumber.Parser, new[]{ "A", "Bb" }, null, null, null, null), 695 new pbr::GeneratedClrTypeInfo(typeof(global::Google.Protobuf.TestProtos.Proto2.TestRecursiveMessage), global::Google.Protobuf.TestProtos.Proto2.TestRecursiveMessage.Parser, new[]{ "A", "I" }, null, null, null, null), 696 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), 697 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)}), 698 new pbr::GeneratedClrTypeInfo(typeof(global::Google.Protobuf.TestProtos.Proto2.TestMutualRecursionB), global::Google.Protobuf.TestProtos.Proto2.TestMutualRecursionB.Parser, new[]{ "A", "OptionalInt32" }, null, null, null, null), 699 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)})}), 700 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), 701 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)}), 702 new pbr::GeneratedClrTypeInfo(typeof(global::Google.Protobuf.TestProtos.Proto2.TestEagerMessage), global::Google.Protobuf.TestProtos.Proto2.TestEagerMessage.Parser, new[]{ "SubMessage" }, null, null, null, null), 703 new pbr::GeneratedClrTypeInfo(typeof(global::Google.Protobuf.TestProtos.Proto2.TestLazyMessage), global::Google.Protobuf.TestProtos.Proto2.TestLazyMessage.Parser, new[]{ "SubMessage" }, null, null, null, null), 704 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)}), 705 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), 706 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)}), 707 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), 708 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)}), 709 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), 710 new pbr::GeneratedClrTypeInfo(typeof(global::Google.Protobuf.TestProtos.Proto2.SparseEnumMessage), global::Google.Protobuf.TestProtos.Proto2.SparseEnumMessage.Parser, new[]{ "SparseEnum" }, null, null, null, null), 711 new pbr::GeneratedClrTypeInfo(typeof(global::Google.Protobuf.TestProtos.Proto2.OneString), global::Google.Protobuf.TestProtos.Proto2.OneString.Parser, new[]{ "Data" }, null, null, null, null), 712 new pbr::GeneratedClrTypeInfo(typeof(global::Google.Protobuf.TestProtos.Proto2.MoreString), global::Google.Protobuf.TestProtos.Proto2.MoreString.Parser, new[]{ "Data" }, null, null, null, null), 713 new pbr::GeneratedClrTypeInfo(typeof(global::Google.Protobuf.TestProtos.Proto2.OneBytes), global::Google.Protobuf.TestProtos.Proto2.OneBytes.Parser, new[]{ "Data" }, null, null, null, null), 714 new pbr::GeneratedClrTypeInfo(typeof(global::Google.Protobuf.TestProtos.Proto2.MoreBytes), global::Google.Protobuf.TestProtos.Proto2.MoreBytes.Parser, new[]{ "Data" }, null, null, null, null), 715 new pbr::GeneratedClrTypeInfo(typeof(global::Google.Protobuf.TestProtos.Proto2.Int32Message), global::Google.Protobuf.TestProtos.Proto2.Int32Message.Parser, new[]{ "Data" }, null, null, null, null), 716 new pbr::GeneratedClrTypeInfo(typeof(global::Google.Protobuf.TestProtos.Proto2.Uint32Message), global::Google.Protobuf.TestProtos.Proto2.Uint32Message.Parser, new[]{ "Data" }, null, null, null, null), 717 new pbr::GeneratedClrTypeInfo(typeof(global::Google.Protobuf.TestProtos.Proto2.Int64Message), global::Google.Protobuf.TestProtos.Proto2.Int64Message.Parser, new[]{ "Data" }, null, null, null, null), 718 new pbr::GeneratedClrTypeInfo(typeof(global::Google.Protobuf.TestProtos.Proto2.Uint64Message), global::Google.Protobuf.TestProtos.Proto2.Uint64Message.Parser, new[]{ "Data" }, null, null, null, null), 719 new pbr::GeneratedClrTypeInfo(typeof(global::Google.Protobuf.TestProtos.Proto2.BoolMessage), global::Google.Protobuf.TestProtos.Proto2.BoolMessage.Parser, new[]{ "Data" }, null, null, null, null), 720 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)}), 721 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)}), 722 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), 723 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)}), 724 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)}), 725 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)}), 726 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), 727 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), 728 new pbr::GeneratedClrTypeInfo(typeof(global::Google.Protobuf.TestProtos.Proto2.TestPackedExtensions), global::Google.Protobuf.TestProtos.Proto2.TestPackedExtensions.Parser, null, null, null, null, null), 729 new pbr::GeneratedClrTypeInfo(typeof(global::Google.Protobuf.TestProtos.Proto2.TestUnpackedExtensions), global::Google.Protobuf.TestProtos.Proto2.TestUnpackedExtensions.Parser, null, null, null, null, null), 730 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)}), 731 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), 732 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), 733 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)}), 734 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), 735 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)}), 736 new pbr::GeneratedClrTypeInfo(typeof(global::Google.Protobuf.TestProtos.Proto2.TestCommentInjectionMessage), global::Google.Protobuf.TestProtos.Proto2.TestCommentInjectionMessage.Parser, new[]{ "A" }, null, null, null, null), 737 new pbr::GeneratedClrTypeInfo(typeof(global::Google.Protobuf.TestProtos.Proto2.FooRequest), global::Google.Protobuf.TestProtos.Proto2.FooRequest.Parser, null, null, null, null, null), 738 new pbr::GeneratedClrTypeInfo(typeof(global::Google.Protobuf.TestProtos.Proto2.FooResponse), global::Google.Protobuf.TestProtos.Proto2.FooResponse.Parser, null, null, null, null, null), 739 new pbr::GeneratedClrTypeInfo(typeof(global::Google.Protobuf.TestProtos.Proto2.FooClientMessage), global::Google.Protobuf.TestProtos.Proto2.FooClientMessage.Parser, null, null, null, null, null), 740 new pbr::GeneratedClrTypeInfo(typeof(global::Google.Protobuf.TestProtos.Proto2.FooServerMessage), global::Google.Protobuf.TestProtos.Proto2.FooServerMessage.Parser, null, null, null, null, null), 741 new pbr::GeneratedClrTypeInfo(typeof(global::Google.Protobuf.TestProtos.Proto2.BarRequest), global::Google.Protobuf.TestProtos.Proto2.BarRequest.Parser, null, null, null, null, null), 742 new pbr::GeneratedClrTypeInfo(typeof(global::Google.Protobuf.TestProtos.Proto2.BarResponse), global::Google.Protobuf.TestProtos.Proto2.BarResponse.Parser, null, null, null, null, null), 743 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), 744 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), 745 null, }), 746 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) 747 })); 748 } 749 #endregion 750 751 } 752 /// <summary>Holder for extension identifiers generated from the top level of csharp/protos/unittest.proto</summary> 753 public static partial class UnittestExtensions { 754 /// <summary> 755 /// Singular 756 /// </summary> 757 public static readonly pb::Extension<global::Google.Protobuf.TestProtos.Proto2.TestAllExtensions, int> OptionalInt32Extension = 758 new pb::Extension<global::Google.Protobuf.TestProtos.Proto2.TestAllExtensions, int>(1, pb::FieldCodec.ForInt32(8, 0)); 759 public static readonly pb::Extension<global::Google.Protobuf.TestProtos.Proto2.TestAllExtensions, long> OptionalInt64Extension = 760 new pb::Extension<global::Google.Protobuf.TestProtos.Proto2.TestAllExtensions, long>(2, pb::FieldCodec.ForInt64(16, 0L)); 761 public static readonly pb::Extension<global::Google.Protobuf.TestProtos.Proto2.TestAllExtensions, uint> OptionalUint32Extension = 762 new pb::Extension<global::Google.Protobuf.TestProtos.Proto2.TestAllExtensions, uint>(3, pb::FieldCodec.ForUInt32(24, 0)); 763 public static readonly pb::Extension<global::Google.Protobuf.TestProtos.Proto2.TestAllExtensions, ulong> OptionalUint64Extension = 764 new pb::Extension<global::Google.Protobuf.TestProtos.Proto2.TestAllExtensions, ulong>(4, pb::FieldCodec.ForUInt64(32, 0UL)); 765 public static readonly pb::Extension<global::Google.Protobuf.TestProtos.Proto2.TestAllExtensions, int> OptionalSint32Extension = 766 new pb::Extension<global::Google.Protobuf.TestProtos.Proto2.TestAllExtensions, int>(5, pb::FieldCodec.ForSInt32(40, 0)); 767 public static readonly pb::Extension<global::Google.Protobuf.TestProtos.Proto2.TestAllExtensions, long> OptionalSint64Extension = 768 new pb::Extension<global::Google.Protobuf.TestProtos.Proto2.TestAllExtensions, long>(6, pb::FieldCodec.ForSInt64(48, 0L)); 769 public static readonly pb::Extension<global::Google.Protobuf.TestProtos.Proto2.TestAllExtensions, uint> OptionalFixed32Extension = 770 new pb::Extension<global::Google.Protobuf.TestProtos.Proto2.TestAllExtensions, uint>(7, pb::FieldCodec.ForFixed32(61, 0)); 771 public static readonly pb::Extension<global::Google.Protobuf.TestProtos.Proto2.TestAllExtensions, ulong> OptionalFixed64Extension = 772 new pb::Extension<global::Google.Protobuf.TestProtos.Proto2.TestAllExtensions, ulong>(8, pb::FieldCodec.ForFixed64(65, 0UL)); 773 public static readonly pb::Extension<global::Google.Protobuf.TestProtos.Proto2.TestAllExtensions, int> OptionalSfixed32Extension = 774 new pb::Extension<global::Google.Protobuf.TestProtos.Proto2.TestAllExtensions, int>(9, pb::FieldCodec.ForSFixed32(77, 0)); 775 public static readonly pb::Extension<global::Google.Protobuf.TestProtos.Proto2.TestAllExtensions, long> OptionalSfixed64Extension = 776 new pb::Extension<global::Google.Protobuf.TestProtos.Proto2.TestAllExtensions, long>(10, pb::FieldCodec.ForSFixed64(81, 0L)); 777 public static readonly pb::Extension<global::Google.Protobuf.TestProtos.Proto2.TestAllExtensions, float> OptionalFloatExtension = 778 new pb::Extension<global::Google.Protobuf.TestProtos.Proto2.TestAllExtensions, float>(11, pb::FieldCodec.ForFloat(93, 0F)); 779 public static readonly pb::Extension<global::Google.Protobuf.TestProtos.Proto2.TestAllExtensions, double> OptionalDoubleExtension = 780 new pb::Extension<global::Google.Protobuf.TestProtos.Proto2.TestAllExtensions, double>(12, pb::FieldCodec.ForDouble(97, 0D)); 781 public static readonly pb::Extension<global::Google.Protobuf.TestProtos.Proto2.TestAllExtensions, bool> OptionalBoolExtension = 782 new pb::Extension<global::Google.Protobuf.TestProtos.Proto2.TestAllExtensions, bool>(13, pb::FieldCodec.ForBool(104, false)); 783 public static readonly pb::Extension<global::Google.Protobuf.TestProtos.Proto2.TestAllExtensions, string> OptionalStringExtension = 784 new pb::Extension<global::Google.Protobuf.TestProtos.Proto2.TestAllExtensions, string>(14, pb::FieldCodec.ForString(114, "")); 785 public static readonly pb::Extension<global::Google.Protobuf.TestProtos.Proto2.TestAllExtensions, pb::ByteString> OptionalBytesExtension = 786 new pb::Extension<global::Google.Protobuf.TestProtos.Proto2.TestAllExtensions, pb::ByteString>(15, pb::FieldCodec.ForBytes(122, pb::ByteString.Empty)); 787 public static readonly pb::Extension<global::Google.Protobuf.TestProtos.Proto2.TestAllExtensions, global::Google.Protobuf.TestProtos.Proto2.OptionalGroup_extension> OptionalGroupExtension = 788 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)); 789 public static readonly pb::Extension<global::Google.Protobuf.TestProtos.Proto2.TestAllExtensions, global::Google.Protobuf.TestProtos.Proto2.TestAllTypes.Types.NestedMessage> OptionalNestedMessageExtension = 790 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)); 791 public static readonly pb::Extension<global::Google.Protobuf.TestProtos.Proto2.TestAllExtensions, global::Google.Protobuf.TestProtos.Proto2.ForeignMessage> OptionalForeignMessageExtension = 792 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)); 793 public static readonly pb::Extension<global::Google.Protobuf.TestProtos.Proto2.TestAllExtensions, global::Google.Protobuf.TestProtos.Proto2.ImportMessage> OptionalImportMessageExtension = 794 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)); 795 public static readonly pb::Extension<global::Google.Protobuf.TestProtos.Proto2.TestAllExtensions, global::Google.Protobuf.TestProtos.Proto2.TestAllTypes.Types.NestedEnum> OptionalNestedEnumExtension = 796 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)); 797 public static readonly pb::Extension<global::Google.Protobuf.TestProtos.Proto2.TestAllExtensions, global::Google.Protobuf.TestProtos.Proto2.ForeignEnum> OptionalForeignEnumExtension = 798 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)); 799 public static readonly pb::Extension<global::Google.Protobuf.TestProtos.Proto2.TestAllExtensions, global::Google.Protobuf.TestProtos.Proto2.ImportEnum> OptionalImportEnumExtension = 800 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)); 801 public static readonly pb::Extension<global::Google.Protobuf.TestProtos.Proto2.TestAllExtensions, string> OptionalStringPieceExtension = 802 new pb::Extension<global::Google.Protobuf.TestProtos.Proto2.TestAllExtensions, string>(24, pb::FieldCodec.ForString(194, "")); 803 public static readonly pb::Extension<global::Google.Protobuf.TestProtos.Proto2.TestAllExtensions, string> OptionalCordExtension = 804 new pb::Extension<global::Google.Protobuf.TestProtos.Proto2.TestAllExtensions, string>(25, pb::FieldCodec.ForString(202, "")); 805 public static readonly pb::Extension<global::Google.Protobuf.TestProtos.Proto2.TestAllExtensions, global::Google.Protobuf.TestProtos.Proto2.PublicImportMessage> OptionalPublicImportMessageExtension = 806 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)); 807 public static readonly pb::Extension<global::Google.Protobuf.TestProtos.Proto2.TestAllExtensions, global::Google.Protobuf.TestProtos.Proto2.TestAllTypes.Types.NestedMessage> OptionalLazyMessageExtension = 808 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)); 809 /// <summary> 810 /// Repeated 811 /// </summary> 812 public static readonly pb::RepeatedExtension<global::Google.Protobuf.TestProtos.Proto2.TestAllExtensions, int> RepeatedInt32Extension = 813 new pb::RepeatedExtension<global::Google.Protobuf.TestProtos.Proto2.TestAllExtensions, int>(31, pb::FieldCodec.ForInt32(248)); 814 public static readonly pb::RepeatedExtension<global::Google.Protobuf.TestProtos.Proto2.TestAllExtensions, long> RepeatedInt64Extension = 815 new pb::RepeatedExtension<global::Google.Protobuf.TestProtos.Proto2.TestAllExtensions, long>(32, pb::FieldCodec.ForInt64(256)); 816 public static readonly pb::RepeatedExtension<global::Google.Protobuf.TestProtos.Proto2.TestAllExtensions, uint> RepeatedUint32Extension = 817 new pb::RepeatedExtension<global::Google.Protobuf.TestProtos.Proto2.TestAllExtensions, uint>(33, pb::FieldCodec.ForUInt32(264)); 818 public static readonly pb::RepeatedExtension<global::Google.Protobuf.TestProtos.Proto2.TestAllExtensions, ulong> RepeatedUint64Extension = 819 new pb::RepeatedExtension<global::Google.Protobuf.TestProtos.Proto2.TestAllExtensions, ulong>(34, pb::FieldCodec.ForUInt64(272)); 820 public static readonly pb::RepeatedExtension<global::Google.Protobuf.TestProtos.Proto2.TestAllExtensions, int> RepeatedSint32Extension = 821 new pb::RepeatedExtension<global::Google.Protobuf.TestProtos.Proto2.TestAllExtensions, int>(35, pb::FieldCodec.ForSInt32(280)); 822 public static readonly pb::RepeatedExtension<global::Google.Protobuf.TestProtos.Proto2.TestAllExtensions, long> RepeatedSint64Extension = 823 new pb::RepeatedExtension<global::Google.Protobuf.TestProtos.Proto2.TestAllExtensions, long>(36, pb::FieldCodec.ForSInt64(288)); 824 public static readonly pb::RepeatedExtension<global::Google.Protobuf.TestProtos.Proto2.TestAllExtensions, uint> RepeatedFixed32Extension = 825 new pb::RepeatedExtension<global::Google.Protobuf.TestProtos.Proto2.TestAllExtensions, uint>(37, pb::FieldCodec.ForFixed32(301)); 826 public static readonly pb::RepeatedExtension<global::Google.Protobuf.TestProtos.Proto2.TestAllExtensions, ulong> RepeatedFixed64Extension = 827 new pb::RepeatedExtension<global::Google.Protobuf.TestProtos.Proto2.TestAllExtensions, ulong>(38, pb::FieldCodec.ForFixed64(305)); 828 public static readonly pb::RepeatedExtension<global::Google.Protobuf.TestProtos.Proto2.TestAllExtensions, int> RepeatedSfixed32Extension = 829 new pb::RepeatedExtension<global::Google.Protobuf.TestProtos.Proto2.TestAllExtensions, int>(39, pb::FieldCodec.ForSFixed32(317)); 830 public static readonly pb::RepeatedExtension<global::Google.Protobuf.TestProtos.Proto2.TestAllExtensions, long> RepeatedSfixed64Extension = 831 new pb::RepeatedExtension<global::Google.Protobuf.TestProtos.Proto2.TestAllExtensions, long>(40, pb::FieldCodec.ForSFixed64(321)); 832 public static readonly pb::RepeatedExtension<global::Google.Protobuf.TestProtos.Proto2.TestAllExtensions, float> RepeatedFloatExtension = 833 new pb::RepeatedExtension<global::Google.Protobuf.TestProtos.Proto2.TestAllExtensions, float>(41, pb::FieldCodec.ForFloat(333)); 834 public static readonly pb::RepeatedExtension<global::Google.Protobuf.TestProtos.Proto2.TestAllExtensions, double> RepeatedDoubleExtension = 835 new pb::RepeatedExtension<global::Google.Protobuf.TestProtos.Proto2.TestAllExtensions, double>(42, pb::FieldCodec.ForDouble(337)); 836 public static readonly pb::RepeatedExtension<global::Google.Protobuf.TestProtos.Proto2.TestAllExtensions, bool> RepeatedBoolExtension = 837 new pb::RepeatedExtension<global::Google.Protobuf.TestProtos.Proto2.TestAllExtensions, bool>(43, pb::FieldCodec.ForBool(344)); 838 public static readonly pb::RepeatedExtension<global::Google.Protobuf.TestProtos.Proto2.TestAllExtensions, string> RepeatedStringExtension = 839 new pb::RepeatedExtension<global::Google.Protobuf.TestProtos.Proto2.TestAllExtensions, string>(44, pb::FieldCodec.ForString(354)); 840 public static readonly pb::RepeatedExtension<global::Google.Protobuf.TestProtos.Proto2.TestAllExtensions, pb::ByteString> RepeatedBytesExtension = 841 new pb::RepeatedExtension<global::Google.Protobuf.TestProtos.Proto2.TestAllExtensions, pb::ByteString>(45, pb::FieldCodec.ForBytes(362)); 842 public static readonly pb::RepeatedExtension<global::Google.Protobuf.TestProtos.Proto2.TestAllExtensions, global::Google.Protobuf.TestProtos.Proto2.RepeatedGroup_extension> RepeatedGroupExtension = 843 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)); 844 public static readonly pb::RepeatedExtension<global::Google.Protobuf.TestProtos.Proto2.TestAllExtensions, global::Google.Protobuf.TestProtos.Proto2.TestAllTypes.Types.NestedMessage> RepeatedNestedMessageExtension = 845 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)); 846 public static readonly pb::RepeatedExtension<global::Google.Protobuf.TestProtos.Proto2.TestAllExtensions, global::Google.Protobuf.TestProtos.Proto2.ForeignMessage> RepeatedForeignMessageExtension = 847 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)); 848 public static readonly pb::RepeatedExtension<global::Google.Protobuf.TestProtos.Proto2.TestAllExtensions, global::Google.Protobuf.TestProtos.Proto2.ImportMessage> RepeatedImportMessageExtension = 849 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)); 850 public static readonly pb::RepeatedExtension<global::Google.Protobuf.TestProtos.Proto2.TestAllExtensions, global::Google.Protobuf.TestProtos.Proto2.TestAllTypes.Types.NestedEnum> RepeatedNestedEnumExtension = 851 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)); 852 public static readonly pb::RepeatedExtension<global::Google.Protobuf.TestProtos.Proto2.TestAllExtensions, global::Google.Protobuf.TestProtos.Proto2.ForeignEnum> RepeatedForeignEnumExtension = 853 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)); 854 public static readonly pb::RepeatedExtension<global::Google.Protobuf.TestProtos.Proto2.TestAllExtensions, global::Google.Protobuf.TestProtos.Proto2.ImportEnum> RepeatedImportEnumExtension = 855 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)); 856 public static readonly pb::RepeatedExtension<global::Google.Protobuf.TestProtos.Proto2.TestAllExtensions, string> RepeatedStringPieceExtension = 857 new pb::RepeatedExtension<global::Google.Protobuf.TestProtos.Proto2.TestAllExtensions, string>(54, pb::FieldCodec.ForString(434)); 858 public static readonly pb::RepeatedExtension<global::Google.Protobuf.TestProtos.Proto2.TestAllExtensions, string> RepeatedCordExtension = 859 new pb::RepeatedExtension<global::Google.Protobuf.TestProtos.Proto2.TestAllExtensions, string>(55, pb::FieldCodec.ForString(442)); 860 public static readonly pb::RepeatedExtension<global::Google.Protobuf.TestProtos.Proto2.TestAllExtensions, global::Google.Protobuf.TestProtos.Proto2.TestAllTypes.Types.NestedMessage> RepeatedLazyMessageExtension = 861 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)); 862 /// <summary> 863 /// Singular with defaults 864 /// </summary> 865 public static readonly pb::Extension<global::Google.Protobuf.TestProtos.Proto2.TestAllExtensions, int> DefaultInt32Extension = 866 new pb::Extension<global::Google.Protobuf.TestProtos.Proto2.TestAllExtensions, int>(61, pb::FieldCodec.ForInt32(488, 41)); 867 public static readonly pb::Extension<global::Google.Protobuf.TestProtos.Proto2.TestAllExtensions, long> DefaultInt64Extension = 868 new pb::Extension<global::Google.Protobuf.TestProtos.Proto2.TestAllExtensions, long>(62, pb::FieldCodec.ForInt64(496, 42L)); 869 public static readonly pb::Extension<global::Google.Protobuf.TestProtos.Proto2.TestAllExtensions, uint> DefaultUint32Extension = 870 new pb::Extension<global::Google.Protobuf.TestProtos.Proto2.TestAllExtensions, uint>(63, pb::FieldCodec.ForUInt32(504, 43)); 871 public static readonly pb::Extension<global::Google.Protobuf.TestProtos.Proto2.TestAllExtensions, ulong> DefaultUint64Extension = 872 new pb::Extension<global::Google.Protobuf.TestProtos.Proto2.TestAllExtensions, ulong>(64, pb::FieldCodec.ForUInt64(512, 44UL)); 873 public static readonly pb::Extension<global::Google.Protobuf.TestProtos.Proto2.TestAllExtensions, int> DefaultSint32Extension = 874 new pb::Extension<global::Google.Protobuf.TestProtos.Proto2.TestAllExtensions, int>(65, pb::FieldCodec.ForSInt32(520, -45)); 875 public static readonly pb::Extension<global::Google.Protobuf.TestProtos.Proto2.TestAllExtensions, long> DefaultSint64Extension = 876 new pb::Extension<global::Google.Protobuf.TestProtos.Proto2.TestAllExtensions, long>(66, pb::FieldCodec.ForSInt64(528, 46L)); 877 public static readonly pb::Extension<global::Google.Protobuf.TestProtos.Proto2.TestAllExtensions, uint> DefaultFixed32Extension = 878 new pb::Extension<global::Google.Protobuf.TestProtos.Proto2.TestAllExtensions, uint>(67, pb::FieldCodec.ForFixed32(541, 47)); 879 public static readonly pb::Extension<global::Google.Protobuf.TestProtos.Proto2.TestAllExtensions, ulong> DefaultFixed64Extension = 880 new pb::Extension<global::Google.Protobuf.TestProtos.Proto2.TestAllExtensions, ulong>(68, pb::FieldCodec.ForFixed64(545, 48UL)); 881 public static readonly pb::Extension<global::Google.Protobuf.TestProtos.Proto2.TestAllExtensions, int> DefaultSfixed32Extension = 882 new pb::Extension<global::Google.Protobuf.TestProtos.Proto2.TestAllExtensions, int>(69, pb::FieldCodec.ForSFixed32(557, 49)); 883 public static readonly pb::Extension<global::Google.Protobuf.TestProtos.Proto2.TestAllExtensions, long> DefaultSfixed64Extension = 884 new pb::Extension<global::Google.Protobuf.TestProtos.Proto2.TestAllExtensions, long>(70, pb::FieldCodec.ForSFixed64(561, -50L)); 885 public static readonly pb::Extension<global::Google.Protobuf.TestProtos.Proto2.TestAllExtensions, float> DefaultFloatExtension = 886 new pb::Extension<global::Google.Protobuf.TestProtos.Proto2.TestAllExtensions, float>(71, pb::FieldCodec.ForFloat(573, 51.5F)); 887 public static readonly pb::Extension<global::Google.Protobuf.TestProtos.Proto2.TestAllExtensions, double> DefaultDoubleExtension = 888 new pb::Extension<global::Google.Protobuf.TestProtos.Proto2.TestAllExtensions, double>(72, pb::FieldCodec.ForDouble(577, 52000D)); 889 public static readonly pb::Extension<global::Google.Protobuf.TestProtos.Proto2.TestAllExtensions, bool> DefaultBoolExtension = 890 new pb::Extension<global::Google.Protobuf.TestProtos.Proto2.TestAllExtensions, bool>(73, pb::FieldCodec.ForBool(584, true)); 891 public static readonly pb::Extension<global::Google.Protobuf.TestProtos.Proto2.TestAllExtensions, string> DefaultStringExtension = 892 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))); 893 public static readonly pb::Extension<global::Google.Protobuf.TestProtos.Proto2.TestAllExtensions, pb::ByteString> DefaultBytesExtension = 894 new pb::Extension<global::Google.Protobuf.TestProtos.Proto2.TestAllExtensions, pb::ByteString>(75, pb::FieldCodec.ForBytes(602, pb::ByteString.FromBase64("d29ybGQ="))); 895 public static readonly pb::Extension<global::Google.Protobuf.TestProtos.Proto2.TestAllExtensions, global::Google.Protobuf.TestProtos.Proto2.TestAllTypes.Types.NestedEnum> DefaultNestedEnumExtension = 896 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)); 897 public static readonly pb::Extension<global::Google.Protobuf.TestProtos.Proto2.TestAllExtensions, global::Google.Protobuf.TestProtos.Proto2.ForeignEnum> DefaultForeignEnumExtension = 898 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)); 899 public static readonly pb::Extension<global::Google.Protobuf.TestProtos.Proto2.TestAllExtensions, global::Google.Protobuf.TestProtos.Proto2.ImportEnum> DefaultImportEnumExtension = 900 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)); 901 public static readonly pb::Extension<global::Google.Protobuf.TestProtos.Proto2.TestAllExtensions, string> DefaultStringPieceExtension = 902 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))); 903 public static readonly pb::Extension<global::Google.Protobuf.TestProtos.Proto2.TestAllExtensions, string> DefaultCordExtension = 904 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))); 905 /// <summary> 906 /// For oneof test 907 /// </summary> 908 public static readonly pb::Extension<global::Google.Protobuf.TestProtos.Proto2.TestAllExtensions, uint> OneofUint32Extension = 909 new pb::Extension<global::Google.Protobuf.TestProtos.Proto2.TestAllExtensions, uint>(111, pb::FieldCodec.ForUInt32(888, 0)); 910 public static readonly pb::Extension<global::Google.Protobuf.TestProtos.Proto2.TestAllExtensions, global::Google.Protobuf.TestProtos.Proto2.TestAllTypes.Types.NestedMessage> OneofNestedMessageExtension = 911 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)); 912 public static readonly pb::Extension<global::Google.Protobuf.TestProtos.Proto2.TestAllExtensions, string> OneofStringExtension = 913 new pb::Extension<global::Google.Protobuf.TestProtos.Proto2.TestAllExtensions, string>(113, pb::FieldCodec.ForString(906, "")); 914 public static readonly pb::Extension<global::Google.Protobuf.TestProtos.Proto2.TestAllExtensions, pb::ByteString> OneofBytesExtension = 915 new pb::Extension<global::Google.Protobuf.TestProtos.Proto2.TestAllExtensions, pb::ByteString>(114, pb::FieldCodec.ForBytes(914, pb::ByteString.Empty)); 916 public static readonly pb::Extension<global::Google.Protobuf.TestProtos.Proto2.TestFieldOrderings, string> MyExtensionString = 917 new pb::Extension<global::Google.Protobuf.TestProtos.Proto2.TestFieldOrderings, string>(50, pb::FieldCodec.ForString(402, "")); 918 public static readonly pb::Extension<global::Google.Protobuf.TestProtos.Proto2.TestFieldOrderings, int> MyExtensionInt = 919 new pb::Extension<global::Google.Protobuf.TestProtos.Proto2.TestFieldOrderings, int>(5, pb::FieldCodec.ForInt32(40, 0)); 920 public static readonly pb::RepeatedExtension<global::Google.Protobuf.TestProtos.Proto2.TestPackedExtensions, int> PackedInt32Extension = 921 new pb::RepeatedExtension<global::Google.Protobuf.TestProtos.Proto2.TestPackedExtensions, int>(90, pb::FieldCodec.ForInt32(722)); 922 public static readonly pb::RepeatedExtension<global::Google.Protobuf.TestProtos.Proto2.TestPackedExtensions, long> PackedInt64Extension = 923 new pb::RepeatedExtension<global::Google.Protobuf.TestProtos.Proto2.TestPackedExtensions, long>(91, pb::FieldCodec.ForInt64(730)); 924 public static readonly pb::RepeatedExtension<global::Google.Protobuf.TestProtos.Proto2.TestPackedExtensions, uint> PackedUint32Extension = 925 new pb::RepeatedExtension<global::Google.Protobuf.TestProtos.Proto2.TestPackedExtensions, uint>(92, pb::FieldCodec.ForUInt32(738)); 926 public static readonly pb::RepeatedExtension<global::Google.Protobuf.TestProtos.Proto2.TestPackedExtensions, ulong> PackedUint64Extension = 927 new pb::RepeatedExtension<global::Google.Protobuf.TestProtos.Proto2.TestPackedExtensions, ulong>(93, pb::FieldCodec.ForUInt64(746)); 928 public static readonly pb::RepeatedExtension<global::Google.Protobuf.TestProtos.Proto2.TestPackedExtensions, int> PackedSint32Extension = 929 new pb::RepeatedExtension<global::Google.Protobuf.TestProtos.Proto2.TestPackedExtensions, int>(94, pb::FieldCodec.ForSInt32(754)); 930 public static readonly pb::RepeatedExtension<global::Google.Protobuf.TestProtos.Proto2.TestPackedExtensions, long> PackedSint64Extension = 931 new pb::RepeatedExtension<global::Google.Protobuf.TestProtos.Proto2.TestPackedExtensions, long>(95, pb::FieldCodec.ForSInt64(762)); 932 public static readonly pb::RepeatedExtension<global::Google.Protobuf.TestProtos.Proto2.TestPackedExtensions, uint> PackedFixed32Extension = 933 new pb::RepeatedExtension<global::Google.Protobuf.TestProtos.Proto2.TestPackedExtensions, uint>(96, pb::FieldCodec.ForFixed32(770)); 934 public static readonly pb::RepeatedExtension<global::Google.Protobuf.TestProtos.Proto2.TestPackedExtensions, ulong> PackedFixed64Extension = 935 new pb::RepeatedExtension<global::Google.Protobuf.TestProtos.Proto2.TestPackedExtensions, ulong>(97, pb::FieldCodec.ForFixed64(778)); 936 public static readonly pb::RepeatedExtension<global::Google.Protobuf.TestProtos.Proto2.TestPackedExtensions, int> PackedSfixed32Extension = 937 new pb::RepeatedExtension<global::Google.Protobuf.TestProtos.Proto2.TestPackedExtensions, int>(98, pb::FieldCodec.ForSFixed32(786)); 938 public static readonly pb::RepeatedExtension<global::Google.Protobuf.TestProtos.Proto2.TestPackedExtensions, long> PackedSfixed64Extension = 939 new pb::RepeatedExtension<global::Google.Protobuf.TestProtos.Proto2.TestPackedExtensions, long>(99, pb::FieldCodec.ForSFixed64(794)); 940 public static readonly pb::RepeatedExtension<global::Google.Protobuf.TestProtos.Proto2.TestPackedExtensions, float> PackedFloatExtension = 941 new pb::RepeatedExtension<global::Google.Protobuf.TestProtos.Proto2.TestPackedExtensions, float>(100, pb::FieldCodec.ForFloat(802)); 942 public static readonly pb::RepeatedExtension<global::Google.Protobuf.TestProtos.Proto2.TestPackedExtensions, double> PackedDoubleExtension = 943 new pb::RepeatedExtension<global::Google.Protobuf.TestProtos.Proto2.TestPackedExtensions, double>(101, pb::FieldCodec.ForDouble(810)); 944 public static readonly pb::RepeatedExtension<global::Google.Protobuf.TestProtos.Proto2.TestPackedExtensions, bool> PackedBoolExtension = 945 new pb::RepeatedExtension<global::Google.Protobuf.TestProtos.Proto2.TestPackedExtensions, bool>(102, pb::FieldCodec.ForBool(818)); 946 public static readonly pb::RepeatedExtension<global::Google.Protobuf.TestProtos.Proto2.TestPackedExtensions, global::Google.Protobuf.TestProtos.Proto2.ForeignEnum> PackedEnumExtension = 947 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)); 948 public static readonly pb::RepeatedExtension<global::Google.Protobuf.TestProtos.Proto2.TestUnpackedExtensions, int> UnpackedInt32Extension = 949 new pb::RepeatedExtension<global::Google.Protobuf.TestProtos.Proto2.TestUnpackedExtensions, int>(90, pb::FieldCodec.ForInt32(720)); 950 public static readonly pb::RepeatedExtension<global::Google.Protobuf.TestProtos.Proto2.TestUnpackedExtensions, long> UnpackedInt64Extension = 951 new pb::RepeatedExtension<global::Google.Protobuf.TestProtos.Proto2.TestUnpackedExtensions, long>(91, pb::FieldCodec.ForInt64(728)); 952 public static readonly pb::RepeatedExtension<global::Google.Protobuf.TestProtos.Proto2.TestUnpackedExtensions, uint> UnpackedUint32Extension = 953 new pb::RepeatedExtension<global::Google.Protobuf.TestProtos.Proto2.TestUnpackedExtensions, uint>(92, pb::FieldCodec.ForUInt32(736)); 954 public static readonly pb::RepeatedExtension<global::Google.Protobuf.TestProtos.Proto2.TestUnpackedExtensions, ulong> UnpackedUint64Extension = 955 new pb::RepeatedExtension<global::Google.Protobuf.TestProtos.Proto2.TestUnpackedExtensions, ulong>(93, pb::FieldCodec.ForUInt64(744)); 956 public static readonly pb::RepeatedExtension<global::Google.Protobuf.TestProtos.Proto2.TestUnpackedExtensions, int> UnpackedSint32Extension = 957 new pb::RepeatedExtension<global::Google.Protobuf.TestProtos.Proto2.TestUnpackedExtensions, int>(94, pb::FieldCodec.ForSInt32(752)); 958 public static readonly pb::RepeatedExtension<global::Google.Protobuf.TestProtos.Proto2.TestUnpackedExtensions, long> UnpackedSint64Extension = 959 new pb::RepeatedExtension<global::Google.Protobuf.TestProtos.Proto2.TestUnpackedExtensions, long>(95, pb::FieldCodec.ForSInt64(760)); 960 public static readonly pb::RepeatedExtension<global::Google.Protobuf.TestProtos.Proto2.TestUnpackedExtensions, uint> UnpackedFixed32Extension = 961 new pb::RepeatedExtension<global::Google.Protobuf.TestProtos.Proto2.TestUnpackedExtensions, uint>(96, pb::FieldCodec.ForFixed32(773)); 962 public static readonly pb::RepeatedExtension<global::Google.Protobuf.TestProtos.Proto2.TestUnpackedExtensions, ulong> UnpackedFixed64Extension = 963 new pb::RepeatedExtension<global::Google.Protobuf.TestProtos.Proto2.TestUnpackedExtensions, ulong>(97, pb::FieldCodec.ForFixed64(777)); 964 public static readonly pb::RepeatedExtension<global::Google.Protobuf.TestProtos.Proto2.TestUnpackedExtensions, int> UnpackedSfixed32Extension = 965 new pb::RepeatedExtension<global::Google.Protobuf.TestProtos.Proto2.TestUnpackedExtensions, int>(98, pb::FieldCodec.ForSFixed32(789)); 966 public static readonly pb::RepeatedExtension<global::Google.Protobuf.TestProtos.Proto2.TestUnpackedExtensions, long> UnpackedSfixed64Extension = 967 new pb::RepeatedExtension<global::Google.Protobuf.TestProtos.Proto2.TestUnpackedExtensions, long>(99, pb::FieldCodec.ForSFixed64(793)); 968 public static readonly pb::RepeatedExtension<global::Google.Protobuf.TestProtos.Proto2.TestUnpackedExtensions, float> UnpackedFloatExtension = 969 new pb::RepeatedExtension<global::Google.Protobuf.TestProtos.Proto2.TestUnpackedExtensions, float>(100, pb::FieldCodec.ForFloat(805)); 970 public static readonly pb::RepeatedExtension<global::Google.Protobuf.TestProtos.Proto2.TestUnpackedExtensions, double> UnpackedDoubleExtension = 971 new pb::RepeatedExtension<global::Google.Protobuf.TestProtos.Proto2.TestUnpackedExtensions, double>(101, pb::FieldCodec.ForDouble(809)); 972 public static readonly pb::RepeatedExtension<global::Google.Protobuf.TestProtos.Proto2.TestUnpackedExtensions, bool> UnpackedBoolExtension = 973 new pb::RepeatedExtension<global::Google.Protobuf.TestProtos.Proto2.TestUnpackedExtensions, bool>(102, pb::FieldCodec.ForBool(816)); 974 public static readonly pb::RepeatedExtension<global::Google.Protobuf.TestProtos.Proto2.TestUnpackedExtensions, global::Google.Protobuf.TestProtos.Proto2.ForeignEnum> UnpackedEnumExtension = 975 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)); 976 public static readonly pb::Extension<global::Google.Protobuf.TestProtos.Proto2.TestHugeFieldNumbers, global::Google.Protobuf.TestProtos.Proto2.TestAllTypes> TestAllTypes = 977 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)); 978 public static readonly pb::Extension<global::Google.Protobuf.TestProtos.Proto2.TestExtensionInsideTable, int> TestExtensionInsideTableExtension = 979 new pb::Extension<global::Google.Protobuf.TestProtos.Proto2.TestExtensionInsideTable, int>(5, pb::FieldCodec.ForInt32(40, 0)); 980 } 981 982 #region Enums 983 public enum ForeignEnum { 984 [pbr::OriginalName("FOREIGN_FOO")] ForeignFoo = 4, 985 [pbr::OriginalName("FOREIGN_BAR")] ForeignBar = 5, 986 [pbr::OriginalName("FOREIGN_BAZ")] ForeignBaz = 6, 987 } 988 989 /// <summary> 990 /// Test an enum that has multiple values with the same number. 991 /// </summary> 992 public enum TestEnumWithDupValue { 993 [pbr::OriginalName("FOO1")] Foo1 = 1, 994 [pbr::OriginalName("BAR1")] Bar1 = 2, 995 [pbr::OriginalName("BAZ")] Baz = 3, 996 [pbr::OriginalName("FOO2", PreferredAlias = false)] Foo2 = 1, 997 [pbr::OriginalName("BAR2", PreferredAlias = false)] Bar2 = 2, 998 } 999 1000 /// <summary> 1001 /// Test an enum with large, unordered values. 1002 /// </summary> 1003 public enum TestSparseEnum { 1004 [pbr::OriginalName("SPARSE_A")] SparseA = 123, 1005 [pbr::OriginalName("SPARSE_B")] SparseB = 62374, 1006 [pbr::OriginalName("SPARSE_C")] SparseC = 12589234, 1007 [pbr::OriginalName("SPARSE_D")] SparseD = -15, 1008 [pbr::OriginalName("SPARSE_E")] SparseE = -53452, 1009 [pbr::OriginalName("SPARSE_F")] SparseF = 0, 1010 [pbr::OriginalName("SPARSE_G")] SparseG = 2, 1011 } 1012 1013 public enum VeryLargeEnum { 1014 [pbr::OriginalName("ENUM_LABEL_DEFAULT")] EnumLabelDefault = 0, 1015 [pbr::OriginalName("ENUM_LABEL_1")] EnumLabel1 = 1, 1016 [pbr::OriginalName("ENUM_LABEL_2")] EnumLabel2 = 2, 1017 [pbr::OriginalName("ENUM_LABEL_3")] EnumLabel3 = 3, 1018 [pbr::OriginalName("ENUM_LABEL_4")] EnumLabel4 = 4, 1019 [pbr::OriginalName("ENUM_LABEL_5")] EnumLabel5 = 5, 1020 [pbr::OriginalName("ENUM_LABEL_6")] EnumLabel6 = 6, 1021 [pbr::OriginalName("ENUM_LABEL_7")] EnumLabel7 = 7, 1022 [pbr::OriginalName("ENUM_LABEL_8")] EnumLabel8 = 8, 1023 [pbr::OriginalName("ENUM_LABEL_9")] EnumLabel9 = 9, 1024 [pbr::OriginalName("ENUM_LABEL_10")] EnumLabel10 = 10, 1025 [pbr::OriginalName("ENUM_LABEL_11")] EnumLabel11 = 11, 1026 [pbr::OriginalName("ENUM_LABEL_12")] EnumLabel12 = 12, 1027 [pbr::OriginalName("ENUM_LABEL_13")] EnumLabel13 = 13, 1028 [pbr::OriginalName("ENUM_LABEL_14")] EnumLabel14 = 14, 1029 [pbr::OriginalName("ENUM_LABEL_15")] EnumLabel15 = 15, 1030 [pbr::OriginalName("ENUM_LABEL_16")] EnumLabel16 = 16, 1031 [pbr::OriginalName("ENUM_LABEL_17")] EnumLabel17 = 17, 1032 [pbr::OriginalName("ENUM_LABEL_18")] EnumLabel18 = 18, 1033 [pbr::OriginalName("ENUM_LABEL_19")] EnumLabel19 = 19, 1034 [pbr::OriginalName("ENUM_LABEL_20")] EnumLabel20 = 20, 1035 [pbr::OriginalName("ENUM_LABEL_21")] EnumLabel21 = 21, 1036 [pbr::OriginalName("ENUM_LABEL_22")] EnumLabel22 = 22, 1037 [pbr::OriginalName("ENUM_LABEL_23")] EnumLabel23 = 23, 1038 [pbr::OriginalName("ENUM_LABEL_24")] EnumLabel24 = 24, 1039 [pbr::OriginalName("ENUM_LABEL_25")] EnumLabel25 = 25, 1040 [pbr::OriginalName("ENUM_LABEL_26")] EnumLabel26 = 26, 1041 [pbr::OriginalName("ENUM_LABEL_27")] EnumLabel27 = 27, 1042 [pbr::OriginalName("ENUM_LABEL_28")] EnumLabel28 = 28, 1043 [pbr::OriginalName("ENUM_LABEL_29")] EnumLabel29 = 29, 1044 [pbr::OriginalName("ENUM_LABEL_30")] EnumLabel30 = 30, 1045 [pbr::OriginalName("ENUM_LABEL_31")] EnumLabel31 = 31, 1046 [pbr::OriginalName("ENUM_LABEL_32")] EnumLabel32 = 32, 1047 [pbr::OriginalName("ENUM_LABEL_33")] EnumLabel33 = 33, 1048 [pbr::OriginalName("ENUM_LABEL_34")] EnumLabel34 = 34, 1049 [pbr::OriginalName("ENUM_LABEL_35")] EnumLabel35 = 35, 1050 [pbr::OriginalName("ENUM_LABEL_36")] EnumLabel36 = 36, 1051 [pbr::OriginalName("ENUM_LABEL_37")] EnumLabel37 = 37, 1052 [pbr::OriginalName("ENUM_LABEL_38")] EnumLabel38 = 38, 1053 [pbr::OriginalName("ENUM_LABEL_39")] EnumLabel39 = 39, 1054 [pbr::OriginalName("ENUM_LABEL_40")] EnumLabel40 = 40, 1055 [pbr::OriginalName("ENUM_LABEL_41")] EnumLabel41 = 41, 1056 [pbr::OriginalName("ENUM_LABEL_42")] EnumLabel42 = 42, 1057 [pbr::OriginalName("ENUM_LABEL_43")] EnumLabel43 = 43, 1058 [pbr::OriginalName("ENUM_LABEL_44")] EnumLabel44 = 44, 1059 [pbr::OriginalName("ENUM_LABEL_45")] EnumLabel45 = 45, 1060 [pbr::OriginalName("ENUM_LABEL_46")] EnumLabel46 = 46, 1061 [pbr::OriginalName("ENUM_LABEL_47")] EnumLabel47 = 47, 1062 [pbr::OriginalName("ENUM_LABEL_48")] EnumLabel48 = 48, 1063 [pbr::OriginalName("ENUM_LABEL_49")] EnumLabel49 = 49, 1064 [pbr::OriginalName("ENUM_LABEL_50")] EnumLabel50 = 50, 1065 [pbr::OriginalName("ENUM_LABEL_51")] EnumLabel51 = 51, 1066 [pbr::OriginalName("ENUM_LABEL_52")] EnumLabel52 = 52, 1067 [pbr::OriginalName("ENUM_LABEL_53")] EnumLabel53 = 53, 1068 [pbr::OriginalName("ENUM_LABEL_54")] EnumLabel54 = 54, 1069 [pbr::OriginalName("ENUM_LABEL_55")] EnumLabel55 = 55, 1070 [pbr::OriginalName("ENUM_LABEL_56")] EnumLabel56 = 56, 1071 [pbr::OriginalName("ENUM_LABEL_57")] EnumLabel57 = 57, 1072 [pbr::OriginalName("ENUM_LABEL_58")] EnumLabel58 = 58, 1073 [pbr::OriginalName("ENUM_LABEL_59")] EnumLabel59 = 59, 1074 [pbr::OriginalName("ENUM_LABEL_60")] EnumLabel60 = 60, 1075 [pbr::OriginalName("ENUM_LABEL_61")] EnumLabel61 = 61, 1076 [pbr::OriginalName("ENUM_LABEL_62")] EnumLabel62 = 62, 1077 [pbr::OriginalName("ENUM_LABEL_63")] EnumLabel63 = 63, 1078 [pbr::OriginalName("ENUM_LABEL_64")] EnumLabel64 = 64, 1079 [pbr::OriginalName("ENUM_LABEL_65")] EnumLabel65 = 65, 1080 [pbr::OriginalName("ENUM_LABEL_66")] EnumLabel66 = 66, 1081 [pbr::OriginalName("ENUM_LABEL_67")] EnumLabel67 = 67, 1082 [pbr::OriginalName("ENUM_LABEL_68")] EnumLabel68 = 68, 1083 [pbr::OriginalName("ENUM_LABEL_69")] EnumLabel69 = 69, 1084 [pbr::OriginalName("ENUM_LABEL_70")] EnumLabel70 = 70, 1085 [pbr::OriginalName("ENUM_LABEL_71")] EnumLabel71 = 71, 1086 [pbr::OriginalName("ENUM_LABEL_72")] EnumLabel72 = 72, 1087 [pbr::OriginalName("ENUM_LABEL_73")] EnumLabel73 = 73, 1088 [pbr::OriginalName("ENUM_LABEL_74")] EnumLabel74 = 74, 1089 [pbr::OriginalName("ENUM_LABEL_75")] EnumLabel75 = 75, 1090 [pbr::OriginalName("ENUM_LABEL_76")] EnumLabel76 = 76, 1091 [pbr::OriginalName("ENUM_LABEL_77")] EnumLabel77 = 77, 1092 [pbr::OriginalName("ENUM_LABEL_78")] EnumLabel78 = 78, 1093 [pbr::OriginalName("ENUM_LABEL_79")] EnumLabel79 = 79, 1094 [pbr::OriginalName("ENUM_LABEL_80")] EnumLabel80 = 80, 1095 [pbr::OriginalName("ENUM_LABEL_81")] EnumLabel81 = 81, 1096 [pbr::OriginalName("ENUM_LABEL_82")] EnumLabel82 = 82, 1097 [pbr::OriginalName("ENUM_LABEL_83")] EnumLabel83 = 83, 1098 [pbr::OriginalName("ENUM_LABEL_84")] EnumLabel84 = 84, 1099 [pbr::OriginalName("ENUM_LABEL_85")] EnumLabel85 = 85, 1100 [pbr::OriginalName("ENUM_LABEL_86")] EnumLabel86 = 86, 1101 [pbr::OriginalName("ENUM_LABEL_87")] EnumLabel87 = 87, 1102 [pbr::OriginalName("ENUM_LABEL_88")] EnumLabel88 = 88, 1103 [pbr::OriginalName("ENUM_LABEL_89")] EnumLabel89 = 89, 1104 [pbr::OriginalName("ENUM_LABEL_90")] EnumLabel90 = 90, 1105 [pbr::OriginalName("ENUM_LABEL_91")] EnumLabel91 = 91, 1106 [pbr::OriginalName("ENUM_LABEL_92")] EnumLabel92 = 92, 1107 [pbr::OriginalName("ENUM_LABEL_93")] EnumLabel93 = 93, 1108 [pbr::OriginalName("ENUM_LABEL_94")] EnumLabel94 = 94, 1109 [pbr::OriginalName("ENUM_LABEL_95")] EnumLabel95 = 95, 1110 [pbr::OriginalName("ENUM_LABEL_96")] EnumLabel96 = 96, 1111 [pbr::OriginalName("ENUM_LABEL_97")] EnumLabel97 = 97, 1112 [pbr::OriginalName("ENUM_LABEL_98")] EnumLabel98 = 98, 1113 [pbr::OriginalName("ENUM_LABEL_99")] EnumLabel99 = 99, 1114 [pbr::OriginalName("ENUM_LABEL_100")] EnumLabel100 = 100, 1115 } 1116 1117 #endregion 1118 1119 #region Messages 1120 /// <summary> 1121 /// This proto includes every type of field in both singular and repeated 1122 /// forms. 1123 /// </summary> 1124 [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] 1125 public sealed partial class TestAllTypes : pb::IMessage<TestAllTypes> 1126 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 1127 , pb::IBufferMessage 1128 #endif 1129 { 1130 private static readonly pb::MessageParser<TestAllTypes> _parser = new pb::MessageParser<TestAllTypes>(() => new TestAllTypes()); 1131 private pb::UnknownFieldSet _unknownFields; 1132 private int _hasBits0; 1133 private int _hasBits1; 1134 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 1135 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 1136 public static pb::MessageParser<TestAllTypes> Parser { get { return _parser; } } 1137 1138 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 1139 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 1140 public static pbr::MessageDescriptor Descriptor { 1141 get { return global::Google.Protobuf.TestProtos.Proto2.UnittestReflection.Descriptor.MessageTypes[0]; } 1142 } 1143 1144 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 1145 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 1146 pbr::MessageDescriptor pb::IMessage.Descriptor { 1147 get { return Descriptor; } 1148 } 1149 1150 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 1151 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] TestAllTypes()1152 public TestAllTypes() { 1153 OnConstruction(); 1154 } 1155 OnConstruction()1156 partial void OnConstruction(); 1157 1158 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 1159 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] TestAllTypes(TestAllTypes other)1160 public TestAllTypes(TestAllTypes other) : this() { 1161 _hasBits0 = other._hasBits0; 1162 _hasBits1 = other._hasBits1; 1163 optionalInt32_ = other.optionalInt32_; 1164 optionalInt64_ = other.optionalInt64_; 1165 optionalUint32_ = other.optionalUint32_; 1166 optionalUint64_ = other.optionalUint64_; 1167 optionalSint32_ = other.optionalSint32_; 1168 optionalSint64_ = other.optionalSint64_; 1169 optionalFixed32_ = other.optionalFixed32_; 1170 optionalFixed64_ = other.optionalFixed64_; 1171 optionalSfixed32_ = other.optionalSfixed32_; 1172 optionalSfixed64_ = other.optionalSfixed64_; 1173 optionalFloat_ = other.optionalFloat_; 1174 optionalDouble_ = other.optionalDouble_; 1175 optionalBool_ = other.optionalBool_; 1176 optionalString_ = other.optionalString_; 1177 optionalBytes_ = other.optionalBytes_; 1178 optionalGroup_ = other.HasOptionalGroup ? other.optionalGroup_.Clone() : null; 1179 optionalNestedMessage_ = other.optionalNestedMessage_ != null ? other.optionalNestedMessage_.Clone() : null; 1180 optionalForeignMessage_ = other.optionalForeignMessage_ != null ? other.optionalForeignMessage_.Clone() : null; 1181 optionalImportMessage_ = other.optionalImportMessage_ != null ? other.optionalImportMessage_.Clone() : null; 1182 optionalNestedEnum_ = other.optionalNestedEnum_; 1183 optionalForeignEnum_ = other.optionalForeignEnum_; 1184 optionalImportEnum_ = other.optionalImportEnum_; 1185 optionalStringPiece_ = other.optionalStringPiece_; 1186 optionalCord_ = other.optionalCord_; 1187 optionalPublicImportMessage_ = other.optionalPublicImportMessage_ != null ? other.optionalPublicImportMessage_.Clone() : null; 1188 optionalLazyMessage_ = other.optionalLazyMessage_ != null ? other.optionalLazyMessage_.Clone() : null; 1189 repeatedInt32_ = other.repeatedInt32_.Clone(); 1190 repeatedInt64_ = other.repeatedInt64_.Clone(); 1191 repeatedUint32_ = other.repeatedUint32_.Clone(); 1192 repeatedUint64_ = other.repeatedUint64_.Clone(); 1193 repeatedSint32_ = other.repeatedSint32_.Clone(); 1194 repeatedSint64_ = other.repeatedSint64_.Clone(); 1195 repeatedFixed32_ = other.repeatedFixed32_.Clone(); 1196 repeatedFixed64_ = other.repeatedFixed64_.Clone(); 1197 repeatedSfixed32_ = other.repeatedSfixed32_.Clone(); 1198 repeatedSfixed64_ = other.repeatedSfixed64_.Clone(); 1199 repeatedFloat_ = other.repeatedFloat_.Clone(); 1200 repeatedDouble_ = other.repeatedDouble_.Clone(); 1201 repeatedBool_ = other.repeatedBool_.Clone(); 1202 repeatedString_ = other.repeatedString_.Clone(); 1203 repeatedBytes_ = other.repeatedBytes_.Clone(); 1204 repeatedGroup_ = other.repeatedGroup_.Clone(); 1205 repeatedNestedMessage_ = other.repeatedNestedMessage_.Clone(); 1206 repeatedForeignMessage_ = other.repeatedForeignMessage_.Clone(); 1207 repeatedImportMessage_ = other.repeatedImportMessage_.Clone(); 1208 repeatedNestedEnum_ = other.repeatedNestedEnum_.Clone(); 1209 repeatedForeignEnum_ = other.repeatedForeignEnum_.Clone(); 1210 repeatedImportEnum_ = other.repeatedImportEnum_.Clone(); 1211 repeatedStringPiece_ = other.repeatedStringPiece_.Clone(); 1212 repeatedCord_ = other.repeatedCord_.Clone(); 1213 repeatedLazyMessage_ = other.repeatedLazyMessage_.Clone(); 1214 defaultInt32_ = other.defaultInt32_; 1215 defaultInt64_ = other.defaultInt64_; 1216 defaultUint32_ = other.defaultUint32_; 1217 defaultUint64_ = other.defaultUint64_; 1218 defaultSint32_ = other.defaultSint32_; 1219 defaultSint64_ = other.defaultSint64_; 1220 defaultFixed32_ = other.defaultFixed32_; 1221 defaultFixed64_ = other.defaultFixed64_; 1222 defaultSfixed32_ = other.defaultSfixed32_; 1223 defaultSfixed64_ = other.defaultSfixed64_; 1224 defaultFloat_ = other.defaultFloat_; 1225 defaultDouble_ = other.defaultDouble_; 1226 defaultBool_ = other.defaultBool_; 1227 defaultString_ = other.defaultString_; 1228 defaultBytes_ = other.defaultBytes_; 1229 defaultNestedEnum_ = other.defaultNestedEnum_; 1230 defaultForeignEnum_ = other.defaultForeignEnum_; 1231 defaultImportEnum_ = other.defaultImportEnum_; 1232 defaultStringPiece_ = other.defaultStringPiece_; 1233 defaultCord_ = other.defaultCord_; 1234 switch (other.OneofFieldCase) { 1235 case OneofFieldOneofCase.OneofUint32: 1236 OneofUint32 = other.OneofUint32; 1237 break; 1238 case OneofFieldOneofCase.OneofNestedMessage: 1239 OneofNestedMessage = other.OneofNestedMessage.Clone(); 1240 break; 1241 case OneofFieldOneofCase.OneofString: 1242 OneofString = other.OneofString; 1243 break; 1244 case OneofFieldOneofCase.OneofBytes: 1245 OneofBytes = other.OneofBytes; 1246 break; 1247 } 1248 1249 _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); 1250 } 1251 1252 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 1253 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] Clone()1254 public TestAllTypes Clone() { 1255 return new TestAllTypes(this); 1256 } 1257 1258 /// <summary>Field number for the "optional_int32" field.</summary> 1259 public const int OptionalInt32FieldNumber = 1; 1260 private readonly static int OptionalInt32DefaultValue = 0; 1261 1262 private int optionalInt32_; 1263 /// <summary> 1264 /// Singular 1265 /// </summary> 1266 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 1267 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 1268 public int OptionalInt32 { 1269 get { if ((_hasBits0 & 1) != 0) { return optionalInt32_; } else { return OptionalInt32DefaultValue; } } 1270 set { 1271 _hasBits0 |= 1; 1272 optionalInt32_ = value; 1273 } 1274 } 1275 /// <summary>Gets whether the "optional_int32" field is set</summary> 1276 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 1277 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 1278 public bool HasOptionalInt32 { 1279 get { return (_hasBits0 & 1) != 0; } 1280 } 1281 /// <summary>Clears the value of the "optional_int32" field</summary> 1282 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 1283 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] ClearOptionalInt32()1284 public void ClearOptionalInt32() { 1285 _hasBits0 &= ~1; 1286 } 1287 1288 /// <summary>Field number for the "optional_int64" field.</summary> 1289 public const int OptionalInt64FieldNumber = 2; 1290 private readonly static long OptionalInt64DefaultValue = 0L; 1291 1292 private long optionalInt64_; 1293 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 1294 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 1295 public long OptionalInt64 { 1296 get { if ((_hasBits0 & 2) != 0) { return optionalInt64_; } else { return OptionalInt64DefaultValue; } } 1297 set { 1298 _hasBits0 |= 2; 1299 optionalInt64_ = value; 1300 } 1301 } 1302 /// <summary>Gets whether the "optional_int64" field is set</summary> 1303 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 1304 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 1305 public bool HasOptionalInt64 { 1306 get { return (_hasBits0 & 2) != 0; } 1307 } 1308 /// <summary>Clears the value of the "optional_int64" field</summary> 1309 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 1310 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] ClearOptionalInt64()1311 public void ClearOptionalInt64() { 1312 _hasBits0 &= ~2; 1313 } 1314 1315 /// <summary>Field number for the "optional_uint32" field.</summary> 1316 public const int OptionalUint32FieldNumber = 3; 1317 private readonly static uint OptionalUint32DefaultValue = 0; 1318 1319 private uint optionalUint32_; 1320 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 1321 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 1322 public uint OptionalUint32 { 1323 get { if ((_hasBits0 & 4) != 0) { return optionalUint32_; } else { return OptionalUint32DefaultValue; } } 1324 set { 1325 _hasBits0 |= 4; 1326 optionalUint32_ = value; 1327 } 1328 } 1329 /// <summary>Gets whether the "optional_uint32" field is set</summary> 1330 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 1331 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 1332 public bool HasOptionalUint32 { 1333 get { return (_hasBits0 & 4) != 0; } 1334 } 1335 /// <summary>Clears the value of the "optional_uint32" field</summary> 1336 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 1337 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] ClearOptionalUint32()1338 public void ClearOptionalUint32() { 1339 _hasBits0 &= ~4; 1340 } 1341 1342 /// <summary>Field number for the "optional_uint64" field.</summary> 1343 public const int OptionalUint64FieldNumber = 4; 1344 private readonly static ulong OptionalUint64DefaultValue = 0UL; 1345 1346 private ulong optionalUint64_; 1347 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 1348 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 1349 public ulong OptionalUint64 { 1350 get { if ((_hasBits0 & 8) != 0) { return optionalUint64_; } else { return OptionalUint64DefaultValue; } } 1351 set { 1352 _hasBits0 |= 8; 1353 optionalUint64_ = value; 1354 } 1355 } 1356 /// <summary>Gets whether the "optional_uint64" field is set</summary> 1357 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 1358 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 1359 public bool HasOptionalUint64 { 1360 get { return (_hasBits0 & 8) != 0; } 1361 } 1362 /// <summary>Clears the value of the "optional_uint64" field</summary> 1363 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 1364 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] ClearOptionalUint64()1365 public void ClearOptionalUint64() { 1366 _hasBits0 &= ~8; 1367 } 1368 1369 /// <summary>Field number for the "optional_sint32" field.</summary> 1370 public const int OptionalSint32FieldNumber = 5; 1371 private readonly static int OptionalSint32DefaultValue = 0; 1372 1373 private int optionalSint32_; 1374 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 1375 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 1376 public int OptionalSint32 { 1377 get { if ((_hasBits0 & 16) != 0) { return optionalSint32_; } else { return OptionalSint32DefaultValue; } } 1378 set { 1379 _hasBits0 |= 16; 1380 optionalSint32_ = value; 1381 } 1382 } 1383 /// <summary>Gets whether the "optional_sint32" field is set</summary> 1384 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 1385 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 1386 public bool HasOptionalSint32 { 1387 get { return (_hasBits0 & 16) != 0; } 1388 } 1389 /// <summary>Clears the value of the "optional_sint32" field</summary> 1390 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 1391 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] ClearOptionalSint32()1392 public void ClearOptionalSint32() { 1393 _hasBits0 &= ~16; 1394 } 1395 1396 /// <summary>Field number for the "optional_sint64" field.</summary> 1397 public const int OptionalSint64FieldNumber = 6; 1398 private readonly static long OptionalSint64DefaultValue = 0L; 1399 1400 private long optionalSint64_; 1401 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 1402 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 1403 public long OptionalSint64 { 1404 get { if ((_hasBits0 & 32) != 0) { return optionalSint64_; } else { return OptionalSint64DefaultValue; } } 1405 set { 1406 _hasBits0 |= 32; 1407 optionalSint64_ = value; 1408 } 1409 } 1410 /// <summary>Gets whether the "optional_sint64" field is set</summary> 1411 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 1412 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 1413 public bool HasOptionalSint64 { 1414 get { return (_hasBits0 & 32) != 0; } 1415 } 1416 /// <summary>Clears the value of the "optional_sint64" field</summary> 1417 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 1418 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] ClearOptionalSint64()1419 public void ClearOptionalSint64() { 1420 _hasBits0 &= ~32; 1421 } 1422 1423 /// <summary>Field number for the "optional_fixed32" field.</summary> 1424 public const int OptionalFixed32FieldNumber = 7; 1425 private readonly static uint OptionalFixed32DefaultValue = 0; 1426 1427 private uint optionalFixed32_; 1428 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 1429 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 1430 public uint OptionalFixed32 { 1431 get { if ((_hasBits0 & 64) != 0) { return optionalFixed32_; } else { return OptionalFixed32DefaultValue; } } 1432 set { 1433 _hasBits0 |= 64; 1434 optionalFixed32_ = value; 1435 } 1436 } 1437 /// <summary>Gets whether the "optional_fixed32" field is set</summary> 1438 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 1439 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 1440 public bool HasOptionalFixed32 { 1441 get { return (_hasBits0 & 64) != 0; } 1442 } 1443 /// <summary>Clears the value of the "optional_fixed32" field</summary> 1444 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 1445 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] ClearOptionalFixed32()1446 public void ClearOptionalFixed32() { 1447 _hasBits0 &= ~64; 1448 } 1449 1450 /// <summary>Field number for the "optional_fixed64" field.</summary> 1451 public const int OptionalFixed64FieldNumber = 8; 1452 private readonly static ulong OptionalFixed64DefaultValue = 0UL; 1453 1454 private ulong optionalFixed64_; 1455 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 1456 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 1457 public ulong OptionalFixed64 { 1458 get { if ((_hasBits0 & 128) != 0) { return optionalFixed64_; } else { return OptionalFixed64DefaultValue; } } 1459 set { 1460 _hasBits0 |= 128; 1461 optionalFixed64_ = value; 1462 } 1463 } 1464 /// <summary>Gets whether the "optional_fixed64" field is set</summary> 1465 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 1466 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 1467 public bool HasOptionalFixed64 { 1468 get { return (_hasBits0 & 128) != 0; } 1469 } 1470 /// <summary>Clears the value of the "optional_fixed64" field</summary> 1471 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 1472 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] ClearOptionalFixed64()1473 public void ClearOptionalFixed64() { 1474 _hasBits0 &= ~128; 1475 } 1476 1477 /// <summary>Field number for the "optional_sfixed32" field.</summary> 1478 public const int OptionalSfixed32FieldNumber = 9; 1479 private readonly static int OptionalSfixed32DefaultValue = 0; 1480 1481 private int optionalSfixed32_; 1482 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 1483 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 1484 public int OptionalSfixed32 { 1485 get { if ((_hasBits0 & 256) != 0) { return optionalSfixed32_; } else { return OptionalSfixed32DefaultValue; } } 1486 set { 1487 _hasBits0 |= 256; 1488 optionalSfixed32_ = value; 1489 } 1490 } 1491 /// <summary>Gets whether the "optional_sfixed32" field is set</summary> 1492 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 1493 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 1494 public bool HasOptionalSfixed32 { 1495 get { return (_hasBits0 & 256) != 0; } 1496 } 1497 /// <summary>Clears the value of the "optional_sfixed32" field</summary> 1498 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 1499 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] ClearOptionalSfixed32()1500 public void ClearOptionalSfixed32() { 1501 _hasBits0 &= ~256; 1502 } 1503 1504 /// <summary>Field number for the "optional_sfixed64" field.</summary> 1505 public const int OptionalSfixed64FieldNumber = 10; 1506 private readonly static long OptionalSfixed64DefaultValue = 0L; 1507 1508 private long optionalSfixed64_; 1509 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 1510 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 1511 public long OptionalSfixed64 { 1512 get { if ((_hasBits0 & 512) != 0) { return optionalSfixed64_; } else { return OptionalSfixed64DefaultValue; } } 1513 set { 1514 _hasBits0 |= 512; 1515 optionalSfixed64_ = value; 1516 } 1517 } 1518 /// <summary>Gets whether the "optional_sfixed64" field is set</summary> 1519 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 1520 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 1521 public bool HasOptionalSfixed64 { 1522 get { return (_hasBits0 & 512) != 0; } 1523 } 1524 /// <summary>Clears the value of the "optional_sfixed64" field</summary> 1525 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 1526 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] ClearOptionalSfixed64()1527 public void ClearOptionalSfixed64() { 1528 _hasBits0 &= ~512; 1529 } 1530 1531 /// <summary>Field number for the "optional_float" field.</summary> 1532 public const int OptionalFloatFieldNumber = 11; 1533 private readonly static float OptionalFloatDefaultValue = 0F; 1534 1535 private float optionalFloat_; 1536 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 1537 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 1538 public float OptionalFloat { 1539 get { if ((_hasBits0 & 1024) != 0) { return optionalFloat_; } else { return OptionalFloatDefaultValue; } } 1540 set { 1541 _hasBits0 |= 1024; 1542 optionalFloat_ = value; 1543 } 1544 } 1545 /// <summary>Gets whether the "optional_float" field is set</summary> 1546 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 1547 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 1548 public bool HasOptionalFloat { 1549 get { return (_hasBits0 & 1024) != 0; } 1550 } 1551 /// <summary>Clears the value of the "optional_float" field</summary> 1552 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 1553 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] ClearOptionalFloat()1554 public void ClearOptionalFloat() { 1555 _hasBits0 &= ~1024; 1556 } 1557 1558 /// <summary>Field number for the "optional_double" field.</summary> 1559 public const int OptionalDoubleFieldNumber = 12; 1560 private readonly static double OptionalDoubleDefaultValue = 0D; 1561 1562 private double optionalDouble_; 1563 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 1564 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 1565 public double OptionalDouble { 1566 get { if ((_hasBits0 & 2048) != 0) { return optionalDouble_; } else { return OptionalDoubleDefaultValue; } } 1567 set { 1568 _hasBits0 |= 2048; 1569 optionalDouble_ = value; 1570 } 1571 } 1572 /// <summary>Gets whether the "optional_double" field is set</summary> 1573 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 1574 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 1575 public bool HasOptionalDouble { 1576 get { return (_hasBits0 & 2048) != 0; } 1577 } 1578 /// <summary>Clears the value of the "optional_double" field</summary> 1579 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 1580 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] ClearOptionalDouble()1581 public void ClearOptionalDouble() { 1582 _hasBits0 &= ~2048; 1583 } 1584 1585 /// <summary>Field number for the "optional_bool" field.</summary> 1586 public const int OptionalBoolFieldNumber = 13; 1587 private readonly static bool OptionalBoolDefaultValue = false; 1588 1589 private bool optionalBool_; 1590 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 1591 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 1592 public bool OptionalBool { 1593 get { if ((_hasBits0 & 4096) != 0) { return optionalBool_; } else { return OptionalBoolDefaultValue; } } 1594 set { 1595 _hasBits0 |= 4096; 1596 optionalBool_ = value; 1597 } 1598 } 1599 /// <summary>Gets whether the "optional_bool" field is set</summary> 1600 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 1601 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 1602 public bool HasOptionalBool { 1603 get { return (_hasBits0 & 4096) != 0; } 1604 } 1605 /// <summary>Clears the value of the "optional_bool" field</summary> 1606 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 1607 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] ClearOptionalBool()1608 public void ClearOptionalBool() { 1609 _hasBits0 &= ~4096; 1610 } 1611 1612 /// <summary>Field number for the "optional_string" field.</summary> 1613 public const int OptionalStringFieldNumber = 14; 1614 private readonly static string OptionalStringDefaultValue = ""; 1615 1616 private string optionalString_; 1617 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 1618 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 1619 public string OptionalString { 1620 get { return optionalString_ ?? OptionalStringDefaultValue; } 1621 set { 1622 optionalString_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); 1623 } 1624 } 1625 /// <summary>Gets whether the "optional_string" field is set</summary> 1626 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 1627 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 1628 public bool HasOptionalString { 1629 get { return optionalString_ != null; } 1630 } 1631 /// <summary>Clears the value of the "optional_string" field</summary> 1632 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 1633 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] ClearOptionalString()1634 public void ClearOptionalString() { 1635 optionalString_ = null; 1636 } 1637 1638 /// <summary>Field number for the "optional_bytes" field.</summary> 1639 public const int OptionalBytesFieldNumber = 15; 1640 private readonly static pb::ByteString OptionalBytesDefaultValue = pb::ByteString.Empty; 1641 1642 private pb::ByteString optionalBytes_; 1643 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 1644 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 1645 public pb::ByteString OptionalBytes { 1646 get { return optionalBytes_ ?? OptionalBytesDefaultValue; } 1647 set { 1648 optionalBytes_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); 1649 } 1650 } 1651 /// <summary>Gets whether the "optional_bytes" field is set</summary> 1652 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 1653 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 1654 public bool HasOptionalBytes { 1655 get { return optionalBytes_ != null; } 1656 } 1657 /// <summary>Clears the value of the "optional_bytes" field</summary> 1658 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 1659 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] ClearOptionalBytes()1660 public void ClearOptionalBytes() { 1661 optionalBytes_ = null; 1662 } 1663 1664 /// <summary>Field number for the "optionalgroup" field.</summary> 1665 public const int OptionalGroupFieldNumber = 16; 1666 private global::Google.Protobuf.TestProtos.Proto2.TestAllTypes.Types.OptionalGroup optionalGroup_; 1667 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 1668 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 1669 public global::Google.Protobuf.TestProtos.Proto2.TestAllTypes.Types.OptionalGroup OptionalGroup { 1670 get { return optionalGroup_; } 1671 set { 1672 optionalGroup_ = value; 1673 } 1674 } 1675 /// <summary>Gets whether the optionalgroup field is set</summary> 1676 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 1677 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 1678 public bool HasOptionalGroup { 1679 get { return optionalGroup_ != null; } 1680 } 1681 /// <summary>Clears the value of the optionalgroup field</summary> 1682 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 1683 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] ClearOptionalGroup()1684 public void ClearOptionalGroup() { 1685 optionalGroup_ = null; 1686 } 1687 1688 /// <summary>Field number for the "optional_nested_message" field.</summary> 1689 public const int OptionalNestedMessageFieldNumber = 18; 1690 private global::Google.Protobuf.TestProtos.Proto2.TestAllTypes.Types.NestedMessage optionalNestedMessage_; 1691 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 1692 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 1693 public global::Google.Protobuf.TestProtos.Proto2.TestAllTypes.Types.NestedMessage OptionalNestedMessage { 1694 get { return optionalNestedMessage_; } 1695 set { 1696 optionalNestedMessage_ = value; 1697 } 1698 } 1699 1700 /// <summary>Field number for the "optional_foreign_message" field.</summary> 1701 public const int OptionalForeignMessageFieldNumber = 19; 1702 private global::Google.Protobuf.TestProtos.Proto2.ForeignMessage optionalForeignMessage_; 1703 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 1704 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 1705 public global::Google.Protobuf.TestProtos.Proto2.ForeignMessage OptionalForeignMessage { 1706 get { return optionalForeignMessage_; } 1707 set { 1708 optionalForeignMessage_ = value; 1709 } 1710 } 1711 1712 /// <summary>Field number for the "optional_import_message" field.</summary> 1713 public const int OptionalImportMessageFieldNumber = 20; 1714 private global::Google.Protobuf.TestProtos.Proto2.ImportMessage optionalImportMessage_; 1715 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 1716 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 1717 public global::Google.Protobuf.TestProtos.Proto2.ImportMessage OptionalImportMessage { 1718 get { return optionalImportMessage_; } 1719 set { 1720 optionalImportMessage_ = value; 1721 } 1722 } 1723 1724 /// <summary>Field number for the "optional_nested_enum" field.</summary> 1725 public const int OptionalNestedEnumFieldNumber = 21; 1726 private readonly static global::Google.Protobuf.TestProtos.Proto2.TestAllTypes.Types.NestedEnum OptionalNestedEnumDefaultValue = global::Google.Protobuf.TestProtos.Proto2.TestAllTypes.Types.NestedEnum.Foo; 1727 1728 private global::Google.Protobuf.TestProtos.Proto2.TestAllTypes.Types.NestedEnum optionalNestedEnum_; 1729 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 1730 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 1731 public global::Google.Protobuf.TestProtos.Proto2.TestAllTypes.Types.NestedEnum OptionalNestedEnum { 1732 get { if ((_hasBits0 & 8192) != 0) { return optionalNestedEnum_; } else { return OptionalNestedEnumDefaultValue; } } 1733 set { 1734 _hasBits0 |= 8192; 1735 optionalNestedEnum_ = value; 1736 } 1737 } 1738 /// <summary>Gets whether the "optional_nested_enum" field is set</summary> 1739 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 1740 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 1741 public bool HasOptionalNestedEnum { 1742 get { return (_hasBits0 & 8192) != 0; } 1743 } 1744 /// <summary>Clears the value of the "optional_nested_enum" field</summary> 1745 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 1746 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] ClearOptionalNestedEnum()1747 public void ClearOptionalNestedEnum() { 1748 _hasBits0 &= ~8192; 1749 } 1750 1751 /// <summary>Field number for the "optional_foreign_enum" field.</summary> 1752 public const int OptionalForeignEnumFieldNumber = 22; 1753 private readonly static global::Google.Protobuf.TestProtos.Proto2.ForeignEnum OptionalForeignEnumDefaultValue = global::Google.Protobuf.TestProtos.Proto2.ForeignEnum.ForeignFoo; 1754 1755 private global::Google.Protobuf.TestProtos.Proto2.ForeignEnum optionalForeignEnum_; 1756 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 1757 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 1758 public global::Google.Protobuf.TestProtos.Proto2.ForeignEnum OptionalForeignEnum { 1759 get { if ((_hasBits0 & 16384) != 0) { return optionalForeignEnum_; } else { return OptionalForeignEnumDefaultValue; } } 1760 set { 1761 _hasBits0 |= 16384; 1762 optionalForeignEnum_ = value; 1763 } 1764 } 1765 /// <summary>Gets whether the "optional_foreign_enum" field is set</summary> 1766 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 1767 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 1768 public bool HasOptionalForeignEnum { 1769 get { return (_hasBits0 & 16384) != 0; } 1770 } 1771 /// <summary>Clears the value of the "optional_foreign_enum" field</summary> 1772 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 1773 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] ClearOptionalForeignEnum()1774 public void ClearOptionalForeignEnum() { 1775 _hasBits0 &= ~16384; 1776 } 1777 1778 /// <summary>Field number for the "optional_import_enum" field.</summary> 1779 public const int OptionalImportEnumFieldNumber = 23; 1780 private readonly static global::Google.Protobuf.TestProtos.Proto2.ImportEnum OptionalImportEnumDefaultValue = global::Google.Protobuf.TestProtos.Proto2.ImportEnum.ImportFoo; 1781 1782 private global::Google.Protobuf.TestProtos.Proto2.ImportEnum optionalImportEnum_; 1783 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 1784 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 1785 public global::Google.Protobuf.TestProtos.Proto2.ImportEnum OptionalImportEnum { 1786 get { if ((_hasBits0 & 32768) != 0) { return optionalImportEnum_; } else { return OptionalImportEnumDefaultValue; } } 1787 set { 1788 _hasBits0 |= 32768; 1789 optionalImportEnum_ = value; 1790 } 1791 } 1792 /// <summary>Gets whether the "optional_import_enum" field is set</summary> 1793 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 1794 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 1795 public bool HasOptionalImportEnum { 1796 get { return (_hasBits0 & 32768) != 0; } 1797 } 1798 /// <summary>Clears the value of the "optional_import_enum" field</summary> 1799 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 1800 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] ClearOptionalImportEnum()1801 public void ClearOptionalImportEnum() { 1802 _hasBits0 &= ~32768; 1803 } 1804 1805 /// <summary>Field number for the "optional_string_piece" field.</summary> 1806 public const int OptionalStringPieceFieldNumber = 24; 1807 private readonly static string OptionalStringPieceDefaultValue = ""; 1808 1809 private string optionalStringPiece_; 1810 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 1811 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 1812 public string OptionalStringPiece { 1813 get { return optionalStringPiece_ ?? OptionalStringPieceDefaultValue; } 1814 set { 1815 optionalStringPiece_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); 1816 } 1817 } 1818 /// <summary>Gets whether the "optional_string_piece" field is set</summary> 1819 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 1820 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 1821 public bool HasOptionalStringPiece { 1822 get { return optionalStringPiece_ != null; } 1823 } 1824 /// <summary>Clears the value of the "optional_string_piece" field</summary> 1825 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 1826 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] ClearOptionalStringPiece()1827 public void ClearOptionalStringPiece() { 1828 optionalStringPiece_ = null; 1829 } 1830 1831 /// <summary>Field number for the "optional_cord" field.</summary> 1832 public const int OptionalCordFieldNumber = 25; 1833 private readonly static string OptionalCordDefaultValue = ""; 1834 1835 private string optionalCord_; 1836 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 1837 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 1838 public string OptionalCord { 1839 get { return optionalCord_ ?? OptionalCordDefaultValue; } 1840 set { 1841 optionalCord_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); 1842 } 1843 } 1844 /// <summary>Gets whether the "optional_cord" field is set</summary> 1845 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 1846 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 1847 public bool HasOptionalCord { 1848 get { return optionalCord_ != null; } 1849 } 1850 /// <summary>Clears the value of the "optional_cord" field</summary> 1851 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 1852 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] ClearOptionalCord()1853 public void ClearOptionalCord() { 1854 optionalCord_ = null; 1855 } 1856 1857 /// <summary>Field number for the "optional_public_import_message" field.</summary> 1858 public const int OptionalPublicImportMessageFieldNumber = 26; 1859 private global::Google.Protobuf.TestProtos.Proto2.PublicImportMessage optionalPublicImportMessage_; 1860 /// <summary> 1861 /// Defined in unittest_import_public.proto 1862 /// </summary> 1863 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 1864 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 1865 public global::Google.Protobuf.TestProtos.Proto2.PublicImportMessage OptionalPublicImportMessage { 1866 get { return optionalPublicImportMessage_; } 1867 set { 1868 optionalPublicImportMessage_ = value; 1869 } 1870 } 1871 1872 /// <summary>Field number for the "optional_lazy_message" field.</summary> 1873 public const int OptionalLazyMessageFieldNumber = 27; 1874 private global::Google.Protobuf.TestProtos.Proto2.TestAllTypes.Types.NestedMessage optionalLazyMessage_; 1875 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 1876 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 1877 public global::Google.Protobuf.TestProtos.Proto2.TestAllTypes.Types.NestedMessage OptionalLazyMessage { 1878 get { return optionalLazyMessage_; } 1879 set { 1880 optionalLazyMessage_ = value; 1881 } 1882 } 1883 1884 /// <summary>Field number for the "repeated_int32" field.</summary> 1885 public const int RepeatedInt32FieldNumber = 31; 1886 private static readonly pb::FieldCodec<int> _repeated_repeatedInt32_codec 1887 = pb::FieldCodec.ForInt32(248); 1888 private readonly pbc::RepeatedField<int> repeatedInt32_ = new pbc::RepeatedField<int>(); 1889 /// <summary> 1890 /// Repeated 1891 /// </summary> 1892 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 1893 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 1894 public pbc::RepeatedField<int> RepeatedInt32 { 1895 get { return repeatedInt32_; } 1896 } 1897 1898 /// <summary>Field number for the "repeated_int64" field.</summary> 1899 public const int RepeatedInt64FieldNumber = 32; 1900 private static readonly pb::FieldCodec<long> _repeated_repeatedInt64_codec 1901 = pb::FieldCodec.ForInt64(256); 1902 private readonly pbc::RepeatedField<long> repeatedInt64_ = new pbc::RepeatedField<long>(); 1903 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 1904 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 1905 public pbc::RepeatedField<long> RepeatedInt64 { 1906 get { return repeatedInt64_; } 1907 } 1908 1909 /// <summary>Field number for the "repeated_uint32" field.</summary> 1910 public const int RepeatedUint32FieldNumber = 33; 1911 private static readonly pb::FieldCodec<uint> _repeated_repeatedUint32_codec 1912 = pb::FieldCodec.ForUInt32(264); 1913 private readonly pbc::RepeatedField<uint> repeatedUint32_ = new pbc::RepeatedField<uint>(); 1914 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 1915 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 1916 public pbc::RepeatedField<uint> RepeatedUint32 { 1917 get { return repeatedUint32_; } 1918 } 1919 1920 /// <summary>Field number for the "repeated_uint64" field.</summary> 1921 public const int RepeatedUint64FieldNumber = 34; 1922 private static readonly pb::FieldCodec<ulong> _repeated_repeatedUint64_codec 1923 = pb::FieldCodec.ForUInt64(272); 1924 private readonly pbc::RepeatedField<ulong> repeatedUint64_ = new pbc::RepeatedField<ulong>(); 1925 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 1926 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 1927 public pbc::RepeatedField<ulong> RepeatedUint64 { 1928 get { return repeatedUint64_; } 1929 } 1930 1931 /// <summary>Field number for the "repeated_sint32" field.</summary> 1932 public const int RepeatedSint32FieldNumber = 35; 1933 private static readonly pb::FieldCodec<int> _repeated_repeatedSint32_codec 1934 = pb::FieldCodec.ForSInt32(280); 1935 private readonly pbc::RepeatedField<int> repeatedSint32_ = new pbc::RepeatedField<int>(); 1936 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 1937 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 1938 public pbc::RepeatedField<int> RepeatedSint32 { 1939 get { return repeatedSint32_; } 1940 } 1941 1942 /// <summary>Field number for the "repeated_sint64" field.</summary> 1943 public const int RepeatedSint64FieldNumber = 36; 1944 private static readonly pb::FieldCodec<long> _repeated_repeatedSint64_codec 1945 = pb::FieldCodec.ForSInt64(288); 1946 private readonly pbc::RepeatedField<long> repeatedSint64_ = new pbc::RepeatedField<long>(); 1947 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 1948 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 1949 public pbc::RepeatedField<long> RepeatedSint64 { 1950 get { return repeatedSint64_; } 1951 } 1952 1953 /// <summary>Field number for the "repeated_fixed32" field.</summary> 1954 public const int RepeatedFixed32FieldNumber = 37; 1955 private static readonly pb::FieldCodec<uint> _repeated_repeatedFixed32_codec 1956 = pb::FieldCodec.ForFixed32(301); 1957 private readonly pbc::RepeatedField<uint> repeatedFixed32_ = new pbc::RepeatedField<uint>(); 1958 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 1959 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 1960 public pbc::RepeatedField<uint> RepeatedFixed32 { 1961 get { return repeatedFixed32_; } 1962 } 1963 1964 /// <summary>Field number for the "repeated_fixed64" field.</summary> 1965 public const int RepeatedFixed64FieldNumber = 38; 1966 private static readonly pb::FieldCodec<ulong> _repeated_repeatedFixed64_codec 1967 = pb::FieldCodec.ForFixed64(305); 1968 private readonly pbc::RepeatedField<ulong> repeatedFixed64_ = new pbc::RepeatedField<ulong>(); 1969 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 1970 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 1971 public pbc::RepeatedField<ulong> RepeatedFixed64 { 1972 get { return repeatedFixed64_; } 1973 } 1974 1975 /// <summary>Field number for the "repeated_sfixed32" field.</summary> 1976 public const int RepeatedSfixed32FieldNumber = 39; 1977 private static readonly pb::FieldCodec<int> _repeated_repeatedSfixed32_codec 1978 = pb::FieldCodec.ForSFixed32(317); 1979 private readonly pbc::RepeatedField<int> repeatedSfixed32_ = new pbc::RepeatedField<int>(); 1980 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 1981 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 1982 public pbc::RepeatedField<int> RepeatedSfixed32 { 1983 get { return repeatedSfixed32_; } 1984 } 1985 1986 /// <summary>Field number for the "repeated_sfixed64" field.</summary> 1987 public const int RepeatedSfixed64FieldNumber = 40; 1988 private static readonly pb::FieldCodec<long> _repeated_repeatedSfixed64_codec 1989 = pb::FieldCodec.ForSFixed64(321); 1990 private readonly pbc::RepeatedField<long> repeatedSfixed64_ = new pbc::RepeatedField<long>(); 1991 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 1992 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 1993 public pbc::RepeatedField<long> RepeatedSfixed64 { 1994 get { return repeatedSfixed64_; } 1995 } 1996 1997 /// <summary>Field number for the "repeated_float" field.</summary> 1998 public const int RepeatedFloatFieldNumber = 41; 1999 private static readonly pb::FieldCodec<float> _repeated_repeatedFloat_codec 2000 = pb::FieldCodec.ForFloat(333); 2001 private readonly pbc::RepeatedField<float> repeatedFloat_ = new pbc::RepeatedField<float>(); 2002 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 2003 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 2004 public pbc::RepeatedField<float> RepeatedFloat { 2005 get { return repeatedFloat_; } 2006 } 2007 2008 /// <summary>Field number for the "repeated_double" field.</summary> 2009 public const int RepeatedDoubleFieldNumber = 42; 2010 private static readonly pb::FieldCodec<double> _repeated_repeatedDouble_codec 2011 = pb::FieldCodec.ForDouble(337); 2012 private readonly pbc::RepeatedField<double> repeatedDouble_ = new pbc::RepeatedField<double>(); 2013 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 2014 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 2015 public pbc::RepeatedField<double> RepeatedDouble { 2016 get { return repeatedDouble_; } 2017 } 2018 2019 /// <summary>Field number for the "repeated_bool" field.</summary> 2020 public const int RepeatedBoolFieldNumber = 43; 2021 private static readonly pb::FieldCodec<bool> _repeated_repeatedBool_codec 2022 = pb::FieldCodec.ForBool(344); 2023 private readonly pbc::RepeatedField<bool> repeatedBool_ = new pbc::RepeatedField<bool>(); 2024 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 2025 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 2026 public pbc::RepeatedField<bool> RepeatedBool { 2027 get { return repeatedBool_; } 2028 } 2029 2030 /// <summary>Field number for the "repeated_string" field.</summary> 2031 public const int RepeatedStringFieldNumber = 44; 2032 private static readonly pb::FieldCodec<string> _repeated_repeatedString_codec 2033 = pb::FieldCodec.ForString(354); 2034 private readonly pbc::RepeatedField<string> repeatedString_ = new pbc::RepeatedField<string>(); 2035 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 2036 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 2037 public pbc::RepeatedField<string> RepeatedString { 2038 get { return repeatedString_; } 2039 } 2040 2041 /// <summary>Field number for the "repeated_bytes" field.</summary> 2042 public const int RepeatedBytesFieldNumber = 45; 2043 private static readonly pb::FieldCodec<pb::ByteString> _repeated_repeatedBytes_codec 2044 = pb::FieldCodec.ForBytes(362); 2045 private readonly pbc::RepeatedField<pb::ByteString> repeatedBytes_ = new pbc::RepeatedField<pb::ByteString>(); 2046 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 2047 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 2048 public pbc::RepeatedField<pb::ByteString> RepeatedBytes { 2049 get { return repeatedBytes_; } 2050 } 2051 2052 /// <summary>Field number for the "repeatedgroup" field.</summary> 2053 public const int RepeatedGroupFieldNumber = 46; 2054 private static readonly pb::FieldCodec<global::Google.Protobuf.TestProtos.Proto2.TestAllTypes.Types.RepeatedGroup> _repeated_repeatedGroup_codec 2055 = pb::FieldCodec.ForGroup(371, 372, global::Google.Protobuf.TestProtos.Proto2.TestAllTypes.Types.RepeatedGroup.Parser); 2056 private readonly pbc::RepeatedField<global::Google.Protobuf.TestProtos.Proto2.TestAllTypes.Types.RepeatedGroup> repeatedGroup_ = new pbc::RepeatedField<global::Google.Protobuf.TestProtos.Proto2.TestAllTypes.Types.RepeatedGroup>(); 2057 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 2058 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 2059 public pbc::RepeatedField<global::Google.Protobuf.TestProtos.Proto2.TestAllTypes.Types.RepeatedGroup> RepeatedGroup { 2060 get { return repeatedGroup_; } 2061 } 2062 2063 /// <summary>Field number for the "repeated_nested_message" field.</summary> 2064 public const int RepeatedNestedMessageFieldNumber = 48; 2065 private static readonly pb::FieldCodec<global::Google.Protobuf.TestProtos.Proto2.TestAllTypes.Types.NestedMessage> _repeated_repeatedNestedMessage_codec 2066 = pb::FieldCodec.ForMessage(386, global::Google.Protobuf.TestProtos.Proto2.TestAllTypes.Types.NestedMessage.Parser); 2067 private readonly pbc::RepeatedField<global::Google.Protobuf.TestProtos.Proto2.TestAllTypes.Types.NestedMessage> repeatedNestedMessage_ = new pbc::RepeatedField<global::Google.Protobuf.TestProtos.Proto2.TestAllTypes.Types.NestedMessage>(); 2068 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 2069 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 2070 public pbc::RepeatedField<global::Google.Protobuf.TestProtos.Proto2.TestAllTypes.Types.NestedMessage> RepeatedNestedMessage { 2071 get { return repeatedNestedMessage_; } 2072 } 2073 2074 /// <summary>Field number for the "repeated_foreign_message" field.</summary> 2075 public const int RepeatedForeignMessageFieldNumber = 49; 2076 private static readonly pb::FieldCodec<global::Google.Protobuf.TestProtos.Proto2.ForeignMessage> _repeated_repeatedForeignMessage_codec 2077 = pb::FieldCodec.ForMessage(394, global::Google.Protobuf.TestProtos.Proto2.ForeignMessage.Parser); 2078 private readonly pbc::RepeatedField<global::Google.Protobuf.TestProtos.Proto2.ForeignMessage> repeatedForeignMessage_ = new pbc::RepeatedField<global::Google.Protobuf.TestProtos.Proto2.ForeignMessage>(); 2079 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 2080 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 2081 public pbc::RepeatedField<global::Google.Protobuf.TestProtos.Proto2.ForeignMessage> RepeatedForeignMessage { 2082 get { return repeatedForeignMessage_; } 2083 } 2084 2085 /// <summary>Field number for the "repeated_import_message" field.</summary> 2086 public const int RepeatedImportMessageFieldNumber = 50; 2087 private static readonly pb::FieldCodec<global::Google.Protobuf.TestProtos.Proto2.ImportMessage> _repeated_repeatedImportMessage_codec 2088 = pb::FieldCodec.ForMessage(402, global::Google.Protobuf.TestProtos.Proto2.ImportMessage.Parser); 2089 private readonly pbc::RepeatedField<global::Google.Protobuf.TestProtos.Proto2.ImportMessage> repeatedImportMessage_ = new pbc::RepeatedField<global::Google.Protobuf.TestProtos.Proto2.ImportMessage>(); 2090 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 2091 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 2092 public pbc::RepeatedField<global::Google.Protobuf.TestProtos.Proto2.ImportMessage> RepeatedImportMessage { 2093 get { return repeatedImportMessage_; } 2094 } 2095 2096 /// <summary>Field number for the "repeated_nested_enum" field.</summary> 2097 public const int RepeatedNestedEnumFieldNumber = 51; 2098 private static readonly pb::FieldCodec<global::Google.Protobuf.TestProtos.Proto2.TestAllTypes.Types.NestedEnum> _repeated_repeatedNestedEnum_codec 2099 = pb::FieldCodec.ForEnum(408, x => (int) x, x => (global::Google.Protobuf.TestProtos.Proto2.TestAllTypes.Types.NestedEnum) x); 2100 private readonly pbc::RepeatedField<global::Google.Protobuf.TestProtos.Proto2.TestAllTypes.Types.NestedEnum> repeatedNestedEnum_ = new pbc::RepeatedField<global::Google.Protobuf.TestProtos.Proto2.TestAllTypes.Types.NestedEnum>(); 2101 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 2102 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 2103 public pbc::RepeatedField<global::Google.Protobuf.TestProtos.Proto2.TestAllTypes.Types.NestedEnum> RepeatedNestedEnum { 2104 get { return repeatedNestedEnum_; } 2105 } 2106 2107 /// <summary>Field number for the "repeated_foreign_enum" field.</summary> 2108 public const int RepeatedForeignEnumFieldNumber = 52; 2109 private static readonly pb::FieldCodec<global::Google.Protobuf.TestProtos.Proto2.ForeignEnum> _repeated_repeatedForeignEnum_codec 2110 = pb::FieldCodec.ForEnum(416, x => (int) x, x => (global::Google.Protobuf.TestProtos.Proto2.ForeignEnum) x); 2111 private readonly pbc::RepeatedField<global::Google.Protobuf.TestProtos.Proto2.ForeignEnum> repeatedForeignEnum_ = new pbc::RepeatedField<global::Google.Protobuf.TestProtos.Proto2.ForeignEnum>(); 2112 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 2113 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 2114 public pbc::RepeatedField<global::Google.Protobuf.TestProtos.Proto2.ForeignEnum> RepeatedForeignEnum { 2115 get { return repeatedForeignEnum_; } 2116 } 2117 2118 /// <summary>Field number for the "repeated_import_enum" field.</summary> 2119 public const int RepeatedImportEnumFieldNumber = 53; 2120 private static readonly pb::FieldCodec<global::Google.Protobuf.TestProtos.Proto2.ImportEnum> _repeated_repeatedImportEnum_codec 2121 = pb::FieldCodec.ForEnum(424, x => (int) x, x => (global::Google.Protobuf.TestProtos.Proto2.ImportEnum) x); 2122 private readonly pbc::RepeatedField<global::Google.Protobuf.TestProtos.Proto2.ImportEnum> repeatedImportEnum_ = new pbc::RepeatedField<global::Google.Protobuf.TestProtos.Proto2.ImportEnum>(); 2123 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 2124 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 2125 public pbc::RepeatedField<global::Google.Protobuf.TestProtos.Proto2.ImportEnum> RepeatedImportEnum { 2126 get { return repeatedImportEnum_; } 2127 } 2128 2129 /// <summary>Field number for the "repeated_string_piece" field.</summary> 2130 public const int RepeatedStringPieceFieldNumber = 54; 2131 private static readonly pb::FieldCodec<string> _repeated_repeatedStringPiece_codec 2132 = pb::FieldCodec.ForString(434); 2133 private readonly pbc::RepeatedField<string> repeatedStringPiece_ = new pbc::RepeatedField<string>(); 2134 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 2135 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 2136 public pbc::RepeatedField<string> RepeatedStringPiece { 2137 get { return repeatedStringPiece_; } 2138 } 2139 2140 /// <summary>Field number for the "repeated_cord" field.</summary> 2141 public const int RepeatedCordFieldNumber = 55; 2142 private static readonly pb::FieldCodec<string> _repeated_repeatedCord_codec 2143 = pb::FieldCodec.ForString(442); 2144 private readonly pbc::RepeatedField<string> repeatedCord_ = new pbc::RepeatedField<string>(); 2145 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 2146 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 2147 public pbc::RepeatedField<string> RepeatedCord { 2148 get { return repeatedCord_; } 2149 } 2150 2151 /// <summary>Field number for the "repeated_lazy_message" field.</summary> 2152 public const int RepeatedLazyMessageFieldNumber = 57; 2153 private static readonly pb::FieldCodec<global::Google.Protobuf.TestProtos.Proto2.TestAllTypes.Types.NestedMessage> _repeated_repeatedLazyMessage_codec 2154 = pb::FieldCodec.ForMessage(458, global::Google.Protobuf.TestProtos.Proto2.TestAllTypes.Types.NestedMessage.Parser); 2155 private readonly pbc::RepeatedField<global::Google.Protobuf.TestProtos.Proto2.TestAllTypes.Types.NestedMessage> repeatedLazyMessage_ = new pbc::RepeatedField<global::Google.Protobuf.TestProtos.Proto2.TestAllTypes.Types.NestedMessage>(); 2156 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 2157 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 2158 public pbc::RepeatedField<global::Google.Protobuf.TestProtos.Proto2.TestAllTypes.Types.NestedMessage> RepeatedLazyMessage { 2159 get { return repeatedLazyMessage_; } 2160 } 2161 2162 /// <summary>Field number for the "default_int32" field.</summary> 2163 public const int DefaultInt32FieldNumber = 61; 2164 private readonly static int DefaultInt32DefaultValue = 41; 2165 2166 private int defaultInt32_; 2167 /// <summary> 2168 /// Singular with defaults 2169 /// </summary> 2170 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 2171 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 2172 public int DefaultInt32 { 2173 get { if ((_hasBits0 & 65536) != 0) { return defaultInt32_; } else { return DefaultInt32DefaultValue; } } 2174 set { 2175 _hasBits0 |= 65536; 2176 defaultInt32_ = value; 2177 } 2178 } 2179 /// <summary>Gets whether the "default_int32" field is set</summary> 2180 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 2181 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 2182 public bool HasDefaultInt32 { 2183 get { return (_hasBits0 & 65536) != 0; } 2184 } 2185 /// <summary>Clears the value of the "default_int32" field</summary> 2186 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 2187 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] ClearDefaultInt32()2188 public void ClearDefaultInt32() { 2189 _hasBits0 &= ~65536; 2190 } 2191 2192 /// <summary>Field number for the "default_int64" field.</summary> 2193 public const int DefaultInt64FieldNumber = 62; 2194 private readonly static long DefaultInt64DefaultValue = 42L; 2195 2196 private long defaultInt64_; 2197 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 2198 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 2199 public long DefaultInt64 { 2200 get { if ((_hasBits0 & 131072) != 0) { return defaultInt64_; } else { return DefaultInt64DefaultValue; } } 2201 set { 2202 _hasBits0 |= 131072; 2203 defaultInt64_ = value; 2204 } 2205 } 2206 /// <summary>Gets whether the "default_int64" field is set</summary> 2207 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 2208 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 2209 public bool HasDefaultInt64 { 2210 get { return (_hasBits0 & 131072) != 0; } 2211 } 2212 /// <summary>Clears the value of the "default_int64" field</summary> 2213 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 2214 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] ClearDefaultInt64()2215 public void ClearDefaultInt64() { 2216 _hasBits0 &= ~131072; 2217 } 2218 2219 /// <summary>Field number for the "default_uint32" field.</summary> 2220 public const int DefaultUint32FieldNumber = 63; 2221 private readonly static uint DefaultUint32DefaultValue = 43; 2222 2223 private uint defaultUint32_; 2224 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 2225 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 2226 public uint DefaultUint32 { 2227 get { if ((_hasBits0 & 262144) != 0) { return defaultUint32_; } else { return DefaultUint32DefaultValue; } } 2228 set { 2229 _hasBits0 |= 262144; 2230 defaultUint32_ = value; 2231 } 2232 } 2233 /// <summary>Gets whether the "default_uint32" field is set</summary> 2234 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 2235 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 2236 public bool HasDefaultUint32 { 2237 get { return (_hasBits0 & 262144) != 0; } 2238 } 2239 /// <summary>Clears the value of the "default_uint32" field</summary> 2240 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 2241 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] ClearDefaultUint32()2242 public void ClearDefaultUint32() { 2243 _hasBits0 &= ~262144; 2244 } 2245 2246 /// <summary>Field number for the "default_uint64" field.</summary> 2247 public const int DefaultUint64FieldNumber = 64; 2248 private readonly static ulong DefaultUint64DefaultValue = 44UL; 2249 2250 private ulong defaultUint64_; 2251 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 2252 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 2253 public ulong DefaultUint64 { 2254 get { if ((_hasBits0 & 524288) != 0) { return defaultUint64_; } else { return DefaultUint64DefaultValue; } } 2255 set { 2256 _hasBits0 |= 524288; 2257 defaultUint64_ = value; 2258 } 2259 } 2260 /// <summary>Gets whether the "default_uint64" field is set</summary> 2261 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 2262 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 2263 public bool HasDefaultUint64 { 2264 get { return (_hasBits0 & 524288) != 0; } 2265 } 2266 /// <summary>Clears the value of the "default_uint64" field</summary> 2267 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 2268 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] ClearDefaultUint64()2269 public void ClearDefaultUint64() { 2270 _hasBits0 &= ~524288; 2271 } 2272 2273 /// <summary>Field number for the "default_sint32" field.</summary> 2274 public const int DefaultSint32FieldNumber = 65; 2275 private readonly static int DefaultSint32DefaultValue = -45; 2276 2277 private int defaultSint32_; 2278 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 2279 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 2280 public int DefaultSint32 { 2281 get { if ((_hasBits0 & 1048576) != 0) { return defaultSint32_; } else { return DefaultSint32DefaultValue; } } 2282 set { 2283 _hasBits0 |= 1048576; 2284 defaultSint32_ = value; 2285 } 2286 } 2287 /// <summary>Gets whether the "default_sint32" field is set</summary> 2288 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 2289 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 2290 public bool HasDefaultSint32 { 2291 get { return (_hasBits0 & 1048576) != 0; } 2292 } 2293 /// <summary>Clears the value of the "default_sint32" field</summary> 2294 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 2295 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] ClearDefaultSint32()2296 public void ClearDefaultSint32() { 2297 _hasBits0 &= ~1048576; 2298 } 2299 2300 /// <summary>Field number for the "default_sint64" field.</summary> 2301 public const int DefaultSint64FieldNumber = 66; 2302 private readonly static long DefaultSint64DefaultValue = 46L; 2303 2304 private long defaultSint64_; 2305 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 2306 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 2307 public long DefaultSint64 { 2308 get { if ((_hasBits0 & 2097152) != 0) { return defaultSint64_; } else { return DefaultSint64DefaultValue; } } 2309 set { 2310 _hasBits0 |= 2097152; 2311 defaultSint64_ = value; 2312 } 2313 } 2314 /// <summary>Gets whether the "default_sint64" field is set</summary> 2315 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 2316 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 2317 public bool HasDefaultSint64 { 2318 get { return (_hasBits0 & 2097152) != 0; } 2319 } 2320 /// <summary>Clears the value of the "default_sint64" field</summary> 2321 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 2322 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] ClearDefaultSint64()2323 public void ClearDefaultSint64() { 2324 _hasBits0 &= ~2097152; 2325 } 2326 2327 /// <summary>Field number for the "default_fixed32" field.</summary> 2328 public const int DefaultFixed32FieldNumber = 67; 2329 private readonly static uint DefaultFixed32DefaultValue = 47; 2330 2331 private uint defaultFixed32_; 2332 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 2333 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 2334 public uint DefaultFixed32 { 2335 get { if ((_hasBits0 & 4194304) != 0) { return defaultFixed32_; } else { return DefaultFixed32DefaultValue; } } 2336 set { 2337 _hasBits0 |= 4194304; 2338 defaultFixed32_ = value; 2339 } 2340 } 2341 /// <summary>Gets whether the "default_fixed32" field is set</summary> 2342 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 2343 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 2344 public bool HasDefaultFixed32 { 2345 get { return (_hasBits0 & 4194304) != 0; } 2346 } 2347 /// <summary>Clears the value of the "default_fixed32" field</summary> 2348 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 2349 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] ClearDefaultFixed32()2350 public void ClearDefaultFixed32() { 2351 _hasBits0 &= ~4194304; 2352 } 2353 2354 /// <summary>Field number for the "default_fixed64" field.</summary> 2355 public const int DefaultFixed64FieldNumber = 68; 2356 private readonly static ulong DefaultFixed64DefaultValue = 48UL; 2357 2358 private ulong defaultFixed64_; 2359 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 2360 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 2361 public ulong DefaultFixed64 { 2362 get { if ((_hasBits0 & 8388608) != 0) { return defaultFixed64_; } else { return DefaultFixed64DefaultValue; } } 2363 set { 2364 _hasBits0 |= 8388608; 2365 defaultFixed64_ = value; 2366 } 2367 } 2368 /// <summary>Gets whether the "default_fixed64" field is set</summary> 2369 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 2370 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 2371 public bool HasDefaultFixed64 { 2372 get { return (_hasBits0 & 8388608) != 0; } 2373 } 2374 /// <summary>Clears the value of the "default_fixed64" field</summary> 2375 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 2376 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] ClearDefaultFixed64()2377 public void ClearDefaultFixed64() { 2378 _hasBits0 &= ~8388608; 2379 } 2380 2381 /// <summary>Field number for the "default_sfixed32" field.</summary> 2382 public const int DefaultSfixed32FieldNumber = 69; 2383 private readonly static int DefaultSfixed32DefaultValue = 49; 2384 2385 private int defaultSfixed32_; 2386 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 2387 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 2388 public int DefaultSfixed32 { 2389 get { if ((_hasBits0 & 16777216) != 0) { return defaultSfixed32_; } else { return DefaultSfixed32DefaultValue; } } 2390 set { 2391 _hasBits0 |= 16777216; 2392 defaultSfixed32_ = value; 2393 } 2394 } 2395 /// <summary>Gets whether the "default_sfixed32" field is set</summary> 2396 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 2397 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 2398 public bool HasDefaultSfixed32 { 2399 get { return (_hasBits0 & 16777216) != 0; } 2400 } 2401 /// <summary>Clears the value of the "default_sfixed32" field</summary> 2402 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 2403 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] ClearDefaultSfixed32()2404 public void ClearDefaultSfixed32() { 2405 _hasBits0 &= ~16777216; 2406 } 2407 2408 /// <summary>Field number for the "default_sfixed64" field.</summary> 2409 public const int DefaultSfixed64FieldNumber = 70; 2410 private readonly static long DefaultSfixed64DefaultValue = -50L; 2411 2412 private long defaultSfixed64_; 2413 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 2414 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 2415 public long DefaultSfixed64 { 2416 get { if ((_hasBits0 & 33554432) != 0) { return defaultSfixed64_; } else { return DefaultSfixed64DefaultValue; } } 2417 set { 2418 _hasBits0 |= 33554432; 2419 defaultSfixed64_ = value; 2420 } 2421 } 2422 /// <summary>Gets whether the "default_sfixed64" field is set</summary> 2423 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 2424 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 2425 public bool HasDefaultSfixed64 { 2426 get { return (_hasBits0 & 33554432) != 0; } 2427 } 2428 /// <summary>Clears the value of the "default_sfixed64" field</summary> 2429 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 2430 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] ClearDefaultSfixed64()2431 public void ClearDefaultSfixed64() { 2432 _hasBits0 &= ~33554432; 2433 } 2434 2435 /// <summary>Field number for the "default_float" field.</summary> 2436 public const int DefaultFloatFieldNumber = 71; 2437 private readonly static float DefaultFloatDefaultValue = 51.5F; 2438 2439 private float defaultFloat_; 2440 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 2441 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 2442 public float DefaultFloat { 2443 get { if ((_hasBits0 & 67108864) != 0) { return defaultFloat_; } else { return DefaultFloatDefaultValue; } } 2444 set { 2445 _hasBits0 |= 67108864; 2446 defaultFloat_ = value; 2447 } 2448 } 2449 /// <summary>Gets whether the "default_float" field is set</summary> 2450 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 2451 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 2452 public bool HasDefaultFloat { 2453 get { return (_hasBits0 & 67108864) != 0; } 2454 } 2455 /// <summary>Clears the value of the "default_float" field</summary> 2456 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 2457 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] ClearDefaultFloat()2458 public void ClearDefaultFloat() { 2459 _hasBits0 &= ~67108864; 2460 } 2461 2462 /// <summary>Field number for the "default_double" field.</summary> 2463 public const int DefaultDoubleFieldNumber = 72; 2464 private readonly static double DefaultDoubleDefaultValue = 52000D; 2465 2466 private double defaultDouble_; 2467 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 2468 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 2469 public double DefaultDouble { 2470 get { if ((_hasBits0 & 134217728) != 0) { return defaultDouble_; } else { return DefaultDoubleDefaultValue; } } 2471 set { 2472 _hasBits0 |= 134217728; 2473 defaultDouble_ = value; 2474 } 2475 } 2476 /// <summary>Gets whether the "default_double" field is set</summary> 2477 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 2478 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 2479 public bool HasDefaultDouble { 2480 get { return (_hasBits0 & 134217728) != 0; } 2481 } 2482 /// <summary>Clears the value of the "default_double" field</summary> 2483 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 2484 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] ClearDefaultDouble()2485 public void ClearDefaultDouble() { 2486 _hasBits0 &= ~134217728; 2487 } 2488 2489 /// <summary>Field number for the "default_bool" field.</summary> 2490 public const int DefaultBoolFieldNumber = 73; 2491 private readonly static bool DefaultBoolDefaultValue = true; 2492 2493 private bool defaultBool_; 2494 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 2495 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 2496 public bool DefaultBool { 2497 get { if ((_hasBits0 & 268435456) != 0) { return defaultBool_; } else { return DefaultBoolDefaultValue; } } 2498 set { 2499 _hasBits0 |= 268435456; 2500 defaultBool_ = value; 2501 } 2502 } 2503 /// <summary>Gets whether the "default_bool" field is set</summary> 2504 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 2505 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 2506 public bool HasDefaultBool { 2507 get { return (_hasBits0 & 268435456) != 0; } 2508 } 2509 /// <summary>Clears the value of the "default_bool" field</summary> 2510 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 2511 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] ClearDefaultBool()2512 public void ClearDefaultBool() { 2513 _hasBits0 &= ~268435456; 2514 } 2515 2516 /// <summary>Field number for the "default_string" field.</summary> 2517 public const int DefaultStringFieldNumber = 74; 2518 private readonly static string DefaultStringDefaultValue = global::System.Text.Encoding.UTF8.GetString(global::System.Convert.FromBase64String("aGVsbG8="), 0, 5); 2519 2520 private string defaultString_; 2521 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 2522 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 2523 public string DefaultString { 2524 get { return defaultString_ ?? DefaultStringDefaultValue; } 2525 set { 2526 defaultString_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); 2527 } 2528 } 2529 /// <summary>Gets whether the "default_string" field is set</summary> 2530 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 2531 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 2532 public bool HasDefaultString { 2533 get { return defaultString_ != null; } 2534 } 2535 /// <summary>Clears the value of the "default_string" field</summary> 2536 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 2537 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] ClearDefaultString()2538 public void ClearDefaultString() { 2539 defaultString_ = null; 2540 } 2541 2542 /// <summary>Field number for the "default_bytes" field.</summary> 2543 public const int DefaultBytesFieldNumber = 75; 2544 private readonly static pb::ByteString DefaultBytesDefaultValue = pb::ByteString.FromBase64("d29ybGQ="); 2545 2546 private pb::ByteString defaultBytes_; 2547 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 2548 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 2549 public pb::ByteString DefaultBytes { 2550 get { return defaultBytes_ ?? DefaultBytesDefaultValue; } 2551 set { 2552 defaultBytes_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); 2553 } 2554 } 2555 /// <summary>Gets whether the "default_bytes" field is set</summary> 2556 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 2557 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 2558 public bool HasDefaultBytes { 2559 get { return defaultBytes_ != null; } 2560 } 2561 /// <summary>Clears the value of the "default_bytes" field</summary> 2562 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 2563 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] ClearDefaultBytes()2564 public void ClearDefaultBytes() { 2565 defaultBytes_ = null; 2566 } 2567 2568 /// <summary>Field number for the "default_nested_enum" field.</summary> 2569 public const int DefaultNestedEnumFieldNumber = 81; 2570 private readonly static global::Google.Protobuf.TestProtos.Proto2.TestAllTypes.Types.NestedEnum DefaultNestedEnumDefaultValue = global::Google.Protobuf.TestProtos.Proto2.TestAllTypes.Types.NestedEnum.Bar; 2571 2572 private global::Google.Protobuf.TestProtos.Proto2.TestAllTypes.Types.NestedEnum defaultNestedEnum_; 2573 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 2574 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 2575 public global::Google.Protobuf.TestProtos.Proto2.TestAllTypes.Types.NestedEnum DefaultNestedEnum { 2576 get { if ((_hasBits0 & 536870912) != 0) { return defaultNestedEnum_; } else { return DefaultNestedEnumDefaultValue; } } 2577 set { 2578 _hasBits0 |= 536870912; 2579 defaultNestedEnum_ = value; 2580 } 2581 } 2582 /// <summary>Gets whether the "default_nested_enum" field is set</summary> 2583 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 2584 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 2585 public bool HasDefaultNestedEnum { 2586 get { return (_hasBits0 & 536870912) != 0; } 2587 } 2588 /// <summary>Clears the value of the "default_nested_enum" field</summary> 2589 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 2590 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] ClearDefaultNestedEnum()2591 public void ClearDefaultNestedEnum() { 2592 _hasBits0 &= ~536870912; 2593 } 2594 2595 /// <summary>Field number for the "default_foreign_enum" field.</summary> 2596 public const int DefaultForeignEnumFieldNumber = 82; 2597 private readonly static global::Google.Protobuf.TestProtos.Proto2.ForeignEnum DefaultForeignEnumDefaultValue = global::Google.Protobuf.TestProtos.Proto2.ForeignEnum.ForeignBar; 2598 2599 private global::Google.Protobuf.TestProtos.Proto2.ForeignEnum defaultForeignEnum_; 2600 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 2601 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 2602 public global::Google.Protobuf.TestProtos.Proto2.ForeignEnum DefaultForeignEnum { 2603 get { if ((_hasBits0 & 1073741824) != 0) { return defaultForeignEnum_; } else { return DefaultForeignEnumDefaultValue; } } 2604 set { 2605 _hasBits0 |= 1073741824; 2606 defaultForeignEnum_ = value; 2607 } 2608 } 2609 /// <summary>Gets whether the "default_foreign_enum" field is set</summary> 2610 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 2611 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 2612 public bool HasDefaultForeignEnum { 2613 get { return (_hasBits0 & 1073741824) != 0; } 2614 } 2615 /// <summary>Clears the value of the "default_foreign_enum" field</summary> 2616 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 2617 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] ClearDefaultForeignEnum()2618 public void ClearDefaultForeignEnum() { 2619 _hasBits0 &= ~1073741824; 2620 } 2621 2622 /// <summary>Field number for the "default_import_enum" field.</summary> 2623 public const int DefaultImportEnumFieldNumber = 83; 2624 private readonly static global::Google.Protobuf.TestProtos.Proto2.ImportEnum DefaultImportEnumDefaultValue = global::Google.Protobuf.TestProtos.Proto2.ImportEnum.ImportBar; 2625 2626 private global::Google.Protobuf.TestProtos.Proto2.ImportEnum defaultImportEnum_; 2627 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 2628 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 2629 public global::Google.Protobuf.TestProtos.Proto2.ImportEnum DefaultImportEnum { 2630 get { if ((_hasBits0 & -2147483648) != 0) { return defaultImportEnum_; } else { return DefaultImportEnumDefaultValue; } } 2631 set { 2632 _hasBits0 |= -2147483648; 2633 defaultImportEnum_ = value; 2634 } 2635 } 2636 /// <summary>Gets whether the "default_import_enum" field is set</summary> 2637 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 2638 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 2639 public bool HasDefaultImportEnum { 2640 get { return (_hasBits0 & -2147483648) != 0; } 2641 } 2642 /// <summary>Clears the value of the "default_import_enum" field</summary> 2643 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 2644 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] ClearDefaultImportEnum()2645 public void ClearDefaultImportEnum() { 2646 _hasBits0 &= ~-2147483648; 2647 } 2648 2649 /// <summary>Field number for the "default_string_piece" field.</summary> 2650 public const int DefaultStringPieceFieldNumber = 84; 2651 private readonly static string DefaultStringPieceDefaultValue = global::System.Text.Encoding.UTF8.GetString(global::System.Convert.FromBase64String("YWJj"), 0, 3); 2652 2653 private string defaultStringPiece_; 2654 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 2655 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 2656 public string DefaultStringPiece { 2657 get { return defaultStringPiece_ ?? DefaultStringPieceDefaultValue; } 2658 set { 2659 defaultStringPiece_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); 2660 } 2661 } 2662 /// <summary>Gets whether the "default_string_piece" field is set</summary> 2663 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 2664 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 2665 public bool HasDefaultStringPiece { 2666 get { return defaultStringPiece_ != null; } 2667 } 2668 /// <summary>Clears the value of the "default_string_piece" field</summary> 2669 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 2670 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] ClearDefaultStringPiece()2671 public void ClearDefaultStringPiece() { 2672 defaultStringPiece_ = null; 2673 } 2674 2675 /// <summary>Field number for the "default_cord" field.</summary> 2676 public const int DefaultCordFieldNumber = 85; 2677 private readonly static string DefaultCordDefaultValue = global::System.Text.Encoding.UTF8.GetString(global::System.Convert.FromBase64String("MTIz"), 0, 3); 2678 2679 private string defaultCord_; 2680 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 2681 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 2682 public string DefaultCord { 2683 get { return defaultCord_ ?? DefaultCordDefaultValue; } 2684 set { 2685 defaultCord_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); 2686 } 2687 } 2688 /// <summary>Gets whether the "default_cord" field is set</summary> 2689 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 2690 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 2691 public bool HasDefaultCord { 2692 get { return defaultCord_ != null; } 2693 } 2694 /// <summary>Clears the value of the "default_cord" field</summary> 2695 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 2696 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] ClearDefaultCord()2697 public void ClearDefaultCord() { 2698 defaultCord_ = null; 2699 } 2700 2701 /// <summary>Field number for the "oneof_uint32" field.</summary> 2702 public const int OneofUint32FieldNumber = 111; 2703 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 2704 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 2705 public uint OneofUint32 { 2706 get { return HasOneofUint32 ? (uint) oneofField_ : 0; } 2707 set { 2708 oneofField_ = value; 2709 oneofFieldCase_ = OneofFieldOneofCase.OneofUint32; 2710 } 2711 } 2712 /// <summary>Gets whether the "oneof_uint32" field is set</summary> 2713 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 2714 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 2715 public bool HasOneofUint32 { 2716 get { return oneofFieldCase_ == OneofFieldOneofCase.OneofUint32; } 2717 } 2718 /// <summary> Clears the value of the oneof if it's currently set to "oneof_uint32" </summary> 2719 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 2720 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] ClearOneofUint32()2721 public void ClearOneofUint32() { 2722 if (HasOneofUint32) { 2723 ClearOneofField(); 2724 } 2725 } 2726 2727 /// <summary>Field number for the "oneof_nested_message" field.</summary> 2728 public const int OneofNestedMessageFieldNumber = 112; 2729 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 2730 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 2731 public global::Google.Protobuf.TestProtos.Proto2.TestAllTypes.Types.NestedMessage OneofNestedMessage { 2732 get { return oneofFieldCase_ == OneofFieldOneofCase.OneofNestedMessage ? (global::Google.Protobuf.TestProtos.Proto2.TestAllTypes.Types.NestedMessage) oneofField_ : null; } 2733 set { 2734 oneofField_ = value; 2735 oneofFieldCase_ = value == null ? OneofFieldOneofCase.None : OneofFieldOneofCase.OneofNestedMessage; 2736 } 2737 } 2738 2739 /// <summary>Field number for the "oneof_string" field.</summary> 2740 public const int OneofStringFieldNumber = 113; 2741 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 2742 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 2743 public string OneofString { 2744 get { return HasOneofString ? (string) oneofField_ : ""; } 2745 set { 2746 oneofField_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); 2747 oneofFieldCase_ = OneofFieldOneofCase.OneofString; 2748 } 2749 } 2750 /// <summary>Gets whether the "oneof_string" field is set</summary> 2751 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 2752 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 2753 public bool HasOneofString { 2754 get { return oneofFieldCase_ == OneofFieldOneofCase.OneofString; } 2755 } 2756 /// <summary> Clears the value of the oneof if it's currently set to "oneof_string" </summary> 2757 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 2758 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] ClearOneofString()2759 public void ClearOneofString() { 2760 if (HasOneofString) { 2761 ClearOneofField(); 2762 } 2763 } 2764 2765 /// <summary>Field number for the "oneof_bytes" field.</summary> 2766 public const int OneofBytesFieldNumber = 114; 2767 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 2768 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 2769 public pb::ByteString OneofBytes { 2770 get { return HasOneofBytes ? (pb::ByteString) oneofField_ : pb::ByteString.Empty; } 2771 set { 2772 oneofField_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); 2773 oneofFieldCase_ = OneofFieldOneofCase.OneofBytes; 2774 } 2775 } 2776 /// <summary>Gets whether the "oneof_bytes" field is set</summary> 2777 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 2778 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 2779 public bool HasOneofBytes { 2780 get { return oneofFieldCase_ == OneofFieldOneofCase.OneofBytes; } 2781 } 2782 /// <summary> Clears the value of the oneof if it's currently set to "oneof_bytes" </summary> 2783 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 2784 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] ClearOneofBytes()2785 public void ClearOneofBytes() { 2786 if (HasOneofBytes) { 2787 ClearOneofField(); 2788 } 2789 } 2790 2791 private object oneofField_; 2792 /// <summary>Enum of possible cases for the "oneof_field" oneof.</summary> 2793 public enum OneofFieldOneofCase { 2794 None = 0, 2795 OneofUint32 = 111, 2796 OneofNestedMessage = 112, 2797 OneofString = 113, 2798 OneofBytes = 114, 2799 } 2800 private OneofFieldOneofCase oneofFieldCase_ = OneofFieldOneofCase.None; 2801 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 2802 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 2803 public OneofFieldOneofCase OneofFieldCase { 2804 get { return oneofFieldCase_; } 2805 } 2806 2807 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 2808 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] ClearOneofField()2809 public void ClearOneofField() { 2810 oneofFieldCase_ = OneofFieldOneofCase.None; 2811 oneofField_ = null; 2812 } 2813 2814 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 2815 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] Equals(object other)2816 public override bool Equals(object other) { 2817 return Equals(other as TestAllTypes); 2818 } 2819 2820 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 2821 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] Equals(TestAllTypes other)2822 public bool Equals(TestAllTypes other) { 2823 if (ReferenceEquals(other, null)) { 2824 return false; 2825 } 2826 if (ReferenceEquals(other, this)) { 2827 return true; 2828 } 2829 if (OptionalInt32 != other.OptionalInt32) return false; 2830 if (OptionalInt64 != other.OptionalInt64) return false; 2831 if (OptionalUint32 != other.OptionalUint32) return false; 2832 if (OptionalUint64 != other.OptionalUint64) return false; 2833 if (OptionalSint32 != other.OptionalSint32) return false; 2834 if (OptionalSint64 != other.OptionalSint64) return false; 2835 if (OptionalFixed32 != other.OptionalFixed32) return false; 2836 if (OptionalFixed64 != other.OptionalFixed64) return false; 2837 if (OptionalSfixed32 != other.OptionalSfixed32) return false; 2838 if (OptionalSfixed64 != other.OptionalSfixed64) return false; 2839 if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(OptionalFloat, other.OptionalFloat)) return false; 2840 if (!pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.Equals(OptionalDouble, other.OptionalDouble)) return false; 2841 if (OptionalBool != other.OptionalBool) return false; 2842 if (OptionalString != other.OptionalString) return false; 2843 if (OptionalBytes != other.OptionalBytes) return false; 2844 if (!object.Equals(OptionalGroup, other.OptionalGroup)) return false; 2845 if (!object.Equals(OptionalNestedMessage, other.OptionalNestedMessage)) return false; 2846 if (!object.Equals(OptionalForeignMessage, other.OptionalForeignMessage)) return false; 2847 if (!object.Equals(OptionalImportMessage, other.OptionalImportMessage)) return false; 2848 if (OptionalNestedEnum != other.OptionalNestedEnum) return false; 2849 if (OptionalForeignEnum != other.OptionalForeignEnum) return false; 2850 if (OptionalImportEnum != other.OptionalImportEnum) return false; 2851 if (OptionalStringPiece != other.OptionalStringPiece) return false; 2852 if (OptionalCord != other.OptionalCord) return false; 2853 if (!object.Equals(OptionalPublicImportMessage, other.OptionalPublicImportMessage)) return false; 2854 if (!object.Equals(OptionalLazyMessage, other.OptionalLazyMessage)) return false; 2855 if(!repeatedInt32_.Equals(other.repeatedInt32_)) return false; 2856 if(!repeatedInt64_.Equals(other.repeatedInt64_)) return false; 2857 if(!repeatedUint32_.Equals(other.repeatedUint32_)) return false; 2858 if(!repeatedUint64_.Equals(other.repeatedUint64_)) return false; 2859 if(!repeatedSint32_.Equals(other.repeatedSint32_)) return false; 2860 if(!repeatedSint64_.Equals(other.repeatedSint64_)) return false; 2861 if(!repeatedFixed32_.Equals(other.repeatedFixed32_)) return false; 2862 if(!repeatedFixed64_.Equals(other.repeatedFixed64_)) return false; 2863 if(!repeatedSfixed32_.Equals(other.repeatedSfixed32_)) return false; 2864 if(!repeatedSfixed64_.Equals(other.repeatedSfixed64_)) return false; 2865 if(!repeatedFloat_.Equals(other.repeatedFloat_)) return false; 2866 if(!repeatedDouble_.Equals(other.repeatedDouble_)) return false; 2867 if(!repeatedBool_.Equals(other.repeatedBool_)) return false; 2868 if(!repeatedString_.Equals(other.repeatedString_)) return false; 2869 if(!repeatedBytes_.Equals(other.repeatedBytes_)) return false; 2870 if(!repeatedGroup_.Equals(other.repeatedGroup_)) return false; 2871 if(!repeatedNestedMessage_.Equals(other.repeatedNestedMessage_)) return false; 2872 if(!repeatedForeignMessage_.Equals(other.repeatedForeignMessage_)) return false; 2873 if(!repeatedImportMessage_.Equals(other.repeatedImportMessage_)) return false; 2874 if(!repeatedNestedEnum_.Equals(other.repeatedNestedEnum_)) return false; 2875 if(!repeatedForeignEnum_.Equals(other.repeatedForeignEnum_)) return false; 2876 if(!repeatedImportEnum_.Equals(other.repeatedImportEnum_)) return false; 2877 if(!repeatedStringPiece_.Equals(other.repeatedStringPiece_)) return false; 2878 if(!repeatedCord_.Equals(other.repeatedCord_)) return false; 2879 if(!repeatedLazyMessage_.Equals(other.repeatedLazyMessage_)) return false; 2880 if (DefaultInt32 != other.DefaultInt32) return false; 2881 if (DefaultInt64 != other.DefaultInt64) return false; 2882 if (DefaultUint32 != other.DefaultUint32) return false; 2883 if (DefaultUint64 != other.DefaultUint64) return false; 2884 if (DefaultSint32 != other.DefaultSint32) return false; 2885 if (DefaultSint64 != other.DefaultSint64) return false; 2886 if (DefaultFixed32 != other.DefaultFixed32) return false; 2887 if (DefaultFixed64 != other.DefaultFixed64) return false; 2888 if (DefaultSfixed32 != other.DefaultSfixed32) return false; 2889 if (DefaultSfixed64 != other.DefaultSfixed64) return false; 2890 if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(DefaultFloat, other.DefaultFloat)) return false; 2891 if (!pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.Equals(DefaultDouble, other.DefaultDouble)) return false; 2892 if (DefaultBool != other.DefaultBool) return false; 2893 if (DefaultString != other.DefaultString) return false; 2894 if (DefaultBytes != other.DefaultBytes) return false; 2895 if (DefaultNestedEnum != other.DefaultNestedEnum) return false; 2896 if (DefaultForeignEnum != other.DefaultForeignEnum) return false; 2897 if (DefaultImportEnum != other.DefaultImportEnum) return false; 2898 if (DefaultStringPiece != other.DefaultStringPiece) return false; 2899 if (DefaultCord != other.DefaultCord) return false; 2900 if (OneofUint32 != other.OneofUint32) return false; 2901 if (!object.Equals(OneofNestedMessage, other.OneofNestedMessage)) return false; 2902 if (OneofString != other.OneofString) return false; 2903 if (OneofBytes != other.OneofBytes) return false; 2904 if (OneofFieldCase != other.OneofFieldCase) return false; 2905 return Equals(_unknownFields, other._unknownFields); 2906 } 2907 2908 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 2909 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] GetHashCode()2910 public override int GetHashCode() { 2911 int hash = 1; 2912 if (HasOptionalInt32) hash ^= OptionalInt32.GetHashCode(); 2913 if (HasOptionalInt64) hash ^= OptionalInt64.GetHashCode(); 2914 if (HasOptionalUint32) hash ^= OptionalUint32.GetHashCode(); 2915 if (HasOptionalUint64) hash ^= OptionalUint64.GetHashCode(); 2916 if (HasOptionalSint32) hash ^= OptionalSint32.GetHashCode(); 2917 if (HasOptionalSint64) hash ^= OptionalSint64.GetHashCode(); 2918 if (HasOptionalFixed32) hash ^= OptionalFixed32.GetHashCode(); 2919 if (HasOptionalFixed64) hash ^= OptionalFixed64.GetHashCode(); 2920 if (HasOptionalSfixed32) hash ^= OptionalSfixed32.GetHashCode(); 2921 if (HasOptionalSfixed64) hash ^= OptionalSfixed64.GetHashCode(); 2922 if (HasOptionalFloat) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(OptionalFloat); 2923 if (HasOptionalDouble) hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(OptionalDouble); 2924 if (HasOptionalBool) hash ^= OptionalBool.GetHashCode(); 2925 if (HasOptionalString) hash ^= OptionalString.GetHashCode(); 2926 if (HasOptionalBytes) hash ^= OptionalBytes.GetHashCode(); 2927 if (HasOptionalGroup) hash ^= OptionalGroup.GetHashCode(); 2928 if (optionalNestedMessage_ != null) hash ^= OptionalNestedMessage.GetHashCode(); 2929 if (optionalForeignMessage_ != null) hash ^= OptionalForeignMessage.GetHashCode(); 2930 if (optionalImportMessage_ != null) hash ^= OptionalImportMessage.GetHashCode(); 2931 if (HasOptionalNestedEnum) hash ^= OptionalNestedEnum.GetHashCode(); 2932 if (HasOptionalForeignEnum) hash ^= OptionalForeignEnum.GetHashCode(); 2933 if (HasOptionalImportEnum) hash ^= OptionalImportEnum.GetHashCode(); 2934 if (HasOptionalStringPiece) hash ^= OptionalStringPiece.GetHashCode(); 2935 if (HasOptionalCord) hash ^= OptionalCord.GetHashCode(); 2936 if (optionalPublicImportMessage_ != null) hash ^= OptionalPublicImportMessage.GetHashCode(); 2937 if (optionalLazyMessage_ != null) hash ^= OptionalLazyMessage.GetHashCode(); 2938 hash ^= repeatedInt32_.GetHashCode(); 2939 hash ^= repeatedInt64_.GetHashCode(); 2940 hash ^= repeatedUint32_.GetHashCode(); 2941 hash ^= repeatedUint64_.GetHashCode(); 2942 hash ^= repeatedSint32_.GetHashCode(); 2943 hash ^= repeatedSint64_.GetHashCode(); 2944 hash ^= repeatedFixed32_.GetHashCode(); 2945 hash ^= repeatedFixed64_.GetHashCode(); 2946 hash ^= repeatedSfixed32_.GetHashCode(); 2947 hash ^= repeatedSfixed64_.GetHashCode(); 2948 hash ^= repeatedFloat_.GetHashCode(); 2949 hash ^= repeatedDouble_.GetHashCode(); 2950 hash ^= repeatedBool_.GetHashCode(); 2951 hash ^= repeatedString_.GetHashCode(); 2952 hash ^= repeatedBytes_.GetHashCode(); 2953 hash ^= repeatedGroup_.GetHashCode(); 2954 hash ^= repeatedNestedMessage_.GetHashCode(); 2955 hash ^= repeatedForeignMessage_.GetHashCode(); 2956 hash ^= repeatedImportMessage_.GetHashCode(); 2957 hash ^= repeatedNestedEnum_.GetHashCode(); 2958 hash ^= repeatedForeignEnum_.GetHashCode(); 2959 hash ^= repeatedImportEnum_.GetHashCode(); 2960 hash ^= repeatedStringPiece_.GetHashCode(); 2961 hash ^= repeatedCord_.GetHashCode(); 2962 hash ^= repeatedLazyMessage_.GetHashCode(); 2963 if (HasDefaultInt32) hash ^= DefaultInt32.GetHashCode(); 2964 if (HasDefaultInt64) hash ^= DefaultInt64.GetHashCode(); 2965 if (HasDefaultUint32) hash ^= DefaultUint32.GetHashCode(); 2966 if (HasDefaultUint64) hash ^= DefaultUint64.GetHashCode(); 2967 if (HasDefaultSint32) hash ^= DefaultSint32.GetHashCode(); 2968 if (HasDefaultSint64) hash ^= DefaultSint64.GetHashCode(); 2969 if (HasDefaultFixed32) hash ^= DefaultFixed32.GetHashCode(); 2970 if (HasDefaultFixed64) hash ^= DefaultFixed64.GetHashCode(); 2971 if (HasDefaultSfixed32) hash ^= DefaultSfixed32.GetHashCode(); 2972 if (HasDefaultSfixed64) hash ^= DefaultSfixed64.GetHashCode(); 2973 if (HasDefaultFloat) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(DefaultFloat); 2974 if (HasDefaultDouble) hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(DefaultDouble); 2975 if (HasDefaultBool) hash ^= DefaultBool.GetHashCode(); 2976 if (HasDefaultString) hash ^= DefaultString.GetHashCode(); 2977 if (HasDefaultBytes) hash ^= DefaultBytes.GetHashCode(); 2978 if (HasDefaultNestedEnum) hash ^= DefaultNestedEnum.GetHashCode(); 2979 if (HasDefaultForeignEnum) hash ^= DefaultForeignEnum.GetHashCode(); 2980 if (HasDefaultImportEnum) hash ^= DefaultImportEnum.GetHashCode(); 2981 if (HasDefaultStringPiece) hash ^= DefaultStringPiece.GetHashCode(); 2982 if (HasDefaultCord) hash ^= DefaultCord.GetHashCode(); 2983 if (HasOneofUint32) hash ^= OneofUint32.GetHashCode(); 2984 if (oneofFieldCase_ == OneofFieldOneofCase.OneofNestedMessage) hash ^= OneofNestedMessage.GetHashCode(); 2985 if (HasOneofString) hash ^= OneofString.GetHashCode(); 2986 if (HasOneofBytes) hash ^= OneofBytes.GetHashCode(); 2987 hash ^= (int) oneofFieldCase_; 2988 if (_unknownFields != null) { 2989 hash ^= _unknownFields.GetHashCode(); 2990 } 2991 return hash; 2992 } 2993 2994 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 2995 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] ToString()2996 public override string ToString() { 2997 return pb::JsonFormatter.ToDiagnosticString(this); 2998 } 2999 3000 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 3001 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] WriteTo(pb::CodedOutputStream output)3002 public void WriteTo(pb::CodedOutputStream output) { 3003 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 3004 output.WriteRawMessage(this); 3005 #else 3006 if (HasOptionalInt32) { 3007 output.WriteRawTag(8); 3008 output.WriteInt32(OptionalInt32); 3009 } 3010 if (HasOptionalInt64) { 3011 output.WriteRawTag(16); 3012 output.WriteInt64(OptionalInt64); 3013 } 3014 if (HasOptionalUint32) { 3015 output.WriteRawTag(24); 3016 output.WriteUInt32(OptionalUint32); 3017 } 3018 if (HasOptionalUint64) { 3019 output.WriteRawTag(32); 3020 output.WriteUInt64(OptionalUint64); 3021 } 3022 if (HasOptionalSint32) { 3023 output.WriteRawTag(40); 3024 output.WriteSInt32(OptionalSint32); 3025 } 3026 if (HasOptionalSint64) { 3027 output.WriteRawTag(48); 3028 output.WriteSInt64(OptionalSint64); 3029 } 3030 if (HasOptionalFixed32) { 3031 output.WriteRawTag(61); 3032 output.WriteFixed32(OptionalFixed32); 3033 } 3034 if (HasOptionalFixed64) { 3035 output.WriteRawTag(65); 3036 output.WriteFixed64(OptionalFixed64); 3037 } 3038 if (HasOptionalSfixed32) { 3039 output.WriteRawTag(77); 3040 output.WriteSFixed32(OptionalSfixed32); 3041 } 3042 if (HasOptionalSfixed64) { 3043 output.WriteRawTag(81); 3044 output.WriteSFixed64(OptionalSfixed64); 3045 } 3046 if (HasOptionalFloat) { 3047 output.WriteRawTag(93); 3048 output.WriteFloat(OptionalFloat); 3049 } 3050 if (HasOptionalDouble) { 3051 output.WriteRawTag(97); 3052 output.WriteDouble(OptionalDouble); 3053 } 3054 if (HasOptionalBool) { 3055 output.WriteRawTag(104); 3056 output.WriteBool(OptionalBool); 3057 } 3058 if (HasOptionalString) { 3059 output.WriteRawTag(114); 3060 output.WriteString(OptionalString); 3061 } 3062 if (HasOptionalBytes) { 3063 output.WriteRawTag(122); 3064 output.WriteBytes(OptionalBytes); 3065 } 3066 if (HasOptionalGroup) { 3067 output.WriteRawTag(131, 1); 3068 output.WriteGroup(OptionalGroup); 3069 output.WriteRawTag(132, 1); 3070 } 3071 if (optionalNestedMessage_ != null) { 3072 output.WriteRawTag(146, 1); 3073 output.WriteMessage(OptionalNestedMessage); 3074 } 3075 if (optionalForeignMessage_ != null) { 3076 output.WriteRawTag(154, 1); 3077 output.WriteMessage(OptionalForeignMessage); 3078 } 3079 if (optionalImportMessage_ != null) { 3080 output.WriteRawTag(162, 1); 3081 output.WriteMessage(OptionalImportMessage); 3082 } 3083 if (HasOptionalNestedEnum) { 3084 output.WriteRawTag(168, 1); 3085 output.WriteEnum((int) OptionalNestedEnum); 3086 } 3087 if (HasOptionalForeignEnum) { 3088 output.WriteRawTag(176, 1); 3089 output.WriteEnum((int) OptionalForeignEnum); 3090 } 3091 if (HasOptionalImportEnum) { 3092 output.WriteRawTag(184, 1); 3093 output.WriteEnum((int) OptionalImportEnum); 3094 } 3095 if (HasOptionalStringPiece) { 3096 output.WriteRawTag(194, 1); 3097 output.WriteString(OptionalStringPiece); 3098 } 3099 if (HasOptionalCord) { 3100 output.WriteRawTag(202, 1); 3101 output.WriteString(OptionalCord); 3102 } 3103 if (optionalPublicImportMessage_ != null) { 3104 output.WriteRawTag(210, 1); 3105 output.WriteMessage(OptionalPublicImportMessage); 3106 } 3107 if (optionalLazyMessage_ != null) { 3108 output.WriteRawTag(218, 1); 3109 output.WriteMessage(OptionalLazyMessage); 3110 } 3111 repeatedInt32_.WriteTo(output, _repeated_repeatedInt32_codec); 3112 repeatedInt64_.WriteTo(output, _repeated_repeatedInt64_codec); 3113 repeatedUint32_.WriteTo(output, _repeated_repeatedUint32_codec); 3114 repeatedUint64_.WriteTo(output, _repeated_repeatedUint64_codec); 3115 repeatedSint32_.WriteTo(output, _repeated_repeatedSint32_codec); 3116 repeatedSint64_.WriteTo(output, _repeated_repeatedSint64_codec); 3117 repeatedFixed32_.WriteTo(output, _repeated_repeatedFixed32_codec); 3118 repeatedFixed64_.WriteTo(output, _repeated_repeatedFixed64_codec); 3119 repeatedSfixed32_.WriteTo(output, _repeated_repeatedSfixed32_codec); 3120 repeatedSfixed64_.WriteTo(output, _repeated_repeatedSfixed64_codec); 3121 repeatedFloat_.WriteTo(output, _repeated_repeatedFloat_codec); 3122 repeatedDouble_.WriteTo(output, _repeated_repeatedDouble_codec); 3123 repeatedBool_.WriteTo(output, _repeated_repeatedBool_codec); 3124 repeatedString_.WriteTo(output, _repeated_repeatedString_codec); 3125 repeatedBytes_.WriteTo(output, _repeated_repeatedBytes_codec); 3126 repeatedGroup_.WriteTo(output, _repeated_repeatedGroup_codec); 3127 repeatedNestedMessage_.WriteTo(output, _repeated_repeatedNestedMessage_codec); 3128 repeatedForeignMessage_.WriteTo(output, _repeated_repeatedForeignMessage_codec); 3129 repeatedImportMessage_.WriteTo(output, _repeated_repeatedImportMessage_codec); 3130 repeatedNestedEnum_.WriteTo(output, _repeated_repeatedNestedEnum_codec); 3131 repeatedForeignEnum_.WriteTo(output, _repeated_repeatedForeignEnum_codec); 3132 repeatedImportEnum_.WriteTo(output, _repeated_repeatedImportEnum_codec); 3133 repeatedStringPiece_.WriteTo(output, _repeated_repeatedStringPiece_codec); 3134 repeatedCord_.WriteTo(output, _repeated_repeatedCord_codec); 3135 repeatedLazyMessage_.WriteTo(output, _repeated_repeatedLazyMessage_codec); 3136 if (HasDefaultInt32) { 3137 output.WriteRawTag(232, 3); 3138 output.WriteInt32(DefaultInt32); 3139 } 3140 if (HasDefaultInt64) { 3141 output.WriteRawTag(240, 3); 3142 output.WriteInt64(DefaultInt64); 3143 } 3144 if (HasDefaultUint32) { 3145 output.WriteRawTag(248, 3); 3146 output.WriteUInt32(DefaultUint32); 3147 } 3148 if (HasDefaultUint64) { 3149 output.WriteRawTag(128, 4); 3150 output.WriteUInt64(DefaultUint64); 3151 } 3152 if (HasDefaultSint32) { 3153 output.WriteRawTag(136, 4); 3154 output.WriteSInt32(DefaultSint32); 3155 } 3156 if (HasDefaultSint64) { 3157 output.WriteRawTag(144, 4); 3158 output.WriteSInt64(DefaultSint64); 3159 } 3160 if (HasDefaultFixed32) { 3161 output.WriteRawTag(157, 4); 3162 output.WriteFixed32(DefaultFixed32); 3163 } 3164 if (HasDefaultFixed64) { 3165 output.WriteRawTag(161, 4); 3166 output.WriteFixed64(DefaultFixed64); 3167 } 3168 if (HasDefaultSfixed32) { 3169 output.WriteRawTag(173, 4); 3170 output.WriteSFixed32(DefaultSfixed32); 3171 } 3172 if (HasDefaultSfixed64) { 3173 output.WriteRawTag(177, 4); 3174 output.WriteSFixed64(DefaultSfixed64); 3175 } 3176 if (HasDefaultFloat) { 3177 output.WriteRawTag(189, 4); 3178 output.WriteFloat(DefaultFloat); 3179 } 3180 if (HasDefaultDouble) { 3181 output.WriteRawTag(193, 4); 3182 output.WriteDouble(DefaultDouble); 3183 } 3184 if (HasDefaultBool) { 3185 output.WriteRawTag(200, 4); 3186 output.WriteBool(DefaultBool); 3187 } 3188 if (HasDefaultString) { 3189 output.WriteRawTag(210, 4); 3190 output.WriteString(DefaultString); 3191 } 3192 if (HasDefaultBytes) { 3193 output.WriteRawTag(218, 4); 3194 output.WriteBytes(DefaultBytes); 3195 } 3196 if (HasDefaultNestedEnum) { 3197 output.WriteRawTag(136, 5); 3198 output.WriteEnum((int) DefaultNestedEnum); 3199 } 3200 if (HasDefaultForeignEnum) { 3201 output.WriteRawTag(144, 5); 3202 output.WriteEnum((int) DefaultForeignEnum); 3203 } 3204 if (HasDefaultImportEnum) { 3205 output.WriteRawTag(152, 5); 3206 output.WriteEnum((int) DefaultImportEnum); 3207 } 3208 if (HasDefaultStringPiece) { 3209 output.WriteRawTag(162, 5); 3210 output.WriteString(DefaultStringPiece); 3211 } 3212 if (HasDefaultCord) { 3213 output.WriteRawTag(170, 5); 3214 output.WriteString(DefaultCord); 3215 } 3216 if (HasOneofUint32) { 3217 output.WriteRawTag(248, 6); 3218 output.WriteUInt32(OneofUint32); 3219 } 3220 if (oneofFieldCase_ == OneofFieldOneofCase.OneofNestedMessage) { 3221 output.WriteRawTag(130, 7); 3222 output.WriteMessage(OneofNestedMessage); 3223 } 3224 if (HasOneofString) { 3225 output.WriteRawTag(138, 7); 3226 output.WriteString(OneofString); 3227 } 3228 if (HasOneofBytes) { 3229 output.WriteRawTag(146, 7); 3230 output.WriteBytes(OneofBytes); 3231 } 3232 if (_unknownFields != null) { 3233 _unknownFields.WriteTo(output); 3234 } 3235 #endif 3236 } 3237 3238 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 3239 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 3240 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] IBufferMessage.InternalWriteTo(ref pb::WriteContext output)3241 void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { 3242 if (HasOptionalInt32) { 3243 output.WriteRawTag(8); 3244 output.WriteInt32(OptionalInt32); 3245 } 3246 if (HasOptionalInt64) { 3247 output.WriteRawTag(16); 3248 output.WriteInt64(OptionalInt64); 3249 } 3250 if (HasOptionalUint32) { 3251 output.WriteRawTag(24); 3252 output.WriteUInt32(OptionalUint32); 3253 } 3254 if (HasOptionalUint64) { 3255 output.WriteRawTag(32); 3256 output.WriteUInt64(OptionalUint64); 3257 } 3258 if (HasOptionalSint32) { 3259 output.WriteRawTag(40); 3260 output.WriteSInt32(OptionalSint32); 3261 } 3262 if (HasOptionalSint64) { 3263 output.WriteRawTag(48); 3264 output.WriteSInt64(OptionalSint64); 3265 } 3266 if (HasOptionalFixed32) { 3267 output.WriteRawTag(61); 3268 output.WriteFixed32(OptionalFixed32); 3269 } 3270 if (HasOptionalFixed64) { 3271 output.WriteRawTag(65); 3272 output.WriteFixed64(OptionalFixed64); 3273 } 3274 if (HasOptionalSfixed32) { 3275 output.WriteRawTag(77); 3276 output.WriteSFixed32(OptionalSfixed32); 3277 } 3278 if (HasOptionalSfixed64) { 3279 output.WriteRawTag(81); 3280 output.WriteSFixed64(OptionalSfixed64); 3281 } 3282 if (HasOptionalFloat) { 3283 output.WriteRawTag(93); 3284 output.WriteFloat(OptionalFloat); 3285 } 3286 if (HasOptionalDouble) { 3287 output.WriteRawTag(97); 3288 output.WriteDouble(OptionalDouble); 3289 } 3290 if (HasOptionalBool) { 3291 output.WriteRawTag(104); 3292 output.WriteBool(OptionalBool); 3293 } 3294 if (HasOptionalString) { 3295 output.WriteRawTag(114); 3296 output.WriteString(OptionalString); 3297 } 3298 if (HasOptionalBytes) { 3299 output.WriteRawTag(122); 3300 output.WriteBytes(OptionalBytes); 3301 } 3302 if (HasOptionalGroup) { 3303 output.WriteRawTag(131, 1); 3304 output.WriteGroup(OptionalGroup); 3305 output.WriteRawTag(132, 1); 3306 } 3307 if (optionalNestedMessage_ != null) { 3308 output.WriteRawTag(146, 1); 3309 output.WriteMessage(OptionalNestedMessage); 3310 } 3311 if (optionalForeignMessage_ != null) { 3312 output.WriteRawTag(154, 1); 3313 output.WriteMessage(OptionalForeignMessage); 3314 } 3315 if (optionalImportMessage_ != null) { 3316 output.WriteRawTag(162, 1); 3317 output.WriteMessage(OptionalImportMessage); 3318 } 3319 if (HasOptionalNestedEnum) { 3320 output.WriteRawTag(168, 1); 3321 output.WriteEnum((int) OptionalNestedEnum); 3322 } 3323 if (HasOptionalForeignEnum) { 3324 output.WriteRawTag(176, 1); 3325 output.WriteEnum((int) OptionalForeignEnum); 3326 } 3327 if (HasOptionalImportEnum) { 3328 output.WriteRawTag(184, 1); 3329 output.WriteEnum((int) OptionalImportEnum); 3330 } 3331 if (HasOptionalStringPiece) { 3332 output.WriteRawTag(194, 1); 3333 output.WriteString(OptionalStringPiece); 3334 } 3335 if (HasOptionalCord) { 3336 output.WriteRawTag(202, 1); 3337 output.WriteString(OptionalCord); 3338 } 3339 if (optionalPublicImportMessage_ != null) { 3340 output.WriteRawTag(210, 1); 3341 output.WriteMessage(OptionalPublicImportMessage); 3342 } 3343 if (optionalLazyMessage_ != null) { 3344 output.WriteRawTag(218, 1); 3345 output.WriteMessage(OptionalLazyMessage); 3346 } 3347 repeatedInt32_.WriteTo(ref output, _repeated_repeatedInt32_codec); 3348 repeatedInt64_.WriteTo(ref output, _repeated_repeatedInt64_codec); 3349 repeatedUint32_.WriteTo(ref output, _repeated_repeatedUint32_codec); 3350 repeatedUint64_.WriteTo(ref output, _repeated_repeatedUint64_codec); 3351 repeatedSint32_.WriteTo(ref output, _repeated_repeatedSint32_codec); 3352 repeatedSint64_.WriteTo(ref output, _repeated_repeatedSint64_codec); 3353 repeatedFixed32_.WriteTo(ref output, _repeated_repeatedFixed32_codec); 3354 repeatedFixed64_.WriteTo(ref output, _repeated_repeatedFixed64_codec); 3355 repeatedSfixed32_.WriteTo(ref output, _repeated_repeatedSfixed32_codec); 3356 repeatedSfixed64_.WriteTo(ref output, _repeated_repeatedSfixed64_codec); 3357 repeatedFloat_.WriteTo(ref output, _repeated_repeatedFloat_codec); 3358 repeatedDouble_.WriteTo(ref output, _repeated_repeatedDouble_codec); 3359 repeatedBool_.WriteTo(ref output, _repeated_repeatedBool_codec); 3360 repeatedString_.WriteTo(ref output, _repeated_repeatedString_codec); 3361 repeatedBytes_.WriteTo(ref output, _repeated_repeatedBytes_codec); 3362 repeatedGroup_.WriteTo(ref output, _repeated_repeatedGroup_codec); 3363 repeatedNestedMessage_.WriteTo(ref output, _repeated_repeatedNestedMessage_codec); 3364 repeatedForeignMessage_.WriteTo(ref output, _repeated_repeatedForeignMessage_codec); 3365 repeatedImportMessage_.WriteTo(ref output, _repeated_repeatedImportMessage_codec); 3366 repeatedNestedEnum_.WriteTo(ref output, _repeated_repeatedNestedEnum_codec); 3367 repeatedForeignEnum_.WriteTo(ref output, _repeated_repeatedForeignEnum_codec); 3368 repeatedImportEnum_.WriteTo(ref output, _repeated_repeatedImportEnum_codec); 3369 repeatedStringPiece_.WriteTo(ref output, _repeated_repeatedStringPiece_codec); 3370 repeatedCord_.WriteTo(ref output, _repeated_repeatedCord_codec); 3371 repeatedLazyMessage_.WriteTo(ref output, _repeated_repeatedLazyMessage_codec); 3372 if (HasDefaultInt32) { 3373 output.WriteRawTag(232, 3); 3374 output.WriteInt32(DefaultInt32); 3375 } 3376 if (HasDefaultInt64) { 3377 output.WriteRawTag(240, 3); 3378 output.WriteInt64(DefaultInt64); 3379 } 3380 if (HasDefaultUint32) { 3381 output.WriteRawTag(248, 3); 3382 output.WriteUInt32(DefaultUint32); 3383 } 3384 if (HasDefaultUint64) { 3385 output.WriteRawTag(128, 4); 3386 output.WriteUInt64(DefaultUint64); 3387 } 3388 if (HasDefaultSint32) { 3389 output.WriteRawTag(136, 4); 3390 output.WriteSInt32(DefaultSint32); 3391 } 3392 if (HasDefaultSint64) { 3393 output.WriteRawTag(144, 4); 3394 output.WriteSInt64(DefaultSint64); 3395 } 3396 if (HasDefaultFixed32) { 3397 output.WriteRawTag(157, 4); 3398 output.WriteFixed32(DefaultFixed32); 3399 } 3400 if (HasDefaultFixed64) { 3401 output.WriteRawTag(161, 4); 3402 output.WriteFixed64(DefaultFixed64); 3403 } 3404 if (HasDefaultSfixed32) { 3405 output.WriteRawTag(173, 4); 3406 output.WriteSFixed32(DefaultSfixed32); 3407 } 3408 if (HasDefaultSfixed64) { 3409 output.WriteRawTag(177, 4); 3410 output.WriteSFixed64(DefaultSfixed64); 3411 } 3412 if (HasDefaultFloat) { 3413 output.WriteRawTag(189, 4); 3414 output.WriteFloat(DefaultFloat); 3415 } 3416 if (HasDefaultDouble) { 3417 output.WriteRawTag(193, 4); 3418 output.WriteDouble(DefaultDouble); 3419 } 3420 if (HasDefaultBool) { 3421 output.WriteRawTag(200, 4); 3422 output.WriteBool(DefaultBool); 3423 } 3424 if (HasDefaultString) { 3425 output.WriteRawTag(210, 4); 3426 output.WriteString(DefaultString); 3427 } 3428 if (HasDefaultBytes) { 3429 output.WriteRawTag(218, 4); 3430 output.WriteBytes(DefaultBytes); 3431 } 3432 if (HasDefaultNestedEnum) { 3433 output.WriteRawTag(136, 5); 3434 output.WriteEnum((int) DefaultNestedEnum); 3435 } 3436 if (HasDefaultForeignEnum) { 3437 output.WriteRawTag(144, 5); 3438 output.WriteEnum((int) DefaultForeignEnum); 3439 } 3440 if (HasDefaultImportEnum) { 3441 output.WriteRawTag(152, 5); 3442 output.WriteEnum((int) DefaultImportEnum); 3443 } 3444 if (HasDefaultStringPiece) { 3445 output.WriteRawTag(162, 5); 3446 output.WriteString(DefaultStringPiece); 3447 } 3448 if (HasDefaultCord) { 3449 output.WriteRawTag(170, 5); 3450 output.WriteString(DefaultCord); 3451 } 3452 if (HasOneofUint32) { 3453 output.WriteRawTag(248, 6); 3454 output.WriteUInt32(OneofUint32); 3455 } 3456 if (oneofFieldCase_ == OneofFieldOneofCase.OneofNestedMessage) { 3457 output.WriteRawTag(130, 7); 3458 output.WriteMessage(OneofNestedMessage); 3459 } 3460 if (HasOneofString) { 3461 output.WriteRawTag(138, 7); 3462 output.WriteString(OneofString); 3463 } 3464 if (HasOneofBytes) { 3465 output.WriteRawTag(146, 7); 3466 output.WriteBytes(OneofBytes); 3467 } 3468 if (_unknownFields != null) { 3469 _unknownFields.WriteTo(ref output); 3470 } 3471 } 3472 #endif 3473 3474 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 3475 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] CalculateSize()3476 public int CalculateSize() { 3477 int size = 0; 3478 if (HasOptionalInt32) { 3479 size += 1 + pb::CodedOutputStream.ComputeInt32Size(OptionalInt32); 3480 } 3481 if (HasOptionalInt64) { 3482 size += 1 + pb::CodedOutputStream.ComputeInt64Size(OptionalInt64); 3483 } 3484 if (HasOptionalUint32) { 3485 size += 1 + pb::CodedOutputStream.ComputeUInt32Size(OptionalUint32); 3486 } 3487 if (HasOptionalUint64) { 3488 size += 1 + pb::CodedOutputStream.ComputeUInt64Size(OptionalUint64); 3489 } 3490 if (HasOptionalSint32) { 3491 size += 1 + pb::CodedOutputStream.ComputeSInt32Size(OptionalSint32); 3492 } 3493 if (HasOptionalSint64) { 3494 size += 1 + pb::CodedOutputStream.ComputeSInt64Size(OptionalSint64); 3495 } 3496 if (HasOptionalFixed32) { 3497 size += 1 + 4; 3498 } 3499 if (HasOptionalFixed64) { 3500 size += 1 + 8; 3501 } 3502 if (HasOptionalSfixed32) { 3503 size += 1 + 4; 3504 } 3505 if (HasOptionalSfixed64) { 3506 size += 1 + 8; 3507 } 3508 if (HasOptionalFloat) { 3509 size += 1 + 4; 3510 } 3511 if (HasOptionalDouble) { 3512 size += 1 + 8; 3513 } 3514 if (HasOptionalBool) { 3515 size += 1 + 1; 3516 } 3517 if (HasOptionalString) { 3518 size += 1 + pb::CodedOutputStream.ComputeStringSize(OptionalString); 3519 } 3520 if (HasOptionalBytes) { 3521 size += 1 + pb::CodedOutputStream.ComputeBytesSize(OptionalBytes); 3522 } 3523 if (HasOptionalGroup) { 3524 size += 4 + pb::CodedOutputStream.ComputeGroupSize(OptionalGroup); 3525 } 3526 if (optionalNestedMessage_ != null) { 3527 size += 2 + pb::CodedOutputStream.ComputeMessageSize(OptionalNestedMessage); 3528 } 3529 if (optionalForeignMessage_ != null) { 3530 size += 2 + pb::CodedOutputStream.ComputeMessageSize(OptionalForeignMessage); 3531 } 3532 if (optionalImportMessage_ != null) { 3533 size += 2 + pb::CodedOutputStream.ComputeMessageSize(OptionalImportMessage); 3534 } 3535 if (HasOptionalNestedEnum) { 3536 size += 2 + pb::CodedOutputStream.ComputeEnumSize((int) OptionalNestedEnum); 3537 } 3538 if (HasOptionalForeignEnum) { 3539 size += 2 + pb::CodedOutputStream.ComputeEnumSize((int) OptionalForeignEnum); 3540 } 3541 if (HasOptionalImportEnum) { 3542 size += 2 + pb::CodedOutputStream.ComputeEnumSize((int) OptionalImportEnum); 3543 } 3544 if (HasOptionalStringPiece) { 3545 size += 2 + pb::CodedOutputStream.ComputeStringSize(OptionalStringPiece); 3546 } 3547 if (HasOptionalCord) { 3548 size += 2 + pb::CodedOutputStream.ComputeStringSize(OptionalCord); 3549 } 3550 if (optionalPublicImportMessage_ != null) { 3551 size += 2 + pb::CodedOutputStream.ComputeMessageSize(OptionalPublicImportMessage); 3552 } 3553 if (optionalLazyMessage_ != null) { 3554 size += 2 + pb::CodedOutputStream.ComputeMessageSize(OptionalLazyMessage); 3555 } 3556 size += repeatedInt32_.CalculateSize(_repeated_repeatedInt32_codec); 3557 size += repeatedInt64_.CalculateSize(_repeated_repeatedInt64_codec); 3558 size += repeatedUint32_.CalculateSize(_repeated_repeatedUint32_codec); 3559 size += repeatedUint64_.CalculateSize(_repeated_repeatedUint64_codec); 3560 size += repeatedSint32_.CalculateSize(_repeated_repeatedSint32_codec); 3561 size += repeatedSint64_.CalculateSize(_repeated_repeatedSint64_codec); 3562 size += repeatedFixed32_.CalculateSize(_repeated_repeatedFixed32_codec); 3563 size += repeatedFixed64_.CalculateSize(_repeated_repeatedFixed64_codec); 3564 size += repeatedSfixed32_.CalculateSize(_repeated_repeatedSfixed32_codec); 3565 size += repeatedSfixed64_.CalculateSize(_repeated_repeatedSfixed64_codec); 3566 size += repeatedFloat_.CalculateSize(_repeated_repeatedFloat_codec); 3567 size += repeatedDouble_.CalculateSize(_repeated_repeatedDouble_codec); 3568 size += repeatedBool_.CalculateSize(_repeated_repeatedBool_codec); 3569 size += repeatedString_.CalculateSize(_repeated_repeatedString_codec); 3570 size += repeatedBytes_.CalculateSize(_repeated_repeatedBytes_codec); 3571 size += repeatedGroup_.CalculateSize(_repeated_repeatedGroup_codec); 3572 size += repeatedNestedMessage_.CalculateSize(_repeated_repeatedNestedMessage_codec); 3573 size += repeatedForeignMessage_.CalculateSize(_repeated_repeatedForeignMessage_codec); 3574 size += repeatedImportMessage_.CalculateSize(_repeated_repeatedImportMessage_codec); 3575 size += repeatedNestedEnum_.CalculateSize(_repeated_repeatedNestedEnum_codec); 3576 size += repeatedForeignEnum_.CalculateSize(_repeated_repeatedForeignEnum_codec); 3577 size += repeatedImportEnum_.CalculateSize(_repeated_repeatedImportEnum_codec); 3578 size += repeatedStringPiece_.CalculateSize(_repeated_repeatedStringPiece_codec); 3579 size += repeatedCord_.CalculateSize(_repeated_repeatedCord_codec); 3580 size += repeatedLazyMessage_.CalculateSize(_repeated_repeatedLazyMessage_codec); 3581 if (HasDefaultInt32) { 3582 size += 2 + pb::CodedOutputStream.ComputeInt32Size(DefaultInt32); 3583 } 3584 if (HasDefaultInt64) { 3585 size += 2 + pb::CodedOutputStream.ComputeInt64Size(DefaultInt64); 3586 } 3587 if (HasDefaultUint32) { 3588 size += 2 + pb::CodedOutputStream.ComputeUInt32Size(DefaultUint32); 3589 } 3590 if (HasDefaultUint64) { 3591 size += 2 + pb::CodedOutputStream.ComputeUInt64Size(DefaultUint64); 3592 } 3593 if (HasDefaultSint32) { 3594 size += 2 + pb::CodedOutputStream.ComputeSInt32Size(DefaultSint32); 3595 } 3596 if (HasDefaultSint64) { 3597 size += 2 + pb::CodedOutputStream.ComputeSInt64Size(DefaultSint64); 3598 } 3599 if (HasDefaultFixed32) { 3600 size += 2 + 4; 3601 } 3602 if (HasDefaultFixed64) { 3603 size += 2 + 8; 3604 } 3605 if (HasDefaultSfixed32) { 3606 size += 2 + 4; 3607 } 3608 if (HasDefaultSfixed64) { 3609 size += 2 + 8; 3610 } 3611 if (HasDefaultFloat) { 3612 size += 2 + 4; 3613 } 3614 if (HasDefaultDouble) { 3615 size += 2 + 8; 3616 } 3617 if (HasDefaultBool) { 3618 size += 2 + 1; 3619 } 3620 if (HasDefaultString) { 3621 size += 2 + pb::CodedOutputStream.ComputeStringSize(DefaultString); 3622 } 3623 if (HasDefaultBytes) { 3624 size += 2 + pb::CodedOutputStream.ComputeBytesSize(DefaultBytes); 3625 } 3626 if (HasDefaultNestedEnum) { 3627 size += 2 + pb::CodedOutputStream.ComputeEnumSize((int) DefaultNestedEnum); 3628 } 3629 if (HasDefaultForeignEnum) { 3630 size += 2 + pb::CodedOutputStream.ComputeEnumSize((int) DefaultForeignEnum); 3631 } 3632 if (HasDefaultImportEnum) { 3633 size += 2 + pb::CodedOutputStream.ComputeEnumSize((int) DefaultImportEnum); 3634 } 3635 if (HasDefaultStringPiece) { 3636 size += 2 + pb::CodedOutputStream.ComputeStringSize(DefaultStringPiece); 3637 } 3638 if (HasDefaultCord) { 3639 size += 2 + pb::CodedOutputStream.ComputeStringSize(DefaultCord); 3640 } 3641 if (HasOneofUint32) { 3642 size += 2 + pb::CodedOutputStream.ComputeUInt32Size(OneofUint32); 3643 } 3644 if (oneofFieldCase_ == OneofFieldOneofCase.OneofNestedMessage) { 3645 size += 2 + pb::CodedOutputStream.ComputeMessageSize(OneofNestedMessage); 3646 } 3647 if (HasOneofString) { 3648 size += 2 + pb::CodedOutputStream.ComputeStringSize(OneofString); 3649 } 3650 if (HasOneofBytes) { 3651 size += 2 + pb::CodedOutputStream.ComputeBytesSize(OneofBytes); 3652 } 3653 if (_unknownFields != null) { 3654 size += _unknownFields.CalculateSize(); 3655 } 3656 return size; 3657 } 3658 3659 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 3660 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] MergeFrom(TestAllTypes other)3661 public void MergeFrom(TestAllTypes other) { 3662 if (other == null) { 3663 return; 3664 } 3665 if (other.HasOptionalInt32) { 3666 OptionalInt32 = other.OptionalInt32; 3667 } 3668 if (other.HasOptionalInt64) { 3669 OptionalInt64 = other.OptionalInt64; 3670 } 3671 if (other.HasOptionalUint32) { 3672 OptionalUint32 = other.OptionalUint32; 3673 } 3674 if (other.HasOptionalUint64) { 3675 OptionalUint64 = other.OptionalUint64; 3676 } 3677 if (other.HasOptionalSint32) { 3678 OptionalSint32 = other.OptionalSint32; 3679 } 3680 if (other.HasOptionalSint64) { 3681 OptionalSint64 = other.OptionalSint64; 3682 } 3683 if (other.HasOptionalFixed32) { 3684 OptionalFixed32 = other.OptionalFixed32; 3685 } 3686 if (other.HasOptionalFixed64) { 3687 OptionalFixed64 = other.OptionalFixed64; 3688 } 3689 if (other.HasOptionalSfixed32) { 3690 OptionalSfixed32 = other.OptionalSfixed32; 3691 } 3692 if (other.HasOptionalSfixed64) { 3693 OptionalSfixed64 = other.OptionalSfixed64; 3694 } 3695 if (other.HasOptionalFloat) { 3696 OptionalFloat = other.OptionalFloat; 3697 } 3698 if (other.HasOptionalDouble) { 3699 OptionalDouble = other.OptionalDouble; 3700 } 3701 if (other.HasOptionalBool) { 3702 OptionalBool = other.OptionalBool; 3703 } 3704 if (other.HasOptionalString) { 3705 OptionalString = other.OptionalString; 3706 } 3707 if (other.HasOptionalBytes) { 3708 OptionalBytes = other.OptionalBytes; 3709 } 3710 if (other.HasOptionalGroup) { 3711 if (!HasOptionalGroup) { 3712 OptionalGroup = new global::Google.Protobuf.TestProtos.Proto2.TestAllTypes.Types.OptionalGroup(); 3713 } 3714 OptionalGroup.MergeFrom(other.OptionalGroup); 3715 } 3716 if (other.optionalNestedMessage_ != null) { 3717 if (optionalNestedMessage_ == null) { 3718 OptionalNestedMessage = new global::Google.Protobuf.TestProtos.Proto2.TestAllTypes.Types.NestedMessage(); 3719 } 3720 OptionalNestedMessage.MergeFrom(other.OptionalNestedMessage); 3721 } 3722 if (other.optionalForeignMessage_ != null) { 3723 if (optionalForeignMessage_ == null) { 3724 OptionalForeignMessage = new global::Google.Protobuf.TestProtos.Proto2.ForeignMessage(); 3725 } 3726 OptionalForeignMessage.MergeFrom(other.OptionalForeignMessage); 3727 } 3728 if (other.optionalImportMessage_ != null) { 3729 if (optionalImportMessage_ == null) { 3730 OptionalImportMessage = new global::Google.Protobuf.TestProtos.Proto2.ImportMessage(); 3731 } 3732 OptionalImportMessage.MergeFrom(other.OptionalImportMessage); 3733 } 3734 if (other.HasOptionalNestedEnum) { 3735 OptionalNestedEnum = other.OptionalNestedEnum; 3736 } 3737 if (other.HasOptionalForeignEnum) { 3738 OptionalForeignEnum = other.OptionalForeignEnum; 3739 } 3740 if (other.HasOptionalImportEnum) { 3741 OptionalImportEnum = other.OptionalImportEnum; 3742 } 3743 if (other.HasOptionalStringPiece) { 3744 OptionalStringPiece = other.OptionalStringPiece; 3745 } 3746 if (other.HasOptionalCord) { 3747 OptionalCord = other.OptionalCord; 3748 } 3749 if (other.optionalPublicImportMessage_ != null) { 3750 if (optionalPublicImportMessage_ == null) { 3751 OptionalPublicImportMessage = new global::Google.Protobuf.TestProtos.Proto2.PublicImportMessage(); 3752 } 3753 OptionalPublicImportMessage.MergeFrom(other.OptionalPublicImportMessage); 3754 } 3755 if (other.optionalLazyMessage_ != null) { 3756 if (optionalLazyMessage_ == null) { 3757 OptionalLazyMessage = new global::Google.Protobuf.TestProtos.Proto2.TestAllTypes.Types.NestedMessage(); 3758 } 3759 OptionalLazyMessage.MergeFrom(other.OptionalLazyMessage); 3760 } 3761 repeatedInt32_.Add(other.repeatedInt32_); 3762 repeatedInt64_.Add(other.repeatedInt64_); 3763 repeatedUint32_.Add(other.repeatedUint32_); 3764 repeatedUint64_.Add(other.repeatedUint64_); 3765 repeatedSint32_.Add(other.repeatedSint32_); 3766 repeatedSint64_.Add(other.repeatedSint64_); 3767 repeatedFixed32_.Add(other.repeatedFixed32_); 3768 repeatedFixed64_.Add(other.repeatedFixed64_); 3769 repeatedSfixed32_.Add(other.repeatedSfixed32_); 3770 repeatedSfixed64_.Add(other.repeatedSfixed64_); 3771 repeatedFloat_.Add(other.repeatedFloat_); 3772 repeatedDouble_.Add(other.repeatedDouble_); 3773 repeatedBool_.Add(other.repeatedBool_); 3774 repeatedString_.Add(other.repeatedString_); 3775 repeatedBytes_.Add(other.repeatedBytes_); 3776 repeatedGroup_.Add(other.repeatedGroup_); 3777 repeatedNestedMessage_.Add(other.repeatedNestedMessage_); 3778 repeatedForeignMessage_.Add(other.repeatedForeignMessage_); 3779 repeatedImportMessage_.Add(other.repeatedImportMessage_); 3780 repeatedNestedEnum_.Add(other.repeatedNestedEnum_); 3781 repeatedForeignEnum_.Add(other.repeatedForeignEnum_); 3782 repeatedImportEnum_.Add(other.repeatedImportEnum_); 3783 repeatedStringPiece_.Add(other.repeatedStringPiece_); 3784 repeatedCord_.Add(other.repeatedCord_); 3785 repeatedLazyMessage_.Add(other.repeatedLazyMessage_); 3786 if (other.HasDefaultInt32) { 3787 DefaultInt32 = other.DefaultInt32; 3788 } 3789 if (other.HasDefaultInt64) { 3790 DefaultInt64 = other.DefaultInt64; 3791 } 3792 if (other.HasDefaultUint32) { 3793 DefaultUint32 = other.DefaultUint32; 3794 } 3795 if (other.HasDefaultUint64) { 3796 DefaultUint64 = other.DefaultUint64; 3797 } 3798 if (other.HasDefaultSint32) { 3799 DefaultSint32 = other.DefaultSint32; 3800 } 3801 if (other.HasDefaultSint64) { 3802 DefaultSint64 = other.DefaultSint64; 3803 } 3804 if (other.HasDefaultFixed32) { 3805 DefaultFixed32 = other.DefaultFixed32; 3806 } 3807 if (other.HasDefaultFixed64) { 3808 DefaultFixed64 = other.DefaultFixed64; 3809 } 3810 if (other.HasDefaultSfixed32) { 3811 DefaultSfixed32 = other.DefaultSfixed32; 3812 } 3813 if (other.HasDefaultSfixed64) { 3814 DefaultSfixed64 = other.DefaultSfixed64; 3815 } 3816 if (other.HasDefaultFloat) { 3817 DefaultFloat = other.DefaultFloat; 3818 } 3819 if (other.HasDefaultDouble) { 3820 DefaultDouble = other.DefaultDouble; 3821 } 3822 if (other.HasDefaultBool) { 3823 DefaultBool = other.DefaultBool; 3824 } 3825 if (other.HasDefaultString) { 3826 DefaultString = other.DefaultString; 3827 } 3828 if (other.HasDefaultBytes) { 3829 DefaultBytes = other.DefaultBytes; 3830 } 3831 if (other.HasDefaultNestedEnum) { 3832 DefaultNestedEnum = other.DefaultNestedEnum; 3833 } 3834 if (other.HasDefaultForeignEnum) { 3835 DefaultForeignEnum = other.DefaultForeignEnum; 3836 } 3837 if (other.HasDefaultImportEnum) { 3838 DefaultImportEnum = other.DefaultImportEnum; 3839 } 3840 if (other.HasDefaultStringPiece) { 3841 DefaultStringPiece = other.DefaultStringPiece; 3842 } 3843 if (other.HasDefaultCord) { 3844 DefaultCord = other.DefaultCord; 3845 } 3846 switch (other.OneofFieldCase) { 3847 case OneofFieldOneofCase.OneofUint32: 3848 OneofUint32 = other.OneofUint32; 3849 break; 3850 case OneofFieldOneofCase.OneofNestedMessage: 3851 if (OneofNestedMessage == null) { 3852 OneofNestedMessage = new global::Google.Protobuf.TestProtos.Proto2.TestAllTypes.Types.NestedMessage(); 3853 } 3854 OneofNestedMessage.MergeFrom(other.OneofNestedMessage); 3855 break; 3856 case OneofFieldOneofCase.OneofString: 3857 OneofString = other.OneofString; 3858 break; 3859 case OneofFieldOneofCase.OneofBytes: 3860 OneofBytes = other.OneofBytes; 3861 break; 3862 } 3863 3864 _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); 3865 } 3866 3867 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 3868 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] MergeFrom(pb::CodedInputStream input)3869 public void MergeFrom(pb::CodedInputStream input) { 3870 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 3871 input.ReadRawMessage(this); 3872 #else 3873 uint tag; 3874 while ((tag = input.ReadTag()) != 0) { 3875 if ((tag & 7) == 4) { 3876 // Abort on any end group tag. 3877 return; 3878 } 3879 switch(tag) { 3880 default: 3881 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); 3882 break; 3883 case 8: { 3884 OptionalInt32 = input.ReadInt32(); 3885 break; 3886 } 3887 case 16: { 3888 OptionalInt64 = input.ReadInt64(); 3889 break; 3890 } 3891 case 24: { 3892 OptionalUint32 = input.ReadUInt32(); 3893 break; 3894 } 3895 case 32: { 3896 OptionalUint64 = input.ReadUInt64(); 3897 break; 3898 } 3899 case 40: { 3900 OptionalSint32 = input.ReadSInt32(); 3901 break; 3902 } 3903 case 48: { 3904 OptionalSint64 = input.ReadSInt64(); 3905 break; 3906 } 3907 case 61: { 3908 OptionalFixed32 = input.ReadFixed32(); 3909 break; 3910 } 3911 case 65: { 3912 OptionalFixed64 = input.ReadFixed64(); 3913 break; 3914 } 3915 case 77: { 3916 OptionalSfixed32 = input.ReadSFixed32(); 3917 break; 3918 } 3919 case 81: { 3920 OptionalSfixed64 = input.ReadSFixed64(); 3921 break; 3922 } 3923 case 93: { 3924 OptionalFloat = input.ReadFloat(); 3925 break; 3926 } 3927 case 97: { 3928 OptionalDouble = input.ReadDouble(); 3929 break; 3930 } 3931 case 104: { 3932 OptionalBool = input.ReadBool(); 3933 break; 3934 } 3935 case 114: { 3936 OptionalString = input.ReadString(); 3937 break; 3938 } 3939 case 122: { 3940 OptionalBytes = input.ReadBytes(); 3941 break; 3942 } 3943 case 131: { 3944 if (!HasOptionalGroup) { 3945 OptionalGroup = new global::Google.Protobuf.TestProtos.Proto2.TestAllTypes.Types.OptionalGroup(); 3946 } 3947 input.ReadGroup(OptionalGroup); 3948 break; 3949 } 3950 case 146: { 3951 if (optionalNestedMessage_ == null) { 3952 OptionalNestedMessage = new global::Google.Protobuf.TestProtos.Proto2.TestAllTypes.Types.NestedMessage(); 3953 } 3954 input.ReadMessage(OptionalNestedMessage); 3955 break; 3956 } 3957 case 154: { 3958 if (optionalForeignMessage_ == null) { 3959 OptionalForeignMessage = new global::Google.Protobuf.TestProtos.Proto2.ForeignMessage(); 3960 } 3961 input.ReadMessage(OptionalForeignMessage); 3962 break; 3963 } 3964 case 162: { 3965 if (optionalImportMessage_ == null) { 3966 OptionalImportMessage = new global::Google.Protobuf.TestProtos.Proto2.ImportMessage(); 3967 } 3968 input.ReadMessage(OptionalImportMessage); 3969 break; 3970 } 3971 case 168: { 3972 OptionalNestedEnum = (global::Google.Protobuf.TestProtos.Proto2.TestAllTypes.Types.NestedEnum) input.ReadEnum(); 3973 break; 3974 } 3975 case 176: { 3976 OptionalForeignEnum = (global::Google.Protobuf.TestProtos.Proto2.ForeignEnum) input.ReadEnum(); 3977 break; 3978 } 3979 case 184: { 3980 OptionalImportEnum = (global::Google.Protobuf.TestProtos.Proto2.ImportEnum) input.ReadEnum(); 3981 break; 3982 } 3983 case 194: { 3984 OptionalStringPiece = input.ReadString(); 3985 break; 3986 } 3987 case 202: { 3988 OptionalCord = input.ReadString(); 3989 break; 3990 } 3991 case 210: { 3992 if (optionalPublicImportMessage_ == null) { 3993 OptionalPublicImportMessage = new global::Google.Protobuf.TestProtos.Proto2.PublicImportMessage(); 3994 } 3995 input.ReadMessage(OptionalPublicImportMessage); 3996 break; 3997 } 3998 case 218: { 3999 if (optionalLazyMessage_ == null) { 4000 OptionalLazyMessage = new global::Google.Protobuf.TestProtos.Proto2.TestAllTypes.Types.NestedMessage(); 4001 } 4002 input.ReadMessage(OptionalLazyMessage); 4003 break; 4004 } 4005 case 250: 4006 case 248: { 4007 repeatedInt32_.AddEntriesFrom(input, _repeated_repeatedInt32_codec); 4008 break; 4009 } 4010 case 258: 4011 case 256: { 4012 repeatedInt64_.AddEntriesFrom(input, _repeated_repeatedInt64_codec); 4013 break; 4014 } 4015 case 266: 4016 case 264: { 4017 repeatedUint32_.AddEntriesFrom(input, _repeated_repeatedUint32_codec); 4018 break; 4019 } 4020 case 274: 4021 case 272: { 4022 repeatedUint64_.AddEntriesFrom(input, _repeated_repeatedUint64_codec); 4023 break; 4024 } 4025 case 282: 4026 case 280: { 4027 repeatedSint32_.AddEntriesFrom(input, _repeated_repeatedSint32_codec); 4028 break; 4029 } 4030 case 290: 4031 case 288: { 4032 repeatedSint64_.AddEntriesFrom(input, _repeated_repeatedSint64_codec); 4033 break; 4034 } 4035 case 298: 4036 case 301: { 4037 repeatedFixed32_.AddEntriesFrom(input, _repeated_repeatedFixed32_codec); 4038 break; 4039 } 4040 case 306: 4041 case 305: { 4042 repeatedFixed64_.AddEntriesFrom(input, _repeated_repeatedFixed64_codec); 4043 break; 4044 } 4045 case 314: 4046 case 317: { 4047 repeatedSfixed32_.AddEntriesFrom(input, _repeated_repeatedSfixed32_codec); 4048 break; 4049 } 4050 case 322: 4051 case 321: { 4052 repeatedSfixed64_.AddEntriesFrom(input, _repeated_repeatedSfixed64_codec); 4053 break; 4054 } 4055 case 330: 4056 case 333: { 4057 repeatedFloat_.AddEntriesFrom(input, _repeated_repeatedFloat_codec); 4058 break; 4059 } 4060 case 338: 4061 case 337: { 4062 repeatedDouble_.AddEntriesFrom(input, _repeated_repeatedDouble_codec); 4063 break; 4064 } 4065 case 346: 4066 case 344: { 4067 repeatedBool_.AddEntriesFrom(input, _repeated_repeatedBool_codec); 4068 break; 4069 } 4070 case 354: { 4071 repeatedString_.AddEntriesFrom(input, _repeated_repeatedString_codec); 4072 break; 4073 } 4074 case 362: { 4075 repeatedBytes_.AddEntriesFrom(input, _repeated_repeatedBytes_codec); 4076 break; 4077 } 4078 case 371: { 4079 repeatedGroup_.AddEntriesFrom(input, _repeated_repeatedGroup_codec); 4080 break; 4081 } 4082 case 386: { 4083 repeatedNestedMessage_.AddEntriesFrom(input, _repeated_repeatedNestedMessage_codec); 4084 break; 4085 } 4086 case 394: { 4087 repeatedForeignMessage_.AddEntriesFrom(input, _repeated_repeatedForeignMessage_codec); 4088 break; 4089 } 4090 case 402: { 4091 repeatedImportMessage_.AddEntriesFrom(input, _repeated_repeatedImportMessage_codec); 4092 break; 4093 } 4094 case 410: 4095 case 408: { 4096 repeatedNestedEnum_.AddEntriesFrom(input, _repeated_repeatedNestedEnum_codec); 4097 break; 4098 } 4099 case 418: 4100 case 416: { 4101 repeatedForeignEnum_.AddEntriesFrom(input, _repeated_repeatedForeignEnum_codec); 4102 break; 4103 } 4104 case 426: 4105 case 424: { 4106 repeatedImportEnum_.AddEntriesFrom(input, _repeated_repeatedImportEnum_codec); 4107 break; 4108 } 4109 case 434: { 4110 repeatedStringPiece_.AddEntriesFrom(input, _repeated_repeatedStringPiece_codec); 4111 break; 4112 } 4113 case 442: { 4114 repeatedCord_.AddEntriesFrom(input, _repeated_repeatedCord_codec); 4115 break; 4116 } 4117 case 458: { 4118 repeatedLazyMessage_.AddEntriesFrom(input, _repeated_repeatedLazyMessage_codec); 4119 break; 4120 } 4121 case 488: { 4122 DefaultInt32 = input.ReadInt32(); 4123 break; 4124 } 4125 case 496: { 4126 DefaultInt64 = input.ReadInt64(); 4127 break; 4128 } 4129 case 504: { 4130 DefaultUint32 = input.ReadUInt32(); 4131 break; 4132 } 4133 case 512: { 4134 DefaultUint64 = input.ReadUInt64(); 4135 break; 4136 } 4137 case 520: { 4138 DefaultSint32 = input.ReadSInt32(); 4139 break; 4140 } 4141 case 528: { 4142 DefaultSint64 = input.ReadSInt64(); 4143 break; 4144 } 4145 case 541: { 4146 DefaultFixed32 = input.ReadFixed32(); 4147 break; 4148 } 4149 case 545: { 4150 DefaultFixed64 = input.ReadFixed64(); 4151 break; 4152 } 4153 case 557: { 4154 DefaultSfixed32 = input.ReadSFixed32(); 4155 break; 4156 } 4157 case 561: { 4158 DefaultSfixed64 = input.ReadSFixed64(); 4159 break; 4160 } 4161 case 573: { 4162 DefaultFloat = input.ReadFloat(); 4163 break; 4164 } 4165 case 577: { 4166 DefaultDouble = input.ReadDouble(); 4167 break; 4168 } 4169 case 584: { 4170 DefaultBool = input.ReadBool(); 4171 break; 4172 } 4173 case 594: { 4174 DefaultString = input.ReadString(); 4175 break; 4176 } 4177 case 602: { 4178 DefaultBytes = input.ReadBytes(); 4179 break; 4180 } 4181 case 648: { 4182 DefaultNestedEnum = (global::Google.Protobuf.TestProtos.Proto2.TestAllTypes.Types.NestedEnum) input.ReadEnum(); 4183 break; 4184 } 4185 case 656: { 4186 DefaultForeignEnum = (global::Google.Protobuf.TestProtos.Proto2.ForeignEnum) input.ReadEnum(); 4187 break; 4188 } 4189 case 664: { 4190 DefaultImportEnum = (global::Google.Protobuf.TestProtos.Proto2.ImportEnum) input.ReadEnum(); 4191 break; 4192 } 4193 case 674: { 4194 DefaultStringPiece = input.ReadString(); 4195 break; 4196 } 4197 case 682: { 4198 DefaultCord = input.ReadString(); 4199 break; 4200 } 4201 case 888: { 4202 OneofUint32 = input.ReadUInt32(); 4203 break; 4204 } 4205 case 898: { 4206 global::Google.Protobuf.TestProtos.Proto2.TestAllTypes.Types.NestedMessage subBuilder = new global::Google.Protobuf.TestProtos.Proto2.TestAllTypes.Types.NestedMessage(); 4207 if (oneofFieldCase_ == OneofFieldOneofCase.OneofNestedMessage) { 4208 subBuilder.MergeFrom(OneofNestedMessage); 4209 } 4210 input.ReadMessage(subBuilder); 4211 OneofNestedMessage = subBuilder; 4212 break; 4213 } 4214 case 906: { 4215 OneofString = input.ReadString(); 4216 break; 4217 } 4218 case 914: { 4219 OneofBytes = input.ReadBytes(); 4220 break; 4221 } 4222 } 4223 } 4224 #endif 4225 } 4226 4227 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 4228 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 4229 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] IBufferMessage.InternalMergeFrom(ref pb::ParseContext input)4230 void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { 4231 uint tag; 4232 while ((tag = input.ReadTag()) != 0) { 4233 if ((tag & 7) == 4) { 4234 // Abort on any end group tag. 4235 return; 4236 } 4237 switch(tag) { 4238 default: 4239 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); 4240 break; 4241 case 8: { 4242 OptionalInt32 = input.ReadInt32(); 4243 break; 4244 } 4245 case 16: { 4246 OptionalInt64 = input.ReadInt64(); 4247 break; 4248 } 4249 case 24: { 4250 OptionalUint32 = input.ReadUInt32(); 4251 break; 4252 } 4253 case 32: { 4254 OptionalUint64 = input.ReadUInt64(); 4255 break; 4256 } 4257 case 40: { 4258 OptionalSint32 = input.ReadSInt32(); 4259 break; 4260 } 4261 case 48: { 4262 OptionalSint64 = input.ReadSInt64(); 4263 break; 4264 } 4265 case 61: { 4266 OptionalFixed32 = input.ReadFixed32(); 4267 break; 4268 } 4269 case 65: { 4270 OptionalFixed64 = input.ReadFixed64(); 4271 break; 4272 } 4273 case 77: { 4274 OptionalSfixed32 = input.ReadSFixed32(); 4275 break; 4276 } 4277 case 81: { 4278 OptionalSfixed64 = input.ReadSFixed64(); 4279 break; 4280 } 4281 case 93: { 4282 OptionalFloat = input.ReadFloat(); 4283 break; 4284 } 4285 case 97: { 4286 OptionalDouble = input.ReadDouble(); 4287 break; 4288 } 4289 case 104: { 4290 OptionalBool = input.ReadBool(); 4291 break; 4292 } 4293 case 114: { 4294 OptionalString = input.ReadString(); 4295 break; 4296 } 4297 case 122: { 4298 OptionalBytes = input.ReadBytes(); 4299 break; 4300 } 4301 case 131: { 4302 if (!HasOptionalGroup) { 4303 OptionalGroup = new global::Google.Protobuf.TestProtos.Proto2.TestAllTypes.Types.OptionalGroup(); 4304 } 4305 input.ReadGroup(OptionalGroup); 4306 break; 4307 } 4308 case 146: { 4309 if (optionalNestedMessage_ == null) { 4310 OptionalNestedMessage = new global::Google.Protobuf.TestProtos.Proto2.TestAllTypes.Types.NestedMessage(); 4311 } 4312 input.ReadMessage(OptionalNestedMessage); 4313 break; 4314 } 4315 case 154: { 4316 if (optionalForeignMessage_ == null) { 4317 OptionalForeignMessage = new global::Google.Protobuf.TestProtos.Proto2.ForeignMessage(); 4318 } 4319 input.ReadMessage(OptionalForeignMessage); 4320 break; 4321 } 4322 case 162: { 4323 if (optionalImportMessage_ == null) { 4324 OptionalImportMessage = new global::Google.Protobuf.TestProtos.Proto2.ImportMessage(); 4325 } 4326 input.ReadMessage(OptionalImportMessage); 4327 break; 4328 } 4329 case 168: { 4330 OptionalNestedEnum = (global::Google.Protobuf.TestProtos.Proto2.TestAllTypes.Types.NestedEnum) input.ReadEnum(); 4331 break; 4332 } 4333 case 176: { 4334 OptionalForeignEnum = (global::Google.Protobuf.TestProtos.Proto2.ForeignEnum) input.ReadEnum(); 4335 break; 4336 } 4337 case 184: { 4338 OptionalImportEnum = (global::Google.Protobuf.TestProtos.Proto2.ImportEnum) input.ReadEnum(); 4339 break; 4340 } 4341 case 194: { 4342 OptionalStringPiece = input.ReadString(); 4343 break; 4344 } 4345 case 202: { 4346 OptionalCord = input.ReadString(); 4347 break; 4348 } 4349 case 210: { 4350 if (optionalPublicImportMessage_ == null) { 4351 OptionalPublicImportMessage = new global::Google.Protobuf.TestProtos.Proto2.PublicImportMessage(); 4352 } 4353 input.ReadMessage(OptionalPublicImportMessage); 4354 break; 4355 } 4356 case 218: { 4357 if (optionalLazyMessage_ == null) { 4358 OptionalLazyMessage = new global::Google.Protobuf.TestProtos.Proto2.TestAllTypes.Types.NestedMessage(); 4359 } 4360 input.ReadMessage(OptionalLazyMessage); 4361 break; 4362 } 4363 case 250: 4364 case 248: { 4365 repeatedInt32_.AddEntriesFrom(ref input, _repeated_repeatedInt32_codec); 4366 break; 4367 } 4368 case 258: 4369 case 256: { 4370 repeatedInt64_.AddEntriesFrom(ref input, _repeated_repeatedInt64_codec); 4371 break; 4372 } 4373 case 266: 4374 case 264: { 4375 repeatedUint32_.AddEntriesFrom(ref input, _repeated_repeatedUint32_codec); 4376 break; 4377 } 4378 case 274: 4379 case 272: { 4380 repeatedUint64_.AddEntriesFrom(ref input, _repeated_repeatedUint64_codec); 4381 break; 4382 } 4383 case 282: 4384 case 280: { 4385 repeatedSint32_.AddEntriesFrom(ref input, _repeated_repeatedSint32_codec); 4386 break; 4387 } 4388 case 290: 4389 case 288: { 4390 repeatedSint64_.AddEntriesFrom(ref input, _repeated_repeatedSint64_codec); 4391 break; 4392 } 4393 case 298: 4394 case 301: { 4395 repeatedFixed32_.AddEntriesFrom(ref input, _repeated_repeatedFixed32_codec); 4396 break; 4397 } 4398 case 306: 4399 case 305: { 4400 repeatedFixed64_.AddEntriesFrom(ref input, _repeated_repeatedFixed64_codec); 4401 break; 4402 } 4403 case 314: 4404 case 317: { 4405 repeatedSfixed32_.AddEntriesFrom(ref input, _repeated_repeatedSfixed32_codec); 4406 break; 4407 } 4408 case 322: 4409 case 321: { 4410 repeatedSfixed64_.AddEntriesFrom(ref input, _repeated_repeatedSfixed64_codec); 4411 break; 4412 } 4413 case 330: 4414 case 333: { 4415 repeatedFloat_.AddEntriesFrom(ref input, _repeated_repeatedFloat_codec); 4416 break; 4417 } 4418 case 338: 4419 case 337: { 4420 repeatedDouble_.AddEntriesFrom(ref input, _repeated_repeatedDouble_codec); 4421 break; 4422 } 4423 case 346: 4424 case 344: { 4425 repeatedBool_.AddEntriesFrom(ref input, _repeated_repeatedBool_codec); 4426 break; 4427 } 4428 case 354: { 4429 repeatedString_.AddEntriesFrom(ref input, _repeated_repeatedString_codec); 4430 break; 4431 } 4432 case 362: { 4433 repeatedBytes_.AddEntriesFrom(ref input, _repeated_repeatedBytes_codec); 4434 break; 4435 } 4436 case 371: { 4437 repeatedGroup_.AddEntriesFrom(ref input, _repeated_repeatedGroup_codec); 4438 break; 4439 } 4440 case 386: { 4441 repeatedNestedMessage_.AddEntriesFrom(ref input, _repeated_repeatedNestedMessage_codec); 4442 break; 4443 } 4444 case 394: { 4445 repeatedForeignMessage_.AddEntriesFrom(ref input, _repeated_repeatedForeignMessage_codec); 4446 break; 4447 } 4448 case 402: { 4449 repeatedImportMessage_.AddEntriesFrom(ref input, _repeated_repeatedImportMessage_codec); 4450 break; 4451 } 4452 case 410: 4453 case 408: { 4454 repeatedNestedEnum_.AddEntriesFrom(ref input, _repeated_repeatedNestedEnum_codec); 4455 break; 4456 } 4457 case 418: 4458 case 416: { 4459 repeatedForeignEnum_.AddEntriesFrom(ref input, _repeated_repeatedForeignEnum_codec); 4460 break; 4461 } 4462 case 426: 4463 case 424: { 4464 repeatedImportEnum_.AddEntriesFrom(ref input, _repeated_repeatedImportEnum_codec); 4465 break; 4466 } 4467 case 434: { 4468 repeatedStringPiece_.AddEntriesFrom(ref input, _repeated_repeatedStringPiece_codec); 4469 break; 4470 } 4471 case 442: { 4472 repeatedCord_.AddEntriesFrom(ref input, _repeated_repeatedCord_codec); 4473 break; 4474 } 4475 case 458: { 4476 repeatedLazyMessage_.AddEntriesFrom(ref input, _repeated_repeatedLazyMessage_codec); 4477 break; 4478 } 4479 case 488: { 4480 DefaultInt32 = input.ReadInt32(); 4481 break; 4482 } 4483 case 496: { 4484 DefaultInt64 = input.ReadInt64(); 4485 break; 4486 } 4487 case 504: { 4488 DefaultUint32 = input.ReadUInt32(); 4489 break; 4490 } 4491 case 512: { 4492 DefaultUint64 = input.ReadUInt64(); 4493 break; 4494 } 4495 case 520: { 4496 DefaultSint32 = input.ReadSInt32(); 4497 break; 4498 } 4499 case 528: { 4500 DefaultSint64 = input.ReadSInt64(); 4501 break; 4502 } 4503 case 541: { 4504 DefaultFixed32 = input.ReadFixed32(); 4505 break; 4506 } 4507 case 545: { 4508 DefaultFixed64 = input.ReadFixed64(); 4509 break; 4510 } 4511 case 557: { 4512 DefaultSfixed32 = input.ReadSFixed32(); 4513 break; 4514 } 4515 case 561: { 4516 DefaultSfixed64 = input.ReadSFixed64(); 4517 break; 4518 } 4519 case 573: { 4520 DefaultFloat = input.ReadFloat(); 4521 break; 4522 } 4523 case 577: { 4524 DefaultDouble = input.ReadDouble(); 4525 break; 4526 } 4527 case 584: { 4528 DefaultBool = input.ReadBool(); 4529 break; 4530 } 4531 case 594: { 4532 DefaultString = input.ReadString(); 4533 break; 4534 } 4535 case 602: { 4536 DefaultBytes = input.ReadBytes(); 4537 break; 4538 } 4539 case 648: { 4540 DefaultNestedEnum = (global::Google.Protobuf.TestProtos.Proto2.TestAllTypes.Types.NestedEnum) input.ReadEnum(); 4541 break; 4542 } 4543 case 656: { 4544 DefaultForeignEnum = (global::Google.Protobuf.TestProtos.Proto2.ForeignEnum) input.ReadEnum(); 4545 break; 4546 } 4547 case 664: { 4548 DefaultImportEnum = (global::Google.Protobuf.TestProtos.Proto2.ImportEnum) input.ReadEnum(); 4549 break; 4550 } 4551 case 674: { 4552 DefaultStringPiece = input.ReadString(); 4553 break; 4554 } 4555 case 682: { 4556 DefaultCord = input.ReadString(); 4557 break; 4558 } 4559 case 888: { 4560 OneofUint32 = input.ReadUInt32(); 4561 break; 4562 } 4563 case 898: { 4564 global::Google.Protobuf.TestProtos.Proto2.TestAllTypes.Types.NestedMessage subBuilder = new global::Google.Protobuf.TestProtos.Proto2.TestAllTypes.Types.NestedMessage(); 4565 if (oneofFieldCase_ == OneofFieldOneofCase.OneofNestedMessage) { 4566 subBuilder.MergeFrom(OneofNestedMessage); 4567 } 4568 input.ReadMessage(subBuilder); 4569 OneofNestedMessage = subBuilder; 4570 break; 4571 } 4572 case 906: { 4573 OneofString = input.ReadString(); 4574 break; 4575 } 4576 case 914: { 4577 OneofBytes = input.ReadBytes(); 4578 break; 4579 } 4580 } 4581 } 4582 } 4583 #endif 4584 4585 #region Nested types 4586 /// <summary>Container for nested types declared in the TestAllTypes message type.</summary> 4587 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 4588 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 4589 public static partial class Types { 4590 public enum NestedEnum { 4591 [pbr::OriginalName("FOO")] Foo = 1, 4592 [pbr::OriginalName("BAR")] Bar = 2, 4593 [pbr::OriginalName("BAZ")] Baz = 3, 4594 /// <summary> 4595 /// Intentionally negative. 4596 /// </summary> 4597 [pbr::OriginalName("NEG")] Neg = -1, 4598 } 4599 4600 [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] 4601 public sealed partial class NestedMessage : pb::IMessage<NestedMessage> 4602 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 4603 , pb::IBufferMessage 4604 #endif 4605 { 4606 private static readonly pb::MessageParser<NestedMessage> _parser = new pb::MessageParser<NestedMessage>(() => new NestedMessage()); 4607 private pb::UnknownFieldSet _unknownFields; 4608 private int _hasBits0; 4609 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 4610 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 4611 public static pb::MessageParser<NestedMessage> Parser { get { return _parser; } } 4612 4613 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 4614 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 4615 public static pbr::MessageDescriptor Descriptor { 4616 get { return global::Google.Protobuf.TestProtos.Proto2.TestAllTypes.Descriptor.NestedTypes[0]; } 4617 } 4618 4619 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 4620 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 4621 pbr::MessageDescriptor pb::IMessage.Descriptor { 4622 get { return Descriptor; } 4623 } 4624 4625 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 4626 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] NestedMessage()4627 public NestedMessage() { 4628 OnConstruction(); 4629 } 4630 OnConstruction()4631 partial void OnConstruction(); 4632 4633 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 4634 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] NestedMessage(NestedMessage other)4635 public NestedMessage(NestedMessage other) : this() { 4636 _hasBits0 = other._hasBits0; 4637 bb_ = other.bb_; 4638 _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); 4639 } 4640 4641 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 4642 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] Clone()4643 public NestedMessage Clone() { 4644 return new NestedMessage(this); 4645 } 4646 4647 /// <summary>Field number for the "bb" field.</summary> 4648 public const int BbFieldNumber = 1; 4649 private readonly static int BbDefaultValue = 0; 4650 4651 private int bb_; 4652 /// <summary> 4653 /// The field name "b" fails to compile in proto1 because it conflicts with 4654 /// a local variable named "b" in one of the generated methods. Doh. 4655 /// This file needs to compile in proto1 to test backwards-compatibility. 4656 /// </summary> 4657 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 4658 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 4659 public int Bb { 4660 get { if ((_hasBits0 & 1) != 0) { return bb_; } else { return BbDefaultValue; } } 4661 set { 4662 _hasBits0 |= 1; 4663 bb_ = value; 4664 } 4665 } 4666 /// <summary>Gets whether the "bb" field is set</summary> 4667 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 4668 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 4669 public bool HasBb { 4670 get { return (_hasBits0 & 1) != 0; } 4671 } 4672 /// <summary>Clears the value of the "bb" field</summary> 4673 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 4674 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] ClearBb()4675 public void ClearBb() { 4676 _hasBits0 &= ~1; 4677 } 4678 4679 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 4680 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] Equals(object other)4681 public override bool Equals(object other) { 4682 return Equals(other as NestedMessage); 4683 } 4684 4685 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 4686 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] Equals(NestedMessage other)4687 public bool Equals(NestedMessage other) { 4688 if (ReferenceEquals(other, null)) { 4689 return false; 4690 } 4691 if (ReferenceEquals(other, this)) { 4692 return true; 4693 } 4694 if (Bb != other.Bb) return false; 4695 return Equals(_unknownFields, other._unknownFields); 4696 } 4697 4698 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 4699 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] GetHashCode()4700 public override int GetHashCode() { 4701 int hash = 1; 4702 if (HasBb) hash ^= Bb.GetHashCode(); 4703 if (_unknownFields != null) { 4704 hash ^= _unknownFields.GetHashCode(); 4705 } 4706 return hash; 4707 } 4708 4709 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 4710 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] ToString()4711 public override string ToString() { 4712 return pb::JsonFormatter.ToDiagnosticString(this); 4713 } 4714 4715 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 4716 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] WriteTo(pb::CodedOutputStream output)4717 public void WriteTo(pb::CodedOutputStream output) { 4718 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 4719 output.WriteRawMessage(this); 4720 #else 4721 if (HasBb) { 4722 output.WriteRawTag(8); 4723 output.WriteInt32(Bb); 4724 } 4725 if (_unknownFields != null) { 4726 _unknownFields.WriteTo(output); 4727 } 4728 #endif 4729 } 4730 4731 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 4732 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 4733 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] IBufferMessage.InternalWriteTo(ref pb::WriteContext output)4734 void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { 4735 if (HasBb) { 4736 output.WriteRawTag(8); 4737 output.WriteInt32(Bb); 4738 } 4739 if (_unknownFields != null) { 4740 _unknownFields.WriteTo(ref output); 4741 } 4742 } 4743 #endif 4744 4745 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 4746 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] CalculateSize()4747 public int CalculateSize() { 4748 int size = 0; 4749 if (HasBb) { 4750 size += 1 + pb::CodedOutputStream.ComputeInt32Size(Bb); 4751 } 4752 if (_unknownFields != null) { 4753 size += _unknownFields.CalculateSize(); 4754 } 4755 return size; 4756 } 4757 4758 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 4759 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] MergeFrom(NestedMessage other)4760 public void MergeFrom(NestedMessage other) { 4761 if (other == null) { 4762 return; 4763 } 4764 if (other.HasBb) { 4765 Bb = other.Bb; 4766 } 4767 _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); 4768 } 4769 4770 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 4771 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] MergeFrom(pb::CodedInputStream input)4772 public void MergeFrom(pb::CodedInputStream input) { 4773 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 4774 input.ReadRawMessage(this); 4775 #else 4776 uint tag; 4777 while ((tag = input.ReadTag()) != 0) { 4778 if ((tag & 7) == 4) { 4779 // Abort on any end group tag. 4780 return; 4781 } 4782 switch(tag) { 4783 default: 4784 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); 4785 break; 4786 case 8: { 4787 Bb = input.ReadInt32(); 4788 break; 4789 } 4790 } 4791 } 4792 #endif 4793 } 4794 4795 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 4796 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 4797 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] IBufferMessage.InternalMergeFrom(ref pb::ParseContext input)4798 void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { 4799 uint tag; 4800 while ((tag = input.ReadTag()) != 0) { 4801 if ((tag & 7) == 4) { 4802 // Abort on any end group tag. 4803 return; 4804 } 4805 switch(tag) { 4806 default: 4807 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); 4808 break; 4809 case 8: { 4810 Bb = input.ReadInt32(); 4811 break; 4812 } 4813 } 4814 } 4815 } 4816 #endif 4817 4818 } 4819 4820 [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] 4821 public sealed partial class OptionalGroup : pb::IMessage<OptionalGroup> 4822 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 4823 , pb::IBufferMessage 4824 #endif 4825 { 4826 private static readonly pb::MessageParser<OptionalGroup> _parser = new pb::MessageParser<OptionalGroup>(() => new OptionalGroup()); 4827 private pb::UnknownFieldSet _unknownFields; 4828 private int _hasBits0; 4829 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 4830 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 4831 public static pb::MessageParser<OptionalGroup> Parser { get { return _parser; } } 4832 4833 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 4834 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 4835 public static pbr::MessageDescriptor Descriptor { 4836 get { return global::Google.Protobuf.TestProtos.Proto2.TestAllTypes.Descriptor.NestedTypes[1]; } 4837 } 4838 4839 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 4840 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 4841 pbr::MessageDescriptor pb::IMessage.Descriptor { 4842 get { return Descriptor; } 4843 } 4844 4845 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 4846 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] OptionalGroup()4847 public OptionalGroup() { 4848 OnConstruction(); 4849 } 4850 OnConstruction()4851 partial void OnConstruction(); 4852 4853 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 4854 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] OptionalGroup(OptionalGroup other)4855 public OptionalGroup(OptionalGroup other) : this() { 4856 _hasBits0 = other._hasBits0; 4857 a_ = other.a_; 4858 _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); 4859 } 4860 4861 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 4862 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] Clone()4863 public OptionalGroup Clone() { 4864 return new OptionalGroup(this); 4865 } 4866 4867 /// <summary>Field number for the "a" field.</summary> 4868 public const int AFieldNumber = 17; 4869 private readonly static int ADefaultValue = 0; 4870 4871 private int a_; 4872 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 4873 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 4874 public int A { 4875 get { if ((_hasBits0 & 1) != 0) { return a_; } else { return ADefaultValue; } } 4876 set { 4877 _hasBits0 |= 1; 4878 a_ = value; 4879 } 4880 } 4881 /// <summary>Gets whether the "a" field is set</summary> 4882 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 4883 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 4884 public bool HasA { 4885 get { return (_hasBits0 & 1) != 0; } 4886 } 4887 /// <summary>Clears the value of the "a" field</summary> 4888 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 4889 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] ClearA()4890 public void ClearA() { 4891 _hasBits0 &= ~1; 4892 } 4893 4894 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 4895 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] Equals(object other)4896 public override bool Equals(object other) { 4897 return Equals(other as OptionalGroup); 4898 } 4899 4900 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 4901 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] Equals(OptionalGroup other)4902 public bool Equals(OptionalGroup other) { 4903 if (ReferenceEquals(other, null)) { 4904 return false; 4905 } 4906 if (ReferenceEquals(other, this)) { 4907 return true; 4908 } 4909 if (A != other.A) return false; 4910 return Equals(_unknownFields, other._unknownFields); 4911 } 4912 4913 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 4914 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] GetHashCode()4915 public override int GetHashCode() { 4916 int hash = 1; 4917 if (HasA) hash ^= A.GetHashCode(); 4918 if (_unknownFields != null) { 4919 hash ^= _unknownFields.GetHashCode(); 4920 } 4921 return hash; 4922 } 4923 4924 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 4925 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] ToString()4926 public override string ToString() { 4927 return pb::JsonFormatter.ToDiagnosticString(this); 4928 } 4929 4930 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 4931 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] WriteTo(pb::CodedOutputStream output)4932 public void WriteTo(pb::CodedOutputStream output) { 4933 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 4934 output.WriteRawMessage(this); 4935 #else 4936 if (HasA) { 4937 output.WriteRawTag(136, 1); 4938 output.WriteInt32(A); 4939 } 4940 if (_unknownFields != null) { 4941 _unknownFields.WriteTo(output); 4942 } 4943 #endif 4944 } 4945 4946 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 4947 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 4948 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] IBufferMessage.InternalWriteTo(ref pb::WriteContext output)4949 void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { 4950 if (HasA) { 4951 output.WriteRawTag(136, 1); 4952 output.WriteInt32(A); 4953 } 4954 if (_unknownFields != null) { 4955 _unknownFields.WriteTo(ref output); 4956 } 4957 } 4958 #endif 4959 4960 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 4961 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] CalculateSize()4962 public int CalculateSize() { 4963 int size = 0; 4964 if (HasA) { 4965 size += 2 + pb::CodedOutputStream.ComputeInt32Size(A); 4966 } 4967 if (_unknownFields != null) { 4968 size += _unknownFields.CalculateSize(); 4969 } 4970 return size; 4971 } 4972 4973 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 4974 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] MergeFrom(OptionalGroup other)4975 public void MergeFrom(OptionalGroup other) { 4976 if (other == null) { 4977 return; 4978 } 4979 if (other.HasA) { 4980 A = other.A; 4981 } 4982 _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); 4983 } 4984 4985 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 4986 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] MergeFrom(pb::CodedInputStream input)4987 public void MergeFrom(pb::CodedInputStream input) { 4988 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 4989 input.ReadRawMessage(this); 4990 #else 4991 uint tag; 4992 while ((tag = input.ReadTag()) != 0) { 4993 if ((tag & 7) == 4) { 4994 // Abort on any end group tag. 4995 return; 4996 } 4997 switch(tag) { 4998 default: 4999 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); 5000 break; 5001 case 136: { 5002 A = input.ReadInt32(); 5003 break; 5004 } 5005 } 5006 } 5007 #endif 5008 } 5009 5010 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 5011 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 5012 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] IBufferMessage.InternalMergeFrom(ref pb::ParseContext input)5013 void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { 5014 uint tag; 5015 while ((tag = input.ReadTag()) != 0) { 5016 if ((tag & 7) == 4) { 5017 // Abort on any end group tag. 5018 return; 5019 } 5020 switch(tag) { 5021 default: 5022 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); 5023 break; 5024 case 136: { 5025 A = input.ReadInt32(); 5026 break; 5027 } 5028 } 5029 } 5030 } 5031 #endif 5032 5033 } 5034 5035 [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] 5036 public sealed partial class RepeatedGroup : pb::IMessage<RepeatedGroup> 5037 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 5038 , pb::IBufferMessage 5039 #endif 5040 { 5041 private static readonly pb::MessageParser<RepeatedGroup> _parser = new pb::MessageParser<RepeatedGroup>(() => new RepeatedGroup()); 5042 private pb::UnknownFieldSet _unknownFields; 5043 private int _hasBits0; 5044 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 5045 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 5046 public static pb::MessageParser<RepeatedGroup> Parser { get { return _parser; } } 5047 5048 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 5049 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 5050 public static pbr::MessageDescriptor Descriptor { 5051 get { return global::Google.Protobuf.TestProtos.Proto2.TestAllTypes.Descriptor.NestedTypes[2]; } 5052 } 5053 5054 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 5055 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 5056 pbr::MessageDescriptor pb::IMessage.Descriptor { 5057 get { return Descriptor; } 5058 } 5059 5060 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 5061 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] RepeatedGroup()5062 public RepeatedGroup() { 5063 OnConstruction(); 5064 } 5065 OnConstruction()5066 partial void OnConstruction(); 5067 5068 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 5069 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] RepeatedGroup(RepeatedGroup other)5070 public RepeatedGroup(RepeatedGroup other) : this() { 5071 _hasBits0 = other._hasBits0; 5072 a_ = other.a_; 5073 _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); 5074 } 5075 5076 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 5077 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] Clone()5078 public RepeatedGroup Clone() { 5079 return new RepeatedGroup(this); 5080 } 5081 5082 /// <summary>Field number for the "a" field.</summary> 5083 public const int AFieldNumber = 47; 5084 private readonly static int ADefaultValue = 0; 5085 5086 private int a_; 5087 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 5088 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 5089 public int A { 5090 get { if ((_hasBits0 & 1) != 0) { return a_; } else { return ADefaultValue; } } 5091 set { 5092 _hasBits0 |= 1; 5093 a_ = value; 5094 } 5095 } 5096 /// <summary>Gets whether the "a" field is set</summary> 5097 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 5098 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 5099 public bool HasA { 5100 get { return (_hasBits0 & 1) != 0; } 5101 } 5102 /// <summary>Clears the value of the "a" field</summary> 5103 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 5104 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] ClearA()5105 public void ClearA() { 5106 _hasBits0 &= ~1; 5107 } 5108 5109 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 5110 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] Equals(object other)5111 public override bool Equals(object other) { 5112 return Equals(other as RepeatedGroup); 5113 } 5114 5115 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 5116 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] Equals(RepeatedGroup other)5117 public bool Equals(RepeatedGroup other) { 5118 if (ReferenceEquals(other, null)) { 5119 return false; 5120 } 5121 if (ReferenceEquals(other, this)) { 5122 return true; 5123 } 5124 if (A != other.A) return false; 5125 return Equals(_unknownFields, other._unknownFields); 5126 } 5127 5128 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 5129 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] GetHashCode()5130 public override int GetHashCode() { 5131 int hash = 1; 5132 if (HasA) hash ^= A.GetHashCode(); 5133 if (_unknownFields != null) { 5134 hash ^= _unknownFields.GetHashCode(); 5135 } 5136 return hash; 5137 } 5138 5139 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 5140 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] ToString()5141 public override string ToString() { 5142 return pb::JsonFormatter.ToDiagnosticString(this); 5143 } 5144 5145 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 5146 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] WriteTo(pb::CodedOutputStream output)5147 public void WriteTo(pb::CodedOutputStream output) { 5148 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 5149 output.WriteRawMessage(this); 5150 #else 5151 if (HasA) { 5152 output.WriteRawTag(248, 2); 5153 output.WriteInt32(A); 5154 } 5155 if (_unknownFields != null) { 5156 _unknownFields.WriteTo(output); 5157 } 5158 #endif 5159 } 5160 5161 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 5162 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 5163 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] IBufferMessage.InternalWriteTo(ref pb::WriteContext output)5164 void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { 5165 if (HasA) { 5166 output.WriteRawTag(248, 2); 5167 output.WriteInt32(A); 5168 } 5169 if (_unknownFields != null) { 5170 _unknownFields.WriteTo(ref output); 5171 } 5172 } 5173 #endif 5174 5175 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 5176 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] CalculateSize()5177 public int CalculateSize() { 5178 int size = 0; 5179 if (HasA) { 5180 size += 2 + pb::CodedOutputStream.ComputeInt32Size(A); 5181 } 5182 if (_unknownFields != null) { 5183 size += _unknownFields.CalculateSize(); 5184 } 5185 return size; 5186 } 5187 5188 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 5189 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] MergeFrom(RepeatedGroup other)5190 public void MergeFrom(RepeatedGroup other) { 5191 if (other == null) { 5192 return; 5193 } 5194 if (other.HasA) { 5195 A = other.A; 5196 } 5197 _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); 5198 } 5199 5200 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 5201 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] MergeFrom(pb::CodedInputStream input)5202 public void MergeFrom(pb::CodedInputStream input) { 5203 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 5204 input.ReadRawMessage(this); 5205 #else 5206 uint tag; 5207 while ((tag = input.ReadTag()) != 0) { 5208 if ((tag & 7) == 4) { 5209 // Abort on any end group tag. 5210 return; 5211 } 5212 switch(tag) { 5213 default: 5214 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); 5215 break; 5216 case 376: { 5217 A = input.ReadInt32(); 5218 break; 5219 } 5220 } 5221 } 5222 #endif 5223 } 5224 5225 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 5226 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 5227 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] IBufferMessage.InternalMergeFrom(ref pb::ParseContext input)5228 void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { 5229 uint tag; 5230 while ((tag = input.ReadTag()) != 0) { 5231 if ((tag & 7) == 4) { 5232 // Abort on any end group tag. 5233 return; 5234 } 5235 switch(tag) { 5236 default: 5237 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); 5238 break; 5239 case 376: { 5240 A = input.ReadInt32(); 5241 break; 5242 } 5243 } 5244 } 5245 } 5246 #endif 5247 5248 } 5249 5250 } 5251 #endregion 5252 5253 } 5254 5255 /// <summary> 5256 /// This proto includes a recursively nested message. 5257 /// </summary> 5258 [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] 5259 public sealed partial class NestedTestAllTypes : pb::IMessage<NestedTestAllTypes> 5260 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 5261 , pb::IBufferMessage 5262 #endif 5263 { 5264 private static readonly pb::MessageParser<NestedTestAllTypes> _parser = new pb::MessageParser<NestedTestAllTypes>(() => new NestedTestAllTypes()); 5265 private pb::UnknownFieldSet _unknownFields; 5266 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 5267 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 5268 public static pb::MessageParser<NestedTestAllTypes> Parser { get { return _parser; } } 5269 5270 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 5271 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 5272 public static pbr::MessageDescriptor Descriptor { 5273 get { return global::Google.Protobuf.TestProtos.Proto2.UnittestReflection.Descriptor.MessageTypes[1]; } 5274 } 5275 5276 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 5277 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 5278 pbr::MessageDescriptor pb::IMessage.Descriptor { 5279 get { return Descriptor; } 5280 } 5281 5282 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 5283 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] NestedTestAllTypes()5284 public NestedTestAllTypes() { 5285 OnConstruction(); 5286 } 5287 OnConstruction()5288 partial void OnConstruction(); 5289 5290 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 5291 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] NestedTestAllTypes(NestedTestAllTypes other)5292 public NestedTestAllTypes(NestedTestAllTypes other) : this() { 5293 child_ = other.child_ != null ? other.child_.Clone() : null; 5294 payload_ = other.payload_ != null ? other.payload_.Clone() : null; 5295 repeatedChild_ = other.repeatedChild_.Clone(); 5296 _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); 5297 } 5298 5299 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 5300 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] Clone()5301 public NestedTestAllTypes Clone() { 5302 return new NestedTestAllTypes(this); 5303 } 5304 5305 /// <summary>Field number for the "child" field.</summary> 5306 public const int ChildFieldNumber = 1; 5307 private global::Google.Protobuf.TestProtos.Proto2.NestedTestAllTypes child_; 5308 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 5309 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 5310 public global::Google.Protobuf.TestProtos.Proto2.NestedTestAllTypes Child { 5311 get { return child_; } 5312 set { 5313 child_ = value; 5314 } 5315 } 5316 5317 /// <summary>Field number for the "payload" field.</summary> 5318 public const int PayloadFieldNumber = 2; 5319 private global::Google.Protobuf.TestProtos.Proto2.TestAllTypes payload_; 5320 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 5321 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 5322 public global::Google.Protobuf.TestProtos.Proto2.TestAllTypes Payload { 5323 get { return payload_; } 5324 set { 5325 payload_ = value; 5326 } 5327 } 5328 5329 /// <summary>Field number for the "repeated_child" field.</summary> 5330 public const int RepeatedChildFieldNumber = 3; 5331 private static readonly pb::FieldCodec<global::Google.Protobuf.TestProtos.Proto2.NestedTestAllTypes> _repeated_repeatedChild_codec 5332 = pb::FieldCodec.ForMessage(26, global::Google.Protobuf.TestProtos.Proto2.NestedTestAllTypes.Parser); 5333 private readonly pbc::RepeatedField<global::Google.Protobuf.TestProtos.Proto2.NestedTestAllTypes> repeatedChild_ = new pbc::RepeatedField<global::Google.Protobuf.TestProtos.Proto2.NestedTestAllTypes>(); 5334 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 5335 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 5336 public pbc::RepeatedField<global::Google.Protobuf.TestProtos.Proto2.NestedTestAllTypes> RepeatedChild { 5337 get { return repeatedChild_; } 5338 } 5339 5340 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 5341 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] Equals(object other)5342 public override bool Equals(object other) { 5343 return Equals(other as NestedTestAllTypes); 5344 } 5345 5346 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 5347 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] Equals(NestedTestAllTypes other)5348 public bool Equals(NestedTestAllTypes other) { 5349 if (ReferenceEquals(other, null)) { 5350 return false; 5351 } 5352 if (ReferenceEquals(other, this)) { 5353 return true; 5354 } 5355 if (!object.Equals(Child, other.Child)) return false; 5356 if (!object.Equals(Payload, other.Payload)) return false; 5357 if(!repeatedChild_.Equals(other.repeatedChild_)) return false; 5358 return Equals(_unknownFields, other._unknownFields); 5359 } 5360 5361 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 5362 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] GetHashCode()5363 public override int GetHashCode() { 5364 int hash = 1; 5365 if (child_ != null) hash ^= Child.GetHashCode(); 5366 if (payload_ != null) hash ^= Payload.GetHashCode(); 5367 hash ^= repeatedChild_.GetHashCode(); 5368 if (_unknownFields != null) { 5369 hash ^= _unknownFields.GetHashCode(); 5370 } 5371 return hash; 5372 } 5373 5374 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 5375 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] ToString()5376 public override string ToString() { 5377 return pb::JsonFormatter.ToDiagnosticString(this); 5378 } 5379 5380 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 5381 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] WriteTo(pb::CodedOutputStream output)5382 public void WriteTo(pb::CodedOutputStream output) { 5383 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 5384 output.WriteRawMessage(this); 5385 #else 5386 if (child_ != null) { 5387 output.WriteRawTag(10); 5388 output.WriteMessage(Child); 5389 } 5390 if (payload_ != null) { 5391 output.WriteRawTag(18); 5392 output.WriteMessage(Payload); 5393 } 5394 repeatedChild_.WriteTo(output, _repeated_repeatedChild_codec); 5395 if (_unknownFields != null) { 5396 _unknownFields.WriteTo(output); 5397 } 5398 #endif 5399 } 5400 5401 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 5402 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 5403 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] IBufferMessage.InternalWriteTo(ref pb::WriteContext output)5404 void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { 5405 if (child_ != null) { 5406 output.WriteRawTag(10); 5407 output.WriteMessage(Child); 5408 } 5409 if (payload_ != null) { 5410 output.WriteRawTag(18); 5411 output.WriteMessage(Payload); 5412 } 5413 repeatedChild_.WriteTo(ref output, _repeated_repeatedChild_codec); 5414 if (_unknownFields != null) { 5415 _unknownFields.WriteTo(ref output); 5416 } 5417 } 5418 #endif 5419 5420 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 5421 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] CalculateSize()5422 public int CalculateSize() { 5423 int size = 0; 5424 if (child_ != null) { 5425 size += 1 + pb::CodedOutputStream.ComputeMessageSize(Child); 5426 } 5427 if (payload_ != null) { 5428 size += 1 + pb::CodedOutputStream.ComputeMessageSize(Payload); 5429 } 5430 size += repeatedChild_.CalculateSize(_repeated_repeatedChild_codec); 5431 if (_unknownFields != null) { 5432 size += _unknownFields.CalculateSize(); 5433 } 5434 return size; 5435 } 5436 5437 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 5438 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] MergeFrom(NestedTestAllTypes other)5439 public void MergeFrom(NestedTestAllTypes other) { 5440 if (other == null) { 5441 return; 5442 } 5443 if (other.child_ != null) { 5444 if (child_ == null) { 5445 Child = new global::Google.Protobuf.TestProtos.Proto2.NestedTestAllTypes(); 5446 } 5447 Child.MergeFrom(other.Child); 5448 } 5449 if (other.payload_ != null) { 5450 if (payload_ == null) { 5451 Payload = new global::Google.Protobuf.TestProtos.Proto2.TestAllTypes(); 5452 } 5453 Payload.MergeFrom(other.Payload); 5454 } 5455 repeatedChild_.Add(other.repeatedChild_); 5456 _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); 5457 } 5458 5459 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 5460 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] MergeFrom(pb::CodedInputStream input)5461 public void MergeFrom(pb::CodedInputStream input) { 5462 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 5463 input.ReadRawMessage(this); 5464 #else 5465 uint tag; 5466 while ((tag = input.ReadTag()) != 0) { 5467 if ((tag & 7) == 4) { 5468 // Abort on any end group tag. 5469 return; 5470 } 5471 switch(tag) { 5472 default: 5473 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); 5474 break; 5475 case 10: { 5476 if (child_ == null) { 5477 Child = new global::Google.Protobuf.TestProtos.Proto2.NestedTestAllTypes(); 5478 } 5479 input.ReadMessage(Child); 5480 break; 5481 } 5482 case 18: { 5483 if (payload_ == null) { 5484 Payload = new global::Google.Protobuf.TestProtos.Proto2.TestAllTypes(); 5485 } 5486 input.ReadMessage(Payload); 5487 break; 5488 } 5489 case 26: { 5490 repeatedChild_.AddEntriesFrom(input, _repeated_repeatedChild_codec); 5491 break; 5492 } 5493 } 5494 } 5495 #endif 5496 } 5497 5498 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 5499 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 5500 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] IBufferMessage.InternalMergeFrom(ref pb::ParseContext input)5501 void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { 5502 uint tag; 5503 while ((tag = input.ReadTag()) != 0) { 5504 if ((tag & 7) == 4) { 5505 // Abort on any end group tag. 5506 return; 5507 } 5508 switch(tag) { 5509 default: 5510 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); 5511 break; 5512 case 10: { 5513 if (child_ == null) { 5514 Child = new global::Google.Protobuf.TestProtos.Proto2.NestedTestAllTypes(); 5515 } 5516 input.ReadMessage(Child); 5517 break; 5518 } 5519 case 18: { 5520 if (payload_ == null) { 5521 Payload = new global::Google.Protobuf.TestProtos.Proto2.TestAllTypes(); 5522 } 5523 input.ReadMessage(Payload); 5524 break; 5525 } 5526 case 26: { 5527 repeatedChild_.AddEntriesFrom(ref input, _repeated_repeatedChild_codec); 5528 break; 5529 } 5530 } 5531 } 5532 } 5533 #endif 5534 5535 } 5536 5537 [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] 5538 public sealed partial class TestDeprecatedFields : pb::IMessage<TestDeprecatedFields> 5539 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 5540 , pb::IBufferMessage 5541 #endif 5542 { 5543 private static readonly pb::MessageParser<TestDeprecatedFields> _parser = new pb::MessageParser<TestDeprecatedFields>(() => new TestDeprecatedFields()); 5544 private pb::UnknownFieldSet _unknownFields; 5545 private int _hasBits0; 5546 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 5547 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 5548 public static pb::MessageParser<TestDeprecatedFields> Parser { get { return _parser; } } 5549 5550 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 5551 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 5552 public static pbr::MessageDescriptor Descriptor { 5553 get { return global::Google.Protobuf.TestProtos.Proto2.UnittestReflection.Descriptor.MessageTypes[2]; } 5554 } 5555 5556 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 5557 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 5558 pbr::MessageDescriptor pb::IMessage.Descriptor { 5559 get { return Descriptor; } 5560 } 5561 5562 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 5563 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] TestDeprecatedFields()5564 public TestDeprecatedFields() { 5565 OnConstruction(); 5566 } 5567 OnConstruction()5568 partial void OnConstruction(); 5569 5570 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 5571 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] TestDeprecatedFields(TestDeprecatedFields other)5572 public TestDeprecatedFields(TestDeprecatedFields other) : this() { 5573 _hasBits0 = other._hasBits0; 5574 deprecatedInt32_ = other.deprecatedInt32_; 5575 switch (other.OneofFieldsCase) { 5576 case OneofFieldsOneofCase.DeprecatedInt32InOneof: 5577 DeprecatedInt32InOneof = other.DeprecatedInt32InOneof; 5578 break; 5579 } 5580 5581 _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); 5582 } 5583 5584 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 5585 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] Clone()5586 public TestDeprecatedFields Clone() { 5587 return new TestDeprecatedFields(this); 5588 } 5589 5590 /// <summary>Field number for the "deprecated_int32" field.</summary> 5591 public const int DeprecatedInt32FieldNumber = 1; 5592 private readonly static int DeprecatedInt32DefaultValue = 0; 5593 5594 private int deprecatedInt32_; 5595 [global::System.ObsoleteAttribute] 5596 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 5597 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 5598 public int DeprecatedInt32 { 5599 get { if ((_hasBits0 & 1) != 0) { return deprecatedInt32_; } else { return DeprecatedInt32DefaultValue; } } 5600 set { 5601 _hasBits0 |= 1; 5602 deprecatedInt32_ = value; 5603 } 5604 } 5605 /// <summary>Gets whether the "deprecated_int32" field is set</summary> 5606 [global::System.ObsoleteAttribute] 5607 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 5608 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 5609 public bool HasDeprecatedInt32 { 5610 get { return (_hasBits0 & 1) != 0; } 5611 } 5612 /// <summary>Clears the value of the "deprecated_int32" field</summary> 5613 [global::System.ObsoleteAttribute] 5614 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 5615 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] ClearDeprecatedInt32()5616 public void ClearDeprecatedInt32() { 5617 _hasBits0 &= ~1; 5618 } 5619 5620 /// <summary>Field number for the "deprecated_int32_in_oneof" field.</summary> 5621 public const int DeprecatedInt32InOneofFieldNumber = 2; 5622 [global::System.ObsoleteAttribute] 5623 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 5624 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 5625 public int DeprecatedInt32InOneof { 5626 get { return HasDeprecatedInt32InOneof ? (int) oneofFields_ : 0; } 5627 set { 5628 oneofFields_ = value; 5629 oneofFieldsCase_ = OneofFieldsOneofCase.DeprecatedInt32InOneof; 5630 } 5631 } 5632 /// <summary>Gets whether the "deprecated_int32_in_oneof" field is set</summary> 5633 [global::System.ObsoleteAttribute] 5634 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 5635 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 5636 public bool HasDeprecatedInt32InOneof { 5637 get { return oneofFieldsCase_ == OneofFieldsOneofCase.DeprecatedInt32InOneof; } 5638 } 5639 /// <summary> Clears the value of the oneof if it's currently set to "deprecated_int32_in_oneof" </summary> 5640 [global::System.ObsoleteAttribute] 5641 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 5642 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] ClearDeprecatedInt32InOneof()5643 public void ClearDeprecatedInt32InOneof() { 5644 if (HasDeprecatedInt32InOneof) { 5645 ClearOneofFields(); 5646 } 5647 } 5648 5649 private object oneofFields_; 5650 /// <summary>Enum of possible cases for the "oneof_fields" oneof.</summary> 5651 public enum OneofFieldsOneofCase { 5652 None = 0, 5653 DeprecatedInt32InOneof = 2, 5654 } 5655 private OneofFieldsOneofCase oneofFieldsCase_ = OneofFieldsOneofCase.None; 5656 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 5657 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 5658 public OneofFieldsOneofCase OneofFieldsCase { 5659 get { return oneofFieldsCase_; } 5660 } 5661 5662 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 5663 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] ClearOneofFields()5664 public void ClearOneofFields() { 5665 oneofFieldsCase_ = OneofFieldsOneofCase.None; 5666 oneofFields_ = null; 5667 } 5668 5669 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 5670 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] Equals(object other)5671 public override bool Equals(object other) { 5672 return Equals(other as TestDeprecatedFields); 5673 } 5674 5675 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 5676 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] Equals(TestDeprecatedFields other)5677 public bool Equals(TestDeprecatedFields other) { 5678 if (ReferenceEquals(other, null)) { 5679 return false; 5680 } 5681 if (ReferenceEquals(other, this)) { 5682 return true; 5683 } 5684 if (DeprecatedInt32 != other.DeprecatedInt32) return false; 5685 if (DeprecatedInt32InOneof != other.DeprecatedInt32InOneof) return false; 5686 if (OneofFieldsCase != other.OneofFieldsCase) return false; 5687 return Equals(_unknownFields, other._unknownFields); 5688 } 5689 5690 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 5691 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] GetHashCode()5692 public override int GetHashCode() { 5693 int hash = 1; 5694 if (HasDeprecatedInt32) hash ^= DeprecatedInt32.GetHashCode(); 5695 if (HasDeprecatedInt32InOneof) hash ^= DeprecatedInt32InOneof.GetHashCode(); 5696 hash ^= (int) oneofFieldsCase_; 5697 if (_unknownFields != null) { 5698 hash ^= _unknownFields.GetHashCode(); 5699 } 5700 return hash; 5701 } 5702 5703 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 5704 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] ToString()5705 public override string ToString() { 5706 return pb::JsonFormatter.ToDiagnosticString(this); 5707 } 5708 5709 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 5710 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] WriteTo(pb::CodedOutputStream output)5711 public void WriteTo(pb::CodedOutputStream output) { 5712 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 5713 output.WriteRawMessage(this); 5714 #else 5715 if (HasDeprecatedInt32) { 5716 output.WriteRawTag(8); 5717 output.WriteInt32(DeprecatedInt32); 5718 } 5719 if (HasDeprecatedInt32InOneof) { 5720 output.WriteRawTag(16); 5721 output.WriteInt32(DeprecatedInt32InOneof); 5722 } 5723 if (_unknownFields != null) { 5724 _unknownFields.WriteTo(output); 5725 } 5726 #endif 5727 } 5728 5729 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 5730 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 5731 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] IBufferMessage.InternalWriteTo(ref pb::WriteContext output)5732 void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { 5733 if (HasDeprecatedInt32) { 5734 output.WriteRawTag(8); 5735 output.WriteInt32(DeprecatedInt32); 5736 } 5737 if (HasDeprecatedInt32InOneof) { 5738 output.WriteRawTag(16); 5739 output.WriteInt32(DeprecatedInt32InOneof); 5740 } 5741 if (_unknownFields != null) { 5742 _unknownFields.WriteTo(ref output); 5743 } 5744 } 5745 #endif 5746 5747 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 5748 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] CalculateSize()5749 public int CalculateSize() { 5750 int size = 0; 5751 if (HasDeprecatedInt32) { 5752 size += 1 + pb::CodedOutputStream.ComputeInt32Size(DeprecatedInt32); 5753 } 5754 if (HasDeprecatedInt32InOneof) { 5755 size += 1 + pb::CodedOutputStream.ComputeInt32Size(DeprecatedInt32InOneof); 5756 } 5757 if (_unknownFields != null) { 5758 size += _unknownFields.CalculateSize(); 5759 } 5760 return size; 5761 } 5762 5763 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 5764 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] MergeFrom(TestDeprecatedFields other)5765 public void MergeFrom(TestDeprecatedFields other) { 5766 if (other == null) { 5767 return; 5768 } 5769 if (other.HasDeprecatedInt32) { 5770 DeprecatedInt32 = other.DeprecatedInt32; 5771 } 5772 switch (other.OneofFieldsCase) { 5773 case OneofFieldsOneofCase.DeprecatedInt32InOneof: 5774 DeprecatedInt32InOneof = other.DeprecatedInt32InOneof; 5775 break; 5776 } 5777 5778 _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); 5779 } 5780 5781 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 5782 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] MergeFrom(pb::CodedInputStream input)5783 public void MergeFrom(pb::CodedInputStream input) { 5784 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 5785 input.ReadRawMessage(this); 5786 #else 5787 uint tag; 5788 while ((tag = input.ReadTag()) != 0) { 5789 if ((tag & 7) == 4) { 5790 // Abort on any end group tag. 5791 return; 5792 } 5793 switch(tag) { 5794 default: 5795 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); 5796 break; 5797 case 8: { 5798 DeprecatedInt32 = input.ReadInt32(); 5799 break; 5800 } 5801 case 16: { 5802 DeprecatedInt32InOneof = input.ReadInt32(); 5803 break; 5804 } 5805 } 5806 } 5807 #endif 5808 } 5809 5810 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 5811 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 5812 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] IBufferMessage.InternalMergeFrom(ref pb::ParseContext input)5813 void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { 5814 uint tag; 5815 while ((tag = input.ReadTag()) != 0) { 5816 if ((tag & 7) == 4) { 5817 // Abort on any end group tag. 5818 return; 5819 } 5820 switch(tag) { 5821 default: 5822 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); 5823 break; 5824 case 8: { 5825 DeprecatedInt32 = input.ReadInt32(); 5826 break; 5827 } 5828 case 16: { 5829 DeprecatedInt32InOneof = input.ReadInt32(); 5830 break; 5831 } 5832 } 5833 } 5834 } 5835 #endif 5836 5837 } 5838 5839 [global::System.ObsoleteAttribute] 5840 [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] 5841 public sealed partial class TestDeprecatedMessage : pb::IMessage<TestDeprecatedMessage> 5842 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 5843 , pb::IBufferMessage 5844 #endif 5845 { 5846 private static readonly pb::MessageParser<TestDeprecatedMessage> _parser = new pb::MessageParser<TestDeprecatedMessage>(() => new TestDeprecatedMessage()); 5847 private pb::UnknownFieldSet _unknownFields; 5848 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 5849 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 5850 public static pb::MessageParser<TestDeprecatedMessage> Parser { get { return _parser; } } 5851 5852 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 5853 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 5854 public static pbr::MessageDescriptor Descriptor { 5855 get { return global::Google.Protobuf.TestProtos.Proto2.UnittestReflection.Descriptor.MessageTypes[3]; } 5856 } 5857 5858 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 5859 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 5860 pbr::MessageDescriptor pb::IMessage.Descriptor { 5861 get { return Descriptor; } 5862 } 5863 5864 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 5865 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] TestDeprecatedMessage()5866 public TestDeprecatedMessage() { 5867 OnConstruction(); 5868 } 5869 OnConstruction()5870 partial void OnConstruction(); 5871 5872 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 5873 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] TestDeprecatedMessage(TestDeprecatedMessage other)5874 public TestDeprecatedMessage(TestDeprecatedMessage other) : this() { 5875 _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); 5876 } 5877 5878 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 5879 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] Clone()5880 public TestDeprecatedMessage Clone() { 5881 return new TestDeprecatedMessage(this); 5882 } 5883 5884 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 5885 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] Equals(object other)5886 public override bool Equals(object other) { 5887 return Equals(other as TestDeprecatedMessage); 5888 } 5889 5890 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 5891 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] Equals(TestDeprecatedMessage other)5892 public bool Equals(TestDeprecatedMessage other) { 5893 if (ReferenceEquals(other, null)) { 5894 return false; 5895 } 5896 if (ReferenceEquals(other, this)) { 5897 return true; 5898 } 5899 return Equals(_unknownFields, other._unknownFields); 5900 } 5901 5902 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 5903 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] GetHashCode()5904 public override int GetHashCode() { 5905 int hash = 1; 5906 if (_unknownFields != null) { 5907 hash ^= _unknownFields.GetHashCode(); 5908 } 5909 return hash; 5910 } 5911 5912 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 5913 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] ToString()5914 public override string ToString() { 5915 return pb::JsonFormatter.ToDiagnosticString(this); 5916 } 5917 5918 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 5919 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] WriteTo(pb::CodedOutputStream output)5920 public void WriteTo(pb::CodedOutputStream output) { 5921 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 5922 output.WriteRawMessage(this); 5923 #else 5924 if (_unknownFields != null) { 5925 _unknownFields.WriteTo(output); 5926 } 5927 #endif 5928 } 5929 5930 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 5931 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 5932 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] IBufferMessage.InternalWriteTo(ref pb::WriteContext output)5933 void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { 5934 if (_unknownFields != null) { 5935 _unknownFields.WriteTo(ref output); 5936 } 5937 } 5938 #endif 5939 5940 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 5941 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] CalculateSize()5942 public int CalculateSize() { 5943 int size = 0; 5944 if (_unknownFields != null) { 5945 size += _unknownFields.CalculateSize(); 5946 } 5947 return size; 5948 } 5949 5950 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 5951 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] MergeFrom(TestDeprecatedMessage other)5952 public void MergeFrom(TestDeprecatedMessage other) { 5953 if (other == null) { 5954 return; 5955 } 5956 _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); 5957 } 5958 5959 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 5960 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] MergeFrom(pb::CodedInputStream input)5961 public void MergeFrom(pb::CodedInputStream input) { 5962 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 5963 input.ReadRawMessage(this); 5964 #else 5965 uint tag; 5966 while ((tag = input.ReadTag()) != 0) { 5967 if ((tag & 7) == 4) { 5968 // Abort on any end group tag. 5969 return; 5970 } 5971 switch(tag) { 5972 default: 5973 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); 5974 break; 5975 } 5976 } 5977 #endif 5978 } 5979 5980 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 5981 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 5982 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] IBufferMessage.InternalMergeFrom(ref pb::ParseContext input)5983 void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { 5984 uint tag; 5985 while ((tag = input.ReadTag()) != 0) { 5986 if ((tag & 7) == 4) { 5987 // Abort on any end group tag. 5988 return; 5989 } 5990 switch(tag) { 5991 default: 5992 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); 5993 break; 5994 } 5995 } 5996 } 5997 #endif 5998 5999 } 6000 6001 /// <summary> 6002 /// Define these after TestAllTypes to make sure the compiler can handle 6003 /// that. 6004 /// </summary> 6005 [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] 6006 public sealed partial class ForeignMessage : pb::IMessage<ForeignMessage> 6007 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 6008 , pb::IBufferMessage 6009 #endif 6010 { 6011 private static readonly pb::MessageParser<ForeignMessage> _parser = new pb::MessageParser<ForeignMessage>(() => new ForeignMessage()); 6012 private pb::UnknownFieldSet _unknownFields; 6013 private int _hasBits0; 6014 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 6015 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 6016 public static pb::MessageParser<ForeignMessage> Parser { get { return _parser; } } 6017 6018 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 6019 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 6020 public static pbr::MessageDescriptor Descriptor { 6021 get { return global::Google.Protobuf.TestProtos.Proto2.UnittestReflection.Descriptor.MessageTypes[4]; } 6022 } 6023 6024 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 6025 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 6026 pbr::MessageDescriptor pb::IMessage.Descriptor { 6027 get { return Descriptor; } 6028 } 6029 6030 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 6031 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] ForeignMessage()6032 public ForeignMessage() { 6033 OnConstruction(); 6034 } 6035 OnConstruction()6036 partial void OnConstruction(); 6037 6038 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 6039 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] ForeignMessage(ForeignMessage other)6040 public ForeignMessage(ForeignMessage other) : this() { 6041 _hasBits0 = other._hasBits0; 6042 c_ = other.c_; 6043 d_ = other.d_; 6044 _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); 6045 } 6046 6047 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 6048 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] Clone()6049 public ForeignMessage Clone() { 6050 return new ForeignMessage(this); 6051 } 6052 6053 /// <summary>Field number for the "c" field.</summary> 6054 public const int CFieldNumber = 1; 6055 private readonly static int CDefaultValue = 0; 6056 6057 private int c_; 6058 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 6059 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 6060 public int C { 6061 get { if ((_hasBits0 & 1) != 0) { return c_; } else { return CDefaultValue; } } 6062 set { 6063 _hasBits0 |= 1; 6064 c_ = value; 6065 } 6066 } 6067 /// <summary>Gets whether the "c" field is set</summary> 6068 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 6069 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 6070 public bool HasC { 6071 get { return (_hasBits0 & 1) != 0; } 6072 } 6073 /// <summary>Clears the value of the "c" field</summary> 6074 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 6075 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] ClearC()6076 public void ClearC() { 6077 _hasBits0 &= ~1; 6078 } 6079 6080 /// <summary>Field number for the "d" field.</summary> 6081 public const int DFieldNumber = 2; 6082 private readonly static int DDefaultValue = 0; 6083 6084 private int d_; 6085 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 6086 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 6087 public int D { 6088 get { if ((_hasBits0 & 2) != 0) { return d_; } else { return DDefaultValue; } } 6089 set { 6090 _hasBits0 |= 2; 6091 d_ = value; 6092 } 6093 } 6094 /// <summary>Gets whether the "d" field is set</summary> 6095 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 6096 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 6097 public bool HasD { 6098 get { return (_hasBits0 & 2) != 0; } 6099 } 6100 /// <summary>Clears the value of the "d" field</summary> 6101 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 6102 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] ClearD()6103 public void ClearD() { 6104 _hasBits0 &= ~2; 6105 } 6106 6107 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 6108 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] Equals(object other)6109 public override bool Equals(object other) { 6110 return Equals(other as ForeignMessage); 6111 } 6112 6113 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 6114 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] Equals(ForeignMessage other)6115 public bool Equals(ForeignMessage other) { 6116 if (ReferenceEquals(other, null)) { 6117 return false; 6118 } 6119 if (ReferenceEquals(other, this)) { 6120 return true; 6121 } 6122 if (C != other.C) return false; 6123 if (D != other.D) return false; 6124 return Equals(_unknownFields, other._unknownFields); 6125 } 6126 6127 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 6128 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] GetHashCode()6129 public override int GetHashCode() { 6130 int hash = 1; 6131 if (HasC) hash ^= C.GetHashCode(); 6132 if (HasD) hash ^= D.GetHashCode(); 6133 if (_unknownFields != null) { 6134 hash ^= _unknownFields.GetHashCode(); 6135 } 6136 return hash; 6137 } 6138 6139 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 6140 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] ToString()6141 public override string ToString() { 6142 return pb::JsonFormatter.ToDiagnosticString(this); 6143 } 6144 6145 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 6146 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] WriteTo(pb::CodedOutputStream output)6147 public void WriteTo(pb::CodedOutputStream output) { 6148 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 6149 output.WriteRawMessage(this); 6150 #else 6151 if (HasC) { 6152 output.WriteRawTag(8); 6153 output.WriteInt32(C); 6154 } 6155 if (HasD) { 6156 output.WriteRawTag(16); 6157 output.WriteInt32(D); 6158 } 6159 if (_unknownFields != null) { 6160 _unknownFields.WriteTo(output); 6161 } 6162 #endif 6163 } 6164 6165 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 6166 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 6167 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] IBufferMessage.InternalWriteTo(ref pb::WriteContext output)6168 void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { 6169 if (HasC) { 6170 output.WriteRawTag(8); 6171 output.WriteInt32(C); 6172 } 6173 if (HasD) { 6174 output.WriteRawTag(16); 6175 output.WriteInt32(D); 6176 } 6177 if (_unknownFields != null) { 6178 _unknownFields.WriteTo(ref output); 6179 } 6180 } 6181 #endif 6182 6183 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 6184 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] CalculateSize()6185 public int CalculateSize() { 6186 int size = 0; 6187 if (HasC) { 6188 size += 1 + pb::CodedOutputStream.ComputeInt32Size(C); 6189 } 6190 if (HasD) { 6191 size += 1 + pb::CodedOutputStream.ComputeInt32Size(D); 6192 } 6193 if (_unknownFields != null) { 6194 size += _unknownFields.CalculateSize(); 6195 } 6196 return size; 6197 } 6198 6199 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 6200 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] MergeFrom(ForeignMessage other)6201 public void MergeFrom(ForeignMessage other) { 6202 if (other == null) { 6203 return; 6204 } 6205 if (other.HasC) { 6206 C = other.C; 6207 } 6208 if (other.HasD) { 6209 D = other.D; 6210 } 6211 _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); 6212 } 6213 6214 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 6215 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] MergeFrom(pb::CodedInputStream input)6216 public void MergeFrom(pb::CodedInputStream input) { 6217 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 6218 input.ReadRawMessage(this); 6219 #else 6220 uint tag; 6221 while ((tag = input.ReadTag()) != 0) { 6222 if ((tag & 7) == 4) { 6223 // Abort on any end group tag. 6224 return; 6225 } 6226 switch(tag) { 6227 default: 6228 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); 6229 break; 6230 case 8: { 6231 C = input.ReadInt32(); 6232 break; 6233 } 6234 case 16: { 6235 D = input.ReadInt32(); 6236 break; 6237 } 6238 } 6239 } 6240 #endif 6241 } 6242 6243 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 6244 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 6245 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] IBufferMessage.InternalMergeFrom(ref pb::ParseContext input)6246 void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { 6247 uint tag; 6248 while ((tag = input.ReadTag()) != 0) { 6249 if ((tag & 7) == 4) { 6250 // Abort on any end group tag. 6251 return; 6252 } 6253 switch(tag) { 6254 default: 6255 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); 6256 break; 6257 case 8: { 6258 C = input.ReadInt32(); 6259 break; 6260 } 6261 case 16: { 6262 D = input.ReadInt32(); 6263 break; 6264 } 6265 } 6266 } 6267 } 6268 #endif 6269 6270 } 6271 6272 [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] 6273 public sealed partial class TestReservedFields : pb::IMessage<TestReservedFields> 6274 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 6275 , pb::IBufferMessage 6276 #endif 6277 { 6278 private static readonly pb::MessageParser<TestReservedFields> _parser = new pb::MessageParser<TestReservedFields>(() => new TestReservedFields()); 6279 private pb::UnknownFieldSet _unknownFields; 6280 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 6281 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 6282 public static pb::MessageParser<TestReservedFields> Parser { get { return _parser; } } 6283 6284 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 6285 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 6286 public static pbr::MessageDescriptor Descriptor { 6287 get { return global::Google.Protobuf.TestProtos.Proto2.UnittestReflection.Descriptor.MessageTypes[5]; } 6288 } 6289 6290 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 6291 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 6292 pbr::MessageDescriptor pb::IMessage.Descriptor { 6293 get { return Descriptor; } 6294 } 6295 6296 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 6297 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] TestReservedFields()6298 public TestReservedFields() { 6299 OnConstruction(); 6300 } 6301 OnConstruction()6302 partial void OnConstruction(); 6303 6304 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 6305 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] TestReservedFields(TestReservedFields other)6306 public TestReservedFields(TestReservedFields other) : this() { 6307 _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); 6308 } 6309 6310 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 6311 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] Clone()6312 public TestReservedFields Clone() { 6313 return new TestReservedFields(this); 6314 } 6315 6316 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 6317 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] Equals(object other)6318 public override bool Equals(object other) { 6319 return Equals(other as TestReservedFields); 6320 } 6321 6322 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 6323 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] Equals(TestReservedFields other)6324 public bool Equals(TestReservedFields other) { 6325 if (ReferenceEquals(other, null)) { 6326 return false; 6327 } 6328 if (ReferenceEquals(other, this)) { 6329 return true; 6330 } 6331 return Equals(_unknownFields, other._unknownFields); 6332 } 6333 6334 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 6335 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] GetHashCode()6336 public override int GetHashCode() { 6337 int hash = 1; 6338 if (_unknownFields != null) { 6339 hash ^= _unknownFields.GetHashCode(); 6340 } 6341 return hash; 6342 } 6343 6344 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 6345 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] ToString()6346 public override string ToString() { 6347 return pb::JsonFormatter.ToDiagnosticString(this); 6348 } 6349 6350 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 6351 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] WriteTo(pb::CodedOutputStream output)6352 public void WriteTo(pb::CodedOutputStream output) { 6353 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 6354 output.WriteRawMessage(this); 6355 #else 6356 if (_unknownFields != null) { 6357 _unknownFields.WriteTo(output); 6358 } 6359 #endif 6360 } 6361 6362 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 6363 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 6364 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] IBufferMessage.InternalWriteTo(ref pb::WriteContext output)6365 void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { 6366 if (_unknownFields != null) { 6367 _unknownFields.WriteTo(ref output); 6368 } 6369 } 6370 #endif 6371 6372 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 6373 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] CalculateSize()6374 public int CalculateSize() { 6375 int size = 0; 6376 if (_unknownFields != null) { 6377 size += _unknownFields.CalculateSize(); 6378 } 6379 return size; 6380 } 6381 6382 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 6383 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] MergeFrom(TestReservedFields other)6384 public void MergeFrom(TestReservedFields other) { 6385 if (other == null) { 6386 return; 6387 } 6388 _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); 6389 } 6390 6391 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 6392 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] MergeFrom(pb::CodedInputStream input)6393 public void MergeFrom(pb::CodedInputStream input) { 6394 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 6395 input.ReadRawMessage(this); 6396 #else 6397 uint tag; 6398 while ((tag = input.ReadTag()) != 0) { 6399 if ((tag & 7) == 4) { 6400 // Abort on any end group tag. 6401 return; 6402 } 6403 switch(tag) { 6404 default: 6405 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); 6406 break; 6407 } 6408 } 6409 #endif 6410 } 6411 6412 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 6413 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 6414 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] IBufferMessage.InternalMergeFrom(ref pb::ParseContext input)6415 void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { 6416 uint tag; 6417 while ((tag = input.ReadTag()) != 0) { 6418 if ((tag & 7) == 4) { 6419 // Abort on any end group tag. 6420 return; 6421 } 6422 switch(tag) { 6423 default: 6424 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); 6425 break; 6426 } 6427 } 6428 } 6429 #endif 6430 6431 } 6432 6433 [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] 6434 public sealed partial class TestAllExtensions : pb::IExtendableMessage<TestAllExtensions> 6435 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 6436 , pb::IBufferMessage 6437 #endif 6438 { 6439 private static readonly pb::MessageParser<TestAllExtensions> _parser = new pb::MessageParser<TestAllExtensions>(() => new TestAllExtensions()); 6440 private pb::UnknownFieldSet _unknownFields; 6441 private pb::ExtensionSet<TestAllExtensions> _extensions; 6442 private pb::ExtensionSet<TestAllExtensions> _Extensions { get { return _extensions; } } 6443 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 6444 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 6445 public static pb::MessageParser<TestAllExtensions> Parser { get { return _parser; } } 6446 6447 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 6448 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 6449 public static pbr::MessageDescriptor Descriptor { 6450 get { return global::Google.Protobuf.TestProtos.Proto2.UnittestReflection.Descriptor.MessageTypes[6]; } 6451 } 6452 6453 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 6454 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 6455 pbr::MessageDescriptor pb::IMessage.Descriptor { 6456 get { return Descriptor; } 6457 } 6458 6459 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 6460 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] TestAllExtensions()6461 public TestAllExtensions() { 6462 OnConstruction(); 6463 } 6464 OnConstruction()6465 partial void OnConstruction(); 6466 6467 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 6468 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] TestAllExtensions(TestAllExtensions other)6469 public TestAllExtensions(TestAllExtensions other) : this() { 6470 _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); 6471 _extensions = pb::ExtensionSet.Clone(other._extensions); 6472 } 6473 6474 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 6475 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] Clone()6476 public TestAllExtensions Clone() { 6477 return new TestAllExtensions(this); 6478 } 6479 6480 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 6481 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] Equals(object other)6482 public override bool Equals(object other) { 6483 return Equals(other as TestAllExtensions); 6484 } 6485 6486 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 6487 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] Equals(TestAllExtensions other)6488 public bool Equals(TestAllExtensions other) { 6489 if (ReferenceEquals(other, null)) { 6490 return false; 6491 } 6492 if (ReferenceEquals(other, this)) { 6493 return true; 6494 } 6495 if (!Equals(_extensions, other._extensions)) { 6496 return false; 6497 } 6498 return Equals(_unknownFields, other._unknownFields); 6499 } 6500 6501 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 6502 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] GetHashCode()6503 public override int GetHashCode() { 6504 int hash = 1; 6505 if (_extensions != null) { 6506 hash ^= _extensions.GetHashCode(); 6507 } 6508 if (_unknownFields != null) { 6509 hash ^= _unknownFields.GetHashCode(); 6510 } 6511 return hash; 6512 } 6513 6514 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 6515 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] ToString()6516 public override string ToString() { 6517 return pb::JsonFormatter.ToDiagnosticString(this); 6518 } 6519 6520 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 6521 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] WriteTo(pb::CodedOutputStream output)6522 public void WriteTo(pb::CodedOutputStream output) { 6523 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 6524 output.WriteRawMessage(this); 6525 #else 6526 if (_extensions != null) { 6527 _extensions.WriteTo(output); 6528 } 6529 if (_unknownFields != null) { 6530 _unknownFields.WriteTo(output); 6531 } 6532 #endif 6533 } 6534 6535 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 6536 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 6537 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] IBufferMessage.InternalWriteTo(ref pb::WriteContext output)6538 void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { 6539 if (_extensions != null) { 6540 _extensions.WriteTo(ref output); 6541 } 6542 if (_unknownFields != null) { 6543 _unknownFields.WriteTo(ref output); 6544 } 6545 } 6546 #endif 6547 6548 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 6549 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] CalculateSize()6550 public int CalculateSize() { 6551 int size = 0; 6552 if (_extensions != null) { 6553 size += _extensions.CalculateSize(); 6554 } 6555 if (_unknownFields != null) { 6556 size += _unknownFields.CalculateSize(); 6557 } 6558 return size; 6559 } 6560 6561 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 6562 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] MergeFrom(TestAllExtensions other)6563 public void MergeFrom(TestAllExtensions other) { 6564 if (other == null) { 6565 return; 6566 } 6567 pb::ExtensionSet.MergeFrom(ref _extensions, other._extensions); 6568 _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); 6569 } 6570 6571 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 6572 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] MergeFrom(pb::CodedInputStream input)6573 public void MergeFrom(pb::CodedInputStream input) { 6574 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 6575 input.ReadRawMessage(this); 6576 #else 6577 uint tag; 6578 while ((tag = input.ReadTag()) != 0) { 6579 if ((tag & 7) == 4) { 6580 // Abort on any end group tag. 6581 return; 6582 } 6583 switch(tag) { 6584 default: 6585 if (!pb::ExtensionSet.TryMergeFieldFrom(ref _extensions, input)) { 6586 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); 6587 } 6588 break; 6589 } 6590 } 6591 #endif 6592 } 6593 6594 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 6595 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 6596 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] IBufferMessage.InternalMergeFrom(ref pb::ParseContext input)6597 void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { 6598 uint tag; 6599 while ((tag = input.ReadTag()) != 0) { 6600 if ((tag & 7) == 4) { 6601 // Abort on any end group tag. 6602 return; 6603 } 6604 switch(tag) { 6605 default: 6606 if (!pb::ExtensionSet.TryMergeFieldFrom(ref _extensions, ref input)) { 6607 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); 6608 } 6609 break; 6610 } 6611 } 6612 } 6613 #endif 6614 GetExtension(pb::Extension<TestAllExtensions, TValue> extension)6615 public TValue GetExtension<TValue>(pb::Extension<TestAllExtensions, TValue> extension) { 6616 return pb::ExtensionSet.Get(ref _extensions, extension); 6617 } GetExtension(pb::RepeatedExtension<TestAllExtensions, TValue> extension)6618 public pbc::RepeatedField<TValue> GetExtension<TValue>(pb::RepeatedExtension<TestAllExtensions, TValue> extension) { 6619 return pb::ExtensionSet.Get(ref _extensions, extension); 6620 } GetOrInitializeExtension(pb::RepeatedExtension<TestAllExtensions, TValue> extension)6621 public pbc::RepeatedField<TValue> GetOrInitializeExtension<TValue>(pb::RepeatedExtension<TestAllExtensions, TValue> extension) { 6622 return pb::ExtensionSet.GetOrInitialize(ref _extensions, extension); 6623 } SetExtension(pb::Extension<TestAllExtensions, TValue> extension, TValue value)6624 public void SetExtension<TValue>(pb::Extension<TestAllExtensions, TValue> extension, TValue value) { 6625 pb::ExtensionSet.Set(ref _extensions, extension, value); 6626 } HasExtension(pb::Extension<TestAllExtensions, TValue> extension)6627 public bool HasExtension<TValue>(pb::Extension<TestAllExtensions, TValue> extension) { 6628 return pb::ExtensionSet.Has(ref _extensions, extension); 6629 } ClearExtension(pb::Extension<TestAllExtensions, TValue> extension)6630 public void ClearExtension<TValue>(pb::Extension<TestAllExtensions, TValue> extension) { 6631 pb::ExtensionSet.Clear(ref _extensions, extension); 6632 } ClearExtension(pb::RepeatedExtension<TestAllExtensions, TValue> extension)6633 public void ClearExtension<TValue>(pb::RepeatedExtension<TestAllExtensions, TValue> extension) { 6634 pb::ExtensionSet.Clear(ref _extensions, extension); 6635 } 6636 6637 } 6638 6639 [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] 6640 public sealed partial class OptionalGroup_extension : pb::IMessage<OptionalGroup_extension> 6641 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 6642 , pb::IBufferMessage 6643 #endif 6644 { 6645 private static readonly pb::MessageParser<OptionalGroup_extension> _parser = new pb::MessageParser<OptionalGroup_extension>(() => new OptionalGroup_extension()); 6646 private pb::UnknownFieldSet _unknownFields; 6647 private int _hasBits0; 6648 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 6649 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 6650 public static pb::MessageParser<OptionalGroup_extension> Parser { get { return _parser; } } 6651 6652 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 6653 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 6654 public static pbr::MessageDescriptor Descriptor { 6655 get { return global::Google.Protobuf.TestProtos.Proto2.UnittestReflection.Descriptor.MessageTypes[7]; } 6656 } 6657 6658 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 6659 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 6660 pbr::MessageDescriptor pb::IMessage.Descriptor { 6661 get { return Descriptor; } 6662 } 6663 6664 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 6665 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] OptionalGroup_extension()6666 public OptionalGroup_extension() { 6667 OnConstruction(); 6668 } 6669 OnConstruction()6670 partial void OnConstruction(); 6671 6672 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 6673 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] OptionalGroup_extension(OptionalGroup_extension other)6674 public OptionalGroup_extension(OptionalGroup_extension other) : this() { 6675 _hasBits0 = other._hasBits0; 6676 a_ = other.a_; 6677 _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); 6678 } 6679 6680 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 6681 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] Clone()6682 public OptionalGroup_extension Clone() { 6683 return new OptionalGroup_extension(this); 6684 } 6685 6686 /// <summary>Field number for the "a" field.</summary> 6687 public const int AFieldNumber = 17; 6688 private readonly static int ADefaultValue = 0; 6689 6690 private int a_; 6691 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 6692 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 6693 public int A { 6694 get { if ((_hasBits0 & 1) != 0) { return a_; } else { return ADefaultValue; } } 6695 set { 6696 _hasBits0 |= 1; 6697 a_ = value; 6698 } 6699 } 6700 /// <summary>Gets whether the "a" field is set</summary> 6701 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 6702 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 6703 public bool HasA { 6704 get { return (_hasBits0 & 1) != 0; } 6705 } 6706 /// <summary>Clears the value of the "a" field</summary> 6707 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 6708 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] ClearA()6709 public void ClearA() { 6710 _hasBits0 &= ~1; 6711 } 6712 6713 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 6714 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] Equals(object other)6715 public override bool Equals(object other) { 6716 return Equals(other as OptionalGroup_extension); 6717 } 6718 6719 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 6720 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] Equals(OptionalGroup_extension other)6721 public bool Equals(OptionalGroup_extension other) { 6722 if (ReferenceEquals(other, null)) { 6723 return false; 6724 } 6725 if (ReferenceEquals(other, this)) { 6726 return true; 6727 } 6728 if (A != other.A) return false; 6729 return Equals(_unknownFields, other._unknownFields); 6730 } 6731 6732 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 6733 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] GetHashCode()6734 public override int GetHashCode() { 6735 int hash = 1; 6736 if (HasA) hash ^= A.GetHashCode(); 6737 if (_unknownFields != null) { 6738 hash ^= _unknownFields.GetHashCode(); 6739 } 6740 return hash; 6741 } 6742 6743 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 6744 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] ToString()6745 public override string ToString() { 6746 return pb::JsonFormatter.ToDiagnosticString(this); 6747 } 6748 6749 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 6750 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] WriteTo(pb::CodedOutputStream output)6751 public void WriteTo(pb::CodedOutputStream output) { 6752 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 6753 output.WriteRawMessage(this); 6754 #else 6755 if (HasA) { 6756 output.WriteRawTag(136, 1); 6757 output.WriteInt32(A); 6758 } 6759 if (_unknownFields != null) { 6760 _unknownFields.WriteTo(output); 6761 } 6762 #endif 6763 } 6764 6765 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 6766 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 6767 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] IBufferMessage.InternalWriteTo(ref pb::WriteContext output)6768 void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { 6769 if (HasA) { 6770 output.WriteRawTag(136, 1); 6771 output.WriteInt32(A); 6772 } 6773 if (_unknownFields != null) { 6774 _unknownFields.WriteTo(ref output); 6775 } 6776 } 6777 #endif 6778 6779 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 6780 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] CalculateSize()6781 public int CalculateSize() { 6782 int size = 0; 6783 if (HasA) { 6784 size += 2 + pb::CodedOutputStream.ComputeInt32Size(A); 6785 } 6786 if (_unknownFields != null) { 6787 size += _unknownFields.CalculateSize(); 6788 } 6789 return size; 6790 } 6791 6792 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 6793 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] MergeFrom(OptionalGroup_extension other)6794 public void MergeFrom(OptionalGroup_extension other) { 6795 if (other == null) { 6796 return; 6797 } 6798 if (other.HasA) { 6799 A = other.A; 6800 } 6801 _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); 6802 } 6803 6804 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 6805 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] MergeFrom(pb::CodedInputStream input)6806 public void MergeFrom(pb::CodedInputStream input) { 6807 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 6808 input.ReadRawMessage(this); 6809 #else 6810 uint tag; 6811 while ((tag = input.ReadTag()) != 0) { 6812 if ((tag & 7) == 4) { 6813 // Abort on any end group tag. 6814 return; 6815 } 6816 switch(tag) { 6817 default: 6818 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); 6819 break; 6820 case 136: { 6821 A = input.ReadInt32(); 6822 break; 6823 } 6824 } 6825 } 6826 #endif 6827 } 6828 6829 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 6830 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 6831 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] IBufferMessage.InternalMergeFrom(ref pb::ParseContext input)6832 void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { 6833 uint tag; 6834 while ((tag = input.ReadTag()) != 0) { 6835 if ((tag & 7) == 4) { 6836 // Abort on any end group tag. 6837 return; 6838 } 6839 switch(tag) { 6840 default: 6841 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); 6842 break; 6843 case 136: { 6844 A = input.ReadInt32(); 6845 break; 6846 } 6847 } 6848 } 6849 } 6850 #endif 6851 6852 } 6853 6854 [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] 6855 public sealed partial class RepeatedGroup_extension : pb::IMessage<RepeatedGroup_extension> 6856 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 6857 , pb::IBufferMessage 6858 #endif 6859 { 6860 private static readonly pb::MessageParser<RepeatedGroup_extension> _parser = new pb::MessageParser<RepeatedGroup_extension>(() => new RepeatedGroup_extension()); 6861 private pb::UnknownFieldSet _unknownFields; 6862 private int _hasBits0; 6863 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 6864 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 6865 public static pb::MessageParser<RepeatedGroup_extension> Parser { get { return _parser; } } 6866 6867 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 6868 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 6869 public static pbr::MessageDescriptor Descriptor { 6870 get { return global::Google.Protobuf.TestProtos.Proto2.UnittestReflection.Descriptor.MessageTypes[8]; } 6871 } 6872 6873 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 6874 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 6875 pbr::MessageDescriptor pb::IMessage.Descriptor { 6876 get { return Descriptor; } 6877 } 6878 6879 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 6880 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] RepeatedGroup_extension()6881 public RepeatedGroup_extension() { 6882 OnConstruction(); 6883 } 6884 OnConstruction()6885 partial void OnConstruction(); 6886 6887 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 6888 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] RepeatedGroup_extension(RepeatedGroup_extension other)6889 public RepeatedGroup_extension(RepeatedGroup_extension other) : this() { 6890 _hasBits0 = other._hasBits0; 6891 a_ = other.a_; 6892 _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); 6893 } 6894 6895 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 6896 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] Clone()6897 public RepeatedGroup_extension Clone() { 6898 return new RepeatedGroup_extension(this); 6899 } 6900 6901 /// <summary>Field number for the "a" field.</summary> 6902 public const int AFieldNumber = 47; 6903 private readonly static int ADefaultValue = 0; 6904 6905 private int a_; 6906 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 6907 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 6908 public int A { 6909 get { if ((_hasBits0 & 1) != 0) { return a_; } else { return ADefaultValue; } } 6910 set { 6911 _hasBits0 |= 1; 6912 a_ = value; 6913 } 6914 } 6915 /// <summary>Gets whether the "a" field is set</summary> 6916 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 6917 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 6918 public bool HasA { 6919 get { return (_hasBits0 & 1) != 0; } 6920 } 6921 /// <summary>Clears the value of the "a" field</summary> 6922 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 6923 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] ClearA()6924 public void ClearA() { 6925 _hasBits0 &= ~1; 6926 } 6927 6928 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 6929 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] Equals(object other)6930 public override bool Equals(object other) { 6931 return Equals(other as RepeatedGroup_extension); 6932 } 6933 6934 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 6935 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] Equals(RepeatedGroup_extension other)6936 public bool Equals(RepeatedGroup_extension other) { 6937 if (ReferenceEquals(other, null)) { 6938 return false; 6939 } 6940 if (ReferenceEquals(other, this)) { 6941 return true; 6942 } 6943 if (A != other.A) return false; 6944 return Equals(_unknownFields, other._unknownFields); 6945 } 6946 6947 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 6948 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] GetHashCode()6949 public override int GetHashCode() { 6950 int hash = 1; 6951 if (HasA) hash ^= A.GetHashCode(); 6952 if (_unknownFields != null) { 6953 hash ^= _unknownFields.GetHashCode(); 6954 } 6955 return hash; 6956 } 6957 6958 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 6959 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] ToString()6960 public override string ToString() { 6961 return pb::JsonFormatter.ToDiagnosticString(this); 6962 } 6963 6964 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 6965 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] WriteTo(pb::CodedOutputStream output)6966 public void WriteTo(pb::CodedOutputStream output) { 6967 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 6968 output.WriteRawMessage(this); 6969 #else 6970 if (HasA) { 6971 output.WriteRawTag(248, 2); 6972 output.WriteInt32(A); 6973 } 6974 if (_unknownFields != null) { 6975 _unknownFields.WriteTo(output); 6976 } 6977 #endif 6978 } 6979 6980 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 6981 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 6982 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] IBufferMessage.InternalWriteTo(ref pb::WriteContext output)6983 void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { 6984 if (HasA) { 6985 output.WriteRawTag(248, 2); 6986 output.WriteInt32(A); 6987 } 6988 if (_unknownFields != null) { 6989 _unknownFields.WriteTo(ref output); 6990 } 6991 } 6992 #endif 6993 6994 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 6995 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] CalculateSize()6996 public int CalculateSize() { 6997 int size = 0; 6998 if (HasA) { 6999 size += 2 + pb::CodedOutputStream.ComputeInt32Size(A); 7000 } 7001 if (_unknownFields != null) { 7002 size += _unknownFields.CalculateSize(); 7003 } 7004 return size; 7005 } 7006 7007 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 7008 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] MergeFrom(RepeatedGroup_extension other)7009 public void MergeFrom(RepeatedGroup_extension other) { 7010 if (other == null) { 7011 return; 7012 } 7013 if (other.HasA) { 7014 A = other.A; 7015 } 7016 _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); 7017 } 7018 7019 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 7020 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] MergeFrom(pb::CodedInputStream input)7021 public void MergeFrom(pb::CodedInputStream input) { 7022 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 7023 input.ReadRawMessage(this); 7024 #else 7025 uint tag; 7026 while ((tag = input.ReadTag()) != 0) { 7027 if ((tag & 7) == 4) { 7028 // Abort on any end group tag. 7029 return; 7030 } 7031 switch(tag) { 7032 default: 7033 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); 7034 break; 7035 case 376: { 7036 A = input.ReadInt32(); 7037 break; 7038 } 7039 } 7040 } 7041 #endif 7042 } 7043 7044 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 7045 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 7046 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] IBufferMessage.InternalMergeFrom(ref pb::ParseContext input)7047 void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { 7048 uint tag; 7049 while ((tag = input.ReadTag()) != 0) { 7050 if ((tag & 7) == 4) { 7051 // Abort on any end group tag. 7052 return; 7053 } 7054 switch(tag) { 7055 default: 7056 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); 7057 break; 7058 case 376: { 7059 A = input.ReadInt32(); 7060 break; 7061 } 7062 } 7063 } 7064 } 7065 #endif 7066 7067 } 7068 7069 [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] 7070 public sealed partial class TestGroup : pb::IMessage<TestGroup> 7071 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 7072 , pb::IBufferMessage 7073 #endif 7074 { 7075 private static readonly pb::MessageParser<TestGroup> _parser = new pb::MessageParser<TestGroup>(() => new TestGroup()); 7076 private pb::UnknownFieldSet _unknownFields; 7077 private int _hasBits0; 7078 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 7079 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 7080 public static pb::MessageParser<TestGroup> Parser { get { return _parser; } } 7081 7082 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 7083 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 7084 public static pbr::MessageDescriptor Descriptor { 7085 get { return global::Google.Protobuf.TestProtos.Proto2.UnittestReflection.Descriptor.MessageTypes[9]; } 7086 } 7087 7088 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 7089 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 7090 pbr::MessageDescriptor pb::IMessage.Descriptor { 7091 get { return Descriptor; } 7092 } 7093 7094 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 7095 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] TestGroup()7096 public TestGroup() { 7097 OnConstruction(); 7098 } 7099 OnConstruction()7100 partial void OnConstruction(); 7101 7102 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 7103 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] TestGroup(TestGroup other)7104 public TestGroup(TestGroup other) : this() { 7105 _hasBits0 = other._hasBits0; 7106 optionalGroup_ = other.HasOptionalGroup ? other.optionalGroup_.Clone() : null; 7107 optionalForeignEnum_ = other.optionalForeignEnum_; 7108 _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); 7109 } 7110 7111 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 7112 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] Clone()7113 public TestGroup Clone() { 7114 return new TestGroup(this); 7115 } 7116 7117 /// <summary>Field number for the "optionalgroup" field.</summary> 7118 public const int OptionalGroupFieldNumber = 16; 7119 private global::Google.Protobuf.TestProtos.Proto2.TestGroup.Types.OptionalGroup optionalGroup_; 7120 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 7121 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 7122 public global::Google.Protobuf.TestProtos.Proto2.TestGroup.Types.OptionalGroup OptionalGroup { 7123 get { return optionalGroup_; } 7124 set { 7125 optionalGroup_ = value; 7126 } 7127 } 7128 /// <summary>Gets whether the optionalgroup field is set</summary> 7129 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 7130 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 7131 public bool HasOptionalGroup { 7132 get { return optionalGroup_ != null; } 7133 } 7134 /// <summary>Clears the value of the optionalgroup field</summary> 7135 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 7136 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] ClearOptionalGroup()7137 public void ClearOptionalGroup() { 7138 optionalGroup_ = null; 7139 } 7140 7141 /// <summary>Field number for the "optional_foreign_enum" field.</summary> 7142 public const int OptionalForeignEnumFieldNumber = 22; 7143 private readonly static global::Google.Protobuf.TestProtos.Proto2.ForeignEnum OptionalForeignEnumDefaultValue = global::Google.Protobuf.TestProtos.Proto2.ForeignEnum.ForeignFoo; 7144 7145 private global::Google.Protobuf.TestProtos.Proto2.ForeignEnum optionalForeignEnum_; 7146 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 7147 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 7148 public global::Google.Protobuf.TestProtos.Proto2.ForeignEnum OptionalForeignEnum { 7149 get { if ((_hasBits0 & 1) != 0) { return optionalForeignEnum_; } else { return OptionalForeignEnumDefaultValue; } } 7150 set { 7151 _hasBits0 |= 1; 7152 optionalForeignEnum_ = value; 7153 } 7154 } 7155 /// <summary>Gets whether the "optional_foreign_enum" field is set</summary> 7156 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 7157 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 7158 public bool HasOptionalForeignEnum { 7159 get { return (_hasBits0 & 1) != 0; } 7160 } 7161 /// <summary>Clears the value of the "optional_foreign_enum" field</summary> 7162 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 7163 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] ClearOptionalForeignEnum()7164 public void ClearOptionalForeignEnum() { 7165 _hasBits0 &= ~1; 7166 } 7167 7168 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 7169 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] Equals(object other)7170 public override bool Equals(object other) { 7171 return Equals(other as TestGroup); 7172 } 7173 7174 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 7175 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] Equals(TestGroup other)7176 public bool Equals(TestGroup other) { 7177 if (ReferenceEquals(other, null)) { 7178 return false; 7179 } 7180 if (ReferenceEquals(other, this)) { 7181 return true; 7182 } 7183 if (!object.Equals(OptionalGroup, other.OptionalGroup)) return false; 7184 if (OptionalForeignEnum != other.OptionalForeignEnum) return false; 7185 return Equals(_unknownFields, other._unknownFields); 7186 } 7187 7188 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 7189 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] GetHashCode()7190 public override int GetHashCode() { 7191 int hash = 1; 7192 if (HasOptionalGroup) hash ^= OptionalGroup.GetHashCode(); 7193 if (HasOptionalForeignEnum) hash ^= OptionalForeignEnum.GetHashCode(); 7194 if (_unknownFields != null) { 7195 hash ^= _unknownFields.GetHashCode(); 7196 } 7197 return hash; 7198 } 7199 7200 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 7201 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] ToString()7202 public override string ToString() { 7203 return pb::JsonFormatter.ToDiagnosticString(this); 7204 } 7205 7206 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 7207 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] WriteTo(pb::CodedOutputStream output)7208 public void WriteTo(pb::CodedOutputStream output) { 7209 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 7210 output.WriteRawMessage(this); 7211 #else 7212 if (HasOptionalGroup) { 7213 output.WriteRawTag(131, 1); 7214 output.WriteGroup(OptionalGroup); 7215 output.WriteRawTag(132, 1); 7216 } 7217 if (HasOptionalForeignEnum) { 7218 output.WriteRawTag(176, 1); 7219 output.WriteEnum((int) OptionalForeignEnum); 7220 } 7221 if (_unknownFields != null) { 7222 _unknownFields.WriteTo(output); 7223 } 7224 #endif 7225 } 7226 7227 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 7228 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 7229 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] IBufferMessage.InternalWriteTo(ref pb::WriteContext output)7230 void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { 7231 if (HasOptionalGroup) { 7232 output.WriteRawTag(131, 1); 7233 output.WriteGroup(OptionalGroup); 7234 output.WriteRawTag(132, 1); 7235 } 7236 if (HasOptionalForeignEnum) { 7237 output.WriteRawTag(176, 1); 7238 output.WriteEnum((int) OptionalForeignEnum); 7239 } 7240 if (_unknownFields != null) { 7241 _unknownFields.WriteTo(ref output); 7242 } 7243 } 7244 #endif 7245 7246 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 7247 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] CalculateSize()7248 public int CalculateSize() { 7249 int size = 0; 7250 if (HasOptionalGroup) { 7251 size += 4 + pb::CodedOutputStream.ComputeGroupSize(OptionalGroup); 7252 } 7253 if (HasOptionalForeignEnum) { 7254 size += 2 + pb::CodedOutputStream.ComputeEnumSize((int) OptionalForeignEnum); 7255 } 7256 if (_unknownFields != null) { 7257 size += _unknownFields.CalculateSize(); 7258 } 7259 return size; 7260 } 7261 7262 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 7263 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] MergeFrom(TestGroup other)7264 public void MergeFrom(TestGroup other) { 7265 if (other == null) { 7266 return; 7267 } 7268 if (other.HasOptionalGroup) { 7269 if (!HasOptionalGroup) { 7270 OptionalGroup = new global::Google.Protobuf.TestProtos.Proto2.TestGroup.Types.OptionalGroup(); 7271 } 7272 OptionalGroup.MergeFrom(other.OptionalGroup); 7273 } 7274 if (other.HasOptionalForeignEnum) { 7275 OptionalForeignEnum = other.OptionalForeignEnum; 7276 } 7277 _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); 7278 } 7279 7280 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 7281 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] MergeFrom(pb::CodedInputStream input)7282 public void MergeFrom(pb::CodedInputStream input) { 7283 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 7284 input.ReadRawMessage(this); 7285 #else 7286 uint tag; 7287 while ((tag = input.ReadTag()) != 0) { 7288 if ((tag & 7) == 4) { 7289 // Abort on any end group tag. 7290 return; 7291 } 7292 switch(tag) { 7293 default: 7294 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); 7295 break; 7296 case 131: { 7297 if (!HasOptionalGroup) { 7298 OptionalGroup = new global::Google.Protobuf.TestProtos.Proto2.TestGroup.Types.OptionalGroup(); 7299 } 7300 input.ReadGroup(OptionalGroup); 7301 break; 7302 } 7303 case 176: { 7304 OptionalForeignEnum = (global::Google.Protobuf.TestProtos.Proto2.ForeignEnum) input.ReadEnum(); 7305 break; 7306 } 7307 } 7308 } 7309 #endif 7310 } 7311 7312 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 7313 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 7314 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] IBufferMessage.InternalMergeFrom(ref pb::ParseContext input)7315 void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { 7316 uint tag; 7317 while ((tag = input.ReadTag()) != 0) { 7318 if ((tag & 7) == 4) { 7319 // Abort on any end group tag. 7320 return; 7321 } 7322 switch(tag) { 7323 default: 7324 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); 7325 break; 7326 case 131: { 7327 if (!HasOptionalGroup) { 7328 OptionalGroup = new global::Google.Protobuf.TestProtos.Proto2.TestGroup.Types.OptionalGroup(); 7329 } 7330 input.ReadGroup(OptionalGroup); 7331 break; 7332 } 7333 case 176: { 7334 OptionalForeignEnum = (global::Google.Protobuf.TestProtos.Proto2.ForeignEnum) input.ReadEnum(); 7335 break; 7336 } 7337 } 7338 } 7339 } 7340 #endif 7341 7342 #region Nested types 7343 /// <summary>Container for nested types declared in the TestGroup message type.</summary> 7344 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 7345 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 7346 public static partial class Types { 7347 [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] 7348 public sealed partial class OptionalGroup : pb::IMessage<OptionalGroup> 7349 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 7350 , pb::IBufferMessage 7351 #endif 7352 { 7353 private static readonly pb::MessageParser<OptionalGroup> _parser = new pb::MessageParser<OptionalGroup>(() => new OptionalGroup()); 7354 private pb::UnknownFieldSet _unknownFields; 7355 private int _hasBits0; 7356 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 7357 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 7358 public static pb::MessageParser<OptionalGroup> Parser { get { return _parser; } } 7359 7360 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 7361 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 7362 public static pbr::MessageDescriptor Descriptor { 7363 get { return global::Google.Protobuf.TestProtos.Proto2.TestGroup.Descriptor.NestedTypes[0]; } 7364 } 7365 7366 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 7367 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 7368 pbr::MessageDescriptor pb::IMessage.Descriptor { 7369 get { return Descriptor; } 7370 } 7371 7372 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 7373 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] OptionalGroup()7374 public OptionalGroup() { 7375 OnConstruction(); 7376 } 7377 OnConstruction()7378 partial void OnConstruction(); 7379 7380 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 7381 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] OptionalGroup(OptionalGroup other)7382 public OptionalGroup(OptionalGroup other) : this() { 7383 _hasBits0 = other._hasBits0; 7384 a_ = other.a_; 7385 _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); 7386 } 7387 7388 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 7389 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] Clone()7390 public OptionalGroup Clone() { 7391 return new OptionalGroup(this); 7392 } 7393 7394 /// <summary>Field number for the "a" field.</summary> 7395 public const int AFieldNumber = 17; 7396 private readonly static int ADefaultValue = 0; 7397 7398 private int a_; 7399 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 7400 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 7401 public int A { 7402 get { if ((_hasBits0 & 1) != 0) { return a_; } else { return ADefaultValue; } } 7403 set { 7404 _hasBits0 |= 1; 7405 a_ = value; 7406 } 7407 } 7408 /// <summary>Gets whether the "a" field is set</summary> 7409 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 7410 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 7411 public bool HasA { 7412 get { return (_hasBits0 & 1) != 0; } 7413 } 7414 /// <summary>Clears the value of the "a" field</summary> 7415 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 7416 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] ClearA()7417 public void ClearA() { 7418 _hasBits0 &= ~1; 7419 } 7420 7421 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 7422 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] Equals(object other)7423 public override bool Equals(object other) { 7424 return Equals(other as OptionalGroup); 7425 } 7426 7427 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 7428 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] Equals(OptionalGroup other)7429 public bool Equals(OptionalGroup other) { 7430 if (ReferenceEquals(other, null)) { 7431 return false; 7432 } 7433 if (ReferenceEquals(other, this)) { 7434 return true; 7435 } 7436 if (A != other.A) return false; 7437 return Equals(_unknownFields, other._unknownFields); 7438 } 7439 7440 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 7441 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] GetHashCode()7442 public override int GetHashCode() { 7443 int hash = 1; 7444 if (HasA) hash ^= A.GetHashCode(); 7445 if (_unknownFields != null) { 7446 hash ^= _unknownFields.GetHashCode(); 7447 } 7448 return hash; 7449 } 7450 7451 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 7452 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] ToString()7453 public override string ToString() { 7454 return pb::JsonFormatter.ToDiagnosticString(this); 7455 } 7456 7457 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 7458 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] WriteTo(pb::CodedOutputStream output)7459 public void WriteTo(pb::CodedOutputStream output) { 7460 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 7461 output.WriteRawMessage(this); 7462 #else 7463 if (HasA) { 7464 output.WriteRawTag(136, 1); 7465 output.WriteInt32(A); 7466 } 7467 if (_unknownFields != null) { 7468 _unknownFields.WriteTo(output); 7469 } 7470 #endif 7471 } 7472 7473 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 7474 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 7475 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] IBufferMessage.InternalWriteTo(ref pb::WriteContext output)7476 void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { 7477 if (HasA) { 7478 output.WriteRawTag(136, 1); 7479 output.WriteInt32(A); 7480 } 7481 if (_unknownFields != null) { 7482 _unknownFields.WriteTo(ref output); 7483 } 7484 } 7485 #endif 7486 7487 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 7488 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] CalculateSize()7489 public int CalculateSize() { 7490 int size = 0; 7491 if (HasA) { 7492 size += 2 + pb::CodedOutputStream.ComputeInt32Size(A); 7493 } 7494 if (_unknownFields != null) { 7495 size += _unknownFields.CalculateSize(); 7496 } 7497 return size; 7498 } 7499 7500 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 7501 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] MergeFrom(OptionalGroup other)7502 public void MergeFrom(OptionalGroup other) { 7503 if (other == null) { 7504 return; 7505 } 7506 if (other.HasA) { 7507 A = other.A; 7508 } 7509 _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); 7510 } 7511 7512 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 7513 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] MergeFrom(pb::CodedInputStream input)7514 public void MergeFrom(pb::CodedInputStream input) { 7515 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 7516 input.ReadRawMessage(this); 7517 #else 7518 uint tag; 7519 while ((tag = input.ReadTag()) != 0) { 7520 if ((tag & 7) == 4) { 7521 // Abort on any end group tag. 7522 return; 7523 } 7524 switch(tag) { 7525 default: 7526 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); 7527 break; 7528 case 136: { 7529 A = input.ReadInt32(); 7530 break; 7531 } 7532 } 7533 } 7534 #endif 7535 } 7536 7537 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 7538 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 7539 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] IBufferMessage.InternalMergeFrom(ref pb::ParseContext input)7540 void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { 7541 uint tag; 7542 while ((tag = input.ReadTag()) != 0) { 7543 if ((tag & 7) == 4) { 7544 // Abort on any end group tag. 7545 return; 7546 } 7547 switch(tag) { 7548 default: 7549 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); 7550 break; 7551 case 136: { 7552 A = input.ReadInt32(); 7553 break; 7554 } 7555 } 7556 } 7557 } 7558 #endif 7559 7560 } 7561 7562 } 7563 #endregion 7564 7565 } 7566 7567 [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] 7568 public sealed partial class TestGroupExtension : pb::IExtendableMessage<TestGroupExtension> 7569 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 7570 , pb::IBufferMessage 7571 #endif 7572 { 7573 private static readonly pb::MessageParser<TestGroupExtension> _parser = new pb::MessageParser<TestGroupExtension>(() => new TestGroupExtension()); 7574 private pb::UnknownFieldSet _unknownFields; 7575 private pb::ExtensionSet<TestGroupExtension> _extensions; 7576 private pb::ExtensionSet<TestGroupExtension> _Extensions { get { return _extensions; } } 7577 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 7578 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 7579 public static pb::MessageParser<TestGroupExtension> Parser { get { return _parser; } } 7580 7581 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 7582 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 7583 public static pbr::MessageDescriptor Descriptor { 7584 get { return global::Google.Protobuf.TestProtos.Proto2.UnittestReflection.Descriptor.MessageTypes[10]; } 7585 } 7586 7587 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 7588 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 7589 pbr::MessageDescriptor pb::IMessage.Descriptor { 7590 get { return Descriptor; } 7591 } 7592 7593 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 7594 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] TestGroupExtension()7595 public TestGroupExtension() { 7596 OnConstruction(); 7597 } 7598 OnConstruction()7599 partial void OnConstruction(); 7600 7601 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 7602 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] TestGroupExtension(TestGroupExtension other)7603 public TestGroupExtension(TestGroupExtension other) : this() { 7604 _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); 7605 _extensions = pb::ExtensionSet.Clone(other._extensions); 7606 } 7607 7608 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 7609 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] Clone()7610 public TestGroupExtension Clone() { 7611 return new TestGroupExtension(this); 7612 } 7613 7614 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 7615 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] Equals(object other)7616 public override bool Equals(object other) { 7617 return Equals(other as TestGroupExtension); 7618 } 7619 7620 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 7621 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] Equals(TestGroupExtension other)7622 public bool Equals(TestGroupExtension other) { 7623 if (ReferenceEquals(other, null)) { 7624 return false; 7625 } 7626 if (ReferenceEquals(other, this)) { 7627 return true; 7628 } 7629 if (!Equals(_extensions, other._extensions)) { 7630 return false; 7631 } 7632 return Equals(_unknownFields, other._unknownFields); 7633 } 7634 7635 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 7636 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] GetHashCode()7637 public override int GetHashCode() { 7638 int hash = 1; 7639 if (_extensions != null) { 7640 hash ^= _extensions.GetHashCode(); 7641 } 7642 if (_unknownFields != null) { 7643 hash ^= _unknownFields.GetHashCode(); 7644 } 7645 return hash; 7646 } 7647 7648 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 7649 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] ToString()7650 public override string ToString() { 7651 return pb::JsonFormatter.ToDiagnosticString(this); 7652 } 7653 7654 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 7655 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] WriteTo(pb::CodedOutputStream output)7656 public void WriteTo(pb::CodedOutputStream output) { 7657 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 7658 output.WriteRawMessage(this); 7659 #else 7660 if (_extensions != null) { 7661 _extensions.WriteTo(output); 7662 } 7663 if (_unknownFields != null) { 7664 _unknownFields.WriteTo(output); 7665 } 7666 #endif 7667 } 7668 7669 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 7670 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 7671 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] IBufferMessage.InternalWriteTo(ref pb::WriteContext output)7672 void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { 7673 if (_extensions != null) { 7674 _extensions.WriteTo(ref output); 7675 } 7676 if (_unknownFields != null) { 7677 _unknownFields.WriteTo(ref output); 7678 } 7679 } 7680 #endif 7681 7682 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 7683 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] CalculateSize()7684 public int CalculateSize() { 7685 int size = 0; 7686 if (_extensions != null) { 7687 size += _extensions.CalculateSize(); 7688 } 7689 if (_unknownFields != null) { 7690 size += _unknownFields.CalculateSize(); 7691 } 7692 return size; 7693 } 7694 7695 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 7696 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] MergeFrom(TestGroupExtension other)7697 public void MergeFrom(TestGroupExtension other) { 7698 if (other == null) { 7699 return; 7700 } 7701 pb::ExtensionSet.MergeFrom(ref _extensions, other._extensions); 7702 _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); 7703 } 7704 7705 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 7706 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] MergeFrom(pb::CodedInputStream input)7707 public void MergeFrom(pb::CodedInputStream input) { 7708 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 7709 input.ReadRawMessage(this); 7710 #else 7711 uint tag; 7712 while ((tag = input.ReadTag()) != 0) { 7713 if ((tag & 7) == 4) { 7714 // Abort on any end group tag. 7715 return; 7716 } 7717 switch(tag) { 7718 default: 7719 if (!pb::ExtensionSet.TryMergeFieldFrom(ref _extensions, input)) { 7720 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); 7721 } 7722 break; 7723 } 7724 } 7725 #endif 7726 } 7727 7728 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 7729 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 7730 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] IBufferMessage.InternalMergeFrom(ref pb::ParseContext input)7731 void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { 7732 uint tag; 7733 while ((tag = input.ReadTag()) != 0) { 7734 if ((tag & 7) == 4) { 7735 // Abort on any end group tag. 7736 return; 7737 } 7738 switch(tag) { 7739 default: 7740 if (!pb::ExtensionSet.TryMergeFieldFrom(ref _extensions, ref input)) { 7741 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); 7742 } 7743 break; 7744 } 7745 } 7746 } 7747 #endif 7748 GetExtension(pb::Extension<TestGroupExtension, TValue> extension)7749 public TValue GetExtension<TValue>(pb::Extension<TestGroupExtension, TValue> extension) { 7750 return pb::ExtensionSet.Get(ref _extensions, extension); 7751 } GetExtension(pb::RepeatedExtension<TestGroupExtension, TValue> extension)7752 public pbc::RepeatedField<TValue> GetExtension<TValue>(pb::RepeatedExtension<TestGroupExtension, TValue> extension) { 7753 return pb::ExtensionSet.Get(ref _extensions, extension); 7754 } GetOrInitializeExtension(pb::RepeatedExtension<TestGroupExtension, TValue> extension)7755 public pbc::RepeatedField<TValue> GetOrInitializeExtension<TValue>(pb::RepeatedExtension<TestGroupExtension, TValue> extension) { 7756 return pb::ExtensionSet.GetOrInitialize(ref _extensions, extension); 7757 } SetExtension(pb::Extension<TestGroupExtension, TValue> extension, TValue value)7758 public void SetExtension<TValue>(pb::Extension<TestGroupExtension, TValue> extension, TValue value) { 7759 pb::ExtensionSet.Set(ref _extensions, extension, value); 7760 } HasExtension(pb::Extension<TestGroupExtension, TValue> extension)7761 public bool HasExtension<TValue>(pb::Extension<TestGroupExtension, TValue> extension) { 7762 return pb::ExtensionSet.Has(ref _extensions, extension); 7763 } ClearExtension(pb::Extension<TestGroupExtension, TValue> extension)7764 public void ClearExtension<TValue>(pb::Extension<TestGroupExtension, TValue> extension) { 7765 pb::ExtensionSet.Clear(ref _extensions, extension); 7766 } ClearExtension(pb::RepeatedExtension<TestGroupExtension, TValue> extension)7767 public void ClearExtension<TValue>(pb::RepeatedExtension<TestGroupExtension, TValue> extension) { 7768 pb::ExtensionSet.Clear(ref _extensions, extension); 7769 } 7770 7771 } 7772 7773 [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] 7774 public sealed partial class TestNestedExtension : pb::IMessage<TestNestedExtension> 7775 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 7776 , pb::IBufferMessage 7777 #endif 7778 { 7779 private static readonly pb::MessageParser<TestNestedExtension> _parser = new pb::MessageParser<TestNestedExtension>(() => new TestNestedExtension()); 7780 private pb::UnknownFieldSet _unknownFields; 7781 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 7782 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 7783 public static pb::MessageParser<TestNestedExtension> Parser { get { return _parser; } } 7784 7785 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 7786 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 7787 public static pbr::MessageDescriptor Descriptor { 7788 get { return global::Google.Protobuf.TestProtos.Proto2.UnittestReflection.Descriptor.MessageTypes[11]; } 7789 } 7790 7791 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 7792 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 7793 pbr::MessageDescriptor pb::IMessage.Descriptor { 7794 get { return Descriptor; } 7795 } 7796 7797 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 7798 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] TestNestedExtension()7799 public TestNestedExtension() { 7800 OnConstruction(); 7801 } 7802 OnConstruction()7803 partial void OnConstruction(); 7804 7805 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 7806 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] TestNestedExtension(TestNestedExtension other)7807 public TestNestedExtension(TestNestedExtension other) : this() { 7808 _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); 7809 } 7810 7811 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 7812 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] Clone()7813 public TestNestedExtension Clone() { 7814 return new TestNestedExtension(this); 7815 } 7816 7817 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 7818 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] Equals(object other)7819 public override bool Equals(object other) { 7820 return Equals(other as TestNestedExtension); 7821 } 7822 7823 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 7824 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] Equals(TestNestedExtension other)7825 public bool Equals(TestNestedExtension other) { 7826 if (ReferenceEquals(other, null)) { 7827 return false; 7828 } 7829 if (ReferenceEquals(other, this)) { 7830 return true; 7831 } 7832 return Equals(_unknownFields, other._unknownFields); 7833 } 7834 7835 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 7836 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] GetHashCode()7837 public override int GetHashCode() { 7838 int hash = 1; 7839 if (_unknownFields != null) { 7840 hash ^= _unknownFields.GetHashCode(); 7841 } 7842 return hash; 7843 } 7844 7845 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 7846 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] ToString()7847 public override string ToString() { 7848 return pb::JsonFormatter.ToDiagnosticString(this); 7849 } 7850 7851 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 7852 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] WriteTo(pb::CodedOutputStream output)7853 public void WriteTo(pb::CodedOutputStream output) { 7854 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 7855 output.WriteRawMessage(this); 7856 #else 7857 if (_unknownFields != null) { 7858 _unknownFields.WriteTo(output); 7859 } 7860 #endif 7861 } 7862 7863 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 7864 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 7865 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] IBufferMessage.InternalWriteTo(ref pb::WriteContext output)7866 void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { 7867 if (_unknownFields != null) { 7868 _unknownFields.WriteTo(ref output); 7869 } 7870 } 7871 #endif 7872 7873 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 7874 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] CalculateSize()7875 public int CalculateSize() { 7876 int size = 0; 7877 if (_unknownFields != null) { 7878 size += _unknownFields.CalculateSize(); 7879 } 7880 return size; 7881 } 7882 7883 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 7884 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] MergeFrom(TestNestedExtension other)7885 public void MergeFrom(TestNestedExtension other) { 7886 if (other == null) { 7887 return; 7888 } 7889 _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); 7890 } 7891 7892 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 7893 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] MergeFrom(pb::CodedInputStream input)7894 public void MergeFrom(pb::CodedInputStream input) { 7895 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 7896 input.ReadRawMessage(this); 7897 #else 7898 uint tag; 7899 while ((tag = input.ReadTag()) != 0) { 7900 if ((tag & 7) == 4) { 7901 // Abort on any end group tag. 7902 return; 7903 } 7904 switch(tag) { 7905 default: 7906 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); 7907 break; 7908 } 7909 } 7910 #endif 7911 } 7912 7913 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 7914 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 7915 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] IBufferMessage.InternalMergeFrom(ref pb::ParseContext input)7916 void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { 7917 uint tag; 7918 while ((tag = input.ReadTag()) != 0) { 7919 if ((tag & 7) == 4) { 7920 // Abort on any end group tag. 7921 return; 7922 } 7923 switch(tag) { 7924 default: 7925 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); 7926 break; 7927 } 7928 } 7929 } 7930 #endif 7931 7932 #region Nested types 7933 /// <summary>Container for nested types declared in the TestNestedExtension message type.</summary> 7934 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 7935 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 7936 public static partial class Types { 7937 [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] 7938 public sealed partial class OptionalGroup_extension : pb::IMessage<OptionalGroup_extension> 7939 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 7940 , pb::IBufferMessage 7941 #endif 7942 { 7943 private static readonly pb::MessageParser<OptionalGroup_extension> _parser = new pb::MessageParser<OptionalGroup_extension>(() => new OptionalGroup_extension()); 7944 private pb::UnknownFieldSet _unknownFields; 7945 private int _hasBits0; 7946 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 7947 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 7948 public static pb::MessageParser<OptionalGroup_extension> Parser { get { return _parser; } } 7949 7950 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 7951 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 7952 public static pbr::MessageDescriptor Descriptor { 7953 get { return global::Google.Protobuf.TestProtos.Proto2.TestNestedExtension.Descriptor.NestedTypes[0]; } 7954 } 7955 7956 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 7957 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 7958 pbr::MessageDescriptor pb::IMessage.Descriptor { 7959 get { return Descriptor; } 7960 } 7961 7962 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 7963 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] OptionalGroup_extension()7964 public OptionalGroup_extension() { 7965 OnConstruction(); 7966 } 7967 OnConstruction()7968 partial void OnConstruction(); 7969 7970 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 7971 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] OptionalGroup_extension(OptionalGroup_extension other)7972 public OptionalGroup_extension(OptionalGroup_extension other) : this() { 7973 _hasBits0 = other._hasBits0; 7974 a_ = other.a_; 7975 _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); 7976 } 7977 7978 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 7979 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] Clone()7980 public OptionalGroup_extension Clone() { 7981 return new OptionalGroup_extension(this); 7982 } 7983 7984 /// <summary>Field number for the "a" field.</summary> 7985 public const int AFieldNumber = 17; 7986 private readonly static int ADefaultValue = 0; 7987 7988 private int a_; 7989 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 7990 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 7991 public int A { 7992 get { if ((_hasBits0 & 1) != 0) { return a_; } else { return ADefaultValue; } } 7993 set { 7994 _hasBits0 |= 1; 7995 a_ = value; 7996 } 7997 } 7998 /// <summary>Gets whether the "a" field is set</summary> 7999 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 8000 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 8001 public bool HasA { 8002 get { return (_hasBits0 & 1) != 0; } 8003 } 8004 /// <summary>Clears the value of the "a" field</summary> 8005 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 8006 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] ClearA()8007 public void ClearA() { 8008 _hasBits0 &= ~1; 8009 } 8010 8011 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 8012 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] Equals(object other)8013 public override bool Equals(object other) { 8014 return Equals(other as OptionalGroup_extension); 8015 } 8016 8017 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 8018 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] Equals(OptionalGroup_extension other)8019 public bool Equals(OptionalGroup_extension other) { 8020 if (ReferenceEquals(other, null)) { 8021 return false; 8022 } 8023 if (ReferenceEquals(other, this)) { 8024 return true; 8025 } 8026 if (A != other.A) return false; 8027 return Equals(_unknownFields, other._unknownFields); 8028 } 8029 8030 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 8031 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] GetHashCode()8032 public override int GetHashCode() { 8033 int hash = 1; 8034 if (HasA) hash ^= A.GetHashCode(); 8035 if (_unknownFields != null) { 8036 hash ^= _unknownFields.GetHashCode(); 8037 } 8038 return hash; 8039 } 8040 8041 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 8042 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] ToString()8043 public override string ToString() { 8044 return pb::JsonFormatter.ToDiagnosticString(this); 8045 } 8046 8047 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 8048 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] WriteTo(pb::CodedOutputStream output)8049 public void WriteTo(pb::CodedOutputStream output) { 8050 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 8051 output.WriteRawMessage(this); 8052 #else 8053 if (HasA) { 8054 output.WriteRawTag(136, 1); 8055 output.WriteInt32(A); 8056 } 8057 if (_unknownFields != null) { 8058 _unknownFields.WriteTo(output); 8059 } 8060 #endif 8061 } 8062 8063 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 8064 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 8065 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] IBufferMessage.InternalWriteTo(ref pb::WriteContext output)8066 void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { 8067 if (HasA) { 8068 output.WriteRawTag(136, 1); 8069 output.WriteInt32(A); 8070 } 8071 if (_unknownFields != null) { 8072 _unknownFields.WriteTo(ref output); 8073 } 8074 } 8075 #endif 8076 8077 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 8078 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] CalculateSize()8079 public int CalculateSize() { 8080 int size = 0; 8081 if (HasA) { 8082 size += 2 + pb::CodedOutputStream.ComputeInt32Size(A); 8083 } 8084 if (_unknownFields != null) { 8085 size += _unknownFields.CalculateSize(); 8086 } 8087 return size; 8088 } 8089 8090 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 8091 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] MergeFrom(OptionalGroup_extension other)8092 public void MergeFrom(OptionalGroup_extension other) { 8093 if (other == null) { 8094 return; 8095 } 8096 if (other.HasA) { 8097 A = other.A; 8098 } 8099 _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); 8100 } 8101 8102 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 8103 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] MergeFrom(pb::CodedInputStream input)8104 public void MergeFrom(pb::CodedInputStream input) { 8105 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 8106 input.ReadRawMessage(this); 8107 #else 8108 uint tag; 8109 while ((tag = input.ReadTag()) != 0) { 8110 if ((tag & 7) == 4) { 8111 // Abort on any end group tag. 8112 return; 8113 } 8114 switch(tag) { 8115 default: 8116 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); 8117 break; 8118 case 136: { 8119 A = input.ReadInt32(); 8120 break; 8121 } 8122 } 8123 } 8124 #endif 8125 } 8126 8127 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 8128 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 8129 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] IBufferMessage.InternalMergeFrom(ref pb::ParseContext input)8130 void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { 8131 uint tag; 8132 while ((tag = input.ReadTag()) != 0) { 8133 if ((tag & 7) == 4) { 8134 // Abort on any end group tag. 8135 return; 8136 } 8137 switch(tag) { 8138 default: 8139 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); 8140 break; 8141 case 136: { 8142 A = input.ReadInt32(); 8143 break; 8144 } 8145 } 8146 } 8147 } 8148 #endif 8149 8150 } 8151 8152 } 8153 #endregion 8154 8155 #region Extensions 8156 /// <summary>Container for extensions for other messages declared in the TestNestedExtension message type.</summary> 8157 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 8158 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 8159 public static partial class Extensions { 8160 /// <summary> 8161 /// Check for bug where string extensions declared in tested scope did not 8162 /// compile. 8163 /// </summary> 8164 public static readonly pb::Extension<global::Google.Protobuf.TestProtos.Proto2.TestAllExtensions, string> Test = 8165 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))); 8166 /// <summary> 8167 /// Used to test if generated extension name is correct when there are 8168 /// underscores. 8169 /// </summary> 8170 public static readonly pb::Extension<global::Google.Protobuf.TestProtos.Proto2.TestAllExtensions, string> NestedStringExtension = 8171 new pb::Extension<global::Google.Protobuf.TestProtos.Proto2.TestAllExtensions, string>(1003, pb::FieldCodec.ForString(8026, "")); 8172 public static readonly pb::Extension<global::Google.Protobuf.TestProtos.Proto2.TestGroupExtension, global::Google.Protobuf.TestProtos.Proto2.TestNestedExtension.Types.OptionalGroup_extension> OptionalGroupExtension = 8173 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)); 8174 public static readonly pb::Extension<global::Google.Protobuf.TestProtos.Proto2.TestGroupExtension, global::Google.Protobuf.TestProtos.Proto2.ForeignEnum> OptionalForeignEnumExtension = 8175 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)); 8176 } 8177 #endregion 8178 8179 } 8180 8181 /// <summary> 8182 /// We have separate messages for testing required fields because it's 8183 /// annoying to have to fill in required fields in TestProto in order to 8184 /// do anything with it. Note that we don't need to test every type of 8185 /// required filed because the code output is basically identical to 8186 /// optional fields for all types. 8187 /// </summary> 8188 [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] 8189 public sealed partial class TestRequired : pb::IMessage<TestRequired> 8190 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 8191 , pb::IBufferMessage 8192 #endif 8193 { 8194 private static readonly pb::MessageParser<TestRequired> _parser = new pb::MessageParser<TestRequired>(() => new TestRequired()); 8195 private pb::UnknownFieldSet _unknownFields; 8196 private int _hasBits0; 8197 private int _hasBits1; 8198 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 8199 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 8200 public static pb::MessageParser<TestRequired> Parser { get { return _parser; } } 8201 8202 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 8203 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 8204 public static pbr::MessageDescriptor Descriptor { 8205 get { return global::Google.Protobuf.TestProtos.Proto2.UnittestReflection.Descriptor.MessageTypes[12]; } 8206 } 8207 8208 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 8209 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 8210 pbr::MessageDescriptor pb::IMessage.Descriptor { 8211 get { return Descriptor; } 8212 } 8213 8214 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 8215 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] TestRequired()8216 public TestRequired() { 8217 OnConstruction(); 8218 } 8219 OnConstruction()8220 partial void OnConstruction(); 8221 8222 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 8223 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] TestRequired(TestRequired other)8224 public TestRequired(TestRequired other) : this() { 8225 _hasBits0 = other._hasBits0; 8226 _hasBits1 = other._hasBits1; 8227 a_ = other.a_; 8228 dummy2_ = other.dummy2_; 8229 b_ = other.b_; 8230 dummy4_ = other.dummy4_; 8231 dummy5_ = other.dummy5_; 8232 dummy6_ = other.dummy6_; 8233 dummy7_ = other.dummy7_; 8234 dummy8_ = other.dummy8_; 8235 dummy9_ = other.dummy9_; 8236 dummy10_ = other.dummy10_; 8237 dummy11_ = other.dummy11_; 8238 dummy12_ = other.dummy12_; 8239 dummy13_ = other.dummy13_; 8240 dummy14_ = other.dummy14_; 8241 dummy15_ = other.dummy15_; 8242 dummy16_ = other.dummy16_; 8243 dummy17_ = other.dummy17_; 8244 dummy18_ = other.dummy18_; 8245 dummy19_ = other.dummy19_; 8246 dummy20_ = other.dummy20_; 8247 dummy21_ = other.dummy21_; 8248 dummy22_ = other.dummy22_; 8249 dummy23_ = other.dummy23_; 8250 dummy24_ = other.dummy24_; 8251 dummy25_ = other.dummy25_; 8252 dummy26_ = other.dummy26_; 8253 dummy27_ = other.dummy27_; 8254 dummy28_ = other.dummy28_; 8255 dummy29_ = other.dummy29_; 8256 dummy30_ = other.dummy30_; 8257 dummy31_ = other.dummy31_; 8258 dummy32_ = other.dummy32_; 8259 c_ = other.c_; 8260 _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); 8261 } 8262 8263 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 8264 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] Clone()8265 public TestRequired Clone() { 8266 return new TestRequired(this); 8267 } 8268 8269 /// <summary>Field number for the "a" field.</summary> 8270 public const int AFieldNumber = 1; 8271 private readonly static int ADefaultValue = 0; 8272 8273 private int a_; 8274 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 8275 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 8276 public int A { 8277 get { if ((_hasBits0 & 1) != 0) { return a_; } else { return ADefaultValue; } } 8278 set { 8279 _hasBits0 |= 1; 8280 a_ = value; 8281 } 8282 } 8283 /// <summary>Gets whether the "a" field is set</summary> 8284 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 8285 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 8286 public bool HasA { 8287 get { return (_hasBits0 & 1) != 0; } 8288 } 8289 /// <summary>Clears the value of the "a" field</summary> 8290 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 8291 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] ClearA()8292 public void ClearA() { 8293 _hasBits0 &= ~1; 8294 } 8295 8296 /// <summary>Field number for the "dummy2" field.</summary> 8297 public const int Dummy2FieldNumber = 2; 8298 private readonly static int Dummy2DefaultValue = 0; 8299 8300 private int dummy2_; 8301 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 8302 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 8303 public int Dummy2 { 8304 get { if ((_hasBits0 & 2) != 0) { return dummy2_; } else { return Dummy2DefaultValue; } } 8305 set { 8306 _hasBits0 |= 2; 8307 dummy2_ = value; 8308 } 8309 } 8310 /// <summary>Gets whether the "dummy2" field is set</summary> 8311 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 8312 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 8313 public bool HasDummy2 { 8314 get { return (_hasBits0 & 2) != 0; } 8315 } 8316 /// <summary>Clears the value of the "dummy2" field</summary> 8317 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 8318 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] ClearDummy2()8319 public void ClearDummy2() { 8320 _hasBits0 &= ~2; 8321 } 8322 8323 /// <summary>Field number for the "b" field.</summary> 8324 public const int BFieldNumber = 3; 8325 private readonly static int BDefaultValue = 0; 8326 8327 private int b_; 8328 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 8329 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 8330 public int B { 8331 get { if ((_hasBits0 & 4) != 0) { return b_; } else { return BDefaultValue; } } 8332 set { 8333 _hasBits0 |= 4; 8334 b_ = value; 8335 } 8336 } 8337 /// <summary>Gets whether the "b" field is set</summary> 8338 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 8339 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 8340 public bool HasB { 8341 get { return (_hasBits0 & 4) != 0; } 8342 } 8343 /// <summary>Clears the value of the "b" field</summary> 8344 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 8345 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] ClearB()8346 public void ClearB() { 8347 _hasBits0 &= ~4; 8348 } 8349 8350 /// <summary>Field number for the "dummy4" field.</summary> 8351 public const int Dummy4FieldNumber = 4; 8352 private readonly static int Dummy4DefaultValue = 0; 8353 8354 private int dummy4_; 8355 /// <summary> 8356 /// Pad the field count to 32 so that we can test that IsInitialized() 8357 /// properly checks multiple elements of has_bits_. 8358 /// </summary> 8359 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 8360 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 8361 public int Dummy4 { 8362 get { if ((_hasBits0 & 8) != 0) { return dummy4_; } else { return Dummy4DefaultValue; } } 8363 set { 8364 _hasBits0 |= 8; 8365 dummy4_ = value; 8366 } 8367 } 8368 /// <summary>Gets whether the "dummy4" field is set</summary> 8369 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 8370 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 8371 public bool HasDummy4 { 8372 get { return (_hasBits0 & 8) != 0; } 8373 } 8374 /// <summary>Clears the value of the "dummy4" field</summary> 8375 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 8376 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] ClearDummy4()8377 public void ClearDummy4() { 8378 _hasBits0 &= ~8; 8379 } 8380 8381 /// <summary>Field number for the "dummy5" field.</summary> 8382 public const int Dummy5FieldNumber = 5; 8383 private readonly static int Dummy5DefaultValue = 0; 8384 8385 private int dummy5_; 8386 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 8387 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 8388 public int Dummy5 { 8389 get { if ((_hasBits0 & 16) != 0) { return dummy5_; } else { return Dummy5DefaultValue; } } 8390 set { 8391 _hasBits0 |= 16; 8392 dummy5_ = value; 8393 } 8394 } 8395 /// <summary>Gets whether the "dummy5" field is set</summary> 8396 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 8397 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 8398 public bool HasDummy5 { 8399 get { return (_hasBits0 & 16) != 0; } 8400 } 8401 /// <summary>Clears the value of the "dummy5" field</summary> 8402 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 8403 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] ClearDummy5()8404 public void ClearDummy5() { 8405 _hasBits0 &= ~16; 8406 } 8407 8408 /// <summary>Field number for the "dummy6" field.</summary> 8409 public const int Dummy6FieldNumber = 6; 8410 private readonly static int Dummy6DefaultValue = 0; 8411 8412 private int dummy6_; 8413 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 8414 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 8415 public int Dummy6 { 8416 get { if ((_hasBits0 & 32) != 0) { return dummy6_; } else { return Dummy6DefaultValue; } } 8417 set { 8418 _hasBits0 |= 32; 8419 dummy6_ = value; 8420 } 8421 } 8422 /// <summary>Gets whether the "dummy6" field is set</summary> 8423 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 8424 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 8425 public bool HasDummy6 { 8426 get { return (_hasBits0 & 32) != 0; } 8427 } 8428 /// <summary>Clears the value of the "dummy6" field</summary> 8429 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 8430 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] ClearDummy6()8431 public void ClearDummy6() { 8432 _hasBits0 &= ~32; 8433 } 8434 8435 /// <summary>Field number for the "dummy7" field.</summary> 8436 public const int Dummy7FieldNumber = 7; 8437 private readonly static int Dummy7DefaultValue = 0; 8438 8439 private int dummy7_; 8440 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 8441 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 8442 public int Dummy7 { 8443 get { if ((_hasBits0 & 64) != 0) { return dummy7_; } else { return Dummy7DefaultValue; } } 8444 set { 8445 _hasBits0 |= 64; 8446 dummy7_ = value; 8447 } 8448 } 8449 /// <summary>Gets whether the "dummy7" field is set</summary> 8450 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 8451 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 8452 public bool HasDummy7 { 8453 get { return (_hasBits0 & 64) != 0; } 8454 } 8455 /// <summary>Clears the value of the "dummy7" field</summary> 8456 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 8457 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] ClearDummy7()8458 public void ClearDummy7() { 8459 _hasBits0 &= ~64; 8460 } 8461 8462 /// <summary>Field number for the "dummy8" field.</summary> 8463 public const int Dummy8FieldNumber = 8; 8464 private readonly static int Dummy8DefaultValue = 0; 8465 8466 private int dummy8_; 8467 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 8468 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 8469 public int Dummy8 { 8470 get { if ((_hasBits0 & 128) != 0) { return dummy8_; } else { return Dummy8DefaultValue; } } 8471 set { 8472 _hasBits0 |= 128; 8473 dummy8_ = value; 8474 } 8475 } 8476 /// <summary>Gets whether the "dummy8" field is set</summary> 8477 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 8478 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 8479 public bool HasDummy8 { 8480 get { return (_hasBits0 & 128) != 0; } 8481 } 8482 /// <summary>Clears the value of the "dummy8" field</summary> 8483 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 8484 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] ClearDummy8()8485 public void ClearDummy8() { 8486 _hasBits0 &= ~128; 8487 } 8488 8489 /// <summary>Field number for the "dummy9" field.</summary> 8490 public const int Dummy9FieldNumber = 9; 8491 private readonly static int Dummy9DefaultValue = 0; 8492 8493 private int dummy9_; 8494 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 8495 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 8496 public int Dummy9 { 8497 get { if ((_hasBits0 & 256) != 0) { return dummy9_; } else { return Dummy9DefaultValue; } } 8498 set { 8499 _hasBits0 |= 256; 8500 dummy9_ = value; 8501 } 8502 } 8503 /// <summary>Gets whether the "dummy9" field is set</summary> 8504 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 8505 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 8506 public bool HasDummy9 { 8507 get { return (_hasBits0 & 256) != 0; } 8508 } 8509 /// <summary>Clears the value of the "dummy9" field</summary> 8510 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 8511 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] ClearDummy9()8512 public void ClearDummy9() { 8513 _hasBits0 &= ~256; 8514 } 8515 8516 /// <summary>Field number for the "dummy10" field.</summary> 8517 public const int Dummy10FieldNumber = 10; 8518 private readonly static int Dummy10DefaultValue = 0; 8519 8520 private int dummy10_; 8521 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 8522 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 8523 public int Dummy10 { 8524 get { if ((_hasBits0 & 512) != 0) { return dummy10_; } else { return Dummy10DefaultValue; } } 8525 set { 8526 _hasBits0 |= 512; 8527 dummy10_ = value; 8528 } 8529 } 8530 /// <summary>Gets whether the "dummy10" field is set</summary> 8531 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 8532 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 8533 public bool HasDummy10 { 8534 get { return (_hasBits0 & 512) != 0; } 8535 } 8536 /// <summary>Clears the value of the "dummy10" field</summary> 8537 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 8538 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] ClearDummy10()8539 public void ClearDummy10() { 8540 _hasBits0 &= ~512; 8541 } 8542 8543 /// <summary>Field number for the "dummy11" field.</summary> 8544 public const int Dummy11FieldNumber = 11; 8545 private readonly static int Dummy11DefaultValue = 0; 8546 8547 private int dummy11_; 8548 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 8549 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 8550 public int Dummy11 { 8551 get { if ((_hasBits0 & 1024) != 0) { return dummy11_; } else { return Dummy11DefaultValue; } } 8552 set { 8553 _hasBits0 |= 1024; 8554 dummy11_ = value; 8555 } 8556 } 8557 /// <summary>Gets whether the "dummy11" field is set</summary> 8558 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 8559 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 8560 public bool HasDummy11 { 8561 get { return (_hasBits0 & 1024) != 0; } 8562 } 8563 /// <summary>Clears the value of the "dummy11" field</summary> 8564 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 8565 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] ClearDummy11()8566 public void ClearDummy11() { 8567 _hasBits0 &= ~1024; 8568 } 8569 8570 /// <summary>Field number for the "dummy12" field.</summary> 8571 public const int Dummy12FieldNumber = 12; 8572 private readonly static int Dummy12DefaultValue = 0; 8573 8574 private int dummy12_; 8575 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 8576 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 8577 public int Dummy12 { 8578 get { if ((_hasBits0 & 2048) != 0) { return dummy12_; } else { return Dummy12DefaultValue; } } 8579 set { 8580 _hasBits0 |= 2048; 8581 dummy12_ = value; 8582 } 8583 } 8584 /// <summary>Gets whether the "dummy12" field is set</summary> 8585 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 8586 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 8587 public bool HasDummy12 { 8588 get { return (_hasBits0 & 2048) != 0; } 8589 } 8590 /// <summary>Clears the value of the "dummy12" field</summary> 8591 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 8592 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] ClearDummy12()8593 public void ClearDummy12() { 8594 _hasBits0 &= ~2048; 8595 } 8596 8597 /// <summary>Field number for the "dummy13" field.</summary> 8598 public const int Dummy13FieldNumber = 13; 8599 private readonly static int Dummy13DefaultValue = 0; 8600 8601 private int dummy13_; 8602 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 8603 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 8604 public int Dummy13 { 8605 get { if ((_hasBits0 & 4096) != 0) { return dummy13_; } else { return Dummy13DefaultValue; } } 8606 set { 8607 _hasBits0 |= 4096; 8608 dummy13_ = value; 8609 } 8610 } 8611 /// <summary>Gets whether the "dummy13" field is set</summary> 8612 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 8613 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 8614 public bool HasDummy13 { 8615 get { return (_hasBits0 & 4096) != 0; } 8616 } 8617 /// <summary>Clears the value of the "dummy13" field</summary> 8618 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 8619 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] ClearDummy13()8620 public void ClearDummy13() { 8621 _hasBits0 &= ~4096; 8622 } 8623 8624 /// <summary>Field number for the "dummy14" field.</summary> 8625 public const int Dummy14FieldNumber = 14; 8626 private readonly static int Dummy14DefaultValue = 0; 8627 8628 private int dummy14_; 8629 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 8630 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 8631 public int Dummy14 { 8632 get { if ((_hasBits0 & 8192) != 0) { return dummy14_; } else { return Dummy14DefaultValue; } } 8633 set { 8634 _hasBits0 |= 8192; 8635 dummy14_ = value; 8636 } 8637 } 8638 /// <summary>Gets whether the "dummy14" field is set</summary> 8639 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 8640 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 8641 public bool HasDummy14 { 8642 get { return (_hasBits0 & 8192) != 0; } 8643 } 8644 /// <summary>Clears the value of the "dummy14" field</summary> 8645 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 8646 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] ClearDummy14()8647 public void ClearDummy14() { 8648 _hasBits0 &= ~8192; 8649 } 8650 8651 /// <summary>Field number for the "dummy15" field.</summary> 8652 public const int Dummy15FieldNumber = 15; 8653 private readonly static int Dummy15DefaultValue = 0; 8654 8655 private int dummy15_; 8656 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 8657 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 8658 public int Dummy15 { 8659 get { if ((_hasBits0 & 16384) != 0) { return dummy15_; } else { return Dummy15DefaultValue; } } 8660 set { 8661 _hasBits0 |= 16384; 8662 dummy15_ = value; 8663 } 8664 } 8665 /// <summary>Gets whether the "dummy15" field is set</summary> 8666 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 8667 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 8668 public bool HasDummy15 { 8669 get { return (_hasBits0 & 16384) != 0; } 8670 } 8671 /// <summary>Clears the value of the "dummy15" field</summary> 8672 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 8673 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] ClearDummy15()8674 public void ClearDummy15() { 8675 _hasBits0 &= ~16384; 8676 } 8677 8678 /// <summary>Field number for the "dummy16" field.</summary> 8679 public const int Dummy16FieldNumber = 16; 8680 private readonly static int Dummy16DefaultValue = 0; 8681 8682 private int dummy16_; 8683 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 8684 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 8685 public int Dummy16 { 8686 get { if ((_hasBits0 & 32768) != 0) { return dummy16_; } else { return Dummy16DefaultValue; } } 8687 set { 8688 _hasBits0 |= 32768; 8689 dummy16_ = value; 8690 } 8691 } 8692 /// <summary>Gets whether the "dummy16" field is set</summary> 8693 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 8694 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 8695 public bool HasDummy16 { 8696 get { return (_hasBits0 & 32768) != 0; } 8697 } 8698 /// <summary>Clears the value of the "dummy16" field</summary> 8699 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 8700 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] ClearDummy16()8701 public void ClearDummy16() { 8702 _hasBits0 &= ~32768; 8703 } 8704 8705 /// <summary>Field number for the "dummy17" field.</summary> 8706 public const int Dummy17FieldNumber = 17; 8707 private readonly static int Dummy17DefaultValue = 0; 8708 8709 private int dummy17_; 8710 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 8711 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 8712 public int Dummy17 { 8713 get { if ((_hasBits0 & 65536) != 0) { return dummy17_; } else { return Dummy17DefaultValue; } } 8714 set { 8715 _hasBits0 |= 65536; 8716 dummy17_ = value; 8717 } 8718 } 8719 /// <summary>Gets whether the "dummy17" field is set</summary> 8720 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 8721 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 8722 public bool HasDummy17 { 8723 get { return (_hasBits0 & 65536) != 0; } 8724 } 8725 /// <summary>Clears the value of the "dummy17" field</summary> 8726 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 8727 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] ClearDummy17()8728 public void ClearDummy17() { 8729 _hasBits0 &= ~65536; 8730 } 8731 8732 /// <summary>Field number for the "dummy18" field.</summary> 8733 public const int Dummy18FieldNumber = 18; 8734 private readonly static int Dummy18DefaultValue = 0; 8735 8736 private int dummy18_; 8737 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 8738 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 8739 public int Dummy18 { 8740 get { if ((_hasBits0 & 131072) != 0) { return dummy18_; } else { return Dummy18DefaultValue; } } 8741 set { 8742 _hasBits0 |= 131072; 8743 dummy18_ = value; 8744 } 8745 } 8746 /// <summary>Gets whether the "dummy18" field is set</summary> 8747 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 8748 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 8749 public bool HasDummy18 { 8750 get { return (_hasBits0 & 131072) != 0; } 8751 } 8752 /// <summary>Clears the value of the "dummy18" field</summary> 8753 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 8754 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] ClearDummy18()8755 public void ClearDummy18() { 8756 _hasBits0 &= ~131072; 8757 } 8758 8759 /// <summary>Field number for the "dummy19" field.</summary> 8760 public const int Dummy19FieldNumber = 19; 8761 private readonly static int Dummy19DefaultValue = 0; 8762 8763 private int dummy19_; 8764 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 8765 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 8766 public int Dummy19 { 8767 get { if ((_hasBits0 & 262144) != 0) { return dummy19_; } else { return Dummy19DefaultValue; } } 8768 set { 8769 _hasBits0 |= 262144; 8770 dummy19_ = value; 8771 } 8772 } 8773 /// <summary>Gets whether the "dummy19" field is set</summary> 8774 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 8775 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 8776 public bool HasDummy19 { 8777 get { return (_hasBits0 & 262144) != 0; } 8778 } 8779 /// <summary>Clears the value of the "dummy19" field</summary> 8780 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 8781 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] ClearDummy19()8782 public void ClearDummy19() { 8783 _hasBits0 &= ~262144; 8784 } 8785 8786 /// <summary>Field number for the "dummy20" field.</summary> 8787 public const int Dummy20FieldNumber = 20; 8788 private readonly static int Dummy20DefaultValue = 0; 8789 8790 private int dummy20_; 8791 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 8792 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 8793 public int Dummy20 { 8794 get { if ((_hasBits0 & 524288) != 0) { return dummy20_; } else { return Dummy20DefaultValue; } } 8795 set { 8796 _hasBits0 |= 524288; 8797 dummy20_ = value; 8798 } 8799 } 8800 /// <summary>Gets whether the "dummy20" field is set</summary> 8801 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 8802 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 8803 public bool HasDummy20 { 8804 get { return (_hasBits0 & 524288) != 0; } 8805 } 8806 /// <summary>Clears the value of the "dummy20" field</summary> 8807 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 8808 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] ClearDummy20()8809 public void ClearDummy20() { 8810 _hasBits0 &= ~524288; 8811 } 8812 8813 /// <summary>Field number for the "dummy21" field.</summary> 8814 public const int Dummy21FieldNumber = 21; 8815 private readonly static int Dummy21DefaultValue = 0; 8816 8817 private int dummy21_; 8818 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 8819 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 8820 public int Dummy21 { 8821 get { if ((_hasBits0 & 1048576) != 0) { return dummy21_; } else { return Dummy21DefaultValue; } } 8822 set { 8823 _hasBits0 |= 1048576; 8824 dummy21_ = value; 8825 } 8826 } 8827 /// <summary>Gets whether the "dummy21" field is set</summary> 8828 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 8829 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 8830 public bool HasDummy21 { 8831 get { return (_hasBits0 & 1048576) != 0; } 8832 } 8833 /// <summary>Clears the value of the "dummy21" field</summary> 8834 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 8835 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] ClearDummy21()8836 public void ClearDummy21() { 8837 _hasBits0 &= ~1048576; 8838 } 8839 8840 /// <summary>Field number for the "dummy22" field.</summary> 8841 public const int Dummy22FieldNumber = 22; 8842 private readonly static int Dummy22DefaultValue = 0; 8843 8844 private int dummy22_; 8845 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 8846 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 8847 public int Dummy22 { 8848 get { if ((_hasBits0 & 2097152) != 0) { return dummy22_; } else { return Dummy22DefaultValue; } } 8849 set { 8850 _hasBits0 |= 2097152; 8851 dummy22_ = value; 8852 } 8853 } 8854 /// <summary>Gets whether the "dummy22" field is set</summary> 8855 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 8856 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 8857 public bool HasDummy22 { 8858 get { return (_hasBits0 & 2097152) != 0; } 8859 } 8860 /// <summary>Clears the value of the "dummy22" field</summary> 8861 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 8862 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] ClearDummy22()8863 public void ClearDummy22() { 8864 _hasBits0 &= ~2097152; 8865 } 8866 8867 /// <summary>Field number for the "dummy23" field.</summary> 8868 public const int Dummy23FieldNumber = 23; 8869 private readonly static int Dummy23DefaultValue = 0; 8870 8871 private int dummy23_; 8872 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 8873 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 8874 public int Dummy23 { 8875 get { if ((_hasBits0 & 4194304) != 0) { return dummy23_; } else { return Dummy23DefaultValue; } } 8876 set { 8877 _hasBits0 |= 4194304; 8878 dummy23_ = value; 8879 } 8880 } 8881 /// <summary>Gets whether the "dummy23" field is set</summary> 8882 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 8883 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 8884 public bool HasDummy23 { 8885 get { return (_hasBits0 & 4194304) != 0; } 8886 } 8887 /// <summary>Clears the value of the "dummy23" field</summary> 8888 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 8889 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] ClearDummy23()8890 public void ClearDummy23() { 8891 _hasBits0 &= ~4194304; 8892 } 8893 8894 /// <summary>Field number for the "dummy24" field.</summary> 8895 public const int Dummy24FieldNumber = 24; 8896 private readonly static int Dummy24DefaultValue = 0; 8897 8898 private int dummy24_; 8899 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 8900 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 8901 public int Dummy24 { 8902 get { if ((_hasBits0 & 8388608) != 0) { return dummy24_; } else { return Dummy24DefaultValue; } } 8903 set { 8904 _hasBits0 |= 8388608; 8905 dummy24_ = value; 8906 } 8907 } 8908 /// <summary>Gets whether the "dummy24" field is set</summary> 8909 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 8910 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 8911 public bool HasDummy24 { 8912 get { return (_hasBits0 & 8388608) != 0; } 8913 } 8914 /// <summary>Clears the value of the "dummy24" field</summary> 8915 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 8916 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] ClearDummy24()8917 public void ClearDummy24() { 8918 _hasBits0 &= ~8388608; 8919 } 8920 8921 /// <summary>Field number for the "dummy25" field.</summary> 8922 public const int Dummy25FieldNumber = 25; 8923 private readonly static int Dummy25DefaultValue = 0; 8924 8925 private int dummy25_; 8926 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 8927 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 8928 public int Dummy25 { 8929 get { if ((_hasBits0 & 16777216) != 0) { return dummy25_; } else { return Dummy25DefaultValue; } } 8930 set { 8931 _hasBits0 |= 16777216; 8932 dummy25_ = value; 8933 } 8934 } 8935 /// <summary>Gets whether the "dummy25" field is set</summary> 8936 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 8937 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 8938 public bool HasDummy25 { 8939 get { return (_hasBits0 & 16777216) != 0; } 8940 } 8941 /// <summary>Clears the value of the "dummy25" field</summary> 8942 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 8943 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] ClearDummy25()8944 public void ClearDummy25() { 8945 _hasBits0 &= ~16777216; 8946 } 8947 8948 /// <summary>Field number for the "dummy26" field.</summary> 8949 public const int Dummy26FieldNumber = 26; 8950 private readonly static int Dummy26DefaultValue = 0; 8951 8952 private int dummy26_; 8953 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 8954 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 8955 public int Dummy26 { 8956 get { if ((_hasBits0 & 33554432) != 0) { return dummy26_; } else { return Dummy26DefaultValue; } } 8957 set { 8958 _hasBits0 |= 33554432; 8959 dummy26_ = value; 8960 } 8961 } 8962 /// <summary>Gets whether the "dummy26" field is set</summary> 8963 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 8964 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 8965 public bool HasDummy26 { 8966 get { return (_hasBits0 & 33554432) != 0; } 8967 } 8968 /// <summary>Clears the value of the "dummy26" field</summary> 8969 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 8970 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] ClearDummy26()8971 public void ClearDummy26() { 8972 _hasBits0 &= ~33554432; 8973 } 8974 8975 /// <summary>Field number for the "dummy27" field.</summary> 8976 public const int Dummy27FieldNumber = 27; 8977 private readonly static int Dummy27DefaultValue = 0; 8978 8979 private int dummy27_; 8980 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 8981 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 8982 public int Dummy27 { 8983 get { if ((_hasBits0 & 67108864) != 0) { return dummy27_; } else { return Dummy27DefaultValue; } } 8984 set { 8985 _hasBits0 |= 67108864; 8986 dummy27_ = value; 8987 } 8988 } 8989 /// <summary>Gets whether the "dummy27" field is set</summary> 8990 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 8991 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 8992 public bool HasDummy27 { 8993 get { return (_hasBits0 & 67108864) != 0; } 8994 } 8995 /// <summary>Clears the value of the "dummy27" field</summary> 8996 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 8997 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] ClearDummy27()8998 public void ClearDummy27() { 8999 _hasBits0 &= ~67108864; 9000 } 9001 9002 /// <summary>Field number for the "dummy28" field.</summary> 9003 public const int Dummy28FieldNumber = 28; 9004 private readonly static int Dummy28DefaultValue = 0; 9005 9006 private int dummy28_; 9007 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 9008 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 9009 public int Dummy28 { 9010 get { if ((_hasBits0 & 134217728) != 0) { return dummy28_; } else { return Dummy28DefaultValue; } } 9011 set { 9012 _hasBits0 |= 134217728; 9013 dummy28_ = value; 9014 } 9015 } 9016 /// <summary>Gets whether the "dummy28" field is set</summary> 9017 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 9018 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 9019 public bool HasDummy28 { 9020 get { return (_hasBits0 & 134217728) != 0; } 9021 } 9022 /// <summary>Clears the value of the "dummy28" field</summary> 9023 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 9024 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] ClearDummy28()9025 public void ClearDummy28() { 9026 _hasBits0 &= ~134217728; 9027 } 9028 9029 /// <summary>Field number for the "dummy29" field.</summary> 9030 public const int Dummy29FieldNumber = 29; 9031 private readonly static int Dummy29DefaultValue = 0; 9032 9033 private int dummy29_; 9034 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 9035 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 9036 public int Dummy29 { 9037 get { if ((_hasBits0 & 268435456) != 0) { return dummy29_; } else { return Dummy29DefaultValue; } } 9038 set { 9039 _hasBits0 |= 268435456; 9040 dummy29_ = value; 9041 } 9042 } 9043 /// <summary>Gets whether the "dummy29" field is set</summary> 9044 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 9045 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 9046 public bool HasDummy29 { 9047 get { return (_hasBits0 & 268435456) != 0; } 9048 } 9049 /// <summary>Clears the value of the "dummy29" field</summary> 9050 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 9051 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] ClearDummy29()9052 public void ClearDummy29() { 9053 _hasBits0 &= ~268435456; 9054 } 9055 9056 /// <summary>Field number for the "dummy30" field.</summary> 9057 public const int Dummy30FieldNumber = 30; 9058 private readonly static int Dummy30DefaultValue = 0; 9059 9060 private int dummy30_; 9061 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 9062 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 9063 public int Dummy30 { 9064 get { if ((_hasBits0 & 536870912) != 0) { return dummy30_; } else { return Dummy30DefaultValue; } } 9065 set { 9066 _hasBits0 |= 536870912; 9067 dummy30_ = value; 9068 } 9069 } 9070 /// <summary>Gets whether the "dummy30" field is set</summary> 9071 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 9072 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 9073 public bool HasDummy30 { 9074 get { return (_hasBits0 & 536870912) != 0; } 9075 } 9076 /// <summary>Clears the value of the "dummy30" field</summary> 9077 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 9078 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] ClearDummy30()9079 public void ClearDummy30() { 9080 _hasBits0 &= ~536870912; 9081 } 9082 9083 /// <summary>Field number for the "dummy31" field.</summary> 9084 public const int Dummy31FieldNumber = 31; 9085 private readonly static int Dummy31DefaultValue = 0; 9086 9087 private int dummy31_; 9088 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 9089 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 9090 public int Dummy31 { 9091 get { if ((_hasBits0 & 1073741824) != 0) { return dummy31_; } else { return Dummy31DefaultValue; } } 9092 set { 9093 _hasBits0 |= 1073741824; 9094 dummy31_ = value; 9095 } 9096 } 9097 /// <summary>Gets whether the "dummy31" field is set</summary> 9098 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 9099 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 9100 public bool HasDummy31 { 9101 get { return (_hasBits0 & 1073741824) != 0; } 9102 } 9103 /// <summary>Clears the value of the "dummy31" field</summary> 9104 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 9105 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] ClearDummy31()9106 public void ClearDummy31() { 9107 _hasBits0 &= ~1073741824; 9108 } 9109 9110 /// <summary>Field number for the "dummy32" field.</summary> 9111 public const int Dummy32FieldNumber = 32; 9112 private readonly static int Dummy32DefaultValue = 0; 9113 9114 private int dummy32_; 9115 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 9116 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 9117 public int Dummy32 { 9118 get { if ((_hasBits0 & -2147483648) != 0) { return dummy32_; } else { return Dummy32DefaultValue; } } 9119 set { 9120 _hasBits0 |= -2147483648; 9121 dummy32_ = value; 9122 } 9123 } 9124 /// <summary>Gets whether the "dummy32" field is set</summary> 9125 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 9126 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 9127 public bool HasDummy32 { 9128 get { return (_hasBits0 & -2147483648) != 0; } 9129 } 9130 /// <summary>Clears the value of the "dummy32" field</summary> 9131 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 9132 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] ClearDummy32()9133 public void ClearDummy32() { 9134 _hasBits0 &= ~-2147483648; 9135 } 9136 9137 /// <summary>Field number for the "c" field.</summary> 9138 public const int CFieldNumber = 33; 9139 private readonly static int CDefaultValue = 0; 9140 9141 private int c_; 9142 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 9143 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 9144 public int C { 9145 get { if ((_hasBits1 & 1) != 0) { return c_; } else { return CDefaultValue; } } 9146 set { 9147 _hasBits1 |= 1; 9148 c_ = value; 9149 } 9150 } 9151 /// <summary>Gets whether the "c" field is set</summary> 9152 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 9153 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 9154 public bool HasC { 9155 get { return (_hasBits1 & 1) != 0; } 9156 } 9157 /// <summary>Clears the value of the "c" field</summary> 9158 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 9159 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] ClearC()9160 public void ClearC() { 9161 _hasBits1 &= ~1; 9162 } 9163 9164 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 9165 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] Equals(object other)9166 public override bool Equals(object other) { 9167 return Equals(other as TestRequired); 9168 } 9169 9170 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 9171 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] Equals(TestRequired other)9172 public bool Equals(TestRequired other) { 9173 if (ReferenceEquals(other, null)) { 9174 return false; 9175 } 9176 if (ReferenceEquals(other, this)) { 9177 return true; 9178 } 9179 if (A != other.A) return false; 9180 if (Dummy2 != other.Dummy2) return false; 9181 if (B != other.B) return false; 9182 if (Dummy4 != other.Dummy4) return false; 9183 if (Dummy5 != other.Dummy5) return false; 9184 if (Dummy6 != other.Dummy6) return false; 9185 if (Dummy7 != other.Dummy7) return false; 9186 if (Dummy8 != other.Dummy8) return false; 9187 if (Dummy9 != other.Dummy9) return false; 9188 if (Dummy10 != other.Dummy10) return false; 9189 if (Dummy11 != other.Dummy11) return false; 9190 if (Dummy12 != other.Dummy12) return false; 9191 if (Dummy13 != other.Dummy13) return false; 9192 if (Dummy14 != other.Dummy14) return false; 9193 if (Dummy15 != other.Dummy15) return false; 9194 if (Dummy16 != other.Dummy16) return false; 9195 if (Dummy17 != other.Dummy17) return false; 9196 if (Dummy18 != other.Dummy18) return false; 9197 if (Dummy19 != other.Dummy19) return false; 9198 if (Dummy20 != other.Dummy20) return false; 9199 if (Dummy21 != other.Dummy21) return false; 9200 if (Dummy22 != other.Dummy22) return false; 9201 if (Dummy23 != other.Dummy23) return false; 9202 if (Dummy24 != other.Dummy24) return false; 9203 if (Dummy25 != other.Dummy25) return false; 9204 if (Dummy26 != other.Dummy26) return false; 9205 if (Dummy27 != other.Dummy27) return false; 9206 if (Dummy28 != other.Dummy28) return false; 9207 if (Dummy29 != other.Dummy29) return false; 9208 if (Dummy30 != other.Dummy30) return false; 9209 if (Dummy31 != other.Dummy31) return false; 9210 if (Dummy32 != other.Dummy32) return false; 9211 if (C != other.C) return false; 9212 return Equals(_unknownFields, other._unknownFields); 9213 } 9214 9215 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 9216 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] GetHashCode()9217 public override int GetHashCode() { 9218 int hash = 1; 9219 if (HasA) hash ^= A.GetHashCode(); 9220 if (HasDummy2) hash ^= Dummy2.GetHashCode(); 9221 if (HasB) hash ^= B.GetHashCode(); 9222 if (HasDummy4) hash ^= Dummy4.GetHashCode(); 9223 if (HasDummy5) hash ^= Dummy5.GetHashCode(); 9224 if (HasDummy6) hash ^= Dummy6.GetHashCode(); 9225 if (HasDummy7) hash ^= Dummy7.GetHashCode(); 9226 if (HasDummy8) hash ^= Dummy8.GetHashCode(); 9227 if (HasDummy9) hash ^= Dummy9.GetHashCode(); 9228 if (HasDummy10) hash ^= Dummy10.GetHashCode(); 9229 if (HasDummy11) hash ^= Dummy11.GetHashCode(); 9230 if (HasDummy12) hash ^= Dummy12.GetHashCode(); 9231 if (HasDummy13) hash ^= Dummy13.GetHashCode(); 9232 if (HasDummy14) hash ^= Dummy14.GetHashCode(); 9233 if (HasDummy15) hash ^= Dummy15.GetHashCode(); 9234 if (HasDummy16) hash ^= Dummy16.GetHashCode(); 9235 if (HasDummy17) hash ^= Dummy17.GetHashCode(); 9236 if (HasDummy18) hash ^= Dummy18.GetHashCode(); 9237 if (HasDummy19) hash ^= Dummy19.GetHashCode(); 9238 if (HasDummy20) hash ^= Dummy20.GetHashCode(); 9239 if (HasDummy21) hash ^= Dummy21.GetHashCode(); 9240 if (HasDummy22) hash ^= Dummy22.GetHashCode(); 9241 if (HasDummy23) hash ^= Dummy23.GetHashCode(); 9242 if (HasDummy24) hash ^= Dummy24.GetHashCode(); 9243 if (HasDummy25) hash ^= Dummy25.GetHashCode(); 9244 if (HasDummy26) hash ^= Dummy26.GetHashCode(); 9245 if (HasDummy27) hash ^= Dummy27.GetHashCode(); 9246 if (HasDummy28) hash ^= Dummy28.GetHashCode(); 9247 if (HasDummy29) hash ^= Dummy29.GetHashCode(); 9248 if (HasDummy30) hash ^= Dummy30.GetHashCode(); 9249 if (HasDummy31) hash ^= Dummy31.GetHashCode(); 9250 if (HasDummy32) hash ^= Dummy32.GetHashCode(); 9251 if (HasC) hash ^= C.GetHashCode(); 9252 if (_unknownFields != null) { 9253 hash ^= _unknownFields.GetHashCode(); 9254 } 9255 return hash; 9256 } 9257 9258 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 9259 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] ToString()9260 public override string ToString() { 9261 return pb::JsonFormatter.ToDiagnosticString(this); 9262 } 9263 9264 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 9265 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] WriteTo(pb::CodedOutputStream output)9266 public void WriteTo(pb::CodedOutputStream output) { 9267 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 9268 output.WriteRawMessage(this); 9269 #else 9270 if (HasA) { 9271 output.WriteRawTag(8); 9272 output.WriteInt32(A); 9273 } 9274 if (HasDummy2) { 9275 output.WriteRawTag(16); 9276 output.WriteInt32(Dummy2); 9277 } 9278 if (HasB) { 9279 output.WriteRawTag(24); 9280 output.WriteInt32(B); 9281 } 9282 if (HasDummy4) { 9283 output.WriteRawTag(32); 9284 output.WriteInt32(Dummy4); 9285 } 9286 if (HasDummy5) { 9287 output.WriteRawTag(40); 9288 output.WriteInt32(Dummy5); 9289 } 9290 if (HasDummy6) { 9291 output.WriteRawTag(48); 9292 output.WriteInt32(Dummy6); 9293 } 9294 if (HasDummy7) { 9295 output.WriteRawTag(56); 9296 output.WriteInt32(Dummy7); 9297 } 9298 if (HasDummy8) { 9299 output.WriteRawTag(64); 9300 output.WriteInt32(Dummy8); 9301 } 9302 if (HasDummy9) { 9303 output.WriteRawTag(72); 9304 output.WriteInt32(Dummy9); 9305 } 9306 if (HasDummy10) { 9307 output.WriteRawTag(80); 9308 output.WriteInt32(Dummy10); 9309 } 9310 if (HasDummy11) { 9311 output.WriteRawTag(88); 9312 output.WriteInt32(Dummy11); 9313 } 9314 if (HasDummy12) { 9315 output.WriteRawTag(96); 9316 output.WriteInt32(Dummy12); 9317 } 9318 if (HasDummy13) { 9319 output.WriteRawTag(104); 9320 output.WriteInt32(Dummy13); 9321 } 9322 if (HasDummy14) { 9323 output.WriteRawTag(112); 9324 output.WriteInt32(Dummy14); 9325 } 9326 if (HasDummy15) { 9327 output.WriteRawTag(120); 9328 output.WriteInt32(Dummy15); 9329 } 9330 if (HasDummy16) { 9331 output.WriteRawTag(128, 1); 9332 output.WriteInt32(Dummy16); 9333 } 9334 if (HasDummy17) { 9335 output.WriteRawTag(136, 1); 9336 output.WriteInt32(Dummy17); 9337 } 9338 if (HasDummy18) { 9339 output.WriteRawTag(144, 1); 9340 output.WriteInt32(Dummy18); 9341 } 9342 if (HasDummy19) { 9343 output.WriteRawTag(152, 1); 9344 output.WriteInt32(Dummy19); 9345 } 9346 if (HasDummy20) { 9347 output.WriteRawTag(160, 1); 9348 output.WriteInt32(Dummy20); 9349 } 9350 if (HasDummy21) { 9351 output.WriteRawTag(168, 1); 9352 output.WriteInt32(Dummy21); 9353 } 9354 if (HasDummy22) { 9355 output.WriteRawTag(176, 1); 9356 output.WriteInt32(Dummy22); 9357 } 9358 if (HasDummy23) { 9359 output.WriteRawTag(184, 1); 9360 output.WriteInt32(Dummy23); 9361 } 9362 if (HasDummy24) { 9363 output.WriteRawTag(192, 1); 9364 output.WriteInt32(Dummy24); 9365 } 9366 if (HasDummy25) { 9367 output.WriteRawTag(200, 1); 9368 output.WriteInt32(Dummy25); 9369 } 9370 if (HasDummy26) { 9371 output.WriteRawTag(208, 1); 9372 output.WriteInt32(Dummy26); 9373 } 9374 if (HasDummy27) { 9375 output.WriteRawTag(216, 1); 9376 output.WriteInt32(Dummy27); 9377 } 9378 if (HasDummy28) { 9379 output.WriteRawTag(224, 1); 9380 output.WriteInt32(Dummy28); 9381 } 9382 if (HasDummy29) { 9383 output.WriteRawTag(232, 1); 9384 output.WriteInt32(Dummy29); 9385 } 9386 if (HasDummy30) { 9387 output.WriteRawTag(240, 1); 9388 output.WriteInt32(Dummy30); 9389 } 9390 if (HasDummy31) { 9391 output.WriteRawTag(248, 1); 9392 output.WriteInt32(Dummy31); 9393 } 9394 if (HasDummy32) { 9395 output.WriteRawTag(128, 2); 9396 output.WriteInt32(Dummy32); 9397 } 9398 if (HasC) { 9399 output.WriteRawTag(136, 2); 9400 output.WriteInt32(C); 9401 } 9402 if (_unknownFields != null) { 9403 _unknownFields.WriteTo(output); 9404 } 9405 #endif 9406 } 9407 9408 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 9409 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 9410 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] IBufferMessage.InternalWriteTo(ref pb::WriteContext output)9411 void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { 9412 if (HasA) { 9413 output.WriteRawTag(8); 9414 output.WriteInt32(A); 9415 } 9416 if (HasDummy2) { 9417 output.WriteRawTag(16); 9418 output.WriteInt32(Dummy2); 9419 } 9420 if (HasB) { 9421 output.WriteRawTag(24); 9422 output.WriteInt32(B); 9423 } 9424 if (HasDummy4) { 9425 output.WriteRawTag(32); 9426 output.WriteInt32(Dummy4); 9427 } 9428 if (HasDummy5) { 9429 output.WriteRawTag(40); 9430 output.WriteInt32(Dummy5); 9431 } 9432 if (HasDummy6) { 9433 output.WriteRawTag(48); 9434 output.WriteInt32(Dummy6); 9435 } 9436 if (HasDummy7) { 9437 output.WriteRawTag(56); 9438 output.WriteInt32(Dummy7); 9439 } 9440 if (HasDummy8) { 9441 output.WriteRawTag(64); 9442 output.WriteInt32(Dummy8); 9443 } 9444 if (HasDummy9) { 9445 output.WriteRawTag(72); 9446 output.WriteInt32(Dummy9); 9447 } 9448 if (HasDummy10) { 9449 output.WriteRawTag(80); 9450 output.WriteInt32(Dummy10); 9451 } 9452 if (HasDummy11) { 9453 output.WriteRawTag(88); 9454 output.WriteInt32(Dummy11); 9455 } 9456 if (HasDummy12) { 9457 output.WriteRawTag(96); 9458 output.WriteInt32(Dummy12); 9459 } 9460 if (HasDummy13) { 9461 output.WriteRawTag(104); 9462 output.WriteInt32(Dummy13); 9463 } 9464 if (HasDummy14) { 9465 output.WriteRawTag(112); 9466 output.WriteInt32(Dummy14); 9467 } 9468 if (HasDummy15) { 9469 output.WriteRawTag(120); 9470 output.WriteInt32(Dummy15); 9471 } 9472 if (HasDummy16) { 9473 output.WriteRawTag(128, 1); 9474 output.WriteInt32(Dummy16); 9475 } 9476 if (HasDummy17) { 9477 output.WriteRawTag(136, 1); 9478 output.WriteInt32(Dummy17); 9479 } 9480 if (HasDummy18) { 9481 output.WriteRawTag(144, 1); 9482 output.WriteInt32(Dummy18); 9483 } 9484 if (HasDummy19) { 9485 output.WriteRawTag(152, 1); 9486 output.WriteInt32(Dummy19); 9487 } 9488 if (HasDummy20) { 9489 output.WriteRawTag(160, 1); 9490 output.WriteInt32(Dummy20); 9491 } 9492 if (HasDummy21) { 9493 output.WriteRawTag(168, 1); 9494 output.WriteInt32(Dummy21); 9495 } 9496 if (HasDummy22) { 9497 output.WriteRawTag(176, 1); 9498 output.WriteInt32(Dummy22); 9499 } 9500 if (HasDummy23) { 9501 output.WriteRawTag(184, 1); 9502 output.WriteInt32(Dummy23); 9503 } 9504 if (HasDummy24) { 9505 output.WriteRawTag(192, 1); 9506 output.WriteInt32(Dummy24); 9507 } 9508 if (HasDummy25) { 9509 output.WriteRawTag(200, 1); 9510 output.WriteInt32(Dummy25); 9511 } 9512 if (HasDummy26) { 9513 output.WriteRawTag(208, 1); 9514 output.WriteInt32(Dummy26); 9515 } 9516 if (HasDummy27) { 9517 output.WriteRawTag(216, 1); 9518 output.WriteInt32(Dummy27); 9519 } 9520 if (HasDummy28) { 9521 output.WriteRawTag(224, 1); 9522 output.WriteInt32(Dummy28); 9523 } 9524 if (HasDummy29) { 9525 output.WriteRawTag(232, 1); 9526 output.WriteInt32(Dummy29); 9527 } 9528 if (HasDummy30) { 9529 output.WriteRawTag(240, 1); 9530 output.WriteInt32(Dummy30); 9531 } 9532 if (HasDummy31) { 9533 output.WriteRawTag(248, 1); 9534 output.WriteInt32(Dummy31); 9535 } 9536 if (HasDummy32) { 9537 output.WriteRawTag(128, 2); 9538 output.WriteInt32(Dummy32); 9539 } 9540 if (HasC) { 9541 output.WriteRawTag(136, 2); 9542 output.WriteInt32(C); 9543 } 9544 if (_unknownFields != null) { 9545 _unknownFields.WriteTo(ref output); 9546 } 9547 } 9548 #endif 9549 9550 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 9551 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] CalculateSize()9552 public int CalculateSize() { 9553 int size = 0; 9554 if (HasA) { 9555 size += 1 + pb::CodedOutputStream.ComputeInt32Size(A); 9556 } 9557 if (HasDummy2) { 9558 size += 1 + pb::CodedOutputStream.ComputeInt32Size(Dummy2); 9559 } 9560 if (HasB) { 9561 size += 1 + pb::CodedOutputStream.ComputeInt32Size(B); 9562 } 9563 if (HasDummy4) { 9564 size += 1 + pb::CodedOutputStream.ComputeInt32Size(Dummy4); 9565 } 9566 if (HasDummy5) { 9567 size += 1 + pb::CodedOutputStream.ComputeInt32Size(Dummy5); 9568 } 9569 if (HasDummy6) { 9570 size += 1 + pb::CodedOutputStream.ComputeInt32Size(Dummy6); 9571 } 9572 if (HasDummy7) { 9573 size += 1 + pb::CodedOutputStream.ComputeInt32Size(Dummy7); 9574 } 9575 if (HasDummy8) { 9576 size += 1 + pb::CodedOutputStream.ComputeInt32Size(Dummy8); 9577 } 9578 if (HasDummy9) { 9579 size += 1 + pb::CodedOutputStream.ComputeInt32Size(Dummy9); 9580 } 9581 if (HasDummy10) { 9582 size += 1 + pb::CodedOutputStream.ComputeInt32Size(Dummy10); 9583 } 9584 if (HasDummy11) { 9585 size += 1 + pb::CodedOutputStream.ComputeInt32Size(Dummy11); 9586 } 9587 if (HasDummy12) { 9588 size += 1 + pb::CodedOutputStream.ComputeInt32Size(Dummy12); 9589 } 9590 if (HasDummy13) { 9591 size += 1 + pb::CodedOutputStream.ComputeInt32Size(Dummy13); 9592 } 9593 if (HasDummy14) { 9594 size += 1 + pb::CodedOutputStream.ComputeInt32Size(Dummy14); 9595 } 9596 if (HasDummy15) { 9597 size += 1 + pb::CodedOutputStream.ComputeInt32Size(Dummy15); 9598 } 9599 if (HasDummy16) { 9600 size += 2 + pb::CodedOutputStream.ComputeInt32Size(Dummy16); 9601 } 9602 if (HasDummy17) { 9603 size += 2 + pb::CodedOutputStream.ComputeInt32Size(Dummy17); 9604 } 9605 if (HasDummy18) { 9606 size += 2 + pb::CodedOutputStream.ComputeInt32Size(Dummy18); 9607 } 9608 if (HasDummy19) { 9609 size += 2 + pb::CodedOutputStream.ComputeInt32Size(Dummy19); 9610 } 9611 if (HasDummy20) { 9612 size += 2 + pb::CodedOutputStream.ComputeInt32Size(Dummy20); 9613 } 9614 if (HasDummy21) { 9615 size += 2 + pb::CodedOutputStream.ComputeInt32Size(Dummy21); 9616 } 9617 if (HasDummy22) { 9618 size += 2 + pb::CodedOutputStream.ComputeInt32Size(Dummy22); 9619 } 9620 if (HasDummy23) { 9621 size += 2 + pb::CodedOutputStream.ComputeInt32Size(Dummy23); 9622 } 9623 if (HasDummy24) { 9624 size += 2 + pb::CodedOutputStream.ComputeInt32Size(Dummy24); 9625 } 9626 if (HasDummy25) { 9627 size += 2 + pb::CodedOutputStream.ComputeInt32Size(Dummy25); 9628 } 9629 if (HasDummy26) { 9630 size += 2 + pb::CodedOutputStream.ComputeInt32Size(Dummy26); 9631 } 9632 if (HasDummy27) { 9633 size += 2 + pb::CodedOutputStream.ComputeInt32Size(Dummy27); 9634 } 9635 if (HasDummy28) { 9636 size += 2 + pb::CodedOutputStream.ComputeInt32Size(Dummy28); 9637 } 9638 if (HasDummy29) { 9639 size += 2 + pb::CodedOutputStream.ComputeInt32Size(Dummy29); 9640 } 9641 if (HasDummy30) { 9642 size += 2 + pb::CodedOutputStream.ComputeInt32Size(Dummy30); 9643 } 9644 if (HasDummy31) { 9645 size += 2 + pb::CodedOutputStream.ComputeInt32Size(Dummy31); 9646 } 9647 if (HasDummy32) { 9648 size += 2 + pb::CodedOutputStream.ComputeInt32Size(Dummy32); 9649 } 9650 if (HasC) { 9651 size += 2 + pb::CodedOutputStream.ComputeInt32Size(C); 9652 } 9653 if (_unknownFields != null) { 9654 size += _unknownFields.CalculateSize(); 9655 } 9656 return size; 9657 } 9658 9659 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 9660 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] MergeFrom(TestRequired other)9661 public void MergeFrom(TestRequired other) { 9662 if (other == null) { 9663 return; 9664 } 9665 if (other.HasA) { 9666 A = other.A; 9667 } 9668 if (other.HasDummy2) { 9669 Dummy2 = other.Dummy2; 9670 } 9671 if (other.HasB) { 9672 B = other.B; 9673 } 9674 if (other.HasDummy4) { 9675 Dummy4 = other.Dummy4; 9676 } 9677 if (other.HasDummy5) { 9678 Dummy5 = other.Dummy5; 9679 } 9680 if (other.HasDummy6) { 9681 Dummy6 = other.Dummy6; 9682 } 9683 if (other.HasDummy7) { 9684 Dummy7 = other.Dummy7; 9685 } 9686 if (other.HasDummy8) { 9687 Dummy8 = other.Dummy8; 9688 } 9689 if (other.HasDummy9) { 9690 Dummy9 = other.Dummy9; 9691 } 9692 if (other.HasDummy10) { 9693 Dummy10 = other.Dummy10; 9694 } 9695 if (other.HasDummy11) { 9696 Dummy11 = other.Dummy11; 9697 } 9698 if (other.HasDummy12) { 9699 Dummy12 = other.Dummy12; 9700 } 9701 if (other.HasDummy13) { 9702 Dummy13 = other.Dummy13; 9703 } 9704 if (other.HasDummy14) { 9705 Dummy14 = other.Dummy14; 9706 } 9707 if (other.HasDummy15) { 9708 Dummy15 = other.Dummy15; 9709 } 9710 if (other.HasDummy16) { 9711 Dummy16 = other.Dummy16; 9712 } 9713 if (other.HasDummy17) { 9714 Dummy17 = other.Dummy17; 9715 } 9716 if (other.HasDummy18) { 9717 Dummy18 = other.Dummy18; 9718 } 9719 if (other.HasDummy19) { 9720 Dummy19 = other.Dummy19; 9721 } 9722 if (other.HasDummy20) { 9723 Dummy20 = other.Dummy20; 9724 } 9725 if (other.HasDummy21) { 9726 Dummy21 = other.Dummy21; 9727 } 9728 if (other.HasDummy22) { 9729 Dummy22 = other.Dummy22; 9730 } 9731 if (other.HasDummy23) { 9732 Dummy23 = other.Dummy23; 9733 } 9734 if (other.HasDummy24) { 9735 Dummy24 = other.Dummy24; 9736 } 9737 if (other.HasDummy25) { 9738 Dummy25 = other.Dummy25; 9739 } 9740 if (other.HasDummy26) { 9741 Dummy26 = other.Dummy26; 9742 } 9743 if (other.HasDummy27) { 9744 Dummy27 = other.Dummy27; 9745 } 9746 if (other.HasDummy28) { 9747 Dummy28 = other.Dummy28; 9748 } 9749 if (other.HasDummy29) { 9750 Dummy29 = other.Dummy29; 9751 } 9752 if (other.HasDummy30) { 9753 Dummy30 = other.Dummy30; 9754 } 9755 if (other.HasDummy31) { 9756 Dummy31 = other.Dummy31; 9757 } 9758 if (other.HasDummy32) { 9759 Dummy32 = other.Dummy32; 9760 } 9761 if (other.HasC) { 9762 C = other.C; 9763 } 9764 _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); 9765 } 9766 9767 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 9768 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] MergeFrom(pb::CodedInputStream input)9769 public void MergeFrom(pb::CodedInputStream input) { 9770 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 9771 input.ReadRawMessage(this); 9772 #else 9773 uint tag; 9774 while ((tag = input.ReadTag()) != 0) { 9775 if ((tag & 7) == 4) { 9776 // Abort on any end group tag. 9777 return; 9778 } 9779 switch(tag) { 9780 default: 9781 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); 9782 break; 9783 case 8: { 9784 A = input.ReadInt32(); 9785 break; 9786 } 9787 case 16: { 9788 Dummy2 = input.ReadInt32(); 9789 break; 9790 } 9791 case 24: { 9792 B = input.ReadInt32(); 9793 break; 9794 } 9795 case 32: { 9796 Dummy4 = input.ReadInt32(); 9797 break; 9798 } 9799 case 40: { 9800 Dummy5 = input.ReadInt32(); 9801 break; 9802 } 9803 case 48: { 9804 Dummy6 = input.ReadInt32(); 9805 break; 9806 } 9807 case 56: { 9808 Dummy7 = input.ReadInt32(); 9809 break; 9810 } 9811 case 64: { 9812 Dummy8 = input.ReadInt32(); 9813 break; 9814 } 9815 case 72: { 9816 Dummy9 = input.ReadInt32(); 9817 break; 9818 } 9819 case 80: { 9820 Dummy10 = input.ReadInt32(); 9821 break; 9822 } 9823 case 88: { 9824 Dummy11 = input.ReadInt32(); 9825 break; 9826 } 9827 case 96: { 9828 Dummy12 = input.ReadInt32(); 9829 break; 9830 } 9831 case 104: { 9832 Dummy13 = input.ReadInt32(); 9833 break; 9834 } 9835 case 112: { 9836 Dummy14 = input.ReadInt32(); 9837 break; 9838 } 9839 case 120: { 9840 Dummy15 = input.ReadInt32(); 9841 break; 9842 } 9843 case 128: { 9844 Dummy16 = input.ReadInt32(); 9845 break; 9846 } 9847 case 136: { 9848 Dummy17 = input.ReadInt32(); 9849 break; 9850 } 9851 case 144: { 9852 Dummy18 = input.ReadInt32(); 9853 break; 9854 } 9855 case 152: { 9856 Dummy19 = input.ReadInt32(); 9857 break; 9858 } 9859 case 160: { 9860 Dummy20 = input.ReadInt32(); 9861 break; 9862 } 9863 case 168: { 9864 Dummy21 = input.ReadInt32(); 9865 break; 9866 } 9867 case 176: { 9868 Dummy22 = input.ReadInt32(); 9869 break; 9870 } 9871 case 184: { 9872 Dummy23 = input.ReadInt32(); 9873 break; 9874 } 9875 case 192: { 9876 Dummy24 = input.ReadInt32(); 9877 break; 9878 } 9879 case 200: { 9880 Dummy25 = input.ReadInt32(); 9881 break; 9882 } 9883 case 208: { 9884 Dummy26 = input.ReadInt32(); 9885 break; 9886 } 9887 case 216: { 9888 Dummy27 = input.ReadInt32(); 9889 break; 9890 } 9891 case 224: { 9892 Dummy28 = input.ReadInt32(); 9893 break; 9894 } 9895 case 232: { 9896 Dummy29 = input.ReadInt32(); 9897 break; 9898 } 9899 case 240: { 9900 Dummy30 = input.ReadInt32(); 9901 break; 9902 } 9903 case 248: { 9904 Dummy31 = input.ReadInt32(); 9905 break; 9906 } 9907 case 256: { 9908 Dummy32 = input.ReadInt32(); 9909 break; 9910 } 9911 case 264: { 9912 C = input.ReadInt32(); 9913 break; 9914 } 9915 } 9916 } 9917 #endif 9918 } 9919 9920 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 9921 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 9922 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] IBufferMessage.InternalMergeFrom(ref pb::ParseContext input)9923 void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { 9924 uint tag; 9925 while ((tag = input.ReadTag()) != 0) { 9926 if ((tag & 7) == 4) { 9927 // Abort on any end group tag. 9928 return; 9929 } 9930 switch(tag) { 9931 default: 9932 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); 9933 break; 9934 case 8: { 9935 A = input.ReadInt32(); 9936 break; 9937 } 9938 case 16: { 9939 Dummy2 = input.ReadInt32(); 9940 break; 9941 } 9942 case 24: { 9943 B = input.ReadInt32(); 9944 break; 9945 } 9946 case 32: { 9947 Dummy4 = input.ReadInt32(); 9948 break; 9949 } 9950 case 40: { 9951 Dummy5 = input.ReadInt32(); 9952 break; 9953 } 9954 case 48: { 9955 Dummy6 = input.ReadInt32(); 9956 break; 9957 } 9958 case 56: { 9959 Dummy7 = input.ReadInt32(); 9960 break; 9961 } 9962 case 64: { 9963 Dummy8 = input.ReadInt32(); 9964 break; 9965 } 9966 case 72: { 9967 Dummy9 = input.ReadInt32(); 9968 break; 9969 } 9970 case 80: { 9971 Dummy10 = input.ReadInt32(); 9972 break; 9973 } 9974 case 88: { 9975 Dummy11 = input.ReadInt32(); 9976 break; 9977 } 9978 case 96: { 9979 Dummy12 = input.ReadInt32(); 9980 break; 9981 } 9982 case 104: { 9983 Dummy13 = input.ReadInt32(); 9984 break; 9985 } 9986 case 112: { 9987 Dummy14 = input.ReadInt32(); 9988 break; 9989 } 9990 case 120: { 9991 Dummy15 = input.ReadInt32(); 9992 break; 9993 } 9994 case 128: { 9995 Dummy16 = input.ReadInt32(); 9996 break; 9997 } 9998 case 136: { 9999 Dummy17 = input.ReadInt32(); 10000 break; 10001 } 10002 case 144: { 10003 Dummy18 = input.ReadInt32(); 10004 break; 10005 } 10006 case 152: { 10007 Dummy19 = input.ReadInt32(); 10008 break; 10009 } 10010 case 160: { 10011 Dummy20 = input.ReadInt32(); 10012 break; 10013 } 10014 case 168: { 10015 Dummy21 = input.ReadInt32(); 10016 break; 10017 } 10018 case 176: { 10019 Dummy22 = input.ReadInt32(); 10020 break; 10021 } 10022 case 184: { 10023 Dummy23 = input.ReadInt32(); 10024 break; 10025 } 10026 case 192: { 10027 Dummy24 = input.ReadInt32(); 10028 break; 10029 } 10030 case 200: { 10031 Dummy25 = input.ReadInt32(); 10032 break; 10033 } 10034 case 208: { 10035 Dummy26 = input.ReadInt32(); 10036 break; 10037 } 10038 case 216: { 10039 Dummy27 = input.ReadInt32(); 10040 break; 10041 } 10042 case 224: { 10043 Dummy28 = input.ReadInt32(); 10044 break; 10045 } 10046 case 232: { 10047 Dummy29 = input.ReadInt32(); 10048 break; 10049 } 10050 case 240: { 10051 Dummy30 = input.ReadInt32(); 10052 break; 10053 } 10054 case 248: { 10055 Dummy31 = input.ReadInt32(); 10056 break; 10057 } 10058 case 256: { 10059 Dummy32 = input.ReadInt32(); 10060 break; 10061 } 10062 case 264: { 10063 C = input.ReadInt32(); 10064 break; 10065 } 10066 } 10067 } 10068 } 10069 #endif 10070 10071 #region Extensions 10072 /// <summary>Container for extensions for other messages declared in the TestRequired message type.</summary> 10073 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 10074 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 10075 public static partial class Extensions { 10076 public static readonly pb::Extension<global::Google.Protobuf.TestProtos.Proto2.TestAllExtensions, global::Google.Protobuf.TestProtos.Proto2.TestRequired> Single = 10077 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)); 10078 public static readonly pb::RepeatedExtension<global::Google.Protobuf.TestProtos.Proto2.TestAllExtensions, global::Google.Protobuf.TestProtos.Proto2.TestRequired> Multi = 10079 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)); 10080 } 10081 #endregion 10082 10083 } 10084 10085 [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] 10086 public sealed partial class TestRequiredForeign : pb::IMessage<TestRequiredForeign> 10087 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 10088 , pb::IBufferMessage 10089 #endif 10090 { 10091 private static readonly pb::MessageParser<TestRequiredForeign> _parser = new pb::MessageParser<TestRequiredForeign>(() => new TestRequiredForeign()); 10092 private pb::UnknownFieldSet _unknownFields; 10093 private int _hasBits0; 10094 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 10095 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 10096 public static pb::MessageParser<TestRequiredForeign> Parser { get { return _parser; } } 10097 10098 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 10099 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 10100 public static pbr::MessageDescriptor Descriptor { 10101 get { return global::Google.Protobuf.TestProtos.Proto2.UnittestReflection.Descriptor.MessageTypes[13]; } 10102 } 10103 10104 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 10105 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 10106 pbr::MessageDescriptor pb::IMessage.Descriptor { 10107 get { return Descriptor; } 10108 } 10109 10110 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 10111 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] TestRequiredForeign()10112 public TestRequiredForeign() { 10113 OnConstruction(); 10114 } 10115 OnConstruction()10116 partial void OnConstruction(); 10117 10118 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 10119 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] TestRequiredForeign(TestRequiredForeign other)10120 public TestRequiredForeign(TestRequiredForeign other) : this() { 10121 _hasBits0 = other._hasBits0; 10122 optionalMessage_ = other.optionalMessage_ != null ? other.optionalMessage_.Clone() : null; 10123 repeatedMessage_ = other.repeatedMessage_.Clone(); 10124 dummy_ = other.dummy_; 10125 _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); 10126 } 10127 10128 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 10129 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] Clone()10130 public TestRequiredForeign Clone() { 10131 return new TestRequiredForeign(this); 10132 } 10133 10134 /// <summary>Field number for the "optional_message" field.</summary> 10135 public const int OptionalMessageFieldNumber = 1; 10136 private global::Google.Protobuf.TestProtos.Proto2.TestRequired optionalMessage_; 10137 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 10138 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 10139 public global::Google.Protobuf.TestProtos.Proto2.TestRequired OptionalMessage { 10140 get { return optionalMessage_; } 10141 set { 10142 optionalMessage_ = value; 10143 } 10144 } 10145 10146 /// <summary>Field number for the "repeated_message" field.</summary> 10147 public const int RepeatedMessageFieldNumber = 2; 10148 private static readonly pb::FieldCodec<global::Google.Protobuf.TestProtos.Proto2.TestRequired> _repeated_repeatedMessage_codec 10149 = pb::FieldCodec.ForMessage(18, global::Google.Protobuf.TestProtos.Proto2.TestRequired.Parser); 10150 private readonly pbc::RepeatedField<global::Google.Protobuf.TestProtos.Proto2.TestRequired> repeatedMessage_ = new pbc::RepeatedField<global::Google.Protobuf.TestProtos.Proto2.TestRequired>(); 10151 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 10152 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 10153 public pbc::RepeatedField<global::Google.Protobuf.TestProtos.Proto2.TestRequired> RepeatedMessage { 10154 get { return repeatedMessage_; } 10155 } 10156 10157 /// <summary>Field number for the "dummy" field.</summary> 10158 public const int DummyFieldNumber = 3; 10159 private readonly static int DummyDefaultValue = 0; 10160 10161 private int dummy_; 10162 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 10163 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 10164 public int Dummy { 10165 get { if ((_hasBits0 & 1) != 0) { return dummy_; } else { return DummyDefaultValue; } } 10166 set { 10167 _hasBits0 |= 1; 10168 dummy_ = value; 10169 } 10170 } 10171 /// <summary>Gets whether the "dummy" field is set</summary> 10172 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 10173 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 10174 public bool HasDummy { 10175 get { return (_hasBits0 & 1) != 0; } 10176 } 10177 /// <summary>Clears the value of the "dummy" field</summary> 10178 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 10179 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] ClearDummy()10180 public void ClearDummy() { 10181 _hasBits0 &= ~1; 10182 } 10183 10184 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 10185 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] Equals(object other)10186 public override bool Equals(object other) { 10187 return Equals(other as TestRequiredForeign); 10188 } 10189 10190 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 10191 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] Equals(TestRequiredForeign other)10192 public bool Equals(TestRequiredForeign other) { 10193 if (ReferenceEquals(other, null)) { 10194 return false; 10195 } 10196 if (ReferenceEquals(other, this)) { 10197 return true; 10198 } 10199 if (!object.Equals(OptionalMessage, other.OptionalMessage)) return false; 10200 if(!repeatedMessage_.Equals(other.repeatedMessage_)) return false; 10201 if (Dummy != other.Dummy) return false; 10202 return Equals(_unknownFields, other._unknownFields); 10203 } 10204 10205 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 10206 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] GetHashCode()10207 public override int GetHashCode() { 10208 int hash = 1; 10209 if (optionalMessage_ != null) hash ^= OptionalMessage.GetHashCode(); 10210 hash ^= repeatedMessage_.GetHashCode(); 10211 if (HasDummy) hash ^= Dummy.GetHashCode(); 10212 if (_unknownFields != null) { 10213 hash ^= _unknownFields.GetHashCode(); 10214 } 10215 return hash; 10216 } 10217 10218 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 10219 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] ToString()10220 public override string ToString() { 10221 return pb::JsonFormatter.ToDiagnosticString(this); 10222 } 10223 10224 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 10225 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] WriteTo(pb::CodedOutputStream output)10226 public void WriteTo(pb::CodedOutputStream output) { 10227 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 10228 output.WriteRawMessage(this); 10229 #else 10230 if (optionalMessage_ != null) { 10231 output.WriteRawTag(10); 10232 output.WriteMessage(OptionalMessage); 10233 } 10234 repeatedMessage_.WriteTo(output, _repeated_repeatedMessage_codec); 10235 if (HasDummy) { 10236 output.WriteRawTag(24); 10237 output.WriteInt32(Dummy); 10238 } 10239 if (_unknownFields != null) { 10240 _unknownFields.WriteTo(output); 10241 } 10242 #endif 10243 } 10244 10245 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 10246 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 10247 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] IBufferMessage.InternalWriteTo(ref pb::WriteContext output)10248 void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { 10249 if (optionalMessage_ != null) { 10250 output.WriteRawTag(10); 10251 output.WriteMessage(OptionalMessage); 10252 } 10253 repeatedMessage_.WriteTo(ref output, _repeated_repeatedMessage_codec); 10254 if (HasDummy) { 10255 output.WriteRawTag(24); 10256 output.WriteInt32(Dummy); 10257 } 10258 if (_unknownFields != null) { 10259 _unknownFields.WriteTo(ref output); 10260 } 10261 } 10262 #endif 10263 10264 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 10265 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] CalculateSize()10266 public int CalculateSize() { 10267 int size = 0; 10268 if (optionalMessage_ != null) { 10269 size += 1 + pb::CodedOutputStream.ComputeMessageSize(OptionalMessage); 10270 } 10271 size += repeatedMessage_.CalculateSize(_repeated_repeatedMessage_codec); 10272 if (HasDummy) { 10273 size += 1 + pb::CodedOutputStream.ComputeInt32Size(Dummy); 10274 } 10275 if (_unknownFields != null) { 10276 size += _unknownFields.CalculateSize(); 10277 } 10278 return size; 10279 } 10280 10281 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 10282 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] MergeFrom(TestRequiredForeign other)10283 public void MergeFrom(TestRequiredForeign other) { 10284 if (other == null) { 10285 return; 10286 } 10287 if (other.optionalMessage_ != null) { 10288 if (optionalMessage_ == null) { 10289 OptionalMessage = new global::Google.Protobuf.TestProtos.Proto2.TestRequired(); 10290 } 10291 OptionalMessage.MergeFrom(other.OptionalMessage); 10292 } 10293 repeatedMessage_.Add(other.repeatedMessage_); 10294 if (other.HasDummy) { 10295 Dummy = other.Dummy; 10296 } 10297 _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); 10298 } 10299 10300 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 10301 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] MergeFrom(pb::CodedInputStream input)10302 public void MergeFrom(pb::CodedInputStream input) { 10303 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 10304 input.ReadRawMessage(this); 10305 #else 10306 uint tag; 10307 while ((tag = input.ReadTag()) != 0) { 10308 if ((tag & 7) == 4) { 10309 // Abort on any end group tag. 10310 return; 10311 } 10312 switch(tag) { 10313 default: 10314 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); 10315 break; 10316 case 10: { 10317 if (optionalMessage_ == null) { 10318 OptionalMessage = new global::Google.Protobuf.TestProtos.Proto2.TestRequired(); 10319 } 10320 input.ReadMessage(OptionalMessage); 10321 break; 10322 } 10323 case 18: { 10324 repeatedMessage_.AddEntriesFrom(input, _repeated_repeatedMessage_codec); 10325 break; 10326 } 10327 case 24: { 10328 Dummy = input.ReadInt32(); 10329 break; 10330 } 10331 } 10332 } 10333 #endif 10334 } 10335 10336 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 10337 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 10338 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] IBufferMessage.InternalMergeFrom(ref pb::ParseContext input)10339 void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { 10340 uint tag; 10341 while ((tag = input.ReadTag()) != 0) { 10342 if ((tag & 7) == 4) { 10343 // Abort on any end group tag. 10344 return; 10345 } 10346 switch(tag) { 10347 default: 10348 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); 10349 break; 10350 case 10: { 10351 if (optionalMessage_ == null) { 10352 OptionalMessage = new global::Google.Protobuf.TestProtos.Proto2.TestRequired(); 10353 } 10354 input.ReadMessage(OptionalMessage); 10355 break; 10356 } 10357 case 18: { 10358 repeatedMessage_.AddEntriesFrom(ref input, _repeated_repeatedMessage_codec); 10359 break; 10360 } 10361 case 24: { 10362 Dummy = input.ReadInt32(); 10363 break; 10364 } 10365 } 10366 } 10367 } 10368 #endif 10369 10370 } 10371 10372 [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] 10373 public sealed partial class TestRequiredMessage : pb::IMessage<TestRequiredMessage> 10374 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 10375 , pb::IBufferMessage 10376 #endif 10377 { 10378 private static readonly pb::MessageParser<TestRequiredMessage> _parser = new pb::MessageParser<TestRequiredMessage>(() => new TestRequiredMessage()); 10379 private pb::UnknownFieldSet _unknownFields; 10380 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 10381 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 10382 public static pb::MessageParser<TestRequiredMessage> Parser { get { return _parser; } } 10383 10384 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 10385 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 10386 public static pbr::MessageDescriptor Descriptor { 10387 get { return global::Google.Protobuf.TestProtos.Proto2.UnittestReflection.Descriptor.MessageTypes[14]; } 10388 } 10389 10390 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 10391 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 10392 pbr::MessageDescriptor pb::IMessage.Descriptor { 10393 get { return Descriptor; } 10394 } 10395 10396 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 10397 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] TestRequiredMessage()10398 public TestRequiredMessage() { 10399 OnConstruction(); 10400 } 10401 OnConstruction()10402 partial void OnConstruction(); 10403 10404 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 10405 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] TestRequiredMessage(TestRequiredMessage other)10406 public TestRequiredMessage(TestRequiredMessage other) : this() { 10407 optionalMessage_ = other.optionalMessage_ != null ? other.optionalMessage_.Clone() : null; 10408 repeatedMessage_ = other.repeatedMessage_.Clone(); 10409 requiredMessage_ = other.requiredMessage_ != null ? other.requiredMessage_.Clone() : null; 10410 _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); 10411 } 10412 10413 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 10414 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] Clone()10415 public TestRequiredMessage Clone() { 10416 return new TestRequiredMessage(this); 10417 } 10418 10419 /// <summary>Field number for the "optional_message" field.</summary> 10420 public const int OptionalMessageFieldNumber = 1; 10421 private global::Google.Protobuf.TestProtos.Proto2.TestRequired optionalMessage_; 10422 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 10423 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 10424 public global::Google.Protobuf.TestProtos.Proto2.TestRequired OptionalMessage { 10425 get { return optionalMessage_; } 10426 set { 10427 optionalMessage_ = value; 10428 } 10429 } 10430 10431 /// <summary>Field number for the "repeated_message" field.</summary> 10432 public const int RepeatedMessageFieldNumber = 2; 10433 private static readonly pb::FieldCodec<global::Google.Protobuf.TestProtos.Proto2.TestRequired> _repeated_repeatedMessage_codec 10434 = pb::FieldCodec.ForMessage(18, global::Google.Protobuf.TestProtos.Proto2.TestRequired.Parser); 10435 private readonly pbc::RepeatedField<global::Google.Protobuf.TestProtos.Proto2.TestRequired> repeatedMessage_ = new pbc::RepeatedField<global::Google.Protobuf.TestProtos.Proto2.TestRequired>(); 10436 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 10437 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 10438 public pbc::RepeatedField<global::Google.Protobuf.TestProtos.Proto2.TestRequired> RepeatedMessage { 10439 get { return repeatedMessage_; } 10440 } 10441 10442 /// <summary>Field number for the "required_message" field.</summary> 10443 public const int RequiredMessageFieldNumber = 3; 10444 private global::Google.Protobuf.TestProtos.Proto2.TestRequired requiredMessage_; 10445 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 10446 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 10447 public global::Google.Protobuf.TestProtos.Proto2.TestRequired RequiredMessage { 10448 get { return requiredMessage_; } 10449 set { 10450 requiredMessage_ = value; 10451 } 10452 } 10453 10454 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 10455 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] Equals(object other)10456 public override bool Equals(object other) { 10457 return Equals(other as TestRequiredMessage); 10458 } 10459 10460 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 10461 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] Equals(TestRequiredMessage other)10462 public bool Equals(TestRequiredMessage other) { 10463 if (ReferenceEquals(other, null)) { 10464 return false; 10465 } 10466 if (ReferenceEquals(other, this)) { 10467 return true; 10468 } 10469 if (!object.Equals(OptionalMessage, other.OptionalMessage)) return false; 10470 if(!repeatedMessage_.Equals(other.repeatedMessage_)) return false; 10471 if (!object.Equals(RequiredMessage, other.RequiredMessage)) return false; 10472 return Equals(_unknownFields, other._unknownFields); 10473 } 10474 10475 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 10476 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] GetHashCode()10477 public override int GetHashCode() { 10478 int hash = 1; 10479 if (optionalMessage_ != null) hash ^= OptionalMessage.GetHashCode(); 10480 hash ^= repeatedMessage_.GetHashCode(); 10481 if (requiredMessage_ != null) hash ^= RequiredMessage.GetHashCode(); 10482 if (_unknownFields != null) { 10483 hash ^= _unknownFields.GetHashCode(); 10484 } 10485 return hash; 10486 } 10487 10488 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 10489 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] ToString()10490 public override string ToString() { 10491 return pb::JsonFormatter.ToDiagnosticString(this); 10492 } 10493 10494 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 10495 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] WriteTo(pb::CodedOutputStream output)10496 public void WriteTo(pb::CodedOutputStream output) { 10497 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 10498 output.WriteRawMessage(this); 10499 #else 10500 if (optionalMessage_ != null) { 10501 output.WriteRawTag(10); 10502 output.WriteMessage(OptionalMessage); 10503 } 10504 repeatedMessage_.WriteTo(output, _repeated_repeatedMessage_codec); 10505 if (requiredMessage_ != null) { 10506 output.WriteRawTag(26); 10507 output.WriteMessage(RequiredMessage); 10508 } 10509 if (_unknownFields != null) { 10510 _unknownFields.WriteTo(output); 10511 } 10512 #endif 10513 } 10514 10515 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 10516 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 10517 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] IBufferMessage.InternalWriteTo(ref pb::WriteContext output)10518 void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { 10519 if (optionalMessage_ != null) { 10520 output.WriteRawTag(10); 10521 output.WriteMessage(OptionalMessage); 10522 } 10523 repeatedMessage_.WriteTo(ref output, _repeated_repeatedMessage_codec); 10524 if (requiredMessage_ != null) { 10525 output.WriteRawTag(26); 10526 output.WriteMessage(RequiredMessage); 10527 } 10528 if (_unknownFields != null) { 10529 _unknownFields.WriteTo(ref output); 10530 } 10531 } 10532 #endif 10533 10534 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 10535 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] CalculateSize()10536 public int CalculateSize() { 10537 int size = 0; 10538 if (optionalMessage_ != null) { 10539 size += 1 + pb::CodedOutputStream.ComputeMessageSize(OptionalMessage); 10540 } 10541 size += repeatedMessage_.CalculateSize(_repeated_repeatedMessage_codec); 10542 if (requiredMessage_ != null) { 10543 size += 1 + pb::CodedOutputStream.ComputeMessageSize(RequiredMessage); 10544 } 10545 if (_unknownFields != null) { 10546 size += _unknownFields.CalculateSize(); 10547 } 10548 return size; 10549 } 10550 10551 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 10552 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] MergeFrom(TestRequiredMessage other)10553 public void MergeFrom(TestRequiredMessage other) { 10554 if (other == null) { 10555 return; 10556 } 10557 if (other.optionalMessage_ != null) { 10558 if (optionalMessage_ == null) { 10559 OptionalMessage = new global::Google.Protobuf.TestProtos.Proto2.TestRequired(); 10560 } 10561 OptionalMessage.MergeFrom(other.OptionalMessage); 10562 } 10563 repeatedMessage_.Add(other.repeatedMessage_); 10564 if (other.requiredMessage_ != null) { 10565 if (requiredMessage_ == null) { 10566 RequiredMessage = new global::Google.Protobuf.TestProtos.Proto2.TestRequired(); 10567 } 10568 RequiredMessage.MergeFrom(other.RequiredMessage); 10569 } 10570 _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); 10571 } 10572 10573 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 10574 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] MergeFrom(pb::CodedInputStream input)10575 public void MergeFrom(pb::CodedInputStream input) { 10576 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 10577 input.ReadRawMessage(this); 10578 #else 10579 uint tag; 10580 while ((tag = input.ReadTag()) != 0) { 10581 if ((tag & 7) == 4) { 10582 // Abort on any end group tag. 10583 return; 10584 } 10585 switch(tag) { 10586 default: 10587 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); 10588 break; 10589 case 10: { 10590 if (optionalMessage_ == null) { 10591 OptionalMessage = new global::Google.Protobuf.TestProtos.Proto2.TestRequired(); 10592 } 10593 input.ReadMessage(OptionalMessage); 10594 break; 10595 } 10596 case 18: { 10597 repeatedMessage_.AddEntriesFrom(input, _repeated_repeatedMessage_codec); 10598 break; 10599 } 10600 case 26: { 10601 if (requiredMessage_ == null) { 10602 RequiredMessage = new global::Google.Protobuf.TestProtos.Proto2.TestRequired(); 10603 } 10604 input.ReadMessage(RequiredMessage); 10605 break; 10606 } 10607 } 10608 } 10609 #endif 10610 } 10611 10612 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 10613 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 10614 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] IBufferMessage.InternalMergeFrom(ref pb::ParseContext input)10615 void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { 10616 uint tag; 10617 while ((tag = input.ReadTag()) != 0) { 10618 if ((tag & 7) == 4) { 10619 // Abort on any end group tag. 10620 return; 10621 } 10622 switch(tag) { 10623 default: 10624 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); 10625 break; 10626 case 10: { 10627 if (optionalMessage_ == null) { 10628 OptionalMessage = new global::Google.Protobuf.TestProtos.Proto2.TestRequired(); 10629 } 10630 input.ReadMessage(OptionalMessage); 10631 break; 10632 } 10633 case 18: { 10634 repeatedMessage_.AddEntriesFrom(ref input, _repeated_repeatedMessage_codec); 10635 break; 10636 } 10637 case 26: { 10638 if (requiredMessage_ == null) { 10639 RequiredMessage = new global::Google.Protobuf.TestProtos.Proto2.TestRequired(); 10640 } 10641 input.ReadMessage(RequiredMessage); 10642 break; 10643 } 10644 } 10645 } 10646 } 10647 #endif 10648 10649 } 10650 10651 /// <summary> 10652 /// Test that we can use NestedMessage from outside TestAllTypes. 10653 /// </summary> 10654 [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] 10655 public sealed partial class TestForeignNested : pb::IMessage<TestForeignNested> 10656 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 10657 , pb::IBufferMessage 10658 #endif 10659 { 10660 private static readonly pb::MessageParser<TestForeignNested> _parser = new pb::MessageParser<TestForeignNested>(() => new TestForeignNested()); 10661 private pb::UnknownFieldSet _unknownFields; 10662 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 10663 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 10664 public static pb::MessageParser<TestForeignNested> Parser { get { return _parser; } } 10665 10666 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 10667 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 10668 public static pbr::MessageDescriptor Descriptor { 10669 get { return global::Google.Protobuf.TestProtos.Proto2.UnittestReflection.Descriptor.MessageTypes[15]; } 10670 } 10671 10672 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 10673 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 10674 pbr::MessageDescriptor pb::IMessage.Descriptor { 10675 get { return Descriptor; } 10676 } 10677 10678 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 10679 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] TestForeignNested()10680 public TestForeignNested() { 10681 OnConstruction(); 10682 } 10683 OnConstruction()10684 partial void OnConstruction(); 10685 10686 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 10687 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] TestForeignNested(TestForeignNested other)10688 public TestForeignNested(TestForeignNested other) : this() { 10689 foreignNested_ = other.foreignNested_ != null ? other.foreignNested_.Clone() : null; 10690 _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); 10691 } 10692 10693 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 10694 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] Clone()10695 public TestForeignNested Clone() { 10696 return new TestForeignNested(this); 10697 } 10698 10699 /// <summary>Field number for the "foreign_nested" field.</summary> 10700 public const int ForeignNestedFieldNumber = 1; 10701 private global::Google.Protobuf.TestProtos.Proto2.TestAllTypes.Types.NestedMessage foreignNested_; 10702 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 10703 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 10704 public global::Google.Protobuf.TestProtos.Proto2.TestAllTypes.Types.NestedMessage ForeignNested { 10705 get { return foreignNested_; } 10706 set { 10707 foreignNested_ = value; 10708 } 10709 } 10710 10711 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 10712 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] Equals(object other)10713 public override bool Equals(object other) { 10714 return Equals(other as TestForeignNested); 10715 } 10716 10717 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 10718 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] Equals(TestForeignNested other)10719 public bool Equals(TestForeignNested other) { 10720 if (ReferenceEquals(other, null)) { 10721 return false; 10722 } 10723 if (ReferenceEquals(other, this)) { 10724 return true; 10725 } 10726 if (!object.Equals(ForeignNested, other.ForeignNested)) return false; 10727 return Equals(_unknownFields, other._unknownFields); 10728 } 10729 10730 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 10731 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] GetHashCode()10732 public override int GetHashCode() { 10733 int hash = 1; 10734 if (foreignNested_ != null) hash ^= ForeignNested.GetHashCode(); 10735 if (_unknownFields != null) { 10736 hash ^= _unknownFields.GetHashCode(); 10737 } 10738 return hash; 10739 } 10740 10741 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 10742 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] ToString()10743 public override string ToString() { 10744 return pb::JsonFormatter.ToDiagnosticString(this); 10745 } 10746 10747 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 10748 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] WriteTo(pb::CodedOutputStream output)10749 public void WriteTo(pb::CodedOutputStream output) { 10750 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 10751 output.WriteRawMessage(this); 10752 #else 10753 if (foreignNested_ != null) { 10754 output.WriteRawTag(10); 10755 output.WriteMessage(ForeignNested); 10756 } 10757 if (_unknownFields != null) { 10758 _unknownFields.WriteTo(output); 10759 } 10760 #endif 10761 } 10762 10763 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 10764 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 10765 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] IBufferMessage.InternalWriteTo(ref pb::WriteContext output)10766 void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { 10767 if (foreignNested_ != null) { 10768 output.WriteRawTag(10); 10769 output.WriteMessage(ForeignNested); 10770 } 10771 if (_unknownFields != null) { 10772 _unknownFields.WriteTo(ref output); 10773 } 10774 } 10775 #endif 10776 10777 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 10778 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] CalculateSize()10779 public int CalculateSize() { 10780 int size = 0; 10781 if (foreignNested_ != null) { 10782 size += 1 + pb::CodedOutputStream.ComputeMessageSize(ForeignNested); 10783 } 10784 if (_unknownFields != null) { 10785 size += _unknownFields.CalculateSize(); 10786 } 10787 return size; 10788 } 10789 10790 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 10791 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] MergeFrom(TestForeignNested other)10792 public void MergeFrom(TestForeignNested other) { 10793 if (other == null) { 10794 return; 10795 } 10796 if (other.foreignNested_ != null) { 10797 if (foreignNested_ == null) { 10798 ForeignNested = new global::Google.Protobuf.TestProtos.Proto2.TestAllTypes.Types.NestedMessage(); 10799 } 10800 ForeignNested.MergeFrom(other.ForeignNested); 10801 } 10802 _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); 10803 } 10804 10805 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 10806 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] MergeFrom(pb::CodedInputStream input)10807 public void MergeFrom(pb::CodedInputStream input) { 10808 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 10809 input.ReadRawMessage(this); 10810 #else 10811 uint tag; 10812 while ((tag = input.ReadTag()) != 0) { 10813 if ((tag & 7) == 4) { 10814 // Abort on any end group tag. 10815 return; 10816 } 10817 switch(tag) { 10818 default: 10819 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); 10820 break; 10821 case 10: { 10822 if (foreignNested_ == null) { 10823 ForeignNested = new global::Google.Protobuf.TestProtos.Proto2.TestAllTypes.Types.NestedMessage(); 10824 } 10825 input.ReadMessage(ForeignNested); 10826 break; 10827 } 10828 } 10829 } 10830 #endif 10831 } 10832 10833 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 10834 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 10835 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] IBufferMessage.InternalMergeFrom(ref pb::ParseContext input)10836 void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { 10837 uint tag; 10838 while ((tag = input.ReadTag()) != 0) { 10839 if ((tag & 7) == 4) { 10840 // Abort on any end group tag. 10841 return; 10842 } 10843 switch(tag) { 10844 default: 10845 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); 10846 break; 10847 case 10: { 10848 if (foreignNested_ == null) { 10849 ForeignNested = new global::Google.Protobuf.TestProtos.Proto2.TestAllTypes.Types.NestedMessage(); 10850 } 10851 input.ReadMessage(ForeignNested); 10852 break; 10853 } 10854 } 10855 } 10856 } 10857 #endif 10858 10859 } 10860 10861 /// <summary> 10862 /// TestEmptyMessage is used to test unknown field support. 10863 /// </summary> 10864 [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] 10865 public sealed partial class TestEmptyMessage : pb::IMessage<TestEmptyMessage> 10866 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 10867 , pb::IBufferMessage 10868 #endif 10869 { 10870 private static readonly pb::MessageParser<TestEmptyMessage> _parser = new pb::MessageParser<TestEmptyMessage>(() => new TestEmptyMessage()); 10871 private pb::UnknownFieldSet _unknownFields; 10872 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 10873 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 10874 public static pb::MessageParser<TestEmptyMessage> Parser { get { return _parser; } } 10875 10876 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 10877 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 10878 public static pbr::MessageDescriptor Descriptor { 10879 get { return global::Google.Protobuf.TestProtos.Proto2.UnittestReflection.Descriptor.MessageTypes[16]; } 10880 } 10881 10882 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 10883 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 10884 pbr::MessageDescriptor pb::IMessage.Descriptor { 10885 get { return Descriptor; } 10886 } 10887 10888 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 10889 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] TestEmptyMessage()10890 public TestEmptyMessage() { 10891 OnConstruction(); 10892 } 10893 OnConstruction()10894 partial void OnConstruction(); 10895 10896 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 10897 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] TestEmptyMessage(TestEmptyMessage other)10898 public TestEmptyMessage(TestEmptyMessage other) : this() { 10899 _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); 10900 } 10901 10902 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 10903 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] Clone()10904 public TestEmptyMessage Clone() { 10905 return new TestEmptyMessage(this); 10906 } 10907 10908 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 10909 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] Equals(object other)10910 public override bool Equals(object other) { 10911 return Equals(other as TestEmptyMessage); 10912 } 10913 10914 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 10915 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] Equals(TestEmptyMessage other)10916 public bool Equals(TestEmptyMessage other) { 10917 if (ReferenceEquals(other, null)) { 10918 return false; 10919 } 10920 if (ReferenceEquals(other, this)) { 10921 return true; 10922 } 10923 return Equals(_unknownFields, other._unknownFields); 10924 } 10925 10926 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 10927 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] GetHashCode()10928 public override int GetHashCode() { 10929 int hash = 1; 10930 if (_unknownFields != null) { 10931 hash ^= _unknownFields.GetHashCode(); 10932 } 10933 return hash; 10934 } 10935 10936 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 10937 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] ToString()10938 public override string ToString() { 10939 return pb::JsonFormatter.ToDiagnosticString(this); 10940 } 10941 10942 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 10943 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] WriteTo(pb::CodedOutputStream output)10944 public void WriteTo(pb::CodedOutputStream output) { 10945 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 10946 output.WriteRawMessage(this); 10947 #else 10948 if (_unknownFields != null) { 10949 _unknownFields.WriteTo(output); 10950 } 10951 #endif 10952 } 10953 10954 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 10955 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 10956 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] IBufferMessage.InternalWriteTo(ref pb::WriteContext output)10957 void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { 10958 if (_unknownFields != null) { 10959 _unknownFields.WriteTo(ref output); 10960 } 10961 } 10962 #endif 10963 10964 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 10965 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] CalculateSize()10966 public int CalculateSize() { 10967 int size = 0; 10968 if (_unknownFields != null) { 10969 size += _unknownFields.CalculateSize(); 10970 } 10971 return size; 10972 } 10973 10974 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 10975 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] MergeFrom(TestEmptyMessage other)10976 public void MergeFrom(TestEmptyMessage other) { 10977 if (other == null) { 10978 return; 10979 } 10980 _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); 10981 } 10982 10983 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 10984 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] MergeFrom(pb::CodedInputStream input)10985 public void MergeFrom(pb::CodedInputStream input) { 10986 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 10987 input.ReadRawMessage(this); 10988 #else 10989 uint tag; 10990 while ((tag = input.ReadTag()) != 0) { 10991 if ((tag & 7) == 4) { 10992 // Abort on any end group tag. 10993 return; 10994 } 10995 switch(tag) { 10996 default: 10997 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); 10998 break; 10999 } 11000 } 11001 #endif 11002 } 11003 11004 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 11005 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 11006 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] IBufferMessage.InternalMergeFrom(ref pb::ParseContext input)11007 void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { 11008 uint tag; 11009 while ((tag = input.ReadTag()) != 0) { 11010 if ((tag & 7) == 4) { 11011 // Abort on any end group tag. 11012 return; 11013 } 11014 switch(tag) { 11015 default: 11016 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); 11017 break; 11018 } 11019 } 11020 } 11021 #endif 11022 11023 } 11024 11025 /// <summary> 11026 /// Like above, but declare all field numbers as potential extensions. No 11027 /// actual extensions should ever be defined for this type. 11028 /// </summary> 11029 [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] 11030 public sealed partial class TestEmptyMessageWithExtensions : pb::IExtendableMessage<TestEmptyMessageWithExtensions> 11031 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 11032 , pb::IBufferMessage 11033 #endif 11034 { 11035 private static readonly pb::MessageParser<TestEmptyMessageWithExtensions> _parser = new pb::MessageParser<TestEmptyMessageWithExtensions>(() => new TestEmptyMessageWithExtensions()); 11036 private pb::UnknownFieldSet _unknownFields; 11037 private pb::ExtensionSet<TestEmptyMessageWithExtensions> _extensions; 11038 private pb::ExtensionSet<TestEmptyMessageWithExtensions> _Extensions { get { return _extensions; } } 11039 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 11040 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 11041 public static pb::MessageParser<TestEmptyMessageWithExtensions> Parser { get { return _parser; } } 11042 11043 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 11044 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 11045 public static pbr::MessageDescriptor Descriptor { 11046 get { return global::Google.Protobuf.TestProtos.Proto2.UnittestReflection.Descriptor.MessageTypes[17]; } 11047 } 11048 11049 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 11050 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 11051 pbr::MessageDescriptor pb::IMessage.Descriptor { 11052 get { return Descriptor; } 11053 } 11054 11055 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 11056 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] TestEmptyMessageWithExtensions()11057 public TestEmptyMessageWithExtensions() { 11058 OnConstruction(); 11059 } 11060 OnConstruction()11061 partial void OnConstruction(); 11062 11063 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 11064 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] TestEmptyMessageWithExtensions(TestEmptyMessageWithExtensions other)11065 public TestEmptyMessageWithExtensions(TestEmptyMessageWithExtensions other) : this() { 11066 _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); 11067 _extensions = pb::ExtensionSet.Clone(other._extensions); 11068 } 11069 11070 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 11071 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] Clone()11072 public TestEmptyMessageWithExtensions Clone() { 11073 return new TestEmptyMessageWithExtensions(this); 11074 } 11075 11076 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 11077 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] Equals(object other)11078 public override bool Equals(object other) { 11079 return Equals(other as TestEmptyMessageWithExtensions); 11080 } 11081 11082 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 11083 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] Equals(TestEmptyMessageWithExtensions other)11084 public bool Equals(TestEmptyMessageWithExtensions other) { 11085 if (ReferenceEquals(other, null)) { 11086 return false; 11087 } 11088 if (ReferenceEquals(other, this)) { 11089 return true; 11090 } 11091 if (!Equals(_extensions, other._extensions)) { 11092 return false; 11093 } 11094 return Equals(_unknownFields, other._unknownFields); 11095 } 11096 11097 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 11098 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] GetHashCode()11099 public override int GetHashCode() { 11100 int hash = 1; 11101 if (_extensions != null) { 11102 hash ^= _extensions.GetHashCode(); 11103 } 11104 if (_unknownFields != null) { 11105 hash ^= _unknownFields.GetHashCode(); 11106 } 11107 return hash; 11108 } 11109 11110 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 11111 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] ToString()11112 public override string ToString() { 11113 return pb::JsonFormatter.ToDiagnosticString(this); 11114 } 11115 11116 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 11117 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] WriteTo(pb::CodedOutputStream output)11118 public void WriteTo(pb::CodedOutputStream output) { 11119 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 11120 output.WriteRawMessage(this); 11121 #else 11122 if (_extensions != null) { 11123 _extensions.WriteTo(output); 11124 } 11125 if (_unknownFields != null) { 11126 _unknownFields.WriteTo(output); 11127 } 11128 #endif 11129 } 11130 11131 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 11132 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 11133 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] IBufferMessage.InternalWriteTo(ref pb::WriteContext output)11134 void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { 11135 if (_extensions != null) { 11136 _extensions.WriteTo(ref output); 11137 } 11138 if (_unknownFields != null) { 11139 _unknownFields.WriteTo(ref output); 11140 } 11141 } 11142 #endif 11143 11144 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 11145 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] CalculateSize()11146 public int CalculateSize() { 11147 int size = 0; 11148 if (_extensions != null) { 11149 size += _extensions.CalculateSize(); 11150 } 11151 if (_unknownFields != null) { 11152 size += _unknownFields.CalculateSize(); 11153 } 11154 return size; 11155 } 11156 11157 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 11158 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] MergeFrom(TestEmptyMessageWithExtensions other)11159 public void MergeFrom(TestEmptyMessageWithExtensions other) { 11160 if (other == null) { 11161 return; 11162 } 11163 pb::ExtensionSet.MergeFrom(ref _extensions, other._extensions); 11164 _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); 11165 } 11166 11167 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 11168 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] MergeFrom(pb::CodedInputStream input)11169 public void MergeFrom(pb::CodedInputStream input) { 11170 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 11171 input.ReadRawMessage(this); 11172 #else 11173 uint tag; 11174 while ((tag = input.ReadTag()) != 0) { 11175 if ((tag & 7) == 4) { 11176 // Abort on any end group tag. 11177 return; 11178 } 11179 switch(tag) { 11180 default: 11181 if (!pb::ExtensionSet.TryMergeFieldFrom(ref _extensions, input)) { 11182 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); 11183 } 11184 break; 11185 } 11186 } 11187 #endif 11188 } 11189 11190 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 11191 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 11192 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] IBufferMessage.InternalMergeFrom(ref pb::ParseContext input)11193 void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { 11194 uint tag; 11195 while ((tag = input.ReadTag()) != 0) { 11196 if ((tag & 7) == 4) { 11197 // Abort on any end group tag. 11198 return; 11199 } 11200 switch(tag) { 11201 default: 11202 if (!pb::ExtensionSet.TryMergeFieldFrom(ref _extensions, ref input)) { 11203 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); 11204 } 11205 break; 11206 } 11207 } 11208 } 11209 #endif 11210 GetExtension(pb::Extension<TestEmptyMessageWithExtensions, TValue> extension)11211 public TValue GetExtension<TValue>(pb::Extension<TestEmptyMessageWithExtensions, TValue> extension) { 11212 return pb::ExtensionSet.Get(ref _extensions, extension); 11213 } GetExtension(pb::RepeatedExtension<TestEmptyMessageWithExtensions, TValue> extension)11214 public pbc::RepeatedField<TValue> GetExtension<TValue>(pb::RepeatedExtension<TestEmptyMessageWithExtensions, TValue> extension) { 11215 return pb::ExtensionSet.Get(ref _extensions, extension); 11216 } GetOrInitializeExtension(pb::RepeatedExtension<TestEmptyMessageWithExtensions, TValue> extension)11217 public pbc::RepeatedField<TValue> GetOrInitializeExtension<TValue>(pb::RepeatedExtension<TestEmptyMessageWithExtensions, TValue> extension) { 11218 return pb::ExtensionSet.GetOrInitialize(ref _extensions, extension); 11219 } SetExtension(pb::Extension<TestEmptyMessageWithExtensions, TValue> extension, TValue value)11220 public void SetExtension<TValue>(pb::Extension<TestEmptyMessageWithExtensions, TValue> extension, TValue value) { 11221 pb::ExtensionSet.Set(ref _extensions, extension, value); 11222 } HasExtension(pb::Extension<TestEmptyMessageWithExtensions, TValue> extension)11223 public bool HasExtension<TValue>(pb::Extension<TestEmptyMessageWithExtensions, TValue> extension) { 11224 return pb::ExtensionSet.Has(ref _extensions, extension); 11225 } ClearExtension(pb::Extension<TestEmptyMessageWithExtensions, TValue> extension)11226 public void ClearExtension<TValue>(pb::Extension<TestEmptyMessageWithExtensions, TValue> extension) { 11227 pb::ExtensionSet.Clear(ref _extensions, extension); 11228 } ClearExtension(pb::RepeatedExtension<TestEmptyMessageWithExtensions, TValue> extension)11229 public void ClearExtension<TValue>(pb::RepeatedExtension<TestEmptyMessageWithExtensions, TValue> extension) { 11230 pb::ExtensionSet.Clear(ref _extensions, extension); 11231 } 11232 11233 } 11234 11235 [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] 11236 public sealed partial class TestMultipleExtensionRanges : pb::IExtendableMessage<TestMultipleExtensionRanges> 11237 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 11238 , pb::IBufferMessage 11239 #endif 11240 { 11241 private static readonly pb::MessageParser<TestMultipleExtensionRanges> _parser = new pb::MessageParser<TestMultipleExtensionRanges>(() => new TestMultipleExtensionRanges()); 11242 private pb::UnknownFieldSet _unknownFields; 11243 private pb::ExtensionSet<TestMultipleExtensionRanges> _extensions; 11244 private pb::ExtensionSet<TestMultipleExtensionRanges> _Extensions { get { return _extensions; } } 11245 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 11246 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 11247 public static pb::MessageParser<TestMultipleExtensionRanges> Parser { get { return _parser; } } 11248 11249 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 11250 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 11251 public static pbr::MessageDescriptor Descriptor { 11252 get { return global::Google.Protobuf.TestProtos.Proto2.UnittestReflection.Descriptor.MessageTypes[18]; } 11253 } 11254 11255 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 11256 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 11257 pbr::MessageDescriptor pb::IMessage.Descriptor { 11258 get { return Descriptor; } 11259 } 11260 11261 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 11262 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] TestMultipleExtensionRanges()11263 public TestMultipleExtensionRanges() { 11264 OnConstruction(); 11265 } 11266 OnConstruction()11267 partial void OnConstruction(); 11268 11269 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 11270 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] TestMultipleExtensionRanges(TestMultipleExtensionRanges other)11271 public TestMultipleExtensionRanges(TestMultipleExtensionRanges other) : this() { 11272 _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); 11273 _extensions = pb::ExtensionSet.Clone(other._extensions); 11274 } 11275 11276 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 11277 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] Clone()11278 public TestMultipleExtensionRanges Clone() { 11279 return new TestMultipleExtensionRanges(this); 11280 } 11281 11282 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 11283 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] Equals(object other)11284 public override bool Equals(object other) { 11285 return Equals(other as TestMultipleExtensionRanges); 11286 } 11287 11288 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 11289 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] Equals(TestMultipleExtensionRanges other)11290 public bool Equals(TestMultipleExtensionRanges other) { 11291 if (ReferenceEquals(other, null)) { 11292 return false; 11293 } 11294 if (ReferenceEquals(other, this)) { 11295 return true; 11296 } 11297 if (!Equals(_extensions, other._extensions)) { 11298 return false; 11299 } 11300 return Equals(_unknownFields, other._unknownFields); 11301 } 11302 11303 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 11304 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] GetHashCode()11305 public override int GetHashCode() { 11306 int hash = 1; 11307 if (_extensions != null) { 11308 hash ^= _extensions.GetHashCode(); 11309 } 11310 if (_unknownFields != null) { 11311 hash ^= _unknownFields.GetHashCode(); 11312 } 11313 return hash; 11314 } 11315 11316 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 11317 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] ToString()11318 public override string ToString() { 11319 return pb::JsonFormatter.ToDiagnosticString(this); 11320 } 11321 11322 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 11323 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] WriteTo(pb::CodedOutputStream output)11324 public void WriteTo(pb::CodedOutputStream output) { 11325 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 11326 output.WriteRawMessage(this); 11327 #else 11328 if (_extensions != null) { 11329 _extensions.WriteTo(output); 11330 } 11331 if (_unknownFields != null) { 11332 _unknownFields.WriteTo(output); 11333 } 11334 #endif 11335 } 11336 11337 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 11338 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 11339 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] IBufferMessage.InternalWriteTo(ref pb::WriteContext output)11340 void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { 11341 if (_extensions != null) { 11342 _extensions.WriteTo(ref output); 11343 } 11344 if (_unknownFields != null) { 11345 _unknownFields.WriteTo(ref output); 11346 } 11347 } 11348 #endif 11349 11350 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 11351 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] CalculateSize()11352 public int CalculateSize() { 11353 int size = 0; 11354 if (_extensions != null) { 11355 size += _extensions.CalculateSize(); 11356 } 11357 if (_unknownFields != null) { 11358 size += _unknownFields.CalculateSize(); 11359 } 11360 return size; 11361 } 11362 11363 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 11364 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] MergeFrom(TestMultipleExtensionRanges other)11365 public void MergeFrom(TestMultipleExtensionRanges other) { 11366 if (other == null) { 11367 return; 11368 } 11369 pb::ExtensionSet.MergeFrom(ref _extensions, other._extensions); 11370 _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); 11371 } 11372 11373 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 11374 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] MergeFrom(pb::CodedInputStream input)11375 public void MergeFrom(pb::CodedInputStream input) { 11376 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 11377 input.ReadRawMessage(this); 11378 #else 11379 uint tag; 11380 while ((tag = input.ReadTag()) != 0) { 11381 if ((tag & 7) == 4) { 11382 // Abort on any end group tag. 11383 return; 11384 } 11385 switch(tag) { 11386 default: 11387 if (!pb::ExtensionSet.TryMergeFieldFrom(ref _extensions, input)) { 11388 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); 11389 } 11390 break; 11391 } 11392 } 11393 #endif 11394 } 11395 11396 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 11397 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 11398 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] IBufferMessage.InternalMergeFrom(ref pb::ParseContext input)11399 void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { 11400 uint tag; 11401 while ((tag = input.ReadTag()) != 0) { 11402 if ((tag & 7) == 4) { 11403 // Abort on any end group tag. 11404 return; 11405 } 11406 switch(tag) { 11407 default: 11408 if (!pb::ExtensionSet.TryMergeFieldFrom(ref _extensions, ref input)) { 11409 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); 11410 } 11411 break; 11412 } 11413 } 11414 } 11415 #endif 11416 GetExtension(pb::Extension<TestMultipleExtensionRanges, TValue> extension)11417 public TValue GetExtension<TValue>(pb::Extension<TestMultipleExtensionRanges, TValue> extension) { 11418 return pb::ExtensionSet.Get(ref _extensions, extension); 11419 } GetExtension(pb::RepeatedExtension<TestMultipleExtensionRanges, TValue> extension)11420 public pbc::RepeatedField<TValue> GetExtension<TValue>(pb::RepeatedExtension<TestMultipleExtensionRanges, TValue> extension) { 11421 return pb::ExtensionSet.Get(ref _extensions, extension); 11422 } GetOrInitializeExtension(pb::RepeatedExtension<TestMultipleExtensionRanges, TValue> extension)11423 public pbc::RepeatedField<TValue> GetOrInitializeExtension<TValue>(pb::RepeatedExtension<TestMultipleExtensionRanges, TValue> extension) { 11424 return pb::ExtensionSet.GetOrInitialize(ref _extensions, extension); 11425 } SetExtension(pb::Extension<TestMultipleExtensionRanges, TValue> extension, TValue value)11426 public void SetExtension<TValue>(pb::Extension<TestMultipleExtensionRanges, TValue> extension, TValue value) { 11427 pb::ExtensionSet.Set(ref _extensions, extension, value); 11428 } HasExtension(pb::Extension<TestMultipleExtensionRanges, TValue> extension)11429 public bool HasExtension<TValue>(pb::Extension<TestMultipleExtensionRanges, TValue> extension) { 11430 return pb::ExtensionSet.Has(ref _extensions, extension); 11431 } ClearExtension(pb::Extension<TestMultipleExtensionRanges, TValue> extension)11432 public void ClearExtension<TValue>(pb::Extension<TestMultipleExtensionRanges, TValue> extension) { 11433 pb::ExtensionSet.Clear(ref _extensions, extension); 11434 } ClearExtension(pb::RepeatedExtension<TestMultipleExtensionRanges, TValue> extension)11435 public void ClearExtension<TValue>(pb::RepeatedExtension<TestMultipleExtensionRanges, TValue> extension) { 11436 pb::ExtensionSet.Clear(ref _extensions, extension); 11437 } 11438 11439 } 11440 11441 /// <summary> 11442 /// Test that really large tag numbers don't break anything. 11443 /// </summary> 11444 [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] 11445 public sealed partial class TestReallyLargeTagNumber : pb::IMessage<TestReallyLargeTagNumber> 11446 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 11447 , pb::IBufferMessage 11448 #endif 11449 { 11450 private static readonly pb::MessageParser<TestReallyLargeTagNumber> _parser = new pb::MessageParser<TestReallyLargeTagNumber>(() => new TestReallyLargeTagNumber()); 11451 private pb::UnknownFieldSet _unknownFields; 11452 private int _hasBits0; 11453 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 11454 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 11455 public static pb::MessageParser<TestReallyLargeTagNumber> Parser { get { return _parser; } } 11456 11457 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 11458 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 11459 public static pbr::MessageDescriptor Descriptor { 11460 get { return global::Google.Protobuf.TestProtos.Proto2.UnittestReflection.Descriptor.MessageTypes[19]; } 11461 } 11462 11463 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 11464 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 11465 pbr::MessageDescriptor pb::IMessage.Descriptor { 11466 get { return Descriptor; } 11467 } 11468 11469 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 11470 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] TestReallyLargeTagNumber()11471 public TestReallyLargeTagNumber() { 11472 OnConstruction(); 11473 } 11474 OnConstruction()11475 partial void OnConstruction(); 11476 11477 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 11478 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] TestReallyLargeTagNumber(TestReallyLargeTagNumber other)11479 public TestReallyLargeTagNumber(TestReallyLargeTagNumber other) : this() { 11480 _hasBits0 = other._hasBits0; 11481 a_ = other.a_; 11482 bb_ = other.bb_; 11483 _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); 11484 } 11485 11486 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 11487 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] Clone()11488 public TestReallyLargeTagNumber Clone() { 11489 return new TestReallyLargeTagNumber(this); 11490 } 11491 11492 /// <summary>Field number for the "a" field.</summary> 11493 public const int AFieldNumber = 1; 11494 private readonly static int ADefaultValue = 0; 11495 11496 private int a_; 11497 /// <summary> 11498 /// The largest possible tag number is 2^28 - 1, since the wire format uses 11499 /// three bits to communicate wire type. 11500 /// </summary> 11501 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 11502 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 11503 public int A { 11504 get { if ((_hasBits0 & 1) != 0) { return a_; } else { return ADefaultValue; } } 11505 set { 11506 _hasBits0 |= 1; 11507 a_ = value; 11508 } 11509 } 11510 /// <summary>Gets whether the "a" field is set</summary> 11511 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 11512 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 11513 public bool HasA { 11514 get { return (_hasBits0 & 1) != 0; } 11515 } 11516 /// <summary>Clears the value of the "a" field</summary> 11517 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 11518 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] ClearA()11519 public void ClearA() { 11520 _hasBits0 &= ~1; 11521 } 11522 11523 /// <summary>Field number for the "bb" field.</summary> 11524 public const int BbFieldNumber = 268435455; 11525 private readonly static int BbDefaultValue = 0; 11526 11527 private int bb_; 11528 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 11529 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 11530 public int Bb { 11531 get { if ((_hasBits0 & 2) != 0) { return bb_; } else { return BbDefaultValue; } } 11532 set { 11533 _hasBits0 |= 2; 11534 bb_ = value; 11535 } 11536 } 11537 /// <summary>Gets whether the "bb" field is set</summary> 11538 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 11539 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 11540 public bool HasBb { 11541 get { return (_hasBits0 & 2) != 0; } 11542 } 11543 /// <summary>Clears the value of the "bb" field</summary> 11544 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 11545 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] ClearBb()11546 public void ClearBb() { 11547 _hasBits0 &= ~2; 11548 } 11549 11550 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 11551 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] Equals(object other)11552 public override bool Equals(object other) { 11553 return Equals(other as TestReallyLargeTagNumber); 11554 } 11555 11556 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 11557 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] Equals(TestReallyLargeTagNumber other)11558 public bool Equals(TestReallyLargeTagNumber other) { 11559 if (ReferenceEquals(other, null)) { 11560 return false; 11561 } 11562 if (ReferenceEquals(other, this)) { 11563 return true; 11564 } 11565 if (A != other.A) return false; 11566 if (Bb != other.Bb) return false; 11567 return Equals(_unknownFields, other._unknownFields); 11568 } 11569 11570 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 11571 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] GetHashCode()11572 public override int GetHashCode() { 11573 int hash = 1; 11574 if (HasA) hash ^= A.GetHashCode(); 11575 if (HasBb) hash ^= Bb.GetHashCode(); 11576 if (_unknownFields != null) { 11577 hash ^= _unknownFields.GetHashCode(); 11578 } 11579 return hash; 11580 } 11581 11582 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 11583 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] ToString()11584 public override string ToString() { 11585 return pb::JsonFormatter.ToDiagnosticString(this); 11586 } 11587 11588 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 11589 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] WriteTo(pb::CodedOutputStream output)11590 public void WriteTo(pb::CodedOutputStream output) { 11591 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 11592 output.WriteRawMessage(this); 11593 #else 11594 if (HasA) { 11595 output.WriteRawTag(8); 11596 output.WriteInt32(A); 11597 } 11598 if (HasBb) { 11599 output.WriteRawTag(248, 255, 255, 255, 7); 11600 output.WriteInt32(Bb); 11601 } 11602 if (_unknownFields != null) { 11603 _unknownFields.WriteTo(output); 11604 } 11605 #endif 11606 } 11607 11608 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 11609 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 11610 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] IBufferMessage.InternalWriteTo(ref pb::WriteContext output)11611 void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { 11612 if (HasA) { 11613 output.WriteRawTag(8); 11614 output.WriteInt32(A); 11615 } 11616 if (HasBb) { 11617 output.WriteRawTag(248, 255, 255, 255, 7); 11618 output.WriteInt32(Bb); 11619 } 11620 if (_unknownFields != null) { 11621 _unknownFields.WriteTo(ref output); 11622 } 11623 } 11624 #endif 11625 11626 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 11627 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] CalculateSize()11628 public int CalculateSize() { 11629 int size = 0; 11630 if (HasA) { 11631 size += 1 + pb::CodedOutputStream.ComputeInt32Size(A); 11632 } 11633 if (HasBb) { 11634 size += 5 + pb::CodedOutputStream.ComputeInt32Size(Bb); 11635 } 11636 if (_unknownFields != null) { 11637 size += _unknownFields.CalculateSize(); 11638 } 11639 return size; 11640 } 11641 11642 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 11643 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] MergeFrom(TestReallyLargeTagNumber other)11644 public void MergeFrom(TestReallyLargeTagNumber other) { 11645 if (other == null) { 11646 return; 11647 } 11648 if (other.HasA) { 11649 A = other.A; 11650 } 11651 if (other.HasBb) { 11652 Bb = other.Bb; 11653 } 11654 _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); 11655 } 11656 11657 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 11658 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] MergeFrom(pb::CodedInputStream input)11659 public void MergeFrom(pb::CodedInputStream input) { 11660 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 11661 input.ReadRawMessage(this); 11662 #else 11663 uint tag; 11664 while ((tag = input.ReadTag()) != 0) { 11665 if ((tag & 7) == 4) { 11666 // Abort on any end group tag. 11667 return; 11668 } 11669 switch(tag) { 11670 default: 11671 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); 11672 break; 11673 case 8: { 11674 A = input.ReadInt32(); 11675 break; 11676 } 11677 case 2147483640: { 11678 Bb = input.ReadInt32(); 11679 break; 11680 } 11681 } 11682 } 11683 #endif 11684 } 11685 11686 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 11687 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 11688 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] IBufferMessage.InternalMergeFrom(ref pb::ParseContext input)11689 void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { 11690 uint tag; 11691 while ((tag = input.ReadTag()) != 0) { 11692 if ((tag & 7) == 4) { 11693 // Abort on any end group tag. 11694 return; 11695 } 11696 switch(tag) { 11697 default: 11698 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); 11699 break; 11700 case 8: { 11701 A = input.ReadInt32(); 11702 break; 11703 } 11704 case 2147483640: { 11705 Bb = input.ReadInt32(); 11706 break; 11707 } 11708 } 11709 } 11710 } 11711 #endif 11712 11713 } 11714 11715 [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] 11716 public sealed partial class TestRecursiveMessage : pb::IMessage<TestRecursiveMessage> 11717 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 11718 , pb::IBufferMessage 11719 #endif 11720 { 11721 private static readonly pb::MessageParser<TestRecursiveMessage> _parser = new pb::MessageParser<TestRecursiveMessage>(() => new TestRecursiveMessage()); 11722 private pb::UnknownFieldSet _unknownFields; 11723 private int _hasBits0; 11724 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 11725 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 11726 public static pb::MessageParser<TestRecursiveMessage> Parser { get { return _parser; } } 11727 11728 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 11729 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 11730 public static pbr::MessageDescriptor Descriptor { 11731 get { return global::Google.Protobuf.TestProtos.Proto2.UnittestReflection.Descriptor.MessageTypes[20]; } 11732 } 11733 11734 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 11735 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 11736 pbr::MessageDescriptor pb::IMessage.Descriptor { 11737 get { return Descriptor; } 11738 } 11739 11740 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 11741 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] TestRecursiveMessage()11742 public TestRecursiveMessage() { 11743 OnConstruction(); 11744 } 11745 OnConstruction()11746 partial void OnConstruction(); 11747 11748 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 11749 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] TestRecursiveMessage(TestRecursiveMessage other)11750 public TestRecursiveMessage(TestRecursiveMessage other) : this() { 11751 _hasBits0 = other._hasBits0; 11752 a_ = other.a_ != null ? other.a_.Clone() : null; 11753 i_ = other.i_; 11754 _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); 11755 } 11756 11757 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 11758 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] Clone()11759 public TestRecursiveMessage Clone() { 11760 return new TestRecursiveMessage(this); 11761 } 11762 11763 /// <summary>Field number for the "a" field.</summary> 11764 public const int AFieldNumber = 1; 11765 private global::Google.Protobuf.TestProtos.Proto2.TestRecursiveMessage a_; 11766 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 11767 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 11768 public global::Google.Protobuf.TestProtos.Proto2.TestRecursiveMessage A { 11769 get { return a_; } 11770 set { 11771 a_ = value; 11772 } 11773 } 11774 11775 /// <summary>Field number for the "i" field.</summary> 11776 public const int IFieldNumber = 2; 11777 private readonly static int IDefaultValue = 0; 11778 11779 private int i_; 11780 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 11781 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 11782 public int I { 11783 get { if ((_hasBits0 & 1) != 0) { return i_; } else { return IDefaultValue; } } 11784 set { 11785 _hasBits0 |= 1; 11786 i_ = value; 11787 } 11788 } 11789 /// <summary>Gets whether the "i" field is set</summary> 11790 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 11791 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 11792 public bool HasI { 11793 get { return (_hasBits0 & 1) != 0; } 11794 } 11795 /// <summary>Clears the value of the "i" field</summary> 11796 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 11797 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] ClearI()11798 public void ClearI() { 11799 _hasBits0 &= ~1; 11800 } 11801 11802 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 11803 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] Equals(object other)11804 public override bool Equals(object other) { 11805 return Equals(other as TestRecursiveMessage); 11806 } 11807 11808 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 11809 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] Equals(TestRecursiveMessage other)11810 public bool Equals(TestRecursiveMessage other) { 11811 if (ReferenceEquals(other, null)) { 11812 return false; 11813 } 11814 if (ReferenceEquals(other, this)) { 11815 return true; 11816 } 11817 if (!object.Equals(A, other.A)) return false; 11818 if (I != other.I) return false; 11819 return Equals(_unknownFields, other._unknownFields); 11820 } 11821 11822 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 11823 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] GetHashCode()11824 public override int GetHashCode() { 11825 int hash = 1; 11826 if (a_ != null) hash ^= A.GetHashCode(); 11827 if (HasI) hash ^= I.GetHashCode(); 11828 if (_unknownFields != null) { 11829 hash ^= _unknownFields.GetHashCode(); 11830 } 11831 return hash; 11832 } 11833 11834 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 11835 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] ToString()11836 public override string ToString() { 11837 return pb::JsonFormatter.ToDiagnosticString(this); 11838 } 11839 11840 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 11841 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] WriteTo(pb::CodedOutputStream output)11842 public void WriteTo(pb::CodedOutputStream output) { 11843 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 11844 output.WriteRawMessage(this); 11845 #else 11846 if (a_ != null) { 11847 output.WriteRawTag(10); 11848 output.WriteMessage(A); 11849 } 11850 if (HasI) { 11851 output.WriteRawTag(16); 11852 output.WriteInt32(I); 11853 } 11854 if (_unknownFields != null) { 11855 _unknownFields.WriteTo(output); 11856 } 11857 #endif 11858 } 11859 11860 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 11861 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 11862 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] IBufferMessage.InternalWriteTo(ref pb::WriteContext output)11863 void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { 11864 if (a_ != null) { 11865 output.WriteRawTag(10); 11866 output.WriteMessage(A); 11867 } 11868 if (HasI) { 11869 output.WriteRawTag(16); 11870 output.WriteInt32(I); 11871 } 11872 if (_unknownFields != null) { 11873 _unknownFields.WriteTo(ref output); 11874 } 11875 } 11876 #endif 11877 11878 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 11879 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] CalculateSize()11880 public int CalculateSize() { 11881 int size = 0; 11882 if (a_ != null) { 11883 size += 1 + pb::CodedOutputStream.ComputeMessageSize(A); 11884 } 11885 if (HasI) { 11886 size += 1 + pb::CodedOutputStream.ComputeInt32Size(I); 11887 } 11888 if (_unknownFields != null) { 11889 size += _unknownFields.CalculateSize(); 11890 } 11891 return size; 11892 } 11893 11894 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 11895 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] MergeFrom(TestRecursiveMessage other)11896 public void MergeFrom(TestRecursiveMessage other) { 11897 if (other == null) { 11898 return; 11899 } 11900 if (other.a_ != null) { 11901 if (a_ == null) { 11902 A = new global::Google.Protobuf.TestProtos.Proto2.TestRecursiveMessage(); 11903 } 11904 A.MergeFrom(other.A); 11905 } 11906 if (other.HasI) { 11907 I = other.I; 11908 } 11909 _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); 11910 } 11911 11912 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 11913 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] MergeFrom(pb::CodedInputStream input)11914 public void MergeFrom(pb::CodedInputStream input) { 11915 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 11916 input.ReadRawMessage(this); 11917 #else 11918 uint tag; 11919 while ((tag = input.ReadTag()) != 0) { 11920 if ((tag & 7) == 4) { 11921 // Abort on any end group tag. 11922 return; 11923 } 11924 switch(tag) { 11925 default: 11926 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); 11927 break; 11928 case 10: { 11929 if (a_ == null) { 11930 A = new global::Google.Protobuf.TestProtos.Proto2.TestRecursiveMessage(); 11931 } 11932 input.ReadMessage(A); 11933 break; 11934 } 11935 case 16: { 11936 I = input.ReadInt32(); 11937 break; 11938 } 11939 } 11940 } 11941 #endif 11942 } 11943 11944 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 11945 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 11946 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] IBufferMessage.InternalMergeFrom(ref pb::ParseContext input)11947 void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { 11948 uint tag; 11949 while ((tag = input.ReadTag()) != 0) { 11950 if ((tag & 7) == 4) { 11951 // Abort on any end group tag. 11952 return; 11953 } 11954 switch(tag) { 11955 default: 11956 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); 11957 break; 11958 case 10: { 11959 if (a_ == null) { 11960 A = new global::Google.Protobuf.TestProtos.Proto2.TestRecursiveMessage(); 11961 } 11962 input.ReadMessage(A); 11963 break; 11964 } 11965 case 16: { 11966 I = input.ReadInt32(); 11967 break; 11968 } 11969 } 11970 } 11971 } 11972 #endif 11973 11974 } 11975 11976 /// <summary> 11977 /// Test that mutual recursion works. 11978 /// </summary> 11979 [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] 11980 public sealed partial class TestMutualRecursionA : pb::IMessage<TestMutualRecursionA> 11981 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 11982 , pb::IBufferMessage 11983 #endif 11984 { 11985 private static readonly pb::MessageParser<TestMutualRecursionA> _parser = new pb::MessageParser<TestMutualRecursionA>(() => new TestMutualRecursionA()); 11986 private pb::UnknownFieldSet _unknownFields; 11987 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 11988 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 11989 public static pb::MessageParser<TestMutualRecursionA> Parser { get { return _parser; } } 11990 11991 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 11992 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 11993 public static pbr::MessageDescriptor Descriptor { 11994 get { return global::Google.Protobuf.TestProtos.Proto2.UnittestReflection.Descriptor.MessageTypes[21]; } 11995 } 11996 11997 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 11998 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 11999 pbr::MessageDescriptor pb::IMessage.Descriptor { 12000 get { return Descriptor; } 12001 } 12002 12003 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 12004 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] TestMutualRecursionA()12005 public TestMutualRecursionA() { 12006 OnConstruction(); 12007 } 12008 OnConstruction()12009 partial void OnConstruction(); 12010 12011 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 12012 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] TestMutualRecursionA(TestMutualRecursionA other)12013 public TestMutualRecursionA(TestMutualRecursionA other) : this() { 12014 bb_ = other.bb_ != null ? other.bb_.Clone() : null; 12015 subGroup_ = other.HasSubGroup ? other.subGroup_.Clone() : null; 12016 _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); 12017 } 12018 12019 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 12020 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] Clone()12021 public TestMutualRecursionA Clone() { 12022 return new TestMutualRecursionA(this); 12023 } 12024 12025 /// <summary>Field number for the "bb" field.</summary> 12026 public const int BbFieldNumber = 1; 12027 private global::Google.Protobuf.TestProtos.Proto2.TestMutualRecursionB bb_; 12028 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 12029 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 12030 public global::Google.Protobuf.TestProtos.Proto2.TestMutualRecursionB Bb { 12031 get { return bb_; } 12032 set { 12033 bb_ = value; 12034 } 12035 } 12036 12037 /// <summary>Field number for the "subgroup" field.</summary> 12038 public const int SubGroupFieldNumber = 2; 12039 private global::Google.Protobuf.TestProtos.Proto2.TestMutualRecursionA.Types.SubGroup subGroup_; 12040 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 12041 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 12042 public global::Google.Protobuf.TestProtos.Proto2.TestMutualRecursionA.Types.SubGroup SubGroup { 12043 get { return subGroup_; } 12044 set { 12045 subGroup_ = value; 12046 } 12047 } 12048 /// <summary>Gets whether the subgroup field is set</summary> 12049 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 12050 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 12051 public bool HasSubGroup { 12052 get { return subGroup_ != null; } 12053 } 12054 /// <summary>Clears the value of the subgroup field</summary> 12055 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 12056 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] ClearSubGroup()12057 public void ClearSubGroup() { 12058 subGroup_ = null; 12059 } 12060 12061 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 12062 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] Equals(object other)12063 public override bool Equals(object other) { 12064 return Equals(other as TestMutualRecursionA); 12065 } 12066 12067 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 12068 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] Equals(TestMutualRecursionA other)12069 public bool Equals(TestMutualRecursionA other) { 12070 if (ReferenceEquals(other, null)) { 12071 return false; 12072 } 12073 if (ReferenceEquals(other, this)) { 12074 return true; 12075 } 12076 if (!object.Equals(Bb, other.Bb)) return false; 12077 if (!object.Equals(SubGroup, other.SubGroup)) return false; 12078 return Equals(_unknownFields, other._unknownFields); 12079 } 12080 12081 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 12082 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] GetHashCode()12083 public override int GetHashCode() { 12084 int hash = 1; 12085 if (bb_ != null) hash ^= Bb.GetHashCode(); 12086 if (HasSubGroup) hash ^= SubGroup.GetHashCode(); 12087 if (_unknownFields != null) { 12088 hash ^= _unknownFields.GetHashCode(); 12089 } 12090 return hash; 12091 } 12092 12093 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 12094 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] ToString()12095 public override string ToString() { 12096 return pb::JsonFormatter.ToDiagnosticString(this); 12097 } 12098 12099 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 12100 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] WriteTo(pb::CodedOutputStream output)12101 public void WriteTo(pb::CodedOutputStream output) { 12102 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 12103 output.WriteRawMessage(this); 12104 #else 12105 if (bb_ != null) { 12106 output.WriteRawTag(10); 12107 output.WriteMessage(Bb); 12108 } 12109 if (HasSubGroup) { 12110 output.WriteRawTag(19); 12111 output.WriteGroup(SubGroup); 12112 output.WriteRawTag(20); 12113 } 12114 if (_unknownFields != null) { 12115 _unknownFields.WriteTo(output); 12116 } 12117 #endif 12118 } 12119 12120 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 12121 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 12122 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] IBufferMessage.InternalWriteTo(ref pb::WriteContext output)12123 void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { 12124 if (bb_ != null) { 12125 output.WriteRawTag(10); 12126 output.WriteMessage(Bb); 12127 } 12128 if (HasSubGroup) { 12129 output.WriteRawTag(19); 12130 output.WriteGroup(SubGroup); 12131 output.WriteRawTag(20); 12132 } 12133 if (_unknownFields != null) { 12134 _unknownFields.WriteTo(ref output); 12135 } 12136 } 12137 #endif 12138 12139 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 12140 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] CalculateSize()12141 public int CalculateSize() { 12142 int size = 0; 12143 if (bb_ != null) { 12144 size += 1 + pb::CodedOutputStream.ComputeMessageSize(Bb); 12145 } 12146 if (HasSubGroup) { 12147 size += 2 + pb::CodedOutputStream.ComputeGroupSize(SubGroup); 12148 } 12149 if (_unknownFields != null) { 12150 size += _unknownFields.CalculateSize(); 12151 } 12152 return size; 12153 } 12154 12155 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 12156 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] MergeFrom(TestMutualRecursionA other)12157 public void MergeFrom(TestMutualRecursionA other) { 12158 if (other == null) { 12159 return; 12160 } 12161 if (other.bb_ != null) { 12162 if (bb_ == null) { 12163 Bb = new global::Google.Protobuf.TestProtos.Proto2.TestMutualRecursionB(); 12164 } 12165 Bb.MergeFrom(other.Bb); 12166 } 12167 if (other.HasSubGroup) { 12168 if (!HasSubGroup) { 12169 SubGroup = new global::Google.Protobuf.TestProtos.Proto2.TestMutualRecursionA.Types.SubGroup(); 12170 } 12171 SubGroup.MergeFrom(other.SubGroup); 12172 } 12173 _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); 12174 } 12175 12176 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 12177 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] MergeFrom(pb::CodedInputStream input)12178 public void MergeFrom(pb::CodedInputStream input) { 12179 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 12180 input.ReadRawMessage(this); 12181 #else 12182 uint tag; 12183 while ((tag = input.ReadTag()) != 0) { 12184 if ((tag & 7) == 4) { 12185 // Abort on any end group tag. 12186 return; 12187 } 12188 switch(tag) { 12189 default: 12190 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); 12191 break; 12192 case 10: { 12193 if (bb_ == null) { 12194 Bb = new global::Google.Protobuf.TestProtos.Proto2.TestMutualRecursionB(); 12195 } 12196 input.ReadMessage(Bb); 12197 break; 12198 } 12199 case 19: { 12200 if (!HasSubGroup) { 12201 SubGroup = new global::Google.Protobuf.TestProtos.Proto2.TestMutualRecursionA.Types.SubGroup(); 12202 } 12203 input.ReadGroup(SubGroup); 12204 break; 12205 } 12206 } 12207 } 12208 #endif 12209 } 12210 12211 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 12212 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 12213 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] IBufferMessage.InternalMergeFrom(ref pb::ParseContext input)12214 void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { 12215 uint tag; 12216 while ((tag = input.ReadTag()) != 0) { 12217 if ((tag & 7) == 4) { 12218 // Abort on any end group tag. 12219 return; 12220 } 12221 switch(tag) { 12222 default: 12223 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); 12224 break; 12225 case 10: { 12226 if (bb_ == null) { 12227 Bb = new global::Google.Protobuf.TestProtos.Proto2.TestMutualRecursionB(); 12228 } 12229 input.ReadMessage(Bb); 12230 break; 12231 } 12232 case 19: { 12233 if (!HasSubGroup) { 12234 SubGroup = new global::Google.Protobuf.TestProtos.Proto2.TestMutualRecursionA.Types.SubGroup(); 12235 } 12236 input.ReadGroup(SubGroup); 12237 break; 12238 } 12239 } 12240 } 12241 } 12242 #endif 12243 12244 #region Nested types 12245 /// <summary>Container for nested types declared in the TestMutualRecursionA message type.</summary> 12246 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 12247 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 12248 public static partial class Types { 12249 [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] 12250 public sealed partial class SubMessage : pb::IMessage<SubMessage> 12251 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 12252 , pb::IBufferMessage 12253 #endif 12254 { 12255 private static readonly pb::MessageParser<SubMessage> _parser = new pb::MessageParser<SubMessage>(() => new SubMessage()); 12256 private pb::UnknownFieldSet _unknownFields; 12257 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 12258 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 12259 public static pb::MessageParser<SubMessage> Parser { get { return _parser; } } 12260 12261 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 12262 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 12263 public static pbr::MessageDescriptor Descriptor { 12264 get { return global::Google.Protobuf.TestProtos.Proto2.TestMutualRecursionA.Descriptor.NestedTypes[0]; } 12265 } 12266 12267 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 12268 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 12269 pbr::MessageDescriptor pb::IMessage.Descriptor { 12270 get { return Descriptor; } 12271 } 12272 12273 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 12274 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] SubMessage()12275 public SubMessage() { 12276 OnConstruction(); 12277 } 12278 OnConstruction()12279 partial void OnConstruction(); 12280 12281 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 12282 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] SubMessage(SubMessage other)12283 public SubMessage(SubMessage other) : this() { 12284 b_ = other.b_ != null ? other.b_.Clone() : null; 12285 _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); 12286 } 12287 12288 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 12289 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] Clone()12290 public SubMessage Clone() { 12291 return new SubMessage(this); 12292 } 12293 12294 /// <summary>Field number for the "b" field.</summary> 12295 public const int BFieldNumber = 1; 12296 private global::Google.Protobuf.TestProtos.Proto2.TestMutualRecursionB b_; 12297 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 12298 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 12299 public global::Google.Protobuf.TestProtos.Proto2.TestMutualRecursionB B { 12300 get { return b_; } 12301 set { 12302 b_ = value; 12303 } 12304 } 12305 12306 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 12307 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] Equals(object other)12308 public override bool Equals(object other) { 12309 return Equals(other as SubMessage); 12310 } 12311 12312 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 12313 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] Equals(SubMessage other)12314 public bool Equals(SubMessage other) { 12315 if (ReferenceEquals(other, null)) { 12316 return false; 12317 } 12318 if (ReferenceEquals(other, this)) { 12319 return true; 12320 } 12321 if (!object.Equals(B, other.B)) return false; 12322 return Equals(_unknownFields, other._unknownFields); 12323 } 12324 12325 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 12326 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] GetHashCode()12327 public override int GetHashCode() { 12328 int hash = 1; 12329 if (b_ != null) hash ^= B.GetHashCode(); 12330 if (_unknownFields != null) { 12331 hash ^= _unknownFields.GetHashCode(); 12332 } 12333 return hash; 12334 } 12335 12336 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 12337 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] ToString()12338 public override string ToString() { 12339 return pb::JsonFormatter.ToDiagnosticString(this); 12340 } 12341 12342 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 12343 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] WriteTo(pb::CodedOutputStream output)12344 public void WriteTo(pb::CodedOutputStream output) { 12345 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 12346 output.WriteRawMessage(this); 12347 #else 12348 if (b_ != null) { 12349 output.WriteRawTag(10); 12350 output.WriteMessage(B); 12351 } 12352 if (_unknownFields != null) { 12353 _unknownFields.WriteTo(output); 12354 } 12355 #endif 12356 } 12357 12358 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 12359 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 12360 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] IBufferMessage.InternalWriteTo(ref pb::WriteContext output)12361 void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { 12362 if (b_ != null) { 12363 output.WriteRawTag(10); 12364 output.WriteMessage(B); 12365 } 12366 if (_unknownFields != null) { 12367 _unknownFields.WriteTo(ref output); 12368 } 12369 } 12370 #endif 12371 12372 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 12373 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] CalculateSize()12374 public int CalculateSize() { 12375 int size = 0; 12376 if (b_ != null) { 12377 size += 1 + pb::CodedOutputStream.ComputeMessageSize(B); 12378 } 12379 if (_unknownFields != null) { 12380 size += _unknownFields.CalculateSize(); 12381 } 12382 return size; 12383 } 12384 12385 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 12386 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] MergeFrom(SubMessage other)12387 public void MergeFrom(SubMessage other) { 12388 if (other == null) { 12389 return; 12390 } 12391 if (other.b_ != null) { 12392 if (b_ == null) { 12393 B = new global::Google.Protobuf.TestProtos.Proto2.TestMutualRecursionB(); 12394 } 12395 B.MergeFrom(other.B); 12396 } 12397 _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); 12398 } 12399 12400 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 12401 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] MergeFrom(pb::CodedInputStream input)12402 public void MergeFrom(pb::CodedInputStream input) { 12403 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 12404 input.ReadRawMessage(this); 12405 #else 12406 uint tag; 12407 while ((tag = input.ReadTag()) != 0) { 12408 if ((tag & 7) == 4) { 12409 // Abort on any end group tag. 12410 return; 12411 } 12412 switch(tag) { 12413 default: 12414 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); 12415 break; 12416 case 10: { 12417 if (b_ == null) { 12418 B = new global::Google.Protobuf.TestProtos.Proto2.TestMutualRecursionB(); 12419 } 12420 input.ReadMessage(B); 12421 break; 12422 } 12423 } 12424 } 12425 #endif 12426 } 12427 12428 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 12429 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 12430 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] IBufferMessage.InternalMergeFrom(ref pb::ParseContext input)12431 void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { 12432 uint tag; 12433 while ((tag = input.ReadTag()) != 0) { 12434 if ((tag & 7) == 4) { 12435 // Abort on any end group tag. 12436 return; 12437 } 12438 switch(tag) { 12439 default: 12440 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); 12441 break; 12442 case 10: { 12443 if (b_ == null) { 12444 B = new global::Google.Protobuf.TestProtos.Proto2.TestMutualRecursionB(); 12445 } 12446 input.ReadMessage(B); 12447 break; 12448 } 12449 } 12450 } 12451 } 12452 #endif 12453 12454 } 12455 12456 [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] 12457 public sealed partial class SubGroup : pb::IMessage<SubGroup> 12458 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 12459 , pb::IBufferMessage 12460 #endif 12461 { 12462 private static readonly pb::MessageParser<SubGroup> _parser = new pb::MessageParser<SubGroup>(() => new SubGroup()); 12463 private pb::UnknownFieldSet _unknownFields; 12464 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 12465 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 12466 public static pb::MessageParser<SubGroup> Parser { get { return _parser; } } 12467 12468 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 12469 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 12470 public static pbr::MessageDescriptor Descriptor { 12471 get { return global::Google.Protobuf.TestProtos.Proto2.TestMutualRecursionA.Descriptor.NestedTypes[1]; } 12472 } 12473 12474 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 12475 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 12476 pbr::MessageDescriptor pb::IMessage.Descriptor { 12477 get { return Descriptor; } 12478 } 12479 12480 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 12481 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] SubGroup()12482 public SubGroup() { 12483 OnConstruction(); 12484 } 12485 OnConstruction()12486 partial void OnConstruction(); 12487 12488 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 12489 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] SubGroup(SubGroup other)12490 public SubGroup(SubGroup other) : this() { 12491 subMessage_ = other.subMessage_ != null ? other.subMessage_.Clone() : null; 12492 notInThisScc_ = other.notInThisScc_ != null ? other.notInThisScc_.Clone() : null; 12493 _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); 12494 } 12495 12496 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 12497 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] Clone()12498 public SubGroup Clone() { 12499 return new SubGroup(this); 12500 } 12501 12502 /// <summary>Field number for the "sub_message" field.</summary> 12503 public const int SubMessageFieldNumber = 3; 12504 private global::Google.Protobuf.TestProtos.Proto2.TestMutualRecursionA.Types.SubMessage subMessage_; 12505 /// <summary> 12506 /// Needed because of bug in javatest 12507 /// </summary> 12508 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 12509 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 12510 public global::Google.Protobuf.TestProtos.Proto2.TestMutualRecursionA.Types.SubMessage SubMessage { 12511 get { return subMessage_; } 12512 set { 12513 subMessage_ = value; 12514 } 12515 } 12516 12517 /// <summary>Field number for the "not_in_this_scc" field.</summary> 12518 public const int NotInThisSccFieldNumber = 4; 12519 private global::Google.Protobuf.TestProtos.Proto2.TestAllTypes notInThisScc_; 12520 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 12521 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 12522 public global::Google.Protobuf.TestProtos.Proto2.TestAllTypes NotInThisScc { 12523 get { return notInThisScc_; } 12524 set { 12525 notInThisScc_ = value; 12526 } 12527 } 12528 12529 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 12530 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] Equals(object other)12531 public override bool Equals(object other) { 12532 return Equals(other as SubGroup); 12533 } 12534 12535 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 12536 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] Equals(SubGroup other)12537 public bool Equals(SubGroup other) { 12538 if (ReferenceEquals(other, null)) { 12539 return false; 12540 } 12541 if (ReferenceEquals(other, this)) { 12542 return true; 12543 } 12544 if (!object.Equals(SubMessage, other.SubMessage)) return false; 12545 if (!object.Equals(NotInThisScc, other.NotInThisScc)) return false; 12546 return Equals(_unknownFields, other._unknownFields); 12547 } 12548 12549 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 12550 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] GetHashCode()12551 public override int GetHashCode() { 12552 int hash = 1; 12553 if (subMessage_ != null) hash ^= SubMessage.GetHashCode(); 12554 if (notInThisScc_ != null) hash ^= NotInThisScc.GetHashCode(); 12555 if (_unknownFields != null) { 12556 hash ^= _unknownFields.GetHashCode(); 12557 } 12558 return hash; 12559 } 12560 12561 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 12562 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] ToString()12563 public override string ToString() { 12564 return pb::JsonFormatter.ToDiagnosticString(this); 12565 } 12566 12567 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 12568 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] WriteTo(pb::CodedOutputStream output)12569 public void WriteTo(pb::CodedOutputStream output) { 12570 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 12571 output.WriteRawMessage(this); 12572 #else 12573 if (subMessage_ != null) { 12574 output.WriteRawTag(26); 12575 output.WriteMessage(SubMessage); 12576 } 12577 if (notInThisScc_ != null) { 12578 output.WriteRawTag(34); 12579 output.WriteMessage(NotInThisScc); 12580 } 12581 if (_unknownFields != null) { 12582 _unknownFields.WriteTo(output); 12583 } 12584 #endif 12585 } 12586 12587 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 12588 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 12589 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] IBufferMessage.InternalWriteTo(ref pb::WriteContext output)12590 void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { 12591 if (subMessage_ != null) { 12592 output.WriteRawTag(26); 12593 output.WriteMessage(SubMessage); 12594 } 12595 if (notInThisScc_ != null) { 12596 output.WriteRawTag(34); 12597 output.WriteMessage(NotInThisScc); 12598 } 12599 if (_unknownFields != null) { 12600 _unknownFields.WriteTo(ref output); 12601 } 12602 } 12603 #endif 12604 12605 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 12606 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] CalculateSize()12607 public int CalculateSize() { 12608 int size = 0; 12609 if (subMessage_ != null) { 12610 size += 1 + pb::CodedOutputStream.ComputeMessageSize(SubMessage); 12611 } 12612 if (notInThisScc_ != null) { 12613 size += 1 + pb::CodedOutputStream.ComputeMessageSize(NotInThisScc); 12614 } 12615 if (_unknownFields != null) { 12616 size += _unknownFields.CalculateSize(); 12617 } 12618 return size; 12619 } 12620 12621 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 12622 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] MergeFrom(SubGroup other)12623 public void MergeFrom(SubGroup other) { 12624 if (other == null) { 12625 return; 12626 } 12627 if (other.subMessage_ != null) { 12628 if (subMessage_ == null) { 12629 SubMessage = new global::Google.Protobuf.TestProtos.Proto2.TestMutualRecursionA.Types.SubMessage(); 12630 } 12631 SubMessage.MergeFrom(other.SubMessage); 12632 } 12633 if (other.notInThisScc_ != null) { 12634 if (notInThisScc_ == null) { 12635 NotInThisScc = new global::Google.Protobuf.TestProtos.Proto2.TestAllTypes(); 12636 } 12637 NotInThisScc.MergeFrom(other.NotInThisScc); 12638 } 12639 _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); 12640 } 12641 12642 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 12643 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] MergeFrom(pb::CodedInputStream input)12644 public void MergeFrom(pb::CodedInputStream input) { 12645 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 12646 input.ReadRawMessage(this); 12647 #else 12648 uint tag; 12649 while ((tag = input.ReadTag()) != 0) { 12650 if ((tag & 7) == 4) { 12651 // Abort on any end group tag. 12652 return; 12653 } 12654 switch(tag) { 12655 default: 12656 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); 12657 break; 12658 case 26: { 12659 if (subMessage_ == null) { 12660 SubMessage = new global::Google.Protobuf.TestProtos.Proto2.TestMutualRecursionA.Types.SubMessage(); 12661 } 12662 input.ReadMessage(SubMessage); 12663 break; 12664 } 12665 case 34: { 12666 if (notInThisScc_ == null) { 12667 NotInThisScc = new global::Google.Protobuf.TestProtos.Proto2.TestAllTypes(); 12668 } 12669 input.ReadMessage(NotInThisScc); 12670 break; 12671 } 12672 } 12673 } 12674 #endif 12675 } 12676 12677 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 12678 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 12679 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] IBufferMessage.InternalMergeFrom(ref pb::ParseContext input)12680 void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { 12681 uint tag; 12682 while ((tag = input.ReadTag()) != 0) { 12683 if ((tag & 7) == 4) { 12684 // Abort on any end group tag. 12685 return; 12686 } 12687 switch(tag) { 12688 default: 12689 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); 12690 break; 12691 case 26: { 12692 if (subMessage_ == null) { 12693 SubMessage = new global::Google.Protobuf.TestProtos.Proto2.TestMutualRecursionA.Types.SubMessage(); 12694 } 12695 input.ReadMessage(SubMessage); 12696 break; 12697 } 12698 case 34: { 12699 if (notInThisScc_ == null) { 12700 NotInThisScc = new global::Google.Protobuf.TestProtos.Proto2.TestAllTypes(); 12701 } 12702 input.ReadMessage(NotInThisScc); 12703 break; 12704 } 12705 } 12706 } 12707 } 12708 #endif 12709 12710 } 12711 12712 } 12713 #endregion 12714 12715 } 12716 12717 [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] 12718 public sealed partial class TestMutualRecursionB : pb::IMessage<TestMutualRecursionB> 12719 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 12720 , pb::IBufferMessage 12721 #endif 12722 { 12723 private static readonly pb::MessageParser<TestMutualRecursionB> _parser = new pb::MessageParser<TestMutualRecursionB>(() => new TestMutualRecursionB()); 12724 private pb::UnknownFieldSet _unknownFields; 12725 private int _hasBits0; 12726 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 12727 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 12728 public static pb::MessageParser<TestMutualRecursionB> Parser { get { return _parser; } } 12729 12730 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 12731 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 12732 public static pbr::MessageDescriptor Descriptor { 12733 get { return global::Google.Protobuf.TestProtos.Proto2.UnittestReflection.Descriptor.MessageTypes[22]; } 12734 } 12735 12736 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 12737 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 12738 pbr::MessageDescriptor pb::IMessage.Descriptor { 12739 get { return Descriptor; } 12740 } 12741 12742 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 12743 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] TestMutualRecursionB()12744 public TestMutualRecursionB() { 12745 OnConstruction(); 12746 } 12747 OnConstruction()12748 partial void OnConstruction(); 12749 12750 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 12751 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] TestMutualRecursionB(TestMutualRecursionB other)12752 public TestMutualRecursionB(TestMutualRecursionB other) : this() { 12753 _hasBits0 = other._hasBits0; 12754 a_ = other.a_ != null ? other.a_.Clone() : null; 12755 optionalInt32_ = other.optionalInt32_; 12756 _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); 12757 } 12758 12759 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 12760 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] Clone()12761 public TestMutualRecursionB Clone() { 12762 return new TestMutualRecursionB(this); 12763 } 12764 12765 /// <summary>Field number for the "a" field.</summary> 12766 public const int AFieldNumber = 1; 12767 private global::Google.Protobuf.TestProtos.Proto2.TestMutualRecursionA a_; 12768 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 12769 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 12770 public global::Google.Protobuf.TestProtos.Proto2.TestMutualRecursionA A { 12771 get { return a_; } 12772 set { 12773 a_ = value; 12774 } 12775 } 12776 12777 /// <summary>Field number for the "optional_int32" field.</summary> 12778 public const int OptionalInt32FieldNumber = 2; 12779 private readonly static int OptionalInt32DefaultValue = 0; 12780 12781 private int optionalInt32_; 12782 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 12783 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 12784 public int OptionalInt32 { 12785 get { if ((_hasBits0 & 1) != 0) { return optionalInt32_; } else { return OptionalInt32DefaultValue; } } 12786 set { 12787 _hasBits0 |= 1; 12788 optionalInt32_ = value; 12789 } 12790 } 12791 /// <summary>Gets whether the "optional_int32" field is set</summary> 12792 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 12793 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 12794 public bool HasOptionalInt32 { 12795 get { return (_hasBits0 & 1) != 0; } 12796 } 12797 /// <summary>Clears the value of the "optional_int32" field</summary> 12798 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 12799 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] ClearOptionalInt32()12800 public void ClearOptionalInt32() { 12801 _hasBits0 &= ~1; 12802 } 12803 12804 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 12805 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] Equals(object other)12806 public override bool Equals(object other) { 12807 return Equals(other as TestMutualRecursionB); 12808 } 12809 12810 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 12811 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] Equals(TestMutualRecursionB other)12812 public bool Equals(TestMutualRecursionB other) { 12813 if (ReferenceEquals(other, null)) { 12814 return false; 12815 } 12816 if (ReferenceEquals(other, this)) { 12817 return true; 12818 } 12819 if (!object.Equals(A, other.A)) return false; 12820 if (OptionalInt32 != other.OptionalInt32) return false; 12821 return Equals(_unknownFields, other._unknownFields); 12822 } 12823 12824 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 12825 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] GetHashCode()12826 public override int GetHashCode() { 12827 int hash = 1; 12828 if (a_ != null) hash ^= A.GetHashCode(); 12829 if (HasOptionalInt32) hash ^= OptionalInt32.GetHashCode(); 12830 if (_unknownFields != null) { 12831 hash ^= _unknownFields.GetHashCode(); 12832 } 12833 return hash; 12834 } 12835 12836 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 12837 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] ToString()12838 public override string ToString() { 12839 return pb::JsonFormatter.ToDiagnosticString(this); 12840 } 12841 12842 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 12843 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] WriteTo(pb::CodedOutputStream output)12844 public void WriteTo(pb::CodedOutputStream output) { 12845 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 12846 output.WriteRawMessage(this); 12847 #else 12848 if (a_ != null) { 12849 output.WriteRawTag(10); 12850 output.WriteMessage(A); 12851 } 12852 if (HasOptionalInt32) { 12853 output.WriteRawTag(16); 12854 output.WriteInt32(OptionalInt32); 12855 } 12856 if (_unknownFields != null) { 12857 _unknownFields.WriteTo(output); 12858 } 12859 #endif 12860 } 12861 12862 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 12863 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 12864 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] IBufferMessage.InternalWriteTo(ref pb::WriteContext output)12865 void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { 12866 if (a_ != null) { 12867 output.WriteRawTag(10); 12868 output.WriteMessage(A); 12869 } 12870 if (HasOptionalInt32) { 12871 output.WriteRawTag(16); 12872 output.WriteInt32(OptionalInt32); 12873 } 12874 if (_unknownFields != null) { 12875 _unknownFields.WriteTo(ref output); 12876 } 12877 } 12878 #endif 12879 12880 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 12881 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] CalculateSize()12882 public int CalculateSize() { 12883 int size = 0; 12884 if (a_ != null) { 12885 size += 1 + pb::CodedOutputStream.ComputeMessageSize(A); 12886 } 12887 if (HasOptionalInt32) { 12888 size += 1 + pb::CodedOutputStream.ComputeInt32Size(OptionalInt32); 12889 } 12890 if (_unknownFields != null) { 12891 size += _unknownFields.CalculateSize(); 12892 } 12893 return size; 12894 } 12895 12896 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 12897 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] MergeFrom(TestMutualRecursionB other)12898 public void MergeFrom(TestMutualRecursionB other) { 12899 if (other == null) { 12900 return; 12901 } 12902 if (other.a_ != null) { 12903 if (a_ == null) { 12904 A = new global::Google.Protobuf.TestProtos.Proto2.TestMutualRecursionA(); 12905 } 12906 A.MergeFrom(other.A); 12907 } 12908 if (other.HasOptionalInt32) { 12909 OptionalInt32 = other.OptionalInt32; 12910 } 12911 _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); 12912 } 12913 12914 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 12915 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] MergeFrom(pb::CodedInputStream input)12916 public void MergeFrom(pb::CodedInputStream input) { 12917 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 12918 input.ReadRawMessage(this); 12919 #else 12920 uint tag; 12921 while ((tag = input.ReadTag()) != 0) { 12922 if ((tag & 7) == 4) { 12923 // Abort on any end group tag. 12924 return; 12925 } 12926 switch(tag) { 12927 default: 12928 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); 12929 break; 12930 case 10: { 12931 if (a_ == null) { 12932 A = new global::Google.Protobuf.TestProtos.Proto2.TestMutualRecursionA(); 12933 } 12934 input.ReadMessage(A); 12935 break; 12936 } 12937 case 16: { 12938 OptionalInt32 = input.ReadInt32(); 12939 break; 12940 } 12941 } 12942 } 12943 #endif 12944 } 12945 12946 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 12947 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 12948 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] IBufferMessage.InternalMergeFrom(ref pb::ParseContext input)12949 void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { 12950 uint tag; 12951 while ((tag = input.ReadTag()) != 0) { 12952 if ((tag & 7) == 4) { 12953 // Abort on any end group tag. 12954 return; 12955 } 12956 switch(tag) { 12957 default: 12958 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); 12959 break; 12960 case 10: { 12961 if (a_ == null) { 12962 A = new global::Google.Protobuf.TestProtos.Proto2.TestMutualRecursionA(); 12963 } 12964 input.ReadMessage(A); 12965 break; 12966 } 12967 case 16: { 12968 OptionalInt32 = input.ReadInt32(); 12969 break; 12970 } 12971 } 12972 } 12973 } 12974 #endif 12975 12976 } 12977 12978 [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] 12979 public sealed partial class TestIsInitialized : pb::IMessage<TestIsInitialized> 12980 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 12981 , pb::IBufferMessage 12982 #endif 12983 { 12984 private static readonly pb::MessageParser<TestIsInitialized> _parser = new pb::MessageParser<TestIsInitialized>(() => new TestIsInitialized()); 12985 private pb::UnknownFieldSet _unknownFields; 12986 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 12987 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 12988 public static pb::MessageParser<TestIsInitialized> Parser { get { return _parser; } } 12989 12990 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 12991 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 12992 public static pbr::MessageDescriptor Descriptor { 12993 get { return global::Google.Protobuf.TestProtos.Proto2.UnittestReflection.Descriptor.MessageTypes[23]; } 12994 } 12995 12996 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 12997 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 12998 pbr::MessageDescriptor pb::IMessage.Descriptor { 12999 get { return Descriptor; } 13000 } 13001 13002 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 13003 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] TestIsInitialized()13004 public TestIsInitialized() { 13005 OnConstruction(); 13006 } 13007 OnConstruction()13008 partial void OnConstruction(); 13009 13010 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 13011 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] TestIsInitialized(TestIsInitialized other)13012 public TestIsInitialized(TestIsInitialized other) : this() { 13013 subMessage_ = other.subMessage_ != null ? other.subMessage_.Clone() : null; 13014 _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); 13015 } 13016 13017 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 13018 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] Clone()13019 public TestIsInitialized Clone() { 13020 return new TestIsInitialized(this); 13021 } 13022 13023 /// <summary>Field number for the "sub_message" field.</summary> 13024 public const int SubMessageFieldNumber = 1; 13025 private global::Google.Protobuf.TestProtos.Proto2.TestIsInitialized.Types.SubMessage subMessage_; 13026 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 13027 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 13028 public global::Google.Protobuf.TestProtos.Proto2.TestIsInitialized.Types.SubMessage SubMessage { 13029 get { return subMessage_; } 13030 set { 13031 subMessage_ = value; 13032 } 13033 } 13034 13035 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 13036 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] Equals(object other)13037 public override bool Equals(object other) { 13038 return Equals(other as TestIsInitialized); 13039 } 13040 13041 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 13042 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] Equals(TestIsInitialized other)13043 public bool Equals(TestIsInitialized other) { 13044 if (ReferenceEquals(other, null)) { 13045 return false; 13046 } 13047 if (ReferenceEquals(other, this)) { 13048 return true; 13049 } 13050 if (!object.Equals(SubMessage, other.SubMessage)) return false; 13051 return Equals(_unknownFields, other._unknownFields); 13052 } 13053 13054 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 13055 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] GetHashCode()13056 public override int GetHashCode() { 13057 int hash = 1; 13058 if (subMessage_ != null) hash ^= SubMessage.GetHashCode(); 13059 if (_unknownFields != null) { 13060 hash ^= _unknownFields.GetHashCode(); 13061 } 13062 return hash; 13063 } 13064 13065 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 13066 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] ToString()13067 public override string ToString() { 13068 return pb::JsonFormatter.ToDiagnosticString(this); 13069 } 13070 13071 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 13072 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] WriteTo(pb::CodedOutputStream output)13073 public void WriteTo(pb::CodedOutputStream output) { 13074 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 13075 output.WriteRawMessage(this); 13076 #else 13077 if (subMessage_ != null) { 13078 output.WriteRawTag(10); 13079 output.WriteMessage(SubMessage); 13080 } 13081 if (_unknownFields != null) { 13082 _unknownFields.WriteTo(output); 13083 } 13084 #endif 13085 } 13086 13087 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 13088 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 13089 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] IBufferMessage.InternalWriteTo(ref pb::WriteContext output)13090 void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { 13091 if (subMessage_ != null) { 13092 output.WriteRawTag(10); 13093 output.WriteMessage(SubMessage); 13094 } 13095 if (_unknownFields != null) { 13096 _unknownFields.WriteTo(ref output); 13097 } 13098 } 13099 #endif 13100 13101 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 13102 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] CalculateSize()13103 public int CalculateSize() { 13104 int size = 0; 13105 if (subMessage_ != null) { 13106 size += 1 + pb::CodedOutputStream.ComputeMessageSize(SubMessage); 13107 } 13108 if (_unknownFields != null) { 13109 size += _unknownFields.CalculateSize(); 13110 } 13111 return size; 13112 } 13113 13114 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 13115 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] MergeFrom(TestIsInitialized other)13116 public void MergeFrom(TestIsInitialized other) { 13117 if (other == null) { 13118 return; 13119 } 13120 if (other.subMessage_ != null) { 13121 if (subMessage_ == null) { 13122 SubMessage = new global::Google.Protobuf.TestProtos.Proto2.TestIsInitialized.Types.SubMessage(); 13123 } 13124 SubMessage.MergeFrom(other.SubMessage); 13125 } 13126 _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); 13127 } 13128 13129 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 13130 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] MergeFrom(pb::CodedInputStream input)13131 public void MergeFrom(pb::CodedInputStream input) { 13132 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 13133 input.ReadRawMessage(this); 13134 #else 13135 uint tag; 13136 while ((tag = input.ReadTag()) != 0) { 13137 if ((tag & 7) == 4) { 13138 // Abort on any end group tag. 13139 return; 13140 } 13141 switch(tag) { 13142 default: 13143 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); 13144 break; 13145 case 10: { 13146 if (subMessage_ == null) { 13147 SubMessage = new global::Google.Protobuf.TestProtos.Proto2.TestIsInitialized.Types.SubMessage(); 13148 } 13149 input.ReadMessage(SubMessage); 13150 break; 13151 } 13152 } 13153 } 13154 #endif 13155 } 13156 13157 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 13158 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 13159 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] IBufferMessage.InternalMergeFrom(ref pb::ParseContext input)13160 void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { 13161 uint tag; 13162 while ((tag = input.ReadTag()) != 0) { 13163 if ((tag & 7) == 4) { 13164 // Abort on any end group tag. 13165 return; 13166 } 13167 switch(tag) { 13168 default: 13169 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); 13170 break; 13171 case 10: { 13172 if (subMessage_ == null) { 13173 SubMessage = new global::Google.Protobuf.TestProtos.Proto2.TestIsInitialized.Types.SubMessage(); 13174 } 13175 input.ReadMessage(SubMessage); 13176 break; 13177 } 13178 } 13179 } 13180 } 13181 #endif 13182 13183 #region Nested types 13184 /// <summary>Container for nested types declared in the TestIsInitialized message type.</summary> 13185 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 13186 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 13187 public static partial class Types { 13188 [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] 13189 public sealed partial class SubMessage : pb::IMessage<SubMessage> 13190 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 13191 , pb::IBufferMessage 13192 #endif 13193 { 13194 private static readonly pb::MessageParser<SubMessage> _parser = new pb::MessageParser<SubMessage>(() => new SubMessage()); 13195 private pb::UnknownFieldSet _unknownFields; 13196 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 13197 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 13198 public static pb::MessageParser<SubMessage> Parser { get { return _parser; } } 13199 13200 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 13201 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 13202 public static pbr::MessageDescriptor Descriptor { 13203 get { return global::Google.Protobuf.TestProtos.Proto2.TestIsInitialized.Descriptor.NestedTypes[0]; } 13204 } 13205 13206 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 13207 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 13208 pbr::MessageDescriptor pb::IMessage.Descriptor { 13209 get { return Descriptor; } 13210 } 13211 13212 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 13213 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] SubMessage()13214 public SubMessage() { 13215 OnConstruction(); 13216 } 13217 OnConstruction()13218 partial void OnConstruction(); 13219 13220 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 13221 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] SubMessage(SubMessage other)13222 public SubMessage(SubMessage other) : this() { 13223 subGroup_ = other.HasSubGroup ? other.subGroup_.Clone() : null; 13224 _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); 13225 } 13226 13227 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 13228 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] Clone()13229 public SubMessage Clone() { 13230 return new SubMessage(this); 13231 } 13232 13233 /// <summary>Field number for the "subgroup" field.</summary> 13234 public const int SubGroupFieldNumber = 1; 13235 private global::Google.Protobuf.TestProtos.Proto2.TestIsInitialized.Types.SubMessage.Types.SubGroup subGroup_; 13236 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 13237 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 13238 public global::Google.Protobuf.TestProtos.Proto2.TestIsInitialized.Types.SubMessage.Types.SubGroup SubGroup { 13239 get { return subGroup_; } 13240 set { 13241 subGroup_ = value; 13242 } 13243 } 13244 /// <summary>Gets whether the subgroup field is set</summary> 13245 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 13246 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 13247 public bool HasSubGroup { 13248 get { return subGroup_ != null; } 13249 } 13250 /// <summary>Clears the value of the subgroup field</summary> 13251 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 13252 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] ClearSubGroup()13253 public void ClearSubGroup() { 13254 subGroup_ = null; 13255 } 13256 13257 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 13258 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] Equals(object other)13259 public override bool Equals(object other) { 13260 return Equals(other as SubMessage); 13261 } 13262 13263 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 13264 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] Equals(SubMessage other)13265 public bool Equals(SubMessage other) { 13266 if (ReferenceEquals(other, null)) { 13267 return false; 13268 } 13269 if (ReferenceEquals(other, this)) { 13270 return true; 13271 } 13272 if (!object.Equals(SubGroup, other.SubGroup)) return false; 13273 return Equals(_unknownFields, other._unknownFields); 13274 } 13275 13276 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 13277 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] GetHashCode()13278 public override int GetHashCode() { 13279 int hash = 1; 13280 if (HasSubGroup) hash ^= SubGroup.GetHashCode(); 13281 if (_unknownFields != null) { 13282 hash ^= _unknownFields.GetHashCode(); 13283 } 13284 return hash; 13285 } 13286 13287 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 13288 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] ToString()13289 public override string ToString() { 13290 return pb::JsonFormatter.ToDiagnosticString(this); 13291 } 13292 13293 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 13294 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] WriteTo(pb::CodedOutputStream output)13295 public void WriteTo(pb::CodedOutputStream output) { 13296 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 13297 output.WriteRawMessage(this); 13298 #else 13299 if (HasSubGroup) { 13300 output.WriteRawTag(11); 13301 output.WriteGroup(SubGroup); 13302 output.WriteRawTag(12); 13303 } 13304 if (_unknownFields != null) { 13305 _unknownFields.WriteTo(output); 13306 } 13307 #endif 13308 } 13309 13310 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 13311 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 13312 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] IBufferMessage.InternalWriteTo(ref pb::WriteContext output)13313 void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { 13314 if (HasSubGroup) { 13315 output.WriteRawTag(11); 13316 output.WriteGroup(SubGroup); 13317 output.WriteRawTag(12); 13318 } 13319 if (_unknownFields != null) { 13320 _unknownFields.WriteTo(ref output); 13321 } 13322 } 13323 #endif 13324 13325 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 13326 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] CalculateSize()13327 public int CalculateSize() { 13328 int size = 0; 13329 if (HasSubGroup) { 13330 size += 2 + pb::CodedOutputStream.ComputeGroupSize(SubGroup); 13331 } 13332 if (_unknownFields != null) { 13333 size += _unknownFields.CalculateSize(); 13334 } 13335 return size; 13336 } 13337 13338 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 13339 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] MergeFrom(SubMessage other)13340 public void MergeFrom(SubMessage other) { 13341 if (other == null) { 13342 return; 13343 } 13344 if (other.HasSubGroup) { 13345 if (!HasSubGroup) { 13346 SubGroup = new global::Google.Protobuf.TestProtos.Proto2.TestIsInitialized.Types.SubMessage.Types.SubGroup(); 13347 } 13348 SubGroup.MergeFrom(other.SubGroup); 13349 } 13350 _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); 13351 } 13352 13353 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 13354 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] MergeFrom(pb::CodedInputStream input)13355 public void MergeFrom(pb::CodedInputStream input) { 13356 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 13357 input.ReadRawMessage(this); 13358 #else 13359 uint tag; 13360 while ((tag = input.ReadTag()) != 0) { 13361 if ((tag & 7) == 4) { 13362 // Abort on any end group tag. 13363 return; 13364 } 13365 switch(tag) { 13366 default: 13367 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); 13368 break; 13369 case 11: { 13370 if (!HasSubGroup) { 13371 SubGroup = new global::Google.Protobuf.TestProtos.Proto2.TestIsInitialized.Types.SubMessage.Types.SubGroup(); 13372 } 13373 input.ReadGroup(SubGroup); 13374 break; 13375 } 13376 } 13377 } 13378 #endif 13379 } 13380 13381 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 13382 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 13383 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] IBufferMessage.InternalMergeFrom(ref pb::ParseContext input)13384 void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { 13385 uint tag; 13386 while ((tag = input.ReadTag()) != 0) { 13387 if ((tag & 7) == 4) { 13388 // Abort on any end group tag. 13389 return; 13390 } 13391 switch(tag) { 13392 default: 13393 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); 13394 break; 13395 case 11: { 13396 if (!HasSubGroup) { 13397 SubGroup = new global::Google.Protobuf.TestProtos.Proto2.TestIsInitialized.Types.SubMessage.Types.SubGroup(); 13398 } 13399 input.ReadGroup(SubGroup); 13400 break; 13401 } 13402 } 13403 } 13404 } 13405 #endif 13406 13407 #region Nested types 13408 /// <summary>Container for nested types declared in the SubMessage message type.</summary> 13409 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 13410 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 13411 public static partial class Types { 13412 [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] 13413 public sealed partial class SubGroup : pb::IMessage<SubGroup> 13414 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 13415 , pb::IBufferMessage 13416 #endif 13417 { 13418 private static readonly pb::MessageParser<SubGroup> _parser = new pb::MessageParser<SubGroup>(() => new SubGroup()); 13419 private pb::UnknownFieldSet _unknownFields; 13420 private int _hasBits0; 13421 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 13422 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 13423 public static pb::MessageParser<SubGroup> Parser { get { return _parser; } } 13424 13425 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 13426 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 13427 public static pbr::MessageDescriptor Descriptor { 13428 get { return global::Google.Protobuf.TestProtos.Proto2.TestIsInitialized.Types.SubMessage.Descriptor.NestedTypes[0]; } 13429 } 13430 13431 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 13432 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 13433 pbr::MessageDescriptor pb::IMessage.Descriptor { 13434 get { return Descriptor; } 13435 } 13436 13437 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 13438 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] SubGroup()13439 public SubGroup() { 13440 OnConstruction(); 13441 } 13442 OnConstruction()13443 partial void OnConstruction(); 13444 13445 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 13446 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] SubGroup(SubGroup other)13447 public SubGroup(SubGroup other) : this() { 13448 _hasBits0 = other._hasBits0; 13449 i_ = other.i_; 13450 _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); 13451 } 13452 13453 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 13454 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] Clone()13455 public SubGroup Clone() { 13456 return new SubGroup(this); 13457 } 13458 13459 /// <summary>Field number for the "i" field.</summary> 13460 public const int IFieldNumber = 2; 13461 private readonly static int IDefaultValue = 0; 13462 13463 private int i_; 13464 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 13465 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 13466 public int I { 13467 get { if ((_hasBits0 & 1) != 0) { return i_; } else { return IDefaultValue; } } 13468 set { 13469 _hasBits0 |= 1; 13470 i_ = value; 13471 } 13472 } 13473 /// <summary>Gets whether the "i" field is set</summary> 13474 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 13475 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 13476 public bool HasI { 13477 get { return (_hasBits0 & 1) != 0; } 13478 } 13479 /// <summary>Clears the value of the "i" field</summary> 13480 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 13481 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] ClearI()13482 public void ClearI() { 13483 _hasBits0 &= ~1; 13484 } 13485 13486 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 13487 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] Equals(object other)13488 public override bool Equals(object other) { 13489 return Equals(other as SubGroup); 13490 } 13491 13492 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 13493 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] Equals(SubGroup other)13494 public bool Equals(SubGroup other) { 13495 if (ReferenceEquals(other, null)) { 13496 return false; 13497 } 13498 if (ReferenceEquals(other, this)) { 13499 return true; 13500 } 13501 if (I != other.I) return false; 13502 return Equals(_unknownFields, other._unknownFields); 13503 } 13504 13505 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 13506 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] GetHashCode()13507 public override int GetHashCode() { 13508 int hash = 1; 13509 if (HasI) hash ^= I.GetHashCode(); 13510 if (_unknownFields != null) { 13511 hash ^= _unknownFields.GetHashCode(); 13512 } 13513 return hash; 13514 } 13515 13516 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 13517 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] ToString()13518 public override string ToString() { 13519 return pb::JsonFormatter.ToDiagnosticString(this); 13520 } 13521 13522 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 13523 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] WriteTo(pb::CodedOutputStream output)13524 public void WriteTo(pb::CodedOutputStream output) { 13525 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 13526 output.WriteRawMessage(this); 13527 #else 13528 if (HasI) { 13529 output.WriteRawTag(16); 13530 output.WriteInt32(I); 13531 } 13532 if (_unknownFields != null) { 13533 _unknownFields.WriteTo(output); 13534 } 13535 #endif 13536 } 13537 13538 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 13539 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 13540 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] IBufferMessage.InternalWriteTo(ref pb::WriteContext output)13541 void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { 13542 if (HasI) { 13543 output.WriteRawTag(16); 13544 output.WriteInt32(I); 13545 } 13546 if (_unknownFields != null) { 13547 _unknownFields.WriteTo(ref output); 13548 } 13549 } 13550 #endif 13551 13552 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 13553 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] CalculateSize()13554 public int CalculateSize() { 13555 int size = 0; 13556 if (HasI) { 13557 size += 1 + pb::CodedOutputStream.ComputeInt32Size(I); 13558 } 13559 if (_unknownFields != null) { 13560 size += _unknownFields.CalculateSize(); 13561 } 13562 return size; 13563 } 13564 13565 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 13566 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] MergeFrom(SubGroup other)13567 public void MergeFrom(SubGroup other) { 13568 if (other == null) { 13569 return; 13570 } 13571 if (other.HasI) { 13572 I = other.I; 13573 } 13574 _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); 13575 } 13576 13577 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 13578 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] MergeFrom(pb::CodedInputStream input)13579 public void MergeFrom(pb::CodedInputStream input) { 13580 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 13581 input.ReadRawMessage(this); 13582 #else 13583 uint tag; 13584 while ((tag = input.ReadTag()) != 0) { 13585 if ((tag & 7) == 4) { 13586 // Abort on any end group tag. 13587 return; 13588 } 13589 switch(tag) { 13590 default: 13591 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); 13592 break; 13593 case 16: { 13594 I = input.ReadInt32(); 13595 break; 13596 } 13597 } 13598 } 13599 #endif 13600 } 13601 13602 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 13603 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 13604 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] IBufferMessage.InternalMergeFrom(ref pb::ParseContext input)13605 void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { 13606 uint tag; 13607 while ((tag = input.ReadTag()) != 0) { 13608 if ((tag & 7) == 4) { 13609 // Abort on any end group tag. 13610 return; 13611 } 13612 switch(tag) { 13613 default: 13614 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); 13615 break; 13616 case 16: { 13617 I = input.ReadInt32(); 13618 break; 13619 } 13620 } 13621 } 13622 } 13623 #endif 13624 13625 } 13626 13627 } 13628 #endregion 13629 13630 } 13631 13632 } 13633 #endregion 13634 13635 } 13636 13637 /// <summary> 13638 /// Test that groups have disjoint field numbers from their siblings and 13639 /// parents. This is NOT possible in proto1; only google.protobuf. When 13640 /// attempting to compile with proto1, this will emit an error; so we only 13641 /// include it in protobuf_unittest_proto. 13642 /// </summary> 13643 [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] 13644 public sealed partial class TestDupFieldNumber : pb::IMessage<TestDupFieldNumber> 13645 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 13646 , pb::IBufferMessage 13647 #endif 13648 { 13649 private static readonly pb::MessageParser<TestDupFieldNumber> _parser = new pb::MessageParser<TestDupFieldNumber>(() => new TestDupFieldNumber()); 13650 private pb::UnknownFieldSet _unknownFields; 13651 private int _hasBits0; 13652 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 13653 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 13654 public static pb::MessageParser<TestDupFieldNumber> Parser { get { return _parser; } } 13655 13656 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 13657 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 13658 public static pbr::MessageDescriptor Descriptor { 13659 get { return global::Google.Protobuf.TestProtos.Proto2.UnittestReflection.Descriptor.MessageTypes[24]; } 13660 } 13661 13662 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 13663 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 13664 pbr::MessageDescriptor pb::IMessage.Descriptor { 13665 get { return Descriptor; } 13666 } 13667 13668 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 13669 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] TestDupFieldNumber()13670 public TestDupFieldNumber() { 13671 OnConstruction(); 13672 } 13673 OnConstruction()13674 partial void OnConstruction(); 13675 13676 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 13677 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] TestDupFieldNumber(TestDupFieldNumber other)13678 public TestDupFieldNumber(TestDupFieldNumber other) : this() { 13679 _hasBits0 = other._hasBits0; 13680 a_ = other.a_; 13681 foo_ = other.HasFoo ? other.foo_.Clone() : null; 13682 bar_ = other.HasBar ? other.bar_.Clone() : null; 13683 _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); 13684 } 13685 13686 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 13687 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] Clone()13688 public TestDupFieldNumber Clone() { 13689 return new TestDupFieldNumber(this); 13690 } 13691 13692 /// <summary>Field number for the "a" field.</summary> 13693 public const int AFieldNumber = 1; 13694 private readonly static int ADefaultValue = 0; 13695 13696 private int a_; 13697 /// <summary> 13698 /// NO_PROTO1 13699 /// </summary> 13700 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 13701 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 13702 public int A { 13703 get { if ((_hasBits0 & 1) != 0) { return a_; } else { return ADefaultValue; } } 13704 set { 13705 _hasBits0 |= 1; 13706 a_ = value; 13707 } 13708 } 13709 /// <summary>Gets whether the "a" field is set</summary> 13710 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 13711 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 13712 public bool HasA { 13713 get { return (_hasBits0 & 1) != 0; } 13714 } 13715 /// <summary>Clears the value of the "a" field</summary> 13716 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 13717 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] ClearA()13718 public void ClearA() { 13719 _hasBits0 &= ~1; 13720 } 13721 13722 /// <summary>Field number for the "foo" field.</summary> 13723 public const int FooFieldNumber = 2; 13724 private global::Google.Protobuf.TestProtos.Proto2.TestDupFieldNumber.Types.Foo foo_; 13725 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 13726 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 13727 public global::Google.Protobuf.TestProtos.Proto2.TestDupFieldNumber.Types.Foo Foo { 13728 get { return foo_; } 13729 set { 13730 foo_ = value; 13731 } 13732 } 13733 /// <summary>Gets whether the foo field is set</summary> 13734 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 13735 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 13736 public bool HasFoo { 13737 get { return foo_ != null; } 13738 } 13739 /// <summary>Clears the value of the foo field</summary> 13740 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 13741 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] ClearFoo()13742 public void ClearFoo() { 13743 foo_ = null; 13744 } 13745 13746 /// <summary>Field number for the "bar" field.</summary> 13747 public const int BarFieldNumber = 3; 13748 private global::Google.Protobuf.TestProtos.Proto2.TestDupFieldNumber.Types.Bar bar_; 13749 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 13750 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 13751 public global::Google.Protobuf.TestProtos.Proto2.TestDupFieldNumber.Types.Bar Bar { 13752 get { return bar_; } 13753 set { 13754 bar_ = value; 13755 } 13756 } 13757 /// <summary>Gets whether the bar field is set</summary> 13758 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 13759 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 13760 public bool HasBar { 13761 get { return bar_ != null; } 13762 } 13763 /// <summary>Clears the value of the bar field</summary> 13764 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 13765 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] ClearBar()13766 public void ClearBar() { 13767 bar_ = null; 13768 } 13769 13770 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 13771 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] Equals(object other)13772 public override bool Equals(object other) { 13773 return Equals(other as TestDupFieldNumber); 13774 } 13775 13776 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 13777 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] Equals(TestDupFieldNumber other)13778 public bool Equals(TestDupFieldNumber other) { 13779 if (ReferenceEquals(other, null)) { 13780 return false; 13781 } 13782 if (ReferenceEquals(other, this)) { 13783 return true; 13784 } 13785 if (A != other.A) return false; 13786 if (!object.Equals(Foo, other.Foo)) return false; 13787 if (!object.Equals(Bar, other.Bar)) return false; 13788 return Equals(_unknownFields, other._unknownFields); 13789 } 13790 13791 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 13792 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] GetHashCode()13793 public override int GetHashCode() { 13794 int hash = 1; 13795 if (HasA) hash ^= A.GetHashCode(); 13796 if (HasFoo) hash ^= Foo.GetHashCode(); 13797 if (HasBar) hash ^= Bar.GetHashCode(); 13798 if (_unknownFields != null) { 13799 hash ^= _unknownFields.GetHashCode(); 13800 } 13801 return hash; 13802 } 13803 13804 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 13805 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] ToString()13806 public override string ToString() { 13807 return pb::JsonFormatter.ToDiagnosticString(this); 13808 } 13809 13810 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 13811 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] WriteTo(pb::CodedOutputStream output)13812 public void WriteTo(pb::CodedOutputStream output) { 13813 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 13814 output.WriteRawMessage(this); 13815 #else 13816 if (HasA) { 13817 output.WriteRawTag(8); 13818 output.WriteInt32(A); 13819 } 13820 if (HasFoo) { 13821 output.WriteRawTag(19); 13822 output.WriteGroup(Foo); 13823 output.WriteRawTag(20); 13824 } 13825 if (HasBar) { 13826 output.WriteRawTag(27); 13827 output.WriteGroup(Bar); 13828 output.WriteRawTag(28); 13829 } 13830 if (_unknownFields != null) { 13831 _unknownFields.WriteTo(output); 13832 } 13833 #endif 13834 } 13835 13836 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 13837 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 13838 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] IBufferMessage.InternalWriteTo(ref pb::WriteContext output)13839 void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { 13840 if (HasA) { 13841 output.WriteRawTag(8); 13842 output.WriteInt32(A); 13843 } 13844 if (HasFoo) { 13845 output.WriteRawTag(19); 13846 output.WriteGroup(Foo); 13847 output.WriteRawTag(20); 13848 } 13849 if (HasBar) { 13850 output.WriteRawTag(27); 13851 output.WriteGroup(Bar); 13852 output.WriteRawTag(28); 13853 } 13854 if (_unknownFields != null) { 13855 _unknownFields.WriteTo(ref output); 13856 } 13857 } 13858 #endif 13859 13860 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 13861 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] CalculateSize()13862 public int CalculateSize() { 13863 int size = 0; 13864 if (HasA) { 13865 size += 1 + pb::CodedOutputStream.ComputeInt32Size(A); 13866 } 13867 if (HasFoo) { 13868 size += 2 + pb::CodedOutputStream.ComputeGroupSize(Foo); 13869 } 13870 if (HasBar) { 13871 size += 2 + pb::CodedOutputStream.ComputeGroupSize(Bar); 13872 } 13873 if (_unknownFields != null) { 13874 size += _unknownFields.CalculateSize(); 13875 } 13876 return size; 13877 } 13878 13879 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 13880 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] MergeFrom(TestDupFieldNumber other)13881 public void MergeFrom(TestDupFieldNumber other) { 13882 if (other == null) { 13883 return; 13884 } 13885 if (other.HasA) { 13886 A = other.A; 13887 } 13888 if (other.HasFoo) { 13889 if (!HasFoo) { 13890 Foo = new global::Google.Protobuf.TestProtos.Proto2.TestDupFieldNumber.Types.Foo(); 13891 } 13892 Foo.MergeFrom(other.Foo); 13893 } 13894 if (other.HasBar) { 13895 if (!HasBar) { 13896 Bar = new global::Google.Protobuf.TestProtos.Proto2.TestDupFieldNumber.Types.Bar(); 13897 } 13898 Bar.MergeFrom(other.Bar); 13899 } 13900 _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); 13901 } 13902 13903 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 13904 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] MergeFrom(pb::CodedInputStream input)13905 public void MergeFrom(pb::CodedInputStream input) { 13906 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 13907 input.ReadRawMessage(this); 13908 #else 13909 uint tag; 13910 while ((tag = input.ReadTag()) != 0) { 13911 if ((tag & 7) == 4) { 13912 // Abort on any end group tag. 13913 return; 13914 } 13915 switch(tag) { 13916 default: 13917 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); 13918 break; 13919 case 8: { 13920 A = input.ReadInt32(); 13921 break; 13922 } 13923 case 19: { 13924 if (!HasFoo) { 13925 Foo = new global::Google.Protobuf.TestProtos.Proto2.TestDupFieldNumber.Types.Foo(); 13926 } 13927 input.ReadGroup(Foo); 13928 break; 13929 } 13930 case 27: { 13931 if (!HasBar) { 13932 Bar = new global::Google.Protobuf.TestProtos.Proto2.TestDupFieldNumber.Types.Bar(); 13933 } 13934 input.ReadGroup(Bar); 13935 break; 13936 } 13937 } 13938 } 13939 #endif 13940 } 13941 13942 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 13943 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 13944 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] IBufferMessage.InternalMergeFrom(ref pb::ParseContext input)13945 void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { 13946 uint tag; 13947 while ((tag = input.ReadTag()) != 0) { 13948 if ((tag & 7) == 4) { 13949 // Abort on any end group tag. 13950 return; 13951 } 13952 switch(tag) { 13953 default: 13954 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); 13955 break; 13956 case 8: { 13957 A = input.ReadInt32(); 13958 break; 13959 } 13960 case 19: { 13961 if (!HasFoo) { 13962 Foo = new global::Google.Protobuf.TestProtos.Proto2.TestDupFieldNumber.Types.Foo(); 13963 } 13964 input.ReadGroup(Foo); 13965 break; 13966 } 13967 case 27: { 13968 if (!HasBar) { 13969 Bar = new global::Google.Protobuf.TestProtos.Proto2.TestDupFieldNumber.Types.Bar(); 13970 } 13971 input.ReadGroup(Bar); 13972 break; 13973 } 13974 } 13975 } 13976 } 13977 #endif 13978 13979 #region Nested types 13980 /// <summary>Container for nested types declared in the TestDupFieldNumber message type.</summary> 13981 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 13982 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 13983 public static partial class Types { 13984 [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] 13985 public sealed partial class Foo : pb::IMessage<Foo> 13986 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 13987 , pb::IBufferMessage 13988 #endif 13989 { 13990 private static readonly pb::MessageParser<Foo> _parser = new pb::MessageParser<Foo>(() => new Foo()); 13991 private pb::UnknownFieldSet _unknownFields; 13992 private int _hasBits0; 13993 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 13994 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 13995 public static pb::MessageParser<Foo> Parser { get { return _parser; } } 13996 13997 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 13998 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 13999 public static pbr::MessageDescriptor Descriptor { 14000 get { return global::Google.Protobuf.TestProtos.Proto2.TestDupFieldNumber.Descriptor.NestedTypes[0]; } 14001 } 14002 14003 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 14004 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 14005 pbr::MessageDescriptor pb::IMessage.Descriptor { 14006 get { return Descriptor; } 14007 } 14008 14009 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 14010 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] Foo()14011 public Foo() { 14012 OnConstruction(); 14013 } 14014 OnConstruction()14015 partial void OnConstruction(); 14016 14017 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 14018 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] Foo(Foo other)14019 public Foo(Foo other) : this() { 14020 _hasBits0 = other._hasBits0; 14021 a_ = other.a_; 14022 _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); 14023 } 14024 14025 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 14026 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] Clone()14027 public Foo Clone() { 14028 return new Foo(this); 14029 } 14030 14031 /// <summary>Field number for the "a" field.</summary> 14032 public const int AFieldNumber = 1; 14033 private readonly static int ADefaultValue = 0; 14034 14035 private int a_; 14036 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 14037 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 14038 public int A { 14039 get { if ((_hasBits0 & 1) != 0) { return a_; } else { return ADefaultValue; } } 14040 set { 14041 _hasBits0 |= 1; 14042 a_ = value; 14043 } 14044 } 14045 /// <summary>Gets whether the "a" field is set</summary> 14046 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 14047 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 14048 public bool HasA { 14049 get { return (_hasBits0 & 1) != 0; } 14050 } 14051 /// <summary>Clears the value of the "a" field</summary> 14052 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 14053 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] ClearA()14054 public void ClearA() { 14055 _hasBits0 &= ~1; 14056 } 14057 14058 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 14059 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] Equals(object other)14060 public override bool Equals(object other) { 14061 return Equals(other as Foo); 14062 } 14063 14064 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 14065 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] Equals(Foo other)14066 public bool Equals(Foo other) { 14067 if (ReferenceEquals(other, null)) { 14068 return false; 14069 } 14070 if (ReferenceEquals(other, this)) { 14071 return true; 14072 } 14073 if (A != other.A) return false; 14074 return Equals(_unknownFields, other._unknownFields); 14075 } 14076 14077 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 14078 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] GetHashCode()14079 public override int GetHashCode() { 14080 int hash = 1; 14081 if (HasA) hash ^= A.GetHashCode(); 14082 if (_unknownFields != null) { 14083 hash ^= _unknownFields.GetHashCode(); 14084 } 14085 return hash; 14086 } 14087 14088 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 14089 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] ToString()14090 public override string ToString() { 14091 return pb::JsonFormatter.ToDiagnosticString(this); 14092 } 14093 14094 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 14095 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] WriteTo(pb::CodedOutputStream output)14096 public void WriteTo(pb::CodedOutputStream output) { 14097 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 14098 output.WriteRawMessage(this); 14099 #else 14100 if (HasA) { 14101 output.WriteRawTag(8); 14102 output.WriteInt32(A); 14103 } 14104 if (_unknownFields != null) { 14105 _unknownFields.WriteTo(output); 14106 } 14107 #endif 14108 } 14109 14110 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 14111 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 14112 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] IBufferMessage.InternalWriteTo(ref pb::WriteContext output)14113 void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { 14114 if (HasA) { 14115 output.WriteRawTag(8); 14116 output.WriteInt32(A); 14117 } 14118 if (_unknownFields != null) { 14119 _unknownFields.WriteTo(ref output); 14120 } 14121 } 14122 #endif 14123 14124 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 14125 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] CalculateSize()14126 public int CalculateSize() { 14127 int size = 0; 14128 if (HasA) { 14129 size += 1 + pb::CodedOutputStream.ComputeInt32Size(A); 14130 } 14131 if (_unknownFields != null) { 14132 size += _unknownFields.CalculateSize(); 14133 } 14134 return size; 14135 } 14136 14137 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 14138 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] MergeFrom(Foo other)14139 public void MergeFrom(Foo other) { 14140 if (other == null) { 14141 return; 14142 } 14143 if (other.HasA) { 14144 A = other.A; 14145 } 14146 _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); 14147 } 14148 14149 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 14150 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] MergeFrom(pb::CodedInputStream input)14151 public void MergeFrom(pb::CodedInputStream input) { 14152 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 14153 input.ReadRawMessage(this); 14154 #else 14155 uint tag; 14156 while ((tag = input.ReadTag()) != 0) { 14157 if ((tag & 7) == 4) { 14158 // Abort on any end group tag. 14159 return; 14160 } 14161 switch(tag) { 14162 default: 14163 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); 14164 break; 14165 case 8: { 14166 A = input.ReadInt32(); 14167 break; 14168 } 14169 } 14170 } 14171 #endif 14172 } 14173 14174 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 14175 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 14176 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] IBufferMessage.InternalMergeFrom(ref pb::ParseContext input)14177 void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { 14178 uint tag; 14179 while ((tag = input.ReadTag()) != 0) { 14180 if ((tag & 7) == 4) { 14181 // Abort on any end group tag. 14182 return; 14183 } 14184 switch(tag) { 14185 default: 14186 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); 14187 break; 14188 case 8: { 14189 A = input.ReadInt32(); 14190 break; 14191 } 14192 } 14193 } 14194 } 14195 #endif 14196 14197 } 14198 14199 [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] 14200 public sealed partial class Bar : pb::IMessage<Bar> 14201 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 14202 , pb::IBufferMessage 14203 #endif 14204 { 14205 private static readonly pb::MessageParser<Bar> _parser = new pb::MessageParser<Bar>(() => new Bar()); 14206 private pb::UnknownFieldSet _unknownFields; 14207 private int _hasBits0; 14208 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 14209 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 14210 public static pb::MessageParser<Bar> Parser { get { return _parser; } } 14211 14212 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 14213 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 14214 public static pbr::MessageDescriptor Descriptor { 14215 get { return global::Google.Protobuf.TestProtos.Proto2.TestDupFieldNumber.Descriptor.NestedTypes[1]; } 14216 } 14217 14218 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 14219 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 14220 pbr::MessageDescriptor pb::IMessage.Descriptor { 14221 get { return Descriptor; } 14222 } 14223 14224 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 14225 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] Bar()14226 public Bar() { 14227 OnConstruction(); 14228 } 14229 OnConstruction()14230 partial void OnConstruction(); 14231 14232 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 14233 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] Bar(Bar other)14234 public Bar(Bar other) : this() { 14235 _hasBits0 = other._hasBits0; 14236 a_ = other.a_; 14237 _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); 14238 } 14239 14240 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 14241 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] Clone()14242 public Bar Clone() { 14243 return new Bar(this); 14244 } 14245 14246 /// <summary>Field number for the "a" field.</summary> 14247 public const int AFieldNumber = 1; 14248 private readonly static int ADefaultValue = 0; 14249 14250 private int a_; 14251 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 14252 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 14253 public int A { 14254 get { if ((_hasBits0 & 1) != 0) { return a_; } else { return ADefaultValue; } } 14255 set { 14256 _hasBits0 |= 1; 14257 a_ = value; 14258 } 14259 } 14260 /// <summary>Gets whether the "a" field is set</summary> 14261 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 14262 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 14263 public bool HasA { 14264 get { return (_hasBits0 & 1) != 0; } 14265 } 14266 /// <summary>Clears the value of the "a" field</summary> 14267 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 14268 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] ClearA()14269 public void ClearA() { 14270 _hasBits0 &= ~1; 14271 } 14272 14273 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 14274 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] Equals(object other)14275 public override bool Equals(object other) { 14276 return Equals(other as Bar); 14277 } 14278 14279 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 14280 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] Equals(Bar other)14281 public bool Equals(Bar other) { 14282 if (ReferenceEquals(other, null)) { 14283 return false; 14284 } 14285 if (ReferenceEquals(other, this)) { 14286 return true; 14287 } 14288 if (A != other.A) return false; 14289 return Equals(_unknownFields, other._unknownFields); 14290 } 14291 14292 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 14293 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] GetHashCode()14294 public override int GetHashCode() { 14295 int hash = 1; 14296 if (HasA) hash ^= A.GetHashCode(); 14297 if (_unknownFields != null) { 14298 hash ^= _unknownFields.GetHashCode(); 14299 } 14300 return hash; 14301 } 14302 14303 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 14304 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] ToString()14305 public override string ToString() { 14306 return pb::JsonFormatter.ToDiagnosticString(this); 14307 } 14308 14309 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 14310 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] WriteTo(pb::CodedOutputStream output)14311 public void WriteTo(pb::CodedOutputStream output) { 14312 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 14313 output.WriteRawMessage(this); 14314 #else 14315 if (HasA) { 14316 output.WriteRawTag(8); 14317 output.WriteInt32(A); 14318 } 14319 if (_unknownFields != null) { 14320 _unknownFields.WriteTo(output); 14321 } 14322 #endif 14323 } 14324 14325 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 14326 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 14327 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] IBufferMessage.InternalWriteTo(ref pb::WriteContext output)14328 void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { 14329 if (HasA) { 14330 output.WriteRawTag(8); 14331 output.WriteInt32(A); 14332 } 14333 if (_unknownFields != null) { 14334 _unknownFields.WriteTo(ref output); 14335 } 14336 } 14337 #endif 14338 14339 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 14340 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] CalculateSize()14341 public int CalculateSize() { 14342 int size = 0; 14343 if (HasA) { 14344 size += 1 + pb::CodedOutputStream.ComputeInt32Size(A); 14345 } 14346 if (_unknownFields != null) { 14347 size += _unknownFields.CalculateSize(); 14348 } 14349 return size; 14350 } 14351 14352 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 14353 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] MergeFrom(Bar other)14354 public void MergeFrom(Bar other) { 14355 if (other == null) { 14356 return; 14357 } 14358 if (other.HasA) { 14359 A = other.A; 14360 } 14361 _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); 14362 } 14363 14364 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 14365 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] MergeFrom(pb::CodedInputStream input)14366 public void MergeFrom(pb::CodedInputStream input) { 14367 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 14368 input.ReadRawMessage(this); 14369 #else 14370 uint tag; 14371 while ((tag = input.ReadTag()) != 0) { 14372 if ((tag & 7) == 4) { 14373 // Abort on any end group tag. 14374 return; 14375 } 14376 switch(tag) { 14377 default: 14378 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); 14379 break; 14380 case 8: { 14381 A = input.ReadInt32(); 14382 break; 14383 } 14384 } 14385 } 14386 #endif 14387 } 14388 14389 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 14390 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 14391 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] IBufferMessage.InternalMergeFrom(ref pb::ParseContext input)14392 void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { 14393 uint tag; 14394 while ((tag = input.ReadTag()) != 0) { 14395 if ((tag & 7) == 4) { 14396 // Abort on any end group tag. 14397 return; 14398 } 14399 switch(tag) { 14400 default: 14401 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); 14402 break; 14403 case 8: { 14404 A = input.ReadInt32(); 14405 break; 14406 } 14407 } 14408 } 14409 } 14410 #endif 14411 14412 } 14413 14414 } 14415 #endregion 14416 14417 } 14418 14419 /// <summary> 14420 /// Additional messages for testing lazy fields. 14421 /// </summary> 14422 [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] 14423 public sealed partial class TestEagerMessage : pb::IMessage<TestEagerMessage> 14424 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 14425 , pb::IBufferMessage 14426 #endif 14427 { 14428 private static readonly pb::MessageParser<TestEagerMessage> _parser = new pb::MessageParser<TestEagerMessage>(() => new TestEagerMessage()); 14429 private pb::UnknownFieldSet _unknownFields; 14430 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 14431 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 14432 public static pb::MessageParser<TestEagerMessage> Parser { get { return _parser; } } 14433 14434 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 14435 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 14436 public static pbr::MessageDescriptor Descriptor { 14437 get { return global::Google.Protobuf.TestProtos.Proto2.UnittestReflection.Descriptor.MessageTypes[25]; } 14438 } 14439 14440 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 14441 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 14442 pbr::MessageDescriptor pb::IMessage.Descriptor { 14443 get { return Descriptor; } 14444 } 14445 14446 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 14447 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] TestEagerMessage()14448 public TestEagerMessage() { 14449 OnConstruction(); 14450 } 14451 OnConstruction()14452 partial void OnConstruction(); 14453 14454 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 14455 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] TestEagerMessage(TestEagerMessage other)14456 public TestEagerMessage(TestEagerMessage other) : this() { 14457 subMessage_ = other.subMessage_ != null ? other.subMessage_.Clone() : null; 14458 _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); 14459 } 14460 14461 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 14462 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] Clone()14463 public TestEagerMessage Clone() { 14464 return new TestEagerMessage(this); 14465 } 14466 14467 /// <summary>Field number for the "sub_message" field.</summary> 14468 public const int SubMessageFieldNumber = 1; 14469 private global::Google.Protobuf.TestProtos.Proto2.TestAllTypes subMessage_; 14470 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 14471 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 14472 public global::Google.Protobuf.TestProtos.Proto2.TestAllTypes SubMessage { 14473 get { return subMessage_; } 14474 set { 14475 subMessage_ = value; 14476 } 14477 } 14478 14479 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 14480 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] Equals(object other)14481 public override bool Equals(object other) { 14482 return Equals(other as TestEagerMessage); 14483 } 14484 14485 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 14486 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] Equals(TestEagerMessage other)14487 public bool Equals(TestEagerMessage other) { 14488 if (ReferenceEquals(other, null)) { 14489 return false; 14490 } 14491 if (ReferenceEquals(other, this)) { 14492 return true; 14493 } 14494 if (!object.Equals(SubMessage, other.SubMessage)) return false; 14495 return Equals(_unknownFields, other._unknownFields); 14496 } 14497 14498 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 14499 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] GetHashCode()14500 public override int GetHashCode() { 14501 int hash = 1; 14502 if (subMessage_ != null) hash ^= SubMessage.GetHashCode(); 14503 if (_unknownFields != null) { 14504 hash ^= _unknownFields.GetHashCode(); 14505 } 14506 return hash; 14507 } 14508 14509 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 14510 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] ToString()14511 public override string ToString() { 14512 return pb::JsonFormatter.ToDiagnosticString(this); 14513 } 14514 14515 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 14516 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] WriteTo(pb::CodedOutputStream output)14517 public void WriteTo(pb::CodedOutputStream output) { 14518 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 14519 output.WriteRawMessage(this); 14520 #else 14521 if (subMessage_ != null) { 14522 output.WriteRawTag(10); 14523 output.WriteMessage(SubMessage); 14524 } 14525 if (_unknownFields != null) { 14526 _unknownFields.WriteTo(output); 14527 } 14528 #endif 14529 } 14530 14531 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 14532 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 14533 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] IBufferMessage.InternalWriteTo(ref pb::WriteContext output)14534 void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { 14535 if (subMessage_ != null) { 14536 output.WriteRawTag(10); 14537 output.WriteMessage(SubMessage); 14538 } 14539 if (_unknownFields != null) { 14540 _unknownFields.WriteTo(ref output); 14541 } 14542 } 14543 #endif 14544 14545 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 14546 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] CalculateSize()14547 public int CalculateSize() { 14548 int size = 0; 14549 if (subMessage_ != null) { 14550 size += 1 + pb::CodedOutputStream.ComputeMessageSize(SubMessage); 14551 } 14552 if (_unknownFields != null) { 14553 size += _unknownFields.CalculateSize(); 14554 } 14555 return size; 14556 } 14557 14558 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 14559 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] MergeFrom(TestEagerMessage other)14560 public void MergeFrom(TestEagerMessage other) { 14561 if (other == null) { 14562 return; 14563 } 14564 if (other.subMessage_ != null) { 14565 if (subMessage_ == null) { 14566 SubMessage = new global::Google.Protobuf.TestProtos.Proto2.TestAllTypes(); 14567 } 14568 SubMessage.MergeFrom(other.SubMessage); 14569 } 14570 _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); 14571 } 14572 14573 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 14574 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] MergeFrom(pb::CodedInputStream input)14575 public void MergeFrom(pb::CodedInputStream input) { 14576 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 14577 input.ReadRawMessage(this); 14578 #else 14579 uint tag; 14580 while ((tag = input.ReadTag()) != 0) { 14581 if ((tag & 7) == 4) { 14582 // Abort on any end group tag. 14583 return; 14584 } 14585 switch(tag) { 14586 default: 14587 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); 14588 break; 14589 case 10: { 14590 if (subMessage_ == null) { 14591 SubMessage = new global::Google.Protobuf.TestProtos.Proto2.TestAllTypes(); 14592 } 14593 input.ReadMessage(SubMessage); 14594 break; 14595 } 14596 } 14597 } 14598 #endif 14599 } 14600 14601 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 14602 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 14603 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] IBufferMessage.InternalMergeFrom(ref pb::ParseContext input)14604 void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { 14605 uint tag; 14606 while ((tag = input.ReadTag()) != 0) { 14607 if ((tag & 7) == 4) { 14608 // Abort on any end group tag. 14609 return; 14610 } 14611 switch(tag) { 14612 default: 14613 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); 14614 break; 14615 case 10: { 14616 if (subMessage_ == null) { 14617 SubMessage = new global::Google.Protobuf.TestProtos.Proto2.TestAllTypes(); 14618 } 14619 input.ReadMessage(SubMessage); 14620 break; 14621 } 14622 } 14623 } 14624 } 14625 #endif 14626 14627 } 14628 14629 [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] 14630 public sealed partial class TestLazyMessage : pb::IMessage<TestLazyMessage> 14631 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 14632 , pb::IBufferMessage 14633 #endif 14634 { 14635 private static readonly pb::MessageParser<TestLazyMessage> _parser = new pb::MessageParser<TestLazyMessage>(() => new TestLazyMessage()); 14636 private pb::UnknownFieldSet _unknownFields; 14637 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 14638 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 14639 public static pb::MessageParser<TestLazyMessage> Parser { get { return _parser; } } 14640 14641 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 14642 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 14643 public static pbr::MessageDescriptor Descriptor { 14644 get { return global::Google.Protobuf.TestProtos.Proto2.UnittestReflection.Descriptor.MessageTypes[26]; } 14645 } 14646 14647 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 14648 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 14649 pbr::MessageDescriptor pb::IMessage.Descriptor { 14650 get { return Descriptor; } 14651 } 14652 14653 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 14654 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] TestLazyMessage()14655 public TestLazyMessage() { 14656 OnConstruction(); 14657 } 14658 OnConstruction()14659 partial void OnConstruction(); 14660 14661 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 14662 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] TestLazyMessage(TestLazyMessage other)14663 public TestLazyMessage(TestLazyMessage other) : this() { 14664 subMessage_ = other.subMessage_ != null ? other.subMessage_.Clone() : null; 14665 _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); 14666 } 14667 14668 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 14669 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] Clone()14670 public TestLazyMessage Clone() { 14671 return new TestLazyMessage(this); 14672 } 14673 14674 /// <summary>Field number for the "sub_message" field.</summary> 14675 public const int SubMessageFieldNumber = 1; 14676 private global::Google.Protobuf.TestProtos.Proto2.TestAllTypes subMessage_; 14677 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 14678 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 14679 public global::Google.Protobuf.TestProtos.Proto2.TestAllTypes SubMessage { 14680 get { return subMessage_; } 14681 set { 14682 subMessage_ = value; 14683 } 14684 } 14685 14686 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 14687 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] Equals(object other)14688 public override bool Equals(object other) { 14689 return Equals(other as TestLazyMessage); 14690 } 14691 14692 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 14693 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] Equals(TestLazyMessage other)14694 public bool Equals(TestLazyMessage other) { 14695 if (ReferenceEquals(other, null)) { 14696 return false; 14697 } 14698 if (ReferenceEquals(other, this)) { 14699 return true; 14700 } 14701 if (!object.Equals(SubMessage, other.SubMessage)) return false; 14702 return Equals(_unknownFields, other._unknownFields); 14703 } 14704 14705 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 14706 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] GetHashCode()14707 public override int GetHashCode() { 14708 int hash = 1; 14709 if (subMessage_ != null) hash ^= SubMessage.GetHashCode(); 14710 if (_unknownFields != null) { 14711 hash ^= _unknownFields.GetHashCode(); 14712 } 14713 return hash; 14714 } 14715 14716 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 14717 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] ToString()14718 public override string ToString() { 14719 return pb::JsonFormatter.ToDiagnosticString(this); 14720 } 14721 14722 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 14723 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] WriteTo(pb::CodedOutputStream output)14724 public void WriteTo(pb::CodedOutputStream output) { 14725 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 14726 output.WriteRawMessage(this); 14727 #else 14728 if (subMessage_ != null) { 14729 output.WriteRawTag(10); 14730 output.WriteMessage(SubMessage); 14731 } 14732 if (_unknownFields != null) { 14733 _unknownFields.WriteTo(output); 14734 } 14735 #endif 14736 } 14737 14738 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 14739 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 14740 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] IBufferMessage.InternalWriteTo(ref pb::WriteContext output)14741 void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { 14742 if (subMessage_ != null) { 14743 output.WriteRawTag(10); 14744 output.WriteMessage(SubMessage); 14745 } 14746 if (_unknownFields != null) { 14747 _unknownFields.WriteTo(ref output); 14748 } 14749 } 14750 #endif 14751 14752 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 14753 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] CalculateSize()14754 public int CalculateSize() { 14755 int size = 0; 14756 if (subMessage_ != null) { 14757 size += 1 + pb::CodedOutputStream.ComputeMessageSize(SubMessage); 14758 } 14759 if (_unknownFields != null) { 14760 size += _unknownFields.CalculateSize(); 14761 } 14762 return size; 14763 } 14764 14765 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 14766 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] MergeFrom(TestLazyMessage other)14767 public void MergeFrom(TestLazyMessage other) { 14768 if (other == null) { 14769 return; 14770 } 14771 if (other.subMessage_ != null) { 14772 if (subMessage_ == null) { 14773 SubMessage = new global::Google.Protobuf.TestProtos.Proto2.TestAllTypes(); 14774 } 14775 SubMessage.MergeFrom(other.SubMessage); 14776 } 14777 _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); 14778 } 14779 14780 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 14781 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] MergeFrom(pb::CodedInputStream input)14782 public void MergeFrom(pb::CodedInputStream input) { 14783 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 14784 input.ReadRawMessage(this); 14785 #else 14786 uint tag; 14787 while ((tag = input.ReadTag()) != 0) { 14788 if ((tag & 7) == 4) { 14789 // Abort on any end group tag. 14790 return; 14791 } 14792 switch(tag) { 14793 default: 14794 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); 14795 break; 14796 case 10: { 14797 if (subMessage_ == null) { 14798 SubMessage = new global::Google.Protobuf.TestProtos.Proto2.TestAllTypes(); 14799 } 14800 input.ReadMessage(SubMessage); 14801 break; 14802 } 14803 } 14804 } 14805 #endif 14806 } 14807 14808 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 14809 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 14810 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] IBufferMessage.InternalMergeFrom(ref pb::ParseContext input)14811 void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { 14812 uint tag; 14813 while ((tag = input.ReadTag()) != 0) { 14814 if ((tag & 7) == 4) { 14815 // Abort on any end group tag. 14816 return; 14817 } 14818 switch(tag) { 14819 default: 14820 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); 14821 break; 14822 case 10: { 14823 if (subMessage_ == null) { 14824 SubMessage = new global::Google.Protobuf.TestProtos.Proto2.TestAllTypes(); 14825 } 14826 input.ReadMessage(SubMessage); 14827 break; 14828 } 14829 } 14830 } 14831 } 14832 #endif 14833 14834 } 14835 14836 /// <summary> 14837 /// Needed for a Python test. 14838 /// </summary> 14839 [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] 14840 public sealed partial class TestNestedMessageHasBits : pb::IMessage<TestNestedMessageHasBits> 14841 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 14842 , pb::IBufferMessage 14843 #endif 14844 { 14845 private static readonly pb::MessageParser<TestNestedMessageHasBits> _parser = new pb::MessageParser<TestNestedMessageHasBits>(() => new TestNestedMessageHasBits()); 14846 private pb::UnknownFieldSet _unknownFields; 14847 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 14848 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 14849 public static pb::MessageParser<TestNestedMessageHasBits> Parser { get { return _parser; } } 14850 14851 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 14852 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 14853 public static pbr::MessageDescriptor Descriptor { 14854 get { return global::Google.Protobuf.TestProtos.Proto2.UnittestReflection.Descriptor.MessageTypes[27]; } 14855 } 14856 14857 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 14858 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 14859 pbr::MessageDescriptor pb::IMessage.Descriptor { 14860 get { return Descriptor; } 14861 } 14862 14863 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 14864 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] TestNestedMessageHasBits()14865 public TestNestedMessageHasBits() { 14866 OnConstruction(); 14867 } 14868 OnConstruction()14869 partial void OnConstruction(); 14870 14871 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 14872 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] TestNestedMessageHasBits(TestNestedMessageHasBits other)14873 public TestNestedMessageHasBits(TestNestedMessageHasBits other) : this() { 14874 optionalNestedMessage_ = other.optionalNestedMessage_ != null ? other.optionalNestedMessage_.Clone() : null; 14875 _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); 14876 } 14877 14878 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 14879 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] Clone()14880 public TestNestedMessageHasBits Clone() { 14881 return new TestNestedMessageHasBits(this); 14882 } 14883 14884 /// <summary>Field number for the "optional_nested_message" field.</summary> 14885 public const int OptionalNestedMessageFieldNumber = 1; 14886 private global::Google.Protobuf.TestProtos.Proto2.TestNestedMessageHasBits.Types.NestedMessage optionalNestedMessage_; 14887 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 14888 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 14889 public global::Google.Protobuf.TestProtos.Proto2.TestNestedMessageHasBits.Types.NestedMessage OptionalNestedMessage { 14890 get { return optionalNestedMessage_; } 14891 set { 14892 optionalNestedMessage_ = value; 14893 } 14894 } 14895 14896 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 14897 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] Equals(object other)14898 public override bool Equals(object other) { 14899 return Equals(other as TestNestedMessageHasBits); 14900 } 14901 14902 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 14903 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] Equals(TestNestedMessageHasBits other)14904 public bool Equals(TestNestedMessageHasBits other) { 14905 if (ReferenceEquals(other, null)) { 14906 return false; 14907 } 14908 if (ReferenceEquals(other, this)) { 14909 return true; 14910 } 14911 if (!object.Equals(OptionalNestedMessage, other.OptionalNestedMessage)) return false; 14912 return Equals(_unknownFields, other._unknownFields); 14913 } 14914 14915 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 14916 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] GetHashCode()14917 public override int GetHashCode() { 14918 int hash = 1; 14919 if (optionalNestedMessage_ != null) hash ^= OptionalNestedMessage.GetHashCode(); 14920 if (_unknownFields != null) { 14921 hash ^= _unknownFields.GetHashCode(); 14922 } 14923 return hash; 14924 } 14925 14926 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 14927 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] ToString()14928 public override string ToString() { 14929 return pb::JsonFormatter.ToDiagnosticString(this); 14930 } 14931 14932 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 14933 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] WriteTo(pb::CodedOutputStream output)14934 public void WriteTo(pb::CodedOutputStream output) { 14935 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 14936 output.WriteRawMessage(this); 14937 #else 14938 if (optionalNestedMessage_ != null) { 14939 output.WriteRawTag(10); 14940 output.WriteMessage(OptionalNestedMessage); 14941 } 14942 if (_unknownFields != null) { 14943 _unknownFields.WriteTo(output); 14944 } 14945 #endif 14946 } 14947 14948 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 14949 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 14950 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] IBufferMessage.InternalWriteTo(ref pb::WriteContext output)14951 void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { 14952 if (optionalNestedMessage_ != null) { 14953 output.WriteRawTag(10); 14954 output.WriteMessage(OptionalNestedMessage); 14955 } 14956 if (_unknownFields != null) { 14957 _unknownFields.WriteTo(ref output); 14958 } 14959 } 14960 #endif 14961 14962 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 14963 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] CalculateSize()14964 public int CalculateSize() { 14965 int size = 0; 14966 if (optionalNestedMessage_ != null) { 14967 size += 1 + pb::CodedOutputStream.ComputeMessageSize(OptionalNestedMessage); 14968 } 14969 if (_unknownFields != null) { 14970 size += _unknownFields.CalculateSize(); 14971 } 14972 return size; 14973 } 14974 14975 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 14976 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] MergeFrom(TestNestedMessageHasBits other)14977 public void MergeFrom(TestNestedMessageHasBits other) { 14978 if (other == null) { 14979 return; 14980 } 14981 if (other.optionalNestedMessage_ != null) { 14982 if (optionalNestedMessage_ == null) { 14983 OptionalNestedMessage = new global::Google.Protobuf.TestProtos.Proto2.TestNestedMessageHasBits.Types.NestedMessage(); 14984 } 14985 OptionalNestedMessage.MergeFrom(other.OptionalNestedMessage); 14986 } 14987 _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); 14988 } 14989 14990 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 14991 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] MergeFrom(pb::CodedInputStream input)14992 public void MergeFrom(pb::CodedInputStream input) { 14993 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 14994 input.ReadRawMessage(this); 14995 #else 14996 uint tag; 14997 while ((tag = input.ReadTag()) != 0) { 14998 if ((tag & 7) == 4) { 14999 // Abort on any end group tag. 15000 return; 15001 } 15002 switch(tag) { 15003 default: 15004 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); 15005 break; 15006 case 10: { 15007 if (optionalNestedMessage_ == null) { 15008 OptionalNestedMessage = new global::Google.Protobuf.TestProtos.Proto2.TestNestedMessageHasBits.Types.NestedMessage(); 15009 } 15010 input.ReadMessage(OptionalNestedMessage); 15011 break; 15012 } 15013 } 15014 } 15015 #endif 15016 } 15017 15018 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 15019 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 15020 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] IBufferMessage.InternalMergeFrom(ref pb::ParseContext input)15021 void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { 15022 uint tag; 15023 while ((tag = input.ReadTag()) != 0) { 15024 if ((tag & 7) == 4) { 15025 // Abort on any end group tag. 15026 return; 15027 } 15028 switch(tag) { 15029 default: 15030 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); 15031 break; 15032 case 10: { 15033 if (optionalNestedMessage_ == null) { 15034 OptionalNestedMessage = new global::Google.Protobuf.TestProtos.Proto2.TestNestedMessageHasBits.Types.NestedMessage(); 15035 } 15036 input.ReadMessage(OptionalNestedMessage); 15037 break; 15038 } 15039 } 15040 } 15041 } 15042 #endif 15043 15044 #region Nested types 15045 /// <summary>Container for nested types declared in the TestNestedMessageHasBits message type.</summary> 15046 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 15047 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 15048 public static partial class Types { 15049 [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] 15050 public sealed partial class NestedMessage : pb::IMessage<NestedMessage> 15051 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 15052 , pb::IBufferMessage 15053 #endif 15054 { 15055 private static readonly pb::MessageParser<NestedMessage> _parser = new pb::MessageParser<NestedMessage>(() => new NestedMessage()); 15056 private pb::UnknownFieldSet _unknownFields; 15057 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 15058 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 15059 public static pb::MessageParser<NestedMessage> Parser { get { return _parser; } } 15060 15061 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 15062 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 15063 public static pbr::MessageDescriptor Descriptor { 15064 get { return global::Google.Protobuf.TestProtos.Proto2.TestNestedMessageHasBits.Descriptor.NestedTypes[0]; } 15065 } 15066 15067 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 15068 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 15069 pbr::MessageDescriptor pb::IMessage.Descriptor { 15070 get { return Descriptor; } 15071 } 15072 15073 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 15074 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] NestedMessage()15075 public NestedMessage() { 15076 OnConstruction(); 15077 } 15078 OnConstruction()15079 partial void OnConstruction(); 15080 15081 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 15082 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] NestedMessage(NestedMessage other)15083 public NestedMessage(NestedMessage other) : this() { 15084 nestedmessageRepeatedInt32_ = other.nestedmessageRepeatedInt32_.Clone(); 15085 nestedmessageRepeatedForeignmessage_ = other.nestedmessageRepeatedForeignmessage_.Clone(); 15086 _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); 15087 } 15088 15089 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 15090 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] Clone()15091 public NestedMessage Clone() { 15092 return new NestedMessage(this); 15093 } 15094 15095 /// <summary>Field number for the "nestedmessage_repeated_int32" field.</summary> 15096 public const int NestedmessageRepeatedInt32FieldNumber = 1; 15097 private static readonly pb::FieldCodec<int> _repeated_nestedmessageRepeatedInt32_codec 15098 = pb::FieldCodec.ForInt32(8); 15099 private readonly pbc::RepeatedField<int> nestedmessageRepeatedInt32_ = new pbc::RepeatedField<int>(); 15100 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 15101 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 15102 public pbc::RepeatedField<int> NestedmessageRepeatedInt32 { 15103 get { return nestedmessageRepeatedInt32_; } 15104 } 15105 15106 /// <summary>Field number for the "nestedmessage_repeated_foreignmessage" field.</summary> 15107 public const int NestedmessageRepeatedForeignmessageFieldNumber = 2; 15108 private static readonly pb::FieldCodec<global::Google.Protobuf.TestProtos.Proto2.ForeignMessage> _repeated_nestedmessageRepeatedForeignmessage_codec 15109 = pb::FieldCodec.ForMessage(18, global::Google.Protobuf.TestProtos.Proto2.ForeignMessage.Parser); 15110 private readonly pbc::RepeatedField<global::Google.Protobuf.TestProtos.Proto2.ForeignMessage> nestedmessageRepeatedForeignmessage_ = new pbc::RepeatedField<global::Google.Protobuf.TestProtos.Proto2.ForeignMessage>(); 15111 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 15112 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 15113 public pbc::RepeatedField<global::Google.Protobuf.TestProtos.Proto2.ForeignMessage> NestedmessageRepeatedForeignmessage { 15114 get { return nestedmessageRepeatedForeignmessage_; } 15115 } 15116 15117 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 15118 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] Equals(object other)15119 public override bool Equals(object other) { 15120 return Equals(other as NestedMessage); 15121 } 15122 15123 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 15124 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] Equals(NestedMessage other)15125 public bool Equals(NestedMessage other) { 15126 if (ReferenceEquals(other, null)) { 15127 return false; 15128 } 15129 if (ReferenceEquals(other, this)) { 15130 return true; 15131 } 15132 if(!nestedmessageRepeatedInt32_.Equals(other.nestedmessageRepeatedInt32_)) return false; 15133 if(!nestedmessageRepeatedForeignmessage_.Equals(other.nestedmessageRepeatedForeignmessage_)) return false; 15134 return Equals(_unknownFields, other._unknownFields); 15135 } 15136 15137 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 15138 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] GetHashCode()15139 public override int GetHashCode() { 15140 int hash = 1; 15141 hash ^= nestedmessageRepeatedInt32_.GetHashCode(); 15142 hash ^= nestedmessageRepeatedForeignmessage_.GetHashCode(); 15143 if (_unknownFields != null) { 15144 hash ^= _unknownFields.GetHashCode(); 15145 } 15146 return hash; 15147 } 15148 15149 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 15150 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] ToString()15151 public override string ToString() { 15152 return pb::JsonFormatter.ToDiagnosticString(this); 15153 } 15154 15155 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 15156 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] WriteTo(pb::CodedOutputStream output)15157 public void WriteTo(pb::CodedOutputStream output) { 15158 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 15159 output.WriteRawMessage(this); 15160 #else 15161 nestedmessageRepeatedInt32_.WriteTo(output, _repeated_nestedmessageRepeatedInt32_codec); 15162 nestedmessageRepeatedForeignmessage_.WriteTo(output, _repeated_nestedmessageRepeatedForeignmessage_codec); 15163 if (_unknownFields != null) { 15164 _unknownFields.WriteTo(output); 15165 } 15166 #endif 15167 } 15168 15169 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 15170 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 15171 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] IBufferMessage.InternalWriteTo(ref pb::WriteContext output)15172 void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { 15173 nestedmessageRepeatedInt32_.WriteTo(ref output, _repeated_nestedmessageRepeatedInt32_codec); 15174 nestedmessageRepeatedForeignmessage_.WriteTo(ref output, _repeated_nestedmessageRepeatedForeignmessage_codec); 15175 if (_unknownFields != null) { 15176 _unknownFields.WriteTo(ref output); 15177 } 15178 } 15179 #endif 15180 15181 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 15182 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] CalculateSize()15183 public int CalculateSize() { 15184 int size = 0; 15185 size += nestedmessageRepeatedInt32_.CalculateSize(_repeated_nestedmessageRepeatedInt32_codec); 15186 size += nestedmessageRepeatedForeignmessage_.CalculateSize(_repeated_nestedmessageRepeatedForeignmessage_codec); 15187 if (_unknownFields != null) { 15188 size += _unknownFields.CalculateSize(); 15189 } 15190 return size; 15191 } 15192 15193 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 15194 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] MergeFrom(NestedMessage other)15195 public void MergeFrom(NestedMessage other) { 15196 if (other == null) { 15197 return; 15198 } 15199 nestedmessageRepeatedInt32_.Add(other.nestedmessageRepeatedInt32_); 15200 nestedmessageRepeatedForeignmessage_.Add(other.nestedmessageRepeatedForeignmessage_); 15201 _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); 15202 } 15203 15204 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 15205 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] MergeFrom(pb::CodedInputStream input)15206 public void MergeFrom(pb::CodedInputStream input) { 15207 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 15208 input.ReadRawMessage(this); 15209 #else 15210 uint tag; 15211 while ((tag = input.ReadTag()) != 0) { 15212 if ((tag & 7) == 4) { 15213 // Abort on any end group tag. 15214 return; 15215 } 15216 switch(tag) { 15217 default: 15218 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); 15219 break; 15220 case 10: 15221 case 8: { 15222 nestedmessageRepeatedInt32_.AddEntriesFrom(input, _repeated_nestedmessageRepeatedInt32_codec); 15223 break; 15224 } 15225 case 18: { 15226 nestedmessageRepeatedForeignmessage_.AddEntriesFrom(input, _repeated_nestedmessageRepeatedForeignmessage_codec); 15227 break; 15228 } 15229 } 15230 } 15231 #endif 15232 } 15233 15234 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 15235 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 15236 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] IBufferMessage.InternalMergeFrom(ref pb::ParseContext input)15237 void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { 15238 uint tag; 15239 while ((tag = input.ReadTag()) != 0) { 15240 if ((tag & 7) == 4) { 15241 // Abort on any end group tag. 15242 return; 15243 } 15244 switch(tag) { 15245 default: 15246 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); 15247 break; 15248 case 10: 15249 case 8: { 15250 nestedmessageRepeatedInt32_.AddEntriesFrom(ref input, _repeated_nestedmessageRepeatedInt32_codec); 15251 break; 15252 } 15253 case 18: { 15254 nestedmessageRepeatedForeignmessage_.AddEntriesFrom(ref input, _repeated_nestedmessageRepeatedForeignmessage_codec); 15255 break; 15256 } 15257 } 15258 } 15259 } 15260 #endif 15261 15262 } 15263 15264 } 15265 #endregion 15266 15267 } 15268 15269 /// <summary> 15270 /// Test message with CamelCase field names. This violates Protocol Buffer 15271 /// standard style. 15272 /// </summary> 15273 [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] 15274 public sealed partial class TestCamelCaseFieldNames : pb::IMessage<TestCamelCaseFieldNames> 15275 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 15276 , pb::IBufferMessage 15277 #endif 15278 { 15279 private static readonly pb::MessageParser<TestCamelCaseFieldNames> _parser = new pb::MessageParser<TestCamelCaseFieldNames>(() => new TestCamelCaseFieldNames()); 15280 private pb::UnknownFieldSet _unknownFields; 15281 private int _hasBits0; 15282 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 15283 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 15284 public static pb::MessageParser<TestCamelCaseFieldNames> Parser { get { return _parser; } } 15285 15286 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 15287 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 15288 public static pbr::MessageDescriptor Descriptor { 15289 get { return global::Google.Protobuf.TestProtos.Proto2.UnittestReflection.Descriptor.MessageTypes[28]; } 15290 } 15291 15292 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 15293 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 15294 pbr::MessageDescriptor pb::IMessage.Descriptor { 15295 get { return Descriptor; } 15296 } 15297 15298 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 15299 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] TestCamelCaseFieldNames()15300 public TestCamelCaseFieldNames() { 15301 OnConstruction(); 15302 } 15303 OnConstruction()15304 partial void OnConstruction(); 15305 15306 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 15307 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] TestCamelCaseFieldNames(TestCamelCaseFieldNames other)15308 public TestCamelCaseFieldNames(TestCamelCaseFieldNames other) : this() { 15309 _hasBits0 = other._hasBits0; 15310 primitiveField_ = other.primitiveField_; 15311 stringField_ = other.stringField_; 15312 enumField_ = other.enumField_; 15313 messageField_ = other.messageField_ != null ? other.messageField_.Clone() : null; 15314 stringPieceField_ = other.stringPieceField_; 15315 cordField_ = other.cordField_; 15316 repeatedPrimitiveField_ = other.repeatedPrimitiveField_.Clone(); 15317 repeatedStringField_ = other.repeatedStringField_.Clone(); 15318 repeatedEnumField_ = other.repeatedEnumField_.Clone(); 15319 repeatedMessageField_ = other.repeatedMessageField_.Clone(); 15320 repeatedStringPieceField_ = other.repeatedStringPieceField_.Clone(); 15321 repeatedCordField_ = other.repeatedCordField_.Clone(); 15322 _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); 15323 } 15324 15325 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 15326 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] Clone()15327 public TestCamelCaseFieldNames Clone() { 15328 return new TestCamelCaseFieldNames(this); 15329 } 15330 15331 /// <summary>Field number for the "PrimitiveField" field.</summary> 15332 public const int PrimitiveFieldFieldNumber = 1; 15333 private readonly static int PrimitiveFieldDefaultValue = 0; 15334 15335 private int primitiveField_; 15336 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 15337 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 15338 public int PrimitiveField { 15339 get { if ((_hasBits0 & 1) != 0) { return primitiveField_; } else { return PrimitiveFieldDefaultValue; } } 15340 set { 15341 _hasBits0 |= 1; 15342 primitiveField_ = value; 15343 } 15344 } 15345 /// <summary>Gets whether the "PrimitiveField" field is set</summary> 15346 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 15347 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 15348 public bool HasPrimitiveField { 15349 get { return (_hasBits0 & 1) != 0; } 15350 } 15351 /// <summary>Clears the value of the "PrimitiveField" field</summary> 15352 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 15353 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] ClearPrimitiveField()15354 public void ClearPrimitiveField() { 15355 _hasBits0 &= ~1; 15356 } 15357 15358 /// <summary>Field number for the "StringField" field.</summary> 15359 public const int StringFieldFieldNumber = 2; 15360 private readonly static string StringFieldDefaultValue = ""; 15361 15362 private string stringField_; 15363 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 15364 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 15365 public string StringField { 15366 get { return stringField_ ?? StringFieldDefaultValue; } 15367 set { 15368 stringField_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); 15369 } 15370 } 15371 /// <summary>Gets whether the "StringField" field is set</summary> 15372 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 15373 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 15374 public bool HasStringField { 15375 get { return stringField_ != null; } 15376 } 15377 /// <summary>Clears the value of the "StringField" field</summary> 15378 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 15379 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] ClearStringField()15380 public void ClearStringField() { 15381 stringField_ = null; 15382 } 15383 15384 /// <summary>Field number for the "EnumField" field.</summary> 15385 public const int EnumFieldFieldNumber = 3; 15386 private readonly static global::Google.Protobuf.TestProtos.Proto2.ForeignEnum EnumFieldDefaultValue = global::Google.Protobuf.TestProtos.Proto2.ForeignEnum.ForeignFoo; 15387 15388 private global::Google.Protobuf.TestProtos.Proto2.ForeignEnum enumField_; 15389 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 15390 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 15391 public global::Google.Protobuf.TestProtos.Proto2.ForeignEnum EnumField { 15392 get { if ((_hasBits0 & 2) != 0) { return enumField_; } else { return EnumFieldDefaultValue; } } 15393 set { 15394 _hasBits0 |= 2; 15395 enumField_ = value; 15396 } 15397 } 15398 /// <summary>Gets whether the "EnumField" field is set</summary> 15399 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 15400 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 15401 public bool HasEnumField { 15402 get { return (_hasBits0 & 2) != 0; } 15403 } 15404 /// <summary>Clears the value of the "EnumField" field</summary> 15405 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 15406 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] ClearEnumField()15407 public void ClearEnumField() { 15408 _hasBits0 &= ~2; 15409 } 15410 15411 /// <summary>Field number for the "MessageField" field.</summary> 15412 public const int MessageFieldFieldNumber = 4; 15413 private global::Google.Protobuf.TestProtos.Proto2.ForeignMessage messageField_; 15414 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 15415 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 15416 public global::Google.Protobuf.TestProtos.Proto2.ForeignMessage MessageField { 15417 get { return messageField_; } 15418 set { 15419 messageField_ = value; 15420 } 15421 } 15422 15423 /// <summary>Field number for the "StringPieceField" field.</summary> 15424 public const int StringPieceFieldFieldNumber = 5; 15425 private readonly static string StringPieceFieldDefaultValue = ""; 15426 15427 private string stringPieceField_; 15428 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 15429 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 15430 public string StringPieceField { 15431 get { return stringPieceField_ ?? StringPieceFieldDefaultValue; } 15432 set { 15433 stringPieceField_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); 15434 } 15435 } 15436 /// <summary>Gets whether the "StringPieceField" field is set</summary> 15437 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 15438 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 15439 public bool HasStringPieceField { 15440 get { return stringPieceField_ != null; } 15441 } 15442 /// <summary>Clears the value of the "StringPieceField" field</summary> 15443 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 15444 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] ClearStringPieceField()15445 public void ClearStringPieceField() { 15446 stringPieceField_ = null; 15447 } 15448 15449 /// <summary>Field number for the "CordField" field.</summary> 15450 public const int CordFieldFieldNumber = 6; 15451 private readonly static string CordFieldDefaultValue = ""; 15452 15453 private string cordField_; 15454 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 15455 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 15456 public string CordField { 15457 get { return cordField_ ?? CordFieldDefaultValue; } 15458 set { 15459 cordField_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); 15460 } 15461 } 15462 /// <summary>Gets whether the "CordField" field is set</summary> 15463 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 15464 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 15465 public bool HasCordField { 15466 get { return cordField_ != null; } 15467 } 15468 /// <summary>Clears the value of the "CordField" field</summary> 15469 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 15470 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] ClearCordField()15471 public void ClearCordField() { 15472 cordField_ = null; 15473 } 15474 15475 /// <summary>Field number for the "RepeatedPrimitiveField" field.</summary> 15476 public const int RepeatedPrimitiveFieldFieldNumber = 7; 15477 private static readonly pb::FieldCodec<int> _repeated_repeatedPrimitiveField_codec 15478 = pb::FieldCodec.ForInt32(56); 15479 private readonly pbc::RepeatedField<int> repeatedPrimitiveField_ = new pbc::RepeatedField<int>(); 15480 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 15481 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 15482 public pbc::RepeatedField<int> RepeatedPrimitiveField { 15483 get { return repeatedPrimitiveField_; } 15484 } 15485 15486 /// <summary>Field number for the "RepeatedStringField" field.</summary> 15487 public const int RepeatedStringFieldFieldNumber = 8; 15488 private static readonly pb::FieldCodec<string> _repeated_repeatedStringField_codec 15489 = pb::FieldCodec.ForString(66); 15490 private readonly pbc::RepeatedField<string> repeatedStringField_ = new pbc::RepeatedField<string>(); 15491 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 15492 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 15493 public pbc::RepeatedField<string> RepeatedStringField { 15494 get { return repeatedStringField_; } 15495 } 15496 15497 /// <summary>Field number for the "RepeatedEnumField" field.</summary> 15498 public const int RepeatedEnumFieldFieldNumber = 9; 15499 private static readonly pb::FieldCodec<global::Google.Protobuf.TestProtos.Proto2.ForeignEnum> _repeated_repeatedEnumField_codec 15500 = pb::FieldCodec.ForEnum(72, x => (int) x, x => (global::Google.Protobuf.TestProtos.Proto2.ForeignEnum) x); 15501 private readonly pbc::RepeatedField<global::Google.Protobuf.TestProtos.Proto2.ForeignEnum> repeatedEnumField_ = new pbc::RepeatedField<global::Google.Protobuf.TestProtos.Proto2.ForeignEnum>(); 15502 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 15503 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 15504 public pbc::RepeatedField<global::Google.Protobuf.TestProtos.Proto2.ForeignEnum> RepeatedEnumField { 15505 get { return repeatedEnumField_; } 15506 } 15507 15508 /// <summary>Field number for the "RepeatedMessageField" field.</summary> 15509 public const int RepeatedMessageFieldFieldNumber = 10; 15510 private static readonly pb::FieldCodec<global::Google.Protobuf.TestProtos.Proto2.ForeignMessage> _repeated_repeatedMessageField_codec 15511 = pb::FieldCodec.ForMessage(82, global::Google.Protobuf.TestProtos.Proto2.ForeignMessage.Parser); 15512 private readonly pbc::RepeatedField<global::Google.Protobuf.TestProtos.Proto2.ForeignMessage> repeatedMessageField_ = new pbc::RepeatedField<global::Google.Protobuf.TestProtos.Proto2.ForeignMessage>(); 15513 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 15514 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 15515 public pbc::RepeatedField<global::Google.Protobuf.TestProtos.Proto2.ForeignMessage> RepeatedMessageField { 15516 get { return repeatedMessageField_; } 15517 } 15518 15519 /// <summary>Field number for the "RepeatedStringPieceField" field.</summary> 15520 public const int RepeatedStringPieceFieldFieldNumber = 11; 15521 private static readonly pb::FieldCodec<string> _repeated_repeatedStringPieceField_codec 15522 = pb::FieldCodec.ForString(90); 15523 private readonly pbc::RepeatedField<string> repeatedStringPieceField_ = new pbc::RepeatedField<string>(); 15524 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 15525 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 15526 public pbc::RepeatedField<string> RepeatedStringPieceField { 15527 get { return repeatedStringPieceField_; } 15528 } 15529 15530 /// <summary>Field number for the "RepeatedCordField" field.</summary> 15531 public const int RepeatedCordFieldFieldNumber = 12; 15532 private static readonly pb::FieldCodec<string> _repeated_repeatedCordField_codec 15533 = pb::FieldCodec.ForString(98); 15534 private readonly pbc::RepeatedField<string> repeatedCordField_ = new pbc::RepeatedField<string>(); 15535 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 15536 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 15537 public pbc::RepeatedField<string> RepeatedCordField { 15538 get { return repeatedCordField_; } 15539 } 15540 15541 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 15542 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] Equals(object other)15543 public override bool Equals(object other) { 15544 return Equals(other as TestCamelCaseFieldNames); 15545 } 15546 15547 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 15548 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] Equals(TestCamelCaseFieldNames other)15549 public bool Equals(TestCamelCaseFieldNames other) { 15550 if (ReferenceEquals(other, null)) { 15551 return false; 15552 } 15553 if (ReferenceEquals(other, this)) { 15554 return true; 15555 } 15556 if (PrimitiveField != other.PrimitiveField) return false; 15557 if (StringField != other.StringField) return false; 15558 if (EnumField != other.EnumField) return false; 15559 if (!object.Equals(MessageField, other.MessageField)) return false; 15560 if (StringPieceField != other.StringPieceField) return false; 15561 if (CordField != other.CordField) return false; 15562 if(!repeatedPrimitiveField_.Equals(other.repeatedPrimitiveField_)) return false; 15563 if(!repeatedStringField_.Equals(other.repeatedStringField_)) return false; 15564 if(!repeatedEnumField_.Equals(other.repeatedEnumField_)) return false; 15565 if(!repeatedMessageField_.Equals(other.repeatedMessageField_)) return false; 15566 if(!repeatedStringPieceField_.Equals(other.repeatedStringPieceField_)) return false; 15567 if(!repeatedCordField_.Equals(other.repeatedCordField_)) return false; 15568 return Equals(_unknownFields, other._unknownFields); 15569 } 15570 15571 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 15572 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] GetHashCode()15573 public override int GetHashCode() { 15574 int hash = 1; 15575 if (HasPrimitiveField) hash ^= PrimitiveField.GetHashCode(); 15576 if (HasStringField) hash ^= StringField.GetHashCode(); 15577 if (HasEnumField) hash ^= EnumField.GetHashCode(); 15578 if (messageField_ != null) hash ^= MessageField.GetHashCode(); 15579 if (HasStringPieceField) hash ^= StringPieceField.GetHashCode(); 15580 if (HasCordField) hash ^= CordField.GetHashCode(); 15581 hash ^= repeatedPrimitiveField_.GetHashCode(); 15582 hash ^= repeatedStringField_.GetHashCode(); 15583 hash ^= repeatedEnumField_.GetHashCode(); 15584 hash ^= repeatedMessageField_.GetHashCode(); 15585 hash ^= repeatedStringPieceField_.GetHashCode(); 15586 hash ^= repeatedCordField_.GetHashCode(); 15587 if (_unknownFields != null) { 15588 hash ^= _unknownFields.GetHashCode(); 15589 } 15590 return hash; 15591 } 15592 15593 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 15594 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] ToString()15595 public override string ToString() { 15596 return pb::JsonFormatter.ToDiagnosticString(this); 15597 } 15598 15599 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 15600 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] WriteTo(pb::CodedOutputStream output)15601 public void WriteTo(pb::CodedOutputStream output) { 15602 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 15603 output.WriteRawMessage(this); 15604 #else 15605 if (HasPrimitiveField) { 15606 output.WriteRawTag(8); 15607 output.WriteInt32(PrimitiveField); 15608 } 15609 if (HasStringField) { 15610 output.WriteRawTag(18); 15611 output.WriteString(StringField); 15612 } 15613 if (HasEnumField) { 15614 output.WriteRawTag(24); 15615 output.WriteEnum((int) EnumField); 15616 } 15617 if (messageField_ != null) { 15618 output.WriteRawTag(34); 15619 output.WriteMessage(MessageField); 15620 } 15621 if (HasStringPieceField) { 15622 output.WriteRawTag(42); 15623 output.WriteString(StringPieceField); 15624 } 15625 if (HasCordField) { 15626 output.WriteRawTag(50); 15627 output.WriteString(CordField); 15628 } 15629 repeatedPrimitiveField_.WriteTo(output, _repeated_repeatedPrimitiveField_codec); 15630 repeatedStringField_.WriteTo(output, _repeated_repeatedStringField_codec); 15631 repeatedEnumField_.WriteTo(output, _repeated_repeatedEnumField_codec); 15632 repeatedMessageField_.WriteTo(output, _repeated_repeatedMessageField_codec); 15633 repeatedStringPieceField_.WriteTo(output, _repeated_repeatedStringPieceField_codec); 15634 repeatedCordField_.WriteTo(output, _repeated_repeatedCordField_codec); 15635 if (_unknownFields != null) { 15636 _unknownFields.WriteTo(output); 15637 } 15638 #endif 15639 } 15640 15641 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 15642 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 15643 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] IBufferMessage.InternalWriteTo(ref pb::WriteContext output)15644 void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { 15645 if (HasPrimitiveField) { 15646 output.WriteRawTag(8); 15647 output.WriteInt32(PrimitiveField); 15648 } 15649 if (HasStringField) { 15650 output.WriteRawTag(18); 15651 output.WriteString(StringField); 15652 } 15653 if (HasEnumField) { 15654 output.WriteRawTag(24); 15655 output.WriteEnum((int) EnumField); 15656 } 15657 if (messageField_ != null) { 15658 output.WriteRawTag(34); 15659 output.WriteMessage(MessageField); 15660 } 15661 if (HasStringPieceField) { 15662 output.WriteRawTag(42); 15663 output.WriteString(StringPieceField); 15664 } 15665 if (HasCordField) { 15666 output.WriteRawTag(50); 15667 output.WriteString(CordField); 15668 } 15669 repeatedPrimitiveField_.WriteTo(ref output, _repeated_repeatedPrimitiveField_codec); 15670 repeatedStringField_.WriteTo(ref output, _repeated_repeatedStringField_codec); 15671 repeatedEnumField_.WriteTo(ref output, _repeated_repeatedEnumField_codec); 15672 repeatedMessageField_.WriteTo(ref output, _repeated_repeatedMessageField_codec); 15673 repeatedStringPieceField_.WriteTo(ref output, _repeated_repeatedStringPieceField_codec); 15674 repeatedCordField_.WriteTo(ref output, _repeated_repeatedCordField_codec); 15675 if (_unknownFields != null) { 15676 _unknownFields.WriteTo(ref output); 15677 } 15678 } 15679 #endif 15680 15681 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 15682 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] CalculateSize()15683 public int CalculateSize() { 15684 int size = 0; 15685 if (HasPrimitiveField) { 15686 size += 1 + pb::CodedOutputStream.ComputeInt32Size(PrimitiveField); 15687 } 15688 if (HasStringField) { 15689 size += 1 + pb::CodedOutputStream.ComputeStringSize(StringField); 15690 } 15691 if (HasEnumField) { 15692 size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) EnumField); 15693 } 15694 if (messageField_ != null) { 15695 size += 1 + pb::CodedOutputStream.ComputeMessageSize(MessageField); 15696 } 15697 if (HasStringPieceField) { 15698 size += 1 + pb::CodedOutputStream.ComputeStringSize(StringPieceField); 15699 } 15700 if (HasCordField) { 15701 size += 1 + pb::CodedOutputStream.ComputeStringSize(CordField); 15702 } 15703 size += repeatedPrimitiveField_.CalculateSize(_repeated_repeatedPrimitiveField_codec); 15704 size += repeatedStringField_.CalculateSize(_repeated_repeatedStringField_codec); 15705 size += repeatedEnumField_.CalculateSize(_repeated_repeatedEnumField_codec); 15706 size += repeatedMessageField_.CalculateSize(_repeated_repeatedMessageField_codec); 15707 size += repeatedStringPieceField_.CalculateSize(_repeated_repeatedStringPieceField_codec); 15708 size += repeatedCordField_.CalculateSize(_repeated_repeatedCordField_codec); 15709 if (_unknownFields != null) { 15710 size += _unknownFields.CalculateSize(); 15711 } 15712 return size; 15713 } 15714 15715 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 15716 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] MergeFrom(TestCamelCaseFieldNames other)15717 public void MergeFrom(TestCamelCaseFieldNames other) { 15718 if (other == null) { 15719 return; 15720 } 15721 if (other.HasPrimitiveField) { 15722 PrimitiveField = other.PrimitiveField; 15723 } 15724 if (other.HasStringField) { 15725 StringField = other.StringField; 15726 } 15727 if (other.HasEnumField) { 15728 EnumField = other.EnumField; 15729 } 15730 if (other.messageField_ != null) { 15731 if (messageField_ == null) { 15732 MessageField = new global::Google.Protobuf.TestProtos.Proto2.ForeignMessage(); 15733 } 15734 MessageField.MergeFrom(other.MessageField); 15735 } 15736 if (other.HasStringPieceField) { 15737 StringPieceField = other.StringPieceField; 15738 } 15739 if (other.HasCordField) { 15740 CordField = other.CordField; 15741 } 15742 repeatedPrimitiveField_.Add(other.repeatedPrimitiveField_); 15743 repeatedStringField_.Add(other.repeatedStringField_); 15744 repeatedEnumField_.Add(other.repeatedEnumField_); 15745 repeatedMessageField_.Add(other.repeatedMessageField_); 15746 repeatedStringPieceField_.Add(other.repeatedStringPieceField_); 15747 repeatedCordField_.Add(other.repeatedCordField_); 15748 _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); 15749 } 15750 15751 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 15752 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] MergeFrom(pb::CodedInputStream input)15753 public void MergeFrom(pb::CodedInputStream input) { 15754 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 15755 input.ReadRawMessage(this); 15756 #else 15757 uint tag; 15758 while ((tag = input.ReadTag()) != 0) { 15759 if ((tag & 7) == 4) { 15760 // Abort on any end group tag. 15761 return; 15762 } 15763 switch(tag) { 15764 default: 15765 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); 15766 break; 15767 case 8: { 15768 PrimitiveField = input.ReadInt32(); 15769 break; 15770 } 15771 case 18: { 15772 StringField = input.ReadString(); 15773 break; 15774 } 15775 case 24: { 15776 EnumField = (global::Google.Protobuf.TestProtos.Proto2.ForeignEnum) input.ReadEnum(); 15777 break; 15778 } 15779 case 34: { 15780 if (messageField_ == null) { 15781 MessageField = new global::Google.Protobuf.TestProtos.Proto2.ForeignMessage(); 15782 } 15783 input.ReadMessage(MessageField); 15784 break; 15785 } 15786 case 42: { 15787 StringPieceField = input.ReadString(); 15788 break; 15789 } 15790 case 50: { 15791 CordField = input.ReadString(); 15792 break; 15793 } 15794 case 58: 15795 case 56: { 15796 repeatedPrimitiveField_.AddEntriesFrom(input, _repeated_repeatedPrimitiveField_codec); 15797 break; 15798 } 15799 case 66: { 15800 repeatedStringField_.AddEntriesFrom(input, _repeated_repeatedStringField_codec); 15801 break; 15802 } 15803 case 74: 15804 case 72: { 15805 repeatedEnumField_.AddEntriesFrom(input, _repeated_repeatedEnumField_codec); 15806 break; 15807 } 15808 case 82: { 15809 repeatedMessageField_.AddEntriesFrom(input, _repeated_repeatedMessageField_codec); 15810 break; 15811 } 15812 case 90: { 15813 repeatedStringPieceField_.AddEntriesFrom(input, _repeated_repeatedStringPieceField_codec); 15814 break; 15815 } 15816 case 98: { 15817 repeatedCordField_.AddEntriesFrom(input, _repeated_repeatedCordField_codec); 15818 break; 15819 } 15820 } 15821 } 15822 #endif 15823 } 15824 15825 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 15826 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 15827 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] IBufferMessage.InternalMergeFrom(ref pb::ParseContext input)15828 void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { 15829 uint tag; 15830 while ((tag = input.ReadTag()) != 0) { 15831 if ((tag & 7) == 4) { 15832 // Abort on any end group tag. 15833 return; 15834 } 15835 switch(tag) { 15836 default: 15837 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); 15838 break; 15839 case 8: { 15840 PrimitiveField = input.ReadInt32(); 15841 break; 15842 } 15843 case 18: { 15844 StringField = input.ReadString(); 15845 break; 15846 } 15847 case 24: { 15848 EnumField = (global::Google.Protobuf.TestProtos.Proto2.ForeignEnum) input.ReadEnum(); 15849 break; 15850 } 15851 case 34: { 15852 if (messageField_ == null) { 15853 MessageField = new global::Google.Protobuf.TestProtos.Proto2.ForeignMessage(); 15854 } 15855 input.ReadMessage(MessageField); 15856 break; 15857 } 15858 case 42: { 15859 StringPieceField = input.ReadString(); 15860 break; 15861 } 15862 case 50: { 15863 CordField = input.ReadString(); 15864 break; 15865 } 15866 case 58: 15867 case 56: { 15868 repeatedPrimitiveField_.AddEntriesFrom(ref input, _repeated_repeatedPrimitiveField_codec); 15869 break; 15870 } 15871 case 66: { 15872 repeatedStringField_.AddEntriesFrom(ref input, _repeated_repeatedStringField_codec); 15873 break; 15874 } 15875 case 74: 15876 case 72: { 15877 repeatedEnumField_.AddEntriesFrom(ref input, _repeated_repeatedEnumField_codec); 15878 break; 15879 } 15880 case 82: { 15881 repeatedMessageField_.AddEntriesFrom(ref input, _repeated_repeatedMessageField_codec); 15882 break; 15883 } 15884 case 90: { 15885 repeatedStringPieceField_.AddEntriesFrom(ref input, _repeated_repeatedStringPieceField_codec); 15886 break; 15887 } 15888 case 98: { 15889 repeatedCordField_.AddEntriesFrom(ref input, _repeated_repeatedCordField_codec); 15890 break; 15891 } 15892 } 15893 } 15894 } 15895 #endif 15896 15897 } 15898 15899 /// <summary> 15900 /// We list fields out of order, to ensure that we're using field number and not 15901 /// field index to determine serialization order. 15902 /// </summary> 15903 [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] 15904 public sealed partial class TestFieldOrderings : pb::IExtendableMessage<TestFieldOrderings> 15905 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 15906 , pb::IBufferMessage 15907 #endif 15908 { 15909 private static readonly pb::MessageParser<TestFieldOrderings> _parser = new pb::MessageParser<TestFieldOrderings>(() => new TestFieldOrderings()); 15910 private pb::UnknownFieldSet _unknownFields; 15911 private pb::ExtensionSet<TestFieldOrderings> _extensions; 15912 private pb::ExtensionSet<TestFieldOrderings> _Extensions { get { return _extensions; } } 15913 private int _hasBits0; 15914 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 15915 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 15916 public static pb::MessageParser<TestFieldOrderings> Parser { get { return _parser; } } 15917 15918 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 15919 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 15920 public static pbr::MessageDescriptor Descriptor { 15921 get { return global::Google.Protobuf.TestProtos.Proto2.UnittestReflection.Descriptor.MessageTypes[29]; } 15922 } 15923 15924 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 15925 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 15926 pbr::MessageDescriptor pb::IMessage.Descriptor { 15927 get { return Descriptor; } 15928 } 15929 15930 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 15931 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] TestFieldOrderings()15932 public TestFieldOrderings() { 15933 OnConstruction(); 15934 } 15935 OnConstruction()15936 partial void OnConstruction(); 15937 15938 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 15939 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] TestFieldOrderings(TestFieldOrderings other)15940 public TestFieldOrderings(TestFieldOrderings other) : this() { 15941 _hasBits0 = other._hasBits0; 15942 myString_ = other.myString_; 15943 myInt_ = other.myInt_; 15944 myFloat_ = other.myFloat_; 15945 optionalNestedMessage_ = other.optionalNestedMessage_ != null ? other.optionalNestedMessage_.Clone() : null; 15946 _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); 15947 _extensions = pb::ExtensionSet.Clone(other._extensions); 15948 } 15949 15950 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 15951 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] Clone()15952 public TestFieldOrderings Clone() { 15953 return new TestFieldOrderings(this); 15954 } 15955 15956 /// <summary>Field number for the "my_string" field.</summary> 15957 public const int MyStringFieldNumber = 11; 15958 private readonly static string MyStringDefaultValue = ""; 15959 15960 private string myString_; 15961 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 15962 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 15963 public string MyString { 15964 get { return myString_ ?? MyStringDefaultValue; } 15965 set { 15966 myString_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); 15967 } 15968 } 15969 /// <summary>Gets whether the "my_string" field is set</summary> 15970 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 15971 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 15972 public bool HasMyString { 15973 get { return myString_ != null; } 15974 } 15975 /// <summary>Clears the value of the "my_string" field</summary> 15976 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 15977 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] ClearMyString()15978 public void ClearMyString() { 15979 myString_ = null; 15980 } 15981 15982 /// <summary>Field number for the "my_int" field.</summary> 15983 public const int MyIntFieldNumber = 1; 15984 private readonly static long MyIntDefaultValue = 0L; 15985 15986 private long myInt_; 15987 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 15988 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 15989 public long MyInt { 15990 get { if ((_hasBits0 & 1) != 0) { return myInt_; } else { return MyIntDefaultValue; } } 15991 set { 15992 _hasBits0 |= 1; 15993 myInt_ = value; 15994 } 15995 } 15996 /// <summary>Gets whether the "my_int" field is set</summary> 15997 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 15998 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 15999 public bool HasMyInt { 16000 get { return (_hasBits0 & 1) != 0; } 16001 } 16002 /// <summary>Clears the value of the "my_int" field</summary> 16003 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 16004 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] ClearMyInt()16005 public void ClearMyInt() { 16006 _hasBits0 &= ~1; 16007 } 16008 16009 /// <summary>Field number for the "my_float" field.</summary> 16010 public const int MyFloatFieldNumber = 101; 16011 private readonly static float MyFloatDefaultValue = 0F; 16012 16013 private float myFloat_; 16014 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 16015 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 16016 public float MyFloat { 16017 get { if ((_hasBits0 & 2) != 0) { return myFloat_; } else { return MyFloatDefaultValue; } } 16018 set { 16019 _hasBits0 |= 2; 16020 myFloat_ = value; 16021 } 16022 } 16023 /// <summary>Gets whether the "my_float" field is set</summary> 16024 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 16025 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 16026 public bool HasMyFloat { 16027 get { return (_hasBits0 & 2) != 0; } 16028 } 16029 /// <summary>Clears the value of the "my_float" field</summary> 16030 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 16031 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] ClearMyFloat()16032 public void ClearMyFloat() { 16033 _hasBits0 &= ~2; 16034 } 16035 16036 /// <summary>Field number for the "optional_nested_message" field.</summary> 16037 public const int OptionalNestedMessageFieldNumber = 200; 16038 private global::Google.Protobuf.TestProtos.Proto2.TestFieldOrderings.Types.NestedMessage optionalNestedMessage_; 16039 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 16040 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 16041 public global::Google.Protobuf.TestProtos.Proto2.TestFieldOrderings.Types.NestedMessage OptionalNestedMessage { 16042 get { return optionalNestedMessage_; } 16043 set { 16044 optionalNestedMessage_ = value; 16045 } 16046 } 16047 16048 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 16049 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] Equals(object other)16050 public override bool Equals(object other) { 16051 return Equals(other as TestFieldOrderings); 16052 } 16053 16054 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 16055 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] Equals(TestFieldOrderings other)16056 public bool Equals(TestFieldOrderings other) { 16057 if (ReferenceEquals(other, null)) { 16058 return false; 16059 } 16060 if (ReferenceEquals(other, this)) { 16061 return true; 16062 } 16063 if (MyString != other.MyString) return false; 16064 if (MyInt != other.MyInt) return false; 16065 if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(MyFloat, other.MyFloat)) return false; 16066 if (!object.Equals(OptionalNestedMessage, other.OptionalNestedMessage)) return false; 16067 if (!Equals(_extensions, other._extensions)) { 16068 return false; 16069 } 16070 return Equals(_unknownFields, other._unknownFields); 16071 } 16072 16073 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 16074 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] GetHashCode()16075 public override int GetHashCode() { 16076 int hash = 1; 16077 if (HasMyString) hash ^= MyString.GetHashCode(); 16078 if (HasMyInt) hash ^= MyInt.GetHashCode(); 16079 if (HasMyFloat) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(MyFloat); 16080 if (optionalNestedMessage_ != null) hash ^= OptionalNestedMessage.GetHashCode(); 16081 if (_extensions != null) { 16082 hash ^= _extensions.GetHashCode(); 16083 } 16084 if (_unknownFields != null) { 16085 hash ^= _unknownFields.GetHashCode(); 16086 } 16087 return hash; 16088 } 16089 16090 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 16091 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] ToString()16092 public override string ToString() { 16093 return pb::JsonFormatter.ToDiagnosticString(this); 16094 } 16095 16096 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 16097 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] WriteTo(pb::CodedOutputStream output)16098 public void WriteTo(pb::CodedOutputStream output) { 16099 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 16100 output.WriteRawMessage(this); 16101 #else 16102 if (HasMyInt) { 16103 output.WriteRawTag(8); 16104 output.WriteInt64(MyInt); 16105 } 16106 if (HasMyString) { 16107 output.WriteRawTag(90); 16108 output.WriteString(MyString); 16109 } 16110 if (HasMyFloat) { 16111 output.WriteRawTag(173, 6); 16112 output.WriteFloat(MyFloat); 16113 } 16114 if (optionalNestedMessage_ != null) { 16115 output.WriteRawTag(194, 12); 16116 output.WriteMessage(OptionalNestedMessage); 16117 } 16118 if (_extensions != null) { 16119 _extensions.WriteTo(output); 16120 } 16121 if (_unknownFields != null) { 16122 _unknownFields.WriteTo(output); 16123 } 16124 #endif 16125 } 16126 16127 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 16128 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 16129 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] IBufferMessage.InternalWriteTo(ref pb::WriteContext output)16130 void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { 16131 if (HasMyInt) { 16132 output.WriteRawTag(8); 16133 output.WriteInt64(MyInt); 16134 } 16135 if (HasMyString) { 16136 output.WriteRawTag(90); 16137 output.WriteString(MyString); 16138 } 16139 if (HasMyFloat) { 16140 output.WriteRawTag(173, 6); 16141 output.WriteFloat(MyFloat); 16142 } 16143 if (optionalNestedMessage_ != null) { 16144 output.WriteRawTag(194, 12); 16145 output.WriteMessage(OptionalNestedMessage); 16146 } 16147 if (_extensions != null) { 16148 _extensions.WriteTo(ref output); 16149 } 16150 if (_unknownFields != null) { 16151 _unknownFields.WriteTo(ref output); 16152 } 16153 } 16154 #endif 16155 16156 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 16157 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] CalculateSize()16158 public int CalculateSize() { 16159 int size = 0; 16160 if (HasMyString) { 16161 size += 1 + pb::CodedOutputStream.ComputeStringSize(MyString); 16162 } 16163 if (HasMyInt) { 16164 size += 1 + pb::CodedOutputStream.ComputeInt64Size(MyInt); 16165 } 16166 if (HasMyFloat) { 16167 size += 2 + 4; 16168 } 16169 if (optionalNestedMessage_ != null) { 16170 size += 2 + pb::CodedOutputStream.ComputeMessageSize(OptionalNestedMessage); 16171 } 16172 if (_extensions != null) { 16173 size += _extensions.CalculateSize(); 16174 } 16175 if (_unknownFields != null) { 16176 size += _unknownFields.CalculateSize(); 16177 } 16178 return size; 16179 } 16180 16181 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 16182 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] MergeFrom(TestFieldOrderings other)16183 public void MergeFrom(TestFieldOrderings other) { 16184 if (other == null) { 16185 return; 16186 } 16187 if (other.HasMyString) { 16188 MyString = other.MyString; 16189 } 16190 if (other.HasMyInt) { 16191 MyInt = other.MyInt; 16192 } 16193 if (other.HasMyFloat) { 16194 MyFloat = other.MyFloat; 16195 } 16196 if (other.optionalNestedMessage_ != null) { 16197 if (optionalNestedMessage_ == null) { 16198 OptionalNestedMessage = new global::Google.Protobuf.TestProtos.Proto2.TestFieldOrderings.Types.NestedMessage(); 16199 } 16200 OptionalNestedMessage.MergeFrom(other.OptionalNestedMessage); 16201 } 16202 pb::ExtensionSet.MergeFrom(ref _extensions, other._extensions); 16203 _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); 16204 } 16205 16206 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 16207 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] MergeFrom(pb::CodedInputStream input)16208 public void MergeFrom(pb::CodedInputStream input) { 16209 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 16210 input.ReadRawMessage(this); 16211 #else 16212 uint tag; 16213 while ((tag = input.ReadTag()) != 0) { 16214 if ((tag & 7) == 4) { 16215 // Abort on any end group tag. 16216 return; 16217 } 16218 switch(tag) { 16219 default: 16220 if (!pb::ExtensionSet.TryMergeFieldFrom(ref _extensions, input)) { 16221 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); 16222 } 16223 break; 16224 case 8: { 16225 MyInt = input.ReadInt64(); 16226 break; 16227 } 16228 case 90: { 16229 MyString = input.ReadString(); 16230 break; 16231 } 16232 case 813: { 16233 MyFloat = input.ReadFloat(); 16234 break; 16235 } 16236 case 1602: { 16237 if (optionalNestedMessage_ == null) { 16238 OptionalNestedMessage = new global::Google.Protobuf.TestProtos.Proto2.TestFieldOrderings.Types.NestedMessage(); 16239 } 16240 input.ReadMessage(OptionalNestedMessage); 16241 break; 16242 } 16243 } 16244 } 16245 #endif 16246 } 16247 16248 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 16249 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 16250 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] IBufferMessage.InternalMergeFrom(ref pb::ParseContext input)16251 void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { 16252 uint tag; 16253 while ((tag = input.ReadTag()) != 0) { 16254 if ((tag & 7) == 4) { 16255 // Abort on any end group tag. 16256 return; 16257 } 16258 switch(tag) { 16259 default: 16260 if (!pb::ExtensionSet.TryMergeFieldFrom(ref _extensions, ref input)) { 16261 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); 16262 } 16263 break; 16264 case 8: { 16265 MyInt = input.ReadInt64(); 16266 break; 16267 } 16268 case 90: { 16269 MyString = input.ReadString(); 16270 break; 16271 } 16272 case 813: { 16273 MyFloat = input.ReadFloat(); 16274 break; 16275 } 16276 case 1602: { 16277 if (optionalNestedMessage_ == null) { 16278 OptionalNestedMessage = new global::Google.Protobuf.TestProtos.Proto2.TestFieldOrderings.Types.NestedMessage(); 16279 } 16280 input.ReadMessage(OptionalNestedMessage); 16281 break; 16282 } 16283 } 16284 } 16285 } 16286 #endif 16287 GetExtension(pb::Extension<TestFieldOrderings, TValue> extension)16288 public TValue GetExtension<TValue>(pb::Extension<TestFieldOrderings, TValue> extension) { 16289 return pb::ExtensionSet.Get(ref _extensions, extension); 16290 } GetExtension(pb::RepeatedExtension<TestFieldOrderings, TValue> extension)16291 public pbc::RepeatedField<TValue> GetExtension<TValue>(pb::RepeatedExtension<TestFieldOrderings, TValue> extension) { 16292 return pb::ExtensionSet.Get(ref _extensions, extension); 16293 } GetOrInitializeExtension(pb::RepeatedExtension<TestFieldOrderings, TValue> extension)16294 public pbc::RepeatedField<TValue> GetOrInitializeExtension<TValue>(pb::RepeatedExtension<TestFieldOrderings, TValue> extension) { 16295 return pb::ExtensionSet.GetOrInitialize(ref _extensions, extension); 16296 } SetExtension(pb::Extension<TestFieldOrderings, TValue> extension, TValue value)16297 public void SetExtension<TValue>(pb::Extension<TestFieldOrderings, TValue> extension, TValue value) { 16298 pb::ExtensionSet.Set(ref _extensions, extension, value); 16299 } HasExtension(pb::Extension<TestFieldOrderings, TValue> extension)16300 public bool HasExtension<TValue>(pb::Extension<TestFieldOrderings, TValue> extension) { 16301 return pb::ExtensionSet.Has(ref _extensions, extension); 16302 } ClearExtension(pb::Extension<TestFieldOrderings, TValue> extension)16303 public void ClearExtension<TValue>(pb::Extension<TestFieldOrderings, TValue> extension) { 16304 pb::ExtensionSet.Clear(ref _extensions, extension); 16305 } ClearExtension(pb::RepeatedExtension<TestFieldOrderings, TValue> extension)16306 public void ClearExtension<TValue>(pb::RepeatedExtension<TestFieldOrderings, TValue> extension) { 16307 pb::ExtensionSet.Clear(ref _extensions, extension); 16308 } 16309 16310 #region Nested types 16311 /// <summary>Container for nested types declared in the TestFieldOrderings message type.</summary> 16312 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 16313 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 16314 public static partial class Types { 16315 [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] 16316 public sealed partial class NestedMessage : pb::IMessage<NestedMessage> 16317 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 16318 , pb::IBufferMessage 16319 #endif 16320 { 16321 private static readonly pb::MessageParser<NestedMessage> _parser = new pb::MessageParser<NestedMessage>(() => new NestedMessage()); 16322 private pb::UnknownFieldSet _unknownFields; 16323 private int _hasBits0; 16324 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 16325 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 16326 public static pb::MessageParser<NestedMessage> Parser { get { return _parser; } } 16327 16328 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 16329 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 16330 public static pbr::MessageDescriptor Descriptor { 16331 get { return global::Google.Protobuf.TestProtos.Proto2.TestFieldOrderings.Descriptor.NestedTypes[0]; } 16332 } 16333 16334 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 16335 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 16336 pbr::MessageDescriptor pb::IMessage.Descriptor { 16337 get { return Descriptor; } 16338 } 16339 16340 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 16341 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] NestedMessage()16342 public NestedMessage() { 16343 OnConstruction(); 16344 } 16345 OnConstruction()16346 partial void OnConstruction(); 16347 16348 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 16349 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] NestedMessage(NestedMessage other)16350 public NestedMessage(NestedMessage other) : this() { 16351 _hasBits0 = other._hasBits0; 16352 oo_ = other.oo_; 16353 bb_ = other.bb_; 16354 _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); 16355 } 16356 16357 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 16358 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] Clone()16359 public NestedMessage Clone() { 16360 return new NestedMessage(this); 16361 } 16362 16363 /// <summary>Field number for the "oo" field.</summary> 16364 public const int OoFieldNumber = 2; 16365 private readonly static long OoDefaultValue = 0L; 16366 16367 private long oo_; 16368 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 16369 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 16370 public long Oo { 16371 get { if ((_hasBits0 & 2) != 0) { return oo_; } else { return OoDefaultValue; } } 16372 set { 16373 _hasBits0 |= 2; 16374 oo_ = value; 16375 } 16376 } 16377 /// <summary>Gets whether the "oo" field is set</summary> 16378 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 16379 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 16380 public bool HasOo { 16381 get { return (_hasBits0 & 2) != 0; } 16382 } 16383 /// <summary>Clears the value of the "oo" field</summary> 16384 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 16385 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] ClearOo()16386 public void ClearOo() { 16387 _hasBits0 &= ~2; 16388 } 16389 16390 /// <summary>Field number for the "bb" field.</summary> 16391 public const int BbFieldNumber = 1; 16392 private readonly static int BbDefaultValue = 0; 16393 16394 private int bb_; 16395 /// <summary> 16396 /// The field name "b" fails to compile in proto1 because it conflicts with 16397 /// a local variable named "b" in one of the generated methods. Doh. 16398 /// This file needs to compile in proto1 to test backwards-compatibility. 16399 /// </summary> 16400 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 16401 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 16402 public int Bb { 16403 get { if ((_hasBits0 & 1) != 0) { return bb_; } else { return BbDefaultValue; } } 16404 set { 16405 _hasBits0 |= 1; 16406 bb_ = value; 16407 } 16408 } 16409 /// <summary>Gets whether the "bb" field is set</summary> 16410 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 16411 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 16412 public bool HasBb { 16413 get { return (_hasBits0 & 1) != 0; } 16414 } 16415 /// <summary>Clears the value of the "bb" field</summary> 16416 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 16417 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] ClearBb()16418 public void ClearBb() { 16419 _hasBits0 &= ~1; 16420 } 16421 16422 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 16423 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] Equals(object other)16424 public override bool Equals(object other) { 16425 return Equals(other as NestedMessage); 16426 } 16427 16428 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 16429 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] Equals(NestedMessage other)16430 public bool Equals(NestedMessage other) { 16431 if (ReferenceEquals(other, null)) { 16432 return false; 16433 } 16434 if (ReferenceEquals(other, this)) { 16435 return true; 16436 } 16437 if (Oo != other.Oo) return false; 16438 if (Bb != other.Bb) return false; 16439 return Equals(_unknownFields, other._unknownFields); 16440 } 16441 16442 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 16443 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] GetHashCode()16444 public override int GetHashCode() { 16445 int hash = 1; 16446 if (HasOo) hash ^= Oo.GetHashCode(); 16447 if (HasBb) hash ^= Bb.GetHashCode(); 16448 if (_unknownFields != null) { 16449 hash ^= _unknownFields.GetHashCode(); 16450 } 16451 return hash; 16452 } 16453 16454 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 16455 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] ToString()16456 public override string ToString() { 16457 return pb::JsonFormatter.ToDiagnosticString(this); 16458 } 16459 16460 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 16461 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] WriteTo(pb::CodedOutputStream output)16462 public void WriteTo(pb::CodedOutputStream output) { 16463 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 16464 output.WriteRawMessage(this); 16465 #else 16466 if (HasBb) { 16467 output.WriteRawTag(8); 16468 output.WriteInt32(Bb); 16469 } 16470 if (HasOo) { 16471 output.WriteRawTag(16); 16472 output.WriteInt64(Oo); 16473 } 16474 if (_unknownFields != null) { 16475 _unknownFields.WriteTo(output); 16476 } 16477 #endif 16478 } 16479 16480 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 16481 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 16482 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] IBufferMessage.InternalWriteTo(ref pb::WriteContext output)16483 void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { 16484 if (HasBb) { 16485 output.WriteRawTag(8); 16486 output.WriteInt32(Bb); 16487 } 16488 if (HasOo) { 16489 output.WriteRawTag(16); 16490 output.WriteInt64(Oo); 16491 } 16492 if (_unknownFields != null) { 16493 _unknownFields.WriteTo(ref output); 16494 } 16495 } 16496 #endif 16497 16498 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 16499 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] CalculateSize()16500 public int CalculateSize() { 16501 int size = 0; 16502 if (HasOo) { 16503 size += 1 + pb::CodedOutputStream.ComputeInt64Size(Oo); 16504 } 16505 if (HasBb) { 16506 size += 1 + pb::CodedOutputStream.ComputeInt32Size(Bb); 16507 } 16508 if (_unknownFields != null) { 16509 size += _unknownFields.CalculateSize(); 16510 } 16511 return size; 16512 } 16513 16514 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 16515 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] MergeFrom(NestedMessage other)16516 public void MergeFrom(NestedMessage other) { 16517 if (other == null) { 16518 return; 16519 } 16520 if (other.HasOo) { 16521 Oo = other.Oo; 16522 } 16523 if (other.HasBb) { 16524 Bb = other.Bb; 16525 } 16526 _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); 16527 } 16528 16529 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 16530 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] MergeFrom(pb::CodedInputStream input)16531 public void MergeFrom(pb::CodedInputStream input) { 16532 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 16533 input.ReadRawMessage(this); 16534 #else 16535 uint tag; 16536 while ((tag = input.ReadTag()) != 0) { 16537 if ((tag & 7) == 4) { 16538 // Abort on any end group tag. 16539 return; 16540 } 16541 switch(tag) { 16542 default: 16543 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); 16544 break; 16545 case 8: { 16546 Bb = input.ReadInt32(); 16547 break; 16548 } 16549 case 16: { 16550 Oo = input.ReadInt64(); 16551 break; 16552 } 16553 } 16554 } 16555 #endif 16556 } 16557 16558 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 16559 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 16560 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] IBufferMessage.InternalMergeFrom(ref pb::ParseContext input)16561 void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { 16562 uint tag; 16563 while ((tag = input.ReadTag()) != 0) { 16564 if ((tag & 7) == 4) { 16565 // Abort on any end group tag. 16566 return; 16567 } 16568 switch(tag) { 16569 default: 16570 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); 16571 break; 16572 case 8: { 16573 Bb = input.ReadInt32(); 16574 break; 16575 } 16576 case 16: { 16577 Oo = input.ReadInt64(); 16578 break; 16579 } 16580 } 16581 } 16582 } 16583 #endif 16584 16585 } 16586 16587 } 16588 #endregion 16589 16590 } 16591 16592 [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] 16593 public sealed partial class TestExtensionOrderings1 : pb::IMessage<TestExtensionOrderings1> 16594 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 16595 , pb::IBufferMessage 16596 #endif 16597 { 16598 private static readonly pb::MessageParser<TestExtensionOrderings1> _parser = new pb::MessageParser<TestExtensionOrderings1>(() => new TestExtensionOrderings1()); 16599 private pb::UnknownFieldSet _unknownFields; 16600 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 16601 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 16602 public static pb::MessageParser<TestExtensionOrderings1> Parser { get { return _parser; } } 16603 16604 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 16605 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 16606 public static pbr::MessageDescriptor Descriptor { 16607 get { return global::Google.Protobuf.TestProtos.Proto2.UnittestReflection.Descriptor.MessageTypes[30]; } 16608 } 16609 16610 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 16611 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 16612 pbr::MessageDescriptor pb::IMessage.Descriptor { 16613 get { return Descriptor; } 16614 } 16615 16616 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 16617 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] TestExtensionOrderings1()16618 public TestExtensionOrderings1() { 16619 OnConstruction(); 16620 } 16621 OnConstruction()16622 partial void OnConstruction(); 16623 16624 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 16625 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] TestExtensionOrderings1(TestExtensionOrderings1 other)16626 public TestExtensionOrderings1(TestExtensionOrderings1 other) : this() { 16627 myString_ = other.myString_; 16628 _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); 16629 } 16630 16631 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 16632 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] Clone()16633 public TestExtensionOrderings1 Clone() { 16634 return new TestExtensionOrderings1(this); 16635 } 16636 16637 /// <summary>Field number for the "my_string" field.</summary> 16638 public const int MyStringFieldNumber = 1; 16639 private readonly static string MyStringDefaultValue = ""; 16640 16641 private string myString_; 16642 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 16643 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 16644 public string MyString { 16645 get { return myString_ ?? MyStringDefaultValue; } 16646 set { 16647 myString_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); 16648 } 16649 } 16650 /// <summary>Gets whether the "my_string" field is set</summary> 16651 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 16652 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 16653 public bool HasMyString { 16654 get { return myString_ != null; } 16655 } 16656 /// <summary>Clears the value of the "my_string" field</summary> 16657 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 16658 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] ClearMyString()16659 public void ClearMyString() { 16660 myString_ = null; 16661 } 16662 16663 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 16664 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] Equals(object other)16665 public override bool Equals(object other) { 16666 return Equals(other as TestExtensionOrderings1); 16667 } 16668 16669 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 16670 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] Equals(TestExtensionOrderings1 other)16671 public bool Equals(TestExtensionOrderings1 other) { 16672 if (ReferenceEquals(other, null)) { 16673 return false; 16674 } 16675 if (ReferenceEquals(other, this)) { 16676 return true; 16677 } 16678 if (MyString != other.MyString) return false; 16679 return Equals(_unknownFields, other._unknownFields); 16680 } 16681 16682 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 16683 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] GetHashCode()16684 public override int GetHashCode() { 16685 int hash = 1; 16686 if (HasMyString) hash ^= MyString.GetHashCode(); 16687 if (_unknownFields != null) { 16688 hash ^= _unknownFields.GetHashCode(); 16689 } 16690 return hash; 16691 } 16692 16693 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 16694 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] ToString()16695 public override string ToString() { 16696 return pb::JsonFormatter.ToDiagnosticString(this); 16697 } 16698 16699 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 16700 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] WriteTo(pb::CodedOutputStream output)16701 public void WriteTo(pb::CodedOutputStream output) { 16702 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 16703 output.WriteRawMessage(this); 16704 #else 16705 if (HasMyString) { 16706 output.WriteRawTag(10); 16707 output.WriteString(MyString); 16708 } 16709 if (_unknownFields != null) { 16710 _unknownFields.WriteTo(output); 16711 } 16712 #endif 16713 } 16714 16715 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 16716 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 16717 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] IBufferMessage.InternalWriteTo(ref pb::WriteContext output)16718 void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { 16719 if (HasMyString) { 16720 output.WriteRawTag(10); 16721 output.WriteString(MyString); 16722 } 16723 if (_unknownFields != null) { 16724 _unknownFields.WriteTo(ref output); 16725 } 16726 } 16727 #endif 16728 16729 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 16730 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] CalculateSize()16731 public int CalculateSize() { 16732 int size = 0; 16733 if (HasMyString) { 16734 size += 1 + pb::CodedOutputStream.ComputeStringSize(MyString); 16735 } 16736 if (_unknownFields != null) { 16737 size += _unknownFields.CalculateSize(); 16738 } 16739 return size; 16740 } 16741 16742 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 16743 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] MergeFrom(TestExtensionOrderings1 other)16744 public void MergeFrom(TestExtensionOrderings1 other) { 16745 if (other == null) { 16746 return; 16747 } 16748 if (other.HasMyString) { 16749 MyString = other.MyString; 16750 } 16751 _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); 16752 } 16753 16754 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 16755 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] MergeFrom(pb::CodedInputStream input)16756 public void MergeFrom(pb::CodedInputStream input) { 16757 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 16758 input.ReadRawMessage(this); 16759 #else 16760 uint tag; 16761 while ((tag = input.ReadTag()) != 0) { 16762 if ((tag & 7) == 4) { 16763 // Abort on any end group tag. 16764 return; 16765 } 16766 switch(tag) { 16767 default: 16768 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); 16769 break; 16770 case 10: { 16771 MyString = input.ReadString(); 16772 break; 16773 } 16774 } 16775 } 16776 #endif 16777 } 16778 16779 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 16780 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 16781 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] IBufferMessage.InternalMergeFrom(ref pb::ParseContext input)16782 void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { 16783 uint tag; 16784 while ((tag = input.ReadTag()) != 0) { 16785 if ((tag & 7) == 4) { 16786 // Abort on any end group tag. 16787 return; 16788 } 16789 switch(tag) { 16790 default: 16791 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); 16792 break; 16793 case 10: { 16794 MyString = input.ReadString(); 16795 break; 16796 } 16797 } 16798 } 16799 } 16800 #endif 16801 16802 #region Extensions 16803 /// <summary>Container for extensions for other messages declared in the TestExtensionOrderings1 message type.</summary> 16804 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 16805 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 16806 public static partial class Extensions { 16807 public static readonly pb::Extension<global::Google.Protobuf.TestProtos.Proto2.TestFieldOrderings, global::Google.Protobuf.TestProtos.Proto2.TestExtensionOrderings1> TestExtOrderings1 = 16808 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)); 16809 } 16810 #endregion 16811 16812 } 16813 16814 [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] 16815 public sealed partial class TestExtensionOrderings2 : pb::IMessage<TestExtensionOrderings2> 16816 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 16817 , pb::IBufferMessage 16818 #endif 16819 { 16820 private static readonly pb::MessageParser<TestExtensionOrderings2> _parser = new pb::MessageParser<TestExtensionOrderings2>(() => new TestExtensionOrderings2()); 16821 private pb::UnknownFieldSet _unknownFields; 16822 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 16823 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 16824 public static pb::MessageParser<TestExtensionOrderings2> Parser { get { return _parser; } } 16825 16826 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 16827 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 16828 public static pbr::MessageDescriptor Descriptor { 16829 get { return global::Google.Protobuf.TestProtos.Proto2.UnittestReflection.Descriptor.MessageTypes[31]; } 16830 } 16831 16832 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 16833 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 16834 pbr::MessageDescriptor pb::IMessage.Descriptor { 16835 get { return Descriptor; } 16836 } 16837 16838 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 16839 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] TestExtensionOrderings2()16840 public TestExtensionOrderings2() { 16841 OnConstruction(); 16842 } 16843 OnConstruction()16844 partial void OnConstruction(); 16845 16846 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 16847 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] TestExtensionOrderings2(TestExtensionOrderings2 other)16848 public TestExtensionOrderings2(TestExtensionOrderings2 other) : this() { 16849 myString_ = other.myString_; 16850 _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); 16851 } 16852 16853 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 16854 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] Clone()16855 public TestExtensionOrderings2 Clone() { 16856 return new TestExtensionOrderings2(this); 16857 } 16858 16859 /// <summary>Field number for the "my_string" field.</summary> 16860 public const int MyStringFieldNumber = 1; 16861 private readonly static string MyStringDefaultValue = ""; 16862 16863 private string myString_; 16864 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 16865 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 16866 public string MyString { 16867 get { return myString_ ?? MyStringDefaultValue; } 16868 set { 16869 myString_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); 16870 } 16871 } 16872 /// <summary>Gets whether the "my_string" field is set</summary> 16873 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 16874 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 16875 public bool HasMyString { 16876 get { return myString_ != null; } 16877 } 16878 /// <summary>Clears the value of the "my_string" field</summary> 16879 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 16880 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] ClearMyString()16881 public void ClearMyString() { 16882 myString_ = null; 16883 } 16884 16885 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 16886 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] Equals(object other)16887 public override bool Equals(object other) { 16888 return Equals(other as TestExtensionOrderings2); 16889 } 16890 16891 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 16892 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] Equals(TestExtensionOrderings2 other)16893 public bool Equals(TestExtensionOrderings2 other) { 16894 if (ReferenceEquals(other, null)) { 16895 return false; 16896 } 16897 if (ReferenceEquals(other, this)) { 16898 return true; 16899 } 16900 if (MyString != other.MyString) return false; 16901 return Equals(_unknownFields, other._unknownFields); 16902 } 16903 16904 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 16905 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] GetHashCode()16906 public override int GetHashCode() { 16907 int hash = 1; 16908 if (HasMyString) hash ^= MyString.GetHashCode(); 16909 if (_unknownFields != null) { 16910 hash ^= _unknownFields.GetHashCode(); 16911 } 16912 return hash; 16913 } 16914 16915 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 16916 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] ToString()16917 public override string ToString() { 16918 return pb::JsonFormatter.ToDiagnosticString(this); 16919 } 16920 16921 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 16922 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] WriteTo(pb::CodedOutputStream output)16923 public void WriteTo(pb::CodedOutputStream output) { 16924 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 16925 output.WriteRawMessage(this); 16926 #else 16927 if (HasMyString) { 16928 output.WriteRawTag(10); 16929 output.WriteString(MyString); 16930 } 16931 if (_unknownFields != null) { 16932 _unknownFields.WriteTo(output); 16933 } 16934 #endif 16935 } 16936 16937 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 16938 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 16939 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] IBufferMessage.InternalWriteTo(ref pb::WriteContext output)16940 void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { 16941 if (HasMyString) { 16942 output.WriteRawTag(10); 16943 output.WriteString(MyString); 16944 } 16945 if (_unknownFields != null) { 16946 _unknownFields.WriteTo(ref output); 16947 } 16948 } 16949 #endif 16950 16951 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 16952 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] CalculateSize()16953 public int CalculateSize() { 16954 int size = 0; 16955 if (HasMyString) { 16956 size += 1 + pb::CodedOutputStream.ComputeStringSize(MyString); 16957 } 16958 if (_unknownFields != null) { 16959 size += _unknownFields.CalculateSize(); 16960 } 16961 return size; 16962 } 16963 16964 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 16965 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] MergeFrom(TestExtensionOrderings2 other)16966 public void MergeFrom(TestExtensionOrderings2 other) { 16967 if (other == null) { 16968 return; 16969 } 16970 if (other.HasMyString) { 16971 MyString = other.MyString; 16972 } 16973 _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); 16974 } 16975 16976 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 16977 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] MergeFrom(pb::CodedInputStream input)16978 public void MergeFrom(pb::CodedInputStream input) { 16979 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 16980 input.ReadRawMessage(this); 16981 #else 16982 uint tag; 16983 while ((tag = input.ReadTag()) != 0) { 16984 if ((tag & 7) == 4) { 16985 // Abort on any end group tag. 16986 return; 16987 } 16988 switch(tag) { 16989 default: 16990 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); 16991 break; 16992 case 10: { 16993 MyString = input.ReadString(); 16994 break; 16995 } 16996 } 16997 } 16998 #endif 16999 } 17000 17001 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 17002 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 17003 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] IBufferMessage.InternalMergeFrom(ref pb::ParseContext input)17004 void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { 17005 uint tag; 17006 while ((tag = input.ReadTag()) != 0) { 17007 if ((tag & 7) == 4) { 17008 // Abort on any end group tag. 17009 return; 17010 } 17011 switch(tag) { 17012 default: 17013 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); 17014 break; 17015 case 10: { 17016 MyString = input.ReadString(); 17017 break; 17018 } 17019 } 17020 } 17021 } 17022 #endif 17023 17024 #region Nested types 17025 /// <summary>Container for nested types declared in the TestExtensionOrderings2 message type.</summary> 17026 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 17027 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 17028 public static partial class Types { 17029 [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] 17030 public sealed partial class TestExtensionOrderings3 : pb::IMessage<TestExtensionOrderings3> 17031 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 17032 , pb::IBufferMessage 17033 #endif 17034 { 17035 private static readonly pb::MessageParser<TestExtensionOrderings3> _parser = new pb::MessageParser<TestExtensionOrderings3>(() => new TestExtensionOrderings3()); 17036 private pb::UnknownFieldSet _unknownFields; 17037 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 17038 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 17039 public static pb::MessageParser<TestExtensionOrderings3> Parser { get { return _parser; } } 17040 17041 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 17042 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 17043 public static pbr::MessageDescriptor Descriptor { 17044 get { return global::Google.Protobuf.TestProtos.Proto2.TestExtensionOrderings2.Descriptor.NestedTypes[0]; } 17045 } 17046 17047 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 17048 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 17049 pbr::MessageDescriptor pb::IMessage.Descriptor { 17050 get { return Descriptor; } 17051 } 17052 17053 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 17054 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] TestExtensionOrderings3()17055 public TestExtensionOrderings3() { 17056 OnConstruction(); 17057 } 17058 OnConstruction()17059 partial void OnConstruction(); 17060 17061 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 17062 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] TestExtensionOrderings3(TestExtensionOrderings3 other)17063 public TestExtensionOrderings3(TestExtensionOrderings3 other) : this() { 17064 myString_ = other.myString_; 17065 _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); 17066 } 17067 17068 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 17069 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] Clone()17070 public TestExtensionOrderings3 Clone() { 17071 return new TestExtensionOrderings3(this); 17072 } 17073 17074 /// <summary>Field number for the "my_string" field.</summary> 17075 public const int MyStringFieldNumber = 1; 17076 private readonly static string MyStringDefaultValue = ""; 17077 17078 private string myString_; 17079 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 17080 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 17081 public string MyString { 17082 get { return myString_ ?? MyStringDefaultValue; } 17083 set { 17084 myString_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); 17085 } 17086 } 17087 /// <summary>Gets whether the "my_string" field is set</summary> 17088 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 17089 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 17090 public bool HasMyString { 17091 get { return myString_ != null; } 17092 } 17093 /// <summary>Clears the value of the "my_string" field</summary> 17094 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 17095 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] ClearMyString()17096 public void ClearMyString() { 17097 myString_ = null; 17098 } 17099 17100 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 17101 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] Equals(object other)17102 public override bool Equals(object other) { 17103 return Equals(other as TestExtensionOrderings3); 17104 } 17105 17106 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 17107 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] Equals(TestExtensionOrderings3 other)17108 public bool Equals(TestExtensionOrderings3 other) { 17109 if (ReferenceEquals(other, null)) { 17110 return false; 17111 } 17112 if (ReferenceEquals(other, this)) { 17113 return true; 17114 } 17115 if (MyString != other.MyString) return false; 17116 return Equals(_unknownFields, other._unknownFields); 17117 } 17118 17119 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 17120 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] GetHashCode()17121 public override int GetHashCode() { 17122 int hash = 1; 17123 if (HasMyString) hash ^= MyString.GetHashCode(); 17124 if (_unknownFields != null) { 17125 hash ^= _unknownFields.GetHashCode(); 17126 } 17127 return hash; 17128 } 17129 17130 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 17131 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] ToString()17132 public override string ToString() { 17133 return pb::JsonFormatter.ToDiagnosticString(this); 17134 } 17135 17136 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 17137 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] WriteTo(pb::CodedOutputStream output)17138 public void WriteTo(pb::CodedOutputStream output) { 17139 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 17140 output.WriteRawMessage(this); 17141 #else 17142 if (HasMyString) { 17143 output.WriteRawTag(10); 17144 output.WriteString(MyString); 17145 } 17146 if (_unknownFields != null) { 17147 _unknownFields.WriteTo(output); 17148 } 17149 #endif 17150 } 17151 17152 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 17153 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 17154 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] IBufferMessage.InternalWriteTo(ref pb::WriteContext output)17155 void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { 17156 if (HasMyString) { 17157 output.WriteRawTag(10); 17158 output.WriteString(MyString); 17159 } 17160 if (_unknownFields != null) { 17161 _unknownFields.WriteTo(ref output); 17162 } 17163 } 17164 #endif 17165 17166 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 17167 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] CalculateSize()17168 public int CalculateSize() { 17169 int size = 0; 17170 if (HasMyString) { 17171 size += 1 + pb::CodedOutputStream.ComputeStringSize(MyString); 17172 } 17173 if (_unknownFields != null) { 17174 size += _unknownFields.CalculateSize(); 17175 } 17176 return size; 17177 } 17178 17179 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 17180 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] MergeFrom(TestExtensionOrderings3 other)17181 public void MergeFrom(TestExtensionOrderings3 other) { 17182 if (other == null) { 17183 return; 17184 } 17185 if (other.HasMyString) { 17186 MyString = other.MyString; 17187 } 17188 _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); 17189 } 17190 17191 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 17192 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] MergeFrom(pb::CodedInputStream input)17193 public void MergeFrom(pb::CodedInputStream input) { 17194 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 17195 input.ReadRawMessage(this); 17196 #else 17197 uint tag; 17198 while ((tag = input.ReadTag()) != 0) { 17199 if ((tag & 7) == 4) { 17200 // Abort on any end group tag. 17201 return; 17202 } 17203 switch(tag) { 17204 default: 17205 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); 17206 break; 17207 case 10: { 17208 MyString = input.ReadString(); 17209 break; 17210 } 17211 } 17212 } 17213 #endif 17214 } 17215 17216 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 17217 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 17218 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] IBufferMessage.InternalMergeFrom(ref pb::ParseContext input)17219 void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { 17220 uint tag; 17221 while ((tag = input.ReadTag()) != 0) { 17222 if ((tag & 7) == 4) { 17223 // Abort on any end group tag. 17224 return; 17225 } 17226 switch(tag) { 17227 default: 17228 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); 17229 break; 17230 case 10: { 17231 MyString = input.ReadString(); 17232 break; 17233 } 17234 } 17235 } 17236 } 17237 #endif 17238 17239 #region Extensions 17240 /// <summary>Container for extensions for other messages declared in the TestExtensionOrderings3 message type.</summary> 17241 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 17242 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 17243 public static partial class Extensions { 17244 public static readonly pb::Extension<global::Google.Protobuf.TestProtos.Proto2.TestFieldOrderings, global::Google.Protobuf.TestProtos.Proto2.TestExtensionOrderings2.Types.TestExtensionOrderings3> TestExtOrderings3 = 17245 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)); 17246 } 17247 #endregion 17248 17249 } 17250 17251 } 17252 #endregion 17253 17254 #region Extensions 17255 /// <summary>Container for extensions for other messages declared in the TestExtensionOrderings2 message type.</summary> 17256 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 17257 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 17258 public static partial class Extensions { 17259 public static readonly pb::Extension<global::Google.Protobuf.TestProtos.Proto2.TestFieldOrderings, global::Google.Protobuf.TestProtos.Proto2.TestExtensionOrderings2> TestExtOrderings2 = 17260 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)); 17261 } 17262 #endregion 17263 17264 } 17265 17266 [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] 17267 public sealed partial class TestExtremeDefaultValues : pb::IMessage<TestExtremeDefaultValues> 17268 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 17269 , pb::IBufferMessage 17270 #endif 17271 { 17272 private static readonly pb::MessageParser<TestExtremeDefaultValues> _parser = new pb::MessageParser<TestExtremeDefaultValues>(() => new TestExtremeDefaultValues()); 17273 private pb::UnknownFieldSet _unknownFields; 17274 private int _hasBits0; 17275 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 17276 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 17277 public static pb::MessageParser<TestExtremeDefaultValues> Parser { get { return _parser; } } 17278 17279 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 17280 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 17281 public static pbr::MessageDescriptor Descriptor { 17282 get { return global::Google.Protobuf.TestProtos.Proto2.UnittestReflection.Descriptor.MessageTypes[32]; } 17283 } 17284 17285 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 17286 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 17287 pbr::MessageDescriptor pb::IMessage.Descriptor { 17288 get { return Descriptor; } 17289 } 17290 17291 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 17292 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] TestExtremeDefaultValues()17293 public TestExtremeDefaultValues() { 17294 OnConstruction(); 17295 } 17296 OnConstruction()17297 partial void OnConstruction(); 17298 17299 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 17300 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] TestExtremeDefaultValues(TestExtremeDefaultValues other)17301 public TestExtremeDefaultValues(TestExtremeDefaultValues other) : this() { 17302 _hasBits0 = other._hasBits0; 17303 escapedBytes_ = other.escapedBytes_; 17304 largeUint32_ = other.largeUint32_; 17305 largeUint64_ = other.largeUint64_; 17306 smallInt32_ = other.smallInt32_; 17307 smallInt64_ = other.smallInt64_; 17308 reallySmallInt32_ = other.reallySmallInt32_; 17309 reallySmallInt64_ = other.reallySmallInt64_; 17310 utf8String_ = other.utf8String_; 17311 zeroFloat_ = other.zeroFloat_; 17312 oneFloat_ = other.oneFloat_; 17313 smallFloat_ = other.smallFloat_; 17314 negativeOneFloat_ = other.negativeOneFloat_; 17315 negativeFloat_ = other.negativeFloat_; 17316 largeFloat_ = other.largeFloat_; 17317 smallNegativeFloat_ = other.smallNegativeFloat_; 17318 infDouble_ = other.infDouble_; 17319 negInfDouble_ = other.negInfDouble_; 17320 nanDouble_ = other.nanDouble_; 17321 infFloat_ = other.infFloat_; 17322 negInfFloat_ = other.negInfFloat_; 17323 nanFloat_ = other.nanFloat_; 17324 cppTrigraph_ = other.cppTrigraph_; 17325 stringWithZero_ = other.stringWithZero_; 17326 bytesWithZero_ = other.bytesWithZero_; 17327 stringPieceWithZero_ = other.stringPieceWithZero_; 17328 cordWithZero_ = other.cordWithZero_; 17329 replacementString_ = other.replacementString_; 17330 _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); 17331 } 17332 17333 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 17334 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] Clone()17335 public TestExtremeDefaultValues Clone() { 17336 return new TestExtremeDefaultValues(this); 17337 } 17338 17339 /// <summary>Field number for the "escaped_bytes" field.</summary> 17340 public const int EscapedBytesFieldNumber = 1; 17341 private readonly static pb::ByteString EscapedBytesDefaultValue = pb::ByteString.FromBase64("AAEHCAwKDQkLXCci/g=="); 17342 17343 private pb::ByteString escapedBytes_; 17344 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 17345 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 17346 public pb::ByteString EscapedBytes { 17347 get { return escapedBytes_ ?? EscapedBytesDefaultValue; } 17348 set { 17349 escapedBytes_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); 17350 } 17351 } 17352 /// <summary>Gets whether the "escaped_bytes" field is set</summary> 17353 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 17354 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 17355 public bool HasEscapedBytes { 17356 get { return escapedBytes_ != null; } 17357 } 17358 /// <summary>Clears the value of the "escaped_bytes" field</summary> 17359 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 17360 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] ClearEscapedBytes()17361 public void ClearEscapedBytes() { 17362 escapedBytes_ = null; 17363 } 17364 17365 /// <summary>Field number for the "large_uint32" field.</summary> 17366 public const int LargeUint32FieldNumber = 2; 17367 private readonly static uint LargeUint32DefaultValue = 4294967295; 17368 17369 private uint largeUint32_; 17370 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 17371 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 17372 public uint LargeUint32 { 17373 get { if ((_hasBits0 & 1) != 0) { return largeUint32_; } else { return LargeUint32DefaultValue; } } 17374 set { 17375 _hasBits0 |= 1; 17376 largeUint32_ = value; 17377 } 17378 } 17379 /// <summary>Gets whether the "large_uint32" field is set</summary> 17380 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 17381 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 17382 public bool HasLargeUint32 { 17383 get { return (_hasBits0 & 1) != 0; } 17384 } 17385 /// <summary>Clears the value of the "large_uint32" field</summary> 17386 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 17387 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] ClearLargeUint32()17388 public void ClearLargeUint32() { 17389 _hasBits0 &= ~1; 17390 } 17391 17392 /// <summary>Field number for the "large_uint64" field.</summary> 17393 public const int LargeUint64FieldNumber = 3; 17394 private readonly static ulong LargeUint64DefaultValue = 18446744073709551615UL; 17395 17396 private ulong largeUint64_; 17397 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 17398 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 17399 public ulong LargeUint64 { 17400 get { if ((_hasBits0 & 2) != 0) { return largeUint64_; } else { return LargeUint64DefaultValue; } } 17401 set { 17402 _hasBits0 |= 2; 17403 largeUint64_ = value; 17404 } 17405 } 17406 /// <summary>Gets whether the "large_uint64" field is set</summary> 17407 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 17408 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 17409 public bool HasLargeUint64 { 17410 get { return (_hasBits0 & 2) != 0; } 17411 } 17412 /// <summary>Clears the value of the "large_uint64" field</summary> 17413 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 17414 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] ClearLargeUint64()17415 public void ClearLargeUint64() { 17416 _hasBits0 &= ~2; 17417 } 17418 17419 /// <summary>Field number for the "small_int32" field.</summary> 17420 public const int SmallInt32FieldNumber = 4; 17421 private readonly static int SmallInt32DefaultValue = -2147483647; 17422 17423 private int smallInt32_; 17424 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 17425 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 17426 public int SmallInt32 { 17427 get { if ((_hasBits0 & 4) != 0) { return smallInt32_; } else { return SmallInt32DefaultValue; } } 17428 set { 17429 _hasBits0 |= 4; 17430 smallInt32_ = value; 17431 } 17432 } 17433 /// <summary>Gets whether the "small_int32" field is set</summary> 17434 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 17435 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 17436 public bool HasSmallInt32 { 17437 get { return (_hasBits0 & 4) != 0; } 17438 } 17439 /// <summary>Clears the value of the "small_int32" field</summary> 17440 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 17441 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] ClearSmallInt32()17442 public void ClearSmallInt32() { 17443 _hasBits0 &= ~4; 17444 } 17445 17446 /// <summary>Field number for the "small_int64" field.</summary> 17447 public const int SmallInt64FieldNumber = 5; 17448 private readonly static long SmallInt64DefaultValue = -9223372036854775807L; 17449 17450 private long smallInt64_; 17451 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 17452 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 17453 public long SmallInt64 { 17454 get { if ((_hasBits0 & 8) != 0) { return smallInt64_; } else { return SmallInt64DefaultValue; } } 17455 set { 17456 _hasBits0 |= 8; 17457 smallInt64_ = value; 17458 } 17459 } 17460 /// <summary>Gets whether the "small_int64" field is set</summary> 17461 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 17462 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 17463 public bool HasSmallInt64 { 17464 get { return (_hasBits0 & 8) != 0; } 17465 } 17466 /// <summary>Clears the value of the "small_int64" field</summary> 17467 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 17468 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] ClearSmallInt64()17469 public void ClearSmallInt64() { 17470 _hasBits0 &= ~8; 17471 } 17472 17473 /// <summary>Field number for the "really_small_int32" field.</summary> 17474 public const int ReallySmallInt32FieldNumber = 21; 17475 private readonly static int ReallySmallInt32DefaultValue = -2147483648; 17476 17477 private int reallySmallInt32_; 17478 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 17479 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 17480 public int ReallySmallInt32 { 17481 get { if ((_hasBits0 & 131072) != 0) { return reallySmallInt32_; } else { return ReallySmallInt32DefaultValue; } } 17482 set { 17483 _hasBits0 |= 131072; 17484 reallySmallInt32_ = value; 17485 } 17486 } 17487 /// <summary>Gets whether the "really_small_int32" field is set</summary> 17488 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 17489 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 17490 public bool HasReallySmallInt32 { 17491 get { return (_hasBits0 & 131072) != 0; } 17492 } 17493 /// <summary>Clears the value of the "really_small_int32" field</summary> 17494 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 17495 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] ClearReallySmallInt32()17496 public void ClearReallySmallInt32() { 17497 _hasBits0 &= ~131072; 17498 } 17499 17500 /// <summary>Field number for the "really_small_int64" field.</summary> 17501 public const int ReallySmallInt64FieldNumber = 22; 17502 private readonly static long ReallySmallInt64DefaultValue = -9223372036854775808L; 17503 17504 private long reallySmallInt64_; 17505 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 17506 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 17507 public long ReallySmallInt64 { 17508 get { if ((_hasBits0 & 262144) != 0) { return reallySmallInt64_; } else { return ReallySmallInt64DefaultValue; } } 17509 set { 17510 _hasBits0 |= 262144; 17511 reallySmallInt64_ = value; 17512 } 17513 } 17514 /// <summary>Gets whether the "really_small_int64" field is set</summary> 17515 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 17516 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 17517 public bool HasReallySmallInt64 { 17518 get { return (_hasBits0 & 262144) != 0; } 17519 } 17520 /// <summary>Clears the value of the "really_small_int64" field</summary> 17521 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 17522 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] ClearReallySmallInt64()17523 public void ClearReallySmallInt64() { 17524 _hasBits0 &= ~262144; 17525 } 17526 17527 /// <summary>Field number for the "utf8_string" field.</summary> 17528 public const int Utf8StringFieldNumber = 6; 17529 private readonly static string Utf8StringDefaultValue = global::System.Text.Encoding.UTF8.GetString(global::System.Convert.FromBase64String("4Yi0"), 0, 3); 17530 17531 private string utf8String_; 17532 /// <summary> 17533 /// The default value here is UTF-8 for "\u1234". (We could also just type 17534 /// the UTF-8 text directly into this text file rather than escape it, but 17535 /// lots of people use editors that would be confused by this.) 17536 /// </summary> 17537 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 17538 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 17539 public string Utf8String { 17540 get { return utf8String_ ?? Utf8StringDefaultValue; } 17541 set { 17542 utf8String_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); 17543 } 17544 } 17545 /// <summary>Gets whether the "utf8_string" field is set</summary> 17546 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 17547 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 17548 public bool HasUtf8String { 17549 get { return utf8String_ != null; } 17550 } 17551 /// <summary>Clears the value of the "utf8_string" field</summary> 17552 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 17553 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] ClearUtf8String()17554 public void ClearUtf8String() { 17555 utf8String_ = null; 17556 } 17557 17558 /// <summary>Field number for the "zero_float" field.</summary> 17559 public const int ZeroFloatFieldNumber = 7; 17560 private readonly static float ZeroFloatDefaultValue = 0F; 17561 17562 private float zeroFloat_; 17563 /// <summary> 17564 /// Tests for single-precision floating-point values. 17565 /// </summary> 17566 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 17567 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 17568 public float ZeroFloat { 17569 get { if ((_hasBits0 & 16) != 0) { return zeroFloat_; } else { return ZeroFloatDefaultValue; } } 17570 set { 17571 _hasBits0 |= 16; 17572 zeroFloat_ = value; 17573 } 17574 } 17575 /// <summary>Gets whether the "zero_float" field is set</summary> 17576 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 17577 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 17578 public bool HasZeroFloat { 17579 get { return (_hasBits0 & 16) != 0; } 17580 } 17581 /// <summary>Clears the value of the "zero_float" field</summary> 17582 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 17583 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] ClearZeroFloat()17584 public void ClearZeroFloat() { 17585 _hasBits0 &= ~16; 17586 } 17587 17588 /// <summary>Field number for the "one_float" field.</summary> 17589 public const int OneFloatFieldNumber = 8; 17590 private readonly static float OneFloatDefaultValue = 1F; 17591 17592 private float oneFloat_; 17593 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 17594 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 17595 public float OneFloat { 17596 get { if ((_hasBits0 & 32) != 0) { return oneFloat_; } else { return OneFloatDefaultValue; } } 17597 set { 17598 _hasBits0 |= 32; 17599 oneFloat_ = value; 17600 } 17601 } 17602 /// <summary>Gets whether the "one_float" field is set</summary> 17603 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 17604 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 17605 public bool HasOneFloat { 17606 get { return (_hasBits0 & 32) != 0; } 17607 } 17608 /// <summary>Clears the value of the "one_float" field</summary> 17609 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 17610 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] ClearOneFloat()17611 public void ClearOneFloat() { 17612 _hasBits0 &= ~32; 17613 } 17614 17615 /// <summary>Field number for the "small_float" field.</summary> 17616 public const int SmallFloatFieldNumber = 9; 17617 private readonly static float SmallFloatDefaultValue = 1.5F; 17618 17619 private float smallFloat_; 17620 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 17621 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 17622 public float SmallFloat { 17623 get { if ((_hasBits0 & 64) != 0) { return smallFloat_; } else { return SmallFloatDefaultValue; } } 17624 set { 17625 _hasBits0 |= 64; 17626 smallFloat_ = value; 17627 } 17628 } 17629 /// <summary>Gets whether the "small_float" field is set</summary> 17630 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 17631 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 17632 public bool HasSmallFloat { 17633 get { return (_hasBits0 & 64) != 0; } 17634 } 17635 /// <summary>Clears the value of the "small_float" field</summary> 17636 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 17637 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] ClearSmallFloat()17638 public void ClearSmallFloat() { 17639 _hasBits0 &= ~64; 17640 } 17641 17642 /// <summary>Field number for the "negative_one_float" field.</summary> 17643 public const int NegativeOneFloatFieldNumber = 10; 17644 private readonly static float NegativeOneFloatDefaultValue = -1F; 17645 17646 private float negativeOneFloat_; 17647 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 17648 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 17649 public float NegativeOneFloat { 17650 get { if ((_hasBits0 & 128) != 0) { return negativeOneFloat_; } else { return NegativeOneFloatDefaultValue; } } 17651 set { 17652 _hasBits0 |= 128; 17653 negativeOneFloat_ = value; 17654 } 17655 } 17656 /// <summary>Gets whether the "negative_one_float" field is set</summary> 17657 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 17658 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 17659 public bool HasNegativeOneFloat { 17660 get { return (_hasBits0 & 128) != 0; } 17661 } 17662 /// <summary>Clears the value of the "negative_one_float" field</summary> 17663 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 17664 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] ClearNegativeOneFloat()17665 public void ClearNegativeOneFloat() { 17666 _hasBits0 &= ~128; 17667 } 17668 17669 /// <summary>Field number for the "negative_float" field.</summary> 17670 public const int NegativeFloatFieldNumber = 11; 17671 private readonly static float NegativeFloatDefaultValue = -1.5F; 17672 17673 private float negativeFloat_; 17674 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 17675 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 17676 public float NegativeFloat { 17677 get { if ((_hasBits0 & 256) != 0) { return negativeFloat_; } else { return NegativeFloatDefaultValue; } } 17678 set { 17679 _hasBits0 |= 256; 17680 negativeFloat_ = value; 17681 } 17682 } 17683 /// <summary>Gets whether the "negative_float" field is set</summary> 17684 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 17685 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 17686 public bool HasNegativeFloat { 17687 get { return (_hasBits0 & 256) != 0; } 17688 } 17689 /// <summary>Clears the value of the "negative_float" field</summary> 17690 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 17691 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] ClearNegativeFloat()17692 public void ClearNegativeFloat() { 17693 _hasBits0 &= ~256; 17694 } 17695 17696 /// <summary>Field number for the "large_float" field.</summary> 17697 public const int LargeFloatFieldNumber = 12; 17698 private readonly static float LargeFloatDefaultValue = 2e+08F; 17699 17700 private float largeFloat_; 17701 /// <summary> 17702 /// Using exponents 17703 /// </summary> 17704 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 17705 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 17706 public float LargeFloat { 17707 get { if ((_hasBits0 & 512) != 0) { return largeFloat_; } else { return LargeFloatDefaultValue; } } 17708 set { 17709 _hasBits0 |= 512; 17710 largeFloat_ = value; 17711 } 17712 } 17713 /// <summary>Gets whether the "large_float" field is set</summary> 17714 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 17715 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 17716 public bool HasLargeFloat { 17717 get { return (_hasBits0 & 512) != 0; } 17718 } 17719 /// <summary>Clears the value of the "large_float" field</summary> 17720 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 17721 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] ClearLargeFloat()17722 public void ClearLargeFloat() { 17723 _hasBits0 &= ~512; 17724 } 17725 17726 /// <summary>Field number for the "small_negative_float" field.</summary> 17727 public const int SmallNegativeFloatFieldNumber = 13; 17728 private readonly static float SmallNegativeFloatDefaultValue = -8e-28F; 17729 17730 private float smallNegativeFloat_; 17731 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 17732 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 17733 public float SmallNegativeFloat { 17734 get { if ((_hasBits0 & 1024) != 0) { return smallNegativeFloat_; } else { return SmallNegativeFloatDefaultValue; } } 17735 set { 17736 _hasBits0 |= 1024; 17737 smallNegativeFloat_ = value; 17738 } 17739 } 17740 /// <summary>Gets whether the "small_negative_float" field is set</summary> 17741 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 17742 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 17743 public bool HasSmallNegativeFloat { 17744 get { return (_hasBits0 & 1024) != 0; } 17745 } 17746 /// <summary>Clears the value of the "small_negative_float" field</summary> 17747 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 17748 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] ClearSmallNegativeFloat()17749 public void ClearSmallNegativeFloat() { 17750 _hasBits0 &= ~1024; 17751 } 17752 17753 /// <summary>Field number for the "inf_double" field.</summary> 17754 public const int InfDoubleFieldNumber = 14; 17755 private readonly static double InfDoubleDefaultValue = double.PositiveInfinity; 17756 17757 private double infDouble_; 17758 /// <summary> 17759 /// Text for nonfinite floating-point values. 17760 /// </summary> 17761 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 17762 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 17763 public double InfDouble { 17764 get { if ((_hasBits0 & 2048) != 0) { return infDouble_; } else { return InfDoubleDefaultValue; } } 17765 set { 17766 _hasBits0 |= 2048; 17767 infDouble_ = value; 17768 } 17769 } 17770 /// <summary>Gets whether the "inf_double" field is set</summary> 17771 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 17772 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 17773 public bool HasInfDouble { 17774 get { return (_hasBits0 & 2048) != 0; } 17775 } 17776 /// <summary>Clears the value of the "inf_double" field</summary> 17777 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 17778 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] ClearInfDouble()17779 public void ClearInfDouble() { 17780 _hasBits0 &= ~2048; 17781 } 17782 17783 /// <summary>Field number for the "neg_inf_double" field.</summary> 17784 public const int NegInfDoubleFieldNumber = 15; 17785 private readonly static double NegInfDoubleDefaultValue = double.NegativeInfinity; 17786 17787 private double negInfDouble_; 17788 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 17789 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 17790 public double NegInfDouble { 17791 get { if ((_hasBits0 & 4096) != 0) { return negInfDouble_; } else { return NegInfDoubleDefaultValue; } } 17792 set { 17793 _hasBits0 |= 4096; 17794 negInfDouble_ = value; 17795 } 17796 } 17797 /// <summary>Gets whether the "neg_inf_double" field is set</summary> 17798 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 17799 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 17800 public bool HasNegInfDouble { 17801 get { return (_hasBits0 & 4096) != 0; } 17802 } 17803 /// <summary>Clears the value of the "neg_inf_double" field</summary> 17804 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 17805 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] ClearNegInfDouble()17806 public void ClearNegInfDouble() { 17807 _hasBits0 &= ~4096; 17808 } 17809 17810 /// <summary>Field number for the "nan_double" field.</summary> 17811 public const int NanDoubleFieldNumber = 16; 17812 private readonly static double NanDoubleDefaultValue = double.NaN; 17813 17814 private double nanDouble_; 17815 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 17816 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 17817 public double NanDouble { 17818 get { if ((_hasBits0 & 8192) != 0) { return nanDouble_; } else { return NanDoubleDefaultValue; } } 17819 set { 17820 _hasBits0 |= 8192; 17821 nanDouble_ = value; 17822 } 17823 } 17824 /// <summary>Gets whether the "nan_double" field is set</summary> 17825 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 17826 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 17827 public bool HasNanDouble { 17828 get { return (_hasBits0 & 8192) != 0; } 17829 } 17830 /// <summary>Clears the value of the "nan_double" field</summary> 17831 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 17832 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] ClearNanDouble()17833 public void ClearNanDouble() { 17834 _hasBits0 &= ~8192; 17835 } 17836 17837 /// <summary>Field number for the "inf_float" field.</summary> 17838 public const int InfFloatFieldNumber = 17; 17839 private readonly static float InfFloatDefaultValue = float.PositiveInfinity; 17840 17841 private float infFloat_; 17842 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 17843 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 17844 public float InfFloat { 17845 get { if ((_hasBits0 & 16384) != 0) { return infFloat_; } else { return InfFloatDefaultValue; } } 17846 set { 17847 _hasBits0 |= 16384; 17848 infFloat_ = value; 17849 } 17850 } 17851 /// <summary>Gets whether the "inf_float" field is set</summary> 17852 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 17853 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 17854 public bool HasInfFloat { 17855 get { return (_hasBits0 & 16384) != 0; } 17856 } 17857 /// <summary>Clears the value of the "inf_float" field</summary> 17858 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 17859 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] ClearInfFloat()17860 public void ClearInfFloat() { 17861 _hasBits0 &= ~16384; 17862 } 17863 17864 /// <summary>Field number for the "neg_inf_float" field.</summary> 17865 public const int NegInfFloatFieldNumber = 18; 17866 private readonly static float NegInfFloatDefaultValue = float.NegativeInfinity; 17867 17868 private float negInfFloat_; 17869 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 17870 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 17871 public float NegInfFloat { 17872 get { if ((_hasBits0 & 32768) != 0) { return negInfFloat_; } else { return NegInfFloatDefaultValue; } } 17873 set { 17874 _hasBits0 |= 32768; 17875 negInfFloat_ = value; 17876 } 17877 } 17878 /// <summary>Gets whether the "neg_inf_float" field is set</summary> 17879 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 17880 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 17881 public bool HasNegInfFloat { 17882 get { return (_hasBits0 & 32768) != 0; } 17883 } 17884 /// <summary>Clears the value of the "neg_inf_float" field</summary> 17885 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 17886 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] ClearNegInfFloat()17887 public void ClearNegInfFloat() { 17888 _hasBits0 &= ~32768; 17889 } 17890 17891 /// <summary>Field number for the "nan_float" field.</summary> 17892 public const int NanFloatFieldNumber = 19; 17893 private readonly static float NanFloatDefaultValue = float.NaN; 17894 17895 private float nanFloat_; 17896 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 17897 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 17898 public float NanFloat { 17899 get { if ((_hasBits0 & 65536) != 0) { return nanFloat_; } else { return NanFloatDefaultValue; } } 17900 set { 17901 _hasBits0 |= 65536; 17902 nanFloat_ = value; 17903 } 17904 } 17905 /// <summary>Gets whether the "nan_float" field is set</summary> 17906 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 17907 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 17908 public bool HasNanFloat { 17909 get { return (_hasBits0 & 65536) != 0; } 17910 } 17911 /// <summary>Clears the value of the "nan_float" field</summary> 17912 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 17913 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] ClearNanFloat()17914 public void ClearNanFloat() { 17915 _hasBits0 &= ~65536; 17916 } 17917 17918 /// <summary>Field number for the "cpp_trigraph" field.</summary> 17919 public const int CppTrigraphFieldNumber = 20; 17920 private readonly static string CppTrigraphDefaultValue = global::System.Text.Encoding.UTF8.GetString(global::System.Convert.FromBase64String("PyA/ID8/ID8/ID8/PyA/Py8gPz8t"), 0, 21); 17921 17922 private string cppTrigraph_; 17923 /// <summary> 17924 /// Tests for C++ trigraphs. 17925 /// Trigraphs should be escaped in C++ generated files, but they should not be 17926 /// escaped for other languages. 17927 /// Note that in .proto file, "\?" is a valid way to escape ? in string 17928 /// literals. 17929 /// </summary> 17930 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 17931 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 17932 public string CppTrigraph { 17933 get { return cppTrigraph_ ?? CppTrigraphDefaultValue; } 17934 set { 17935 cppTrigraph_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); 17936 } 17937 } 17938 /// <summary>Gets whether the "cpp_trigraph" field is set</summary> 17939 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 17940 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 17941 public bool HasCppTrigraph { 17942 get { return cppTrigraph_ != null; } 17943 } 17944 /// <summary>Clears the value of the "cpp_trigraph" field</summary> 17945 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 17946 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] ClearCppTrigraph()17947 public void ClearCppTrigraph() { 17948 cppTrigraph_ = null; 17949 } 17950 17951 /// <summary>Field number for the "string_with_zero" field.</summary> 17952 public const int StringWithZeroFieldNumber = 23; 17953 private readonly static string StringWithZeroDefaultValue = global::System.Text.Encoding.UTF8.GetString(global::System.Convert.FromBase64String("aGVsAGxv"), 0, 6); 17954 17955 private string stringWithZero_; 17956 /// <summary> 17957 /// String defaults containing the character '\000' 17958 /// </summary> 17959 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 17960 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 17961 public string StringWithZero { 17962 get { return stringWithZero_ ?? StringWithZeroDefaultValue; } 17963 set { 17964 stringWithZero_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); 17965 } 17966 } 17967 /// <summary>Gets whether the "string_with_zero" field is set</summary> 17968 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 17969 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 17970 public bool HasStringWithZero { 17971 get { return stringWithZero_ != null; } 17972 } 17973 /// <summary>Clears the value of the "string_with_zero" field</summary> 17974 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 17975 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] ClearStringWithZero()17976 public void ClearStringWithZero() { 17977 stringWithZero_ = null; 17978 } 17979 17980 /// <summary>Field number for the "bytes_with_zero" field.</summary> 17981 public const int BytesWithZeroFieldNumber = 24; 17982 private readonly static pb::ByteString BytesWithZeroDefaultValue = pb::ByteString.FromBase64("d29yAGxk"); 17983 17984 private pb::ByteString bytesWithZero_; 17985 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 17986 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 17987 public pb::ByteString BytesWithZero { 17988 get { return bytesWithZero_ ?? BytesWithZeroDefaultValue; } 17989 set { 17990 bytesWithZero_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); 17991 } 17992 } 17993 /// <summary>Gets whether the "bytes_with_zero" field is set</summary> 17994 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 17995 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 17996 public bool HasBytesWithZero { 17997 get { return bytesWithZero_ != null; } 17998 } 17999 /// <summary>Clears the value of the "bytes_with_zero" field</summary> 18000 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 18001 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] ClearBytesWithZero()18002 public void ClearBytesWithZero() { 18003 bytesWithZero_ = null; 18004 } 18005 18006 /// <summary>Field number for the "string_piece_with_zero" field.</summary> 18007 public const int StringPieceWithZeroFieldNumber = 25; 18008 private readonly static string StringPieceWithZeroDefaultValue = global::System.Text.Encoding.UTF8.GetString(global::System.Convert.FromBase64String("YWIAYw=="), 0, 4); 18009 18010 private string stringPieceWithZero_; 18011 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 18012 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 18013 public string StringPieceWithZero { 18014 get { return stringPieceWithZero_ ?? StringPieceWithZeroDefaultValue; } 18015 set { 18016 stringPieceWithZero_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); 18017 } 18018 } 18019 /// <summary>Gets whether the "string_piece_with_zero" field is set</summary> 18020 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 18021 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 18022 public bool HasStringPieceWithZero { 18023 get { return stringPieceWithZero_ != null; } 18024 } 18025 /// <summary>Clears the value of the "string_piece_with_zero" field</summary> 18026 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 18027 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] ClearStringPieceWithZero()18028 public void ClearStringPieceWithZero() { 18029 stringPieceWithZero_ = null; 18030 } 18031 18032 /// <summary>Field number for the "cord_with_zero" field.</summary> 18033 public const int CordWithZeroFieldNumber = 26; 18034 private readonly static string CordWithZeroDefaultValue = global::System.Text.Encoding.UTF8.GetString(global::System.Convert.FromBase64String("MTIAMw=="), 0, 4); 18035 18036 private string cordWithZero_; 18037 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 18038 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 18039 public string CordWithZero { 18040 get { return cordWithZero_ ?? CordWithZeroDefaultValue; } 18041 set { 18042 cordWithZero_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); 18043 } 18044 } 18045 /// <summary>Gets whether the "cord_with_zero" field is set</summary> 18046 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 18047 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 18048 public bool HasCordWithZero { 18049 get { return cordWithZero_ != null; } 18050 } 18051 /// <summary>Clears the value of the "cord_with_zero" field</summary> 18052 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 18053 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] ClearCordWithZero()18054 public void ClearCordWithZero() { 18055 cordWithZero_ = null; 18056 } 18057 18058 /// <summary>Field number for the "replacement_string" field.</summary> 18059 public const int ReplacementStringFieldNumber = 27; 18060 private readonly static string ReplacementStringDefaultValue = global::System.Text.Encoding.UTF8.GetString(global::System.Convert.FromBase64String("JHt1bmtub3dufQ=="), 0, 10); 18061 18062 private string replacementString_; 18063 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 18064 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 18065 public string ReplacementString { 18066 get { return replacementString_ ?? ReplacementStringDefaultValue; } 18067 set { 18068 replacementString_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); 18069 } 18070 } 18071 /// <summary>Gets whether the "replacement_string" field is set</summary> 18072 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 18073 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 18074 public bool HasReplacementString { 18075 get { return replacementString_ != null; } 18076 } 18077 /// <summary>Clears the value of the "replacement_string" field</summary> 18078 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 18079 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] ClearReplacementString()18080 public void ClearReplacementString() { 18081 replacementString_ = null; 18082 } 18083 18084 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 18085 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] Equals(object other)18086 public override bool Equals(object other) { 18087 return Equals(other as TestExtremeDefaultValues); 18088 } 18089 18090 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 18091 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] Equals(TestExtremeDefaultValues other)18092 public bool Equals(TestExtremeDefaultValues other) { 18093 if (ReferenceEquals(other, null)) { 18094 return false; 18095 } 18096 if (ReferenceEquals(other, this)) { 18097 return true; 18098 } 18099 if (EscapedBytes != other.EscapedBytes) return false; 18100 if (LargeUint32 != other.LargeUint32) return false; 18101 if (LargeUint64 != other.LargeUint64) return false; 18102 if (SmallInt32 != other.SmallInt32) return false; 18103 if (SmallInt64 != other.SmallInt64) return false; 18104 if (ReallySmallInt32 != other.ReallySmallInt32) return false; 18105 if (ReallySmallInt64 != other.ReallySmallInt64) return false; 18106 if (Utf8String != other.Utf8String) return false; 18107 if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(ZeroFloat, other.ZeroFloat)) return false; 18108 if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(OneFloat, other.OneFloat)) return false; 18109 if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(SmallFloat, other.SmallFloat)) return false; 18110 if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(NegativeOneFloat, other.NegativeOneFloat)) return false; 18111 if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(NegativeFloat, other.NegativeFloat)) return false; 18112 if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(LargeFloat, other.LargeFloat)) return false; 18113 if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(SmallNegativeFloat, other.SmallNegativeFloat)) return false; 18114 if (!pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.Equals(InfDouble, other.InfDouble)) return false; 18115 if (!pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.Equals(NegInfDouble, other.NegInfDouble)) return false; 18116 if (!pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.Equals(NanDouble, other.NanDouble)) return false; 18117 if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(InfFloat, other.InfFloat)) return false; 18118 if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(NegInfFloat, other.NegInfFloat)) return false; 18119 if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(NanFloat, other.NanFloat)) return false; 18120 if (CppTrigraph != other.CppTrigraph) return false; 18121 if (StringWithZero != other.StringWithZero) return false; 18122 if (BytesWithZero != other.BytesWithZero) return false; 18123 if (StringPieceWithZero != other.StringPieceWithZero) return false; 18124 if (CordWithZero != other.CordWithZero) return false; 18125 if (ReplacementString != other.ReplacementString) return false; 18126 return Equals(_unknownFields, other._unknownFields); 18127 } 18128 18129 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 18130 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] GetHashCode()18131 public override int GetHashCode() { 18132 int hash = 1; 18133 if (HasEscapedBytes) hash ^= EscapedBytes.GetHashCode(); 18134 if (HasLargeUint32) hash ^= LargeUint32.GetHashCode(); 18135 if (HasLargeUint64) hash ^= LargeUint64.GetHashCode(); 18136 if (HasSmallInt32) hash ^= SmallInt32.GetHashCode(); 18137 if (HasSmallInt64) hash ^= SmallInt64.GetHashCode(); 18138 if (HasReallySmallInt32) hash ^= ReallySmallInt32.GetHashCode(); 18139 if (HasReallySmallInt64) hash ^= ReallySmallInt64.GetHashCode(); 18140 if (HasUtf8String) hash ^= Utf8String.GetHashCode(); 18141 if (HasZeroFloat) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(ZeroFloat); 18142 if (HasOneFloat) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(OneFloat); 18143 if (HasSmallFloat) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(SmallFloat); 18144 if (HasNegativeOneFloat) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(NegativeOneFloat); 18145 if (HasNegativeFloat) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(NegativeFloat); 18146 if (HasLargeFloat) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(LargeFloat); 18147 if (HasSmallNegativeFloat) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(SmallNegativeFloat); 18148 if (HasInfDouble) hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(InfDouble); 18149 if (HasNegInfDouble) hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(NegInfDouble); 18150 if (HasNanDouble) hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(NanDouble); 18151 if (HasInfFloat) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(InfFloat); 18152 if (HasNegInfFloat) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(NegInfFloat); 18153 if (HasNanFloat) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(NanFloat); 18154 if (HasCppTrigraph) hash ^= CppTrigraph.GetHashCode(); 18155 if (HasStringWithZero) hash ^= StringWithZero.GetHashCode(); 18156 if (HasBytesWithZero) hash ^= BytesWithZero.GetHashCode(); 18157 if (HasStringPieceWithZero) hash ^= StringPieceWithZero.GetHashCode(); 18158 if (HasCordWithZero) hash ^= CordWithZero.GetHashCode(); 18159 if (HasReplacementString) hash ^= ReplacementString.GetHashCode(); 18160 if (_unknownFields != null) { 18161 hash ^= _unknownFields.GetHashCode(); 18162 } 18163 return hash; 18164 } 18165 18166 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 18167 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] ToString()18168 public override string ToString() { 18169 return pb::JsonFormatter.ToDiagnosticString(this); 18170 } 18171 18172 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 18173 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] WriteTo(pb::CodedOutputStream output)18174 public void WriteTo(pb::CodedOutputStream output) { 18175 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 18176 output.WriteRawMessage(this); 18177 #else 18178 if (HasEscapedBytes) { 18179 output.WriteRawTag(10); 18180 output.WriteBytes(EscapedBytes); 18181 } 18182 if (HasLargeUint32) { 18183 output.WriteRawTag(16); 18184 output.WriteUInt32(LargeUint32); 18185 } 18186 if (HasLargeUint64) { 18187 output.WriteRawTag(24); 18188 output.WriteUInt64(LargeUint64); 18189 } 18190 if (HasSmallInt32) { 18191 output.WriteRawTag(32); 18192 output.WriteInt32(SmallInt32); 18193 } 18194 if (HasSmallInt64) { 18195 output.WriteRawTag(40); 18196 output.WriteInt64(SmallInt64); 18197 } 18198 if (HasUtf8String) { 18199 output.WriteRawTag(50); 18200 output.WriteString(Utf8String); 18201 } 18202 if (HasZeroFloat) { 18203 output.WriteRawTag(61); 18204 output.WriteFloat(ZeroFloat); 18205 } 18206 if (HasOneFloat) { 18207 output.WriteRawTag(69); 18208 output.WriteFloat(OneFloat); 18209 } 18210 if (HasSmallFloat) { 18211 output.WriteRawTag(77); 18212 output.WriteFloat(SmallFloat); 18213 } 18214 if (HasNegativeOneFloat) { 18215 output.WriteRawTag(85); 18216 output.WriteFloat(NegativeOneFloat); 18217 } 18218 if (HasNegativeFloat) { 18219 output.WriteRawTag(93); 18220 output.WriteFloat(NegativeFloat); 18221 } 18222 if (HasLargeFloat) { 18223 output.WriteRawTag(101); 18224 output.WriteFloat(LargeFloat); 18225 } 18226 if (HasSmallNegativeFloat) { 18227 output.WriteRawTag(109); 18228 output.WriteFloat(SmallNegativeFloat); 18229 } 18230 if (HasInfDouble) { 18231 output.WriteRawTag(113); 18232 output.WriteDouble(InfDouble); 18233 } 18234 if (HasNegInfDouble) { 18235 output.WriteRawTag(121); 18236 output.WriteDouble(NegInfDouble); 18237 } 18238 if (HasNanDouble) { 18239 output.WriteRawTag(129, 1); 18240 output.WriteDouble(NanDouble); 18241 } 18242 if (HasInfFloat) { 18243 output.WriteRawTag(141, 1); 18244 output.WriteFloat(InfFloat); 18245 } 18246 if (HasNegInfFloat) { 18247 output.WriteRawTag(149, 1); 18248 output.WriteFloat(NegInfFloat); 18249 } 18250 if (HasNanFloat) { 18251 output.WriteRawTag(157, 1); 18252 output.WriteFloat(NanFloat); 18253 } 18254 if (HasCppTrigraph) { 18255 output.WriteRawTag(162, 1); 18256 output.WriteString(CppTrigraph); 18257 } 18258 if (HasReallySmallInt32) { 18259 output.WriteRawTag(168, 1); 18260 output.WriteInt32(ReallySmallInt32); 18261 } 18262 if (HasReallySmallInt64) { 18263 output.WriteRawTag(176, 1); 18264 output.WriteInt64(ReallySmallInt64); 18265 } 18266 if (HasStringWithZero) { 18267 output.WriteRawTag(186, 1); 18268 output.WriteString(StringWithZero); 18269 } 18270 if (HasBytesWithZero) { 18271 output.WriteRawTag(194, 1); 18272 output.WriteBytes(BytesWithZero); 18273 } 18274 if (HasStringPieceWithZero) { 18275 output.WriteRawTag(202, 1); 18276 output.WriteString(StringPieceWithZero); 18277 } 18278 if (HasCordWithZero) { 18279 output.WriteRawTag(210, 1); 18280 output.WriteString(CordWithZero); 18281 } 18282 if (HasReplacementString) { 18283 output.WriteRawTag(218, 1); 18284 output.WriteString(ReplacementString); 18285 } 18286 if (_unknownFields != null) { 18287 _unknownFields.WriteTo(output); 18288 } 18289 #endif 18290 } 18291 18292 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 18293 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 18294 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] IBufferMessage.InternalWriteTo(ref pb::WriteContext output)18295 void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { 18296 if (HasEscapedBytes) { 18297 output.WriteRawTag(10); 18298 output.WriteBytes(EscapedBytes); 18299 } 18300 if (HasLargeUint32) { 18301 output.WriteRawTag(16); 18302 output.WriteUInt32(LargeUint32); 18303 } 18304 if (HasLargeUint64) { 18305 output.WriteRawTag(24); 18306 output.WriteUInt64(LargeUint64); 18307 } 18308 if (HasSmallInt32) { 18309 output.WriteRawTag(32); 18310 output.WriteInt32(SmallInt32); 18311 } 18312 if (HasSmallInt64) { 18313 output.WriteRawTag(40); 18314 output.WriteInt64(SmallInt64); 18315 } 18316 if (HasUtf8String) { 18317 output.WriteRawTag(50); 18318 output.WriteString(Utf8String); 18319 } 18320 if (HasZeroFloat) { 18321 output.WriteRawTag(61); 18322 output.WriteFloat(ZeroFloat); 18323 } 18324 if (HasOneFloat) { 18325 output.WriteRawTag(69); 18326 output.WriteFloat(OneFloat); 18327 } 18328 if (HasSmallFloat) { 18329 output.WriteRawTag(77); 18330 output.WriteFloat(SmallFloat); 18331 } 18332 if (HasNegativeOneFloat) { 18333 output.WriteRawTag(85); 18334 output.WriteFloat(NegativeOneFloat); 18335 } 18336 if (HasNegativeFloat) { 18337 output.WriteRawTag(93); 18338 output.WriteFloat(NegativeFloat); 18339 } 18340 if (HasLargeFloat) { 18341 output.WriteRawTag(101); 18342 output.WriteFloat(LargeFloat); 18343 } 18344 if (HasSmallNegativeFloat) { 18345 output.WriteRawTag(109); 18346 output.WriteFloat(SmallNegativeFloat); 18347 } 18348 if (HasInfDouble) { 18349 output.WriteRawTag(113); 18350 output.WriteDouble(InfDouble); 18351 } 18352 if (HasNegInfDouble) { 18353 output.WriteRawTag(121); 18354 output.WriteDouble(NegInfDouble); 18355 } 18356 if (HasNanDouble) { 18357 output.WriteRawTag(129, 1); 18358 output.WriteDouble(NanDouble); 18359 } 18360 if (HasInfFloat) { 18361 output.WriteRawTag(141, 1); 18362 output.WriteFloat(InfFloat); 18363 } 18364 if (HasNegInfFloat) { 18365 output.WriteRawTag(149, 1); 18366 output.WriteFloat(NegInfFloat); 18367 } 18368 if (HasNanFloat) { 18369 output.WriteRawTag(157, 1); 18370 output.WriteFloat(NanFloat); 18371 } 18372 if (HasCppTrigraph) { 18373 output.WriteRawTag(162, 1); 18374 output.WriteString(CppTrigraph); 18375 } 18376 if (HasReallySmallInt32) { 18377 output.WriteRawTag(168, 1); 18378 output.WriteInt32(ReallySmallInt32); 18379 } 18380 if (HasReallySmallInt64) { 18381 output.WriteRawTag(176, 1); 18382 output.WriteInt64(ReallySmallInt64); 18383 } 18384 if (HasStringWithZero) { 18385 output.WriteRawTag(186, 1); 18386 output.WriteString(StringWithZero); 18387 } 18388 if (HasBytesWithZero) { 18389 output.WriteRawTag(194, 1); 18390 output.WriteBytes(BytesWithZero); 18391 } 18392 if (HasStringPieceWithZero) { 18393 output.WriteRawTag(202, 1); 18394 output.WriteString(StringPieceWithZero); 18395 } 18396 if (HasCordWithZero) { 18397 output.WriteRawTag(210, 1); 18398 output.WriteString(CordWithZero); 18399 } 18400 if (HasReplacementString) { 18401 output.WriteRawTag(218, 1); 18402 output.WriteString(ReplacementString); 18403 } 18404 if (_unknownFields != null) { 18405 _unknownFields.WriteTo(ref output); 18406 } 18407 } 18408 #endif 18409 18410 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 18411 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] CalculateSize()18412 public int CalculateSize() { 18413 int size = 0; 18414 if (HasEscapedBytes) { 18415 size += 1 + pb::CodedOutputStream.ComputeBytesSize(EscapedBytes); 18416 } 18417 if (HasLargeUint32) { 18418 size += 1 + pb::CodedOutputStream.ComputeUInt32Size(LargeUint32); 18419 } 18420 if (HasLargeUint64) { 18421 size += 1 + pb::CodedOutputStream.ComputeUInt64Size(LargeUint64); 18422 } 18423 if (HasSmallInt32) { 18424 size += 1 + pb::CodedOutputStream.ComputeInt32Size(SmallInt32); 18425 } 18426 if (HasSmallInt64) { 18427 size += 1 + pb::CodedOutputStream.ComputeInt64Size(SmallInt64); 18428 } 18429 if (HasReallySmallInt32) { 18430 size += 2 + pb::CodedOutputStream.ComputeInt32Size(ReallySmallInt32); 18431 } 18432 if (HasReallySmallInt64) { 18433 size += 2 + pb::CodedOutputStream.ComputeInt64Size(ReallySmallInt64); 18434 } 18435 if (HasUtf8String) { 18436 size += 1 + pb::CodedOutputStream.ComputeStringSize(Utf8String); 18437 } 18438 if (HasZeroFloat) { 18439 size += 1 + 4; 18440 } 18441 if (HasOneFloat) { 18442 size += 1 + 4; 18443 } 18444 if (HasSmallFloat) { 18445 size += 1 + 4; 18446 } 18447 if (HasNegativeOneFloat) { 18448 size += 1 + 4; 18449 } 18450 if (HasNegativeFloat) { 18451 size += 1 + 4; 18452 } 18453 if (HasLargeFloat) { 18454 size += 1 + 4; 18455 } 18456 if (HasSmallNegativeFloat) { 18457 size += 1 + 4; 18458 } 18459 if (HasInfDouble) { 18460 size += 1 + 8; 18461 } 18462 if (HasNegInfDouble) { 18463 size += 1 + 8; 18464 } 18465 if (HasNanDouble) { 18466 size += 2 + 8; 18467 } 18468 if (HasInfFloat) { 18469 size += 2 + 4; 18470 } 18471 if (HasNegInfFloat) { 18472 size += 2 + 4; 18473 } 18474 if (HasNanFloat) { 18475 size += 2 + 4; 18476 } 18477 if (HasCppTrigraph) { 18478 size += 2 + pb::CodedOutputStream.ComputeStringSize(CppTrigraph); 18479 } 18480 if (HasStringWithZero) { 18481 size += 2 + pb::CodedOutputStream.ComputeStringSize(StringWithZero); 18482 } 18483 if (HasBytesWithZero) { 18484 size += 2 + pb::CodedOutputStream.ComputeBytesSize(BytesWithZero); 18485 } 18486 if (HasStringPieceWithZero) { 18487 size += 2 + pb::CodedOutputStream.ComputeStringSize(StringPieceWithZero); 18488 } 18489 if (HasCordWithZero) { 18490 size += 2 + pb::CodedOutputStream.ComputeStringSize(CordWithZero); 18491 } 18492 if (HasReplacementString) { 18493 size += 2 + pb::CodedOutputStream.ComputeStringSize(ReplacementString); 18494 } 18495 if (_unknownFields != null) { 18496 size += _unknownFields.CalculateSize(); 18497 } 18498 return size; 18499 } 18500 18501 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 18502 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] MergeFrom(TestExtremeDefaultValues other)18503 public void MergeFrom(TestExtremeDefaultValues other) { 18504 if (other == null) { 18505 return; 18506 } 18507 if (other.HasEscapedBytes) { 18508 EscapedBytes = other.EscapedBytes; 18509 } 18510 if (other.HasLargeUint32) { 18511 LargeUint32 = other.LargeUint32; 18512 } 18513 if (other.HasLargeUint64) { 18514 LargeUint64 = other.LargeUint64; 18515 } 18516 if (other.HasSmallInt32) { 18517 SmallInt32 = other.SmallInt32; 18518 } 18519 if (other.HasSmallInt64) { 18520 SmallInt64 = other.SmallInt64; 18521 } 18522 if (other.HasReallySmallInt32) { 18523 ReallySmallInt32 = other.ReallySmallInt32; 18524 } 18525 if (other.HasReallySmallInt64) { 18526 ReallySmallInt64 = other.ReallySmallInt64; 18527 } 18528 if (other.HasUtf8String) { 18529 Utf8String = other.Utf8String; 18530 } 18531 if (other.HasZeroFloat) { 18532 ZeroFloat = other.ZeroFloat; 18533 } 18534 if (other.HasOneFloat) { 18535 OneFloat = other.OneFloat; 18536 } 18537 if (other.HasSmallFloat) { 18538 SmallFloat = other.SmallFloat; 18539 } 18540 if (other.HasNegativeOneFloat) { 18541 NegativeOneFloat = other.NegativeOneFloat; 18542 } 18543 if (other.HasNegativeFloat) { 18544 NegativeFloat = other.NegativeFloat; 18545 } 18546 if (other.HasLargeFloat) { 18547 LargeFloat = other.LargeFloat; 18548 } 18549 if (other.HasSmallNegativeFloat) { 18550 SmallNegativeFloat = other.SmallNegativeFloat; 18551 } 18552 if (other.HasInfDouble) { 18553 InfDouble = other.InfDouble; 18554 } 18555 if (other.HasNegInfDouble) { 18556 NegInfDouble = other.NegInfDouble; 18557 } 18558 if (other.HasNanDouble) { 18559 NanDouble = other.NanDouble; 18560 } 18561 if (other.HasInfFloat) { 18562 InfFloat = other.InfFloat; 18563 } 18564 if (other.HasNegInfFloat) { 18565 NegInfFloat = other.NegInfFloat; 18566 } 18567 if (other.HasNanFloat) { 18568 NanFloat = other.NanFloat; 18569 } 18570 if (other.HasCppTrigraph) { 18571 CppTrigraph = other.CppTrigraph; 18572 } 18573 if (other.HasStringWithZero) { 18574 StringWithZero = other.StringWithZero; 18575 } 18576 if (other.HasBytesWithZero) { 18577 BytesWithZero = other.BytesWithZero; 18578 } 18579 if (other.HasStringPieceWithZero) { 18580 StringPieceWithZero = other.StringPieceWithZero; 18581 } 18582 if (other.HasCordWithZero) { 18583 CordWithZero = other.CordWithZero; 18584 } 18585 if (other.HasReplacementString) { 18586 ReplacementString = other.ReplacementString; 18587 } 18588 _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); 18589 } 18590 18591 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 18592 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] MergeFrom(pb::CodedInputStream input)18593 public void MergeFrom(pb::CodedInputStream input) { 18594 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 18595 input.ReadRawMessage(this); 18596 #else 18597 uint tag; 18598 while ((tag = input.ReadTag()) != 0) { 18599 if ((tag & 7) == 4) { 18600 // Abort on any end group tag. 18601 return; 18602 } 18603 switch(tag) { 18604 default: 18605 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); 18606 break; 18607 case 10: { 18608 EscapedBytes = input.ReadBytes(); 18609 break; 18610 } 18611 case 16: { 18612 LargeUint32 = input.ReadUInt32(); 18613 break; 18614 } 18615 case 24: { 18616 LargeUint64 = input.ReadUInt64(); 18617 break; 18618 } 18619 case 32: { 18620 SmallInt32 = input.ReadInt32(); 18621 break; 18622 } 18623 case 40: { 18624 SmallInt64 = input.ReadInt64(); 18625 break; 18626 } 18627 case 50: { 18628 Utf8String = input.ReadString(); 18629 break; 18630 } 18631 case 61: { 18632 ZeroFloat = input.ReadFloat(); 18633 break; 18634 } 18635 case 69: { 18636 OneFloat = input.ReadFloat(); 18637 break; 18638 } 18639 case 77: { 18640 SmallFloat = input.ReadFloat(); 18641 break; 18642 } 18643 case 85: { 18644 NegativeOneFloat = input.ReadFloat(); 18645 break; 18646 } 18647 case 93: { 18648 NegativeFloat = input.ReadFloat(); 18649 break; 18650 } 18651 case 101: { 18652 LargeFloat = input.ReadFloat(); 18653 break; 18654 } 18655 case 109: { 18656 SmallNegativeFloat = input.ReadFloat(); 18657 break; 18658 } 18659 case 113: { 18660 InfDouble = input.ReadDouble(); 18661 break; 18662 } 18663 case 121: { 18664 NegInfDouble = input.ReadDouble(); 18665 break; 18666 } 18667 case 129: { 18668 NanDouble = input.ReadDouble(); 18669 break; 18670 } 18671 case 141: { 18672 InfFloat = input.ReadFloat(); 18673 break; 18674 } 18675 case 149: { 18676 NegInfFloat = input.ReadFloat(); 18677 break; 18678 } 18679 case 157: { 18680 NanFloat = input.ReadFloat(); 18681 break; 18682 } 18683 case 162: { 18684 CppTrigraph = input.ReadString(); 18685 break; 18686 } 18687 case 168: { 18688 ReallySmallInt32 = input.ReadInt32(); 18689 break; 18690 } 18691 case 176: { 18692 ReallySmallInt64 = input.ReadInt64(); 18693 break; 18694 } 18695 case 186: { 18696 StringWithZero = input.ReadString(); 18697 break; 18698 } 18699 case 194: { 18700 BytesWithZero = input.ReadBytes(); 18701 break; 18702 } 18703 case 202: { 18704 StringPieceWithZero = input.ReadString(); 18705 break; 18706 } 18707 case 210: { 18708 CordWithZero = input.ReadString(); 18709 break; 18710 } 18711 case 218: { 18712 ReplacementString = input.ReadString(); 18713 break; 18714 } 18715 } 18716 } 18717 #endif 18718 } 18719 18720 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 18721 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 18722 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] IBufferMessage.InternalMergeFrom(ref pb::ParseContext input)18723 void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { 18724 uint tag; 18725 while ((tag = input.ReadTag()) != 0) { 18726 if ((tag & 7) == 4) { 18727 // Abort on any end group tag. 18728 return; 18729 } 18730 switch(tag) { 18731 default: 18732 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); 18733 break; 18734 case 10: { 18735 EscapedBytes = input.ReadBytes(); 18736 break; 18737 } 18738 case 16: { 18739 LargeUint32 = input.ReadUInt32(); 18740 break; 18741 } 18742 case 24: { 18743 LargeUint64 = input.ReadUInt64(); 18744 break; 18745 } 18746 case 32: { 18747 SmallInt32 = input.ReadInt32(); 18748 break; 18749 } 18750 case 40: { 18751 SmallInt64 = input.ReadInt64(); 18752 break; 18753 } 18754 case 50: { 18755 Utf8String = input.ReadString(); 18756 break; 18757 } 18758 case 61: { 18759 ZeroFloat = input.ReadFloat(); 18760 break; 18761 } 18762 case 69: { 18763 OneFloat = input.ReadFloat(); 18764 break; 18765 } 18766 case 77: { 18767 SmallFloat = input.ReadFloat(); 18768 break; 18769 } 18770 case 85: { 18771 NegativeOneFloat = input.ReadFloat(); 18772 break; 18773 } 18774 case 93: { 18775 NegativeFloat = input.ReadFloat(); 18776 break; 18777 } 18778 case 101: { 18779 LargeFloat = input.ReadFloat(); 18780 break; 18781 } 18782 case 109: { 18783 SmallNegativeFloat = input.ReadFloat(); 18784 break; 18785 } 18786 case 113: { 18787 InfDouble = input.ReadDouble(); 18788 break; 18789 } 18790 case 121: { 18791 NegInfDouble = input.ReadDouble(); 18792 break; 18793 } 18794 case 129: { 18795 NanDouble = input.ReadDouble(); 18796 break; 18797 } 18798 case 141: { 18799 InfFloat = input.ReadFloat(); 18800 break; 18801 } 18802 case 149: { 18803 NegInfFloat = input.ReadFloat(); 18804 break; 18805 } 18806 case 157: { 18807 NanFloat = input.ReadFloat(); 18808 break; 18809 } 18810 case 162: { 18811 CppTrigraph = input.ReadString(); 18812 break; 18813 } 18814 case 168: { 18815 ReallySmallInt32 = input.ReadInt32(); 18816 break; 18817 } 18818 case 176: { 18819 ReallySmallInt64 = input.ReadInt64(); 18820 break; 18821 } 18822 case 186: { 18823 StringWithZero = input.ReadString(); 18824 break; 18825 } 18826 case 194: { 18827 BytesWithZero = input.ReadBytes(); 18828 break; 18829 } 18830 case 202: { 18831 StringPieceWithZero = input.ReadString(); 18832 break; 18833 } 18834 case 210: { 18835 CordWithZero = input.ReadString(); 18836 break; 18837 } 18838 case 218: { 18839 ReplacementString = input.ReadString(); 18840 break; 18841 } 18842 } 18843 } 18844 } 18845 #endif 18846 18847 } 18848 18849 [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] 18850 public sealed partial class SparseEnumMessage : pb::IMessage<SparseEnumMessage> 18851 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 18852 , pb::IBufferMessage 18853 #endif 18854 { 18855 private static readonly pb::MessageParser<SparseEnumMessage> _parser = new pb::MessageParser<SparseEnumMessage>(() => new SparseEnumMessage()); 18856 private pb::UnknownFieldSet _unknownFields; 18857 private int _hasBits0; 18858 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 18859 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 18860 public static pb::MessageParser<SparseEnumMessage> Parser { get { return _parser; } } 18861 18862 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 18863 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 18864 public static pbr::MessageDescriptor Descriptor { 18865 get { return global::Google.Protobuf.TestProtos.Proto2.UnittestReflection.Descriptor.MessageTypes[33]; } 18866 } 18867 18868 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 18869 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 18870 pbr::MessageDescriptor pb::IMessage.Descriptor { 18871 get { return Descriptor; } 18872 } 18873 18874 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 18875 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] SparseEnumMessage()18876 public SparseEnumMessage() { 18877 OnConstruction(); 18878 } 18879 OnConstruction()18880 partial void OnConstruction(); 18881 18882 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 18883 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] SparseEnumMessage(SparseEnumMessage other)18884 public SparseEnumMessage(SparseEnumMessage other) : this() { 18885 _hasBits0 = other._hasBits0; 18886 sparseEnum_ = other.sparseEnum_; 18887 _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); 18888 } 18889 18890 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 18891 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] Clone()18892 public SparseEnumMessage Clone() { 18893 return new SparseEnumMessage(this); 18894 } 18895 18896 /// <summary>Field number for the "sparse_enum" field.</summary> 18897 public const int SparseEnumFieldNumber = 1; 18898 private readonly static global::Google.Protobuf.TestProtos.Proto2.TestSparseEnum SparseEnumDefaultValue = global::Google.Protobuf.TestProtos.Proto2.TestSparseEnum.SparseA; 18899 18900 private global::Google.Protobuf.TestProtos.Proto2.TestSparseEnum sparseEnum_; 18901 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 18902 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 18903 public global::Google.Protobuf.TestProtos.Proto2.TestSparseEnum SparseEnum { 18904 get { if ((_hasBits0 & 1) != 0) { return sparseEnum_; } else { return SparseEnumDefaultValue; } } 18905 set { 18906 _hasBits0 |= 1; 18907 sparseEnum_ = value; 18908 } 18909 } 18910 /// <summary>Gets whether the "sparse_enum" field is set</summary> 18911 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 18912 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 18913 public bool HasSparseEnum { 18914 get { return (_hasBits0 & 1) != 0; } 18915 } 18916 /// <summary>Clears the value of the "sparse_enum" field</summary> 18917 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 18918 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] ClearSparseEnum()18919 public void ClearSparseEnum() { 18920 _hasBits0 &= ~1; 18921 } 18922 18923 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 18924 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] Equals(object other)18925 public override bool Equals(object other) { 18926 return Equals(other as SparseEnumMessage); 18927 } 18928 18929 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 18930 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] Equals(SparseEnumMessage other)18931 public bool Equals(SparseEnumMessage other) { 18932 if (ReferenceEquals(other, null)) { 18933 return false; 18934 } 18935 if (ReferenceEquals(other, this)) { 18936 return true; 18937 } 18938 if (SparseEnum != other.SparseEnum) return false; 18939 return Equals(_unknownFields, other._unknownFields); 18940 } 18941 18942 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 18943 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] GetHashCode()18944 public override int GetHashCode() { 18945 int hash = 1; 18946 if (HasSparseEnum) hash ^= SparseEnum.GetHashCode(); 18947 if (_unknownFields != null) { 18948 hash ^= _unknownFields.GetHashCode(); 18949 } 18950 return hash; 18951 } 18952 18953 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 18954 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] ToString()18955 public override string ToString() { 18956 return pb::JsonFormatter.ToDiagnosticString(this); 18957 } 18958 18959 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 18960 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] WriteTo(pb::CodedOutputStream output)18961 public void WriteTo(pb::CodedOutputStream output) { 18962 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 18963 output.WriteRawMessage(this); 18964 #else 18965 if (HasSparseEnum) { 18966 output.WriteRawTag(8); 18967 output.WriteEnum((int) SparseEnum); 18968 } 18969 if (_unknownFields != null) { 18970 _unknownFields.WriteTo(output); 18971 } 18972 #endif 18973 } 18974 18975 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 18976 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 18977 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] IBufferMessage.InternalWriteTo(ref pb::WriteContext output)18978 void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { 18979 if (HasSparseEnum) { 18980 output.WriteRawTag(8); 18981 output.WriteEnum((int) SparseEnum); 18982 } 18983 if (_unknownFields != null) { 18984 _unknownFields.WriteTo(ref output); 18985 } 18986 } 18987 #endif 18988 18989 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 18990 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] CalculateSize()18991 public int CalculateSize() { 18992 int size = 0; 18993 if (HasSparseEnum) { 18994 size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) SparseEnum); 18995 } 18996 if (_unknownFields != null) { 18997 size += _unknownFields.CalculateSize(); 18998 } 18999 return size; 19000 } 19001 19002 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 19003 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] MergeFrom(SparseEnumMessage other)19004 public void MergeFrom(SparseEnumMessage other) { 19005 if (other == null) { 19006 return; 19007 } 19008 if (other.HasSparseEnum) { 19009 SparseEnum = other.SparseEnum; 19010 } 19011 _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); 19012 } 19013 19014 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 19015 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] MergeFrom(pb::CodedInputStream input)19016 public void MergeFrom(pb::CodedInputStream input) { 19017 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 19018 input.ReadRawMessage(this); 19019 #else 19020 uint tag; 19021 while ((tag = input.ReadTag()) != 0) { 19022 if ((tag & 7) == 4) { 19023 // Abort on any end group tag. 19024 return; 19025 } 19026 switch(tag) { 19027 default: 19028 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); 19029 break; 19030 case 8: { 19031 SparseEnum = (global::Google.Protobuf.TestProtos.Proto2.TestSparseEnum) input.ReadEnum(); 19032 break; 19033 } 19034 } 19035 } 19036 #endif 19037 } 19038 19039 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 19040 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 19041 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] IBufferMessage.InternalMergeFrom(ref pb::ParseContext input)19042 void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { 19043 uint tag; 19044 while ((tag = input.ReadTag()) != 0) { 19045 if ((tag & 7) == 4) { 19046 // Abort on any end group tag. 19047 return; 19048 } 19049 switch(tag) { 19050 default: 19051 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); 19052 break; 19053 case 8: { 19054 SparseEnum = (global::Google.Protobuf.TestProtos.Proto2.TestSparseEnum) input.ReadEnum(); 19055 break; 19056 } 19057 } 19058 } 19059 } 19060 #endif 19061 19062 } 19063 19064 /// <summary> 19065 /// Test String and Bytes: string is for valid UTF-8 strings 19066 /// </summary> 19067 [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] 19068 public sealed partial class OneString : pb::IMessage<OneString> 19069 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 19070 , pb::IBufferMessage 19071 #endif 19072 { 19073 private static readonly pb::MessageParser<OneString> _parser = new pb::MessageParser<OneString>(() => new OneString()); 19074 private pb::UnknownFieldSet _unknownFields; 19075 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 19076 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 19077 public static pb::MessageParser<OneString> Parser { get { return _parser; } } 19078 19079 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 19080 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 19081 public static pbr::MessageDescriptor Descriptor { 19082 get { return global::Google.Protobuf.TestProtos.Proto2.UnittestReflection.Descriptor.MessageTypes[34]; } 19083 } 19084 19085 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 19086 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 19087 pbr::MessageDescriptor pb::IMessage.Descriptor { 19088 get { return Descriptor; } 19089 } 19090 19091 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 19092 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] OneString()19093 public OneString() { 19094 OnConstruction(); 19095 } 19096 OnConstruction()19097 partial void OnConstruction(); 19098 19099 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 19100 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] OneString(OneString other)19101 public OneString(OneString other) : this() { 19102 data_ = other.data_; 19103 _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); 19104 } 19105 19106 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 19107 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] Clone()19108 public OneString Clone() { 19109 return new OneString(this); 19110 } 19111 19112 /// <summary>Field number for the "data" field.</summary> 19113 public const int DataFieldNumber = 1; 19114 private readonly static string DataDefaultValue = ""; 19115 19116 private string data_; 19117 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 19118 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 19119 public string Data { 19120 get { return data_ ?? DataDefaultValue; } 19121 set { 19122 data_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); 19123 } 19124 } 19125 /// <summary>Gets whether the "data" field is set</summary> 19126 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 19127 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 19128 public bool HasData { 19129 get { return data_ != null; } 19130 } 19131 /// <summary>Clears the value of the "data" field</summary> 19132 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 19133 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] ClearData()19134 public void ClearData() { 19135 data_ = null; 19136 } 19137 19138 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 19139 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] Equals(object other)19140 public override bool Equals(object other) { 19141 return Equals(other as OneString); 19142 } 19143 19144 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 19145 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] Equals(OneString other)19146 public bool Equals(OneString other) { 19147 if (ReferenceEquals(other, null)) { 19148 return false; 19149 } 19150 if (ReferenceEquals(other, this)) { 19151 return true; 19152 } 19153 if (Data != other.Data) return false; 19154 return Equals(_unknownFields, other._unknownFields); 19155 } 19156 19157 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 19158 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] GetHashCode()19159 public override int GetHashCode() { 19160 int hash = 1; 19161 if (HasData) hash ^= Data.GetHashCode(); 19162 if (_unknownFields != null) { 19163 hash ^= _unknownFields.GetHashCode(); 19164 } 19165 return hash; 19166 } 19167 19168 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 19169 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] ToString()19170 public override string ToString() { 19171 return pb::JsonFormatter.ToDiagnosticString(this); 19172 } 19173 19174 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 19175 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] WriteTo(pb::CodedOutputStream output)19176 public void WriteTo(pb::CodedOutputStream output) { 19177 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 19178 output.WriteRawMessage(this); 19179 #else 19180 if (HasData) { 19181 output.WriteRawTag(10); 19182 output.WriteString(Data); 19183 } 19184 if (_unknownFields != null) { 19185 _unknownFields.WriteTo(output); 19186 } 19187 #endif 19188 } 19189 19190 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 19191 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 19192 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] IBufferMessage.InternalWriteTo(ref pb::WriteContext output)19193 void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { 19194 if (HasData) { 19195 output.WriteRawTag(10); 19196 output.WriteString(Data); 19197 } 19198 if (_unknownFields != null) { 19199 _unknownFields.WriteTo(ref output); 19200 } 19201 } 19202 #endif 19203 19204 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 19205 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] CalculateSize()19206 public int CalculateSize() { 19207 int size = 0; 19208 if (HasData) { 19209 size += 1 + pb::CodedOutputStream.ComputeStringSize(Data); 19210 } 19211 if (_unknownFields != null) { 19212 size += _unknownFields.CalculateSize(); 19213 } 19214 return size; 19215 } 19216 19217 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 19218 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] MergeFrom(OneString other)19219 public void MergeFrom(OneString other) { 19220 if (other == null) { 19221 return; 19222 } 19223 if (other.HasData) { 19224 Data = other.Data; 19225 } 19226 _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); 19227 } 19228 19229 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 19230 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] MergeFrom(pb::CodedInputStream input)19231 public void MergeFrom(pb::CodedInputStream input) { 19232 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 19233 input.ReadRawMessage(this); 19234 #else 19235 uint tag; 19236 while ((tag = input.ReadTag()) != 0) { 19237 if ((tag & 7) == 4) { 19238 // Abort on any end group tag. 19239 return; 19240 } 19241 switch(tag) { 19242 default: 19243 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); 19244 break; 19245 case 10: { 19246 Data = input.ReadString(); 19247 break; 19248 } 19249 } 19250 } 19251 #endif 19252 } 19253 19254 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 19255 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 19256 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] IBufferMessage.InternalMergeFrom(ref pb::ParseContext input)19257 void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { 19258 uint tag; 19259 while ((tag = input.ReadTag()) != 0) { 19260 if ((tag & 7) == 4) { 19261 // Abort on any end group tag. 19262 return; 19263 } 19264 switch(tag) { 19265 default: 19266 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); 19267 break; 19268 case 10: { 19269 Data = input.ReadString(); 19270 break; 19271 } 19272 } 19273 } 19274 } 19275 #endif 19276 19277 } 19278 19279 [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] 19280 public sealed partial class MoreString : pb::IMessage<MoreString> 19281 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 19282 , pb::IBufferMessage 19283 #endif 19284 { 19285 private static readonly pb::MessageParser<MoreString> _parser = new pb::MessageParser<MoreString>(() => new MoreString()); 19286 private pb::UnknownFieldSet _unknownFields; 19287 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 19288 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 19289 public static pb::MessageParser<MoreString> Parser { get { return _parser; } } 19290 19291 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 19292 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 19293 public static pbr::MessageDescriptor Descriptor { 19294 get { return global::Google.Protobuf.TestProtos.Proto2.UnittestReflection.Descriptor.MessageTypes[35]; } 19295 } 19296 19297 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 19298 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 19299 pbr::MessageDescriptor pb::IMessage.Descriptor { 19300 get { return Descriptor; } 19301 } 19302 19303 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 19304 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] MoreString()19305 public MoreString() { 19306 OnConstruction(); 19307 } 19308 OnConstruction()19309 partial void OnConstruction(); 19310 19311 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 19312 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] MoreString(MoreString other)19313 public MoreString(MoreString other) : this() { 19314 data_ = other.data_.Clone(); 19315 _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); 19316 } 19317 19318 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 19319 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] Clone()19320 public MoreString Clone() { 19321 return new MoreString(this); 19322 } 19323 19324 /// <summary>Field number for the "data" field.</summary> 19325 public const int DataFieldNumber = 1; 19326 private static readonly pb::FieldCodec<string> _repeated_data_codec 19327 = pb::FieldCodec.ForString(10); 19328 private readonly pbc::RepeatedField<string> data_ = new pbc::RepeatedField<string>(); 19329 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 19330 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 19331 public pbc::RepeatedField<string> Data { 19332 get { return data_; } 19333 } 19334 19335 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 19336 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] Equals(object other)19337 public override bool Equals(object other) { 19338 return Equals(other as MoreString); 19339 } 19340 19341 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 19342 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] Equals(MoreString other)19343 public bool Equals(MoreString other) { 19344 if (ReferenceEquals(other, null)) { 19345 return false; 19346 } 19347 if (ReferenceEquals(other, this)) { 19348 return true; 19349 } 19350 if(!data_.Equals(other.data_)) return false; 19351 return Equals(_unknownFields, other._unknownFields); 19352 } 19353 19354 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 19355 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] GetHashCode()19356 public override int GetHashCode() { 19357 int hash = 1; 19358 hash ^= data_.GetHashCode(); 19359 if (_unknownFields != null) { 19360 hash ^= _unknownFields.GetHashCode(); 19361 } 19362 return hash; 19363 } 19364 19365 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 19366 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] ToString()19367 public override string ToString() { 19368 return pb::JsonFormatter.ToDiagnosticString(this); 19369 } 19370 19371 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 19372 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] WriteTo(pb::CodedOutputStream output)19373 public void WriteTo(pb::CodedOutputStream output) { 19374 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 19375 output.WriteRawMessage(this); 19376 #else 19377 data_.WriteTo(output, _repeated_data_codec); 19378 if (_unknownFields != null) { 19379 _unknownFields.WriteTo(output); 19380 } 19381 #endif 19382 } 19383 19384 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 19385 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 19386 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] IBufferMessage.InternalWriteTo(ref pb::WriteContext output)19387 void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { 19388 data_.WriteTo(ref output, _repeated_data_codec); 19389 if (_unknownFields != null) { 19390 _unknownFields.WriteTo(ref output); 19391 } 19392 } 19393 #endif 19394 19395 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 19396 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] CalculateSize()19397 public int CalculateSize() { 19398 int size = 0; 19399 size += data_.CalculateSize(_repeated_data_codec); 19400 if (_unknownFields != null) { 19401 size += _unknownFields.CalculateSize(); 19402 } 19403 return size; 19404 } 19405 19406 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 19407 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] MergeFrom(MoreString other)19408 public void MergeFrom(MoreString other) { 19409 if (other == null) { 19410 return; 19411 } 19412 data_.Add(other.data_); 19413 _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); 19414 } 19415 19416 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 19417 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] MergeFrom(pb::CodedInputStream input)19418 public void MergeFrom(pb::CodedInputStream input) { 19419 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 19420 input.ReadRawMessage(this); 19421 #else 19422 uint tag; 19423 while ((tag = input.ReadTag()) != 0) { 19424 if ((tag & 7) == 4) { 19425 // Abort on any end group tag. 19426 return; 19427 } 19428 switch(tag) { 19429 default: 19430 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); 19431 break; 19432 case 10: { 19433 data_.AddEntriesFrom(input, _repeated_data_codec); 19434 break; 19435 } 19436 } 19437 } 19438 #endif 19439 } 19440 19441 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 19442 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 19443 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] IBufferMessage.InternalMergeFrom(ref pb::ParseContext input)19444 void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { 19445 uint tag; 19446 while ((tag = input.ReadTag()) != 0) { 19447 if ((tag & 7) == 4) { 19448 // Abort on any end group tag. 19449 return; 19450 } 19451 switch(tag) { 19452 default: 19453 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); 19454 break; 19455 case 10: { 19456 data_.AddEntriesFrom(ref input, _repeated_data_codec); 19457 break; 19458 } 19459 } 19460 } 19461 } 19462 #endif 19463 19464 } 19465 19466 [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] 19467 public sealed partial class OneBytes : pb::IMessage<OneBytes> 19468 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 19469 , pb::IBufferMessage 19470 #endif 19471 { 19472 private static readonly pb::MessageParser<OneBytes> _parser = new pb::MessageParser<OneBytes>(() => new OneBytes()); 19473 private pb::UnknownFieldSet _unknownFields; 19474 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 19475 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 19476 public static pb::MessageParser<OneBytes> Parser { get { return _parser; } } 19477 19478 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 19479 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 19480 public static pbr::MessageDescriptor Descriptor { 19481 get { return global::Google.Protobuf.TestProtos.Proto2.UnittestReflection.Descriptor.MessageTypes[36]; } 19482 } 19483 19484 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 19485 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 19486 pbr::MessageDescriptor pb::IMessage.Descriptor { 19487 get { return Descriptor; } 19488 } 19489 19490 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 19491 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] OneBytes()19492 public OneBytes() { 19493 OnConstruction(); 19494 } 19495 OnConstruction()19496 partial void OnConstruction(); 19497 19498 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 19499 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] OneBytes(OneBytes other)19500 public OneBytes(OneBytes other) : this() { 19501 data_ = other.data_; 19502 _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); 19503 } 19504 19505 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 19506 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] Clone()19507 public OneBytes Clone() { 19508 return new OneBytes(this); 19509 } 19510 19511 /// <summary>Field number for the "data" field.</summary> 19512 public const int DataFieldNumber = 1; 19513 private readonly static pb::ByteString DataDefaultValue = pb::ByteString.Empty; 19514 19515 private pb::ByteString data_; 19516 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 19517 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 19518 public pb::ByteString Data { 19519 get { return data_ ?? DataDefaultValue; } 19520 set { 19521 data_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); 19522 } 19523 } 19524 /// <summary>Gets whether the "data" field is set</summary> 19525 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 19526 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 19527 public bool HasData { 19528 get { return data_ != null; } 19529 } 19530 /// <summary>Clears the value of the "data" field</summary> 19531 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 19532 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] ClearData()19533 public void ClearData() { 19534 data_ = null; 19535 } 19536 19537 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 19538 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] Equals(object other)19539 public override bool Equals(object other) { 19540 return Equals(other as OneBytes); 19541 } 19542 19543 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 19544 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] Equals(OneBytes other)19545 public bool Equals(OneBytes other) { 19546 if (ReferenceEquals(other, null)) { 19547 return false; 19548 } 19549 if (ReferenceEquals(other, this)) { 19550 return true; 19551 } 19552 if (Data != other.Data) return false; 19553 return Equals(_unknownFields, other._unknownFields); 19554 } 19555 19556 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 19557 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] GetHashCode()19558 public override int GetHashCode() { 19559 int hash = 1; 19560 if (HasData) hash ^= Data.GetHashCode(); 19561 if (_unknownFields != null) { 19562 hash ^= _unknownFields.GetHashCode(); 19563 } 19564 return hash; 19565 } 19566 19567 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 19568 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] ToString()19569 public override string ToString() { 19570 return pb::JsonFormatter.ToDiagnosticString(this); 19571 } 19572 19573 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 19574 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] WriteTo(pb::CodedOutputStream output)19575 public void WriteTo(pb::CodedOutputStream output) { 19576 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 19577 output.WriteRawMessage(this); 19578 #else 19579 if (HasData) { 19580 output.WriteRawTag(10); 19581 output.WriteBytes(Data); 19582 } 19583 if (_unknownFields != null) { 19584 _unknownFields.WriteTo(output); 19585 } 19586 #endif 19587 } 19588 19589 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 19590 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 19591 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] IBufferMessage.InternalWriteTo(ref pb::WriteContext output)19592 void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { 19593 if (HasData) { 19594 output.WriteRawTag(10); 19595 output.WriteBytes(Data); 19596 } 19597 if (_unknownFields != null) { 19598 _unknownFields.WriteTo(ref output); 19599 } 19600 } 19601 #endif 19602 19603 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 19604 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] CalculateSize()19605 public int CalculateSize() { 19606 int size = 0; 19607 if (HasData) { 19608 size += 1 + pb::CodedOutputStream.ComputeBytesSize(Data); 19609 } 19610 if (_unknownFields != null) { 19611 size += _unknownFields.CalculateSize(); 19612 } 19613 return size; 19614 } 19615 19616 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 19617 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] MergeFrom(OneBytes other)19618 public void MergeFrom(OneBytes other) { 19619 if (other == null) { 19620 return; 19621 } 19622 if (other.HasData) { 19623 Data = other.Data; 19624 } 19625 _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); 19626 } 19627 19628 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 19629 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] MergeFrom(pb::CodedInputStream input)19630 public void MergeFrom(pb::CodedInputStream input) { 19631 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 19632 input.ReadRawMessage(this); 19633 #else 19634 uint tag; 19635 while ((tag = input.ReadTag()) != 0) { 19636 if ((tag & 7) == 4) { 19637 // Abort on any end group tag. 19638 return; 19639 } 19640 switch(tag) { 19641 default: 19642 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); 19643 break; 19644 case 10: { 19645 Data = input.ReadBytes(); 19646 break; 19647 } 19648 } 19649 } 19650 #endif 19651 } 19652 19653 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 19654 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 19655 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] IBufferMessage.InternalMergeFrom(ref pb::ParseContext input)19656 void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { 19657 uint tag; 19658 while ((tag = input.ReadTag()) != 0) { 19659 if ((tag & 7) == 4) { 19660 // Abort on any end group tag. 19661 return; 19662 } 19663 switch(tag) { 19664 default: 19665 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); 19666 break; 19667 case 10: { 19668 Data = input.ReadBytes(); 19669 break; 19670 } 19671 } 19672 } 19673 } 19674 #endif 19675 19676 } 19677 19678 [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] 19679 public sealed partial class MoreBytes : pb::IMessage<MoreBytes> 19680 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 19681 , pb::IBufferMessage 19682 #endif 19683 { 19684 private static readonly pb::MessageParser<MoreBytes> _parser = new pb::MessageParser<MoreBytes>(() => new MoreBytes()); 19685 private pb::UnknownFieldSet _unknownFields; 19686 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 19687 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 19688 public static pb::MessageParser<MoreBytes> Parser { get { return _parser; } } 19689 19690 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 19691 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 19692 public static pbr::MessageDescriptor Descriptor { 19693 get { return global::Google.Protobuf.TestProtos.Proto2.UnittestReflection.Descriptor.MessageTypes[37]; } 19694 } 19695 19696 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 19697 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 19698 pbr::MessageDescriptor pb::IMessage.Descriptor { 19699 get { return Descriptor; } 19700 } 19701 19702 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 19703 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] MoreBytes()19704 public MoreBytes() { 19705 OnConstruction(); 19706 } 19707 OnConstruction()19708 partial void OnConstruction(); 19709 19710 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 19711 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] MoreBytes(MoreBytes other)19712 public MoreBytes(MoreBytes other) : this() { 19713 data_ = other.data_.Clone(); 19714 _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); 19715 } 19716 19717 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 19718 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] Clone()19719 public MoreBytes Clone() { 19720 return new MoreBytes(this); 19721 } 19722 19723 /// <summary>Field number for the "data" field.</summary> 19724 public const int DataFieldNumber = 1; 19725 private static readonly pb::FieldCodec<pb::ByteString> _repeated_data_codec 19726 = pb::FieldCodec.ForBytes(10); 19727 private readonly pbc::RepeatedField<pb::ByteString> data_ = new pbc::RepeatedField<pb::ByteString>(); 19728 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 19729 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 19730 public pbc::RepeatedField<pb::ByteString> Data { 19731 get { return data_; } 19732 } 19733 19734 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 19735 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] Equals(object other)19736 public override bool Equals(object other) { 19737 return Equals(other as MoreBytes); 19738 } 19739 19740 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 19741 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] Equals(MoreBytes other)19742 public bool Equals(MoreBytes other) { 19743 if (ReferenceEquals(other, null)) { 19744 return false; 19745 } 19746 if (ReferenceEquals(other, this)) { 19747 return true; 19748 } 19749 if(!data_.Equals(other.data_)) return false; 19750 return Equals(_unknownFields, other._unknownFields); 19751 } 19752 19753 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 19754 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] GetHashCode()19755 public override int GetHashCode() { 19756 int hash = 1; 19757 hash ^= data_.GetHashCode(); 19758 if (_unknownFields != null) { 19759 hash ^= _unknownFields.GetHashCode(); 19760 } 19761 return hash; 19762 } 19763 19764 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 19765 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] ToString()19766 public override string ToString() { 19767 return pb::JsonFormatter.ToDiagnosticString(this); 19768 } 19769 19770 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 19771 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] WriteTo(pb::CodedOutputStream output)19772 public void WriteTo(pb::CodedOutputStream output) { 19773 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 19774 output.WriteRawMessage(this); 19775 #else 19776 data_.WriteTo(output, _repeated_data_codec); 19777 if (_unknownFields != null) { 19778 _unknownFields.WriteTo(output); 19779 } 19780 #endif 19781 } 19782 19783 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 19784 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 19785 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] IBufferMessage.InternalWriteTo(ref pb::WriteContext output)19786 void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { 19787 data_.WriteTo(ref output, _repeated_data_codec); 19788 if (_unknownFields != null) { 19789 _unknownFields.WriteTo(ref output); 19790 } 19791 } 19792 #endif 19793 19794 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 19795 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] CalculateSize()19796 public int CalculateSize() { 19797 int size = 0; 19798 size += data_.CalculateSize(_repeated_data_codec); 19799 if (_unknownFields != null) { 19800 size += _unknownFields.CalculateSize(); 19801 } 19802 return size; 19803 } 19804 19805 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 19806 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] MergeFrom(MoreBytes other)19807 public void MergeFrom(MoreBytes other) { 19808 if (other == null) { 19809 return; 19810 } 19811 data_.Add(other.data_); 19812 _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); 19813 } 19814 19815 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 19816 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] MergeFrom(pb::CodedInputStream input)19817 public void MergeFrom(pb::CodedInputStream input) { 19818 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 19819 input.ReadRawMessage(this); 19820 #else 19821 uint tag; 19822 while ((tag = input.ReadTag()) != 0) { 19823 if ((tag & 7) == 4) { 19824 // Abort on any end group tag. 19825 return; 19826 } 19827 switch(tag) { 19828 default: 19829 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); 19830 break; 19831 case 10: { 19832 data_.AddEntriesFrom(input, _repeated_data_codec); 19833 break; 19834 } 19835 } 19836 } 19837 #endif 19838 } 19839 19840 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 19841 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 19842 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] IBufferMessage.InternalMergeFrom(ref pb::ParseContext input)19843 void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { 19844 uint tag; 19845 while ((tag = input.ReadTag()) != 0) { 19846 if ((tag & 7) == 4) { 19847 // Abort on any end group tag. 19848 return; 19849 } 19850 switch(tag) { 19851 default: 19852 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); 19853 break; 19854 case 10: { 19855 data_.AddEntriesFrom(ref input, _repeated_data_codec); 19856 break; 19857 } 19858 } 19859 } 19860 } 19861 #endif 19862 19863 } 19864 19865 /// <summary> 19866 /// Test int32, uint32, int64, uint64, and bool are all compatible 19867 /// </summary> 19868 [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] 19869 public sealed partial class Int32Message : pb::IMessage<Int32Message> 19870 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 19871 , pb::IBufferMessage 19872 #endif 19873 { 19874 private static readonly pb::MessageParser<Int32Message> _parser = new pb::MessageParser<Int32Message>(() => new Int32Message()); 19875 private pb::UnknownFieldSet _unknownFields; 19876 private int _hasBits0; 19877 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 19878 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 19879 public static pb::MessageParser<Int32Message> Parser { get { return _parser; } } 19880 19881 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 19882 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 19883 public static pbr::MessageDescriptor Descriptor { 19884 get { return global::Google.Protobuf.TestProtos.Proto2.UnittestReflection.Descriptor.MessageTypes[38]; } 19885 } 19886 19887 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 19888 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 19889 pbr::MessageDescriptor pb::IMessage.Descriptor { 19890 get { return Descriptor; } 19891 } 19892 19893 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 19894 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] Int32Message()19895 public Int32Message() { 19896 OnConstruction(); 19897 } 19898 OnConstruction()19899 partial void OnConstruction(); 19900 19901 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 19902 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] Int32Message(Int32Message other)19903 public Int32Message(Int32Message other) : this() { 19904 _hasBits0 = other._hasBits0; 19905 data_ = other.data_; 19906 _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); 19907 } 19908 19909 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 19910 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] Clone()19911 public Int32Message Clone() { 19912 return new Int32Message(this); 19913 } 19914 19915 /// <summary>Field number for the "data" field.</summary> 19916 public const int DataFieldNumber = 1; 19917 private readonly static int DataDefaultValue = 0; 19918 19919 private int data_; 19920 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 19921 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 19922 public int Data { 19923 get { if ((_hasBits0 & 1) != 0) { return data_; } else { return DataDefaultValue; } } 19924 set { 19925 _hasBits0 |= 1; 19926 data_ = value; 19927 } 19928 } 19929 /// <summary>Gets whether the "data" field is set</summary> 19930 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 19931 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 19932 public bool HasData { 19933 get { return (_hasBits0 & 1) != 0; } 19934 } 19935 /// <summary>Clears the value of the "data" field</summary> 19936 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 19937 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] ClearData()19938 public void ClearData() { 19939 _hasBits0 &= ~1; 19940 } 19941 19942 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 19943 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] Equals(object other)19944 public override bool Equals(object other) { 19945 return Equals(other as Int32Message); 19946 } 19947 19948 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 19949 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] Equals(Int32Message other)19950 public bool Equals(Int32Message other) { 19951 if (ReferenceEquals(other, null)) { 19952 return false; 19953 } 19954 if (ReferenceEquals(other, this)) { 19955 return true; 19956 } 19957 if (Data != other.Data) return false; 19958 return Equals(_unknownFields, other._unknownFields); 19959 } 19960 19961 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 19962 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] GetHashCode()19963 public override int GetHashCode() { 19964 int hash = 1; 19965 if (HasData) hash ^= Data.GetHashCode(); 19966 if (_unknownFields != null) { 19967 hash ^= _unknownFields.GetHashCode(); 19968 } 19969 return hash; 19970 } 19971 19972 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 19973 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] ToString()19974 public override string ToString() { 19975 return pb::JsonFormatter.ToDiagnosticString(this); 19976 } 19977 19978 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 19979 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] WriteTo(pb::CodedOutputStream output)19980 public void WriteTo(pb::CodedOutputStream output) { 19981 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 19982 output.WriteRawMessage(this); 19983 #else 19984 if (HasData) { 19985 output.WriteRawTag(8); 19986 output.WriteInt32(Data); 19987 } 19988 if (_unknownFields != null) { 19989 _unknownFields.WriteTo(output); 19990 } 19991 #endif 19992 } 19993 19994 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 19995 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 19996 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] IBufferMessage.InternalWriteTo(ref pb::WriteContext output)19997 void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { 19998 if (HasData) { 19999 output.WriteRawTag(8); 20000 output.WriteInt32(Data); 20001 } 20002 if (_unknownFields != null) { 20003 _unknownFields.WriteTo(ref output); 20004 } 20005 } 20006 #endif 20007 20008 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 20009 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] CalculateSize()20010 public int CalculateSize() { 20011 int size = 0; 20012 if (HasData) { 20013 size += 1 + pb::CodedOutputStream.ComputeInt32Size(Data); 20014 } 20015 if (_unknownFields != null) { 20016 size += _unknownFields.CalculateSize(); 20017 } 20018 return size; 20019 } 20020 20021 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 20022 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] MergeFrom(Int32Message other)20023 public void MergeFrom(Int32Message other) { 20024 if (other == null) { 20025 return; 20026 } 20027 if (other.HasData) { 20028 Data = other.Data; 20029 } 20030 _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); 20031 } 20032 20033 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 20034 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] MergeFrom(pb::CodedInputStream input)20035 public void MergeFrom(pb::CodedInputStream input) { 20036 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 20037 input.ReadRawMessage(this); 20038 #else 20039 uint tag; 20040 while ((tag = input.ReadTag()) != 0) { 20041 if ((tag & 7) == 4) { 20042 // Abort on any end group tag. 20043 return; 20044 } 20045 switch(tag) { 20046 default: 20047 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); 20048 break; 20049 case 8: { 20050 Data = input.ReadInt32(); 20051 break; 20052 } 20053 } 20054 } 20055 #endif 20056 } 20057 20058 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 20059 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 20060 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] IBufferMessage.InternalMergeFrom(ref pb::ParseContext input)20061 void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { 20062 uint tag; 20063 while ((tag = input.ReadTag()) != 0) { 20064 if ((tag & 7) == 4) { 20065 // Abort on any end group tag. 20066 return; 20067 } 20068 switch(tag) { 20069 default: 20070 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); 20071 break; 20072 case 8: { 20073 Data = input.ReadInt32(); 20074 break; 20075 } 20076 } 20077 } 20078 } 20079 #endif 20080 20081 } 20082 20083 [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] 20084 public sealed partial class Uint32Message : pb::IMessage<Uint32Message> 20085 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 20086 , pb::IBufferMessage 20087 #endif 20088 { 20089 private static readonly pb::MessageParser<Uint32Message> _parser = new pb::MessageParser<Uint32Message>(() => new Uint32Message()); 20090 private pb::UnknownFieldSet _unknownFields; 20091 private int _hasBits0; 20092 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 20093 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 20094 public static pb::MessageParser<Uint32Message> Parser { get { return _parser; } } 20095 20096 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 20097 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 20098 public static pbr::MessageDescriptor Descriptor { 20099 get { return global::Google.Protobuf.TestProtos.Proto2.UnittestReflection.Descriptor.MessageTypes[39]; } 20100 } 20101 20102 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 20103 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 20104 pbr::MessageDescriptor pb::IMessage.Descriptor { 20105 get { return Descriptor; } 20106 } 20107 20108 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 20109 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] Uint32Message()20110 public Uint32Message() { 20111 OnConstruction(); 20112 } 20113 OnConstruction()20114 partial void OnConstruction(); 20115 20116 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 20117 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] Uint32Message(Uint32Message other)20118 public Uint32Message(Uint32Message other) : this() { 20119 _hasBits0 = other._hasBits0; 20120 data_ = other.data_; 20121 _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); 20122 } 20123 20124 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 20125 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] Clone()20126 public Uint32Message Clone() { 20127 return new Uint32Message(this); 20128 } 20129 20130 /// <summary>Field number for the "data" field.</summary> 20131 public const int DataFieldNumber = 1; 20132 private readonly static uint DataDefaultValue = 0; 20133 20134 private uint data_; 20135 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 20136 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 20137 public uint Data { 20138 get { if ((_hasBits0 & 1) != 0) { return data_; } else { return DataDefaultValue; } } 20139 set { 20140 _hasBits0 |= 1; 20141 data_ = value; 20142 } 20143 } 20144 /// <summary>Gets whether the "data" field is set</summary> 20145 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 20146 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 20147 public bool HasData { 20148 get { return (_hasBits0 & 1) != 0; } 20149 } 20150 /// <summary>Clears the value of the "data" field</summary> 20151 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 20152 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] ClearData()20153 public void ClearData() { 20154 _hasBits0 &= ~1; 20155 } 20156 20157 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 20158 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] Equals(object other)20159 public override bool Equals(object other) { 20160 return Equals(other as Uint32Message); 20161 } 20162 20163 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 20164 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] Equals(Uint32Message other)20165 public bool Equals(Uint32Message other) { 20166 if (ReferenceEquals(other, null)) { 20167 return false; 20168 } 20169 if (ReferenceEquals(other, this)) { 20170 return true; 20171 } 20172 if (Data != other.Data) return false; 20173 return Equals(_unknownFields, other._unknownFields); 20174 } 20175 20176 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 20177 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] GetHashCode()20178 public override int GetHashCode() { 20179 int hash = 1; 20180 if (HasData) hash ^= Data.GetHashCode(); 20181 if (_unknownFields != null) { 20182 hash ^= _unknownFields.GetHashCode(); 20183 } 20184 return hash; 20185 } 20186 20187 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 20188 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] ToString()20189 public override string ToString() { 20190 return pb::JsonFormatter.ToDiagnosticString(this); 20191 } 20192 20193 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 20194 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] WriteTo(pb::CodedOutputStream output)20195 public void WriteTo(pb::CodedOutputStream output) { 20196 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 20197 output.WriteRawMessage(this); 20198 #else 20199 if (HasData) { 20200 output.WriteRawTag(8); 20201 output.WriteUInt32(Data); 20202 } 20203 if (_unknownFields != null) { 20204 _unknownFields.WriteTo(output); 20205 } 20206 #endif 20207 } 20208 20209 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 20210 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 20211 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] IBufferMessage.InternalWriteTo(ref pb::WriteContext output)20212 void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { 20213 if (HasData) { 20214 output.WriteRawTag(8); 20215 output.WriteUInt32(Data); 20216 } 20217 if (_unknownFields != null) { 20218 _unknownFields.WriteTo(ref output); 20219 } 20220 } 20221 #endif 20222 20223 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 20224 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] CalculateSize()20225 public int CalculateSize() { 20226 int size = 0; 20227 if (HasData) { 20228 size += 1 + pb::CodedOutputStream.ComputeUInt32Size(Data); 20229 } 20230 if (_unknownFields != null) { 20231 size += _unknownFields.CalculateSize(); 20232 } 20233 return size; 20234 } 20235 20236 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 20237 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] MergeFrom(Uint32Message other)20238 public void MergeFrom(Uint32Message other) { 20239 if (other == null) { 20240 return; 20241 } 20242 if (other.HasData) { 20243 Data = other.Data; 20244 } 20245 _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); 20246 } 20247 20248 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 20249 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] MergeFrom(pb::CodedInputStream input)20250 public void MergeFrom(pb::CodedInputStream input) { 20251 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 20252 input.ReadRawMessage(this); 20253 #else 20254 uint tag; 20255 while ((tag = input.ReadTag()) != 0) { 20256 if ((tag & 7) == 4) { 20257 // Abort on any end group tag. 20258 return; 20259 } 20260 switch(tag) { 20261 default: 20262 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); 20263 break; 20264 case 8: { 20265 Data = input.ReadUInt32(); 20266 break; 20267 } 20268 } 20269 } 20270 #endif 20271 } 20272 20273 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 20274 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 20275 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] IBufferMessage.InternalMergeFrom(ref pb::ParseContext input)20276 void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { 20277 uint tag; 20278 while ((tag = input.ReadTag()) != 0) { 20279 if ((tag & 7) == 4) { 20280 // Abort on any end group tag. 20281 return; 20282 } 20283 switch(tag) { 20284 default: 20285 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); 20286 break; 20287 case 8: { 20288 Data = input.ReadUInt32(); 20289 break; 20290 } 20291 } 20292 } 20293 } 20294 #endif 20295 20296 } 20297 20298 [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] 20299 public sealed partial class Int64Message : pb::IMessage<Int64Message> 20300 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 20301 , pb::IBufferMessage 20302 #endif 20303 { 20304 private static readonly pb::MessageParser<Int64Message> _parser = new pb::MessageParser<Int64Message>(() => new Int64Message()); 20305 private pb::UnknownFieldSet _unknownFields; 20306 private int _hasBits0; 20307 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 20308 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 20309 public static pb::MessageParser<Int64Message> Parser { get { return _parser; } } 20310 20311 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 20312 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 20313 public static pbr::MessageDescriptor Descriptor { 20314 get { return global::Google.Protobuf.TestProtos.Proto2.UnittestReflection.Descriptor.MessageTypes[40]; } 20315 } 20316 20317 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 20318 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 20319 pbr::MessageDescriptor pb::IMessage.Descriptor { 20320 get { return Descriptor; } 20321 } 20322 20323 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 20324 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] Int64Message()20325 public Int64Message() { 20326 OnConstruction(); 20327 } 20328 OnConstruction()20329 partial void OnConstruction(); 20330 20331 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 20332 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] Int64Message(Int64Message other)20333 public Int64Message(Int64Message other) : this() { 20334 _hasBits0 = other._hasBits0; 20335 data_ = other.data_; 20336 _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); 20337 } 20338 20339 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 20340 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] Clone()20341 public Int64Message Clone() { 20342 return new Int64Message(this); 20343 } 20344 20345 /// <summary>Field number for the "data" field.</summary> 20346 public const int DataFieldNumber = 1; 20347 private readonly static long DataDefaultValue = 0L; 20348 20349 private long data_; 20350 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 20351 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 20352 public long Data { 20353 get { if ((_hasBits0 & 1) != 0) { return data_; } else { return DataDefaultValue; } } 20354 set { 20355 _hasBits0 |= 1; 20356 data_ = value; 20357 } 20358 } 20359 /// <summary>Gets whether the "data" field is set</summary> 20360 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 20361 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 20362 public bool HasData { 20363 get { return (_hasBits0 & 1) != 0; } 20364 } 20365 /// <summary>Clears the value of the "data" field</summary> 20366 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 20367 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] ClearData()20368 public void ClearData() { 20369 _hasBits0 &= ~1; 20370 } 20371 20372 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 20373 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] Equals(object other)20374 public override bool Equals(object other) { 20375 return Equals(other as Int64Message); 20376 } 20377 20378 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 20379 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] Equals(Int64Message other)20380 public bool Equals(Int64Message other) { 20381 if (ReferenceEquals(other, null)) { 20382 return false; 20383 } 20384 if (ReferenceEquals(other, this)) { 20385 return true; 20386 } 20387 if (Data != other.Data) return false; 20388 return Equals(_unknownFields, other._unknownFields); 20389 } 20390 20391 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 20392 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] GetHashCode()20393 public override int GetHashCode() { 20394 int hash = 1; 20395 if (HasData) hash ^= Data.GetHashCode(); 20396 if (_unknownFields != null) { 20397 hash ^= _unknownFields.GetHashCode(); 20398 } 20399 return hash; 20400 } 20401 20402 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 20403 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] ToString()20404 public override string ToString() { 20405 return pb::JsonFormatter.ToDiagnosticString(this); 20406 } 20407 20408 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 20409 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] WriteTo(pb::CodedOutputStream output)20410 public void WriteTo(pb::CodedOutputStream output) { 20411 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 20412 output.WriteRawMessage(this); 20413 #else 20414 if (HasData) { 20415 output.WriteRawTag(8); 20416 output.WriteInt64(Data); 20417 } 20418 if (_unknownFields != null) { 20419 _unknownFields.WriteTo(output); 20420 } 20421 #endif 20422 } 20423 20424 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 20425 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 20426 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] IBufferMessage.InternalWriteTo(ref pb::WriteContext output)20427 void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { 20428 if (HasData) { 20429 output.WriteRawTag(8); 20430 output.WriteInt64(Data); 20431 } 20432 if (_unknownFields != null) { 20433 _unknownFields.WriteTo(ref output); 20434 } 20435 } 20436 #endif 20437 20438 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 20439 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] CalculateSize()20440 public int CalculateSize() { 20441 int size = 0; 20442 if (HasData) { 20443 size += 1 + pb::CodedOutputStream.ComputeInt64Size(Data); 20444 } 20445 if (_unknownFields != null) { 20446 size += _unknownFields.CalculateSize(); 20447 } 20448 return size; 20449 } 20450 20451 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 20452 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] MergeFrom(Int64Message other)20453 public void MergeFrom(Int64Message other) { 20454 if (other == null) { 20455 return; 20456 } 20457 if (other.HasData) { 20458 Data = other.Data; 20459 } 20460 _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); 20461 } 20462 20463 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 20464 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] MergeFrom(pb::CodedInputStream input)20465 public void MergeFrom(pb::CodedInputStream input) { 20466 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 20467 input.ReadRawMessage(this); 20468 #else 20469 uint tag; 20470 while ((tag = input.ReadTag()) != 0) { 20471 if ((tag & 7) == 4) { 20472 // Abort on any end group tag. 20473 return; 20474 } 20475 switch(tag) { 20476 default: 20477 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); 20478 break; 20479 case 8: { 20480 Data = input.ReadInt64(); 20481 break; 20482 } 20483 } 20484 } 20485 #endif 20486 } 20487 20488 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 20489 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 20490 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] IBufferMessage.InternalMergeFrom(ref pb::ParseContext input)20491 void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { 20492 uint tag; 20493 while ((tag = input.ReadTag()) != 0) { 20494 if ((tag & 7) == 4) { 20495 // Abort on any end group tag. 20496 return; 20497 } 20498 switch(tag) { 20499 default: 20500 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); 20501 break; 20502 case 8: { 20503 Data = input.ReadInt64(); 20504 break; 20505 } 20506 } 20507 } 20508 } 20509 #endif 20510 20511 } 20512 20513 [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] 20514 public sealed partial class Uint64Message : pb::IMessage<Uint64Message> 20515 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 20516 , pb::IBufferMessage 20517 #endif 20518 { 20519 private static readonly pb::MessageParser<Uint64Message> _parser = new pb::MessageParser<Uint64Message>(() => new Uint64Message()); 20520 private pb::UnknownFieldSet _unknownFields; 20521 private int _hasBits0; 20522 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 20523 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 20524 public static pb::MessageParser<Uint64Message> Parser { get { return _parser; } } 20525 20526 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 20527 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 20528 public static pbr::MessageDescriptor Descriptor { 20529 get { return global::Google.Protobuf.TestProtos.Proto2.UnittestReflection.Descriptor.MessageTypes[41]; } 20530 } 20531 20532 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 20533 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 20534 pbr::MessageDescriptor pb::IMessage.Descriptor { 20535 get { return Descriptor; } 20536 } 20537 20538 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 20539 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] Uint64Message()20540 public Uint64Message() { 20541 OnConstruction(); 20542 } 20543 OnConstruction()20544 partial void OnConstruction(); 20545 20546 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 20547 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] Uint64Message(Uint64Message other)20548 public Uint64Message(Uint64Message other) : this() { 20549 _hasBits0 = other._hasBits0; 20550 data_ = other.data_; 20551 _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); 20552 } 20553 20554 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 20555 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] Clone()20556 public Uint64Message Clone() { 20557 return new Uint64Message(this); 20558 } 20559 20560 /// <summary>Field number for the "data" field.</summary> 20561 public const int DataFieldNumber = 1; 20562 private readonly static ulong DataDefaultValue = 0UL; 20563 20564 private ulong data_; 20565 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 20566 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 20567 public ulong Data { 20568 get { if ((_hasBits0 & 1) != 0) { return data_; } else { return DataDefaultValue; } } 20569 set { 20570 _hasBits0 |= 1; 20571 data_ = value; 20572 } 20573 } 20574 /// <summary>Gets whether the "data" field is set</summary> 20575 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 20576 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 20577 public bool HasData { 20578 get { return (_hasBits0 & 1) != 0; } 20579 } 20580 /// <summary>Clears the value of the "data" field</summary> 20581 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 20582 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] ClearData()20583 public void ClearData() { 20584 _hasBits0 &= ~1; 20585 } 20586 20587 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 20588 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] Equals(object other)20589 public override bool Equals(object other) { 20590 return Equals(other as Uint64Message); 20591 } 20592 20593 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 20594 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] Equals(Uint64Message other)20595 public bool Equals(Uint64Message other) { 20596 if (ReferenceEquals(other, null)) { 20597 return false; 20598 } 20599 if (ReferenceEquals(other, this)) { 20600 return true; 20601 } 20602 if (Data != other.Data) return false; 20603 return Equals(_unknownFields, other._unknownFields); 20604 } 20605 20606 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 20607 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] GetHashCode()20608 public override int GetHashCode() { 20609 int hash = 1; 20610 if (HasData) hash ^= Data.GetHashCode(); 20611 if (_unknownFields != null) { 20612 hash ^= _unknownFields.GetHashCode(); 20613 } 20614 return hash; 20615 } 20616 20617 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 20618 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] ToString()20619 public override string ToString() { 20620 return pb::JsonFormatter.ToDiagnosticString(this); 20621 } 20622 20623 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 20624 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] WriteTo(pb::CodedOutputStream output)20625 public void WriteTo(pb::CodedOutputStream output) { 20626 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 20627 output.WriteRawMessage(this); 20628 #else 20629 if (HasData) { 20630 output.WriteRawTag(8); 20631 output.WriteUInt64(Data); 20632 } 20633 if (_unknownFields != null) { 20634 _unknownFields.WriteTo(output); 20635 } 20636 #endif 20637 } 20638 20639 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 20640 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 20641 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] IBufferMessage.InternalWriteTo(ref pb::WriteContext output)20642 void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { 20643 if (HasData) { 20644 output.WriteRawTag(8); 20645 output.WriteUInt64(Data); 20646 } 20647 if (_unknownFields != null) { 20648 _unknownFields.WriteTo(ref output); 20649 } 20650 } 20651 #endif 20652 20653 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 20654 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] CalculateSize()20655 public int CalculateSize() { 20656 int size = 0; 20657 if (HasData) { 20658 size += 1 + pb::CodedOutputStream.ComputeUInt64Size(Data); 20659 } 20660 if (_unknownFields != null) { 20661 size += _unknownFields.CalculateSize(); 20662 } 20663 return size; 20664 } 20665 20666 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 20667 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] MergeFrom(Uint64Message other)20668 public void MergeFrom(Uint64Message other) { 20669 if (other == null) { 20670 return; 20671 } 20672 if (other.HasData) { 20673 Data = other.Data; 20674 } 20675 _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); 20676 } 20677 20678 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 20679 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] MergeFrom(pb::CodedInputStream input)20680 public void MergeFrom(pb::CodedInputStream input) { 20681 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 20682 input.ReadRawMessage(this); 20683 #else 20684 uint tag; 20685 while ((tag = input.ReadTag()) != 0) { 20686 if ((tag & 7) == 4) { 20687 // Abort on any end group tag. 20688 return; 20689 } 20690 switch(tag) { 20691 default: 20692 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); 20693 break; 20694 case 8: { 20695 Data = input.ReadUInt64(); 20696 break; 20697 } 20698 } 20699 } 20700 #endif 20701 } 20702 20703 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 20704 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 20705 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] IBufferMessage.InternalMergeFrom(ref pb::ParseContext input)20706 void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { 20707 uint tag; 20708 while ((tag = input.ReadTag()) != 0) { 20709 if ((tag & 7) == 4) { 20710 // Abort on any end group tag. 20711 return; 20712 } 20713 switch(tag) { 20714 default: 20715 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); 20716 break; 20717 case 8: { 20718 Data = input.ReadUInt64(); 20719 break; 20720 } 20721 } 20722 } 20723 } 20724 #endif 20725 20726 } 20727 20728 [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] 20729 public sealed partial class BoolMessage : pb::IMessage<BoolMessage> 20730 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 20731 , pb::IBufferMessage 20732 #endif 20733 { 20734 private static readonly pb::MessageParser<BoolMessage> _parser = new pb::MessageParser<BoolMessage>(() => new BoolMessage()); 20735 private pb::UnknownFieldSet _unknownFields; 20736 private int _hasBits0; 20737 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 20738 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 20739 public static pb::MessageParser<BoolMessage> Parser { get { return _parser; } } 20740 20741 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 20742 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 20743 public static pbr::MessageDescriptor Descriptor { 20744 get { return global::Google.Protobuf.TestProtos.Proto2.UnittestReflection.Descriptor.MessageTypes[42]; } 20745 } 20746 20747 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 20748 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 20749 pbr::MessageDescriptor pb::IMessage.Descriptor { 20750 get { return Descriptor; } 20751 } 20752 20753 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 20754 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] BoolMessage()20755 public BoolMessage() { 20756 OnConstruction(); 20757 } 20758 OnConstruction()20759 partial void OnConstruction(); 20760 20761 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 20762 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] BoolMessage(BoolMessage other)20763 public BoolMessage(BoolMessage other) : this() { 20764 _hasBits0 = other._hasBits0; 20765 data_ = other.data_; 20766 _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); 20767 } 20768 20769 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 20770 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] Clone()20771 public BoolMessage Clone() { 20772 return new BoolMessage(this); 20773 } 20774 20775 /// <summary>Field number for the "data" field.</summary> 20776 public const int DataFieldNumber = 1; 20777 private readonly static bool DataDefaultValue = false; 20778 20779 private bool data_; 20780 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 20781 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 20782 public bool Data { 20783 get { if ((_hasBits0 & 1) != 0) { return data_; } else { return DataDefaultValue; } } 20784 set { 20785 _hasBits0 |= 1; 20786 data_ = value; 20787 } 20788 } 20789 /// <summary>Gets whether the "data" field is set</summary> 20790 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 20791 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 20792 public bool HasData { 20793 get { return (_hasBits0 & 1) != 0; } 20794 } 20795 /// <summary>Clears the value of the "data" field</summary> 20796 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 20797 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] ClearData()20798 public void ClearData() { 20799 _hasBits0 &= ~1; 20800 } 20801 20802 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 20803 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] Equals(object other)20804 public override bool Equals(object other) { 20805 return Equals(other as BoolMessage); 20806 } 20807 20808 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 20809 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] Equals(BoolMessage other)20810 public bool Equals(BoolMessage other) { 20811 if (ReferenceEquals(other, null)) { 20812 return false; 20813 } 20814 if (ReferenceEquals(other, this)) { 20815 return true; 20816 } 20817 if (Data != other.Data) return false; 20818 return Equals(_unknownFields, other._unknownFields); 20819 } 20820 20821 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 20822 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] GetHashCode()20823 public override int GetHashCode() { 20824 int hash = 1; 20825 if (HasData) hash ^= Data.GetHashCode(); 20826 if (_unknownFields != null) { 20827 hash ^= _unknownFields.GetHashCode(); 20828 } 20829 return hash; 20830 } 20831 20832 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 20833 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] ToString()20834 public override string ToString() { 20835 return pb::JsonFormatter.ToDiagnosticString(this); 20836 } 20837 20838 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 20839 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] WriteTo(pb::CodedOutputStream output)20840 public void WriteTo(pb::CodedOutputStream output) { 20841 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 20842 output.WriteRawMessage(this); 20843 #else 20844 if (HasData) { 20845 output.WriteRawTag(8); 20846 output.WriteBool(Data); 20847 } 20848 if (_unknownFields != null) { 20849 _unknownFields.WriteTo(output); 20850 } 20851 #endif 20852 } 20853 20854 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 20855 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 20856 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] IBufferMessage.InternalWriteTo(ref pb::WriteContext output)20857 void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { 20858 if (HasData) { 20859 output.WriteRawTag(8); 20860 output.WriteBool(Data); 20861 } 20862 if (_unknownFields != null) { 20863 _unknownFields.WriteTo(ref output); 20864 } 20865 } 20866 #endif 20867 20868 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 20869 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] CalculateSize()20870 public int CalculateSize() { 20871 int size = 0; 20872 if (HasData) { 20873 size += 1 + 1; 20874 } 20875 if (_unknownFields != null) { 20876 size += _unknownFields.CalculateSize(); 20877 } 20878 return size; 20879 } 20880 20881 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 20882 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] MergeFrom(BoolMessage other)20883 public void MergeFrom(BoolMessage other) { 20884 if (other == null) { 20885 return; 20886 } 20887 if (other.HasData) { 20888 Data = other.Data; 20889 } 20890 _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); 20891 } 20892 20893 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 20894 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] MergeFrom(pb::CodedInputStream input)20895 public void MergeFrom(pb::CodedInputStream input) { 20896 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 20897 input.ReadRawMessage(this); 20898 #else 20899 uint tag; 20900 while ((tag = input.ReadTag()) != 0) { 20901 if ((tag & 7) == 4) { 20902 // Abort on any end group tag. 20903 return; 20904 } 20905 switch(tag) { 20906 default: 20907 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); 20908 break; 20909 case 8: { 20910 Data = input.ReadBool(); 20911 break; 20912 } 20913 } 20914 } 20915 #endif 20916 } 20917 20918 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 20919 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 20920 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] IBufferMessage.InternalMergeFrom(ref pb::ParseContext input)20921 void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { 20922 uint tag; 20923 while ((tag = input.ReadTag()) != 0) { 20924 if ((tag & 7) == 4) { 20925 // Abort on any end group tag. 20926 return; 20927 } 20928 switch(tag) { 20929 default: 20930 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); 20931 break; 20932 case 8: { 20933 Data = input.ReadBool(); 20934 break; 20935 } 20936 } 20937 } 20938 } 20939 #endif 20940 20941 } 20942 20943 /// <summary> 20944 /// Test oneofs. 20945 /// </summary> 20946 [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] 20947 public sealed partial class TestOneof : pb::IMessage<TestOneof> 20948 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 20949 , pb::IBufferMessage 20950 #endif 20951 { 20952 private static readonly pb::MessageParser<TestOneof> _parser = new pb::MessageParser<TestOneof>(() => new TestOneof()); 20953 private pb::UnknownFieldSet _unknownFields; 20954 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 20955 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 20956 public static pb::MessageParser<TestOneof> Parser { get { return _parser; } } 20957 20958 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 20959 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 20960 public static pbr::MessageDescriptor Descriptor { 20961 get { return global::Google.Protobuf.TestProtos.Proto2.UnittestReflection.Descriptor.MessageTypes[43]; } 20962 } 20963 20964 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 20965 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 20966 pbr::MessageDescriptor pb::IMessage.Descriptor { 20967 get { return Descriptor; } 20968 } 20969 20970 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 20971 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] TestOneof()20972 public TestOneof() { 20973 OnConstruction(); 20974 } 20975 OnConstruction()20976 partial void OnConstruction(); 20977 20978 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 20979 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] TestOneof(TestOneof other)20980 public TestOneof(TestOneof other) : this() { 20981 switch (other.FooCase) { 20982 case FooOneofCase.FooInt: 20983 FooInt = other.FooInt; 20984 break; 20985 case FooOneofCase.FooString: 20986 FooString = other.FooString; 20987 break; 20988 case FooOneofCase.FooMessage: 20989 FooMessage = other.FooMessage.Clone(); 20990 break; 20991 case FooOneofCase.FooGroup: 20992 FooGroup = other.FooGroup.Clone(); 20993 break; 20994 } 20995 20996 _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); 20997 } 20998 20999 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 21000 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] Clone()21001 public TestOneof Clone() { 21002 return new TestOneof(this); 21003 } 21004 21005 /// <summary>Field number for the "foo_int" field.</summary> 21006 public const int FooIntFieldNumber = 1; 21007 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 21008 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 21009 public int FooInt { 21010 get { return HasFooInt ? (int) foo_ : 0; } 21011 set { 21012 foo_ = value; 21013 fooCase_ = FooOneofCase.FooInt; 21014 } 21015 } 21016 /// <summary>Gets whether the "foo_int" field is set</summary> 21017 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 21018 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 21019 public bool HasFooInt { 21020 get { return fooCase_ == FooOneofCase.FooInt; } 21021 } 21022 /// <summary> Clears the value of the oneof if it's currently set to "foo_int" </summary> 21023 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 21024 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] ClearFooInt()21025 public void ClearFooInt() { 21026 if (HasFooInt) { 21027 ClearFoo(); 21028 } 21029 } 21030 21031 /// <summary>Field number for the "foo_string" field.</summary> 21032 public const int FooStringFieldNumber = 2; 21033 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 21034 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 21035 public string FooString { 21036 get { return HasFooString ? (string) foo_ : ""; } 21037 set { 21038 foo_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); 21039 fooCase_ = FooOneofCase.FooString; 21040 } 21041 } 21042 /// <summary>Gets whether the "foo_string" field is set</summary> 21043 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 21044 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 21045 public bool HasFooString { 21046 get { return fooCase_ == FooOneofCase.FooString; } 21047 } 21048 /// <summary> Clears the value of the oneof if it's currently set to "foo_string" </summary> 21049 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 21050 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] ClearFooString()21051 public void ClearFooString() { 21052 if (HasFooString) { 21053 ClearFoo(); 21054 } 21055 } 21056 21057 /// <summary>Field number for the "foo_message" field.</summary> 21058 public const int FooMessageFieldNumber = 3; 21059 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 21060 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 21061 public global::Google.Protobuf.TestProtos.Proto2.TestAllTypes FooMessage { 21062 get { return fooCase_ == FooOneofCase.FooMessage ? (global::Google.Protobuf.TestProtos.Proto2.TestAllTypes) foo_ : null; } 21063 set { 21064 foo_ = value; 21065 fooCase_ = value == null ? FooOneofCase.None : FooOneofCase.FooMessage; 21066 } 21067 } 21068 21069 /// <summary>Field number for the "foogroup" field.</summary> 21070 public const int FooGroupFieldNumber = 4; 21071 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 21072 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 21073 public global::Google.Protobuf.TestProtos.Proto2.TestOneof.Types.FooGroup FooGroup { 21074 get { return HasFooGroup ? (global::Google.Protobuf.TestProtos.Proto2.TestOneof.Types.FooGroup) foo_ : null; } 21075 set { 21076 foo_ = value; 21077 fooCase_ = value == null ? FooOneofCase.None : FooOneofCase.FooGroup; 21078 } 21079 } 21080 /// <summary>Gets whether the "foogroup" field is set</summary> 21081 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 21082 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 21083 public bool HasFooGroup { 21084 get { return fooCase_ == FooOneofCase.FooGroup; } 21085 } 21086 /// <summary> Clears the value of the oneof if it's currently set to "foogroup" </summary> 21087 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 21088 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] ClearFooGroup()21089 public void ClearFooGroup() { 21090 if (HasFooGroup) { 21091 ClearFoo(); 21092 } 21093 } 21094 21095 private object foo_; 21096 /// <summary>Enum of possible cases for the "foo" oneof.</summary> 21097 public enum FooOneofCase { 21098 None = 0, 21099 FooInt = 1, 21100 FooString = 2, 21101 FooMessage = 3, 21102 FooGroup = 4, 21103 } 21104 private FooOneofCase fooCase_ = FooOneofCase.None; 21105 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 21106 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 21107 public FooOneofCase FooCase { 21108 get { return fooCase_; } 21109 } 21110 21111 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 21112 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] ClearFoo()21113 public void ClearFoo() { 21114 fooCase_ = FooOneofCase.None; 21115 foo_ = null; 21116 } 21117 21118 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 21119 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] Equals(object other)21120 public override bool Equals(object other) { 21121 return Equals(other as TestOneof); 21122 } 21123 21124 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 21125 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] Equals(TestOneof other)21126 public bool Equals(TestOneof other) { 21127 if (ReferenceEquals(other, null)) { 21128 return false; 21129 } 21130 if (ReferenceEquals(other, this)) { 21131 return true; 21132 } 21133 if (FooInt != other.FooInt) return false; 21134 if (FooString != other.FooString) return false; 21135 if (!object.Equals(FooMessage, other.FooMessage)) return false; 21136 if (!object.Equals(FooGroup, other.FooGroup)) return false; 21137 if (FooCase != other.FooCase) return false; 21138 return Equals(_unknownFields, other._unknownFields); 21139 } 21140 21141 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 21142 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] GetHashCode()21143 public override int GetHashCode() { 21144 int hash = 1; 21145 if (HasFooInt) hash ^= FooInt.GetHashCode(); 21146 if (HasFooString) hash ^= FooString.GetHashCode(); 21147 if (fooCase_ == FooOneofCase.FooMessage) hash ^= FooMessage.GetHashCode(); 21148 if (HasFooGroup) hash ^= FooGroup.GetHashCode(); 21149 hash ^= (int) fooCase_; 21150 if (_unknownFields != null) { 21151 hash ^= _unknownFields.GetHashCode(); 21152 } 21153 return hash; 21154 } 21155 21156 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 21157 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] ToString()21158 public override string ToString() { 21159 return pb::JsonFormatter.ToDiagnosticString(this); 21160 } 21161 21162 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 21163 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] WriteTo(pb::CodedOutputStream output)21164 public void WriteTo(pb::CodedOutputStream output) { 21165 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 21166 output.WriteRawMessage(this); 21167 #else 21168 if (HasFooInt) { 21169 output.WriteRawTag(8); 21170 output.WriteInt32(FooInt); 21171 } 21172 if (HasFooString) { 21173 output.WriteRawTag(18); 21174 output.WriteString(FooString); 21175 } 21176 if (fooCase_ == FooOneofCase.FooMessage) { 21177 output.WriteRawTag(26); 21178 output.WriteMessage(FooMessage); 21179 } 21180 if (HasFooGroup) { 21181 output.WriteRawTag(35); 21182 output.WriteGroup(FooGroup); 21183 output.WriteRawTag(36); 21184 } 21185 if (_unknownFields != null) { 21186 _unknownFields.WriteTo(output); 21187 } 21188 #endif 21189 } 21190 21191 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 21192 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 21193 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] IBufferMessage.InternalWriteTo(ref pb::WriteContext output)21194 void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { 21195 if (HasFooInt) { 21196 output.WriteRawTag(8); 21197 output.WriteInt32(FooInt); 21198 } 21199 if (HasFooString) { 21200 output.WriteRawTag(18); 21201 output.WriteString(FooString); 21202 } 21203 if (fooCase_ == FooOneofCase.FooMessage) { 21204 output.WriteRawTag(26); 21205 output.WriteMessage(FooMessage); 21206 } 21207 if (HasFooGroup) { 21208 output.WriteRawTag(35); 21209 output.WriteGroup(FooGroup); 21210 output.WriteRawTag(36); 21211 } 21212 if (_unknownFields != null) { 21213 _unknownFields.WriteTo(ref output); 21214 } 21215 } 21216 #endif 21217 21218 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 21219 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] CalculateSize()21220 public int CalculateSize() { 21221 int size = 0; 21222 if (HasFooInt) { 21223 size += 1 + pb::CodedOutputStream.ComputeInt32Size(FooInt); 21224 } 21225 if (HasFooString) { 21226 size += 1 + pb::CodedOutputStream.ComputeStringSize(FooString); 21227 } 21228 if (fooCase_ == FooOneofCase.FooMessage) { 21229 size += 1 + pb::CodedOutputStream.ComputeMessageSize(FooMessage); 21230 } 21231 if (HasFooGroup) { 21232 size += 2 + pb::CodedOutputStream.ComputeGroupSize(FooGroup); 21233 } 21234 if (_unknownFields != null) { 21235 size += _unknownFields.CalculateSize(); 21236 } 21237 return size; 21238 } 21239 21240 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 21241 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] MergeFrom(TestOneof other)21242 public void MergeFrom(TestOneof other) { 21243 if (other == null) { 21244 return; 21245 } 21246 switch (other.FooCase) { 21247 case FooOneofCase.FooInt: 21248 FooInt = other.FooInt; 21249 break; 21250 case FooOneofCase.FooString: 21251 FooString = other.FooString; 21252 break; 21253 case FooOneofCase.FooMessage: 21254 if (FooMessage == null) { 21255 FooMessage = new global::Google.Protobuf.TestProtos.Proto2.TestAllTypes(); 21256 } 21257 FooMessage.MergeFrom(other.FooMessage); 21258 break; 21259 case FooOneofCase.FooGroup: 21260 if (FooGroup == null) { 21261 FooGroup = new global::Google.Protobuf.TestProtos.Proto2.TestOneof.Types.FooGroup(); 21262 } 21263 FooGroup.MergeFrom(other.FooGroup); 21264 break; 21265 } 21266 21267 _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); 21268 } 21269 21270 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 21271 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] MergeFrom(pb::CodedInputStream input)21272 public void MergeFrom(pb::CodedInputStream input) { 21273 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 21274 input.ReadRawMessage(this); 21275 #else 21276 uint tag; 21277 while ((tag = input.ReadTag()) != 0) { 21278 if ((tag & 7) == 4) { 21279 // Abort on any end group tag. 21280 return; 21281 } 21282 switch(tag) { 21283 default: 21284 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); 21285 break; 21286 case 8: { 21287 FooInt = input.ReadInt32(); 21288 break; 21289 } 21290 case 18: { 21291 FooString = input.ReadString(); 21292 break; 21293 } 21294 case 26: { 21295 global::Google.Protobuf.TestProtos.Proto2.TestAllTypes subBuilder = new global::Google.Protobuf.TestProtos.Proto2.TestAllTypes(); 21296 if (fooCase_ == FooOneofCase.FooMessage) { 21297 subBuilder.MergeFrom(FooMessage); 21298 } 21299 input.ReadMessage(subBuilder); 21300 FooMessage = subBuilder; 21301 break; 21302 } 21303 case 35: { 21304 global::Google.Protobuf.TestProtos.Proto2.TestOneof.Types.FooGroup subBuilder = new global::Google.Protobuf.TestProtos.Proto2.TestOneof.Types.FooGroup(); 21305 if (HasFooGroup) { 21306 subBuilder.MergeFrom(FooGroup); 21307 } 21308 input.ReadGroup(subBuilder); 21309 FooGroup = subBuilder; 21310 break; 21311 } 21312 } 21313 } 21314 #endif 21315 } 21316 21317 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 21318 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 21319 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] IBufferMessage.InternalMergeFrom(ref pb::ParseContext input)21320 void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { 21321 uint tag; 21322 while ((tag = input.ReadTag()) != 0) { 21323 if ((tag & 7) == 4) { 21324 // Abort on any end group tag. 21325 return; 21326 } 21327 switch(tag) { 21328 default: 21329 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); 21330 break; 21331 case 8: { 21332 FooInt = input.ReadInt32(); 21333 break; 21334 } 21335 case 18: { 21336 FooString = input.ReadString(); 21337 break; 21338 } 21339 case 26: { 21340 global::Google.Protobuf.TestProtos.Proto2.TestAllTypes subBuilder = new global::Google.Protobuf.TestProtos.Proto2.TestAllTypes(); 21341 if (fooCase_ == FooOneofCase.FooMessage) { 21342 subBuilder.MergeFrom(FooMessage); 21343 } 21344 input.ReadMessage(subBuilder); 21345 FooMessage = subBuilder; 21346 break; 21347 } 21348 case 35: { 21349 global::Google.Protobuf.TestProtos.Proto2.TestOneof.Types.FooGroup subBuilder = new global::Google.Protobuf.TestProtos.Proto2.TestOneof.Types.FooGroup(); 21350 if (HasFooGroup) { 21351 subBuilder.MergeFrom(FooGroup); 21352 } 21353 input.ReadGroup(subBuilder); 21354 FooGroup = subBuilder; 21355 break; 21356 } 21357 } 21358 } 21359 } 21360 #endif 21361 21362 #region Nested types 21363 /// <summary>Container for nested types declared in the TestOneof message type.</summary> 21364 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 21365 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 21366 public static partial class Types { 21367 [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] 21368 public sealed partial class FooGroup : pb::IMessage<FooGroup> 21369 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 21370 , pb::IBufferMessage 21371 #endif 21372 { 21373 private static readonly pb::MessageParser<FooGroup> _parser = new pb::MessageParser<FooGroup>(() => new FooGroup()); 21374 private pb::UnknownFieldSet _unknownFields; 21375 private int _hasBits0; 21376 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 21377 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 21378 public static pb::MessageParser<FooGroup> Parser { get { return _parser; } } 21379 21380 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 21381 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 21382 public static pbr::MessageDescriptor Descriptor { 21383 get { return global::Google.Protobuf.TestProtos.Proto2.TestOneof.Descriptor.NestedTypes[0]; } 21384 } 21385 21386 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 21387 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 21388 pbr::MessageDescriptor pb::IMessage.Descriptor { 21389 get { return Descriptor; } 21390 } 21391 21392 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 21393 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] FooGroup()21394 public FooGroup() { 21395 OnConstruction(); 21396 } 21397 OnConstruction()21398 partial void OnConstruction(); 21399 21400 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 21401 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] FooGroup(FooGroup other)21402 public FooGroup(FooGroup other) : this() { 21403 _hasBits0 = other._hasBits0; 21404 a_ = other.a_; 21405 b_ = other.b_; 21406 _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); 21407 } 21408 21409 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 21410 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] Clone()21411 public FooGroup Clone() { 21412 return new FooGroup(this); 21413 } 21414 21415 /// <summary>Field number for the "a" field.</summary> 21416 public const int AFieldNumber = 5; 21417 private readonly static int ADefaultValue = 0; 21418 21419 private int a_; 21420 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 21421 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 21422 public int A { 21423 get { if ((_hasBits0 & 1) != 0) { return a_; } else { return ADefaultValue; } } 21424 set { 21425 _hasBits0 |= 1; 21426 a_ = value; 21427 } 21428 } 21429 /// <summary>Gets whether the "a" field is set</summary> 21430 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 21431 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 21432 public bool HasA { 21433 get { return (_hasBits0 & 1) != 0; } 21434 } 21435 /// <summary>Clears the value of the "a" field</summary> 21436 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 21437 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] ClearA()21438 public void ClearA() { 21439 _hasBits0 &= ~1; 21440 } 21441 21442 /// <summary>Field number for the "b" field.</summary> 21443 public const int BFieldNumber = 6; 21444 private readonly static string BDefaultValue = ""; 21445 21446 private string b_; 21447 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 21448 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 21449 public string B { 21450 get { return b_ ?? BDefaultValue; } 21451 set { 21452 b_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); 21453 } 21454 } 21455 /// <summary>Gets whether the "b" field is set</summary> 21456 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 21457 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 21458 public bool HasB { 21459 get { return b_ != null; } 21460 } 21461 /// <summary>Clears the value of the "b" field</summary> 21462 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 21463 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] ClearB()21464 public void ClearB() { 21465 b_ = null; 21466 } 21467 21468 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 21469 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] Equals(object other)21470 public override bool Equals(object other) { 21471 return Equals(other as FooGroup); 21472 } 21473 21474 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 21475 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] Equals(FooGroup other)21476 public bool Equals(FooGroup other) { 21477 if (ReferenceEquals(other, null)) { 21478 return false; 21479 } 21480 if (ReferenceEquals(other, this)) { 21481 return true; 21482 } 21483 if (A != other.A) return false; 21484 if (B != other.B) return false; 21485 return Equals(_unknownFields, other._unknownFields); 21486 } 21487 21488 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 21489 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] GetHashCode()21490 public override int GetHashCode() { 21491 int hash = 1; 21492 if (HasA) hash ^= A.GetHashCode(); 21493 if (HasB) hash ^= B.GetHashCode(); 21494 if (_unknownFields != null) { 21495 hash ^= _unknownFields.GetHashCode(); 21496 } 21497 return hash; 21498 } 21499 21500 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 21501 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] ToString()21502 public override string ToString() { 21503 return pb::JsonFormatter.ToDiagnosticString(this); 21504 } 21505 21506 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 21507 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] WriteTo(pb::CodedOutputStream output)21508 public void WriteTo(pb::CodedOutputStream output) { 21509 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 21510 output.WriteRawMessage(this); 21511 #else 21512 if (HasA) { 21513 output.WriteRawTag(40); 21514 output.WriteInt32(A); 21515 } 21516 if (HasB) { 21517 output.WriteRawTag(50); 21518 output.WriteString(B); 21519 } 21520 if (_unknownFields != null) { 21521 _unknownFields.WriteTo(output); 21522 } 21523 #endif 21524 } 21525 21526 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 21527 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 21528 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] IBufferMessage.InternalWriteTo(ref pb::WriteContext output)21529 void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { 21530 if (HasA) { 21531 output.WriteRawTag(40); 21532 output.WriteInt32(A); 21533 } 21534 if (HasB) { 21535 output.WriteRawTag(50); 21536 output.WriteString(B); 21537 } 21538 if (_unknownFields != null) { 21539 _unknownFields.WriteTo(ref output); 21540 } 21541 } 21542 #endif 21543 21544 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 21545 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] CalculateSize()21546 public int CalculateSize() { 21547 int size = 0; 21548 if (HasA) { 21549 size += 1 + pb::CodedOutputStream.ComputeInt32Size(A); 21550 } 21551 if (HasB) { 21552 size += 1 + pb::CodedOutputStream.ComputeStringSize(B); 21553 } 21554 if (_unknownFields != null) { 21555 size += _unknownFields.CalculateSize(); 21556 } 21557 return size; 21558 } 21559 21560 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 21561 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] MergeFrom(FooGroup other)21562 public void MergeFrom(FooGroup other) { 21563 if (other == null) { 21564 return; 21565 } 21566 if (other.HasA) { 21567 A = other.A; 21568 } 21569 if (other.HasB) { 21570 B = other.B; 21571 } 21572 _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); 21573 } 21574 21575 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 21576 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] MergeFrom(pb::CodedInputStream input)21577 public void MergeFrom(pb::CodedInputStream input) { 21578 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 21579 input.ReadRawMessage(this); 21580 #else 21581 uint tag; 21582 while ((tag = input.ReadTag()) != 0) { 21583 if ((tag & 7) == 4) { 21584 // Abort on any end group tag. 21585 return; 21586 } 21587 switch(tag) { 21588 default: 21589 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); 21590 break; 21591 case 40: { 21592 A = input.ReadInt32(); 21593 break; 21594 } 21595 case 50: { 21596 B = input.ReadString(); 21597 break; 21598 } 21599 } 21600 } 21601 #endif 21602 } 21603 21604 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 21605 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 21606 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] IBufferMessage.InternalMergeFrom(ref pb::ParseContext input)21607 void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { 21608 uint tag; 21609 while ((tag = input.ReadTag()) != 0) { 21610 if ((tag & 7) == 4) { 21611 // Abort on any end group tag. 21612 return; 21613 } 21614 switch(tag) { 21615 default: 21616 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); 21617 break; 21618 case 40: { 21619 A = input.ReadInt32(); 21620 break; 21621 } 21622 case 50: { 21623 B = input.ReadString(); 21624 break; 21625 } 21626 } 21627 } 21628 } 21629 #endif 21630 21631 } 21632 21633 } 21634 #endregion 21635 21636 } 21637 21638 [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] 21639 public sealed partial class TestOneofBackwardsCompatible : pb::IMessage<TestOneofBackwardsCompatible> 21640 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 21641 , pb::IBufferMessage 21642 #endif 21643 { 21644 private static readonly pb::MessageParser<TestOneofBackwardsCompatible> _parser = new pb::MessageParser<TestOneofBackwardsCompatible>(() => new TestOneofBackwardsCompatible()); 21645 private pb::UnknownFieldSet _unknownFields; 21646 private int _hasBits0; 21647 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 21648 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 21649 public static pb::MessageParser<TestOneofBackwardsCompatible> Parser { get { return _parser; } } 21650 21651 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 21652 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 21653 public static pbr::MessageDescriptor Descriptor { 21654 get { return global::Google.Protobuf.TestProtos.Proto2.UnittestReflection.Descriptor.MessageTypes[44]; } 21655 } 21656 21657 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 21658 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 21659 pbr::MessageDescriptor pb::IMessage.Descriptor { 21660 get { return Descriptor; } 21661 } 21662 21663 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 21664 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] TestOneofBackwardsCompatible()21665 public TestOneofBackwardsCompatible() { 21666 OnConstruction(); 21667 } 21668 OnConstruction()21669 partial void OnConstruction(); 21670 21671 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 21672 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] TestOneofBackwardsCompatible(TestOneofBackwardsCompatible other)21673 public TestOneofBackwardsCompatible(TestOneofBackwardsCompatible other) : this() { 21674 _hasBits0 = other._hasBits0; 21675 fooInt_ = other.fooInt_; 21676 fooString_ = other.fooString_; 21677 fooMessage_ = other.fooMessage_ != null ? other.fooMessage_.Clone() : null; 21678 fooGroup_ = other.HasFooGroup ? other.fooGroup_.Clone() : null; 21679 _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); 21680 } 21681 21682 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 21683 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] Clone()21684 public TestOneofBackwardsCompatible Clone() { 21685 return new TestOneofBackwardsCompatible(this); 21686 } 21687 21688 /// <summary>Field number for the "foo_int" field.</summary> 21689 public const int FooIntFieldNumber = 1; 21690 private readonly static int FooIntDefaultValue = 0; 21691 21692 private int fooInt_; 21693 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 21694 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 21695 public int FooInt { 21696 get { if ((_hasBits0 & 1) != 0) { return fooInt_; } else { return FooIntDefaultValue; } } 21697 set { 21698 _hasBits0 |= 1; 21699 fooInt_ = value; 21700 } 21701 } 21702 /// <summary>Gets whether the "foo_int" field is set</summary> 21703 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 21704 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 21705 public bool HasFooInt { 21706 get { return (_hasBits0 & 1) != 0; } 21707 } 21708 /// <summary>Clears the value of the "foo_int" field</summary> 21709 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 21710 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] ClearFooInt()21711 public void ClearFooInt() { 21712 _hasBits0 &= ~1; 21713 } 21714 21715 /// <summary>Field number for the "foo_string" field.</summary> 21716 public const int FooStringFieldNumber = 2; 21717 private readonly static string FooStringDefaultValue = ""; 21718 21719 private string fooString_; 21720 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 21721 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 21722 public string FooString { 21723 get { return fooString_ ?? FooStringDefaultValue; } 21724 set { 21725 fooString_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); 21726 } 21727 } 21728 /// <summary>Gets whether the "foo_string" field is set</summary> 21729 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 21730 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 21731 public bool HasFooString { 21732 get { return fooString_ != null; } 21733 } 21734 /// <summary>Clears the value of the "foo_string" field</summary> 21735 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 21736 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] ClearFooString()21737 public void ClearFooString() { 21738 fooString_ = null; 21739 } 21740 21741 /// <summary>Field number for the "foo_message" field.</summary> 21742 public const int FooMessageFieldNumber = 3; 21743 private global::Google.Protobuf.TestProtos.Proto2.TestAllTypes fooMessage_; 21744 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 21745 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 21746 public global::Google.Protobuf.TestProtos.Proto2.TestAllTypes FooMessage { 21747 get { return fooMessage_; } 21748 set { 21749 fooMessage_ = value; 21750 } 21751 } 21752 21753 /// <summary>Field number for the "foogroup" field.</summary> 21754 public const int FooGroupFieldNumber = 4; 21755 private global::Google.Protobuf.TestProtos.Proto2.TestOneofBackwardsCompatible.Types.FooGroup fooGroup_; 21756 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 21757 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 21758 public global::Google.Protobuf.TestProtos.Proto2.TestOneofBackwardsCompatible.Types.FooGroup FooGroup { 21759 get { return fooGroup_; } 21760 set { 21761 fooGroup_ = value; 21762 } 21763 } 21764 /// <summary>Gets whether the foogroup field is set</summary> 21765 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 21766 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 21767 public bool HasFooGroup { 21768 get { return fooGroup_ != null; } 21769 } 21770 /// <summary>Clears the value of the foogroup field</summary> 21771 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 21772 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] ClearFooGroup()21773 public void ClearFooGroup() { 21774 fooGroup_ = null; 21775 } 21776 21777 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 21778 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] Equals(object other)21779 public override bool Equals(object other) { 21780 return Equals(other as TestOneofBackwardsCompatible); 21781 } 21782 21783 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 21784 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] Equals(TestOneofBackwardsCompatible other)21785 public bool Equals(TestOneofBackwardsCompatible other) { 21786 if (ReferenceEquals(other, null)) { 21787 return false; 21788 } 21789 if (ReferenceEquals(other, this)) { 21790 return true; 21791 } 21792 if (FooInt != other.FooInt) return false; 21793 if (FooString != other.FooString) return false; 21794 if (!object.Equals(FooMessage, other.FooMessage)) return false; 21795 if (!object.Equals(FooGroup, other.FooGroup)) return false; 21796 return Equals(_unknownFields, other._unknownFields); 21797 } 21798 21799 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 21800 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] GetHashCode()21801 public override int GetHashCode() { 21802 int hash = 1; 21803 if (HasFooInt) hash ^= FooInt.GetHashCode(); 21804 if (HasFooString) hash ^= FooString.GetHashCode(); 21805 if (fooMessage_ != null) hash ^= FooMessage.GetHashCode(); 21806 if (HasFooGroup) hash ^= FooGroup.GetHashCode(); 21807 if (_unknownFields != null) { 21808 hash ^= _unknownFields.GetHashCode(); 21809 } 21810 return hash; 21811 } 21812 21813 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 21814 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] ToString()21815 public override string ToString() { 21816 return pb::JsonFormatter.ToDiagnosticString(this); 21817 } 21818 21819 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 21820 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] WriteTo(pb::CodedOutputStream output)21821 public void WriteTo(pb::CodedOutputStream output) { 21822 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 21823 output.WriteRawMessage(this); 21824 #else 21825 if (HasFooInt) { 21826 output.WriteRawTag(8); 21827 output.WriteInt32(FooInt); 21828 } 21829 if (HasFooString) { 21830 output.WriteRawTag(18); 21831 output.WriteString(FooString); 21832 } 21833 if (fooMessage_ != null) { 21834 output.WriteRawTag(26); 21835 output.WriteMessage(FooMessage); 21836 } 21837 if (HasFooGroup) { 21838 output.WriteRawTag(35); 21839 output.WriteGroup(FooGroup); 21840 output.WriteRawTag(36); 21841 } 21842 if (_unknownFields != null) { 21843 _unknownFields.WriteTo(output); 21844 } 21845 #endif 21846 } 21847 21848 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 21849 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 21850 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] IBufferMessage.InternalWriteTo(ref pb::WriteContext output)21851 void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { 21852 if (HasFooInt) { 21853 output.WriteRawTag(8); 21854 output.WriteInt32(FooInt); 21855 } 21856 if (HasFooString) { 21857 output.WriteRawTag(18); 21858 output.WriteString(FooString); 21859 } 21860 if (fooMessage_ != null) { 21861 output.WriteRawTag(26); 21862 output.WriteMessage(FooMessage); 21863 } 21864 if (HasFooGroup) { 21865 output.WriteRawTag(35); 21866 output.WriteGroup(FooGroup); 21867 output.WriteRawTag(36); 21868 } 21869 if (_unknownFields != null) { 21870 _unknownFields.WriteTo(ref output); 21871 } 21872 } 21873 #endif 21874 21875 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 21876 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] CalculateSize()21877 public int CalculateSize() { 21878 int size = 0; 21879 if (HasFooInt) { 21880 size += 1 + pb::CodedOutputStream.ComputeInt32Size(FooInt); 21881 } 21882 if (HasFooString) { 21883 size += 1 + pb::CodedOutputStream.ComputeStringSize(FooString); 21884 } 21885 if (fooMessage_ != null) { 21886 size += 1 + pb::CodedOutputStream.ComputeMessageSize(FooMessage); 21887 } 21888 if (HasFooGroup) { 21889 size += 2 + pb::CodedOutputStream.ComputeGroupSize(FooGroup); 21890 } 21891 if (_unknownFields != null) { 21892 size += _unknownFields.CalculateSize(); 21893 } 21894 return size; 21895 } 21896 21897 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 21898 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] MergeFrom(TestOneofBackwardsCompatible other)21899 public void MergeFrom(TestOneofBackwardsCompatible other) { 21900 if (other == null) { 21901 return; 21902 } 21903 if (other.HasFooInt) { 21904 FooInt = other.FooInt; 21905 } 21906 if (other.HasFooString) { 21907 FooString = other.FooString; 21908 } 21909 if (other.fooMessage_ != null) { 21910 if (fooMessage_ == null) { 21911 FooMessage = new global::Google.Protobuf.TestProtos.Proto2.TestAllTypes(); 21912 } 21913 FooMessage.MergeFrom(other.FooMessage); 21914 } 21915 if (other.HasFooGroup) { 21916 if (!HasFooGroup) { 21917 FooGroup = new global::Google.Protobuf.TestProtos.Proto2.TestOneofBackwardsCompatible.Types.FooGroup(); 21918 } 21919 FooGroup.MergeFrom(other.FooGroup); 21920 } 21921 _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); 21922 } 21923 21924 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 21925 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] MergeFrom(pb::CodedInputStream input)21926 public void MergeFrom(pb::CodedInputStream input) { 21927 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 21928 input.ReadRawMessage(this); 21929 #else 21930 uint tag; 21931 while ((tag = input.ReadTag()) != 0) { 21932 if ((tag & 7) == 4) { 21933 // Abort on any end group tag. 21934 return; 21935 } 21936 switch(tag) { 21937 default: 21938 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); 21939 break; 21940 case 8: { 21941 FooInt = input.ReadInt32(); 21942 break; 21943 } 21944 case 18: { 21945 FooString = input.ReadString(); 21946 break; 21947 } 21948 case 26: { 21949 if (fooMessage_ == null) { 21950 FooMessage = new global::Google.Protobuf.TestProtos.Proto2.TestAllTypes(); 21951 } 21952 input.ReadMessage(FooMessage); 21953 break; 21954 } 21955 case 35: { 21956 if (!HasFooGroup) { 21957 FooGroup = new global::Google.Protobuf.TestProtos.Proto2.TestOneofBackwardsCompatible.Types.FooGroup(); 21958 } 21959 input.ReadGroup(FooGroup); 21960 break; 21961 } 21962 } 21963 } 21964 #endif 21965 } 21966 21967 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 21968 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 21969 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] IBufferMessage.InternalMergeFrom(ref pb::ParseContext input)21970 void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { 21971 uint tag; 21972 while ((tag = input.ReadTag()) != 0) { 21973 if ((tag & 7) == 4) { 21974 // Abort on any end group tag. 21975 return; 21976 } 21977 switch(tag) { 21978 default: 21979 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); 21980 break; 21981 case 8: { 21982 FooInt = input.ReadInt32(); 21983 break; 21984 } 21985 case 18: { 21986 FooString = input.ReadString(); 21987 break; 21988 } 21989 case 26: { 21990 if (fooMessage_ == null) { 21991 FooMessage = new global::Google.Protobuf.TestProtos.Proto2.TestAllTypes(); 21992 } 21993 input.ReadMessage(FooMessage); 21994 break; 21995 } 21996 case 35: { 21997 if (!HasFooGroup) { 21998 FooGroup = new global::Google.Protobuf.TestProtos.Proto2.TestOneofBackwardsCompatible.Types.FooGroup(); 21999 } 22000 input.ReadGroup(FooGroup); 22001 break; 22002 } 22003 } 22004 } 22005 } 22006 #endif 22007 22008 #region Nested types 22009 /// <summary>Container for nested types declared in the TestOneofBackwardsCompatible message type.</summary> 22010 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 22011 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 22012 public static partial class Types { 22013 [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] 22014 public sealed partial class FooGroup : pb::IMessage<FooGroup> 22015 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 22016 , pb::IBufferMessage 22017 #endif 22018 { 22019 private static readonly pb::MessageParser<FooGroup> _parser = new pb::MessageParser<FooGroup>(() => new FooGroup()); 22020 private pb::UnknownFieldSet _unknownFields; 22021 private int _hasBits0; 22022 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 22023 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 22024 public static pb::MessageParser<FooGroup> Parser { get { return _parser; } } 22025 22026 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 22027 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 22028 public static pbr::MessageDescriptor Descriptor { 22029 get { return global::Google.Protobuf.TestProtos.Proto2.TestOneofBackwardsCompatible.Descriptor.NestedTypes[0]; } 22030 } 22031 22032 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 22033 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 22034 pbr::MessageDescriptor pb::IMessage.Descriptor { 22035 get { return Descriptor; } 22036 } 22037 22038 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 22039 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] FooGroup()22040 public FooGroup() { 22041 OnConstruction(); 22042 } 22043 OnConstruction()22044 partial void OnConstruction(); 22045 22046 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 22047 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] FooGroup(FooGroup other)22048 public FooGroup(FooGroup other) : this() { 22049 _hasBits0 = other._hasBits0; 22050 a_ = other.a_; 22051 b_ = other.b_; 22052 _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); 22053 } 22054 22055 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 22056 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] Clone()22057 public FooGroup Clone() { 22058 return new FooGroup(this); 22059 } 22060 22061 /// <summary>Field number for the "a" field.</summary> 22062 public const int AFieldNumber = 5; 22063 private readonly static int ADefaultValue = 0; 22064 22065 private int a_; 22066 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 22067 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 22068 public int A { 22069 get { if ((_hasBits0 & 1) != 0) { return a_; } else { return ADefaultValue; } } 22070 set { 22071 _hasBits0 |= 1; 22072 a_ = value; 22073 } 22074 } 22075 /// <summary>Gets whether the "a" field is set</summary> 22076 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 22077 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 22078 public bool HasA { 22079 get { return (_hasBits0 & 1) != 0; } 22080 } 22081 /// <summary>Clears the value of the "a" field</summary> 22082 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 22083 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] ClearA()22084 public void ClearA() { 22085 _hasBits0 &= ~1; 22086 } 22087 22088 /// <summary>Field number for the "b" field.</summary> 22089 public const int BFieldNumber = 6; 22090 private readonly static string BDefaultValue = ""; 22091 22092 private string b_; 22093 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 22094 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 22095 public string B { 22096 get { return b_ ?? BDefaultValue; } 22097 set { 22098 b_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); 22099 } 22100 } 22101 /// <summary>Gets whether the "b" field is set</summary> 22102 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 22103 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 22104 public bool HasB { 22105 get { return b_ != null; } 22106 } 22107 /// <summary>Clears the value of the "b" field</summary> 22108 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 22109 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] ClearB()22110 public void ClearB() { 22111 b_ = null; 22112 } 22113 22114 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 22115 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] Equals(object other)22116 public override bool Equals(object other) { 22117 return Equals(other as FooGroup); 22118 } 22119 22120 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 22121 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] Equals(FooGroup other)22122 public bool Equals(FooGroup other) { 22123 if (ReferenceEquals(other, null)) { 22124 return false; 22125 } 22126 if (ReferenceEquals(other, this)) { 22127 return true; 22128 } 22129 if (A != other.A) return false; 22130 if (B != other.B) return false; 22131 return Equals(_unknownFields, other._unknownFields); 22132 } 22133 22134 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 22135 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] GetHashCode()22136 public override int GetHashCode() { 22137 int hash = 1; 22138 if (HasA) hash ^= A.GetHashCode(); 22139 if (HasB) hash ^= B.GetHashCode(); 22140 if (_unknownFields != null) { 22141 hash ^= _unknownFields.GetHashCode(); 22142 } 22143 return hash; 22144 } 22145 22146 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 22147 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] ToString()22148 public override string ToString() { 22149 return pb::JsonFormatter.ToDiagnosticString(this); 22150 } 22151 22152 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 22153 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] WriteTo(pb::CodedOutputStream output)22154 public void WriteTo(pb::CodedOutputStream output) { 22155 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 22156 output.WriteRawMessage(this); 22157 #else 22158 if (HasA) { 22159 output.WriteRawTag(40); 22160 output.WriteInt32(A); 22161 } 22162 if (HasB) { 22163 output.WriteRawTag(50); 22164 output.WriteString(B); 22165 } 22166 if (_unknownFields != null) { 22167 _unknownFields.WriteTo(output); 22168 } 22169 #endif 22170 } 22171 22172 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 22173 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 22174 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] IBufferMessage.InternalWriteTo(ref pb::WriteContext output)22175 void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { 22176 if (HasA) { 22177 output.WriteRawTag(40); 22178 output.WriteInt32(A); 22179 } 22180 if (HasB) { 22181 output.WriteRawTag(50); 22182 output.WriteString(B); 22183 } 22184 if (_unknownFields != null) { 22185 _unknownFields.WriteTo(ref output); 22186 } 22187 } 22188 #endif 22189 22190 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 22191 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] CalculateSize()22192 public int CalculateSize() { 22193 int size = 0; 22194 if (HasA) { 22195 size += 1 + pb::CodedOutputStream.ComputeInt32Size(A); 22196 } 22197 if (HasB) { 22198 size += 1 + pb::CodedOutputStream.ComputeStringSize(B); 22199 } 22200 if (_unknownFields != null) { 22201 size += _unknownFields.CalculateSize(); 22202 } 22203 return size; 22204 } 22205 22206 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 22207 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] MergeFrom(FooGroup other)22208 public void MergeFrom(FooGroup other) { 22209 if (other == null) { 22210 return; 22211 } 22212 if (other.HasA) { 22213 A = other.A; 22214 } 22215 if (other.HasB) { 22216 B = other.B; 22217 } 22218 _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); 22219 } 22220 22221 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 22222 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] MergeFrom(pb::CodedInputStream input)22223 public void MergeFrom(pb::CodedInputStream input) { 22224 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 22225 input.ReadRawMessage(this); 22226 #else 22227 uint tag; 22228 while ((tag = input.ReadTag()) != 0) { 22229 if ((tag & 7) == 4) { 22230 // Abort on any end group tag. 22231 return; 22232 } 22233 switch(tag) { 22234 default: 22235 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); 22236 break; 22237 case 40: { 22238 A = input.ReadInt32(); 22239 break; 22240 } 22241 case 50: { 22242 B = input.ReadString(); 22243 break; 22244 } 22245 } 22246 } 22247 #endif 22248 } 22249 22250 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 22251 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 22252 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] IBufferMessage.InternalMergeFrom(ref pb::ParseContext input)22253 void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { 22254 uint tag; 22255 while ((tag = input.ReadTag()) != 0) { 22256 if ((tag & 7) == 4) { 22257 // Abort on any end group tag. 22258 return; 22259 } 22260 switch(tag) { 22261 default: 22262 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); 22263 break; 22264 case 40: { 22265 A = input.ReadInt32(); 22266 break; 22267 } 22268 case 50: { 22269 B = input.ReadString(); 22270 break; 22271 } 22272 } 22273 } 22274 } 22275 #endif 22276 22277 } 22278 22279 } 22280 #endregion 22281 22282 } 22283 22284 [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] 22285 public sealed partial class TestOneof2 : pb::IMessage<TestOneof2> 22286 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 22287 , pb::IBufferMessage 22288 #endif 22289 { 22290 private static readonly pb::MessageParser<TestOneof2> _parser = new pb::MessageParser<TestOneof2>(() => new TestOneof2()); 22291 private pb::UnknownFieldSet _unknownFields; 22292 private int _hasBits0; 22293 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 22294 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 22295 public static pb::MessageParser<TestOneof2> Parser { get { return _parser; } } 22296 22297 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 22298 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 22299 public static pbr::MessageDescriptor Descriptor { 22300 get { return global::Google.Protobuf.TestProtos.Proto2.UnittestReflection.Descriptor.MessageTypes[45]; } 22301 } 22302 22303 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 22304 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 22305 pbr::MessageDescriptor pb::IMessage.Descriptor { 22306 get { return Descriptor; } 22307 } 22308 22309 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 22310 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] TestOneof2()22311 public TestOneof2() { 22312 OnConstruction(); 22313 } 22314 OnConstruction()22315 partial void OnConstruction(); 22316 22317 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 22318 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] TestOneof2(TestOneof2 other)22319 public TestOneof2(TestOneof2 other) : this() { 22320 _hasBits0 = other._hasBits0; 22321 bazInt_ = other.bazInt_; 22322 bazString_ = other.bazString_; 22323 switch (other.FooCase) { 22324 case FooOneofCase.FooInt: 22325 FooInt = other.FooInt; 22326 break; 22327 case FooOneofCase.FooString: 22328 FooString = other.FooString; 22329 break; 22330 case FooOneofCase.FooCord: 22331 FooCord = other.FooCord; 22332 break; 22333 case FooOneofCase.FooStringPiece: 22334 FooStringPiece = other.FooStringPiece; 22335 break; 22336 case FooOneofCase.FooBytes: 22337 FooBytes = other.FooBytes; 22338 break; 22339 case FooOneofCase.FooEnum: 22340 FooEnum = other.FooEnum; 22341 break; 22342 case FooOneofCase.FooMessage: 22343 FooMessage = other.FooMessage.Clone(); 22344 break; 22345 case FooOneofCase.FooGroup: 22346 FooGroup = other.FooGroup.Clone(); 22347 break; 22348 case FooOneofCase.FooLazyMessage: 22349 FooLazyMessage = other.FooLazyMessage.Clone(); 22350 break; 22351 } 22352 22353 switch (other.BarCase) { 22354 case BarOneofCase.BarInt: 22355 BarInt = other.BarInt; 22356 break; 22357 case BarOneofCase.BarString: 22358 BarString = other.BarString; 22359 break; 22360 case BarOneofCase.BarCord: 22361 BarCord = other.BarCord; 22362 break; 22363 case BarOneofCase.BarStringPiece: 22364 BarStringPiece = other.BarStringPiece; 22365 break; 22366 case BarOneofCase.BarBytes: 22367 BarBytes = other.BarBytes; 22368 break; 22369 case BarOneofCase.BarEnum: 22370 BarEnum = other.BarEnum; 22371 break; 22372 } 22373 22374 _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); 22375 } 22376 22377 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 22378 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] Clone()22379 public TestOneof2 Clone() { 22380 return new TestOneof2(this); 22381 } 22382 22383 /// <summary>Field number for the "foo_int" field.</summary> 22384 public const int FooIntFieldNumber = 1; 22385 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 22386 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 22387 public int FooInt { 22388 get { return HasFooInt ? (int) foo_ : 0; } 22389 set { 22390 foo_ = value; 22391 fooCase_ = FooOneofCase.FooInt; 22392 } 22393 } 22394 /// <summary>Gets whether the "foo_int" field is set</summary> 22395 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 22396 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 22397 public bool HasFooInt { 22398 get { return fooCase_ == FooOneofCase.FooInt; } 22399 } 22400 /// <summary> Clears the value of the oneof if it's currently set to "foo_int" </summary> 22401 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 22402 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] ClearFooInt()22403 public void ClearFooInt() { 22404 if (HasFooInt) { 22405 ClearFoo(); 22406 } 22407 } 22408 22409 /// <summary>Field number for the "foo_string" field.</summary> 22410 public const int FooStringFieldNumber = 2; 22411 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 22412 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 22413 public string FooString { 22414 get { return HasFooString ? (string) foo_ : ""; } 22415 set { 22416 foo_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); 22417 fooCase_ = FooOneofCase.FooString; 22418 } 22419 } 22420 /// <summary>Gets whether the "foo_string" field is set</summary> 22421 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 22422 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 22423 public bool HasFooString { 22424 get { return fooCase_ == FooOneofCase.FooString; } 22425 } 22426 /// <summary> Clears the value of the oneof if it's currently set to "foo_string" </summary> 22427 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 22428 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] ClearFooString()22429 public void ClearFooString() { 22430 if (HasFooString) { 22431 ClearFoo(); 22432 } 22433 } 22434 22435 /// <summary>Field number for the "foo_cord" field.</summary> 22436 public const int FooCordFieldNumber = 3; 22437 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 22438 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 22439 public string FooCord { 22440 get { return HasFooCord ? (string) foo_ : ""; } 22441 set { 22442 foo_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); 22443 fooCase_ = FooOneofCase.FooCord; 22444 } 22445 } 22446 /// <summary>Gets whether the "foo_cord" field is set</summary> 22447 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 22448 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 22449 public bool HasFooCord { 22450 get { return fooCase_ == FooOneofCase.FooCord; } 22451 } 22452 /// <summary> Clears the value of the oneof if it's currently set to "foo_cord" </summary> 22453 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 22454 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] ClearFooCord()22455 public void ClearFooCord() { 22456 if (HasFooCord) { 22457 ClearFoo(); 22458 } 22459 } 22460 22461 /// <summary>Field number for the "foo_string_piece" field.</summary> 22462 public const int FooStringPieceFieldNumber = 4; 22463 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 22464 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 22465 public string FooStringPiece { 22466 get { return HasFooStringPiece ? (string) foo_ : ""; } 22467 set { 22468 foo_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); 22469 fooCase_ = FooOneofCase.FooStringPiece; 22470 } 22471 } 22472 /// <summary>Gets whether the "foo_string_piece" field is set</summary> 22473 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 22474 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 22475 public bool HasFooStringPiece { 22476 get { return fooCase_ == FooOneofCase.FooStringPiece; } 22477 } 22478 /// <summary> Clears the value of the oneof if it's currently set to "foo_string_piece" </summary> 22479 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 22480 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] ClearFooStringPiece()22481 public void ClearFooStringPiece() { 22482 if (HasFooStringPiece) { 22483 ClearFoo(); 22484 } 22485 } 22486 22487 /// <summary>Field number for the "foo_bytes" field.</summary> 22488 public const int FooBytesFieldNumber = 5; 22489 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 22490 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 22491 public pb::ByteString FooBytes { 22492 get { return HasFooBytes ? (pb::ByteString) foo_ : pb::ByteString.Empty; } 22493 set { 22494 foo_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); 22495 fooCase_ = FooOneofCase.FooBytes; 22496 } 22497 } 22498 /// <summary>Gets whether the "foo_bytes" field is set</summary> 22499 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 22500 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 22501 public bool HasFooBytes { 22502 get { return fooCase_ == FooOneofCase.FooBytes; } 22503 } 22504 /// <summary> Clears the value of the oneof if it's currently set to "foo_bytes" </summary> 22505 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 22506 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] ClearFooBytes()22507 public void ClearFooBytes() { 22508 if (HasFooBytes) { 22509 ClearFoo(); 22510 } 22511 } 22512 22513 /// <summary>Field number for the "foo_enum" field.</summary> 22514 public const int FooEnumFieldNumber = 6; 22515 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 22516 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 22517 public global::Google.Protobuf.TestProtos.Proto2.TestOneof2.Types.NestedEnum FooEnum { 22518 get { return HasFooEnum ? (global::Google.Protobuf.TestProtos.Proto2.TestOneof2.Types.NestedEnum) foo_ : global::Google.Protobuf.TestProtos.Proto2.TestOneof2.Types.NestedEnum.Foo; } 22519 set { 22520 foo_ = value; 22521 fooCase_ = FooOneofCase.FooEnum; 22522 } 22523 } 22524 /// <summary>Gets whether the "foo_enum" field is set</summary> 22525 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 22526 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 22527 public bool HasFooEnum { 22528 get { return fooCase_ == FooOneofCase.FooEnum; } 22529 } 22530 /// <summary> Clears the value of the oneof if it's currently set to "foo_enum" </summary> 22531 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 22532 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] ClearFooEnum()22533 public void ClearFooEnum() { 22534 if (HasFooEnum) { 22535 ClearFoo(); 22536 } 22537 } 22538 22539 /// <summary>Field number for the "foo_message" field.</summary> 22540 public const int FooMessageFieldNumber = 7; 22541 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 22542 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 22543 public global::Google.Protobuf.TestProtos.Proto2.TestOneof2.Types.NestedMessage FooMessage { 22544 get { return fooCase_ == FooOneofCase.FooMessage ? (global::Google.Protobuf.TestProtos.Proto2.TestOneof2.Types.NestedMessage) foo_ : null; } 22545 set { 22546 foo_ = value; 22547 fooCase_ = value == null ? FooOneofCase.None : FooOneofCase.FooMessage; 22548 } 22549 } 22550 22551 /// <summary>Field number for the "foogroup" field.</summary> 22552 public const int FooGroupFieldNumber = 8; 22553 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 22554 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 22555 public global::Google.Protobuf.TestProtos.Proto2.TestOneof2.Types.FooGroup FooGroup { 22556 get { return HasFooGroup ? (global::Google.Protobuf.TestProtos.Proto2.TestOneof2.Types.FooGroup) foo_ : null; } 22557 set { 22558 foo_ = value; 22559 fooCase_ = value == null ? FooOneofCase.None : FooOneofCase.FooGroup; 22560 } 22561 } 22562 /// <summary>Gets whether the "foogroup" field is set</summary> 22563 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 22564 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 22565 public bool HasFooGroup { 22566 get { return fooCase_ == FooOneofCase.FooGroup; } 22567 } 22568 /// <summary> Clears the value of the oneof if it's currently set to "foogroup" </summary> 22569 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 22570 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] ClearFooGroup()22571 public void ClearFooGroup() { 22572 if (HasFooGroup) { 22573 ClearFoo(); 22574 } 22575 } 22576 22577 /// <summary>Field number for the "foo_lazy_message" field.</summary> 22578 public const int FooLazyMessageFieldNumber = 11; 22579 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 22580 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 22581 public global::Google.Protobuf.TestProtos.Proto2.TestOneof2.Types.NestedMessage FooLazyMessage { 22582 get { return fooCase_ == FooOneofCase.FooLazyMessage ? (global::Google.Protobuf.TestProtos.Proto2.TestOneof2.Types.NestedMessage) foo_ : null; } 22583 set { 22584 foo_ = value; 22585 fooCase_ = value == null ? FooOneofCase.None : FooOneofCase.FooLazyMessage; 22586 } 22587 } 22588 22589 /// <summary>Field number for the "bar_int" field.</summary> 22590 public const int BarIntFieldNumber = 12; 22591 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 22592 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 22593 public int BarInt { 22594 get { return HasBarInt ? (int) bar_ : 5; } 22595 set { 22596 bar_ = value; 22597 barCase_ = BarOneofCase.BarInt; 22598 } 22599 } 22600 /// <summary>Gets whether the "bar_int" field is set</summary> 22601 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 22602 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 22603 public bool HasBarInt { 22604 get { return barCase_ == BarOneofCase.BarInt; } 22605 } 22606 /// <summary> Clears the value of the oneof if it's currently set to "bar_int" </summary> 22607 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 22608 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] ClearBarInt()22609 public void ClearBarInt() { 22610 if (HasBarInt) { 22611 ClearBar(); 22612 } 22613 } 22614 22615 /// <summary>Field number for the "bar_string" field.</summary> 22616 public const int BarStringFieldNumber = 13; 22617 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 22618 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 22619 public string BarString { 22620 get { return HasBarString ? (string) bar_ : global::System.Text.Encoding.UTF8.GetString(global::System.Convert.FromBase64String("U1RSSU5H"), 0, 6); } 22621 set { 22622 bar_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); 22623 barCase_ = BarOneofCase.BarString; 22624 } 22625 } 22626 /// <summary>Gets whether the "bar_string" field is set</summary> 22627 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 22628 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 22629 public bool HasBarString { 22630 get { return barCase_ == BarOneofCase.BarString; } 22631 } 22632 /// <summary> Clears the value of the oneof if it's currently set to "bar_string" </summary> 22633 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 22634 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] ClearBarString()22635 public void ClearBarString() { 22636 if (HasBarString) { 22637 ClearBar(); 22638 } 22639 } 22640 22641 /// <summary>Field number for the "bar_cord" field.</summary> 22642 public const int BarCordFieldNumber = 14; 22643 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 22644 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 22645 public string BarCord { 22646 get { return HasBarCord ? (string) bar_ : global::System.Text.Encoding.UTF8.GetString(global::System.Convert.FromBase64String("Q09SRA=="), 0, 4); } 22647 set { 22648 bar_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); 22649 barCase_ = BarOneofCase.BarCord; 22650 } 22651 } 22652 /// <summary>Gets whether the "bar_cord" field is set</summary> 22653 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 22654 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 22655 public bool HasBarCord { 22656 get { return barCase_ == BarOneofCase.BarCord; } 22657 } 22658 /// <summary> Clears the value of the oneof if it's currently set to "bar_cord" </summary> 22659 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 22660 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] ClearBarCord()22661 public void ClearBarCord() { 22662 if (HasBarCord) { 22663 ClearBar(); 22664 } 22665 } 22666 22667 /// <summary>Field number for the "bar_string_piece" field.</summary> 22668 public const int BarStringPieceFieldNumber = 15; 22669 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 22670 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 22671 public string BarStringPiece { 22672 get { return HasBarStringPiece ? (string) bar_ : global::System.Text.Encoding.UTF8.GetString(global::System.Convert.FromBase64String("U1BJRUNF"), 0, 6); } 22673 set { 22674 bar_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); 22675 barCase_ = BarOneofCase.BarStringPiece; 22676 } 22677 } 22678 /// <summary>Gets whether the "bar_string_piece" field is set</summary> 22679 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 22680 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 22681 public bool HasBarStringPiece { 22682 get { return barCase_ == BarOneofCase.BarStringPiece; } 22683 } 22684 /// <summary> Clears the value of the oneof if it's currently set to "bar_string_piece" </summary> 22685 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 22686 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] ClearBarStringPiece()22687 public void ClearBarStringPiece() { 22688 if (HasBarStringPiece) { 22689 ClearBar(); 22690 } 22691 } 22692 22693 /// <summary>Field number for the "bar_bytes" field.</summary> 22694 public const int BarBytesFieldNumber = 16; 22695 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 22696 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 22697 public pb::ByteString BarBytes { 22698 get { return HasBarBytes ? (pb::ByteString) bar_ : pb::ByteString.FromBase64("QllURVM="); } 22699 set { 22700 bar_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); 22701 barCase_ = BarOneofCase.BarBytes; 22702 } 22703 } 22704 /// <summary>Gets whether the "bar_bytes" field is set</summary> 22705 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 22706 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 22707 public bool HasBarBytes { 22708 get { return barCase_ == BarOneofCase.BarBytes; } 22709 } 22710 /// <summary> Clears the value of the oneof if it's currently set to "bar_bytes" </summary> 22711 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 22712 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] ClearBarBytes()22713 public void ClearBarBytes() { 22714 if (HasBarBytes) { 22715 ClearBar(); 22716 } 22717 } 22718 22719 /// <summary>Field number for the "bar_enum" field.</summary> 22720 public const int BarEnumFieldNumber = 17; 22721 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 22722 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 22723 public global::Google.Protobuf.TestProtos.Proto2.TestOneof2.Types.NestedEnum BarEnum { 22724 get { return HasBarEnum ? (global::Google.Protobuf.TestProtos.Proto2.TestOneof2.Types.NestedEnum) bar_ : global::Google.Protobuf.TestProtos.Proto2.TestOneof2.Types.NestedEnum.Bar; } 22725 set { 22726 bar_ = value; 22727 barCase_ = BarOneofCase.BarEnum; 22728 } 22729 } 22730 /// <summary>Gets whether the "bar_enum" field is set</summary> 22731 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 22732 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 22733 public bool HasBarEnum { 22734 get { return barCase_ == BarOneofCase.BarEnum; } 22735 } 22736 /// <summary> Clears the value of the oneof if it's currently set to "bar_enum" </summary> 22737 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 22738 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] ClearBarEnum()22739 public void ClearBarEnum() { 22740 if (HasBarEnum) { 22741 ClearBar(); 22742 } 22743 } 22744 22745 /// <summary>Field number for the "baz_int" field.</summary> 22746 public const int BazIntFieldNumber = 18; 22747 private readonly static int BazIntDefaultValue = 0; 22748 22749 private int bazInt_; 22750 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 22751 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 22752 public int BazInt { 22753 get { if ((_hasBits0 & 1) != 0) { return bazInt_; } else { return BazIntDefaultValue; } } 22754 set { 22755 _hasBits0 |= 1; 22756 bazInt_ = value; 22757 } 22758 } 22759 /// <summary>Gets whether the "baz_int" field is set</summary> 22760 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 22761 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 22762 public bool HasBazInt { 22763 get { return (_hasBits0 & 1) != 0; } 22764 } 22765 /// <summary>Clears the value of the "baz_int" field</summary> 22766 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 22767 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] ClearBazInt()22768 public void ClearBazInt() { 22769 _hasBits0 &= ~1; 22770 } 22771 22772 /// <summary>Field number for the "baz_string" field.</summary> 22773 public const int BazStringFieldNumber = 19; 22774 private readonly static string BazStringDefaultValue = global::System.Text.Encoding.UTF8.GetString(global::System.Convert.FromBase64String("QkFa"), 0, 3); 22775 22776 private string bazString_; 22777 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 22778 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 22779 public string BazString { 22780 get { return bazString_ ?? BazStringDefaultValue; } 22781 set { 22782 bazString_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); 22783 } 22784 } 22785 /// <summary>Gets whether the "baz_string" field is set</summary> 22786 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 22787 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 22788 public bool HasBazString { 22789 get { return bazString_ != null; } 22790 } 22791 /// <summary>Clears the value of the "baz_string" field</summary> 22792 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 22793 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] ClearBazString()22794 public void ClearBazString() { 22795 bazString_ = null; 22796 } 22797 22798 private object foo_; 22799 /// <summary>Enum of possible cases for the "foo" oneof.</summary> 22800 public enum FooOneofCase { 22801 None = 0, 22802 FooInt = 1, 22803 FooString = 2, 22804 FooCord = 3, 22805 FooStringPiece = 4, 22806 FooBytes = 5, 22807 FooEnum = 6, 22808 FooMessage = 7, 22809 FooGroup = 8, 22810 FooLazyMessage = 11, 22811 } 22812 private FooOneofCase fooCase_ = FooOneofCase.None; 22813 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 22814 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 22815 public FooOneofCase FooCase { 22816 get { return fooCase_; } 22817 } 22818 22819 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 22820 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] ClearFoo()22821 public void ClearFoo() { 22822 fooCase_ = FooOneofCase.None; 22823 foo_ = null; 22824 } 22825 22826 private object bar_; 22827 /// <summary>Enum of possible cases for the "bar" oneof.</summary> 22828 public enum BarOneofCase { 22829 None = 0, 22830 BarInt = 12, 22831 BarString = 13, 22832 BarCord = 14, 22833 BarStringPiece = 15, 22834 BarBytes = 16, 22835 BarEnum = 17, 22836 } 22837 private BarOneofCase barCase_ = BarOneofCase.None; 22838 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 22839 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 22840 public BarOneofCase BarCase { 22841 get { return barCase_; } 22842 } 22843 22844 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 22845 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] ClearBar()22846 public void ClearBar() { 22847 barCase_ = BarOneofCase.None; 22848 bar_ = null; 22849 } 22850 22851 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 22852 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] Equals(object other)22853 public override bool Equals(object other) { 22854 return Equals(other as TestOneof2); 22855 } 22856 22857 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 22858 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] Equals(TestOneof2 other)22859 public bool Equals(TestOneof2 other) { 22860 if (ReferenceEquals(other, null)) { 22861 return false; 22862 } 22863 if (ReferenceEquals(other, this)) { 22864 return true; 22865 } 22866 if (FooInt != other.FooInt) return false; 22867 if (FooString != other.FooString) return false; 22868 if (FooCord != other.FooCord) return false; 22869 if (FooStringPiece != other.FooStringPiece) return false; 22870 if (FooBytes != other.FooBytes) return false; 22871 if (FooEnum != other.FooEnum) return false; 22872 if (!object.Equals(FooMessage, other.FooMessage)) return false; 22873 if (!object.Equals(FooGroup, other.FooGroup)) return false; 22874 if (!object.Equals(FooLazyMessage, other.FooLazyMessage)) return false; 22875 if (BarInt != other.BarInt) return false; 22876 if (BarString != other.BarString) return false; 22877 if (BarCord != other.BarCord) return false; 22878 if (BarStringPiece != other.BarStringPiece) return false; 22879 if (BarBytes != other.BarBytes) return false; 22880 if (BarEnum != other.BarEnum) return false; 22881 if (BazInt != other.BazInt) return false; 22882 if (BazString != other.BazString) return false; 22883 if (FooCase != other.FooCase) return false; 22884 if (BarCase != other.BarCase) return false; 22885 return Equals(_unknownFields, other._unknownFields); 22886 } 22887 22888 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 22889 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] GetHashCode()22890 public override int GetHashCode() { 22891 int hash = 1; 22892 if (HasFooInt) hash ^= FooInt.GetHashCode(); 22893 if (HasFooString) hash ^= FooString.GetHashCode(); 22894 if (HasFooCord) hash ^= FooCord.GetHashCode(); 22895 if (HasFooStringPiece) hash ^= FooStringPiece.GetHashCode(); 22896 if (HasFooBytes) hash ^= FooBytes.GetHashCode(); 22897 if (HasFooEnum) hash ^= FooEnum.GetHashCode(); 22898 if (fooCase_ == FooOneofCase.FooMessage) hash ^= FooMessage.GetHashCode(); 22899 if (HasFooGroup) hash ^= FooGroup.GetHashCode(); 22900 if (fooCase_ == FooOneofCase.FooLazyMessage) hash ^= FooLazyMessage.GetHashCode(); 22901 if (HasBarInt) hash ^= BarInt.GetHashCode(); 22902 if (HasBarString) hash ^= BarString.GetHashCode(); 22903 if (HasBarCord) hash ^= BarCord.GetHashCode(); 22904 if (HasBarStringPiece) hash ^= BarStringPiece.GetHashCode(); 22905 if (HasBarBytes) hash ^= BarBytes.GetHashCode(); 22906 if (HasBarEnum) hash ^= BarEnum.GetHashCode(); 22907 if (HasBazInt) hash ^= BazInt.GetHashCode(); 22908 if (HasBazString) hash ^= BazString.GetHashCode(); 22909 hash ^= (int) fooCase_; 22910 hash ^= (int) barCase_; 22911 if (_unknownFields != null) { 22912 hash ^= _unknownFields.GetHashCode(); 22913 } 22914 return hash; 22915 } 22916 22917 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 22918 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] ToString()22919 public override string ToString() { 22920 return pb::JsonFormatter.ToDiagnosticString(this); 22921 } 22922 22923 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 22924 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] WriteTo(pb::CodedOutputStream output)22925 public void WriteTo(pb::CodedOutputStream output) { 22926 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 22927 output.WriteRawMessage(this); 22928 #else 22929 if (HasFooInt) { 22930 output.WriteRawTag(8); 22931 output.WriteInt32(FooInt); 22932 } 22933 if (HasFooString) { 22934 output.WriteRawTag(18); 22935 output.WriteString(FooString); 22936 } 22937 if (HasFooCord) { 22938 output.WriteRawTag(26); 22939 output.WriteString(FooCord); 22940 } 22941 if (HasFooStringPiece) { 22942 output.WriteRawTag(34); 22943 output.WriteString(FooStringPiece); 22944 } 22945 if (HasFooBytes) { 22946 output.WriteRawTag(42); 22947 output.WriteBytes(FooBytes); 22948 } 22949 if (HasFooEnum) { 22950 output.WriteRawTag(48); 22951 output.WriteEnum((int) FooEnum); 22952 } 22953 if (fooCase_ == FooOneofCase.FooMessage) { 22954 output.WriteRawTag(58); 22955 output.WriteMessage(FooMessage); 22956 } 22957 if (HasFooGroup) { 22958 output.WriteRawTag(67); 22959 output.WriteGroup(FooGroup); 22960 output.WriteRawTag(68); 22961 } 22962 if (fooCase_ == FooOneofCase.FooLazyMessage) { 22963 output.WriteRawTag(90); 22964 output.WriteMessage(FooLazyMessage); 22965 } 22966 if (HasBarInt) { 22967 output.WriteRawTag(96); 22968 output.WriteInt32(BarInt); 22969 } 22970 if (HasBarString) { 22971 output.WriteRawTag(106); 22972 output.WriteString(BarString); 22973 } 22974 if (HasBarCord) { 22975 output.WriteRawTag(114); 22976 output.WriteString(BarCord); 22977 } 22978 if (HasBarStringPiece) { 22979 output.WriteRawTag(122); 22980 output.WriteString(BarStringPiece); 22981 } 22982 if (HasBarBytes) { 22983 output.WriteRawTag(130, 1); 22984 output.WriteBytes(BarBytes); 22985 } 22986 if (HasBarEnum) { 22987 output.WriteRawTag(136, 1); 22988 output.WriteEnum((int) BarEnum); 22989 } 22990 if (HasBazInt) { 22991 output.WriteRawTag(144, 1); 22992 output.WriteInt32(BazInt); 22993 } 22994 if (HasBazString) { 22995 output.WriteRawTag(154, 1); 22996 output.WriteString(BazString); 22997 } 22998 if (_unknownFields != null) { 22999 _unknownFields.WriteTo(output); 23000 } 23001 #endif 23002 } 23003 23004 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 23005 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 23006 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] IBufferMessage.InternalWriteTo(ref pb::WriteContext output)23007 void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { 23008 if (HasFooInt) { 23009 output.WriteRawTag(8); 23010 output.WriteInt32(FooInt); 23011 } 23012 if (HasFooString) { 23013 output.WriteRawTag(18); 23014 output.WriteString(FooString); 23015 } 23016 if (HasFooCord) { 23017 output.WriteRawTag(26); 23018 output.WriteString(FooCord); 23019 } 23020 if (HasFooStringPiece) { 23021 output.WriteRawTag(34); 23022 output.WriteString(FooStringPiece); 23023 } 23024 if (HasFooBytes) { 23025 output.WriteRawTag(42); 23026 output.WriteBytes(FooBytes); 23027 } 23028 if (HasFooEnum) { 23029 output.WriteRawTag(48); 23030 output.WriteEnum((int) FooEnum); 23031 } 23032 if (fooCase_ == FooOneofCase.FooMessage) { 23033 output.WriteRawTag(58); 23034 output.WriteMessage(FooMessage); 23035 } 23036 if (HasFooGroup) { 23037 output.WriteRawTag(67); 23038 output.WriteGroup(FooGroup); 23039 output.WriteRawTag(68); 23040 } 23041 if (fooCase_ == FooOneofCase.FooLazyMessage) { 23042 output.WriteRawTag(90); 23043 output.WriteMessage(FooLazyMessage); 23044 } 23045 if (HasBarInt) { 23046 output.WriteRawTag(96); 23047 output.WriteInt32(BarInt); 23048 } 23049 if (HasBarString) { 23050 output.WriteRawTag(106); 23051 output.WriteString(BarString); 23052 } 23053 if (HasBarCord) { 23054 output.WriteRawTag(114); 23055 output.WriteString(BarCord); 23056 } 23057 if (HasBarStringPiece) { 23058 output.WriteRawTag(122); 23059 output.WriteString(BarStringPiece); 23060 } 23061 if (HasBarBytes) { 23062 output.WriteRawTag(130, 1); 23063 output.WriteBytes(BarBytes); 23064 } 23065 if (HasBarEnum) { 23066 output.WriteRawTag(136, 1); 23067 output.WriteEnum((int) BarEnum); 23068 } 23069 if (HasBazInt) { 23070 output.WriteRawTag(144, 1); 23071 output.WriteInt32(BazInt); 23072 } 23073 if (HasBazString) { 23074 output.WriteRawTag(154, 1); 23075 output.WriteString(BazString); 23076 } 23077 if (_unknownFields != null) { 23078 _unknownFields.WriteTo(ref output); 23079 } 23080 } 23081 #endif 23082 23083 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 23084 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] CalculateSize()23085 public int CalculateSize() { 23086 int size = 0; 23087 if (HasFooInt) { 23088 size += 1 + pb::CodedOutputStream.ComputeInt32Size(FooInt); 23089 } 23090 if (HasFooString) { 23091 size += 1 + pb::CodedOutputStream.ComputeStringSize(FooString); 23092 } 23093 if (HasFooCord) { 23094 size += 1 + pb::CodedOutputStream.ComputeStringSize(FooCord); 23095 } 23096 if (HasFooStringPiece) { 23097 size += 1 + pb::CodedOutputStream.ComputeStringSize(FooStringPiece); 23098 } 23099 if (HasFooBytes) { 23100 size += 1 + pb::CodedOutputStream.ComputeBytesSize(FooBytes); 23101 } 23102 if (HasFooEnum) { 23103 size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) FooEnum); 23104 } 23105 if (fooCase_ == FooOneofCase.FooMessage) { 23106 size += 1 + pb::CodedOutputStream.ComputeMessageSize(FooMessage); 23107 } 23108 if (HasFooGroup) { 23109 size += 2 + pb::CodedOutputStream.ComputeGroupSize(FooGroup); 23110 } 23111 if (fooCase_ == FooOneofCase.FooLazyMessage) { 23112 size += 1 + pb::CodedOutputStream.ComputeMessageSize(FooLazyMessage); 23113 } 23114 if (HasBarInt) { 23115 size += 1 + pb::CodedOutputStream.ComputeInt32Size(BarInt); 23116 } 23117 if (HasBarString) { 23118 size += 1 + pb::CodedOutputStream.ComputeStringSize(BarString); 23119 } 23120 if (HasBarCord) { 23121 size += 1 + pb::CodedOutputStream.ComputeStringSize(BarCord); 23122 } 23123 if (HasBarStringPiece) { 23124 size += 1 + pb::CodedOutputStream.ComputeStringSize(BarStringPiece); 23125 } 23126 if (HasBarBytes) { 23127 size += 2 + pb::CodedOutputStream.ComputeBytesSize(BarBytes); 23128 } 23129 if (HasBarEnum) { 23130 size += 2 + pb::CodedOutputStream.ComputeEnumSize((int) BarEnum); 23131 } 23132 if (HasBazInt) { 23133 size += 2 + pb::CodedOutputStream.ComputeInt32Size(BazInt); 23134 } 23135 if (HasBazString) { 23136 size += 2 + pb::CodedOutputStream.ComputeStringSize(BazString); 23137 } 23138 if (_unknownFields != null) { 23139 size += _unknownFields.CalculateSize(); 23140 } 23141 return size; 23142 } 23143 23144 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 23145 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] MergeFrom(TestOneof2 other)23146 public void MergeFrom(TestOneof2 other) { 23147 if (other == null) { 23148 return; 23149 } 23150 if (other.HasBazInt) { 23151 BazInt = other.BazInt; 23152 } 23153 if (other.HasBazString) { 23154 BazString = other.BazString; 23155 } 23156 switch (other.FooCase) { 23157 case FooOneofCase.FooInt: 23158 FooInt = other.FooInt; 23159 break; 23160 case FooOneofCase.FooString: 23161 FooString = other.FooString; 23162 break; 23163 case FooOneofCase.FooCord: 23164 FooCord = other.FooCord; 23165 break; 23166 case FooOneofCase.FooStringPiece: 23167 FooStringPiece = other.FooStringPiece; 23168 break; 23169 case FooOneofCase.FooBytes: 23170 FooBytes = other.FooBytes; 23171 break; 23172 case FooOneofCase.FooEnum: 23173 FooEnum = other.FooEnum; 23174 break; 23175 case FooOneofCase.FooMessage: 23176 if (FooMessage == null) { 23177 FooMessage = new global::Google.Protobuf.TestProtos.Proto2.TestOneof2.Types.NestedMessage(); 23178 } 23179 FooMessage.MergeFrom(other.FooMessage); 23180 break; 23181 case FooOneofCase.FooGroup: 23182 if (FooGroup == null) { 23183 FooGroup = new global::Google.Protobuf.TestProtos.Proto2.TestOneof2.Types.FooGroup(); 23184 } 23185 FooGroup.MergeFrom(other.FooGroup); 23186 break; 23187 case FooOneofCase.FooLazyMessage: 23188 if (FooLazyMessage == null) { 23189 FooLazyMessage = new global::Google.Protobuf.TestProtos.Proto2.TestOneof2.Types.NestedMessage(); 23190 } 23191 FooLazyMessage.MergeFrom(other.FooLazyMessage); 23192 break; 23193 } 23194 23195 switch (other.BarCase) { 23196 case BarOneofCase.BarInt: 23197 BarInt = other.BarInt; 23198 break; 23199 case BarOneofCase.BarString: 23200 BarString = other.BarString; 23201 break; 23202 case BarOneofCase.BarCord: 23203 BarCord = other.BarCord; 23204 break; 23205 case BarOneofCase.BarStringPiece: 23206 BarStringPiece = other.BarStringPiece; 23207 break; 23208 case BarOneofCase.BarBytes: 23209 BarBytes = other.BarBytes; 23210 break; 23211 case BarOneofCase.BarEnum: 23212 BarEnum = other.BarEnum; 23213 break; 23214 } 23215 23216 _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); 23217 } 23218 23219 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 23220 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] MergeFrom(pb::CodedInputStream input)23221 public void MergeFrom(pb::CodedInputStream input) { 23222 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 23223 input.ReadRawMessage(this); 23224 #else 23225 uint tag; 23226 while ((tag = input.ReadTag()) != 0) { 23227 if ((tag & 7) == 4) { 23228 // Abort on any end group tag. 23229 return; 23230 } 23231 switch(tag) { 23232 default: 23233 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); 23234 break; 23235 case 8: { 23236 FooInt = input.ReadInt32(); 23237 break; 23238 } 23239 case 18: { 23240 FooString = input.ReadString(); 23241 break; 23242 } 23243 case 26: { 23244 FooCord = input.ReadString(); 23245 break; 23246 } 23247 case 34: { 23248 FooStringPiece = input.ReadString(); 23249 break; 23250 } 23251 case 42: { 23252 FooBytes = input.ReadBytes(); 23253 break; 23254 } 23255 case 48: { 23256 foo_ = input.ReadEnum(); 23257 fooCase_ = FooOneofCase.FooEnum; 23258 break; 23259 } 23260 case 58: { 23261 global::Google.Protobuf.TestProtos.Proto2.TestOneof2.Types.NestedMessage subBuilder = new global::Google.Protobuf.TestProtos.Proto2.TestOneof2.Types.NestedMessage(); 23262 if (fooCase_ == FooOneofCase.FooMessage) { 23263 subBuilder.MergeFrom(FooMessage); 23264 } 23265 input.ReadMessage(subBuilder); 23266 FooMessage = subBuilder; 23267 break; 23268 } 23269 case 67: { 23270 global::Google.Protobuf.TestProtos.Proto2.TestOneof2.Types.FooGroup subBuilder = new global::Google.Protobuf.TestProtos.Proto2.TestOneof2.Types.FooGroup(); 23271 if (HasFooGroup) { 23272 subBuilder.MergeFrom(FooGroup); 23273 } 23274 input.ReadGroup(subBuilder); 23275 FooGroup = subBuilder; 23276 break; 23277 } 23278 case 90: { 23279 global::Google.Protobuf.TestProtos.Proto2.TestOneof2.Types.NestedMessage subBuilder = new global::Google.Protobuf.TestProtos.Proto2.TestOneof2.Types.NestedMessage(); 23280 if (fooCase_ == FooOneofCase.FooLazyMessage) { 23281 subBuilder.MergeFrom(FooLazyMessage); 23282 } 23283 input.ReadMessage(subBuilder); 23284 FooLazyMessage = subBuilder; 23285 break; 23286 } 23287 case 96: { 23288 BarInt = input.ReadInt32(); 23289 break; 23290 } 23291 case 106: { 23292 BarString = input.ReadString(); 23293 break; 23294 } 23295 case 114: { 23296 BarCord = input.ReadString(); 23297 break; 23298 } 23299 case 122: { 23300 BarStringPiece = input.ReadString(); 23301 break; 23302 } 23303 case 130: { 23304 BarBytes = input.ReadBytes(); 23305 break; 23306 } 23307 case 136: { 23308 bar_ = input.ReadEnum(); 23309 barCase_ = BarOneofCase.BarEnum; 23310 break; 23311 } 23312 case 144: { 23313 BazInt = input.ReadInt32(); 23314 break; 23315 } 23316 case 154: { 23317 BazString = input.ReadString(); 23318 break; 23319 } 23320 } 23321 } 23322 #endif 23323 } 23324 23325 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 23326 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 23327 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] IBufferMessage.InternalMergeFrom(ref pb::ParseContext input)23328 void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { 23329 uint tag; 23330 while ((tag = input.ReadTag()) != 0) { 23331 if ((tag & 7) == 4) { 23332 // Abort on any end group tag. 23333 return; 23334 } 23335 switch(tag) { 23336 default: 23337 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); 23338 break; 23339 case 8: { 23340 FooInt = input.ReadInt32(); 23341 break; 23342 } 23343 case 18: { 23344 FooString = input.ReadString(); 23345 break; 23346 } 23347 case 26: { 23348 FooCord = input.ReadString(); 23349 break; 23350 } 23351 case 34: { 23352 FooStringPiece = input.ReadString(); 23353 break; 23354 } 23355 case 42: { 23356 FooBytes = input.ReadBytes(); 23357 break; 23358 } 23359 case 48: { 23360 foo_ = input.ReadEnum(); 23361 fooCase_ = FooOneofCase.FooEnum; 23362 break; 23363 } 23364 case 58: { 23365 global::Google.Protobuf.TestProtos.Proto2.TestOneof2.Types.NestedMessage subBuilder = new global::Google.Protobuf.TestProtos.Proto2.TestOneof2.Types.NestedMessage(); 23366 if (fooCase_ == FooOneofCase.FooMessage) { 23367 subBuilder.MergeFrom(FooMessage); 23368 } 23369 input.ReadMessage(subBuilder); 23370 FooMessage = subBuilder; 23371 break; 23372 } 23373 case 67: { 23374 global::Google.Protobuf.TestProtos.Proto2.TestOneof2.Types.FooGroup subBuilder = new global::Google.Protobuf.TestProtos.Proto2.TestOneof2.Types.FooGroup(); 23375 if (HasFooGroup) { 23376 subBuilder.MergeFrom(FooGroup); 23377 } 23378 input.ReadGroup(subBuilder); 23379 FooGroup = subBuilder; 23380 break; 23381 } 23382 case 90: { 23383 global::Google.Protobuf.TestProtos.Proto2.TestOneof2.Types.NestedMessage subBuilder = new global::Google.Protobuf.TestProtos.Proto2.TestOneof2.Types.NestedMessage(); 23384 if (fooCase_ == FooOneofCase.FooLazyMessage) { 23385 subBuilder.MergeFrom(FooLazyMessage); 23386 } 23387 input.ReadMessage(subBuilder); 23388 FooLazyMessage = subBuilder; 23389 break; 23390 } 23391 case 96: { 23392 BarInt = input.ReadInt32(); 23393 break; 23394 } 23395 case 106: { 23396 BarString = input.ReadString(); 23397 break; 23398 } 23399 case 114: { 23400 BarCord = input.ReadString(); 23401 break; 23402 } 23403 case 122: { 23404 BarStringPiece = input.ReadString(); 23405 break; 23406 } 23407 case 130: { 23408 BarBytes = input.ReadBytes(); 23409 break; 23410 } 23411 case 136: { 23412 bar_ = input.ReadEnum(); 23413 barCase_ = BarOneofCase.BarEnum; 23414 break; 23415 } 23416 case 144: { 23417 BazInt = input.ReadInt32(); 23418 break; 23419 } 23420 case 154: { 23421 BazString = input.ReadString(); 23422 break; 23423 } 23424 } 23425 } 23426 } 23427 #endif 23428 23429 #region Nested types 23430 /// <summary>Container for nested types declared in the TestOneof2 message type.</summary> 23431 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 23432 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 23433 public static partial class Types { 23434 public enum NestedEnum { 23435 [pbr::OriginalName("FOO")] Foo = 1, 23436 [pbr::OriginalName("BAR")] Bar = 2, 23437 [pbr::OriginalName("BAZ")] Baz = 3, 23438 } 23439 23440 [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] 23441 public sealed partial class FooGroup : pb::IMessage<FooGroup> 23442 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 23443 , pb::IBufferMessage 23444 #endif 23445 { 23446 private static readonly pb::MessageParser<FooGroup> _parser = new pb::MessageParser<FooGroup>(() => new FooGroup()); 23447 private pb::UnknownFieldSet _unknownFields; 23448 private int _hasBits0; 23449 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 23450 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 23451 public static pb::MessageParser<FooGroup> Parser { get { return _parser; } } 23452 23453 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 23454 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 23455 public static pbr::MessageDescriptor Descriptor { 23456 get { return global::Google.Protobuf.TestProtos.Proto2.TestOneof2.Descriptor.NestedTypes[0]; } 23457 } 23458 23459 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 23460 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 23461 pbr::MessageDescriptor pb::IMessage.Descriptor { 23462 get { return Descriptor; } 23463 } 23464 23465 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 23466 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] FooGroup()23467 public FooGroup() { 23468 OnConstruction(); 23469 } 23470 OnConstruction()23471 partial void OnConstruction(); 23472 23473 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 23474 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] FooGroup(FooGroup other)23475 public FooGroup(FooGroup other) : this() { 23476 _hasBits0 = other._hasBits0; 23477 a_ = other.a_; 23478 b_ = other.b_; 23479 _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); 23480 } 23481 23482 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 23483 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] Clone()23484 public FooGroup Clone() { 23485 return new FooGroup(this); 23486 } 23487 23488 /// <summary>Field number for the "a" field.</summary> 23489 public const int AFieldNumber = 9; 23490 private readonly static int ADefaultValue = 0; 23491 23492 private int a_; 23493 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 23494 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 23495 public int A { 23496 get { if ((_hasBits0 & 1) != 0) { return a_; } else { return ADefaultValue; } } 23497 set { 23498 _hasBits0 |= 1; 23499 a_ = value; 23500 } 23501 } 23502 /// <summary>Gets whether the "a" field is set</summary> 23503 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 23504 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 23505 public bool HasA { 23506 get { return (_hasBits0 & 1) != 0; } 23507 } 23508 /// <summary>Clears the value of the "a" field</summary> 23509 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 23510 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] ClearA()23511 public void ClearA() { 23512 _hasBits0 &= ~1; 23513 } 23514 23515 /// <summary>Field number for the "b" field.</summary> 23516 public const int BFieldNumber = 10; 23517 private readonly static string BDefaultValue = ""; 23518 23519 private string b_; 23520 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 23521 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 23522 public string B { 23523 get { return b_ ?? BDefaultValue; } 23524 set { 23525 b_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); 23526 } 23527 } 23528 /// <summary>Gets whether the "b" field is set</summary> 23529 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 23530 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 23531 public bool HasB { 23532 get { return b_ != null; } 23533 } 23534 /// <summary>Clears the value of the "b" field</summary> 23535 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 23536 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] ClearB()23537 public void ClearB() { 23538 b_ = null; 23539 } 23540 23541 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 23542 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] Equals(object other)23543 public override bool Equals(object other) { 23544 return Equals(other as FooGroup); 23545 } 23546 23547 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 23548 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] Equals(FooGroup other)23549 public bool Equals(FooGroup other) { 23550 if (ReferenceEquals(other, null)) { 23551 return false; 23552 } 23553 if (ReferenceEquals(other, this)) { 23554 return true; 23555 } 23556 if (A != other.A) return false; 23557 if (B != other.B) return false; 23558 return Equals(_unknownFields, other._unknownFields); 23559 } 23560 23561 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 23562 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] GetHashCode()23563 public override int GetHashCode() { 23564 int hash = 1; 23565 if (HasA) hash ^= A.GetHashCode(); 23566 if (HasB) hash ^= B.GetHashCode(); 23567 if (_unknownFields != null) { 23568 hash ^= _unknownFields.GetHashCode(); 23569 } 23570 return hash; 23571 } 23572 23573 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 23574 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] ToString()23575 public override string ToString() { 23576 return pb::JsonFormatter.ToDiagnosticString(this); 23577 } 23578 23579 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 23580 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] WriteTo(pb::CodedOutputStream output)23581 public void WriteTo(pb::CodedOutputStream output) { 23582 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 23583 output.WriteRawMessage(this); 23584 #else 23585 if (HasA) { 23586 output.WriteRawTag(72); 23587 output.WriteInt32(A); 23588 } 23589 if (HasB) { 23590 output.WriteRawTag(82); 23591 output.WriteString(B); 23592 } 23593 if (_unknownFields != null) { 23594 _unknownFields.WriteTo(output); 23595 } 23596 #endif 23597 } 23598 23599 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 23600 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 23601 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] IBufferMessage.InternalWriteTo(ref pb::WriteContext output)23602 void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { 23603 if (HasA) { 23604 output.WriteRawTag(72); 23605 output.WriteInt32(A); 23606 } 23607 if (HasB) { 23608 output.WriteRawTag(82); 23609 output.WriteString(B); 23610 } 23611 if (_unknownFields != null) { 23612 _unknownFields.WriteTo(ref output); 23613 } 23614 } 23615 #endif 23616 23617 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 23618 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] CalculateSize()23619 public int CalculateSize() { 23620 int size = 0; 23621 if (HasA) { 23622 size += 1 + pb::CodedOutputStream.ComputeInt32Size(A); 23623 } 23624 if (HasB) { 23625 size += 1 + pb::CodedOutputStream.ComputeStringSize(B); 23626 } 23627 if (_unknownFields != null) { 23628 size += _unknownFields.CalculateSize(); 23629 } 23630 return size; 23631 } 23632 23633 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 23634 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] MergeFrom(FooGroup other)23635 public void MergeFrom(FooGroup other) { 23636 if (other == null) { 23637 return; 23638 } 23639 if (other.HasA) { 23640 A = other.A; 23641 } 23642 if (other.HasB) { 23643 B = other.B; 23644 } 23645 _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); 23646 } 23647 23648 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 23649 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] MergeFrom(pb::CodedInputStream input)23650 public void MergeFrom(pb::CodedInputStream input) { 23651 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 23652 input.ReadRawMessage(this); 23653 #else 23654 uint tag; 23655 while ((tag = input.ReadTag()) != 0) { 23656 if ((tag & 7) == 4) { 23657 // Abort on any end group tag. 23658 return; 23659 } 23660 switch(tag) { 23661 default: 23662 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); 23663 break; 23664 case 72: { 23665 A = input.ReadInt32(); 23666 break; 23667 } 23668 case 82: { 23669 B = input.ReadString(); 23670 break; 23671 } 23672 } 23673 } 23674 #endif 23675 } 23676 23677 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 23678 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 23679 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] IBufferMessage.InternalMergeFrom(ref pb::ParseContext input)23680 void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { 23681 uint tag; 23682 while ((tag = input.ReadTag()) != 0) { 23683 if ((tag & 7) == 4) { 23684 // Abort on any end group tag. 23685 return; 23686 } 23687 switch(tag) { 23688 default: 23689 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); 23690 break; 23691 case 72: { 23692 A = input.ReadInt32(); 23693 break; 23694 } 23695 case 82: { 23696 B = input.ReadString(); 23697 break; 23698 } 23699 } 23700 } 23701 } 23702 #endif 23703 23704 } 23705 23706 [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] 23707 public sealed partial class NestedMessage : pb::IMessage<NestedMessage> 23708 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 23709 , pb::IBufferMessage 23710 #endif 23711 { 23712 private static readonly pb::MessageParser<NestedMessage> _parser = new pb::MessageParser<NestedMessage>(() => new NestedMessage()); 23713 private pb::UnknownFieldSet _unknownFields; 23714 private int _hasBits0; 23715 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 23716 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 23717 public static pb::MessageParser<NestedMessage> Parser { get { return _parser; } } 23718 23719 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 23720 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 23721 public static pbr::MessageDescriptor Descriptor { 23722 get { return global::Google.Protobuf.TestProtos.Proto2.TestOneof2.Descriptor.NestedTypes[1]; } 23723 } 23724 23725 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 23726 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 23727 pbr::MessageDescriptor pb::IMessage.Descriptor { 23728 get { return Descriptor; } 23729 } 23730 23731 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 23732 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] NestedMessage()23733 public NestedMessage() { 23734 OnConstruction(); 23735 } 23736 OnConstruction()23737 partial void OnConstruction(); 23738 23739 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 23740 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] NestedMessage(NestedMessage other)23741 public NestedMessage(NestedMessage other) : this() { 23742 _hasBits0 = other._hasBits0; 23743 quxInt_ = other.quxInt_; 23744 corgeInt_ = other.corgeInt_.Clone(); 23745 _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); 23746 } 23747 23748 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 23749 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] Clone()23750 public NestedMessage Clone() { 23751 return new NestedMessage(this); 23752 } 23753 23754 /// <summary>Field number for the "qux_int" field.</summary> 23755 public const int QuxIntFieldNumber = 1; 23756 private readonly static long QuxIntDefaultValue = 0L; 23757 23758 private long quxInt_; 23759 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 23760 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 23761 public long QuxInt { 23762 get { if ((_hasBits0 & 1) != 0) { return quxInt_; } else { return QuxIntDefaultValue; } } 23763 set { 23764 _hasBits0 |= 1; 23765 quxInt_ = value; 23766 } 23767 } 23768 /// <summary>Gets whether the "qux_int" field is set</summary> 23769 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 23770 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 23771 public bool HasQuxInt { 23772 get { return (_hasBits0 & 1) != 0; } 23773 } 23774 /// <summary>Clears the value of the "qux_int" field</summary> 23775 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 23776 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] ClearQuxInt()23777 public void ClearQuxInt() { 23778 _hasBits0 &= ~1; 23779 } 23780 23781 /// <summary>Field number for the "corge_int" field.</summary> 23782 public const int CorgeIntFieldNumber = 2; 23783 private static readonly pb::FieldCodec<int> _repeated_corgeInt_codec 23784 = pb::FieldCodec.ForInt32(16); 23785 private readonly pbc::RepeatedField<int> corgeInt_ = new pbc::RepeatedField<int>(); 23786 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 23787 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 23788 public pbc::RepeatedField<int> CorgeInt { 23789 get { return corgeInt_; } 23790 } 23791 23792 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 23793 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] Equals(object other)23794 public override bool Equals(object other) { 23795 return Equals(other as NestedMessage); 23796 } 23797 23798 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 23799 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] Equals(NestedMessage other)23800 public bool Equals(NestedMessage other) { 23801 if (ReferenceEquals(other, null)) { 23802 return false; 23803 } 23804 if (ReferenceEquals(other, this)) { 23805 return true; 23806 } 23807 if (QuxInt != other.QuxInt) return false; 23808 if(!corgeInt_.Equals(other.corgeInt_)) return false; 23809 return Equals(_unknownFields, other._unknownFields); 23810 } 23811 23812 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 23813 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] GetHashCode()23814 public override int GetHashCode() { 23815 int hash = 1; 23816 if (HasQuxInt) hash ^= QuxInt.GetHashCode(); 23817 hash ^= corgeInt_.GetHashCode(); 23818 if (_unknownFields != null) { 23819 hash ^= _unknownFields.GetHashCode(); 23820 } 23821 return hash; 23822 } 23823 23824 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 23825 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] ToString()23826 public override string ToString() { 23827 return pb::JsonFormatter.ToDiagnosticString(this); 23828 } 23829 23830 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 23831 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] WriteTo(pb::CodedOutputStream output)23832 public void WriteTo(pb::CodedOutputStream output) { 23833 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 23834 output.WriteRawMessage(this); 23835 #else 23836 if (HasQuxInt) { 23837 output.WriteRawTag(8); 23838 output.WriteInt64(QuxInt); 23839 } 23840 corgeInt_.WriteTo(output, _repeated_corgeInt_codec); 23841 if (_unknownFields != null) { 23842 _unknownFields.WriteTo(output); 23843 } 23844 #endif 23845 } 23846 23847 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 23848 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 23849 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] IBufferMessage.InternalWriteTo(ref pb::WriteContext output)23850 void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { 23851 if (HasQuxInt) { 23852 output.WriteRawTag(8); 23853 output.WriteInt64(QuxInt); 23854 } 23855 corgeInt_.WriteTo(ref output, _repeated_corgeInt_codec); 23856 if (_unknownFields != null) { 23857 _unknownFields.WriteTo(ref output); 23858 } 23859 } 23860 #endif 23861 23862 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 23863 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] CalculateSize()23864 public int CalculateSize() { 23865 int size = 0; 23866 if (HasQuxInt) { 23867 size += 1 + pb::CodedOutputStream.ComputeInt64Size(QuxInt); 23868 } 23869 size += corgeInt_.CalculateSize(_repeated_corgeInt_codec); 23870 if (_unknownFields != null) { 23871 size += _unknownFields.CalculateSize(); 23872 } 23873 return size; 23874 } 23875 23876 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 23877 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] MergeFrom(NestedMessage other)23878 public void MergeFrom(NestedMessage other) { 23879 if (other == null) { 23880 return; 23881 } 23882 if (other.HasQuxInt) { 23883 QuxInt = other.QuxInt; 23884 } 23885 corgeInt_.Add(other.corgeInt_); 23886 _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); 23887 } 23888 23889 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 23890 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] MergeFrom(pb::CodedInputStream input)23891 public void MergeFrom(pb::CodedInputStream input) { 23892 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 23893 input.ReadRawMessage(this); 23894 #else 23895 uint tag; 23896 while ((tag = input.ReadTag()) != 0) { 23897 if ((tag & 7) == 4) { 23898 // Abort on any end group tag. 23899 return; 23900 } 23901 switch(tag) { 23902 default: 23903 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); 23904 break; 23905 case 8: { 23906 QuxInt = input.ReadInt64(); 23907 break; 23908 } 23909 case 18: 23910 case 16: { 23911 corgeInt_.AddEntriesFrom(input, _repeated_corgeInt_codec); 23912 break; 23913 } 23914 } 23915 } 23916 #endif 23917 } 23918 23919 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 23920 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 23921 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] IBufferMessage.InternalMergeFrom(ref pb::ParseContext input)23922 void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { 23923 uint tag; 23924 while ((tag = input.ReadTag()) != 0) { 23925 if ((tag & 7) == 4) { 23926 // Abort on any end group tag. 23927 return; 23928 } 23929 switch(tag) { 23930 default: 23931 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); 23932 break; 23933 case 8: { 23934 QuxInt = input.ReadInt64(); 23935 break; 23936 } 23937 case 18: 23938 case 16: { 23939 corgeInt_.AddEntriesFrom(ref input, _repeated_corgeInt_codec); 23940 break; 23941 } 23942 } 23943 } 23944 } 23945 #endif 23946 23947 } 23948 23949 } 23950 #endregion 23951 23952 } 23953 23954 [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] 23955 public sealed partial class TestRequiredOneof : pb::IMessage<TestRequiredOneof> 23956 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 23957 , pb::IBufferMessage 23958 #endif 23959 { 23960 private static readonly pb::MessageParser<TestRequiredOneof> _parser = new pb::MessageParser<TestRequiredOneof>(() => new TestRequiredOneof()); 23961 private pb::UnknownFieldSet _unknownFields; 23962 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 23963 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 23964 public static pb::MessageParser<TestRequiredOneof> Parser { get { return _parser; } } 23965 23966 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 23967 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 23968 public static pbr::MessageDescriptor Descriptor { 23969 get { return global::Google.Protobuf.TestProtos.Proto2.UnittestReflection.Descriptor.MessageTypes[46]; } 23970 } 23971 23972 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 23973 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 23974 pbr::MessageDescriptor pb::IMessage.Descriptor { 23975 get { return Descriptor; } 23976 } 23977 23978 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 23979 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] TestRequiredOneof()23980 public TestRequiredOneof() { 23981 OnConstruction(); 23982 } 23983 OnConstruction()23984 partial void OnConstruction(); 23985 23986 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 23987 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] TestRequiredOneof(TestRequiredOneof other)23988 public TestRequiredOneof(TestRequiredOneof other) : this() { 23989 switch (other.FooCase) { 23990 case FooOneofCase.FooInt: 23991 FooInt = other.FooInt; 23992 break; 23993 case FooOneofCase.FooString: 23994 FooString = other.FooString; 23995 break; 23996 case FooOneofCase.FooMessage: 23997 FooMessage = other.FooMessage.Clone(); 23998 break; 23999 } 24000 24001 _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); 24002 } 24003 24004 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 24005 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] Clone()24006 public TestRequiredOneof Clone() { 24007 return new TestRequiredOneof(this); 24008 } 24009 24010 /// <summary>Field number for the "foo_int" field.</summary> 24011 public const int FooIntFieldNumber = 1; 24012 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 24013 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 24014 public int FooInt { 24015 get { return HasFooInt ? (int) foo_ : 0; } 24016 set { 24017 foo_ = value; 24018 fooCase_ = FooOneofCase.FooInt; 24019 } 24020 } 24021 /// <summary>Gets whether the "foo_int" field is set</summary> 24022 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 24023 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 24024 public bool HasFooInt { 24025 get { return fooCase_ == FooOneofCase.FooInt; } 24026 } 24027 /// <summary> Clears the value of the oneof if it's currently set to "foo_int" </summary> 24028 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 24029 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] ClearFooInt()24030 public void ClearFooInt() { 24031 if (HasFooInt) { 24032 ClearFoo(); 24033 } 24034 } 24035 24036 /// <summary>Field number for the "foo_string" field.</summary> 24037 public const int FooStringFieldNumber = 2; 24038 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 24039 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 24040 public string FooString { 24041 get { return HasFooString ? (string) foo_ : ""; } 24042 set { 24043 foo_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); 24044 fooCase_ = FooOneofCase.FooString; 24045 } 24046 } 24047 /// <summary>Gets whether the "foo_string" field is set</summary> 24048 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 24049 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 24050 public bool HasFooString { 24051 get { return fooCase_ == FooOneofCase.FooString; } 24052 } 24053 /// <summary> Clears the value of the oneof if it's currently set to "foo_string" </summary> 24054 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 24055 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] ClearFooString()24056 public void ClearFooString() { 24057 if (HasFooString) { 24058 ClearFoo(); 24059 } 24060 } 24061 24062 /// <summary>Field number for the "foo_message" field.</summary> 24063 public const int FooMessageFieldNumber = 3; 24064 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 24065 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 24066 public global::Google.Protobuf.TestProtos.Proto2.TestRequiredOneof.Types.NestedMessage FooMessage { 24067 get { return fooCase_ == FooOneofCase.FooMessage ? (global::Google.Protobuf.TestProtos.Proto2.TestRequiredOneof.Types.NestedMessage) foo_ : null; } 24068 set { 24069 foo_ = value; 24070 fooCase_ = value == null ? FooOneofCase.None : FooOneofCase.FooMessage; 24071 } 24072 } 24073 24074 private object foo_; 24075 /// <summary>Enum of possible cases for the "foo" oneof.</summary> 24076 public enum FooOneofCase { 24077 None = 0, 24078 FooInt = 1, 24079 FooString = 2, 24080 FooMessage = 3, 24081 } 24082 private FooOneofCase fooCase_ = FooOneofCase.None; 24083 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 24084 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 24085 public FooOneofCase FooCase { 24086 get { return fooCase_; } 24087 } 24088 24089 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 24090 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] ClearFoo()24091 public void ClearFoo() { 24092 fooCase_ = FooOneofCase.None; 24093 foo_ = null; 24094 } 24095 24096 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 24097 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] Equals(object other)24098 public override bool Equals(object other) { 24099 return Equals(other as TestRequiredOneof); 24100 } 24101 24102 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 24103 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] Equals(TestRequiredOneof other)24104 public bool Equals(TestRequiredOneof other) { 24105 if (ReferenceEquals(other, null)) { 24106 return false; 24107 } 24108 if (ReferenceEquals(other, this)) { 24109 return true; 24110 } 24111 if (FooInt != other.FooInt) return false; 24112 if (FooString != other.FooString) return false; 24113 if (!object.Equals(FooMessage, other.FooMessage)) return false; 24114 if (FooCase != other.FooCase) return false; 24115 return Equals(_unknownFields, other._unknownFields); 24116 } 24117 24118 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 24119 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] GetHashCode()24120 public override int GetHashCode() { 24121 int hash = 1; 24122 if (HasFooInt) hash ^= FooInt.GetHashCode(); 24123 if (HasFooString) hash ^= FooString.GetHashCode(); 24124 if (fooCase_ == FooOneofCase.FooMessage) hash ^= FooMessage.GetHashCode(); 24125 hash ^= (int) fooCase_; 24126 if (_unknownFields != null) { 24127 hash ^= _unknownFields.GetHashCode(); 24128 } 24129 return hash; 24130 } 24131 24132 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 24133 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] ToString()24134 public override string ToString() { 24135 return pb::JsonFormatter.ToDiagnosticString(this); 24136 } 24137 24138 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 24139 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] WriteTo(pb::CodedOutputStream output)24140 public void WriteTo(pb::CodedOutputStream output) { 24141 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 24142 output.WriteRawMessage(this); 24143 #else 24144 if (HasFooInt) { 24145 output.WriteRawTag(8); 24146 output.WriteInt32(FooInt); 24147 } 24148 if (HasFooString) { 24149 output.WriteRawTag(18); 24150 output.WriteString(FooString); 24151 } 24152 if (fooCase_ == FooOneofCase.FooMessage) { 24153 output.WriteRawTag(26); 24154 output.WriteMessage(FooMessage); 24155 } 24156 if (_unknownFields != null) { 24157 _unknownFields.WriteTo(output); 24158 } 24159 #endif 24160 } 24161 24162 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 24163 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 24164 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] IBufferMessage.InternalWriteTo(ref pb::WriteContext output)24165 void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { 24166 if (HasFooInt) { 24167 output.WriteRawTag(8); 24168 output.WriteInt32(FooInt); 24169 } 24170 if (HasFooString) { 24171 output.WriteRawTag(18); 24172 output.WriteString(FooString); 24173 } 24174 if (fooCase_ == FooOneofCase.FooMessage) { 24175 output.WriteRawTag(26); 24176 output.WriteMessage(FooMessage); 24177 } 24178 if (_unknownFields != null) { 24179 _unknownFields.WriteTo(ref output); 24180 } 24181 } 24182 #endif 24183 24184 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 24185 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] CalculateSize()24186 public int CalculateSize() { 24187 int size = 0; 24188 if (HasFooInt) { 24189 size += 1 + pb::CodedOutputStream.ComputeInt32Size(FooInt); 24190 } 24191 if (HasFooString) { 24192 size += 1 + pb::CodedOutputStream.ComputeStringSize(FooString); 24193 } 24194 if (fooCase_ == FooOneofCase.FooMessage) { 24195 size += 1 + pb::CodedOutputStream.ComputeMessageSize(FooMessage); 24196 } 24197 if (_unknownFields != null) { 24198 size += _unknownFields.CalculateSize(); 24199 } 24200 return size; 24201 } 24202 24203 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 24204 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] MergeFrom(TestRequiredOneof other)24205 public void MergeFrom(TestRequiredOneof other) { 24206 if (other == null) { 24207 return; 24208 } 24209 switch (other.FooCase) { 24210 case FooOneofCase.FooInt: 24211 FooInt = other.FooInt; 24212 break; 24213 case FooOneofCase.FooString: 24214 FooString = other.FooString; 24215 break; 24216 case FooOneofCase.FooMessage: 24217 if (FooMessage == null) { 24218 FooMessage = new global::Google.Protobuf.TestProtos.Proto2.TestRequiredOneof.Types.NestedMessage(); 24219 } 24220 FooMessage.MergeFrom(other.FooMessage); 24221 break; 24222 } 24223 24224 _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); 24225 } 24226 24227 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 24228 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] MergeFrom(pb::CodedInputStream input)24229 public void MergeFrom(pb::CodedInputStream input) { 24230 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 24231 input.ReadRawMessage(this); 24232 #else 24233 uint tag; 24234 while ((tag = input.ReadTag()) != 0) { 24235 if ((tag & 7) == 4) { 24236 // Abort on any end group tag. 24237 return; 24238 } 24239 switch(tag) { 24240 default: 24241 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); 24242 break; 24243 case 8: { 24244 FooInt = input.ReadInt32(); 24245 break; 24246 } 24247 case 18: { 24248 FooString = input.ReadString(); 24249 break; 24250 } 24251 case 26: { 24252 global::Google.Protobuf.TestProtos.Proto2.TestRequiredOneof.Types.NestedMessage subBuilder = new global::Google.Protobuf.TestProtos.Proto2.TestRequiredOneof.Types.NestedMessage(); 24253 if (fooCase_ == FooOneofCase.FooMessage) { 24254 subBuilder.MergeFrom(FooMessage); 24255 } 24256 input.ReadMessage(subBuilder); 24257 FooMessage = subBuilder; 24258 break; 24259 } 24260 } 24261 } 24262 #endif 24263 } 24264 24265 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 24266 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 24267 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] IBufferMessage.InternalMergeFrom(ref pb::ParseContext input)24268 void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { 24269 uint tag; 24270 while ((tag = input.ReadTag()) != 0) { 24271 if ((tag & 7) == 4) { 24272 // Abort on any end group tag. 24273 return; 24274 } 24275 switch(tag) { 24276 default: 24277 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); 24278 break; 24279 case 8: { 24280 FooInt = input.ReadInt32(); 24281 break; 24282 } 24283 case 18: { 24284 FooString = input.ReadString(); 24285 break; 24286 } 24287 case 26: { 24288 global::Google.Protobuf.TestProtos.Proto2.TestRequiredOneof.Types.NestedMessage subBuilder = new global::Google.Protobuf.TestProtos.Proto2.TestRequiredOneof.Types.NestedMessage(); 24289 if (fooCase_ == FooOneofCase.FooMessage) { 24290 subBuilder.MergeFrom(FooMessage); 24291 } 24292 input.ReadMessage(subBuilder); 24293 FooMessage = subBuilder; 24294 break; 24295 } 24296 } 24297 } 24298 } 24299 #endif 24300 24301 #region Nested types 24302 /// <summary>Container for nested types declared in the TestRequiredOneof message type.</summary> 24303 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 24304 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 24305 public static partial class Types { 24306 [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] 24307 public sealed partial class NestedMessage : pb::IMessage<NestedMessage> 24308 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 24309 , pb::IBufferMessage 24310 #endif 24311 { 24312 private static readonly pb::MessageParser<NestedMessage> _parser = new pb::MessageParser<NestedMessage>(() => new NestedMessage()); 24313 private pb::UnknownFieldSet _unknownFields; 24314 private int _hasBits0; 24315 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 24316 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 24317 public static pb::MessageParser<NestedMessage> Parser { get { return _parser; } } 24318 24319 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 24320 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 24321 public static pbr::MessageDescriptor Descriptor { 24322 get { return global::Google.Protobuf.TestProtos.Proto2.TestRequiredOneof.Descriptor.NestedTypes[0]; } 24323 } 24324 24325 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 24326 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 24327 pbr::MessageDescriptor pb::IMessage.Descriptor { 24328 get { return Descriptor; } 24329 } 24330 24331 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 24332 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] NestedMessage()24333 public NestedMessage() { 24334 OnConstruction(); 24335 } 24336 OnConstruction()24337 partial void OnConstruction(); 24338 24339 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 24340 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] NestedMessage(NestedMessage other)24341 public NestedMessage(NestedMessage other) : this() { 24342 _hasBits0 = other._hasBits0; 24343 requiredDouble_ = other.requiredDouble_; 24344 _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); 24345 } 24346 24347 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 24348 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] Clone()24349 public NestedMessage Clone() { 24350 return new NestedMessage(this); 24351 } 24352 24353 /// <summary>Field number for the "required_double" field.</summary> 24354 public const int RequiredDoubleFieldNumber = 1; 24355 private readonly static double RequiredDoubleDefaultValue = 0D; 24356 24357 private double requiredDouble_; 24358 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 24359 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 24360 public double RequiredDouble { 24361 get { if ((_hasBits0 & 1) != 0) { return requiredDouble_; } else { return RequiredDoubleDefaultValue; } } 24362 set { 24363 _hasBits0 |= 1; 24364 requiredDouble_ = value; 24365 } 24366 } 24367 /// <summary>Gets whether the "required_double" field is set</summary> 24368 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 24369 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 24370 public bool HasRequiredDouble { 24371 get { return (_hasBits0 & 1) != 0; } 24372 } 24373 /// <summary>Clears the value of the "required_double" field</summary> 24374 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 24375 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] ClearRequiredDouble()24376 public void ClearRequiredDouble() { 24377 _hasBits0 &= ~1; 24378 } 24379 24380 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 24381 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] Equals(object other)24382 public override bool Equals(object other) { 24383 return Equals(other as NestedMessage); 24384 } 24385 24386 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 24387 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] Equals(NestedMessage other)24388 public bool Equals(NestedMessage other) { 24389 if (ReferenceEquals(other, null)) { 24390 return false; 24391 } 24392 if (ReferenceEquals(other, this)) { 24393 return true; 24394 } 24395 if (!pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.Equals(RequiredDouble, other.RequiredDouble)) return false; 24396 return Equals(_unknownFields, other._unknownFields); 24397 } 24398 24399 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 24400 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] GetHashCode()24401 public override int GetHashCode() { 24402 int hash = 1; 24403 if (HasRequiredDouble) hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(RequiredDouble); 24404 if (_unknownFields != null) { 24405 hash ^= _unknownFields.GetHashCode(); 24406 } 24407 return hash; 24408 } 24409 24410 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 24411 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] ToString()24412 public override string ToString() { 24413 return pb::JsonFormatter.ToDiagnosticString(this); 24414 } 24415 24416 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 24417 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] WriteTo(pb::CodedOutputStream output)24418 public void WriteTo(pb::CodedOutputStream output) { 24419 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 24420 output.WriteRawMessage(this); 24421 #else 24422 if (HasRequiredDouble) { 24423 output.WriteRawTag(9); 24424 output.WriteDouble(RequiredDouble); 24425 } 24426 if (_unknownFields != null) { 24427 _unknownFields.WriteTo(output); 24428 } 24429 #endif 24430 } 24431 24432 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 24433 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 24434 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] IBufferMessage.InternalWriteTo(ref pb::WriteContext output)24435 void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { 24436 if (HasRequiredDouble) { 24437 output.WriteRawTag(9); 24438 output.WriteDouble(RequiredDouble); 24439 } 24440 if (_unknownFields != null) { 24441 _unknownFields.WriteTo(ref output); 24442 } 24443 } 24444 #endif 24445 24446 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 24447 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] CalculateSize()24448 public int CalculateSize() { 24449 int size = 0; 24450 if (HasRequiredDouble) { 24451 size += 1 + 8; 24452 } 24453 if (_unknownFields != null) { 24454 size += _unknownFields.CalculateSize(); 24455 } 24456 return size; 24457 } 24458 24459 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 24460 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] MergeFrom(NestedMessage other)24461 public void MergeFrom(NestedMessage other) { 24462 if (other == null) { 24463 return; 24464 } 24465 if (other.HasRequiredDouble) { 24466 RequiredDouble = other.RequiredDouble; 24467 } 24468 _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); 24469 } 24470 24471 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 24472 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] MergeFrom(pb::CodedInputStream input)24473 public void MergeFrom(pb::CodedInputStream input) { 24474 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 24475 input.ReadRawMessage(this); 24476 #else 24477 uint tag; 24478 while ((tag = input.ReadTag()) != 0) { 24479 if ((tag & 7) == 4) { 24480 // Abort on any end group tag. 24481 return; 24482 } 24483 switch(tag) { 24484 default: 24485 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); 24486 break; 24487 case 9: { 24488 RequiredDouble = input.ReadDouble(); 24489 break; 24490 } 24491 } 24492 } 24493 #endif 24494 } 24495 24496 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 24497 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 24498 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] IBufferMessage.InternalMergeFrom(ref pb::ParseContext input)24499 void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { 24500 uint tag; 24501 while ((tag = input.ReadTag()) != 0) { 24502 if ((tag & 7) == 4) { 24503 // Abort on any end group tag. 24504 return; 24505 } 24506 switch(tag) { 24507 default: 24508 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); 24509 break; 24510 case 9: { 24511 RequiredDouble = input.ReadDouble(); 24512 break; 24513 } 24514 } 24515 } 24516 } 24517 #endif 24518 24519 } 24520 24521 } 24522 #endregion 24523 24524 } 24525 24526 [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] 24527 public sealed partial class TestRequiredMap : pb::IMessage<TestRequiredMap> 24528 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 24529 , pb::IBufferMessage 24530 #endif 24531 { 24532 private static readonly pb::MessageParser<TestRequiredMap> _parser = new pb::MessageParser<TestRequiredMap>(() => new TestRequiredMap()); 24533 private pb::UnknownFieldSet _unknownFields; 24534 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 24535 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 24536 public static pb::MessageParser<TestRequiredMap> Parser { get { return _parser; } } 24537 24538 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 24539 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 24540 public static pbr::MessageDescriptor Descriptor { 24541 get { return global::Google.Protobuf.TestProtos.Proto2.UnittestReflection.Descriptor.MessageTypes[47]; } 24542 } 24543 24544 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 24545 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 24546 pbr::MessageDescriptor pb::IMessage.Descriptor { 24547 get { return Descriptor; } 24548 } 24549 24550 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 24551 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] TestRequiredMap()24552 public TestRequiredMap() { 24553 OnConstruction(); 24554 } 24555 OnConstruction()24556 partial void OnConstruction(); 24557 24558 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 24559 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] TestRequiredMap(TestRequiredMap other)24560 public TestRequiredMap(TestRequiredMap other) : this() { 24561 foo_ = other.foo_.Clone(); 24562 _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); 24563 } 24564 24565 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 24566 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] Clone()24567 public TestRequiredMap Clone() { 24568 return new TestRequiredMap(this); 24569 } 24570 24571 /// <summary>Field number for the "foo" field.</summary> 24572 public const int FooFieldNumber = 1; 24573 private static readonly pbc::MapField<int, global::Google.Protobuf.TestProtos.Proto2.TestRequiredMap.Types.NestedMessage>.Codec _map_foo_codec 24574 = 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); 24575 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>(); 24576 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 24577 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 24578 public pbc::MapField<int, global::Google.Protobuf.TestProtos.Proto2.TestRequiredMap.Types.NestedMessage> Foo { 24579 get { return foo_; } 24580 } 24581 24582 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 24583 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] Equals(object other)24584 public override bool Equals(object other) { 24585 return Equals(other as TestRequiredMap); 24586 } 24587 24588 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 24589 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] Equals(TestRequiredMap other)24590 public bool Equals(TestRequiredMap other) { 24591 if (ReferenceEquals(other, null)) { 24592 return false; 24593 } 24594 if (ReferenceEquals(other, this)) { 24595 return true; 24596 } 24597 if (!Foo.Equals(other.Foo)) return false; 24598 return Equals(_unknownFields, other._unknownFields); 24599 } 24600 24601 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 24602 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] GetHashCode()24603 public override int GetHashCode() { 24604 int hash = 1; 24605 hash ^= Foo.GetHashCode(); 24606 if (_unknownFields != null) { 24607 hash ^= _unknownFields.GetHashCode(); 24608 } 24609 return hash; 24610 } 24611 24612 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 24613 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] ToString()24614 public override string ToString() { 24615 return pb::JsonFormatter.ToDiagnosticString(this); 24616 } 24617 24618 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 24619 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] WriteTo(pb::CodedOutputStream output)24620 public void WriteTo(pb::CodedOutputStream output) { 24621 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 24622 output.WriteRawMessage(this); 24623 #else 24624 foo_.WriteTo(output, _map_foo_codec); 24625 if (_unknownFields != null) { 24626 _unknownFields.WriteTo(output); 24627 } 24628 #endif 24629 } 24630 24631 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 24632 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 24633 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] IBufferMessage.InternalWriteTo(ref pb::WriteContext output)24634 void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { 24635 foo_.WriteTo(ref output, _map_foo_codec); 24636 if (_unknownFields != null) { 24637 _unknownFields.WriteTo(ref output); 24638 } 24639 } 24640 #endif 24641 24642 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 24643 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] CalculateSize()24644 public int CalculateSize() { 24645 int size = 0; 24646 size += foo_.CalculateSize(_map_foo_codec); 24647 if (_unknownFields != null) { 24648 size += _unknownFields.CalculateSize(); 24649 } 24650 return size; 24651 } 24652 24653 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 24654 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] MergeFrom(TestRequiredMap other)24655 public void MergeFrom(TestRequiredMap other) { 24656 if (other == null) { 24657 return; 24658 } 24659 foo_.MergeFrom(other.foo_); 24660 _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); 24661 } 24662 24663 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 24664 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] MergeFrom(pb::CodedInputStream input)24665 public void MergeFrom(pb::CodedInputStream input) { 24666 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 24667 input.ReadRawMessage(this); 24668 #else 24669 uint tag; 24670 while ((tag = input.ReadTag()) != 0) { 24671 if ((tag & 7) == 4) { 24672 // Abort on any end group tag. 24673 return; 24674 } 24675 switch(tag) { 24676 default: 24677 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); 24678 break; 24679 case 10: { 24680 foo_.AddEntriesFrom(input, _map_foo_codec); 24681 break; 24682 } 24683 } 24684 } 24685 #endif 24686 } 24687 24688 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 24689 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 24690 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] IBufferMessage.InternalMergeFrom(ref pb::ParseContext input)24691 void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { 24692 uint tag; 24693 while ((tag = input.ReadTag()) != 0) { 24694 if ((tag & 7) == 4) { 24695 // Abort on any end group tag. 24696 return; 24697 } 24698 switch(tag) { 24699 default: 24700 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); 24701 break; 24702 case 10: { 24703 foo_.AddEntriesFrom(ref input, _map_foo_codec); 24704 break; 24705 } 24706 } 24707 } 24708 } 24709 #endif 24710 24711 #region Nested types 24712 /// <summary>Container for nested types declared in the TestRequiredMap message type.</summary> 24713 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 24714 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 24715 public static partial class Types { 24716 [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] 24717 public sealed partial class NestedMessage : pb::IMessage<NestedMessage> 24718 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 24719 , pb::IBufferMessage 24720 #endif 24721 { 24722 private static readonly pb::MessageParser<NestedMessage> _parser = new pb::MessageParser<NestedMessage>(() => new NestedMessage()); 24723 private pb::UnknownFieldSet _unknownFields; 24724 private int _hasBits0; 24725 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 24726 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 24727 public static pb::MessageParser<NestedMessage> Parser { get { return _parser; } } 24728 24729 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 24730 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 24731 public static pbr::MessageDescriptor Descriptor { 24732 get { return global::Google.Protobuf.TestProtos.Proto2.TestRequiredMap.Descriptor.NestedTypes[1]; } 24733 } 24734 24735 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 24736 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 24737 pbr::MessageDescriptor pb::IMessage.Descriptor { 24738 get { return Descriptor; } 24739 } 24740 24741 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 24742 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] NestedMessage()24743 public NestedMessage() { 24744 OnConstruction(); 24745 } 24746 OnConstruction()24747 partial void OnConstruction(); 24748 24749 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 24750 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] NestedMessage(NestedMessage other)24751 public NestedMessage(NestedMessage other) : this() { 24752 _hasBits0 = other._hasBits0; 24753 requiredInt32_ = other.requiredInt32_; 24754 _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); 24755 } 24756 24757 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 24758 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] Clone()24759 public NestedMessage Clone() { 24760 return new NestedMessage(this); 24761 } 24762 24763 /// <summary>Field number for the "required_int32" field.</summary> 24764 public const int RequiredInt32FieldNumber = 1; 24765 private readonly static int RequiredInt32DefaultValue = 0; 24766 24767 private int requiredInt32_; 24768 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 24769 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 24770 public int RequiredInt32 { 24771 get { if ((_hasBits0 & 1) != 0) { return requiredInt32_; } else { return RequiredInt32DefaultValue; } } 24772 set { 24773 _hasBits0 |= 1; 24774 requiredInt32_ = value; 24775 } 24776 } 24777 /// <summary>Gets whether the "required_int32" field is set</summary> 24778 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 24779 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 24780 public bool HasRequiredInt32 { 24781 get { return (_hasBits0 & 1) != 0; } 24782 } 24783 /// <summary>Clears the value of the "required_int32" field</summary> 24784 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 24785 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] ClearRequiredInt32()24786 public void ClearRequiredInt32() { 24787 _hasBits0 &= ~1; 24788 } 24789 24790 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 24791 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] Equals(object other)24792 public override bool Equals(object other) { 24793 return Equals(other as NestedMessage); 24794 } 24795 24796 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 24797 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] Equals(NestedMessage other)24798 public bool Equals(NestedMessage other) { 24799 if (ReferenceEquals(other, null)) { 24800 return false; 24801 } 24802 if (ReferenceEquals(other, this)) { 24803 return true; 24804 } 24805 if (RequiredInt32 != other.RequiredInt32) return false; 24806 return Equals(_unknownFields, other._unknownFields); 24807 } 24808 24809 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 24810 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] GetHashCode()24811 public override int GetHashCode() { 24812 int hash = 1; 24813 if (HasRequiredInt32) hash ^= RequiredInt32.GetHashCode(); 24814 if (_unknownFields != null) { 24815 hash ^= _unknownFields.GetHashCode(); 24816 } 24817 return hash; 24818 } 24819 24820 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 24821 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] ToString()24822 public override string ToString() { 24823 return pb::JsonFormatter.ToDiagnosticString(this); 24824 } 24825 24826 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 24827 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] WriteTo(pb::CodedOutputStream output)24828 public void WriteTo(pb::CodedOutputStream output) { 24829 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 24830 output.WriteRawMessage(this); 24831 #else 24832 if (HasRequiredInt32) { 24833 output.WriteRawTag(8); 24834 output.WriteInt32(RequiredInt32); 24835 } 24836 if (_unknownFields != null) { 24837 _unknownFields.WriteTo(output); 24838 } 24839 #endif 24840 } 24841 24842 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 24843 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 24844 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] IBufferMessage.InternalWriteTo(ref pb::WriteContext output)24845 void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { 24846 if (HasRequiredInt32) { 24847 output.WriteRawTag(8); 24848 output.WriteInt32(RequiredInt32); 24849 } 24850 if (_unknownFields != null) { 24851 _unknownFields.WriteTo(ref output); 24852 } 24853 } 24854 #endif 24855 24856 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 24857 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] CalculateSize()24858 public int CalculateSize() { 24859 int size = 0; 24860 if (HasRequiredInt32) { 24861 size += 1 + pb::CodedOutputStream.ComputeInt32Size(RequiredInt32); 24862 } 24863 if (_unknownFields != null) { 24864 size += _unknownFields.CalculateSize(); 24865 } 24866 return size; 24867 } 24868 24869 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 24870 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] MergeFrom(NestedMessage other)24871 public void MergeFrom(NestedMessage other) { 24872 if (other == null) { 24873 return; 24874 } 24875 if (other.HasRequiredInt32) { 24876 RequiredInt32 = other.RequiredInt32; 24877 } 24878 _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); 24879 } 24880 24881 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 24882 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] MergeFrom(pb::CodedInputStream input)24883 public void MergeFrom(pb::CodedInputStream input) { 24884 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 24885 input.ReadRawMessage(this); 24886 #else 24887 uint tag; 24888 while ((tag = input.ReadTag()) != 0) { 24889 if ((tag & 7) == 4) { 24890 // Abort on any end group tag. 24891 return; 24892 } 24893 switch(tag) { 24894 default: 24895 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); 24896 break; 24897 case 8: { 24898 RequiredInt32 = input.ReadInt32(); 24899 break; 24900 } 24901 } 24902 } 24903 #endif 24904 } 24905 24906 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 24907 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 24908 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] IBufferMessage.InternalMergeFrom(ref pb::ParseContext input)24909 void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { 24910 uint tag; 24911 while ((tag = input.ReadTag()) != 0) { 24912 if ((tag & 7) == 4) { 24913 // Abort on any end group tag. 24914 return; 24915 } 24916 switch(tag) { 24917 default: 24918 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); 24919 break; 24920 case 8: { 24921 RequiredInt32 = input.ReadInt32(); 24922 break; 24923 } 24924 } 24925 } 24926 } 24927 #endif 24928 24929 } 24930 24931 } 24932 #endregion 24933 24934 } 24935 24936 [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] 24937 public sealed partial class TestPackedTypes : pb::IMessage<TestPackedTypes> 24938 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 24939 , pb::IBufferMessage 24940 #endif 24941 { 24942 private static readonly pb::MessageParser<TestPackedTypes> _parser = new pb::MessageParser<TestPackedTypes>(() => new TestPackedTypes()); 24943 private pb::UnknownFieldSet _unknownFields; 24944 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 24945 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 24946 public static pb::MessageParser<TestPackedTypes> Parser { get { return _parser; } } 24947 24948 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 24949 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 24950 public static pbr::MessageDescriptor Descriptor { 24951 get { return global::Google.Protobuf.TestProtos.Proto2.UnittestReflection.Descriptor.MessageTypes[48]; } 24952 } 24953 24954 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 24955 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 24956 pbr::MessageDescriptor pb::IMessage.Descriptor { 24957 get { return Descriptor; } 24958 } 24959 24960 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 24961 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] TestPackedTypes()24962 public TestPackedTypes() { 24963 OnConstruction(); 24964 } 24965 OnConstruction()24966 partial void OnConstruction(); 24967 24968 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 24969 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] TestPackedTypes(TestPackedTypes other)24970 public TestPackedTypes(TestPackedTypes other) : this() { 24971 packedInt32_ = other.packedInt32_.Clone(); 24972 packedInt64_ = other.packedInt64_.Clone(); 24973 packedUint32_ = other.packedUint32_.Clone(); 24974 packedUint64_ = other.packedUint64_.Clone(); 24975 packedSint32_ = other.packedSint32_.Clone(); 24976 packedSint64_ = other.packedSint64_.Clone(); 24977 packedFixed32_ = other.packedFixed32_.Clone(); 24978 packedFixed64_ = other.packedFixed64_.Clone(); 24979 packedSfixed32_ = other.packedSfixed32_.Clone(); 24980 packedSfixed64_ = other.packedSfixed64_.Clone(); 24981 packedFloat_ = other.packedFloat_.Clone(); 24982 packedDouble_ = other.packedDouble_.Clone(); 24983 packedBool_ = other.packedBool_.Clone(); 24984 packedEnum_ = other.packedEnum_.Clone(); 24985 _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); 24986 } 24987 24988 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 24989 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] Clone()24990 public TestPackedTypes Clone() { 24991 return new TestPackedTypes(this); 24992 } 24993 24994 /// <summary>Field number for the "packed_int32" field.</summary> 24995 public const int PackedInt32FieldNumber = 90; 24996 private static readonly pb::FieldCodec<int> _repeated_packedInt32_codec 24997 = pb::FieldCodec.ForInt32(722); 24998 private readonly pbc::RepeatedField<int> packedInt32_ = new pbc::RepeatedField<int>(); 24999 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 25000 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 25001 public pbc::RepeatedField<int> PackedInt32 { 25002 get { return packedInt32_; } 25003 } 25004 25005 /// <summary>Field number for the "packed_int64" field.</summary> 25006 public const int PackedInt64FieldNumber = 91; 25007 private static readonly pb::FieldCodec<long> _repeated_packedInt64_codec 25008 = pb::FieldCodec.ForInt64(730); 25009 private readonly pbc::RepeatedField<long> packedInt64_ = new pbc::RepeatedField<long>(); 25010 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 25011 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 25012 public pbc::RepeatedField<long> PackedInt64 { 25013 get { return packedInt64_; } 25014 } 25015 25016 /// <summary>Field number for the "packed_uint32" field.</summary> 25017 public const int PackedUint32FieldNumber = 92; 25018 private static readonly pb::FieldCodec<uint> _repeated_packedUint32_codec 25019 = pb::FieldCodec.ForUInt32(738); 25020 private readonly pbc::RepeatedField<uint> packedUint32_ = new pbc::RepeatedField<uint>(); 25021 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 25022 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 25023 public pbc::RepeatedField<uint> PackedUint32 { 25024 get { return packedUint32_; } 25025 } 25026 25027 /// <summary>Field number for the "packed_uint64" field.</summary> 25028 public const int PackedUint64FieldNumber = 93; 25029 private static readonly pb::FieldCodec<ulong> _repeated_packedUint64_codec 25030 = pb::FieldCodec.ForUInt64(746); 25031 private readonly pbc::RepeatedField<ulong> packedUint64_ = new pbc::RepeatedField<ulong>(); 25032 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 25033 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 25034 public pbc::RepeatedField<ulong> PackedUint64 { 25035 get { return packedUint64_; } 25036 } 25037 25038 /// <summary>Field number for the "packed_sint32" field.</summary> 25039 public const int PackedSint32FieldNumber = 94; 25040 private static readonly pb::FieldCodec<int> _repeated_packedSint32_codec 25041 = pb::FieldCodec.ForSInt32(754); 25042 private readonly pbc::RepeatedField<int> packedSint32_ = new pbc::RepeatedField<int>(); 25043 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 25044 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 25045 public pbc::RepeatedField<int> PackedSint32 { 25046 get { return packedSint32_; } 25047 } 25048 25049 /// <summary>Field number for the "packed_sint64" field.</summary> 25050 public const int PackedSint64FieldNumber = 95; 25051 private static readonly pb::FieldCodec<long> _repeated_packedSint64_codec 25052 = pb::FieldCodec.ForSInt64(762); 25053 private readonly pbc::RepeatedField<long> packedSint64_ = new pbc::RepeatedField<long>(); 25054 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 25055 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 25056 public pbc::RepeatedField<long> PackedSint64 { 25057 get { return packedSint64_; } 25058 } 25059 25060 /// <summary>Field number for the "packed_fixed32" field.</summary> 25061 public const int PackedFixed32FieldNumber = 96; 25062 private static readonly pb::FieldCodec<uint> _repeated_packedFixed32_codec 25063 = pb::FieldCodec.ForFixed32(770); 25064 private readonly pbc::RepeatedField<uint> packedFixed32_ = new pbc::RepeatedField<uint>(); 25065 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 25066 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 25067 public pbc::RepeatedField<uint> PackedFixed32 { 25068 get { return packedFixed32_; } 25069 } 25070 25071 /// <summary>Field number for the "packed_fixed64" field.</summary> 25072 public const int PackedFixed64FieldNumber = 97; 25073 private static readonly pb::FieldCodec<ulong> _repeated_packedFixed64_codec 25074 = pb::FieldCodec.ForFixed64(778); 25075 private readonly pbc::RepeatedField<ulong> packedFixed64_ = new pbc::RepeatedField<ulong>(); 25076 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 25077 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 25078 public pbc::RepeatedField<ulong> PackedFixed64 { 25079 get { return packedFixed64_; } 25080 } 25081 25082 /// <summary>Field number for the "packed_sfixed32" field.</summary> 25083 public const int PackedSfixed32FieldNumber = 98; 25084 private static readonly pb::FieldCodec<int> _repeated_packedSfixed32_codec 25085 = pb::FieldCodec.ForSFixed32(786); 25086 private readonly pbc::RepeatedField<int> packedSfixed32_ = new pbc::RepeatedField<int>(); 25087 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 25088 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 25089 public pbc::RepeatedField<int> PackedSfixed32 { 25090 get { return packedSfixed32_; } 25091 } 25092 25093 /// <summary>Field number for the "packed_sfixed64" field.</summary> 25094 public const int PackedSfixed64FieldNumber = 99; 25095 private static readonly pb::FieldCodec<long> _repeated_packedSfixed64_codec 25096 = pb::FieldCodec.ForSFixed64(794); 25097 private readonly pbc::RepeatedField<long> packedSfixed64_ = new pbc::RepeatedField<long>(); 25098 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 25099 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 25100 public pbc::RepeatedField<long> PackedSfixed64 { 25101 get { return packedSfixed64_; } 25102 } 25103 25104 /// <summary>Field number for the "packed_float" field.</summary> 25105 public const int PackedFloatFieldNumber = 100; 25106 private static readonly pb::FieldCodec<float> _repeated_packedFloat_codec 25107 = pb::FieldCodec.ForFloat(802); 25108 private readonly pbc::RepeatedField<float> packedFloat_ = new pbc::RepeatedField<float>(); 25109 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 25110 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 25111 public pbc::RepeatedField<float> PackedFloat { 25112 get { return packedFloat_; } 25113 } 25114 25115 /// <summary>Field number for the "packed_double" field.</summary> 25116 public const int PackedDoubleFieldNumber = 101; 25117 private static readonly pb::FieldCodec<double> _repeated_packedDouble_codec 25118 = pb::FieldCodec.ForDouble(810); 25119 private readonly pbc::RepeatedField<double> packedDouble_ = new pbc::RepeatedField<double>(); 25120 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 25121 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 25122 public pbc::RepeatedField<double> PackedDouble { 25123 get { return packedDouble_; } 25124 } 25125 25126 /// <summary>Field number for the "packed_bool" field.</summary> 25127 public const int PackedBoolFieldNumber = 102; 25128 private static readonly pb::FieldCodec<bool> _repeated_packedBool_codec 25129 = pb::FieldCodec.ForBool(818); 25130 private readonly pbc::RepeatedField<bool> packedBool_ = new pbc::RepeatedField<bool>(); 25131 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 25132 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 25133 public pbc::RepeatedField<bool> PackedBool { 25134 get { return packedBool_; } 25135 } 25136 25137 /// <summary>Field number for the "packed_enum" field.</summary> 25138 public const int PackedEnumFieldNumber = 103; 25139 private static readonly pb::FieldCodec<global::Google.Protobuf.TestProtos.Proto2.ForeignEnum> _repeated_packedEnum_codec 25140 = pb::FieldCodec.ForEnum(826, x => (int) x, x => (global::Google.Protobuf.TestProtos.Proto2.ForeignEnum) x); 25141 private readonly pbc::RepeatedField<global::Google.Protobuf.TestProtos.Proto2.ForeignEnum> packedEnum_ = new pbc::RepeatedField<global::Google.Protobuf.TestProtos.Proto2.ForeignEnum>(); 25142 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 25143 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 25144 public pbc::RepeatedField<global::Google.Protobuf.TestProtos.Proto2.ForeignEnum> PackedEnum { 25145 get { return packedEnum_; } 25146 } 25147 25148 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 25149 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] Equals(object other)25150 public override bool Equals(object other) { 25151 return Equals(other as TestPackedTypes); 25152 } 25153 25154 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 25155 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] Equals(TestPackedTypes other)25156 public bool Equals(TestPackedTypes other) { 25157 if (ReferenceEquals(other, null)) { 25158 return false; 25159 } 25160 if (ReferenceEquals(other, this)) { 25161 return true; 25162 } 25163 if(!packedInt32_.Equals(other.packedInt32_)) return false; 25164 if(!packedInt64_.Equals(other.packedInt64_)) return false; 25165 if(!packedUint32_.Equals(other.packedUint32_)) return false; 25166 if(!packedUint64_.Equals(other.packedUint64_)) return false; 25167 if(!packedSint32_.Equals(other.packedSint32_)) return false; 25168 if(!packedSint64_.Equals(other.packedSint64_)) return false; 25169 if(!packedFixed32_.Equals(other.packedFixed32_)) return false; 25170 if(!packedFixed64_.Equals(other.packedFixed64_)) return false; 25171 if(!packedSfixed32_.Equals(other.packedSfixed32_)) return false; 25172 if(!packedSfixed64_.Equals(other.packedSfixed64_)) return false; 25173 if(!packedFloat_.Equals(other.packedFloat_)) return false; 25174 if(!packedDouble_.Equals(other.packedDouble_)) return false; 25175 if(!packedBool_.Equals(other.packedBool_)) return false; 25176 if(!packedEnum_.Equals(other.packedEnum_)) return false; 25177 return Equals(_unknownFields, other._unknownFields); 25178 } 25179 25180 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 25181 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] GetHashCode()25182 public override int GetHashCode() { 25183 int hash = 1; 25184 hash ^= packedInt32_.GetHashCode(); 25185 hash ^= packedInt64_.GetHashCode(); 25186 hash ^= packedUint32_.GetHashCode(); 25187 hash ^= packedUint64_.GetHashCode(); 25188 hash ^= packedSint32_.GetHashCode(); 25189 hash ^= packedSint64_.GetHashCode(); 25190 hash ^= packedFixed32_.GetHashCode(); 25191 hash ^= packedFixed64_.GetHashCode(); 25192 hash ^= packedSfixed32_.GetHashCode(); 25193 hash ^= packedSfixed64_.GetHashCode(); 25194 hash ^= packedFloat_.GetHashCode(); 25195 hash ^= packedDouble_.GetHashCode(); 25196 hash ^= packedBool_.GetHashCode(); 25197 hash ^= packedEnum_.GetHashCode(); 25198 if (_unknownFields != null) { 25199 hash ^= _unknownFields.GetHashCode(); 25200 } 25201 return hash; 25202 } 25203 25204 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 25205 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] ToString()25206 public override string ToString() { 25207 return pb::JsonFormatter.ToDiagnosticString(this); 25208 } 25209 25210 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 25211 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] WriteTo(pb::CodedOutputStream output)25212 public void WriteTo(pb::CodedOutputStream output) { 25213 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 25214 output.WriteRawMessage(this); 25215 #else 25216 packedInt32_.WriteTo(output, _repeated_packedInt32_codec); 25217 packedInt64_.WriteTo(output, _repeated_packedInt64_codec); 25218 packedUint32_.WriteTo(output, _repeated_packedUint32_codec); 25219 packedUint64_.WriteTo(output, _repeated_packedUint64_codec); 25220 packedSint32_.WriteTo(output, _repeated_packedSint32_codec); 25221 packedSint64_.WriteTo(output, _repeated_packedSint64_codec); 25222 packedFixed32_.WriteTo(output, _repeated_packedFixed32_codec); 25223 packedFixed64_.WriteTo(output, _repeated_packedFixed64_codec); 25224 packedSfixed32_.WriteTo(output, _repeated_packedSfixed32_codec); 25225 packedSfixed64_.WriteTo(output, _repeated_packedSfixed64_codec); 25226 packedFloat_.WriteTo(output, _repeated_packedFloat_codec); 25227 packedDouble_.WriteTo(output, _repeated_packedDouble_codec); 25228 packedBool_.WriteTo(output, _repeated_packedBool_codec); 25229 packedEnum_.WriteTo(output, _repeated_packedEnum_codec); 25230 if (_unknownFields != null) { 25231 _unknownFields.WriteTo(output); 25232 } 25233 #endif 25234 } 25235 25236 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 25237 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 25238 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] IBufferMessage.InternalWriteTo(ref pb::WriteContext output)25239 void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { 25240 packedInt32_.WriteTo(ref output, _repeated_packedInt32_codec); 25241 packedInt64_.WriteTo(ref output, _repeated_packedInt64_codec); 25242 packedUint32_.WriteTo(ref output, _repeated_packedUint32_codec); 25243 packedUint64_.WriteTo(ref output, _repeated_packedUint64_codec); 25244 packedSint32_.WriteTo(ref output, _repeated_packedSint32_codec); 25245 packedSint64_.WriteTo(ref output, _repeated_packedSint64_codec); 25246 packedFixed32_.WriteTo(ref output, _repeated_packedFixed32_codec); 25247 packedFixed64_.WriteTo(ref output, _repeated_packedFixed64_codec); 25248 packedSfixed32_.WriteTo(ref output, _repeated_packedSfixed32_codec); 25249 packedSfixed64_.WriteTo(ref output, _repeated_packedSfixed64_codec); 25250 packedFloat_.WriteTo(ref output, _repeated_packedFloat_codec); 25251 packedDouble_.WriteTo(ref output, _repeated_packedDouble_codec); 25252 packedBool_.WriteTo(ref output, _repeated_packedBool_codec); 25253 packedEnum_.WriteTo(ref output, _repeated_packedEnum_codec); 25254 if (_unknownFields != null) { 25255 _unknownFields.WriteTo(ref output); 25256 } 25257 } 25258 #endif 25259 25260 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 25261 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] CalculateSize()25262 public int CalculateSize() { 25263 int size = 0; 25264 size += packedInt32_.CalculateSize(_repeated_packedInt32_codec); 25265 size += packedInt64_.CalculateSize(_repeated_packedInt64_codec); 25266 size += packedUint32_.CalculateSize(_repeated_packedUint32_codec); 25267 size += packedUint64_.CalculateSize(_repeated_packedUint64_codec); 25268 size += packedSint32_.CalculateSize(_repeated_packedSint32_codec); 25269 size += packedSint64_.CalculateSize(_repeated_packedSint64_codec); 25270 size += packedFixed32_.CalculateSize(_repeated_packedFixed32_codec); 25271 size += packedFixed64_.CalculateSize(_repeated_packedFixed64_codec); 25272 size += packedSfixed32_.CalculateSize(_repeated_packedSfixed32_codec); 25273 size += packedSfixed64_.CalculateSize(_repeated_packedSfixed64_codec); 25274 size += packedFloat_.CalculateSize(_repeated_packedFloat_codec); 25275 size += packedDouble_.CalculateSize(_repeated_packedDouble_codec); 25276 size += packedBool_.CalculateSize(_repeated_packedBool_codec); 25277 size += packedEnum_.CalculateSize(_repeated_packedEnum_codec); 25278 if (_unknownFields != null) { 25279 size += _unknownFields.CalculateSize(); 25280 } 25281 return size; 25282 } 25283 25284 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 25285 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] MergeFrom(TestPackedTypes other)25286 public void MergeFrom(TestPackedTypes other) { 25287 if (other == null) { 25288 return; 25289 } 25290 packedInt32_.Add(other.packedInt32_); 25291 packedInt64_.Add(other.packedInt64_); 25292 packedUint32_.Add(other.packedUint32_); 25293 packedUint64_.Add(other.packedUint64_); 25294 packedSint32_.Add(other.packedSint32_); 25295 packedSint64_.Add(other.packedSint64_); 25296 packedFixed32_.Add(other.packedFixed32_); 25297 packedFixed64_.Add(other.packedFixed64_); 25298 packedSfixed32_.Add(other.packedSfixed32_); 25299 packedSfixed64_.Add(other.packedSfixed64_); 25300 packedFloat_.Add(other.packedFloat_); 25301 packedDouble_.Add(other.packedDouble_); 25302 packedBool_.Add(other.packedBool_); 25303 packedEnum_.Add(other.packedEnum_); 25304 _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); 25305 } 25306 25307 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 25308 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] MergeFrom(pb::CodedInputStream input)25309 public void MergeFrom(pb::CodedInputStream input) { 25310 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 25311 input.ReadRawMessage(this); 25312 #else 25313 uint tag; 25314 while ((tag = input.ReadTag()) != 0) { 25315 if ((tag & 7) == 4) { 25316 // Abort on any end group tag. 25317 return; 25318 } 25319 switch(tag) { 25320 default: 25321 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); 25322 break; 25323 case 722: 25324 case 720: { 25325 packedInt32_.AddEntriesFrom(input, _repeated_packedInt32_codec); 25326 break; 25327 } 25328 case 730: 25329 case 728: { 25330 packedInt64_.AddEntriesFrom(input, _repeated_packedInt64_codec); 25331 break; 25332 } 25333 case 738: 25334 case 736: { 25335 packedUint32_.AddEntriesFrom(input, _repeated_packedUint32_codec); 25336 break; 25337 } 25338 case 746: 25339 case 744: { 25340 packedUint64_.AddEntriesFrom(input, _repeated_packedUint64_codec); 25341 break; 25342 } 25343 case 754: 25344 case 752: { 25345 packedSint32_.AddEntriesFrom(input, _repeated_packedSint32_codec); 25346 break; 25347 } 25348 case 762: 25349 case 760: { 25350 packedSint64_.AddEntriesFrom(input, _repeated_packedSint64_codec); 25351 break; 25352 } 25353 case 770: 25354 case 773: { 25355 packedFixed32_.AddEntriesFrom(input, _repeated_packedFixed32_codec); 25356 break; 25357 } 25358 case 778: 25359 case 777: { 25360 packedFixed64_.AddEntriesFrom(input, _repeated_packedFixed64_codec); 25361 break; 25362 } 25363 case 786: 25364 case 789: { 25365 packedSfixed32_.AddEntriesFrom(input, _repeated_packedSfixed32_codec); 25366 break; 25367 } 25368 case 794: 25369 case 793: { 25370 packedSfixed64_.AddEntriesFrom(input, _repeated_packedSfixed64_codec); 25371 break; 25372 } 25373 case 802: 25374 case 805: { 25375 packedFloat_.AddEntriesFrom(input, _repeated_packedFloat_codec); 25376 break; 25377 } 25378 case 810: 25379 case 809: { 25380 packedDouble_.AddEntriesFrom(input, _repeated_packedDouble_codec); 25381 break; 25382 } 25383 case 818: 25384 case 816: { 25385 packedBool_.AddEntriesFrom(input, _repeated_packedBool_codec); 25386 break; 25387 } 25388 case 826: 25389 case 824: { 25390 packedEnum_.AddEntriesFrom(input, _repeated_packedEnum_codec); 25391 break; 25392 } 25393 } 25394 } 25395 #endif 25396 } 25397 25398 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 25399 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 25400 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] IBufferMessage.InternalMergeFrom(ref pb::ParseContext input)25401 void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { 25402 uint tag; 25403 while ((tag = input.ReadTag()) != 0) { 25404 if ((tag & 7) == 4) { 25405 // Abort on any end group tag. 25406 return; 25407 } 25408 switch(tag) { 25409 default: 25410 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); 25411 break; 25412 case 722: 25413 case 720: { 25414 packedInt32_.AddEntriesFrom(ref input, _repeated_packedInt32_codec); 25415 break; 25416 } 25417 case 730: 25418 case 728: { 25419 packedInt64_.AddEntriesFrom(ref input, _repeated_packedInt64_codec); 25420 break; 25421 } 25422 case 738: 25423 case 736: { 25424 packedUint32_.AddEntriesFrom(ref input, _repeated_packedUint32_codec); 25425 break; 25426 } 25427 case 746: 25428 case 744: { 25429 packedUint64_.AddEntriesFrom(ref input, _repeated_packedUint64_codec); 25430 break; 25431 } 25432 case 754: 25433 case 752: { 25434 packedSint32_.AddEntriesFrom(ref input, _repeated_packedSint32_codec); 25435 break; 25436 } 25437 case 762: 25438 case 760: { 25439 packedSint64_.AddEntriesFrom(ref input, _repeated_packedSint64_codec); 25440 break; 25441 } 25442 case 770: 25443 case 773: { 25444 packedFixed32_.AddEntriesFrom(ref input, _repeated_packedFixed32_codec); 25445 break; 25446 } 25447 case 778: 25448 case 777: { 25449 packedFixed64_.AddEntriesFrom(ref input, _repeated_packedFixed64_codec); 25450 break; 25451 } 25452 case 786: 25453 case 789: { 25454 packedSfixed32_.AddEntriesFrom(ref input, _repeated_packedSfixed32_codec); 25455 break; 25456 } 25457 case 794: 25458 case 793: { 25459 packedSfixed64_.AddEntriesFrom(ref input, _repeated_packedSfixed64_codec); 25460 break; 25461 } 25462 case 802: 25463 case 805: { 25464 packedFloat_.AddEntriesFrom(ref input, _repeated_packedFloat_codec); 25465 break; 25466 } 25467 case 810: 25468 case 809: { 25469 packedDouble_.AddEntriesFrom(ref input, _repeated_packedDouble_codec); 25470 break; 25471 } 25472 case 818: 25473 case 816: { 25474 packedBool_.AddEntriesFrom(ref input, _repeated_packedBool_codec); 25475 break; 25476 } 25477 case 826: 25478 case 824: { 25479 packedEnum_.AddEntriesFrom(ref input, _repeated_packedEnum_codec); 25480 break; 25481 } 25482 } 25483 } 25484 } 25485 #endif 25486 25487 } 25488 25489 /// <summary> 25490 /// A message with the same fields as TestPackedTypes, but without packing. Used 25491 /// to test packed <-> unpacked wire compatibility. 25492 /// </summary> 25493 [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] 25494 public sealed partial class TestUnpackedTypes : pb::IMessage<TestUnpackedTypes> 25495 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 25496 , pb::IBufferMessage 25497 #endif 25498 { 25499 private static readonly pb::MessageParser<TestUnpackedTypes> _parser = new pb::MessageParser<TestUnpackedTypes>(() => new TestUnpackedTypes()); 25500 private pb::UnknownFieldSet _unknownFields; 25501 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 25502 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 25503 public static pb::MessageParser<TestUnpackedTypes> Parser { get { return _parser; } } 25504 25505 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 25506 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 25507 public static pbr::MessageDescriptor Descriptor { 25508 get { return global::Google.Protobuf.TestProtos.Proto2.UnittestReflection.Descriptor.MessageTypes[49]; } 25509 } 25510 25511 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 25512 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 25513 pbr::MessageDescriptor pb::IMessage.Descriptor { 25514 get { return Descriptor; } 25515 } 25516 25517 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 25518 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] TestUnpackedTypes()25519 public TestUnpackedTypes() { 25520 OnConstruction(); 25521 } 25522 OnConstruction()25523 partial void OnConstruction(); 25524 25525 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 25526 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] TestUnpackedTypes(TestUnpackedTypes other)25527 public TestUnpackedTypes(TestUnpackedTypes other) : this() { 25528 unpackedInt32_ = other.unpackedInt32_.Clone(); 25529 unpackedInt64_ = other.unpackedInt64_.Clone(); 25530 unpackedUint32_ = other.unpackedUint32_.Clone(); 25531 unpackedUint64_ = other.unpackedUint64_.Clone(); 25532 unpackedSint32_ = other.unpackedSint32_.Clone(); 25533 unpackedSint64_ = other.unpackedSint64_.Clone(); 25534 unpackedFixed32_ = other.unpackedFixed32_.Clone(); 25535 unpackedFixed64_ = other.unpackedFixed64_.Clone(); 25536 unpackedSfixed32_ = other.unpackedSfixed32_.Clone(); 25537 unpackedSfixed64_ = other.unpackedSfixed64_.Clone(); 25538 unpackedFloat_ = other.unpackedFloat_.Clone(); 25539 unpackedDouble_ = other.unpackedDouble_.Clone(); 25540 unpackedBool_ = other.unpackedBool_.Clone(); 25541 unpackedEnum_ = other.unpackedEnum_.Clone(); 25542 _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); 25543 } 25544 25545 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 25546 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] Clone()25547 public TestUnpackedTypes Clone() { 25548 return new TestUnpackedTypes(this); 25549 } 25550 25551 /// <summary>Field number for the "unpacked_int32" field.</summary> 25552 public const int UnpackedInt32FieldNumber = 90; 25553 private static readonly pb::FieldCodec<int> _repeated_unpackedInt32_codec 25554 = pb::FieldCodec.ForInt32(720); 25555 private readonly pbc::RepeatedField<int> unpackedInt32_ = new pbc::RepeatedField<int>(); 25556 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 25557 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 25558 public pbc::RepeatedField<int> UnpackedInt32 { 25559 get { return unpackedInt32_; } 25560 } 25561 25562 /// <summary>Field number for the "unpacked_int64" field.</summary> 25563 public const int UnpackedInt64FieldNumber = 91; 25564 private static readonly pb::FieldCodec<long> _repeated_unpackedInt64_codec 25565 = pb::FieldCodec.ForInt64(728); 25566 private readonly pbc::RepeatedField<long> unpackedInt64_ = new pbc::RepeatedField<long>(); 25567 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 25568 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 25569 public pbc::RepeatedField<long> UnpackedInt64 { 25570 get { return unpackedInt64_; } 25571 } 25572 25573 /// <summary>Field number for the "unpacked_uint32" field.</summary> 25574 public const int UnpackedUint32FieldNumber = 92; 25575 private static readonly pb::FieldCodec<uint> _repeated_unpackedUint32_codec 25576 = pb::FieldCodec.ForUInt32(736); 25577 private readonly pbc::RepeatedField<uint> unpackedUint32_ = new pbc::RepeatedField<uint>(); 25578 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 25579 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 25580 public pbc::RepeatedField<uint> UnpackedUint32 { 25581 get { return unpackedUint32_; } 25582 } 25583 25584 /// <summary>Field number for the "unpacked_uint64" field.</summary> 25585 public const int UnpackedUint64FieldNumber = 93; 25586 private static readonly pb::FieldCodec<ulong> _repeated_unpackedUint64_codec 25587 = pb::FieldCodec.ForUInt64(744); 25588 private readonly pbc::RepeatedField<ulong> unpackedUint64_ = new pbc::RepeatedField<ulong>(); 25589 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 25590 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 25591 public pbc::RepeatedField<ulong> UnpackedUint64 { 25592 get { return unpackedUint64_; } 25593 } 25594 25595 /// <summary>Field number for the "unpacked_sint32" field.</summary> 25596 public const int UnpackedSint32FieldNumber = 94; 25597 private static readonly pb::FieldCodec<int> _repeated_unpackedSint32_codec 25598 = pb::FieldCodec.ForSInt32(752); 25599 private readonly pbc::RepeatedField<int> unpackedSint32_ = new pbc::RepeatedField<int>(); 25600 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 25601 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 25602 public pbc::RepeatedField<int> UnpackedSint32 { 25603 get { return unpackedSint32_; } 25604 } 25605 25606 /// <summary>Field number for the "unpacked_sint64" field.</summary> 25607 public const int UnpackedSint64FieldNumber = 95; 25608 private static readonly pb::FieldCodec<long> _repeated_unpackedSint64_codec 25609 = pb::FieldCodec.ForSInt64(760); 25610 private readonly pbc::RepeatedField<long> unpackedSint64_ = new pbc::RepeatedField<long>(); 25611 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 25612 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 25613 public pbc::RepeatedField<long> UnpackedSint64 { 25614 get { return unpackedSint64_; } 25615 } 25616 25617 /// <summary>Field number for the "unpacked_fixed32" field.</summary> 25618 public const int UnpackedFixed32FieldNumber = 96; 25619 private static readonly pb::FieldCodec<uint> _repeated_unpackedFixed32_codec 25620 = pb::FieldCodec.ForFixed32(773); 25621 private readonly pbc::RepeatedField<uint> unpackedFixed32_ = new pbc::RepeatedField<uint>(); 25622 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 25623 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 25624 public pbc::RepeatedField<uint> UnpackedFixed32 { 25625 get { return unpackedFixed32_; } 25626 } 25627 25628 /// <summary>Field number for the "unpacked_fixed64" field.</summary> 25629 public const int UnpackedFixed64FieldNumber = 97; 25630 private static readonly pb::FieldCodec<ulong> _repeated_unpackedFixed64_codec 25631 = pb::FieldCodec.ForFixed64(777); 25632 private readonly pbc::RepeatedField<ulong> unpackedFixed64_ = new pbc::RepeatedField<ulong>(); 25633 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 25634 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 25635 public pbc::RepeatedField<ulong> UnpackedFixed64 { 25636 get { return unpackedFixed64_; } 25637 } 25638 25639 /// <summary>Field number for the "unpacked_sfixed32" field.</summary> 25640 public const int UnpackedSfixed32FieldNumber = 98; 25641 private static readonly pb::FieldCodec<int> _repeated_unpackedSfixed32_codec 25642 = pb::FieldCodec.ForSFixed32(789); 25643 private readonly pbc::RepeatedField<int> unpackedSfixed32_ = new pbc::RepeatedField<int>(); 25644 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 25645 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 25646 public pbc::RepeatedField<int> UnpackedSfixed32 { 25647 get { return unpackedSfixed32_; } 25648 } 25649 25650 /// <summary>Field number for the "unpacked_sfixed64" field.</summary> 25651 public const int UnpackedSfixed64FieldNumber = 99; 25652 private static readonly pb::FieldCodec<long> _repeated_unpackedSfixed64_codec 25653 = pb::FieldCodec.ForSFixed64(793); 25654 private readonly pbc::RepeatedField<long> unpackedSfixed64_ = new pbc::RepeatedField<long>(); 25655 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 25656 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 25657 public pbc::RepeatedField<long> UnpackedSfixed64 { 25658 get { return unpackedSfixed64_; } 25659 } 25660 25661 /// <summary>Field number for the "unpacked_float" field.</summary> 25662 public const int UnpackedFloatFieldNumber = 100; 25663 private static readonly pb::FieldCodec<float> _repeated_unpackedFloat_codec 25664 = pb::FieldCodec.ForFloat(805); 25665 private readonly pbc::RepeatedField<float> unpackedFloat_ = new pbc::RepeatedField<float>(); 25666 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 25667 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 25668 public pbc::RepeatedField<float> UnpackedFloat { 25669 get { return unpackedFloat_; } 25670 } 25671 25672 /// <summary>Field number for the "unpacked_double" field.</summary> 25673 public const int UnpackedDoubleFieldNumber = 101; 25674 private static readonly pb::FieldCodec<double> _repeated_unpackedDouble_codec 25675 = pb::FieldCodec.ForDouble(809); 25676 private readonly pbc::RepeatedField<double> unpackedDouble_ = new pbc::RepeatedField<double>(); 25677 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 25678 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 25679 public pbc::RepeatedField<double> UnpackedDouble { 25680 get { return unpackedDouble_; } 25681 } 25682 25683 /// <summary>Field number for the "unpacked_bool" field.</summary> 25684 public const int UnpackedBoolFieldNumber = 102; 25685 private static readonly pb::FieldCodec<bool> _repeated_unpackedBool_codec 25686 = pb::FieldCodec.ForBool(816); 25687 private readonly pbc::RepeatedField<bool> unpackedBool_ = new pbc::RepeatedField<bool>(); 25688 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 25689 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 25690 public pbc::RepeatedField<bool> UnpackedBool { 25691 get { return unpackedBool_; } 25692 } 25693 25694 /// <summary>Field number for the "unpacked_enum" field.</summary> 25695 public const int UnpackedEnumFieldNumber = 103; 25696 private static readonly pb::FieldCodec<global::Google.Protobuf.TestProtos.Proto2.ForeignEnum> _repeated_unpackedEnum_codec 25697 = pb::FieldCodec.ForEnum(824, x => (int) x, x => (global::Google.Protobuf.TestProtos.Proto2.ForeignEnum) x); 25698 private readonly pbc::RepeatedField<global::Google.Protobuf.TestProtos.Proto2.ForeignEnum> unpackedEnum_ = new pbc::RepeatedField<global::Google.Protobuf.TestProtos.Proto2.ForeignEnum>(); 25699 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 25700 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 25701 public pbc::RepeatedField<global::Google.Protobuf.TestProtos.Proto2.ForeignEnum> UnpackedEnum { 25702 get { return unpackedEnum_; } 25703 } 25704 25705 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 25706 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] Equals(object other)25707 public override bool Equals(object other) { 25708 return Equals(other as TestUnpackedTypes); 25709 } 25710 25711 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 25712 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] Equals(TestUnpackedTypes other)25713 public bool Equals(TestUnpackedTypes other) { 25714 if (ReferenceEquals(other, null)) { 25715 return false; 25716 } 25717 if (ReferenceEquals(other, this)) { 25718 return true; 25719 } 25720 if(!unpackedInt32_.Equals(other.unpackedInt32_)) return false; 25721 if(!unpackedInt64_.Equals(other.unpackedInt64_)) return false; 25722 if(!unpackedUint32_.Equals(other.unpackedUint32_)) return false; 25723 if(!unpackedUint64_.Equals(other.unpackedUint64_)) return false; 25724 if(!unpackedSint32_.Equals(other.unpackedSint32_)) return false; 25725 if(!unpackedSint64_.Equals(other.unpackedSint64_)) return false; 25726 if(!unpackedFixed32_.Equals(other.unpackedFixed32_)) return false; 25727 if(!unpackedFixed64_.Equals(other.unpackedFixed64_)) return false; 25728 if(!unpackedSfixed32_.Equals(other.unpackedSfixed32_)) return false; 25729 if(!unpackedSfixed64_.Equals(other.unpackedSfixed64_)) return false; 25730 if(!unpackedFloat_.Equals(other.unpackedFloat_)) return false; 25731 if(!unpackedDouble_.Equals(other.unpackedDouble_)) return false; 25732 if(!unpackedBool_.Equals(other.unpackedBool_)) return false; 25733 if(!unpackedEnum_.Equals(other.unpackedEnum_)) return false; 25734 return Equals(_unknownFields, other._unknownFields); 25735 } 25736 25737 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 25738 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] GetHashCode()25739 public override int GetHashCode() { 25740 int hash = 1; 25741 hash ^= unpackedInt32_.GetHashCode(); 25742 hash ^= unpackedInt64_.GetHashCode(); 25743 hash ^= unpackedUint32_.GetHashCode(); 25744 hash ^= unpackedUint64_.GetHashCode(); 25745 hash ^= unpackedSint32_.GetHashCode(); 25746 hash ^= unpackedSint64_.GetHashCode(); 25747 hash ^= unpackedFixed32_.GetHashCode(); 25748 hash ^= unpackedFixed64_.GetHashCode(); 25749 hash ^= unpackedSfixed32_.GetHashCode(); 25750 hash ^= unpackedSfixed64_.GetHashCode(); 25751 hash ^= unpackedFloat_.GetHashCode(); 25752 hash ^= unpackedDouble_.GetHashCode(); 25753 hash ^= unpackedBool_.GetHashCode(); 25754 hash ^= unpackedEnum_.GetHashCode(); 25755 if (_unknownFields != null) { 25756 hash ^= _unknownFields.GetHashCode(); 25757 } 25758 return hash; 25759 } 25760 25761 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 25762 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] ToString()25763 public override string ToString() { 25764 return pb::JsonFormatter.ToDiagnosticString(this); 25765 } 25766 25767 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 25768 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] WriteTo(pb::CodedOutputStream output)25769 public void WriteTo(pb::CodedOutputStream output) { 25770 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 25771 output.WriteRawMessage(this); 25772 #else 25773 unpackedInt32_.WriteTo(output, _repeated_unpackedInt32_codec); 25774 unpackedInt64_.WriteTo(output, _repeated_unpackedInt64_codec); 25775 unpackedUint32_.WriteTo(output, _repeated_unpackedUint32_codec); 25776 unpackedUint64_.WriteTo(output, _repeated_unpackedUint64_codec); 25777 unpackedSint32_.WriteTo(output, _repeated_unpackedSint32_codec); 25778 unpackedSint64_.WriteTo(output, _repeated_unpackedSint64_codec); 25779 unpackedFixed32_.WriteTo(output, _repeated_unpackedFixed32_codec); 25780 unpackedFixed64_.WriteTo(output, _repeated_unpackedFixed64_codec); 25781 unpackedSfixed32_.WriteTo(output, _repeated_unpackedSfixed32_codec); 25782 unpackedSfixed64_.WriteTo(output, _repeated_unpackedSfixed64_codec); 25783 unpackedFloat_.WriteTo(output, _repeated_unpackedFloat_codec); 25784 unpackedDouble_.WriteTo(output, _repeated_unpackedDouble_codec); 25785 unpackedBool_.WriteTo(output, _repeated_unpackedBool_codec); 25786 unpackedEnum_.WriteTo(output, _repeated_unpackedEnum_codec); 25787 if (_unknownFields != null) { 25788 _unknownFields.WriteTo(output); 25789 } 25790 #endif 25791 } 25792 25793 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 25794 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 25795 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] IBufferMessage.InternalWriteTo(ref pb::WriteContext output)25796 void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { 25797 unpackedInt32_.WriteTo(ref output, _repeated_unpackedInt32_codec); 25798 unpackedInt64_.WriteTo(ref output, _repeated_unpackedInt64_codec); 25799 unpackedUint32_.WriteTo(ref output, _repeated_unpackedUint32_codec); 25800 unpackedUint64_.WriteTo(ref output, _repeated_unpackedUint64_codec); 25801 unpackedSint32_.WriteTo(ref output, _repeated_unpackedSint32_codec); 25802 unpackedSint64_.WriteTo(ref output, _repeated_unpackedSint64_codec); 25803 unpackedFixed32_.WriteTo(ref output, _repeated_unpackedFixed32_codec); 25804 unpackedFixed64_.WriteTo(ref output, _repeated_unpackedFixed64_codec); 25805 unpackedSfixed32_.WriteTo(ref output, _repeated_unpackedSfixed32_codec); 25806 unpackedSfixed64_.WriteTo(ref output, _repeated_unpackedSfixed64_codec); 25807 unpackedFloat_.WriteTo(ref output, _repeated_unpackedFloat_codec); 25808 unpackedDouble_.WriteTo(ref output, _repeated_unpackedDouble_codec); 25809 unpackedBool_.WriteTo(ref output, _repeated_unpackedBool_codec); 25810 unpackedEnum_.WriteTo(ref output, _repeated_unpackedEnum_codec); 25811 if (_unknownFields != null) { 25812 _unknownFields.WriteTo(ref output); 25813 } 25814 } 25815 #endif 25816 25817 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 25818 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] CalculateSize()25819 public int CalculateSize() { 25820 int size = 0; 25821 size += unpackedInt32_.CalculateSize(_repeated_unpackedInt32_codec); 25822 size += unpackedInt64_.CalculateSize(_repeated_unpackedInt64_codec); 25823 size += unpackedUint32_.CalculateSize(_repeated_unpackedUint32_codec); 25824 size += unpackedUint64_.CalculateSize(_repeated_unpackedUint64_codec); 25825 size += unpackedSint32_.CalculateSize(_repeated_unpackedSint32_codec); 25826 size += unpackedSint64_.CalculateSize(_repeated_unpackedSint64_codec); 25827 size += unpackedFixed32_.CalculateSize(_repeated_unpackedFixed32_codec); 25828 size += unpackedFixed64_.CalculateSize(_repeated_unpackedFixed64_codec); 25829 size += unpackedSfixed32_.CalculateSize(_repeated_unpackedSfixed32_codec); 25830 size += unpackedSfixed64_.CalculateSize(_repeated_unpackedSfixed64_codec); 25831 size += unpackedFloat_.CalculateSize(_repeated_unpackedFloat_codec); 25832 size += unpackedDouble_.CalculateSize(_repeated_unpackedDouble_codec); 25833 size += unpackedBool_.CalculateSize(_repeated_unpackedBool_codec); 25834 size += unpackedEnum_.CalculateSize(_repeated_unpackedEnum_codec); 25835 if (_unknownFields != null) { 25836 size += _unknownFields.CalculateSize(); 25837 } 25838 return size; 25839 } 25840 25841 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 25842 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] MergeFrom(TestUnpackedTypes other)25843 public void MergeFrom(TestUnpackedTypes other) { 25844 if (other == null) { 25845 return; 25846 } 25847 unpackedInt32_.Add(other.unpackedInt32_); 25848 unpackedInt64_.Add(other.unpackedInt64_); 25849 unpackedUint32_.Add(other.unpackedUint32_); 25850 unpackedUint64_.Add(other.unpackedUint64_); 25851 unpackedSint32_.Add(other.unpackedSint32_); 25852 unpackedSint64_.Add(other.unpackedSint64_); 25853 unpackedFixed32_.Add(other.unpackedFixed32_); 25854 unpackedFixed64_.Add(other.unpackedFixed64_); 25855 unpackedSfixed32_.Add(other.unpackedSfixed32_); 25856 unpackedSfixed64_.Add(other.unpackedSfixed64_); 25857 unpackedFloat_.Add(other.unpackedFloat_); 25858 unpackedDouble_.Add(other.unpackedDouble_); 25859 unpackedBool_.Add(other.unpackedBool_); 25860 unpackedEnum_.Add(other.unpackedEnum_); 25861 _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); 25862 } 25863 25864 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 25865 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] MergeFrom(pb::CodedInputStream input)25866 public void MergeFrom(pb::CodedInputStream input) { 25867 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 25868 input.ReadRawMessage(this); 25869 #else 25870 uint tag; 25871 while ((tag = input.ReadTag()) != 0) { 25872 if ((tag & 7) == 4) { 25873 // Abort on any end group tag. 25874 return; 25875 } 25876 switch(tag) { 25877 default: 25878 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); 25879 break; 25880 case 722: 25881 case 720: { 25882 unpackedInt32_.AddEntriesFrom(input, _repeated_unpackedInt32_codec); 25883 break; 25884 } 25885 case 730: 25886 case 728: { 25887 unpackedInt64_.AddEntriesFrom(input, _repeated_unpackedInt64_codec); 25888 break; 25889 } 25890 case 738: 25891 case 736: { 25892 unpackedUint32_.AddEntriesFrom(input, _repeated_unpackedUint32_codec); 25893 break; 25894 } 25895 case 746: 25896 case 744: { 25897 unpackedUint64_.AddEntriesFrom(input, _repeated_unpackedUint64_codec); 25898 break; 25899 } 25900 case 754: 25901 case 752: { 25902 unpackedSint32_.AddEntriesFrom(input, _repeated_unpackedSint32_codec); 25903 break; 25904 } 25905 case 762: 25906 case 760: { 25907 unpackedSint64_.AddEntriesFrom(input, _repeated_unpackedSint64_codec); 25908 break; 25909 } 25910 case 770: 25911 case 773: { 25912 unpackedFixed32_.AddEntriesFrom(input, _repeated_unpackedFixed32_codec); 25913 break; 25914 } 25915 case 778: 25916 case 777: { 25917 unpackedFixed64_.AddEntriesFrom(input, _repeated_unpackedFixed64_codec); 25918 break; 25919 } 25920 case 786: 25921 case 789: { 25922 unpackedSfixed32_.AddEntriesFrom(input, _repeated_unpackedSfixed32_codec); 25923 break; 25924 } 25925 case 794: 25926 case 793: { 25927 unpackedSfixed64_.AddEntriesFrom(input, _repeated_unpackedSfixed64_codec); 25928 break; 25929 } 25930 case 802: 25931 case 805: { 25932 unpackedFloat_.AddEntriesFrom(input, _repeated_unpackedFloat_codec); 25933 break; 25934 } 25935 case 810: 25936 case 809: { 25937 unpackedDouble_.AddEntriesFrom(input, _repeated_unpackedDouble_codec); 25938 break; 25939 } 25940 case 818: 25941 case 816: { 25942 unpackedBool_.AddEntriesFrom(input, _repeated_unpackedBool_codec); 25943 break; 25944 } 25945 case 826: 25946 case 824: { 25947 unpackedEnum_.AddEntriesFrom(input, _repeated_unpackedEnum_codec); 25948 break; 25949 } 25950 } 25951 } 25952 #endif 25953 } 25954 25955 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 25956 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 25957 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] IBufferMessage.InternalMergeFrom(ref pb::ParseContext input)25958 void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { 25959 uint tag; 25960 while ((tag = input.ReadTag()) != 0) { 25961 if ((tag & 7) == 4) { 25962 // Abort on any end group tag. 25963 return; 25964 } 25965 switch(tag) { 25966 default: 25967 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); 25968 break; 25969 case 722: 25970 case 720: { 25971 unpackedInt32_.AddEntriesFrom(ref input, _repeated_unpackedInt32_codec); 25972 break; 25973 } 25974 case 730: 25975 case 728: { 25976 unpackedInt64_.AddEntriesFrom(ref input, _repeated_unpackedInt64_codec); 25977 break; 25978 } 25979 case 738: 25980 case 736: { 25981 unpackedUint32_.AddEntriesFrom(ref input, _repeated_unpackedUint32_codec); 25982 break; 25983 } 25984 case 746: 25985 case 744: { 25986 unpackedUint64_.AddEntriesFrom(ref input, _repeated_unpackedUint64_codec); 25987 break; 25988 } 25989 case 754: 25990 case 752: { 25991 unpackedSint32_.AddEntriesFrom(ref input, _repeated_unpackedSint32_codec); 25992 break; 25993 } 25994 case 762: 25995 case 760: { 25996 unpackedSint64_.AddEntriesFrom(ref input, _repeated_unpackedSint64_codec); 25997 break; 25998 } 25999 case 770: 26000 case 773: { 26001 unpackedFixed32_.AddEntriesFrom(ref input, _repeated_unpackedFixed32_codec); 26002 break; 26003 } 26004 case 778: 26005 case 777: { 26006 unpackedFixed64_.AddEntriesFrom(ref input, _repeated_unpackedFixed64_codec); 26007 break; 26008 } 26009 case 786: 26010 case 789: { 26011 unpackedSfixed32_.AddEntriesFrom(ref input, _repeated_unpackedSfixed32_codec); 26012 break; 26013 } 26014 case 794: 26015 case 793: { 26016 unpackedSfixed64_.AddEntriesFrom(ref input, _repeated_unpackedSfixed64_codec); 26017 break; 26018 } 26019 case 802: 26020 case 805: { 26021 unpackedFloat_.AddEntriesFrom(ref input, _repeated_unpackedFloat_codec); 26022 break; 26023 } 26024 case 810: 26025 case 809: { 26026 unpackedDouble_.AddEntriesFrom(ref input, _repeated_unpackedDouble_codec); 26027 break; 26028 } 26029 case 818: 26030 case 816: { 26031 unpackedBool_.AddEntriesFrom(ref input, _repeated_unpackedBool_codec); 26032 break; 26033 } 26034 case 826: 26035 case 824: { 26036 unpackedEnum_.AddEntriesFrom(ref input, _repeated_unpackedEnum_codec); 26037 break; 26038 } 26039 } 26040 } 26041 } 26042 #endif 26043 26044 } 26045 26046 [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] 26047 public sealed partial class TestPackedExtensions : pb::IExtendableMessage<TestPackedExtensions> 26048 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 26049 , pb::IBufferMessage 26050 #endif 26051 { 26052 private static readonly pb::MessageParser<TestPackedExtensions> _parser = new pb::MessageParser<TestPackedExtensions>(() => new TestPackedExtensions()); 26053 private pb::UnknownFieldSet _unknownFields; 26054 private pb::ExtensionSet<TestPackedExtensions> _extensions; 26055 private pb::ExtensionSet<TestPackedExtensions> _Extensions { get { return _extensions; } } 26056 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 26057 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 26058 public static pb::MessageParser<TestPackedExtensions> Parser { get { return _parser; } } 26059 26060 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 26061 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 26062 public static pbr::MessageDescriptor Descriptor { 26063 get { return global::Google.Protobuf.TestProtos.Proto2.UnittestReflection.Descriptor.MessageTypes[50]; } 26064 } 26065 26066 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 26067 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 26068 pbr::MessageDescriptor pb::IMessage.Descriptor { 26069 get { return Descriptor; } 26070 } 26071 26072 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 26073 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] TestPackedExtensions()26074 public TestPackedExtensions() { 26075 OnConstruction(); 26076 } 26077 OnConstruction()26078 partial void OnConstruction(); 26079 26080 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 26081 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] TestPackedExtensions(TestPackedExtensions other)26082 public TestPackedExtensions(TestPackedExtensions other) : this() { 26083 _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); 26084 _extensions = pb::ExtensionSet.Clone(other._extensions); 26085 } 26086 26087 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 26088 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] Clone()26089 public TestPackedExtensions Clone() { 26090 return new TestPackedExtensions(this); 26091 } 26092 26093 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 26094 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] Equals(object other)26095 public override bool Equals(object other) { 26096 return Equals(other as TestPackedExtensions); 26097 } 26098 26099 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 26100 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] Equals(TestPackedExtensions other)26101 public bool Equals(TestPackedExtensions other) { 26102 if (ReferenceEquals(other, null)) { 26103 return false; 26104 } 26105 if (ReferenceEquals(other, this)) { 26106 return true; 26107 } 26108 if (!Equals(_extensions, other._extensions)) { 26109 return false; 26110 } 26111 return Equals(_unknownFields, other._unknownFields); 26112 } 26113 26114 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 26115 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] GetHashCode()26116 public override int GetHashCode() { 26117 int hash = 1; 26118 if (_extensions != null) { 26119 hash ^= _extensions.GetHashCode(); 26120 } 26121 if (_unknownFields != null) { 26122 hash ^= _unknownFields.GetHashCode(); 26123 } 26124 return hash; 26125 } 26126 26127 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 26128 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] ToString()26129 public override string ToString() { 26130 return pb::JsonFormatter.ToDiagnosticString(this); 26131 } 26132 26133 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 26134 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] WriteTo(pb::CodedOutputStream output)26135 public void WriteTo(pb::CodedOutputStream output) { 26136 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 26137 output.WriteRawMessage(this); 26138 #else 26139 if (_extensions != null) { 26140 _extensions.WriteTo(output); 26141 } 26142 if (_unknownFields != null) { 26143 _unknownFields.WriteTo(output); 26144 } 26145 #endif 26146 } 26147 26148 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 26149 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 26150 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] IBufferMessage.InternalWriteTo(ref pb::WriteContext output)26151 void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { 26152 if (_extensions != null) { 26153 _extensions.WriteTo(ref output); 26154 } 26155 if (_unknownFields != null) { 26156 _unknownFields.WriteTo(ref output); 26157 } 26158 } 26159 #endif 26160 26161 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 26162 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] CalculateSize()26163 public int CalculateSize() { 26164 int size = 0; 26165 if (_extensions != null) { 26166 size += _extensions.CalculateSize(); 26167 } 26168 if (_unknownFields != null) { 26169 size += _unknownFields.CalculateSize(); 26170 } 26171 return size; 26172 } 26173 26174 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 26175 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] MergeFrom(TestPackedExtensions other)26176 public void MergeFrom(TestPackedExtensions other) { 26177 if (other == null) { 26178 return; 26179 } 26180 pb::ExtensionSet.MergeFrom(ref _extensions, other._extensions); 26181 _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); 26182 } 26183 26184 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 26185 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] MergeFrom(pb::CodedInputStream input)26186 public void MergeFrom(pb::CodedInputStream input) { 26187 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 26188 input.ReadRawMessage(this); 26189 #else 26190 uint tag; 26191 while ((tag = input.ReadTag()) != 0) { 26192 if ((tag & 7) == 4) { 26193 // Abort on any end group tag. 26194 return; 26195 } 26196 switch(tag) { 26197 default: 26198 if (!pb::ExtensionSet.TryMergeFieldFrom(ref _extensions, input)) { 26199 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); 26200 } 26201 break; 26202 } 26203 } 26204 #endif 26205 } 26206 26207 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 26208 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 26209 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] IBufferMessage.InternalMergeFrom(ref pb::ParseContext input)26210 void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { 26211 uint tag; 26212 while ((tag = input.ReadTag()) != 0) { 26213 if ((tag & 7) == 4) { 26214 // Abort on any end group tag. 26215 return; 26216 } 26217 switch(tag) { 26218 default: 26219 if (!pb::ExtensionSet.TryMergeFieldFrom(ref _extensions, ref input)) { 26220 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); 26221 } 26222 break; 26223 } 26224 } 26225 } 26226 #endif 26227 GetExtension(pb::Extension<TestPackedExtensions, TValue> extension)26228 public TValue GetExtension<TValue>(pb::Extension<TestPackedExtensions, TValue> extension) { 26229 return pb::ExtensionSet.Get(ref _extensions, extension); 26230 } GetExtension(pb::RepeatedExtension<TestPackedExtensions, TValue> extension)26231 public pbc::RepeatedField<TValue> GetExtension<TValue>(pb::RepeatedExtension<TestPackedExtensions, TValue> extension) { 26232 return pb::ExtensionSet.Get(ref _extensions, extension); 26233 } GetOrInitializeExtension(pb::RepeatedExtension<TestPackedExtensions, TValue> extension)26234 public pbc::RepeatedField<TValue> GetOrInitializeExtension<TValue>(pb::RepeatedExtension<TestPackedExtensions, TValue> extension) { 26235 return pb::ExtensionSet.GetOrInitialize(ref _extensions, extension); 26236 } SetExtension(pb::Extension<TestPackedExtensions, TValue> extension, TValue value)26237 public void SetExtension<TValue>(pb::Extension<TestPackedExtensions, TValue> extension, TValue value) { 26238 pb::ExtensionSet.Set(ref _extensions, extension, value); 26239 } HasExtension(pb::Extension<TestPackedExtensions, TValue> extension)26240 public bool HasExtension<TValue>(pb::Extension<TestPackedExtensions, TValue> extension) { 26241 return pb::ExtensionSet.Has(ref _extensions, extension); 26242 } ClearExtension(pb::Extension<TestPackedExtensions, TValue> extension)26243 public void ClearExtension<TValue>(pb::Extension<TestPackedExtensions, TValue> extension) { 26244 pb::ExtensionSet.Clear(ref _extensions, extension); 26245 } ClearExtension(pb::RepeatedExtension<TestPackedExtensions, TValue> extension)26246 public void ClearExtension<TValue>(pb::RepeatedExtension<TestPackedExtensions, TValue> extension) { 26247 pb::ExtensionSet.Clear(ref _extensions, extension); 26248 } 26249 26250 } 26251 26252 [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] 26253 public sealed partial class TestUnpackedExtensions : pb::IExtendableMessage<TestUnpackedExtensions> 26254 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 26255 , pb::IBufferMessage 26256 #endif 26257 { 26258 private static readonly pb::MessageParser<TestUnpackedExtensions> _parser = new pb::MessageParser<TestUnpackedExtensions>(() => new TestUnpackedExtensions()); 26259 private pb::UnknownFieldSet _unknownFields; 26260 private pb::ExtensionSet<TestUnpackedExtensions> _extensions; 26261 private pb::ExtensionSet<TestUnpackedExtensions> _Extensions { get { return _extensions; } } 26262 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 26263 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 26264 public static pb::MessageParser<TestUnpackedExtensions> Parser { get { return _parser; } } 26265 26266 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 26267 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 26268 public static pbr::MessageDescriptor Descriptor { 26269 get { return global::Google.Protobuf.TestProtos.Proto2.UnittestReflection.Descriptor.MessageTypes[51]; } 26270 } 26271 26272 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 26273 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 26274 pbr::MessageDescriptor pb::IMessage.Descriptor { 26275 get { return Descriptor; } 26276 } 26277 26278 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 26279 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] TestUnpackedExtensions()26280 public TestUnpackedExtensions() { 26281 OnConstruction(); 26282 } 26283 OnConstruction()26284 partial void OnConstruction(); 26285 26286 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 26287 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] TestUnpackedExtensions(TestUnpackedExtensions other)26288 public TestUnpackedExtensions(TestUnpackedExtensions other) : this() { 26289 _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); 26290 _extensions = pb::ExtensionSet.Clone(other._extensions); 26291 } 26292 26293 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 26294 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] Clone()26295 public TestUnpackedExtensions Clone() { 26296 return new TestUnpackedExtensions(this); 26297 } 26298 26299 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 26300 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] Equals(object other)26301 public override bool Equals(object other) { 26302 return Equals(other as TestUnpackedExtensions); 26303 } 26304 26305 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 26306 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] Equals(TestUnpackedExtensions other)26307 public bool Equals(TestUnpackedExtensions other) { 26308 if (ReferenceEquals(other, null)) { 26309 return false; 26310 } 26311 if (ReferenceEquals(other, this)) { 26312 return true; 26313 } 26314 if (!Equals(_extensions, other._extensions)) { 26315 return false; 26316 } 26317 return Equals(_unknownFields, other._unknownFields); 26318 } 26319 26320 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 26321 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] GetHashCode()26322 public override int GetHashCode() { 26323 int hash = 1; 26324 if (_extensions != null) { 26325 hash ^= _extensions.GetHashCode(); 26326 } 26327 if (_unknownFields != null) { 26328 hash ^= _unknownFields.GetHashCode(); 26329 } 26330 return hash; 26331 } 26332 26333 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 26334 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] ToString()26335 public override string ToString() { 26336 return pb::JsonFormatter.ToDiagnosticString(this); 26337 } 26338 26339 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 26340 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] WriteTo(pb::CodedOutputStream output)26341 public void WriteTo(pb::CodedOutputStream output) { 26342 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 26343 output.WriteRawMessage(this); 26344 #else 26345 if (_extensions != null) { 26346 _extensions.WriteTo(output); 26347 } 26348 if (_unknownFields != null) { 26349 _unknownFields.WriteTo(output); 26350 } 26351 #endif 26352 } 26353 26354 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 26355 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 26356 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] IBufferMessage.InternalWriteTo(ref pb::WriteContext output)26357 void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { 26358 if (_extensions != null) { 26359 _extensions.WriteTo(ref output); 26360 } 26361 if (_unknownFields != null) { 26362 _unknownFields.WriteTo(ref output); 26363 } 26364 } 26365 #endif 26366 26367 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 26368 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] CalculateSize()26369 public int CalculateSize() { 26370 int size = 0; 26371 if (_extensions != null) { 26372 size += _extensions.CalculateSize(); 26373 } 26374 if (_unknownFields != null) { 26375 size += _unknownFields.CalculateSize(); 26376 } 26377 return size; 26378 } 26379 26380 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 26381 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] MergeFrom(TestUnpackedExtensions other)26382 public void MergeFrom(TestUnpackedExtensions other) { 26383 if (other == null) { 26384 return; 26385 } 26386 pb::ExtensionSet.MergeFrom(ref _extensions, other._extensions); 26387 _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); 26388 } 26389 26390 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 26391 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] MergeFrom(pb::CodedInputStream input)26392 public void MergeFrom(pb::CodedInputStream input) { 26393 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 26394 input.ReadRawMessage(this); 26395 #else 26396 uint tag; 26397 while ((tag = input.ReadTag()) != 0) { 26398 if ((tag & 7) == 4) { 26399 // Abort on any end group tag. 26400 return; 26401 } 26402 switch(tag) { 26403 default: 26404 if (!pb::ExtensionSet.TryMergeFieldFrom(ref _extensions, input)) { 26405 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); 26406 } 26407 break; 26408 } 26409 } 26410 #endif 26411 } 26412 26413 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 26414 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 26415 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] IBufferMessage.InternalMergeFrom(ref pb::ParseContext input)26416 void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { 26417 uint tag; 26418 while ((tag = input.ReadTag()) != 0) { 26419 if ((tag & 7) == 4) { 26420 // Abort on any end group tag. 26421 return; 26422 } 26423 switch(tag) { 26424 default: 26425 if (!pb::ExtensionSet.TryMergeFieldFrom(ref _extensions, ref input)) { 26426 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); 26427 } 26428 break; 26429 } 26430 } 26431 } 26432 #endif 26433 GetExtension(pb::Extension<TestUnpackedExtensions, TValue> extension)26434 public TValue GetExtension<TValue>(pb::Extension<TestUnpackedExtensions, TValue> extension) { 26435 return pb::ExtensionSet.Get(ref _extensions, extension); 26436 } GetExtension(pb::RepeatedExtension<TestUnpackedExtensions, TValue> extension)26437 public pbc::RepeatedField<TValue> GetExtension<TValue>(pb::RepeatedExtension<TestUnpackedExtensions, TValue> extension) { 26438 return pb::ExtensionSet.Get(ref _extensions, extension); 26439 } GetOrInitializeExtension(pb::RepeatedExtension<TestUnpackedExtensions, TValue> extension)26440 public pbc::RepeatedField<TValue> GetOrInitializeExtension<TValue>(pb::RepeatedExtension<TestUnpackedExtensions, TValue> extension) { 26441 return pb::ExtensionSet.GetOrInitialize(ref _extensions, extension); 26442 } SetExtension(pb::Extension<TestUnpackedExtensions, TValue> extension, TValue value)26443 public void SetExtension<TValue>(pb::Extension<TestUnpackedExtensions, TValue> extension, TValue value) { 26444 pb::ExtensionSet.Set(ref _extensions, extension, value); 26445 } HasExtension(pb::Extension<TestUnpackedExtensions, TValue> extension)26446 public bool HasExtension<TValue>(pb::Extension<TestUnpackedExtensions, TValue> extension) { 26447 return pb::ExtensionSet.Has(ref _extensions, extension); 26448 } ClearExtension(pb::Extension<TestUnpackedExtensions, TValue> extension)26449 public void ClearExtension<TValue>(pb::Extension<TestUnpackedExtensions, TValue> extension) { 26450 pb::ExtensionSet.Clear(ref _extensions, extension); 26451 } ClearExtension(pb::RepeatedExtension<TestUnpackedExtensions, TValue> extension)26452 public void ClearExtension<TValue>(pb::RepeatedExtension<TestUnpackedExtensions, TValue> extension) { 26453 pb::ExtensionSet.Clear(ref _extensions, extension); 26454 } 26455 26456 } 26457 26458 /// <summary> 26459 /// Used by ExtensionSetTest/DynamicExtensions. The test actually builds 26460 /// a set of extensions to TestAllExtensions dynamically, based on the fields 26461 /// of this message type. 26462 /// </summary> 26463 [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] 26464 public sealed partial class TestDynamicExtensions : pb::IMessage<TestDynamicExtensions> 26465 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 26466 , pb::IBufferMessage 26467 #endif 26468 { 26469 private static readonly pb::MessageParser<TestDynamicExtensions> _parser = new pb::MessageParser<TestDynamicExtensions>(() => new TestDynamicExtensions()); 26470 private pb::UnknownFieldSet _unknownFields; 26471 private int _hasBits0; 26472 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 26473 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 26474 public static pb::MessageParser<TestDynamicExtensions> Parser { get { return _parser; } } 26475 26476 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 26477 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 26478 public static pbr::MessageDescriptor Descriptor { 26479 get { return global::Google.Protobuf.TestProtos.Proto2.UnittestReflection.Descriptor.MessageTypes[52]; } 26480 } 26481 26482 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 26483 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 26484 pbr::MessageDescriptor pb::IMessage.Descriptor { 26485 get { return Descriptor; } 26486 } 26487 26488 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 26489 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] TestDynamicExtensions()26490 public TestDynamicExtensions() { 26491 OnConstruction(); 26492 } 26493 OnConstruction()26494 partial void OnConstruction(); 26495 26496 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 26497 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] TestDynamicExtensions(TestDynamicExtensions other)26498 public TestDynamicExtensions(TestDynamicExtensions other) : this() { 26499 _hasBits0 = other._hasBits0; 26500 scalarExtension_ = other.scalarExtension_; 26501 enumExtension_ = other.enumExtension_; 26502 dynamicEnumExtension_ = other.dynamicEnumExtension_; 26503 messageExtension_ = other.messageExtension_ != null ? other.messageExtension_.Clone() : null; 26504 dynamicMessageExtension_ = other.dynamicMessageExtension_ != null ? other.dynamicMessageExtension_.Clone() : null; 26505 repeatedExtension_ = other.repeatedExtension_.Clone(); 26506 packedExtension_ = other.packedExtension_.Clone(); 26507 _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); 26508 } 26509 26510 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 26511 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] Clone()26512 public TestDynamicExtensions Clone() { 26513 return new TestDynamicExtensions(this); 26514 } 26515 26516 /// <summary>Field number for the "scalar_extension" field.</summary> 26517 public const int ScalarExtensionFieldNumber = 2000; 26518 private readonly static uint ScalarExtensionDefaultValue = 0; 26519 26520 private uint scalarExtension_; 26521 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 26522 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 26523 public uint ScalarExtension { 26524 get { if ((_hasBits0 & 1) != 0) { return scalarExtension_; } else { return ScalarExtensionDefaultValue; } } 26525 set { 26526 _hasBits0 |= 1; 26527 scalarExtension_ = value; 26528 } 26529 } 26530 /// <summary>Gets whether the "scalar_extension" field is set</summary> 26531 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 26532 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 26533 public bool HasScalarExtension { 26534 get { return (_hasBits0 & 1) != 0; } 26535 } 26536 /// <summary>Clears the value of the "scalar_extension" field</summary> 26537 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 26538 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] ClearScalarExtension()26539 public void ClearScalarExtension() { 26540 _hasBits0 &= ~1; 26541 } 26542 26543 /// <summary>Field number for the "enum_extension" field.</summary> 26544 public const int EnumExtensionFieldNumber = 2001; 26545 private readonly static global::Google.Protobuf.TestProtos.Proto2.ForeignEnum EnumExtensionDefaultValue = global::Google.Protobuf.TestProtos.Proto2.ForeignEnum.ForeignFoo; 26546 26547 private global::Google.Protobuf.TestProtos.Proto2.ForeignEnum enumExtension_; 26548 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 26549 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 26550 public global::Google.Protobuf.TestProtos.Proto2.ForeignEnum EnumExtension { 26551 get { if ((_hasBits0 & 2) != 0) { return enumExtension_; } else { return EnumExtensionDefaultValue; } } 26552 set { 26553 _hasBits0 |= 2; 26554 enumExtension_ = value; 26555 } 26556 } 26557 /// <summary>Gets whether the "enum_extension" field is set</summary> 26558 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 26559 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 26560 public bool HasEnumExtension { 26561 get { return (_hasBits0 & 2) != 0; } 26562 } 26563 /// <summary>Clears the value of the "enum_extension" field</summary> 26564 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 26565 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] ClearEnumExtension()26566 public void ClearEnumExtension() { 26567 _hasBits0 &= ~2; 26568 } 26569 26570 /// <summary>Field number for the "dynamic_enum_extension" field.</summary> 26571 public const int DynamicEnumExtensionFieldNumber = 2002; 26572 private readonly static global::Google.Protobuf.TestProtos.Proto2.TestDynamicExtensions.Types.DynamicEnumType DynamicEnumExtensionDefaultValue = global::Google.Protobuf.TestProtos.Proto2.TestDynamicExtensions.Types.DynamicEnumType.DynamicFoo; 26573 26574 private global::Google.Protobuf.TestProtos.Proto2.TestDynamicExtensions.Types.DynamicEnumType dynamicEnumExtension_; 26575 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 26576 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 26577 public global::Google.Protobuf.TestProtos.Proto2.TestDynamicExtensions.Types.DynamicEnumType DynamicEnumExtension { 26578 get { if ((_hasBits0 & 4) != 0) { return dynamicEnumExtension_; } else { return DynamicEnumExtensionDefaultValue; } } 26579 set { 26580 _hasBits0 |= 4; 26581 dynamicEnumExtension_ = value; 26582 } 26583 } 26584 /// <summary>Gets whether the "dynamic_enum_extension" field is set</summary> 26585 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 26586 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 26587 public bool HasDynamicEnumExtension { 26588 get { return (_hasBits0 & 4) != 0; } 26589 } 26590 /// <summary>Clears the value of the "dynamic_enum_extension" field</summary> 26591 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 26592 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] ClearDynamicEnumExtension()26593 public void ClearDynamicEnumExtension() { 26594 _hasBits0 &= ~4; 26595 } 26596 26597 /// <summary>Field number for the "message_extension" field.</summary> 26598 public const int MessageExtensionFieldNumber = 2003; 26599 private global::Google.Protobuf.TestProtos.Proto2.ForeignMessage messageExtension_; 26600 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 26601 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 26602 public global::Google.Protobuf.TestProtos.Proto2.ForeignMessage MessageExtension { 26603 get { return messageExtension_; } 26604 set { 26605 messageExtension_ = value; 26606 } 26607 } 26608 26609 /// <summary>Field number for the "dynamic_message_extension" field.</summary> 26610 public const int DynamicMessageExtensionFieldNumber = 2004; 26611 private global::Google.Protobuf.TestProtos.Proto2.TestDynamicExtensions.Types.DynamicMessageType dynamicMessageExtension_; 26612 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 26613 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 26614 public global::Google.Protobuf.TestProtos.Proto2.TestDynamicExtensions.Types.DynamicMessageType DynamicMessageExtension { 26615 get { return dynamicMessageExtension_; } 26616 set { 26617 dynamicMessageExtension_ = value; 26618 } 26619 } 26620 26621 /// <summary>Field number for the "repeated_extension" field.</summary> 26622 public const int RepeatedExtensionFieldNumber = 2005; 26623 private static readonly pb::FieldCodec<string> _repeated_repeatedExtension_codec 26624 = pb::FieldCodec.ForString(16042); 26625 private readonly pbc::RepeatedField<string> repeatedExtension_ = new pbc::RepeatedField<string>(); 26626 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 26627 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 26628 public pbc::RepeatedField<string> RepeatedExtension { 26629 get { return repeatedExtension_; } 26630 } 26631 26632 /// <summary>Field number for the "packed_extension" field.</summary> 26633 public const int PackedExtensionFieldNumber = 2006; 26634 private static readonly pb::FieldCodec<int> _repeated_packedExtension_codec 26635 = pb::FieldCodec.ForSInt32(16050); 26636 private readonly pbc::RepeatedField<int> packedExtension_ = new pbc::RepeatedField<int>(); 26637 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 26638 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 26639 public pbc::RepeatedField<int> PackedExtension { 26640 get { return packedExtension_; } 26641 } 26642 26643 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 26644 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] Equals(object other)26645 public override bool Equals(object other) { 26646 return Equals(other as TestDynamicExtensions); 26647 } 26648 26649 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 26650 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] Equals(TestDynamicExtensions other)26651 public bool Equals(TestDynamicExtensions other) { 26652 if (ReferenceEquals(other, null)) { 26653 return false; 26654 } 26655 if (ReferenceEquals(other, this)) { 26656 return true; 26657 } 26658 if (ScalarExtension != other.ScalarExtension) return false; 26659 if (EnumExtension != other.EnumExtension) return false; 26660 if (DynamicEnumExtension != other.DynamicEnumExtension) return false; 26661 if (!object.Equals(MessageExtension, other.MessageExtension)) return false; 26662 if (!object.Equals(DynamicMessageExtension, other.DynamicMessageExtension)) return false; 26663 if(!repeatedExtension_.Equals(other.repeatedExtension_)) return false; 26664 if(!packedExtension_.Equals(other.packedExtension_)) return false; 26665 return Equals(_unknownFields, other._unknownFields); 26666 } 26667 26668 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 26669 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] GetHashCode()26670 public override int GetHashCode() { 26671 int hash = 1; 26672 if (HasScalarExtension) hash ^= ScalarExtension.GetHashCode(); 26673 if (HasEnumExtension) hash ^= EnumExtension.GetHashCode(); 26674 if (HasDynamicEnumExtension) hash ^= DynamicEnumExtension.GetHashCode(); 26675 if (messageExtension_ != null) hash ^= MessageExtension.GetHashCode(); 26676 if (dynamicMessageExtension_ != null) hash ^= DynamicMessageExtension.GetHashCode(); 26677 hash ^= repeatedExtension_.GetHashCode(); 26678 hash ^= packedExtension_.GetHashCode(); 26679 if (_unknownFields != null) { 26680 hash ^= _unknownFields.GetHashCode(); 26681 } 26682 return hash; 26683 } 26684 26685 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 26686 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] ToString()26687 public override string ToString() { 26688 return pb::JsonFormatter.ToDiagnosticString(this); 26689 } 26690 26691 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 26692 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] WriteTo(pb::CodedOutputStream output)26693 public void WriteTo(pb::CodedOutputStream output) { 26694 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 26695 output.WriteRawMessage(this); 26696 #else 26697 if (HasScalarExtension) { 26698 output.WriteRawTag(133, 125); 26699 output.WriteFixed32(ScalarExtension); 26700 } 26701 if (HasEnumExtension) { 26702 output.WriteRawTag(136, 125); 26703 output.WriteEnum((int) EnumExtension); 26704 } 26705 if (HasDynamicEnumExtension) { 26706 output.WriteRawTag(144, 125); 26707 output.WriteEnum((int) DynamicEnumExtension); 26708 } 26709 if (messageExtension_ != null) { 26710 output.WriteRawTag(154, 125); 26711 output.WriteMessage(MessageExtension); 26712 } 26713 if (dynamicMessageExtension_ != null) { 26714 output.WriteRawTag(162, 125); 26715 output.WriteMessage(DynamicMessageExtension); 26716 } 26717 repeatedExtension_.WriteTo(output, _repeated_repeatedExtension_codec); 26718 packedExtension_.WriteTo(output, _repeated_packedExtension_codec); 26719 if (_unknownFields != null) { 26720 _unknownFields.WriteTo(output); 26721 } 26722 #endif 26723 } 26724 26725 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 26726 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 26727 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] IBufferMessage.InternalWriteTo(ref pb::WriteContext output)26728 void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { 26729 if (HasScalarExtension) { 26730 output.WriteRawTag(133, 125); 26731 output.WriteFixed32(ScalarExtension); 26732 } 26733 if (HasEnumExtension) { 26734 output.WriteRawTag(136, 125); 26735 output.WriteEnum((int) EnumExtension); 26736 } 26737 if (HasDynamicEnumExtension) { 26738 output.WriteRawTag(144, 125); 26739 output.WriteEnum((int) DynamicEnumExtension); 26740 } 26741 if (messageExtension_ != null) { 26742 output.WriteRawTag(154, 125); 26743 output.WriteMessage(MessageExtension); 26744 } 26745 if (dynamicMessageExtension_ != null) { 26746 output.WriteRawTag(162, 125); 26747 output.WriteMessage(DynamicMessageExtension); 26748 } 26749 repeatedExtension_.WriteTo(ref output, _repeated_repeatedExtension_codec); 26750 packedExtension_.WriteTo(ref output, _repeated_packedExtension_codec); 26751 if (_unknownFields != null) { 26752 _unknownFields.WriteTo(ref output); 26753 } 26754 } 26755 #endif 26756 26757 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 26758 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] CalculateSize()26759 public int CalculateSize() { 26760 int size = 0; 26761 if (HasScalarExtension) { 26762 size += 2 + 4; 26763 } 26764 if (HasEnumExtension) { 26765 size += 2 + pb::CodedOutputStream.ComputeEnumSize((int) EnumExtension); 26766 } 26767 if (HasDynamicEnumExtension) { 26768 size += 2 + pb::CodedOutputStream.ComputeEnumSize((int) DynamicEnumExtension); 26769 } 26770 if (messageExtension_ != null) { 26771 size += 2 + pb::CodedOutputStream.ComputeMessageSize(MessageExtension); 26772 } 26773 if (dynamicMessageExtension_ != null) { 26774 size += 2 + pb::CodedOutputStream.ComputeMessageSize(DynamicMessageExtension); 26775 } 26776 size += repeatedExtension_.CalculateSize(_repeated_repeatedExtension_codec); 26777 size += packedExtension_.CalculateSize(_repeated_packedExtension_codec); 26778 if (_unknownFields != null) { 26779 size += _unknownFields.CalculateSize(); 26780 } 26781 return size; 26782 } 26783 26784 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 26785 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] MergeFrom(TestDynamicExtensions other)26786 public void MergeFrom(TestDynamicExtensions other) { 26787 if (other == null) { 26788 return; 26789 } 26790 if (other.HasScalarExtension) { 26791 ScalarExtension = other.ScalarExtension; 26792 } 26793 if (other.HasEnumExtension) { 26794 EnumExtension = other.EnumExtension; 26795 } 26796 if (other.HasDynamicEnumExtension) { 26797 DynamicEnumExtension = other.DynamicEnumExtension; 26798 } 26799 if (other.messageExtension_ != null) { 26800 if (messageExtension_ == null) { 26801 MessageExtension = new global::Google.Protobuf.TestProtos.Proto2.ForeignMessage(); 26802 } 26803 MessageExtension.MergeFrom(other.MessageExtension); 26804 } 26805 if (other.dynamicMessageExtension_ != null) { 26806 if (dynamicMessageExtension_ == null) { 26807 DynamicMessageExtension = new global::Google.Protobuf.TestProtos.Proto2.TestDynamicExtensions.Types.DynamicMessageType(); 26808 } 26809 DynamicMessageExtension.MergeFrom(other.DynamicMessageExtension); 26810 } 26811 repeatedExtension_.Add(other.repeatedExtension_); 26812 packedExtension_.Add(other.packedExtension_); 26813 _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); 26814 } 26815 26816 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 26817 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] MergeFrom(pb::CodedInputStream input)26818 public void MergeFrom(pb::CodedInputStream input) { 26819 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 26820 input.ReadRawMessage(this); 26821 #else 26822 uint tag; 26823 while ((tag = input.ReadTag()) != 0) { 26824 if ((tag & 7) == 4) { 26825 // Abort on any end group tag. 26826 return; 26827 } 26828 switch(tag) { 26829 default: 26830 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); 26831 break; 26832 case 16005: { 26833 ScalarExtension = input.ReadFixed32(); 26834 break; 26835 } 26836 case 16008: { 26837 EnumExtension = (global::Google.Protobuf.TestProtos.Proto2.ForeignEnum) input.ReadEnum(); 26838 break; 26839 } 26840 case 16016: { 26841 DynamicEnumExtension = (global::Google.Protobuf.TestProtos.Proto2.TestDynamicExtensions.Types.DynamicEnumType) input.ReadEnum(); 26842 break; 26843 } 26844 case 16026: { 26845 if (messageExtension_ == null) { 26846 MessageExtension = new global::Google.Protobuf.TestProtos.Proto2.ForeignMessage(); 26847 } 26848 input.ReadMessage(MessageExtension); 26849 break; 26850 } 26851 case 16034: { 26852 if (dynamicMessageExtension_ == null) { 26853 DynamicMessageExtension = new global::Google.Protobuf.TestProtos.Proto2.TestDynamicExtensions.Types.DynamicMessageType(); 26854 } 26855 input.ReadMessage(DynamicMessageExtension); 26856 break; 26857 } 26858 case 16042: { 26859 repeatedExtension_.AddEntriesFrom(input, _repeated_repeatedExtension_codec); 26860 break; 26861 } 26862 case 16050: 26863 case 16048: { 26864 packedExtension_.AddEntriesFrom(input, _repeated_packedExtension_codec); 26865 break; 26866 } 26867 } 26868 } 26869 #endif 26870 } 26871 26872 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 26873 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 26874 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] IBufferMessage.InternalMergeFrom(ref pb::ParseContext input)26875 void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { 26876 uint tag; 26877 while ((tag = input.ReadTag()) != 0) { 26878 if ((tag & 7) == 4) { 26879 // Abort on any end group tag. 26880 return; 26881 } 26882 switch(tag) { 26883 default: 26884 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); 26885 break; 26886 case 16005: { 26887 ScalarExtension = input.ReadFixed32(); 26888 break; 26889 } 26890 case 16008: { 26891 EnumExtension = (global::Google.Protobuf.TestProtos.Proto2.ForeignEnum) input.ReadEnum(); 26892 break; 26893 } 26894 case 16016: { 26895 DynamicEnumExtension = (global::Google.Protobuf.TestProtos.Proto2.TestDynamicExtensions.Types.DynamicEnumType) input.ReadEnum(); 26896 break; 26897 } 26898 case 16026: { 26899 if (messageExtension_ == null) { 26900 MessageExtension = new global::Google.Protobuf.TestProtos.Proto2.ForeignMessage(); 26901 } 26902 input.ReadMessage(MessageExtension); 26903 break; 26904 } 26905 case 16034: { 26906 if (dynamicMessageExtension_ == null) { 26907 DynamicMessageExtension = new global::Google.Protobuf.TestProtos.Proto2.TestDynamicExtensions.Types.DynamicMessageType(); 26908 } 26909 input.ReadMessage(DynamicMessageExtension); 26910 break; 26911 } 26912 case 16042: { 26913 repeatedExtension_.AddEntriesFrom(ref input, _repeated_repeatedExtension_codec); 26914 break; 26915 } 26916 case 16050: 26917 case 16048: { 26918 packedExtension_.AddEntriesFrom(ref input, _repeated_packedExtension_codec); 26919 break; 26920 } 26921 } 26922 } 26923 } 26924 #endif 26925 26926 #region Nested types 26927 /// <summary>Container for nested types declared in the TestDynamicExtensions message type.</summary> 26928 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 26929 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 26930 public static partial class Types { 26931 public enum DynamicEnumType { 26932 [pbr::OriginalName("DYNAMIC_FOO")] DynamicFoo = 2200, 26933 [pbr::OriginalName("DYNAMIC_BAR")] DynamicBar = 2201, 26934 [pbr::OriginalName("DYNAMIC_BAZ")] DynamicBaz = 2202, 26935 } 26936 26937 [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] 26938 public sealed partial class DynamicMessageType : pb::IMessage<DynamicMessageType> 26939 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 26940 , pb::IBufferMessage 26941 #endif 26942 { 26943 private static readonly pb::MessageParser<DynamicMessageType> _parser = new pb::MessageParser<DynamicMessageType>(() => new DynamicMessageType()); 26944 private pb::UnknownFieldSet _unknownFields; 26945 private int _hasBits0; 26946 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 26947 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 26948 public static pb::MessageParser<DynamicMessageType> Parser { get { return _parser; } } 26949 26950 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 26951 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 26952 public static pbr::MessageDescriptor Descriptor { 26953 get { return global::Google.Protobuf.TestProtos.Proto2.TestDynamicExtensions.Descriptor.NestedTypes[0]; } 26954 } 26955 26956 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 26957 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 26958 pbr::MessageDescriptor pb::IMessage.Descriptor { 26959 get { return Descriptor; } 26960 } 26961 26962 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 26963 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] DynamicMessageType()26964 public DynamicMessageType() { 26965 OnConstruction(); 26966 } 26967 OnConstruction()26968 partial void OnConstruction(); 26969 26970 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 26971 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] DynamicMessageType(DynamicMessageType other)26972 public DynamicMessageType(DynamicMessageType other) : this() { 26973 _hasBits0 = other._hasBits0; 26974 dynamicField_ = other.dynamicField_; 26975 _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); 26976 } 26977 26978 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 26979 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] Clone()26980 public DynamicMessageType Clone() { 26981 return new DynamicMessageType(this); 26982 } 26983 26984 /// <summary>Field number for the "dynamic_field" field.</summary> 26985 public const int DynamicFieldFieldNumber = 2100; 26986 private readonly static int DynamicFieldDefaultValue = 0; 26987 26988 private int dynamicField_; 26989 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 26990 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 26991 public int DynamicField { 26992 get { if ((_hasBits0 & 1) != 0) { return dynamicField_; } else { return DynamicFieldDefaultValue; } } 26993 set { 26994 _hasBits0 |= 1; 26995 dynamicField_ = value; 26996 } 26997 } 26998 /// <summary>Gets whether the "dynamic_field" field is set</summary> 26999 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 27000 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 27001 public bool HasDynamicField { 27002 get { return (_hasBits0 & 1) != 0; } 27003 } 27004 /// <summary>Clears the value of the "dynamic_field" field</summary> 27005 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 27006 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] ClearDynamicField()27007 public void ClearDynamicField() { 27008 _hasBits0 &= ~1; 27009 } 27010 27011 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 27012 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] Equals(object other)27013 public override bool Equals(object other) { 27014 return Equals(other as DynamicMessageType); 27015 } 27016 27017 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 27018 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] Equals(DynamicMessageType other)27019 public bool Equals(DynamicMessageType other) { 27020 if (ReferenceEquals(other, null)) { 27021 return false; 27022 } 27023 if (ReferenceEquals(other, this)) { 27024 return true; 27025 } 27026 if (DynamicField != other.DynamicField) return false; 27027 return Equals(_unknownFields, other._unknownFields); 27028 } 27029 27030 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 27031 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] GetHashCode()27032 public override int GetHashCode() { 27033 int hash = 1; 27034 if (HasDynamicField) hash ^= DynamicField.GetHashCode(); 27035 if (_unknownFields != null) { 27036 hash ^= _unknownFields.GetHashCode(); 27037 } 27038 return hash; 27039 } 27040 27041 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 27042 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] ToString()27043 public override string ToString() { 27044 return pb::JsonFormatter.ToDiagnosticString(this); 27045 } 27046 27047 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 27048 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] WriteTo(pb::CodedOutputStream output)27049 public void WriteTo(pb::CodedOutputStream output) { 27050 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 27051 output.WriteRawMessage(this); 27052 #else 27053 if (HasDynamicField) { 27054 output.WriteRawTag(160, 131, 1); 27055 output.WriteInt32(DynamicField); 27056 } 27057 if (_unknownFields != null) { 27058 _unknownFields.WriteTo(output); 27059 } 27060 #endif 27061 } 27062 27063 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 27064 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 27065 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] IBufferMessage.InternalWriteTo(ref pb::WriteContext output)27066 void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { 27067 if (HasDynamicField) { 27068 output.WriteRawTag(160, 131, 1); 27069 output.WriteInt32(DynamicField); 27070 } 27071 if (_unknownFields != null) { 27072 _unknownFields.WriteTo(ref output); 27073 } 27074 } 27075 #endif 27076 27077 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 27078 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] CalculateSize()27079 public int CalculateSize() { 27080 int size = 0; 27081 if (HasDynamicField) { 27082 size += 3 + pb::CodedOutputStream.ComputeInt32Size(DynamicField); 27083 } 27084 if (_unknownFields != null) { 27085 size += _unknownFields.CalculateSize(); 27086 } 27087 return size; 27088 } 27089 27090 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 27091 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] MergeFrom(DynamicMessageType other)27092 public void MergeFrom(DynamicMessageType other) { 27093 if (other == null) { 27094 return; 27095 } 27096 if (other.HasDynamicField) { 27097 DynamicField = other.DynamicField; 27098 } 27099 _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); 27100 } 27101 27102 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 27103 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] MergeFrom(pb::CodedInputStream input)27104 public void MergeFrom(pb::CodedInputStream input) { 27105 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 27106 input.ReadRawMessage(this); 27107 #else 27108 uint tag; 27109 while ((tag = input.ReadTag()) != 0) { 27110 if ((tag & 7) == 4) { 27111 // Abort on any end group tag. 27112 return; 27113 } 27114 switch(tag) { 27115 default: 27116 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); 27117 break; 27118 case 16800: { 27119 DynamicField = input.ReadInt32(); 27120 break; 27121 } 27122 } 27123 } 27124 #endif 27125 } 27126 27127 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 27128 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 27129 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] IBufferMessage.InternalMergeFrom(ref pb::ParseContext input)27130 void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { 27131 uint tag; 27132 while ((tag = input.ReadTag()) != 0) { 27133 if ((tag & 7) == 4) { 27134 // Abort on any end group tag. 27135 return; 27136 } 27137 switch(tag) { 27138 default: 27139 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); 27140 break; 27141 case 16800: { 27142 DynamicField = input.ReadInt32(); 27143 break; 27144 } 27145 } 27146 } 27147 } 27148 #endif 27149 27150 } 27151 27152 } 27153 #endregion 27154 27155 } 27156 27157 [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] 27158 public sealed partial class TestRepeatedScalarDifferentTagSizes : pb::IMessage<TestRepeatedScalarDifferentTagSizes> 27159 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 27160 , pb::IBufferMessage 27161 #endif 27162 { 27163 private static readonly pb::MessageParser<TestRepeatedScalarDifferentTagSizes> _parser = new pb::MessageParser<TestRepeatedScalarDifferentTagSizes>(() => new TestRepeatedScalarDifferentTagSizes()); 27164 private pb::UnknownFieldSet _unknownFields; 27165 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 27166 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 27167 public static pb::MessageParser<TestRepeatedScalarDifferentTagSizes> Parser { get { return _parser; } } 27168 27169 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 27170 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 27171 public static pbr::MessageDescriptor Descriptor { 27172 get { return global::Google.Protobuf.TestProtos.Proto2.UnittestReflection.Descriptor.MessageTypes[53]; } 27173 } 27174 27175 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 27176 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 27177 pbr::MessageDescriptor pb::IMessage.Descriptor { 27178 get { return Descriptor; } 27179 } 27180 27181 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 27182 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] TestRepeatedScalarDifferentTagSizes()27183 public TestRepeatedScalarDifferentTagSizes() { 27184 OnConstruction(); 27185 } 27186 OnConstruction()27187 partial void OnConstruction(); 27188 27189 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 27190 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] TestRepeatedScalarDifferentTagSizes(TestRepeatedScalarDifferentTagSizes other)27191 public TestRepeatedScalarDifferentTagSizes(TestRepeatedScalarDifferentTagSizes other) : this() { 27192 repeatedFixed32_ = other.repeatedFixed32_.Clone(); 27193 repeatedInt32_ = other.repeatedInt32_.Clone(); 27194 repeatedFixed64_ = other.repeatedFixed64_.Clone(); 27195 repeatedInt64_ = other.repeatedInt64_.Clone(); 27196 repeatedFloat_ = other.repeatedFloat_.Clone(); 27197 repeatedUint64_ = other.repeatedUint64_.Clone(); 27198 _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); 27199 } 27200 27201 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 27202 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] Clone()27203 public TestRepeatedScalarDifferentTagSizes Clone() { 27204 return new TestRepeatedScalarDifferentTagSizes(this); 27205 } 27206 27207 /// <summary>Field number for the "repeated_fixed32" field.</summary> 27208 public const int RepeatedFixed32FieldNumber = 12; 27209 private static readonly pb::FieldCodec<uint> _repeated_repeatedFixed32_codec 27210 = pb::FieldCodec.ForFixed32(101); 27211 private readonly pbc::RepeatedField<uint> repeatedFixed32_ = new pbc::RepeatedField<uint>(); 27212 /// <summary> 27213 /// Parsing repeated fixed size values used to fail. This message needs to be 27214 /// used in order to get a tag of the right size; all of the repeated fields 27215 /// in TestAllTypes didn't trigger the check. 27216 /// </summary> 27217 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 27218 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 27219 public pbc::RepeatedField<uint> RepeatedFixed32 { 27220 get { return repeatedFixed32_; } 27221 } 27222 27223 /// <summary>Field number for the "repeated_int32" field.</summary> 27224 public const int RepeatedInt32FieldNumber = 13; 27225 private static readonly pb::FieldCodec<int> _repeated_repeatedInt32_codec 27226 = pb::FieldCodec.ForInt32(104); 27227 private readonly pbc::RepeatedField<int> repeatedInt32_ = new pbc::RepeatedField<int>(); 27228 /// <summary> 27229 /// Check for a varint type, just for good measure. 27230 /// </summary> 27231 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 27232 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 27233 public pbc::RepeatedField<int> RepeatedInt32 { 27234 get { return repeatedInt32_; } 27235 } 27236 27237 /// <summary>Field number for the "repeated_fixed64" field.</summary> 27238 public const int RepeatedFixed64FieldNumber = 2046; 27239 private static readonly pb::FieldCodec<ulong> _repeated_repeatedFixed64_codec 27240 = pb::FieldCodec.ForFixed64(16369); 27241 private readonly pbc::RepeatedField<ulong> repeatedFixed64_ = new pbc::RepeatedField<ulong>(); 27242 /// <summary> 27243 /// These have two-byte tags. 27244 /// </summary> 27245 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 27246 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 27247 public pbc::RepeatedField<ulong> RepeatedFixed64 { 27248 get { return repeatedFixed64_; } 27249 } 27250 27251 /// <summary>Field number for the "repeated_int64" field.</summary> 27252 public const int RepeatedInt64FieldNumber = 2047; 27253 private static readonly pb::FieldCodec<long> _repeated_repeatedInt64_codec 27254 = pb::FieldCodec.ForInt64(16376); 27255 private readonly pbc::RepeatedField<long> repeatedInt64_ = new pbc::RepeatedField<long>(); 27256 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 27257 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 27258 public pbc::RepeatedField<long> RepeatedInt64 { 27259 get { return repeatedInt64_; } 27260 } 27261 27262 /// <summary>Field number for the "repeated_float" field.</summary> 27263 public const int RepeatedFloatFieldNumber = 262142; 27264 private static readonly pb::FieldCodec<float> _repeated_repeatedFloat_codec 27265 = pb::FieldCodec.ForFloat(2097141); 27266 private readonly pbc::RepeatedField<float> repeatedFloat_ = new pbc::RepeatedField<float>(); 27267 /// <summary> 27268 /// Three byte tags. 27269 /// </summary> 27270 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 27271 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 27272 public pbc::RepeatedField<float> RepeatedFloat { 27273 get { return repeatedFloat_; } 27274 } 27275 27276 /// <summary>Field number for the "repeated_uint64" field.</summary> 27277 public const int RepeatedUint64FieldNumber = 262143; 27278 private static readonly pb::FieldCodec<ulong> _repeated_repeatedUint64_codec 27279 = pb::FieldCodec.ForUInt64(2097144); 27280 private readonly pbc::RepeatedField<ulong> repeatedUint64_ = new pbc::RepeatedField<ulong>(); 27281 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 27282 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 27283 public pbc::RepeatedField<ulong> RepeatedUint64 { 27284 get { return repeatedUint64_; } 27285 } 27286 27287 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 27288 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] Equals(object other)27289 public override bool Equals(object other) { 27290 return Equals(other as TestRepeatedScalarDifferentTagSizes); 27291 } 27292 27293 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 27294 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] Equals(TestRepeatedScalarDifferentTagSizes other)27295 public bool Equals(TestRepeatedScalarDifferentTagSizes other) { 27296 if (ReferenceEquals(other, null)) { 27297 return false; 27298 } 27299 if (ReferenceEquals(other, this)) { 27300 return true; 27301 } 27302 if(!repeatedFixed32_.Equals(other.repeatedFixed32_)) return false; 27303 if(!repeatedInt32_.Equals(other.repeatedInt32_)) return false; 27304 if(!repeatedFixed64_.Equals(other.repeatedFixed64_)) return false; 27305 if(!repeatedInt64_.Equals(other.repeatedInt64_)) return false; 27306 if(!repeatedFloat_.Equals(other.repeatedFloat_)) return false; 27307 if(!repeatedUint64_.Equals(other.repeatedUint64_)) return false; 27308 return Equals(_unknownFields, other._unknownFields); 27309 } 27310 27311 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 27312 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] GetHashCode()27313 public override int GetHashCode() { 27314 int hash = 1; 27315 hash ^= repeatedFixed32_.GetHashCode(); 27316 hash ^= repeatedInt32_.GetHashCode(); 27317 hash ^= repeatedFixed64_.GetHashCode(); 27318 hash ^= repeatedInt64_.GetHashCode(); 27319 hash ^= repeatedFloat_.GetHashCode(); 27320 hash ^= repeatedUint64_.GetHashCode(); 27321 if (_unknownFields != null) { 27322 hash ^= _unknownFields.GetHashCode(); 27323 } 27324 return hash; 27325 } 27326 27327 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 27328 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] ToString()27329 public override string ToString() { 27330 return pb::JsonFormatter.ToDiagnosticString(this); 27331 } 27332 27333 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 27334 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] WriteTo(pb::CodedOutputStream output)27335 public void WriteTo(pb::CodedOutputStream output) { 27336 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 27337 output.WriteRawMessage(this); 27338 #else 27339 repeatedFixed32_.WriteTo(output, _repeated_repeatedFixed32_codec); 27340 repeatedInt32_.WriteTo(output, _repeated_repeatedInt32_codec); 27341 repeatedFixed64_.WriteTo(output, _repeated_repeatedFixed64_codec); 27342 repeatedInt64_.WriteTo(output, _repeated_repeatedInt64_codec); 27343 repeatedFloat_.WriteTo(output, _repeated_repeatedFloat_codec); 27344 repeatedUint64_.WriteTo(output, _repeated_repeatedUint64_codec); 27345 if (_unknownFields != null) { 27346 _unknownFields.WriteTo(output); 27347 } 27348 #endif 27349 } 27350 27351 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 27352 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 27353 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] IBufferMessage.InternalWriteTo(ref pb::WriteContext output)27354 void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { 27355 repeatedFixed32_.WriteTo(ref output, _repeated_repeatedFixed32_codec); 27356 repeatedInt32_.WriteTo(ref output, _repeated_repeatedInt32_codec); 27357 repeatedFixed64_.WriteTo(ref output, _repeated_repeatedFixed64_codec); 27358 repeatedInt64_.WriteTo(ref output, _repeated_repeatedInt64_codec); 27359 repeatedFloat_.WriteTo(ref output, _repeated_repeatedFloat_codec); 27360 repeatedUint64_.WriteTo(ref output, _repeated_repeatedUint64_codec); 27361 if (_unknownFields != null) { 27362 _unknownFields.WriteTo(ref output); 27363 } 27364 } 27365 #endif 27366 27367 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 27368 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] CalculateSize()27369 public int CalculateSize() { 27370 int size = 0; 27371 size += repeatedFixed32_.CalculateSize(_repeated_repeatedFixed32_codec); 27372 size += repeatedInt32_.CalculateSize(_repeated_repeatedInt32_codec); 27373 size += repeatedFixed64_.CalculateSize(_repeated_repeatedFixed64_codec); 27374 size += repeatedInt64_.CalculateSize(_repeated_repeatedInt64_codec); 27375 size += repeatedFloat_.CalculateSize(_repeated_repeatedFloat_codec); 27376 size += repeatedUint64_.CalculateSize(_repeated_repeatedUint64_codec); 27377 if (_unknownFields != null) { 27378 size += _unknownFields.CalculateSize(); 27379 } 27380 return size; 27381 } 27382 27383 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 27384 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] MergeFrom(TestRepeatedScalarDifferentTagSizes other)27385 public void MergeFrom(TestRepeatedScalarDifferentTagSizes other) { 27386 if (other == null) { 27387 return; 27388 } 27389 repeatedFixed32_.Add(other.repeatedFixed32_); 27390 repeatedInt32_.Add(other.repeatedInt32_); 27391 repeatedFixed64_.Add(other.repeatedFixed64_); 27392 repeatedInt64_.Add(other.repeatedInt64_); 27393 repeatedFloat_.Add(other.repeatedFloat_); 27394 repeatedUint64_.Add(other.repeatedUint64_); 27395 _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); 27396 } 27397 27398 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 27399 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] MergeFrom(pb::CodedInputStream input)27400 public void MergeFrom(pb::CodedInputStream input) { 27401 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 27402 input.ReadRawMessage(this); 27403 #else 27404 uint tag; 27405 while ((tag = input.ReadTag()) != 0) { 27406 if ((tag & 7) == 4) { 27407 // Abort on any end group tag. 27408 return; 27409 } 27410 switch(tag) { 27411 default: 27412 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); 27413 break; 27414 case 98: 27415 case 101: { 27416 repeatedFixed32_.AddEntriesFrom(input, _repeated_repeatedFixed32_codec); 27417 break; 27418 } 27419 case 106: 27420 case 104: { 27421 repeatedInt32_.AddEntriesFrom(input, _repeated_repeatedInt32_codec); 27422 break; 27423 } 27424 case 16370: 27425 case 16369: { 27426 repeatedFixed64_.AddEntriesFrom(input, _repeated_repeatedFixed64_codec); 27427 break; 27428 } 27429 case 16378: 27430 case 16376: { 27431 repeatedInt64_.AddEntriesFrom(input, _repeated_repeatedInt64_codec); 27432 break; 27433 } 27434 case 2097138: 27435 case 2097141: { 27436 repeatedFloat_.AddEntriesFrom(input, _repeated_repeatedFloat_codec); 27437 break; 27438 } 27439 case 2097146: 27440 case 2097144: { 27441 repeatedUint64_.AddEntriesFrom(input, _repeated_repeatedUint64_codec); 27442 break; 27443 } 27444 } 27445 } 27446 #endif 27447 } 27448 27449 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 27450 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 27451 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] IBufferMessage.InternalMergeFrom(ref pb::ParseContext input)27452 void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { 27453 uint tag; 27454 while ((tag = input.ReadTag()) != 0) { 27455 if ((tag & 7) == 4) { 27456 // Abort on any end group tag. 27457 return; 27458 } 27459 switch(tag) { 27460 default: 27461 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); 27462 break; 27463 case 98: 27464 case 101: { 27465 repeatedFixed32_.AddEntriesFrom(ref input, _repeated_repeatedFixed32_codec); 27466 break; 27467 } 27468 case 106: 27469 case 104: { 27470 repeatedInt32_.AddEntriesFrom(ref input, _repeated_repeatedInt32_codec); 27471 break; 27472 } 27473 case 16370: 27474 case 16369: { 27475 repeatedFixed64_.AddEntriesFrom(ref input, _repeated_repeatedFixed64_codec); 27476 break; 27477 } 27478 case 16378: 27479 case 16376: { 27480 repeatedInt64_.AddEntriesFrom(ref input, _repeated_repeatedInt64_codec); 27481 break; 27482 } 27483 case 2097138: 27484 case 2097141: { 27485 repeatedFloat_.AddEntriesFrom(ref input, _repeated_repeatedFloat_codec); 27486 break; 27487 } 27488 case 2097146: 27489 case 2097144: { 27490 repeatedUint64_.AddEntriesFrom(ref input, _repeated_repeatedUint64_codec); 27491 break; 27492 } 27493 } 27494 } 27495 } 27496 #endif 27497 27498 } 27499 27500 /// <summary> 27501 /// Test that if an optional or required message/group field appears multiple 27502 /// times in the input, they need to be merged. 27503 /// </summary> 27504 [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] 27505 public sealed partial class TestParsingMerge : pb::IExtendableMessage<TestParsingMerge> 27506 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 27507 , pb::IBufferMessage 27508 #endif 27509 { 27510 private static readonly pb::MessageParser<TestParsingMerge> _parser = new pb::MessageParser<TestParsingMerge>(() => new TestParsingMerge()); 27511 private pb::UnknownFieldSet _unknownFields; 27512 private pb::ExtensionSet<TestParsingMerge> _extensions; 27513 private pb::ExtensionSet<TestParsingMerge> _Extensions { get { return _extensions; } } 27514 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 27515 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 27516 public static pb::MessageParser<TestParsingMerge> Parser { get { return _parser; } } 27517 27518 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 27519 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 27520 public static pbr::MessageDescriptor Descriptor { 27521 get { return global::Google.Protobuf.TestProtos.Proto2.UnittestReflection.Descriptor.MessageTypes[54]; } 27522 } 27523 27524 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 27525 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 27526 pbr::MessageDescriptor pb::IMessage.Descriptor { 27527 get { return Descriptor; } 27528 } 27529 27530 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 27531 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] TestParsingMerge()27532 public TestParsingMerge() { 27533 OnConstruction(); 27534 } 27535 OnConstruction()27536 partial void OnConstruction(); 27537 27538 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 27539 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] TestParsingMerge(TestParsingMerge other)27540 public TestParsingMerge(TestParsingMerge other) : this() { 27541 requiredAllTypes_ = other.requiredAllTypes_ != null ? other.requiredAllTypes_.Clone() : null; 27542 optionalAllTypes_ = other.optionalAllTypes_ != null ? other.optionalAllTypes_.Clone() : null; 27543 repeatedAllTypes_ = other.repeatedAllTypes_.Clone(); 27544 optionalGroup_ = other.HasOptionalGroup ? other.optionalGroup_.Clone() : null; 27545 repeatedGroup_ = other.repeatedGroup_.Clone(); 27546 _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); 27547 _extensions = pb::ExtensionSet.Clone(other._extensions); 27548 } 27549 27550 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 27551 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] Clone()27552 public TestParsingMerge Clone() { 27553 return new TestParsingMerge(this); 27554 } 27555 27556 /// <summary>Field number for the "required_all_types" field.</summary> 27557 public const int RequiredAllTypesFieldNumber = 1; 27558 private global::Google.Protobuf.TestProtos.Proto2.TestAllTypes requiredAllTypes_; 27559 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 27560 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 27561 public global::Google.Protobuf.TestProtos.Proto2.TestAllTypes RequiredAllTypes { 27562 get { return requiredAllTypes_; } 27563 set { 27564 requiredAllTypes_ = value; 27565 } 27566 } 27567 27568 /// <summary>Field number for the "optional_all_types" field.</summary> 27569 public const int OptionalAllTypesFieldNumber = 2; 27570 private global::Google.Protobuf.TestProtos.Proto2.TestAllTypes optionalAllTypes_; 27571 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 27572 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 27573 public global::Google.Protobuf.TestProtos.Proto2.TestAllTypes OptionalAllTypes { 27574 get { return optionalAllTypes_; } 27575 set { 27576 optionalAllTypes_ = value; 27577 } 27578 } 27579 27580 /// <summary>Field number for the "repeated_all_types" field.</summary> 27581 public const int RepeatedAllTypesFieldNumber = 3; 27582 private static readonly pb::FieldCodec<global::Google.Protobuf.TestProtos.Proto2.TestAllTypes> _repeated_repeatedAllTypes_codec 27583 = pb::FieldCodec.ForMessage(26, global::Google.Protobuf.TestProtos.Proto2.TestAllTypes.Parser); 27584 private readonly pbc::RepeatedField<global::Google.Protobuf.TestProtos.Proto2.TestAllTypes> repeatedAllTypes_ = new pbc::RepeatedField<global::Google.Protobuf.TestProtos.Proto2.TestAllTypes>(); 27585 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 27586 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 27587 public pbc::RepeatedField<global::Google.Protobuf.TestProtos.Proto2.TestAllTypes> RepeatedAllTypes { 27588 get { return repeatedAllTypes_; } 27589 } 27590 27591 /// <summary>Field number for the "optionalgroup" field.</summary> 27592 public const int OptionalGroupFieldNumber = 10; 27593 private global::Google.Protobuf.TestProtos.Proto2.TestParsingMerge.Types.OptionalGroup optionalGroup_; 27594 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 27595 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 27596 public global::Google.Protobuf.TestProtos.Proto2.TestParsingMerge.Types.OptionalGroup OptionalGroup { 27597 get { return optionalGroup_; } 27598 set { 27599 optionalGroup_ = value; 27600 } 27601 } 27602 /// <summary>Gets whether the optionalgroup field is set</summary> 27603 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 27604 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 27605 public bool HasOptionalGroup { 27606 get { return optionalGroup_ != null; } 27607 } 27608 /// <summary>Clears the value of the optionalgroup field</summary> 27609 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 27610 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] ClearOptionalGroup()27611 public void ClearOptionalGroup() { 27612 optionalGroup_ = null; 27613 } 27614 27615 /// <summary>Field number for the "repeatedgroup" field.</summary> 27616 public const int RepeatedGroupFieldNumber = 20; 27617 private static readonly pb::FieldCodec<global::Google.Protobuf.TestProtos.Proto2.TestParsingMerge.Types.RepeatedGroup> _repeated_repeatedGroup_codec 27618 = pb::FieldCodec.ForGroup(163, 164, global::Google.Protobuf.TestProtos.Proto2.TestParsingMerge.Types.RepeatedGroup.Parser); 27619 private readonly pbc::RepeatedField<global::Google.Protobuf.TestProtos.Proto2.TestParsingMerge.Types.RepeatedGroup> repeatedGroup_ = new pbc::RepeatedField<global::Google.Protobuf.TestProtos.Proto2.TestParsingMerge.Types.RepeatedGroup>(); 27620 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 27621 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 27622 public pbc::RepeatedField<global::Google.Protobuf.TestProtos.Proto2.TestParsingMerge.Types.RepeatedGroup> RepeatedGroup { 27623 get { return repeatedGroup_; } 27624 } 27625 27626 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 27627 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] Equals(object other)27628 public override bool Equals(object other) { 27629 return Equals(other as TestParsingMerge); 27630 } 27631 27632 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 27633 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] Equals(TestParsingMerge other)27634 public bool Equals(TestParsingMerge other) { 27635 if (ReferenceEquals(other, null)) { 27636 return false; 27637 } 27638 if (ReferenceEquals(other, this)) { 27639 return true; 27640 } 27641 if (!object.Equals(RequiredAllTypes, other.RequiredAllTypes)) return false; 27642 if (!object.Equals(OptionalAllTypes, other.OptionalAllTypes)) return false; 27643 if(!repeatedAllTypes_.Equals(other.repeatedAllTypes_)) return false; 27644 if (!object.Equals(OptionalGroup, other.OptionalGroup)) return false; 27645 if(!repeatedGroup_.Equals(other.repeatedGroup_)) return false; 27646 if (!Equals(_extensions, other._extensions)) { 27647 return false; 27648 } 27649 return Equals(_unknownFields, other._unknownFields); 27650 } 27651 27652 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 27653 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] GetHashCode()27654 public override int GetHashCode() { 27655 int hash = 1; 27656 if (requiredAllTypes_ != null) hash ^= RequiredAllTypes.GetHashCode(); 27657 if (optionalAllTypes_ != null) hash ^= OptionalAllTypes.GetHashCode(); 27658 hash ^= repeatedAllTypes_.GetHashCode(); 27659 if (HasOptionalGroup) hash ^= OptionalGroup.GetHashCode(); 27660 hash ^= repeatedGroup_.GetHashCode(); 27661 if (_extensions != null) { 27662 hash ^= _extensions.GetHashCode(); 27663 } 27664 if (_unknownFields != null) { 27665 hash ^= _unknownFields.GetHashCode(); 27666 } 27667 return hash; 27668 } 27669 27670 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 27671 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] ToString()27672 public override string ToString() { 27673 return pb::JsonFormatter.ToDiagnosticString(this); 27674 } 27675 27676 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 27677 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] WriteTo(pb::CodedOutputStream output)27678 public void WriteTo(pb::CodedOutputStream output) { 27679 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 27680 output.WriteRawMessage(this); 27681 #else 27682 if (requiredAllTypes_ != null) { 27683 output.WriteRawTag(10); 27684 output.WriteMessage(RequiredAllTypes); 27685 } 27686 if (optionalAllTypes_ != null) { 27687 output.WriteRawTag(18); 27688 output.WriteMessage(OptionalAllTypes); 27689 } 27690 repeatedAllTypes_.WriteTo(output, _repeated_repeatedAllTypes_codec); 27691 if (HasOptionalGroup) { 27692 output.WriteRawTag(83); 27693 output.WriteGroup(OptionalGroup); 27694 output.WriteRawTag(84); 27695 } 27696 repeatedGroup_.WriteTo(output, _repeated_repeatedGroup_codec); 27697 if (_extensions != null) { 27698 _extensions.WriteTo(output); 27699 } 27700 if (_unknownFields != null) { 27701 _unknownFields.WriteTo(output); 27702 } 27703 #endif 27704 } 27705 27706 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 27707 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 27708 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] IBufferMessage.InternalWriteTo(ref pb::WriteContext output)27709 void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { 27710 if (requiredAllTypes_ != null) { 27711 output.WriteRawTag(10); 27712 output.WriteMessage(RequiredAllTypes); 27713 } 27714 if (optionalAllTypes_ != null) { 27715 output.WriteRawTag(18); 27716 output.WriteMessage(OptionalAllTypes); 27717 } 27718 repeatedAllTypes_.WriteTo(ref output, _repeated_repeatedAllTypes_codec); 27719 if (HasOptionalGroup) { 27720 output.WriteRawTag(83); 27721 output.WriteGroup(OptionalGroup); 27722 output.WriteRawTag(84); 27723 } 27724 repeatedGroup_.WriteTo(ref output, _repeated_repeatedGroup_codec); 27725 if (_extensions != null) { 27726 _extensions.WriteTo(ref output); 27727 } 27728 if (_unknownFields != null) { 27729 _unknownFields.WriteTo(ref output); 27730 } 27731 } 27732 #endif 27733 27734 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 27735 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] CalculateSize()27736 public int CalculateSize() { 27737 int size = 0; 27738 if (requiredAllTypes_ != null) { 27739 size += 1 + pb::CodedOutputStream.ComputeMessageSize(RequiredAllTypes); 27740 } 27741 if (optionalAllTypes_ != null) { 27742 size += 1 + pb::CodedOutputStream.ComputeMessageSize(OptionalAllTypes); 27743 } 27744 size += repeatedAllTypes_.CalculateSize(_repeated_repeatedAllTypes_codec); 27745 if (HasOptionalGroup) { 27746 size += 2 + pb::CodedOutputStream.ComputeGroupSize(OptionalGroup); 27747 } 27748 size += repeatedGroup_.CalculateSize(_repeated_repeatedGroup_codec); 27749 if (_extensions != null) { 27750 size += _extensions.CalculateSize(); 27751 } 27752 if (_unknownFields != null) { 27753 size += _unknownFields.CalculateSize(); 27754 } 27755 return size; 27756 } 27757 27758 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 27759 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] MergeFrom(TestParsingMerge other)27760 public void MergeFrom(TestParsingMerge other) { 27761 if (other == null) { 27762 return; 27763 } 27764 if (other.requiredAllTypes_ != null) { 27765 if (requiredAllTypes_ == null) { 27766 RequiredAllTypes = new global::Google.Protobuf.TestProtos.Proto2.TestAllTypes(); 27767 } 27768 RequiredAllTypes.MergeFrom(other.RequiredAllTypes); 27769 } 27770 if (other.optionalAllTypes_ != null) { 27771 if (optionalAllTypes_ == null) { 27772 OptionalAllTypes = new global::Google.Protobuf.TestProtos.Proto2.TestAllTypes(); 27773 } 27774 OptionalAllTypes.MergeFrom(other.OptionalAllTypes); 27775 } 27776 repeatedAllTypes_.Add(other.repeatedAllTypes_); 27777 if (other.HasOptionalGroup) { 27778 if (!HasOptionalGroup) { 27779 OptionalGroup = new global::Google.Protobuf.TestProtos.Proto2.TestParsingMerge.Types.OptionalGroup(); 27780 } 27781 OptionalGroup.MergeFrom(other.OptionalGroup); 27782 } 27783 repeatedGroup_.Add(other.repeatedGroup_); 27784 pb::ExtensionSet.MergeFrom(ref _extensions, other._extensions); 27785 _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); 27786 } 27787 27788 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 27789 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] MergeFrom(pb::CodedInputStream input)27790 public void MergeFrom(pb::CodedInputStream input) { 27791 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 27792 input.ReadRawMessage(this); 27793 #else 27794 uint tag; 27795 while ((tag = input.ReadTag()) != 0) { 27796 if ((tag & 7) == 4) { 27797 // Abort on any end group tag. 27798 return; 27799 } 27800 switch(tag) { 27801 default: 27802 if (!pb::ExtensionSet.TryMergeFieldFrom(ref _extensions, input)) { 27803 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); 27804 } 27805 break; 27806 case 10: { 27807 if (requiredAllTypes_ == null) { 27808 RequiredAllTypes = new global::Google.Protobuf.TestProtos.Proto2.TestAllTypes(); 27809 } 27810 input.ReadMessage(RequiredAllTypes); 27811 break; 27812 } 27813 case 18: { 27814 if (optionalAllTypes_ == null) { 27815 OptionalAllTypes = new global::Google.Protobuf.TestProtos.Proto2.TestAllTypes(); 27816 } 27817 input.ReadMessage(OptionalAllTypes); 27818 break; 27819 } 27820 case 26: { 27821 repeatedAllTypes_.AddEntriesFrom(input, _repeated_repeatedAllTypes_codec); 27822 break; 27823 } 27824 case 83: { 27825 if (!HasOptionalGroup) { 27826 OptionalGroup = new global::Google.Protobuf.TestProtos.Proto2.TestParsingMerge.Types.OptionalGroup(); 27827 } 27828 input.ReadGroup(OptionalGroup); 27829 break; 27830 } 27831 case 163: { 27832 repeatedGroup_.AddEntriesFrom(input, _repeated_repeatedGroup_codec); 27833 break; 27834 } 27835 } 27836 } 27837 #endif 27838 } 27839 27840 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 27841 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 27842 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] IBufferMessage.InternalMergeFrom(ref pb::ParseContext input)27843 void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { 27844 uint tag; 27845 while ((tag = input.ReadTag()) != 0) { 27846 if ((tag & 7) == 4) { 27847 // Abort on any end group tag. 27848 return; 27849 } 27850 switch(tag) { 27851 default: 27852 if (!pb::ExtensionSet.TryMergeFieldFrom(ref _extensions, ref input)) { 27853 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); 27854 } 27855 break; 27856 case 10: { 27857 if (requiredAllTypes_ == null) { 27858 RequiredAllTypes = new global::Google.Protobuf.TestProtos.Proto2.TestAllTypes(); 27859 } 27860 input.ReadMessage(RequiredAllTypes); 27861 break; 27862 } 27863 case 18: { 27864 if (optionalAllTypes_ == null) { 27865 OptionalAllTypes = new global::Google.Protobuf.TestProtos.Proto2.TestAllTypes(); 27866 } 27867 input.ReadMessage(OptionalAllTypes); 27868 break; 27869 } 27870 case 26: { 27871 repeatedAllTypes_.AddEntriesFrom(ref input, _repeated_repeatedAllTypes_codec); 27872 break; 27873 } 27874 case 83: { 27875 if (!HasOptionalGroup) { 27876 OptionalGroup = new global::Google.Protobuf.TestProtos.Proto2.TestParsingMerge.Types.OptionalGroup(); 27877 } 27878 input.ReadGroup(OptionalGroup); 27879 break; 27880 } 27881 case 163: { 27882 repeatedGroup_.AddEntriesFrom(ref input, _repeated_repeatedGroup_codec); 27883 break; 27884 } 27885 } 27886 } 27887 } 27888 #endif 27889 GetExtension(pb::Extension<TestParsingMerge, TValue> extension)27890 public TValue GetExtension<TValue>(pb::Extension<TestParsingMerge, TValue> extension) { 27891 return pb::ExtensionSet.Get(ref _extensions, extension); 27892 } GetExtension(pb::RepeatedExtension<TestParsingMerge, TValue> extension)27893 public pbc::RepeatedField<TValue> GetExtension<TValue>(pb::RepeatedExtension<TestParsingMerge, TValue> extension) { 27894 return pb::ExtensionSet.Get(ref _extensions, extension); 27895 } GetOrInitializeExtension(pb::RepeatedExtension<TestParsingMerge, TValue> extension)27896 public pbc::RepeatedField<TValue> GetOrInitializeExtension<TValue>(pb::RepeatedExtension<TestParsingMerge, TValue> extension) { 27897 return pb::ExtensionSet.GetOrInitialize(ref _extensions, extension); 27898 } SetExtension(pb::Extension<TestParsingMerge, TValue> extension, TValue value)27899 public void SetExtension<TValue>(pb::Extension<TestParsingMerge, TValue> extension, TValue value) { 27900 pb::ExtensionSet.Set(ref _extensions, extension, value); 27901 } HasExtension(pb::Extension<TestParsingMerge, TValue> extension)27902 public bool HasExtension<TValue>(pb::Extension<TestParsingMerge, TValue> extension) { 27903 return pb::ExtensionSet.Has(ref _extensions, extension); 27904 } ClearExtension(pb::Extension<TestParsingMerge, TValue> extension)27905 public void ClearExtension<TValue>(pb::Extension<TestParsingMerge, TValue> extension) { 27906 pb::ExtensionSet.Clear(ref _extensions, extension); 27907 } ClearExtension(pb::RepeatedExtension<TestParsingMerge, TValue> extension)27908 public void ClearExtension<TValue>(pb::RepeatedExtension<TestParsingMerge, TValue> extension) { 27909 pb::ExtensionSet.Clear(ref _extensions, extension); 27910 } 27911 27912 #region Nested types 27913 /// <summary>Container for nested types declared in the TestParsingMerge message type.</summary> 27914 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 27915 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 27916 public static partial class Types { 27917 /// <summary> 27918 /// RepeatedFieldsGenerator defines matching field types as TestParsingMerge, 27919 /// except that all fields are repeated. In the tests, we will serialize the 27920 /// RepeatedFieldsGenerator to bytes, and parse the bytes to TestParsingMerge. 27921 /// Repeated fields in RepeatedFieldsGenerator are expected to be merged into 27922 /// the corresponding required/optional fields in TestParsingMerge. 27923 /// </summary> 27924 [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] 27925 public sealed partial class RepeatedFieldsGenerator : pb::IMessage<RepeatedFieldsGenerator> 27926 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 27927 , pb::IBufferMessage 27928 #endif 27929 { 27930 private static readonly pb::MessageParser<RepeatedFieldsGenerator> _parser = new pb::MessageParser<RepeatedFieldsGenerator>(() => new RepeatedFieldsGenerator()); 27931 private pb::UnknownFieldSet _unknownFields; 27932 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 27933 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 27934 public static pb::MessageParser<RepeatedFieldsGenerator> Parser { get { return _parser; } } 27935 27936 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 27937 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 27938 public static pbr::MessageDescriptor Descriptor { 27939 get { return global::Google.Protobuf.TestProtos.Proto2.TestParsingMerge.Descriptor.NestedTypes[0]; } 27940 } 27941 27942 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 27943 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 27944 pbr::MessageDescriptor pb::IMessage.Descriptor { 27945 get { return Descriptor; } 27946 } 27947 27948 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 27949 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] RepeatedFieldsGenerator()27950 public RepeatedFieldsGenerator() { 27951 OnConstruction(); 27952 } 27953 OnConstruction()27954 partial void OnConstruction(); 27955 27956 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 27957 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] RepeatedFieldsGenerator(RepeatedFieldsGenerator other)27958 public RepeatedFieldsGenerator(RepeatedFieldsGenerator other) : this() { 27959 field1_ = other.field1_.Clone(); 27960 field2_ = other.field2_.Clone(); 27961 field3_ = other.field3_.Clone(); 27962 group1_ = other.group1_.Clone(); 27963 group2_ = other.group2_.Clone(); 27964 ext1_ = other.ext1_.Clone(); 27965 ext2_ = other.ext2_.Clone(); 27966 _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); 27967 } 27968 27969 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 27970 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] Clone()27971 public RepeatedFieldsGenerator Clone() { 27972 return new RepeatedFieldsGenerator(this); 27973 } 27974 27975 /// <summary>Field number for the "field1" field.</summary> 27976 public const int Field1FieldNumber = 1; 27977 private static readonly pb::FieldCodec<global::Google.Protobuf.TestProtos.Proto2.TestAllTypes> _repeated_field1_codec 27978 = pb::FieldCodec.ForMessage(10, global::Google.Protobuf.TestProtos.Proto2.TestAllTypes.Parser); 27979 private readonly pbc::RepeatedField<global::Google.Protobuf.TestProtos.Proto2.TestAllTypes> field1_ = new pbc::RepeatedField<global::Google.Protobuf.TestProtos.Proto2.TestAllTypes>(); 27980 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 27981 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 27982 public pbc::RepeatedField<global::Google.Protobuf.TestProtos.Proto2.TestAllTypes> Field1 { 27983 get { return field1_; } 27984 } 27985 27986 /// <summary>Field number for the "field2" field.</summary> 27987 public const int Field2FieldNumber = 2; 27988 private static readonly pb::FieldCodec<global::Google.Protobuf.TestProtos.Proto2.TestAllTypes> _repeated_field2_codec 27989 = pb::FieldCodec.ForMessage(18, global::Google.Protobuf.TestProtos.Proto2.TestAllTypes.Parser); 27990 private readonly pbc::RepeatedField<global::Google.Protobuf.TestProtos.Proto2.TestAllTypes> field2_ = new pbc::RepeatedField<global::Google.Protobuf.TestProtos.Proto2.TestAllTypes>(); 27991 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 27992 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 27993 public pbc::RepeatedField<global::Google.Protobuf.TestProtos.Proto2.TestAllTypes> Field2 { 27994 get { return field2_; } 27995 } 27996 27997 /// <summary>Field number for the "field3" field.</summary> 27998 public const int Field3FieldNumber = 3; 27999 private static readonly pb::FieldCodec<global::Google.Protobuf.TestProtos.Proto2.TestAllTypes> _repeated_field3_codec 28000 = pb::FieldCodec.ForMessage(26, global::Google.Protobuf.TestProtos.Proto2.TestAllTypes.Parser); 28001 private readonly pbc::RepeatedField<global::Google.Protobuf.TestProtos.Proto2.TestAllTypes> field3_ = new pbc::RepeatedField<global::Google.Protobuf.TestProtos.Proto2.TestAllTypes>(); 28002 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 28003 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 28004 public pbc::RepeatedField<global::Google.Protobuf.TestProtos.Proto2.TestAllTypes> Field3 { 28005 get { return field3_; } 28006 } 28007 28008 /// <summary>Field number for the "group1" field.</summary> 28009 public const int Group1FieldNumber = 10; 28010 private static readonly pb::FieldCodec<global::Google.Protobuf.TestProtos.Proto2.TestParsingMerge.Types.RepeatedFieldsGenerator.Types.Group1> _repeated_group1_codec 28011 = pb::FieldCodec.ForGroup(83, 84, global::Google.Protobuf.TestProtos.Proto2.TestParsingMerge.Types.RepeatedFieldsGenerator.Types.Group1.Parser); 28012 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>(); 28013 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 28014 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 28015 public pbc::RepeatedField<global::Google.Protobuf.TestProtos.Proto2.TestParsingMerge.Types.RepeatedFieldsGenerator.Types.Group1> Group1 { 28016 get { return group1_; } 28017 } 28018 28019 /// <summary>Field number for the "group2" field.</summary> 28020 public const int Group2FieldNumber = 20; 28021 private static readonly pb::FieldCodec<global::Google.Protobuf.TestProtos.Proto2.TestParsingMerge.Types.RepeatedFieldsGenerator.Types.Group2> _repeated_group2_codec 28022 = pb::FieldCodec.ForGroup(163, 164, global::Google.Protobuf.TestProtos.Proto2.TestParsingMerge.Types.RepeatedFieldsGenerator.Types.Group2.Parser); 28023 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>(); 28024 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 28025 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 28026 public pbc::RepeatedField<global::Google.Protobuf.TestProtos.Proto2.TestParsingMerge.Types.RepeatedFieldsGenerator.Types.Group2> Group2 { 28027 get { return group2_; } 28028 } 28029 28030 /// <summary>Field number for the "ext1" field.</summary> 28031 public const int Ext1FieldNumber = 1000; 28032 private static readonly pb::FieldCodec<global::Google.Protobuf.TestProtos.Proto2.TestAllTypes> _repeated_ext1_codec 28033 = pb::FieldCodec.ForMessage(8002, global::Google.Protobuf.TestProtos.Proto2.TestAllTypes.Parser); 28034 private readonly pbc::RepeatedField<global::Google.Protobuf.TestProtos.Proto2.TestAllTypes> ext1_ = new pbc::RepeatedField<global::Google.Protobuf.TestProtos.Proto2.TestAllTypes>(); 28035 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 28036 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 28037 public pbc::RepeatedField<global::Google.Protobuf.TestProtos.Proto2.TestAllTypes> Ext1 { 28038 get { return ext1_; } 28039 } 28040 28041 /// <summary>Field number for the "ext2" field.</summary> 28042 public const int Ext2FieldNumber = 1001; 28043 private static readonly pb::FieldCodec<global::Google.Protobuf.TestProtos.Proto2.TestAllTypes> _repeated_ext2_codec 28044 = pb::FieldCodec.ForMessage(8010, global::Google.Protobuf.TestProtos.Proto2.TestAllTypes.Parser); 28045 private readonly pbc::RepeatedField<global::Google.Protobuf.TestProtos.Proto2.TestAllTypes> ext2_ = new pbc::RepeatedField<global::Google.Protobuf.TestProtos.Proto2.TestAllTypes>(); 28046 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 28047 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 28048 public pbc::RepeatedField<global::Google.Protobuf.TestProtos.Proto2.TestAllTypes> Ext2 { 28049 get { return ext2_; } 28050 } 28051 28052 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 28053 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] Equals(object other)28054 public override bool Equals(object other) { 28055 return Equals(other as RepeatedFieldsGenerator); 28056 } 28057 28058 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 28059 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] Equals(RepeatedFieldsGenerator other)28060 public bool Equals(RepeatedFieldsGenerator other) { 28061 if (ReferenceEquals(other, null)) { 28062 return false; 28063 } 28064 if (ReferenceEquals(other, this)) { 28065 return true; 28066 } 28067 if(!field1_.Equals(other.field1_)) return false; 28068 if(!field2_.Equals(other.field2_)) return false; 28069 if(!field3_.Equals(other.field3_)) return false; 28070 if(!group1_.Equals(other.group1_)) return false; 28071 if(!group2_.Equals(other.group2_)) return false; 28072 if(!ext1_.Equals(other.ext1_)) return false; 28073 if(!ext2_.Equals(other.ext2_)) return false; 28074 return Equals(_unknownFields, other._unknownFields); 28075 } 28076 28077 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 28078 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] GetHashCode()28079 public override int GetHashCode() { 28080 int hash = 1; 28081 hash ^= field1_.GetHashCode(); 28082 hash ^= field2_.GetHashCode(); 28083 hash ^= field3_.GetHashCode(); 28084 hash ^= group1_.GetHashCode(); 28085 hash ^= group2_.GetHashCode(); 28086 hash ^= ext1_.GetHashCode(); 28087 hash ^= ext2_.GetHashCode(); 28088 if (_unknownFields != null) { 28089 hash ^= _unknownFields.GetHashCode(); 28090 } 28091 return hash; 28092 } 28093 28094 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 28095 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] ToString()28096 public override string ToString() { 28097 return pb::JsonFormatter.ToDiagnosticString(this); 28098 } 28099 28100 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 28101 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] WriteTo(pb::CodedOutputStream output)28102 public void WriteTo(pb::CodedOutputStream output) { 28103 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 28104 output.WriteRawMessage(this); 28105 #else 28106 field1_.WriteTo(output, _repeated_field1_codec); 28107 field2_.WriteTo(output, _repeated_field2_codec); 28108 field3_.WriteTo(output, _repeated_field3_codec); 28109 group1_.WriteTo(output, _repeated_group1_codec); 28110 group2_.WriteTo(output, _repeated_group2_codec); 28111 ext1_.WriteTo(output, _repeated_ext1_codec); 28112 ext2_.WriteTo(output, _repeated_ext2_codec); 28113 if (_unknownFields != null) { 28114 _unknownFields.WriteTo(output); 28115 } 28116 #endif 28117 } 28118 28119 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 28120 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 28121 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] IBufferMessage.InternalWriteTo(ref pb::WriteContext output)28122 void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { 28123 field1_.WriteTo(ref output, _repeated_field1_codec); 28124 field2_.WriteTo(ref output, _repeated_field2_codec); 28125 field3_.WriteTo(ref output, _repeated_field3_codec); 28126 group1_.WriteTo(ref output, _repeated_group1_codec); 28127 group2_.WriteTo(ref output, _repeated_group2_codec); 28128 ext1_.WriteTo(ref output, _repeated_ext1_codec); 28129 ext2_.WriteTo(ref output, _repeated_ext2_codec); 28130 if (_unknownFields != null) { 28131 _unknownFields.WriteTo(ref output); 28132 } 28133 } 28134 #endif 28135 28136 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 28137 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] CalculateSize()28138 public int CalculateSize() { 28139 int size = 0; 28140 size += field1_.CalculateSize(_repeated_field1_codec); 28141 size += field2_.CalculateSize(_repeated_field2_codec); 28142 size += field3_.CalculateSize(_repeated_field3_codec); 28143 size += group1_.CalculateSize(_repeated_group1_codec); 28144 size += group2_.CalculateSize(_repeated_group2_codec); 28145 size += ext1_.CalculateSize(_repeated_ext1_codec); 28146 size += ext2_.CalculateSize(_repeated_ext2_codec); 28147 if (_unknownFields != null) { 28148 size += _unknownFields.CalculateSize(); 28149 } 28150 return size; 28151 } 28152 28153 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 28154 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] MergeFrom(RepeatedFieldsGenerator other)28155 public void MergeFrom(RepeatedFieldsGenerator other) { 28156 if (other == null) { 28157 return; 28158 } 28159 field1_.Add(other.field1_); 28160 field2_.Add(other.field2_); 28161 field3_.Add(other.field3_); 28162 group1_.Add(other.group1_); 28163 group2_.Add(other.group2_); 28164 ext1_.Add(other.ext1_); 28165 ext2_.Add(other.ext2_); 28166 _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); 28167 } 28168 28169 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 28170 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] MergeFrom(pb::CodedInputStream input)28171 public void MergeFrom(pb::CodedInputStream input) { 28172 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 28173 input.ReadRawMessage(this); 28174 #else 28175 uint tag; 28176 while ((tag = input.ReadTag()) != 0) { 28177 if ((tag & 7) == 4) { 28178 // Abort on any end group tag. 28179 return; 28180 } 28181 switch(tag) { 28182 default: 28183 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); 28184 break; 28185 case 10: { 28186 field1_.AddEntriesFrom(input, _repeated_field1_codec); 28187 break; 28188 } 28189 case 18: { 28190 field2_.AddEntriesFrom(input, _repeated_field2_codec); 28191 break; 28192 } 28193 case 26: { 28194 field3_.AddEntriesFrom(input, _repeated_field3_codec); 28195 break; 28196 } 28197 case 83: { 28198 group1_.AddEntriesFrom(input, _repeated_group1_codec); 28199 break; 28200 } 28201 case 163: { 28202 group2_.AddEntriesFrom(input, _repeated_group2_codec); 28203 break; 28204 } 28205 case 8002: { 28206 ext1_.AddEntriesFrom(input, _repeated_ext1_codec); 28207 break; 28208 } 28209 case 8010: { 28210 ext2_.AddEntriesFrom(input, _repeated_ext2_codec); 28211 break; 28212 } 28213 } 28214 } 28215 #endif 28216 } 28217 28218 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 28219 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 28220 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] IBufferMessage.InternalMergeFrom(ref pb::ParseContext input)28221 void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { 28222 uint tag; 28223 while ((tag = input.ReadTag()) != 0) { 28224 if ((tag & 7) == 4) { 28225 // Abort on any end group tag. 28226 return; 28227 } 28228 switch(tag) { 28229 default: 28230 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); 28231 break; 28232 case 10: { 28233 field1_.AddEntriesFrom(ref input, _repeated_field1_codec); 28234 break; 28235 } 28236 case 18: { 28237 field2_.AddEntriesFrom(ref input, _repeated_field2_codec); 28238 break; 28239 } 28240 case 26: { 28241 field3_.AddEntriesFrom(ref input, _repeated_field3_codec); 28242 break; 28243 } 28244 case 83: { 28245 group1_.AddEntriesFrom(ref input, _repeated_group1_codec); 28246 break; 28247 } 28248 case 163: { 28249 group2_.AddEntriesFrom(ref input, _repeated_group2_codec); 28250 break; 28251 } 28252 case 8002: { 28253 ext1_.AddEntriesFrom(ref input, _repeated_ext1_codec); 28254 break; 28255 } 28256 case 8010: { 28257 ext2_.AddEntriesFrom(ref input, _repeated_ext2_codec); 28258 break; 28259 } 28260 } 28261 } 28262 } 28263 #endif 28264 28265 #region Nested types 28266 /// <summary>Container for nested types declared in the RepeatedFieldsGenerator message type.</summary> 28267 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 28268 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 28269 public static partial class Types { 28270 [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] 28271 public sealed partial class Group1 : pb::IMessage<Group1> 28272 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 28273 , pb::IBufferMessage 28274 #endif 28275 { 28276 private static readonly pb::MessageParser<Group1> _parser = new pb::MessageParser<Group1>(() => new Group1()); 28277 private pb::UnknownFieldSet _unknownFields; 28278 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 28279 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 28280 public static pb::MessageParser<Group1> Parser { get { return _parser; } } 28281 28282 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 28283 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 28284 public static pbr::MessageDescriptor Descriptor { 28285 get { return global::Google.Protobuf.TestProtos.Proto2.TestParsingMerge.Types.RepeatedFieldsGenerator.Descriptor.NestedTypes[0]; } 28286 } 28287 28288 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 28289 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 28290 pbr::MessageDescriptor pb::IMessage.Descriptor { 28291 get { return Descriptor; } 28292 } 28293 28294 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 28295 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] Group1()28296 public Group1() { 28297 OnConstruction(); 28298 } 28299 OnConstruction()28300 partial void OnConstruction(); 28301 28302 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 28303 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] Group1(Group1 other)28304 public Group1(Group1 other) : this() { 28305 field1_ = other.field1_ != null ? other.field1_.Clone() : null; 28306 _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); 28307 } 28308 28309 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 28310 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] Clone()28311 public Group1 Clone() { 28312 return new Group1(this); 28313 } 28314 28315 /// <summary>Field number for the "field1" field.</summary> 28316 public const int Field1FieldNumber = 11; 28317 private global::Google.Protobuf.TestProtos.Proto2.TestAllTypes field1_; 28318 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 28319 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 28320 public global::Google.Protobuf.TestProtos.Proto2.TestAllTypes Field1 { 28321 get { return field1_; } 28322 set { 28323 field1_ = value; 28324 } 28325 } 28326 28327 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 28328 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] Equals(object other)28329 public override bool Equals(object other) { 28330 return Equals(other as Group1); 28331 } 28332 28333 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 28334 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] Equals(Group1 other)28335 public bool Equals(Group1 other) { 28336 if (ReferenceEquals(other, null)) { 28337 return false; 28338 } 28339 if (ReferenceEquals(other, this)) { 28340 return true; 28341 } 28342 if (!object.Equals(Field1, other.Field1)) return false; 28343 return Equals(_unknownFields, other._unknownFields); 28344 } 28345 28346 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 28347 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] GetHashCode()28348 public override int GetHashCode() { 28349 int hash = 1; 28350 if (field1_ != null) hash ^= Field1.GetHashCode(); 28351 if (_unknownFields != null) { 28352 hash ^= _unknownFields.GetHashCode(); 28353 } 28354 return hash; 28355 } 28356 28357 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 28358 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] ToString()28359 public override string ToString() { 28360 return pb::JsonFormatter.ToDiagnosticString(this); 28361 } 28362 28363 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 28364 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] WriteTo(pb::CodedOutputStream output)28365 public void WriteTo(pb::CodedOutputStream output) { 28366 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 28367 output.WriteRawMessage(this); 28368 #else 28369 if (field1_ != null) { 28370 output.WriteRawTag(90); 28371 output.WriteMessage(Field1); 28372 } 28373 if (_unknownFields != null) { 28374 _unknownFields.WriteTo(output); 28375 } 28376 #endif 28377 } 28378 28379 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 28380 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 28381 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] IBufferMessage.InternalWriteTo(ref pb::WriteContext output)28382 void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { 28383 if (field1_ != null) { 28384 output.WriteRawTag(90); 28385 output.WriteMessage(Field1); 28386 } 28387 if (_unknownFields != null) { 28388 _unknownFields.WriteTo(ref output); 28389 } 28390 } 28391 #endif 28392 28393 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 28394 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] CalculateSize()28395 public int CalculateSize() { 28396 int size = 0; 28397 if (field1_ != null) { 28398 size += 1 + pb::CodedOutputStream.ComputeMessageSize(Field1); 28399 } 28400 if (_unknownFields != null) { 28401 size += _unknownFields.CalculateSize(); 28402 } 28403 return size; 28404 } 28405 28406 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 28407 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] MergeFrom(Group1 other)28408 public void MergeFrom(Group1 other) { 28409 if (other == null) { 28410 return; 28411 } 28412 if (other.field1_ != null) { 28413 if (field1_ == null) { 28414 Field1 = new global::Google.Protobuf.TestProtos.Proto2.TestAllTypes(); 28415 } 28416 Field1.MergeFrom(other.Field1); 28417 } 28418 _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); 28419 } 28420 28421 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 28422 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] MergeFrom(pb::CodedInputStream input)28423 public void MergeFrom(pb::CodedInputStream input) { 28424 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 28425 input.ReadRawMessage(this); 28426 #else 28427 uint tag; 28428 while ((tag = input.ReadTag()) != 0) { 28429 if ((tag & 7) == 4) { 28430 // Abort on any end group tag. 28431 return; 28432 } 28433 switch(tag) { 28434 default: 28435 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); 28436 break; 28437 case 90: { 28438 if (field1_ == null) { 28439 Field1 = new global::Google.Protobuf.TestProtos.Proto2.TestAllTypes(); 28440 } 28441 input.ReadMessage(Field1); 28442 break; 28443 } 28444 } 28445 } 28446 #endif 28447 } 28448 28449 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 28450 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 28451 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] IBufferMessage.InternalMergeFrom(ref pb::ParseContext input)28452 void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { 28453 uint tag; 28454 while ((tag = input.ReadTag()) != 0) { 28455 if ((tag & 7) == 4) { 28456 // Abort on any end group tag. 28457 return; 28458 } 28459 switch(tag) { 28460 default: 28461 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); 28462 break; 28463 case 90: { 28464 if (field1_ == null) { 28465 Field1 = new global::Google.Protobuf.TestProtos.Proto2.TestAllTypes(); 28466 } 28467 input.ReadMessage(Field1); 28468 break; 28469 } 28470 } 28471 } 28472 } 28473 #endif 28474 28475 } 28476 28477 [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] 28478 public sealed partial class Group2 : pb::IMessage<Group2> 28479 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 28480 , pb::IBufferMessage 28481 #endif 28482 { 28483 private static readonly pb::MessageParser<Group2> _parser = new pb::MessageParser<Group2>(() => new Group2()); 28484 private pb::UnknownFieldSet _unknownFields; 28485 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 28486 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 28487 public static pb::MessageParser<Group2> Parser { get { return _parser; } } 28488 28489 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 28490 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 28491 public static pbr::MessageDescriptor Descriptor { 28492 get { return global::Google.Protobuf.TestProtos.Proto2.TestParsingMerge.Types.RepeatedFieldsGenerator.Descriptor.NestedTypes[1]; } 28493 } 28494 28495 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 28496 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 28497 pbr::MessageDescriptor pb::IMessage.Descriptor { 28498 get { return Descriptor; } 28499 } 28500 28501 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 28502 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] Group2()28503 public Group2() { 28504 OnConstruction(); 28505 } 28506 OnConstruction()28507 partial void OnConstruction(); 28508 28509 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 28510 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] Group2(Group2 other)28511 public Group2(Group2 other) : this() { 28512 field1_ = other.field1_ != null ? other.field1_.Clone() : null; 28513 _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); 28514 } 28515 28516 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 28517 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] Clone()28518 public Group2 Clone() { 28519 return new Group2(this); 28520 } 28521 28522 /// <summary>Field number for the "field1" field.</summary> 28523 public const int Field1FieldNumber = 21; 28524 private global::Google.Protobuf.TestProtos.Proto2.TestAllTypes field1_; 28525 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 28526 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 28527 public global::Google.Protobuf.TestProtos.Proto2.TestAllTypes Field1 { 28528 get { return field1_; } 28529 set { 28530 field1_ = value; 28531 } 28532 } 28533 28534 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 28535 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] Equals(object other)28536 public override bool Equals(object other) { 28537 return Equals(other as Group2); 28538 } 28539 28540 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 28541 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] Equals(Group2 other)28542 public bool Equals(Group2 other) { 28543 if (ReferenceEquals(other, null)) { 28544 return false; 28545 } 28546 if (ReferenceEquals(other, this)) { 28547 return true; 28548 } 28549 if (!object.Equals(Field1, other.Field1)) return false; 28550 return Equals(_unknownFields, other._unknownFields); 28551 } 28552 28553 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 28554 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] GetHashCode()28555 public override int GetHashCode() { 28556 int hash = 1; 28557 if (field1_ != null) hash ^= Field1.GetHashCode(); 28558 if (_unknownFields != null) { 28559 hash ^= _unknownFields.GetHashCode(); 28560 } 28561 return hash; 28562 } 28563 28564 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 28565 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] ToString()28566 public override string ToString() { 28567 return pb::JsonFormatter.ToDiagnosticString(this); 28568 } 28569 28570 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 28571 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] WriteTo(pb::CodedOutputStream output)28572 public void WriteTo(pb::CodedOutputStream output) { 28573 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 28574 output.WriteRawMessage(this); 28575 #else 28576 if (field1_ != null) { 28577 output.WriteRawTag(170, 1); 28578 output.WriteMessage(Field1); 28579 } 28580 if (_unknownFields != null) { 28581 _unknownFields.WriteTo(output); 28582 } 28583 #endif 28584 } 28585 28586 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 28587 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 28588 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] IBufferMessage.InternalWriteTo(ref pb::WriteContext output)28589 void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { 28590 if (field1_ != null) { 28591 output.WriteRawTag(170, 1); 28592 output.WriteMessage(Field1); 28593 } 28594 if (_unknownFields != null) { 28595 _unknownFields.WriteTo(ref output); 28596 } 28597 } 28598 #endif 28599 28600 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 28601 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] CalculateSize()28602 public int CalculateSize() { 28603 int size = 0; 28604 if (field1_ != null) { 28605 size += 2 + pb::CodedOutputStream.ComputeMessageSize(Field1); 28606 } 28607 if (_unknownFields != null) { 28608 size += _unknownFields.CalculateSize(); 28609 } 28610 return size; 28611 } 28612 28613 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 28614 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] MergeFrom(Group2 other)28615 public void MergeFrom(Group2 other) { 28616 if (other == null) { 28617 return; 28618 } 28619 if (other.field1_ != null) { 28620 if (field1_ == null) { 28621 Field1 = new global::Google.Protobuf.TestProtos.Proto2.TestAllTypes(); 28622 } 28623 Field1.MergeFrom(other.Field1); 28624 } 28625 _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); 28626 } 28627 28628 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 28629 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] MergeFrom(pb::CodedInputStream input)28630 public void MergeFrom(pb::CodedInputStream input) { 28631 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 28632 input.ReadRawMessage(this); 28633 #else 28634 uint tag; 28635 while ((tag = input.ReadTag()) != 0) { 28636 if ((tag & 7) == 4) { 28637 // Abort on any end group tag. 28638 return; 28639 } 28640 switch(tag) { 28641 default: 28642 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); 28643 break; 28644 case 170: { 28645 if (field1_ == null) { 28646 Field1 = new global::Google.Protobuf.TestProtos.Proto2.TestAllTypes(); 28647 } 28648 input.ReadMessage(Field1); 28649 break; 28650 } 28651 } 28652 } 28653 #endif 28654 } 28655 28656 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 28657 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 28658 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] IBufferMessage.InternalMergeFrom(ref pb::ParseContext input)28659 void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { 28660 uint tag; 28661 while ((tag = input.ReadTag()) != 0) { 28662 if ((tag & 7) == 4) { 28663 // Abort on any end group tag. 28664 return; 28665 } 28666 switch(tag) { 28667 default: 28668 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); 28669 break; 28670 case 170: { 28671 if (field1_ == null) { 28672 Field1 = new global::Google.Protobuf.TestProtos.Proto2.TestAllTypes(); 28673 } 28674 input.ReadMessage(Field1); 28675 break; 28676 } 28677 } 28678 } 28679 } 28680 #endif 28681 28682 } 28683 28684 } 28685 #endregion 28686 28687 } 28688 28689 [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] 28690 public sealed partial class OptionalGroup : pb::IMessage<OptionalGroup> 28691 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 28692 , pb::IBufferMessage 28693 #endif 28694 { 28695 private static readonly pb::MessageParser<OptionalGroup> _parser = new pb::MessageParser<OptionalGroup>(() => new OptionalGroup()); 28696 private pb::UnknownFieldSet _unknownFields; 28697 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 28698 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 28699 public static pb::MessageParser<OptionalGroup> Parser { get { return _parser; } } 28700 28701 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 28702 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 28703 public static pbr::MessageDescriptor Descriptor { 28704 get { return global::Google.Protobuf.TestProtos.Proto2.TestParsingMerge.Descriptor.NestedTypes[1]; } 28705 } 28706 28707 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 28708 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 28709 pbr::MessageDescriptor pb::IMessage.Descriptor { 28710 get { return Descriptor; } 28711 } 28712 28713 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 28714 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] OptionalGroup()28715 public OptionalGroup() { 28716 OnConstruction(); 28717 } 28718 OnConstruction()28719 partial void OnConstruction(); 28720 28721 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 28722 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] OptionalGroup(OptionalGroup other)28723 public OptionalGroup(OptionalGroup other) : this() { 28724 optionalGroupAllTypes_ = other.optionalGroupAllTypes_ != null ? other.optionalGroupAllTypes_.Clone() : null; 28725 _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); 28726 } 28727 28728 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 28729 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] Clone()28730 public OptionalGroup Clone() { 28731 return new OptionalGroup(this); 28732 } 28733 28734 /// <summary>Field number for the "optional_group_all_types" field.</summary> 28735 public const int OptionalGroupAllTypesFieldNumber = 11; 28736 private global::Google.Protobuf.TestProtos.Proto2.TestAllTypes optionalGroupAllTypes_; 28737 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 28738 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 28739 public global::Google.Protobuf.TestProtos.Proto2.TestAllTypes OptionalGroupAllTypes { 28740 get { return optionalGroupAllTypes_; } 28741 set { 28742 optionalGroupAllTypes_ = value; 28743 } 28744 } 28745 28746 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 28747 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] Equals(object other)28748 public override bool Equals(object other) { 28749 return Equals(other as OptionalGroup); 28750 } 28751 28752 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 28753 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] Equals(OptionalGroup other)28754 public bool Equals(OptionalGroup other) { 28755 if (ReferenceEquals(other, null)) { 28756 return false; 28757 } 28758 if (ReferenceEquals(other, this)) { 28759 return true; 28760 } 28761 if (!object.Equals(OptionalGroupAllTypes, other.OptionalGroupAllTypes)) return false; 28762 return Equals(_unknownFields, other._unknownFields); 28763 } 28764 28765 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 28766 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] GetHashCode()28767 public override int GetHashCode() { 28768 int hash = 1; 28769 if (optionalGroupAllTypes_ != null) hash ^= OptionalGroupAllTypes.GetHashCode(); 28770 if (_unknownFields != null) { 28771 hash ^= _unknownFields.GetHashCode(); 28772 } 28773 return hash; 28774 } 28775 28776 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 28777 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] ToString()28778 public override string ToString() { 28779 return pb::JsonFormatter.ToDiagnosticString(this); 28780 } 28781 28782 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 28783 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] WriteTo(pb::CodedOutputStream output)28784 public void WriteTo(pb::CodedOutputStream output) { 28785 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 28786 output.WriteRawMessage(this); 28787 #else 28788 if (optionalGroupAllTypes_ != null) { 28789 output.WriteRawTag(90); 28790 output.WriteMessage(OptionalGroupAllTypes); 28791 } 28792 if (_unknownFields != null) { 28793 _unknownFields.WriteTo(output); 28794 } 28795 #endif 28796 } 28797 28798 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 28799 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 28800 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] IBufferMessage.InternalWriteTo(ref pb::WriteContext output)28801 void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { 28802 if (optionalGroupAllTypes_ != null) { 28803 output.WriteRawTag(90); 28804 output.WriteMessage(OptionalGroupAllTypes); 28805 } 28806 if (_unknownFields != null) { 28807 _unknownFields.WriteTo(ref output); 28808 } 28809 } 28810 #endif 28811 28812 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 28813 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] CalculateSize()28814 public int CalculateSize() { 28815 int size = 0; 28816 if (optionalGroupAllTypes_ != null) { 28817 size += 1 + pb::CodedOutputStream.ComputeMessageSize(OptionalGroupAllTypes); 28818 } 28819 if (_unknownFields != null) { 28820 size += _unknownFields.CalculateSize(); 28821 } 28822 return size; 28823 } 28824 28825 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 28826 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] MergeFrom(OptionalGroup other)28827 public void MergeFrom(OptionalGroup other) { 28828 if (other == null) { 28829 return; 28830 } 28831 if (other.optionalGroupAllTypes_ != null) { 28832 if (optionalGroupAllTypes_ == null) { 28833 OptionalGroupAllTypes = new global::Google.Protobuf.TestProtos.Proto2.TestAllTypes(); 28834 } 28835 OptionalGroupAllTypes.MergeFrom(other.OptionalGroupAllTypes); 28836 } 28837 _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); 28838 } 28839 28840 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 28841 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] MergeFrom(pb::CodedInputStream input)28842 public void MergeFrom(pb::CodedInputStream input) { 28843 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 28844 input.ReadRawMessage(this); 28845 #else 28846 uint tag; 28847 while ((tag = input.ReadTag()) != 0) { 28848 if ((tag & 7) == 4) { 28849 // Abort on any end group tag. 28850 return; 28851 } 28852 switch(tag) { 28853 default: 28854 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); 28855 break; 28856 case 90: { 28857 if (optionalGroupAllTypes_ == null) { 28858 OptionalGroupAllTypes = new global::Google.Protobuf.TestProtos.Proto2.TestAllTypes(); 28859 } 28860 input.ReadMessage(OptionalGroupAllTypes); 28861 break; 28862 } 28863 } 28864 } 28865 #endif 28866 } 28867 28868 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 28869 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 28870 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] IBufferMessage.InternalMergeFrom(ref pb::ParseContext input)28871 void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { 28872 uint tag; 28873 while ((tag = input.ReadTag()) != 0) { 28874 if ((tag & 7) == 4) { 28875 // Abort on any end group tag. 28876 return; 28877 } 28878 switch(tag) { 28879 default: 28880 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); 28881 break; 28882 case 90: { 28883 if (optionalGroupAllTypes_ == null) { 28884 OptionalGroupAllTypes = new global::Google.Protobuf.TestProtos.Proto2.TestAllTypes(); 28885 } 28886 input.ReadMessage(OptionalGroupAllTypes); 28887 break; 28888 } 28889 } 28890 } 28891 } 28892 #endif 28893 28894 } 28895 28896 [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] 28897 public sealed partial class RepeatedGroup : pb::IMessage<RepeatedGroup> 28898 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 28899 , pb::IBufferMessage 28900 #endif 28901 { 28902 private static readonly pb::MessageParser<RepeatedGroup> _parser = new pb::MessageParser<RepeatedGroup>(() => new RepeatedGroup()); 28903 private pb::UnknownFieldSet _unknownFields; 28904 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 28905 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 28906 public static pb::MessageParser<RepeatedGroup> Parser { get { return _parser; } } 28907 28908 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 28909 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 28910 public static pbr::MessageDescriptor Descriptor { 28911 get { return global::Google.Protobuf.TestProtos.Proto2.TestParsingMerge.Descriptor.NestedTypes[2]; } 28912 } 28913 28914 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 28915 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 28916 pbr::MessageDescriptor pb::IMessage.Descriptor { 28917 get { return Descriptor; } 28918 } 28919 28920 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 28921 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] RepeatedGroup()28922 public RepeatedGroup() { 28923 OnConstruction(); 28924 } 28925 OnConstruction()28926 partial void OnConstruction(); 28927 28928 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 28929 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] RepeatedGroup(RepeatedGroup other)28930 public RepeatedGroup(RepeatedGroup other) : this() { 28931 repeatedGroupAllTypes_ = other.repeatedGroupAllTypes_ != null ? other.repeatedGroupAllTypes_.Clone() : null; 28932 _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); 28933 } 28934 28935 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 28936 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] Clone()28937 public RepeatedGroup Clone() { 28938 return new RepeatedGroup(this); 28939 } 28940 28941 /// <summary>Field number for the "repeated_group_all_types" field.</summary> 28942 public const int RepeatedGroupAllTypesFieldNumber = 21; 28943 private global::Google.Protobuf.TestProtos.Proto2.TestAllTypes repeatedGroupAllTypes_; 28944 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 28945 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 28946 public global::Google.Protobuf.TestProtos.Proto2.TestAllTypes RepeatedGroupAllTypes { 28947 get { return repeatedGroupAllTypes_; } 28948 set { 28949 repeatedGroupAllTypes_ = value; 28950 } 28951 } 28952 28953 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 28954 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] Equals(object other)28955 public override bool Equals(object other) { 28956 return Equals(other as RepeatedGroup); 28957 } 28958 28959 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 28960 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] Equals(RepeatedGroup other)28961 public bool Equals(RepeatedGroup other) { 28962 if (ReferenceEquals(other, null)) { 28963 return false; 28964 } 28965 if (ReferenceEquals(other, this)) { 28966 return true; 28967 } 28968 if (!object.Equals(RepeatedGroupAllTypes, other.RepeatedGroupAllTypes)) return false; 28969 return Equals(_unknownFields, other._unknownFields); 28970 } 28971 28972 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 28973 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] GetHashCode()28974 public override int GetHashCode() { 28975 int hash = 1; 28976 if (repeatedGroupAllTypes_ != null) hash ^= RepeatedGroupAllTypes.GetHashCode(); 28977 if (_unknownFields != null) { 28978 hash ^= _unknownFields.GetHashCode(); 28979 } 28980 return hash; 28981 } 28982 28983 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 28984 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] ToString()28985 public override string ToString() { 28986 return pb::JsonFormatter.ToDiagnosticString(this); 28987 } 28988 28989 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 28990 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] WriteTo(pb::CodedOutputStream output)28991 public void WriteTo(pb::CodedOutputStream output) { 28992 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 28993 output.WriteRawMessage(this); 28994 #else 28995 if (repeatedGroupAllTypes_ != null) { 28996 output.WriteRawTag(170, 1); 28997 output.WriteMessage(RepeatedGroupAllTypes); 28998 } 28999 if (_unknownFields != null) { 29000 _unknownFields.WriteTo(output); 29001 } 29002 #endif 29003 } 29004 29005 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 29006 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 29007 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] IBufferMessage.InternalWriteTo(ref pb::WriteContext output)29008 void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { 29009 if (repeatedGroupAllTypes_ != null) { 29010 output.WriteRawTag(170, 1); 29011 output.WriteMessage(RepeatedGroupAllTypes); 29012 } 29013 if (_unknownFields != null) { 29014 _unknownFields.WriteTo(ref output); 29015 } 29016 } 29017 #endif 29018 29019 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 29020 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] CalculateSize()29021 public int CalculateSize() { 29022 int size = 0; 29023 if (repeatedGroupAllTypes_ != null) { 29024 size += 2 + pb::CodedOutputStream.ComputeMessageSize(RepeatedGroupAllTypes); 29025 } 29026 if (_unknownFields != null) { 29027 size += _unknownFields.CalculateSize(); 29028 } 29029 return size; 29030 } 29031 29032 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 29033 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] MergeFrom(RepeatedGroup other)29034 public void MergeFrom(RepeatedGroup other) { 29035 if (other == null) { 29036 return; 29037 } 29038 if (other.repeatedGroupAllTypes_ != null) { 29039 if (repeatedGroupAllTypes_ == null) { 29040 RepeatedGroupAllTypes = new global::Google.Protobuf.TestProtos.Proto2.TestAllTypes(); 29041 } 29042 RepeatedGroupAllTypes.MergeFrom(other.RepeatedGroupAllTypes); 29043 } 29044 _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); 29045 } 29046 29047 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 29048 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] MergeFrom(pb::CodedInputStream input)29049 public void MergeFrom(pb::CodedInputStream input) { 29050 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 29051 input.ReadRawMessage(this); 29052 #else 29053 uint tag; 29054 while ((tag = input.ReadTag()) != 0) { 29055 if ((tag & 7) == 4) { 29056 // Abort on any end group tag. 29057 return; 29058 } 29059 switch(tag) { 29060 default: 29061 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); 29062 break; 29063 case 170: { 29064 if (repeatedGroupAllTypes_ == null) { 29065 RepeatedGroupAllTypes = new global::Google.Protobuf.TestProtos.Proto2.TestAllTypes(); 29066 } 29067 input.ReadMessage(RepeatedGroupAllTypes); 29068 break; 29069 } 29070 } 29071 } 29072 #endif 29073 } 29074 29075 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 29076 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 29077 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] IBufferMessage.InternalMergeFrom(ref pb::ParseContext input)29078 void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { 29079 uint tag; 29080 while ((tag = input.ReadTag()) != 0) { 29081 if ((tag & 7) == 4) { 29082 // Abort on any end group tag. 29083 return; 29084 } 29085 switch(tag) { 29086 default: 29087 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); 29088 break; 29089 case 170: { 29090 if (repeatedGroupAllTypes_ == null) { 29091 RepeatedGroupAllTypes = new global::Google.Protobuf.TestProtos.Proto2.TestAllTypes(); 29092 } 29093 input.ReadMessage(RepeatedGroupAllTypes); 29094 break; 29095 } 29096 } 29097 } 29098 } 29099 #endif 29100 29101 } 29102 29103 } 29104 #endregion 29105 29106 #region Extensions 29107 /// <summary>Container for extensions for other messages declared in the TestParsingMerge message type.</summary> 29108 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 29109 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 29110 public static partial class Extensions { 29111 public static readonly pb::Extension<global::Google.Protobuf.TestProtos.Proto2.TestParsingMerge, global::Google.Protobuf.TestProtos.Proto2.TestAllTypes> OptionalExt = 29112 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)); 29113 public static readonly pb::RepeatedExtension<global::Google.Protobuf.TestProtos.Proto2.TestParsingMerge, global::Google.Protobuf.TestProtos.Proto2.TestAllTypes> RepeatedExt = 29114 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)); 29115 } 29116 #endregion 29117 29118 } 29119 29120 [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] 29121 public sealed partial class TestCommentInjectionMessage : pb::IMessage<TestCommentInjectionMessage> 29122 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 29123 , pb::IBufferMessage 29124 #endif 29125 { 29126 private static readonly pb::MessageParser<TestCommentInjectionMessage> _parser = new pb::MessageParser<TestCommentInjectionMessage>(() => new TestCommentInjectionMessage()); 29127 private pb::UnknownFieldSet _unknownFields; 29128 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 29129 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 29130 public static pb::MessageParser<TestCommentInjectionMessage> Parser { get { return _parser; } } 29131 29132 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 29133 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 29134 public static pbr::MessageDescriptor Descriptor { 29135 get { return global::Google.Protobuf.TestProtos.Proto2.UnittestReflection.Descriptor.MessageTypes[55]; } 29136 } 29137 29138 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 29139 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 29140 pbr::MessageDescriptor pb::IMessage.Descriptor { 29141 get { return Descriptor; } 29142 } 29143 29144 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 29145 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] TestCommentInjectionMessage()29146 public TestCommentInjectionMessage() { 29147 OnConstruction(); 29148 } 29149 OnConstruction()29150 partial void OnConstruction(); 29151 29152 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 29153 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] TestCommentInjectionMessage(TestCommentInjectionMessage other)29154 public TestCommentInjectionMessage(TestCommentInjectionMessage other) : this() { 29155 a_ = other.a_; 29156 _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); 29157 } 29158 29159 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 29160 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] Clone()29161 public TestCommentInjectionMessage Clone() { 29162 return new TestCommentInjectionMessage(this); 29163 } 29164 29165 /// <summary>Field number for the "a" field.</summary> 29166 public const int AFieldNumber = 1; 29167 private readonly static string ADefaultValue = global::System.Text.Encoding.UTF8.GetString(global::System.Convert.FromBase64String("Ki8gPC0gTmVpdGhlciBzaG91bGQgdGhpcy4="), 0, 26); 29168 29169 private string a_; 29170 /// <summary> 29171 /// */ <- This should not close the generated doc comment 29172 /// </summary> 29173 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 29174 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 29175 public string A { 29176 get { return a_ ?? ADefaultValue; } 29177 set { 29178 a_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); 29179 } 29180 } 29181 /// <summary>Gets whether the "a" field is set</summary> 29182 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 29183 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 29184 public bool HasA { 29185 get { return a_ != null; } 29186 } 29187 /// <summary>Clears the value of the "a" field</summary> 29188 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 29189 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] ClearA()29190 public void ClearA() { 29191 a_ = null; 29192 } 29193 29194 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 29195 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] Equals(object other)29196 public override bool Equals(object other) { 29197 return Equals(other as TestCommentInjectionMessage); 29198 } 29199 29200 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 29201 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] Equals(TestCommentInjectionMessage other)29202 public bool Equals(TestCommentInjectionMessage other) { 29203 if (ReferenceEquals(other, null)) { 29204 return false; 29205 } 29206 if (ReferenceEquals(other, this)) { 29207 return true; 29208 } 29209 if (A != other.A) return false; 29210 return Equals(_unknownFields, other._unknownFields); 29211 } 29212 29213 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 29214 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] GetHashCode()29215 public override int GetHashCode() { 29216 int hash = 1; 29217 if (HasA) hash ^= A.GetHashCode(); 29218 if (_unknownFields != null) { 29219 hash ^= _unknownFields.GetHashCode(); 29220 } 29221 return hash; 29222 } 29223 29224 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 29225 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] ToString()29226 public override string ToString() { 29227 return pb::JsonFormatter.ToDiagnosticString(this); 29228 } 29229 29230 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 29231 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] WriteTo(pb::CodedOutputStream output)29232 public void WriteTo(pb::CodedOutputStream output) { 29233 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 29234 output.WriteRawMessage(this); 29235 #else 29236 if (HasA) { 29237 output.WriteRawTag(10); 29238 output.WriteString(A); 29239 } 29240 if (_unknownFields != null) { 29241 _unknownFields.WriteTo(output); 29242 } 29243 #endif 29244 } 29245 29246 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 29247 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 29248 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] IBufferMessage.InternalWriteTo(ref pb::WriteContext output)29249 void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { 29250 if (HasA) { 29251 output.WriteRawTag(10); 29252 output.WriteString(A); 29253 } 29254 if (_unknownFields != null) { 29255 _unknownFields.WriteTo(ref output); 29256 } 29257 } 29258 #endif 29259 29260 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 29261 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] CalculateSize()29262 public int CalculateSize() { 29263 int size = 0; 29264 if (HasA) { 29265 size += 1 + pb::CodedOutputStream.ComputeStringSize(A); 29266 } 29267 if (_unknownFields != null) { 29268 size += _unknownFields.CalculateSize(); 29269 } 29270 return size; 29271 } 29272 29273 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 29274 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] MergeFrom(TestCommentInjectionMessage other)29275 public void MergeFrom(TestCommentInjectionMessage other) { 29276 if (other == null) { 29277 return; 29278 } 29279 if (other.HasA) { 29280 A = other.A; 29281 } 29282 _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); 29283 } 29284 29285 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 29286 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] MergeFrom(pb::CodedInputStream input)29287 public void MergeFrom(pb::CodedInputStream input) { 29288 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 29289 input.ReadRawMessage(this); 29290 #else 29291 uint tag; 29292 while ((tag = input.ReadTag()) != 0) { 29293 if ((tag & 7) == 4) { 29294 // Abort on any end group tag. 29295 return; 29296 } 29297 switch(tag) { 29298 default: 29299 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); 29300 break; 29301 case 10: { 29302 A = input.ReadString(); 29303 break; 29304 } 29305 } 29306 } 29307 #endif 29308 } 29309 29310 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 29311 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 29312 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] IBufferMessage.InternalMergeFrom(ref pb::ParseContext input)29313 void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { 29314 uint tag; 29315 while ((tag = input.ReadTag()) != 0) { 29316 if ((tag & 7) == 4) { 29317 // Abort on any end group tag. 29318 return; 29319 } 29320 switch(tag) { 29321 default: 29322 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); 29323 break; 29324 case 10: { 29325 A = input.ReadString(); 29326 break; 29327 } 29328 } 29329 } 29330 } 29331 #endif 29332 29333 } 29334 29335 /// <summary> 29336 /// Test that RPC services work. 29337 /// </summary> 29338 [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] 29339 public sealed partial class FooRequest : pb::IMessage<FooRequest> 29340 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 29341 , pb::IBufferMessage 29342 #endif 29343 { 29344 private static readonly pb::MessageParser<FooRequest> _parser = new pb::MessageParser<FooRequest>(() => new FooRequest()); 29345 private pb::UnknownFieldSet _unknownFields; 29346 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 29347 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 29348 public static pb::MessageParser<FooRequest> Parser { get { return _parser; } } 29349 29350 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 29351 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 29352 public static pbr::MessageDescriptor Descriptor { 29353 get { return global::Google.Protobuf.TestProtos.Proto2.UnittestReflection.Descriptor.MessageTypes[56]; } 29354 } 29355 29356 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 29357 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 29358 pbr::MessageDescriptor pb::IMessage.Descriptor { 29359 get { return Descriptor; } 29360 } 29361 29362 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 29363 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] FooRequest()29364 public FooRequest() { 29365 OnConstruction(); 29366 } 29367 OnConstruction()29368 partial void OnConstruction(); 29369 29370 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 29371 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] FooRequest(FooRequest other)29372 public FooRequest(FooRequest other) : this() { 29373 _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); 29374 } 29375 29376 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 29377 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] Clone()29378 public FooRequest Clone() { 29379 return new FooRequest(this); 29380 } 29381 29382 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 29383 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] Equals(object other)29384 public override bool Equals(object other) { 29385 return Equals(other as FooRequest); 29386 } 29387 29388 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 29389 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] Equals(FooRequest other)29390 public bool Equals(FooRequest other) { 29391 if (ReferenceEquals(other, null)) { 29392 return false; 29393 } 29394 if (ReferenceEquals(other, this)) { 29395 return true; 29396 } 29397 return Equals(_unknownFields, other._unknownFields); 29398 } 29399 29400 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 29401 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] GetHashCode()29402 public override int GetHashCode() { 29403 int hash = 1; 29404 if (_unknownFields != null) { 29405 hash ^= _unknownFields.GetHashCode(); 29406 } 29407 return hash; 29408 } 29409 29410 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 29411 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] ToString()29412 public override string ToString() { 29413 return pb::JsonFormatter.ToDiagnosticString(this); 29414 } 29415 29416 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 29417 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] WriteTo(pb::CodedOutputStream output)29418 public void WriteTo(pb::CodedOutputStream output) { 29419 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 29420 output.WriteRawMessage(this); 29421 #else 29422 if (_unknownFields != null) { 29423 _unknownFields.WriteTo(output); 29424 } 29425 #endif 29426 } 29427 29428 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 29429 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 29430 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] IBufferMessage.InternalWriteTo(ref pb::WriteContext output)29431 void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { 29432 if (_unknownFields != null) { 29433 _unknownFields.WriteTo(ref output); 29434 } 29435 } 29436 #endif 29437 29438 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 29439 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] CalculateSize()29440 public int CalculateSize() { 29441 int size = 0; 29442 if (_unknownFields != null) { 29443 size += _unknownFields.CalculateSize(); 29444 } 29445 return size; 29446 } 29447 29448 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 29449 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] MergeFrom(FooRequest other)29450 public void MergeFrom(FooRequest other) { 29451 if (other == null) { 29452 return; 29453 } 29454 _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); 29455 } 29456 29457 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 29458 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] MergeFrom(pb::CodedInputStream input)29459 public void MergeFrom(pb::CodedInputStream input) { 29460 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 29461 input.ReadRawMessage(this); 29462 #else 29463 uint tag; 29464 while ((tag = input.ReadTag()) != 0) { 29465 if ((tag & 7) == 4) { 29466 // Abort on any end group tag. 29467 return; 29468 } 29469 switch(tag) { 29470 default: 29471 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); 29472 break; 29473 } 29474 } 29475 #endif 29476 } 29477 29478 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 29479 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 29480 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] IBufferMessage.InternalMergeFrom(ref pb::ParseContext input)29481 void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { 29482 uint tag; 29483 while ((tag = input.ReadTag()) != 0) { 29484 if ((tag & 7) == 4) { 29485 // Abort on any end group tag. 29486 return; 29487 } 29488 switch(tag) { 29489 default: 29490 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); 29491 break; 29492 } 29493 } 29494 } 29495 #endif 29496 29497 } 29498 29499 [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] 29500 public sealed partial class FooResponse : pb::IMessage<FooResponse> 29501 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 29502 , pb::IBufferMessage 29503 #endif 29504 { 29505 private static readonly pb::MessageParser<FooResponse> _parser = new pb::MessageParser<FooResponse>(() => new FooResponse()); 29506 private pb::UnknownFieldSet _unknownFields; 29507 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 29508 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 29509 public static pb::MessageParser<FooResponse> Parser { get { return _parser; } } 29510 29511 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 29512 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 29513 public static pbr::MessageDescriptor Descriptor { 29514 get { return global::Google.Protobuf.TestProtos.Proto2.UnittestReflection.Descriptor.MessageTypes[57]; } 29515 } 29516 29517 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 29518 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 29519 pbr::MessageDescriptor pb::IMessage.Descriptor { 29520 get { return Descriptor; } 29521 } 29522 29523 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 29524 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] FooResponse()29525 public FooResponse() { 29526 OnConstruction(); 29527 } 29528 OnConstruction()29529 partial void OnConstruction(); 29530 29531 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 29532 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] FooResponse(FooResponse other)29533 public FooResponse(FooResponse other) : this() { 29534 _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); 29535 } 29536 29537 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 29538 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] Clone()29539 public FooResponse Clone() { 29540 return new FooResponse(this); 29541 } 29542 29543 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 29544 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] Equals(object other)29545 public override bool Equals(object other) { 29546 return Equals(other as FooResponse); 29547 } 29548 29549 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 29550 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] Equals(FooResponse other)29551 public bool Equals(FooResponse other) { 29552 if (ReferenceEquals(other, null)) { 29553 return false; 29554 } 29555 if (ReferenceEquals(other, this)) { 29556 return true; 29557 } 29558 return Equals(_unknownFields, other._unknownFields); 29559 } 29560 29561 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 29562 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] GetHashCode()29563 public override int GetHashCode() { 29564 int hash = 1; 29565 if (_unknownFields != null) { 29566 hash ^= _unknownFields.GetHashCode(); 29567 } 29568 return hash; 29569 } 29570 29571 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 29572 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] ToString()29573 public override string ToString() { 29574 return pb::JsonFormatter.ToDiagnosticString(this); 29575 } 29576 29577 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 29578 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] WriteTo(pb::CodedOutputStream output)29579 public void WriteTo(pb::CodedOutputStream output) { 29580 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 29581 output.WriteRawMessage(this); 29582 #else 29583 if (_unknownFields != null) { 29584 _unknownFields.WriteTo(output); 29585 } 29586 #endif 29587 } 29588 29589 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 29590 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 29591 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] IBufferMessage.InternalWriteTo(ref pb::WriteContext output)29592 void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { 29593 if (_unknownFields != null) { 29594 _unknownFields.WriteTo(ref output); 29595 } 29596 } 29597 #endif 29598 29599 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 29600 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] CalculateSize()29601 public int CalculateSize() { 29602 int size = 0; 29603 if (_unknownFields != null) { 29604 size += _unknownFields.CalculateSize(); 29605 } 29606 return size; 29607 } 29608 29609 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 29610 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] MergeFrom(FooResponse other)29611 public void MergeFrom(FooResponse other) { 29612 if (other == null) { 29613 return; 29614 } 29615 _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); 29616 } 29617 29618 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 29619 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] MergeFrom(pb::CodedInputStream input)29620 public void MergeFrom(pb::CodedInputStream input) { 29621 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 29622 input.ReadRawMessage(this); 29623 #else 29624 uint tag; 29625 while ((tag = input.ReadTag()) != 0) { 29626 if ((tag & 7) == 4) { 29627 // Abort on any end group tag. 29628 return; 29629 } 29630 switch(tag) { 29631 default: 29632 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); 29633 break; 29634 } 29635 } 29636 #endif 29637 } 29638 29639 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 29640 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 29641 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] IBufferMessage.InternalMergeFrom(ref pb::ParseContext input)29642 void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { 29643 uint tag; 29644 while ((tag = input.ReadTag()) != 0) { 29645 if ((tag & 7) == 4) { 29646 // Abort on any end group tag. 29647 return; 29648 } 29649 switch(tag) { 29650 default: 29651 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); 29652 break; 29653 } 29654 } 29655 } 29656 #endif 29657 29658 } 29659 29660 [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] 29661 public sealed partial class FooClientMessage : pb::IMessage<FooClientMessage> 29662 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 29663 , pb::IBufferMessage 29664 #endif 29665 { 29666 private static readonly pb::MessageParser<FooClientMessage> _parser = new pb::MessageParser<FooClientMessage>(() => new FooClientMessage()); 29667 private pb::UnknownFieldSet _unknownFields; 29668 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 29669 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 29670 public static pb::MessageParser<FooClientMessage> Parser { get { return _parser; } } 29671 29672 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 29673 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 29674 public static pbr::MessageDescriptor Descriptor { 29675 get { return global::Google.Protobuf.TestProtos.Proto2.UnittestReflection.Descriptor.MessageTypes[58]; } 29676 } 29677 29678 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 29679 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 29680 pbr::MessageDescriptor pb::IMessage.Descriptor { 29681 get { return Descriptor; } 29682 } 29683 29684 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 29685 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] FooClientMessage()29686 public FooClientMessage() { 29687 OnConstruction(); 29688 } 29689 OnConstruction()29690 partial void OnConstruction(); 29691 29692 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 29693 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] FooClientMessage(FooClientMessage other)29694 public FooClientMessage(FooClientMessage other) : this() { 29695 _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); 29696 } 29697 29698 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 29699 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] Clone()29700 public FooClientMessage Clone() { 29701 return new FooClientMessage(this); 29702 } 29703 29704 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 29705 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] Equals(object other)29706 public override bool Equals(object other) { 29707 return Equals(other as FooClientMessage); 29708 } 29709 29710 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 29711 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] Equals(FooClientMessage other)29712 public bool Equals(FooClientMessage other) { 29713 if (ReferenceEquals(other, null)) { 29714 return false; 29715 } 29716 if (ReferenceEquals(other, this)) { 29717 return true; 29718 } 29719 return Equals(_unknownFields, other._unknownFields); 29720 } 29721 29722 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 29723 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] GetHashCode()29724 public override int GetHashCode() { 29725 int hash = 1; 29726 if (_unknownFields != null) { 29727 hash ^= _unknownFields.GetHashCode(); 29728 } 29729 return hash; 29730 } 29731 29732 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 29733 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] ToString()29734 public override string ToString() { 29735 return pb::JsonFormatter.ToDiagnosticString(this); 29736 } 29737 29738 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 29739 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] WriteTo(pb::CodedOutputStream output)29740 public void WriteTo(pb::CodedOutputStream output) { 29741 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 29742 output.WriteRawMessage(this); 29743 #else 29744 if (_unknownFields != null) { 29745 _unknownFields.WriteTo(output); 29746 } 29747 #endif 29748 } 29749 29750 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 29751 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 29752 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] IBufferMessage.InternalWriteTo(ref pb::WriteContext output)29753 void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { 29754 if (_unknownFields != null) { 29755 _unknownFields.WriteTo(ref output); 29756 } 29757 } 29758 #endif 29759 29760 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 29761 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] CalculateSize()29762 public int CalculateSize() { 29763 int size = 0; 29764 if (_unknownFields != null) { 29765 size += _unknownFields.CalculateSize(); 29766 } 29767 return size; 29768 } 29769 29770 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 29771 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] MergeFrom(FooClientMessage other)29772 public void MergeFrom(FooClientMessage other) { 29773 if (other == null) { 29774 return; 29775 } 29776 _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); 29777 } 29778 29779 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 29780 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] MergeFrom(pb::CodedInputStream input)29781 public void MergeFrom(pb::CodedInputStream input) { 29782 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 29783 input.ReadRawMessage(this); 29784 #else 29785 uint tag; 29786 while ((tag = input.ReadTag()) != 0) { 29787 if ((tag & 7) == 4) { 29788 // Abort on any end group tag. 29789 return; 29790 } 29791 switch(tag) { 29792 default: 29793 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); 29794 break; 29795 } 29796 } 29797 #endif 29798 } 29799 29800 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 29801 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 29802 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] IBufferMessage.InternalMergeFrom(ref pb::ParseContext input)29803 void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { 29804 uint tag; 29805 while ((tag = input.ReadTag()) != 0) { 29806 if ((tag & 7) == 4) { 29807 // Abort on any end group tag. 29808 return; 29809 } 29810 switch(tag) { 29811 default: 29812 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); 29813 break; 29814 } 29815 } 29816 } 29817 #endif 29818 29819 } 29820 29821 [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] 29822 public sealed partial class FooServerMessage : pb::IMessage<FooServerMessage> 29823 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 29824 , pb::IBufferMessage 29825 #endif 29826 { 29827 private static readonly pb::MessageParser<FooServerMessage> _parser = new pb::MessageParser<FooServerMessage>(() => new FooServerMessage()); 29828 private pb::UnknownFieldSet _unknownFields; 29829 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 29830 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 29831 public static pb::MessageParser<FooServerMessage> Parser { get { return _parser; } } 29832 29833 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 29834 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 29835 public static pbr::MessageDescriptor Descriptor { 29836 get { return global::Google.Protobuf.TestProtos.Proto2.UnittestReflection.Descriptor.MessageTypes[59]; } 29837 } 29838 29839 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 29840 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 29841 pbr::MessageDescriptor pb::IMessage.Descriptor { 29842 get { return Descriptor; } 29843 } 29844 29845 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 29846 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] FooServerMessage()29847 public FooServerMessage() { 29848 OnConstruction(); 29849 } 29850 OnConstruction()29851 partial void OnConstruction(); 29852 29853 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 29854 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] FooServerMessage(FooServerMessage other)29855 public FooServerMessage(FooServerMessage other) : this() { 29856 _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); 29857 } 29858 29859 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 29860 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] Clone()29861 public FooServerMessage Clone() { 29862 return new FooServerMessage(this); 29863 } 29864 29865 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 29866 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] Equals(object other)29867 public override bool Equals(object other) { 29868 return Equals(other as FooServerMessage); 29869 } 29870 29871 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 29872 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] Equals(FooServerMessage other)29873 public bool Equals(FooServerMessage other) { 29874 if (ReferenceEquals(other, null)) { 29875 return false; 29876 } 29877 if (ReferenceEquals(other, this)) { 29878 return true; 29879 } 29880 return Equals(_unknownFields, other._unknownFields); 29881 } 29882 29883 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 29884 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] GetHashCode()29885 public override int GetHashCode() { 29886 int hash = 1; 29887 if (_unknownFields != null) { 29888 hash ^= _unknownFields.GetHashCode(); 29889 } 29890 return hash; 29891 } 29892 29893 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 29894 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] ToString()29895 public override string ToString() { 29896 return pb::JsonFormatter.ToDiagnosticString(this); 29897 } 29898 29899 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 29900 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] WriteTo(pb::CodedOutputStream output)29901 public void WriteTo(pb::CodedOutputStream output) { 29902 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 29903 output.WriteRawMessage(this); 29904 #else 29905 if (_unknownFields != null) { 29906 _unknownFields.WriteTo(output); 29907 } 29908 #endif 29909 } 29910 29911 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 29912 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 29913 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] IBufferMessage.InternalWriteTo(ref pb::WriteContext output)29914 void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { 29915 if (_unknownFields != null) { 29916 _unknownFields.WriteTo(ref output); 29917 } 29918 } 29919 #endif 29920 29921 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 29922 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] CalculateSize()29923 public int CalculateSize() { 29924 int size = 0; 29925 if (_unknownFields != null) { 29926 size += _unknownFields.CalculateSize(); 29927 } 29928 return size; 29929 } 29930 29931 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 29932 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] MergeFrom(FooServerMessage other)29933 public void MergeFrom(FooServerMessage other) { 29934 if (other == null) { 29935 return; 29936 } 29937 _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); 29938 } 29939 29940 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 29941 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] MergeFrom(pb::CodedInputStream input)29942 public void MergeFrom(pb::CodedInputStream input) { 29943 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 29944 input.ReadRawMessage(this); 29945 #else 29946 uint tag; 29947 while ((tag = input.ReadTag()) != 0) { 29948 if ((tag & 7) == 4) { 29949 // Abort on any end group tag. 29950 return; 29951 } 29952 switch(tag) { 29953 default: 29954 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); 29955 break; 29956 } 29957 } 29958 #endif 29959 } 29960 29961 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 29962 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 29963 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] IBufferMessage.InternalMergeFrom(ref pb::ParseContext input)29964 void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { 29965 uint tag; 29966 while ((tag = input.ReadTag()) != 0) { 29967 if ((tag & 7) == 4) { 29968 // Abort on any end group tag. 29969 return; 29970 } 29971 switch(tag) { 29972 default: 29973 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); 29974 break; 29975 } 29976 } 29977 } 29978 #endif 29979 29980 } 29981 29982 [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] 29983 public sealed partial class BarRequest : pb::IMessage<BarRequest> 29984 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 29985 , pb::IBufferMessage 29986 #endif 29987 { 29988 private static readonly pb::MessageParser<BarRequest> _parser = new pb::MessageParser<BarRequest>(() => new BarRequest()); 29989 private pb::UnknownFieldSet _unknownFields; 29990 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 29991 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 29992 public static pb::MessageParser<BarRequest> Parser { get { return _parser; } } 29993 29994 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 29995 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 29996 public static pbr::MessageDescriptor Descriptor { 29997 get { return global::Google.Protobuf.TestProtos.Proto2.UnittestReflection.Descriptor.MessageTypes[60]; } 29998 } 29999 30000 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 30001 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 30002 pbr::MessageDescriptor pb::IMessage.Descriptor { 30003 get { return Descriptor; } 30004 } 30005 30006 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 30007 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] BarRequest()30008 public BarRequest() { 30009 OnConstruction(); 30010 } 30011 OnConstruction()30012 partial void OnConstruction(); 30013 30014 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 30015 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] BarRequest(BarRequest other)30016 public BarRequest(BarRequest other) : this() { 30017 _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); 30018 } 30019 30020 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 30021 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] Clone()30022 public BarRequest Clone() { 30023 return new BarRequest(this); 30024 } 30025 30026 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 30027 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] Equals(object other)30028 public override bool Equals(object other) { 30029 return Equals(other as BarRequest); 30030 } 30031 30032 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 30033 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] Equals(BarRequest other)30034 public bool Equals(BarRequest other) { 30035 if (ReferenceEquals(other, null)) { 30036 return false; 30037 } 30038 if (ReferenceEquals(other, this)) { 30039 return true; 30040 } 30041 return Equals(_unknownFields, other._unknownFields); 30042 } 30043 30044 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 30045 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] GetHashCode()30046 public override int GetHashCode() { 30047 int hash = 1; 30048 if (_unknownFields != null) { 30049 hash ^= _unknownFields.GetHashCode(); 30050 } 30051 return hash; 30052 } 30053 30054 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 30055 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] ToString()30056 public override string ToString() { 30057 return pb::JsonFormatter.ToDiagnosticString(this); 30058 } 30059 30060 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 30061 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] WriteTo(pb::CodedOutputStream output)30062 public void WriteTo(pb::CodedOutputStream output) { 30063 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 30064 output.WriteRawMessage(this); 30065 #else 30066 if (_unknownFields != null) { 30067 _unknownFields.WriteTo(output); 30068 } 30069 #endif 30070 } 30071 30072 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 30073 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 30074 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] IBufferMessage.InternalWriteTo(ref pb::WriteContext output)30075 void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { 30076 if (_unknownFields != null) { 30077 _unknownFields.WriteTo(ref output); 30078 } 30079 } 30080 #endif 30081 30082 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 30083 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] CalculateSize()30084 public int CalculateSize() { 30085 int size = 0; 30086 if (_unknownFields != null) { 30087 size += _unknownFields.CalculateSize(); 30088 } 30089 return size; 30090 } 30091 30092 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 30093 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] MergeFrom(BarRequest other)30094 public void MergeFrom(BarRequest other) { 30095 if (other == null) { 30096 return; 30097 } 30098 _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); 30099 } 30100 30101 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 30102 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] MergeFrom(pb::CodedInputStream input)30103 public void MergeFrom(pb::CodedInputStream input) { 30104 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 30105 input.ReadRawMessage(this); 30106 #else 30107 uint tag; 30108 while ((tag = input.ReadTag()) != 0) { 30109 if ((tag & 7) == 4) { 30110 // Abort on any end group tag. 30111 return; 30112 } 30113 switch(tag) { 30114 default: 30115 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); 30116 break; 30117 } 30118 } 30119 #endif 30120 } 30121 30122 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 30123 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 30124 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] IBufferMessage.InternalMergeFrom(ref pb::ParseContext input)30125 void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { 30126 uint tag; 30127 while ((tag = input.ReadTag()) != 0) { 30128 if ((tag & 7) == 4) { 30129 // Abort on any end group tag. 30130 return; 30131 } 30132 switch(tag) { 30133 default: 30134 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); 30135 break; 30136 } 30137 } 30138 } 30139 #endif 30140 30141 } 30142 30143 [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] 30144 public sealed partial class BarResponse : pb::IMessage<BarResponse> 30145 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 30146 , pb::IBufferMessage 30147 #endif 30148 { 30149 private static readonly pb::MessageParser<BarResponse> _parser = new pb::MessageParser<BarResponse>(() => new BarResponse()); 30150 private pb::UnknownFieldSet _unknownFields; 30151 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 30152 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 30153 public static pb::MessageParser<BarResponse> Parser { get { return _parser; } } 30154 30155 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 30156 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 30157 public static pbr::MessageDescriptor Descriptor { 30158 get { return global::Google.Protobuf.TestProtos.Proto2.UnittestReflection.Descriptor.MessageTypes[61]; } 30159 } 30160 30161 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 30162 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 30163 pbr::MessageDescriptor pb::IMessage.Descriptor { 30164 get { return Descriptor; } 30165 } 30166 30167 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 30168 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] BarResponse()30169 public BarResponse() { 30170 OnConstruction(); 30171 } 30172 OnConstruction()30173 partial void OnConstruction(); 30174 30175 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 30176 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] BarResponse(BarResponse other)30177 public BarResponse(BarResponse other) : this() { 30178 _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); 30179 } 30180 30181 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 30182 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] Clone()30183 public BarResponse Clone() { 30184 return new BarResponse(this); 30185 } 30186 30187 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 30188 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] Equals(object other)30189 public override bool Equals(object other) { 30190 return Equals(other as BarResponse); 30191 } 30192 30193 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 30194 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] Equals(BarResponse other)30195 public bool Equals(BarResponse other) { 30196 if (ReferenceEquals(other, null)) { 30197 return false; 30198 } 30199 if (ReferenceEquals(other, this)) { 30200 return true; 30201 } 30202 return Equals(_unknownFields, other._unknownFields); 30203 } 30204 30205 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 30206 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] GetHashCode()30207 public override int GetHashCode() { 30208 int hash = 1; 30209 if (_unknownFields != null) { 30210 hash ^= _unknownFields.GetHashCode(); 30211 } 30212 return hash; 30213 } 30214 30215 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 30216 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] ToString()30217 public override string ToString() { 30218 return pb::JsonFormatter.ToDiagnosticString(this); 30219 } 30220 30221 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 30222 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] WriteTo(pb::CodedOutputStream output)30223 public void WriteTo(pb::CodedOutputStream output) { 30224 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 30225 output.WriteRawMessage(this); 30226 #else 30227 if (_unknownFields != null) { 30228 _unknownFields.WriteTo(output); 30229 } 30230 #endif 30231 } 30232 30233 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 30234 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 30235 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] IBufferMessage.InternalWriteTo(ref pb::WriteContext output)30236 void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { 30237 if (_unknownFields != null) { 30238 _unknownFields.WriteTo(ref output); 30239 } 30240 } 30241 #endif 30242 30243 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 30244 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] CalculateSize()30245 public int CalculateSize() { 30246 int size = 0; 30247 if (_unknownFields != null) { 30248 size += _unknownFields.CalculateSize(); 30249 } 30250 return size; 30251 } 30252 30253 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 30254 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] MergeFrom(BarResponse other)30255 public void MergeFrom(BarResponse other) { 30256 if (other == null) { 30257 return; 30258 } 30259 _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); 30260 } 30261 30262 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 30263 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] MergeFrom(pb::CodedInputStream input)30264 public void MergeFrom(pb::CodedInputStream input) { 30265 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 30266 input.ReadRawMessage(this); 30267 #else 30268 uint tag; 30269 while ((tag = input.ReadTag()) != 0) { 30270 if ((tag & 7) == 4) { 30271 // Abort on any end group tag. 30272 return; 30273 } 30274 switch(tag) { 30275 default: 30276 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); 30277 break; 30278 } 30279 } 30280 #endif 30281 } 30282 30283 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 30284 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 30285 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] IBufferMessage.InternalMergeFrom(ref pb::ParseContext input)30286 void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { 30287 uint tag; 30288 while ((tag = input.ReadTag()) != 0) { 30289 if ((tag & 7) == 4) { 30290 // Abort on any end group tag. 30291 return; 30292 } 30293 switch(tag) { 30294 default: 30295 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); 30296 break; 30297 } 30298 } 30299 } 30300 #endif 30301 30302 } 30303 30304 [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] 30305 public sealed partial class TestJsonName : pb::IMessage<TestJsonName> 30306 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 30307 , pb::IBufferMessage 30308 #endif 30309 { 30310 private static readonly pb::MessageParser<TestJsonName> _parser = new pb::MessageParser<TestJsonName>(() => new TestJsonName()); 30311 private pb::UnknownFieldSet _unknownFields; 30312 private int _hasBits0; 30313 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 30314 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 30315 public static pb::MessageParser<TestJsonName> Parser { get { return _parser; } } 30316 30317 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 30318 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 30319 public static pbr::MessageDescriptor Descriptor { 30320 get { return global::Google.Protobuf.TestProtos.Proto2.UnittestReflection.Descriptor.MessageTypes[62]; } 30321 } 30322 30323 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 30324 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 30325 pbr::MessageDescriptor pb::IMessage.Descriptor { 30326 get { return Descriptor; } 30327 } 30328 30329 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 30330 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] TestJsonName()30331 public TestJsonName() { 30332 OnConstruction(); 30333 } 30334 OnConstruction()30335 partial void OnConstruction(); 30336 30337 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 30338 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] TestJsonName(TestJsonName other)30339 public TestJsonName(TestJsonName other) : this() { 30340 _hasBits0 = other._hasBits0; 30341 fieldName1_ = other.fieldName1_; 30342 fieldName2_ = other.fieldName2_; 30343 fieldName3_ = other.fieldName3_; 30344 FieldName4_ = other.FieldName4_; 30345 fIELDNAME5_ = other.fIELDNAME5_; 30346 fieldName6_ = other.fieldName6_; 30347 _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); 30348 } 30349 30350 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 30351 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] Clone()30352 public TestJsonName Clone() { 30353 return new TestJsonName(this); 30354 } 30355 30356 /// <summary>Field number for the "field_name1" field.</summary> 30357 public const int FieldName1FieldNumber = 1; 30358 private readonly static int FieldName1DefaultValue = 0; 30359 30360 private int fieldName1_; 30361 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 30362 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 30363 public int FieldName1 { 30364 get { if ((_hasBits0 & 1) != 0) { return fieldName1_; } else { return FieldName1DefaultValue; } } 30365 set { 30366 _hasBits0 |= 1; 30367 fieldName1_ = value; 30368 } 30369 } 30370 /// <summary>Gets whether the "field_name1" field is set</summary> 30371 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 30372 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 30373 public bool HasFieldName1 { 30374 get { return (_hasBits0 & 1) != 0; } 30375 } 30376 /// <summary>Clears the value of the "field_name1" field</summary> 30377 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 30378 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] ClearFieldName1()30379 public void ClearFieldName1() { 30380 _hasBits0 &= ~1; 30381 } 30382 30383 /// <summary>Field number for the "fieldName2" field.</summary> 30384 public const int FieldName2FieldNumber = 2; 30385 private readonly static int FieldName2DefaultValue = 0; 30386 30387 private int fieldName2_; 30388 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 30389 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 30390 public int FieldName2 { 30391 get { if ((_hasBits0 & 2) != 0) { return fieldName2_; } else { return FieldName2DefaultValue; } } 30392 set { 30393 _hasBits0 |= 2; 30394 fieldName2_ = value; 30395 } 30396 } 30397 /// <summary>Gets whether the "fieldName2" field is set</summary> 30398 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 30399 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 30400 public bool HasFieldName2 { 30401 get { return (_hasBits0 & 2) != 0; } 30402 } 30403 /// <summary>Clears the value of the "fieldName2" field</summary> 30404 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 30405 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] ClearFieldName2()30406 public void ClearFieldName2() { 30407 _hasBits0 &= ~2; 30408 } 30409 30410 /// <summary>Field number for the "FieldName3" field.</summary> 30411 public const int FieldName3FieldNumber = 3; 30412 private readonly static int FieldName3DefaultValue = 0; 30413 30414 private int fieldName3_; 30415 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 30416 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 30417 public int FieldName3 { 30418 get { if ((_hasBits0 & 4) != 0) { return fieldName3_; } else { return FieldName3DefaultValue; } } 30419 set { 30420 _hasBits0 |= 4; 30421 fieldName3_ = value; 30422 } 30423 } 30424 /// <summary>Gets whether the "FieldName3" field is set</summary> 30425 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 30426 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 30427 public bool HasFieldName3 { 30428 get { return (_hasBits0 & 4) != 0; } 30429 } 30430 /// <summary>Clears the value of the "FieldName3" field</summary> 30431 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 30432 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] ClearFieldName3()30433 public void ClearFieldName3() { 30434 _hasBits0 &= ~4; 30435 } 30436 30437 /// <summary>Field number for the "_field_name4" field.</summary> 30438 public const int FieldName4FieldNumber = 4; 30439 private readonly static int FieldName4DefaultValue = 0; 30440 30441 private int FieldName4_; 30442 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 30443 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 30444 public int FieldName4 { 30445 get { if ((_hasBits0 & 8) != 0) { return FieldName4_; } else { return FieldName4DefaultValue; } } 30446 set { 30447 _hasBits0 |= 8; 30448 FieldName4_ = value; 30449 } 30450 } 30451 /// <summary>Gets whether the "_field_name4" field is set</summary> 30452 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 30453 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 30454 public bool HasFieldName4 { 30455 get { return (_hasBits0 & 8) != 0; } 30456 } 30457 /// <summary>Clears the value of the "_field_name4" field</summary> 30458 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 30459 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] ClearFieldName4()30460 public void ClearFieldName4() { 30461 _hasBits0 &= ~8; 30462 } 30463 30464 /// <summary>Field number for the "FIELD_NAME5" field.</summary> 30465 public const int FIELDNAME5FieldNumber = 5; 30466 private readonly static int FIELDNAME5DefaultValue = 0; 30467 30468 private int fIELDNAME5_; 30469 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 30470 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 30471 public int FIELDNAME5 { 30472 get { if ((_hasBits0 & 16) != 0) { return fIELDNAME5_; } else { return FIELDNAME5DefaultValue; } } 30473 set { 30474 _hasBits0 |= 16; 30475 fIELDNAME5_ = value; 30476 } 30477 } 30478 /// <summary>Gets whether the "FIELD_NAME5" field is set</summary> 30479 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 30480 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 30481 public bool HasFIELDNAME5 { 30482 get { return (_hasBits0 & 16) != 0; } 30483 } 30484 /// <summary>Clears the value of the "FIELD_NAME5" field</summary> 30485 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 30486 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] ClearFIELDNAME5()30487 public void ClearFIELDNAME5() { 30488 _hasBits0 &= ~16; 30489 } 30490 30491 /// <summary>Field number for the "field_name6" field.</summary> 30492 public const int FieldName6FieldNumber = 6; 30493 private readonly static int FieldName6DefaultValue = 0; 30494 30495 private int fieldName6_; 30496 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 30497 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 30498 public int FieldName6 { 30499 get { if ((_hasBits0 & 32) != 0) { return fieldName6_; } else { return FieldName6DefaultValue; } } 30500 set { 30501 _hasBits0 |= 32; 30502 fieldName6_ = value; 30503 } 30504 } 30505 /// <summary>Gets whether the "field_name6" field is set</summary> 30506 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 30507 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 30508 public bool HasFieldName6 { 30509 get { return (_hasBits0 & 32) != 0; } 30510 } 30511 /// <summary>Clears the value of the "field_name6" field</summary> 30512 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 30513 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] ClearFieldName6()30514 public void ClearFieldName6() { 30515 _hasBits0 &= ~32; 30516 } 30517 30518 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 30519 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] Equals(object other)30520 public override bool Equals(object other) { 30521 return Equals(other as TestJsonName); 30522 } 30523 30524 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 30525 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] Equals(TestJsonName other)30526 public bool Equals(TestJsonName other) { 30527 if (ReferenceEquals(other, null)) { 30528 return false; 30529 } 30530 if (ReferenceEquals(other, this)) { 30531 return true; 30532 } 30533 if (FieldName1 != other.FieldName1) return false; 30534 if (FieldName2 != other.FieldName2) return false; 30535 if (FieldName3 != other.FieldName3) return false; 30536 if (FieldName4 != other.FieldName4) return false; 30537 if (FIELDNAME5 != other.FIELDNAME5) return false; 30538 if (FieldName6 != other.FieldName6) return false; 30539 return Equals(_unknownFields, other._unknownFields); 30540 } 30541 30542 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 30543 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] GetHashCode()30544 public override int GetHashCode() { 30545 int hash = 1; 30546 if (HasFieldName1) hash ^= FieldName1.GetHashCode(); 30547 if (HasFieldName2) hash ^= FieldName2.GetHashCode(); 30548 if (HasFieldName3) hash ^= FieldName3.GetHashCode(); 30549 if (HasFieldName4) hash ^= FieldName4.GetHashCode(); 30550 if (HasFIELDNAME5) hash ^= FIELDNAME5.GetHashCode(); 30551 if (HasFieldName6) hash ^= FieldName6.GetHashCode(); 30552 if (_unknownFields != null) { 30553 hash ^= _unknownFields.GetHashCode(); 30554 } 30555 return hash; 30556 } 30557 30558 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 30559 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] ToString()30560 public override string ToString() { 30561 return pb::JsonFormatter.ToDiagnosticString(this); 30562 } 30563 30564 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 30565 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] WriteTo(pb::CodedOutputStream output)30566 public void WriteTo(pb::CodedOutputStream output) { 30567 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 30568 output.WriteRawMessage(this); 30569 #else 30570 if (HasFieldName1) { 30571 output.WriteRawTag(8); 30572 output.WriteInt32(FieldName1); 30573 } 30574 if (HasFieldName2) { 30575 output.WriteRawTag(16); 30576 output.WriteInt32(FieldName2); 30577 } 30578 if (HasFieldName3) { 30579 output.WriteRawTag(24); 30580 output.WriteInt32(FieldName3); 30581 } 30582 if (HasFieldName4) { 30583 output.WriteRawTag(32); 30584 output.WriteInt32(FieldName4); 30585 } 30586 if (HasFIELDNAME5) { 30587 output.WriteRawTag(40); 30588 output.WriteInt32(FIELDNAME5); 30589 } 30590 if (HasFieldName6) { 30591 output.WriteRawTag(48); 30592 output.WriteInt32(FieldName6); 30593 } 30594 if (_unknownFields != null) { 30595 _unknownFields.WriteTo(output); 30596 } 30597 #endif 30598 } 30599 30600 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 30601 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 30602 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] IBufferMessage.InternalWriteTo(ref pb::WriteContext output)30603 void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { 30604 if (HasFieldName1) { 30605 output.WriteRawTag(8); 30606 output.WriteInt32(FieldName1); 30607 } 30608 if (HasFieldName2) { 30609 output.WriteRawTag(16); 30610 output.WriteInt32(FieldName2); 30611 } 30612 if (HasFieldName3) { 30613 output.WriteRawTag(24); 30614 output.WriteInt32(FieldName3); 30615 } 30616 if (HasFieldName4) { 30617 output.WriteRawTag(32); 30618 output.WriteInt32(FieldName4); 30619 } 30620 if (HasFIELDNAME5) { 30621 output.WriteRawTag(40); 30622 output.WriteInt32(FIELDNAME5); 30623 } 30624 if (HasFieldName6) { 30625 output.WriteRawTag(48); 30626 output.WriteInt32(FieldName6); 30627 } 30628 if (_unknownFields != null) { 30629 _unknownFields.WriteTo(ref output); 30630 } 30631 } 30632 #endif 30633 30634 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 30635 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] CalculateSize()30636 public int CalculateSize() { 30637 int size = 0; 30638 if (HasFieldName1) { 30639 size += 1 + pb::CodedOutputStream.ComputeInt32Size(FieldName1); 30640 } 30641 if (HasFieldName2) { 30642 size += 1 + pb::CodedOutputStream.ComputeInt32Size(FieldName2); 30643 } 30644 if (HasFieldName3) { 30645 size += 1 + pb::CodedOutputStream.ComputeInt32Size(FieldName3); 30646 } 30647 if (HasFieldName4) { 30648 size += 1 + pb::CodedOutputStream.ComputeInt32Size(FieldName4); 30649 } 30650 if (HasFIELDNAME5) { 30651 size += 1 + pb::CodedOutputStream.ComputeInt32Size(FIELDNAME5); 30652 } 30653 if (HasFieldName6) { 30654 size += 1 + pb::CodedOutputStream.ComputeInt32Size(FieldName6); 30655 } 30656 if (_unknownFields != null) { 30657 size += _unknownFields.CalculateSize(); 30658 } 30659 return size; 30660 } 30661 30662 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 30663 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] MergeFrom(TestJsonName other)30664 public void MergeFrom(TestJsonName other) { 30665 if (other == null) { 30666 return; 30667 } 30668 if (other.HasFieldName1) { 30669 FieldName1 = other.FieldName1; 30670 } 30671 if (other.HasFieldName2) { 30672 FieldName2 = other.FieldName2; 30673 } 30674 if (other.HasFieldName3) { 30675 FieldName3 = other.FieldName3; 30676 } 30677 if (other.HasFieldName4) { 30678 FieldName4 = other.FieldName4; 30679 } 30680 if (other.HasFIELDNAME5) { 30681 FIELDNAME5 = other.FIELDNAME5; 30682 } 30683 if (other.HasFieldName6) { 30684 FieldName6 = other.FieldName6; 30685 } 30686 _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); 30687 } 30688 30689 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 30690 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] MergeFrom(pb::CodedInputStream input)30691 public void MergeFrom(pb::CodedInputStream input) { 30692 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 30693 input.ReadRawMessage(this); 30694 #else 30695 uint tag; 30696 while ((tag = input.ReadTag()) != 0) { 30697 if ((tag & 7) == 4) { 30698 // Abort on any end group tag. 30699 return; 30700 } 30701 switch(tag) { 30702 default: 30703 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); 30704 break; 30705 case 8: { 30706 FieldName1 = input.ReadInt32(); 30707 break; 30708 } 30709 case 16: { 30710 FieldName2 = input.ReadInt32(); 30711 break; 30712 } 30713 case 24: { 30714 FieldName3 = input.ReadInt32(); 30715 break; 30716 } 30717 case 32: { 30718 FieldName4 = input.ReadInt32(); 30719 break; 30720 } 30721 case 40: { 30722 FIELDNAME5 = input.ReadInt32(); 30723 break; 30724 } 30725 case 48: { 30726 FieldName6 = input.ReadInt32(); 30727 break; 30728 } 30729 } 30730 } 30731 #endif 30732 } 30733 30734 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 30735 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 30736 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] IBufferMessage.InternalMergeFrom(ref pb::ParseContext input)30737 void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { 30738 uint tag; 30739 while ((tag = input.ReadTag()) != 0) { 30740 if ((tag & 7) == 4) { 30741 // Abort on any end group tag. 30742 return; 30743 } 30744 switch(tag) { 30745 default: 30746 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); 30747 break; 30748 case 8: { 30749 FieldName1 = input.ReadInt32(); 30750 break; 30751 } 30752 case 16: { 30753 FieldName2 = input.ReadInt32(); 30754 break; 30755 } 30756 case 24: { 30757 FieldName3 = input.ReadInt32(); 30758 break; 30759 } 30760 case 32: { 30761 FieldName4 = input.ReadInt32(); 30762 break; 30763 } 30764 case 40: { 30765 FIELDNAME5 = input.ReadInt32(); 30766 break; 30767 } 30768 case 48: { 30769 FieldName6 = input.ReadInt32(); 30770 break; 30771 } 30772 } 30773 } 30774 } 30775 #endif 30776 30777 } 30778 30779 [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] 30780 public sealed partial class TestHugeFieldNumbers : pb::IExtendableMessage<TestHugeFieldNumbers> 30781 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 30782 , pb::IBufferMessage 30783 #endif 30784 { 30785 private static readonly pb::MessageParser<TestHugeFieldNumbers> _parser = new pb::MessageParser<TestHugeFieldNumbers>(() => new TestHugeFieldNumbers()); 30786 private pb::UnknownFieldSet _unknownFields; 30787 private pb::ExtensionSet<TestHugeFieldNumbers> _extensions; 30788 private pb::ExtensionSet<TestHugeFieldNumbers> _Extensions { get { return _extensions; } } 30789 private int _hasBits0; 30790 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 30791 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 30792 public static pb::MessageParser<TestHugeFieldNumbers> Parser { get { return _parser; } } 30793 30794 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 30795 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 30796 public static pbr::MessageDescriptor Descriptor { 30797 get { return global::Google.Protobuf.TestProtos.Proto2.UnittestReflection.Descriptor.MessageTypes[63]; } 30798 } 30799 30800 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 30801 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 30802 pbr::MessageDescriptor pb::IMessage.Descriptor { 30803 get { return Descriptor; } 30804 } 30805 30806 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 30807 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] TestHugeFieldNumbers()30808 public TestHugeFieldNumbers() { 30809 OnConstruction(); 30810 } 30811 OnConstruction()30812 partial void OnConstruction(); 30813 30814 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 30815 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] TestHugeFieldNumbers(TestHugeFieldNumbers other)30816 public TestHugeFieldNumbers(TestHugeFieldNumbers other) : this() { 30817 _hasBits0 = other._hasBits0; 30818 optionalInt32_ = other.optionalInt32_; 30819 fixed32_ = other.fixed32_; 30820 repeatedInt32_ = other.repeatedInt32_.Clone(); 30821 packedInt32_ = other.packedInt32_.Clone(); 30822 optionalEnum_ = other.optionalEnum_; 30823 optionalString_ = other.optionalString_; 30824 optionalBytes_ = other.optionalBytes_; 30825 optionalMessage_ = other.optionalMessage_ != null ? other.optionalMessage_.Clone() : null; 30826 optionalGroup_ = other.HasOptionalGroup ? other.optionalGroup_.Clone() : null; 30827 stringStringMap_ = other.stringStringMap_.Clone(); 30828 switch (other.OneofFieldCase) { 30829 case OneofFieldOneofCase.OneofUint32: 30830 OneofUint32 = other.OneofUint32; 30831 break; 30832 case OneofFieldOneofCase.OneofTestAllTypes: 30833 OneofTestAllTypes = other.OneofTestAllTypes.Clone(); 30834 break; 30835 case OneofFieldOneofCase.OneofString: 30836 OneofString = other.OneofString; 30837 break; 30838 case OneofFieldOneofCase.OneofBytes: 30839 OneofBytes = other.OneofBytes; 30840 break; 30841 } 30842 30843 _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); 30844 _extensions = pb::ExtensionSet.Clone(other._extensions); 30845 } 30846 30847 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 30848 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] Clone()30849 public TestHugeFieldNumbers Clone() { 30850 return new TestHugeFieldNumbers(this); 30851 } 30852 30853 /// <summary>Field number for the "optional_int32" field.</summary> 30854 public const int OptionalInt32FieldNumber = 536870000; 30855 private readonly static int OptionalInt32DefaultValue = 0; 30856 30857 private int optionalInt32_; 30858 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 30859 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 30860 public int OptionalInt32 { 30861 get { if ((_hasBits0 & 1) != 0) { return optionalInt32_; } else { return OptionalInt32DefaultValue; } } 30862 set { 30863 _hasBits0 |= 1; 30864 optionalInt32_ = value; 30865 } 30866 } 30867 /// <summary>Gets whether the "optional_int32" field is set</summary> 30868 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 30869 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 30870 public bool HasOptionalInt32 { 30871 get { return (_hasBits0 & 1) != 0; } 30872 } 30873 /// <summary>Clears the value of the "optional_int32" field</summary> 30874 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 30875 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] ClearOptionalInt32()30876 public void ClearOptionalInt32() { 30877 _hasBits0 &= ~1; 30878 } 30879 30880 /// <summary>Field number for the "fixed_32" field.</summary> 30881 public const int Fixed32FieldNumber = 536870001; 30882 private readonly static int Fixed32DefaultValue = 0; 30883 30884 private int fixed32_; 30885 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 30886 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 30887 public int Fixed32 { 30888 get { if ((_hasBits0 & 2) != 0) { return fixed32_; } else { return Fixed32DefaultValue; } } 30889 set { 30890 _hasBits0 |= 2; 30891 fixed32_ = value; 30892 } 30893 } 30894 /// <summary>Gets whether the "fixed_32" field is set</summary> 30895 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 30896 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 30897 public bool HasFixed32 { 30898 get { return (_hasBits0 & 2) != 0; } 30899 } 30900 /// <summary>Clears the value of the "fixed_32" field</summary> 30901 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 30902 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] ClearFixed32()30903 public void ClearFixed32() { 30904 _hasBits0 &= ~2; 30905 } 30906 30907 /// <summary>Field number for the "repeated_int32" field.</summary> 30908 public const int RepeatedInt32FieldNumber = 536870002; 30909 private static readonly pb::FieldCodec<int> _repeated_repeatedInt32_codec 30910 = pb::FieldCodec.ForInt32(4294960016); 30911 private readonly pbc::RepeatedField<int> repeatedInt32_ = new pbc::RepeatedField<int>(); 30912 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 30913 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 30914 public pbc::RepeatedField<int> RepeatedInt32 { 30915 get { return repeatedInt32_; } 30916 } 30917 30918 /// <summary>Field number for the "packed_int32" field.</summary> 30919 public const int PackedInt32FieldNumber = 536870003; 30920 private static readonly pb::FieldCodec<int> _repeated_packedInt32_codec 30921 = pb::FieldCodec.ForInt32(4294960026); 30922 private readonly pbc::RepeatedField<int> packedInt32_ = new pbc::RepeatedField<int>(); 30923 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 30924 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 30925 public pbc::RepeatedField<int> PackedInt32 { 30926 get { return packedInt32_; } 30927 } 30928 30929 /// <summary>Field number for the "optional_enum" field.</summary> 30930 public const int OptionalEnumFieldNumber = 536870004; 30931 private readonly static global::Google.Protobuf.TestProtos.Proto2.ForeignEnum OptionalEnumDefaultValue = global::Google.Protobuf.TestProtos.Proto2.ForeignEnum.ForeignFoo; 30932 30933 private global::Google.Protobuf.TestProtos.Proto2.ForeignEnum optionalEnum_; 30934 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 30935 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 30936 public global::Google.Protobuf.TestProtos.Proto2.ForeignEnum OptionalEnum { 30937 get { if ((_hasBits0 & 4) != 0) { return optionalEnum_; } else { return OptionalEnumDefaultValue; } } 30938 set { 30939 _hasBits0 |= 4; 30940 optionalEnum_ = value; 30941 } 30942 } 30943 /// <summary>Gets whether the "optional_enum" field is set</summary> 30944 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 30945 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 30946 public bool HasOptionalEnum { 30947 get { return (_hasBits0 & 4) != 0; } 30948 } 30949 /// <summary>Clears the value of the "optional_enum" field</summary> 30950 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 30951 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] ClearOptionalEnum()30952 public void ClearOptionalEnum() { 30953 _hasBits0 &= ~4; 30954 } 30955 30956 /// <summary>Field number for the "optional_string" field.</summary> 30957 public const int OptionalStringFieldNumber = 536870005; 30958 private readonly static string OptionalStringDefaultValue = ""; 30959 30960 private string optionalString_; 30961 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 30962 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 30963 public string OptionalString { 30964 get { return optionalString_ ?? OptionalStringDefaultValue; } 30965 set { 30966 optionalString_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); 30967 } 30968 } 30969 /// <summary>Gets whether the "optional_string" field is set</summary> 30970 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 30971 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 30972 public bool HasOptionalString { 30973 get { return optionalString_ != null; } 30974 } 30975 /// <summary>Clears the value of the "optional_string" field</summary> 30976 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 30977 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] ClearOptionalString()30978 public void ClearOptionalString() { 30979 optionalString_ = null; 30980 } 30981 30982 /// <summary>Field number for the "optional_bytes" field.</summary> 30983 public const int OptionalBytesFieldNumber = 536870006; 30984 private readonly static pb::ByteString OptionalBytesDefaultValue = pb::ByteString.Empty; 30985 30986 private pb::ByteString optionalBytes_; 30987 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 30988 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 30989 public pb::ByteString OptionalBytes { 30990 get { return optionalBytes_ ?? OptionalBytesDefaultValue; } 30991 set { 30992 optionalBytes_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); 30993 } 30994 } 30995 /// <summary>Gets whether the "optional_bytes" field is set</summary> 30996 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 30997 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 30998 public bool HasOptionalBytes { 30999 get { return optionalBytes_ != null; } 31000 } 31001 /// <summary>Clears the value of the "optional_bytes" field</summary> 31002 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 31003 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] ClearOptionalBytes()31004 public void ClearOptionalBytes() { 31005 optionalBytes_ = null; 31006 } 31007 31008 /// <summary>Field number for the "optional_message" field.</summary> 31009 public const int OptionalMessageFieldNumber = 536870007; 31010 private global::Google.Protobuf.TestProtos.Proto2.ForeignMessage optionalMessage_; 31011 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 31012 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 31013 public global::Google.Protobuf.TestProtos.Proto2.ForeignMessage OptionalMessage { 31014 get { return optionalMessage_; } 31015 set { 31016 optionalMessage_ = value; 31017 } 31018 } 31019 31020 /// <summary>Field number for the "optionalgroup" field.</summary> 31021 public const int OptionalGroupFieldNumber = 536870008; 31022 private global::Google.Protobuf.TestProtos.Proto2.TestHugeFieldNumbers.Types.OptionalGroup optionalGroup_; 31023 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 31024 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 31025 public global::Google.Protobuf.TestProtos.Proto2.TestHugeFieldNumbers.Types.OptionalGroup OptionalGroup { 31026 get { return optionalGroup_; } 31027 set { 31028 optionalGroup_ = value; 31029 } 31030 } 31031 /// <summary>Gets whether the optionalgroup field is set</summary> 31032 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 31033 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 31034 public bool HasOptionalGroup { 31035 get { return optionalGroup_ != null; } 31036 } 31037 /// <summary>Clears the value of the optionalgroup field</summary> 31038 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 31039 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] ClearOptionalGroup()31040 public void ClearOptionalGroup() { 31041 optionalGroup_ = null; 31042 } 31043 31044 /// <summary>Field number for the "string_string_map" field.</summary> 31045 public const int StringStringMapFieldNumber = 536870010; 31046 private static readonly pbc::MapField<string, string>.Codec _map_stringStringMap_codec 31047 = new pbc::MapField<string, string>.Codec(pb::FieldCodec.ForString(10, ""), pb::FieldCodec.ForString(18, ""), 4294960082); 31048 private readonly pbc::MapField<string, string> stringStringMap_ = new pbc::MapField<string, string>(); 31049 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 31050 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 31051 public pbc::MapField<string, string> StringStringMap { 31052 get { return stringStringMap_; } 31053 } 31054 31055 /// <summary>Field number for the "oneof_uint32" field.</summary> 31056 public const int OneofUint32FieldNumber = 536870011; 31057 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 31058 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 31059 public uint OneofUint32 { 31060 get { return HasOneofUint32 ? (uint) oneofField_ : 0; } 31061 set { 31062 oneofField_ = value; 31063 oneofFieldCase_ = OneofFieldOneofCase.OneofUint32; 31064 } 31065 } 31066 /// <summary>Gets whether the "oneof_uint32" field is set</summary> 31067 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 31068 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 31069 public bool HasOneofUint32 { 31070 get { return oneofFieldCase_ == OneofFieldOneofCase.OneofUint32; } 31071 } 31072 /// <summary> Clears the value of the oneof if it's currently set to "oneof_uint32" </summary> 31073 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 31074 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] ClearOneofUint32()31075 public void ClearOneofUint32() { 31076 if (HasOneofUint32) { 31077 ClearOneofField(); 31078 } 31079 } 31080 31081 /// <summary>Field number for the "oneof_test_all_types" field.</summary> 31082 public const int OneofTestAllTypesFieldNumber = 536870012; 31083 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 31084 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 31085 public global::Google.Protobuf.TestProtos.Proto2.TestAllTypes OneofTestAllTypes { 31086 get { return oneofFieldCase_ == OneofFieldOneofCase.OneofTestAllTypes ? (global::Google.Protobuf.TestProtos.Proto2.TestAllTypes) oneofField_ : null; } 31087 set { 31088 oneofField_ = value; 31089 oneofFieldCase_ = value == null ? OneofFieldOneofCase.None : OneofFieldOneofCase.OneofTestAllTypes; 31090 } 31091 } 31092 31093 /// <summary>Field number for the "oneof_string" field.</summary> 31094 public const int OneofStringFieldNumber = 536870013; 31095 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 31096 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 31097 public string OneofString { 31098 get { return HasOneofString ? (string) oneofField_ : ""; } 31099 set { 31100 oneofField_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); 31101 oneofFieldCase_ = OneofFieldOneofCase.OneofString; 31102 } 31103 } 31104 /// <summary>Gets whether the "oneof_string" field is set</summary> 31105 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 31106 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 31107 public bool HasOneofString { 31108 get { return oneofFieldCase_ == OneofFieldOneofCase.OneofString; } 31109 } 31110 /// <summary> Clears the value of the oneof if it's currently set to "oneof_string" </summary> 31111 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 31112 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] ClearOneofString()31113 public void ClearOneofString() { 31114 if (HasOneofString) { 31115 ClearOneofField(); 31116 } 31117 } 31118 31119 /// <summary>Field number for the "oneof_bytes" field.</summary> 31120 public const int OneofBytesFieldNumber = 536870014; 31121 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 31122 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 31123 public pb::ByteString OneofBytes { 31124 get { return HasOneofBytes ? (pb::ByteString) oneofField_ : pb::ByteString.Empty; } 31125 set { 31126 oneofField_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); 31127 oneofFieldCase_ = OneofFieldOneofCase.OneofBytes; 31128 } 31129 } 31130 /// <summary>Gets whether the "oneof_bytes" field is set</summary> 31131 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 31132 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 31133 public bool HasOneofBytes { 31134 get { return oneofFieldCase_ == OneofFieldOneofCase.OneofBytes; } 31135 } 31136 /// <summary> Clears the value of the oneof if it's currently set to "oneof_bytes" </summary> 31137 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 31138 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] ClearOneofBytes()31139 public void ClearOneofBytes() { 31140 if (HasOneofBytes) { 31141 ClearOneofField(); 31142 } 31143 } 31144 31145 private object oneofField_; 31146 /// <summary>Enum of possible cases for the "oneof_field" oneof.</summary> 31147 public enum OneofFieldOneofCase { 31148 None = 0, 31149 OneofUint32 = 536870011, 31150 OneofTestAllTypes = 536870012, 31151 OneofString = 536870013, 31152 OneofBytes = 536870014, 31153 } 31154 private OneofFieldOneofCase oneofFieldCase_ = OneofFieldOneofCase.None; 31155 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 31156 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 31157 public OneofFieldOneofCase OneofFieldCase { 31158 get { return oneofFieldCase_; } 31159 } 31160 31161 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 31162 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] ClearOneofField()31163 public void ClearOneofField() { 31164 oneofFieldCase_ = OneofFieldOneofCase.None; 31165 oneofField_ = null; 31166 } 31167 31168 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 31169 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] Equals(object other)31170 public override bool Equals(object other) { 31171 return Equals(other as TestHugeFieldNumbers); 31172 } 31173 31174 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 31175 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] Equals(TestHugeFieldNumbers other)31176 public bool Equals(TestHugeFieldNumbers other) { 31177 if (ReferenceEquals(other, null)) { 31178 return false; 31179 } 31180 if (ReferenceEquals(other, this)) { 31181 return true; 31182 } 31183 if (OptionalInt32 != other.OptionalInt32) return false; 31184 if (Fixed32 != other.Fixed32) return false; 31185 if(!repeatedInt32_.Equals(other.repeatedInt32_)) return false; 31186 if(!packedInt32_.Equals(other.packedInt32_)) return false; 31187 if (OptionalEnum != other.OptionalEnum) return false; 31188 if (OptionalString != other.OptionalString) return false; 31189 if (OptionalBytes != other.OptionalBytes) return false; 31190 if (!object.Equals(OptionalMessage, other.OptionalMessage)) return false; 31191 if (!object.Equals(OptionalGroup, other.OptionalGroup)) return false; 31192 if (!StringStringMap.Equals(other.StringStringMap)) return false; 31193 if (OneofUint32 != other.OneofUint32) return false; 31194 if (!object.Equals(OneofTestAllTypes, other.OneofTestAllTypes)) return false; 31195 if (OneofString != other.OneofString) return false; 31196 if (OneofBytes != other.OneofBytes) return false; 31197 if (OneofFieldCase != other.OneofFieldCase) return false; 31198 if (!Equals(_extensions, other._extensions)) { 31199 return false; 31200 } 31201 return Equals(_unknownFields, other._unknownFields); 31202 } 31203 31204 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 31205 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] GetHashCode()31206 public override int GetHashCode() { 31207 int hash = 1; 31208 if (HasOptionalInt32) hash ^= OptionalInt32.GetHashCode(); 31209 if (HasFixed32) hash ^= Fixed32.GetHashCode(); 31210 hash ^= repeatedInt32_.GetHashCode(); 31211 hash ^= packedInt32_.GetHashCode(); 31212 if (HasOptionalEnum) hash ^= OptionalEnum.GetHashCode(); 31213 if (HasOptionalString) hash ^= OptionalString.GetHashCode(); 31214 if (HasOptionalBytes) hash ^= OptionalBytes.GetHashCode(); 31215 if (optionalMessage_ != null) hash ^= OptionalMessage.GetHashCode(); 31216 if (HasOptionalGroup) hash ^= OptionalGroup.GetHashCode(); 31217 hash ^= StringStringMap.GetHashCode(); 31218 if (HasOneofUint32) hash ^= OneofUint32.GetHashCode(); 31219 if (oneofFieldCase_ == OneofFieldOneofCase.OneofTestAllTypes) hash ^= OneofTestAllTypes.GetHashCode(); 31220 if (HasOneofString) hash ^= OneofString.GetHashCode(); 31221 if (HasOneofBytes) hash ^= OneofBytes.GetHashCode(); 31222 hash ^= (int) oneofFieldCase_; 31223 if (_extensions != null) { 31224 hash ^= _extensions.GetHashCode(); 31225 } 31226 if (_unknownFields != null) { 31227 hash ^= _unknownFields.GetHashCode(); 31228 } 31229 return hash; 31230 } 31231 31232 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 31233 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] ToString()31234 public override string ToString() { 31235 return pb::JsonFormatter.ToDiagnosticString(this); 31236 } 31237 31238 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 31239 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] WriteTo(pb::CodedOutputStream output)31240 public void WriteTo(pb::CodedOutputStream output) { 31241 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 31242 output.WriteRawMessage(this); 31243 #else 31244 if (HasOptionalInt32) { 31245 output.WriteRawTag(128, 199, 255, 255, 15); 31246 output.WriteInt32(OptionalInt32); 31247 } 31248 if (HasFixed32) { 31249 output.WriteRawTag(136, 199, 255, 255, 15); 31250 output.WriteInt32(Fixed32); 31251 } 31252 repeatedInt32_.WriteTo(output, _repeated_repeatedInt32_codec); 31253 packedInt32_.WriteTo(output, _repeated_packedInt32_codec); 31254 if (HasOptionalEnum) { 31255 output.WriteRawTag(160, 199, 255, 255, 15); 31256 output.WriteEnum((int) OptionalEnum); 31257 } 31258 if (HasOptionalString) { 31259 output.WriteRawTag(170, 199, 255, 255, 15); 31260 output.WriteString(OptionalString); 31261 } 31262 if (HasOptionalBytes) { 31263 output.WriteRawTag(178, 199, 255, 255, 15); 31264 output.WriteBytes(OptionalBytes); 31265 } 31266 if (optionalMessage_ != null) { 31267 output.WriteRawTag(186, 199, 255, 255, 15); 31268 output.WriteMessage(OptionalMessage); 31269 } 31270 if (HasOptionalGroup) { 31271 output.WriteRawTag(195, 199, 255, 255, 15); 31272 output.WriteGroup(OptionalGroup); 31273 output.WriteRawTag(196, 199, 255, 255, 15); 31274 } 31275 stringStringMap_.WriteTo(output, _map_stringStringMap_codec); 31276 if (HasOneofUint32) { 31277 output.WriteRawTag(216, 199, 255, 255, 15); 31278 output.WriteUInt32(OneofUint32); 31279 } 31280 if (oneofFieldCase_ == OneofFieldOneofCase.OneofTestAllTypes) { 31281 output.WriteRawTag(226, 199, 255, 255, 15); 31282 output.WriteMessage(OneofTestAllTypes); 31283 } 31284 if (HasOneofString) { 31285 output.WriteRawTag(234, 199, 255, 255, 15); 31286 output.WriteString(OneofString); 31287 } 31288 if (HasOneofBytes) { 31289 output.WriteRawTag(242, 199, 255, 255, 15); 31290 output.WriteBytes(OneofBytes); 31291 } 31292 if (_extensions != null) { 31293 _extensions.WriteTo(output); 31294 } 31295 if (_unknownFields != null) { 31296 _unknownFields.WriteTo(output); 31297 } 31298 #endif 31299 } 31300 31301 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 31302 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 31303 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] IBufferMessage.InternalWriteTo(ref pb::WriteContext output)31304 void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { 31305 if (HasOptionalInt32) { 31306 output.WriteRawTag(128, 199, 255, 255, 15); 31307 output.WriteInt32(OptionalInt32); 31308 } 31309 if (HasFixed32) { 31310 output.WriteRawTag(136, 199, 255, 255, 15); 31311 output.WriteInt32(Fixed32); 31312 } 31313 repeatedInt32_.WriteTo(ref output, _repeated_repeatedInt32_codec); 31314 packedInt32_.WriteTo(ref output, _repeated_packedInt32_codec); 31315 if (HasOptionalEnum) { 31316 output.WriteRawTag(160, 199, 255, 255, 15); 31317 output.WriteEnum((int) OptionalEnum); 31318 } 31319 if (HasOptionalString) { 31320 output.WriteRawTag(170, 199, 255, 255, 15); 31321 output.WriteString(OptionalString); 31322 } 31323 if (HasOptionalBytes) { 31324 output.WriteRawTag(178, 199, 255, 255, 15); 31325 output.WriteBytes(OptionalBytes); 31326 } 31327 if (optionalMessage_ != null) { 31328 output.WriteRawTag(186, 199, 255, 255, 15); 31329 output.WriteMessage(OptionalMessage); 31330 } 31331 if (HasOptionalGroup) { 31332 output.WriteRawTag(195, 199, 255, 255, 15); 31333 output.WriteGroup(OptionalGroup); 31334 output.WriteRawTag(196, 199, 255, 255, 15); 31335 } 31336 stringStringMap_.WriteTo(ref output, _map_stringStringMap_codec); 31337 if (HasOneofUint32) { 31338 output.WriteRawTag(216, 199, 255, 255, 15); 31339 output.WriteUInt32(OneofUint32); 31340 } 31341 if (oneofFieldCase_ == OneofFieldOneofCase.OneofTestAllTypes) { 31342 output.WriteRawTag(226, 199, 255, 255, 15); 31343 output.WriteMessage(OneofTestAllTypes); 31344 } 31345 if (HasOneofString) { 31346 output.WriteRawTag(234, 199, 255, 255, 15); 31347 output.WriteString(OneofString); 31348 } 31349 if (HasOneofBytes) { 31350 output.WriteRawTag(242, 199, 255, 255, 15); 31351 output.WriteBytes(OneofBytes); 31352 } 31353 if (_extensions != null) { 31354 _extensions.WriteTo(ref output); 31355 } 31356 if (_unknownFields != null) { 31357 _unknownFields.WriteTo(ref output); 31358 } 31359 } 31360 #endif 31361 31362 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 31363 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] CalculateSize()31364 public int CalculateSize() { 31365 int size = 0; 31366 if (HasOptionalInt32) { 31367 size += 5 + pb::CodedOutputStream.ComputeInt32Size(OptionalInt32); 31368 } 31369 if (HasFixed32) { 31370 size += 5 + pb::CodedOutputStream.ComputeInt32Size(Fixed32); 31371 } 31372 size += repeatedInt32_.CalculateSize(_repeated_repeatedInt32_codec); 31373 size += packedInt32_.CalculateSize(_repeated_packedInt32_codec); 31374 if (HasOptionalEnum) { 31375 size += 5 + pb::CodedOutputStream.ComputeEnumSize((int) OptionalEnum); 31376 } 31377 if (HasOptionalString) { 31378 size += 5 + pb::CodedOutputStream.ComputeStringSize(OptionalString); 31379 } 31380 if (HasOptionalBytes) { 31381 size += 5 + pb::CodedOutputStream.ComputeBytesSize(OptionalBytes); 31382 } 31383 if (optionalMessage_ != null) { 31384 size += 5 + pb::CodedOutputStream.ComputeMessageSize(OptionalMessage); 31385 } 31386 if (HasOptionalGroup) { 31387 size += 10 + pb::CodedOutputStream.ComputeGroupSize(OptionalGroup); 31388 } 31389 size += stringStringMap_.CalculateSize(_map_stringStringMap_codec); 31390 if (HasOneofUint32) { 31391 size += 5 + pb::CodedOutputStream.ComputeUInt32Size(OneofUint32); 31392 } 31393 if (oneofFieldCase_ == OneofFieldOneofCase.OneofTestAllTypes) { 31394 size += 5 + pb::CodedOutputStream.ComputeMessageSize(OneofTestAllTypes); 31395 } 31396 if (HasOneofString) { 31397 size += 5 + pb::CodedOutputStream.ComputeStringSize(OneofString); 31398 } 31399 if (HasOneofBytes) { 31400 size += 5 + pb::CodedOutputStream.ComputeBytesSize(OneofBytes); 31401 } 31402 if (_extensions != null) { 31403 size += _extensions.CalculateSize(); 31404 } 31405 if (_unknownFields != null) { 31406 size += _unknownFields.CalculateSize(); 31407 } 31408 return size; 31409 } 31410 31411 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 31412 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] MergeFrom(TestHugeFieldNumbers other)31413 public void MergeFrom(TestHugeFieldNumbers other) { 31414 if (other == null) { 31415 return; 31416 } 31417 if (other.HasOptionalInt32) { 31418 OptionalInt32 = other.OptionalInt32; 31419 } 31420 if (other.HasFixed32) { 31421 Fixed32 = other.Fixed32; 31422 } 31423 repeatedInt32_.Add(other.repeatedInt32_); 31424 packedInt32_.Add(other.packedInt32_); 31425 if (other.HasOptionalEnum) { 31426 OptionalEnum = other.OptionalEnum; 31427 } 31428 if (other.HasOptionalString) { 31429 OptionalString = other.OptionalString; 31430 } 31431 if (other.HasOptionalBytes) { 31432 OptionalBytes = other.OptionalBytes; 31433 } 31434 if (other.optionalMessage_ != null) { 31435 if (optionalMessage_ == null) { 31436 OptionalMessage = new global::Google.Protobuf.TestProtos.Proto2.ForeignMessage(); 31437 } 31438 OptionalMessage.MergeFrom(other.OptionalMessage); 31439 } 31440 if (other.HasOptionalGroup) { 31441 if (!HasOptionalGroup) { 31442 OptionalGroup = new global::Google.Protobuf.TestProtos.Proto2.TestHugeFieldNumbers.Types.OptionalGroup(); 31443 } 31444 OptionalGroup.MergeFrom(other.OptionalGroup); 31445 } 31446 stringStringMap_.MergeFrom(other.stringStringMap_); 31447 switch (other.OneofFieldCase) { 31448 case OneofFieldOneofCase.OneofUint32: 31449 OneofUint32 = other.OneofUint32; 31450 break; 31451 case OneofFieldOneofCase.OneofTestAllTypes: 31452 if (OneofTestAllTypes == null) { 31453 OneofTestAllTypes = new global::Google.Protobuf.TestProtos.Proto2.TestAllTypes(); 31454 } 31455 OneofTestAllTypes.MergeFrom(other.OneofTestAllTypes); 31456 break; 31457 case OneofFieldOneofCase.OneofString: 31458 OneofString = other.OneofString; 31459 break; 31460 case OneofFieldOneofCase.OneofBytes: 31461 OneofBytes = other.OneofBytes; 31462 break; 31463 } 31464 31465 pb::ExtensionSet.MergeFrom(ref _extensions, other._extensions); 31466 _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); 31467 } 31468 31469 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 31470 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] MergeFrom(pb::CodedInputStream input)31471 public void MergeFrom(pb::CodedInputStream input) { 31472 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 31473 input.ReadRawMessage(this); 31474 #else 31475 uint tag; 31476 while ((tag = input.ReadTag()) != 0) { 31477 if ((tag & 7) == 4) { 31478 // Abort on any end group tag. 31479 return; 31480 } 31481 switch(tag) { 31482 default: 31483 if (!pb::ExtensionSet.TryMergeFieldFrom(ref _extensions, input)) { 31484 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); 31485 } 31486 break; 31487 case 4294960000: { 31488 OptionalInt32 = input.ReadInt32(); 31489 break; 31490 } 31491 case 4294960008: { 31492 Fixed32 = input.ReadInt32(); 31493 break; 31494 } 31495 case 4294960018: 31496 case 4294960016: { 31497 repeatedInt32_.AddEntriesFrom(input, _repeated_repeatedInt32_codec); 31498 break; 31499 } 31500 case 4294960026: 31501 case 4294960024: { 31502 packedInt32_.AddEntriesFrom(input, _repeated_packedInt32_codec); 31503 break; 31504 } 31505 case 4294960032: { 31506 OptionalEnum = (global::Google.Protobuf.TestProtos.Proto2.ForeignEnum) input.ReadEnum(); 31507 break; 31508 } 31509 case 4294960042: { 31510 OptionalString = input.ReadString(); 31511 break; 31512 } 31513 case 4294960050: { 31514 OptionalBytes = input.ReadBytes(); 31515 break; 31516 } 31517 case 4294960058: { 31518 if (optionalMessage_ == null) { 31519 OptionalMessage = new global::Google.Protobuf.TestProtos.Proto2.ForeignMessage(); 31520 } 31521 input.ReadMessage(OptionalMessage); 31522 break; 31523 } 31524 case 4294960067: { 31525 if (!HasOptionalGroup) { 31526 OptionalGroup = new global::Google.Protobuf.TestProtos.Proto2.TestHugeFieldNumbers.Types.OptionalGroup(); 31527 } 31528 input.ReadGroup(OptionalGroup); 31529 break; 31530 } 31531 case 4294960082: { 31532 stringStringMap_.AddEntriesFrom(input, _map_stringStringMap_codec); 31533 break; 31534 } 31535 case 4294960088: { 31536 OneofUint32 = input.ReadUInt32(); 31537 break; 31538 } 31539 case 4294960098: { 31540 global::Google.Protobuf.TestProtos.Proto2.TestAllTypes subBuilder = new global::Google.Protobuf.TestProtos.Proto2.TestAllTypes(); 31541 if (oneofFieldCase_ == OneofFieldOneofCase.OneofTestAllTypes) { 31542 subBuilder.MergeFrom(OneofTestAllTypes); 31543 } 31544 input.ReadMessage(subBuilder); 31545 OneofTestAllTypes = subBuilder; 31546 break; 31547 } 31548 case 4294960106: { 31549 OneofString = input.ReadString(); 31550 break; 31551 } 31552 case 4294960114: { 31553 OneofBytes = input.ReadBytes(); 31554 break; 31555 } 31556 } 31557 } 31558 #endif 31559 } 31560 31561 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 31562 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 31563 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] IBufferMessage.InternalMergeFrom(ref pb::ParseContext input)31564 void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { 31565 uint tag; 31566 while ((tag = input.ReadTag()) != 0) { 31567 if ((tag & 7) == 4) { 31568 // Abort on any end group tag. 31569 return; 31570 } 31571 switch(tag) { 31572 default: 31573 if (!pb::ExtensionSet.TryMergeFieldFrom(ref _extensions, ref input)) { 31574 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); 31575 } 31576 break; 31577 case 4294960000: { 31578 OptionalInt32 = input.ReadInt32(); 31579 break; 31580 } 31581 case 4294960008: { 31582 Fixed32 = input.ReadInt32(); 31583 break; 31584 } 31585 case 4294960018: 31586 case 4294960016: { 31587 repeatedInt32_.AddEntriesFrom(ref input, _repeated_repeatedInt32_codec); 31588 break; 31589 } 31590 case 4294960026: 31591 case 4294960024: { 31592 packedInt32_.AddEntriesFrom(ref input, _repeated_packedInt32_codec); 31593 break; 31594 } 31595 case 4294960032: { 31596 OptionalEnum = (global::Google.Protobuf.TestProtos.Proto2.ForeignEnum) input.ReadEnum(); 31597 break; 31598 } 31599 case 4294960042: { 31600 OptionalString = input.ReadString(); 31601 break; 31602 } 31603 case 4294960050: { 31604 OptionalBytes = input.ReadBytes(); 31605 break; 31606 } 31607 case 4294960058: { 31608 if (optionalMessage_ == null) { 31609 OptionalMessage = new global::Google.Protobuf.TestProtos.Proto2.ForeignMessage(); 31610 } 31611 input.ReadMessage(OptionalMessage); 31612 break; 31613 } 31614 case 4294960067: { 31615 if (!HasOptionalGroup) { 31616 OptionalGroup = new global::Google.Protobuf.TestProtos.Proto2.TestHugeFieldNumbers.Types.OptionalGroup(); 31617 } 31618 input.ReadGroup(OptionalGroup); 31619 break; 31620 } 31621 case 4294960082: { 31622 stringStringMap_.AddEntriesFrom(ref input, _map_stringStringMap_codec); 31623 break; 31624 } 31625 case 4294960088: { 31626 OneofUint32 = input.ReadUInt32(); 31627 break; 31628 } 31629 case 4294960098: { 31630 global::Google.Protobuf.TestProtos.Proto2.TestAllTypes subBuilder = new global::Google.Protobuf.TestProtos.Proto2.TestAllTypes(); 31631 if (oneofFieldCase_ == OneofFieldOneofCase.OneofTestAllTypes) { 31632 subBuilder.MergeFrom(OneofTestAllTypes); 31633 } 31634 input.ReadMessage(subBuilder); 31635 OneofTestAllTypes = subBuilder; 31636 break; 31637 } 31638 case 4294960106: { 31639 OneofString = input.ReadString(); 31640 break; 31641 } 31642 case 4294960114: { 31643 OneofBytes = input.ReadBytes(); 31644 break; 31645 } 31646 } 31647 } 31648 } 31649 #endif 31650 GetExtension(pb::Extension<TestHugeFieldNumbers, TValue> extension)31651 public TValue GetExtension<TValue>(pb::Extension<TestHugeFieldNumbers, TValue> extension) { 31652 return pb::ExtensionSet.Get(ref _extensions, extension); 31653 } GetExtension(pb::RepeatedExtension<TestHugeFieldNumbers, TValue> extension)31654 public pbc::RepeatedField<TValue> GetExtension<TValue>(pb::RepeatedExtension<TestHugeFieldNumbers, TValue> extension) { 31655 return pb::ExtensionSet.Get(ref _extensions, extension); 31656 } GetOrInitializeExtension(pb::RepeatedExtension<TestHugeFieldNumbers, TValue> extension)31657 public pbc::RepeatedField<TValue> GetOrInitializeExtension<TValue>(pb::RepeatedExtension<TestHugeFieldNumbers, TValue> extension) { 31658 return pb::ExtensionSet.GetOrInitialize(ref _extensions, extension); 31659 } SetExtension(pb::Extension<TestHugeFieldNumbers, TValue> extension, TValue value)31660 public void SetExtension<TValue>(pb::Extension<TestHugeFieldNumbers, TValue> extension, TValue value) { 31661 pb::ExtensionSet.Set(ref _extensions, extension, value); 31662 } HasExtension(pb::Extension<TestHugeFieldNumbers, TValue> extension)31663 public bool HasExtension<TValue>(pb::Extension<TestHugeFieldNumbers, TValue> extension) { 31664 return pb::ExtensionSet.Has(ref _extensions, extension); 31665 } ClearExtension(pb::Extension<TestHugeFieldNumbers, TValue> extension)31666 public void ClearExtension<TValue>(pb::Extension<TestHugeFieldNumbers, TValue> extension) { 31667 pb::ExtensionSet.Clear(ref _extensions, extension); 31668 } ClearExtension(pb::RepeatedExtension<TestHugeFieldNumbers, TValue> extension)31669 public void ClearExtension<TValue>(pb::RepeatedExtension<TestHugeFieldNumbers, TValue> extension) { 31670 pb::ExtensionSet.Clear(ref _extensions, extension); 31671 } 31672 31673 #region Nested types 31674 /// <summary>Container for nested types declared in the TestHugeFieldNumbers message type.</summary> 31675 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 31676 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 31677 public static partial class Types { 31678 [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] 31679 public sealed partial class OptionalGroup : pb::IMessage<OptionalGroup> 31680 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 31681 , pb::IBufferMessage 31682 #endif 31683 { 31684 private static readonly pb::MessageParser<OptionalGroup> _parser = new pb::MessageParser<OptionalGroup>(() => new OptionalGroup()); 31685 private pb::UnknownFieldSet _unknownFields; 31686 private int _hasBits0; 31687 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 31688 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 31689 public static pb::MessageParser<OptionalGroup> Parser { get { return _parser; } } 31690 31691 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 31692 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 31693 public static pbr::MessageDescriptor Descriptor { 31694 get { return global::Google.Protobuf.TestProtos.Proto2.TestHugeFieldNumbers.Descriptor.NestedTypes[0]; } 31695 } 31696 31697 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 31698 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 31699 pbr::MessageDescriptor pb::IMessage.Descriptor { 31700 get { return Descriptor; } 31701 } 31702 31703 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 31704 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] OptionalGroup()31705 public OptionalGroup() { 31706 OnConstruction(); 31707 } 31708 OnConstruction()31709 partial void OnConstruction(); 31710 31711 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 31712 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] OptionalGroup(OptionalGroup other)31713 public OptionalGroup(OptionalGroup other) : this() { 31714 _hasBits0 = other._hasBits0; 31715 groupA_ = other.groupA_; 31716 _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); 31717 } 31718 31719 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 31720 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] Clone()31721 public OptionalGroup Clone() { 31722 return new OptionalGroup(this); 31723 } 31724 31725 /// <summary>Field number for the "group_a" field.</summary> 31726 public const int GroupAFieldNumber = 536870009; 31727 private readonly static int GroupADefaultValue = 0; 31728 31729 private int groupA_; 31730 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 31731 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 31732 public int GroupA { 31733 get { if ((_hasBits0 & 1) != 0) { return groupA_; } else { return GroupADefaultValue; } } 31734 set { 31735 _hasBits0 |= 1; 31736 groupA_ = value; 31737 } 31738 } 31739 /// <summary>Gets whether the "group_a" field is set</summary> 31740 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 31741 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 31742 public bool HasGroupA { 31743 get { return (_hasBits0 & 1) != 0; } 31744 } 31745 /// <summary>Clears the value of the "group_a" field</summary> 31746 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 31747 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] ClearGroupA()31748 public void ClearGroupA() { 31749 _hasBits0 &= ~1; 31750 } 31751 31752 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 31753 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] Equals(object other)31754 public override bool Equals(object other) { 31755 return Equals(other as OptionalGroup); 31756 } 31757 31758 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 31759 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] Equals(OptionalGroup other)31760 public bool Equals(OptionalGroup other) { 31761 if (ReferenceEquals(other, null)) { 31762 return false; 31763 } 31764 if (ReferenceEquals(other, this)) { 31765 return true; 31766 } 31767 if (GroupA != other.GroupA) return false; 31768 return Equals(_unknownFields, other._unknownFields); 31769 } 31770 31771 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 31772 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] GetHashCode()31773 public override int GetHashCode() { 31774 int hash = 1; 31775 if (HasGroupA) hash ^= GroupA.GetHashCode(); 31776 if (_unknownFields != null) { 31777 hash ^= _unknownFields.GetHashCode(); 31778 } 31779 return hash; 31780 } 31781 31782 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 31783 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] ToString()31784 public override string ToString() { 31785 return pb::JsonFormatter.ToDiagnosticString(this); 31786 } 31787 31788 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 31789 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] WriteTo(pb::CodedOutputStream output)31790 public void WriteTo(pb::CodedOutputStream output) { 31791 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 31792 output.WriteRawMessage(this); 31793 #else 31794 if (HasGroupA) { 31795 output.WriteRawTag(200, 199, 255, 255, 15); 31796 output.WriteInt32(GroupA); 31797 } 31798 if (_unknownFields != null) { 31799 _unknownFields.WriteTo(output); 31800 } 31801 #endif 31802 } 31803 31804 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 31805 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 31806 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] IBufferMessage.InternalWriteTo(ref pb::WriteContext output)31807 void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { 31808 if (HasGroupA) { 31809 output.WriteRawTag(200, 199, 255, 255, 15); 31810 output.WriteInt32(GroupA); 31811 } 31812 if (_unknownFields != null) { 31813 _unknownFields.WriteTo(ref output); 31814 } 31815 } 31816 #endif 31817 31818 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 31819 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] CalculateSize()31820 public int CalculateSize() { 31821 int size = 0; 31822 if (HasGroupA) { 31823 size += 5 + pb::CodedOutputStream.ComputeInt32Size(GroupA); 31824 } 31825 if (_unknownFields != null) { 31826 size += _unknownFields.CalculateSize(); 31827 } 31828 return size; 31829 } 31830 31831 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 31832 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] MergeFrom(OptionalGroup other)31833 public void MergeFrom(OptionalGroup other) { 31834 if (other == null) { 31835 return; 31836 } 31837 if (other.HasGroupA) { 31838 GroupA = other.GroupA; 31839 } 31840 _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); 31841 } 31842 31843 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 31844 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] MergeFrom(pb::CodedInputStream input)31845 public void MergeFrom(pb::CodedInputStream input) { 31846 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 31847 input.ReadRawMessage(this); 31848 #else 31849 uint tag; 31850 while ((tag = input.ReadTag()) != 0) { 31851 if ((tag & 7) == 4) { 31852 // Abort on any end group tag. 31853 return; 31854 } 31855 switch(tag) { 31856 default: 31857 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); 31858 break; 31859 case 4294960072: { 31860 GroupA = input.ReadInt32(); 31861 break; 31862 } 31863 } 31864 } 31865 #endif 31866 } 31867 31868 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 31869 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 31870 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] IBufferMessage.InternalMergeFrom(ref pb::ParseContext input)31871 void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { 31872 uint tag; 31873 while ((tag = input.ReadTag()) != 0) { 31874 if ((tag & 7) == 4) { 31875 // Abort on any end group tag. 31876 return; 31877 } 31878 switch(tag) { 31879 default: 31880 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); 31881 break; 31882 case 4294960072: { 31883 GroupA = input.ReadInt32(); 31884 break; 31885 } 31886 } 31887 } 31888 } 31889 #endif 31890 31891 } 31892 31893 } 31894 #endregion 31895 31896 } 31897 31898 [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] 31899 public sealed partial class TestExtensionInsideTable : pb::IExtendableMessage<TestExtensionInsideTable> 31900 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 31901 , pb::IBufferMessage 31902 #endif 31903 { 31904 private static readonly pb::MessageParser<TestExtensionInsideTable> _parser = new pb::MessageParser<TestExtensionInsideTable>(() => new TestExtensionInsideTable()); 31905 private pb::UnknownFieldSet _unknownFields; 31906 private pb::ExtensionSet<TestExtensionInsideTable> _extensions; 31907 private pb::ExtensionSet<TestExtensionInsideTable> _Extensions { get { return _extensions; } } 31908 private int _hasBits0; 31909 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 31910 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 31911 public static pb::MessageParser<TestExtensionInsideTable> Parser { get { return _parser; } } 31912 31913 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 31914 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 31915 public static pbr::MessageDescriptor Descriptor { 31916 get { return global::Google.Protobuf.TestProtos.Proto2.UnittestReflection.Descriptor.MessageTypes[64]; } 31917 } 31918 31919 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 31920 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 31921 pbr::MessageDescriptor pb::IMessage.Descriptor { 31922 get { return Descriptor; } 31923 } 31924 31925 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 31926 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] TestExtensionInsideTable()31927 public TestExtensionInsideTable() { 31928 OnConstruction(); 31929 } 31930 OnConstruction()31931 partial void OnConstruction(); 31932 31933 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 31934 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] TestExtensionInsideTable(TestExtensionInsideTable other)31935 public TestExtensionInsideTable(TestExtensionInsideTable other) : this() { 31936 _hasBits0 = other._hasBits0; 31937 field1_ = other.field1_; 31938 field2_ = other.field2_; 31939 field3_ = other.field3_; 31940 field4_ = other.field4_; 31941 field6_ = other.field6_; 31942 field7_ = other.field7_; 31943 field8_ = other.field8_; 31944 field9_ = other.field9_; 31945 field10_ = other.field10_; 31946 _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); 31947 _extensions = pb::ExtensionSet.Clone(other._extensions); 31948 } 31949 31950 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 31951 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] Clone()31952 public TestExtensionInsideTable Clone() { 31953 return new TestExtensionInsideTable(this); 31954 } 31955 31956 /// <summary>Field number for the "field1" field.</summary> 31957 public const int Field1FieldNumber = 1; 31958 private readonly static int Field1DefaultValue = 0; 31959 31960 private int field1_; 31961 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 31962 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 31963 public int Field1 { 31964 get { if ((_hasBits0 & 1) != 0) { return field1_; } else { return Field1DefaultValue; } } 31965 set { 31966 _hasBits0 |= 1; 31967 field1_ = value; 31968 } 31969 } 31970 /// <summary>Gets whether the "field1" field is set</summary> 31971 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 31972 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 31973 public bool HasField1 { 31974 get { return (_hasBits0 & 1) != 0; } 31975 } 31976 /// <summary>Clears the value of the "field1" field</summary> 31977 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 31978 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] ClearField1()31979 public void ClearField1() { 31980 _hasBits0 &= ~1; 31981 } 31982 31983 /// <summary>Field number for the "field2" field.</summary> 31984 public const int Field2FieldNumber = 2; 31985 private readonly static int Field2DefaultValue = 0; 31986 31987 private int field2_; 31988 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 31989 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 31990 public int Field2 { 31991 get { if ((_hasBits0 & 2) != 0) { return field2_; } else { return Field2DefaultValue; } } 31992 set { 31993 _hasBits0 |= 2; 31994 field2_ = value; 31995 } 31996 } 31997 /// <summary>Gets whether the "field2" field is set</summary> 31998 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 31999 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 32000 public bool HasField2 { 32001 get { return (_hasBits0 & 2) != 0; } 32002 } 32003 /// <summary>Clears the value of the "field2" field</summary> 32004 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 32005 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] ClearField2()32006 public void ClearField2() { 32007 _hasBits0 &= ~2; 32008 } 32009 32010 /// <summary>Field number for the "field3" field.</summary> 32011 public const int Field3FieldNumber = 3; 32012 private readonly static int Field3DefaultValue = 0; 32013 32014 private int field3_; 32015 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 32016 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 32017 public int Field3 { 32018 get { if ((_hasBits0 & 4) != 0) { return field3_; } else { return Field3DefaultValue; } } 32019 set { 32020 _hasBits0 |= 4; 32021 field3_ = value; 32022 } 32023 } 32024 /// <summary>Gets whether the "field3" field is set</summary> 32025 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 32026 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 32027 public bool HasField3 { 32028 get { return (_hasBits0 & 4) != 0; } 32029 } 32030 /// <summary>Clears the value of the "field3" field</summary> 32031 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 32032 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] ClearField3()32033 public void ClearField3() { 32034 _hasBits0 &= ~4; 32035 } 32036 32037 /// <summary>Field number for the "field4" field.</summary> 32038 public const int Field4FieldNumber = 4; 32039 private readonly static int Field4DefaultValue = 0; 32040 32041 private int field4_; 32042 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 32043 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 32044 public int Field4 { 32045 get { if ((_hasBits0 & 8) != 0) { return field4_; } else { return Field4DefaultValue; } } 32046 set { 32047 _hasBits0 |= 8; 32048 field4_ = value; 32049 } 32050 } 32051 /// <summary>Gets whether the "field4" field is set</summary> 32052 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 32053 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 32054 public bool HasField4 { 32055 get { return (_hasBits0 & 8) != 0; } 32056 } 32057 /// <summary>Clears the value of the "field4" field</summary> 32058 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 32059 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] ClearField4()32060 public void ClearField4() { 32061 _hasBits0 &= ~8; 32062 } 32063 32064 /// <summary>Field number for the "field6" field.</summary> 32065 public const int Field6FieldNumber = 6; 32066 private readonly static int Field6DefaultValue = 0; 32067 32068 private int field6_; 32069 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 32070 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 32071 public int Field6 { 32072 get { if ((_hasBits0 & 16) != 0) { return field6_; } else { return Field6DefaultValue; } } 32073 set { 32074 _hasBits0 |= 16; 32075 field6_ = value; 32076 } 32077 } 32078 /// <summary>Gets whether the "field6" field is set</summary> 32079 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 32080 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 32081 public bool HasField6 { 32082 get { return (_hasBits0 & 16) != 0; } 32083 } 32084 /// <summary>Clears the value of the "field6" field</summary> 32085 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 32086 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] ClearField6()32087 public void ClearField6() { 32088 _hasBits0 &= ~16; 32089 } 32090 32091 /// <summary>Field number for the "field7" field.</summary> 32092 public const int Field7FieldNumber = 7; 32093 private readonly static int Field7DefaultValue = 0; 32094 32095 private int field7_; 32096 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 32097 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 32098 public int Field7 { 32099 get { if ((_hasBits0 & 32) != 0) { return field7_; } else { return Field7DefaultValue; } } 32100 set { 32101 _hasBits0 |= 32; 32102 field7_ = value; 32103 } 32104 } 32105 /// <summary>Gets whether the "field7" field is set</summary> 32106 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 32107 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 32108 public bool HasField7 { 32109 get { return (_hasBits0 & 32) != 0; } 32110 } 32111 /// <summary>Clears the value of the "field7" field</summary> 32112 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 32113 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] ClearField7()32114 public void ClearField7() { 32115 _hasBits0 &= ~32; 32116 } 32117 32118 /// <summary>Field number for the "field8" field.</summary> 32119 public const int Field8FieldNumber = 8; 32120 private readonly static int Field8DefaultValue = 0; 32121 32122 private int field8_; 32123 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 32124 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 32125 public int Field8 { 32126 get { if ((_hasBits0 & 64) != 0) { return field8_; } else { return Field8DefaultValue; } } 32127 set { 32128 _hasBits0 |= 64; 32129 field8_ = value; 32130 } 32131 } 32132 /// <summary>Gets whether the "field8" field is set</summary> 32133 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 32134 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 32135 public bool HasField8 { 32136 get { return (_hasBits0 & 64) != 0; } 32137 } 32138 /// <summary>Clears the value of the "field8" field</summary> 32139 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 32140 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] ClearField8()32141 public void ClearField8() { 32142 _hasBits0 &= ~64; 32143 } 32144 32145 /// <summary>Field number for the "field9" field.</summary> 32146 public const int Field9FieldNumber = 9; 32147 private readonly static int Field9DefaultValue = 0; 32148 32149 private int field9_; 32150 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 32151 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 32152 public int Field9 { 32153 get { if ((_hasBits0 & 128) != 0) { return field9_; } else { return Field9DefaultValue; } } 32154 set { 32155 _hasBits0 |= 128; 32156 field9_ = value; 32157 } 32158 } 32159 /// <summary>Gets whether the "field9" field is set</summary> 32160 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 32161 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 32162 public bool HasField9 { 32163 get { return (_hasBits0 & 128) != 0; } 32164 } 32165 /// <summary>Clears the value of the "field9" field</summary> 32166 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 32167 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] ClearField9()32168 public void ClearField9() { 32169 _hasBits0 &= ~128; 32170 } 32171 32172 /// <summary>Field number for the "field10" field.</summary> 32173 public const int Field10FieldNumber = 10; 32174 private readonly static int Field10DefaultValue = 0; 32175 32176 private int field10_; 32177 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 32178 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 32179 public int Field10 { 32180 get { if ((_hasBits0 & 256) != 0) { return field10_; } else { return Field10DefaultValue; } } 32181 set { 32182 _hasBits0 |= 256; 32183 field10_ = value; 32184 } 32185 } 32186 /// <summary>Gets whether the "field10" field is set</summary> 32187 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 32188 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 32189 public bool HasField10 { 32190 get { return (_hasBits0 & 256) != 0; } 32191 } 32192 /// <summary>Clears the value of the "field10" field</summary> 32193 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 32194 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] ClearField10()32195 public void ClearField10() { 32196 _hasBits0 &= ~256; 32197 } 32198 32199 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 32200 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] Equals(object other)32201 public override bool Equals(object other) { 32202 return Equals(other as TestExtensionInsideTable); 32203 } 32204 32205 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 32206 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] Equals(TestExtensionInsideTable other)32207 public bool Equals(TestExtensionInsideTable other) { 32208 if (ReferenceEquals(other, null)) { 32209 return false; 32210 } 32211 if (ReferenceEquals(other, this)) { 32212 return true; 32213 } 32214 if (Field1 != other.Field1) return false; 32215 if (Field2 != other.Field2) return false; 32216 if (Field3 != other.Field3) return false; 32217 if (Field4 != other.Field4) return false; 32218 if (Field6 != other.Field6) return false; 32219 if (Field7 != other.Field7) return false; 32220 if (Field8 != other.Field8) return false; 32221 if (Field9 != other.Field9) return false; 32222 if (Field10 != other.Field10) return false; 32223 if (!Equals(_extensions, other._extensions)) { 32224 return false; 32225 } 32226 return Equals(_unknownFields, other._unknownFields); 32227 } 32228 32229 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 32230 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] GetHashCode()32231 public override int GetHashCode() { 32232 int hash = 1; 32233 if (HasField1) hash ^= Field1.GetHashCode(); 32234 if (HasField2) hash ^= Field2.GetHashCode(); 32235 if (HasField3) hash ^= Field3.GetHashCode(); 32236 if (HasField4) hash ^= Field4.GetHashCode(); 32237 if (HasField6) hash ^= Field6.GetHashCode(); 32238 if (HasField7) hash ^= Field7.GetHashCode(); 32239 if (HasField8) hash ^= Field8.GetHashCode(); 32240 if (HasField9) hash ^= Field9.GetHashCode(); 32241 if (HasField10) hash ^= Field10.GetHashCode(); 32242 if (_extensions != null) { 32243 hash ^= _extensions.GetHashCode(); 32244 } 32245 if (_unknownFields != null) { 32246 hash ^= _unknownFields.GetHashCode(); 32247 } 32248 return hash; 32249 } 32250 32251 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 32252 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] ToString()32253 public override string ToString() { 32254 return pb::JsonFormatter.ToDiagnosticString(this); 32255 } 32256 32257 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 32258 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] WriteTo(pb::CodedOutputStream output)32259 public void WriteTo(pb::CodedOutputStream output) { 32260 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 32261 output.WriteRawMessage(this); 32262 #else 32263 if (HasField1) { 32264 output.WriteRawTag(8); 32265 output.WriteInt32(Field1); 32266 } 32267 if (HasField2) { 32268 output.WriteRawTag(16); 32269 output.WriteInt32(Field2); 32270 } 32271 if (HasField3) { 32272 output.WriteRawTag(24); 32273 output.WriteInt32(Field3); 32274 } 32275 if (HasField4) { 32276 output.WriteRawTag(32); 32277 output.WriteInt32(Field4); 32278 } 32279 if (HasField6) { 32280 output.WriteRawTag(48); 32281 output.WriteInt32(Field6); 32282 } 32283 if (HasField7) { 32284 output.WriteRawTag(56); 32285 output.WriteInt32(Field7); 32286 } 32287 if (HasField8) { 32288 output.WriteRawTag(64); 32289 output.WriteInt32(Field8); 32290 } 32291 if (HasField9) { 32292 output.WriteRawTag(72); 32293 output.WriteInt32(Field9); 32294 } 32295 if (HasField10) { 32296 output.WriteRawTag(80); 32297 output.WriteInt32(Field10); 32298 } 32299 if (_extensions != null) { 32300 _extensions.WriteTo(output); 32301 } 32302 if (_unknownFields != null) { 32303 _unknownFields.WriteTo(output); 32304 } 32305 #endif 32306 } 32307 32308 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 32309 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 32310 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] IBufferMessage.InternalWriteTo(ref pb::WriteContext output)32311 void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { 32312 if (HasField1) { 32313 output.WriteRawTag(8); 32314 output.WriteInt32(Field1); 32315 } 32316 if (HasField2) { 32317 output.WriteRawTag(16); 32318 output.WriteInt32(Field2); 32319 } 32320 if (HasField3) { 32321 output.WriteRawTag(24); 32322 output.WriteInt32(Field3); 32323 } 32324 if (HasField4) { 32325 output.WriteRawTag(32); 32326 output.WriteInt32(Field4); 32327 } 32328 if (HasField6) { 32329 output.WriteRawTag(48); 32330 output.WriteInt32(Field6); 32331 } 32332 if (HasField7) { 32333 output.WriteRawTag(56); 32334 output.WriteInt32(Field7); 32335 } 32336 if (HasField8) { 32337 output.WriteRawTag(64); 32338 output.WriteInt32(Field8); 32339 } 32340 if (HasField9) { 32341 output.WriteRawTag(72); 32342 output.WriteInt32(Field9); 32343 } 32344 if (HasField10) { 32345 output.WriteRawTag(80); 32346 output.WriteInt32(Field10); 32347 } 32348 if (_extensions != null) { 32349 _extensions.WriteTo(ref output); 32350 } 32351 if (_unknownFields != null) { 32352 _unknownFields.WriteTo(ref output); 32353 } 32354 } 32355 #endif 32356 32357 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 32358 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] CalculateSize()32359 public int CalculateSize() { 32360 int size = 0; 32361 if (HasField1) { 32362 size += 1 + pb::CodedOutputStream.ComputeInt32Size(Field1); 32363 } 32364 if (HasField2) { 32365 size += 1 + pb::CodedOutputStream.ComputeInt32Size(Field2); 32366 } 32367 if (HasField3) { 32368 size += 1 + pb::CodedOutputStream.ComputeInt32Size(Field3); 32369 } 32370 if (HasField4) { 32371 size += 1 + pb::CodedOutputStream.ComputeInt32Size(Field4); 32372 } 32373 if (HasField6) { 32374 size += 1 + pb::CodedOutputStream.ComputeInt32Size(Field6); 32375 } 32376 if (HasField7) { 32377 size += 1 + pb::CodedOutputStream.ComputeInt32Size(Field7); 32378 } 32379 if (HasField8) { 32380 size += 1 + pb::CodedOutputStream.ComputeInt32Size(Field8); 32381 } 32382 if (HasField9) { 32383 size += 1 + pb::CodedOutputStream.ComputeInt32Size(Field9); 32384 } 32385 if (HasField10) { 32386 size += 1 + pb::CodedOutputStream.ComputeInt32Size(Field10); 32387 } 32388 if (_extensions != null) { 32389 size += _extensions.CalculateSize(); 32390 } 32391 if (_unknownFields != null) { 32392 size += _unknownFields.CalculateSize(); 32393 } 32394 return size; 32395 } 32396 32397 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 32398 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] MergeFrom(TestExtensionInsideTable other)32399 public void MergeFrom(TestExtensionInsideTable other) { 32400 if (other == null) { 32401 return; 32402 } 32403 if (other.HasField1) { 32404 Field1 = other.Field1; 32405 } 32406 if (other.HasField2) { 32407 Field2 = other.Field2; 32408 } 32409 if (other.HasField3) { 32410 Field3 = other.Field3; 32411 } 32412 if (other.HasField4) { 32413 Field4 = other.Field4; 32414 } 32415 if (other.HasField6) { 32416 Field6 = other.Field6; 32417 } 32418 if (other.HasField7) { 32419 Field7 = other.Field7; 32420 } 32421 if (other.HasField8) { 32422 Field8 = other.Field8; 32423 } 32424 if (other.HasField9) { 32425 Field9 = other.Field9; 32426 } 32427 if (other.HasField10) { 32428 Field10 = other.Field10; 32429 } 32430 pb::ExtensionSet.MergeFrom(ref _extensions, other._extensions); 32431 _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); 32432 } 32433 32434 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 32435 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] MergeFrom(pb::CodedInputStream input)32436 public void MergeFrom(pb::CodedInputStream input) { 32437 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 32438 input.ReadRawMessage(this); 32439 #else 32440 uint tag; 32441 while ((tag = input.ReadTag()) != 0) { 32442 if ((tag & 7) == 4) { 32443 // Abort on any end group tag. 32444 return; 32445 } 32446 switch(tag) { 32447 default: 32448 if (!pb::ExtensionSet.TryMergeFieldFrom(ref _extensions, input)) { 32449 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); 32450 } 32451 break; 32452 case 8: { 32453 Field1 = input.ReadInt32(); 32454 break; 32455 } 32456 case 16: { 32457 Field2 = input.ReadInt32(); 32458 break; 32459 } 32460 case 24: { 32461 Field3 = input.ReadInt32(); 32462 break; 32463 } 32464 case 32: { 32465 Field4 = input.ReadInt32(); 32466 break; 32467 } 32468 case 48: { 32469 Field6 = input.ReadInt32(); 32470 break; 32471 } 32472 case 56: { 32473 Field7 = input.ReadInt32(); 32474 break; 32475 } 32476 case 64: { 32477 Field8 = input.ReadInt32(); 32478 break; 32479 } 32480 case 72: { 32481 Field9 = input.ReadInt32(); 32482 break; 32483 } 32484 case 80: { 32485 Field10 = input.ReadInt32(); 32486 break; 32487 } 32488 } 32489 } 32490 #endif 32491 } 32492 32493 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 32494 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 32495 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] IBufferMessage.InternalMergeFrom(ref pb::ParseContext input)32496 void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { 32497 uint tag; 32498 while ((tag = input.ReadTag()) != 0) { 32499 if ((tag & 7) == 4) { 32500 // Abort on any end group tag. 32501 return; 32502 } 32503 switch(tag) { 32504 default: 32505 if (!pb::ExtensionSet.TryMergeFieldFrom(ref _extensions, ref input)) { 32506 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); 32507 } 32508 break; 32509 case 8: { 32510 Field1 = input.ReadInt32(); 32511 break; 32512 } 32513 case 16: { 32514 Field2 = input.ReadInt32(); 32515 break; 32516 } 32517 case 24: { 32518 Field3 = input.ReadInt32(); 32519 break; 32520 } 32521 case 32: { 32522 Field4 = input.ReadInt32(); 32523 break; 32524 } 32525 case 48: { 32526 Field6 = input.ReadInt32(); 32527 break; 32528 } 32529 case 56: { 32530 Field7 = input.ReadInt32(); 32531 break; 32532 } 32533 case 64: { 32534 Field8 = input.ReadInt32(); 32535 break; 32536 } 32537 case 72: { 32538 Field9 = input.ReadInt32(); 32539 break; 32540 } 32541 case 80: { 32542 Field10 = input.ReadInt32(); 32543 break; 32544 } 32545 } 32546 } 32547 } 32548 #endif 32549 GetExtension(pb::Extension<TestExtensionInsideTable, TValue> extension)32550 public TValue GetExtension<TValue>(pb::Extension<TestExtensionInsideTable, TValue> extension) { 32551 return pb::ExtensionSet.Get(ref _extensions, extension); 32552 } GetExtension(pb::RepeatedExtension<TestExtensionInsideTable, TValue> extension)32553 public pbc::RepeatedField<TValue> GetExtension<TValue>(pb::RepeatedExtension<TestExtensionInsideTable, TValue> extension) { 32554 return pb::ExtensionSet.Get(ref _extensions, extension); 32555 } GetOrInitializeExtension(pb::RepeatedExtension<TestExtensionInsideTable, TValue> extension)32556 public pbc::RepeatedField<TValue> GetOrInitializeExtension<TValue>(pb::RepeatedExtension<TestExtensionInsideTable, TValue> extension) { 32557 return pb::ExtensionSet.GetOrInitialize(ref _extensions, extension); 32558 } SetExtension(pb::Extension<TestExtensionInsideTable, TValue> extension, TValue value)32559 public void SetExtension<TValue>(pb::Extension<TestExtensionInsideTable, TValue> extension, TValue value) { 32560 pb::ExtensionSet.Set(ref _extensions, extension, value); 32561 } HasExtension(pb::Extension<TestExtensionInsideTable, TValue> extension)32562 public bool HasExtension<TValue>(pb::Extension<TestExtensionInsideTable, TValue> extension) { 32563 return pb::ExtensionSet.Has(ref _extensions, extension); 32564 } ClearExtension(pb::Extension<TestExtensionInsideTable, TValue> extension)32565 public void ClearExtension<TValue>(pb::Extension<TestExtensionInsideTable, TValue> extension) { 32566 pb::ExtensionSet.Clear(ref _extensions, extension); 32567 } ClearExtension(pb::RepeatedExtension<TestExtensionInsideTable, TValue> extension)32568 public void ClearExtension<TValue>(pb::RepeatedExtension<TestExtensionInsideTable, TValue> extension) { 32569 pb::ExtensionSet.Clear(ref _extensions, extension); 32570 } 32571 32572 } 32573 32574 #endregion 32575 32576 } 32577 32578 #endregion Designer generated code 32579