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