1 // <auto-generated> 2 // Generated by the protocol buffer compiler. DO NOT EDIT! 3 // source: unittest_proto3.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 { 13 14 /// <summary>Holder for reflection information generated from unittest_proto3.proto</summary> 15 public static partial class UnittestProto3Reflection { 16 17 #region Descriptor 18 /// <summary>File descriptor for unittest_proto3.proto</summary> 19 public static pbr::FileDescriptor Descriptor { 20 get { return descriptor; } 21 } 22 private static pbr::FileDescriptor descriptor; 23 UnittestProto3Reflection()24 static UnittestProto3Reflection() { 25 byte[] descriptorData = global::System.Convert.FromBase64String( 26 string.Concat( 27 "ChV1bml0dGVzdF9wcm90bzMucHJvdG8SEnByb3RvYnVmX3VuaXR0ZXN0Mxoc", 28 "dW5pdHRlc3RfaW1wb3J0X3Byb3RvMy5wcm90byL5DwoMVGVzdEFsbFR5cGVz", 29 "EhQKDHNpbmdsZV9pbnQzMhgBIAEoBRIUCgxzaW5nbGVfaW50NjQYAiABKAMS", 30 "FQoNc2luZ2xlX3VpbnQzMhgDIAEoDRIVCg1zaW5nbGVfdWludDY0GAQgASgE", 31 "EhUKDXNpbmdsZV9zaW50MzIYBSABKBESFQoNc2luZ2xlX3NpbnQ2NBgGIAEo", 32 "EhIWCg5zaW5nbGVfZml4ZWQzMhgHIAEoBxIWCg5zaW5nbGVfZml4ZWQ2NBgI", 33 "IAEoBhIXCg9zaW5nbGVfc2ZpeGVkMzIYCSABKA8SFwoPc2luZ2xlX3NmaXhl", 34 "ZDY0GAogASgQEhQKDHNpbmdsZV9mbG9hdBgLIAEoAhIVCg1zaW5nbGVfZG91", 35 "YmxlGAwgASgBEhMKC3NpbmdsZV9ib29sGA0gASgIEhUKDXNpbmdsZV9zdHJp", 36 "bmcYDiABKAkSFAoMc2luZ2xlX2J5dGVzGA8gASgMEk0KFXNpbmdsZV9uZXN0", 37 "ZWRfbWVzc2FnZRgSIAEoCzIuLnByb3RvYnVmX3VuaXR0ZXN0My5UZXN0QWxs", 38 "VHlwZXMuTmVzdGVkTWVzc2FnZRJCChZzaW5nbGVfZm9yZWlnbl9tZXNzYWdl", 39 "GBMgASgLMiIucHJvdG9idWZfdW5pdHRlc3QzLkZvcmVpZ25NZXNzYWdlEkYK", 40 "FXNpbmdsZV9pbXBvcnRfbWVzc2FnZRgUIAEoCzInLnByb3RvYnVmX3VuaXR0", 41 "ZXN0X2ltcG9ydC5JbXBvcnRNZXNzYWdlEkcKEnNpbmdsZV9uZXN0ZWRfZW51", 42 "bRgVIAEoDjIrLnByb3RvYnVmX3VuaXR0ZXN0My5UZXN0QWxsVHlwZXMuTmVz", 43 "dGVkRW51bRI8ChNzaW5nbGVfZm9yZWlnbl9lbnVtGBYgASgOMh8ucHJvdG9i", 44 "dWZfdW5pdHRlc3QzLkZvcmVpZ25FbnVtEkAKEnNpbmdsZV9pbXBvcnRfZW51", 45 "bRgXIAEoDjIkLnByb3RvYnVmX3VuaXR0ZXN0X2ltcG9ydC5JbXBvcnRFbnVt", 46 "ElMKHHNpbmdsZV9wdWJsaWNfaW1wb3J0X21lc3NhZ2UYGiABKAsyLS5wcm90", 47 "b2J1Zl91bml0dGVzdF9pbXBvcnQuUHVibGljSW1wb3J0TWVzc2FnZRIWCg5y", 48 "ZXBlYXRlZF9pbnQzMhgfIAMoBRIWCg5yZXBlYXRlZF9pbnQ2NBggIAMoAxIX", 49 "Cg9yZXBlYXRlZF91aW50MzIYISADKA0SFwoPcmVwZWF0ZWRfdWludDY0GCIg", 50 "AygEEhcKD3JlcGVhdGVkX3NpbnQzMhgjIAMoERIXCg9yZXBlYXRlZF9zaW50", 51 "NjQYJCADKBISGAoQcmVwZWF0ZWRfZml4ZWQzMhglIAMoBxIYChByZXBlYXRl", 52 "ZF9maXhlZDY0GCYgAygGEhkKEXJlcGVhdGVkX3NmaXhlZDMyGCcgAygPEhkK", 53 "EXJlcGVhdGVkX3NmaXhlZDY0GCggAygQEhYKDnJlcGVhdGVkX2Zsb2F0GCkg", 54 "AygCEhcKD3JlcGVhdGVkX2RvdWJsZRgqIAMoARIVCg1yZXBlYXRlZF9ib29s", 55 "GCsgAygIEhcKD3JlcGVhdGVkX3N0cmluZxgsIAMoCRIWCg5yZXBlYXRlZF9i", 56 "eXRlcxgtIAMoDBJPChdyZXBlYXRlZF9uZXN0ZWRfbWVzc2FnZRgwIAMoCzIu", 57 "LnByb3RvYnVmX3VuaXR0ZXN0My5UZXN0QWxsVHlwZXMuTmVzdGVkTWVzc2Fn", 58 "ZRJEChhyZXBlYXRlZF9mb3JlaWduX21lc3NhZ2UYMSADKAsyIi5wcm90b2J1", 59 "Zl91bml0dGVzdDMuRm9yZWlnbk1lc3NhZ2USSAoXcmVwZWF0ZWRfaW1wb3J0", 60 "X21lc3NhZ2UYMiADKAsyJy5wcm90b2J1Zl91bml0dGVzdF9pbXBvcnQuSW1w", 61 "b3J0TWVzc2FnZRJJChRyZXBlYXRlZF9uZXN0ZWRfZW51bRgzIAMoDjIrLnBy", 62 "b3RvYnVmX3VuaXR0ZXN0My5UZXN0QWxsVHlwZXMuTmVzdGVkRW51bRI+ChVy", 63 "ZXBlYXRlZF9mb3JlaWduX2VudW0YNCADKA4yHy5wcm90b2J1Zl91bml0dGVz", 64 "dDMuRm9yZWlnbkVudW0SQgoUcmVwZWF0ZWRfaW1wb3J0X2VudW0YNSADKA4y", 65 "JC5wcm90b2J1Zl91bml0dGVzdF9pbXBvcnQuSW1wb3J0RW51bRJVCh5yZXBl", 66 "YXRlZF9wdWJsaWNfaW1wb3J0X21lc3NhZ2UYNiADKAsyLS5wcm90b2J1Zl91", 67 "bml0dGVzdF9pbXBvcnQuUHVibGljSW1wb3J0TWVzc2FnZRIWCgxvbmVvZl91", 68 "aW50MzIYbyABKA1IABJOChRvbmVvZl9uZXN0ZWRfbWVzc2FnZRhwIAEoCzIu", 69 "LnByb3RvYnVmX3VuaXR0ZXN0My5UZXN0QWxsVHlwZXMuTmVzdGVkTWVzc2Fn", 70 "ZUgAEhYKDG9uZW9mX3N0cmluZxhxIAEoCUgAEhUKC29uZW9mX2J5dGVzGHIg", 71 "ASgMSAAaGwoNTmVzdGVkTWVzc2FnZRIKCgJiYhgBIAEoBSJWCgpOZXN0ZWRF", 72 "bnVtEhsKF05FU1RFRF9FTlVNX1VOU1BFQ0lGSUVEEAASBwoDRk9PEAESBwoD", 73 "QkFSEAISBwoDQkFaEAMSEAoDTkVHEP///////////wFCDQoLb25lb2ZfZmll", 74 "bGQivgEKEk5lc3RlZFRlc3RBbGxUeXBlcxI1CgVjaGlsZBgBIAEoCzImLnBy", 75 "b3RvYnVmX3VuaXR0ZXN0My5OZXN0ZWRUZXN0QWxsVHlwZXMSMQoHcGF5bG9h", 76 "ZBgCIAEoCzIgLnByb3RvYnVmX3VuaXR0ZXN0My5UZXN0QWxsVHlwZXMSPgoO", 77 "cmVwZWF0ZWRfY2hpbGQYAyADKAsyJi5wcm90b2J1Zl91bml0dGVzdDMuTmVz", 78 "dGVkVGVzdEFsbFR5cGVzIjQKFFRlc3REZXByZWNhdGVkRmllbGRzEhwKEGRl", 79 "cHJlY2F0ZWRfaW50MzIYASABKAVCAhgBIhsKDkZvcmVpZ25NZXNzYWdlEgkK", 80 "AWMYASABKAUiMAoSVGVzdFJlc2VydmVkRmllbGRzSgQIAhADSgQIDxAQSgQI", 81 "CRAMUgNiYXJSA2JheiJbChFUZXN0Rm9yZWlnbk5lc3RlZBJGCg5mb3JlaWdu", 82 "X25lc3RlZBgBIAEoCzIuLnByb3RvYnVmX3VuaXR0ZXN0My5UZXN0QWxsVHlw", 83 "ZXMuTmVzdGVkTWVzc2FnZSI0ChhUZXN0UmVhbGx5TGFyZ2VUYWdOdW1iZXIS", 84 "CQoBYRgBIAEoBRINCgJiYhj///9/IAEoBSJWChRUZXN0UmVjdXJzaXZlTWVz", 85 "c2FnZRIzCgFhGAEgASgLMigucHJvdG9idWZfdW5pdHRlc3QzLlRlc3RSZWN1", 86 "cnNpdmVNZXNzYWdlEgkKAWkYAiABKAUiTAoUVGVzdE11dHVhbFJlY3Vyc2lv", 87 "bkESNAoCYmIYASABKAsyKC5wcm90b2J1Zl91bml0dGVzdDMuVGVzdE11dHVh", 88 "bFJlY3Vyc2lvbkIiYwoUVGVzdE11dHVhbFJlY3Vyc2lvbkISMwoBYRgBIAEo", 89 "CzIoLnByb3RvYnVmX3VuaXR0ZXN0My5UZXN0TXV0dWFsUmVjdXJzaW9uQRIW", 90 "Cg5vcHRpb25hbF9pbnQzMhgCIAEoBSJNChJUZXN0RW51bUFsbG93QWxpYXMS", 91 "NwoFdmFsdWUYASABKA4yKC5wcm90b2J1Zl91bml0dGVzdDMuVGVzdEVudW1X", 92 "aXRoRHVwVmFsdWUi7wIKF1Rlc3RDYW1lbENhc2VGaWVsZE5hbWVzEhYKDlBy", 93 "aW1pdGl2ZUZpZWxkGAEgASgFEhMKC1N0cmluZ0ZpZWxkGAIgASgJEjIKCUVu", 94 "dW1GaWVsZBgDIAEoDjIfLnByb3RvYnVmX3VuaXR0ZXN0My5Gb3JlaWduRW51", 95 "bRI4CgxNZXNzYWdlRmllbGQYBCABKAsyIi5wcm90b2J1Zl91bml0dGVzdDMu", 96 "Rm9yZWlnbk1lc3NhZ2USHgoWUmVwZWF0ZWRQcmltaXRpdmVGaWVsZBgHIAMo", 97 "BRIbChNSZXBlYXRlZFN0cmluZ0ZpZWxkGAggAygJEjoKEVJlcGVhdGVkRW51", 98 "bUZpZWxkGAkgAygOMh8ucHJvdG9idWZfdW5pdHRlc3QzLkZvcmVpZ25FbnVt", 99 "EkAKFFJlcGVhdGVkTWVzc2FnZUZpZWxkGAogAygLMiIucHJvdG9idWZfdW5p", 100 "dHRlc3QzLkZvcmVpZ25NZXNzYWdlIsgBChJUZXN0RmllbGRPcmRlcmluZ3MS", 101 "EQoJbXlfc3RyaW5nGAsgASgJEg4KBm15X2ludBgBIAEoAxIQCghteV9mbG9h", 102 "dBhlIAEoAhJUChVzaW5nbGVfbmVzdGVkX21lc3NhZ2UYyAEgASgLMjQucHJv", 103 "dG9idWZfdW5pdHRlc3QzLlRlc3RGaWVsZE9yZGVyaW5ncy5OZXN0ZWRNZXNz", 104 "YWdlGicKDU5lc3RlZE1lc3NhZ2USCgoCb28YAiABKAMSCgoCYmIYASABKAUi", 105 "TAoRU3BhcnNlRW51bU1lc3NhZ2USNwoLc3BhcnNlX2VudW0YASABKA4yIi5w", 106 "cm90b2J1Zl91bml0dGVzdDMuVGVzdFNwYXJzZUVudW0iGQoJT25lU3RyaW5n", 107 "EgwKBGRhdGEYASABKAkiGgoKTW9yZVN0cmluZxIMCgRkYXRhGAEgAygJIhgK", 108 "CE9uZUJ5dGVzEgwKBGRhdGEYASABKAwiGQoJTW9yZUJ5dGVzEgwKBGRhdGEY", 109 "ASABKAwiHAoMSW50MzJNZXNzYWdlEgwKBGRhdGEYASABKAUiHQoNVWludDMy", 110 "TWVzc2FnZRIMCgRkYXRhGAEgASgNIhwKDEludDY0TWVzc2FnZRIMCgRkYXRh", 111 "GAEgASgDIh0KDVVpbnQ2NE1lc3NhZ2USDAoEZGF0YRgBIAEoBCIbCgtCb29s", 112 "TWVzc2FnZRIMCgRkYXRhGAEgASgIInQKCVRlc3RPbmVvZhIRCgdmb29faW50", 113 "GAEgASgFSAASFAoKZm9vX3N0cmluZxgCIAEoCUgAEjcKC2Zvb19tZXNzYWdl", 114 "GAMgASgLMiAucHJvdG9idWZfdW5pdHRlc3QzLlRlc3RBbGxUeXBlc0gAQgUK", 115 "A2ZvbyKrAwoPVGVzdFBhY2tlZFR5cGVzEhgKDHBhY2tlZF9pbnQzMhhaIAMo", 116 "BUICEAESGAoMcGFja2VkX2ludDY0GFsgAygDQgIQARIZCg1wYWNrZWRfdWlu", 117 "dDMyGFwgAygNQgIQARIZCg1wYWNrZWRfdWludDY0GF0gAygEQgIQARIZCg1w", 118 "YWNrZWRfc2ludDMyGF4gAygRQgIQARIZCg1wYWNrZWRfc2ludDY0GF8gAygS", 119 "QgIQARIaCg5wYWNrZWRfZml4ZWQzMhhgIAMoB0ICEAESGgoOcGFja2VkX2Zp", 120 "eGVkNjQYYSADKAZCAhABEhsKD3BhY2tlZF9zZml4ZWQzMhhiIAMoD0ICEAES", 121 "GwoPcGFja2VkX3NmaXhlZDY0GGMgAygQQgIQARIYCgxwYWNrZWRfZmxvYXQY", 122 "ZCADKAJCAhABEhkKDXBhY2tlZF9kb3VibGUYZSADKAFCAhABEhcKC3BhY2tl", 123 "ZF9ib29sGGYgAygIQgIQARI4CgtwYWNrZWRfZW51bRhnIAMoDjIfLnByb3Rv", 124 "YnVmX3VuaXR0ZXN0My5Gb3JlaWduRW51bUICEAEiyQMKEVRlc3RVbnBhY2tl", 125 "ZFR5cGVzEhoKDnVucGFja2VkX2ludDMyGFogAygFQgIQABIaCg51bnBhY2tl", 126 "ZF9pbnQ2NBhbIAMoA0ICEAASGwoPdW5wYWNrZWRfdWludDMyGFwgAygNQgIQ", 127 "ABIbCg91bnBhY2tlZF91aW50NjQYXSADKARCAhAAEhsKD3VucGFja2VkX3Np", 128 "bnQzMhheIAMoEUICEAASGwoPdW5wYWNrZWRfc2ludDY0GF8gAygSQgIQABIc", 129 "ChB1bnBhY2tlZF9maXhlZDMyGGAgAygHQgIQABIcChB1bnBhY2tlZF9maXhl", 130 "ZDY0GGEgAygGQgIQABIdChF1bnBhY2tlZF9zZml4ZWQzMhhiIAMoD0ICEAAS", 131 "HQoRdW5wYWNrZWRfc2ZpeGVkNjQYYyADKBBCAhAAEhoKDnVucGFja2VkX2Zs", 132 "b2F0GGQgAygCQgIQABIbCg91bnBhY2tlZF9kb3VibGUYZSADKAFCAhAAEhkK", 133 "DXVucGFja2VkX2Jvb2wYZiADKAhCAhAAEjoKDXVucGFja2VkX2VudW0YZyAD", 134 "KA4yHy5wcm90b2J1Zl91bml0dGVzdDMuRm9yZWlnbkVudW1CAhAAIsABCiNU", 135 "ZXN0UmVwZWF0ZWRTY2FsYXJEaWZmZXJlbnRUYWdTaXplcxIYChByZXBlYXRl", 136 "ZF9maXhlZDMyGAwgAygHEhYKDnJlcGVhdGVkX2ludDMyGA0gAygFEhkKEHJl", 137 "cGVhdGVkX2ZpeGVkNjQY/g8gAygGEhcKDnJlcGVhdGVkX2ludDY0GP8PIAMo", 138 "AxIYCg5yZXBlYXRlZF9mbG9hdBj+/w8gAygCEhkKD3JlcGVhdGVkX3VpbnQ2", 139 "NBj//w8gAygEIigKG1Rlc3RDb21tZW50SW5qZWN0aW9uTWVzc2FnZRIJCgFh", 140 "GAEgASgJIgwKCkZvb1JlcXVlc3QiDQoLRm9vUmVzcG9uc2UiEgoQRm9vQ2xp", 141 "ZW50TWVzc2FnZSISChBGb29TZXJ2ZXJNZXNzYWdlIgwKCkJhclJlcXVlc3Qi", 142 "DQoLQmFyUmVzcG9uc2UiEgoQVGVzdEVtcHR5TWVzc2FnZSJwCg5Db21tZW50", 143 "TWVzc2FnZRIMCgR0ZXh0GAEgASgJGisKFE5lc3RlZENvbW1lbnRNZXNzYWdl", 144 "EhMKC25lc3RlZF90ZXh0GAEgASgJIiMKEU5lc3RlZENvbW1lbnRFbnVtEg4K", 145 "ClpFUk9fVkFMVUUQACpZCgtGb3JlaWduRW51bRIXChNGT1JFSUdOX1VOU1BF", 146 "Q0lGSUVEEAASDwoLRk9SRUlHTl9GT08QBBIPCgtGT1JFSUdOX0JBUhAFEg8K", 147 "C0ZPUkVJR05fQkFaEAYqdQoUVGVzdEVudW1XaXRoRHVwVmFsdWUSKAokVEVT", 148 "VF9FTlVNX1dJVEhfRFVQX1ZBTFVFX1VOU1BFQ0lGSUVEEAASCAoERk9PMRAB", 149 "EggKBEJBUjEQAhIHCgNCQVoQAxIICgRGT08yEAESCAoEQkFSMhACGgIQASqd", 150 "AQoOVGVzdFNwYXJzZUVudW0SIAocVEVTVF9TUEFSU0VfRU5VTV9VTlNQRUNJ", 151 "RklFRBAAEgwKCFNQQVJTRV9BEHsSDgoIU1BBUlNFX0IQpucDEg8KCFNQQVJT", 152 "RV9DELKxgAYSFQoIU1BBUlNFX0QQ8f//////////ARIVCghTUEFSU0VfRRC0", 153 "3vz///////8BEgwKCFNQQVJTRV9HEAIqHQoLQ29tbWVudEVudW0SDgoKWkVS", 154 "T19WQUxVRRAAMp0BCgtUZXN0U2VydmljZRJGCgNGb28SHi5wcm90b2J1Zl91", 155 "bml0dGVzdDMuRm9vUmVxdWVzdBofLnByb3RvYnVmX3VuaXR0ZXN0My5Gb29S", 156 "ZXNwb25zZRJGCgNCYXISHi5wcm90b2J1Zl91bml0dGVzdDMuQmFyUmVxdWVz", 157 "dBofLnByb3RvYnVmX3VuaXR0ZXN0My5CYXJSZXNwb25zZUIsQg1Vbml0dGVz", 158 "dFByb3RvqgIaR29vZ2xlLlByb3RvYnVmLlRlc3RQcm90b3NiBnByb3RvMw==")); 159 descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, 160 new pbr::FileDescriptor[] { global::Google.Protobuf.TestProtos.UnittestImportProto3Reflection.Descriptor, }, 161 new pbr::GeneratedClrTypeInfo(new[] {typeof(global::Google.Protobuf.TestProtos.ForeignEnum), typeof(global::Google.Protobuf.TestProtos.TestEnumWithDupValue), typeof(global::Google.Protobuf.TestProtos.TestSparseEnum), typeof(global::Google.Protobuf.TestProtos.CommentEnum), }, null, new pbr::GeneratedClrTypeInfo[] { 162 new pbr::GeneratedClrTypeInfo(typeof(global::Google.Protobuf.TestProtos.TestAllTypes), global::Google.Protobuf.TestProtos.TestAllTypes.Parser, new[]{ "SingleInt32", "SingleInt64", "SingleUint32", "SingleUint64", "SingleSint32", "SingleSint64", "SingleFixed32", "SingleFixed64", "SingleSfixed32", "SingleSfixed64", "SingleFloat", "SingleDouble", "SingleBool", "SingleString", "SingleBytes", "SingleNestedMessage", "SingleForeignMessage", "SingleImportMessage", "SingleNestedEnum", "SingleForeignEnum", "SingleImportEnum", "SinglePublicImportMessage", "RepeatedInt32", "RepeatedInt64", "RepeatedUint32", "RepeatedUint64", "RepeatedSint32", "RepeatedSint64", "RepeatedFixed32", "RepeatedFixed64", "RepeatedSfixed32", "RepeatedSfixed64", "RepeatedFloat", "RepeatedDouble", "RepeatedBool", "RepeatedString", "RepeatedBytes", "RepeatedNestedMessage", "RepeatedForeignMessage", "RepeatedImportMessage", "RepeatedNestedEnum", "RepeatedForeignEnum", "RepeatedImportEnum", "RepeatedPublicImportMessage", "OneofUint32", "OneofNestedMessage", "OneofString", "OneofBytes" }, new[]{ "OneofField" }, new[]{ typeof(global::Google.Protobuf.TestProtos.TestAllTypes.Types.NestedEnum) }, null, new pbr::GeneratedClrTypeInfo[] { new pbr::GeneratedClrTypeInfo(typeof(global::Google.Protobuf.TestProtos.TestAllTypes.Types.NestedMessage), global::Google.Protobuf.TestProtos.TestAllTypes.Types.NestedMessage.Parser, new[]{ "Bb" }, null, null, null, null)}), 163 new pbr::GeneratedClrTypeInfo(typeof(global::Google.Protobuf.TestProtos.NestedTestAllTypes), global::Google.Protobuf.TestProtos.NestedTestAllTypes.Parser, new[]{ "Child", "Payload", "RepeatedChild" }, null, null, null, null), 164 new pbr::GeneratedClrTypeInfo(typeof(global::Google.Protobuf.TestProtos.TestDeprecatedFields), global::Google.Protobuf.TestProtos.TestDeprecatedFields.Parser, new[]{ "DeprecatedInt32" }, null, null, null, null), 165 new pbr::GeneratedClrTypeInfo(typeof(global::Google.Protobuf.TestProtos.ForeignMessage), global::Google.Protobuf.TestProtos.ForeignMessage.Parser, new[]{ "C" }, null, null, null, null), 166 new pbr::GeneratedClrTypeInfo(typeof(global::Google.Protobuf.TestProtos.TestReservedFields), global::Google.Protobuf.TestProtos.TestReservedFields.Parser, null, null, null, null, null), 167 new pbr::GeneratedClrTypeInfo(typeof(global::Google.Protobuf.TestProtos.TestForeignNested), global::Google.Protobuf.TestProtos.TestForeignNested.Parser, new[]{ "ForeignNested" }, null, null, null, null), 168 new pbr::GeneratedClrTypeInfo(typeof(global::Google.Protobuf.TestProtos.TestReallyLargeTagNumber), global::Google.Protobuf.TestProtos.TestReallyLargeTagNumber.Parser, new[]{ "A", "Bb" }, null, null, null, null), 169 new pbr::GeneratedClrTypeInfo(typeof(global::Google.Protobuf.TestProtos.TestRecursiveMessage), global::Google.Protobuf.TestProtos.TestRecursiveMessage.Parser, new[]{ "A", "I" }, null, null, null, null), 170 new pbr::GeneratedClrTypeInfo(typeof(global::Google.Protobuf.TestProtos.TestMutualRecursionA), global::Google.Protobuf.TestProtos.TestMutualRecursionA.Parser, new[]{ "Bb" }, null, null, null, null), 171 new pbr::GeneratedClrTypeInfo(typeof(global::Google.Protobuf.TestProtos.TestMutualRecursionB), global::Google.Protobuf.TestProtos.TestMutualRecursionB.Parser, new[]{ "A", "OptionalInt32" }, null, null, null, null), 172 new pbr::GeneratedClrTypeInfo(typeof(global::Google.Protobuf.TestProtos.TestEnumAllowAlias), global::Google.Protobuf.TestProtos.TestEnumAllowAlias.Parser, new[]{ "Value" }, null, null, null, null), 173 new pbr::GeneratedClrTypeInfo(typeof(global::Google.Protobuf.TestProtos.TestCamelCaseFieldNames), global::Google.Protobuf.TestProtos.TestCamelCaseFieldNames.Parser, new[]{ "PrimitiveField", "StringField", "EnumField", "MessageField", "RepeatedPrimitiveField", "RepeatedStringField", "RepeatedEnumField", "RepeatedMessageField" }, null, null, null, null), 174 new pbr::GeneratedClrTypeInfo(typeof(global::Google.Protobuf.TestProtos.TestFieldOrderings), global::Google.Protobuf.TestProtos.TestFieldOrderings.Parser, new[]{ "MyString", "MyInt", "MyFloat", "SingleNestedMessage" }, null, null, null, new pbr::GeneratedClrTypeInfo[] { new pbr::GeneratedClrTypeInfo(typeof(global::Google.Protobuf.TestProtos.TestFieldOrderings.Types.NestedMessage), global::Google.Protobuf.TestProtos.TestFieldOrderings.Types.NestedMessage.Parser, new[]{ "Oo", "Bb" }, null, null, null, null)}), 175 new pbr::GeneratedClrTypeInfo(typeof(global::Google.Protobuf.TestProtos.SparseEnumMessage), global::Google.Protobuf.TestProtos.SparseEnumMessage.Parser, new[]{ "SparseEnum" }, null, null, null, null), 176 new pbr::GeneratedClrTypeInfo(typeof(global::Google.Protobuf.TestProtos.OneString), global::Google.Protobuf.TestProtos.OneString.Parser, new[]{ "Data" }, null, null, null, null), 177 new pbr::GeneratedClrTypeInfo(typeof(global::Google.Protobuf.TestProtos.MoreString), global::Google.Protobuf.TestProtos.MoreString.Parser, new[]{ "Data" }, null, null, null, null), 178 new pbr::GeneratedClrTypeInfo(typeof(global::Google.Protobuf.TestProtos.OneBytes), global::Google.Protobuf.TestProtos.OneBytes.Parser, new[]{ "Data" }, null, null, null, null), 179 new pbr::GeneratedClrTypeInfo(typeof(global::Google.Protobuf.TestProtos.MoreBytes), global::Google.Protobuf.TestProtos.MoreBytes.Parser, new[]{ "Data" }, null, null, null, null), 180 new pbr::GeneratedClrTypeInfo(typeof(global::Google.Protobuf.TestProtos.Int32Message), global::Google.Protobuf.TestProtos.Int32Message.Parser, new[]{ "Data" }, null, null, null, null), 181 new pbr::GeneratedClrTypeInfo(typeof(global::Google.Protobuf.TestProtos.Uint32Message), global::Google.Protobuf.TestProtos.Uint32Message.Parser, new[]{ "Data" }, null, null, null, null), 182 new pbr::GeneratedClrTypeInfo(typeof(global::Google.Protobuf.TestProtos.Int64Message), global::Google.Protobuf.TestProtos.Int64Message.Parser, new[]{ "Data" }, null, null, null, null), 183 new pbr::GeneratedClrTypeInfo(typeof(global::Google.Protobuf.TestProtos.Uint64Message), global::Google.Protobuf.TestProtos.Uint64Message.Parser, new[]{ "Data" }, null, null, null, null), 184 new pbr::GeneratedClrTypeInfo(typeof(global::Google.Protobuf.TestProtos.BoolMessage), global::Google.Protobuf.TestProtos.BoolMessage.Parser, new[]{ "Data" }, null, null, null, null), 185 new pbr::GeneratedClrTypeInfo(typeof(global::Google.Protobuf.TestProtos.TestOneof), global::Google.Protobuf.TestProtos.TestOneof.Parser, new[]{ "FooInt", "FooString", "FooMessage" }, new[]{ "Foo" }, null, null, null), 186 new pbr::GeneratedClrTypeInfo(typeof(global::Google.Protobuf.TestProtos.TestPackedTypes), global::Google.Protobuf.TestProtos.TestPackedTypes.Parser, new[]{ "PackedInt32", "PackedInt64", "PackedUint32", "PackedUint64", "PackedSint32", "PackedSint64", "PackedFixed32", "PackedFixed64", "PackedSfixed32", "PackedSfixed64", "PackedFloat", "PackedDouble", "PackedBool", "PackedEnum" }, null, null, null, null), 187 new pbr::GeneratedClrTypeInfo(typeof(global::Google.Protobuf.TestProtos.TestUnpackedTypes), global::Google.Protobuf.TestProtos.TestUnpackedTypes.Parser, new[]{ "UnpackedInt32", "UnpackedInt64", "UnpackedUint32", "UnpackedUint64", "UnpackedSint32", "UnpackedSint64", "UnpackedFixed32", "UnpackedFixed64", "UnpackedSfixed32", "UnpackedSfixed64", "UnpackedFloat", "UnpackedDouble", "UnpackedBool", "UnpackedEnum" }, null, null, null, null), 188 new pbr::GeneratedClrTypeInfo(typeof(global::Google.Protobuf.TestProtos.TestRepeatedScalarDifferentTagSizes), global::Google.Protobuf.TestProtos.TestRepeatedScalarDifferentTagSizes.Parser, new[]{ "RepeatedFixed32", "RepeatedInt32", "RepeatedFixed64", "RepeatedInt64", "RepeatedFloat", "RepeatedUint64" }, null, null, null, null), 189 new pbr::GeneratedClrTypeInfo(typeof(global::Google.Protobuf.TestProtos.TestCommentInjectionMessage), global::Google.Protobuf.TestProtos.TestCommentInjectionMessage.Parser, new[]{ "A" }, null, null, null, null), 190 new pbr::GeneratedClrTypeInfo(typeof(global::Google.Protobuf.TestProtos.FooRequest), global::Google.Protobuf.TestProtos.FooRequest.Parser, null, null, null, null, null), 191 new pbr::GeneratedClrTypeInfo(typeof(global::Google.Protobuf.TestProtos.FooResponse), global::Google.Protobuf.TestProtos.FooResponse.Parser, null, null, null, null, null), 192 new pbr::GeneratedClrTypeInfo(typeof(global::Google.Protobuf.TestProtos.FooClientMessage), global::Google.Protobuf.TestProtos.FooClientMessage.Parser, null, null, null, null, null), 193 new pbr::GeneratedClrTypeInfo(typeof(global::Google.Protobuf.TestProtos.FooServerMessage), global::Google.Protobuf.TestProtos.FooServerMessage.Parser, null, null, null, null, null), 194 new pbr::GeneratedClrTypeInfo(typeof(global::Google.Protobuf.TestProtos.BarRequest), global::Google.Protobuf.TestProtos.BarRequest.Parser, null, null, null, null, null), 195 new pbr::GeneratedClrTypeInfo(typeof(global::Google.Protobuf.TestProtos.BarResponse), global::Google.Protobuf.TestProtos.BarResponse.Parser, null, null, null, null, null), 196 new pbr::GeneratedClrTypeInfo(typeof(global::Google.Protobuf.TestProtos.TestEmptyMessage), global::Google.Protobuf.TestProtos.TestEmptyMessage.Parser, null, null, null, null, null), 197 new pbr::GeneratedClrTypeInfo(typeof(global::Google.Protobuf.TestProtos.CommentMessage), global::Google.Protobuf.TestProtos.CommentMessage.Parser, new[]{ "Text" }, null, new[]{ typeof(global::Google.Protobuf.TestProtos.CommentMessage.Types.NestedCommentEnum) }, null, new pbr::GeneratedClrTypeInfo[] { new pbr::GeneratedClrTypeInfo(typeof(global::Google.Protobuf.TestProtos.CommentMessage.Types.NestedCommentMessage), global::Google.Protobuf.TestProtos.CommentMessage.Types.NestedCommentMessage.Parser, new[]{ "NestedText" }, null, null, null, null)}) 198 })); 199 } 200 #endregion 201 202 } 203 #region Enums 204 public enum ForeignEnum { 205 [pbr::OriginalName("FOREIGN_UNSPECIFIED")] ForeignUnspecified = 0, 206 [pbr::OriginalName("FOREIGN_FOO")] ForeignFoo = 4, 207 [pbr::OriginalName("FOREIGN_BAR")] ForeignBar = 5, 208 [pbr::OriginalName("FOREIGN_BAZ")] ForeignBaz = 6, 209 } 210 211 /// <summary> 212 /// Test an enum that has multiple values with the same number. 213 /// </summary> 214 public enum TestEnumWithDupValue { 215 [pbr::OriginalName("TEST_ENUM_WITH_DUP_VALUE_UNSPECIFIED")] Unspecified = 0, 216 [pbr::OriginalName("FOO1")] Foo1 = 1, 217 [pbr::OriginalName("BAR1")] Bar1 = 2, 218 [pbr::OriginalName("BAZ")] Baz = 3, 219 [pbr::OriginalName("FOO2", PreferredAlias = false)] Foo2 = 1, 220 [pbr::OriginalName("BAR2", PreferredAlias = false)] Bar2 = 2, 221 } 222 223 /// <summary> 224 /// Test an enum with large, unordered values. 225 /// </summary> 226 public enum TestSparseEnum { 227 [pbr::OriginalName("TEST_SPARSE_ENUM_UNSPECIFIED")] Unspecified = 0, 228 [pbr::OriginalName("SPARSE_A")] SparseA = 123, 229 [pbr::OriginalName("SPARSE_B")] SparseB = 62374, 230 [pbr::OriginalName("SPARSE_C")] SparseC = 12589234, 231 [pbr::OriginalName("SPARSE_D")] SparseD = -15, 232 [pbr::OriginalName("SPARSE_E")] SparseE = -53452, 233 /// <summary> 234 /// In proto3, value 0 must be the first one specified 235 /// SPARSE_F = 0; 236 /// </summary> 237 [pbr::OriginalName("SPARSE_G")] SparseG = 2, 238 } 239 240 /// <summary> 241 /// Leading enum comment 242 /// </summary> 243 public enum CommentEnum { 244 /// <summary> 245 /// Zero value comment 246 /// </summary> 247 [pbr::OriginalName("ZERO_VALUE")] ZeroValue = 0, 248 } 249 250 #endregion 251 252 #region Messages 253 /// <summary> 254 /// This proto includes every type of field in both singular and repeated 255 /// forms. 256 /// </summary> 257 public sealed partial class TestAllTypes : pb::IMessage<TestAllTypes> 258 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 259 , pb::IBufferMessage 260 #endif 261 { 262 private static readonly pb::MessageParser<TestAllTypes> _parser = new pb::MessageParser<TestAllTypes>(() => new TestAllTypes()); 263 private pb::UnknownFieldSet _unknownFields; 264 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 265 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 266 public static pb::MessageParser<TestAllTypes> Parser { get { return _parser; } } 267 268 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 269 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 270 public static pbr::MessageDescriptor Descriptor { 271 get { return global::Google.Protobuf.TestProtos.UnittestProto3Reflection.Descriptor.MessageTypes[0]; } 272 } 273 274 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 275 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 276 pbr::MessageDescriptor pb::IMessage.Descriptor { 277 get { return Descriptor; } 278 } 279 280 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 281 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] TestAllTypes()282 public TestAllTypes() { 283 OnConstruction(); 284 } 285 OnConstruction()286 partial void OnConstruction(); 287 288 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 289 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] TestAllTypes(TestAllTypes other)290 public TestAllTypes(TestAllTypes other) : this() { 291 singleInt32_ = other.singleInt32_; 292 singleInt64_ = other.singleInt64_; 293 singleUint32_ = other.singleUint32_; 294 singleUint64_ = other.singleUint64_; 295 singleSint32_ = other.singleSint32_; 296 singleSint64_ = other.singleSint64_; 297 singleFixed32_ = other.singleFixed32_; 298 singleFixed64_ = other.singleFixed64_; 299 singleSfixed32_ = other.singleSfixed32_; 300 singleSfixed64_ = other.singleSfixed64_; 301 singleFloat_ = other.singleFloat_; 302 singleDouble_ = other.singleDouble_; 303 singleBool_ = other.singleBool_; 304 singleString_ = other.singleString_; 305 singleBytes_ = other.singleBytes_; 306 singleNestedMessage_ = other.singleNestedMessage_ != null ? other.singleNestedMessage_.Clone() : null; 307 singleForeignMessage_ = other.singleForeignMessage_ != null ? other.singleForeignMessage_.Clone() : null; 308 singleImportMessage_ = other.singleImportMessage_ != null ? other.singleImportMessage_.Clone() : null; 309 singleNestedEnum_ = other.singleNestedEnum_; 310 singleForeignEnum_ = other.singleForeignEnum_; 311 singleImportEnum_ = other.singleImportEnum_; 312 singlePublicImportMessage_ = other.singlePublicImportMessage_ != null ? other.singlePublicImportMessage_.Clone() : null; 313 repeatedInt32_ = other.repeatedInt32_.Clone(); 314 repeatedInt64_ = other.repeatedInt64_.Clone(); 315 repeatedUint32_ = other.repeatedUint32_.Clone(); 316 repeatedUint64_ = other.repeatedUint64_.Clone(); 317 repeatedSint32_ = other.repeatedSint32_.Clone(); 318 repeatedSint64_ = other.repeatedSint64_.Clone(); 319 repeatedFixed32_ = other.repeatedFixed32_.Clone(); 320 repeatedFixed64_ = other.repeatedFixed64_.Clone(); 321 repeatedSfixed32_ = other.repeatedSfixed32_.Clone(); 322 repeatedSfixed64_ = other.repeatedSfixed64_.Clone(); 323 repeatedFloat_ = other.repeatedFloat_.Clone(); 324 repeatedDouble_ = other.repeatedDouble_.Clone(); 325 repeatedBool_ = other.repeatedBool_.Clone(); 326 repeatedString_ = other.repeatedString_.Clone(); 327 repeatedBytes_ = other.repeatedBytes_.Clone(); 328 repeatedNestedMessage_ = other.repeatedNestedMessage_.Clone(); 329 repeatedForeignMessage_ = other.repeatedForeignMessage_.Clone(); 330 repeatedImportMessage_ = other.repeatedImportMessage_.Clone(); 331 repeatedNestedEnum_ = other.repeatedNestedEnum_.Clone(); 332 repeatedForeignEnum_ = other.repeatedForeignEnum_.Clone(); 333 repeatedImportEnum_ = other.repeatedImportEnum_.Clone(); 334 repeatedPublicImportMessage_ = other.repeatedPublicImportMessage_.Clone(); 335 switch (other.OneofFieldCase) { 336 case OneofFieldOneofCase.OneofUint32: 337 OneofUint32 = other.OneofUint32; 338 break; 339 case OneofFieldOneofCase.OneofNestedMessage: 340 OneofNestedMessage = other.OneofNestedMessage.Clone(); 341 break; 342 case OneofFieldOneofCase.OneofString: 343 OneofString = other.OneofString; 344 break; 345 case OneofFieldOneofCase.OneofBytes: 346 OneofBytes = other.OneofBytes; 347 break; 348 } 349 350 _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); 351 } 352 353 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 354 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] Clone()355 public TestAllTypes Clone() { 356 return new TestAllTypes(this); 357 } 358 359 /// <summary>Field number for the "single_int32" field.</summary> 360 public const int SingleInt32FieldNumber = 1; 361 private int singleInt32_; 362 /// <summary> 363 /// Singular 364 /// </summary> 365 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 366 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 367 public int SingleInt32 { 368 get { return singleInt32_; } 369 set { 370 singleInt32_ = value; 371 } 372 } 373 374 /// <summary>Field number for the "single_int64" field.</summary> 375 public const int SingleInt64FieldNumber = 2; 376 private long singleInt64_; 377 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 378 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 379 public long SingleInt64 { 380 get { return singleInt64_; } 381 set { 382 singleInt64_ = value; 383 } 384 } 385 386 /// <summary>Field number for the "single_uint32" field.</summary> 387 public const int SingleUint32FieldNumber = 3; 388 private uint singleUint32_; 389 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 390 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 391 public uint SingleUint32 { 392 get { return singleUint32_; } 393 set { 394 singleUint32_ = value; 395 } 396 } 397 398 /// <summary>Field number for the "single_uint64" field.</summary> 399 public const int SingleUint64FieldNumber = 4; 400 private ulong singleUint64_; 401 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 402 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 403 public ulong SingleUint64 { 404 get { return singleUint64_; } 405 set { 406 singleUint64_ = value; 407 } 408 } 409 410 /// <summary>Field number for the "single_sint32" field.</summary> 411 public const int SingleSint32FieldNumber = 5; 412 private int singleSint32_; 413 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 414 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 415 public int SingleSint32 { 416 get { return singleSint32_; } 417 set { 418 singleSint32_ = value; 419 } 420 } 421 422 /// <summary>Field number for the "single_sint64" field.</summary> 423 public const int SingleSint64FieldNumber = 6; 424 private long singleSint64_; 425 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 426 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 427 public long SingleSint64 { 428 get { return singleSint64_; } 429 set { 430 singleSint64_ = value; 431 } 432 } 433 434 /// <summary>Field number for the "single_fixed32" field.</summary> 435 public const int SingleFixed32FieldNumber = 7; 436 private uint singleFixed32_; 437 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 438 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 439 public uint SingleFixed32 { 440 get { return singleFixed32_; } 441 set { 442 singleFixed32_ = value; 443 } 444 } 445 446 /// <summary>Field number for the "single_fixed64" field.</summary> 447 public const int SingleFixed64FieldNumber = 8; 448 private ulong singleFixed64_; 449 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 450 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 451 public ulong SingleFixed64 { 452 get { return singleFixed64_; } 453 set { 454 singleFixed64_ = value; 455 } 456 } 457 458 /// <summary>Field number for the "single_sfixed32" field.</summary> 459 public const int SingleSfixed32FieldNumber = 9; 460 private int singleSfixed32_; 461 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 462 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 463 public int SingleSfixed32 { 464 get { return singleSfixed32_; } 465 set { 466 singleSfixed32_ = value; 467 } 468 } 469 470 /// <summary>Field number for the "single_sfixed64" field.</summary> 471 public const int SingleSfixed64FieldNumber = 10; 472 private long singleSfixed64_; 473 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 474 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 475 public long SingleSfixed64 { 476 get { return singleSfixed64_; } 477 set { 478 singleSfixed64_ = value; 479 } 480 } 481 482 /// <summary>Field number for the "single_float" field.</summary> 483 public const int SingleFloatFieldNumber = 11; 484 private float singleFloat_; 485 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 486 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 487 public float SingleFloat { 488 get { return singleFloat_; } 489 set { 490 singleFloat_ = value; 491 } 492 } 493 494 /// <summary>Field number for the "single_double" field.</summary> 495 public const int SingleDoubleFieldNumber = 12; 496 private double singleDouble_; 497 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 498 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 499 public double SingleDouble { 500 get { return singleDouble_; } 501 set { 502 singleDouble_ = value; 503 } 504 } 505 506 /// <summary>Field number for the "single_bool" field.</summary> 507 public const int SingleBoolFieldNumber = 13; 508 private bool singleBool_; 509 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 510 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 511 public bool SingleBool { 512 get { return singleBool_; } 513 set { 514 singleBool_ = value; 515 } 516 } 517 518 /// <summary>Field number for the "single_string" field.</summary> 519 public const int SingleStringFieldNumber = 14; 520 private string singleString_ = ""; 521 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 522 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 523 public string SingleString { 524 get { return singleString_; } 525 set { 526 singleString_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); 527 } 528 } 529 530 /// <summary>Field number for the "single_bytes" field.</summary> 531 public const int SingleBytesFieldNumber = 15; 532 private pb::ByteString singleBytes_ = pb::ByteString.Empty; 533 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 534 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 535 public pb::ByteString SingleBytes { 536 get { return singleBytes_; } 537 set { 538 singleBytes_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); 539 } 540 } 541 542 /// <summary>Field number for the "single_nested_message" field.</summary> 543 public const int SingleNestedMessageFieldNumber = 18; 544 private global::Google.Protobuf.TestProtos.TestAllTypes.Types.NestedMessage singleNestedMessage_; 545 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 546 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 547 public global::Google.Protobuf.TestProtos.TestAllTypes.Types.NestedMessage SingleNestedMessage { 548 get { return singleNestedMessage_; } 549 set { 550 singleNestedMessage_ = value; 551 } 552 } 553 554 /// <summary>Field number for the "single_foreign_message" field.</summary> 555 public const int SingleForeignMessageFieldNumber = 19; 556 private global::Google.Protobuf.TestProtos.ForeignMessage singleForeignMessage_; 557 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 558 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 559 public global::Google.Protobuf.TestProtos.ForeignMessage SingleForeignMessage { 560 get { return singleForeignMessage_; } 561 set { 562 singleForeignMessage_ = value; 563 } 564 } 565 566 /// <summary>Field number for the "single_import_message" field.</summary> 567 public const int SingleImportMessageFieldNumber = 20; 568 private global::Google.Protobuf.TestProtos.ImportMessage singleImportMessage_; 569 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 570 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 571 public global::Google.Protobuf.TestProtos.ImportMessage SingleImportMessage { 572 get { return singleImportMessage_; } 573 set { 574 singleImportMessage_ = value; 575 } 576 } 577 578 /// <summary>Field number for the "single_nested_enum" field.</summary> 579 public const int SingleNestedEnumFieldNumber = 21; 580 private global::Google.Protobuf.TestProtos.TestAllTypes.Types.NestedEnum singleNestedEnum_ = global::Google.Protobuf.TestProtos.TestAllTypes.Types.NestedEnum.Unspecified; 581 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 582 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 583 public global::Google.Protobuf.TestProtos.TestAllTypes.Types.NestedEnum SingleNestedEnum { 584 get { return singleNestedEnum_; } 585 set { 586 singleNestedEnum_ = value; 587 } 588 } 589 590 /// <summary>Field number for the "single_foreign_enum" field.</summary> 591 public const int SingleForeignEnumFieldNumber = 22; 592 private global::Google.Protobuf.TestProtos.ForeignEnum singleForeignEnum_ = global::Google.Protobuf.TestProtos.ForeignEnum.ForeignUnspecified; 593 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 594 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 595 public global::Google.Protobuf.TestProtos.ForeignEnum SingleForeignEnum { 596 get { return singleForeignEnum_; } 597 set { 598 singleForeignEnum_ = value; 599 } 600 } 601 602 /// <summary>Field number for the "single_import_enum" field.</summary> 603 public const int SingleImportEnumFieldNumber = 23; 604 private global::Google.Protobuf.TestProtos.ImportEnum singleImportEnum_ = global::Google.Protobuf.TestProtos.ImportEnum.Unspecified; 605 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 606 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 607 public global::Google.Protobuf.TestProtos.ImportEnum SingleImportEnum { 608 get { return singleImportEnum_; } 609 set { 610 singleImportEnum_ = value; 611 } 612 } 613 614 /// <summary>Field number for the "single_public_import_message" field.</summary> 615 public const int SinglePublicImportMessageFieldNumber = 26; 616 private global::Google.Protobuf.TestProtos.PublicImportMessage singlePublicImportMessage_; 617 /// <summary> 618 /// Defined in unittest_import_public.proto 619 /// </summary> 620 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 621 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 622 public global::Google.Protobuf.TestProtos.PublicImportMessage SinglePublicImportMessage { 623 get { return singlePublicImportMessage_; } 624 set { 625 singlePublicImportMessage_ = value; 626 } 627 } 628 629 /// <summary>Field number for the "repeated_int32" field.</summary> 630 public const int RepeatedInt32FieldNumber = 31; 631 private static readonly pb::FieldCodec<int> _repeated_repeatedInt32_codec 632 = pb::FieldCodec.ForInt32(250); 633 private readonly pbc::RepeatedField<int> repeatedInt32_ = new pbc::RepeatedField<int>(); 634 /// <summary> 635 /// Repeated 636 /// </summary> 637 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 638 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 639 public pbc::RepeatedField<int> RepeatedInt32 { 640 get { return repeatedInt32_; } 641 } 642 643 /// <summary>Field number for the "repeated_int64" field.</summary> 644 public const int RepeatedInt64FieldNumber = 32; 645 private static readonly pb::FieldCodec<long> _repeated_repeatedInt64_codec 646 = pb::FieldCodec.ForInt64(258); 647 private readonly pbc::RepeatedField<long> repeatedInt64_ = new pbc::RepeatedField<long>(); 648 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 649 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 650 public pbc::RepeatedField<long> RepeatedInt64 { 651 get { return repeatedInt64_; } 652 } 653 654 /// <summary>Field number for the "repeated_uint32" field.</summary> 655 public const int RepeatedUint32FieldNumber = 33; 656 private static readonly pb::FieldCodec<uint> _repeated_repeatedUint32_codec 657 = pb::FieldCodec.ForUInt32(266); 658 private readonly pbc::RepeatedField<uint> repeatedUint32_ = new pbc::RepeatedField<uint>(); 659 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 660 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 661 public pbc::RepeatedField<uint> RepeatedUint32 { 662 get { return repeatedUint32_; } 663 } 664 665 /// <summary>Field number for the "repeated_uint64" field.</summary> 666 public const int RepeatedUint64FieldNumber = 34; 667 private static readonly pb::FieldCodec<ulong> _repeated_repeatedUint64_codec 668 = pb::FieldCodec.ForUInt64(274); 669 private readonly pbc::RepeatedField<ulong> repeatedUint64_ = new pbc::RepeatedField<ulong>(); 670 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 671 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 672 public pbc::RepeatedField<ulong> RepeatedUint64 { 673 get { return repeatedUint64_; } 674 } 675 676 /// <summary>Field number for the "repeated_sint32" field.</summary> 677 public const int RepeatedSint32FieldNumber = 35; 678 private static readonly pb::FieldCodec<int> _repeated_repeatedSint32_codec 679 = pb::FieldCodec.ForSInt32(282); 680 private readonly pbc::RepeatedField<int> repeatedSint32_ = new pbc::RepeatedField<int>(); 681 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 682 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 683 public pbc::RepeatedField<int> RepeatedSint32 { 684 get { return repeatedSint32_; } 685 } 686 687 /// <summary>Field number for the "repeated_sint64" field.</summary> 688 public const int RepeatedSint64FieldNumber = 36; 689 private static readonly pb::FieldCodec<long> _repeated_repeatedSint64_codec 690 = pb::FieldCodec.ForSInt64(290); 691 private readonly pbc::RepeatedField<long> repeatedSint64_ = new pbc::RepeatedField<long>(); 692 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 693 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 694 public pbc::RepeatedField<long> RepeatedSint64 { 695 get { return repeatedSint64_; } 696 } 697 698 /// <summary>Field number for the "repeated_fixed32" field.</summary> 699 public const int RepeatedFixed32FieldNumber = 37; 700 private static readonly pb::FieldCodec<uint> _repeated_repeatedFixed32_codec 701 = pb::FieldCodec.ForFixed32(298); 702 private readonly pbc::RepeatedField<uint> repeatedFixed32_ = new pbc::RepeatedField<uint>(); 703 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 704 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 705 public pbc::RepeatedField<uint> RepeatedFixed32 { 706 get { return repeatedFixed32_; } 707 } 708 709 /// <summary>Field number for the "repeated_fixed64" field.</summary> 710 public const int RepeatedFixed64FieldNumber = 38; 711 private static readonly pb::FieldCodec<ulong> _repeated_repeatedFixed64_codec 712 = pb::FieldCodec.ForFixed64(306); 713 private readonly pbc::RepeatedField<ulong> repeatedFixed64_ = new pbc::RepeatedField<ulong>(); 714 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 715 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 716 public pbc::RepeatedField<ulong> RepeatedFixed64 { 717 get { return repeatedFixed64_; } 718 } 719 720 /// <summary>Field number for the "repeated_sfixed32" field.</summary> 721 public const int RepeatedSfixed32FieldNumber = 39; 722 private static readonly pb::FieldCodec<int> _repeated_repeatedSfixed32_codec 723 = pb::FieldCodec.ForSFixed32(314); 724 private readonly pbc::RepeatedField<int> repeatedSfixed32_ = new pbc::RepeatedField<int>(); 725 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 726 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 727 public pbc::RepeatedField<int> RepeatedSfixed32 { 728 get { return repeatedSfixed32_; } 729 } 730 731 /// <summary>Field number for the "repeated_sfixed64" field.</summary> 732 public const int RepeatedSfixed64FieldNumber = 40; 733 private static readonly pb::FieldCodec<long> _repeated_repeatedSfixed64_codec 734 = pb::FieldCodec.ForSFixed64(322); 735 private readonly pbc::RepeatedField<long> repeatedSfixed64_ = new pbc::RepeatedField<long>(); 736 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 737 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 738 public pbc::RepeatedField<long> RepeatedSfixed64 { 739 get { return repeatedSfixed64_; } 740 } 741 742 /// <summary>Field number for the "repeated_float" field.</summary> 743 public const int RepeatedFloatFieldNumber = 41; 744 private static readonly pb::FieldCodec<float> _repeated_repeatedFloat_codec 745 = pb::FieldCodec.ForFloat(330); 746 private readonly pbc::RepeatedField<float> repeatedFloat_ = new pbc::RepeatedField<float>(); 747 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 748 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 749 public pbc::RepeatedField<float> RepeatedFloat { 750 get { return repeatedFloat_; } 751 } 752 753 /// <summary>Field number for the "repeated_double" field.</summary> 754 public const int RepeatedDoubleFieldNumber = 42; 755 private static readonly pb::FieldCodec<double> _repeated_repeatedDouble_codec 756 = pb::FieldCodec.ForDouble(338); 757 private readonly pbc::RepeatedField<double> repeatedDouble_ = new pbc::RepeatedField<double>(); 758 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 759 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 760 public pbc::RepeatedField<double> RepeatedDouble { 761 get { return repeatedDouble_; } 762 } 763 764 /// <summary>Field number for the "repeated_bool" field.</summary> 765 public const int RepeatedBoolFieldNumber = 43; 766 private static readonly pb::FieldCodec<bool> _repeated_repeatedBool_codec 767 = pb::FieldCodec.ForBool(346); 768 private readonly pbc::RepeatedField<bool> repeatedBool_ = new pbc::RepeatedField<bool>(); 769 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 770 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 771 public pbc::RepeatedField<bool> RepeatedBool { 772 get { return repeatedBool_; } 773 } 774 775 /// <summary>Field number for the "repeated_string" field.</summary> 776 public const int RepeatedStringFieldNumber = 44; 777 private static readonly pb::FieldCodec<string> _repeated_repeatedString_codec 778 = pb::FieldCodec.ForString(354); 779 private readonly pbc::RepeatedField<string> repeatedString_ = new pbc::RepeatedField<string>(); 780 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 781 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 782 public pbc::RepeatedField<string> RepeatedString { 783 get { return repeatedString_; } 784 } 785 786 /// <summary>Field number for the "repeated_bytes" field.</summary> 787 public const int RepeatedBytesFieldNumber = 45; 788 private static readonly pb::FieldCodec<pb::ByteString> _repeated_repeatedBytes_codec 789 = pb::FieldCodec.ForBytes(362); 790 private readonly pbc::RepeatedField<pb::ByteString> repeatedBytes_ = new pbc::RepeatedField<pb::ByteString>(); 791 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 792 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 793 public pbc::RepeatedField<pb::ByteString> RepeatedBytes { 794 get { return repeatedBytes_; } 795 } 796 797 /// <summary>Field number for the "repeated_nested_message" field.</summary> 798 public const int RepeatedNestedMessageFieldNumber = 48; 799 private static readonly pb::FieldCodec<global::Google.Protobuf.TestProtos.TestAllTypes.Types.NestedMessage> _repeated_repeatedNestedMessage_codec 800 = pb::FieldCodec.ForMessage(386, global::Google.Protobuf.TestProtos.TestAllTypes.Types.NestedMessage.Parser); 801 private readonly pbc::RepeatedField<global::Google.Protobuf.TestProtos.TestAllTypes.Types.NestedMessage> repeatedNestedMessage_ = new pbc::RepeatedField<global::Google.Protobuf.TestProtos.TestAllTypes.Types.NestedMessage>(); 802 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 803 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 804 public pbc::RepeatedField<global::Google.Protobuf.TestProtos.TestAllTypes.Types.NestedMessage> RepeatedNestedMessage { 805 get { return repeatedNestedMessage_; } 806 } 807 808 /// <summary>Field number for the "repeated_foreign_message" field.</summary> 809 public const int RepeatedForeignMessageFieldNumber = 49; 810 private static readonly pb::FieldCodec<global::Google.Protobuf.TestProtos.ForeignMessage> _repeated_repeatedForeignMessage_codec 811 = pb::FieldCodec.ForMessage(394, global::Google.Protobuf.TestProtos.ForeignMessage.Parser); 812 private readonly pbc::RepeatedField<global::Google.Protobuf.TestProtos.ForeignMessage> repeatedForeignMessage_ = new pbc::RepeatedField<global::Google.Protobuf.TestProtos.ForeignMessage>(); 813 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 814 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 815 public pbc::RepeatedField<global::Google.Protobuf.TestProtos.ForeignMessage> RepeatedForeignMessage { 816 get { return repeatedForeignMessage_; } 817 } 818 819 /// <summary>Field number for the "repeated_import_message" field.</summary> 820 public const int RepeatedImportMessageFieldNumber = 50; 821 private static readonly pb::FieldCodec<global::Google.Protobuf.TestProtos.ImportMessage> _repeated_repeatedImportMessage_codec 822 = pb::FieldCodec.ForMessage(402, global::Google.Protobuf.TestProtos.ImportMessage.Parser); 823 private readonly pbc::RepeatedField<global::Google.Protobuf.TestProtos.ImportMessage> repeatedImportMessage_ = new pbc::RepeatedField<global::Google.Protobuf.TestProtos.ImportMessage>(); 824 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 825 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 826 public pbc::RepeatedField<global::Google.Protobuf.TestProtos.ImportMessage> RepeatedImportMessage { 827 get { return repeatedImportMessage_; } 828 } 829 830 /// <summary>Field number for the "repeated_nested_enum" field.</summary> 831 public const int RepeatedNestedEnumFieldNumber = 51; 832 private static readonly pb::FieldCodec<global::Google.Protobuf.TestProtos.TestAllTypes.Types.NestedEnum> _repeated_repeatedNestedEnum_codec 833 = pb::FieldCodec.ForEnum(410, x => (int) x, x => (global::Google.Protobuf.TestProtos.TestAllTypes.Types.NestedEnum) x); 834 private readonly pbc::RepeatedField<global::Google.Protobuf.TestProtos.TestAllTypes.Types.NestedEnum> repeatedNestedEnum_ = new pbc::RepeatedField<global::Google.Protobuf.TestProtos.TestAllTypes.Types.NestedEnum>(); 835 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 836 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 837 public pbc::RepeatedField<global::Google.Protobuf.TestProtos.TestAllTypes.Types.NestedEnum> RepeatedNestedEnum { 838 get { return repeatedNestedEnum_; } 839 } 840 841 /// <summary>Field number for the "repeated_foreign_enum" field.</summary> 842 public const int RepeatedForeignEnumFieldNumber = 52; 843 private static readonly pb::FieldCodec<global::Google.Protobuf.TestProtos.ForeignEnum> _repeated_repeatedForeignEnum_codec 844 = pb::FieldCodec.ForEnum(418, x => (int) x, x => (global::Google.Protobuf.TestProtos.ForeignEnum) x); 845 private readonly pbc::RepeatedField<global::Google.Protobuf.TestProtos.ForeignEnum> repeatedForeignEnum_ = new pbc::RepeatedField<global::Google.Protobuf.TestProtos.ForeignEnum>(); 846 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 847 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 848 public pbc::RepeatedField<global::Google.Protobuf.TestProtos.ForeignEnum> RepeatedForeignEnum { 849 get { return repeatedForeignEnum_; } 850 } 851 852 /// <summary>Field number for the "repeated_import_enum" field.</summary> 853 public const int RepeatedImportEnumFieldNumber = 53; 854 private static readonly pb::FieldCodec<global::Google.Protobuf.TestProtos.ImportEnum> _repeated_repeatedImportEnum_codec 855 = pb::FieldCodec.ForEnum(426, x => (int) x, x => (global::Google.Protobuf.TestProtos.ImportEnum) x); 856 private readonly pbc::RepeatedField<global::Google.Protobuf.TestProtos.ImportEnum> repeatedImportEnum_ = new pbc::RepeatedField<global::Google.Protobuf.TestProtos.ImportEnum>(); 857 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 858 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 859 public pbc::RepeatedField<global::Google.Protobuf.TestProtos.ImportEnum> RepeatedImportEnum { 860 get { return repeatedImportEnum_; } 861 } 862 863 /// <summary>Field number for the "repeated_public_import_message" field.</summary> 864 public const int RepeatedPublicImportMessageFieldNumber = 54; 865 private static readonly pb::FieldCodec<global::Google.Protobuf.TestProtos.PublicImportMessage> _repeated_repeatedPublicImportMessage_codec 866 = pb::FieldCodec.ForMessage(434, global::Google.Protobuf.TestProtos.PublicImportMessage.Parser); 867 private readonly pbc::RepeatedField<global::Google.Protobuf.TestProtos.PublicImportMessage> repeatedPublicImportMessage_ = new pbc::RepeatedField<global::Google.Protobuf.TestProtos.PublicImportMessage>(); 868 /// <summary> 869 /// Defined in unittest_import_public.proto 870 /// </summary> 871 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 872 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 873 public pbc::RepeatedField<global::Google.Protobuf.TestProtos.PublicImportMessage> RepeatedPublicImportMessage { 874 get { return repeatedPublicImportMessage_; } 875 } 876 877 /// <summary>Field number for the "oneof_uint32" field.</summary> 878 public const int OneofUint32FieldNumber = 111; 879 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 880 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 881 public uint OneofUint32 { 882 get { return oneofFieldCase_ == OneofFieldOneofCase.OneofUint32 ? (uint) oneofField_ : 0; } 883 set { 884 oneofField_ = value; 885 oneofFieldCase_ = OneofFieldOneofCase.OneofUint32; 886 } 887 } 888 889 /// <summary>Field number for the "oneof_nested_message" field.</summary> 890 public const int OneofNestedMessageFieldNumber = 112; 891 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 892 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 893 public global::Google.Protobuf.TestProtos.TestAllTypes.Types.NestedMessage OneofNestedMessage { 894 get { return oneofFieldCase_ == OneofFieldOneofCase.OneofNestedMessage ? (global::Google.Protobuf.TestProtos.TestAllTypes.Types.NestedMessage) oneofField_ : null; } 895 set { 896 oneofField_ = value; 897 oneofFieldCase_ = value == null ? OneofFieldOneofCase.None : OneofFieldOneofCase.OneofNestedMessage; 898 } 899 } 900 901 /// <summary>Field number for the "oneof_string" field.</summary> 902 public const int OneofStringFieldNumber = 113; 903 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 904 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 905 public string OneofString { 906 get { return oneofFieldCase_ == OneofFieldOneofCase.OneofString ? (string) oneofField_ : ""; } 907 set { 908 oneofField_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); 909 oneofFieldCase_ = OneofFieldOneofCase.OneofString; 910 } 911 } 912 913 /// <summary>Field number for the "oneof_bytes" field.</summary> 914 public const int OneofBytesFieldNumber = 114; 915 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 916 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 917 public pb::ByteString OneofBytes { 918 get { return oneofFieldCase_ == OneofFieldOneofCase.OneofBytes ? (pb::ByteString) oneofField_ : pb::ByteString.Empty; } 919 set { 920 oneofField_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); 921 oneofFieldCase_ = OneofFieldOneofCase.OneofBytes; 922 } 923 } 924 925 private object oneofField_; 926 /// <summary>Enum of possible cases for the "oneof_field" oneof.</summary> 927 public enum OneofFieldOneofCase { 928 None = 0, 929 OneofUint32 = 111, 930 OneofNestedMessage = 112, 931 OneofString = 113, 932 OneofBytes = 114, 933 } 934 private OneofFieldOneofCase oneofFieldCase_ = OneofFieldOneofCase.None; 935 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 936 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 937 public OneofFieldOneofCase OneofFieldCase { 938 get { return oneofFieldCase_; } 939 } 940 941 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 942 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] ClearOneofField()943 public void ClearOneofField() { 944 oneofFieldCase_ = OneofFieldOneofCase.None; 945 oneofField_ = null; 946 } 947 948 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 949 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] Equals(object other)950 public override bool Equals(object other) { 951 return Equals(other as TestAllTypes); 952 } 953 954 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 955 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] Equals(TestAllTypes other)956 public bool Equals(TestAllTypes other) { 957 if (ReferenceEquals(other, null)) { 958 return false; 959 } 960 if (ReferenceEquals(other, this)) { 961 return true; 962 } 963 if (SingleInt32 != other.SingleInt32) return false; 964 if (SingleInt64 != other.SingleInt64) return false; 965 if (SingleUint32 != other.SingleUint32) return false; 966 if (SingleUint64 != other.SingleUint64) return false; 967 if (SingleSint32 != other.SingleSint32) return false; 968 if (SingleSint64 != other.SingleSint64) return false; 969 if (SingleFixed32 != other.SingleFixed32) return false; 970 if (SingleFixed64 != other.SingleFixed64) return false; 971 if (SingleSfixed32 != other.SingleSfixed32) return false; 972 if (SingleSfixed64 != other.SingleSfixed64) return false; 973 if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(SingleFloat, other.SingleFloat)) return false; 974 if (!pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.Equals(SingleDouble, other.SingleDouble)) return false; 975 if (SingleBool != other.SingleBool) return false; 976 if (SingleString != other.SingleString) return false; 977 if (SingleBytes != other.SingleBytes) return false; 978 if (!object.Equals(SingleNestedMessage, other.SingleNestedMessage)) return false; 979 if (!object.Equals(SingleForeignMessage, other.SingleForeignMessage)) return false; 980 if (!object.Equals(SingleImportMessage, other.SingleImportMessage)) return false; 981 if (SingleNestedEnum != other.SingleNestedEnum) return false; 982 if (SingleForeignEnum != other.SingleForeignEnum) return false; 983 if (SingleImportEnum != other.SingleImportEnum) return false; 984 if (!object.Equals(SinglePublicImportMessage, other.SinglePublicImportMessage)) return false; 985 if(!repeatedInt32_.Equals(other.repeatedInt32_)) return false; 986 if(!repeatedInt64_.Equals(other.repeatedInt64_)) return false; 987 if(!repeatedUint32_.Equals(other.repeatedUint32_)) return false; 988 if(!repeatedUint64_.Equals(other.repeatedUint64_)) return false; 989 if(!repeatedSint32_.Equals(other.repeatedSint32_)) return false; 990 if(!repeatedSint64_.Equals(other.repeatedSint64_)) return false; 991 if(!repeatedFixed32_.Equals(other.repeatedFixed32_)) return false; 992 if(!repeatedFixed64_.Equals(other.repeatedFixed64_)) return false; 993 if(!repeatedSfixed32_.Equals(other.repeatedSfixed32_)) return false; 994 if(!repeatedSfixed64_.Equals(other.repeatedSfixed64_)) return false; 995 if(!repeatedFloat_.Equals(other.repeatedFloat_)) return false; 996 if(!repeatedDouble_.Equals(other.repeatedDouble_)) return false; 997 if(!repeatedBool_.Equals(other.repeatedBool_)) return false; 998 if(!repeatedString_.Equals(other.repeatedString_)) return false; 999 if(!repeatedBytes_.Equals(other.repeatedBytes_)) return false; 1000 if(!repeatedNestedMessage_.Equals(other.repeatedNestedMessage_)) return false; 1001 if(!repeatedForeignMessage_.Equals(other.repeatedForeignMessage_)) return false; 1002 if(!repeatedImportMessage_.Equals(other.repeatedImportMessage_)) return false; 1003 if(!repeatedNestedEnum_.Equals(other.repeatedNestedEnum_)) return false; 1004 if(!repeatedForeignEnum_.Equals(other.repeatedForeignEnum_)) return false; 1005 if(!repeatedImportEnum_.Equals(other.repeatedImportEnum_)) return false; 1006 if(!repeatedPublicImportMessage_.Equals(other.repeatedPublicImportMessage_)) return false; 1007 if (OneofUint32 != other.OneofUint32) return false; 1008 if (!object.Equals(OneofNestedMessage, other.OneofNestedMessage)) return false; 1009 if (OneofString != other.OneofString) return false; 1010 if (OneofBytes != other.OneofBytes) return false; 1011 if (OneofFieldCase != other.OneofFieldCase) return false; 1012 return Equals(_unknownFields, other._unknownFields); 1013 } 1014 1015 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 1016 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] GetHashCode()1017 public override int GetHashCode() { 1018 int hash = 1; 1019 if (SingleInt32 != 0) hash ^= SingleInt32.GetHashCode(); 1020 if (SingleInt64 != 0L) hash ^= SingleInt64.GetHashCode(); 1021 if (SingleUint32 != 0) hash ^= SingleUint32.GetHashCode(); 1022 if (SingleUint64 != 0UL) hash ^= SingleUint64.GetHashCode(); 1023 if (SingleSint32 != 0) hash ^= SingleSint32.GetHashCode(); 1024 if (SingleSint64 != 0L) hash ^= SingleSint64.GetHashCode(); 1025 if (SingleFixed32 != 0) hash ^= SingleFixed32.GetHashCode(); 1026 if (SingleFixed64 != 0UL) hash ^= SingleFixed64.GetHashCode(); 1027 if (SingleSfixed32 != 0) hash ^= SingleSfixed32.GetHashCode(); 1028 if (SingleSfixed64 != 0L) hash ^= SingleSfixed64.GetHashCode(); 1029 if (SingleFloat != 0F) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(SingleFloat); 1030 if (SingleDouble != 0D) hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(SingleDouble); 1031 if (SingleBool != false) hash ^= SingleBool.GetHashCode(); 1032 if (SingleString.Length != 0) hash ^= SingleString.GetHashCode(); 1033 if (SingleBytes.Length != 0) hash ^= SingleBytes.GetHashCode(); 1034 if (singleNestedMessage_ != null) hash ^= SingleNestedMessage.GetHashCode(); 1035 if (singleForeignMessage_ != null) hash ^= SingleForeignMessage.GetHashCode(); 1036 if (singleImportMessage_ != null) hash ^= SingleImportMessage.GetHashCode(); 1037 if (SingleNestedEnum != global::Google.Protobuf.TestProtos.TestAllTypes.Types.NestedEnum.Unspecified) hash ^= SingleNestedEnum.GetHashCode(); 1038 if (SingleForeignEnum != global::Google.Protobuf.TestProtos.ForeignEnum.ForeignUnspecified) hash ^= SingleForeignEnum.GetHashCode(); 1039 if (SingleImportEnum != global::Google.Protobuf.TestProtos.ImportEnum.Unspecified) hash ^= SingleImportEnum.GetHashCode(); 1040 if (singlePublicImportMessage_ != null) hash ^= SinglePublicImportMessage.GetHashCode(); 1041 hash ^= repeatedInt32_.GetHashCode(); 1042 hash ^= repeatedInt64_.GetHashCode(); 1043 hash ^= repeatedUint32_.GetHashCode(); 1044 hash ^= repeatedUint64_.GetHashCode(); 1045 hash ^= repeatedSint32_.GetHashCode(); 1046 hash ^= repeatedSint64_.GetHashCode(); 1047 hash ^= repeatedFixed32_.GetHashCode(); 1048 hash ^= repeatedFixed64_.GetHashCode(); 1049 hash ^= repeatedSfixed32_.GetHashCode(); 1050 hash ^= repeatedSfixed64_.GetHashCode(); 1051 hash ^= repeatedFloat_.GetHashCode(); 1052 hash ^= repeatedDouble_.GetHashCode(); 1053 hash ^= repeatedBool_.GetHashCode(); 1054 hash ^= repeatedString_.GetHashCode(); 1055 hash ^= repeatedBytes_.GetHashCode(); 1056 hash ^= repeatedNestedMessage_.GetHashCode(); 1057 hash ^= repeatedForeignMessage_.GetHashCode(); 1058 hash ^= repeatedImportMessage_.GetHashCode(); 1059 hash ^= repeatedNestedEnum_.GetHashCode(); 1060 hash ^= repeatedForeignEnum_.GetHashCode(); 1061 hash ^= repeatedImportEnum_.GetHashCode(); 1062 hash ^= repeatedPublicImportMessage_.GetHashCode(); 1063 if (oneofFieldCase_ == OneofFieldOneofCase.OneofUint32) hash ^= OneofUint32.GetHashCode(); 1064 if (oneofFieldCase_ == OneofFieldOneofCase.OneofNestedMessage) hash ^= OneofNestedMessage.GetHashCode(); 1065 if (oneofFieldCase_ == OneofFieldOneofCase.OneofString) hash ^= OneofString.GetHashCode(); 1066 if (oneofFieldCase_ == OneofFieldOneofCase.OneofBytes) hash ^= OneofBytes.GetHashCode(); 1067 hash ^= (int) oneofFieldCase_; 1068 if (_unknownFields != null) { 1069 hash ^= _unknownFields.GetHashCode(); 1070 } 1071 return hash; 1072 } 1073 1074 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 1075 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] ToString()1076 public override string ToString() { 1077 return pb::JsonFormatter.ToDiagnosticString(this); 1078 } 1079 1080 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 1081 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] WriteTo(pb::CodedOutputStream output)1082 public void WriteTo(pb::CodedOutputStream output) { 1083 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 1084 output.WriteRawMessage(this); 1085 #else 1086 if (SingleInt32 != 0) { 1087 output.WriteRawTag(8); 1088 output.WriteInt32(SingleInt32); 1089 } 1090 if (SingleInt64 != 0L) { 1091 output.WriteRawTag(16); 1092 output.WriteInt64(SingleInt64); 1093 } 1094 if (SingleUint32 != 0) { 1095 output.WriteRawTag(24); 1096 output.WriteUInt32(SingleUint32); 1097 } 1098 if (SingleUint64 != 0UL) { 1099 output.WriteRawTag(32); 1100 output.WriteUInt64(SingleUint64); 1101 } 1102 if (SingleSint32 != 0) { 1103 output.WriteRawTag(40); 1104 output.WriteSInt32(SingleSint32); 1105 } 1106 if (SingleSint64 != 0L) { 1107 output.WriteRawTag(48); 1108 output.WriteSInt64(SingleSint64); 1109 } 1110 if (SingleFixed32 != 0) { 1111 output.WriteRawTag(61); 1112 output.WriteFixed32(SingleFixed32); 1113 } 1114 if (SingleFixed64 != 0UL) { 1115 output.WriteRawTag(65); 1116 output.WriteFixed64(SingleFixed64); 1117 } 1118 if (SingleSfixed32 != 0) { 1119 output.WriteRawTag(77); 1120 output.WriteSFixed32(SingleSfixed32); 1121 } 1122 if (SingleSfixed64 != 0L) { 1123 output.WriteRawTag(81); 1124 output.WriteSFixed64(SingleSfixed64); 1125 } 1126 if (SingleFloat != 0F) { 1127 output.WriteRawTag(93); 1128 output.WriteFloat(SingleFloat); 1129 } 1130 if (SingleDouble != 0D) { 1131 output.WriteRawTag(97); 1132 output.WriteDouble(SingleDouble); 1133 } 1134 if (SingleBool != false) { 1135 output.WriteRawTag(104); 1136 output.WriteBool(SingleBool); 1137 } 1138 if (SingleString.Length != 0) { 1139 output.WriteRawTag(114); 1140 output.WriteString(SingleString); 1141 } 1142 if (SingleBytes.Length != 0) { 1143 output.WriteRawTag(122); 1144 output.WriteBytes(SingleBytes); 1145 } 1146 if (singleNestedMessage_ != null) { 1147 output.WriteRawTag(146, 1); 1148 output.WriteMessage(SingleNestedMessage); 1149 } 1150 if (singleForeignMessage_ != null) { 1151 output.WriteRawTag(154, 1); 1152 output.WriteMessage(SingleForeignMessage); 1153 } 1154 if (singleImportMessage_ != null) { 1155 output.WriteRawTag(162, 1); 1156 output.WriteMessage(SingleImportMessage); 1157 } 1158 if (SingleNestedEnum != global::Google.Protobuf.TestProtos.TestAllTypes.Types.NestedEnum.Unspecified) { 1159 output.WriteRawTag(168, 1); 1160 output.WriteEnum((int) SingleNestedEnum); 1161 } 1162 if (SingleForeignEnum != global::Google.Protobuf.TestProtos.ForeignEnum.ForeignUnspecified) { 1163 output.WriteRawTag(176, 1); 1164 output.WriteEnum((int) SingleForeignEnum); 1165 } 1166 if (SingleImportEnum != global::Google.Protobuf.TestProtos.ImportEnum.Unspecified) { 1167 output.WriteRawTag(184, 1); 1168 output.WriteEnum((int) SingleImportEnum); 1169 } 1170 if (singlePublicImportMessage_ != null) { 1171 output.WriteRawTag(210, 1); 1172 output.WriteMessage(SinglePublicImportMessage); 1173 } 1174 repeatedInt32_.WriteTo(output, _repeated_repeatedInt32_codec); 1175 repeatedInt64_.WriteTo(output, _repeated_repeatedInt64_codec); 1176 repeatedUint32_.WriteTo(output, _repeated_repeatedUint32_codec); 1177 repeatedUint64_.WriteTo(output, _repeated_repeatedUint64_codec); 1178 repeatedSint32_.WriteTo(output, _repeated_repeatedSint32_codec); 1179 repeatedSint64_.WriteTo(output, _repeated_repeatedSint64_codec); 1180 repeatedFixed32_.WriteTo(output, _repeated_repeatedFixed32_codec); 1181 repeatedFixed64_.WriteTo(output, _repeated_repeatedFixed64_codec); 1182 repeatedSfixed32_.WriteTo(output, _repeated_repeatedSfixed32_codec); 1183 repeatedSfixed64_.WriteTo(output, _repeated_repeatedSfixed64_codec); 1184 repeatedFloat_.WriteTo(output, _repeated_repeatedFloat_codec); 1185 repeatedDouble_.WriteTo(output, _repeated_repeatedDouble_codec); 1186 repeatedBool_.WriteTo(output, _repeated_repeatedBool_codec); 1187 repeatedString_.WriteTo(output, _repeated_repeatedString_codec); 1188 repeatedBytes_.WriteTo(output, _repeated_repeatedBytes_codec); 1189 repeatedNestedMessage_.WriteTo(output, _repeated_repeatedNestedMessage_codec); 1190 repeatedForeignMessage_.WriteTo(output, _repeated_repeatedForeignMessage_codec); 1191 repeatedImportMessage_.WriteTo(output, _repeated_repeatedImportMessage_codec); 1192 repeatedNestedEnum_.WriteTo(output, _repeated_repeatedNestedEnum_codec); 1193 repeatedForeignEnum_.WriteTo(output, _repeated_repeatedForeignEnum_codec); 1194 repeatedImportEnum_.WriteTo(output, _repeated_repeatedImportEnum_codec); 1195 repeatedPublicImportMessage_.WriteTo(output, _repeated_repeatedPublicImportMessage_codec); 1196 if (oneofFieldCase_ == OneofFieldOneofCase.OneofUint32) { 1197 output.WriteRawTag(248, 6); 1198 output.WriteUInt32(OneofUint32); 1199 } 1200 if (oneofFieldCase_ == OneofFieldOneofCase.OneofNestedMessage) { 1201 output.WriteRawTag(130, 7); 1202 output.WriteMessage(OneofNestedMessage); 1203 } 1204 if (oneofFieldCase_ == OneofFieldOneofCase.OneofString) { 1205 output.WriteRawTag(138, 7); 1206 output.WriteString(OneofString); 1207 } 1208 if (oneofFieldCase_ == OneofFieldOneofCase.OneofBytes) { 1209 output.WriteRawTag(146, 7); 1210 output.WriteBytes(OneofBytes); 1211 } 1212 if (_unknownFields != null) { 1213 _unknownFields.WriteTo(output); 1214 } 1215 #endif 1216 } 1217 1218 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 1219 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 1220 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] IBufferMessage.InternalWriteTo(ref pb::WriteContext output)1221 void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { 1222 if (SingleInt32 != 0) { 1223 output.WriteRawTag(8); 1224 output.WriteInt32(SingleInt32); 1225 } 1226 if (SingleInt64 != 0L) { 1227 output.WriteRawTag(16); 1228 output.WriteInt64(SingleInt64); 1229 } 1230 if (SingleUint32 != 0) { 1231 output.WriteRawTag(24); 1232 output.WriteUInt32(SingleUint32); 1233 } 1234 if (SingleUint64 != 0UL) { 1235 output.WriteRawTag(32); 1236 output.WriteUInt64(SingleUint64); 1237 } 1238 if (SingleSint32 != 0) { 1239 output.WriteRawTag(40); 1240 output.WriteSInt32(SingleSint32); 1241 } 1242 if (SingleSint64 != 0L) { 1243 output.WriteRawTag(48); 1244 output.WriteSInt64(SingleSint64); 1245 } 1246 if (SingleFixed32 != 0) { 1247 output.WriteRawTag(61); 1248 output.WriteFixed32(SingleFixed32); 1249 } 1250 if (SingleFixed64 != 0UL) { 1251 output.WriteRawTag(65); 1252 output.WriteFixed64(SingleFixed64); 1253 } 1254 if (SingleSfixed32 != 0) { 1255 output.WriteRawTag(77); 1256 output.WriteSFixed32(SingleSfixed32); 1257 } 1258 if (SingleSfixed64 != 0L) { 1259 output.WriteRawTag(81); 1260 output.WriteSFixed64(SingleSfixed64); 1261 } 1262 if (SingleFloat != 0F) { 1263 output.WriteRawTag(93); 1264 output.WriteFloat(SingleFloat); 1265 } 1266 if (SingleDouble != 0D) { 1267 output.WriteRawTag(97); 1268 output.WriteDouble(SingleDouble); 1269 } 1270 if (SingleBool != false) { 1271 output.WriteRawTag(104); 1272 output.WriteBool(SingleBool); 1273 } 1274 if (SingleString.Length != 0) { 1275 output.WriteRawTag(114); 1276 output.WriteString(SingleString); 1277 } 1278 if (SingleBytes.Length != 0) { 1279 output.WriteRawTag(122); 1280 output.WriteBytes(SingleBytes); 1281 } 1282 if (singleNestedMessage_ != null) { 1283 output.WriteRawTag(146, 1); 1284 output.WriteMessage(SingleNestedMessage); 1285 } 1286 if (singleForeignMessage_ != null) { 1287 output.WriteRawTag(154, 1); 1288 output.WriteMessage(SingleForeignMessage); 1289 } 1290 if (singleImportMessage_ != null) { 1291 output.WriteRawTag(162, 1); 1292 output.WriteMessage(SingleImportMessage); 1293 } 1294 if (SingleNestedEnum != global::Google.Protobuf.TestProtos.TestAllTypes.Types.NestedEnum.Unspecified) { 1295 output.WriteRawTag(168, 1); 1296 output.WriteEnum((int) SingleNestedEnum); 1297 } 1298 if (SingleForeignEnum != global::Google.Protobuf.TestProtos.ForeignEnum.ForeignUnspecified) { 1299 output.WriteRawTag(176, 1); 1300 output.WriteEnum((int) SingleForeignEnum); 1301 } 1302 if (SingleImportEnum != global::Google.Protobuf.TestProtos.ImportEnum.Unspecified) { 1303 output.WriteRawTag(184, 1); 1304 output.WriteEnum((int) SingleImportEnum); 1305 } 1306 if (singlePublicImportMessage_ != null) { 1307 output.WriteRawTag(210, 1); 1308 output.WriteMessage(SinglePublicImportMessage); 1309 } 1310 repeatedInt32_.WriteTo(ref output, _repeated_repeatedInt32_codec); 1311 repeatedInt64_.WriteTo(ref output, _repeated_repeatedInt64_codec); 1312 repeatedUint32_.WriteTo(ref output, _repeated_repeatedUint32_codec); 1313 repeatedUint64_.WriteTo(ref output, _repeated_repeatedUint64_codec); 1314 repeatedSint32_.WriteTo(ref output, _repeated_repeatedSint32_codec); 1315 repeatedSint64_.WriteTo(ref output, _repeated_repeatedSint64_codec); 1316 repeatedFixed32_.WriteTo(ref output, _repeated_repeatedFixed32_codec); 1317 repeatedFixed64_.WriteTo(ref output, _repeated_repeatedFixed64_codec); 1318 repeatedSfixed32_.WriteTo(ref output, _repeated_repeatedSfixed32_codec); 1319 repeatedSfixed64_.WriteTo(ref output, _repeated_repeatedSfixed64_codec); 1320 repeatedFloat_.WriteTo(ref output, _repeated_repeatedFloat_codec); 1321 repeatedDouble_.WriteTo(ref output, _repeated_repeatedDouble_codec); 1322 repeatedBool_.WriteTo(ref output, _repeated_repeatedBool_codec); 1323 repeatedString_.WriteTo(ref output, _repeated_repeatedString_codec); 1324 repeatedBytes_.WriteTo(ref output, _repeated_repeatedBytes_codec); 1325 repeatedNestedMessage_.WriteTo(ref output, _repeated_repeatedNestedMessage_codec); 1326 repeatedForeignMessage_.WriteTo(ref output, _repeated_repeatedForeignMessage_codec); 1327 repeatedImportMessage_.WriteTo(ref output, _repeated_repeatedImportMessage_codec); 1328 repeatedNestedEnum_.WriteTo(ref output, _repeated_repeatedNestedEnum_codec); 1329 repeatedForeignEnum_.WriteTo(ref output, _repeated_repeatedForeignEnum_codec); 1330 repeatedImportEnum_.WriteTo(ref output, _repeated_repeatedImportEnum_codec); 1331 repeatedPublicImportMessage_.WriteTo(ref output, _repeated_repeatedPublicImportMessage_codec); 1332 if (oneofFieldCase_ == OneofFieldOneofCase.OneofUint32) { 1333 output.WriteRawTag(248, 6); 1334 output.WriteUInt32(OneofUint32); 1335 } 1336 if (oneofFieldCase_ == OneofFieldOneofCase.OneofNestedMessage) { 1337 output.WriteRawTag(130, 7); 1338 output.WriteMessage(OneofNestedMessage); 1339 } 1340 if (oneofFieldCase_ == OneofFieldOneofCase.OneofString) { 1341 output.WriteRawTag(138, 7); 1342 output.WriteString(OneofString); 1343 } 1344 if (oneofFieldCase_ == OneofFieldOneofCase.OneofBytes) { 1345 output.WriteRawTag(146, 7); 1346 output.WriteBytes(OneofBytes); 1347 } 1348 if (_unknownFields != null) { 1349 _unknownFields.WriteTo(ref output); 1350 } 1351 } 1352 #endif 1353 1354 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 1355 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] CalculateSize()1356 public int CalculateSize() { 1357 int size = 0; 1358 if (SingleInt32 != 0) { 1359 size += 1 + pb::CodedOutputStream.ComputeInt32Size(SingleInt32); 1360 } 1361 if (SingleInt64 != 0L) { 1362 size += 1 + pb::CodedOutputStream.ComputeInt64Size(SingleInt64); 1363 } 1364 if (SingleUint32 != 0) { 1365 size += 1 + pb::CodedOutputStream.ComputeUInt32Size(SingleUint32); 1366 } 1367 if (SingleUint64 != 0UL) { 1368 size += 1 + pb::CodedOutputStream.ComputeUInt64Size(SingleUint64); 1369 } 1370 if (SingleSint32 != 0) { 1371 size += 1 + pb::CodedOutputStream.ComputeSInt32Size(SingleSint32); 1372 } 1373 if (SingleSint64 != 0L) { 1374 size += 1 + pb::CodedOutputStream.ComputeSInt64Size(SingleSint64); 1375 } 1376 if (SingleFixed32 != 0) { 1377 size += 1 + 4; 1378 } 1379 if (SingleFixed64 != 0UL) { 1380 size += 1 + 8; 1381 } 1382 if (SingleSfixed32 != 0) { 1383 size += 1 + 4; 1384 } 1385 if (SingleSfixed64 != 0L) { 1386 size += 1 + 8; 1387 } 1388 if (SingleFloat != 0F) { 1389 size += 1 + 4; 1390 } 1391 if (SingleDouble != 0D) { 1392 size += 1 + 8; 1393 } 1394 if (SingleBool != false) { 1395 size += 1 + 1; 1396 } 1397 if (SingleString.Length != 0) { 1398 size += 1 + pb::CodedOutputStream.ComputeStringSize(SingleString); 1399 } 1400 if (SingleBytes.Length != 0) { 1401 size += 1 + pb::CodedOutputStream.ComputeBytesSize(SingleBytes); 1402 } 1403 if (singleNestedMessage_ != null) { 1404 size += 2 + pb::CodedOutputStream.ComputeMessageSize(SingleNestedMessage); 1405 } 1406 if (singleForeignMessage_ != null) { 1407 size += 2 + pb::CodedOutputStream.ComputeMessageSize(SingleForeignMessage); 1408 } 1409 if (singleImportMessage_ != null) { 1410 size += 2 + pb::CodedOutputStream.ComputeMessageSize(SingleImportMessage); 1411 } 1412 if (SingleNestedEnum != global::Google.Protobuf.TestProtos.TestAllTypes.Types.NestedEnum.Unspecified) { 1413 size += 2 + pb::CodedOutputStream.ComputeEnumSize((int) SingleNestedEnum); 1414 } 1415 if (SingleForeignEnum != global::Google.Protobuf.TestProtos.ForeignEnum.ForeignUnspecified) { 1416 size += 2 + pb::CodedOutputStream.ComputeEnumSize((int) SingleForeignEnum); 1417 } 1418 if (SingleImportEnum != global::Google.Protobuf.TestProtos.ImportEnum.Unspecified) { 1419 size += 2 + pb::CodedOutputStream.ComputeEnumSize((int) SingleImportEnum); 1420 } 1421 if (singlePublicImportMessage_ != null) { 1422 size += 2 + pb::CodedOutputStream.ComputeMessageSize(SinglePublicImportMessage); 1423 } 1424 size += repeatedInt32_.CalculateSize(_repeated_repeatedInt32_codec); 1425 size += repeatedInt64_.CalculateSize(_repeated_repeatedInt64_codec); 1426 size += repeatedUint32_.CalculateSize(_repeated_repeatedUint32_codec); 1427 size += repeatedUint64_.CalculateSize(_repeated_repeatedUint64_codec); 1428 size += repeatedSint32_.CalculateSize(_repeated_repeatedSint32_codec); 1429 size += repeatedSint64_.CalculateSize(_repeated_repeatedSint64_codec); 1430 size += repeatedFixed32_.CalculateSize(_repeated_repeatedFixed32_codec); 1431 size += repeatedFixed64_.CalculateSize(_repeated_repeatedFixed64_codec); 1432 size += repeatedSfixed32_.CalculateSize(_repeated_repeatedSfixed32_codec); 1433 size += repeatedSfixed64_.CalculateSize(_repeated_repeatedSfixed64_codec); 1434 size += repeatedFloat_.CalculateSize(_repeated_repeatedFloat_codec); 1435 size += repeatedDouble_.CalculateSize(_repeated_repeatedDouble_codec); 1436 size += repeatedBool_.CalculateSize(_repeated_repeatedBool_codec); 1437 size += repeatedString_.CalculateSize(_repeated_repeatedString_codec); 1438 size += repeatedBytes_.CalculateSize(_repeated_repeatedBytes_codec); 1439 size += repeatedNestedMessage_.CalculateSize(_repeated_repeatedNestedMessage_codec); 1440 size += repeatedForeignMessage_.CalculateSize(_repeated_repeatedForeignMessage_codec); 1441 size += repeatedImportMessage_.CalculateSize(_repeated_repeatedImportMessage_codec); 1442 size += repeatedNestedEnum_.CalculateSize(_repeated_repeatedNestedEnum_codec); 1443 size += repeatedForeignEnum_.CalculateSize(_repeated_repeatedForeignEnum_codec); 1444 size += repeatedImportEnum_.CalculateSize(_repeated_repeatedImportEnum_codec); 1445 size += repeatedPublicImportMessage_.CalculateSize(_repeated_repeatedPublicImportMessage_codec); 1446 if (oneofFieldCase_ == OneofFieldOneofCase.OneofUint32) { 1447 size += 2 + pb::CodedOutputStream.ComputeUInt32Size(OneofUint32); 1448 } 1449 if (oneofFieldCase_ == OneofFieldOneofCase.OneofNestedMessage) { 1450 size += 2 + pb::CodedOutputStream.ComputeMessageSize(OneofNestedMessage); 1451 } 1452 if (oneofFieldCase_ == OneofFieldOneofCase.OneofString) { 1453 size += 2 + pb::CodedOutputStream.ComputeStringSize(OneofString); 1454 } 1455 if (oneofFieldCase_ == OneofFieldOneofCase.OneofBytes) { 1456 size += 2 + pb::CodedOutputStream.ComputeBytesSize(OneofBytes); 1457 } 1458 if (_unknownFields != null) { 1459 size += _unknownFields.CalculateSize(); 1460 } 1461 return size; 1462 } 1463 1464 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 1465 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] MergeFrom(TestAllTypes other)1466 public void MergeFrom(TestAllTypes other) { 1467 if (other == null) { 1468 return; 1469 } 1470 if (other.SingleInt32 != 0) { 1471 SingleInt32 = other.SingleInt32; 1472 } 1473 if (other.SingleInt64 != 0L) { 1474 SingleInt64 = other.SingleInt64; 1475 } 1476 if (other.SingleUint32 != 0) { 1477 SingleUint32 = other.SingleUint32; 1478 } 1479 if (other.SingleUint64 != 0UL) { 1480 SingleUint64 = other.SingleUint64; 1481 } 1482 if (other.SingleSint32 != 0) { 1483 SingleSint32 = other.SingleSint32; 1484 } 1485 if (other.SingleSint64 != 0L) { 1486 SingleSint64 = other.SingleSint64; 1487 } 1488 if (other.SingleFixed32 != 0) { 1489 SingleFixed32 = other.SingleFixed32; 1490 } 1491 if (other.SingleFixed64 != 0UL) { 1492 SingleFixed64 = other.SingleFixed64; 1493 } 1494 if (other.SingleSfixed32 != 0) { 1495 SingleSfixed32 = other.SingleSfixed32; 1496 } 1497 if (other.SingleSfixed64 != 0L) { 1498 SingleSfixed64 = other.SingleSfixed64; 1499 } 1500 if (other.SingleFloat != 0F) { 1501 SingleFloat = other.SingleFloat; 1502 } 1503 if (other.SingleDouble != 0D) { 1504 SingleDouble = other.SingleDouble; 1505 } 1506 if (other.SingleBool != false) { 1507 SingleBool = other.SingleBool; 1508 } 1509 if (other.SingleString.Length != 0) { 1510 SingleString = other.SingleString; 1511 } 1512 if (other.SingleBytes.Length != 0) { 1513 SingleBytes = other.SingleBytes; 1514 } 1515 if (other.singleNestedMessage_ != null) { 1516 if (singleNestedMessage_ == null) { 1517 SingleNestedMessage = new global::Google.Protobuf.TestProtos.TestAllTypes.Types.NestedMessage(); 1518 } 1519 SingleNestedMessage.MergeFrom(other.SingleNestedMessage); 1520 } 1521 if (other.singleForeignMessage_ != null) { 1522 if (singleForeignMessage_ == null) { 1523 SingleForeignMessage = new global::Google.Protobuf.TestProtos.ForeignMessage(); 1524 } 1525 SingleForeignMessage.MergeFrom(other.SingleForeignMessage); 1526 } 1527 if (other.singleImportMessage_ != null) { 1528 if (singleImportMessage_ == null) { 1529 SingleImportMessage = new global::Google.Protobuf.TestProtos.ImportMessage(); 1530 } 1531 SingleImportMessage.MergeFrom(other.SingleImportMessage); 1532 } 1533 if (other.SingleNestedEnum != global::Google.Protobuf.TestProtos.TestAllTypes.Types.NestedEnum.Unspecified) { 1534 SingleNestedEnum = other.SingleNestedEnum; 1535 } 1536 if (other.SingleForeignEnum != global::Google.Protobuf.TestProtos.ForeignEnum.ForeignUnspecified) { 1537 SingleForeignEnum = other.SingleForeignEnum; 1538 } 1539 if (other.SingleImportEnum != global::Google.Protobuf.TestProtos.ImportEnum.Unspecified) { 1540 SingleImportEnum = other.SingleImportEnum; 1541 } 1542 if (other.singlePublicImportMessage_ != null) { 1543 if (singlePublicImportMessage_ == null) { 1544 SinglePublicImportMessage = new global::Google.Protobuf.TestProtos.PublicImportMessage(); 1545 } 1546 SinglePublicImportMessage.MergeFrom(other.SinglePublicImportMessage); 1547 } 1548 repeatedInt32_.Add(other.repeatedInt32_); 1549 repeatedInt64_.Add(other.repeatedInt64_); 1550 repeatedUint32_.Add(other.repeatedUint32_); 1551 repeatedUint64_.Add(other.repeatedUint64_); 1552 repeatedSint32_.Add(other.repeatedSint32_); 1553 repeatedSint64_.Add(other.repeatedSint64_); 1554 repeatedFixed32_.Add(other.repeatedFixed32_); 1555 repeatedFixed64_.Add(other.repeatedFixed64_); 1556 repeatedSfixed32_.Add(other.repeatedSfixed32_); 1557 repeatedSfixed64_.Add(other.repeatedSfixed64_); 1558 repeatedFloat_.Add(other.repeatedFloat_); 1559 repeatedDouble_.Add(other.repeatedDouble_); 1560 repeatedBool_.Add(other.repeatedBool_); 1561 repeatedString_.Add(other.repeatedString_); 1562 repeatedBytes_.Add(other.repeatedBytes_); 1563 repeatedNestedMessage_.Add(other.repeatedNestedMessage_); 1564 repeatedForeignMessage_.Add(other.repeatedForeignMessage_); 1565 repeatedImportMessage_.Add(other.repeatedImportMessage_); 1566 repeatedNestedEnum_.Add(other.repeatedNestedEnum_); 1567 repeatedForeignEnum_.Add(other.repeatedForeignEnum_); 1568 repeatedImportEnum_.Add(other.repeatedImportEnum_); 1569 repeatedPublicImportMessage_.Add(other.repeatedPublicImportMessage_); 1570 switch (other.OneofFieldCase) { 1571 case OneofFieldOneofCase.OneofUint32: 1572 OneofUint32 = other.OneofUint32; 1573 break; 1574 case OneofFieldOneofCase.OneofNestedMessage: 1575 if (OneofNestedMessage == null) { 1576 OneofNestedMessage = new global::Google.Protobuf.TestProtos.TestAllTypes.Types.NestedMessage(); 1577 } 1578 OneofNestedMessage.MergeFrom(other.OneofNestedMessage); 1579 break; 1580 case OneofFieldOneofCase.OneofString: 1581 OneofString = other.OneofString; 1582 break; 1583 case OneofFieldOneofCase.OneofBytes: 1584 OneofBytes = other.OneofBytes; 1585 break; 1586 } 1587 1588 _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); 1589 } 1590 1591 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 1592 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] MergeFrom(pb::CodedInputStream input)1593 public void MergeFrom(pb::CodedInputStream input) { 1594 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 1595 input.ReadRawMessage(this); 1596 #else 1597 uint tag; 1598 while ((tag = input.ReadTag()) != 0) { 1599 switch(tag) { 1600 default: 1601 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); 1602 break; 1603 case 8: { 1604 SingleInt32 = input.ReadInt32(); 1605 break; 1606 } 1607 case 16: { 1608 SingleInt64 = input.ReadInt64(); 1609 break; 1610 } 1611 case 24: { 1612 SingleUint32 = input.ReadUInt32(); 1613 break; 1614 } 1615 case 32: { 1616 SingleUint64 = input.ReadUInt64(); 1617 break; 1618 } 1619 case 40: { 1620 SingleSint32 = input.ReadSInt32(); 1621 break; 1622 } 1623 case 48: { 1624 SingleSint64 = input.ReadSInt64(); 1625 break; 1626 } 1627 case 61: { 1628 SingleFixed32 = input.ReadFixed32(); 1629 break; 1630 } 1631 case 65: { 1632 SingleFixed64 = input.ReadFixed64(); 1633 break; 1634 } 1635 case 77: { 1636 SingleSfixed32 = input.ReadSFixed32(); 1637 break; 1638 } 1639 case 81: { 1640 SingleSfixed64 = input.ReadSFixed64(); 1641 break; 1642 } 1643 case 93: { 1644 SingleFloat = input.ReadFloat(); 1645 break; 1646 } 1647 case 97: { 1648 SingleDouble = input.ReadDouble(); 1649 break; 1650 } 1651 case 104: { 1652 SingleBool = input.ReadBool(); 1653 break; 1654 } 1655 case 114: { 1656 SingleString = input.ReadString(); 1657 break; 1658 } 1659 case 122: { 1660 SingleBytes = input.ReadBytes(); 1661 break; 1662 } 1663 case 146: { 1664 if (singleNestedMessage_ == null) { 1665 SingleNestedMessage = new global::Google.Protobuf.TestProtos.TestAllTypes.Types.NestedMessage(); 1666 } 1667 input.ReadMessage(SingleNestedMessage); 1668 break; 1669 } 1670 case 154: { 1671 if (singleForeignMessage_ == null) { 1672 SingleForeignMessage = new global::Google.Protobuf.TestProtos.ForeignMessage(); 1673 } 1674 input.ReadMessage(SingleForeignMessage); 1675 break; 1676 } 1677 case 162: { 1678 if (singleImportMessage_ == null) { 1679 SingleImportMessage = new global::Google.Protobuf.TestProtos.ImportMessage(); 1680 } 1681 input.ReadMessage(SingleImportMessage); 1682 break; 1683 } 1684 case 168: { 1685 SingleNestedEnum = (global::Google.Protobuf.TestProtos.TestAllTypes.Types.NestedEnum) input.ReadEnum(); 1686 break; 1687 } 1688 case 176: { 1689 SingleForeignEnum = (global::Google.Protobuf.TestProtos.ForeignEnum) input.ReadEnum(); 1690 break; 1691 } 1692 case 184: { 1693 SingleImportEnum = (global::Google.Protobuf.TestProtos.ImportEnum) input.ReadEnum(); 1694 break; 1695 } 1696 case 210: { 1697 if (singlePublicImportMessage_ == null) { 1698 SinglePublicImportMessage = new global::Google.Protobuf.TestProtos.PublicImportMessage(); 1699 } 1700 input.ReadMessage(SinglePublicImportMessage); 1701 break; 1702 } 1703 case 250: 1704 case 248: { 1705 repeatedInt32_.AddEntriesFrom(input, _repeated_repeatedInt32_codec); 1706 break; 1707 } 1708 case 258: 1709 case 256: { 1710 repeatedInt64_.AddEntriesFrom(input, _repeated_repeatedInt64_codec); 1711 break; 1712 } 1713 case 266: 1714 case 264: { 1715 repeatedUint32_.AddEntriesFrom(input, _repeated_repeatedUint32_codec); 1716 break; 1717 } 1718 case 274: 1719 case 272: { 1720 repeatedUint64_.AddEntriesFrom(input, _repeated_repeatedUint64_codec); 1721 break; 1722 } 1723 case 282: 1724 case 280: { 1725 repeatedSint32_.AddEntriesFrom(input, _repeated_repeatedSint32_codec); 1726 break; 1727 } 1728 case 290: 1729 case 288: { 1730 repeatedSint64_.AddEntriesFrom(input, _repeated_repeatedSint64_codec); 1731 break; 1732 } 1733 case 298: 1734 case 301: { 1735 repeatedFixed32_.AddEntriesFrom(input, _repeated_repeatedFixed32_codec); 1736 break; 1737 } 1738 case 306: 1739 case 305: { 1740 repeatedFixed64_.AddEntriesFrom(input, _repeated_repeatedFixed64_codec); 1741 break; 1742 } 1743 case 314: 1744 case 317: { 1745 repeatedSfixed32_.AddEntriesFrom(input, _repeated_repeatedSfixed32_codec); 1746 break; 1747 } 1748 case 322: 1749 case 321: { 1750 repeatedSfixed64_.AddEntriesFrom(input, _repeated_repeatedSfixed64_codec); 1751 break; 1752 } 1753 case 330: 1754 case 333: { 1755 repeatedFloat_.AddEntriesFrom(input, _repeated_repeatedFloat_codec); 1756 break; 1757 } 1758 case 338: 1759 case 337: { 1760 repeatedDouble_.AddEntriesFrom(input, _repeated_repeatedDouble_codec); 1761 break; 1762 } 1763 case 346: 1764 case 344: { 1765 repeatedBool_.AddEntriesFrom(input, _repeated_repeatedBool_codec); 1766 break; 1767 } 1768 case 354: { 1769 repeatedString_.AddEntriesFrom(input, _repeated_repeatedString_codec); 1770 break; 1771 } 1772 case 362: { 1773 repeatedBytes_.AddEntriesFrom(input, _repeated_repeatedBytes_codec); 1774 break; 1775 } 1776 case 386: { 1777 repeatedNestedMessage_.AddEntriesFrom(input, _repeated_repeatedNestedMessage_codec); 1778 break; 1779 } 1780 case 394: { 1781 repeatedForeignMessage_.AddEntriesFrom(input, _repeated_repeatedForeignMessage_codec); 1782 break; 1783 } 1784 case 402: { 1785 repeatedImportMessage_.AddEntriesFrom(input, _repeated_repeatedImportMessage_codec); 1786 break; 1787 } 1788 case 410: 1789 case 408: { 1790 repeatedNestedEnum_.AddEntriesFrom(input, _repeated_repeatedNestedEnum_codec); 1791 break; 1792 } 1793 case 418: 1794 case 416: { 1795 repeatedForeignEnum_.AddEntriesFrom(input, _repeated_repeatedForeignEnum_codec); 1796 break; 1797 } 1798 case 426: 1799 case 424: { 1800 repeatedImportEnum_.AddEntriesFrom(input, _repeated_repeatedImportEnum_codec); 1801 break; 1802 } 1803 case 434: { 1804 repeatedPublicImportMessage_.AddEntriesFrom(input, _repeated_repeatedPublicImportMessage_codec); 1805 break; 1806 } 1807 case 888: { 1808 OneofUint32 = input.ReadUInt32(); 1809 break; 1810 } 1811 case 898: { 1812 global::Google.Protobuf.TestProtos.TestAllTypes.Types.NestedMessage subBuilder = new global::Google.Protobuf.TestProtos.TestAllTypes.Types.NestedMessage(); 1813 if (oneofFieldCase_ == OneofFieldOneofCase.OneofNestedMessage) { 1814 subBuilder.MergeFrom(OneofNestedMessage); 1815 } 1816 input.ReadMessage(subBuilder); 1817 OneofNestedMessage = subBuilder; 1818 break; 1819 } 1820 case 906: { 1821 OneofString = input.ReadString(); 1822 break; 1823 } 1824 case 914: { 1825 OneofBytes = input.ReadBytes(); 1826 break; 1827 } 1828 } 1829 } 1830 #endif 1831 } 1832 1833 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 1834 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 1835 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] IBufferMessage.InternalMergeFrom(ref pb::ParseContext input)1836 void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { 1837 uint tag; 1838 while ((tag = input.ReadTag()) != 0) { 1839 switch(tag) { 1840 default: 1841 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); 1842 break; 1843 case 8: { 1844 SingleInt32 = input.ReadInt32(); 1845 break; 1846 } 1847 case 16: { 1848 SingleInt64 = input.ReadInt64(); 1849 break; 1850 } 1851 case 24: { 1852 SingleUint32 = input.ReadUInt32(); 1853 break; 1854 } 1855 case 32: { 1856 SingleUint64 = input.ReadUInt64(); 1857 break; 1858 } 1859 case 40: { 1860 SingleSint32 = input.ReadSInt32(); 1861 break; 1862 } 1863 case 48: { 1864 SingleSint64 = input.ReadSInt64(); 1865 break; 1866 } 1867 case 61: { 1868 SingleFixed32 = input.ReadFixed32(); 1869 break; 1870 } 1871 case 65: { 1872 SingleFixed64 = input.ReadFixed64(); 1873 break; 1874 } 1875 case 77: { 1876 SingleSfixed32 = input.ReadSFixed32(); 1877 break; 1878 } 1879 case 81: { 1880 SingleSfixed64 = input.ReadSFixed64(); 1881 break; 1882 } 1883 case 93: { 1884 SingleFloat = input.ReadFloat(); 1885 break; 1886 } 1887 case 97: { 1888 SingleDouble = input.ReadDouble(); 1889 break; 1890 } 1891 case 104: { 1892 SingleBool = input.ReadBool(); 1893 break; 1894 } 1895 case 114: { 1896 SingleString = input.ReadString(); 1897 break; 1898 } 1899 case 122: { 1900 SingleBytes = input.ReadBytes(); 1901 break; 1902 } 1903 case 146: { 1904 if (singleNestedMessage_ == null) { 1905 SingleNestedMessage = new global::Google.Protobuf.TestProtos.TestAllTypes.Types.NestedMessage(); 1906 } 1907 input.ReadMessage(SingleNestedMessage); 1908 break; 1909 } 1910 case 154: { 1911 if (singleForeignMessage_ == null) { 1912 SingleForeignMessage = new global::Google.Protobuf.TestProtos.ForeignMessage(); 1913 } 1914 input.ReadMessage(SingleForeignMessage); 1915 break; 1916 } 1917 case 162: { 1918 if (singleImportMessage_ == null) { 1919 SingleImportMessage = new global::Google.Protobuf.TestProtos.ImportMessage(); 1920 } 1921 input.ReadMessage(SingleImportMessage); 1922 break; 1923 } 1924 case 168: { 1925 SingleNestedEnum = (global::Google.Protobuf.TestProtos.TestAllTypes.Types.NestedEnum) input.ReadEnum(); 1926 break; 1927 } 1928 case 176: { 1929 SingleForeignEnum = (global::Google.Protobuf.TestProtos.ForeignEnum) input.ReadEnum(); 1930 break; 1931 } 1932 case 184: { 1933 SingleImportEnum = (global::Google.Protobuf.TestProtos.ImportEnum) input.ReadEnum(); 1934 break; 1935 } 1936 case 210: { 1937 if (singlePublicImportMessage_ == null) { 1938 SinglePublicImportMessage = new global::Google.Protobuf.TestProtos.PublicImportMessage(); 1939 } 1940 input.ReadMessage(SinglePublicImportMessage); 1941 break; 1942 } 1943 case 250: 1944 case 248: { 1945 repeatedInt32_.AddEntriesFrom(ref input, _repeated_repeatedInt32_codec); 1946 break; 1947 } 1948 case 258: 1949 case 256: { 1950 repeatedInt64_.AddEntriesFrom(ref input, _repeated_repeatedInt64_codec); 1951 break; 1952 } 1953 case 266: 1954 case 264: { 1955 repeatedUint32_.AddEntriesFrom(ref input, _repeated_repeatedUint32_codec); 1956 break; 1957 } 1958 case 274: 1959 case 272: { 1960 repeatedUint64_.AddEntriesFrom(ref input, _repeated_repeatedUint64_codec); 1961 break; 1962 } 1963 case 282: 1964 case 280: { 1965 repeatedSint32_.AddEntriesFrom(ref input, _repeated_repeatedSint32_codec); 1966 break; 1967 } 1968 case 290: 1969 case 288: { 1970 repeatedSint64_.AddEntriesFrom(ref input, _repeated_repeatedSint64_codec); 1971 break; 1972 } 1973 case 298: 1974 case 301: { 1975 repeatedFixed32_.AddEntriesFrom(ref input, _repeated_repeatedFixed32_codec); 1976 break; 1977 } 1978 case 306: 1979 case 305: { 1980 repeatedFixed64_.AddEntriesFrom(ref input, _repeated_repeatedFixed64_codec); 1981 break; 1982 } 1983 case 314: 1984 case 317: { 1985 repeatedSfixed32_.AddEntriesFrom(ref input, _repeated_repeatedSfixed32_codec); 1986 break; 1987 } 1988 case 322: 1989 case 321: { 1990 repeatedSfixed64_.AddEntriesFrom(ref input, _repeated_repeatedSfixed64_codec); 1991 break; 1992 } 1993 case 330: 1994 case 333: { 1995 repeatedFloat_.AddEntriesFrom(ref input, _repeated_repeatedFloat_codec); 1996 break; 1997 } 1998 case 338: 1999 case 337: { 2000 repeatedDouble_.AddEntriesFrom(ref input, _repeated_repeatedDouble_codec); 2001 break; 2002 } 2003 case 346: 2004 case 344: { 2005 repeatedBool_.AddEntriesFrom(ref input, _repeated_repeatedBool_codec); 2006 break; 2007 } 2008 case 354: { 2009 repeatedString_.AddEntriesFrom(ref input, _repeated_repeatedString_codec); 2010 break; 2011 } 2012 case 362: { 2013 repeatedBytes_.AddEntriesFrom(ref input, _repeated_repeatedBytes_codec); 2014 break; 2015 } 2016 case 386: { 2017 repeatedNestedMessage_.AddEntriesFrom(ref input, _repeated_repeatedNestedMessage_codec); 2018 break; 2019 } 2020 case 394: { 2021 repeatedForeignMessage_.AddEntriesFrom(ref input, _repeated_repeatedForeignMessage_codec); 2022 break; 2023 } 2024 case 402: { 2025 repeatedImportMessage_.AddEntriesFrom(ref input, _repeated_repeatedImportMessage_codec); 2026 break; 2027 } 2028 case 410: 2029 case 408: { 2030 repeatedNestedEnum_.AddEntriesFrom(ref input, _repeated_repeatedNestedEnum_codec); 2031 break; 2032 } 2033 case 418: 2034 case 416: { 2035 repeatedForeignEnum_.AddEntriesFrom(ref input, _repeated_repeatedForeignEnum_codec); 2036 break; 2037 } 2038 case 426: 2039 case 424: { 2040 repeatedImportEnum_.AddEntriesFrom(ref input, _repeated_repeatedImportEnum_codec); 2041 break; 2042 } 2043 case 434: { 2044 repeatedPublicImportMessage_.AddEntriesFrom(ref input, _repeated_repeatedPublicImportMessage_codec); 2045 break; 2046 } 2047 case 888: { 2048 OneofUint32 = input.ReadUInt32(); 2049 break; 2050 } 2051 case 898: { 2052 global::Google.Protobuf.TestProtos.TestAllTypes.Types.NestedMessage subBuilder = new global::Google.Protobuf.TestProtos.TestAllTypes.Types.NestedMessage(); 2053 if (oneofFieldCase_ == OneofFieldOneofCase.OneofNestedMessage) { 2054 subBuilder.MergeFrom(OneofNestedMessage); 2055 } 2056 input.ReadMessage(subBuilder); 2057 OneofNestedMessage = subBuilder; 2058 break; 2059 } 2060 case 906: { 2061 OneofString = input.ReadString(); 2062 break; 2063 } 2064 case 914: { 2065 OneofBytes = input.ReadBytes(); 2066 break; 2067 } 2068 } 2069 } 2070 } 2071 #endif 2072 2073 #region Nested types 2074 /// <summary>Container for nested types declared in the TestAllTypes message type.</summary> 2075 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 2076 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 2077 public static partial class Types { 2078 public enum NestedEnum { 2079 [pbr::OriginalName("NESTED_ENUM_UNSPECIFIED")] Unspecified = 0, 2080 [pbr::OriginalName("FOO")] Foo = 1, 2081 [pbr::OriginalName("BAR")] Bar = 2, 2082 [pbr::OriginalName("BAZ")] Baz = 3, 2083 /// <summary> 2084 /// Intentionally negative. 2085 /// </summary> 2086 [pbr::OriginalName("NEG")] Neg = -1, 2087 } 2088 2089 public sealed partial class NestedMessage : pb::IMessage<NestedMessage> 2090 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 2091 , pb::IBufferMessage 2092 #endif 2093 { 2094 private static readonly pb::MessageParser<NestedMessage> _parser = new pb::MessageParser<NestedMessage>(() => new NestedMessage()); 2095 private pb::UnknownFieldSet _unknownFields; 2096 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 2097 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 2098 public static pb::MessageParser<NestedMessage> Parser { get { return _parser; } } 2099 2100 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 2101 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 2102 public static pbr::MessageDescriptor Descriptor { 2103 get { return global::Google.Protobuf.TestProtos.TestAllTypes.Descriptor.NestedTypes[0]; } 2104 } 2105 2106 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 2107 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 2108 pbr::MessageDescriptor pb::IMessage.Descriptor { 2109 get { return Descriptor; } 2110 } 2111 2112 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 2113 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] NestedMessage()2114 public NestedMessage() { 2115 OnConstruction(); 2116 } 2117 OnConstruction()2118 partial void OnConstruction(); 2119 2120 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 2121 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] NestedMessage(NestedMessage other)2122 public NestedMessage(NestedMessage other) : this() { 2123 bb_ = other.bb_; 2124 _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); 2125 } 2126 2127 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 2128 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] Clone()2129 public NestedMessage Clone() { 2130 return new NestedMessage(this); 2131 } 2132 2133 /// <summary>Field number for the "bb" field.</summary> 2134 public const int BbFieldNumber = 1; 2135 private int bb_; 2136 /// <summary> 2137 /// The field name "b" fails to compile in proto1 because it conflicts with 2138 /// a local variable named "b" in one of the generated methods. Doh. 2139 /// This file needs to compile in proto1 to test backwards-compatibility. 2140 /// </summary> 2141 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 2142 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 2143 public int Bb { 2144 get { return bb_; } 2145 set { 2146 bb_ = value; 2147 } 2148 } 2149 2150 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 2151 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] Equals(object other)2152 public override bool Equals(object other) { 2153 return Equals(other as NestedMessage); 2154 } 2155 2156 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 2157 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] Equals(NestedMessage other)2158 public bool Equals(NestedMessage other) { 2159 if (ReferenceEquals(other, null)) { 2160 return false; 2161 } 2162 if (ReferenceEquals(other, this)) { 2163 return true; 2164 } 2165 if (Bb != other.Bb) return false; 2166 return Equals(_unknownFields, other._unknownFields); 2167 } 2168 2169 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 2170 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] GetHashCode()2171 public override int GetHashCode() { 2172 int hash = 1; 2173 if (Bb != 0) hash ^= Bb.GetHashCode(); 2174 if (_unknownFields != null) { 2175 hash ^= _unknownFields.GetHashCode(); 2176 } 2177 return hash; 2178 } 2179 2180 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 2181 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] ToString()2182 public override string ToString() { 2183 return pb::JsonFormatter.ToDiagnosticString(this); 2184 } 2185 2186 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 2187 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] WriteTo(pb::CodedOutputStream output)2188 public void WriteTo(pb::CodedOutputStream output) { 2189 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 2190 output.WriteRawMessage(this); 2191 #else 2192 if (Bb != 0) { 2193 output.WriteRawTag(8); 2194 output.WriteInt32(Bb); 2195 } 2196 if (_unknownFields != null) { 2197 _unknownFields.WriteTo(output); 2198 } 2199 #endif 2200 } 2201 2202 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 2203 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 2204 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] IBufferMessage.InternalWriteTo(ref pb::WriteContext output)2205 void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { 2206 if (Bb != 0) { 2207 output.WriteRawTag(8); 2208 output.WriteInt32(Bb); 2209 } 2210 if (_unknownFields != null) { 2211 _unknownFields.WriteTo(ref output); 2212 } 2213 } 2214 #endif 2215 2216 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 2217 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] CalculateSize()2218 public int CalculateSize() { 2219 int size = 0; 2220 if (Bb != 0) { 2221 size += 1 + pb::CodedOutputStream.ComputeInt32Size(Bb); 2222 } 2223 if (_unknownFields != null) { 2224 size += _unknownFields.CalculateSize(); 2225 } 2226 return size; 2227 } 2228 2229 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 2230 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] MergeFrom(NestedMessage other)2231 public void MergeFrom(NestedMessage other) { 2232 if (other == null) { 2233 return; 2234 } 2235 if (other.Bb != 0) { 2236 Bb = other.Bb; 2237 } 2238 _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); 2239 } 2240 2241 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 2242 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] MergeFrom(pb::CodedInputStream input)2243 public void MergeFrom(pb::CodedInputStream input) { 2244 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 2245 input.ReadRawMessage(this); 2246 #else 2247 uint tag; 2248 while ((tag = input.ReadTag()) != 0) { 2249 switch(tag) { 2250 default: 2251 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); 2252 break; 2253 case 8: { 2254 Bb = input.ReadInt32(); 2255 break; 2256 } 2257 } 2258 } 2259 #endif 2260 } 2261 2262 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 2263 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 2264 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] IBufferMessage.InternalMergeFrom(ref pb::ParseContext input)2265 void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { 2266 uint tag; 2267 while ((tag = input.ReadTag()) != 0) { 2268 switch(tag) { 2269 default: 2270 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); 2271 break; 2272 case 8: { 2273 Bb = input.ReadInt32(); 2274 break; 2275 } 2276 } 2277 } 2278 } 2279 #endif 2280 2281 } 2282 2283 } 2284 #endregion 2285 2286 } 2287 2288 /// <summary> 2289 /// This proto includes a recursively nested message. 2290 /// </summary> 2291 public sealed partial class NestedTestAllTypes : pb::IMessage<NestedTestAllTypes> 2292 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 2293 , pb::IBufferMessage 2294 #endif 2295 { 2296 private static readonly pb::MessageParser<NestedTestAllTypes> _parser = new pb::MessageParser<NestedTestAllTypes>(() => new NestedTestAllTypes()); 2297 private pb::UnknownFieldSet _unknownFields; 2298 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 2299 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 2300 public static pb::MessageParser<NestedTestAllTypes> Parser { get { return _parser; } } 2301 2302 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 2303 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 2304 public static pbr::MessageDescriptor Descriptor { 2305 get { return global::Google.Protobuf.TestProtos.UnittestProto3Reflection.Descriptor.MessageTypes[1]; } 2306 } 2307 2308 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 2309 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 2310 pbr::MessageDescriptor pb::IMessage.Descriptor { 2311 get { return Descriptor; } 2312 } 2313 2314 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 2315 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] NestedTestAllTypes()2316 public NestedTestAllTypes() { 2317 OnConstruction(); 2318 } 2319 OnConstruction()2320 partial void OnConstruction(); 2321 2322 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 2323 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] NestedTestAllTypes(NestedTestAllTypes other)2324 public NestedTestAllTypes(NestedTestAllTypes other) : this() { 2325 child_ = other.child_ != null ? other.child_.Clone() : null; 2326 payload_ = other.payload_ != null ? other.payload_.Clone() : null; 2327 repeatedChild_ = other.repeatedChild_.Clone(); 2328 _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); 2329 } 2330 2331 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 2332 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] Clone()2333 public NestedTestAllTypes Clone() { 2334 return new NestedTestAllTypes(this); 2335 } 2336 2337 /// <summary>Field number for the "child" field.</summary> 2338 public const int ChildFieldNumber = 1; 2339 private global::Google.Protobuf.TestProtos.NestedTestAllTypes child_; 2340 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 2341 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 2342 public global::Google.Protobuf.TestProtos.NestedTestAllTypes Child { 2343 get { return child_; } 2344 set { 2345 child_ = value; 2346 } 2347 } 2348 2349 /// <summary>Field number for the "payload" field.</summary> 2350 public const int PayloadFieldNumber = 2; 2351 private global::Google.Protobuf.TestProtos.TestAllTypes payload_; 2352 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 2353 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 2354 public global::Google.Protobuf.TestProtos.TestAllTypes Payload { 2355 get { return payload_; } 2356 set { 2357 payload_ = value; 2358 } 2359 } 2360 2361 /// <summary>Field number for the "repeated_child" field.</summary> 2362 public const int RepeatedChildFieldNumber = 3; 2363 private static readonly pb::FieldCodec<global::Google.Protobuf.TestProtos.NestedTestAllTypes> _repeated_repeatedChild_codec 2364 = pb::FieldCodec.ForMessage(26, global::Google.Protobuf.TestProtos.NestedTestAllTypes.Parser); 2365 private readonly pbc::RepeatedField<global::Google.Protobuf.TestProtos.NestedTestAllTypes> repeatedChild_ = new pbc::RepeatedField<global::Google.Protobuf.TestProtos.NestedTestAllTypes>(); 2366 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 2367 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 2368 public pbc::RepeatedField<global::Google.Protobuf.TestProtos.NestedTestAllTypes> RepeatedChild { 2369 get { return repeatedChild_; } 2370 } 2371 2372 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 2373 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] Equals(object other)2374 public override bool Equals(object other) { 2375 return Equals(other as NestedTestAllTypes); 2376 } 2377 2378 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 2379 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] Equals(NestedTestAllTypes other)2380 public bool Equals(NestedTestAllTypes other) { 2381 if (ReferenceEquals(other, null)) { 2382 return false; 2383 } 2384 if (ReferenceEquals(other, this)) { 2385 return true; 2386 } 2387 if (!object.Equals(Child, other.Child)) return false; 2388 if (!object.Equals(Payload, other.Payload)) return false; 2389 if(!repeatedChild_.Equals(other.repeatedChild_)) return false; 2390 return Equals(_unknownFields, other._unknownFields); 2391 } 2392 2393 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 2394 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] GetHashCode()2395 public override int GetHashCode() { 2396 int hash = 1; 2397 if (child_ != null) hash ^= Child.GetHashCode(); 2398 if (payload_ != null) hash ^= Payload.GetHashCode(); 2399 hash ^= repeatedChild_.GetHashCode(); 2400 if (_unknownFields != null) { 2401 hash ^= _unknownFields.GetHashCode(); 2402 } 2403 return hash; 2404 } 2405 2406 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 2407 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] ToString()2408 public override string ToString() { 2409 return pb::JsonFormatter.ToDiagnosticString(this); 2410 } 2411 2412 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 2413 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] WriteTo(pb::CodedOutputStream output)2414 public void WriteTo(pb::CodedOutputStream output) { 2415 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 2416 output.WriteRawMessage(this); 2417 #else 2418 if (child_ != null) { 2419 output.WriteRawTag(10); 2420 output.WriteMessage(Child); 2421 } 2422 if (payload_ != null) { 2423 output.WriteRawTag(18); 2424 output.WriteMessage(Payload); 2425 } 2426 repeatedChild_.WriteTo(output, _repeated_repeatedChild_codec); 2427 if (_unknownFields != null) { 2428 _unknownFields.WriteTo(output); 2429 } 2430 #endif 2431 } 2432 2433 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 2434 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 2435 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] IBufferMessage.InternalWriteTo(ref pb::WriteContext output)2436 void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { 2437 if (child_ != null) { 2438 output.WriteRawTag(10); 2439 output.WriteMessage(Child); 2440 } 2441 if (payload_ != null) { 2442 output.WriteRawTag(18); 2443 output.WriteMessage(Payload); 2444 } 2445 repeatedChild_.WriteTo(ref output, _repeated_repeatedChild_codec); 2446 if (_unknownFields != null) { 2447 _unknownFields.WriteTo(ref output); 2448 } 2449 } 2450 #endif 2451 2452 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 2453 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] CalculateSize()2454 public int CalculateSize() { 2455 int size = 0; 2456 if (child_ != null) { 2457 size += 1 + pb::CodedOutputStream.ComputeMessageSize(Child); 2458 } 2459 if (payload_ != null) { 2460 size += 1 + pb::CodedOutputStream.ComputeMessageSize(Payload); 2461 } 2462 size += repeatedChild_.CalculateSize(_repeated_repeatedChild_codec); 2463 if (_unknownFields != null) { 2464 size += _unknownFields.CalculateSize(); 2465 } 2466 return size; 2467 } 2468 2469 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 2470 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] MergeFrom(NestedTestAllTypes other)2471 public void MergeFrom(NestedTestAllTypes other) { 2472 if (other == null) { 2473 return; 2474 } 2475 if (other.child_ != null) { 2476 if (child_ == null) { 2477 Child = new global::Google.Protobuf.TestProtos.NestedTestAllTypes(); 2478 } 2479 Child.MergeFrom(other.Child); 2480 } 2481 if (other.payload_ != null) { 2482 if (payload_ == null) { 2483 Payload = new global::Google.Protobuf.TestProtos.TestAllTypes(); 2484 } 2485 Payload.MergeFrom(other.Payload); 2486 } 2487 repeatedChild_.Add(other.repeatedChild_); 2488 _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); 2489 } 2490 2491 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 2492 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] MergeFrom(pb::CodedInputStream input)2493 public void MergeFrom(pb::CodedInputStream input) { 2494 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 2495 input.ReadRawMessage(this); 2496 #else 2497 uint tag; 2498 while ((tag = input.ReadTag()) != 0) { 2499 switch(tag) { 2500 default: 2501 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); 2502 break; 2503 case 10: { 2504 if (child_ == null) { 2505 Child = new global::Google.Protobuf.TestProtos.NestedTestAllTypes(); 2506 } 2507 input.ReadMessage(Child); 2508 break; 2509 } 2510 case 18: { 2511 if (payload_ == null) { 2512 Payload = new global::Google.Protobuf.TestProtos.TestAllTypes(); 2513 } 2514 input.ReadMessage(Payload); 2515 break; 2516 } 2517 case 26: { 2518 repeatedChild_.AddEntriesFrom(input, _repeated_repeatedChild_codec); 2519 break; 2520 } 2521 } 2522 } 2523 #endif 2524 } 2525 2526 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 2527 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 2528 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] IBufferMessage.InternalMergeFrom(ref pb::ParseContext input)2529 void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { 2530 uint tag; 2531 while ((tag = input.ReadTag()) != 0) { 2532 switch(tag) { 2533 default: 2534 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); 2535 break; 2536 case 10: { 2537 if (child_ == null) { 2538 Child = new global::Google.Protobuf.TestProtos.NestedTestAllTypes(); 2539 } 2540 input.ReadMessage(Child); 2541 break; 2542 } 2543 case 18: { 2544 if (payload_ == null) { 2545 Payload = new global::Google.Protobuf.TestProtos.TestAllTypes(); 2546 } 2547 input.ReadMessage(Payload); 2548 break; 2549 } 2550 case 26: { 2551 repeatedChild_.AddEntriesFrom(ref input, _repeated_repeatedChild_codec); 2552 break; 2553 } 2554 } 2555 } 2556 } 2557 #endif 2558 2559 } 2560 2561 public sealed partial class TestDeprecatedFields : pb::IMessage<TestDeprecatedFields> 2562 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 2563 , pb::IBufferMessage 2564 #endif 2565 { 2566 private static readonly pb::MessageParser<TestDeprecatedFields> _parser = new pb::MessageParser<TestDeprecatedFields>(() => new TestDeprecatedFields()); 2567 private pb::UnknownFieldSet _unknownFields; 2568 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 2569 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 2570 public static pb::MessageParser<TestDeprecatedFields> Parser { get { return _parser; } } 2571 2572 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 2573 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 2574 public static pbr::MessageDescriptor Descriptor { 2575 get { return global::Google.Protobuf.TestProtos.UnittestProto3Reflection.Descriptor.MessageTypes[2]; } 2576 } 2577 2578 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 2579 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 2580 pbr::MessageDescriptor pb::IMessage.Descriptor { 2581 get { return Descriptor; } 2582 } 2583 2584 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 2585 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] TestDeprecatedFields()2586 public TestDeprecatedFields() { 2587 OnConstruction(); 2588 } 2589 OnConstruction()2590 partial void OnConstruction(); 2591 2592 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 2593 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] TestDeprecatedFields(TestDeprecatedFields other)2594 public TestDeprecatedFields(TestDeprecatedFields other) : this() { 2595 deprecatedInt32_ = other.deprecatedInt32_; 2596 _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); 2597 } 2598 2599 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 2600 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] Clone()2601 public TestDeprecatedFields Clone() { 2602 return new TestDeprecatedFields(this); 2603 } 2604 2605 /// <summary>Field number for the "deprecated_int32" field.</summary> 2606 public const int DeprecatedInt32FieldNumber = 1; 2607 private int deprecatedInt32_; 2608 [global::System.ObsoleteAttribute] 2609 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 2610 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 2611 public int DeprecatedInt32 { 2612 get { return deprecatedInt32_; } 2613 set { 2614 deprecatedInt32_ = value; 2615 } 2616 } 2617 2618 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 2619 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] Equals(object other)2620 public override bool Equals(object other) { 2621 return Equals(other as TestDeprecatedFields); 2622 } 2623 2624 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 2625 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] Equals(TestDeprecatedFields other)2626 public bool Equals(TestDeprecatedFields other) { 2627 if (ReferenceEquals(other, null)) { 2628 return false; 2629 } 2630 if (ReferenceEquals(other, this)) { 2631 return true; 2632 } 2633 if (DeprecatedInt32 != other.DeprecatedInt32) return false; 2634 return Equals(_unknownFields, other._unknownFields); 2635 } 2636 2637 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 2638 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] GetHashCode()2639 public override int GetHashCode() { 2640 int hash = 1; 2641 if (DeprecatedInt32 != 0) hash ^= DeprecatedInt32.GetHashCode(); 2642 if (_unknownFields != null) { 2643 hash ^= _unknownFields.GetHashCode(); 2644 } 2645 return hash; 2646 } 2647 2648 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 2649 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] ToString()2650 public override string ToString() { 2651 return pb::JsonFormatter.ToDiagnosticString(this); 2652 } 2653 2654 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 2655 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] WriteTo(pb::CodedOutputStream output)2656 public void WriteTo(pb::CodedOutputStream output) { 2657 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 2658 output.WriteRawMessage(this); 2659 #else 2660 if (DeprecatedInt32 != 0) { 2661 output.WriteRawTag(8); 2662 output.WriteInt32(DeprecatedInt32); 2663 } 2664 if (_unknownFields != null) { 2665 _unknownFields.WriteTo(output); 2666 } 2667 #endif 2668 } 2669 2670 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 2671 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 2672 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] IBufferMessage.InternalWriteTo(ref pb::WriteContext output)2673 void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { 2674 if (DeprecatedInt32 != 0) { 2675 output.WriteRawTag(8); 2676 output.WriteInt32(DeprecatedInt32); 2677 } 2678 if (_unknownFields != null) { 2679 _unknownFields.WriteTo(ref output); 2680 } 2681 } 2682 #endif 2683 2684 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 2685 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] CalculateSize()2686 public int CalculateSize() { 2687 int size = 0; 2688 if (DeprecatedInt32 != 0) { 2689 size += 1 + pb::CodedOutputStream.ComputeInt32Size(DeprecatedInt32); 2690 } 2691 if (_unknownFields != null) { 2692 size += _unknownFields.CalculateSize(); 2693 } 2694 return size; 2695 } 2696 2697 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 2698 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] MergeFrom(TestDeprecatedFields other)2699 public void MergeFrom(TestDeprecatedFields other) { 2700 if (other == null) { 2701 return; 2702 } 2703 if (other.DeprecatedInt32 != 0) { 2704 DeprecatedInt32 = other.DeprecatedInt32; 2705 } 2706 _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); 2707 } 2708 2709 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 2710 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] MergeFrom(pb::CodedInputStream input)2711 public void MergeFrom(pb::CodedInputStream input) { 2712 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 2713 input.ReadRawMessage(this); 2714 #else 2715 uint tag; 2716 while ((tag = input.ReadTag()) != 0) { 2717 switch(tag) { 2718 default: 2719 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); 2720 break; 2721 case 8: { 2722 DeprecatedInt32 = input.ReadInt32(); 2723 break; 2724 } 2725 } 2726 } 2727 #endif 2728 } 2729 2730 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 2731 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 2732 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] IBufferMessage.InternalMergeFrom(ref pb::ParseContext input)2733 void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { 2734 uint tag; 2735 while ((tag = input.ReadTag()) != 0) { 2736 switch(tag) { 2737 default: 2738 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); 2739 break; 2740 case 8: { 2741 DeprecatedInt32 = input.ReadInt32(); 2742 break; 2743 } 2744 } 2745 } 2746 } 2747 #endif 2748 2749 } 2750 2751 /// <summary> 2752 /// Define these after TestAllTypes to make sure the compiler can handle 2753 /// that. 2754 /// </summary> 2755 public sealed partial class ForeignMessage : pb::IMessage<ForeignMessage> 2756 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 2757 , pb::IBufferMessage 2758 #endif 2759 { 2760 private static readonly pb::MessageParser<ForeignMessage> _parser = new pb::MessageParser<ForeignMessage>(() => new ForeignMessage()); 2761 private pb::UnknownFieldSet _unknownFields; 2762 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 2763 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 2764 public static pb::MessageParser<ForeignMessage> Parser { get { return _parser; } } 2765 2766 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 2767 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 2768 public static pbr::MessageDescriptor Descriptor { 2769 get { return global::Google.Protobuf.TestProtos.UnittestProto3Reflection.Descriptor.MessageTypes[3]; } 2770 } 2771 2772 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 2773 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 2774 pbr::MessageDescriptor pb::IMessage.Descriptor { 2775 get { return Descriptor; } 2776 } 2777 2778 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 2779 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] ForeignMessage()2780 public ForeignMessage() { 2781 OnConstruction(); 2782 } 2783 OnConstruction()2784 partial void OnConstruction(); 2785 2786 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 2787 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] ForeignMessage(ForeignMessage other)2788 public ForeignMessage(ForeignMessage other) : this() { 2789 c_ = other.c_; 2790 _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); 2791 } 2792 2793 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 2794 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] Clone()2795 public ForeignMessage Clone() { 2796 return new ForeignMessage(this); 2797 } 2798 2799 /// <summary>Field number for the "c" field.</summary> 2800 public const int CFieldNumber = 1; 2801 private int c_; 2802 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 2803 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 2804 public int C { 2805 get { return c_; } 2806 set { 2807 c_ = value; 2808 } 2809 } 2810 2811 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 2812 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] Equals(object other)2813 public override bool Equals(object other) { 2814 return Equals(other as ForeignMessage); 2815 } 2816 2817 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 2818 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] Equals(ForeignMessage other)2819 public bool Equals(ForeignMessage other) { 2820 if (ReferenceEquals(other, null)) { 2821 return false; 2822 } 2823 if (ReferenceEquals(other, this)) { 2824 return true; 2825 } 2826 if (C != other.C) return false; 2827 return Equals(_unknownFields, other._unknownFields); 2828 } 2829 2830 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 2831 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] GetHashCode()2832 public override int GetHashCode() { 2833 int hash = 1; 2834 if (C != 0) hash ^= C.GetHashCode(); 2835 if (_unknownFields != null) { 2836 hash ^= _unknownFields.GetHashCode(); 2837 } 2838 return hash; 2839 } 2840 2841 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 2842 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] ToString()2843 public override string ToString() { 2844 return pb::JsonFormatter.ToDiagnosticString(this); 2845 } 2846 2847 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 2848 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] WriteTo(pb::CodedOutputStream output)2849 public void WriteTo(pb::CodedOutputStream output) { 2850 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 2851 output.WriteRawMessage(this); 2852 #else 2853 if (C != 0) { 2854 output.WriteRawTag(8); 2855 output.WriteInt32(C); 2856 } 2857 if (_unknownFields != null) { 2858 _unknownFields.WriteTo(output); 2859 } 2860 #endif 2861 } 2862 2863 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 2864 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 2865 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] IBufferMessage.InternalWriteTo(ref pb::WriteContext output)2866 void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { 2867 if (C != 0) { 2868 output.WriteRawTag(8); 2869 output.WriteInt32(C); 2870 } 2871 if (_unknownFields != null) { 2872 _unknownFields.WriteTo(ref output); 2873 } 2874 } 2875 #endif 2876 2877 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 2878 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] CalculateSize()2879 public int CalculateSize() { 2880 int size = 0; 2881 if (C != 0) { 2882 size += 1 + pb::CodedOutputStream.ComputeInt32Size(C); 2883 } 2884 if (_unknownFields != null) { 2885 size += _unknownFields.CalculateSize(); 2886 } 2887 return size; 2888 } 2889 2890 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 2891 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] MergeFrom(ForeignMessage other)2892 public void MergeFrom(ForeignMessage other) { 2893 if (other == null) { 2894 return; 2895 } 2896 if (other.C != 0) { 2897 C = other.C; 2898 } 2899 _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); 2900 } 2901 2902 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 2903 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] MergeFrom(pb::CodedInputStream input)2904 public void MergeFrom(pb::CodedInputStream input) { 2905 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 2906 input.ReadRawMessage(this); 2907 #else 2908 uint tag; 2909 while ((tag = input.ReadTag()) != 0) { 2910 switch(tag) { 2911 default: 2912 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); 2913 break; 2914 case 8: { 2915 C = input.ReadInt32(); 2916 break; 2917 } 2918 } 2919 } 2920 #endif 2921 } 2922 2923 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 2924 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 2925 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] IBufferMessage.InternalMergeFrom(ref pb::ParseContext input)2926 void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { 2927 uint tag; 2928 while ((tag = input.ReadTag()) != 0) { 2929 switch(tag) { 2930 default: 2931 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); 2932 break; 2933 case 8: { 2934 C = input.ReadInt32(); 2935 break; 2936 } 2937 } 2938 } 2939 } 2940 #endif 2941 2942 } 2943 2944 public sealed partial class TestReservedFields : pb::IMessage<TestReservedFields> 2945 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 2946 , pb::IBufferMessage 2947 #endif 2948 { 2949 private static readonly pb::MessageParser<TestReservedFields> _parser = new pb::MessageParser<TestReservedFields>(() => new TestReservedFields()); 2950 private pb::UnknownFieldSet _unknownFields; 2951 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 2952 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 2953 public static pb::MessageParser<TestReservedFields> Parser { get { return _parser; } } 2954 2955 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 2956 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 2957 public static pbr::MessageDescriptor Descriptor { 2958 get { return global::Google.Protobuf.TestProtos.UnittestProto3Reflection.Descriptor.MessageTypes[4]; } 2959 } 2960 2961 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 2962 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 2963 pbr::MessageDescriptor pb::IMessage.Descriptor { 2964 get { return Descriptor; } 2965 } 2966 2967 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 2968 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] TestReservedFields()2969 public TestReservedFields() { 2970 OnConstruction(); 2971 } 2972 OnConstruction()2973 partial void OnConstruction(); 2974 2975 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 2976 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] TestReservedFields(TestReservedFields other)2977 public TestReservedFields(TestReservedFields other) : this() { 2978 _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); 2979 } 2980 2981 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 2982 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] Clone()2983 public TestReservedFields Clone() { 2984 return new TestReservedFields(this); 2985 } 2986 2987 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 2988 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] Equals(object other)2989 public override bool Equals(object other) { 2990 return Equals(other as TestReservedFields); 2991 } 2992 2993 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 2994 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] Equals(TestReservedFields other)2995 public bool Equals(TestReservedFields other) { 2996 if (ReferenceEquals(other, null)) { 2997 return false; 2998 } 2999 if (ReferenceEquals(other, this)) { 3000 return true; 3001 } 3002 return Equals(_unknownFields, other._unknownFields); 3003 } 3004 3005 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 3006 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] GetHashCode()3007 public override int GetHashCode() { 3008 int hash = 1; 3009 if (_unknownFields != null) { 3010 hash ^= _unknownFields.GetHashCode(); 3011 } 3012 return hash; 3013 } 3014 3015 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 3016 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] ToString()3017 public override string ToString() { 3018 return pb::JsonFormatter.ToDiagnosticString(this); 3019 } 3020 3021 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 3022 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] WriteTo(pb::CodedOutputStream output)3023 public void WriteTo(pb::CodedOutputStream output) { 3024 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 3025 output.WriteRawMessage(this); 3026 #else 3027 if (_unknownFields != null) { 3028 _unknownFields.WriteTo(output); 3029 } 3030 #endif 3031 } 3032 3033 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 3034 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 3035 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] IBufferMessage.InternalWriteTo(ref pb::WriteContext output)3036 void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { 3037 if (_unknownFields != null) { 3038 _unknownFields.WriteTo(ref output); 3039 } 3040 } 3041 #endif 3042 3043 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 3044 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] CalculateSize()3045 public int CalculateSize() { 3046 int size = 0; 3047 if (_unknownFields != null) { 3048 size += _unknownFields.CalculateSize(); 3049 } 3050 return size; 3051 } 3052 3053 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 3054 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] MergeFrom(TestReservedFields other)3055 public void MergeFrom(TestReservedFields other) { 3056 if (other == null) { 3057 return; 3058 } 3059 _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); 3060 } 3061 3062 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 3063 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] MergeFrom(pb::CodedInputStream input)3064 public void MergeFrom(pb::CodedInputStream input) { 3065 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 3066 input.ReadRawMessage(this); 3067 #else 3068 uint tag; 3069 while ((tag = input.ReadTag()) != 0) { 3070 switch(tag) { 3071 default: 3072 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); 3073 break; 3074 } 3075 } 3076 #endif 3077 } 3078 3079 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 3080 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 3081 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] IBufferMessage.InternalMergeFrom(ref pb::ParseContext input)3082 void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { 3083 uint tag; 3084 while ((tag = input.ReadTag()) != 0) { 3085 switch(tag) { 3086 default: 3087 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); 3088 break; 3089 } 3090 } 3091 } 3092 #endif 3093 3094 } 3095 3096 /// <summary> 3097 /// Test that we can use NestedMessage from outside TestAllTypes. 3098 /// </summary> 3099 public sealed partial class TestForeignNested : pb::IMessage<TestForeignNested> 3100 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 3101 , pb::IBufferMessage 3102 #endif 3103 { 3104 private static readonly pb::MessageParser<TestForeignNested> _parser = new pb::MessageParser<TestForeignNested>(() => new TestForeignNested()); 3105 private pb::UnknownFieldSet _unknownFields; 3106 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 3107 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 3108 public static pb::MessageParser<TestForeignNested> Parser { get { return _parser; } } 3109 3110 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 3111 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 3112 public static pbr::MessageDescriptor Descriptor { 3113 get { return global::Google.Protobuf.TestProtos.UnittestProto3Reflection.Descriptor.MessageTypes[5]; } 3114 } 3115 3116 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 3117 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 3118 pbr::MessageDescriptor pb::IMessage.Descriptor { 3119 get { return Descriptor; } 3120 } 3121 3122 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 3123 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] TestForeignNested()3124 public TestForeignNested() { 3125 OnConstruction(); 3126 } 3127 OnConstruction()3128 partial void OnConstruction(); 3129 3130 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 3131 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] TestForeignNested(TestForeignNested other)3132 public TestForeignNested(TestForeignNested other) : this() { 3133 foreignNested_ = other.foreignNested_ != null ? other.foreignNested_.Clone() : null; 3134 _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); 3135 } 3136 3137 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 3138 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] Clone()3139 public TestForeignNested Clone() { 3140 return new TestForeignNested(this); 3141 } 3142 3143 /// <summary>Field number for the "foreign_nested" field.</summary> 3144 public const int ForeignNestedFieldNumber = 1; 3145 private global::Google.Protobuf.TestProtos.TestAllTypes.Types.NestedMessage foreignNested_; 3146 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 3147 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 3148 public global::Google.Protobuf.TestProtos.TestAllTypes.Types.NestedMessage ForeignNested { 3149 get { return foreignNested_; } 3150 set { 3151 foreignNested_ = value; 3152 } 3153 } 3154 3155 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 3156 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] Equals(object other)3157 public override bool Equals(object other) { 3158 return Equals(other as TestForeignNested); 3159 } 3160 3161 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 3162 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] Equals(TestForeignNested other)3163 public bool Equals(TestForeignNested other) { 3164 if (ReferenceEquals(other, null)) { 3165 return false; 3166 } 3167 if (ReferenceEquals(other, this)) { 3168 return true; 3169 } 3170 if (!object.Equals(ForeignNested, other.ForeignNested)) return false; 3171 return Equals(_unknownFields, other._unknownFields); 3172 } 3173 3174 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 3175 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] GetHashCode()3176 public override int GetHashCode() { 3177 int hash = 1; 3178 if (foreignNested_ != null) hash ^= ForeignNested.GetHashCode(); 3179 if (_unknownFields != null) { 3180 hash ^= _unknownFields.GetHashCode(); 3181 } 3182 return hash; 3183 } 3184 3185 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 3186 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] ToString()3187 public override string ToString() { 3188 return pb::JsonFormatter.ToDiagnosticString(this); 3189 } 3190 3191 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 3192 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] WriteTo(pb::CodedOutputStream output)3193 public void WriteTo(pb::CodedOutputStream output) { 3194 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 3195 output.WriteRawMessage(this); 3196 #else 3197 if (foreignNested_ != null) { 3198 output.WriteRawTag(10); 3199 output.WriteMessage(ForeignNested); 3200 } 3201 if (_unknownFields != null) { 3202 _unknownFields.WriteTo(output); 3203 } 3204 #endif 3205 } 3206 3207 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 3208 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 3209 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] IBufferMessage.InternalWriteTo(ref pb::WriteContext output)3210 void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { 3211 if (foreignNested_ != null) { 3212 output.WriteRawTag(10); 3213 output.WriteMessage(ForeignNested); 3214 } 3215 if (_unknownFields != null) { 3216 _unknownFields.WriteTo(ref output); 3217 } 3218 } 3219 #endif 3220 3221 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 3222 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] CalculateSize()3223 public int CalculateSize() { 3224 int size = 0; 3225 if (foreignNested_ != null) { 3226 size += 1 + pb::CodedOutputStream.ComputeMessageSize(ForeignNested); 3227 } 3228 if (_unknownFields != null) { 3229 size += _unknownFields.CalculateSize(); 3230 } 3231 return size; 3232 } 3233 3234 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 3235 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] MergeFrom(TestForeignNested other)3236 public void MergeFrom(TestForeignNested other) { 3237 if (other == null) { 3238 return; 3239 } 3240 if (other.foreignNested_ != null) { 3241 if (foreignNested_ == null) { 3242 ForeignNested = new global::Google.Protobuf.TestProtos.TestAllTypes.Types.NestedMessage(); 3243 } 3244 ForeignNested.MergeFrom(other.ForeignNested); 3245 } 3246 _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); 3247 } 3248 3249 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 3250 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] MergeFrom(pb::CodedInputStream input)3251 public void MergeFrom(pb::CodedInputStream input) { 3252 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 3253 input.ReadRawMessage(this); 3254 #else 3255 uint tag; 3256 while ((tag = input.ReadTag()) != 0) { 3257 switch(tag) { 3258 default: 3259 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); 3260 break; 3261 case 10: { 3262 if (foreignNested_ == null) { 3263 ForeignNested = new global::Google.Protobuf.TestProtos.TestAllTypes.Types.NestedMessage(); 3264 } 3265 input.ReadMessage(ForeignNested); 3266 break; 3267 } 3268 } 3269 } 3270 #endif 3271 } 3272 3273 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 3274 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 3275 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] IBufferMessage.InternalMergeFrom(ref pb::ParseContext input)3276 void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { 3277 uint tag; 3278 while ((tag = input.ReadTag()) != 0) { 3279 switch(tag) { 3280 default: 3281 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); 3282 break; 3283 case 10: { 3284 if (foreignNested_ == null) { 3285 ForeignNested = new global::Google.Protobuf.TestProtos.TestAllTypes.Types.NestedMessage(); 3286 } 3287 input.ReadMessage(ForeignNested); 3288 break; 3289 } 3290 } 3291 } 3292 } 3293 #endif 3294 3295 } 3296 3297 /// <summary> 3298 /// Test that really large tag numbers don't break anything. 3299 /// </summary> 3300 public sealed partial class TestReallyLargeTagNumber : pb::IMessage<TestReallyLargeTagNumber> 3301 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 3302 , pb::IBufferMessage 3303 #endif 3304 { 3305 private static readonly pb::MessageParser<TestReallyLargeTagNumber> _parser = new pb::MessageParser<TestReallyLargeTagNumber>(() => new TestReallyLargeTagNumber()); 3306 private pb::UnknownFieldSet _unknownFields; 3307 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 3308 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 3309 public static pb::MessageParser<TestReallyLargeTagNumber> Parser { get { return _parser; } } 3310 3311 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 3312 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 3313 public static pbr::MessageDescriptor Descriptor { 3314 get { return global::Google.Protobuf.TestProtos.UnittestProto3Reflection.Descriptor.MessageTypes[6]; } 3315 } 3316 3317 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 3318 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 3319 pbr::MessageDescriptor pb::IMessage.Descriptor { 3320 get { return Descriptor; } 3321 } 3322 3323 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 3324 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] TestReallyLargeTagNumber()3325 public TestReallyLargeTagNumber() { 3326 OnConstruction(); 3327 } 3328 OnConstruction()3329 partial void OnConstruction(); 3330 3331 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 3332 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] TestReallyLargeTagNumber(TestReallyLargeTagNumber other)3333 public TestReallyLargeTagNumber(TestReallyLargeTagNumber other) : this() { 3334 a_ = other.a_; 3335 bb_ = other.bb_; 3336 _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); 3337 } 3338 3339 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 3340 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] Clone()3341 public TestReallyLargeTagNumber Clone() { 3342 return new TestReallyLargeTagNumber(this); 3343 } 3344 3345 /// <summary>Field number for the "a" field.</summary> 3346 public const int AFieldNumber = 1; 3347 private int a_; 3348 /// <summary> 3349 /// The largest possible tag number is 2^28 - 1, since the wire format uses 3350 /// three bits to communicate wire type. 3351 /// </summary> 3352 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 3353 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 3354 public int A { 3355 get { return a_; } 3356 set { 3357 a_ = value; 3358 } 3359 } 3360 3361 /// <summary>Field number for the "bb" field.</summary> 3362 public const int BbFieldNumber = 268435455; 3363 private int bb_; 3364 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 3365 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 3366 public int Bb { 3367 get { return bb_; } 3368 set { 3369 bb_ = value; 3370 } 3371 } 3372 3373 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 3374 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] Equals(object other)3375 public override bool Equals(object other) { 3376 return Equals(other as TestReallyLargeTagNumber); 3377 } 3378 3379 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 3380 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] Equals(TestReallyLargeTagNumber other)3381 public bool Equals(TestReallyLargeTagNumber other) { 3382 if (ReferenceEquals(other, null)) { 3383 return false; 3384 } 3385 if (ReferenceEquals(other, this)) { 3386 return true; 3387 } 3388 if (A != other.A) return false; 3389 if (Bb != other.Bb) return false; 3390 return Equals(_unknownFields, other._unknownFields); 3391 } 3392 3393 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 3394 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] GetHashCode()3395 public override int GetHashCode() { 3396 int hash = 1; 3397 if (A != 0) hash ^= A.GetHashCode(); 3398 if (Bb != 0) hash ^= Bb.GetHashCode(); 3399 if (_unknownFields != null) { 3400 hash ^= _unknownFields.GetHashCode(); 3401 } 3402 return hash; 3403 } 3404 3405 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 3406 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] ToString()3407 public override string ToString() { 3408 return pb::JsonFormatter.ToDiagnosticString(this); 3409 } 3410 3411 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 3412 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] WriteTo(pb::CodedOutputStream output)3413 public void WriteTo(pb::CodedOutputStream output) { 3414 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 3415 output.WriteRawMessage(this); 3416 #else 3417 if (A != 0) { 3418 output.WriteRawTag(8); 3419 output.WriteInt32(A); 3420 } 3421 if (Bb != 0) { 3422 output.WriteRawTag(248, 255, 255, 255, 7); 3423 output.WriteInt32(Bb); 3424 } 3425 if (_unknownFields != null) { 3426 _unknownFields.WriteTo(output); 3427 } 3428 #endif 3429 } 3430 3431 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 3432 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 3433 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] IBufferMessage.InternalWriteTo(ref pb::WriteContext output)3434 void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { 3435 if (A != 0) { 3436 output.WriteRawTag(8); 3437 output.WriteInt32(A); 3438 } 3439 if (Bb != 0) { 3440 output.WriteRawTag(248, 255, 255, 255, 7); 3441 output.WriteInt32(Bb); 3442 } 3443 if (_unknownFields != null) { 3444 _unknownFields.WriteTo(ref output); 3445 } 3446 } 3447 #endif 3448 3449 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 3450 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] CalculateSize()3451 public int CalculateSize() { 3452 int size = 0; 3453 if (A != 0) { 3454 size += 1 + pb::CodedOutputStream.ComputeInt32Size(A); 3455 } 3456 if (Bb != 0) { 3457 size += 5 + pb::CodedOutputStream.ComputeInt32Size(Bb); 3458 } 3459 if (_unknownFields != null) { 3460 size += _unknownFields.CalculateSize(); 3461 } 3462 return size; 3463 } 3464 3465 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 3466 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] MergeFrom(TestReallyLargeTagNumber other)3467 public void MergeFrom(TestReallyLargeTagNumber other) { 3468 if (other == null) { 3469 return; 3470 } 3471 if (other.A != 0) { 3472 A = other.A; 3473 } 3474 if (other.Bb != 0) { 3475 Bb = other.Bb; 3476 } 3477 _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); 3478 } 3479 3480 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 3481 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] MergeFrom(pb::CodedInputStream input)3482 public void MergeFrom(pb::CodedInputStream input) { 3483 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 3484 input.ReadRawMessage(this); 3485 #else 3486 uint tag; 3487 while ((tag = input.ReadTag()) != 0) { 3488 switch(tag) { 3489 default: 3490 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); 3491 break; 3492 case 8: { 3493 A = input.ReadInt32(); 3494 break; 3495 } 3496 case 2147483640: { 3497 Bb = input.ReadInt32(); 3498 break; 3499 } 3500 } 3501 } 3502 #endif 3503 } 3504 3505 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 3506 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 3507 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] IBufferMessage.InternalMergeFrom(ref pb::ParseContext input)3508 void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { 3509 uint tag; 3510 while ((tag = input.ReadTag()) != 0) { 3511 switch(tag) { 3512 default: 3513 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); 3514 break; 3515 case 8: { 3516 A = input.ReadInt32(); 3517 break; 3518 } 3519 case 2147483640: { 3520 Bb = input.ReadInt32(); 3521 break; 3522 } 3523 } 3524 } 3525 } 3526 #endif 3527 3528 } 3529 3530 public sealed partial class TestRecursiveMessage : pb::IMessage<TestRecursiveMessage> 3531 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 3532 , pb::IBufferMessage 3533 #endif 3534 { 3535 private static readonly pb::MessageParser<TestRecursiveMessage> _parser = new pb::MessageParser<TestRecursiveMessage>(() => new TestRecursiveMessage()); 3536 private pb::UnknownFieldSet _unknownFields; 3537 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 3538 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 3539 public static pb::MessageParser<TestRecursiveMessage> Parser { get { return _parser; } } 3540 3541 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 3542 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 3543 public static pbr::MessageDescriptor Descriptor { 3544 get { return global::Google.Protobuf.TestProtos.UnittestProto3Reflection.Descriptor.MessageTypes[7]; } 3545 } 3546 3547 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 3548 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 3549 pbr::MessageDescriptor pb::IMessage.Descriptor { 3550 get { return Descriptor; } 3551 } 3552 3553 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 3554 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] TestRecursiveMessage()3555 public TestRecursiveMessage() { 3556 OnConstruction(); 3557 } 3558 OnConstruction()3559 partial void OnConstruction(); 3560 3561 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 3562 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] TestRecursiveMessage(TestRecursiveMessage other)3563 public TestRecursiveMessage(TestRecursiveMessage other) : this() { 3564 a_ = other.a_ != null ? other.a_.Clone() : null; 3565 i_ = other.i_; 3566 _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); 3567 } 3568 3569 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 3570 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] Clone()3571 public TestRecursiveMessage Clone() { 3572 return new TestRecursiveMessage(this); 3573 } 3574 3575 /// <summary>Field number for the "a" field.</summary> 3576 public const int AFieldNumber = 1; 3577 private global::Google.Protobuf.TestProtos.TestRecursiveMessage a_; 3578 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 3579 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 3580 public global::Google.Protobuf.TestProtos.TestRecursiveMessage A { 3581 get { return a_; } 3582 set { 3583 a_ = value; 3584 } 3585 } 3586 3587 /// <summary>Field number for the "i" field.</summary> 3588 public const int IFieldNumber = 2; 3589 private int i_; 3590 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 3591 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 3592 public int I { 3593 get { return i_; } 3594 set { 3595 i_ = value; 3596 } 3597 } 3598 3599 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 3600 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] Equals(object other)3601 public override bool Equals(object other) { 3602 return Equals(other as TestRecursiveMessage); 3603 } 3604 3605 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 3606 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] Equals(TestRecursiveMessage other)3607 public bool Equals(TestRecursiveMessage other) { 3608 if (ReferenceEquals(other, null)) { 3609 return false; 3610 } 3611 if (ReferenceEquals(other, this)) { 3612 return true; 3613 } 3614 if (!object.Equals(A, other.A)) return false; 3615 if (I != other.I) return false; 3616 return Equals(_unknownFields, other._unknownFields); 3617 } 3618 3619 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 3620 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] GetHashCode()3621 public override int GetHashCode() { 3622 int hash = 1; 3623 if (a_ != null) hash ^= A.GetHashCode(); 3624 if (I != 0) hash ^= I.GetHashCode(); 3625 if (_unknownFields != null) { 3626 hash ^= _unknownFields.GetHashCode(); 3627 } 3628 return hash; 3629 } 3630 3631 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 3632 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] ToString()3633 public override string ToString() { 3634 return pb::JsonFormatter.ToDiagnosticString(this); 3635 } 3636 3637 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 3638 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] WriteTo(pb::CodedOutputStream output)3639 public void WriteTo(pb::CodedOutputStream output) { 3640 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 3641 output.WriteRawMessage(this); 3642 #else 3643 if (a_ != null) { 3644 output.WriteRawTag(10); 3645 output.WriteMessage(A); 3646 } 3647 if (I != 0) { 3648 output.WriteRawTag(16); 3649 output.WriteInt32(I); 3650 } 3651 if (_unknownFields != null) { 3652 _unknownFields.WriteTo(output); 3653 } 3654 #endif 3655 } 3656 3657 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 3658 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 3659 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] IBufferMessage.InternalWriteTo(ref pb::WriteContext output)3660 void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { 3661 if (a_ != null) { 3662 output.WriteRawTag(10); 3663 output.WriteMessage(A); 3664 } 3665 if (I != 0) { 3666 output.WriteRawTag(16); 3667 output.WriteInt32(I); 3668 } 3669 if (_unknownFields != null) { 3670 _unknownFields.WriteTo(ref output); 3671 } 3672 } 3673 #endif 3674 3675 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 3676 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] CalculateSize()3677 public int CalculateSize() { 3678 int size = 0; 3679 if (a_ != null) { 3680 size += 1 + pb::CodedOutputStream.ComputeMessageSize(A); 3681 } 3682 if (I != 0) { 3683 size += 1 + pb::CodedOutputStream.ComputeInt32Size(I); 3684 } 3685 if (_unknownFields != null) { 3686 size += _unknownFields.CalculateSize(); 3687 } 3688 return size; 3689 } 3690 3691 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 3692 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] MergeFrom(TestRecursiveMessage other)3693 public void MergeFrom(TestRecursiveMessage other) { 3694 if (other == null) { 3695 return; 3696 } 3697 if (other.a_ != null) { 3698 if (a_ == null) { 3699 A = new global::Google.Protobuf.TestProtos.TestRecursiveMessage(); 3700 } 3701 A.MergeFrom(other.A); 3702 } 3703 if (other.I != 0) { 3704 I = other.I; 3705 } 3706 _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); 3707 } 3708 3709 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 3710 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] MergeFrom(pb::CodedInputStream input)3711 public void MergeFrom(pb::CodedInputStream input) { 3712 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 3713 input.ReadRawMessage(this); 3714 #else 3715 uint tag; 3716 while ((tag = input.ReadTag()) != 0) { 3717 switch(tag) { 3718 default: 3719 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); 3720 break; 3721 case 10: { 3722 if (a_ == null) { 3723 A = new global::Google.Protobuf.TestProtos.TestRecursiveMessage(); 3724 } 3725 input.ReadMessage(A); 3726 break; 3727 } 3728 case 16: { 3729 I = input.ReadInt32(); 3730 break; 3731 } 3732 } 3733 } 3734 #endif 3735 } 3736 3737 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 3738 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 3739 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] IBufferMessage.InternalMergeFrom(ref pb::ParseContext input)3740 void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { 3741 uint tag; 3742 while ((tag = input.ReadTag()) != 0) { 3743 switch(tag) { 3744 default: 3745 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); 3746 break; 3747 case 10: { 3748 if (a_ == null) { 3749 A = new global::Google.Protobuf.TestProtos.TestRecursiveMessage(); 3750 } 3751 input.ReadMessage(A); 3752 break; 3753 } 3754 case 16: { 3755 I = input.ReadInt32(); 3756 break; 3757 } 3758 } 3759 } 3760 } 3761 #endif 3762 3763 } 3764 3765 /// <summary> 3766 /// Test that mutual recursion works. 3767 /// </summary> 3768 public sealed partial class TestMutualRecursionA : pb::IMessage<TestMutualRecursionA> 3769 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 3770 , pb::IBufferMessage 3771 #endif 3772 { 3773 private static readonly pb::MessageParser<TestMutualRecursionA> _parser = new pb::MessageParser<TestMutualRecursionA>(() => new TestMutualRecursionA()); 3774 private pb::UnknownFieldSet _unknownFields; 3775 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 3776 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 3777 public static pb::MessageParser<TestMutualRecursionA> Parser { get { return _parser; } } 3778 3779 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 3780 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 3781 public static pbr::MessageDescriptor Descriptor { 3782 get { return global::Google.Protobuf.TestProtos.UnittestProto3Reflection.Descriptor.MessageTypes[8]; } 3783 } 3784 3785 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 3786 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 3787 pbr::MessageDescriptor pb::IMessage.Descriptor { 3788 get { return Descriptor; } 3789 } 3790 3791 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 3792 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] TestMutualRecursionA()3793 public TestMutualRecursionA() { 3794 OnConstruction(); 3795 } 3796 OnConstruction()3797 partial void OnConstruction(); 3798 3799 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 3800 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] TestMutualRecursionA(TestMutualRecursionA other)3801 public TestMutualRecursionA(TestMutualRecursionA other) : this() { 3802 bb_ = other.bb_ != null ? other.bb_.Clone() : null; 3803 _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); 3804 } 3805 3806 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 3807 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] Clone()3808 public TestMutualRecursionA Clone() { 3809 return new TestMutualRecursionA(this); 3810 } 3811 3812 /// <summary>Field number for the "bb" field.</summary> 3813 public const int BbFieldNumber = 1; 3814 private global::Google.Protobuf.TestProtos.TestMutualRecursionB bb_; 3815 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 3816 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 3817 public global::Google.Protobuf.TestProtos.TestMutualRecursionB Bb { 3818 get { return bb_; } 3819 set { 3820 bb_ = value; 3821 } 3822 } 3823 3824 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 3825 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] Equals(object other)3826 public override bool Equals(object other) { 3827 return Equals(other as TestMutualRecursionA); 3828 } 3829 3830 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 3831 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] Equals(TestMutualRecursionA other)3832 public bool Equals(TestMutualRecursionA other) { 3833 if (ReferenceEquals(other, null)) { 3834 return false; 3835 } 3836 if (ReferenceEquals(other, this)) { 3837 return true; 3838 } 3839 if (!object.Equals(Bb, other.Bb)) return false; 3840 return Equals(_unknownFields, other._unknownFields); 3841 } 3842 3843 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 3844 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] GetHashCode()3845 public override int GetHashCode() { 3846 int hash = 1; 3847 if (bb_ != null) hash ^= Bb.GetHashCode(); 3848 if (_unknownFields != null) { 3849 hash ^= _unknownFields.GetHashCode(); 3850 } 3851 return hash; 3852 } 3853 3854 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 3855 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] ToString()3856 public override string ToString() { 3857 return pb::JsonFormatter.ToDiagnosticString(this); 3858 } 3859 3860 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 3861 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] WriteTo(pb::CodedOutputStream output)3862 public void WriteTo(pb::CodedOutputStream output) { 3863 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 3864 output.WriteRawMessage(this); 3865 #else 3866 if (bb_ != null) { 3867 output.WriteRawTag(10); 3868 output.WriteMessage(Bb); 3869 } 3870 if (_unknownFields != null) { 3871 _unknownFields.WriteTo(output); 3872 } 3873 #endif 3874 } 3875 3876 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 3877 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 3878 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] IBufferMessage.InternalWriteTo(ref pb::WriteContext output)3879 void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { 3880 if (bb_ != null) { 3881 output.WriteRawTag(10); 3882 output.WriteMessage(Bb); 3883 } 3884 if (_unknownFields != null) { 3885 _unknownFields.WriteTo(ref output); 3886 } 3887 } 3888 #endif 3889 3890 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 3891 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] CalculateSize()3892 public int CalculateSize() { 3893 int size = 0; 3894 if (bb_ != null) { 3895 size += 1 + pb::CodedOutputStream.ComputeMessageSize(Bb); 3896 } 3897 if (_unknownFields != null) { 3898 size += _unknownFields.CalculateSize(); 3899 } 3900 return size; 3901 } 3902 3903 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 3904 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] MergeFrom(TestMutualRecursionA other)3905 public void MergeFrom(TestMutualRecursionA other) { 3906 if (other == null) { 3907 return; 3908 } 3909 if (other.bb_ != null) { 3910 if (bb_ == null) { 3911 Bb = new global::Google.Protobuf.TestProtos.TestMutualRecursionB(); 3912 } 3913 Bb.MergeFrom(other.Bb); 3914 } 3915 _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); 3916 } 3917 3918 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 3919 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] MergeFrom(pb::CodedInputStream input)3920 public void MergeFrom(pb::CodedInputStream input) { 3921 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 3922 input.ReadRawMessage(this); 3923 #else 3924 uint tag; 3925 while ((tag = input.ReadTag()) != 0) { 3926 switch(tag) { 3927 default: 3928 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); 3929 break; 3930 case 10: { 3931 if (bb_ == null) { 3932 Bb = new global::Google.Protobuf.TestProtos.TestMutualRecursionB(); 3933 } 3934 input.ReadMessage(Bb); 3935 break; 3936 } 3937 } 3938 } 3939 #endif 3940 } 3941 3942 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 3943 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 3944 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] IBufferMessage.InternalMergeFrom(ref pb::ParseContext input)3945 void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { 3946 uint tag; 3947 while ((tag = input.ReadTag()) != 0) { 3948 switch(tag) { 3949 default: 3950 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); 3951 break; 3952 case 10: { 3953 if (bb_ == null) { 3954 Bb = new global::Google.Protobuf.TestProtos.TestMutualRecursionB(); 3955 } 3956 input.ReadMessage(Bb); 3957 break; 3958 } 3959 } 3960 } 3961 } 3962 #endif 3963 3964 } 3965 3966 public sealed partial class TestMutualRecursionB : pb::IMessage<TestMutualRecursionB> 3967 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 3968 , pb::IBufferMessage 3969 #endif 3970 { 3971 private static readonly pb::MessageParser<TestMutualRecursionB> _parser = new pb::MessageParser<TestMutualRecursionB>(() => new TestMutualRecursionB()); 3972 private pb::UnknownFieldSet _unknownFields; 3973 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 3974 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 3975 public static pb::MessageParser<TestMutualRecursionB> Parser { get { return _parser; } } 3976 3977 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 3978 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 3979 public static pbr::MessageDescriptor Descriptor { 3980 get { return global::Google.Protobuf.TestProtos.UnittestProto3Reflection.Descriptor.MessageTypes[9]; } 3981 } 3982 3983 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 3984 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 3985 pbr::MessageDescriptor pb::IMessage.Descriptor { 3986 get { return Descriptor; } 3987 } 3988 3989 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 3990 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] TestMutualRecursionB()3991 public TestMutualRecursionB() { 3992 OnConstruction(); 3993 } 3994 OnConstruction()3995 partial void OnConstruction(); 3996 3997 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 3998 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] TestMutualRecursionB(TestMutualRecursionB other)3999 public TestMutualRecursionB(TestMutualRecursionB other) : this() { 4000 a_ = other.a_ != null ? other.a_.Clone() : null; 4001 optionalInt32_ = other.optionalInt32_; 4002 _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); 4003 } 4004 4005 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 4006 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] Clone()4007 public TestMutualRecursionB Clone() { 4008 return new TestMutualRecursionB(this); 4009 } 4010 4011 /// <summary>Field number for the "a" field.</summary> 4012 public const int AFieldNumber = 1; 4013 private global::Google.Protobuf.TestProtos.TestMutualRecursionA a_; 4014 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 4015 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 4016 public global::Google.Protobuf.TestProtos.TestMutualRecursionA A { 4017 get { return a_; } 4018 set { 4019 a_ = value; 4020 } 4021 } 4022 4023 /// <summary>Field number for the "optional_int32" field.</summary> 4024 public const int OptionalInt32FieldNumber = 2; 4025 private int optionalInt32_; 4026 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 4027 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 4028 public int OptionalInt32 { 4029 get { return optionalInt32_; } 4030 set { 4031 optionalInt32_ = value; 4032 } 4033 } 4034 4035 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 4036 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] Equals(object other)4037 public override bool Equals(object other) { 4038 return Equals(other as TestMutualRecursionB); 4039 } 4040 4041 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 4042 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] Equals(TestMutualRecursionB other)4043 public bool Equals(TestMutualRecursionB other) { 4044 if (ReferenceEquals(other, null)) { 4045 return false; 4046 } 4047 if (ReferenceEquals(other, this)) { 4048 return true; 4049 } 4050 if (!object.Equals(A, other.A)) return false; 4051 if (OptionalInt32 != other.OptionalInt32) return false; 4052 return Equals(_unknownFields, other._unknownFields); 4053 } 4054 4055 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 4056 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] GetHashCode()4057 public override int GetHashCode() { 4058 int hash = 1; 4059 if (a_ != null) hash ^= A.GetHashCode(); 4060 if (OptionalInt32 != 0) hash ^= OptionalInt32.GetHashCode(); 4061 if (_unknownFields != null) { 4062 hash ^= _unknownFields.GetHashCode(); 4063 } 4064 return hash; 4065 } 4066 4067 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 4068 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] ToString()4069 public override string ToString() { 4070 return pb::JsonFormatter.ToDiagnosticString(this); 4071 } 4072 4073 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 4074 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] WriteTo(pb::CodedOutputStream output)4075 public void WriteTo(pb::CodedOutputStream output) { 4076 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 4077 output.WriteRawMessage(this); 4078 #else 4079 if (a_ != null) { 4080 output.WriteRawTag(10); 4081 output.WriteMessage(A); 4082 } 4083 if (OptionalInt32 != 0) { 4084 output.WriteRawTag(16); 4085 output.WriteInt32(OptionalInt32); 4086 } 4087 if (_unknownFields != null) { 4088 _unknownFields.WriteTo(output); 4089 } 4090 #endif 4091 } 4092 4093 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 4094 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 4095 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] IBufferMessage.InternalWriteTo(ref pb::WriteContext output)4096 void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { 4097 if (a_ != null) { 4098 output.WriteRawTag(10); 4099 output.WriteMessage(A); 4100 } 4101 if (OptionalInt32 != 0) { 4102 output.WriteRawTag(16); 4103 output.WriteInt32(OptionalInt32); 4104 } 4105 if (_unknownFields != null) { 4106 _unknownFields.WriteTo(ref output); 4107 } 4108 } 4109 #endif 4110 4111 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 4112 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] CalculateSize()4113 public int CalculateSize() { 4114 int size = 0; 4115 if (a_ != null) { 4116 size += 1 + pb::CodedOutputStream.ComputeMessageSize(A); 4117 } 4118 if (OptionalInt32 != 0) { 4119 size += 1 + pb::CodedOutputStream.ComputeInt32Size(OptionalInt32); 4120 } 4121 if (_unknownFields != null) { 4122 size += _unknownFields.CalculateSize(); 4123 } 4124 return size; 4125 } 4126 4127 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 4128 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] MergeFrom(TestMutualRecursionB other)4129 public void MergeFrom(TestMutualRecursionB other) { 4130 if (other == null) { 4131 return; 4132 } 4133 if (other.a_ != null) { 4134 if (a_ == null) { 4135 A = new global::Google.Protobuf.TestProtos.TestMutualRecursionA(); 4136 } 4137 A.MergeFrom(other.A); 4138 } 4139 if (other.OptionalInt32 != 0) { 4140 OptionalInt32 = other.OptionalInt32; 4141 } 4142 _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); 4143 } 4144 4145 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 4146 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] MergeFrom(pb::CodedInputStream input)4147 public void MergeFrom(pb::CodedInputStream input) { 4148 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 4149 input.ReadRawMessage(this); 4150 #else 4151 uint tag; 4152 while ((tag = input.ReadTag()) != 0) { 4153 switch(tag) { 4154 default: 4155 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); 4156 break; 4157 case 10: { 4158 if (a_ == null) { 4159 A = new global::Google.Protobuf.TestProtos.TestMutualRecursionA(); 4160 } 4161 input.ReadMessage(A); 4162 break; 4163 } 4164 case 16: { 4165 OptionalInt32 = input.ReadInt32(); 4166 break; 4167 } 4168 } 4169 } 4170 #endif 4171 } 4172 4173 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 4174 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 4175 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] IBufferMessage.InternalMergeFrom(ref pb::ParseContext input)4176 void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { 4177 uint tag; 4178 while ((tag = input.ReadTag()) != 0) { 4179 switch(tag) { 4180 default: 4181 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); 4182 break; 4183 case 10: { 4184 if (a_ == null) { 4185 A = new global::Google.Protobuf.TestProtos.TestMutualRecursionA(); 4186 } 4187 input.ReadMessage(A); 4188 break; 4189 } 4190 case 16: { 4191 OptionalInt32 = input.ReadInt32(); 4192 break; 4193 } 4194 } 4195 } 4196 } 4197 #endif 4198 4199 } 4200 4201 public sealed partial class TestEnumAllowAlias : pb::IMessage<TestEnumAllowAlias> 4202 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 4203 , pb::IBufferMessage 4204 #endif 4205 { 4206 private static readonly pb::MessageParser<TestEnumAllowAlias> _parser = new pb::MessageParser<TestEnumAllowAlias>(() => new TestEnumAllowAlias()); 4207 private pb::UnknownFieldSet _unknownFields; 4208 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 4209 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 4210 public static pb::MessageParser<TestEnumAllowAlias> Parser { get { return _parser; } } 4211 4212 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 4213 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 4214 public static pbr::MessageDescriptor Descriptor { 4215 get { return global::Google.Protobuf.TestProtos.UnittestProto3Reflection.Descriptor.MessageTypes[10]; } 4216 } 4217 4218 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 4219 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 4220 pbr::MessageDescriptor pb::IMessage.Descriptor { 4221 get { return Descriptor; } 4222 } 4223 4224 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 4225 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] TestEnumAllowAlias()4226 public TestEnumAllowAlias() { 4227 OnConstruction(); 4228 } 4229 OnConstruction()4230 partial void OnConstruction(); 4231 4232 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 4233 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] TestEnumAllowAlias(TestEnumAllowAlias other)4234 public TestEnumAllowAlias(TestEnumAllowAlias other) : this() { 4235 value_ = other.value_; 4236 _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); 4237 } 4238 4239 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 4240 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] Clone()4241 public TestEnumAllowAlias Clone() { 4242 return new TestEnumAllowAlias(this); 4243 } 4244 4245 /// <summary>Field number for the "value" field.</summary> 4246 public const int ValueFieldNumber = 1; 4247 private global::Google.Protobuf.TestProtos.TestEnumWithDupValue value_ = global::Google.Protobuf.TestProtos.TestEnumWithDupValue.Unspecified; 4248 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 4249 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 4250 public global::Google.Protobuf.TestProtos.TestEnumWithDupValue Value { 4251 get { return value_; } 4252 set { 4253 value_ = value; 4254 } 4255 } 4256 4257 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 4258 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] Equals(object other)4259 public override bool Equals(object other) { 4260 return Equals(other as TestEnumAllowAlias); 4261 } 4262 4263 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 4264 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] Equals(TestEnumAllowAlias other)4265 public bool Equals(TestEnumAllowAlias other) { 4266 if (ReferenceEquals(other, null)) { 4267 return false; 4268 } 4269 if (ReferenceEquals(other, this)) { 4270 return true; 4271 } 4272 if (Value != other.Value) return false; 4273 return Equals(_unknownFields, other._unknownFields); 4274 } 4275 4276 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 4277 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] GetHashCode()4278 public override int GetHashCode() { 4279 int hash = 1; 4280 if (Value != global::Google.Protobuf.TestProtos.TestEnumWithDupValue.Unspecified) hash ^= Value.GetHashCode(); 4281 if (_unknownFields != null) { 4282 hash ^= _unknownFields.GetHashCode(); 4283 } 4284 return hash; 4285 } 4286 4287 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 4288 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] ToString()4289 public override string ToString() { 4290 return pb::JsonFormatter.ToDiagnosticString(this); 4291 } 4292 4293 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 4294 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] WriteTo(pb::CodedOutputStream output)4295 public void WriteTo(pb::CodedOutputStream output) { 4296 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 4297 output.WriteRawMessage(this); 4298 #else 4299 if (Value != global::Google.Protobuf.TestProtos.TestEnumWithDupValue.Unspecified) { 4300 output.WriteRawTag(8); 4301 output.WriteEnum((int) Value); 4302 } 4303 if (_unknownFields != null) { 4304 _unknownFields.WriteTo(output); 4305 } 4306 #endif 4307 } 4308 4309 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 4310 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 4311 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] IBufferMessage.InternalWriteTo(ref pb::WriteContext output)4312 void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { 4313 if (Value != global::Google.Protobuf.TestProtos.TestEnumWithDupValue.Unspecified) { 4314 output.WriteRawTag(8); 4315 output.WriteEnum((int) Value); 4316 } 4317 if (_unknownFields != null) { 4318 _unknownFields.WriteTo(ref output); 4319 } 4320 } 4321 #endif 4322 4323 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 4324 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] CalculateSize()4325 public int CalculateSize() { 4326 int size = 0; 4327 if (Value != global::Google.Protobuf.TestProtos.TestEnumWithDupValue.Unspecified) { 4328 size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) Value); 4329 } 4330 if (_unknownFields != null) { 4331 size += _unknownFields.CalculateSize(); 4332 } 4333 return size; 4334 } 4335 4336 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 4337 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] MergeFrom(TestEnumAllowAlias other)4338 public void MergeFrom(TestEnumAllowAlias other) { 4339 if (other == null) { 4340 return; 4341 } 4342 if (other.Value != global::Google.Protobuf.TestProtos.TestEnumWithDupValue.Unspecified) { 4343 Value = other.Value; 4344 } 4345 _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); 4346 } 4347 4348 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 4349 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] MergeFrom(pb::CodedInputStream input)4350 public void MergeFrom(pb::CodedInputStream input) { 4351 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 4352 input.ReadRawMessage(this); 4353 #else 4354 uint tag; 4355 while ((tag = input.ReadTag()) != 0) { 4356 switch(tag) { 4357 default: 4358 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); 4359 break; 4360 case 8: { 4361 Value = (global::Google.Protobuf.TestProtos.TestEnumWithDupValue) input.ReadEnum(); 4362 break; 4363 } 4364 } 4365 } 4366 #endif 4367 } 4368 4369 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 4370 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 4371 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] IBufferMessage.InternalMergeFrom(ref pb::ParseContext input)4372 void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { 4373 uint tag; 4374 while ((tag = input.ReadTag()) != 0) { 4375 switch(tag) { 4376 default: 4377 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); 4378 break; 4379 case 8: { 4380 Value = (global::Google.Protobuf.TestProtos.TestEnumWithDupValue) input.ReadEnum(); 4381 break; 4382 } 4383 } 4384 } 4385 } 4386 #endif 4387 4388 } 4389 4390 /// <summary> 4391 /// Test message with CamelCase field names. This violates Protocol Buffer 4392 /// standard style. 4393 /// </summary> 4394 public sealed partial class TestCamelCaseFieldNames : pb::IMessage<TestCamelCaseFieldNames> 4395 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 4396 , pb::IBufferMessage 4397 #endif 4398 { 4399 private static readonly pb::MessageParser<TestCamelCaseFieldNames> _parser = new pb::MessageParser<TestCamelCaseFieldNames>(() => new TestCamelCaseFieldNames()); 4400 private pb::UnknownFieldSet _unknownFields; 4401 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 4402 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 4403 public static pb::MessageParser<TestCamelCaseFieldNames> Parser { get { return _parser; } } 4404 4405 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 4406 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 4407 public static pbr::MessageDescriptor Descriptor { 4408 get { return global::Google.Protobuf.TestProtos.UnittestProto3Reflection.Descriptor.MessageTypes[11]; } 4409 } 4410 4411 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 4412 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 4413 pbr::MessageDescriptor pb::IMessage.Descriptor { 4414 get { return Descriptor; } 4415 } 4416 4417 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 4418 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] TestCamelCaseFieldNames()4419 public TestCamelCaseFieldNames() { 4420 OnConstruction(); 4421 } 4422 OnConstruction()4423 partial void OnConstruction(); 4424 4425 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 4426 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] TestCamelCaseFieldNames(TestCamelCaseFieldNames other)4427 public TestCamelCaseFieldNames(TestCamelCaseFieldNames other) : this() { 4428 primitiveField_ = other.primitiveField_; 4429 stringField_ = other.stringField_; 4430 enumField_ = other.enumField_; 4431 messageField_ = other.messageField_ != null ? other.messageField_.Clone() : null; 4432 repeatedPrimitiveField_ = other.repeatedPrimitiveField_.Clone(); 4433 repeatedStringField_ = other.repeatedStringField_.Clone(); 4434 repeatedEnumField_ = other.repeatedEnumField_.Clone(); 4435 repeatedMessageField_ = other.repeatedMessageField_.Clone(); 4436 _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); 4437 } 4438 4439 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 4440 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] Clone()4441 public TestCamelCaseFieldNames Clone() { 4442 return new TestCamelCaseFieldNames(this); 4443 } 4444 4445 /// <summary>Field number for the "PrimitiveField" field.</summary> 4446 public const int PrimitiveFieldFieldNumber = 1; 4447 private int primitiveField_; 4448 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 4449 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 4450 public int PrimitiveField { 4451 get { return primitiveField_; } 4452 set { 4453 primitiveField_ = value; 4454 } 4455 } 4456 4457 /// <summary>Field number for the "StringField" field.</summary> 4458 public const int StringFieldFieldNumber = 2; 4459 private string stringField_ = ""; 4460 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 4461 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 4462 public string StringField { 4463 get { return stringField_; } 4464 set { 4465 stringField_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); 4466 } 4467 } 4468 4469 /// <summary>Field number for the "EnumField" field.</summary> 4470 public const int EnumFieldFieldNumber = 3; 4471 private global::Google.Protobuf.TestProtos.ForeignEnum enumField_ = global::Google.Protobuf.TestProtos.ForeignEnum.ForeignUnspecified; 4472 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 4473 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 4474 public global::Google.Protobuf.TestProtos.ForeignEnum EnumField { 4475 get { return enumField_; } 4476 set { 4477 enumField_ = value; 4478 } 4479 } 4480 4481 /// <summary>Field number for the "MessageField" field.</summary> 4482 public const int MessageFieldFieldNumber = 4; 4483 private global::Google.Protobuf.TestProtos.ForeignMessage messageField_; 4484 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 4485 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 4486 public global::Google.Protobuf.TestProtos.ForeignMessage MessageField { 4487 get { return messageField_; } 4488 set { 4489 messageField_ = value; 4490 } 4491 } 4492 4493 /// <summary>Field number for the "RepeatedPrimitiveField" field.</summary> 4494 public const int RepeatedPrimitiveFieldFieldNumber = 7; 4495 private static readonly pb::FieldCodec<int> _repeated_repeatedPrimitiveField_codec 4496 = pb::FieldCodec.ForInt32(58); 4497 private readonly pbc::RepeatedField<int> repeatedPrimitiveField_ = new pbc::RepeatedField<int>(); 4498 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 4499 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 4500 public pbc::RepeatedField<int> RepeatedPrimitiveField { 4501 get { return repeatedPrimitiveField_; } 4502 } 4503 4504 /// <summary>Field number for the "RepeatedStringField" field.</summary> 4505 public const int RepeatedStringFieldFieldNumber = 8; 4506 private static readonly pb::FieldCodec<string> _repeated_repeatedStringField_codec 4507 = pb::FieldCodec.ForString(66); 4508 private readonly pbc::RepeatedField<string> repeatedStringField_ = new pbc::RepeatedField<string>(); 4509 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 4510 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 4511 public pbc::RepeatedField<string> RepeatedStringField { 4512 get { return repeatedStringField_; } 4513 } 4514 4515 /// <summary>Field number for the "RepeatedEnumField" field.</summary> 4516 public const int RepeatedEnumFieldFieldNumber = 9; 4517 private static readonly pb::FieldCodec<global::Google.Protobuf.TestProtos.ForeignEnum> _repeated_repeatedEnumField_codec 4518 = pb::FieldCodec.ForEnum(74, x => (int) x, x => (global::Google.Protobuf.TestProtos.ForeignEnum) x); 4519 private readonly pbc::RepeatedField<global::Google.Protobuf.TestProtos.ForeignEnum> repeatedEnumField_ = new pbc::RepeatedField<global::Google.Protobuf.TestProtos.ForeignEnum>(); 4520 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 4521 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 4522 public pbc::RepeatedField<global::Google.Protobuf.TestProtos.ForeignEnum> RepeatedEnumField { 4523 get { return repeatedEnumField_; } 4524 } 4525 4526 /// <summary>Field number for the "RepeatedMessageField" field.</summary> 4527 public const int RepeatedMessageFieldFieldNumber = 10; 4528 private static readonly pb::FieldCodec<global::Google.Protobuf.TestProtos.ForeignMessage> _repeated_repeatedMessageField_codec 4529 = pb::FieldCodec.ForMessage(82, global::Google.Protobuf.TestProtos.ForeignMessage.Parser); 4530 private readonly pbc::RepeatedField<global::Google.Protobuf.TestProtos.ForeignMessage> repeatedMessageField_ = new pbc::RepeatedField<global::Google.Protobuf.TestProtos.ForeignMessage>(); 4531 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 4532 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 4533 public pbc::RepeatedField<global::Google.Protobuf.TestProtos.ForeignMessage> RepeatedMessageField { 4534 get { return repeatedMessageField_; } 4535 } 4536 4537 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 4538 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] Equals(object other)4539 public override bool Equals(object other) { 4540 return Equals(other as TestCamelCaseFieldNames); 4541 } 4542 4543 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 4544 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] Equals(TestCamelCaseFieldNames other)4545 public bool Equals(TestCamelCaseFieldNames other) { 4546 if (ReferenceEquals(other, null)) { 4547 return false; 4548 } 4549 if (ReferenceEquals(other, this)) { 4550 return true; 4551 } 4552 if (PrimitiveField != other.PrimitiveField) return false; 4553 if (StringField != other.StringField) return false; 4554 if (EnumField != other.EnumField) return false; 4555 if (!object.Equals(MessageField, other.MessageField)) return false; 4556 if(!repeatedPrimitiveField_.Equals(other.repeatedPrimitiveField_)) return false; 4557 if(!repeatedStringField_.Equals(other.repeatedStringField_)) return false; 4558 if(!repeatedEnumField_.Equals(other.repeatedEnumField_)) return false; 4559 if(!repeatedMessageField_.Equals(other.repeatedMessageField_)) return false; 4560 return Equals(_unknownFields, other._unknownFields); 4561 } 4562 4563 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 4564 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] GetHashCode()4565 public override int GetHashCode() { 4566 int hash = 1; 4567 if (PrimitiveField != 0) hash ^= PrimitiveField.GetHashCode(); 4568 if (StringField.Length != 0) hash ^= StringField.GetHashCode(); 4569 if (EnumField != global::Google.Protobuf.TestProtos.ForeignEnum.ForeignUnspecified) hash ^= EnumField.GetHashCode(); 4570 if (messageField_ != null) hash ^= MessageField.GetHashCode(); 4571 hash ^= repeatedPrimitiveField_.GetHashCode(); 4572 hash ^= repeatedStringField_.GetHashCode(); 4573 hash ^= repeatedEnumField_.GetHashCode(); 4574 hash ^= repeatedMessageField_.GetHashCode(); 4575 if (_unknownFields != null) { 4576 hash ^= _unknownFields.GetHashCode(); 4577 } 4578 return hash; 4579 } 4580 4581 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 4582 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] ToString()4583 public override string ToString() { 4584 return pb::JsonFormatter.ToDiagnosticString(this); 4585 } 4586 4587 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 4588 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] WriteTo(pb::CodedOutputStream output)4589 public void WriteTo(pb::CodedOutputStream output) { 4590 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 4591 output.WriteRawMessage(this); 4592 #else 4593 if (PrimitiveField != 0) { 4594 output.WriteRawTag(8); 4595 output.WriteInt32(PrimitiveField); 4596 } 4597 if (StringField.Length != 0) { 4598 output.WriteRawTag(18); 4599 output.WriteString(StringField); 4600 } 4601 if (EnumField != global::Google.Protobuf.TestProtos.ForeignEnum.ForeignUnspecified) { 4602 output.WriteRawTag(24); 4603 output.WriteEnum((int) EnumField); 4604 } 4605 if (messageField_ != null) { 4606 output.WriteRawTag(34); 4607 output.WriteMessage(MessageField); 4608 } 4609 repeatedPrimitiveField_.WriteTo(output, _repeated_repeatedPrimitiveField_codec); 4610 repeatedStringField_.WriteTo(output, _repeated_repeatedStringField_codec); 4611 repeatedEnumField_.WriteTo(output, _repeated_repeatedEnumField_codec); 4612 repeatedMessageField_.WriteTo(output, _repeated_repeatedMessageField_codec); 4613 if (_unknownFields != null) { 4614 _unknownFields.WriteTo(output); 4615 } 4616 #endif 4617 } 4618 4619 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 4620 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 4621 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] IBufferMessage.InternalWriteTo(ref pb::WriteContext output)4622 void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { 4623 if (PrimitiveField != 0) { 4624 output.WriteRawTag(8); 4625 output.WriteInt32(PrimitiveField); 4626 } 4627 if (StringField.Length != 0) { 4628 output.WriteRawTag(18); 4629 output.WriteString(StringField); 4630 } 4631 if (EnumField != global::Google.Protobuf.TestProtos.ForeignEnum.ForeignUnspecified) { 4632 output.WriteRawTag(24); 4633 output.WriteEnum((int) EnumField); 4634 } 4635 if (messageField_ != null) { 4636 output.WriteRawTag(34); 4637 output.WriteMessage(MessageField); 4638 } 4639 repeatedPrimitiveField_.WriteTo(ref output, _repeated_repeatedPrimitiveField_codec); 4640 repeatedStringField_.WriteTo(ref output, _repeated_repeatedStringField_codec); 4641 repeatedEnumField_.WriteTo(ref output, _repeated_repeatedEnumField_codec); 4642 repeatedMessageField_.WriteTo(ref output, _repeated_repeatedMessageField_codec); 4643 if (_unknownFields != null) { 4644 _unknownFields.WriteTo(ref output); 4645 } 4646 } 4647 #endif 4648 4649 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 4650 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] CalculateSize()4651 public int CalculateSize() { 4652 int size = 0; 4653 if (PrimitiveField != 0) { 4654 size += 1 + pb::CodedOutputStream.ComputeInt32Size(PrimitiveField); 4655 } 4656 if (StringField.Length != 0) { 4657 size += 1 + pb::CodedOutputStream.ComputeStringSize(StringField); 4658 } 4659 if (EnumField != global::Google.Protobuf.TestProtos.ForeignEnum.ForeignUnspecified) { 4660 size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) EnumField); 4661 } 4662 if (messageField_ != null) { 4663 size += 1 + pb::CodedOutputStream.ComputeMessageSize(MessageField); 4664 } 4665 size += repeatedPrimitiveField_.CalculateSize(_repeated_repeatedPrimitiveField_codec); 4666 size += repeatedStringField_.CalculateSize(_repeated_repeatedStringField_codec); 4667 size += repeatedEnumField_.CalculateSize(_repeated_repeatedEnumField_codec); 4668 size += repeatedMessageField_.CalculateSize(_repeated_repeatedMessageField_codec); 4669 if (_unknownFields != null) { 4670 size += _unknownFields.CalculateSize(); 4671 } 4672 return size; 4673 } 4674 4675 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 4676 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] MergeFrom(TestCamelCaseFieldNames other)4677 public void MergeFrom(TestCamelCaseFieldNames other) { 4678 if (other == null) { 4679 return; 4680 } 4681 if (other.PrimitiveField != 0) { 4682 PrimitiveField = other.PrimitiveField; 4683 } 4684 if (other.StringField.Length != 0) { 4685 StringField = other.StringField; 4686 } 4687 if (other.EnumField != global::Google.Protobuf.TestProtos.ForeignEnum.ForeignUnspecified) { 4688 EnumField = other.EnumField; 4689 } 4690 if (other.messageField_ != null) { 4691 if (messageField_ == null) { 4692 MessageField = new global::Google.Protobuf.TestProtos.ForeignMessage(); 4693 } 4694 MessageField.MergeFrom(other.MessageField); 4695 } 4696 repeatedPrimitiveField_.Add(other.repeatedPrimitiveField_); 4697 repeatedStringField_.Add(other.repeatedStringField_); 4698 repeatedEnumField_.Add(other.repeatedEnumField_); 4699 repeatedMessageField_.Add(other.repeatedMessageField_); 4700 _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); 4701 } 4702 4703 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 4704 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] MergeFrom(pb::CodedInputStream input)4705 public void MergeFrom(pb::CodedInputStream input) { 4706 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 4707 input.ReadRawMessage(this); 4708 #else 4709 uint tag; 4710 while ((tag = input.ReadTag()) != 0) { 4711 switch(tag) { 4712 default: 4713 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); 4714 break; 4715 case 8: { 4716 PrimitiveField = input.ReadInt32(); 4717 break; 4718 } 4719 case 18: { 4720 StringField = input.ReadString(); 4721 break; 4722 } 4723 case 24: { 4724 EnumField = (global::Google.Protobuf.TestProtos.ForeignEnum) input.ReadEnum(); 4725 break; 4726 } 4727 case 34: { 4728 if (messageField_ == null) { 4729 MessageField = new global::Google.Protobuf.TestProtos.ForeignMessage(); 4730 } 4731 input.ReadMessage(MessageField); 4732 break; 4733 } 4734 case 58: 4735 case 56: { 4736 repeatedPrimitiveField_.AddEntriesFrom(input, _repeated_repeatedPrimitiveField_codec); 4737 break; 4738 } 4739 case 66: { 4740 repeatedStringField_.AddEntriesFrom(input, _repeated_repeatedStringField_codec); 4741 break; 4742 } 4743 case 74: 4744 case 72: { 4745 repeatedEnumField_.AddEntriesFrom(input, _repeated_repeatedEnumField_codec); 4746 break; 4747 } 4748 case 82: { 4749 repeatedMessageField_.AddEntriesFrom(input, _repeated_repeatedMessageField_codec); 4750 break; 4751 } 4752 } 4753 } 4754 #endif 4755 } 4756 4757 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 4758 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 4759 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] IBufferMessage.InternalMergeFrom(ref pb::ParseContext input)4760 void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { 4761 uint tag; 4762 while ((tag = input.ReadTag()) != 0) { 4763 switch(tag) { 4764 default: 4765 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); 4766 break; 4767 case 8: { 4768 PrimitiveField = input.ReadInt32(); 4769 break; 4770 } 4771 case 18: { 4772 StringField = input.ReadString(); 4773 break; 4774 } 4775 case 24: { 4776 EnumField = (global::Google.Protobuf.TestProtos.ForeignEnum) input.ReadEnum(); 4777 break; 4778 } 4779 case 34: { 4780 if (messageField_ == null) { 4781 MessageField = new global::Google.Protobuf.TestProtos.ForeignMessage(); 4782 } 4783 input.ReadMessage(MessageField); 4784 break; 4785 } 4786 case 58: 4787 case 56: { 4788 repeatedPrimitiveField_.AddEntriesFrom(ref input, _repeated_repeatedPrimitiveField_codec); 4789 break; 4790 } 4791 case 66: { 4792 repeatedStringField_.AddEntriesFrom(ref input, _repeated_repeatedStringField_codec); 4793 break; 4794 } 4795 case 74: 4796 case 72: { 4797 repeatedEnumField_.AddEntriesFrom(ref input, _repeated_repeatedEnumField_codec); 4798 break; 4799 } 4800 case 82: { 4801 repeatedMessageField_.AddEntriesFrom(ref input, _repeated_repeatedMessageField_codec); 4802 break; 4803 } 4804 } 4805 } 4806 } 4807 #endif 4808 4809 } 4810 4811 /// <summary> 4812 /// We list fields out of order, to ensure that we're using field number and not 4813 /// field index to determine serialization order. 4814 /// </summary> 4815 public sealed partial class TestFieldOrderings : pb::IMessage<TestFieldOrderings> 4816 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 4817 , pb::IBufferMessage 4818 #endif 4819 { 4820 private static readonly pb::MessageParser<TestFieldOrderings> _parser = new pb::MessageParser<TestFieldOrderings>(() => new TestFieldOrderings()); 4821 private pb::UnknownFieldSet _unknownFields; 4822 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 4823 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 4824 public static pb::MessageParser<TestFieldOrderings> Parser { get { return _parser; } } 4825 4826 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 4827 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 4828 public static pbr::MessageDescriptor Descriptor { 4829 get { return global::Google.Protobuf.TestProtos.UnittestProto3Reflection.Descriptor.MessageTypes[12]; } 4830 } 4831 4832 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 4833 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 4834 pbr::MessageDescriptor pb::IMessage.Descriptor { 4835 get { return Descriptor; } 4836 } 4837 4838 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 4839 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] TestFieldOrderings()4840 public TestFieldOrderings() { 4841 OnConstruction(); 4842 } 4843 OnConstruction()4844 partial void OnConstruction(); 4845 4846 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 4847 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] TestFieldOrderings(TestFieldOrderings other)4848 public TestFieldOrderings(TestFieldOrderings other) : this() { 4849 myString_ = other.myString_; 4850 myInt_ = other.myInt_; 4851 myFloat_ = other.myFloat_; 4852 singleNestedMessage_ = other.singleNestedMessage_ != null ? other.singleNestedMessage_.Clone() : null; 4853 _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); 4854 } 4855 4856 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 4857 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] Clone()4858 public TestFieldOrderings Clone() { 4859 return new TestFieldOrderings(this); 4860 } 4861 4862 /// <summary>Field number for the "my_string" field.</summary> 4863 public const int MyStringFieldNumber = 11; 4864 private string myString_ = ""; 4865 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 4866 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 4867 public string MyString { 4868 get { return myString_; } 4869 set { 4870 myString_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); 4871 } 4872 } 4873 4874 /// <summary>Field number for the "my_int" field.</summary> 4875 public const int MyIntFieldNumber = 1; 4876 private long myInt_; 4877 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 4878 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 4879 public long MyInt { 4880 get { return myInt_; } 4881 set { 4882 myInt_ = value; 4883 } 4884 } 4885 4886 /// <summary>Field number for the "my_float" field.</summary> 4887 public const int MyFloatFieldNumber = 101; 4888 private float myFloat_; 4889 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 4890 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 4891 public float MyFloat { 4892 get { return myFloat_; } 4893 set { 4894 myFloat_ = value; 4895 } 4896 } 4897 4898 /// <summary>Field number for the "single_nested_message" field.</summary> 4899 public const int SingleNestedMessageFieldNumber = 200; 4900 private global::Google.Protobuf.TestProtos.TestFieldOrderings.Types.NestedMessage singleNestedMessage_; 4901 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 4902 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 4903 public global::Google.Protobuf.TestProtos.TestFieldOrderings.Types.NestedMessage SingleNestedMessage { 4904 get { return singleNestedMessage_; } 4905 set { 4906 singleNestedMessage_ = value; 4907 } 4908 } 4909 4910 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 4911 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] Equals(object other)4912 public override bool Equals(object other) { 4913 return Equals(other as TestFieldOrderings); 4914 } 4915 4916 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 4917 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] Equals(TestFieldOrderings other)4918 public bool Equals(TestFieldOrderings other) { 4919 if (ReferenceEquals(other, null)) { 4920 return false; 4921 } 4922 if (ReferenceEquals(other, this)) { 4923 return true; 4924 } 4925 if (MyString != other.MyString) return false; 4926 if (MyInt != other.MyInt) return false; 4927 if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(MyFloat, other.MyFloat)) return false; 4928 if (!object.Equals(SingleNestedMessage, other.SingleNestedMessage)) return false; 4929 return Equals(_unknownFields, other._unknownFields); 4930 } 4931 4932 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 4933 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] GetHashCode()4934 public override int GetHashCode() { 4935 int hash = 1; 4936 if (MyString.Length != 0) hash ^= MyString.GetHashCode(); 4937 if (MyInt != 0L) hash ^= MyInt.GetHashCode(); 4938 if (MyFloat != 0F) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(MyFloat); 4939 if (singleNestedMessage_ != null) hash ^= SingleNestedMessage.GetHashCode(); 4940 if (_unknownFields != null) { 4941 hash ^= _unknownFields.GetHashCode(); 4942 } 4943 return hash; 4944 } 4945 4946 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 4947 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] ToString()4948 public override string ToString() { 4949 return pb::JsonFormatter.ToDiagnosticString(this); 4950 } 4951 4952 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 4953 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] WriteTo(pb::CodedOutputStream output)4954 public void WriteTo(pb::CodedOutputStream output) { 4955 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 4956 output.WriteRawMessage(this); 4957 #else 4958 if (MyInt != 0L) { 4959 output.WriteRawTag(8); 4960 output.WriteInt64(MyInt); 4961 } 4962 if (MyString.Length != 0) { 4963 output.WriteRawTag(90); 4964 output.WriteString(MyString); 4965 } 4966 if (MyFloat != 0F) { 4967 output.WriteRawTag(173, 6); 4968 output.WriteFloat(MyFloat); 4969 } 4970 if (singleNestedMessage_ != null) { 4971 output.WriteRawTag(194, 12); 4972 output.WriteMessage(SingleNestedMessage); 4973 } 4974 if (_unknownFields != null) { 4975 _unknownFields.WriteTo(output); 4976 } 4977 #endif 4978 } 4979 4980 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 4981 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 4982 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] IBufferMessage.InternalWriteTo(ref pb::WriteContext output)4983 void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { 4984 if (MyInt != 0L) { 4985 output.WriteRawTag(8); 4986 output.WriteInt64(MyInt); 4987 } 4988 if (MyString.Length != 0) { 4989 output.WriteRawTag(90); 4990 output.WriteString(MyString); 4991 } 4992 if (MyFloat != 0F) { 4993 output.WriteRawTag(173, 6); 4994 output.WriteFloat(MyFloat); 4995 } 4996 if (singleNestedMessage_ != null) { 4997 output.WriteRawTag(194, 12); 4998 output.WriteMessage(SingleNestedMessage); 4999 } 5000 if (_unknownFields != null) { 5001 _unknownFields.WriteTo(ref output); 5002 } 5003 } 5004 #endif 5005 5006 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 5007 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] CalculateSize()5008 public int CalculateSize() { 5009 int size = 0; 5010 if (MyString.Length != 0) { 5011 size += 1 + pb::CodedOutputStream.ComputeStringSize(MyString); 5012 } 5013 if (MyInt != 0L) { 5014 size += 1 + pb::CodedOutputStream.ComputeInt64Size(MyInt); 5015 } 5016 if (MyFloat != 0F) { 5017 size += 2 + 4; 5018 } 5019 if (singleNestedMessage_ != null) { 5020 size += 2 + pb::CodedOutputStream.ComputeMessageSize(SingleNestedMessage); 5021 } 5022 if (_unknownFields != null) { 5023 size += _unknownFields.CalculateSize(); 5024 } 5025 return size; 5026 } 5027 5028 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 5029 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] MergeFrom(TestFieldOrderings other)5030 public void MergeFrom(TestFieldOrderings other) { 5031 if (other == null) { 5032 return; 5033 } 5034 if (other.MyString.Length != 0) { 5035 MyString = other.MyString; 5036 } 5037 if (other.MyInt != 0L) { 5038 MyInt = other.MyInt; 5039 } 5040 if (other.MyFloat != 0F) { 5041 MyFloat = other.MyFloat; 5042 } 5043 if (other.singleNestedMessage_ != null) { 5044 if (singleNestedMessage_ == null) { 5045 SingleNestedMessage = new global::Google.Protobuf.TestProtos.TestFieldOrderings.Types.NestedMessage(); 5046 } 5047 SingleNestedMessage.MergeFrom(other.SingleNestedMessage); 5048 } 5049 _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); 5050 } 5051 5052 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 5053 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] MergeFrom(pb::CodedInputStream input)5054 public void MergeFrom(pb::CodedInputStream input) { 5055 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 5056 input.ReadRawMessage(this); 5057 #else 5058 uint tag; 5059 while ((tag = input.ReadTag()) != 0) { 5060 switch(tag) { 5061 default: 5062 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); 5063 break; 5064 case 8: { 5065 MyInt = input.ReadInt64(); 5066 break; 5067 } 5068 case 90: { 5069 MyString = input.ReadString(); 5070 break; 5071 } 5072 case 813: { 5073 MyFloat = input.ReadFloat(); 5074 break; 5075 } 5076 case 1602: { 5077 if (singleNestedMessage_ == null) { 5078 SingleNestedMessage = new global::Google.Protobuf.TestProtos.TestFieldOrderings.Types.NestedMessage(); 5079 } 5080 input.ReadMessage(SingleNestedMessage); 5081 break; 5082 } 5083 } 5084 } 5085 #endif 5086 } 5087 5088 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 5089 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 5090 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] IBufferMessage.InternalMergeFrom(ref pb::ParseContext input)5091 void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { 5092 uint tag; 5093 while ((tag = input.ReadTag()) != 0) { 5094 switch(tag) { 5095 default: 5096 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); 5097 break; 5098 case 8: { 5099 MyInt = input.ReadInt64(); 5100 break; 5101 } 5102 case 90: { 5103 MyString = input.ReadString(); 5104 break; 5105 } 5106 case 813: { 5107 MyFloat = input.ReadFloat(); 5108 break; 5109 } 5110 case 1602: { 5111 if (singleNestedMessage_ == null) { 5112 SingleNestedMessage = new global::Google.Protobuf.TestProtos.TestFieldOrderings.Types.NestedMessage(); 5113 } 5114 input.ReadMessage(SingleNestedMessage); 5115 break; 5116 } 5117 } 5118 } 5119 } 5120 #endif 5121 5122 #region Nested types 5123 /// <summary>Container for nested types declared in the TestFieldOrderings message type.</summary> 5124 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 5125 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 5126 public static partial class Types { 5127 public sealed partial class NestedMessage : pb::IMessage<NestedMessage> 5128 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 5129 , pb::IBufferMessage 5130 #endif 5131 { 5132 private static readonly pb::MessageParser<NestedMessage> _parser = new pb::MessageParser<NestedMessage>(() => new NestedMessage()); 5133 private pb::UnknownFieldSet _unknownFields; 5134 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 5135 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 5136 public static pb::MessageParser<NestedMessage> Parser { get { return _parser; } } 5137 5138 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 5139 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 5140 public static pbr::MessageDescriptor Descriptor { 5141 get { return global::Google.Protobuf.TestProtos.TestFieldOrderings.Descriptor.NestedTypes[0]; } 5142 } 5143 5144 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 5145 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 5146 pbr::MessageDescriptor pb::IMessage.Descriptor { 5147 get { return Descriptor; } 5148 } 5149 5150 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 5151 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] NestedMessage()5152 public NestedMessage() { 5153 OnConstruction(); 5154 } 5155 OnConstruction()5156 partial void OnConstruction(); 5157 5158 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 5159 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] NestedMessage(NestedMessage other)5160 public NestedMessage(NestedMessage other) : this() { 5161 oo_ = other.oo_; 5162 bb_ = other.bb_; 5163 _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); 5164 } 5165 5166 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 5167 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] Clone()5168 public NestedMessage Clone() { 5169 return new NestedMessage(this); 5170 } 5171 5172 /// <summary>Field number for the "oo" field.</summary> 5173 public const int OoFieldNumber = 2; 5174 private long oo_; 5175 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 5176 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 5177 public long Oo { 5178 get { return oo_; } 5179 set { 5180 oo_ = value; 5181 } 5182 } 5183 5184 /// <summary>Field number for the "bb" field.</summary> 5185 public const int BbFieldNumber = 1; 5186 private int bb_; 5187 /// <summary> 5188 /// The field name "b" fails to compile in proto1 because it conflicts with 5189 /// a local variable named "b" in one of the generated methods. Doh. 5190 /// This file needs to compile in proto1 to test backwards-compatibility. 5191 /// </summary> 5192 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 5193 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 5194 public int Bb { 5195 get { return bb_; } 5196 set { 5197 bb_ = value; 5198 } 5199 } 5200 5201 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 5202 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] Equals(object other)5203 public override bool Equals(object other) { 5204 return Equals(other as NestedMessage); 5205 } 5206 5207 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 5208 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] Equals(NestedMessage other)5209 public bool Equals(NestedMessage other) { 5210 if (ReferenceEquals(other, null)) { 5211 return false; 5212 } 5213 if (ReferenceEquals(other, this)) { 5214 return true; 5215 } 5216 if (Oo != other.Oo) return false; 5217 if (Bb != other.Bb) return false; 5218 return Equals(_unknownFields, other._unknownFields); 5219 } 5220 5221 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 5222 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] GetHashCode()5223 public override int GetHashCode() { 5224 int hash = 1; 5225 if (Oo != 0L) hash ^= Oo.GetHashCode(); 5226 if (Bb != 0) hash ^= Bb.GetHashCode(); 5227 if (_unknownFields != null) { 5228 hash ^= _unknownFields.GetHashCode(); 5229 } 5230 return hash; 5231 } 5232 5233 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 5234 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] ToString()5235 public override string ToString() { 5236 return pb::JsonFormatter.ToDiagnosticString(this); 5237 } 5238 5239 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 5240 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] WriteTo(pb::CodedOutputStream output)5241 public void WriteTo(pb::CodedOutputStream output) { 5242 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 5243 output.WriteRawMessage(this); 5244 #else 5245 if (Bb != 0) { 5246 output.WriteRawTag(8); 5247 output.WriteInt32(Bb); 5248 } 5249 if (Oo != 0L) { 5250 output.WriteRawTag(16); 5251 output.WriteInt64(Oo); 5252 } 5253 if (_unknownFields != null) { 5254 _unknownFields.WriteTo(output); 5255 } 5256 #endif 5257 } 5258 5259 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 5260 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 5261 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] IBufferMessage.InternalWriteTo(ref pb::WriteContext output)5262 void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { 5263 if (Bb != 0) { 5264 output.WriteRawTag(8); 5265 output.WriteInt32(Bb); 5266 } 5267 if (Oo != 0L) { 5268 output.WriteRawTag(16); 5269 output.WriteInt64(Oo); 5270 } 5271 if (_unknownFields != null) { 5272 _unknownFields.WriteTo(ref output); 5273 } 5274 } 5275 #endif 5276 5277 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 5278 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] CalculateSize()5279 public int CalculateSize() { 5280 int size = 0; 5281 if (Oo != 0L) { 5282 size += 1 + pb::CodedOutputStream.ComputeInt64Size(Oo); 5283 } 5284 if (Bb != 0) { 5285 size += 1 + pb::CodedOutputStream.ComputeInt32Size(Bb); 5286 } 5287 if (_unknownFields != null) { 5288 size += _unknownFields.CalculateSize(); 5289 } 5290 return size; 5291 } 5292 5293 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 5294 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] MergeFrom(NestedMessage other)5295 public void MergeFrom(NestedMessage other) { 5296 if (other == null) { 5297 return; 5298 } 5299 if (other.Oo != 0L) { 5300 Oo = other.Oo; 5301 } 5302 if (other.Bb != 0) { 5303 Bb = other.Bb; 5304 } 5305 _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); 5306 } 5307 5308 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 5309 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] MergeFrom(pb::CodedInputStream input)5310 public void MergeFrom(pb::CodedInputStream input) { 5311 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 5312 input.ReadRawMessage(this); 5313 #else 5314 uint tag; 5315 while ((tag = input.ReadTag()) != 0) { 5316 switch(tag) { 5317 default: 5318 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); 5319 break; 5320 case 8: { 5321 Bb = input.ReadInt32(); 5322 break; 5323 } 5324 case 16: { 5325 Oo = input.ReadInt64(); 5326 break; 5327 } 5328 } 5329 } 5330 #endif 5331 } 5332 5333 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 5334 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 5335 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] IBufferMessage.InternalMergeFrom(ref pb::ParseContext input)5336 void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { 5337 uint tag; 5338 while ((tag = input.ReadTag()) != 0) { 5339 switch(tag) { 5340 default: 5341 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); 5342 break; 5343 case 8: { 5344 Bb = input.ReadInt32(); 5345 break; 5346 } 5347 case 16: { 5348 Oo = input.ReadInt64(); 5349 break; 5350 } 5351 } 5352 } 5353 } 5354 #endif 5355 5356 } 5357 5358 } 5359 #endregion 5360 5361 } 5362 5363 public sealed partial class SparseEnumMessage : pb::IMessage<SparseEnumMessage> 5364 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 5365 , pb::IBufferMessage 5366 #endif 5367 { 5368 private static readonly pb::MessageParser<SparseEnumMessage> _parser = new pb::MessageParser<SparseEnumMessage>(() => new SparseEnumMessage()); 5369 private pb::UnknownFieldSet _unknownFields; 5370 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 5371 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 5372 public static pb::MessageParser<SparseEnumMessage> Parser { get { return _parser; } } 5373 5374 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 5375 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 5376 public static pbr::MessageDescriptor Descriptor { 5377 get { return global::Google.Protobuf.TestProtos.UnittestProto3Reflection.Descriptor.MessageTypes[13]; } 5378 } 5379 5380 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 5381 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 5382 pbr::MessageDescriptor pb::IMessage.Descriptor { 5383 get { return Descriptor; } 5384 } 5385 5386 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 5387 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] SparseEnumMessage()5388 public SparseEnumMessage() { 5389 OnConstruction(); 5390 } 5391 OnConstruction()5392 partial void OnConstruction(); 5393 5394 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 5395 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] SparseEnumMessage(SparseEnumMessage other)5396 public SparseEnumMessage(SparseEnumMessage other) : this() { 5397 sparseEnum_ = other.sparseEnum_; 5398 _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); 5399 } 5400 5401 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 5402 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] Clone()5403 public SparseEnumMessage Clone() { 5404 return new SparseEnumMessage(this); 5405 } 5406 5407 /// <summary>Field number for the "sparse_enum" field.</summary> 5408 public const int SparseEnumFieldNumber = 1; 5409 private global::Google.Protobuf.TestProtos.TestSparseEnum sparseEnum_ = global::Google.Protobuf.TestProtos.TestSparseEnum.Unspecified; 5410 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 5411 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 5412 public global::Google.Protobuf.TestProtos.TestSparseEnum SparseEnum { 5413 get { return sparseEnum_; } 5414 set { 5415 sparseEnum_ = value; 5416 } 5417 } 5418 5419 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 5420 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] Equals(object other)5421 public override bool Equals(object other) { 5422 return Equals(other as SparseEnumMessage); 5423 } 5424 5425 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 5426 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] Equals(SparseEnumMessage other)5427 public bool Equals(SparseEnumMessage other) { 5428 if (ReferenceEquals(other, null)) { 5429 return false; 5430 } 5431 if (ReferenceEquals(other, this)) { 5432 return true; 5433 } 5434 if (SparseEnum != other.SparseEnum) return false; 5435 return Equals(_unknownFields, other._unknownFields); 5436 } 5437 5438 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 5439 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] GetHashCode()5440 public override int GetHashCode() { 5441 int hash = 1; 5442 if (SparseEnum != global::Google.Protobuf.TestProtos.TestSparseEnum.Unspecified) hash ^= SparseEnum.GetHashCode(); 5443 if (_unknownFields != null) { 5444 hash ^= _unknownFields.GetHashCode(); 5445 } 5446 return hash; 5447 } 5448 5449 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 5450 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] ToString()5451 public override string ToString() { 5452 return pb::JsonFormatter.ToDiagnosticString(this); 5453 } 5454 5455 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 5456 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] WriteTo(pb::CodedOutputStream output)5457 public void WriteTo(pb::CodedOutputStream output) { 5458 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 5459 output.WriteRawMessage(this); 5460 #else 5461 if (SparseEnum != global::Google.Protobuf.TestProtos.TestSparseEnum.Unspecified) { 5462 output.WriteRawTag(8); 5463 output.WriteEnum((int) SparseEnum); 5464 } 5465 if (_unknownFields != null) { 5466 _unknownFields.WriteTo(output); 5467 } 5468 #endif 5469 } 5470 5471 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 5472 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 5473 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] IBufferMessage.InternalWriteTo(ref pb::WriteContext output)5474 void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { 5475 if (SparseEnum != global::Google.Protobuf.TestProtos.TestSparseEnum.Unspecified) { 5476 output.WriteRawTag(8); 5477 output.WriteEnum((int) SparseEnum); 5478 } 5479 if (_unknownFields != null) { 5480 _unknownFields.WriteTo(ref output); 5481 } 5482 } 5483 #endif 5484 5485 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 5486 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] CalculateSize()5487 public int CalculateSize() { 5488 int size = 0; 5489 if (SparseEnum != global::Google.Protobuf.TestProtos.TestSparseEnum.Unspecified) { 5490 size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) SparseEnum); 5491 } 5492 if (_unknownFields != null) { 5493 size += _unknownFields.CalculateSize(); 5494 } 5495 return size; 5496 } 5497 5498 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 5499 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] MergeFrom(SparseEnumMessage other)5500 public void MergeFrom(SparseEnumMessage other) { 5501 if (other == null) { 5502 return; 5503 } 5504 if (other.SparseEnum != global::Google.Protobuf.TestProtos.TestSparseEnum.Unspecified) { 5505 SparseEnum = other.SparseEnum; 5506 } 5507 _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); 5508 } 5509 5510 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 5511 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] MergeFrom(pb::CodedInputStream input)5512 public void MergeFrom(pb::CodedInputStream input) { 5513 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 5514 input.ReadRawMessage(this); 5515 #else 5516 uint tag; 5517 while ((tag = input.ReadTag()) != 0) { 5518 switch(tag) { 5519 default: 5520 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); 5521 break; 5522 case 8: { 5523 SparseEnum = (global::Google.Protobuf.TestProtos.TestSparseEnum) input.ReadEnum(); 5524 break; 5525 } 5526 } 5527 } 5528 #endif 5529 } 5530 5531 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 5532 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 5533 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] IBufferMessage.InternalMergeFrom(ref pb::ParseContext input)5534 void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { 5535 uint tag; 5536 while ((tag = input.ReadTag()) != 0) { 5537 switch(tag) { 5538 default: 5539 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); 5540 break; 5541 case 8: { 5542 SparseEnum = (global::Google.Protobuf.TestProtos.TestSparseEnum) input.ReadEnum(); 5543 break; 5544 } 5545 } 5546 } 5547 } 5548 #endif 5549 5550 } 5551 5552 /// <summary> 5553 /// Test String and Bytes: string is for valid UTF-8 strings 5554 /// </summary> 5555 public sealed partial class OneString : pb::IMessage<OneString> 5556 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 5557 , pb::IBufferMessage 5558 #endif 5559 { 5560 private static readonly pb::MessageParser<OneString> _parser = new pb::MessageParser<OneString>(() => new OneString()); 5561 private pb::UnknownFieldSet _unknownFields; 5562 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 5563 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 5564 public static pb::MessageParser<OneString> Parser { get { return _parser; } } 5565 5566 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 5567 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 5568 public static pbr::MessageDescriptor Descriptor { 5569 get { return global::Google.Protobuf.TestProtos.UnittestProto3Reflection.Descriptor.MessageTypes[14]; } 5570 } 5571 5572 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 5573 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 5574 pbr::MessageDescriptor pb::IMessage.Descriptor { 5575 get { return Descriptor; } 5576 } 5577 5578 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 5579 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] OneString()5580 public OneString() { 5581 OnConstruction(); 5582 } 5583 OnConstruction()5584 partial void OnConstruction(); 5585 5586 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 5587 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] OneString(OneString other)5588 public OneString(OneString other) : this() { 5589 data_ = other.data_; 5590 _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); 5591 } 5592 5593 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 5594 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] Clone()5595 public OneString Clone() { 5596 return new OneString(this); 5597 } 5598 5599 /// <summary>Field number for the "data" field.</summary> 5600 public const int DataFieldNumber = 1; 5601 private string data_ = ""; 5602 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 5603 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 5604 public string Data { 5605 get { return data_; } 5606 set { 5607 data_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); 5608 } 5609 } 5610 5611 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 5612 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] Equals(object other)5613 public override bool Equals(object other) { 5614 return Equals(other as OneString); 5615 } 5616 5617 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 5618 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] Equals(OneString other)5619 public bool Equals(OneString other) { 5620 if (ReferenceEquals(other, null)) { 5621 return false; 5622 } 5623 if (ReferenceEquals(other, this)) { 5624 return true; 5625 } 5626 if (Data != other.Data) return false; 5627 return Equals(_unknownFields, other._unknownFields); 5628 } 5629 5630 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 5631 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] GetHashCode()5632 public override int GetHashCode() { 5633 int hash = 1; 5634 if (Data.Length != 0) hash ^= Data.GetHashCode(); 5635 if (_unknownFields != null) { 5636 hash ^= _unknownFields.GetHashCode(); 5637 } 5638 return hash; 5639 } 5640 5641 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 5642 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] ToString()5643 public override string ToString() { 5644 return pb::JsonFormatter.ToDiagnosticString(this); 5645 } 5646 5647 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 5648 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] WriteTo(pb::CodedOutputStream output)5649 public void WriteTo(pb::CodedOutputStream output) { 5650 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 5651 output.WriteRawMessage(this); 5652 #else 5653 if (Data.Length != 0) { 5654 output.WriteRawTag(10); 5655 output.WriteString(Data); 5656 } 5657 if (_unknownFields != null) { 5658 _unknownFields.WriteTo(output); 5659 } 5660 #endif 5661 } 5662 5663 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 5664 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 5665 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] IBufferMessage.InternalWriteTo(ref pb::WriteContext output)5666 void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { 5667 if (Data.Length != 0) { 5668 output.WriteRawTag(10); 5669 output.WriteString(Data); 5670 } 5671 if (_unknownFields != null) { 5672 _unknownFields.WriteTo(ref output); 5673 } 5674 } 5675 #endif 5676 5677 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 5678 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] CalculateSize()5679 public int CalculateSize() { 5680 int size = 0; 5681 if (Data.Length != 0) { 5682 size += 1 + pb::CodedOutputStream.ComputeStringSize(Data); 5683 } 5684 if (_unknownFields != null) { 5685 size += _unknownFields.CalculateSize(); 5686 } 5687 return size; 5688 } 5689 5690 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 5691 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] MergeFrom(OneString other)5692 public void MergeFrom(OneString other) { 5693 if (other == null) { 5694 return; 5695 } 5696 if (other.Data.Length != 0) { 5697 Data = other.Data; 5698 } 5699 _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); 5700 } 5701 5702 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 5703 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] MergeFrom(pb::CodedInputStream input)5704 public void MergeFrom(pb::CodedInputStream input) { 5705 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 5706 input.ReadRawMessage(this); 5707 #else 5708 uint tag; 5709 while ((tag = input.ReadTag()) != 0) { 5710 switch(tag) { 5711 default: 5712 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); 5713 break; 5714 case 10: { 5715 Data = input.ReadString(); 5716 break; 5717 } 5718 } 5719 } 5720 #endif 5721 } 5722 5723 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 5724 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 5725 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] IBufferMessage.InternalMergeFrom(ref pb::ParseContext input)5726 void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { 5727 uint tag; 5728 while ((tag = input.ReadTag()) != 0) { 5729 switch(tag) { 5730 default: 5731 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); 5732 break; 5733 case 10: { 5734 Data = input.ReadString(); 5735 break; 5736 } 5737 } 5738 } 5739 } 5740 #endif 5741 5742 } 5743 5744 public sealed partial class MoreString : pb::IMessage<MoreString> 5745 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 5746 , pb::IBufferMessage 5747 #endif 5748 { 5749 private static readonly pb::MessageParser<MoreString> _parser = new pb::MessageParser<MoreString>(() => new MoreString()); 5750 private pb::UnknownFieldSet _unknownFields; 5751 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 5752 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 5753 public static pb::MessageParser<MoreString> Parser { get { return _parser; } } 5754 5755 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 5756 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 5757 public static pbr::MessageDescriptor Descriptor { 5758 get { return global::Google.Protobuf.TestProtos.UnittestProto3Reflection.Descriptor.MessageTypes[15]; } 5759 } 5760 5761 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 5762 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 5763 pbr::MessageDescriptor pb::IMessage.Descriptor { 5764 get { return Descriptor; } 5765 } 5766 5767 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 5768 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] MoreString()5769 public MoreString() { 5770 OnConstruction(); 5771 } 5772 OnConstruction()5773 partial void OnConstruction(); 5774 5775 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 5776 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] MoreString(MoreString other)5777 public MoreString(MoreString other) : this() { 5778 data_ = other.data_.Clone(); 5779 _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); 5780 } 5781 5782 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 5783 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] Clone()5784 public MoreString Clone() { 5785 return new MoreString(this); 5786 } 5787 5788 /// <summary>Field number for the "data" field.</summary> 5789 public const int DataFieldNumber = 1; 5790 private static readonly pb::FieldCodec<string> _repeated_data_codec 5791 = pb::FieldCodec.ForString(10); 5792 private readonly pbc::RepeatedField<string> data_ = new pbc::RepeatedField<string>(); 5793 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 5794 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 5795 public pbc::RepeatedField<string> Data { 5796 get { return data_; } 5797 } 5798 5799 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 5800 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] Equals(object other)5801 public override bool Equals(object other) { 5802 return Equals(other as MoreString); 5803 } 5804 5805 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 5806 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] Equals(MoreString other)5807 public bool Equals(MoreString other) { 5808 if (ReferenceEquals(other, null)) { 5809 return false; 5810 } 5811 if (ReferenceEquals(other, this)) { 5812 return true; 5813 } 5814 if(!data_.Equals(other.data_)) return false; 5815 return Equals(_unknownFields, other._unknownFields); 5816 } 5817 5818 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 5819 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] GetHashCode()5820 public override int GetHashCode() { 5821 int hash = 1; 5822 hash ^= data_.GetHashCode(); 5823 if (_unknownFields != null) { 5824 hash ^= _unknownFields.GetHashCode(); 5825 } 5826 return hash; 5827 } 5828 5829 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 5830 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] ToString()5831 public override string ToString() { 5832 return pb::JsonFormatter.ToDiagnosticString(this); 5833 } 5834 5835 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 5836 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] WriteTo(pb::CodedOutputStream output)5837 public void WriteTo(pb::CodedOutputStream output) { 5838 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 5839 output.WriteRawMessage(this); 5840 #else 5841 data_.WriteTo(output, _repeated_data_codec); 5842 if (_unknownFields != null) { 5843 _unknownFields.WriteTo(output); 5844 } 5845 #endif 5846 } 5847 5848 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 5849 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 5850 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] IBufferMessage.InternalWriteTo(ref pb::WriteContext output)5851 void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { 5852 data_.WriteTo(ref output, _repeated_data_codec); 5853 if (_unknownFields != null) { 5854 _unknownFields.WriteTo(ref output); 5855 } 5856 } 5857 #endif 5858 5859 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 5860 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] CalculateSize()5861 public int CalculateSize() { 5862 int size = 0; 5863 size += data_.CalculateSize(_repeated_data_codec); 5864 if (_unknownFields != null) { 5865 size += _unknownFields.CalculateSize(); 5866 } 5867 return size; 5868 } 5869 5870 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 5871 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] MergeFrom(MoreString other)5872 public void MergeFrom(MoreString other) { 5873 if (other == null) { 5874 return; 5875 } 5876 data_.Add(other.data_); 5877 _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); 5878 } 5879 5880 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 5881 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] MergeFrom(pb::CodedInputStream input)5882 public void MergeFrom(pb::CodedInputStream input) { 5883 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 5884 input.ReadRawMessage(this); 5885 #else 5886 uint tag; 5887 while ((tag = input.ReadTag()) != 0) { 5888 switch(tag) { 5889 default: 5890 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); 5891 break; 5892 case 10: { 5893 data_.AddEntriesFrom(input, _repeated_data_codec); 5894 break; 5895 } 5896 } 5897 } 5898 #endif 5899 } 5900 5901 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 5902 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 5903 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] IBufferMessage.InternalMergeFrom(ref pb::ParseContext input)5904 void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { 5905 uint tag; 5906 while ((tag = input.ReadTag()) != 0) { 5907 switch(tag) { 5908 default: 5909 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); 5910 break; 5911 case 10: { 5912 data_.AddEntriesFrom(ref input, _repeated_data_codec); 5913 break; 5914 } 5915 } 5916 } 5917 } 5918 #endif 5919 5920 } 5921 5922 public sealed partial class OneBytes : pb::IMessage<OneBytes> 5923 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 5924 , pb::IBufferMessage 5925 #endif 5926 { 5927 private static readonly pb::MessageParser<OneBytes> _parser = new pb::MessageParser<OneBytes>(() => new OneBytes()); 5928 private pb::UnknownFieldSet _unknownFields; 5929 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 5930 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 5931 public static pb::MessageParser<OneBytes> Parser { get { return _parser; } } 5932 5933 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 5934 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 5935 public static pbr::MessageDescriptor Descriptor { 5936 get { return global::Google.Protobuf.TestProtos.UnittestProto3Reflection.Descriptor.MessageTypes[16]; } 5937 } 5938 5939 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 5940 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 5941 pbr::MessageDescriptor pb::IMessage.Descriptor { 5942 get { return Descriptor; } 5943 } 5944 5945 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 5946 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] OneBytes()5947 public OneBytes() { 5948 OnConstruction(); 5949 } 5950 OnConstruction()5951 partial void OnConstruction(); 5952 5953 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 5954 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] OneBytes(OneBytes other)5955 public OneBytes(OneBytes other) : this() { 5956 data_ = other.data_; 5957 _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); 5958 } 5959 5960 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 5961 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] Clone()5962 public OneBytes Clone() { 5963 return new OneBytes(this); 5964 } 5965 5966 /// <summary>Field number for the "data" field.</summary> 5967 public const int DataFieldNumber = 1; 5968 private pb::ByteString data_ = pb::ByteString.Empty; 5969 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 5970 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 5971 public pb::ByteString Data { 5972 get { return data_; } 5973 set { 5974 data_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); 5975 } 5976 } 5977 5978 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 5979 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] Equals(object other)5980 public override bool Equals(object other) { 5981 return Equals(other as OneBytes); 5982 } 5983 5984 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 5985 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] Equals(OneBytes other)5986 public bool Equals(OneBytes other) { 5987 if (ReferenceEquals(other, null)) { 5988 return false; 5989 } 5990 if (ReferenceEquals(other, this)) { 5991 return true; 5992 } 5993 if (Data != other.Data) return false; 5994 return Equals(_unknownFields, other._unknownFields); 5995 } 5996 5997 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 5998 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] GetHashCode()5999 public override int GetHashCode() { 6000 int hash = 1; 6001 if (Data.Length != 0) hash ^= Data.GetHashCode(); 6002 if (_unknownFields != null) { 6003 hash ^= _unknownFields.GetHashCode(); 6004 } 6005 return hash; 6006 } 6007 6008 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 6009 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] ToString()6010 public override string ToString() { 6011 return pb::JsonFormatter.ToDiagnosticString(this); 6012 } 6013 6014 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 6015 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] WriteTo(pb::CodedOutputStream output)6016 public void WriteTo(pb::CodedOutputStream output) { 6017 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 6018 output.WriteRawMessage(this); 6019 #else 6020 if (Data.Length != 0) { 6021 output.WriteRawTag(10); 6022 output.WriteBytes(Data); 6023 } 6024 if (_unknownFields != null) { 6025 _unknownFields.WriteTo(output); 6026 } 6027 #endif 6028 } 6029 6030 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 6031 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 6032 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] IBufferMessage.InternalWriteTo(ref pb::WriteContext output)6033 void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { 6034 if (Data.Length != 0) { 6035 output.WriteRawTag(10); 6036 output.WriteBytes(Data); 6037 } 6038 if (_unknownFields != null) { 6039 _unknownFields.WriteTo(ref output); 6040 } 6041 } 6042 #endif 6043 6044 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 6045 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] CalculateSize()6046 public int CalculateSize() { 6047 int size = 0; 6048 if (Data.Length != 0) { 6049 size += 1 + pb::CodedOutputStream.ComputeBytesSize(Data); 6050 } 6051 if (_unknownFields != null) { 6052 size += _unknownFields.CalculateSize(); 6053 } 6054 return size; 6055 } 6056 6057 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 6058 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] MergeFrom(OneBytes other)6059 public void MergeFrom(OneBytes other) { 6060 if (other == null) { 6061 return; 6062 } 6063 if (other.Data.Length != 0) { 6064 Data = other.Data; 6065 } 6066 _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); 6067 } 6068 6069 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 6070 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] MergeFrom(pb::CodedInputStream input)6071 public void MergeFrom(pb::CodedInputStream input) { 6072 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 6073 input.ReadRawMessage(this); 6074 #else 6075 uint tag; 6076 while ((tag = input.ReadTag()) != 0) { 6077 switch(tag) { 6078 default: 6079 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); 6080 break; 6081 case 10: { 6082 Data = input.ReadBytes(); 6083 break; 6084 } 6085 } 6086 } 6087 #endif 6088 } 6089 6090 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 6091 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 6092 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] IBufferMessage.InternalMergeFrom(ref pb::ParseContext input)6093 void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { 6094 uint tag; 6095 while ((tag = input.ReadTag()) != 0) { 6096 switch(tag) { 6097 default: 6098 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); 6099 break; 6100 case 10: { 6101 Data = input.ReadBytes(); 6102 break; 6103 } 6104 } 6105 } 6106 } 6107 #endif 6108 6109 } 6110 6111 public sealed partial class MoreBytes : pb::IMessage<MoreBytes> 6112 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 6113 , pb::IBufferMessage 6114 #endif 6115 { 6116 private static readonly pb::MessageParser<MoreBytes> _parser = new pb::MessageParser<MoreBytes>(() => new MoreBytes()); 6117 private pb::UnknownFieldSet _unknownFields; 6118 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 6119 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 6120 public static pb::MessageParser<MoreBytes> Parser { get { return _parser; } } 6121 6122 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 6123 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 6124 public static pbr::MessageDescriptor Descriptor { 6125 get { return global::Google.Protobuf.TestProtos.UnittestProto3Reflection.Descriptor.MessageTypes[17]; } 6126 } 6127 6128 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 6129 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 6130 pbr::MessageDescriptor pb::IMessage.Descriptor { 6131 get { return Descriptor; } 6132 } 6133 6134 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 6135 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] MoreBytes()6136 public MoreBytes() { 6137 OnConstruction(); 6138 } 6139 OnConstruction()6140 partial void OnConstruction(); 6141 6142 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 6143 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] MoreBytes(MoreBytes other)6144 public MoreBytes(MoreBytes other) : this() { 6145 data_ = other.data_; 6146 _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); 6147 } 6148 6149 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 6150 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] Clone()6151 public MoreBytes Clone() { 6152 return new MoreBytes(this); 6153 } 6154 6155 /// <summary>Field number for the "data" field.</summary> 6156 public const int DataFieldNumber = 1; 6157 private pb::ByteString data_ = pb::ByteString.Empty; 6158 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 6159 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 6160 public pb::ByteString Data { 6161 get { return data_; } 6162 set { 6163 data_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); 6164 } 6165 } 6166 6167 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 6168 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] Equals(object other)6169 public override bool Equals(object other) { 6170 return Equals(other as MoreBytes); 6171 } 6172 6173 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 6174 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] Equals(MoreBytes other)6175 public bool Equals(MoreBytes other) { 6176 if (ReferenceEquals(other, null)) { 6177 return false; 6178 } 6179 if (ReferenceEquals(other, this)) { 6180 return true; 6181 } 6182 if (Data != other.Data) return false; 6183 return Equals(_unknownFields, other._unknownFields); 6184 } 6185 6186 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 6187 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] GetHashCode()6188 public override int GetHashCode() { 6189 int hash = 1; 6190 if (Data.Length != 0) hash ^= Data.GetHashCode(); 6191 if (_unknownFields != null) { 6192 hash ^= _unknownFields.GetHashCode(); 6193 } 6194 return hash; 6195 } 6196 6197 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 6198 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] ToString()6199 public override string ToString() { 6200 return pb::JsonFormatter.ToDiagnosticString(this); 6201 } 6202 6203 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 6204 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] WriteTo(pb::CodedOutputStream output)6205 public void WriteTo(pb::CodedOutputStream output) { 6206 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 6207 output.WriteRawMessage(this); 6208 #else 6209 if (Data.Length != 0) { 6210 output.WriteRawTag(10); 6211 output.WriteBytes(Data); 6212 } 6213 if (_unknownFields != null) { 6214 _unknownFields.WriteTo(output); 6215 } 6216 #endif 6217 } 6218 6219 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 6220 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 6221 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] IBufferMessage.InternalWriteTo(ref pb::WriteContext output)6222 void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { 6223 if (Data.Length != 0) { 6224 output.WriteRawTag(10); 6225 output.WriteBytes(Data); 6226 } 6227 if (_unknownFields != null) { 6228 _unknownFields.WriteTo(ref output); 6229 } 6230 } 6231 #endif 6232 6233 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 6234 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] CalculateSize()6235 public int CalculateSize() { 6236 int size = 0; 6237 if (Data.Length != 0) { 6238 size += 1 + pb::CodedOutputStream.ComputeBytesSize(Data); 6239 } 6240 if (_unknownFields != null) { 6241 size += _unknownFields.CalculateSize(); 6242 } 6243 return size; 6244 } 6245 6246 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 6247 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] MergeFrom(MoreBytes other)6248 public void MergeFrom(MoreBytes other) { 6249 if (other == null) { 6250 return; 6251 } 6252 if (other.Data.Length != 0) { 6253 Data = other.Data; 6254 } 6255 _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); 6256 } 6257 6258 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 6259 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] MergeFrom(pb::CodedInputStream input)6260 public void MergeFrom(pb::CodedInputStream input) { 6261 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 6262 input.ReadRawMessage(this); 6263 #else 6264 uint tag; 6265 while ((tag = input.ReadTag()) != 0) { 6266 switch(tag) { 6267 default: 6268 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); 6269 break; 6270 case 10: { 6271 Data = input.ReadBytes(); 6272 break; 6273 } 6274 } 6275 } 6276 #endif 6277 } 6278 6279 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 6280 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 6281 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] IBufferMessage.InternalMergeFrom(ref pb::ParseContext input)6282 void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { 6283 uint tag; 6284 while ((tag = input.ReadTag()) != 0) { 6285 switch(tag) { 6286 default: 6287 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); 6288 break; 6289 case 10: { 6290 Data = input.ReadBytes(); 6291 break; 6292 } 6293 } 6294 } 6295 } 6296 #endif 6297 6298 } 6299 6300 /// <summary> 6301 /// Test int32, uint32, int64, uint64, and bool are all compatible 6302 /// </summary> 6303 public sealed partial class Int32Message : pb::IMessage<Int32Message> 6304 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 6305 , pb::IBufferMessage 6306 #endif 6307 { 6308 private static readonly pb::MessageParser<Int32Message> _parser = new pb::MessageParser<Int32Message>(() => new Int32Message()); 6309 private pb::UnknownFieldSet _unknownFields; 6310 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 6311 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 6312 public static pb::MessageParser<Int32Message> Parser { get { return _parser; } } 6313 6314 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 6315 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 6316 public static pbr::MessageDescriptor Descriptor { 6317 get { return global::Google.Protobuf.TestProtos.UnittestProto3Reflection.Descriptor.MessageTypes[18]; } 6318 } 6319 6320 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 6321 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 6322 pbr::MessageDescriptor pb::IMessage.Descriptor { 6323 get { return Descriptor; } 6324 } 6325 6326 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 6327 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] Int32Message()6328 public Int32Message() { 6329 OnConstruction(); 6330 } 6331 OnConstruction()6332 partial void OnConstruction(); 6333 6334 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 6335 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] Int32Message(Int32Message other)6336 public Int32Message(Int32Message other) : this() { 6337 data_ = other.data_; 6338 _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); 6339 } 6340 6341 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 6342 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] Clone()6343 public Int32Message Clone() { 6344 return new Int32Message(this); 6345 } 6346 6347 /// <summary>Field number for the "data" field.</summary> 6348 public const int DataFieldNumber = 1; 6349 private int data_; 6350 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 6351 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 6352 public int Data { 6353 get { return data_; } 6354 set { 6355 data_ = value; 6356 } 6357 } 6358 6359 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 6360 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] Equals(object other)6361 public override bool Equals(object other) { 6362 return Equals(other as Int32Message); 6363 } 6364 6365 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 6366 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] Equals(Int32Message other)6367 public bool Equals(Int32Message other) { 6368 if (ReferenceEquals(other, null)) { 6369 return false; 6370 } 6371 if (ReferenceEquals(other, this)) { 6372 return true; 6373 } 6374 if (Data != other.Data) return false; 6375 return Equals(_unknownFields, other._unknownFields); 6376 } 6377 6378 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 6379 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] GetHashCode()6380 public override int GetHashCode() { 6381 int hash = 1; 6382 if (Data != 0) hash ^= Data.GetHashCode(); 6383 if (_unknownFields != null) { 6384 hash ^= _unknownFields.GetHashCode(); 6385 } 6386 return hash; 6387 } 6388 6389 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 6390 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] ToString()6391 public override string ToString() { 6392 return pb::JsonFormatter.ToDiagnosticString(this); 6393 } 6394 6395 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 6396 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] WriteTo(pb::CodedOutputStream output)6397 public void WriteTo(pb::CodedOutputStream output) { 6398 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 6399 output.WriteRawMessage(this); 6400 #else 6401 if (Data != 0) { 6402 output.WriteRawTag(8); 6403 output.WriteInt32(Data); 6404 } 6405 if (_unknownFields != null) { 6406 _unknownFields.WriteTo(output); 6407 } 6408 #endif 6409 } 6410 6411 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 6412 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 6413 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] IBufferMessage.InternalWriteTo(ref pb::WriteContext output)6414 void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { 6415 if (Data != 0) { 6416 output.WriteRawTag(8); 6417 output.WriteInt32(Data); 6418 } 6419 if (_unknownFields != null) { 6420 _unknownFields.WriteTo(ref output); 6421 } 6422 } 6423 #endif 6424 6425 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 6426 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] CalculateSize()6427 public int CalculateSize() { 6428 int size = 0; 6429 if (Data != 0) { 6430 size += 1 + pb::CodedOutputStream.ComputeInt32Size(Data); 6431 } 6432 if (_unknownFields != null) { 6433 size += _unknownFields.CalculateSize(); 6434 } 6435 return size; 6436 } 6437 6438 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 6439 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] MergeFrom(Int32Message other)6440 public void MergeFrom(Int32Message other) { 6441 if (other == null) { 6442 return; 6443 } 6444 if (other.Data != 0) { 6445 Data = other.Data; 6446 } 6447 _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); 6448 } 6449 6450 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 6451 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] MergeFrom(pb::CodedInputStream input)6452 public void MergeFrom(pb::CodedInputStream input) { 6453 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 6454 input.ReadRawMessage(this); 6455 #else 6456 uint tag; 6457 while ((tag = input.ReadTag()) != 0) { 6458 switch(tag) { 6459 default: 6460 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); 6461 break; 6462 case 8: { 6463 Data = input.ReadInt32(); 6464 break; 6465 } 6466 } 6467 } 6468 #endif 6469 } 6470 6471 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 6472 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 6473 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] IBufferMessage.InternalMergeFrom(ref pb::ParseContext input)6474 void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { 6475 uint tag; 6476 while ((tag = input.ReadTag()) != 0) { 6477 switch(tag) { 6478 default: 6479 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); 6480 break; 6481 case 8: { 6482 Data = input.ReadInt32(); 6483 break; 6484 } 6485 } 6486 } 6487 } 6488 #endif 6489 6490 } 6491 6492 public sealed partial class Uint32Message : pb::IMessage<Uint32Message> 6493 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 6494 , pb::IBufferMessage 6495 #endif 6496 { 6497 private static readonly pb::MessageParser<Uint32Message> _parser = new pb::MessageParser<Uint32Message>(() => new Uint32Message()); 6498 private pb::UnknownFieldSet _unknownFields; 6499 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 6500 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 6501 public static pb::MessageParser<Uint32Message> Parser { get { return _parser; } } 6502 6503 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 6504 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 6505 public static pbr::MessageDescriptor Descriptor { 6506 get { return global::Google.Protobuf.TestProtos.UnittestProto3Reflection.Descriptor.MessageTypes[19]; } 6507 } 6508 6509 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 6510 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 6511 pbr::MessageDescriptor pb::IMessage.Descriptor { 6512 get { return Descriptor; } 6513 } 6514 6515 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 6516 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] Uint32Message()6517 public Uint32Message() { 6518 OnConstruction(); 6519 } 6520 OnConstruction()6521 partial void OnConstruction(); 6522 6523 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 6524 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] Uint32Message(Uint32Message other)6525 public Uint32Message(Uint32Message other) : this() { 6526 data_ = other.data_; 6527 _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); 6528 } 6529 6530 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 6531 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] Clone()6532 public Uint32Message Clone() { 6533 return new Uint32Message(this); 6534 } 6535 6536 /// <summary>Field number for the "data" field.</summary> 6537 public const int DataFieldNumber = 1; 6538 private uint data_; 6539 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 6540 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 6541 public uint Data { 6542 get { return data_; } 6543 set { 6544 data_ = value; 6545 } 6546 } 6547 6548 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 6549 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] Equals(object other)6550 public override bool Equals(object other) { 6551 return Equals(other as Uint32Message); 6552 } 6553 6554 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 6555 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] Equals(Uint32Message other)6556 public bool Equals(Uint32Message other) { 6557 if (ReferenceEquals(other, null)) { 6558 return false; 6559 } 6560 if (ReferenceEquals(other, this)) { 6561 return true; 6562 } 6563 if (Data != other.Data) return false; 6564 return Equals(_unknownFields, other._unknownFields); 6565 } 6566 6567 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 6568 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] GetHashCode()6569 public override int GetHashCode() { 6570 int hash = 1; 6571 if (Data != 0) hash ^= Data.GetHashCode(); 6572 if (_unknownFields != null) { 6573 hash ^= _unknownFields.GetHashCode(); 6574 } 6575 return hash; 6576 } 6577 6578 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 6579 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] ToString()6580 public override string ToString() { 6581 return pb::JsonFormatter.ToDiagnosticString(this); 6582 } 6583 6584 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 6585 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] WriteTo(pb::CodedOutputStream output)6586 public void WriteTo(pb::CodedOutputStream output) { 6587 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 6588 output.WriteRawMessage(this); 6589 #else 6590 if (Data != 0) { 6591 output.WriteRawTag(8); 6592 output.WriteUInt32(Data); 6593 } 6594 if (_unknownFields != null) { 6595 _unknownFields.WriteTo(output); 6596 } 6597 #endif 6598 } 6599 6600 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 6601 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 6602 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] IBufferMessage.InternalWriteTo(ref pb::WriteContext output)6603 void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { 6604 if (Data != 0) { 6605 output.WriteRawTag(8); 6606 output.WriteUInt32(Data); 6607 } 6608 if (_unknownFields != null) { 6609 _unknownFields.WriteTo(ref output); 6610 } 6611 } 6612 #endif 6613 6614 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 6615 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] CalculateSize()6616 public int CalculateSize() { 6617 int size = 0; 6618 if (Data != 0) { 6619 size += 1 + pb::CodedOutputStream.ComputeUInt32Size(Data); 6620 } 6621 if (_unknownFields != null) { 6622 size += _unknownFields.CalculateSize(); 6623 } 6624 return size; 6625 } 6626 6627 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 6628 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] MergeFrom(Uint32Message other)6629 public void MergeFrom(Uint32Message other) { 6630 if (other == null) { 6631 return; 6632 } 6633 if (other.Data != 0) { 6634 Data = other.Data; 6635 } 6636 _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); 6637 } 6638 6639 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 6640 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] MergeFrom(pb::CodedInputStream input)6641 public void MergeFrom(pb::CodedInputStream input) { 6642 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 6643 input.ReadRawMessage(this); 6644 #else 6645 uint tag; 6646 while ((tag = input.ReadTag()) != 0) { 6647 switch(tag) { 6648 default: 6649 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); 6650 break; 6651 case 8: { 6652 Data = input.ReadUInt32(); 6653 break; 6654 } 6655 } 6656 } 6657 #endif 6658 } 6659 6660 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 6661 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 6662 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] IBufferMessage.InternalMergeFrom(ref pb::ParseContext input)6663 void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { 6664 uint tag; 6665 while ((tag = input.ReadTag()) != 0) { 6666 switch(tag) { 6667 default: 6668 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); 6669 break; 6670 case 8: { 6671 Data = input.ReadUInt32(); 6672 break; 6673 } 6674 } 6675 } 6676 } 6677 #endif 6678 6679 } 6680 6681 public sealed partial class Int64Message : pb::IMessage<Int64Message> 6682 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 6683 , pb::IBufferMessage 6684 #endif 6685 { 6686 private static readonly pb::MessageParser<Int64Message> _parser = new pb::MessageParser<Int64Message>(() => new Int64Message()); 6687 private pb::UnknownFieldSet _unknownFields; 6688 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 6689 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 6690 public static pb::MessageParser<Int64Message> Parser { get { return _parser; } } 6691 6692 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 6693 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 6694 public static pbr::MessageDescriptor Descriptor { 6695 get { return global::Google.Protobuf.TestProtos.UnittestProto3Reflection.Descriptor.MessageTypes[20]; } 6696 } 6697 6698 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 6699 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 6700 pbr::MessageDescriptor pb::IMessage.Descriptor { 6701 get { return Descriptor; } 6702 } 6703 6704 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 6705 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] Int64Message()6706 public Int64Message() { 6707 OnConstruction(); 6708 } 6709 OnConstruction()6710 partial void OnConstruction(); 6711 6712 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 6713 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] Int64Message(Int64Message other)6714 public Int64Message(Int64Message other) : this() { 6715 data_ = other.data_; 6716 _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); 6717 } 6718 6719 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 6720 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] Clone()6721 public Int64Message Clone() { 6722 return new Int64Message(this); 6723 } 6724 6725 /// <summary>Field number for the "data" field.</summary> 6726 public const int DataFieldNumber = 1; 6727 private long data_; 6728 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 6729 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 6730 public long Data { 6731 get { return data_; } 6732 set { 6733 data_ = value; 6734 } 6735 } 6736 6737 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 6738 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] Equals(object other)6739 public override bool Equals(object other) { 6740 return Equals(other as Int64Message); 6741 } 6742 6743 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 6744 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] Equals(Int64Message other)6745 public bool Equals(Int64Message other) { 6746 if (ReferenceEquals(other, null)) { 6747 return false; 6748 } 6749 if (ReferenceEquals(other, this)) { 6750 return true; 6751 } 6752 if (Data != other.Data) return false; 6753 return Equals(_unknownFields, other._unknownFields); 6754 } 6755 6756 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 6757 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] GetHashCode()6758 public override int GetHashCode() { 6759 int hash = 1; 6760 if (Data != 0L) hash ^= Data.GetHashCode(); 6761 if (_unknownFields != null) { 6762 hash ^= _unknownFields.GetHashCode(); 6763 } 6764 return hash; 6765 } 6766 6767 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 6768 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] ToString()6769 public override string ToString() { 6770 return pb::JsonFormatter.ToDiagnosticString(this); 6771 } 6772 6773 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 6774 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] WriteTo(pb::CodedOutputStream output)6775 public void WriteTo(pb::CodedOutputStream output) { 6776 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 6777 output.WriteRawMessage(this); 6778 #else 6779 if (Data != 0L) { 6780 output.WriteRawTag(8); 6781 output.WriteInt64(Data); 6782 } 6783 if (_unknownFields != null) { 6784 _unknownFields.WriteTo(output); 6785 } 6786 #endif 6787 } 6788 6789 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 6790 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 6791 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] IBufferMessage.InternalWriteTo(ref pb::WriteContext output)6792 void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { 6793 if (Data != 0L) { 6794 output.WriteRawTag(8); 6795 output.WriteInt64(Data); 6796 } 6797 if (_unknownFields != null) { 6798 _unknownFields.WriteTo(ref output); 6799 } 6800 } 6801 #endif 6802 6803 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 6804 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] CalculateSize()6805 public int CalculateSize() { 6806 int size = 0; 6807 if (Data != 0L) { 6808 size += 1 + pb::CodedOutputStream.ComputeInt64Size(Data); 6809 } 6810 if (_unknownFields != null) { 6811 size += _unknownFields.CalculateSize(); 6812 } 6813 return size; 6814 } 6815 6816 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 6817 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] MergeFrom(Int64Message other)6818 public void MergeFrom(Int64Message other) { 6819 if (other == null) { 6820 return; 6821 } 6822 if (other.Data != 0L) { 6823 Data = other.Data; 6824 } 6825 _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); 6826 } 6827 6828 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 6829 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] MergeFrom(pb::CodedInputStream input)6830 public void MergeFrom(pb::CodedInputStream input) { 6831 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 6832 input.ReadRawMessage(this); 6833 #else 6834 uint tag; 6835 while ((tag = input.ReadTag()) != 0) { 6836 switch(tag) { 6837 default: 6838 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); 6839 break; 6840 case 8: { 6841 Data = input.ReadInt64(); 6842 break; 6843 } 6844 } 6845 } 6846 #endif 6847 } 6848 6849 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 6850 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 6851 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] IBufferMessage.InternalMergeFrom(ref pb::ParseContext input)6852 void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { 6853 uint tag; 6854 while ((tag = input.ReadTag()) != 0) { 6855 switch(tag) { 6856 default: 6857 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); 6858 break; 6859 case 8: { 6860 Data = input.ReadInt64(); 6861 break; 6862 } 6863 } 6864 } 6865 } 6866 #endif 6867 6868 } 6869 6870 public sealed partial class Uint64Message : pb::IMessage<Uint64Message> 6871 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 6872 , pb::IBufferMessage 6873 #endif 6874 { 6875 private static readonly pb::MessageParser<Uint64Message> _parser = new pb::MessageParser<Uint64Message>(() => new Uint64Message()); 6876 private pb::UnknownFieldSet _unknownFields; 6877 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 6878 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 6879 public static pb::MessageParser<Uint64Message> Parser { get { return _parser; } } 6880 6881 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 6882 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 6883 public static pbr::MessageDescriptor Descriptor { 6884 get { return global::Google.Protobuf.TestProtos.UnittestProto3Reflection.Descriptor.MessageTypes[21]; } 6885 } 6886 6887 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 6888 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 6889 pbr::MessageDescriptor pb::IMessage.Descriptor { 6890 get { return Descriptor; } 6891 } 6892 6893 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 6894 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] Uint64Message()6895 public Uint64Message() { 6896 OnConstruction(); 6897 } 6898 OnConstruction()6899 partial void OnConstruction(); 6900 6901 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 6902 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] Uint64Message(Uint64Message other)6903 public Uint64Message(Uint64Message other) : this() { 6904 data_ = other.data_; 6905 _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); 6906 } 6907 6908 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 6909 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] Clone()6910 public Uint64Message Clone() { 6911 return new Uint64Message(this); 6912 } 6913 6914 /// <summary>Field number for the "data" field.</summary> 6915 public const int DataFieldNumber = 1; 6916 private ulong data_; 6917 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 6918 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 6919 public ulong Data { 6920 get { return data_; } 6921 set { 6922 data_ = value; 6923 } 6924 } 6925 6926 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 6927 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] Equals(object other)6928 public override bool Equals(object other) { 6929 return Equals(other as Uint64Message); 6930 } 6931 6932 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 6933 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] Equals(Uint64Message other)6934 public bool Equals(Uint64Message other) { 6935 if (ReferenceEquals(other, null)) { 6936 return false; 6937 } 6938 if (ReferenceEquals(other, this)) { 6939 return true; 6940 } 6941 if (Data != other.Data) return false; 6942 return Equals(_unknownFields, other._unknownFields); 6943 } 6944 6945 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 6946 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] GetHashCode()6947 public override int GetHashCode() { 6948 int hash = 1; 6949 if (Data != 0UL) hash ^= Data.GetHashCode(); 6950 if (_unknownFields != null) { 6951 hash ^= _unknownFields.GetHashCode(); 6952 } 6953 return hash; 6954 } 6955 6956 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 6957 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] ToString()6958 public override string ToString() { 6959 return pb::JsonFormatter.ToDiagnosticString(this); 6960 } 6961 6962 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 6963 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] WriteTo(pb::CodedOutputStream output)6964 public void WriteTo(pb::CodedOutputStream output) { 6965 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 6966 output.WriteRawMessage(this); 6967 #else 6968 if (Data != 0UL) { 6969 output.WriteRawTag(8); 6970 output.WriteUInt64(Data); 6971 } 6972 if (_unknownFields != null) { 6973 _unknownFields.WriteTo(output); 6974 } 6975 #endif 6976 } 6977 6978 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 6979 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 6980 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] IBufferMessage.InternalWriteTo(ref pb::WriteContext output)6981 void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { 6982 if (Data != 0UL) { 6983 output.WriteRawTag(8); 6984 output.WriteUInt64(Data); 6985 } 6986 if (_unknownFields != null) { 6987 _unknownFields.WriteTo(ref output); 6988 } 6989 } 6990 #endif 6991 6992 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 6993 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] CalculateSize()6994 public int CalculateSize() { 6995 int size = 0; 6996 if (Data != 0UL) { 6997 size += 1 + pb::CodedOutputStream.ComputeUInt64Size(Data); 6998 } 6999 if (_unknownFields != null) { 7000 size += _unknownFields.CalculateSize(); 7001 } 7002 return size; 7003 } 7004 7005 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 7006 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] MergeFrom(Uint64Message other)7007 public void MergeFrom(Uint64Message other) { 7008 if (other == null) { 7009 return; 7010 } 7011 if (other.Data != 0UL) { 7012 Data = other.Data; 7013 } 7014 _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); 7015 } 7016 7017 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 7018 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] MergeFrom(pb::CodedInputStream input)7019 public void MergeFrom(pb::CodedInputStream input) { 7020 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 7021 input.ReadRawMessage(this); 7022 #else 7023 uint tag; 7024 while ((tag = input.ReadTag()) != 0) { 7025 switch(tag) { 7026 default: 7027 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); 7028 break; 7029 case 8: { 7030 Data = input.ReadUInt64(); 7031 break; 7032 } 7033 } 7034 } 7035 #endif 7036 } 7037 7038 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 7039 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 7040 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] IBufferMessage.InternalMergeFrom(ref pb::ParseContext input)7041 void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { 7042 uint tag; 7043 while ((tag = input.ReadTag()) != 0) { 7044 switch(tag) { 7045 default: 7046 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); 7047 break; 7048 case 8: { 7049 Data = input.ReadUInt64(); 7050 break; 7051 } 7052 } 7053 } 7054 } 7055 #endif 7056 7057 } 7058 7059 public sealed partial class BoolMessage : pb::IMessage<BoolMessage> 7060 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 7061 , pb::IBufferMessage 7062 #endif 7063 { 7064 private static readonly pb::MessageParser<BoolMessage> _parser = new pb::MessageParser<BoolMessage>(() => new BoolMessage()); 7065 private pb::UnknownFieldSet _unknownFields; 7066 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 7067 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 7068 public static pb::MessageParser<BoolMessage> Parser { get { return _parser; } } 7069 7070 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 7071 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 7072 public static pbr::MessageDescriptor Descriptor { 7073 get { return global::Google.Protobuf.TestProtos.UnittestProto3Reflection.Descriptor.MessageTypes[22]; } 7074 } 7075 7076 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 7077 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 7078 pbr::MessageDescriptor pb::IMessage.Descriptor { 7079 get { return Descriptor; } 7080 } 7081 7082 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 7083 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] BoolMessage()7084 public BoolMessage() { 7085 OnConstruction(); 7086 } 7087 OnConstruction()7088 partial void OnConstruction(); 7089 7090 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 7091 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] BoolMessage(BoolMessage other)7092 public BoolMessage(BoolMessage other) : this() { 7093 data_ = other.data_; 7094 _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); 7095 } 7096 7097 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 7098 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] Clone()7099 public BoolMessage Clone() { 7100 return new BoolMessage(this); 7101 } 7102 7103 /// <summary>Field number for the "data" field.</summary> 7104 public const int DataFieldNumber = 1; 7105 private bool data_; 7106 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 7107 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 7108 public bool Data { 7109 get { return data_; } 7110 set { 7111 data_ = value; 7112 } 7113 } 7114 7115 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 7116 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] Equals(object other)7117 public override bool Equals(object other) { 7118 return Equals(other as BoolMessage); 7119 } 7120 7121 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 7122 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] Equals(BoolMessage other)7123 public bool Equals(BoolMessage other) { 7124 if (ReferenceEquals(other, null)) { 7125 return false; 7126 } 7127 if (ReferenceEquals(other, this)) { 7128 return true; 7129 } 7130 if (Data != other.Data) return false; 7131 return Equals(_unknownFields, other._unknownFields); 7132 } 7133 7134 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 7135 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] GetHashCode()7136 public override int GetHashCode() { 7137 int hash = 1; 7138 if (Data != false) hash ^= Data.GetHashCode(); 7139 if (_unknownFields != null) { 7140 hash ^= _unknownFields.GetHashCode(); 7141 } 7142 return hash; 7143 } 7144 7145 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 7146 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] ToString()7147 public override string ToString() { 7148 return pb::JsonFormatter.ToDiagnosticString(this); 7149 } 7150 7151 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 7152 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] WriteTo(pb::CodedOutputStream output)7153 public void WriteTo(pb::CodedOutputStream output) { 7154 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 7155 output.WriteRawMessage(this); 7156 #else 7157 if (Data != false) { 7158 output.WriteRawTag(8); 7159 output.WriteBool(Data); 7160 } 7161 if (_unknownFields != null) { 7162 _unknownFields.WriteTo(output); 7163 } 7164 #endif 7165 } 7166 7167 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 7168 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 7169 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] IBufferMessage.InternalWriteTo(ref pb::WriteContext output)7170 void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { 7171 if (Data != false) { 7172 output.WriteRawTag(8); 7173 output.WriteBool(Data); 7174 } 7175 if (_unknownFields != null) { 7176 _unknownFields.WriteTo(ref output); 7177 } 7178 } 7179 #endif 7180 7181 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 7182 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] CalculateSize()7183 public int CalculateSize() { 7184 int size = 0; 7185 if (Data != false) { 7186 size += 1 + 1; 7187 } 7188 if (_unknownFields != null) { 7189 size += _unknownFields.CalculateSize(); 7190 } 7191 return size; 7192 } 7193 7194 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 7195 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] MergeFrom(BoolMessage other)7196 public void MergeFrom(BoolMessage other) { 7197 if (other == null) { 7198 return; 7199 } 7200 if (other.Data != false) { 7201 Data = other.Data; 7202 } 7203 _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); 7204 } 7205 7206 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 7207 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] MergeFrom(pb::CodedInputStream input)7208 public void MergeFrom(pb::CodedInputStream input) { 7209 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 7210 input.ReadRawMessage(this); 7211 #else 7212 uint tag; 7213 while ((tag = input.ReadTag()) != 0) { 7214 switch(tag) { 7215 default: 7216 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); 7217 break; 7218 case 8: { 7219 Data = input.ReadBool(); 7220 break; 7221 } 7222 } 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.InternalMergeFrom(ref pb::ParseContext input)7230 void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { 7231 uint tag; 7232 while ((tag = input.ReadTag()) != 0) { 7233 switch(tag) { 7234 default: 7235 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); 7236 break; 7237 case 8: { 7238 Data = input.ReadBool(); 7239 break; 7240 } 7241 } 7242 } 7243 } 7244 #endif 7245 7246 } 7247 7248 /// <summary> 7249 /// Test oneofs. 7250 /// </summary> 7251 public sealed partial class TestOneof : pb::IMessage<TestOneof> 7252 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 7253 , pb::IBufferMessage 7254 #endif 7255 { 7256 private static readonly pb::MessageParser<TestOneof> _parser = new pb::MessageParser<TestOneof>(() => new TestOneof()); 7257 private pb::UnknownFieldSet _unknownFields; 7258 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 7259 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 7260 public static pb::MessageParser<TestOneof> Parser { get { return _parser; } } 7261 7262 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 7263 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 7264 public static pbr::MessageDescriptor Descriptor { 7265 get { return global::Google.Protobuf.TestProtos.UnittestProto3Reflection.Descriptor.MessageTypes[23]; } 7266 } 7267 7268 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 7269 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 7270 pbr::MessageDescriptor pb::IMessage.Descriptor { 7271 get { return Descriptor; } 7272 } 7273 7274 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 7275 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] TestOneof()7276 public TestOneof() { 7277 OnConstruction(); 7278 } 7279 OnConstruction()7280 partial void OnConstruction(); 7281 7282 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 7283 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] TestOneof(TestOneof other)7284 public TestOneof(TestOneof other) : this() { 7285 switch (other.FooCase) { 7286 case FooOneofCase.FooInt: 7287 FooInt = other.FooInt; 7288 break; 7289 case FooOneofCase.FooString: 7290 FooString = other.FooString; 7291 break; 7292 case FooOneofCase.FooMessage: 7293 FooMessage = other.FooMessage.Clone(); 7294 break; 7295 } 7296 7297 _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); 7298 } 7299 7300 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 7301 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] Clone()7302 public TestOneof Clone() { 7303 return new TestOneof(this); 7304 } 7305 7306 /// <summary>Field number for the "foo_int" field.</summary> 7307 public const int FooIntFieldNumber = 1; 7308 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 7309 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 7310 public int FooInt { 7311 get { return fooCase_ == FooOneofCase.FooInt ? (int) foo_ : 0; } 7312 set { 7313 foo_ = value; 7314 fooCase_ = FooOneofCase.FooInt; 7315 } 7316 } 7317 7318 /// <summary>Field number for the "foo_string" field.</summary> 7319 public const int FooStringFieldNumber = 2; 7320 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 7321 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 7322 public string FooString { 7323 get { return fooCase_ == FooOneofCase.FooString ? (string) foo_ : ""; } 7324 set { 7325 foo_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); 7326 fooCase_ = FooOneofCase.FooString; 7327 } 7328 } 7329 7330 /// <summary>Field number for the "foo_message" field.</summary> 7331 public const int FooMessageFieldNumber = 3; 7332 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 7333 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 7334 public global::Google.Protobuf.TestProtos.TestAllTypes FooMessage { 7335 get { return fooCase_ == FooOneofCase.FooMessage ? (global::Google.Protobuf.TestProtos.TestAllTypes) foo_ : null; } 7336 set { 7337 foo_ = value; 7338 fooCase_ = value == null ? FooOneofCase.None : FooOneofCase.FooMessage; 7339 } 7340 } 7341 7342 private object foo_; 7343 /// <summary>Enum of possible cases for the "foo" oneof.</summary> 7344 public enum FooOneofCase { 7345 None = 0, 7346 FooInt = 1, 7347 FooString = 2, 7348 FooMessage = 3, 7349 } 7350 private FooOneofCase fooCase_ = FooOneofCase.None; 7351 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 7352 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 7353 public FooOneofCase FooCase { 7354 get { return fooCase_; } 7355 } 7356 7357 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 7358 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] ClearFoo()7359 public void ClearFoo() { 7360 fooCase_ = FooOneofCase.None; 7361 foo_ = null; 7362 } 7363 7364 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 7365 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] Equals(object other)7366 public override bool Equals(object other) { 7367 return Equals(other as TestOneof); 7368 } 7369 7370 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 7371 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] Equals(TestOneof other)7372 public bool Equals(TestOneof other) { 7373 if (ReferenceEquals(other, null)) { 7374 return false; 7375 } 7376 if (ReferenceEquals(other, this)) { 7377 return true; 7378 } 7379 if (FooInt != other.FooInt) return false; 7380 if (FooString != other.FooString) return false; 7381 if (!object.Equals(FooMessage, other.FooMessage)) return false; 7382 if (FooCase != other.FooCase) return false; 7383 return Equals(_unknownFields, other._unknownFields); 7384 } 7385 7386 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 7387 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] GetHashCode()7388 public override int GetHashCode() { 7389 int hash = 1; 7390 if (fooCase_ == FooOneofCase.FooInt) hash ^= FooInt.GetHashCode(); 7391 if (fooCase_ == FooOneofCase.FooString) hash ^= FooString.GetHashCode(); 7392 if (fooCase_ == FooOneofCase.FooMessage) hash ^= FooMessage.GetHashCode(); 7393 hash ^= (int) fooCase_; 7394 if (_unknownFields != null) { 7395 hash ^= _unknownFields.GetHashCode(); 7396 } 7397 return hash; 7398 } 7399 7400 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 7401 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] ToString()7402 public override string ToString() { 7403 return pb::JsonFormatter.ToDiagnosticString(this); 7404 } 7405 7406 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 7407 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] WriteTo(pb::CodedOutputStream output)7408 public void WriteTo(pb::CodedOutputStream output) { 7409 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 7410 output.WriteRawMessage(this); 7411 #else 7412 if (fooCase_ == FooOneofCase.FooInt) { 7413 output.WriteRawTag(8); 7414 output.WriteInt32(FooInt); 7415 } 7416 if (fooCase_ == FooOneofCase.FooString) { 7417 output.WriteRawTag(18); 7418 output.WriteString(FooString); 7419 } 7420 if (fooCase_ == FooOneofCase.FooMessage) { 7421 output.WriteRawTag(26); 7422 output.WriteMessage(FooMessage); 7423 } 7424 if (_unknownFields != null) { 7425 _unknownFields.WriteTo(output); 7426 } 7427 #endif 7428 } 7429 7430 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 7431 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 7432 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] IBufferMessage.InternalWriteTo(ref pb::WriteContext output)7433 void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { 7434 if (fooCase_ == FooOneofCase.FooInt) { 7435 output.WriteRawTag(8); 7436 output.WriteInt32(FooInt); 7437 } 7438 if (fooCase_ == FooOneofCase.FooString) { 7439 output.WriteRawTag(18); 7440 output.WriteString(FooString); 7441 } 7442 if (fooCase_ == FooOneofCase.FooMessage) { 7443 output.WriteRawTag(26); 7444 output.WriteMessage(FooMessage); 7445 } 7446 if (_unknownFields != null) { 7447 _unknownFields.WriteTo(ref output); 7448 } 7449 } 7450 #endif 7451 7452 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 7453 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] CalculateSize()7454 public int CalculateSize() { 7455 int size = 0; 7456 if (fooCase_ == FooOneofCase.FooInt) { 7457 size += 1 + pb::CodedOutputStream.ComputeInt32Size(FooInt); 7458 } 7459 if (fooCase_ == FooOneofCase.FooString) { 7460 size += 1 + pb::CodedOutputStream.ComputeStringSize(FooString); 7461 } 7462 if (fooCase_ == FooOneofCase.FooMessage) { 7463 size += 1 + pb::CodedOutputStream.ComputeMessageSize(FooMessage); 7464 } 7465 if (_unknownFields != null) { 7466 size += _unknownFields.CalculateSize(); 7467 } 7468 return size; 7469 } 7470 7471 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 7472 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] MergeFrom(TestOneof other)7473 public void MergeFrom(TestOneof other) { 7474 if (other == null) { 7475 return; 7476 } 7477 switch (other.FooCase) { 7478 case FooOneofCase.FooInt: 7479 FooInt = other.FooInt; 7480 break; 7481 case FooOneofCase.FooString: 7482 FooString = other.FooString; 7483 break; 7484 case FooOneofCase.FooMessage: 7485 if (FooMessage == null) { 7486 FooMessage = new global::Google.Protobuf.TestProtos.TestAllTypes(); 7487 } 7488 FooMessage.MergeFrom(other.FooMessage); 7489 break; 7490 } 7491 7492 _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); 7493 } 7494 7495 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 7496 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] MergeFrom(pb::CodedInputStream input)7497 public void MergeFrom(pb::CodedInputStream input) { 7498 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 7499 input.ReadRawMessage(this); 7500 #else 7501 uint tag; 7502 while ((tag = input.ReadTag()) != 0) { 7503 switch(tag) { 7504 default: 7505 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); 7506 break; 7507 case 8: { 7508 FooInt = input.ReadInt32(); 7509 break; 7510 } 7511 case 18: { 7512 FooString = input.ReadString(); 7513 break; 7514 } 7515 case 26: { 7516 global::Google.Protobuf.TestProtos.TestAllTypes subBuilder = new global::Google.Protobuf.TestProtos.TestAllTypes(); 7517 if (fooCase_ == FooOneofCase.FooMessage) { 7518 subBuilder.MergeFrom(FooMessage); 7519 } 7520 input.ReadMessage(subBuilder); 7521 FooMessage = subBuilder; 7522 break; 7523 } 7524 } 7525 } 7526 #endif 7527 } 7528 7529 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 7530 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 7531 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] IBufferMessage.InternalMergeFrom(ref pb::ParseContext input)7532 void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { 7533 uint tag; 7534 while ((tag = input.ReadTag()) != 0) { 7535 switch(tag) { 7536 default: 7537 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); 7538 break; 7539 case 8: { 7540 FooInt = input.ReadInt32(); 7541 break; 7542 } 7543 case 18: { 7544 FooString = input.ReadString(); 7545 break; 7546 } 7547 case 26: { 7548 global::Google.Protobuf.TestProtos.TestAllTypes subBuilder = new global::Google.Protobuf.TestProtos.TestAllTypes(); 7549 if (fooCase_ == FooOneofCase.FooMessage) { 7550 subBuilder.MergeFrom(FooMessage); 7551 } 7552 input.ReadMessage(subBuilder); 7553 FooMessage = subBuilder; 7554 break; 7555 } 7556 } 7557 } 7558 } 7559 #endif 7560 7561 } 7562 7563 public sealed partial class TestPackedTypes : pb::IMessage<TestPackedTypes> 7564 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 7565 , pb::IBufferMessage 7566 #endif 7567 { 7568 private static readonly pb::MessageParser<TestPackedTypes> _parser = new pb::MessageParser<TestPackedTypes>(() => new TestPackedTypes()); 7569 private pb::UnknownFieldSet _unknownFields; 7570 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 7571 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 7572 public static pb::MessageParser<TestPackedTypes> Parser { get { return _parser; } } 7573 7574 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 7575 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 7576 public static pbr::MessageDescriptor Descriptor { 7577 get { return global::Google.Protobuf.TestProtos.UnittestProto3Reflection.Descriptor.MessageTypes[24]; } 7578 } 7579 7580 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 7581 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 7582 pbr::MessageDescriptor pb::IMessage.Descriptor { 7583 get { return Descriptor; } 7584 } 7585 7586 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 7587 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] TestPackedTypes()7588 public TestPackedTypes() { 7589 OnConstruction(); 7590 } 7591 OnConstruction()7592 partial void OnConstruction(); 7593 7594 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 7595 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] TestPackedTypes(TestPackedTypes other)7596 public TestPackedTypes(TestPackedTypes other) : this() { 7597 packedInt32_ = other.packedInt32_.Clone(); 7598 packedInt64_ = other.packedInt64_.Clone(); 7599 packedUint32_ = other.packedUint32_.Clone(); 7600 packedUint64_ = other.packedUint64_.Clone(); 7601 packedSint32_ = other.packedSint32_.Clone(); 7602 packedSint64_ = other.packedSint64_.Clone(); 7603 packedFixed32_ = other.packedFixed32_.Clone(); 7604 packedFixed64_ = other.packedFixed64_.Clone(); 7605 packedSfixed32_ = other.packedSfixed32_.Clone(); 7606 packedSfixed64_ = other.packedSfixed64_.Clone(); 7607 packedFloat_ = other.packedFloat_.Clone(); 7608 packedDouble_ = other.packedDouble_.Clone(); 7609 packedBool_ = other.packedBool_.Clone(); 7610 packedEnum_ = other.packedEnum_.Clone(); 7611 _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); 7612 } 7613 7614 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 7615 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] Clone()7616 public TestPackedTypes Clone() { 7617 return new TestPackedTypes(this); 7618 } 7619 7620 /// <summary>Field number for the "packed_int32" field.</summary> 7621 public const int PackedInt32FieldNumber = 90; 7622 private static readonly pb::FieldCodec<int> _repeated_packedInt32_codec 7623 = pb::FieldCodec.ForInt32(722); 7624 private readonly pbc::RepeatedField<int> packedInt32_ = new pbc::RepeatedField<int>(); 7625 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 7626 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 7627 public pbc::RepeatedField<int> PackedInt32 { 7628 get { return packedInt32_; } 7629 } 7630 7631 /// <summary>Field number for the "packed_int64" field.</summary> 7632 public const int PackedInt64FieldNumber = 91; 7633 private static readonly pb::FieldCodec<long> _repeated_packedInt64_codec 7634 = pb::FieldCodec.ForInt64(730); 7635 private readonly pbc::RepeatedField<long> packedInt64_ = new pbc::RepeatedField<long>(); 7636 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 7637 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 7638 public pbc::RepeatedField<long> PackedInt64 { 7639 get { return packedInt64_; } 7640 } 7641 7642 /// <summary>Field number for the "packed_uint32" field.</summary> 7643 public const int PackedUint32FieldNumber = 92; 7644 private static readonly pb::FieldCodec<uint> _repeated_packedUint32_codec 7645 = pb::FieldCodec.ForUInt32(738); 7646 private readonly pbc::RepeatedField<uint> packedUint32_ = new pbc::RepeatedField<uint>(); 7647 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 7648 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 7649 public pbc::RepeatedField<uint> PackedUint32 { 7650 get { return packedUint32_; } 7651 } 7652 7653 /// <summary>Field number for the "packed_uint64" field.</summary> 7654 public const int PackedUint64FieldNumber = 93; 7655 private static readonly pb::FieldCodec<ulong> _repeated_packedUint64_codec 7656 = pb::FieldCodec.ForUInt64(746); 7657 private readonly pbc::RepeatedField<ulong> packedUint64_ = new pbc::RepeatedField<ulong>(); 7658 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 7659 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 7660 public pbc::RepeatedField<ulong> PackedUint64 { 7661 get { return packedUint64_; } 7662 } 7663 7664 /// <summary>Field number for the "packed_sint32" field.</summary> 7665 public const int PackedSint32FieldNumber = 94; 7666 private static readonly pb::FieldCodec<int> _repeated_packedSint32_codec 7667 = pb::FieldCodec.ForSInt32(754); 7668 private readonly pbc::RepeatedField<int> packedSint32_ = new pbc::RepeatedField<int>(); 7669 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 7670 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 7671 public pbc::RepeatedField<int> PackedSint32 { 7672 get { return packedSint32_; } 7673 } 7674 7675 /// <summary>Field number for the "packed_sint64" field.</summary> 7676 public const int PackedSint64FieldNumber = 95; 7677 private static readonly pb::FieldCodec<long> _repeated_packedSint64_codec 7678 = pb::FieldCodec.ForSInt64(762); 7679 private readonly pbc::RepeatedField<long> packedSint64_ = new pbc::RepeatedField<long>(); 7680 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 7681 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 7682 public pbc::RepeatedField<long> PackedSint64 { 7683 get { return packedSint64_; } 7684 } 7685 7686 /// <summary>Field number for the "packed_fixed32" field.</summary> 7687 public const int PackedFixed32FieldNumber = 96; 7688 private static readonly pb::FieldCodec<uint> _repeated_packedFixed32_codec 7689 = pb::FieldCodec.ForFixed32(770); 7690 private readonly pbc::RepeatedField<uint> packedFixed32_ = new pbc::RepeatedField<uint>(); 7691 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 7692 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 7693 public pbc::RepeatedField<uint> PackedFixed32 { 7694 get { return packedFixed32_; } 7695 } 7696 7697 /// <summary>Field number for the "packed_fixed64" field.</summary> 7698 public const int PackedFixed64FieldNumber = 97; 7699 private static readonly pb::FieldCodec<ulong> _repeated_packedFixed64_codec 7700 = pb::FieldCodec.ForFixed64(778); 7701 private readonly pbc::RepeatedField<ulong> packedFixed64_ = new pbc::RepeatedField<ulong>(); 7702 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 7703 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 7704 public pbc::RepeatedField<ulong> PackedFixed64 { 7705 get { return packedFixed64_; } 7706 } 7707 7708 /// <summary>Field number for the "packed_sfixed32" field.</summary> 7709 public const int PackedSfixed32FieldNumber = 98; 7710 private static readonly pb::FieldCodec<int> _repeated_packedSfixed32_codec 7711 = pb::FieldCodec.ForSFixed32(786); 7712 private readonly pbc::RepeatedField<int> packedSfixed32_ = new pbc::RepeatedField<int>(); 7713 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 7714 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 7715 public pbc::RepeatedField<int> PackedSfixed32 { 7716 get { return packedSfixed32_; } 7717 } 7718 7719 /// <summary>Field number for the "packed_sfixed64" field.</summary> 7720 public const int PackedSfixed64FieldNumber = 99; 7721 private static readonly pb::FieldCodec<long> _repeated_packedSfixed64_codec 7722 = pb::FieldCodec.ForSFixed64(794); 7723 private readonly pbc::RepeatedField<long> packedSfixed64_ = new pbc::RepeatedField<long>(); 7724 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 7725 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 7726 public pbc::RepeatedField<long> PackedSfixed64 { 7727 get { return packedSfixed64_; } 7728 } 7729 7730 /// <summary>Field number for the "packed_float" field.</summary> 7731 public const int PackedFloatFieldNumber = 100; 7732 private static readonly pb::FieldCodec<float> _repeated_packedFloat_codec 7733 = pb::FieldCodec.ForFloat(802); 7734 private readonly pbc::RepeatedField<float> packedFloat_ = new pbc::RepeatedField<float>(); 7735 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 7736 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 7737 public pbc::RepeatedField<float> PackedFloat { 7738 get { return packedFloat_; } 7739 } 7740 7741 /// <summary>Field number for the "packed_double" field.</summary> 7742 public const int PackedDoubleFieldNumber = 101; 7743 private static readonly pb::FieldCodec<double> _repeated_packedDouble_codec 7744 = pb::FieldCodec.ForDouble(810); 7745 private readonly pbc::RepeatedField<double> packedDouble_ = new pbc::RepeatedField<double>(); 7746 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 7747 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 7748 public pbc::RepeatedField<double> PackedDouble { 7749 get { return packedDouble_; } 7750 } 7751 7752 /// <summary>Field number for the "packed_bool" field.</summary> 7753 public const int PackedBoolFieldNumber = 102; 7754 private static readonly pb::FieldCodec<bool> _repeated_packedBool_codec 7755 = pb::FieldCodec.ForBool(818); 7756 private readonly pbc::RepeatedField<bool> packedBool_ = new pbc::RepeatedField<bool>(); 7757 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 7758 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 7759 public pbc::RepeatedField<bool> PackedBool { 7760 get { return packedBool_; } 7761 } 7762 7763 /// <summary>Field number for the "packed_enum" field.</summary> 7764 public const int PackedEnumFieldNumber = 103; 7765 private static readonly pb::FieldCodec<global::Google.Protobuf.TestProtos.ForeignEnum> _repeated_packedEnum_codec 7766 = pb::FieldCodec.ForEnum(826, x => (int) x, x => (global::Google.Protobuf.TestProtos.ForeignEnum) x); 7767 private readonly pbc::RepeatedField<global::Google.Protobuf.TestProtos.ForeignEnum> packedEnum_ = new pbc::RepeatedField<global::Google.Protobuf.TestProtos.ForeignEnum>(); 7768 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 7769 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 7770 public pbc::RepeatedField<global::Google.Protobuf.TestProtos.ForeignEnum> PackedEnum { 7771 get { return packedEnum_; } 7772 } 7773 7774 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 7775 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] Equals(object other)7776 public override bool Equals(object other) { 7777 return Equals(other as TestPackedTypes); 7778 } 7779 7780 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 7781 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] Equals(TestPackedTypes other)7782 public bool Equals(TestPackedTypes other) { 7783 if (ReferenceEquals(other, null)) { 7784 return false; 7785 } 7786 if (ReferenceEquals(other, this)) { 7787 return true; 7788 } 7789 if(!packedInt32_.Equals(other.packedInt32_)) return false; 7790 if(!packedInt64_.Equals(other.packedInt64_)) return false; 7791 if(!packedUint32_.Equals(other.packedUint32_)) return false; 7792 if(!packedUint64_.Equals(other.packedUint64_)) return false; 7793 if(!packedSint32_.Equals(other.packedSint32_)) return false; 7794 if(!packedSint64_.Equals(other.packedSint64_)) return false; 7795 if(!packedFixed32_.Equals(other.packedFixed32_)) return false; 7796 if(!packedFixed64_.Equals(other.packedFixed64_)) return false; 7797 if(!packedSfixed32_.Equals(other.packedSfixed32_)) return false; 7798 if(!packedSfixed64_.Equals(other.packedSfixed64_)) return false; 7799 if(!packedFloat_.Equals(other.packedFloat_)) return false; 7800 if(!packedDouble_.Equals(other.packedDouble_)) return false; 7801 if(!packedBool_.Equals(other.packedBool_)) return false; 7802 if(!packedEnum_.Equals(other.packedEnum_)) return false; 7803 return Equals(_unknownFields, other._unknownFields); 7804 } 7805 7806 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 7807 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] GetHashCode()7808 public override int GetHashCode() { 7809 int hash = 1; 7810 hash ^= packedInt32_.GetHashCode(); 7811 hash ^= packedInt64_.GetHashCode(); 7812 hash ^= packedUint32_.GetHashCode(); 7813 hash ^= packedUint64_.GetHashCode(); 7814 hash ^= packedSint32_.GetHashCode(); 7815 hash ^= packedSint64_.GetHashCode(); 7816 hash ^= packedFixed32_.GetHashCode(); 7817 hash ^= packedFixed64_.GetHashCode(); 7818 hash ^= packedSfixed32_.GetHashCode(); 7819 hash ^= packedSfixed64_.GetHashCode(); 7820 hash ^= packedFloat_.GetHashCode(); 7821 hash ^= packedDouble_.GetHashCode(); 7822 hash ^= packedBool_.GetHashCode(); 7823 hash ^= packedEnum_.GetHashCode(); 7824 if (_unknownFields != null) { 7825 hash ^= _unknownFields.GetHashCode(); 7826 } 7827 return hash; 7828 } 7829 7830 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 7831 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] ToString()7832 public override string ToString() { 7833 return pb::JsonFormatter.ToDiagnosticString(this); 7834 } 7835 7836 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 7837 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] WriteTo(pb::CodedOutputStream output)7838 public void WriteTo(pb::CodedOutputStream output) { 7839 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 7840 output.WriteRawMessage(this); 7841 #else 7842 packedInt32_.WriteTo(output, _repeated_packedInt32_codec); 7843 packedInt64_.WriteTo(output, _repeated_packedInt64_codec); 7844 packedUint32_.WriteTo(output, _repeated_packedUint32_codec); 7845 packedUint64_.WriteTo(output, _repeated_packedUint64_codec); 7846 packedSint32_.WriteTo(output, _repeated_packedSint32_codec); 7847 packedSint64_.WriteTo(output, _repeated_packedSint64_codec); 7848 packedFixed32_.WriteTo(output, _repeated_packedFixed32_codec); 7849 packedFixed64_.WriteTo(output, _repeated_packedFixed64_codec); 7850 packedSfixed32_.WriteTo(output, _repeated_packedSfixed32_codec); 7851 packedSfixed64_.WriteTo(output, _repeated_packedSfixed64_codec); 7852 packedFloat_.WriteTo(output, _repeated_packedFloat_codec); 7853 packedDouble_.WriteTo(output, _repeated_packedDouble_codec); 7854 packedBool_.WriteTo(output, _repeated_packedBool_codec); 7855 packedEnum_.WriteTo(output, _repeated_packedEnum_codec); 7856 if (_unknownFields != null) { 7857 _unknownFields.WriteTo(output); 7858 } 7859 #endif 7860 } 7861 7862 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 7863 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 7864 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] IBufferMessage.InternalWriteTo(ref pb::WriteContext output)7865 void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { 7866 packedInt32_.WriteTo(ref output, _repeated_packedInt32_codec); 7867 packedInt64_.WriteTo(ref output, _repeated_packedInt64_codec); 7868 packedUint32_.WriteTo(ref output, _repeated_packedUint32_codec); 7869 packedUint64_.WriteTo(ref output, _repeated_packedUint64_codec); 7870 packedSint32_.WriteTo(ref output, _repeated_packedSint32_codec); 7871 packedSint64_.WriteTo(ref output, _repeated_packedSint64_codec); 7872 packedFixed32_.WriteTo(ref output, _repeated_packedFixed32_codec); 7873 packedFixed64_.WriteTo(ref output, _repeated_packedFixed64_codec); 7874 packedSfixed32_.WriteTo(ref output, _repeated_packedSfixed32_codec); 7875 packedSfixed64_.WriteTo(ref output, _repeated_packedSfixed64_codec); 7876 packedFloat_.WriteTo(ref output, _repeated_packedFloat_codec); 7877 packedDouble_.WriteTo(ref output, _repeated_packedDouble_codec); 7878 packedBool_.WriteTo(ref output, _repeated_packedBool_codec); 7879 packedEnum_.WriteTo(ref output, _repeated_packedEnum_codec); 7880 if (_unknownFields != null) { 7881 _unknownFields.WriteTo(ref output); 7882 } 7883 } 7884 #endif 7885 7886 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 7887 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] CalculateSize()7888 public int CalculateSize() { 7889 int size = 0; 7890 size += packedInt32_.CalculateSize(_repeated_packedInt32_codec); 7891 size += packedInt64_.CalculateSize(_repeated_packedInt64_codec); 7892 size += packedUint32_.CalculateSize(_repeated_packedUint32_codec); 7893 size += packedUint64_.CalculateSize(_repeated_packedUint64_codec); 7894 size += packedSint32_.CalculateSize(_repeated_packedSint32_codec); 7895 size += packedSint64_.CalculateSize(_repeated_packedSint64_codec); 7896 size += packedFixed32_.CalculateSize(_repeated_packedFixed32_codec); 7897 size += packedFixed64_.CalculateSize(_repeated_packedFixed64_codec); 7898 size += packedSfixed32_.CalculateSize(_repeated_packedSfixed32_codec); 7899 size += packedSfixed64_.CalculateSize(_repeated_packedSfixed64_codec); 7900 size += packedFloat_.CalculateSize(_repeated_packedFloat_codec); 7901 size += packedDouble_.CalculateSize(_repeated_packedDouble_codec); 7902 size += packedBool_.CalculateSize(_repeated_packedBool_codec); 7903 size += packedEnum_.CalculateSize(_repeated_packedEnum_codec); 7904 if (_unknownFields != null) { 7905 size += _unknownFields.CalculateSize(); 7906 } 7907 return size; 7908 } 7909 7910 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 7911 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] MergeFrom(TestPackedTypes other)7912 public void MergeFrom(TestPackedTypes other) { 7913 if (other == null) { 7914 return; 7915 } 7916 packedInt32_.Add(other.packedInt32_); 7917 packedInt64_.Add(other.packedInt64_); 7918 packedUint32_.Add(other.packedUint32_); 7919 packedUint64_.Add(other.packedUint64_); 7920 packedSint32_.Add(other.packedSint32_); 7921 packedSint64_.Add(other.packedSint64_); 7922 packedFixed32_.Add(other.packedFixed32_); 7923 packedFixed64_.Add(other.packedFixed64_); 7924 packedSfixed32_.Add(other.packedSfixed32_); 7925 packedSfixed64_.Add(other.packedSfixed64_); 7926 packedFloat_.Add(other.packedFloat_); 7927 packedDouble_.Add(other.packedDouble_); 7928 packedBool_.Add(other.packedBool_); 7929 packedEnum_.Add(other.packedEnum_); 7930 _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); 7931 } 7932 7933 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 7934 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] MergeFrom(pb::CodedInputStream input)7935 public void MergeFrom(pb::CodedInputStream input) { 7936 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 7937 input.ReadRawMessage(this); 7938 #else 7939 uint tag; 7940 while ((tag = input.ReadTag()) != 0) { 7941 switch(tag) { 7942 default: 7943 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); 7944 break; 7945 case 722: 7946 case 720: { 7947 packedInt32_.AddEntriesFrom(input, _repeated_packedInt32_codec); 7948 break; 7949 } 7950 case 730: 7951 case 728: { 7952 packedInt64_.AddEntriesFrom(input, _repeated_packedInt64_codec); 7953 break; 7954 } 7955 case 738: 7956 case 736: { 7957 packedUint32_.AddEntriesFrom(input, _repeated_packedUint32_codec); 7958 break; 7959 } 7960 case 746: 7961 case 744: { 7962 packedUint64_.AddEntriesFrom(input, _repeated_packedUint64_codec); 7963 break; 7964 } 7965 case 754: 7966 case 752: { 7967 packedSint32_.AddEntriesFrom(input, _repeated_packedSint32_codec); 7968 break; 7969 } 7970 case 762: 7971 case 760: { 7972 packedSint64_.AddEntriesFrom(input, _repeated_packedSint64_codec); 7973 break; 7974 } 7975 case 770: 7976 case 773: { 7977 packedFixed32_.AddEntriesFrom(input, _repeated_packedFixed32_codec); 7978 break; 7979 } 7980 case 778: 7981 case 777: { 7982 packedFixed64_.AddEntriesFrom(input, _repeated_packedFixed64_codec); 7983 break; 7984 } 7985 case 786: 7986 case 789: { 7987 packedSfixed32_.AddEntriesFrom(input, _repeated_packedSfixed32_codec); 7988 break; 7989 } 7990 case 794: 7991 case 793: { 7992 packedSfixed64_.AddEntriesFrom(input, _repeated_packedSfixed64_codec); 7993 break; 7994 } 7995 case 802: 7996 case 805: { 7997 packedFloat_.AddEntriesFrom(input, _repeated_packedFloat_codec); 7998 break; 7999 } 8000 case 810: 8001 case 809: { 8002 packedDouble_.AddEntriesFrom(input, _repeated_packedDouble_codec); 8003 break; 8004 } 8005 case 818: 8006 case 816: { 8007 packedBool_.AddEntriesFrom(input, _repeated_packedBool_codec); 8008 break; 8009 } 8010 case 826: 8011 case 824: { 8012 packedEnum_.AddEntriesFrom(input, _repeated_packedEnum_codec); 8013 break; 8014 } 8015 } 8016 } 8017 #endif 8018 } 8019 8020 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 8021 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 8022 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] IBufferMessage.InternalMergeFrom(ref pb::ParseContext input)8023 void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { 8024 uint tag; 8025 while ((tag = input.ReadTag()) != 0) { 8026 switch(tag) { 8027 default: 8028 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); 8029 break; 8030 case 722: 8031 case 720: { 8032 packedInt32_.AddEntriesFrom(ref input, _repeated_packedInt32_codec); 8033 break; 8034 } 8035 case 730: 8036 case 728: { 8037 packedInt64_.AddEntriesFrom(ref input, _repeated_packedInt64_codec); 8038 break; 8039 } 8040 case 738: 8041 case 736: { 8042 packedUint32_.AddEntriesFrom(ref input, _repeated_packedUint32_codec); 8043 break; 8044 } 8045 case 746: 8046 case 744: { 8047 packedUint64_.AddEntriesFrom(ref input, _repeated_packedUint64_codec); 8048 break; 8049 } 8050 case 754: 8051 case 752: { 8052 packedSint32_.AddEntriesFrom(ref input, _repeated_packedSint32_codec); 8053 break; 8054 } 8055 case 762: 8056 case 760: { 8057 packedSint64_.AddEntriesFrom(ref input, _repeated_packedSint64_codec); 8058 break; 8059 } 8060 case 770: 8061 case 773: { 8062 packedFixed32_.AddEntriesFrom(ref input, _repeated_packedFixed32_codec); 8063 break; 8064 } 8065 case 778: 8066 case 777: { 8067 packedFixed64_.AddEntriesFrom(ref input, _repeated_packedFixed64_codec); 8068 break; 8069 } 8070 case 786: 8071 case 789: { 8072 packedSfixed32_.AddEntriesFrom(ref input, _repeated_packedSfixed32_codec); 8073 break; 8074 } 8075 case 794: 8076 case 793: { 8077 packedSfixed64_.AddEntriesFrom(ref input, _repeated_packedSfixed64_codec); 8078 break; 8079 } 8080 case 802: 8081 case 805: { 8082 packedFloat_.AddEntriesFrom(ref input, _repeated_packedFloat_codec); 8083 break; 8084 } 8085 case 810: 8086 case 809: { 8087 packedDouble_.AddEntriesFrom(ref input, _repeated_packedDouble_codec); 8088 break; 8089 } 8090 case 818: 8091 case 816: { 8092 packedBool_.AddEntriesFrom(ref input, _repeated_packedBool_codec); 8093 break; 8094 } 8095 case 826: 8096 case 824: { 8097 packedEnum_.AddEntriesFrom(ref input, _repeated_packedEnum_codec); 8098 break; 8099 } 8100 } 8101 } 8102 } 8103 #endif 8104 8105 } 8106 8107 /// <summary> 8108 /// A message with the same fields as TestPackedTypes, but without packing. Used 8109 /// to test packed <-> unpacked wire compatibility. 8110 /// </summary> 8111 public sealed partial class TestUnpackedTypes : pb::IMessage<TestUnpackedTypes> 8112 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 8113 , pb::IBufferMessage 8114 #endif 8115 { 8116 private static readonly pb::MessageParser<TestUnpackedTypes> _parser = new pb::MessageParser<TestUnpackedTypes>(() => new TestUnpackedTypes()); 8117 private pb::UnknownFieldSet _unknownFields; 8118 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 8119 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 8120 public static pb::MessageParser<TestUnpackedTypes> Parser { get { return _parser; } } 8121 8122 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 8123 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 8124 public static pbr::MessageDescriptor Descriptor { 8125 get { return global::Google.Protobuf.TestProtos.UnittestProto3Reflection.Descriptor.MessageTypes[25]; } 8126 } 8127 8128 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 8129 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 8130 pbr::MessageDescriptor pb::IMessage.Descriptor { 8131 get { return Descriptor; } 8132 } 8133 8134 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 8135 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] TestUnpackedTypes()8136 public TestUnpackedTypes() { 8137 OnConstruction(); 8138 } 8139 OnConstruction()8140 partial void OnConstruction(); 8141 8142 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 8143 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] TestUnpackedTypes(TestUnpackedTypes other)8144 public TestUnpackedTypes(TestUnpackedTypes other) : this() { 8145 unpackedInt32_ = other.unpackedInt32_.Clone(); 8146 unpackedInt64_ = other.unpackedInt64_.Clone(); 8147 unpackedUint32_ = other.unpackedUint32_.Clone(); 8148 unpackedUint64_ = other.unpackedUint64_.Clone(); 8149 unpackedSint32_ = other.unpackedSint32_.Clone(); 8150 unpackedSint64_ = other.unpackedSint64_.Clone(); 8151 unpackedFixed32_ = other.unpackedFixed32_.Clone(); 8152 unpackedFixed64_ = other.unpackedFixed64_.Clone(); 8153 unpackedSfixed32_ = other.unpackedSfixed32_.Clone(); 8154 unpackedSfixed64_ = other.unpackedSfixed64_.Clone(); 8155 unpackedFloat_ = other.unpackedFloat_.Clone(); 8156 unpackedDouble_ = other.unpackedDouble_.Clone(); 8157 unpackedBool_ = other.unpackedBool_.Clone(); 8158 unpackedEnum_ = other.unpackedEnum_.Clone(); 8159 _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); 8160 } 8161 8162 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 8163 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] Clone()8164 public TestUnpackedTypes Clone() { 8165 return new TestUnpackedTypes(this); 8166 } 8167 8168 /// <summary>Field number for the "unpacked_int32" field.</summary> 8169 public const int UnpackedInt32FieldNumber = 90; 8170 private static readonly pb::FieldCodec<int> _repeated_unpackedInt32_codec 8171 = pb::FieldCodec.ForInt32(720); 8172 private readonly pbc::RepeatedField<int> unpackedInt32_ = new pbc::RepeatedField<int>(); 8173 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 8174 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 8175 public pbc::RepeatedField<int> UnpackedInt32 { 8176 get { return unpackedInt32_; } 8177 } 8178 8179 /// <summary>Field number for the "unpacked_int64" field.</summary> 8180 public const int UnpackedInt64FieldNumber = 91; 8181 private static readonly pb::FieldCodec<long> _repeated_unpackedInt64_codec 8182 = pb::FieldCodec.ForInt64(728); 8183 private readonly pbc::RepeatedField<long> unpackedInt64_ = new pbc::RepeatedField<long>(); 8184 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 8185 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 8186 public pbc::RepeatedField<long> UnpackedInt64 { 8187 get { return unpackedInt64_; } 8188 } 8189 8190 /// <summary>Field number for the "unpacked_uint32" field.</summary> 8191 public const int UnpackedUint32FieldNumber = 92; 8192 private static readonly pb::FieldCodec<uint> _repeated_unpackedUint32_codec 8193 = pb::FieldCodec.ForUInt32(736); 8194 private readonly pbc::RepeatedField<uint> unpackedUint32_ = new pbc::RepeatedField<uint>(); 8195 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 8196 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 8197 public pbc::RepeatedField<uint> UnpackedUint32 { 8198 get { return unpackedUint32_; } 8199 } 8200 8201 /// <summary>Field number for the "unpacked_uint64" field.</summary> 8202 public const int UnpackedUint64FieldNumber = 93; 8203 private static readonly pb::FieldCodec<ulong> _repeated_unpackedUint64_codec 8204 = pb::FieldCodec.ForUInt64(744); 8205 private readonly pbc::RepeatedField<ulong> unpackedUint64_ = new pbc::RepeatedField<ulong>(); 8206 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 8207 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 8208 public pbc::RepeatedField<ulong> UnpackedUint64 { 8209 get { return unpackedUint64_; } 8210 } 8211 8212 /// <summary>Field number for the "unpacked_sint32" field.</summary> 8213 public const int UnpackedSint32FieldNumber = 94; 8214 private static readonly pb::FieldCodec<int> _repeated_unpackedSint32_codec 8215 = pb::FieldCodec.ForSInt32(752); 8216 private readonly pbc::RepeatedField<int> unpackedSint32_ = new pbc::RepeatedField<int>(); 8217 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 8218 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 8219 public pbc::RepeatedField<int> UnpackedSint32 { 8220 get { return unpackedSint32_; } 8221 } 8222 8223 /// <summary>Field number for the "unpacked_sint64" field.</summary> 8224 public const int UnpackedSint64FieldNumber = 95; 8225 private static readonly pb::FieldCodec<long> _repeated_unpackedSint64_codec 8226 = pb::FieldCodec.ForSInt64(760); 8227 private readonly pbc::RepeatedField<long> unpackedSint64_ = new pbc::RepeatedField<long>(); 8228 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 8229 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 8230 public pbc::RepeatedField<long> UnpackedSint64 { 8231 get { return unpackedSint64_; } 8232 } 8233 8234 /// <summary>Field number for the "unpacked_fixed32" field.</summary> 8235 public const int UnpackedFixed32FieldNumber = 96; 8236 private static readonly pb::FieldCodec<uint> _repeated_unpackedFixed32_codec 8237 = pb::FieldCodec.ForFixed32(773); 8238 private readonly pbc::RepeatedField<uint> unpackedFixed32_ = new pbc::RepeatedField<uint>(); 8239 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 8240 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 8241 public pbc::RepeatedField<uint> UnpackedFixed32 { 8242 get { return unpackedFixed32_; } 8243 } 8244 8245 /// <summary>Field number for the "unpacked_fixed64" field.</summary> 8246 public const int UnpackedFixed64FieldNumber = 97; 8247 private static readonly pb::FieldCodec<ulong> _repeated_unpackedFixed64_codec 8248 = pb::FieldCodec.ForFixed64(777); 8249 private readonly pbc::RepeatedField<ulong> unpackedFixed64_ = new pbc::RepeatedField<ulong>(); 8250 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 8251 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 8252 public pbc::RepeatedField<ulong> UnpackedFixed64 { 8253 get { return unpackedFixed64_; } 8254 } 8255 8256 /// <summary>Field number for the "unpacked_sfixed32" field.</summary> 8257 public const int UnpackedSfixed32FieldNumber = 98; 8258 private static readonly pb::FieldCodec<int> _repeated_unpackedSfixed32_codec 8259 = pb::FieldCodec.ForSFixed32(789); 8260 private readonly pbc::RepeatedField<int> unpackedSfixed32_ = new pbc::RepeatedField<int>(); 8261 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 8262 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 8263 public pbc::RepeatedField<int> UnpackedSfixed32 { 8264 get { return unpackedSfixed32_; } 8265 } 8266 8267 /// <summary>Field number for the "unpacked_sfixed64" field.</summary> 8268 public const int UnpackedSfixed64FieldNumber = 99; 8269 private static readonly pb::FieldCodec<long> _repeated_unpackedSfixed64_codec 8270 = pb::FieldCodec.ForSFixed64(793); 8271 private readonly pbc::RepeatedField<long> unpackedSfixed64_ = new pbc::RepeatedField<long>(); 8272 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 8273 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 8274 public pbc::RepeatedField<long> UnpackedSfixed64 { 8275 get { return unpackedSfixed64_; } 8276 } 8277 8278 /// <summary>Field number for the "unpacked_float" field.</summary> 8279 public const int UnpackedFloatFieldNumber = 100; 8280 private static readonly pb::FieldCodec<float> _repeated_unpackedFloat_codec 8281 = pb::FieldCodec.ForFloat(805); 8282 private readonly pbc::RepeatedField<float> unpackedFloat_ = new pbc::RepeatedField<float>(); 8283 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 8284 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 8285 public pbc::RepeatedField<float> UnpackedFloat { 8286 get { return unpackedFloat_; } 8287 } 8288 8289 /// <summary>Field number for the "unpacked_double" field.</summary> 8290 public const int UnpackedDoubleFieldNumber = 101; 8291 private static readonly pb::FieldCodec<double> _repeated_unpackedDouble_codec 8292 = pb::FieldCodec.ForDouble(809); 8293 private readonly pbc::RepeatedField<double> unpackedDouble_ = new pbc::RepeatedField<double>(); 8294 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 8295 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 8296 public pbc::RepeatedField<double> UnpackedDouble { 8297 get { return unpackedDouble_; } 8298 } 8299 8300 /// <summary>Field number for the "unpacked_bool" field.</summary> 8301 public const int UnpackedBoolFieldNumber = 102; 8302 private static readonly pb::FieldCodec<bool> _repeated_unpackedBool_codec 8303 = pb::FieldCodec.ForBool(816); 8304 private readonly pbc::RepeatedField<bool> unpackedBool_ = new pbc::RepeatedField<bool>(); 8305 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 8306 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 8307 public pbc::RepeatedField<bool> UnpackedBool { 8308 get { return unpackedBool_; } 8309 } 8310 8311 /// <summary>Field number for the "unpacked_enum" field.</summary> 8312 public const int UnpackedEnumFieldNumber = 103; 8313 private static readonly pb::FieldCodec<global::Google.Protobuf.TestProtos.ForeignEnum> _repeated_unpackedEnum_codec 8314 = pb::FieldCodec.ForEnum(824, x => (int) x, x => (global::Google.Protobuf.TestProtos.ForeignEnum) x); 8315 private readonly pbc::RepeatedField<global::Google.Protobuf.TestProtos.ForeignEnum> unpackedEnum_ = new pbc::RepeatedField<global::Google.Protobuf.TestProtos.ForeignEnum>(); 8316 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 8317 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 8318 public pbc::RepeatedField<global::Google.Protobuf.TestProtos.ForeignEnum> UnpackedEnum { 8319 get { return unpackedEnum_; } 8320 } 8321 8322 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 8323 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] Equals(object other)8324 public override bool Equals(object other) { 8325 return Equals(other as TestUnpackedTypes); 8326 } 8327 8328 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 8329 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] Equals(TestUnpackedTypes other)8330 public bool Equals(TestUnpackedTypes other) { 8331 if (ReferenceEquals(other, null)) { 8332 return false; 8333 } 8334 if (ReferenceEquals(other, this)) { 8335 return true; 8336 } 8337 if(!unpackedInt32_.Equals(other.unpackedInt32_)) return false; 8338 if(!unpackedInt64_.Equals(other.unpackedInt64_)) return false; 8339 if(!unpackedUint32_.Equals(other.unpackedUint32_)) return false; 8340 if(!unpackedUint64_.Equals(other.unpackedUint64_)) return false; 8341 if(!unpackedSint32_.Equals(other.unpackedSint32_)) return false; 8342 if(!unpackedSint64_.Equals(other.unpackedSint64_)) return false; 8343 if(!unpackedFixed32_.Equals(other.unpackedFixed32_)) return false; 8344 if(!unpackedFixed64_.Equals(other.unpackedFixed64_)) return false; 8345 if(!unpackedSfixed32_.Equals(other.unpackedSfixed32_)) return false; 8346 if(!unpackedSfixed64_.Equals(other.unpackedSfixed64_)) return false; 8347 if(!unpackedFloat_.Equals(other.unpackedFloat_)) return false; 8348 if(!unpackedDouble_.Equals(other.unpackedDouble_)) return false; 8349 if(!unpackedBool_.Equals(other.unpackedBool_)) return false; 8350 if(!unpackedEnum_.Equals(other.unpackedEnum_)) return false; 8351 return Equals(_unknownFields, other._unknownFields); 8352 } 8353 8354 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 8355 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] GetHashCode()8356 public override int GetHashCode() { 8357 int hash = 1; 8358 hash ^= unpackedInt32_.GetHashCode(); 8359 hash ^= unpackedInt64_.GetHashCode(); 8360 hash ^= unpackedUint32_.GetHashCode(); 8361 hash ^= unpackedUint64_.GetHashCode(); 8362 hash ^= unpackedSint32_.GetHashCode(); 8363 hash ^= unpackedSint64_.GetHashCode(); 8364 hash ^= unpackedFixed32_.GetHashCode(); 8365 hash ^= unpackedFixed64_.GetHashCode(); 8366 hash ^= unpackedSfixed32_.GetHashCode(); 8367 hash ^= unpackedSfixed64_.GetHashCode(); 8368 hash ^= unpackedFloat_.GetHashCode(); 8369 hash ^= unpackedDouble_.GetHashCode(); 8370 hash ^= unpackedBool_.GetHashCode(); 8371 hash ^= unpackedEnum_.GetHashCode(); 8372 if (_unknownFields != null) { 8373 hash ^= _unknownFields.GetHashCode(); 8374 } 8375 return hash; 8376 } 8377 8378 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 8379 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] ToString()8380 public override string ToString() { 8381 return pb::JsonFormatter.ToDiagnosticString(this); 8382 } 8383 8384 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 8385 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] WriteTo(pb::CodedOutputStream output)8386 public void WriteTo(pb::CodedOutputStream output) { 8387 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 8388 output.WriteRawMessage(this); 8389 #else 8390 unpackedInt32_.WriteTo(output, _repeated_unpackedInt32_codec); 8391 unpackedInt64_.WriteTo(output, _repeated_unpackedInt64_codec); 8392 unpackedUint32_.WriteTo(output, _repeated_unpackedUint32_codec); 8393 unpackedUint64_.WriteTo(output, _repeated_unpackedUint64_codec); 8394 unpackedSint32_.WriteTo(output, _repeated_unpackedSint32_codec); 8395 unpackedSint64_.WriteTo(output, _repeated_unpackedSint64_codec); 8396 unpackedFixed32_.WriteTo(output, _repeated_unpackedFixed32_codec); 8397 unpackedFixed64_.WriteTo(output, _repeated_unpackedFixed64_codec); 8398 unpackedSfixed32_.WriteTo(output, _repeated_unpackedSfixed32_codec); 8399 unpackedSfixed64_.WriteTo(output, _repeated_unpackedSfixed64_codec); 8400 unpackedFloat_.WriteTo(output, _repeated_unpackedFloat_codec); 8401 unpackedDouble_.WriteTo(output, _repeated_unpackedDouble_codec); 8402 unpackedBool_.WriteTo(output, _repeated_unpackedBool_codec); 8403 unpackedEnum_.WriteTo(output, _repeated_unpackedEnum_codec); 8404 if (_unknownFields != null) { 8405 _unknownFields.WriteTo(output); 8406 } 8407 #endif 8408 } 8409 8410 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 8411 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 8412 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] IBufferMessage.InternalWriteTo(ref pb::WriteContext output)8413 void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { 8414 unpackedInt32_.WriteTo(ref output, _repeated_unpackedInt32_codec); 8415 unpackedInt64_.WriteTo(ref output, _repeated_unpackedInt64_codec); 8416 unpackedUint32_.WriteTo(ref output, _repeated_unpackedUint32_codec); 8417 unpackedUint64_.WriteTo(ref output, _repeated_unpackedUint64_codec); 8418 unpackedSint32_.WriteTo(ref output, _repeated_unpackedSint32_codec); 8419 unpackedSint64_.WriteTo(ref output, _repeated_unpackedSint64_codec); 8420 unpackedFixed32_.WriteTo(ref output, _repeated_unpackedFixed32_codec); 8421 unpackedFixed64_.WriteTo(ref output, _repeated_unpackedFixed64_codec); 8422 unpackedSfixed32_.WriteTo(ref output, _repeated_unpackedSfixed32_codec); 8423 unpackedSfixed64_.WriteTo(ref output, _repeated_unpackedSfixed64_codec); 8424 unpackedFloat_.WriteTo(ref output, _repeated_unpackedFloat_codec); 8425 unpackedDouble_.WriteTo(ref output, _repeated_unpackedDouble_codec); 8426 unpackedBool_.WriteTo(ref output, _repeated_unpackedBool_codec); 8427 unpackedEnum_.WriteTo(ref output, _repeated_unpackedEnum_codec); 8428 if (_unknownFields != null) { 8429 _unknownFields.WriteTo(ref output); 8430 } 8431 } 8432 #endif 8433 8434 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 8435 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] CalculateSize()8436 public int CalculateSize() { 8437 int size = 0; 8438 size += unpackedInt32_.CalculateSize(_repeated_unpackedInt32_codec); 8439 size += unpackedInt64_.CalculateSize(_repeated_unpackedInt64_codec); 8440 size += unpackedUint32_.CalculateSize(_repeated_unpackedUint32_codec); 8441 size += unpackedUint64_.CalculateSize(_repeated_unpackedUint64_codec); 8442 size += unpackedSint32_.CalculateSize(_repeated_unpackedSint32_codec); 8443 size += unpackedSint64_.CalculateSize(_repeated_unpackedSint64_codec); 8444 size += unpackedFixed32_.CalculateSize(_repeated_unpackedFixed32_codec); 8445 size += unpackedFixed64_.CalculateSize(_repeated_unpackedFixed64_codec); 8446 size += unpackedSfixed32_.CalculateSize(_repeated_unpackedSfixed32_codec); 8447 size += unpackedSfixed64_.CalculateSize(_repeated_unpackedSfixed64_codec); 8448 size += unpackedFloat_.CalculateSize(_repeated_unpackedFloat_codec); 8449 size += unpackedDouble_.CalculateSize(_repeated_unpackedDouble_codec); 8450 size += unpackedBool_.CalculateSize(_repeated_unpackedBool_codec); 8451 size += unpackedEnum_.CalculateSize(_repeated_unpackedEnum_codec); 8452 if (_unknownFields != null) { 8453 size += _unknownFields.CalculateSize(); 8454 } 8455 return size; 8456 } 8457 8458 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 8459 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] MergeFrom(TestUnpackedTypes other)8460 public void MergeFrom(TestUnpackedTypes other) { 8461 if (other == null) { 8462 return; 8463 } 8464 unpackedInt32_.Add(other.unpackedInt32_); 8465 unpackedInt64_.Add(other.unpackedInt64_); 8466 unpackedUint32_.Add(other.unpackedUint32_); 8467 unpackedUint64_.Add(other.unpackedUint64_); 8468 unpackedSint32_.Add(other.unpackedSint32_); 8469 unpackedSint64_.Add(other.unpackedSint64_); 8470 unpackedFixed32_.Add(other.unpackedFixed32_); 8471 unpackedFixed64_.Add(other.unpackedFixed64_); 8472 unpackedSfixed32_.Add(other.unpackedSfixed32_); 8473 unpackedSfixed64_.Add(other.unpackedSfixed64_); 8474 unpackedFloat_.Add(other.unpackedFloat_); 8475 unpackedDouble_.Add(other.unpackedDouble_); 8476 unpackedBool_.Add(other.unpackedBool_); 8477 unpackedEnum_.Add(other.unpackedEnum_); 8478 _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); 8479 } 8480 8481 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 8482 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] MergeFrom(pb::CodedInputStream input)8483 public void MergeFrom(pb::CodedInputStream input) { 8484 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 8485 input.ReadRawMessage(this); 8486 #else 8487 uint tag; 8488 while ((tag = input.ReadTag()) != 0) { 8489 switch(tag) { 8490 default: 8491 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); 8492 break; 8493 case 722: 8494 case 720: { 8495 unpackedInt32_.AddEntriesFrom(input, _repeated_unpackedInt32_codec); 8496 break; 8497 } 8498 case 730: 8499 case 728: { 8500 unpackedInt64_.AddEntriesFrom(input, _repeated_unpackedInt64_codec); 8501 break; 8502 } 8503 case 738: 8504 case 736: { 8505 unpackedUint32_.AddEntriesFrom(input, _repeated_unpackedUint32_codec); 8506 break; 8507 } 8508 case 746: 8509 case 744: { 8510 unpackedUint64_.AddEntriesFrom(input, _repeated_unpackedUint64_codec); 8511 break; 8512 } 8513 case 754: 8514 case 752: { 8515 unpackedSint32_.AddEntriesFrom(input, _repeated_unpackedSint32_codec); 8516 break; 8517 } 8518 case 762: 8519 case 760: { 8520 unpackedSint64_.AddEntriesFrom(input, _repeated_unpackedSint64_codec); 8521 break; 8522 } 8523 case 770: 8524 case 773: { 8525 unpackedFixed32_.AddEntriesFrom(input, _repeated_unpackedFixed32_codec); 8526 break; 8527 } 8528 case 778: 8529 case 777: { 8530 unpackedFixed64_.AddEntriesFrom(input, _repeated_unpackedFixed64_codec); 8531 break; 8532 } 8533 case 786: 8534 case 789: { 8535 unpackedSfixed32_.AddEntriesFrom(input, _repeated_unpackedSfixed32_codec); 8536 break; 8537 } 8538 case 794: 8539 case 793: { 8540 unpackedSfixed64_.AddEntriesFrom(input, _repeated_unpackedSfixed64_codec); 8541 break; 8542 } 8543 case 802: 8544 case 805: { 8545 unpackedFloat_.AddEntriesFrom(input, _repeated_unpackedFloat_codec); 8546 break; 8547 } 8548 case 810: 8549 case 809: { 8550 unpackedDouble_.AddEntriesFrom(input, _repeated_unpackedDouble_codec); 8551 break; 8552 } 8553 case 818: 8554 case 816: { 8555 unpackedBool_.AddEntriesFrom(input, _repeated_unpackedBool_codec); 8556 break; 8557 } 8558 case 826: 8559 case 824: { 8560 unpackedEnum_.AddEntriesFrom(input, _repeated_unpackedEnum_codec); 8561 break; 8562 } 8563 } 8564 } 8565 #endif 8566 } 8567 8568 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 8569 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 8570 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] IBufferMessage.InternalMergeFrom(ref pb::ParseContext input)8571 void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { 8572 uint tag; 8573 while ((tag = input.ReadTag()) != 0) { 8574 switch(tag) { 8575 default: 8576 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); 8577 break; 8578 case 722: 8579 case 720: { 8580 unpackedInt32_.AddEntriesFrom(ref input, _repeated_unpackedInt32_codec); 8581 break; 8582 } 8583 case 730: 8584 case 728: { 8585 unpackedInt64_.AddEntriesFrom(ref input, _repeated_unpackedInt64_codec); 8586 break; 8587 } 8588 case 738: 8589 case 736: { 8590 unpackedUint32_.AddEntriesFrom(ref input, _repeated_unpackedUint32_codec); 8591 break; 8592 } 8593 case 746: 8594 case 744: { 8595 unpackedUint64_.AddEntriesFrom(ref input, _repeated_unpackedUint64_codec); 8596 break; 8597 } 8598 case 754: 8599 case 752: { 8600 unpackedSint32_.AddEntriesFrom(ref input, _repeated_unpackedSint32_codec); 8601 break; 8602 } 8603 case 762: 8604 case 760: { 8605 unpackedSint64_.AddEntriesFrom(ref input, _repeated_unpackedSint64_codec); 8606 break; 8607 } 8608 case 770: 8609 case 773: { 8610 unpackedFixed32_.AddEntriesFrom(ref input, _repeated_unpackedFixed32_codec); 8611 break; 8612 } 8613 case 778: 8614 case 777: { 8615 unpackedFixed64_.AddEntriesFrom(ref input, _repeated_unpackedFixed64_codec); 8616 break; 8617 } 8618 case 786: 8619 case 789: { 8620 unpackedSfixed32_.AddEntriesFrom(ref input, _repeated_unpackedSfixed32_codec); 8621 break; 8622 } 8623 case 794: 8624 case 793: { 8625 unpackedSfixed64_.AddEntriesFrom(ref input, _repeated_unpackedSfixed64_codec); 8626 break; 8627 } 8628 case 802: 8629 case 805: { 8630 unpackedFloat_.AddEntriesFrom(ref input, _repeated_unpackedFloat_codec); 8631 break; 8632 } 8633 case 810: 8634 case 809: { 8635 unpackedDouble_.AddEntriesFrom(ref input, _repeated_unpackedDouble_codec); 8636 break; 8637 } 8638 case 818: 8639 case 816: { 8640 unpackedBool_.AddEntriesFrom(ref input, _repeated_unpackedBool_codec); 8641 break; 8642 } 8643 case 826: 8644 case 824: { 8645 unpackedEnum_.AddEntriesFrom(ref input, _repeated_unpackedEnum_codec); 8646 break; 8647 } 8648 } 8649 } 8650 } 8651 #endif 8652 8653 } 8654 8655 public sealed partial class TestRepeatedScalarDifferentTagSizes : pb::IMessage<TestRepeatedScalarDifferentTagSizes> 8656 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 8657 , pb::IBufferMessage 8658 #endif 8659 { 8660 private static readonly pb::MessageParser<TestRepeatedScalarDifferentTagSizes> _parser = new pb::MessageParser<TestRepeatedScalarDifferentTagSizes>(() => new TestRepeatedScalarDifferentTagSizes()); 8661 private pb::UnknownFieldSet _unknownFields; 8662 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 8663 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 8664 public static pb::MessageParser<TestRepeatedScalarDifferentTagSizes> Parser { get { return _parser; } } 8665 8666 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 8667 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 8668 public static pbr::MessageDescriptor Descriptor { 8669 get { return global::Google.Protobuf.TestProtos.UnittestProto3Reflection.Descriptor.MessageTypes[26]; } 8670 } 8671 8672 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 8673 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 8674 pbr::MessageDescriptor pb::IMessage.Descriptor { 8675 get { return Descriptor; } 8676 } 8677 8678 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 8679 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] TestRepeatedScalarDifferentTagSizes()8680 public TestRepeatedScalarDifferentTagSizes() { 8681 OnConstruction(); 8682 } 8683 OnConstruction()8684 partial void OnConstruction(); 8685 8686 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 8687 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] TestRepeatedScalarDifferentTagSizes(TestRepeatedScalarDifferentTagSizes other)8688 public TestRepeatedScalarDifferentTagSizes(TestRepeatedScalarDifferentTagSizes other) : this() { 8689 repeatedFixed32_ = other.repeatedFixed32_.Clone(); 8690 repeatedInt32_ = other.repeatedInt32_.Clone(); 8691 repeatedFixed64_ = other.repeatedFixed64_.Clone(); 8692 repeatedInt64_ = other.repeatedInt64_.Clone(); 8693 repeatedFloat_ = other.repeatedFloat_.Clone(); 8694 repeatedUint64_ = other.repeatedUint64_.Clone(); 8695 _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); 8696 } 8697 8698 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 8699 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] Clone()8700 public TestRepeatedScalarDifferentTagSizes Clone() { 8701 return new TestRepeatedScalarDifferentTagSizes(this); 8702 } 8703 8704 /// <summary>Field number for the "repeated_fixed32" field.</summary> 8705 public const int RepeatedFixed32FieldNumber = 12; 8706 private static readonly pb::FieldCodec<uint> _repeated_repeatedFixed32_codec 8707 = pb::FieldCodec.ForFixed32(98); 8708 private readonly pbc::RepeatedField<uint> repeatedFixed32_ = new pbc::RepeatedField<uint>(); 8709 /// <summary> 8710 /// Parsing repeated fixed size values used to fail. This message needs to be 8711 /// used in order to get a tag of the right size; all of the repeated fields 8712 /// in TestAllTypes didn't trigger the check. 8713 /// </summary> 8714 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 8715 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 8716 public pbc::RepeatedField<uint> RepeatedFixed32 { 8717 get { return repeatedFixed32_; } 8718 } 8719 8720 /// <summary>Field number for the "repeated_int32" field.</summary> 8721 public const int RepeatedInt32FieldNumber = 13; 8722 private static readonly pb::FieldCodec<int> _repeated_repeatedInt32_codec 8723 = pb::FieldCodec.ForInt32(106); 8724 private readonly pbc::RepeatedField<int> repeatedInt32_ = new pbc::RepeatedField<int>(); 8725 /// <summary> 8726 /// Check for a varint type, just for good measure. 8727 /// </summary> 8728 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 8729 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 8730 public pbc::RepeatedField<int> RepeatedInt32 { 8731 get { return repeatedInt32_; } 8732 } 8733 8734 /// <summary>Field number for the "repeated_fixed64" field.</summary> 8735 public const int RepeatedFixed64FieldNumber = 2046; 8736 private static readonly pb::FieldCodec<ulong> _repeated_repeatedFixed64_codec 8737 = pb::FieldCodec.ForFixed64(16370); 8738 private readonly pbc::RepeatedField<ulong> repeatedFixed64_ = new pbc::RepeatedField<ulong>(); 8739 /// <summary> 8740 /// These have two-byte tags. 8741 /// </summary> 8742 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 8743 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 8744 public pbc::RepeatedField<ulong> RepeatedFixed64 { 8745 get { return repeatedFixed64_; } 8746 } 8747 8748 /// <summary>Field number for the "repeated_int64" field.</summary> 8749 public const int RepeatedInt64FieldNumber = 2047; 8750 private static readonly pb::FieldCodec<long> _repeated_repeatedInt64_codec 8751 = pb::FieldCodec.ForInt64(16378); 8752 private readonly pbc::RepeatedField<long> repeatedInt64_ = new pbc::RepeatedField<long>(); 8753 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 8754 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 8755 public pbc::RepeatedField<long> RepeatedInt64 { 8756 get { return repeatedInt64_; } 8757 } 8758 8759 /// <summary>Field number for the "repeated_float" field.</summary> 8760 public const int RepeatedFloatFieldNumber = 262142; 8761 private static readonly pb::FieldCodec<float> _repeated_repeatedFloat_codec 8762 = pb::FieldCodec.ForFloat(2097138); 8763 private readonly pbc::RepeatedField<float> repeatedFloat_ = new pbc::RepeatedField<float>(); 8764 /// <summary> 8765 /// Three byte tags. 8766 /// </summary> 8767 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 8768 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 8769 public pbc::RepeatedField<float> RepeatedFloat { 8770 get { return repeatedFloat_; } 8771 } 8772 8773 /// <summary>Field number for the "repeated_uint64" field.</summary> 8774 public const int RepeatedUint64FieldNumber = 262143; 8775 private static readonly pb::FieldCodec<ulong> _repeated_repeatedUint64_codec 8776 = pb::FieldCodec.ForUInt64(2097146); 8777 private readonly pbc::RepeatedField<ulong> repeatedUint64_ = new pbc::RepeatedField<ulong>(); 8778 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 8779 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 8780 public pbc::RepeatedField<ulong> RepeatedUint64 { 8781 get { return repeatedUint64_; } 8782 } 8783 8784 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 8785 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] Equals(object other)8786 public override bool Equals(object other) { 8787 return Equals(other as TestRepeatedScalarDifferentTagSizes); 8788 } 8789 8790 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 8791 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] Equals(TestRepeatedScalarDifferentTagSizes other)8792 public bool Equals(TestRepeatedScalarDifferentTagSizes other) { 8793 if (ReferenceEquals(other, null)) { 8794 return false; 8795 } 8796 if (ReferenceEquals(other, this)) { 8797 return true; 8798 } 8799 if(!repeatedFixed32_.Equals(other.repeatedFixed32_)) return false; 8800 if(!repeatedInt32_.Equals(other.repeatedInt32_)) return false; 8801 if(!repeatedFixed64_.Equals(other.repeatedFixed64_)) return false; 8802 if(!repeatedInt64_.Equals(other.repeatedInt64_)) return false; 8803 if(!repeatedFloat_.Equals(other.repeatedFloat_)) return false; 8804 if(!repeatedUint64_.Equals(other.repeatedUint64_)) return false; 8805 return Equals(_unknownFields, other._unknownFields); 8806 } 8807 8808 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 8809 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] GetHashCode()8810 public override int GetHashCode() { 8811 int hash = 1; 8812 hash ^= repeatedFixed32_.GetHashCode(); 8813 hash ^= repeatedInt32_.GetHashCode(); 8814 hash ^= repeatedFixed64_.GetHashCode(); 8815 hash ^= repeatedInt64_.GetHashCode(); 8816 hash ^= repeatedFloat_.GetHashCode(); 8817 hash ^= repeatedUint64_.GetHashCode(); 8818 if (_unknownFields != null) { 8819 hash ^= _unknownFields.GetHashCode(); 8820 } 8821 return hash; 8822 } 8823 8824 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 8825 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] ToString()8826 public override string ToString() { 8827 return pb::JsonFormatter.ToDiagnosticString(this); 8828 } 8829 8830 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 8831 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] WriteTo(pb::CodedOutputStream output)8832 public void WriteTo(pb::CodedOutputStream output) { 8833 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 8834 output.WriteRawMessage(this); 8835 #else 8836 repeatedFixed32_.WriteTo(output, _repeated_repeatedFixed32_codec); 8837 repeatedInt32_.WriteTo(output, _repeated_repeatedInt32_codec); 8838 repeatedFixed64_.WriteTo(output, _repeated_repeatedFixed64_codec); 8839 repeatedInt64_.WriteTo(output, _repeated_repeatedInt64_codec); 8840 repeatedFloat_.WriteTo(output, _repeated_repeatedFloat_codec); 8841 repeatedUint64_.WriteTo(output, _repeated_repeatedUint64_codec); 8842 if (_unknownFields != null) { 8843 _unknownFields.WriteTo(output); 8844 } 8845 #endif 8846 } 8847 8848 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 8849 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 8850 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] IBufferMessage.InternalWriteTo(ref pb::WriteContext output)8851 void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { 8852 repeatedFixed32_.WriteTo(ref output, _repeated_repeatedFixed32_codec); 8853 repeatedInt32_.WriteTo(ref output, _repeated_repeatedInt32_codec); 8854 repeatedFixed64_.WriteTo(ref output, _repeated_repeatedFixed64_codec); 8855 repeatedInt64_.WriteTo(ref output, _repeated_repeatedInt64_codec); 8856 repeatedFloat_.WriteTo(ref output, _repeated_repeatedFloat_codec); 8857 repeatedUint64_.WriteTo(ref output, _repeated_repeatedUint64_codec); 8858 if (_unknownFields != null) { 8859 _unknownFields.WriteTo(ref output); 8860 } 8861 } 8862 #endif 8863 8864 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 8865 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] CalculateSize()8866 public int CalculateSize() { 8867 int size = 0; 8868 size += repeatedFixed32_.CalculateSize(_repeated_repeatedFixed32_codec); 8869 size += repeatedInt32_.CalculateSize(_repeated_repeatedInt32_codec); 8870 size += repeatedFixed64_.CalculateSize(_repeated_repeatedFixed64_codec); 8871 size += repeatedInt64_.CalculateSize(_repeated_repeatedInt64_codec); 8872 size += repeatedFloat_.CalculateSize(_repeated_repeatedFloat_codec); 8873 size += repeatedUint64_.CalculateSize(_repeated_repeatedUint64_codec); 8874 if (_unknownFields != null) { 8875 size += _unknownFields.CalculateSize(); 8876 } 8877 return size; 8878 } 8879 8880 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 8881 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] MergeFrom(TestRepeatedScalarDifferentTagSizes other)8882 public void MergeFrom(TestRepeatedScalarDifferentTagSizes other) { 8883 if (other == null) { 8884 return; 8885 } 8886 repeatedFixed32_.Add(other.repeatedFixed32_); 8887 repeatedInt32_.Add(other.repeatedInt32_); 8888 repeatedFixed64_.Add(other.repeatedFixed64_); 8889 repeatedInt64_.Add(other.repeatedInt64_); 8890 repeatedFloat_.Add(other.repeatedFloat_); 8891 repeatedUint64_.Add(other.repeatedUint64_); 8892 _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); 8893 } 8894 8895 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 8896 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] MergeFrom(pb::CodedInputStream input)8897 public void MergeFrom(pb::CodedInputStream input) { 8898 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 8899 input.ReadRawMessage(this); 8900 #else 8901 uint tag; 8902 while ((tag = input.ReadTag()) != 0) { 8903 switch(tag) { 8904 default: 8905 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); 8906 break; 8907 case 98: 8908 case 101: { 8909 repeatedFixed32_.AddEntriesFrom(input, _repeated_repeatedFixed32_codec); 8910 break; 8911 } 8912 case 106: 8913 case 104: { 8914 repeatedInt32_.AddEntriesFrom(input, _repeated_repeatedInt32_codec); 8915 break; 8916 } 8917 case 16370: 8918 case 16369: { 8919 repeatedFixed64_.AddEntriesFrom(input, _repeated_repeatedFixed64_codec); 8920 break; 8921 } 8922 case 16378: 8923 case 16376: { 8924 repeatedInt64_.AddEntriesFrom(input, _repeated_repeatedInt64_codec); 8925 break; 8926 } 8927 case 2097138: 8928 case 2097141: { 8929 repeatedFloat_.AddEntriesFrom(input, _repeated_repeatedFloat_codec); 8930 break; 8931 } 8932 case 2097146: 8933 case 2097144: { 8934 repeatedUint64_.AddEntriesFrom(input, _repeated_repeatedUint64_codec); 8935 break; 8936 } 8937 } 8938 } 8939 #endif 8940 } 8941 8942 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 8943 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 8944 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] IBufferMessage.InternalMergeFrom(ref pb::ParseContext input)8945 void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { 8946 uint tag; 8947 while ((tag = input.ReadTag()) != 0) { 8948 switch(tag) { 8949 default: 8950 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); 8951 break; 8952 case 98: 8953 case 101: { 8954 repeatedFixed32_.AddEntriesFrom(ref input, _repeated_repeatedFixed32_codec); 8955 break; 8956 } 8957 case 106: 8958 case 104: { 8959 repeatedInt32_.AddEntriesFrom(ref input, _repeated_repeatedInt32_codec); 8960 break; 8961 } 8962 case 16370: 8963 case 16369: { 8964 repeatedFixed64_.AddEntriesFrom(ref input, _repeated_repeatedFixed64_codec); 8965 break; 8966 } 8967 case 16378: 8968 case 16376: { 8969 repeatedInt64_.AddEntriesFrom(ref input, _repeated_repeatedInt64_codec); 8970 break; 8971 } 8972 case 2097138: 8973 case 2097141: { 8974 repeatedFloat_.AddEntriesFrom(ref input, _repeated_repeatedFloat_codec); 8975 break; 8976 } 8977 case 2097146: 8978 case 2097144: { 8979 repeatedUint64_.AddEntriesFrom(ref input, _repeated_repeatedUint64_codec); 8980 break; 8981 } 8982 } 8983 } 8984 } 8985 #endif 8986 8987 } 8988 8989 public sealed partial class TestCommentInjectionMessage : pb::IMessage<TestCommentInjectionMessage> 8990 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 8991 , pb::IBufferMessage 8992 #endif 8993 { 8994 private static readonly pb::MessageParser<TestCommentInjectionMessage> _parser = new pb::MessageParser<TestCommentInjectionMessage>(() => new TestCommentInjectionMessage()); 8995 private pb::UnknownFieldSet _unknownFields; 8996 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 8997 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 8998 public static pb::MessageParser<TestCommentInjectionMessage> Parser { get { return _parser; } } 8999 9000 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 9001 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 9002 public static pbr::MessageDescriptor Descriptor { 9003 get { return global::Google.Protobuf.TestProtos.UnittestProto3Reflection.Descriptor.MessageTypes[27]; } 9004 } 9005 9006 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 9007 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 9008 pbr::MessageDescriptor pb::IMessage.Descriptor { 9009 get { return Descriptor; } 9010 } 9011 9012 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 9013 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] TestCommentInjectionMessage()9014 public TestCommentInjectionMessage() { 9015 OnConstruction(); 9016 } 9017 OnConstruction()9018 partial void OnConstruction(); 9019 9020 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 9021 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] TestCommentInjectionMessage(TestCommentInjectionMessage other)9022 public TestCommentInjectionMessage(TestCommentInjectionMessage other) : this() { 9023 a_ = other.a_; 9024 _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); 9025 } 9026 9027 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 9028 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] Clone()9029 public TestCommentInjectionMessage Clone() { 9030 return new TestCommentInjectionMessage(this); 9031 } 9032 9033 /// <summary>Field number for the "a" field.</summary> 9034 public const int AFieldNumber = 1; 9035 private string a_ = ""; 9036 /// <summary> 9037 /// */ <- This should not close the generated doc comment 9038 /// </summary> 9039 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 9040 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 9041 public string A { 9042 get { return a_; } 9043 set { 9044 a_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); 9045 } 9046 } 9047 9048 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 9049 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] Equals(object other)9050 public override bool Equals(object other) { 9051 return Equals(other as TestCommentInjectionMessage); 9052 } 9053 9054 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 9055 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] Equals(TestCommentInjectionMessage other)9056 public bool Equals(TestCommentInjectionMessage other) { 9057 if (ReferenceEquals(other, null)) { 9058 return false; 9059 } 9060 if (ReferenceEquals(other, this)) { 9061 return true; 9062 } 9063 if (A != other.A) return false; 9064 return Equals(_unknownFields, other._unknownFields); 9065 } 9066 9067 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 9068 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] GetHashCode()9069 public override int GetHashCode() { 9070 int hash = 1; 9071 if (A.Length != 0) hash ^= A.GetHashCode(); 9072 if (_unknownFields != null) { 9073 hash ^= _unknownFields.GetHashCode(); 9074 } 9075 return hash; 9076 } 9077 9078 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 9079 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] ToString()9080 public override string ToString() { 9081 return pb::JsonFormatter.ToDiagnosticString(this); 9082 } 9083 9084 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 9085 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] WriteTo(pb::CodedOutputStream output)9086 public void WriteTo(pb::CodedOutputStream output) { 9087 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 9088 output.WriteRawMessage(this); 9089 #else 9090 if (A.Length != 0) { 9091 output.WriteRawTag(10); 9092 output.WriteString(A); 9093 } 9094 if (_unknownFields != null) { 9095 _unknownFields.WriteTo(output); 9096 } 9097 #endif 9098 } 9099 9100 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 9101 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 9102 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] IBufferMessage.InternalWriteTo(ref pb::WriteContext output)9103 void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { 9104 if (A.Length != 0) { 9105 output.WriteRawTag(10); 9106 output.WriteString(A); 9107 } 9108 if (_unknownFields != null) { 9109 _unknownFields.WriteTo(ref output); 9110 } 9111 } 9112 #endif 9113 9114 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 9115 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] CalculateSize()9116 public int CalculateSize() { 9117 int size = 0; 9118 if (A.Length != 0) { 9119 size += 1 + pb::CodedOutputStream.ComputeStringSize(A); 9120 } 9121 if (_unknownFields != null) { 9122 size += _unknownFields.CalculateSize(); 9123 } 9124 return size; 9125 } 9126 9127 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 9128 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] MergeFrom(TestCommentInjectionMessage other)9129 public void MergeFrom(TestCommentInjectionMessage other) { 9130 if (other == null) { 9131 return; 9132 } 9133 if (other.A.Length != 0) { 9134 A = other.A; 9135 } 9136 _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); 9137 } 9138 9139 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 9140 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] MergeFrom(pb::CodedInputStream input)9141 public void MergeFrom(pb::CodedInputStream input) { 9142 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 9143 input.ReadRawMessage(this); 9144 #else 9145 uint tag; 9146 while ((tag = input.ReadTag()) != 0) { 9147 switch(tag) { 9148 default: 9149 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); 9150 break; 9151 case 10: { 9152 A = input.ReadString(); 9153 break; 9154 } 9155 } 9156 } 9157 #endif 9158 } 9159 9160 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 9161 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 9162 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] IBufferMessage.InternalMergeFrom(ref pb::ParseContext input)9163 void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { 9164 uint tag; 9165 while ((tag = input.ReadTag()) != 0) { 9166 switch(tag) { 9167 default: 9168 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); 9169 break; 9170 case 10: { 9171 A = input.ReadString(); 9172 break; 9173 } 9174 } 9175 } 9176 } 9177 #endif 9178 9179 } 9180 9181 /// <summary> 9182 /// Test that RPC services work. 9183 /// </summary> 9184 public sealed partial class FooRequest : pb::IMessage<FooRequest> 9185 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 9186 , pb::IBufferMessage 9187 #endif 9188 { 9189 private static readonly pb::MessageParser<FooRequest> _parser = new pb::MessageParser<FooRequest>(() => new FooRequest()); 9190 private pb::UnknownFieldSet _unknownFields; 9191 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 9192 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 9193 public static pb::MessageParser<FooRequest> Parser { get { return _parser; } } 9194 9195 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 9196 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 9197 public static pbr::MessageDescriptor Descriptor { 9198 get { return global::Google.Protobuf.TestProtos.UnittestProto3Reflection.Descriptor.MessageTypes[28]; } 9199 } 9200 9201 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 9202 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 9203 pbr::MessageDescriptor pb::IMessage.Descriptor { 9204 get { return Descriptor; } 9205 } 9206 9207 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 9208 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] FooRequest()9209 public FooRequest() { 9210 OnConstruction(); 9211 } 9212 OnConstruction()9213 partial void OnConstruction(); 9214 9215 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 9216 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] FooRequest(FooRequest other)9217 public FooRequest(FooRequest other) : this() { 9218 _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); 9219 } 9220 9221 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 9222 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] Clone()9223 public FooRequest Clone() { 9224 return new FooRequest(this); 9225 } 9226 9227 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 9228 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] Equals(object other)9229 public override bool Equals(object other) { 9230 return Equals(other as FooRequest); 9231 } 9232 9233 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 9234 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] Equals(FooRequest other)9235 public bool Equals(FooRequest other) { 9236 if (ReferenceEquals(other, null)) { 9237 return false; 9238 } 9239 if (ReferenceEquals(other, this)) { 9240 return true; 9241 } 9242 return Equals(_unknownFields, other._unknownFields); 9243 } 9244 9245 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 9246 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] GetHashCode()9247 public override int GetHashCode() { 9248 int hash = 1; 9249 if (_unknownFields != null) { 9250 hash ^= _unknownFields.GetHashCode(); 9251 } 9252 return hash; 9253 } 9254 9255 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 9256 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] ToString()9257 public override string ToString() { 9258 return pb::JsonFormatter.ToDiagnosticString(this); 9259 } 9260 9261 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 9262 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] WriteTo(pb::CodedOutputStream output)9263 public void WriteTo(pb::CodedOutputStream output) { 9264 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 9265 output.WriteRawMessage(this); 9266 #else 9267 if (_unknownFields != null) { 9268 _unknownFields.WriteTo(output); 9269 } 9270 #endif 9271 } 9272 9273 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 9274 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 9275 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] IBufferMessage.InternalWriteTo(ref pb::WriteContext output)9276 void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { 9277 if (_unknownFields != null) { 9278 _unknownFields.WriteTo(ref output); 9279 } 9280 } 9281 #endif 9282 9283 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 9284 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] CalculateSize()9285 public int CalculateSize() { 9286 int size = 0; 9287 if (_unknownFields != null) { 9288 size += _unknownFields.CalculateSize(); 9289 } 9290 return size; 9291 } 9292 9293 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 9294 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] MergeFrom(FooRequest other)9295 public void MergeFrom(FooRequest other) { 9296 if (other == null) { 9297 return; 9298 } 9299 _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); 9300 } 9301 9302 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 9303 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] MergeFrom(pb::CodedInputStream input)9304 public void MergeFrom(pb::CodedInputStream input) { 9305 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 9306 input.ReadRawMessage(this); 9307 #else 9308 uint tag; 9309 while ((tag = input.ReadTag()) != 0) { 9310 switch(tag) { 9311 default: 9312 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); 9313 break; 9314 } 9315 } 9316 #endif 9317 } 9318 9319 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 9320 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 9321 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] IBufferMessage.InternalMergeFrom(ref pb::ParseContext input)9322 void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { 9323 uint tag; 9324 while ((tag = input.ReadTag()) != 0) { 9325 switch(tag) { 9326 default: 9327 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); 9328 break; 9329 } 9330 } 9331 } 9332 #endif 9333 9334 } 9335 9336 public sealed partial class FooResponse : pb::IMessage<FooResponse> 9337 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 9338 , pb::IBufferMessage 9339 #endif 9340 { 9341 private static readonly pb::MessageParser<FooResponse> _parser = new pb::MessageParser<FooResponse>(() => new FooResponse()); 9342 private pb::UnknownFieldSet _unknownFields; 9343 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 9344 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 9345 public static pb::MessageParser<FooResponse> Parser { get { return _parser; } } 9346 9347 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 9348 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 9349 public static pbr::MessageDescriptor Descriptor { 9350 get { return global::Google.Protobuf.TestProtos.UnittestProto3Reflection.Descriptor.MessageTypes[29]; } 9351 } 9352 9353 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 9354 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 9355 pbr::MessageDescriptor pb::IMessage.Descriptor { 9356 get { return Descriptor; } 9357 } 9358 9359 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 9360 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] FooResponse()9361 public FooResponse() { 9362 OnConstruction(); 9363 } 9364 OnConstruction()9365 partial void OnConstruction(); 9366 9367 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 9368 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] FooResponse(FooResponse other)9369 public FooResponse(FooResponse other) : this() { 9370 _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); 9371 } 9372 9373 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 9374 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] Clone()9375 public FooResponse Clone() { 9376 return new FooResponse(this); 9377 } 9378 9379 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 9380 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] Equals(object other)9381 public override bool Equals(object other) { 9382 return Equals(other as FooResponse); 9383 } 9384 9385 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 9386 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] Equals(FooResponse other)9387 public bool Equals(FooResponse other) { 9388 if (ReferenceEquals(other, null)) { 9389 return false; 9390 } 9391 if (ReferenceEquals(other, this)) { 9392 return true; 9393 } 9394 return Equals(_unknownFields, other._unknownFields); 9395 } 9396 9397 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 9398 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] GetHashCode()9399 public override int GetHashCode() { 9400 int hash = 1; 9401 if (_unknownFields != null) { 9402 hash ^= _unknownFields.GetHashCode(); 9403 } 9404 return hash; 9405 } 9406 9407 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 9408 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] ToString()9409 public override string ToString() { 9410 return pb::JsonFormatter.ToDiagnosticString(this); 9411 } 9412 9413 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 9414 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] WriteTo(pb::CodedOutputStream output)9415 public void WriteTo(pb::CodedOutputStream output) { 9416 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 9417 output.WriteRawMessage(this); 9418 #else 9419 if (_unknownFields != null) { 9420 _unknownFields.WriteTo(output); 9421 } 9422 #endif 9423 } 9424 9425 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 9426 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 9427 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] IBufferMessage.InternalWriteTo(ref pb::WriteContext output)9428 void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { 9429 if (_unknownFields != null) { 9430 _unknownFields.WriteTo(ref output); 9431 } 9432 } 9433 #endif 9434 9435 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 9436 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] CalculateSize()9437 public int CalculateSize() { 9438 int size = 0; 9439 if (_unknownFields != null) { 9440 size += _unknownFields.CalculateSize(); 9441 } 9442 return size; 9443 } 9444 9445 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 9446 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] MergeFrom(FooResponse other)9447 public void MergeFrom(FooResponse other) { 9448 if (other == null) { 9449 return; 9450 } 9451 _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); 9452 } 9453 9454 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 9455 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] MergeFrom(pb::CodedInputStream input)9456 public void MergeFrom(pb::CodedInputStream input) { 9457 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 9458 input.ReadRawMessage(this); 9459 #else 9460 uint tag; 9461 while ((tag = input.ReadTag()) != 0) { 9462 switch(tag) { 9463 default: 9464 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); 9465 break; 9466 } 9467 } 9468 #endif 9469 } 9470 9471 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 9472 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 9473 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] IBufferMessage.InternalMergeFrom(ref pb::ParseContext input)9474 void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { 9475 uint tag; 9476 while ((tag = input.ReadTag()) != 0) { 9477 switch(tag) { 9478 default: 9479 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); 9480 break; 9481 } 9482 } 9483 } 9484 #endif 9485 9486 } 9487 9488 public sealed partial class FooClientMessage : pb::IMessage<FooClientMessage> 9489 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 9490 , pb::IBufferMessage 9491 #endif 9492 { 9493 private static readonly pb::MessageParser<FooClientMessage> _parser = new pb::MessageParser<FooClientMessage>(() => new FooClientMessage()); 9494 private pb::UnknownFieldSet _unknownFields; 9495 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 9496 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 9497 public static pb::MessageParser<FooClientMessage> Parser { get { return _parser; } } 9498 9499 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 9500 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 9501 public static pbr::MessageDescriptor Descriptor { 9502 get { return global::Google.Protobuf.TestProtos.UnittestProto3Reflection.Descriptor.MessageTypes[30]; } 9503 } 9504 9505 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 9506 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 9507 pbr::MessageDescriptor pb::IMessage.Descriptor { 9508 get { return Descriptor; } 9509 } 9510 9511 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 9512 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] FooClientMessage()9513 public FooClientMessage() { 9514 OnConstruction(); 9515 } 9516 OnConstruction()9517 partial void OnConstruction(); 9518 9519 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 9520 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] FooClientMessage(FooClientMessage other)9521 public FooClientMessage(FooClientMessage other) : this() { 9522 _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); 9523 } 9524 9525 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 9526 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] Clone()9527 public FooClientMessage Clone() { 9528 return new FooClientMessage(this); 9529 } 9530 9531 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 9532 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] Equals(object other)9533 public override bool Equals(object other) { 9534 return Equals(other as FooClientMessage); 9535 } 9536 9537 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 9538 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] Equals(FooClientMessage other)9539 public bool Equals(FooClientMessage other) { 9540 if (ReferenceEquals(other, null)) { 9541 return false; 9542 } 9543 if (ReferenceEquals(other, this)) { 9544 return true; 9545 } 9546 return Equals(_unknownFields, other._unknownFields); 9547 } 9548 9549 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 9550 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] GetHashCode()9551 public override int GetHashCode() { 9552 int hash = 1; 9553 if (_unknownFields != null) { 9554 hash ^= _unknownFields.GetHashCode(); 9555 } 9556 return hash; 9557 } 9558 9559 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 9560 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] ToString()9561 public override string ToString() { 9562 return pb::JsonFormatter.ToDiagnosticString(this); 9563 } 9564 9565 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 9566 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] WriteTo(pb::CodedOutputStream output)9567 public void WriteTo(pb::CodedOutputStream output) { 9568 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 9569 output.WriteRawMessage(this); 9570 #else 9571 if (_unknownFields != null) { 9572 _unknownFields.WriteTo(output); 9573 } 9574 #endif 9575 } 9576 9577 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 9578 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 9579 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] IBufferMessage.InternalWriteTo(ref pb::WriteContext output)9580 void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { 9581 if (_unknownFields != null) { 9582 _unknownFields.WriteTo(ref output); 9583 } 9584 } 9585 #endif 9586 9587 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 9588 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] CalculateSize()9589 public int CalculateSize() { 9590 int size = 0; 9591 if (_unknownFields != null) { 9592 size += _unknownFields.CalculateSize(); 9593 } 9594 return size; 9595 } 9596 9597 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 9598 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] MergeFrom(FooClientMessage other)9599 public void MergeFrom(FooClientMessage other) { 9600 if (other == null) { 9601 return; 9602 } 9603 _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); 9604 } 9605 9606 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 9607 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] MergeFrom(pb::CodedInputStream input)9608 public void MergeFrom(pb::CodedInputStream input) { 9609 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 9610 input.ReadRawMessage(this); 9611 #else 9612 uint tag; 9613 while ((tag = input.ReadTag()) != 0) { 9614 switch(tag) { 9615 default: 9616 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); 9617 break; 9618 } 9619 } 9620 #endif 9621 } 9622 9623 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 9624 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 9625 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] IBufferMessage.InternalMergeFrom(ref pb::ParseContext input)9626 void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { 9627 uint tag; 9628 while ((tag = input.ReadTag()) != 0) { 9629 switch(tag) { 9630 default: 9631 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); 9632 break; 9633 } 9634 } 9635 } 9636 #endif 9637 9638 } 9639 9640 public sealed partial class FooServerMessage : pb::IMessage<FooServerMessage> 9641 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 9642 , pb::IBufferMessage 9643 #endif 9644 { 9645 private static readonly pb::MessageParser<FooServerMessage> _parser = new pb::MessageParser<FooServerMessage>(() => new FooServerMessage()); 9646 private pb::UnknownFieldSet _unknownFields; 9647 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 9648 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 9649 public static pb::MessageParser<FooServerMessage> Parser { get { return _parser; } } 9650 9651 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 9652 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 9653 public static pbr::MessageDescriptor Descriptor { 9654 get { return global::Google.Protobuf.TestProtos.UnittestProto3Reflection.Descriptor.MessageTypes[31]; } 9655 } 9656 9657 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 9658 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 9659 pbr::MessageDescriptor pb::IMessage.Descriptor { 9660 get { return Descriptor; } 9661 } 9662 9663 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 9664 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] FooServerMessage()9665 public FooServerMessage() { 9666 OnConstruction(); 9667 } 9668 OnConstruction()9669 partial void OnConstruction(); 9670 9671 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 9672 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] FooServerMessage(FooServerMessage other)9673 public FooServerMessage(FooServerMessage other) : this() { 9674 _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); 9675 } 9676 9677 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 9678 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] Clone()9679 public FooServerMessage Clone() { 9680 return new FooServerMessage(this); 9681 } 9682 9683 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 9684 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] Equals(object other)9685 public override bool Equals(object other) { 9686 return Equals(other as FooServerMessage); 9687 } 9688 9689 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 9690 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] Equals(FooServerMessage other)9691 public bool Equals(FooServerMessage other) { 9692 if (ReferenceEquals(other, null)) { 9693 return false; 9694 } 9695 if (ReferenceEquals(other, this)) { 9696 return true; 9697 } 9698 return Equals(_unknownFields, other._unknownFields); 9699 } 9700 9701 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 9702 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] GetHashCode()9703 public override int GetHashCode() { 9704 int hash = 1; 9705 if (_unknownFields != null) { 9706 hash ^= _unknownFields.GetHashCode(); 9707 } 9708 return hash; 9709 } 9710 9711 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 9712 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] ToString()9713 public override string ToString() { 9714 return pb::JsonFormatter.ToDiagnosticString(this); 9715 } 9716 9717 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 9718 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] WriteTo(pb::CodedOutputStream output)9719 public void WriteTo(pb::CodedOutputStream output) { 9720 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 9721 output.WriteRawMessage(this); 9722 #else 9723 if (_unknownFields != null) { 9724 _unknownFields.WriteTo(output); 9725 } 9726 #endif 9727 } 9728 9729 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 9730 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 9731 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] IBufferMessage.InternalWriteTo(ref pb::WriteContext output)9732 void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { 9733 if (_unknownFields != null) { 9734 _unknownFields.WriteTo(ref output); 9735 } 9736 } 9737 #endif 9738 9739 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 9740 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] CalculateSize()9741 public int CalculateSize() { 9742 int size = 0; 9743 if (_unknownFields != null) { 9744 size += _unknownFields.CalculateSize(); 9745 } 9746 return size; 9747 } 9748 9749 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 9750 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] MergeFrom(FooServerMessage other)9751 public void MergeFrom(FooServerMessage other) { 9752 if (other == null) { 9753 return; 9754 } 9755 _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); 9756 } 9757 9758 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 9759 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] MergeFrom(pb::CodedInputStream input)9760 public void MergeFrom(pb::CodedInputStream input) { 9761 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 9762 input.ReadRawMessage(this); 9763 #else 9764 uint tag; 9765 while ((tag = input.ReadTag()) != 0) { 9766 switch(tag) { 9767 default: 9768 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); 9769 break; 9770 } 9771 } 9772 #endif 9773 } 9774 9775 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 9776 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 9777 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] IBufferMessage.InternalMergeFrom(ref pb::ParseContext input)9778 void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { 9779 uint tag; 9780 while ((tag = input.ReadTag()) != 0) { 9781 switch(tag) { 9782 default: 9783 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); 9784 break; 9785 } 9786 } 9787 } 9788 #endif 9789 9790 } 9791 9792 public sealed partial class BarRequest : pb::IMessage<BarRequest> 9793 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 9794 , pb::IBufferMessage 9795 #endif 9796 { 9797 private static readonly pb::MessageParser<BarRequest> _parser = new pb::MessageParser<BarRequest>(() => new BarRequest()); 9798 private pb::UnknownFieldSet _unknownFields; 9799 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 9800 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 9801 public static pb::MessageParser<BarRequest> Parser { get { return _parser; } } 9802 9803 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 9804 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 9805 public static pbr::MessageDescriptor Descriptor { 9806 get { return global::Google.Protobuf.TestProtos.UnittestProto3Reflection.Descriptor.MessageTypes[32]; } 9807 } 9808 9809 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 9810 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 9811 pbr::MessageDescriptor pb::IMessage.Descriptor { 9812 get { return Descriptor; } 9813 } 9814 9815 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 9816 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] BarRequest()9817 public BarRequest() { 9818 OnConstruction(); 9819 } 9820 OnConstruction()9821 partial void OnConstruction(); 9822 9823 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 9824 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] BarRequest(BarRequest other)9825 public BarRequest(BarRequest other) : this() { 9826 _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); 9827 } 9828 9829 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 9830 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] Clone()9831 public BarRequest Clone() { 9832 return new BarRequest(this); 9833 } 9834 9835 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 9836 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] Equals(object other)9837 public override bool Equals(object other) { 9838 return Equals(other as BarRequest); 9839 } 9840 9841 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 9842 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] Equals(BarRequest other)9843 public bool Equals(BarRequest other) { 9844 if (ReferenceEquals(other, null)) { 9845 return false; 9846 } 9847 if (ReferenceEquals(other, this)) { 9848 return true; 9849 } 9850 return Equals(_unknownFields, other._unknownFields); 9851 } 9852 9853 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 9854 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] GetHashCode()9855 public override int GetHashCode() { 9856 int hash = 1; 9857 if (_unknownFields != null) { 9858 hash ^= _unknownFields.GetHashCode(); 9859 } 9860 return hash; 9861 } 9862 9863 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 9864 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] ToString()9865 public override string ToString() { 9866 return pb::JsonFormatter.ToDiagnosticString(this); 9867 } 9868 9869 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 9870 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] WriteTo(pb::CodedOutputStream output)9871 public void WriteTo(pb::CodedOutputStream output) { 9872 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 9873 output.WriteRawMessage(this); 9874 #else 9875 if (_unknownFields != null) { 9876 _unknownFields.WriteTo(output); 9877 } 9878 #endif 9879 } 9880 9881 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 9882 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 9883 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] IBufferMessage.InternalWriteTo(ref pb::WriteContext output)9884 void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { 9885 if (_unknownFields != null) { 9886 _unknownFields.WriteTo(ref output); 9887 } 9888 } 9889 #endif 9890 9891 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 9892 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] CalculateSize()9893 public int CalculateSize() { 9894 int size = 0; 9895 if (_unknownFields != null) { 9896 size += _unknownFields.CalculateSize(); 9897 } 9898 return size; 9899 } 9900 9901 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 9902 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] MergeFrom(BarRequest other)9903 public void MergeFrom(BarRequest other) { 9904 if (other == null) { 9905 return; 9906 } 9907 _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); 9908 } 9909 9910 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 9911 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] MergeFrom(pb::CodedInputStream input)9912 public void MergeFrom(pb::CodedInputStream input) { 9913 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 9914 input.ReadRawMessage(this); 9915 #else 9916 uint tag; 9917 while ((tag = input.ReadTag()) != 0) { 9918 switch(tag) { 9919 default: 9920 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); 9921 break; 9922 } 9923 } 9924 #endif 9925 } 9926 9927 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 9928 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 9929 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] IBufferMessage.InternalMergeFrom(ref pb::ParseContext input)9930 void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { 9931 uint tag; 9932 while ((tag = input.ReadTag()) != 0) { 9933 switch(tag) { 9934 default: 9935 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); 9936 break; 9937 } 9938 } 9939 } 9940 #endif 9941 9942 } 9943 9944 public sealed partial class BarResponse : pb::IMessage<BarResponse> 9945 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 9946 , pb::IBufferMessage 9947 #endif 9948 { 9949 private static readonly pb::MessageParser<BarResponse> _parser = new pb::MessageParser<BarResponse>(() => new BarResponse()); 9950 private pb::UnknownFieldSet _unknownFields; 9951 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 9952 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 9953 public static pb::MessageParser<BarResponse> Parser { get { return _parser; } } 9954 9955 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 9956 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 9957 public static pbr::MessageDescriptor Descriptor { 9958 get { return global::Google.Protobuf.TestProtos.UnittestProto3Reflection.Descriptor.MessageTypes[33]; } 9959 } 9960 9961 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 9962 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 9963 pbr::MessageDescriptor pb::IMessage.Descriptor { 9964 get { return Descriptor; } 9965 } 9966 9967 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 9968 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] BarResponse()9969 public BarResponse() { 9970 OnConstruction(); 9971 } 9972 OnConstruction()9973 partial void OnConstruction(); 9974 9975 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 9976 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] BarResponse(BarResponse other)9977 public BarResponse(BarResponse other) : this() { 9978 _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); 9979 } 9980 9981 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 9982 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] Clone()9983 public BarResponse Clone() { 9984 return new BarResponse(this); 9985 } 9986 9987 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 9988 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] Equals(object other)9989 public override bool Equals(object other) { 9990 return Equals(other as BarResponse); 9991 } 9992 9993 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 9994 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] Equals(BarResponse other)9995 public bool Equals(BarResponse other) { 9996 if (ReferenceEquals(other, null)) { 9997 return false; 9998 } 9999 if (ReferenceEquals(other, this)) { 10000 return true; 10001 } 10002 return Equals(_unknownFields, other._unknownFields); 10003 } 10004 10005 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 10006 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] GetHashCode()10007 public override int GetHashCode() { 10008 int hash = 1; 10009 if (_unknownFields != null) { 10010 hash ^= _unknownFields.GetHashCode(); 10011 } 10012 return hash; 10013 } 10014 10015 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 10016 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] ToString()10017 public override string ToString() { 10018 return pb::JsonFormatter.ToDiagnosticString(this); 10019 } 10020 10021 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 10022 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] WriteTo(pb::CodedOutputStream output)10023 public void WriteTo(pb::CodedOutputStream output) { 10024 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 10025 output.WriteRawMessage(this); 10026 #else 10027 if (_unknownFields != null) { 10028 _unknownFields.WriteTo(output); 10029 } 10030 #endif 10031 } 10032 10033 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 10034 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 10035 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] IBufferMessage.InternalWriteTo(ref pb::WriteContext output)10036 void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { 10037 if (_unknownFields != null) { 10038 _unknownFields.WriteTo(ref output); 10039 } 10040 } 10041 #endif 10042 10043 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 10044 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] CalculateSize()10045 public int CalculateSize() { 10046 int size = 0; 10047 if (_unknownFields != null) { 10048 size += _unknownFields.CalculateSize(); 10049 } 10050 return size; 10051 } 10052 10053 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 10054 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] MergeFrom(BarResponse other)10055 public void MergeFrom(BarResponse other) { 10056 if (other == null) { 10057 return; 10058 } 10059 _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); 10060 } 10061 10062 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 10063 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] MergeFrom(pb::CodedInputStream input)10064 public void MergeFrom(pb::CodedInputStream input) { 10065 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 10066 input.ReadRawMessage(this); 10067 #else 10068 uint tag; 10069 while ((tag = input.ReadTag()) != 0) { 10070 switch(tag) { 10071 default: 10072 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); 10073 break; 10074 } 10075 } 10076 #endif 10077 } 10078 10079 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 10080 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 10081 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] IBufferMessage.InternalMergeFrom(ref pb::ParseContext input)10082 void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { 10083 uint tag; 10084 while ((tag = input.ReadTag()) != 0) { 10085 switch(tag) { 10086 default: 10087 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); 10088 break; 10089 } 10090 } 10091 } 10092 #endif 10093 10094 } 10095 10096 public sealed partial class TestEmptyMessage : pb::IMessage<TestEmptyMessage> 10097 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 10098 , pb::IBufferMessage 10099 #endif 10100 { 10101 private static readonly pb::MessageParser<TestEmptyMessage> _parser = new pb::MessageParser<TestEmptyMessage>(() => new TestEmptyMessage()); 10102 private pb::UnknownFieldSet _unknownFields; 10103 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 10104 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 10105 public static pb::MessageParser<TestEmptyMessage> Parser { get { return _parser; } } 10106 10107 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 10108 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 10109 public static pbr::MessageDescriptor Descriptor { 10110 get { return global::Google.Protobuf.TestProtos.UnittestProto3Reflection.Descriptor.MessageTypes[34]; } 10111 } 10112 10113 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 10114 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 10115 pbr::MessageDescriptor pb::IMessage.Descriptor { 10116 get { return Descriptor; } 10117 } 10118 10119 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 10120 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] TestEmptyMessage()10121 public TestEmptyMessage() { 10122 OnConstruction(); 10123 } 10124 OnConstruction()10125 partial void OnConstruction(); 10126 10127 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 10128 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] TestEmptyMessage(TestEmptyMessage other)10129 public TestEmptyMessage(TestEmptyMessage other) : this() { 10130 _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); 10131 } 10132 10133 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 10134 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] Clone()10135 public TestEmptyMessage Clone() { 10136 return new TestEmptyMessage(this); 10137 } 10138 10139 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 10140 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] Equals(object other)10141 public override bool Equals(object other) { 10142 return Equals(other as TestEmptyMessage); 10143 } 10144 10145 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 10146 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] Equals(TestEmptyMessage other)10147 public bool Equals(TestEmptyMessage other) { 10148 if (ReferenceEquals(other, null)) { 10149 return false; 10150 } 10151 if (ReferenceEquals(other, this)) { 10152 return true; 10153 } 10154 return Equals(_unknownFields, other._unknownFields); 10155 } 10156 10157 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 10158 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] GetHashCode()10159 public override int GetHashCode() { 10160 int hash = 1; 10161 if (_unknownFields != null) { 10162 hash ^= _unknownFields.GetHashCode(); 10163 } 10164 return hash; 10165 } 10166 10167 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 10168 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] ToString()10169 public override string ToString() { 10170 return pb::JsonFormatter.ToDiagnosticString(this); 10171 } 10172 10173 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 10174 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] WriteTo(pb::CodedOutputStream output)10175 public void WriteTo(pb::CodedOutputStream output) { 10176 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 10177 output.WriteRawMessage(this); 10178 #else 10179 if (_unknownFields != null) { 10180 _unknownFields.WriteTo(output); 10181 } 10182 #endif 10183 } 10184 10185 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 10186 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 10187 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] IBufferMessage.InternalWriteTo(ref pb::WriteContext output)10188 void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { 10189 if (_unknownFields != null) { 10190 _unknownFields.WriteTo(ref output); 10191 } 10192 } 10193 #endif 10194 10195 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 10196 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] CalculateSize()10197 public int CalculateSize() { 10198 int size = 0; 10199 if (_unknownFields != null) { 10200 size += _unknownFields.CalculateSize(); 10201 } 10202 return size; 10203 } 10204 10205 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 10206 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] MergeFrom(TestEmptyMessage other)10207 public void MergeFrom(TestEmptyMessage other) { 10208 if (other == null) { 10209 return; 10210 } 10211 _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); 10212 } 10213 10214 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 10215 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] MergeFrom(pb::CodedInputStream input)10216 public void MergeFrom(pb::CodedInputStream input) { 10217 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 10218 input.ReadRawMessage(this); 10219 #else 10220 uint tag; 10221 while ((tag = input.ReadTag()) != 0) { 10222 switch(tag) { 10223 default: 10224 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); 10225 break; 10226 } 10227 } 10228 #endif 10229 } 10230 10231 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 10232 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 10233 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] IBufferMessage.InternalMergeFrom(ref pb::ParseContext input)10234 void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { 10235 uint tag; 10236 while ((tag = input.ReadTag()) != 0) { 10237 switch(tag) { 10238 default: 10239 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); 10240 break; 10241 } 10242 } 10243 } 10244 #endif 10245 10246 } 10247 10248 /// <summary> 10249 /// This is a leading comment 10250 /// </summary> 10251 public sealed partial class CommentMessage : pb::IMessage<CommentMessage> 10252 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 10253 , pb::IBufferMessage 10254 #endif 10255 { 10256 private static readonly pb::MessageParser<CommentMessage> _parser = new pb::MessageParser<CommentMessage>(() => new CommentMessage()); 10257 private pb::UnknownFieldSet _unknownFields; 10258 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 10259 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 10260 public static pb::MessageParser<CommentMessage> Parser { get { return _parser; } } 10261 10262 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 10263 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 10264 public static pbr::MessageDescriptor Descriptor { 10265 get { return global::Google.Protobuf.TestProtos.UnittestProto3Reflection.Descriptor.MessageTypes[35]; } 10266 } 10267 10268 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 10269 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 10270 pbr::MessageDescriptor pb::IMessage.Descriptor { 10271 get { return Descriptor; } 10272 } 10273 10274 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 10275 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] CommentMessage()10276 public CommentMessage() { 10277 OnConstruction(); 10278 } 10279 OnConstruction()10280 partial void OnConstruction(); 10281 10282 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 10283 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] CommentMessage(CommentMessage other)10284 public CommentMessage(CommentMessage other) : this() { 10285 text_ = other.text_; 10286 _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); 10287 } 10288 10289 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 10290 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] Clone()10291 public CommentMessage Clone() { 10292 return new CommentMessage(this); 10293 } 10294 10295 /// <summary>Field number for the "text" field.</summary> 10296 public const int TextFieldNumber = 1; 10297 private string text_ = ""; 10298 /// <summary> 10299 /// Leading field comment 10300 /// </summary> 10301 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 10302 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 10303 public string Text { 10304 get { return text_; } 10305 set { 10306 text_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); 10307 } 10308 } 10309 10310 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 10311 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] Equals(object other)10312 public override bool Equals(object other) { 10313 return Equals(other as CommentMessage); 10314 } 10315 10316 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 10317 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] Equals(CommentMessage other)10318 public bool Equals(CommentMessage other) { 10319 if (ReferenceEquals(other, null)) { 10320 return false; 10321 } 10322 if (ReferenceEquals(other, this)) { 10323 return true; 10324 } 10325 if (Text != other.Text) return false; 10326 return Equals(_unknownFields, other._unknownFields); 10327 } 10328 10329 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 10330 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] GetHashCode()10331 public override int GetHashCode() { 10332 int hash = 1; 10333 if (Text.Length != 0) hash ^= Text.GetHashCode(); 10334 if (_unknownFields != null) { 10335 hash ^= _unknownFields.GetHashCode(); 10336 } 10337 return hash; 10338 } 10339 10340 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 10341 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] ToString()10342 public override string ToString() { 10343 return pb::JsonFormatter.ToDiagnosticString(this); 10344 } 10345 10346 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 10347 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] WriteTo(pb::CodedOutputStream output)10348 public void WriteTo(pb::CodedOutputStream output) { 10349 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 10350 output.WriteRawMessage(this); 10351 #else 10352 if (Text.Length != 0) { 10353 output.WriteRawTag(10); 10354 output.WriteString(Text); 10355 } 10356 if (_unknownFields != null) { 10357 _unknownFields.WriteTo(output); 10358 } 10359 #endif 10360 } 10361 10362 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 10363 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 10364 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] IBufferMessage.InternalWriteTo(ref pb::WriteContext output)10365 void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { 10366 if (Text.Length != 0) { 10367 output.WriteRawTag(10); 10368 output.WriteString(Text); 10369 } 10370 if (_unknownFields != null) { 10371 _unknownFields.WriteTo(ref output); 10372 } 10373 } 10374 #endif 10375 10376 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 10377 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] CalculateSize()10378 public int CalculateSize() { 10379 int size = 0; 10380 if (Text.Length != 0) { 10381 size += 1 + pb::CodedOutputStream.ComputeStringSize(Text); 10382 } 10383 if (_unknownFields != null) { 10384 size += _unknownFields.CalculateSize(); 10385 } 10386 return size; 10387 } 10388 10389 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 10390 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] MergeFrom(CommentMessage other)10391 public void MergeFrom(CommentMessage other) { 10392 if (other == null) { 10393 return; 10394 } 10395 if (other.Text.Length != 0) { 10396 Text = other.Text; 10397 } 10398 _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); 10399 } 10400 10401 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 10402 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] MergeFrom(pb::CodedInputStream input)10403 public void MergeFrom(pb::CodedInputStream input) { 10404 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 10405 input.ReadRawMessage(this); 10406 #else 10407 uint tag; 10408 while ((tag = input.ReadTag()) != 0) { 10409 switch(tag) { 10410 default: 10411 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); 10412 break; 10413 case 10: { 10414 Text = input.ReadString(); 10415 break; 10416 } 10417 } 10418 } 10419 #endif 10420 } 10421 10422 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 10423 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 10424 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] IBufferMessage.InternalMergeFrom(ref pb::ParseContext input)10425 void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { 10426 uint tag; 10427 while ((tag = input.ReadTag()) != 0) { 10428 switch(tag) { 10429 default: 10430 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); 10431 break; 10432 case 10: { 10433 Text = input.ReadString(); 10434 break; 10435 } 10436 } 10437 } 10438 } 10439 #endif 10440 10441 #region Nested types 10442 /// <summary>Container for nested types declared in the CommentMessage message type.</summary> 10443 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 10444 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 10445 public static partial class Types { 10446 /// <summary> 10447 /// Leading nested enum comment 10448 /// </summary> 10449 public enum NestedCommentEnum { 10450 /// <summary> 10451 /// Zero value comment 10452 /// </summary> 10453 [pbr::OriginalName("ZERO_VALUE")] ZeroValue = 0, 10454 } 10455 10456 /// <summary> 10457 /// Leading nested message comment 10458 /// </summary> 10459 public sealed partial class NestedCommentMessage : pb::IMessage<NestedCommentMessage> 10460 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 10461 , pb::IBufferMessage 10462 #endif 10463 { 10464 private static readonly pb::MessageParser<NestedCommentMessage> _parser = new pb::MessageParser<NestedCommentMessage>(() => new NestedCommentMessage()); 10465 private pb::UnknownFieldSet _unknownFields; 10466 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 10467 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 10468 public static pb::MessageParser<NestedCommentMessage> Parser { get { return _parser; } } 10469 10470 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 10471 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 10472 public static pbr::MessageDescriptor Descriptor { 10473 get { return global::Google.Protobuf.TestProtos.CommentMessage.Descriptor.NestedTypes[0]; } 10474 } 10475 10476 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 10477 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 10478 pbr::MessageDescriptor pb::IMessage.Descriptor { 10479 get { return Descriptor; } 10480 } 10481 10482 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 10483 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] NestedCommentMessage()10484 public NestedCommentMessage() { 10485 OnConstruction(); 10486 } 10487 OnConstruction()10488 partial void OnConstruction(); 10489 10490 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 10491 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] NestedCommentMessage(NestedCommentMessage other)10492 public NestedCommentMessage(NestedCommentMessage other) : this() { 10493 nestedText_ = other.nestedText_; 10494 _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); 10495 } 10496 10497 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 10498 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] Clone()10499 public NestedCommentMessage Clone() { 10500 return new NestedCommentMessage(this); 10501 } 10502 10503 /// <summary>Field number for the "nested_text" field.</summary> 10504 public const int NestedTextFieldNumber = 1; 10505 private string nestedText_ = ""; 10506 /// <summary> 10507 /// Leading nested message field comment 10508 /// </summary> 10509 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 10510 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 10511 public string NestedText { 10512 get { return nestedText_; } 10513 set { 10514 nestedText_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); 10515 } 10516 } 10517 10518 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 10519 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] Equals(object other)10520 public override bool Equals(object other) { 10521 return Equals(other as NestedCommentMessage); 10522 } 10523 10524 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 10525 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] Equals(NestedCommentMessage other)10526 public bool Equals(NestedCommentMessage other) { 10527 if (ReferenceEquals(other, null)) { 10528 return false; 10529 } 10530 if (ReferenceEquals(other, this)) { 10531 return true; 10532 } 10533 if (NestedText != other.NestedText) return false; 10534 return Equals(_unknownFields, other._unknownFields); 10535 } 10536 10537 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 10538 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] GetHashCode()10539 public override int GetHashCode() { 10540 int hash = 1; 10541 if (NestedText.Length != 0) hash ^= NestedText.GetHashCode(); 10542 if (_unknownFields != null) { 10543 hash ^= _unknownFields.GetHashCode(); 10544 } 10545 return hash; 10546 } 10547 10548 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 10549 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] ToString()10550 public override string ToString() { 10551 return pb::JsonFormatter.ToDiagnosticString(this); 10552 } 10553 10554 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 10555 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] WriteTo(pb::CodedOutputStream output)10556 public void WriteTo(pb::CodedOutputStream output) { 10557 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 10558 output.WriteRawMessage(this); 10559 #else 10560 if (NestedText.Length != 0) { 10561 output.WriteRawTag(10); 10562 output.WriteString(NestedText); 10563 } 10564 if (_unknownFields != null) { 10565 _unknownFields.WriteTo(output); 10566 } 10567 #endif 10568 } 10569 10570 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 10571 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 10572 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] IBufferMessage.InternalWriteTo(ref pb::WriteContext output)10573 void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { 10574 if (NestedText.Length != 0) { 10575 output.WriteRawTag(10); 10576 output.WriteString(NestedText); 10577 } 10578 if (_unknownFields != null) { 10579 _unknownFields.WriteTo(ref output); 10580 } 10581 } 10582 #endif 10583 10584 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 10585 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] CalculateSize()10586 public int CalculateSize() { 10587 int size = 0; 10588 if (NestedText.Length != 0) { 10589 size += 1 + pb::CodedOutputStream.ComputeStringSize(NestedText); 10590 } 10591 if (_unknownFields != null) { 10592 size += _unknownFields.CalculateSize(); 10593 } 10594 return size; 10595 } 10596 10597 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 10598 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] MergeFrom(NestedCommentMessage other)10599 public void MergeFrom(NestedCommentMessage other) { 10600 if (other == null) { 10601 return; 10602 } 10603 if (other.NestedText.Length != 0) { 10604 NestedText = other.NestedText; 10605 } 10606 _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); 10607 } 10608 10609 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 10610 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] MergeFrom(pb::CodedInputStream input)10611 public void MergeFrom(pb::CodedInputStream input) { 10612 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 10613 input.ReadRawMessage(this); 10614 #else 10615 uint tag; 10616 while ((tag = input.ReadTag()) != 0) { 10617 switch(tag) { 10618 default: 10619 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); 10620 break; 10621 case 10: { 10622 NestedText = input.ReadString(); 10623 break; 10624 } 10625 } 10626 } 10627 #endif 10628 } 10629 10630 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 10631 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 10632 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] IBufferMessage.InternalMergeFrom(ref pb::ParseContext input)10633 void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { 10634 uint tag; 10635 while ((tag = input.ReadTag()) != 0) { 10636 switch(tag) { 10637 default: 10638 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); 10639 break; 10640 case 10: { 10641 NestedText = input.ReadString(); 10642 break; 10643 } 10644 } 10645 } 10646 } 10647 #endif 10648 10649 } 10650 10651 } 10652 #endregion 10653 10654 } 10655 10656 #endregion 10657 10658 } 10659 10660 #endregion Designer generated code 10661