Jon Skeet | 6803686 | 2008-10-22 13:30:34 +0100 | [diff] [blame] | 1 | // Generated by the protocol buffer compiler. DO NOT EDIT! |
| 2 | |
| 3 | using pb = global::Google.ProtocolBuffers; |
| 4 | using pbc = global::Google.ProtocolBuffers.Collections; |
| 5 | using pbd = global::Google.ProtocolBuffers.Descriptors; |
| 6 | using scg = global::System.Collections.Generic; |
| 7 | namespace Google.ProtocolBuffers.TestProtos { |
| 8 | |
| 9 | public static partial class UnitTestProtoFile { |
| 10 | |
| 11 | #region Descriptor |
| 12 | public static pbd::FileDescriptor Descriptor { |
| 13 | get { return descriptor; } |
| 14 | } |
| 15 | private static readonly pbd::FileDescriptor descriptor = pbd::FileDescriptor.InternalBuildGeneratedFileFrom( |
| 16 | global::System.Convert.FromBase64String( |
| 17 | "Ch5nb29nbGUvcHJvdG9idWYvdW5pdHRlc3QucHJvdG8SEXByb3RvYnVmX3Vu" + |
| 18 | "aXR0ZXN0GiRnb29nbGUvcHJvdG9idWYvY3NoYXJwX29wdGlvbnMucHJvdG8a" + |
| 19 | "IGdvb2dsZS9wcm90b2J1Zi9kZXNjcmlwdG9yLnByb3RvGiVnb29nbGUvcHJv" + |
| 20 | "dG9idWYvdW5pdHRlc3RfaW1wb3J0LnByb3RvIrsVCgxUZXN0QWxsVHlwZXMS" + |
| 21 | "FgoOb3B0aW9uYWxfaW50MzIYASABKAUSFgoOb3B0aW9uYWxfaW50NjQYAiAB" + |
| 22 | "KAMSFwoPb3B0aW9uYWxfdWludDMyGAMgASgNEhcKD29wdGlvbmFsX3VpbnQ2" + |
| 23 | "NBgEIAEoBBIXCg9vcHRpb25hbF9zaW50MzIYBSABKBESFwoPb3B0aW9uYWxf" + |
| 24 | "c2ludDY0GAYgASgSEhgKEG9wdGlvbmFsX2ZpeGVkMzIYByABKAcSGAoQb3B0" + |
| 25 | "aW9uYWxfZml4ZWQ2NBgIIAEoBhIZChFvcHRpb25hbF9zZml4ZWQzMhgJIAEo" + |
| 26 | "DxIZChFvcHRpb25hbF9zZml4ZWQ2NBgKIAEoEBIWCg5vcHRpb25hbF9mbG9h" + |
| 27 | "dBgLIAEoAhIXCg9vcHRpb25hbF9kb3VibGUYDCABKAESFQoNb3B0aW9uYWxf" + |
| 28 | "Ym9vbBgNIAEoCBIXCg9vcHRpb25hbF9zdHJpbmcYDiABKAkSFgoOb3B0aW9u" + |
| 29 | "YWxfYnl0ZXMYDyABKAwSRAoNb3B0aW9uYWxncm91cBgQIAEoCjItLnByb3Rv" + |
| 30 | "YnVmX3VuaXR0ZXN0LlRlc3RBbGxUeXBlcy5PcHRpb25hbEdyb3VwEk4KF29w" + |
| 31 | "dGlvbmFsX25lc3RlZF9tZXNzYWdlGBIgASgLMi0ucHJvdG9idWZfdW5pdHRl" + |
| 32 | "c3QuVGVzdEFsbFR5cGVzLk5lc3RlZE1lc3NhZ2USQwoYb3B0aW9uYWxfZm9y" + |
| 33 | "ZWlnbl9tZXNzYWdlGBMgASgLMiEucHJvdG9idWZfdW5pdHRlc3QuRm9yZWln" + |
| 34 | "bk1lc3NhZ2USSAoXb3B0aW9uYWxfaW1wb3J0X21lc3NhZ2UYFCABKAsyJy5w" + |
| 35 | "cm90b2J1Zl91bml0dGVzdF9pbXBvcnQuSW1wb3J0TWVzc2FnZRJIChRvcHRp" + |
| 36 | "b25hbF9uZXN0ZWRfZW51bRgVIAEoDjIqLnByb3RvYnVmX3VuaXR0ZXN0LlRl" + |
| 37 | "c3RBbGxUeXBlcy5OZXN0ZWRFbnVtEj0KFW9wdGlvbmFsX2ZvcmVpZ25fZW51" + |
| 38 | "bRgWIAEoDjIeLnByb3RvYnVmX3VuaXR0ZXN0LkZvcmVpZ25FbnVtEkIKFG9w" + |
| 39 | "dGlvbmFsX2ltcG9ydF9lbnVtGBcgASgOMiQucHJvdG9idWZfdW5pdHRlc3Rf" + |
| 40 | "aW1wb3J0LkltcG9ydEVudW0SIQoVb3B0aW9uYWxfc3RyaW5nX3BpZWNlGBgg" + |
| 41 | "ASgJQgIIAhIZCg1vcHRpb25hbF9jb3JkGBkgASgJQgIIARIWCg5yZXBlYXRl" + |
| 42 | "ZF9pbnQzMhgfIAMoBRIWCg5yZXBlYXRlZF9pbnQ2NBggIAMoAxIXCg9yZXBl" + |
| 43 | "YXRlZF91aW50MzIYISADKA0SFwoPcmVwZWF0ZWRfdWludDY0GCIgAygEEhcK" + |
| 44 | "D3JlcGVhdGVkX3NpbnQzMhgjIAMoERIXCg9yZXBlYXRlZF9zaW50NjQYJCAD" + |
| 45 | "KBISGAoQcmVwZWF0ZWRfZml4ZWQzMhglIAMoBxIYChByZXBlYXRlZF9maXhl" + |
| 46 | "ZDY0GCYgAygGEhkKEXJlcGVhdGVkX3NmaXhlZDMyGCcgAygPEhkKEXJlcGVh" + |
| 47 | "dGVkX3NmaXhlZDY0GCggAygQEhYKDnJlcGVhdGVkX2Zsb2F0GCkgAygCEhcK" + |
| 48 | "D3JlcGVhdGVkX2RvdWJsZRgqIAMoARIVCg1yZXBlYXRlZF9ib29sGCsgAygI" + |
| 49 | "EhcKD3JlcGVhdGVkX3N0cmluZxgsIAMoCRIWCg5yZXBlYXRlZF9ieXRlcxgt" + |
| 50 | "IAMoDBJECg1yZXBlYXRlZGdyb3VwGC4gAygKMi0ucHJvdG9idWZfdW5pdHRl" + |
| 51 | "c3QuVGVzdEFsbFR5cGVzLlJlcGVhdGVkR3JvdXASTgoXcmVwZWF0ZWRfbmVz" + |
| 52 | "dGVkX21lc3NhZ2UYMCADKAsyLS5wcm90b2J1Zl91bml0dGVzdC5UZXN0QWxs" + |
| 53 | "VHlwZXMuTmVzdGVkTWVzc2FnZRJDChhyZXBlYXRlZF9mb3JlaWduX21lc3Nh" + |
| 54 | "Z2UYMSADKAsyIS5wcm90b2J1Zl91bml0dGVzdC5Gb3JlaWduTWVzc2FnZRJI" + |
| 55 | "ChdyZXBlYXRlZF9pbXBvcnRfbWVzc2FnZRgyIAMoCzInLnByb3RvYnVmX3Vu" + |
| 56 | "aXR0ZXN0X2ltcG9ydC5JbXBvcnRNZXNzYWdlEkgKFHJlcGVhdGVkX25lc3Rl" + |
| 57 | "ZF9lbnVtGDMgAygOMioucHJvdG9idWZfdW5pdHRlc3QuVGVzdEFsbFR5cGVz" + |
| 58 | "Lk5lc3RlZEVudW0SPQoVcmVwZWF0ZWRfZm9yZWlnbl9lbnVtGDQgAygOMh4u" + |
| 59 | "cHJvdG9idWZfdW5pdHRlc3QuRm9yZWlnbkVudW0SQgoUcmVwZWF0ZWRfaW1w" + |
| 60 | "b3J0X2VudW0YNSADKA4yJC5wcm90b2J1Zl91bml0dGVzdF9pbXBvcnQuSW1w" + |
| 61 | "b3J0RW51bRIhChVyZXBlYXRlZF9zdHJpbmdfcGllY2UYNiADKAlCAggCEhkK" + |
| 62 | "DXJlcGVhdGVkX2NvcmQYNyADKAlCAggBEhkKDWRlZmF1bHRfaW50MzIYPSAB" + |
| 63 | "KAU6AjQxEhkKDWRlZmF1bHRfaW50NjQYPiABKAM6AjQyEhoKDmRlZmF1bHRf" + |
| 64 | "dWludDMyGD8gASgNOgI0MxIaCg5kZWZhdWx0X3VpbnQ2NBhAIAEoBDoCNDQS" + |
| 65 | "GwoOZGVmYXVsdF9zaW50MzIYQSABKBE6Ay00NRIaCg5kZWZhdWx0X3NpbnQ2" + |
| 66 | "NBhCIAEoEjoCNDYSGwoPZGVmYXVsdF9maXhlZDMyGEMgASgHOgI0NxIbCg9k" + |
| 67 | "ZWZhdWx0X2ZpeGVkNjQYRCABKAY6AjQ4EhwKEGRlZmF1bHRfc2ZpeGVkMzIY" + |
| 68 | "RSABKA86AjQ5Eh0KEGRlZmF1bHRfc2ZpeGVkNjQYRiABKBA6Ay01MBIbCg1k" + |
| 69 | "ZWZhdWx0X2Zsb2F0GEcgASgCOgQ1MS41Eh0KDmRlZmF1bHRfZG91YmxlGEgg" + |
| 70 | "ASgBOgU1MjAwMBIaCgxkZWZhdWx0X2Jvb2wYSSABKAg6BHRydWUSHQoOZGVm" + |
| 71 | "YXVsdF9zdHJpbmcYSiABKAk6BWhlbGxvEhwKDWRlZmF1bHRfYnl0ZXMYSyAB" + |
| 72 | "KAw6BXdvcmxkEkwKE2RlZmF1bHRfbmVzdGVkX2VudW0YUSABKA4yKi5wcm90" + |
| 73 | "b2J1Zl91bml0dGVzdC5UZXN0QWxsVHlwZXMuTmVzdGVkRW51bToDQkFSEkkK" + |
| 74 | "FGRlZmF1bHRfZm9yZWlnbl9lbnVtGFIgASgOMh4ucHJvdG9idWZfdW5pdHRl" + |
| 75 | "c3QuRm9yZWlnbkVudW06C0ZPUkVJR05fQkFSEk0KE2RlZmF1bHRfaW1wb3J0" + |
| 76 | "X2VudW0YUyABKA4yJC5wcm90b2J1Zl91bml0dGVzdF9pbXBvcnQuSW1wb3J0" + |
| 77 | "RW51bToKSU1QT1JUX0JBUhIlChRkZWZhdWx0X3N0cmluZ19waWVjZRhUIAEo" + |
| 78 | "CToDYWJjQgIIAhIdCgxkZWZhdWx0X2NvcmQYVSABKAk6AzEyM0ICCAEaGwoN" + |
| 79 | "TmVzdGVkTWVzc2FnZRIKCgJiYhgBIAEoBRoaCg1PcHRpb25hbEdyb3VwEgkK" + |
| 80 | "AWEYESABKAUaGgoNUmVwZWF0ZWRHcm91cBIJCgFhGC8gASgFIicKCk5lc3Rl" + |
| 81 | "ZEVudW0SBwoDRk9PEAESBwoDQkFSEAISBwoDQkFaEAMiGwoORm9yZWlnbk1l" + |
| 82 | "c3NhZ2USCQoBYxgBIAEoBSIdChFUZXN0QWxsRXh0ZW5zaW9ucyoICAEQgICA" + |
| 83 | "gAIiJAoXT3B0aW9uYWxHcm91cF9leHRlbnNpb24SCQoBYRgRIAEoBSIkChdS" + |
| 84 | "ZXBlYXRlZEdyb3VwX2V4dGVuc2lvbhIJCgFhGC8gASgFItUFCgxUZXN0UmVx" + |
| 85 | "dWlyZWQSCQoBYRgBIAIoBRIOCgZkdW1teTIYAiABKAUSCQoBYhgDIAIoBRIO" + |
| 86 | "CgZkdW1teTQYBCABKAUSDgoGZHVtbXk1GAUgASgFEg4KBmR1bW15NhgGIAEo" + |
| 87 | "BRIOCgZkdW1teTcYByABKAUSDgoGZHVtbXk4GAggASgFEg4KBmR1bW15ORgJ" + |
| 88 | "IAEoBRIPCgdkdW1teTEwGAogASgFEg8KB2R1bW15MTEYCyABKAUSDwoHZHVt" + |
| 89 | "bXkxMhgMIAEoBRIPCgdkdW1teTEzGA0gASgFEg8KB2R1bW15MTQYDiABKAUS" + |
| 90 | "DwoHZHVtbXkxNRgPIAEoBRIPCgdkdW1teTE2GBAgASgFEg8KB2R1bW15MTcY" + |
| 91 | "ESABKAUSDwoHZHVtbXkxOBgSIAEoBRIPCgdkdW1teTE5GBMgASgFEg8KB2R1" + |
| 92 | "bW15MjAYFCABKAUSDwoHZHVtbXkyMRgVIAEoBRIPCgdkdW1teTIyGBYgASgF" + |
| 93 | "Eg8KB2R1bW15MjMYFyABKAUSDwoHZHVtbXkyNBgYIAEoBRIPCgdkdW1teTI1" + |
| 94 | "GBkgASgFEg8KB2R1bW15MjYYGiABKAUSDwoHZHVtbXkyNxgbIAEoBRIPCgdk" + |
| 95 | "dW1teTI4GBwgASgFEg8KB2R1bW15MjkYHSABKAUSDwoHZHVtbXkzMBgeIAEo" + |
| 96 | "BRIPCgdkdW1teTMxGB8gASgFEg8KB2R1bW15MzIYICABKAUSCQoBYxghIAIo" + |
| 97 | "BTJWCgZzaW5nbGUSJC5wcm90b2J1Zl91bml0dGVzdC5UZXN0QWxsRXh0ZW5z" + |
| 98 | "aW9ucxjoByABKAsyHy5wcm90b2J1Zl91bml0dGVzdC5UZXN0UmVxdWlyZWQy" + |
| 99 | "VQoFbXVsdGkSJC5wcm90b2J1Zl91bml0dGVzdC5UZXN0QWxsRXh0ZW5zaW9u" + |
| 100 | "cxjpByADKAsyHy5wcm90b2J1Zl91bml0dGVzdC5UZXN0UmVxdWlyZWQimgEK" + |
| 101 | "E1Rlc3RSZXF1aXJlZEZvcmVpZ24SOQoQb3B0aW9uYWxfbWVzc2FnZRgBIAEo" + |
| 102 | "CzIfLnByb3RvYnVmX3VuaXR0ZXN0LlRlc3RSZXF1aXJlZBI5ChByZXBlYXRl" + |
| 103 | "ZF9tZXNzYWdlGAIgAygLMh8ucHJvdG9idWZfdW5pdHRlc3QuVGVzdFJlcXVp" + |
| 104 | "cmVkEg0KBWR1bW15GAMgASgFIloKEVRlc3RGb3JlaWduTmVzdGVkEkUKDmZv" + |
| 105 | "cmVpZ25fbmVzdGVkGAEgASgLMi0ucHJvdG9idWZfdW5pdHRlc3QuVGVzdEFs" + |
| 106 | "bFR5cGVzLk5lc3RlZE1lc3NhZ2UiEgoQVGVzdEVtcHR5TWVzc2FnZSIqCh5U" + |
| 107 | "ZXN0RW1wdHlNZXNzYWdlV2l0aEV4dGVuc2lvbnMqCAgBEICAgIACIjQKGFRl" + |
| 108 | "c3RSZWFsbHlMYXJnZVRhZ051bWJlchIJCgFhGAEgASgFEg0KAmJiGP///38g" + |
| 109 | "ASgFIlUKFFRlc3RSZWN1cnNpdmVNZXNzYWdlEjIKAWEYASABKAsyJy5wcm90" + |
| 110 | "b2J1Zl91bml0dGVzdC5UZXN0UmVjdXJzaXZlTWVzc2FnZRIJCgFpGAIgASgF" + |
| 111 | "IksKFFRlc3RNdXR1YWxSZWN1cnNpb25BEjMKAmJiGAEgASgLMicucHJvdG9i" + |
| 112 | "dWZfdW5pdHRlc3QuVGVzdE11dHVhbFJlY3Vyc2lvbkIiYgoUVGVzdE11dHVh" + |
| 113 | "bFJlY3Vyc2lvbkISMgoBYRgBIAEoCzInLnByb3RvYnVmX3VuaXR0ZXN0LlRl" + |
| 114 | "c3RNdXR1YWxSZWN1cnNpb25BEhYKDm9wdGlvbmFsX2ludDMyGAIgASgFIrMB" + |
| 115 | "ChJUZXN0RHVwRmllbGROdW1iZXISCQoBYRgBIAEoBRI2CgNmb28YAiABKAoy" + |
| 116 | "KS5wcm90b2J1Zl91bml0dGVzdC5UZXN0RHVwRmllbGROdW1iZXIuRm9vEjYK" + |
| 117 | "A2JhchgDIAEoCjIpLnByb3RvYnVmX3VuaXR0ZXN0LlRlc3REdXBGaWVsZE51" + |
| 118 | "bWJlci5CYXIaEAoDRm9vEgkKAWEYASABKAUaEAoDQmFyEgkKAWEYASABKAUi" + |
| 119 | "gAIKGFRlc3ROZXN0ZWRNZXNzYWdlSGFzQml0cxJaChdvcHRpb25hbF9uZXN0" + |
| 120 | "ZWRfbWVzc2FnZRgBIAEoCzI5LnByb3RvYnVmX3VuaXR0ZXN0LlRlc3ROZXN0" + |
| 121 | "ZWRNZXNzYWdlSGFzQml0cy5OZXN0ZWRNZXNzYWdlGocBCg1OZXN0ZWRNZXNz" + |
| 122 | "YWdlEiQKHG5lc3RlZG1lc3NhZ2VfcmVwZWF0ZWRfaW50MzIYASADKAUSUAol" + |
| 123 | "bmVzdGVkbWVzc2FnZV9yZXBlYXRlZF9mb3JlaWdubWVzc2FnZRgCIAMoCzIh" + |
| 124 | "LnByb3RvYnVmX3VuaXR0ZXN0LkZvcmVpZ25NZXNzYWdlIuUDChdUZXN0Q2Ft" + |
| 125 | "ZWxDYXNlRmllbGROYW1lcxIWCg5QcmltaXRpdmVGaWVsZBgBIAEoBRITCgtT" + |
| 126 | "dHJpbmdGaWVsZBgCIAEoCRIxCglFbnVtRmllbGQYAyABKA4yHi5wcm90b2J1" + |
| 127 | "Zl91bml0dGVzdC5Gb3JlaWduRW51bRI3CgxNZXNzYWdlRmllbGQYBCABKAsy" + |
| 128 | "IS5wcm90b2J1Zl91bml0dGVzdC5Gb3JlaWduTWVzc2FnZRIcChBTdHJpbmdQ" + |
| 129 | "aWVjZUZpZWxkGAUgASgJQgIIAhIVCglDb3JkRmllbGQYBiABKAlCAggBEh4K" + |
| 130 | "FlJlcGVhdGVkUHJpbWl0aXZlRmllbGQYByADKAUSGwoTUmVwZWF0ZWRTdHJp" + |
| 131 | "bmdGaWVsZBgIIAMoCRI5ChFSZXBlYXRlZEVudW1GaWVsZBgJIAMoDjIeLnBy" + |
| 132 | "b3RvYnVmX3VuaXR0ZXN0LkZvcmVpZ25FbnVtEj8KFFJlcGVhdGVkTWVzc2Fn" + |
| 133 | "ZUZpZWxkGAogAygLMiEucHJvdG9idWZfdW5pdHRlc3QuRm9yZWlnbk1lc3Nh" + |
| 134 | "Z2USJAoYUmVwZWF0ZWRTdHJpbmdQaWVjZUZpZWxkGAsgAygJQgIIAhIdChFS" + |
| 135 | "ZXBlYXRlZENvcmRGaWVsZBgMIAMoCUICCAEiVQoSVGVzdEZpZWxkT3JkZXJp" + |
| 136 | "bmdzEhEKCW15X3N0cmluZxgLIAEoCRIOCgZteV9pbnQYASABKAMSEAoIbXlf" + |
| 137 | "ZmxvYXQYZSABKAIqBAgCEAsqBAgMEGUikAIKGFRlc3RFeHRyZW1lRGVmYXVs" + |
| 138 | "dFZhbHVlcxI/Cg1lc2NhcGVkX2J5dGVzGAEgASgMOihcMDAwXDAwMVwwMDdc" + |
| 139 | "MDEwXDAxNFxuXHJcdFwwMTNcXFwnXCJcMzc2EiAKDGxhcmdlX3VpbnQzMhgC" + |
| 140 | "IAEoDToKNDI5NDk2NzI5NRIqCgxsYXJnZV91aW50NjQYAyABKAQ6FDE4NDQ2" + |
| 141 | "NzQ0MDczNzA5NTUxNjE1EiAKC3NtYWxsX2ludDMyGAQgASgFOgstMjE0NzQ4" + |
| 142 | "MzY0NxIpCgtzbWFsbF9pbnQ2NBgFIAEoAzoULTkyMjMzNzIwMzY4NTQ3NzU4" + |
| 143 | "MDcSGAoLdXRmOF9zdHJpbmcYBiABKAk6A+GItCIMCgpGb29SZXF1ZXN0Ig0K" + |
| 144 | "C0Zvb1Jlc3BvbnNlIgwKCkJhclJlcXVlc3QiDQoLQmFyUmVzcG9uc2UqQAoL" + |
| 145 | "Rm9yZWlnbkVudW0SDwoLRk9SRUlHTl9GT08QBBIPCgtGT1JFSUdOX0JBUhAF" + |
| 146 | "Eg8KC0ZPUkVJR05fQkFaEAYqRwoUVGVzdEVudW1XaXRoRHVwVmFsdWUSCAoE" + |
| 147 | "Rk9PMRABEggKBEJBUjEQAhIHCgNCQVoQAxIICgRGT08yEAESCAoEQkFSMhAC" + |
| 148 | "KokBCg5UZXN0U3BhcnNlRW51bRIMCghTUEFSU0VfQRB7Eg4KCFNQQVJTRV9C" + |
| 149 | "EKbnAxIPCghTUEFSU0VfQxCysYAGEhUKCFNQQVJTRV9EEPH//////////wES" + |
| 150 | "FQoIU1BBUlNFX0UQtN78////////ARIMCghTUEFSU0VfRhAAEgwKCFNQQVJT" + |
| 151 | "RV9HEAIymQEKC1Rlc3RTZXJ2aWNlEkQKA0ZvbxIdLnByb3RvYnVmX3VuaXR0" + |
| 152 | "ZXN0LkZvb1JlcXVlc3QaHi5wcm90b2J1Zl91bml0dGVzdC5Gb29SZXNwb25z" + |
| 153 | "ZRJECgNCYXISHS5wcm90b2J1Zl91bml0dGVzdC5CYXJSZXF1ZXN0Gh4ucHJv" + |
| 154 | "dG9idWZfdW5pdHRlc3QuQmFyUmVzcG9uc2U6RgoYb3B0aW9uYWxfaW50MzJf" + |
| 155 | "ZXh0ZW5zaW9uEiQucHJvdG9idWZfdW5pdHRlc3QuVGVzdEFsbEV4dGVuc2lv" + |
| 156 | "bnMYASABKAU6RgoYb3B0aW9uYWxfaW50NjRfZXh0ZW5zaW9uEiQucHJvdG9i" + |
| 157 | "dWZfdW5pdHRlc3QuVGVzdEFsbEV4dGVuc2lvbnMYAiABKAM6RwoZb3B0aW9u" + |
| 158 | "YWxfdWludDMyX2V4dGVuc2lvbhIkLnByb3RvYnVmX3VuaXR0ZXN0LlRlc3RB" + |
| 159 | "bGxFeHRlbnNpb25zGAMgASgNOkcKGW9wdGlvbmFsX3VpbnQ2NF9leHRlbnNp" + |
| 160 | "b24SJC5wcm90b2J1Zl91bml0dGVzdC5UZXN0QWxsRXh0ZW5zaW9ucxgEIAEo" + |
| 161 | "BDpHChlvcHRpb25hbF9zaW50MzJfZXh0ZW5zaW9uEiQucHJvdG9idWZfdW5p" + |
| 162 | "dHRlc3QuVGVzdEFsbEV4dGVuc2lvbnMYBSABKBE6RwoZb3B0aW9uYWxfc2lu" + |
| 163 | "dDY0X2V4dGVuc2lvbhIkLnByb3RvYnVmX3VuaXR0ZXN0LlRlc3RBbGxFeHRl" + |
| 164 | "bnNpb25zGAYgASgSOkgKGm9wdGlvbmFsX2ZpeGVkMzJfZXh0ZW5zaW9uEiQu" + |
| 165 | "cHJvdG9idWZfdW5pdHRlc3QuVGVzdEFsbEV4dGVuc2lvbnMYByABKAc6SAoa" + |
| 166 | "b3B0aW9uYWxfZml4ZWQ2NF9leHRlbnNpb24SJC5wcm90b2J1Zl91bml0dGVz" + |
| 167 | "dC5UZXN0QWxsRXh0ZW5zaW9ucxgIIAEoBjpJChtvcHRpb25hbF9zZml4ZWQz" + |
| 168 | "Ml9leHRlbnNpb24SJC5wcm90b2J1Zl91bml0dGVzdC5UZXN0QWxsRXh0ZW5z" + |
| 169 | "aW9ucxgJIAEoDzpJChtvcHRpb25hbF9zZml4ZWQ2NF9leHRlbnNpb24SJC5w" + |
| 170 | "cm90b2J1Zl91bml0dGVzdC5UZXN0QWxsRXh0ZW5zaW9ucxgKIAEoEDpGChhv" + |
| 171 | "cHRpb25hbF9mbG9hdF9leHRlbnNpb24SJC5wcm90b2J1Zl91bml0dGVzdC5U" + |
| 172 | "ZXN0QWxsRXh0ZW5zaW9ucxgLIAEoAjpHChlvcHRpb25hbF9kb3VibGVfZXh0" + |
| 173 | "ZW5zaW9uEiQucHJvdG9idWZfdW5pdHRlc3QuVGVzdEFsbEV4dGVuc2lvbnMY" + |
| 174 | "DCABKAE6RQoXb3B0aW9uYWxfYm9vbF9leHRlbnNpb24SJC5wcm90b2J1Zl91" + |
| 175 | "bml0dGVzdC5UZXN0QWxsRXh0ZW5zaW9ucxgNIAEoCDpHChlvcHRpb25hbF9z" + |
| 176 | "dHJpbmdfZXh0ZW5zaW9uEiQucHJvdG9idWZfdW5pdHRlc3QuVGVzdEFsbEV4" + |
| 177 | "dGVuc2lvbnMYDiABKAk6RgoYb3B0aW9uYWxfYnl0ZXNfZXh0ZW5zaW9uEiQu" + |
| 178 | "cHJvdG9idWZfdW5pdHRlc3QuVGVzdEFsbEV4dGVuc2lvbnMYDyABKAw6cQoX" + |
| 179 | "b3B0aW9uYWxncm91cF9leHRlbnNpb24SJC5wcm90b2J1Zl91bml0dGVzdC5U" + |
| 180 | "ZXN0QWxsRXh0ZW5zaW9ucxgQIAEoCjIqLnByb3RvYnVmX3VuaXR0ZXN0Lk9w" + |
| 181 | "dGlvbmFsR3JvdXBfZXh0ZW5zaW9uOn4KIW9wdGlvbmFsX25lc3RlZF9tZXNz" + |
| 182 | "YWdlX2V4dGVuc2lvbhIkLnByb3RvYnVmX3VuaXR0ZXN0LlRlc3RBbGxFeHRl" + |
| 183 | "bnNpb25zGBIgASgLMi0ucHJvdG9idWZfdW5pdHRlc3QuVGVzdEFsbFR5cGVz" + |
| 184 | "Lk5lc3RlZE1lc3NhZ2U6cwoib3B0aW9uYWxfZm9yZWlnbl9tZXNzYWdlX2V4" + |
| 185 | "dGVuc2lvbhIkLnByb3RvYnVmX3VuaXR0ZXN0LlRlc3RBbGxFeHRlbnNpb25z" + |
| 186 | "GBMgASgLMiEucHJvdG9idWZfdW5pdHRlc3QuRm9yZWlnbk1lc3NhZ2U6eAoh" + |
| 187 | "b3B0aW9uYWxfaW1wb3J0X21lc3NhZ2VfZXh0ZW5zaW9uEiQucHJvdG9idWZf" + |
| 188 | "dW5pdHRlc3QuVGVzdEFsbEV4dGVuc2lvbnMYFCABKAsyJy5wcm90b2J1Zl91" + |
| 189 | "bml0dGVzdF9pbXBvcnQuSW1wb3J0TWVzc2FnZTp4Ch5vcHRpb25hbF9uZXN0" + |
| 190 | "ZWRfZW51bV9leHRlbnNpb24SJC5wcm90b2J1Zl91bml0dGVzdC5UZXN0QWxs" + |
| 191 | "RXh0ZW5zaW9ucxgVIAEoDjIqLnByb3RvYnVmX3VuaXR0ZXN0LlRlc3RBbGxU" + |
| 192 | "eXBlcy5OZXN0ZWRFbnVtOm0KH29wdGlvbmFsX2ZvcmVpZ25fZW51bV9leHRl" + |
| 193 | "bnNpb24SJC5wcm90b2J1Zl91bml0dGVzdC5UZXN0QWxsRXh0ZW5zaW9ucxgW" + |
| 194 | "IAEoDjIeLnByb3RvYnVmX3VuaXR0ZXN0LkZvcmVpZ25FbnVtOnIKHm9wdGlv" + |
| 195 | "bmFsX2ltcG9ydF9lbnVtX2V4dGVuc2lvbhIkLnByb3RvYnVmX3VuaXR0ZXN0" + |
| 196 | "LlRlc3RBbGxFeHRlbnNpb25zGBcgASgOMiQucHJvdG9idWZfdW5pdHRlc3Rf" + |
| 197 | "aW1wb3J0LkltcG9ydEVudW06UQofb3B0aW9uYWxfc3RyaW5nX3BpZWNlX2V4" + |
| 198 | "dGVuc2lvbhIkLnByb3RvYnVmX3VuaXR0ZXN0LlRlc3RBbGxFeHRlbnNpb25z" + |
| 199 | "GBggASgJQgIIAjpJChdvcHRpb25hbF9jb3JkX2V4dGVuc2lvbhIkLnByb3Rv" + |
| 200 | "YnVmX3VuaXR0ZXN0LlRlc3RBbGxFeHRlbnNpb25zGBkgASgJQgIIATpGChhy" + |
| 201 | "ZXBlYXRlZF9pbnQzMl9leHRlbnNpb24SJC5wcm90b2J1Zl91bml0dGVzdC5U" + |
| 202 | "ZXN0QWxsRXh0ZW5zaW9ucxgfIAMoBTpGChhyZXBlYXRlZF9pbnQ2NF9leHRl" + |
| 203 | "bnNpb24SJC5wcm90b2J1Zl91bml0dGVzdC5UZXN0QWxsRXh0ZW5zaW9ucxgg" + |
| 204 | "IAMoAzpHChlyZXBlYXRlZF91aW50MzJfZXh0ZW5zaW9uEiQucHJvdG9idWZf" + |
| 205 | "dW5pdHRlc3QuVGVzdEFsbEV4dGVuc2lvbnMYISADKA06RwoZcmVwZWF0ZWRf" + |
| 206 | "dWludDY0X2V4dGVuc2lvbhIkLnByb3RvYnVmX3VuaXR0ZXN0LlRlc3RBbGxF" + |
| 207 | "eHRlbnNpb25zGCIgAygEOkcKGXJlcGVhdGVkX3NpbnQzMl9leHRlbnNpb24S" + |
| 208 | "JC5wcm90b2J1Zl91bml0dGVzdC5UZXN0QWxsRXh0ZW5zaW9ucxgjIAMoETpH" + |
| 209 | "ChlyZXBlYXRlZF9zaW50NjRfZXh0ZW5zaW9uEiQucHJvdG9idWZfdW5pdHRl" + |
| 210 | "c3QuVGVzdEFsbEV4dGVuc2lvbnMYJCADKBI6SAoacmVwZWF0ZWRfZml4ZWQz" + |
| 211 | "Ml9leHRlbnNpb24SJC5wcm90b2J1Zl91bml0dGVzdC5UZXN0QWxsRXh0ZW5z" + |
| 212 | "aW9ucxglIAMoBzpIChpyZXBlYXRlZF9maXhlZDY0X2V4dGVuc2lvbhIkLnBy" + |
| 213 | "b3RvYnVmX3VuaXR0ZXN0LlRlc3RBbGxFeHRlbnNpb25zGCYgAygGOkkKG3Jl" + |
| 214 | "cGVhdGVkX3NmaXhlZDMyX2V4dGVuc2lvbhIkLnByb3RvYnVmX3VuaXR0ZXN0" + |
| 215 | "LlRlc3RBbGxFeHRlbnNpb25zGCcgAygPOkkKG3JlcGVhdGVkX3NmaXhlZDY0" + |
| 216 | "X2V4dGVuc2lvbhIkLnByb3RvYnVmX3VuaXR0ZXN0LlRlc3RBbGxFeHRlbnNp" + |
| 217 | "b25zGCggAygQOkYKGHJlcGVhdGVkX2Zsb2F0X2V4dGVuc2lvbhIkLnByb3Rv" + |
| 218 | "YnVmX3VuaXR0ZXN0LlRlc3RBbGxFeHRlbnNpb25zGCkgAygCOkcKGXJlcGVh" + |
| 219 | "dGVkX2RvdWJsZV9leHRlbnNpb24SJC5wcm90b2J1Zl91bml0dGVzdC5UZXN0" + |
| 220 | "QWxsRXh0ZW5zaW9ucxgqIAMoATpFChdyZXBlYXRlZF9ib29sX2V4dGVuc2lv" + |
| 221 | "bhIkLnByb3RvYnVmX3VuaXR0ZXN0LlRlc3RBbGxFeHRlbnNpb25zGCsgAygI" + |
| 222 | "OkcKGXJlcGVhdGVkX3N0cmluZ19leHRlbnNpb24SJC5wcm90b2J1Zl91bml0" + |
| 223 | "dGVzdC5UZXN0QWxsRXh0ZW5zaW9ucxgsIAMoCTpGChhyZXBlYXRlZF9ieXRl" + |
| 224 | "c19leHRlbnNpb24SJC5wcm90b2J1Zl91bml0dGVzdC5UZXN0QWxsRXh0ZW5z" + |
| 225 | "aW9ucxgtIAMoDDpxChdyZXBlYXRlZGdyb3VwX2V4dGVuc2lvbhIkLnByb3Rv" + |
| 226 | "YnVmX3VuaXR0ZXN0LlRlc3RBbGxFeHRlbnNpb25zGC4gAygKMioucHJvdG9i" + |
| 227 | "dWZfdW5pdHRlc3QuUmVwZWF0ZWRHcm91cF9leHRlbnNpb246fgohcmVwZWF0" + |
| 228 | "ZWRfbmVzdGVkX21lc3NhZ2VfZXh0ZW5zaW9uEiQucHJvdG9idWZfdW5pdHRl" + |
| 229 | "c3QuVGVzdEFsbEV4dGVuc2lvbnMYMCADKAsyLS5wcm90b2J1Zl91bml0dGVz" + |
| 230 | "dC5UZXN0QWxsVHlwZXMuTmVzdGVkTWVzc2FnZTpzCiJyZXBlYXRlZF9mb3Jl" + |
| 231 | "aWduX21lc3NhZ2VfZXh0ZW5zaW9uEiQucHJvdG9idWZfdW5pdHRlc3QuVGVz" + |
| 232 | "dEFsbEV4dGVuc2lvbnMYMSADKAsyIS5wcm90b2J1Zl91bml0dGVzdC5Gb3Jl" + |
| 233 | "aWduTWVzc2FnZTp4CiFyZXBlYXRlZF9pbXBvcnRfbWVzc2FnZV9leHRlbnNp" + |
| 234 | "b24SJC5wcm90b2J1Zl91bml0dGVzdC5UZXN0QWxsRXh0ZW5zaW9ucxgyIAMo" + |
| 235 | "CzInLnByb3RvYnVmX3VuaXR0ZXN0X2ltcG9ydC5JbXBvcnRNZXNzYWdlOngK" + |
| 236 | "HnJlcGVhdGVkX25lc3RlZF9lbnVtX2V4dGVuc2lvbhIkLnByb3RvYnVmX3Vu" + |
| 237 | "aXR0ZXN0LlRlc3RBbGxFeHRlbnNpb25zGDMgAygOMioucHJvdG9idWZfdW5p" + |
| 238 | "dHRlc3QuVGVzdEFsbFR5cGVzLk5lc3RlZEVudW06bQofcmVwZWF0ZWRfZm9y" + |
| 239 | "ZWlnbl9lbnVtX2V4dGVuc2lvbhIkLnByb3RvYnVmX3VuaXR0ZXN0LlRlc3RB" + |
| 240 | "bGxFeHRlbnNpb25zGDQgAygOMh4ucHJvdG9idWZfdW5pdHRlc3QuRm9yZWln" + |
| 241 | "bkVudW06cgoecmVwZWF0ZWRfaW1wb3J0X2VudW1fZXh0ZW5zaW9uEiQucHJv" + |
| 242 | "dG9idWZfdW5pdHRlc3QuVGVzdEFsbEV4dGVuc2lvbnMYNSADKA4yJC5wcm90" + |
| 243 | "b2J1Zl91bml0dGVzdF9pbXBvcnQuSW1wb3J0RW51bTpRCh9yZXBlYXRlZF9z" + |
| 244 | "dHJpbmdfcGllY2VfZXh0ZW5zaW9uEiQucHJvdG9idWZfdW5pdHRlc3QuVGVz" + |
| 245 | "dEFsbEV4dGVuc2lvbnMYNiADKAlCAggCOkkKF3JlcGVhdGVkX2NvcmRfZXh0" + |
| 246 | "ZW5zaW9uEiQucHJvdG9idWZfdW5pdHRlc3QuVGVzdEFsbEV4dGVuc2lvbnMY" + |
| 247 | "NyADKAlCAggBOkkKF2RlZmF1bHRfaW50MzJfZXh0ZW5zaW9uEiQucHJvdG9i" + |
| 248 | "dWZfdW5pdHRlc3QuVGVzdEFsbEV4dGVuc2lvbnMYPSABKAU6AjQxOkkKF2Rl" + |
| 249 | "ZmF1bHRfaW50NjRfZXh0ZW5zaW9uEiQucHJvdG9idWZfdW5pdHRlc3QuVGVz" + |
| 250 | "dEFsbEV4dGVuc2lvbnMYPiABKAM6AjQyOkoKGGRlZmF1bHRfdWludDMyX2V4" + |
| 251 | "dGVuc2lvbhIkLnByb3RvYnVmX3VuaXR0ZXN0LlRlc3RBbGxFeHRlbnNpb25z" + |
| 252 | "GD8gASgNOgI0MzpKChhkZWZhdWx0X3VpbnQ2NF9leHRlbnNpb24SJC5wcm90" + |
| 253 | "b2J1Zl91bml0dGVzdC5UZXN0QWxsRXh0ZW5zaW9ucxhAIAEoBDoCNDQ6SwoY" + |
| 254 | "ZGVmYXVsdF9zaW50MzJfZXh0ZW5zaW9uEiQucHJvdG9idWZfdW5pdHRlc3Qu" + |
| 255 | "VGVzdEFsbEV4dGVuc2lvbnMYQSABKBE6Ay00NTpKChhkZWZhdWx0X3NpbnQ2" + |
| 256 | "NF9leHRlbnNpb24SJC5wcm90b2J1Zl91bml0dGVzdC5UZXN0QWxsRXh0ZW5z" + |
| 257 | "aW9ucxhCIAEoEjoCNDY6SwoZZGVmYXVsdF9maXhlZDMyX2V4dGVuc2lvbhIk" + |
| 258 | "LnByb3RvYnVmX3VuaXR0ZXN0LlRlc3RBbGxFeHRlbnNpb25zGEMgASgHOgI0" + |
| 259 | "NzpLChlkZWZhdWx0X2ZpeGVkNjRfZXh0ZW5zaW9uEiQucHJvdG9idWZfdW5p" + |
| 260 | "dHRlc3QuVGVzdEFsbEV4dGVuc2lvbnMYRCABKAY6AjQ4OkwKGmRlZmF1bHRf" + |
| 261 | "c2ZpeGVkMzJfZXh0ZW5zaW9uEiQucHJvdG9idWZfdW5pdHRlc3QuVGVzdEFs" + |
| 262 | "bEV4dGVuc2lvbnMYRSABKA86AjQ5Ok0KGmRlZmF1bHRfc2ZpeGVkNjRfZXh0" + |
| 263 | "ZW5zaW9uEiQucHJvdG9idWZfdW5pdHRlc3QuVGVzdEFsbEV4dGVuc2lvbnMY" + |
| 264 | "RiABKBA6Ay01MDpLChdkZWZhdWx0X2Zsb2F0X2V4dGVuc2lvbhIkLnByb3Rv" + |
| 265 | "YnVmX3VuaXR0ZXN0LlRlc3RBbGxFeHRlbnNpb25zGEcgASgCOgQ1MS41Ok0K" + |
| 266 | "GGRlZmF1bHRfZG91YmxlX2V4dGVuc2lvbhIkLnByb3RvYnVmX3VuaXR0ZXN0" + |
| 267 | "LlRlc3RBbGxFeHRlbnNpb25zGEggASgBOgU1MjAwMDpKChZkZWZhdWx0X2Jv" + |
| 268 | "b2xfZXh0ZW5zaW9uEiQucHJvdG9idWZfdW5pdHRlc3QuVGVzdEFsbEV4dGVu" + |
| 269 | "c2lvbnMYSSABKAg6BHRydWU6TQoYZGVmYXVsdF9zdHJpbmdfZXh0ZW5zaW9u" + |
| 270 | "EiQucHJvdG9idWZfdW5pdHRlc3QuVGVzdEFsbEV4dGVuc2lvbnMYSiABKAk6" + |
| 271 | "BWhlbGxvOkwKF2RlZmF1bHRfYnl0ZXNfZXh0ZW5zaW9uEiQucHJvdG9idWZf" + |
| 272 | "dW5pdHRlc3QuVGVzdEFsbEV4dGVuc2lvbnMYSyABKAw6BXdvcmxkOnwKHWRl" + |
| 273 | "ZmF1bHRfbmVzdGVkX2VudW1fZXh0ZW5zaW9uEiQucHJvdG9idWZfdW5pdHRl" + |
| 274 | "c3QuVGVzdEFsbEV4dGVuc2lvbnMYUSABKA4yKi5wcm90b2J1Zl91bml0dGVz" + |
| 275 | "dC5UZXN0QWxsVHlwZXMuTmVzdGVkRW51bToDQkFSOnkKHmRlZmF1bHRfZm9y" + |
| 276 | "ZWlnbl9lbnVtX2V4dGVuc2lvbhIkLnByb3RvYnVmX3VuaXR0ZXN0LlRlc3RB" + |
| 277 | "bGxFeHRlbnNpb25zGFIgASgOMh4ucHJvdG9idWZfdW5pdHRlc3QuRm9yZWln" + |
| 278 | "bkVudW06C0ZPUkVJR05fQkFSOn0KHWRlZmF1bHRfaW1wb3J0X2VudW1fZXh0" + |
| 279 | "ZW5zaW9uEiQucHJvdG9idWZfdW5pdHRlc3QuVGVzdEFsbEV4dGVuc2lvbnMY" + |
| 280 | "UyABKA4yJC5wcm90b2J1Zl91bml0dGVzdF9pbXBvcnQuSW1wb3J0RW51bToK" + |
| 281 | "SU1QT1JUX0JBUjpVCh5kZWZhdWx0X3N0cmluZ19waWVjZV9leHRlbnNpb24S" + |
| 282 | "JC5wcm90b2J1Zl91bml0dGVzdC5UZXN0QWxsRXh0ZW5zaW9ucxhUIAEoCToD" + |
| 283 | "YWJjQgIIAjpNChZkZWZhdWx0X2NvcmRfZXh0ZW5zaW9uEiQucHJvdG9idWZf" + |
| 284 | "dW5pdHRlc3QuVGVzdEFsbEV4dGVuc2lvbnMYVSABKAk6AzEyM0ICCAE6QgoT" + |
| 285 | "bXlfZXh0ZW5zaW9uX3N0cmluZxIlLnByb3RvYnVmX3VuaXR0ZXN0LlRlc3RG" + |
| 286 | "aWVsZE9yZGVyaW5ncxgyIAEoCTo/ChBteV9leHRlbnNpb25faW50EiUucHJv" + |
| 287 | "dG9idWZfdW5pdHRlc3QuVGVzdEZpZWxkT3JkZXJpbmdzGAUgASgFQktCDVVu" + |
| 288 | "aXR0ZXN0UHJvdG9IAYLiCSFHb29nbGUuUHJvdG9jb2xCdWZmZXJzLlRlc3RQ" + |
| 289 | "cm90b3OK4gkRVW5pdFRlc3RQcm90b0ZpbGU="), |
| 290 | new pbd::FileDescriptor[] { |
| 291 | global::Google.ProtocolBuffers.DescriptorProtos.CSharpOptions.Descriptor, |
| 292 | global::Google.ProtocolBuffers.DescriptorProtos.DescriptorProtoFile.Descriptor, |
| 293 | global::Google.ProtocolBuffers.TestProtos.UnitTestImportProtoFile.Descriptor, |
| 294 | }); |
| 295 | #endregion |
| 296 | |
| 297 | #region Extensions |
| 298 | public static readonly pb::GeneratedExtensionBase<int> OptionalInt32Extension = |
| 299 | pb::GeneratedSingleExtension<int>.CreateInstance(Descriptor.Extensions[0]); |
| 300 | public static readonly pb::GeneratedExtensionBase<long> OptionalInt64Extension = |
| 301 | pb::GeneratedSingleExtension<long>.CreateInstance(Descriptor.Extensions[1]); |
| 302 | public static readonly pb::GeneratedExtensionBase<uint> OptionalUint32Extension = |
| 303 | pb::GeneratedSingleExtension<uint>.CreateInstance(Descriptor.Extensions[2]); |
| 304 | public static readonly pb::GeneratedExtensionBase<ulong> OptionalUint64Extension = |
| 305 | pb::GeneratedSingleExtension<ulong>.CreateInstance(Descriptor.Extensions[3]); |
| 306 | public static readonly pb::GeneratedExtensionBase<int> OptionalSint32Extension = |
| 307 | pb::GeneratedSingleExtension<int>.CreateInstance(Descriptor.Extensions[4]); |
| 308 | public static readonly pb::GeneratedExtensionBase<long> OptionalSint64Extension = |
| 309 | pb::GeneratedSingleExtension<long>.CreateInstance(Descriptor.Extensions[5]); |
| 310 | public static readonly pb::GeneratedExtensionBase<uint> OptionalFixed32Extension = |
| 311 | pb::GeneratedSingleExtension<uint>.CreateInstance(Descriptor.Extensions[6]); |
| 312 | public static readonly pb::GeneratedExtensionBase<ulong> OptionalFixed64Extension = |
| 313 | pb::GeneratedSingleExtension<ulong>.CreateInstance(Descriptor.Extensions[7]); |
| 314 | public static readonly pb::GeneratedExtensionBase<int> OptionalSfixed32Extension = |
| 315 | pb::GeneratedSingleExtension<int>.CreateInstance(Descriptor.Extensions[8]); |
| 316 | public static readonly pb::GeneratedExtensionBase<long> OptionalSfixed64Extension = |
| 317 | pb::GeneratedSingleExtension<long>.CreateInstance(Descriptor.Extensions[9]); |
| 318 | public static readonly pb::GeneratedExtensionBase<float> OptionalFloatExtension = |
| 319 | pb::GeneratedSingleExtension<float>.CreateInstance(Descriptor.Extensions[10]); |
| 320 | public static readonly pb::GeneratedExtensionBase<double> OptionalDoubleExtension = |
| 321 | pb::GeneratedSingleExtension<double>.CreateInstance(Descriptor.Extensions[11]); |
| 322 | public static readonly pb::GeneratedExtensionBase<bool> OptionalBoolExtension = |
| 323 | pb::GeneratedSingleExtension<bool>.CreateInstance(Descriptor.Extensions[12]); |
| 324 | public static readonly pb::GeneratedExtensionBase<string> OptionalStringExtension = |
| 325 | pb::GeneratedSingleExtension<string>.CreateInstance(Descriptor.Extensions[13]); |
| 326 | public static readonly pb::GeneratedExtensionBase<pb::ByteString> OptionalBytesExtension = |
| 327 | pb::GeneratedSingleExtension<pb::ByteString>.CreateInstance(Descriptor.Extensions[14]); |
| 328 | public static readonly pb::GeneratedExtensionBase<global::Google.ProtocolBuffers.TestProtos.OptionalGroup_extension> OptionalGroupExtension = |
| 329 | pb::GeneratedSingleExtension<global::Google.ProtocolBuffers.TestProtos.OptionalGroup_extension>.CreateInstance(Descriptor.Extensions[15]); |
| 330 | public static readonly pb::GeneratedExtensionBase<global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedMessage> OptionalNestedMessageExtension = |
| 331 | pb::GeneratedSingleExtension<global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedMessage>.CreateInstance(Descriptor.Extensions[16]); |
| 332 | public static readonly pb::GeneratedExtensionBase<global::Google.ProtocolBuffers.TestProtos.ForeignMessage> OptionalForeignMessageExtension = |
| 333 | pb::GeneratedSingleExtension<global::Google.ProtocolBuffers.TestProtos.ForeignMessage>.CreateInstance(Descriptor.Extensions[17]); |
| 334 | public static readonly pb::GeneratedExtensionBase<global::Google.ProtocolBuffers.TestProtos.ImportMessage> OptionalImportMessageExtension = |
| 335 | pb::GeneratedSingleExtension<global::Google.ProtocolBuffers.TestProtos.ImportMessage>.CreateInstance(Descriptor.Extensions[18]); |
| 336 | public static readonly pb::GeneratedExtensionBase<global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedEnum> OptionalNestedEnumExtension = |
| 337 | pb::GeneratedSingleExtension<global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedEnum>.CreateInstance(Descriptor.Extensions[19]); |
| 338 | public static readonly pb::GeneratedExtensionBase<global::Google.ProtocolBuffers.TestProtos.ForeignEnum> OptionalForeignEnumExtension = |
| 339 | pb::GeneratedSingleExtension<global::Google.ProtocolBuffers.TestProtos.ForeignEnum>.CreateInstance(Descriptor.Extensions[20]); |
| 340 | public static readonly pb::GeneratedExtensionBase<global::Google.ProtocolBuffers.TestProtos.ImportEnum> OptionalImportEnumExtension = |
| 341 | pb::GeneratedSingleExtension<global::Google.ProtocolBuffers.TestProtos.ImportEnum>.CreateInstance(Descriptor.Extensions[21]); |
| 342 | public static readonly pb::GeneratedExtensionBase<string> OptionalStringPieceExtension = |
| 343 | pb::GeneratedSingleExtension<string>.CreateInstance(Descriptor.Extensions[22]); |
| 344 | public static readonly pb::GeneratedExtensionBase<string> OptionalCordExtension = |
| 345 | pb::GeneratedSingleExtension<string>.CreateInstance(Descriptor.Extensions[23]); |
| 346 | public static readonly |
| 347 | pb::GeneratedExtensionBase<scg::IList<int>> RepeatedInt32Extension = |
| 348 | pb::GeneratedRepeatExtension<int>.CreateInstance(Descriptor.Extensions[24]); |
| 349 | public static readonly |
| 350 | pb::GeneratedExtensionBase<scg::IList<long>> RepeatedInt64Extension = |
| 351 | pb::GeneratedRepeatExtension<long>.CreateInstance(Descriptor.Extensions[25]); |
| 352 | public static readonly |
| 353 | pb::GeneratedExtensionBase<scg::IList<uint>> RepeatedUint32Extension = |
| 354 | pb::GeneratedRepeatExtension<uint>.CreateInstance(Descriptor.Extensions[26]); |
| 355 | public static readonly |
| 356 | pb::GeneratedExtensionBase<scg::IList<ulong>> RepeatedUint64Extension = |
| 357 | pb::GeneratedRepeatExtension<ulong>.CreateInstance(Descriptor.Extensions[27]); |
| 358 | public static readonly |
| 359 | pb::GeneratedExtensionBase<scg::IList<int>> RepeatedSint32Extension = |
| 360 | pb::GeneratedRepeatExtension<int>.CreateInstance(Descriptor.Extensions[28]); |
| 361 | public static readonly |
| 362 | pb::GeneratedExtensionBase<scg::IList<long>> RepeatedSint64Extension = |
| 363 | pb::GeneratedRepeatExtension<long>.CreateInstance(Descriptor.Extensions[29]); |
| 364 | public static readonly |
| 365 | pb::GeneratedExtensionBase<scg::IList<uint>> RepeatedFixed32Extension = |
| 366 | pb::GeneratedRepeatExtension<uint>.CreateInstance(Descriptor.Extensions[30]); |
| 367 | public static readonly |
| 368 | pb::GeneratedExtensionBase<scg::IList<ulong>> RepeatedFixed64Extension = |
| 369 | pb::GeneratedRepeatExtension<ulong>.CreateInstance(Descriptor.Extensions[31]); |
| 370 | public static readonly |
| 371 | pb::GeneratedExtensionBase<scg::IList<int>> RepeatedSfixed32Extension = |
| 372 | pb::GeneratedRepeatExtension<int>.CreateInstance(Descriptor.Extensions[32]); |
| 373 | public static readonly |
| 374 | pb::GeneratedExtensionBase<scg::IList<long>> RepeatedSfixed64Extension = |
| 375 | pb::GeneratedRepeatExtension<long>.CreateInstance(Descriptor.Extensions[33]); |
| 376 | public static readonly |
| 377 | pb::GeneratedExtensionBase<scg::IList<float>> RepeatedFloatExtension = |
| 378 | pb::GeneratedRepeatExtension<float>.CreateInstance(Descriptor.Extensions[34]); |
| 379 | public static readonly |
| 380 | pb::GeneratedExtensionBase<scg::IList<double>> RepeatedDoubleExtension = |
| 381 | pb::GeneratedRepeatExtension<double>.CreateInstance(Descriptor.Extensions[35]); |
| 382 | public static readonly |
| 383 | pb::GeneratedExtensionBase<scg::IList<bool>> RepeatedBoolExtension = |
| 384 | pb::GeneratedRepeatExtension<bool>.CreateInstance(Descriptor.Extensions[36]); |
| 385 | public static readonly |
| 386 | pb::GeneratedExtensionBase<scg::IList<string>> RepeatedStringExtension = |
| 387 | pb::GeneratedRepeatExtension<string>.CreateInstance(Descriptor.Extensions[37]); |
| 388 | public static readonly |
| 389 | pb::GeneratedExtensionBase<scg::IList<pb::ByteString>> RepeatedBytesExtension = |
| 390 | pb::GeneratedRepeatExtension<pb::ByteString>.CreateInstance(Descriptor.Extensions[38]); |
| 391 | public static readonly |
| 392 | pb::GeneratedExtensionBase<scg::IList<global::Google.ProtocolBuffers.TestProtos.RepeatedGroup_extension>> RepeatedGroupExtension = |
| 393 | pb::GeneratedRepeatExtension<global::Google.ProtocolBuffers.TestProtos.RepeatedGroup_extension>.CreateInstance(Descriptor.Extensions[39]); |
| 394 | public static readonly |
| 395 | pb::GeneratedExtensionBase<scg::IList<global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedMessage>> RepeatedNestedMessageExtension = |
| 396 | pb::GeneratedRepeatExtension<global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedMessage>.CreateInstance(Descriptor.Extensions[40]); |
| 397 | public static readonly |
| 398 | pb::GeneratedExtensionBase<scg::IList<global::Google.ProtocolBuffers.TestProtos.ForeignMessage>> RepeatedForeignMessageExtension = |
| 399 | pb::GeneratedRepeatExtension<global::Google.ProtocolBuffers.TestProtos.ForeignMessage>.CreateInstance(Descriptor.Extensions[41]); |
| 400 | public static readonly |
| 401 | pb::GeneratedExtensionBase<scg::IList<global::Google.ProtocolBuffers.TestProtos.ImportMessage>> RepeatedImportMessageExtension = |
| 402 | pb::GeneratedRepeatExtension<global::Google.ProtocolBuffers.TestProtos.ImportMessage>.CreateInstance(Descriptor.Extensions[42]); |
| 403 | public static readonly |
| 404 | pb::GeneratedExtensionBase<scg::IList<global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedEnum>> RepeatedNestedEnumExtension = |
| 405 | pb::GeneratedRepeatExtension<global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedEnum>.CreateInstance(Descriptor.Extensions[43]); |
| 406 | public static readonly |
| 407 | pb::GeneratedExtensionBase<scg::IList<global::Google.ProtocolBuffers.TestProtos.ForeignEnum>> RepeatedForeignEnumExtension = |
| 408 | pb::GeneratedRepeatExtension<global::Google.ProtocolBuffers.TestProtos.ForeignEnum>.CreateInstance(Descriptor.Extensions[44]); |
| 409 | public static readonly |
| 410 | pb::GeneratedExtensionBase<scg::IList<global::Google.ProtocolBuffers.TestProtos.ImportEnum>> RepeatedImportEnumExtension = |
| 411 | pb::GeneratedRepeatExtension<global::Google.ProtocolBuffers.TestProtos.ImportEnum>.CreateInstance(Descriptor.Extensions[45]); |
| 412 | public static readonly |
| 413 | pb::GeneratedExtensionBase<scg::IList<string>> RepeatedStringPieceExtension = |
| 414 | pb::GeneratedRepeatExtension<string>.CreateInstance(Descriptor.Extensions[46]); |
| 415 | public static readonly |
| 416 | pb::GeneratedExtensionBase<scg::IList<string>> RepeatedCordExtension = |
| 417 | pb::GeneratedRepeatExtension<string>.CreateInstance(Descriptor.Extensions[47]); |
| 418 | public static readonly pb::GeneratedExtensionBase<int> DefaultInt32Extension = |
| 419 | pb::GeneratedSingleExtension<int>.CreateInstance(Descriptor.Extensions[48]); |
| 420 | public static readonly pb::GeneratedExtensionBase<long> DefaultInt64Extension = |
| 421 | pb::GeneratedSingleExtension<long>.CreateInstance(Descriptor.Extensions[49]); |
| 422 | public static readonly pb::GeneratedExtensionBase<uint> DefaultUint32Extension = |
| 423 | pb::GeneratedSingleExtension<uint>.CreateInstance(Descriptor.Extensions[50]); |
| 424 | public static readonly pb::GeneratedExtensionBase<ulong> DefaultUint64Extension = |
| 425 | pb::GeneratedSingleExtension<ulong>.CreateInstance(Descriptor.Extensions[51]); |
| 426 | public static readonly pb::GeneratedExtensionBase<int> DefaultSint32Extension = |
| 427 | pb::GeneratedSingleExtension<int>.CreateInstance(Descriptor.Extensions[52]); |
| 428 | public static readonly pb::GeneratedExtensionBase<long> DefaultSint64Extension = |
| 429 | pb::GeneratedSingleExtension<long>.CreateInstance(Descriptor.Extensions[53]); |
| 430 | public static readonly pb::GeneratedExtensionBase<uint> DefaultFixed32Extension = |
| 431 | pb::GeneratedSingleExtension<uint>.CreateInstance(Descriptor.Extensions[54]); |
| 432 | public static readonly pb::GeneratedExtensionBase<ulong> DefaultFixed64Extension = |
| 433 | pb::GeneratedSingleExtension<ulong>.CreateInstance(Descriptor.Extensions[55]); |
| 434 | public static readonly pb::GeneratedExtensionBase<int> DefaultSfixed32Extension = |
| 435 | pb::GeneratedSingleExtension<int>.CreateInstance(Descriptor.Extensions[56]); |
| 436 | public static readonly pb::GeneratedExtensionBase<long> DefaultSfixed64Extension = |
| 437 | pb::GeneratedSingleExtension<long>.CreateInstance(Descriptor.Extensions[57]); |
| 438 | public static readonly pb::GeneratedExtensionBase<float> DefaultFloatExtension = |
| 439 | pb::GeneratedSingleExtension<float>.CreateInstance(Descriptor.Extensions[58]); |
| 440 | public static readonly pb::GeneratedExtensionBase<double> DefaultDoubleExtension = |
| 441 | pb::GeneratedSingleExtension<double>.CreateInstance(Descriptor.Extensions[59]); |
| 442 | public static readonly pb::GeneratedExtensionBase<bool> DefaultBoolExtension = |
| 443 | pb::GeneratedSingleExtension<bool>.CreateInstance(Descriptor.Extensions[60]); |
| 444 | public static readonly pb::GeneratedExtensionBase<string> DefaultStringExtension = |
| 445 | pb::GeneratedSingleExtension<string>.CreateInstance(Descriptor.Extensions[61]); |
| 446 | public static readonly pb::GeneratedExtensionBase<pb::ByteString> DefaultBytesExtension = |
| 447 | pb::GeneratedSingleExtension<pb::ByteString>.CreateInstance(Descriptor.Extensions[62]); |
| 448 | public static readonly pb::GeneratedExtensionBase<global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedEnum> DefaultNestedEnumExtension = |
| 449 | pb::GeneratedSingleExtension<global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedEnum>.CreateInstance(Descriptor.Extensions[63]); |
| 450 | public static readonly pb::GeneratedExtensionBase<global::Google.ProtocolBuffers.TestProtos.ForeignEnum> DefaultForeignEnumExtension = |
| 451 | pb::GeneratedSingleExtension<global::Google.ProtocolBuffers.TestProtos.ForeignEnum>.CreateInstance(Descriptor.Extensions[64]); |
| 452 | public static readonly pb::GeneratedExtensionBase<global::Google.ProtocolBuffers.TestProtos.ImportEnum> DefaultImportEnumExtension = |
| 453 | pb::GeneratedSingleExtension<global::Google.ProtocolBuffers.TestProtos.ImportEnum>.CreateInstance(Descriptor.Extensions[65]); |
| 454 | public static readonly pb::GeneratedExtensionBase<string> DefaultStringPieceExtension = |
| 455 | pb::GeneratedSingleExtension<string>.CreateInstance(Descriptor.Extensions[66]); |
| 456 | public static readonly pb::GeneratedExtensionBase<string> DefaultCordExtension = |
| 457 | pb::GeneratedSingleExtension<string>.CreateInstance(Descriptor.Extensions[67]); |
| 458 | public static readonly pb::GeneratedExtensionBase<string> MyExtensionString = |
| 459 | pb::GeneratedSingleExtension<string>.CreateInstance(Descriptor.Extensions[68]); |
| 460 | public static readonly pb::GeneratedExtensionBase<int> MyExtensionInt = |
| 461 | pb::GeneratedSingleExtension<int>.CreateInstance(Descriptor.Extensions[69]); |
| 462 | #endregion |
| 463 | |
| 464 | #region Static variables |
| 465 | internal static readonly pbd::MessageDescriptor internal__static_protobuf_unittest_TestAllTypes__Descriptor |
| 466 | = Descriptor.MessageTypes[0]; |
| 467 | internal static pb::FieldAccess.FieldAccessorTable<global::Google.ProtocolBuffers.TestProtos.TestAllTypes, global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Builder> internal__static_protobuf_unittest_TestAllTypes__FieldAccessorTable |
| 468 | = new pb::FieldAccess.FieldAccessorTable<global::Google.ProtocolBuffers.TestProtos.TestAllTypes, global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Builder>(internal__static_protobuf_unittest_TestAllTypes__Descriptor, |
| 469 | new string[] { "OptionalInt32", "OptionalInt64", "OptionalUint32", "OptionalUint64", "OptionalSint32", "OptionalSint64", "OptionalFixed32", "OptionalFixed64", "OptionalSfixed32", "OptionalSfixed64", "OptionalFloat", "OptionalDouble", "OptionalBool", "OptionalString", "OptionalBytes", "OptionalGroup", "OptionalNestedMessage", "OptionalForeignMessage", "OptionalImportMessage", "OptionalNestedEnum", "OptionalForeignEnum", "OptionalImportEnum", "OptionalStringPiece", "OptionalCord", "RepeatedInt32", "RepeatedInt64", "RepeatedUint32", "RepeatedUint64", "RepeatedSint32", "RepeatedSint64", "RepeatedFixed32", "RepeatedFixed64", "RepeatedSfixed32", "RepeatedSfixed64", "RepeatedFloat", "RepeatedDouble", "RepeatedBool", "RepeatedString", "RepeatedBytes", "RepeatedGroup", "RepeatedNestedMessage", "RepeatedForeignMessage", "RepeatedImportMessage", "RepeatedNestedEnum", "RepeatedForeignEnum", "RepeatedImportEnum", "RepeatedStringPiece", "RepeatedCord", "DefaultInt32", "DefaultInt64", "DefaultUint32", "DefaultUint64", "DefaultSint32", "DefaultSint64", "DefaultFixed32", "DefaultFixed64", "DefaultSfixed32", "DefaultSfixed64", "DefaultFloat", "DefaultDouble", "DefaultBool", "DefaultString", "DefaultBytes", "DefaultNestedEnum", "DefaultForeignEnum", "DefaultImportEnum", "DefaultStringPiece", "DefaultCord", }); |
| 470 | internal static readonly pbd::MessageDescriptor internal__static_protobuf_unittest_TestAllTypes_NestedMessage__Descriptor |
| 471 | = internal__static_protobuf_unittest_TestAllTypes__Descriptor.NestedTypes[0]; |
| 472 | internal static pb::FieldAccess.FieldAccessorTable<global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedMessage, global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedMessage.Builder> internal__static_protobuf_unittest_TestAllTypes_NestedMessage__FieldAccessorTable |
| 473 | = new pb::FieldAccess.FieldAccessorTable<global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedMessage, global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedMessage.Builder>(internal__static_protobuf_unittest_TestAllTypes_NestedMessage__Descriptor, |
| 474 | new string[] { "Bb", }); |
| 475 | internal static readonly pbd::MessageDescriptor internal__static_protobuf_unittest_TestAllTypes_OptionalGroup__Descriptor |
| 476 | = internal__static_protobuf_unittest_TestAllTypes__Descriptor.NestedTypes[1]; |
| 477 | internal static pb::FieldAccess.FieldAccessorTable<global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.OptionalGroup, global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.OptionalGroup.Builder> internal__static_protobuf_unittest_TestAllTypes_OptionalGroup__FieldAccessorTable |
| 478 | = new pb::FieldAccess.FieldAccessorTable<global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.OptionalGroup, global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.OptionalGroup.Builder>(internal__static_protobuf_unittest_TestAllTypes_OptionalGroup__Descriptor, |
| 479 | new string[] { "A", }); |
| 480 | internal static readonly pbd::MessageDescriptor internal__static_protobuf_unittest_TestAllTypes_RepeatedGroup__Descriptor |
| 481 | = internal__static_protobuf_unittest_TestAllTypes__Descriptor.NestedTypes[2]; |
| 482 | internal static pb::FieldAccess.FieldAccessorTable<global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.RepeatedGroup, global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.RepeatedGroup.Builder> internal__static_protobuf_unittest_TestAllTypes_RepeatedGroup__FieldAccessorTable |
| 483 | = new pb::FieldAccess.FieldAccessorTable<global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.RepeatedGroup, global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.RepeatedGroup.Builder>(internal__static_protobuf_unittest_TestAllTypes_RepeatedGroup__Descriptor, |
| 484 | new string[] { "A", }); |
| 485 | internal static readonly pbd::MessageDescriptor internal__static_protobuf_unittest_ForeignMessage__Descriptor |
| 486 | = Descriptor.MessageTypes[1]; |
| 487 | internal static pb::FieldAccess.FieldAccessorTable<global::Google.ProtocolBuffers.TestProtos.ForeignMessage, global::Google.ProtocolBuffers.TestProtos.ForeignMessage.Builder> internal__static_protobuf_unittest_ForeignMessage__FieldAccessorTable |
| 488 | = new pb::FieldAccess.FieldAccessorTable<global::Google.ProtocolBuffers.TestProtos.ForeignMessage, global::Google.ProtocolBuffers.TestProtos.ForeignMessage.Builder>(internal__static_protobuf_unittest_ForeignMessage__Descriptor, |
| 489 | new string[] { "C", }); |
| 490 | internal static readonly pbd::MessageDescriptor internal__static_protobuf_unittest_TestAllExtensions__Descriptor |
| 491 | = Descriptor.MessageTypes[2]; |
| 492 | internal static pb::FieldAccess.FieldAccessorTable<global::Google.ProtocolBuffers.TestProtos.TestAllExtensions, global::Google.ProtocolBuffers.TestProtos.TestAllExtensions.Builder> internal__static_protobuf_unittest_TestAllExtensions__FieldAccessorTable |
| 493 | = new pb::FieldAccess.FieldAccessorTable<global::Google.ProtocolBuffers.TestProtos.TestAllExtensions, global::Google.ProtocolBuffers.TestProtos.TestAllExtensions.Builder>(internal__static_protobuf_unittest_TestAllExtensions__Descriptor, |
| 494 | new string[] { }); |
| 495 | internal static readonly pbd::MessageDescriptor internal__static_protobuf_unittest_OptionalGroup_extension__Descriptor |
| 496 | = Descriptor.MessageTypes[3]; |
| 497 | internal static pb::FieldAccess.FieldAccessorTable<global::Google.ProtocolBuffers.TestProtos.OptionalGroup_extension, global::Google.ProtocolBuffers.TestProtos.OptionalGroup_extension.Builder> internal__static_protobuf_unittest_OptionalGroup_extension__FieldAccessorTable |
| 498 | = new pb::FieldAccess.FieldAccessorTable<global::Google.ProtocolBuffers.TestProtos.OptionalGroup_extension, global::Google.ProtocolBuffers.TestProtos.OptionalGroup_extension.Builder>(internal__static_protobuf_unittest_OptionalGroup_extension__Descriptor, |
| 499 | new string[] { "A", }); |
| 500 | internal static readonly pbd::MessageDescriptor internal__static_protobuf_unittest_RepeatedGroup_extension__Descriptor |
| 501 | = Descriptor.MessageTypes[4]; |
| 502 | internal static pb::FieldAccess.FieldAccessorTable<global::Google.ProtocolBuffers.TestProtos.RepeatedGroup_extension, global::Google.ProtocolBuffers.TestProtos.RepeatedGroup_extension.Builder> internal__static_protobuf_unittest_RepeatedGroup_extension__FieldAccessorTable |
| 503 | = new pb::FieldAccess.FieldAccessorTable<global::Google.ProtocolBuffers.TestProtos.RepeatedGroup_extension, global::Google.ProtocolBuffers.TestProtos.RepeatedGroup_extension.Builder>(internal__static_protobuf_unittest_RepeatedGroup_extension__Descriptor, |
| 504 | new string[] { "A", }); |
| 505 | internal static readonly pbd::MessageDescriptor internal__static_protobuf_unittest_TestRequired__Descriptor |
| 506 | = Descriptor.MessageTypes[5]; |
| 507 | internal static pb::FieldAccess.FieldAccessorTable<global::Google.ProtocolBuffers.TestProtos.TestRequired, global::Google.ProtocolBuffers.TestProtos.TestRequired.Builder> internal__static_protobuf_unittest_TestRequired__FieldAccessorTable |
| 508 | = new pb::FieldAccess.FieldAccessorTable<global::Google.ProtocolBuffers.TestProtos.TestRequired, global::Google.ProtocolBuffers.TestProtos.TestRequired.Builder>(internal__static_protobuf_unittest_TestRequired__Descriptor, |
| 509 | new string[] { "A", "Dummy2", "B", "Dummy4", "Dummy5", "Dummy6", "Dummy7", "Dummy8", "Dummy9", "Dummy10", "Dummy11", "Dummy12", "Dummy13", "Dummy14", "Dummy15", "Dummy16", "Dummy17", "Dummy18", "Dummy19", "Dummy20", "Dummy21", "Dummy22", "Dummy23", "Dummy24", "Dummy25", "Dummy26", "Dummy27", "Dummy28", "Dummy29", "Dummy30", "Dummy31", "Dummy32", "C", }); |
| 510 | internal static readonly pbd::MessageDescriptor internal__static_protobuf_unittest_TestRequiredForeign__Descriptor |
| 511 | = Descriptor.MessageTypes[6]; |
| 512 | internal static pb::FieldAccess.FieldAccessorTable<global::Google.ProtocolBuffers.TestProtos.TestRequiredForeign, global::Google.ProtocolBuffers.TestProtos.TestRequiredForeign.Builder> internal__static_protobuf_unittest_TestRequiredForeign__FieldAccessorTable |
| 513 | = new pb::FieldAccess.FieldAccessorTable<global::Google.ProtocolBuffers.TestProtos.TestRequiredForeign, global::Google.ProtocolBuffers.TestProtos.TestRequiredForeign.Builder>(internal__static_protobuf_unittest_TestRequiredForeign__Descriptor, |
| 514 | new string[] { "OptionalMessage", "RepeatedMessage", "Dummy", }); |
| 515 | internal static readonly pbd::MessageDescriptor internal__static_protobuf_unittest_TestForeignNested__Descriptor |
| 516 | = Descriptor.MessageTypes[7]; |
| 517 | internal static pb::FieldAccess.FieldAccessorTable<global::Google.ProtocolBuffers.TestProtos.TestForeignNested, global::Google.ProtocolBuffers.TestProtos.TestForeignNested.Builder> internal__static_protobuf_unittest_TestForeignNested__FieldAccessorTable |
| 518 | = new pb::FieldAccess.FieldAccessorTable<global::Google.ProtocolBuffers.TestProtos.TestForeignNested, global::Google.ProtocolBuffers.TestProtos.TestForeignNested.Builder>(internal__static_protobuf_unittest_TestForeignNested__Descriptor, |
| 519 | new string[] { "ForeignNested", }); |
| 520 | internal static readonly pbd::MessageDescriptor internal__static_protobuf_unittest_TestEmptyMessage__Descriptor |
| 521 | = Descriptor.MessageTypes[8]; |
| 522 | internal static pb::FieldAccess.FieldAccessorTable<global::Google.ProtocolBuffers.TestProtos.TestEmptyMessage, global::Google.ProtocolBuffers.TestProtos.TestEmptyMessage.Builder> internal__static_protobuf_unittest_TestEmptyMessage__FieldAccessorTable |
| 523 | = new pb::FieldAccess.FieldAccessorTable<global::Google.ProtocolBuffers.TestProtos.TestEmptyMessage, global::Google.ProtocolBuffers.TestProtos.TestEmptyMessage.Builder>(internal__static_protobuf_unittest_TestEmptyMessage__Descriptor, |
| 524 | new string[] { }); |
| 525 | internal static readonly pbd::MessageDescriptor internal__static_protobuf_unittest_TestEmptyMessageWithExtensions__Descriptor |
| 526 | = Descriptor.MessageTypes[9]; |
| 527 | internal static pb::FieldAccess.FieldAccessorTable<global::Google.ProtocolBuffers.TestProtos.TestEmptyMessageWithExtensions, global::Google.ProtocolBuffers.TestProtos.TestEmptyMessageWithExtensions.Builder> internal__static_protobuf_unittest_TestEmptyMessageWithExtensions__FieldAccessorTable |
| 528 | = new pb::FieldAccess.FieldAccessorTable<global::Google.ProtocolBuffers.TestProtos.TestEmptyMessageWithExtensions, global::Google.ProtocolBuffers.TestProtos.TestEmptyMessageWithExtensions.Builder>(internal__static_protobuf_unittest_TestEmptyMessageWithExtensions__Descriptor, |
| 529 | new string[] { }); |
| 530 | internal static readonly pbd::MessageDescriptor internal__static_protobuf_unittest_TestReallyLargeTagNumber__Descriptor |
| 531 | = Descriptor.MessageTypes[10]; |
| 532 | internal static pb::FieldAccess.FieldAccessorTable<global::Google.ProtocolBuffers.TestProtos.TestReallyLargeTagNumber, global::Google.ProtocolBuffers.TestProtos.TestReallyLargeTagNumber.Builder> internal__static_protobuf_unittest_TestReallyLargeTagNumber__FieldAccessorTable |
| 533 | = new pb::FieldAccess.FieldAccessorTable<global::Google.ProtocolBuffers.TestProtos.TestReallyLargeTagNumber, global::Google.ProtocolBuffers.TestProtos.TestReallyLargeTagNumber.Builder>(internal__static_protobuf_unittest_TestReallyLargeTagNumber__Descriptor, |
| 534 | new string[] { "A", "Bb", }); |
| 535 | internal static readonly pbd::MessageDescriptor internal__static_protobuf_unittest_TestRecursiveMessage__Descriptor |
| 536 | = Descriptor.MessageTypes[11]; |
| 537 | internal static pb::FieldAccess.FieldAccessorTable<global::Google.ProtocolBuffers.TestProtos.TestRecursiveMessage, global::Google.ProtocolBuffers.TestProtos.TestRecursiveMessage.Builder> internal__static_protobuf_unittest_TestRecursiveMessage__FieldAccessorTable |
| 538 | = new pb::FieldAccess.FieldAccessorTable<global::Google.ProtocolBuffers.TestProtos.TestRecursiveMessage, global::Google.ProtocolBuffers.TestProtos.TestRecursiveMessage.Builder>(internal__static_protobuf_unittest_TestRecursiveMessage__Descriptor, |
| 539 | new string[] { "A", "I", }); |
| 540 | internal static readonly pbd::MessageDescriptor internal__static_protobuf_unittest_TestMutualRecursionA__Descriptor |
| 541 | = Descriptor.MessageTypes[12]; |
| 542 | internal static pb::FieldAccess.FieldAccessorTable<global::Google.ProtocolBuffers.TestProtos.TestMutualRecursionA, global::Google.ProtocolBuffers.TestProtos.TestMutualRecursionA.Builder> internal__static_protobuf_unittest_TestMutualRecursionA__FieldAccessorTable |
| 543 | = new pb::FieldAccess.FieldAccessorTable<global::Google.ProtocolBuffers.TestProtos.TestMutualRecursionA, global::Google.ProtocolBuffers.TestProtos.TestMutualRecursionA.Builder>(internal__static_protobuf_unittest_TestMutualRecursionA__Descriptor, |
| 544 | new string[] { "Bb", }); |
| 545 | internal static readonly pbd::MessageDescriptor internal__static_protobuf_unittest_TestMutualRecursionB__Descriptor |
| 546 | = Descriptor.MessageTypes[13]; |
| 547 | internal static pb::FieldAccess.FieldAccessorTable<global::Google.ProtocolBuffers.TestProtos.TestMutualRecursionB, global::Google.ProtocolBuffers.TestProtos.TestMutualRecursionB.Builder> internal__static_protobuf_unittest_TestMutualRecursionB__FieldAccessorTable |
| 548 | = new pb::FieldAccess.FieldAccessorTable<global::Google.ProtocolBuffers.TestProtos.TestMutualRecursionB, global::Google.ProtocolBuffers.TestProtos.TestMutualRecursionB.Builder>(internal__static_protobuf_unittest_TestMutualRecursionB__Descriptor, |
| 549 | new string[] { "A", "OptionalInt32", }); |
| 550 | internal static readonly pbd::MessageDescriptor internal__static_protobuf_unittest_TestDupFieldNumber__Descriptor |
| 551 | = Descriptor.MessageTypes[14]; |
| 552 | internal static pb::FieldAccess.FieldAccessorTable<global::Google.ProtocolBuffers.TestProtos.TestDupFieldNumber, global::Google.ProtocolBuffers.TestProtos.TestDupFieldNumber.Builder> internal__static_protobuf_unittest_TestDupFieldNumber__FieldAccessorTable |
| 553 | = new pb::FieldAccess.FieldAccessorTable<global::Google.ProtocolBuffers.TestProtos.TestDupFieldNumber, global::Google.ProtocolBuffers.TestProtos.TestDupFieldNumber.Builder>(internal__static_protobuf_unittest_TestDupFieldNumber__Descriptor, |
| 554 | new string[] { "A", "Foo", "Bar", }); |
| 555 | internal static readonly pbd::MessageDescriptor internal__static_protobuf_unittest_TestDupFieldNumber_Foo__Descriptor |
| 556 | = internal__static_protobuf_unittest_TestDupFieldNumber__Descriptor.NestedTypes[0]; |
| 557 | internal static pb::FieldAccess.FieldAccessorTable<global::Google.ProtocolBuffers.TestProtos.TestDupFieldNumber.Types.Foo, global::Google.ProtocolBuffers.TestProtos.TestDupFieldNumber.Types.Foo.Builder> internal__static_protobuf_unittest_TestDupFieldNumber_Foo__FieldAccessorTable |
| 558 | = new pb::FieldAccess.FieldAccessorTable<global::Google.ProtocolBuffers.TestProtos.TestDupFieldNumber.Types.Foo, global::Google.ProtocolBuffers.TestProtos.TestDupFieldNumber.Types.Foo.Builder>(internal__static_protobuf_unittest_TestDupFieldNumber_Foo__Descriptor, |
| 559 | new string[] { "A", }); |
| 560 | internal static readonly pbd::MessageDescriptor internal__static_protobuf_unittest_TestDupFieldNumber_Bar__Descriptor |
| 561 | = internal__static_protobuf_unittest_TestDupFieldNumber__Descriptor.NestedTypes[1]; |
| 562 | internal static pb::FieldAccess.FieldAccessorTable<global::Google.ProtocolBuffers.TestProtos.TestDupFieldNumber.Types.Bar, global::Google.ProtocolBuffers.TestProtos.TestDupFieldNumber.Types.Bar.Builder> internal__static_protobuf_unittest_TestDupFieldNumber_Bar__FieldAccessorTable |
| 563 | = new pb::FieldAccess.FieldAccessorTable<global::Google.ProtocolBuffers.TestProtos.TestDupFieldNumber.Types.Bar, global::Google.ProtocolBuffers.TestProtos.TestDupFieldNumber.Types.Bar.Builder>(internal__static_protobuf_unittest_TestDupFieldNumber_Bar__Descriptor, |
| 564 | new string[] { "A", }); |
| 565 | internal static readonly pbd::MessageDescriptor internal__static_protobuf_unittest_TestNestedMessageHasBits__Descriptor |
| 566 | = Descriptor.MessageTypes[15]; |
| 567 | internal static pb::FieldAccess.FieldAccessorTable<global::Google.ProtocolBuffers.TestProtos.TestNestedMessageHasBits, global::Google.ProtocolBuffers.TestProtos.TestNestedMessageHasBits.Builder> internal__static_protobuf_unittest_TestNestedMessageHasBits__FieldAccessorTable |
| 568 | = new pb::FieldAccess.FieldAccessorTable<global::Google.ProtocolBuffers.TestProtos.TestNestedMessageHasBits, global::Google.ProtocolBuffers.TestProtos.TestNestedMessageHasBits.Builder>(internal__static_protobuf_unittest_TestNestedMessageHasBits__Descriptor, |
| 569 | new string[] { "OptionalNestedMessage", }); |
| 570 | internal static readonly pbd::MessageDescriptor internal__static_protobuf_unittest_TestNestedMessageHasBits_NestedMessage__Descriptor |
| 571 | = internal__static_protobuf_unittest_TestNestedMessageHasBits__Descriptor.NestedTypes[0]; |
| 572 | internal static pb::FieldAccess.FieldAccessorTable<global::Google.ProtocolBuffers.TestProtos.TestNestedMessageHasBits.Types.NestedMessage, global::Google.ProtocolBuffers.TestProtos.TestNestedMessageHasBits.Types.NestedMessage.Builder> internal__static_protobuf_unittest_TestNestedMessageHasBits_NestedMessage__FieldAccessorTable |
| 573 | = new pb::FieldAccess.FieldAccessorTable<global::Google.ProtocolBuffers.TestProtos.TestNestedMessageHasBits.Types.NestedMessage, global::Google.ProtocolBuffers.TestProtos.TestNestedMessageHasBits.Types.NestedMessage.Builder>(internal__static_protobuf_unittest_TestNestedMessageHasBits_NestedMessage__Descriptor, |
| 574 | new string[] { "NestedmessageRepeatedInt32", "NestedmessageRepeatedForeignmessage", }); |
| 575 | internal static readonly pbd::MessageDescriptor internal__static_protobuf_unittest_TestCamelCaseFieldNames__Descriptor |
| 576 | = Descriptor.MessageTypes[16]; |
| 577 | internal static pb::FieldAccess.FieldAccessorTable<global::Google.ProtocolBuffers.TestProtos.TestCamelCaseFieldNames, global::Google.ProtocolBuffers.TestProtos.TestCamelCaseFieldNames.Builder> internal__static_protobuf_unittest_TestCamelCaseFieldNames__FieldAccessorTable |
| 578 | = new pb::FieldAccess.FieldAccessorTable<global::Google.ProtocolBuffers.TestProtos.TestCamelCaseFieldNames, global::Google.ProtocolBuffers.TestProtos.TestCamelCaseFieldNames.Builder>(internal__static_protobuf_unittest_TestCamelCaseFieldNames__Descriptor, |
| 579 | new string[] { "PrimitiveField", "StringField", "EnumField", "MessageField", "StringPieceField", "CordField", "RepeatedPrimitiveField", "RepeatedStringField", "RepeatedEnumField", "RepeatedMessageField", "RepeatedStringPieceField", "RepeatedCordField", }); |
| 580 | internal static readonly pbd::MessageDescriptor internal__static_protobuf_unittest_TestFieldOrderings__Descriptor |
| 581 | = Descriptor.MessageTypes[17]; |
| 582 | internal static pb::FieldAccess.FieldAccessorTable<global::Google.ProtocolBuffers.TestProtos.TestFieldOrderings, global::Google.ProtocolBuffers.TestProtos.TestFieldOrderings.Builder> internal__static_protobuf_unittest_TestFieldOrderings__FieldAccessorTable |
| 583 | = new pb::FieldAccess.FieldAccessorTable<global::Google.ProtocolBuffers.TestProtos.TestFieldOrderings, global::Google.ProtocolBuffers.TestProtos.TestFieldOrderings.Builder>(internal__static_protobuf_unittest_TestFieldOrderings__Descriptor, |
| 584 | new string[] { "MyString", "MyInt", "MyFloat", }); |
| 585 | internal static readonly pbd::MessageDescriptor internal__static_protobuf_unittest_TestExtremeDefaultValues__Descriptor |
| 586 | = Descriptor.MessageTypes[18]; |
| 587 | internal static pb::FieldAccess.FieldAccessorTable<global::Google.ProtocolBuffers.TestProtos.TestExtremeDefaultValues, global::Google.ProtocolBuffers.TestProtos.TestExtremeDefaultValues.Builder> internal__static_protobuf_unittest_TestExtremeDefaultValues__FieldAccessorTable |
| 588 | = new pb::FieldAccess.FieldAccessorTable<global::Google.ProtocolBuffers.TestProtos.TestExtremeDefaultValues, global::Google.ProtocolBuffers.TestProtos.TestExtremeDefaultValues.Builder>(internal__static_protobuf_unittest_TestExtremeDefaultValues__Descriptor, |
| 589 | new string[] { "EscapedBytes", "LargeUint32", "LargeUint64", "SmallInt32", "SmallInt64", "Utf8String", }); |
| 590 | internal static readonly pbd::MessageDescriptor internal__static_protobuf_unittest_FooRequest__Descriptor |
| 591 | = Descriptor.MessageTypes[19]; |
| 592 | internal static pb::FieldAccess.FieldAccessorTable<global::Google.ProtocolBuffers.TestProtos.FooRequest, global::Google.ProtocolBuffers.TestProtos.FooRequest.Builder> internal__static_protobuf_unittest_FooRequest__FieldAccessorTable |
| 593 | = new pb::FieldAccess.FieldAccessorTable<global::Google.ProtocolBuffers.TestProtos.FooRequest, global::Google.ProtocolBuffers.TestProtos.FooRequest.Builder>(internal__static_protobuf_unittest_FooRequest__Descriptor, |
| 594 | new string[] { }); |
| 595 | internal static readonly pbd::MessageDescriptor internal__static_protobuf_unittest_FooResponse__Descriptor |
| 596 | = Descriptor.MessageTypes[20]; |
| 597 | internal static pb::FieldAccess.FieldAccessorTable<global::Google.ProtocolBuffers.TestProtos.FooResponse, global::Google.ProtocolBuffers.TestProtos.FooResponse.Builder> internal__static_protobuf_unittest_FooResponse__FieldAccessorTable |
| 598 | = new pb::FieldAccess.FieldAccessorTable<global::Google.ProtocolBuffers.TestProtos.FooResponse, global::Google.ProtocolBuffers.TestProtos.FooResponse.Builder>(internal__static_protobuf_unittest_FooResponse__Descriptor, |
| 599 | new string[] { }); |
| 600 | internal static readonly pbd::MessageDescriptor internal__static_protobuf_unittest_BarRequest__Descriptor |
| 601 | = Descriptor.MessageTypes[21]; |
| 602 | internal static pb::FieldAccess.FieldAccessorTable<global::Google.ProtocolBuffers.TestProtos.BarRequest, global::Google.ProtocolBuffers.TestProtos.BarRequest.Builder> internal__static_protobuf_unittest_BarRequest__FieldAccessorTable |
| 603 | = new pb::FieldAccess.FieldAccessorTable<global::Google.ProtocolBuffers.TestProtos.BarRequest, global::Google.ProtocolBuffers.TestProtos.BarRequest.Builder>(internal__static_protobuf_unittest_BarRequest__Descriptor, |
| 604 | new string[] { }); |
| 605 | internal static readonly pbd::MessageDescriptor internal__static_protobuf_unittest_BarResponse__Descriptor |
| 606 | = Descriptor.MessageTypes[22]; |
| 607 | internal static pb::FieldAccess.FieldAccessorTable<global::Google.ProtocolBuffers.TestProtos.BarResponse, global::Google.ProtocolBuffers.TestProtos.BarResponse.Builder> internal__static_protobuf_unittest_BarResponse__FieldAccessorTable |
| 608 | = new pb::FieldAccess.FieldAccessorTable<global::Google.ProtocolBuffers.TestProtos.BarResponse, global::Google.ProtocolBuffers.TestProtos.BarResponse.Builder>(internal__static_protobuf_unittest_BarResponse__Descriptor, |
| 609 | new string[] { }); |
| 610 | #endregion |
| 611 | } |
| 612 | #region Enums |
| 613 | public enum ForeignEnum { |
| 614 | FOREIGN_FOO = 4, |
| 615 | FOREIGN_BAR = 5, |
| 616 | FOREIGN_BAZ = 6, |
| 617 | } |
| 618 | |
| 619 | public enum TestEnumWithDupValue { |
| 620 | FOO1 = 1, |
| 621 | BAR1 = 2, |
| 622 | BAZ = 3, |
| 623 | FOO2 = 1, |
| 624 | BAR2 = 2, |
| 625 | } |
| 626 | |
| 627 | public enum TestSparseEnum { |
| 628 | SPARSE_A = 123, |
| 629 | SPARSE_B = 62374, |
| 630 | SPARSE_C = 12589234, |
| 631 | SPARSE_D = -15, |
| 632 | SPARSE_E = -53452, |
| 633 | SPARSE_F = 0, |
| 634 | SPARSE_G = 2, |
| 635 | } |
| 636 | |
| 637 | #endregion |
| 638 | |
| 639 | #region Messages |
| 640 | public sealed partial class TestAllTypes : pb::GeneratedMessage<TestAllTypes, TestAllTypes.Builder> { |
| 641 | private static readonly TestAllTypes defaultInstance = new Builder().BuildPartial(); |
| 642 | public static TestAllTypes DefaultInstance { |
| 643 | get { return defaultInstance; } |
| 644 | } |
| 645 | |
| 646 | public override TestAllTypes DefaultInstanceForType { |
| 647 | get { return defaultInstance; } |
| 648 | } |
| 649 | |
| 650 | protected override TestAllTypes ThisMessage { |
| 651 | get { return this; } |
| 652 | } |
| 653 | |
| 654 | public static pbd::MessageDescriptor Descriptor { |
| 655 | get { return global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.internal__static_protobuf_unittest_TestAllTypes__Descriptor; } |
| 656 | } |
| 657 | |
| 658 | protected override pb::FieldAccess.FieldAccessorTable<TestAllTypes, TestAllTypes.Builder> InternalFieldAccessors { |
| 659 | get { return global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.internal__static_protobuf_unittest_TestAllTypes__FieldAccessorTable; } |
| 660 | } |
| 661 | |
| 662 | #region Nested types |
| 663 | public static class Types { |
| 664 | public enum NestedEnum { |
| 665 | FOO = 1, |
| 666 | BAR = 2, |
| 667 | BAZ = 3, |
| 668 | } |
| 669 | |
| 670 | public sealed partial class NestedMessage : pb::GeneratedMessage<NestedMessage, NestedMessage.Builder> { |
| 671 | private static readonly NestedMessage defaultInstance = new Builder().BuildPartial(); |
| 672 | public static NestedMessage DefaultInstance { |
| 673 | get { return defaultInstance; } |
| 674 | } |
| 675 | |
| 676 | public override NestedMessage DefaultInstanceForType { |
| 677 | get { return defaultInstance; } |
| 678 | } |
| 679 | |
| 680 | protected override NestedMessage ThisMessage { |
| 681 | get { return this; } |
| 682 | } |
| 683 | |
| 684 | public static pbd::MessageDescriptor Descriptor { |
| 685 | get { return global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.internal__static_protobuf_unittest_TestAllTypes_NestedMessage__Descriptor; } |
| 686 | } |
| 687 | |
| 688 | protected override pb::FieldAccess.FieldAccessorTable<NestedMessage, NestedMessage.Builder> InternalFieldAccessors { |
| 689 | get { return global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.internal__static_protobuf_unittest_TestAllTypes_NestedMessage__FieldAccessorTable; } |
| 690 | } |
| 691 | |
| 692 | private bool hasBb; |
| 693 | private int bb_ = 0; |
| 694 | public bool HasBb { |
| 695 | get { return hasBb; } |
| 696 | } |
| 697 | public int Bb { |
| 698 | get { return bb_; } |
| 699 | } |
| 700 | |
| 701 | public override bool IsInitialized { |
| 702 | get { |
| 703 | return true; |
| 704 | } |
| 705 | } |
| 706 | |
| 707 | public override void WriteTo(pb::CodedOutputStream output) { |
| 708 | if (HasBb) { |
| 709 | output.WriteInt32(1, Bb); |
| 710 | } |
| 711 | UnknownFields.WriteTo(output); |
| 712 | } |
| 713 | |
| 714 | private int memoizedSerializedSize = -1; |
| 715 | public override int SerializedSize { |
| 716 | get { |
| 717 | int size = memoizedSerializedSize; |
| 718 | if (size != -1) return size; |
| 719 | |
| 720 | size = 0; |
| 721 | if (HasBb) { |
| 722 | size += pb::CodedOutputStream.ComputeInt32Size(1, Bb); |
| 723 | } |
| 724 | size += UnknownFields.SerializedSize; |
| 725 | memoizedSerializedSize = size; |
| 726 | return size; |
| 727 | } |
| 728 | } |
| 729 | |
| 730 | public static NestedMessage ParseFrom(pb::ByteString data) { |
| 731 | return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed(); |
| 732 | } |
| 733 | public static NestedMessage ParseFrom(pb::ByteString data, pb::ExtensionRegistry extensionRegistry) { |
| 734 | return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed(); |
| 735 | } |
| 736 | public static NestedMessage ParseFrom(byte[] data) { |
| 737 | return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed(); |
| 738 | } |
| 739 | public static NestedMessage ParseFrom(byte[] data, pb::ExtensionRegistry extensionRegistry) { |
| 740 | return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed(); |
| 741 | } |
| 742 | public static NestedMessage ParseFrom(global::System.IO.Stream input) { |
| 743 | return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed(); |
| 744 | } |
| 745 | public static NestedMessage ParseFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) { |
| 746 | return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed(); |
| 747 | } |
| 748 | public static NestedMessage ParseFrom(pb::CodedInputStream input) { |
| 749 | return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed(); |
| 750 | } |
| 751 | public static NestedMessage ParseFrom(pb::CodedInputStream input, pb::ExtensionRegistry extensionRegistry) { |
| 752 | return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed(); |
| 753 | } |
| 754 | public static Builder CreateBuilder() { return new Builder(); } |
| 755 | public override Builder CreateBuilderForType() { return new Builder(); } |
| 756 | public static Builder CreateBuilder(NestedMessage prototype) { |
| 757 | return (Builder) new Builder().MergeFrom(prototype); |
| 758 | } |
| 759 | |
| 760 | public sealed partial class Builder : pb::GeneratedBuilder<NestedMessage, Builder> { |
| 761 | protected override Builder ThisBuilder { |
| 762 | get { return this; } |
| 763 | } |
| 764 | public Builder() {} |
| 765 | |
| 766 | NestedMessage result = new NestedMessage(); |
| 767 | |
| 768 | protected override NestedMessage MessageBeingBuilt { |
| 769 | get { return result; } |
| 770 | } |
| 771 | |
| 772 | public override Builder Clear() { |
| 773 | result = new NestedMessage(); |
| 774 | return this; |
| 775 | } |
| 776 | |
| 777 | public override Builder Clone() { |
| 778 | return new Builder().MergeFrom(result); |
| 779 | } |
| 780 | |
| 781 | public override pbd::MessageDescriptor DescriptorForType { |
| 782 | get { return NestedMessage.Descriptor; } |
| 783 | } |
| 784 | |
| 785 | public override NestedMessage DefaultInstanceForType { |
| 786 | get { return NestedMessage.DefaultInstance; } |
| 787 | } |
| 788 | |
| 789 | public override NestedMessage BuildPartial() { |
| 790 | NestedMessage returnMe = result; |
| 791 | result = null; |
| 792 | return returnMe; |
| 793 | } |
| 794 | |
| 795 | public override Builder MergeFrom(pb::IMessage other) { |
| 796 | if (other is NestedMessage) { |
| 797 | return MergeFrom((NestedMessage) other); |
| 798 | } else { |
| 799 | base.MergeFrom(other); |
| 800 | return this; |
| 801 | } |
| 802 | } |
| 803 | |
| 804 | public override Builder MergeFrom(NestedMessage other) { |
| 805 | if (other == NestedMessage.DefaultInstance) return this; |
| 806 | if (other.HasBb) { |
| 807 | Bb = other.Bb; |
| 808 | } |
| 809 | this.MergeUnknownFields(other.UnknownFields); |
| 810 | return this; |
| 811 | } |
| 812 | |
| 813 | public override Builder MergeFrom(pb::CodedInputStream input) { |
| 814 | return MergeFrom(input, pb::ExtensionRegistry.Empty); |
| 815 | } |
| 816 | |
| 817 | public override Builder MergeFrom(pb::CodedInputStream input, pb::ExtensionRegistry extensionRegistry) { |
| 818 | pb::UnknownFieldSet.Builder unknownFields = pb::UnknownFieldSet.CreateBuilder(this.UnknownFields); |
| 819 | while (true) { |
| 820 | uint tag = input.ReadTag(); |
| 821 | switch (tag) { |
| 822 | case 0: { |
| 823 | this.UnknownFields = unknownFields.Build(); |
| 824 | return this; |
| 825 | } |
| 826 | default: { |
| 827 | if (!ParseUnknownField(input, unknownFields, extensionRegistry, tag)) { |
| 828 | this.UnknownFields = unknownFields.Build(); |
| 829 | return this; |
| 830 | } |
| 831 | break; |
| 832 | } |
| 833 | case 8: { |
| 834 | Bb = input.ReadInt32(); |
| 835 | break; |
| 836 | } |
| 837 | } |
| 838 | } |
| 839 | } |
| 840 | |
| 841 | |
| 842 | public bool HasBb { |
| 843 | get { return result.HasBb; } |
| 844 | } |
| 845 | public int Bb { |
| 846 | get { return result.Bb; } |
| 847 | set { SetBb(value); } |
| 848 | } |
| 849 | public Builder SetBb(int value) { |
| 850 | result.hasBb = true; |
| 851 | result.bb_ = value; |
| 852 | return this; |
| 853 | } |
| 854 | public Builder ClearBb() { |
| 855 | result.hasBb = false; |
| 856 | result.bb_ = 0; |
| 857 | return this; |
| 858 | } |
| 859 | } |
| 860 | } |
| 861 | |
| 862 | public sealed partial class OptionalGroup : pb::GeneratedMessage<OptionalGroup, OptionalGroup.Builder> { |
| 863 | private static readonly OptionalGroup defaultInstance = new Builder().BuildPartial(); |
| 864 | public static OptionalGroup DefaultInstance { |
| 865 | get { return defaultInstance; } |
| 866 | } |
| 867 | |
| 868 | public override OptionalGroup DefaultInstanceForType { |
| 869 | get { return defaultInstance; } |
| 870 | } |
| 871 | |
| 872 | protected override OptionalGroup ThisMessage { |
| 873 | get { return this; } |
| 874 | } |
| 875 | |
| 876 | public static pbd::MessageDescriptor Descriptor { |
| 877 | get { return global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.internal__static_protobuf_unittest_TestAllTypes_OptionalGroup__Descriptor; } |
| 878 | } |
| 879 | |
| 880 | protected override pb::FieldAccess.FieldAccessorTable<OptionalGroup, OptionalGroup.Builder> InternalFieldAccessors { |
| 881 | get { return global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.internal__static_protobuf_unittest_TestAllTypes_OptionalGroup__FieldAccessorTable; } |
| 882 | } |
| 883 | |
| 884 | private bool hasA; |
| 885 | private int a_ = 0; |
| 886 | public bool HasA { |
| 887 | get { return hasA; } |
| 888 | } |
| 889 | public int A { |
| 890 | get { return a_; } |
| 891 | } |
| 892 | |
| 893 | public override bool IsInitialized { |
| 894 | get { |
| 895 | return true; |
| 896 | } |
| 897 | } |
| 898 | |
| 899 | public override void WriteTo(pb::CodedOutputStream output) { |
| 900 | if (HasA) { |
| 901 | output.WriteInt32(17, A); |
| 902 | } |
| 903 | UnknownFields.WriteTo(output); |
| 904 | } |
| 905 | |
| 906 | private int memoizedSerializedSize = -1; |
| 907 | public override int SerializedSize { |
| 908 | get { |
| 909 | int size = memoizedSerializedSize; |
| 910 | if (size != -1) return size; |
| 911 | |
| 912 | size = 0; |
| 913 | if (HasA) { |
| 914 | size += pb::CodedOutputStream.ComputeInt32Size(17, A); |
| 915 | } |
| 916 | size += UnknownFields.SerializedSize; |
| 917 | memoizedSerializedSize = size; |
| 918 | return size; |
| 919 | } |
| 920 | } |
| 921 | |
| 922 | public static OptionalGroup ParseFrom(pb::ByteString data) { |
| 923 | return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed(); |
| 924 | } |
| 925 | public static OptionalGroup ParseFrom(pb::ByteString data, pb::ExtensionRegistry extensionRegistry) { |
| 926 | return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed(); |
| 927 | } |
| 928 | public static OptionalGroup ParseFrom(byte[] data) { |
| 929 | return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed(); |
| 930 | } |
| 931 | public static OptionalGroup ParseFrom(byte[] data, pb::ExtensionRegistry extensionRegistry) { |
| 932 | return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed(); |
| 933 | } |
| 934 | public static OptionalGroup ParseFrom(global::System.IO.Stream input) { |
| 935 | return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed(); |
| 936 | } |
| 937 | public static OptionalGroup ParseFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) { |
| 938 | return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed(); |
| 939 | } |
| 940 | public static OptionalGroup ParseFrom(pb::CodedInputStream input) { |
| 941 | return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed(); |
| 942 | } |
| 943 | public static OptionalGroup ParseFrom(pb::CodedInputStream input, pb::ExtensionRegistry extensionRegistry) { |
| 944 | return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed(); |
| 945 | } |
| 946 | public static Builder CreateBuilder() { return new Builder(); } |
| 947 | public override Builder CreateBuilderForType() { return new Builder(); } |
| 948 | public static Builder CreateBuilder(OptionalGroup prototype) { |
| 949 | return (Builder) new Builder().MergeFrom(prototype); |
| 950 | } |
| 951 | |
| 952 | public sealed partial class Builder : pb::GeneratedBuilder<OptionalGroup, Builder> { |
| 953 | protected override Builder ThisBuilder { |
| 954 | get { return this; } |
| 955 | } |
| 956 | public Builder() {} |
| 957 | |
| 958 | OptionalGroup result = new OptionalGroup(); |
| 959 | |
| 960 | protected override OptionalGroup MessageBeingBuilt { |
| 961 | get { return result; } |
| 962 | } |
| 963 | |
| 964 | public override Builder Clear() { |
| 965 | result = new OptionalGroup(); |
| 966 | return this; |
| 967 | } |
| 968 | |
| 969 | public override Builder Clone() { |
| 970 | return new Builder().MergeFrom(result); |
| 971 | } |
| 972 | |
| 973 | public override pbd::MessageDescriptor DescriptorForType { |
| 974 | get { return OptionalGroup.Descriptor; } |
| 975 | } |
| 976 | |
| 977 | public override OptionalGroup DefaultInstanceForType { |
| 978 | get { return OptionalGroup.DefaultInstance; } |
| 979 | } |
| 980 | |
| 981 | public override OptionalGroup BuildPartial() { |
| 982 | OptionalGroup returnMe = result; |
| 983 | result = null; |
| 984 | return returnMe; |
| 985 | } |
| 986 | |
| 987 | public override Builder MergeFrom(pb::IMessage other) { |
| 988 | if (other is OptionalGroup) { |
| 989 | return MergeFrom((OptionalGroup) other); |
| 990 | } else { |
| 991 | base.MergeFrom(other); |
| 992 | return this; |
| 993 | } |
| 994 | } |
| 995 | |
| 996 | public override Builder MergeFrom(OptionalGroup other) { |
| 997 | if (other == OptionalGroup.DefaultInstance) return this; |
| 998 | if (other.HasA) { |
| 999 | A = other.A; |
| 1000 | } |
| 1001 | this.MergeUnknownFields(other.UnknownFields); |
| 1002 | return this; |
| 1003 | } |
| 1004 | |
| 1005 | public override Builder MergeFrom(pb::CodedInputStream input) { |
| 1006 | return MergeFrom(input, pb::ExtensionRegistry.Empty); |
| 1007 | } |
| 1008 | |
| 1009 | public override Builder MergeFrom(pb::CodedInputStream input, pb::ExtensionRegistry extensionRegistry) { |
| 1010 | pb::UnknownFieldSet.Builder unknownFields = pb::UnknownFieldSet.CreateBuilder(this.UnknownFields); |
| 1011 | while (true) { |
| 1012 | uint tag = input.ReadTag(); |
| 1013 | switch (tag) { |
| 1014 | case 0: { |
| 1015 | this.UnknownFields = unknownFields.Build(); |
| 1016 | return this; |
| 1017 | } |
| 1018 | default: { |
| 1019 | if (!ParseUnknownField(input, unknownFields, extensionRegistry, tag)) { |
| 1020 | this.UnknownFields = unknownFields.Build(); |
| 1021 | return this; |
| 1022 | } |
| 1023 | break; |
| 1024 | } |
| 1025 | case 136: { |
| 1026 | A = input.ReadInt32(); |
| 1027 | break; |
| 1028 | } |
| 1029 | } |
| 1030 | } |
| 1031 | } |
| 1032 | |
| 1033 | |
| 1034 | public bool HasA { |
| 1035 | get { return result.HasA; } |
| 1036 | } |
| 1037 | public int A { |
| 1038 | get { return result.A; } |
| 1039 | set { SetA(value); } |
| 1040 | } |
| 1041 | public Builder SetA(int value) { |
| 1042 | result.hasA = true; |
| 1043 | result.a_ = value; |
| 1044 | return this; |
| 1045 | } |
| 1046 | public Builder ClearA() { |
| 1047 | result.hasA = false; |
| 1048 | result.a_ = 0; |
| 1049 | return this; |
| 1050 | } |
| 1051 | } |
| 1052 | } |
| 1053 | |
| 1054 | public sealed partial class RepeatedGroup : pb::GeneratedMessage<RepeatedGroup, RepeatedGroup.Builder> { |
| 1055 | private static readonly RepeatedGroup defaultInstance = new Builder().BuildPartial(); |
| 1056 | public static RepeatedGroup DefaultInstance { |
| 1057 | get { return defaultInstance; } |
| 1058 | } |
| 1059 | |
| 1060 | public override RepeatedGroup DefaultInstanceForType { |
| 1061 | get { return defaultInstance; } |
| 1062 | } |
| 1063 | |
| 1064 | protected override RepeatedGroup ThisMessage { |
| 1065 | get { return this; } |
| 1066 | } |
| 1067 | |
| 1068 | public static pbd::MessageDescriptor Descriptor { |
| 1069 | get { return global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.internal__static_protobuf_unittest_TestAllTypes_RepeatedGroup__Descriptor; } |
| 1070 | } |
| 1071 | |
| 1072 | protected override pb::FieldAccess.FieldAccessorTable<RepeatedGroup, RepeatedGroup.Builder> InternalFieldAccessors { |
| 1073 | get { return global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.internal__static_protobuf_unittest_TestAllTypes_RepeatedGroup__FieldAccessorTable; } |
| 1074 | } |
| 1075 | |
| 1076 | private bool hasA; |
| 1077 | private int a_ = 0; |
| 1078 | public bool HasA { |
| 1079 | get { return hasA; } |
| 1080 | } |
| 1081 | public int A { |
| 1082 | get { return a_; } |
| 1083 | } |
| 1084 | |
| 1085 | public override bool IsInitialized { |
| 1086 | get { |
| 1087 | return true; |
| 1088 | } |
| 1089 | } |
| 1090 | |
| 1091 | public override void WriteTo(pb::CodedOutputStream output) { |
| 1092 | if (HasA) { |
| 1093 | output.WriteInt32(47, A); |
| 1094 | } |
| 1095 | UnknownFields.WriteTo(output); |
| 1096 | } |
| 1097 | |
| 1098 | private int memoizedSerializedSize = -1; |
| 1099 | public override int SerializedSize { |
| 1100 | get { |
| 1101 | int size = memoizedSerializedSize; |
| 1102 | if (size != -1) return size; |
| 1103 | |
| 1104 | size = 0; |
| 1105 | if (HasA) { |
| 1106 | size += pb::CodedOutputStream.ComputeInt32Size(47, A); |
| 1107 | } |
| 1108 | size += UnknownFields.SerializedSize; |
| 1109 | memoizedSerializedSize = size; |
| 1110 | return size; |
| 1111 | } |
| 1112 | } |
| 1113 | |
| 1114 | public static RepeatedGroup ParseFrom(pb::ByteString data) { |
| 1115 | return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed(); |
| 1116 | } |
| 1117 | public static RepeatedGroup ParseFrom(pb::ByteString data, pb::ExtensionRegistry extensionRegistry) { |
| 1118 | return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed(); |
| 1119 | } |
| 1120 | public static RepeatedGroup ParseFrom(byte[] data) { |
| 1121 | return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed(); |
| 1122 | } |
| 1123 | public static RepeatedGroup ParseFrom(byte[] data, pb::ExtensionRegistry extensionRegistry) { |
| 1124 | return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed(); |
| 1125 | } |
| 1126 | public static RepeatedGroup ParseFrom(global::System.IO.Stream input) { |
| 1127 | return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed(); |
| 1128 | } |
| 1129 | public static RepeatedGroup ParseFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) { |
| 1130 | return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed(); |
| 1131 | } |
| 1132 | public static RepeatedGroup ParseFrom(pb::CodedInputStream input) { |
| 1133 | return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed(); |
| 1134 | } |
| 1135 | public static RepeatedGroup ParseFrom(pb::CodedInputStream input, pb::ExtensionRegistry extensionRegistry) { |
| 1136 | return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed(); |
| 1137 | } |
| 1138 | public static Builder CreateBuilder() { return new Builder(); } |
| 1139 | public override Builder CreateBuilderForType() { return new Builder(); } |
| 1140 | public static Builder CreateBuilder(RepeatedGroup prototype) { |
| 1141 | return (Builder) new Builder().MergeFrom(prototype); |
| 1142 | } |
| 1143 | |
| 1144 | public sealed partial class Builder : pb::GeneratedBuilder<RepeatedGroup, Builder> { |
| 1145 | protected override Builder ThisBuilder { |
| 1146 | get { return this; } |
| 1147 | } |
| 1148 | public Builder() {} |
| 1149 | |
| 1150 | RepeatedGroup result = new RepeatedGroup(); |
| 1151 | |
| 1152 | protected override RepeatedGroup MessageBeingBuilt { |
| 1153 | get { return result; } |
| 1154 | } |
| 1155 | |
| 1156 | public override Builder Clear() { |
| 1157 | result = new RepeatedGroup(); |
| 1158 | return this; |
| 1159 | } |
| 1160 | |
| 1161 | public override Builder Clone() { |
| 1162 | return new Builder().MergeFrom(result); |
| 1163 | } |
| 1164 | |
| 1165 | public override pbd::MessageDescriptor DescriptorForType { |
| 1166 | get { return RepeatedGroup.Descriptor; } |
| 1167 | } |
| 1168 | |
| 1169 | public override RepeatedGroup DefaultInstanceForType { |
| 1170 | get { return RepeatedGroup.DefaultInstance; } |
| 1171 | } |
| 1172 | |
| 1173 | public override RepeatedGroup BuildPartial() { |
| 1174 | RepeatedGroup returnMe = result; |
| 1175 | result = null; |
| 1176 | return returnMe; |
| 1177 | } |
| 1178 | |
| 1179 | public override Builder MergeFrom(pb::IMessage other) { |
| 1180 | if (other is RepeatedGroup) { |
| 1181 | return MergeFrom((RepeatedGroup) other); |
| 1182 | } else { |
| 1183 | base.MergeFrom(other); |
| 1184 | return this; |
| 1185 | } |
| 1186 | } |
| 1187 | |
| 1188 | public override Builder MergeFrom(RepeatedGroup other) { |
| 1189 | if (other == RepeatedGroup.DefaultInstance) return this; |
| 1190 | if (other.HasA) { |
| 1191 | A = other.A; |
| 1192 | } |
| 1193 | this.MergeUnknownFields(other.UnknownFields); |
| 1194 | return this; |
| 1195 | } |
| 1196 | |
| 1197 | public override Builder MergeFrom(pb::CodedInputStream input) { |
| 1198 | return MergeFrom(input, pb::ExtensionRegistry.Empty); |
| 1199 | } |
| 1200 | |
| 1201 | public override Builder MergeFrom(pb::CodedInputStream input, pb::ExtensionRegistry extensionRegistry) { |
| 1202 | pb::UnknownFieldSet.Builder unknownFields = pb::UnknownFieldSet.CreateBuilder(this.UnknownFields); |
| 1203 | while (true) { |
| 1204 | uint tag = input.ReadTag(); |
| 1205 | switch (tag) { |
| 1206 | case 0: { |
| 1207 | this.UnknownFields = unknownFields.Build(); |
| 1208 | return this; |
| 1209 | } |
| 1210 | default: { |
| 1211 | if (!ParseUnknownField(input, unknownFields, extensionRegistry, tag)) { |
| 1212 | this.UnknownFields = unknownFields.Build(); |
| 1213 | return this; |
| 1214 | } |
| 1215 | break; |
| 1216 | } |
| 1217 | case 376: { |
| 1218 | A = input.ReadInt32(); |
| 1219 | break; |
| 1220 | } |
| 1221 | } |
| 1222 | } |
| 1223 | } |
| 1224 | |
| 1225 | |
| 1226 | public bool HasA { |
| 1227 | get { return result.HasA; } |
| 1228 | } |
| 1229 | public int A { |
| 1230 | get { return result.A; } |
| 1231 | set { SetA(value); } |
| 1232 | } |
| 1233 | public Builder SetA(int value) { |
| 1234 | result.hasA = true; |
| 1235 | result.a_ = value; |
| 1236 | return this; |
| 1237 | } |
| 1238 | public Builder ClearA() { |
| 1239 | result.hasA = false; |
| 1240 | result.a_ = 0; |
| 1241 | return this; |
| 1242 | } |
| 1243 | } |
| 1244 | } |
| 1245 | |
| 1246 | } |
| 1247 | #endregion |
| 1248 | |
| 1249 | private bool hasOptionalInt32; |
| 1250 | private int optionalInt32_ = 0; |
| 1251 | public bool HasOptionalInt32 { |
| 1252 | get { return hasOptionalInt32; } |
| 1253 | } |
| 1254 | public int OptionalInt32 { |
| 1255 | get { return optionalInt32_; } |
| 1256 | } |
| 1257 | |
| 1258 | private bool hasOptionalInt64; |
| 1259 | private long optionalInt64_ = 0L; |
| 1260 | public bool HasOptionalInt64 { |
| 1261 | get { return hasOptionalInt64; } |
| 1262 | } |
| 1263 | public long OptionalInt64 { |
| 1264 | get { return optionalInt64_; } |
| 1265 | } |
| 1266 | |
| 1267 | private bool hasOptionalUint32; |
| 1268 | private uint optionalUint32_ = 0; |
| 1269 | public bool HasOptionalUint32 { |
| 1270 | get { return hasOptionalUint32; } |
| 1271 | } |
| 1272 | public uint OptionalUint32 { |
| 1273 | get { return optionalUint32_; } |
| 1274 | } |
| 1275 | |
| 1276 | private bool hasOptionalUint64; |
| 1277 | private ulong optionalUint64_ = 0UL; |
| 1278 | public bool HasOptionalUint64 { |
| 1279 | get { return hasOptionalUint64; } |
| 1280 | } |
| 1281 | public ulong OptionalUint64 { |
| 1282 | get { return optionalUint64_; } |
| 1283 | } |
| 1284 | |
| 1285 | private bool hasOptionalSint32; |
| 1286 | private int optionalSint32_ = 0; |
| 1287 | public bool HasOptionalSint32 { |
| 1288 | get { return hasOptionalSint32; } |
| 1289 | } |
| 1290 | public int OptionalSint32 { |
| 1291 | get { return optionalSint32_; } |
| 1292 | } |
| 1293 | |
| 1294 | private bool hasOptionalSint64; |
| 1295 | private long optionalSint64_ = 0; |
| 1296 | public bool HasOptionalSint64 { |
| 1297 | get { return hasOptionalSint64; } |
| 1298 | } |
| 1299 | public long OptionalSint64 { |
| 1300 | get { return optionalSint64_; } |
| 1301 | } |
| 1302 | |
| 1303 | private bool hasOptionalFixed32; |
| 1304 | private uint optionalFixed32_ = 0; |
| 1305 | public bool HasOptionalFixed32 { |
| 1306 | get { return hasOptionalFixed32; } |
| 1307 | } |
| 1308 | public uint OptionalFixed32 { |
| 1309 | get { return optionalFixed32_; } |
| 1310 | } |
| 1311 | |
| 1312 | private bool hasOptionalFixed64; |
| 1313 | private ulong optionalFixed64_ = 0; |
| 1314 | public bool HasOptionalFixed64 { |
| 1315 | get { return hasOptionalFixed64; } |
| 1316 | } |
| 1317 | public ulong OptionalFixed64 { |
| 1318 | get { return optionalFixed64_; } |
| 1319 | } |
| 1320 | |
| 1321 | private bool hasOptionalSfixed32; |
| 1322 | private int optionalSfixed32_ = 0; |
| 1323 | public bool HasOptionalSfixed32 { |
| 1324 | get { return hasOptionalSfixed32; } |
| 1325 | } |
| 1326 | public int OptionalSfixed32 { |
| 1327 | get { return optionalSfixed32_; } |
| 1328 | } |
| 1329 | |
| 1330 | private bool hasOptionalSfixed64; |
| 1331 | private long optionalSfixed64_ = 0; |
| 1332 | public bool HasOptionalSfixed64 { |
| 1333 | get { return hasOptionalSfixed64; } |
| 1334 | } |
| 1335 | public long OptionalSfixed64 { |
| 1336 | get { return optionalSfixed64_; } |
| 1337 | } |
| 1338 | |
| 1339 | private bool hasOptionalFloat; |
| 1340 | private float optionalFloat_ = 0F; |
| 1341 | public bool HasOptionalFloat { |
| 1342 | get { return hasOptionalFloat; } |
| 1343 | } |
| 1344 | public float OptionalFloat { |
| 1345 | get { return optionalFloat_; } |
| 1346 | } |
| 1347 | |
| 1348 | private bool hasOptionalDouble; |
| 1349 | private double optionalDouble_ = 0D; |
| 1350 | public bool HasOptionalDouble { |
| 1351 | get { return hasOptionalDouble; } |
| 1352 | } |
| 1353 | public double OptionalDouble { |
| 1354 | get { return optionalDouble_; } |
| 1355 | } |
| 1356 | |
| 1357 | private bool hasOptionalBool; |
| 1358 | private bool optionalBool_ = false; |
| 1359 | public bool HasOptionalBool { |
| 1360 | get { return hasOptionalBool; } |
| 1361 | } |
| 1362 | public bool OptionalBool { |
| 1363 | get { return optionalBool_; } |
| 1364 | } |
| 1365 | |
| 1366 | private bool hasOptionalString; |
| 1367 | private string optionalString_ = ""; |
| 1368 | public bool HasOptionalString { |
| 1369 | get { return hasOptionalString; } |
| 1370 | } |
| 1371 | public string OptionalString { |
| 1372 | get { return optionalString_; } |
| 1373 | } |
| 1374 | |
| 1375 | private bool hasOptionalBytes; |
| 1376 | private pb::ByteString optionalBytes_ = pb::ByteString.Empty; |
| 1377 | public bool HasOptionalBytes { |
| 1378 | get { return hasOptionalBytes; } |
| 1379 | } |
| 1380 | public pb::ByteString OptionalBytes { |
| 1381 | get { return optionalBytes_; } |
| 1382 | } |
| 1383 | |
| 1384 | private bool hasOptionalGroup; |
| 1385 | private global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.OptionalGroup optionalGroup_ = global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.OptionalGroup.DefaultInstance; |
| 1386 | public bool HasOptionalGroup { |
| 1387 | get { return hasOptionalGroup; } |
| 1388 | } |
| 1389 | public global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.OptionalGroup OptionalGroup { |
| 1390 | get { return optionalGroup_; } |
| 1391 | } |
| 1392 | |
| 1393 | private bool hasOptionalNestedMessage; |
| 1394 | private global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedMessage optionalNestedMessage_ = global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedMessage.DefaultInstance; |
| 1395 | public bool HasOptionalNestedMessage { |
| 1396 | get { return hasOptionalNestedMessage; } |
| 1397 | } |
| 1398 | public global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedMessage OptionalNestedMessage { |
| 1399 | get { return optionalNestedMessage_; } |
| 1400 | } |
| 1401 | |
| 1402 | private bool hasOptionalForeignMessage; |
| 1403 | private global::Google.ProtocolBuffers.TestProtos.ForeignMessage optionalForeignMessage_ = global::Google.ProtocolBuffers.TestProtos.ForeignMessage.DefaultInstance; |
| 1404 | public bool HasOptionalForeignMessage { |
| 1405 | get { return hasOptionalForeignMessage; } |
| 1406 | } |
| 1407 | public global::Google.ProtocolBuffers.TestProtos.ForeignMessage OptionalForeignMessage { |
| 1408 | get { return optionalForeignMessage_; } |
| 1409 | } |
| 1410 | |
| 1411 | private bool hasOptionalImportMessage; |
| 1412 | private global::Google.ProtocolBuffers.TestProtos.ImportMessage optionalImportMessage_ = global::Google.ProtocolBuffers.TestProtos.ImportMessage.DefaultInstance; |
| 1413 | public bool HasOptionalImportMessage { |
| 1414 | get { return hasOptionalImportMessage; } |
| 1415 | } |
| 1416 | public global::Google.ProtocolBuffers.TestProtos.ImportMessage OptionalImportMessage { |
| 1417 | get { return optionalImportMessage_; } |
| 1418 | } |
| 1419 | |
| 1420 | private bool hasOptionalNestedEnum; |
| 1421 | private global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedEnum optionalNestedEnum_ = global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedEnum.FOO; |
| 1422 | public bool HasOptionalNestedEnum { |
| 1423 | get { return hasOptionalNestedEnum; } |
| 1424 | } |
| 1425 | public global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedEnum OptionalNestedEnum { |
| 1426 | get { return optionalNestedEnum_; } |
| 1427 | } |
| 1428 | |
| 1429 | private bool hasOptionalForeignEnum; |
| 1430 | private global::Google.ProtocolBuffers.TestProtos.ForeignEnum optionalForeignEnum_ = global::Google.ProtocolBuffers.TestProtos.ForeignEnum.FOREIGN_FOO; |
| 1431 | public bool HasOptionalForeignEnum { |
| 1432 | get { return hasOptionalForeignEnum; } |
| 1433 | } |
| 1434 | public global::Google.ProtocolBuffers.TestProtos.ForeignEnum OptionalForeignEnum { |
| 1435 | get { return optionalForeignEnum_; } |
| 1436 | } |
| 1437 | |
| 1438 | private bool hasOptionalImportEnum; |
| 1439 | private global::Google.ProtocolBuffers.TestProtos.ImportEnum optionalImportEnum_ = global::Google.ProtocolBuffers.TestProtos.ImportEnum.IMPORT_FOO; |
| 1440 | public bool HasOptionalImportEnum { |
| 1441 | get { return hasOptionalImportEnum; } |
| 1442 | } |
| 1443 | public global::Google.ProtocolBuffers.TestProtos.ImportEnum OptionalImportEnum { |
| 1444 | get { return optionalImportEnum_; } |
| 1445 | } |
| 1446 | |
| 1447 | private bool hasOptionalStringPiece; |
| 1448 | private string optionalStringPiece_ = ""; |
| 1449 | public bool HasOptionalStringPiece { |
| 1450 | get { return hasOptionalStringPiece; } |
| 1451 | } |
| 1452 | public string OptionalStringPiece { |
| 1453 | get { return optionalStringPiece_; } |
| 1454 | } |
| 1455 | |
| 1456 | private bool hasOptionalCord; |
| 1457 | private string optionalCord_ = ""; |
| 1458 | public bool HasOptionalCord { |
| 1459 | get { return hasOptionalCord; } |
| 1460 | } |
| 1461 | public string OptionalCord { |
| 1462 | get { return optionalCord_; } |
| 1463 | } |
| 1464 | |
| 1465 | private pbc::PopsicleList<int> repeatedInt32_ = new pbc::PopsicleList<int>(); |
| 1466 | public scg::IList<int> RepeatedInt32List { |
| 1467 | get { return pbc::Lists.AsReadOnly(repeatedInt32_); } |
| 1468 | } |
| 1469 | public int RepeatedInt32Count { |
| 1470 | get { return repeatedInt32_.Count; } |
| 1471 | } |
| 1472 | public int GetRepeatedInt32(int index) { |
| 1473 | return repeatedInt32_[index]; |
| 1474 | } |
| 1475 | |
| 1476 | private pbc::PopsicleList<long> repeatedInt64_ = new pbc::PopsicleList<long>(); |
| 1477 | public scg::IList<long> RepeatedInt64List { |
| 1478 | get { return pbc::Lists.AsReadOnly(repeatedInt64_); } |
| 1479 | } |
| 1480 | public int RepeatedInt64Count { |
| 1481 | get { return repeatedInt64_.Count; } |
| 1482 | } |
| 1483 | public long GetRepeatedInt64(int index) { |
| 1484 | return repeatedInt64_[index]; |
| 1485 | } |
| 1486 | |
| 1487 | private pbc::PopsicleList<uint> repeatedUint32_ = new pbc::PopsicleList<uint>(); |
| 1488 | public scg::IList<uint> RepeatedUint32List { |
| 1489 | get { return pbc::Lists.AsReadOnly(repeatedUint32_); } |
| 1490 | } |
| 1491 | public int RepeatedUint32Count { |
| 1492 | get { return repeatedUint32_.Count; } |
| 1493 | } |
| 1494 | public uint GetRepeatedUint32(int index) { |
| 1495 | return repeatedUint32_[index]; |
| 1496 | } |
| 1497 | |
| 1498 | private pbc::PopsicleList<ulong> repeatedUint64_ = new pbc::PopsicleList<ulong>(); |
| 1499 | public scg::IList<ulong> RepeatedUint64List { |
| 1500 | get { return pbc::Lists.AsReadOnly(repeatedUint64_); } |
| 1501 | } |
| 1502 | public int RepeatedUint64Count { |
| 1503 | get { return repeatedUint64_.Count; } |
| 1504 | } |
| 1505 | public ulong GetRepeatedUint64(int index) { |
| 1506 | return repeatedUint64_[index]; |
| 1507 | } |
| 1508 | |
| 1509 | private pbc::PopsicleList<int> repeatedSint32_ = new pbc::PopsicleList<int>(); |
| 1510 | public scg::IList<int> RepeatedSint32List { |
| 1511 | get { return pbc::Lists.AsReadOnly(repeatedSint32_); } |
| 1512 | } |
| 1513 | public int RepeatedSint32Count { |
| 1514 | get { return repeatedSint32_.Count; } |
| 1515 | } |
| 1516 | public int GetRepeatedSint32(int index) { |
| 1517 | return repeatedSint32_[index]; |
| 1518 | } |
| 1519 | |
| 1520 | private pbc::PopsicleList<long> repeatedSint64_ = new pbc::PopsicleList<long>(); |
| 1521 | public scg::IList<long> RepeatedSint64List { |
| 1522 | get { return pbc::Lists.AsReadOnly(repeatedSint64_); } |
| 1523 | } |
| 1524 | public int RepeatedSint64Count { |
| 1525 | get { return repeatedSint64_.Count; } |
| 1526 | } |
| 1527 | public long GetRepeatedSint64(int index) { |
| 1528 | return repeatedSint64_[index]; |
| 1529 | } |
| 1530 | |
| 1531 | private pbc::PopsicleList<uint> repeatedFixed32_ = new pbc::PopsicleList<uint>(); |
| 1532 | public scg::IList<uint> RepeatedFixed32List { |
| 1533 | get { return pbc::Lists.AsReadOnly(repeatedFixed32_); } |
| 1534 | } |
| 1535 | public int RepeatedFixed32Count { |
| 1536 | get { return repeatedFixed32_.Count; } |
| 1537 | } |
| 1538 | public uint GetRepeatedFixed32(int index) { |
| 1539 | return repeatedFixed32_[index]; |
| 1540 | } |
| 1541 | |
| 1542 | private pbc::PopsicleList<ulong> repeatedFixed64_ = new pbc::PopsicleList<ulong>(); |
| 1543 | public scg::IList<ulong> RepeatedFixed64List { |
| 1544 | get { return pbc::Lists.AsReadOnly(repeatedFixed64_); } |
| 1545 | } |
| 1546 | public int RepeatedFixed64Count { |
| 1547 | get { return repeatedFixed64_.Count; } |
| 1548 | } |
| 1549 | public ulong GetRepeatedFixed64(int index) { |
| 1550 | return repeatedFixed64_[index]; |
| 1551 | } |
| 1552 | |
| 1553 | private pbc::PopsicleList<int> repeatedSfixed32_ = new pbc::PopsicleList<int>(); |
| 1554 | public scg::IList<int> RepeatedSfixed32List { |
| 1555 | get { return pbc::Lists.AsReadOnly(repeatedSfixed32_); } |
| 1556 | } |
| 1557 | public int RepeatedSfixed32Count { |
| 1558 | get { return repeatedSfixed32_.Count; } |
| 1559 | } |
| 1560 | public int GetRepeatedSfixed32(int index) { |
| 1561 | return repeatedSfixed32_[index]; |
| 1562 | } |
| 1563 | |
| 1564 | private pbc::PopsicleList<long> repeatedSfixed64_ = new pbc::PopsicleList<long>(); |
| 1565 | public scg::IList<long> RepeatedSfixed64List { |
| 1566 | get { return pbc::Lists.AsReadOnly(repeatedSfixed64_); } |
| 1567 | } |
| 1568 | public int RepeatedSfixed64Count { |
| 1569 | get { return repeatedSfixed64_.Count; } |
| 1570 | } |
| 1571 | public long GetRepeatedSfixed64(int index) { |
| 1572 | return repeatedSfixed64_[index]; |
| 1573 | } |
| 1574 | |
| 1575 | private pbc::PopsicleList<float> repeatedFloat_ = new pbc::PopsicleList<float>(); |
| 1576 | public scg::IList<float> RepeatedFloatList { |
| 1577 | get { return pbc::Lists.AsReadOnly(repeatedFloat_); } |
| 1578 | } |
| 1579 | public int RepeatedFloatCount { |
| 1580 | get { return repeatedFloat_.Count; } |
| 1581 | } |
| 1582 | public float GetRepeatedFloat(int index) { |
| 1583 | return repeatedFloat_[index]; |
| 1584 | } |
| 1585 | |
| 1586 | private pbc::PopsicleList<double> repeatedDouble_ = new pbc::PopsicleList<double>(); |
| 1587 | public scg::IList<double> RepeatedDoubleList { |
| 1588 | get { return pbc::Lists.AsReadOnly(repeatedDouble_); } |
| 1589 | } |
| 1590 | public int RepeatedDoubleCount { |
| 1591 | get { return repeatedDouble_.Count; } |
| 1592 | } |
| 1593 | public double GetRepeatedDouble(int index) { |
| 1594 | return repeatedDouble_[index]; |
| 1595 | } |
| 1596 | |
| 1597 | private pbc::PopsicleList<bool> repeatedBool_ = new pbc::PopsicleList<bool>(); |
| 1598 | public scg::IList<bool> RepeatedBoolList { |
| 1599 | get { return pbc::Lists.AsReadOnly(repeatedBool_); } |
| 1600 | } |
| 1601 | public int RepeatedBoolCount { |
| 1602 | get { return repeatedBool_.Count; } |
| 1603 | } |
| 1604 | public bool GetRepeatedBool(int index) { |
| 1605 | return repeatedBool_[index]; |
| 1606 | } |
| 1607 | |
| 1608 | private pbc::PopsicleList<string> repeatedString_ = new pbc::PopsicleList<string>(); |
| 1609 | public scg::IList<string> RepeatedStringList { |
| 1610 | get { return pbc::Lists.AsReadOnly(repeatedString_); } |
| 1611 | } |
| 1612 | public int RepeatedStringCount { |
| 1613 | get { return repeatedString_.Count; } |
| 1614 | } |
| 1615 | public string GetRepeatedString(int index) { |
| 1616 | return repeatedString_[index]; |
| 1617 | } |
| 1618 | |
| 1619 | private pbc::PopsicleList<pb::ByteString> repeatedBytes_ = new pbc::PopsicleList<pb::ByteString>(); |
| 1620 | public scg::IList<pb::ByteString> RepeatedBytesList { |
| 1621 | get { return pbc::Lists.AsReadOnly(repeatedBytes_); } |
| 1622 | } |
| 1623 | public int RepeatedBytesCount { |
| 1624 | get { return repeatedBytes_.Count; } |
| 1625 | } |
| 1626 | public pb::ByteString GetRepeatedBytes(int index) { |
| 1627 | return repeatedBytes_[index]; |
| 1628 | } |
| 1629 | |
| 1630 | private pbc::PopsicleList<global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.RepeatedGroup> repeatedGroup_ = new pbc::PopsicleList<global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.RepeatedGroup>(); |
| 1631 | public scg::IList<global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.RepeatedGroup> RepeatedGroupList { |
| 1632 | get { return repeatedGroup_; } |
| 1633 | } |
| 1634 | public int RepeatedGroupCount { |
| 1635 | get { return repeatedGroup_.Count; } |
| 1636 | } |
| 1637 | public global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.RepeatedGroup GetRepeatedGroup(int index) { |
| 1638 | return repeatedGroup_[index]; |
| 1639 | } |
| 1640 | |
| 1641 | private pbc::PopsicleList<global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedMessage> repeatedNestedMessage_ = new pbc::PopsicleList<global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedMessage>(); |
| 1642 | public scg::IList<global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedMessage> RepeatedNestedMessageList { |
| 1643 | get { return repeatedNestedMessage_; } |
| 1644 | } |
| 1645 | public int RepeatedNestedMessageCount { |
| 1646 | get { return repeatedNestedMessage_.Count; } |
| 1647 | } |
| 1648 | public global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedMessage GetRepeatedNestedMessage(int index) { |
| 1649 | return repeatedNestedMessage_[index]; |
| 1650 | } |
| 1651 | |
| 1652 | private pbc::PopsicleList<global::Google.ProtocolBuffers.TestProtos.ForeignMessage> repeatedForeignMessage_ = new pbc::PopsicleList<global::Google.ProtocolBuffers.TestProtos.ForeignMessage>(); |
| 1653 | public scg::IList<global::Google.ProtocolBuffers.TestProtos.ForeignMessage> RepeatedForeignMessageList { |
| 1654 | get { return repeatedForeignMessage_; } |
| 1655 | } |
| 1656 | public int RepeatedForeignMessageCount { |
| 1657 | get { return repeatedForeignMessage_.Count; } |
| 1658 | } |
| 1659 | public global::Google.ProtocolBuffers.TestProtos.ForeignMessage GetRepeatedForeignMessage(int index) { |
| 1660 | return repeatedForeignMessage_[index]; |
| 1661 | } |
| 1662 | |
| 1663 | private pbc::PopsicleList<global::Google.ProtocolBuffers.TestProtos.ImportMessage> repeatedImportMessage_ = new pbc::PopsicleList<global::Google.ProtocolBuffers.TestProtos.ImportMessage>(); |
| 1664 | public scg::IList<global::Google.ProtocolBuffers.TestProtos.ImportMessage> RepeatedImportMessageList { |
| 1665 | get { return repeatedImportMessage_; } |
| 1666 | } |
| 1667 | public int RepeatedImportMessageCount { |
| 1668 | get { return repeatedImportMessage_.Count; } |
| 1669 | } |
| 1670 | public global::Google.ProtocolBuffers.TestProtos.ImportMessage GetRepeatedImportMessage(int index) { |
| 1671 | return repeatedImportMessage_[index]; |
| 1672 | } |
| 1673 | |
| 1674 | private pbc::PopsicleList<global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedEnum> repeatedNestedEnum_ = new pbc::PopsicleList<global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedEnum>(); |
| 1675 | public scg::IList<global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedEnum> RepeatedNestedEnumList { |
| 1676 | get { return pbc::Lists.AsReadOnly(repeatedNestedEnum_); } |
| 1677 | } |
| 1678 | public int RepeatedNestedEnumCount { |
| 1679 | get { return repeatedNestedEnum_.Count; } |
| 1680 | } |
| 1681 | public global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedEnum GetRepeatedNestedEnum(int index) { |
| 1682 | return repeatedNestedEnum_[index]; |
| 1683 | } |
| 1684 | |
| 1685 | private pbc::PopsicleList<global::Google.ProtocolBuffers.TestProtos.ForeignEnum> repeatedForeignEnum_ = new pbc::PopsicleList<global::Google.ProtocolBuffers.TestProtos.ForeignEnum>(); |
| 1686 | public scg::IList<global::Google.ProtocolBuffers.TestProtos.ForeignEnum> RepeatedForeignEnumList { |
| 1687 | get { return pbc::Lists.AsReadOnly(repeatedForeignEnum_); } |
| 1688 | } |
| 1689 | public int RepeatedForeignEnumCount { |
| 1690 | get { return repeatedForeignEnum_.Count; } |
| 1691 | } |
| 1692 | public global::Google.ProtocolBuffers.TestProtos.ForeignEnum GetRepeatedForeignEnum(int index) { |
| 1693 | return repeatedForeignEnum_[index]; |
| 1694 | } |
| 1695 | |
| 1696 | private pbc::PopsicleList<global::Google.ProtocolBuffers.TestProtos.ImportEnum> repeatedImportEnum_ = new pbc::PopsicleList<global::Google.ProtocolBuffers.TestProtos.ImportEnum>(); |
| 1697 | public scg::IList<global::Google.ProtocolBuffers.TestProtos.ImportEnum> RepeatedImportEnumList { |
| 1698 | get { return pbc::Lists.AsReadOnly(repeatedImportEnum_); } |
| 1699 | } |
| 1700 | public int RepeatedImportEnumCount { |
| 1701 | get { return repeatedImportEnum_.Count; } |
| 1702 | } |
| 1703 | public global::Google.ProtocolBuffers.TestProtos.ImportEnum GetRepeatedImportEnum(int index) { |
| 1704 | return repeatedImportEnum_[index]; |
| 1705 | } |
| 1706 | |
| 1707 | private pbc::PopsicleList<string> repeatedStringPiece_ = new pbc::PopsicleList<string>(); |
| 1708 | public scg::IList<string> RepeatedStringPieceList { |
| 1709 | get { return pbc::Lists.AsReadOnly(repeatedStringPiece_); } |
| 1710 | } |
| 1711 | public int RepeatedStringPieceCount { |
| 1712 | get { return repeatedStringPiece_.Count; } |
| 1713 | } |
| 1714 | public string GetRepeatedStringPiece(int index) { |
| 1715 | return repeatedStringPiece_[index]; |
| 1716 | } |
| 1717 | |
| 1718 | private pbc::PopsicleList<string> repeatedCord_ = new pbc::PopsicleList<string>(); |
| 1719 | public scg::IList<string> RepeatedCordList { |
| 1720 | get { return pbc::Lists.AsReadOnly(repeatedCord_); } |
| 1721 | } |
| 1722 | public int RepeatedCordCount { |
| 1723 | get { return repeatedCord_.Count; } |
| 1724 | } |
| 1725 | public string GetRepeatedCord(int index) { |
| 1726 | return repeatedCord_[index]; |
| 1727 | } |
| 1728 | |
| 1729 | private bool hasDefaultInt32; |
| 1730 | private int defaultInt32_ = 41; |
| 1731 | public bool HasDefaultInt32 { |
| 1732 | get { return hasDefaultInt32; } |
| 1733 | } |
| 1734 | public int DefaultInt32 { |
| 1735 | get { return defaultInt32_; } |
| 1736 | } |
| 1737 | |
| 1738 | private bool hasDefaultInt64; |
| 1739 | private long defaultInt64_ = 42L; |
| 1740 | public bool HasDefaultInt64 { |
| 1741 | get { return hasDefaultInt64; } |
| 1742 | } |
| 1743 | public long DefaultInt64 { |
| 1744 | get { return defaultInt64_; } |
| 1745 | } |
| 1746 | |
| 1747 | private bool hasDefaultUint32; |
| 1748 | private uint defaultUint32_ = 43; |
| 1749 | public bool HasDefaultUint32 { |
| 1750 | get { return hasDefaultUint32; } |
| 1751 | } |
| 1752 | public uint DefaultUint32 { |
| 1753 | get { return defaultUint32_; } |
| 1754 | } |
| 1755 | |
| 1756 | private bool hasDefaultUint64; |
| 1757 | private ulong defaultUint64_ = 44UL; |
| 1758 | public bool HasDefaultUint64 { |
| 1759 | get { return hasDefaultUint64; } |
| 1760 | } |
| 1761 | public ulong DefaultUint64 { |
| 1762 | get { return defaultUint64_; } |
| 1763 | } |
| 1764 | |
| 1765 | private bool hasDefaultSint32; |
| 1766 | private int defaultSint32_ = -45; |
| 1767 | public bool HasDefaultSint32 { |
| 1768 | get { return hasDefaultSint32; } |
| 1769 | } |
| 1770 | public int DefaultSint32 { |
| 1771 | get { return defaultSint32_; } |
| 1772 | } |
| 1773 | |
| 1774 | private bool hasDefaultSint64; |
| 1775 | private long defaultSint64_ = 46; |
| 1776 | public bool HasDefaultSint64 { |
| 1777 | get { return hasDefaultSint64; } |
| 1778 | } |
| 1779 | public long DefaultSint64 { |
| 1780 | get { return defaultSint64_; } |
| 1781 | } |
| 1782 | |
| 1783 | private bool hasDefaultFixed32; |
| 1784 | private uint defaultFixed32_ = 47; |
| 1785 | public bool HasDefaultFixed32 { |
| 1786 | get { return hasDefaultFixed32; } |
| 1787 | } |
| 1788 | public uint DefaultFixed32 { |
| 1789 | get { return defaultFixed32_; } |
| 1790 | } |
| 1791 | |
| 1792 | private bool hasDefaultFixed64; |
| 1793 | private ulong defaultFixed64_ = 48; |
| 1794 | public bool HasDefaultFixed64 { |
| 1795 | get { return hasDefaultFixed64; } |
| 1796 | } |
| 1797 | public ulong DefaultFixed64 { |
| 1798 | get { return defaultFixed64_; } |
| 1799 | } |
| 1800 | |
| 1801 | private bool hasDefaultSfixed32; |
| 1802 | private int defaultSfixed32_ = 49; |
| 1803 | public bool HasDefaultSfixed32 { |
| 1804 | get { return hasDefaultSfixed32; } |
| 1805 | } |
| 1806 | public int DefaultSfixed32 { |
| 1807 | get { return defaultSfixed32_; } |
| 1808 | } |
| 1809 | |
| 1810 | private bool hasDefaultSfixed64; |
| 1811 | private long defaultSfixed64_ = -50; |
| 1812 | public bool HasDefaultSfixed64 { |
| 1813 | get { return hasDefaultSfixed64; } |
| 1814 | } |
| 1815 | public long DefaultSfixed64 { |
| 1816 | get { return defaultSfixed64_; } |
| 1817 | } |
| 1818 | |
| 1819 | private bool hasDefaultFloat; |
| 1820 | private float defaultFloat_ = 51.5F; |
| 1821 | public bool HasDefaultFloat { |
| 1822 | get { return hasDefaultFloat; } |
| 1823 | } |
| 1824 | public float DefaultFloat { |
| 1825 | get { return defaultFloat_; } |
| 1826 | } |
| 1827 | |
| 1828 | private bool hasDefaultDouble; |
| 1829 | private double defaultDouble_ = 52000D; |
| 1830 | public bool HasDefaultDouble { |
| 1831 | get { return hasDefaultDouble; } |
| 1832 | } |
| 1833 | public double DefaultDouble { |
| 1834 | get { return defaultDouble_; } |
| 1835 | } |
| 1836 | |
| 1837 | private bool hasDefaultBool; |
| 1838 | private bool defaultBool_ = true; |
| 1839 | public bool HasDefaultBool { |
| 1840 | get { return hasDefaultBool; } |
| 1841 | } |
| 1842 | public bool DefaultBool { |
| 1843 | get { return defaultBool_; } |
| 1844 | } |
| 1845 | |
| 1846 | private bool hasDefaultString; |
| 1847 | private string defaultString_ = "hello"; |
| 1848 | public bool HasDefaultString { |
| 1849 | get { return hasDefaultString; } |
| 1850 | } |
| 1851 | public string DefaultString { |
| 1852 | get { return defaultString_; } |
| 1853 | } |
| 1854 | |
| 1855 | private bool hasDefaultBytes; |
| 1856 | private pb::ByteString defaultBytes_ = (pb::ByteString) global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Descriptor.Fields[62].DefaultValue; |
| 1857 | public bool HasDefaultBytes { |
| 1858 | get { return hasDefaultBytes; } |
| 1859 | } |
| 1860 | public pb::ByteString DefaultBytes { |
| 1861 | get { return defaultBytes_; } |
| 1862 | } |
| 1863 | |
| 1864 | private bool hasDefaultNestedEnum; |
| 1865 | private global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedEnum defaultNestedEnum_ = global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedEnum.BAR; |
| 1866 | public bool HasDefaultNestedEnum { |
| 1867 | get { return hasDefaultNestedEnum; } |
| 1868 | } |
| 1869 | public global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedEnum DefaultNestedEnum { |
| 1870 | get { return defaultNestedEnum_; } |
| 1871 | } |
| 1872 | |
| 1873 | private bool hasDefaultForeignEnum; |
| 1874 | private global::Google.ProtocolBuffers.TestProtos.ForeignEnum defaultForeignEnum_ = global::Google.ProtocolBuffers.TestProtos.ForeignEnum.FOREIGN_BAR; |
| 1875 | public bool HasDefaultForeignEnum { |
| 1876 | get { return hasDefaultForeignEnum; } |
| 1877 | } |
| 1878 | public global::Google.ProtocolBuffers.TestProtos.ForeignEnum DefaultForeignEnum { |
| 1879 | get { return defaultForeignEnum_; } |
| 1880 | } |
| 1881 | |
| 1882 | private bool hasDefaultImportEnum; |
| 1883 | private global::Google.ProtocolBuffers.TestProtos.ImportEnum defaultImportEnum_ = global::Google.ProtocolBuffers.TestProtos.ImportEnum.IMPORT_BAR; |
| 1884 | public bool HasDefaultImportEnum { |
| 1885 | get { return hasDefaultImportEnum; } |
| 1886 | } |
| 1887 | public global::Google.ProtocolBuffers.TestProtos.ImportEnum DefaultImportEnum { |
| 1888 | get { return defaultImportEnum_; } |
| 1889 | } |
| 1890 | |
| 1891 | private bool hasDefaultStringPiece; |
| 1892 | private string defaultStringPiece_ = "abc"; |
| 1893 | public bool HasDefaultStringPiece { |
| 1894 | get { return hasDefaultStringPiece; } |
| 1895 | } |
| 1896 | public string DefaultStringPiece { |
| 1897 | get { return defaultStringPiece_; } |
| 1898 | } |
| 1899 | |
| 1900 | private bool hasDefaultCord; |
| 1901 | private string defaultCord_ = "123"; |
| 1902 | public bool HasDefaultCord { |
| 1903 | get { return hasDefaultCord; } |
| 1904 | } |
| 1905 | public string DefaultCord { |
| 1906 | get { return defaultCord_; } |
| 1907 | } |
| 1908 | |
| 1909 | public override bool IsInitialized { |
| 1910 | get { |
| 1911 | return true; |
| 1912 | } |
| 1913 | } |
| 1914 | |
| 1915 | public override void WriteTo(pb::CodedOutputStream output) { |
| 1916 | if (HasOptionalInt32) { |
| 1917 | output.WriteInt32(1, OptionalInt32); |
| 1918 | } |
| 1919 | if (HasOptionalInt64) { |
| 1920 | output.WriteInt64(2, OptionalInt64); |
| 1921 | } |
| 1922 | if (HasOptionalUint32) { |
| 1923 | output.WriteUInt32(3, OptionalUint32); |
| 1924 | } |
| 1925 | if (HasOptionalUint64) { |
| 1926 | output.WriteUInt64(4, OptionalUint64); |
| 1927 | } |
| 1928 | if (HasOptionalSint32) { |
| 1929 | output.WriteSInt32(5, OptionalSint32); |
| 1930 | } |
| 1931 | if (HasOptionalSint64) { |
| 1932 | output.WriteSInt64(6, OptionalSint64); |
| 1933 | } |
| 1934 | if (HasOptionalFixed32) { |
| 1935 | output.WriteFixed32(7, OptionalFixed32); |
| 1936 | } |
| 1937 | if (HasOptionalFixed64) { |
| 1938 | output.WriteFixed64(8, OptionalFixed64); |
| 1939 | } |
| 1940 | if (HasOptionalSfixed32) { |
| 1941 | output.WriteSFixed32(9, OptionalSfixed32); |
| 1942 | } |
| 1943 | if (HasOptionalSfixed64) { |
| 1944 | output.WriteSFixed64(10, OptionalSfixed64); |
| 1945 | } |
| 1946 | if (HasOptionalFloat) { |
| 1947 | output.WriteFloat(11, OptionalFloat); |
| 1948 | } |
| 1949 | if (HasOptionalDouble) { |
| 1950 | output.WriteDouble(12, OptionalDouble); |
| 1951 | } |
| 1952 | if (HasOptionalBool) { |
| 1953 | output.WriteBool(13, OptionalBool); |
| 1954 | } |
| 1955 | if (HasOptionalString) { |
| 1956 | output.WriteString(14, OptionalString); |
| 1957 | } |
| 1958 | if (HasOptionalBytes) { |
| 1959 | output.WriteBytes(15, OptionalBytes); |
| 1960 | } |
| 1961 | if (HasOptionalGroup) { |
| 1962 | output.WriteGroup(16, OptionalGroup); |
| 1963 | } |
| 1964 | if (HasOptionalNestedMessage) { |
| 1965 | output.WriteMessage(18, OptionalNestedMessage); |
| 1966 | } |
| 1967 | if (HasOptionalForeignMessage) { |
| 1968 | output.WriteMessage(19, OptionalForeignMessage); |
| 1969 | } |
| 1970 | if (HasOptionalImportMessage) { |
| 1971 | output.WriteMessage(20, OptionalImportMessage); |
| 1972 | } |
| 1973 | if (HasOptionalNestedEnum) { |
| 1974 | output.WriteEnum(21, (int) OptionalNestedEnum); |
| 1975 | } |
| 1976 | if (HasOptionalForeignEnum) { |
| 1977 | output.WriteEnum(22, (int) OptionalForeignEnum); |
| 1978 | } |
| 1979 | if (HasOptionalImportEnum) { |
| 1980 | output.WriteEnum(23, (int) OptionalImportEnum); |
| 1981 | } |
| 1982 | if (HasOptionalStringPiece) { |
| 1983 | output.WriteString(24, OptionalStringPiece); |
| 1984 | } |
| 1985 | if (HasOptionalCord) { |
| 1986 | output.WriteString(25, OptionalCord); |
| 1987 | } |
| 1988 | foreach (int element in RepeatedInt32List) { |
| 1989 | output.WriteInt32(31, element); |
| 1990 | } |
| 1991 | foreach (long element in RepeatedInt64List) { |
| 1992 | output.WriteInt64(32, element); |
| 1993 | } |
| 1994 | foreach (uint element in RepeatedUint32List) { |
| 1995 | output.WriteUInt32(33, element); |
| 1996 | } |
| 1997 | foreach (ulong element in RepeatedUint64List) { |
| 1998 | output.WriteUInt64(34, element); |
| 1999 | } |
| 2000 | foreach (int element in RepeatedSint32List) { |
| 2001 | output.WriteSInt32(35, element); |
| 2002 | } |
| 2003 | foreach (long element in RepeatedSint64List) { |
| 2004 | output.WriteSInt64(36, element); |
| 2005 | } |
| 2006 | foreach (uint element in RepeatedFixed32List) { |
| 2007 | output.WriteFixed32(37, element); |
| 2008 | } |
| 2009 | foreach (ulong element in RepeatedFixed64List) { |
| 2010 | output.WriteFixed64(38, element); |
| 2011 | } |
| 2012 | foreach (int element in RepeatedSfixed32List) { |
| 2013 | output.WriteSFixed32(39, element); |
| 2014 | } |
| 2015 | foreach (long element in RepeatedSfixed64List) { |
| 2016 | output.WriteSFixed64(40, element); |
| 2017 | } |
| 2018 | foreach (float element in RepeatedFloatList) { |
| 2019 | output.WriteFloat(41, element); |
| 2020 | } |
| 2021 | foreach (double element in RepeatedDoubleList) { |
| 2022 | output.WriteDouble(42, element); |
| 2023 | } |
| 2024 | foreach (bool element in RepeatedBoolList) { |
| 2025 | output.WriteBool(43, element); |
| 2026 | } |
| 2027 | foreach (string element in RepeatedStringList) { |
| 2028 | output.WriteString(44, element); |
| 2029 | } |
| 2030 | foreach (pb::ByteString element in RepeatedBytesList) { |
| 2031 | output.WriteBytes(45, element); |
| 2032 | } |
| 2033 | foreach (global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.RepeatedGroup element in RepeatedGroupList) { |
| 2034 | output.WriteGroup(46, element); |
| 2035 | } |
| 2036 | foreach (global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedMessage element in RepeatedNestedMessageList) { |
| 2037 | output.WriteMessage(48, element); |
| 2038 | } |
| 2039 | foreach (global::Google.ProtocolBuffers.TestProtos.ForeignMessage element in RepeatedForeignMessageList) { |
| 2040 | output.WriteMessage(49, element); |
| 2041 | } |
| 2042 | foreach (global::Google.ProtocolBuffers.TestProtos.ImportMessage element in RepeatedImportMessageList) { |
| 2043 | output.WriteMessage(50, element); |
| 2044 | } |
| 2045 | foreach (global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedEnum element in RepeatedNestedEnumList) { |
| 2046 | output.WriteEnum(51, (int) element); |
| 2047 | } |
| 2048 | foreach (global::Google.ProtocolBuffers.TestProtos.ForeignEnum element in RepeatedForeignEnumList) { |
| 2049 | output.WriteEnum(52, (int) element); |
| 2050 | } |
| 2051 | foreach (global::Google.ProtocolBuffers.TestProtos.ImportEnum element in RepeatedImportEnumList) { |
| 2052 | output.WriteEnum(53, (int) element); |
| 2053 | } |
| 2054 | foreach (string element in RepeatedStringPieceList) { |
| 2055 | output.WriteString(54, element); |
| 2056 | } |
| 2057 | foreach (string element in RepeatedCordList) { |
| 2058 | output.WriteString(55, element); |
| 2059 | } |
| 2060 | if (HasDefaultInt32) { |
| 2061 | output.WriteInt32(61, DefaultInt32); |
| 2062 | } |
| 2063 | if (HasDefaultInt64) { |
| 2064 | output.WriteInt64(62, DefaultInt64); |
| 2065 | } |
| 2066 | if (HasDefaultUint32) { |
| 2067 | output.WriteUInt32(63, DefaultUint32); |
| 2068 | } |
| 2069 | if (HasDefaultUint64) { |
| 2070 | output.WriteUInt64(64, DefaultUint64); |
| 2071 | } |
| 2072 | if (HasDefaultSint32) { |
| 2073 | output.WriteSInt32(65, DefaultSint32); |
| 2074 | } |
| 2075 | if (HasDefaultSint64) { |
| 2076 | output.WriteSInt64(66, DefaultSint64); |
| 2077 | } |
| 2078 | if (HasDefaultFixed32) { |
| 2079 | output.WriteFixed32(67, DefaultFixed32); |
| 2080 | } |
| 2081 | if (HasDefaultFixed64) { |
| 2082 | output.WriteFixed64(68, DefaultFixed64); |
| 2083 | } |
| 2084 | if (HasDefaultSfixed32) { |
| 2085 | output.WriteSFixed32(69, DefaultSfixed32); |
| 2086 | } |
| 2087 | if (HasDefaultSfixed64) { |
| 2088 | output.WriteSFixed64(70, DefaultSfixed64); |
| 2089 | } |
| 2090 | if (HasDefaultFloat) { |
| 2091 | output.WriteFloat(71, DefaultFloat); |
| 2092 | } |
| 2093 | if (HasDefaultDouble) { |
| 2094 | output.WriteDouble(72, DefaultDouble); |
| 2095 | } |
| 2096 | if (HasDefaultBool) { |
| 2097 | output.WriteBool(73, DefaultBool); |
| 2098 | } |
| 2099 | if (HasDefaultString) { |
| 2100 | output.WriteString(74, DefaultString); |
| 2101 | } |
| 2102 | if (HasDefaultBytes) { |
| 2103 | output.WriteBytes(75, DefaultBytes); |
| 2104 | } |
| 2105 | if (HasDefaultNestedEnum) { |
| 2106 | output.WriteEnum(81, (int) DefaultNestedEnum); |
| 2107 | } |
| 2108 | if (HasDefaultForeignEnum) { |
| 2109 | output.WriteEnum(82, (int) DefaultForeignEnum); |
| 2110 | } |
| 2111 | if (HasDefaultImportEnum) { |
| 2112 | output.WriteEnum(83, (int) DefaultImportEnum); |
| 2113 | } |
| 2114 | if (HasDefaultStringPiece) { |
| 2115 | output.WriteString(84, DefaultStringPiece); |
| 2116 | } |
| 2117 | if (HasDefaultCord) { |
| 2118 | output.WriteString(85, DefaultCord); |
| 2119 | } |
| 2120 | UnknownFields.WriteTo(output); |
| 2121 | } |
| 2122 | |
| 2123 | private int memoizedSerializedSize = -1; |
| 2124 | public override int SerializedSize { |
| 2125 | get { |
| 2126 | int size = memoizedSerializedSize; |
| 2127 | if (size != -1) return size; |
| 2128 | |
| 2129 | size = 0; |
| 2130 | if (HasOptionalInt32) { |
| 2131 | size += pb::CodedOutputStream.ComputeInt32Size(1, OptionalInt32); |
| 2132 | } |
| 2133 | if (HasOptionalInt64) { |
| 2134 | size += pb::CodedOutputStream.ComputeInt64Size(2, OptionalInt64); |
| 2135 | } |
| 2136 | if (HasOptionalUint32) { |
| 2137 | size += pb::CodedOutputStream.ComputeUInt32Size(3, OptionalUint32); |
| 2138 | } |
| 2139 | if (HasOptionalUint64) { |
| 2140 | size += pb::CodedOutputStream.ComputeUInt64Size(4, OptionalUint64); |
| 2141 | } |
| 2142 | if (HasOptionalSint32) { |
| 2143 | size += pb::CodedOutputStream.ComputeSInt32Size(5, OptionalSint32); |
| 2144 | } |
| 2145 | if (HasOptionalSint64) { |
| 2146 | size += pb::CodedOutputStream.ComputeSInt64Size(6, OptionalSint64); |
| 2147 | } |
| 2148 | if (HasOptionalFixed32) { |
| 2149 | size += pb::CodedOutputStream.ComputeFixed32Size(7, OptionalFixed32); |
| 2150 | } |
| 2151 | if (HasOptionalFixed64) { |
| 2152 | size += pb::CodedOutputStream.ComputeFixed64Size(8, OptionalFixed64); |
| 2153 | } |
| 2154 | if (HasOptionalSfixed32) { |
| 2155 | size += pb::CodedOutputStream.ComputeSFixed32Size(9, OptionalSfixed32); |
| 2156 | } |
| 2157 | if (HasOptionalSfixed64) { |
| 2158 | size += pb::CodedOutputStream.ComputeSFixed64Size(10, OptionalSfixed64); |
| 2159 | } |
| 2160 | if (HasOptionalFloat) { |
| 2161 | size += pb::CodedOutputStream.ComputeFloatSize(11, OptionalFloat); |
| 2162 | } |
| 2163 | if (HasOptionalDouble) { |
| 2164 | size += pb::CodedOutputStream.ComputeDoubleSize(12, OptionalDouble); |
| 2165 | } |
| 2166 | if (HasOptionalBool) { |
| 2167 | size += pb::CodedOutputStream.ComputeBoolSize(13, OptionalBool); |
| 2168 | } |
| 2169 | if (HasOptionalString) { |
| 2170 | size += pb::CodedOutputStream.ComputeStringSize(14, OptionalString); |
| 2171 | } |
| 2172 | if (HasOptionalBytes) { |
| 2173 | size += pb::CodedOutputStream.ComputeBytesSize(15, OptionalBytes); |
| 2174 | } |
| 2175 | if (HasOptionalGroup) { |
| 2176 | size += pb::CodedOutputStream.ComputeGroupSize(16, OptionalGroup); |
| 2177 | } |
| 2178 | if (HasOptionalNestedMessage) { |
| 2179 | size += pb::CodedOutputStream.ComputeMessageSize(18, OptionalNestedMessage); |
| 2180 | } |
| 2181 | if (HasOptionalForeignMessage) { |
| 2182 | size += pb::CodedOutputStream.ComputeMessageSize(19, OptionalForeignMessage); |
| 2183 | } |
| 2184 | if (HasOptionalImportMessage) { |
| 2185 | size += pb::CodedOutputStream.ComputeMessageSize(20, OptionalImportMessage); |
| 2186 | } |
| 2187 | if (HasOptionalNestedEnum) { |
| 2188 | size += pb::CodedOutputStream.ComputeEnumSize(21, (int) OptionalNestedEnum); |
| 2189 | } |
| 2190 | if (HasOptionalForeignEnum) { |
| 2191 | size += pb::CodedOutputStream.ComputeEnumSize(22, (int) OptionalForeignEnum); |
| 2192 | } |
| 2193 | if (HasOptionalImportEnum) { |
| 2194 | size += pb::CodedOutputStream.ComputeEnumSize(23, (int) OptionalImportEnum); |
| 2195 | } |
| 2196 | if (HasOptionalStringPiece) { |
| 2197 | size += pb::CodedOutputStream.ComputeStringSize(24, OptionalStringPiece); |
| 2198 | } |
| 2199 | if (HasOptionalCord) { |
| 2200 | size += pb::CodedOutputStream.ComputeStringSize(25, OptionalCord); |
| 2201 | } |
| 2202 | foreach (int element in RepeatedInt32List) { |
| 2203 | size += pb::CodedOutputStream.ComputeInt32Size(31, element); |
| 2204 | } |
| 2205 | foreach (long element in RepeatedInt64List) { |
| 2206 | size += pb::CodedOutputStream.ComputeInt64Size(32, element); |
| 2207 | } |
| 2208 | foreach (uint element in RepeatedUint32List) { |
| 2209 | size += pb::CodedOutputStream.ComputeUInt32Size(33, element); |
| 2210 | } |
| 2211 | foreach (ulong element in RepeatedUint64List) { |
| 2212 | size += pb::CodedOutputStream.ComputeUInt64Size(34, element); |
| 2213 | } |
| 2214 | foreach (int element in RepeatedSint32List) { |
| 2215 | size += pb::CodedOutputStream.ComputeSInt32Size(35, element); |
| 2216 | } |
| 2217 | foreach (long element in RepeatedSint64List) { |
| 2218 | size += pb::CodedOutputStream.ComputeSInt64Size(36, element); |
| 2219 | } |
| 2220 | foreach (uint element in RepeatedFixed32List) { |
| 2221 | size += pb::CodedOutputStream.ComputeFixed32Size(37, element); |
| 2222 | } |
| 2223 | foreach (ulong element in RepeatedFixed64List) { |
| 2224 | size += pb::CodedOutputStream.ComputeFixed64Size(38, element); |
| 2225 | } |
| 2226 | foreach (int element in RepeatedSfixed32List) { |
| 2227 | size += pb::CodedOutputStream.ComputeSFixed32Size(39, element); |
| 2228 | } |
| 2229 | foreach (long element in RepeatedSfixed64List) { |
| 2230 | size += pb::CodedOutputStream.ComputeSFixed64Size(40, element); |
| 2231 | } |
| 2232 | foreach (float element in RepeatedFloatList) { |
| 2233 | size += pb::CodedOutputStream.ComputeFloatSize(41, element); |
| 2234 | } |
| 2235 | foreach (double element in RepeatedDoubleList) { |
| 2236 | size += pb::CodedOutputStream.ComputeDoubleSize(42, element); |
| 2237 | } |
| 2238 | foreach (bool element in RepeatedBoolList) { |
| 2239 | size += pb::CodedOutputStream.ComputeBoolSize(43, element); |
| 2240 | } |
| 2241 | foreach (string element in RepeatedStringList) { |
| 2242 | size += pb::CodedOutputStream.ComputeStringSize(44, element); |
| 2243 | } |
| 2244 | foreach (pb::ByteString element in RepeatedBytesList) { |
| 2245 | size += pb::CodedOutputStream.ComputeBytesSize(45, element); |
| 2246 | } |
| 2247 | foreach (global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.RepeatedGroup element in RepeatedGroupList) { |
| 2248 | size += pb::CodedOutputStream.ComputeGroupSize(46, element); |
| 2249 | } |
| 2250 | foreach (global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedMessage element in RepeatedNestedMessageList) { |
| 2251 | size += pb::CodedOutputStream.ComputeMessageSize(48, element); |
| 2252 | } |
| 2253 | foreach (global::Google.ProtocolBuffers.TestProtos.ForeignMessage element in RepeatedForeignMessageList) { |
| 2254 | size += pb::CodedOutputStream.ComputeMessageSize(49, element); |
| 2255 | } |
| 2256 | foreach (global::Google.ProtocolBuffers.TestProtos.ImportMessage element in RepeatedImportMessageList) { |
| 2257 | size += pb::CodedOutputStream.ComputeMessageSize(50, element); |
| 2258 | } |
| 2259 | foreach (global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedEnum element in RepeatedNestedEnumList) { |
| 2260 | size += pb::CodedOutputStream.ComputeEnumSize(51, (int) element); |
| 2261 | } |
| 2262 | foreach (global::Google.ProtocolBuffers.TestProtos.ForeignEnum element in RepeatedForeignEnumList) { |
| 2263 | size += pb::CodedOutputStream.ComputeEnumSize(52, (int) element); |
| 2264 | } |
| 2265 | foreach (global::Google.ProtocolBuffers.TestProtos.ImportEnum element in RepeatedImportEnumList) { |
| 2266 | size += pb::CodedOutputStream.ComputeEnumSize(53, (int) element); |
| 2267 | } |
| 2268 | foreach (string element in RepeatedStringPieceList) { |
| 2269 | size += pb::CodedOutputStream.ComputeStringSize(54, element); |
| 2270 | } |
| 2271 | foreach (string element in RepeatedCordList) { |
| 2272 | size += pb::CodedOutputStream.ComputeStringSize(55, element); |
| 2273 | } |
| 2274 | if (HasDefaultInt32) { |
| 2275 | size += pb::CodedOutputStream.ComputeInt32Size(61, DefaultInt32); |
| 2276 | } |
| 2277 | if (HasDefaultInt64) { |
| 2278 | size += pb::CodedOutputStream.ComputeInt64Size(62, DefaultInt64); |
| 2279 | } |
| 2280 | if (HasDefaultUint32) { |
| 2281 | size += pb::CodedOutputStream.ComputeUInt32Size(63, DefaultUint32); |
| 2282 | } |
| 2283 | if (HasDefaultUint64) { |
| 2284 | size += pb::CodedOutputStream.ComputeUInt64Size(64, DefaultUint64); |
| 2285 | } |
| 2286 | if (HasDefaultSint32) { |
| 2287 | size += pb::CodedOutputStream.ComputeSInt32Size(65, DefaultSint32); |
| 2288 | } |
| 2289 | if (HasDefaultSint64) { |
| 2290 | size += pb::CodedOutputStream.ComputeSInt64Size(66, DefaultSint64); |
| 2291 | } |
| 2292 | if (HasDefaultFixed32) { |
| 2293 | size += pb::CodedOutputStream.ComputeFixed32Size(67, DefaultFixed32); |
| 2294 | } |
| 2295 | if (HasDefaultFixed64) { |
| 2296 | size += pb::CodedOutputStream.ComputeFixed64Size(68, DefaultFixed64); |
| 2297 | } |
| 2298 | if (HasDefaultSfixed32) { |
| 2299 | size += pb::CodedOutputStream.ComputeSFixed32Size(69, DefaultSfixed32); |
| 2300 | } |
| 2301 | if (HasDefaultSfixed64) { |
| 2302 | size += pb::CodedOutputStream.ComputeSFixed64Size(70, DefaultSfixed64); |
| 2303 | } |
| 2304 | if (HasDefaultFloat) { |
| 2305 | size += pb::CodedOutputStream.ComputeFloatSize(71, DefaultFloat); |
| 2306 | } |
| 2307 | if (HasDefaultDouble) { |
| 2308 | size += pb::CodedOutputStream.ComputeDoubleSize(72, DefaultDouble); |
| 2309 | } |
| 2310 | if (HasDefaultBool) { |
| 2311 | size += pb::CodedOutputStream.ComputeBoolSize(73, DefaultBool); |
| 2312 | } |
| 2313 | if (HasDefaultString) { |
| 2314 | size += pb::CodedOutputStream.ComputeStringSize(74, DefaultString); |
| 2315 | } |
| 2316 | if (HasDefaultBytes) { |
| 2317 | size += pb::CodedOutputStream.ComputeBytesSize(75, DefaultBytes); |
| 2318 | } |
| 2319 | if (HasDefaultNestedEnum) { |
| 2320 | size += pb::CodedOutputStream.ComputeEnumSize(81, (int) DefaultNestedEnum); |
| 2321 | } |
| 2322 | if (HasDefaultForeignEnum) { |
| 2323 | size += pb::CodedOutputStream.ComputeEnumSize(82, (int) DefaultForeignEnum); |
| 2324 | } |
| 2325 | if (HasDefaultImportEnum) { |
| 2326 | size += pb::CodedOutputStream.ComputeEnumSize(83, (int) DefaultImportEnum); |
| 2327 | } |
| 2328 | if (HasDefaultStringPiece) { |
| 2329 | size += pb::CodedOutputStream.ComputeStringSize(84, DefaultStringPiece); |
| 2330 | } |
| 2331 | if (HasDefaultCord) { |
| 2332 | size += pb::CodedOutputStream.ComputeStringSize(85, DefaultCord); |
| 2333 | } |
| 2334 | size += UnknownFields.SerializedSize; |
| 2335 | memoizedSerializedSize = size; |
| 2336 | return size; |
| 2337 | } |
| 2338 | } |
| 2339 | |
| 2340 | public static TestAllTypes ParseFrom(pb::ByteString data) { |
| 2341 | return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed(); |
| 2342 | } |
| 2343 | public static TestAllTypes ParseFrom(pb::ByteString data, pb::ExtensionRegistry extensionRegistry) { |
| 2344 | return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed(); |
| 2345 | } |
| 2346 | public static TestAllTypes ParseFrom(byte[] data) { |
| 2347 | return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed(); |
| 2348 | } |
| 2349 | public static TestAllTypes ParseFrom(byte[] data, pb::ExtensionRegistry extensionRegistry) { |
| 2350 | return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed(); |
| 2351 | } |
| 2352 | public static TestAllTypes ParseFrom(global::System.IO.Stream input) { |
| 2353 | return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed(); |
| 2354 | } |
| 2355 | public static TestAllTypes ParseFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) { |
| 2356 | return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed(); |
| 2357 | } |
| 2358 | public static TestAllTypes ParseFrom(pb::CodedInputStream input) { |
| 2359 | return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed(); |
| 2360 | } |
| 2361 | public static TestAllTypes ParseFrom(pb::CodedInputStream input, pb::ExtensionRegistry extensionRegistry) { |
| 2362 | return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed(); |
| 2363 | } |
| 2364 | public static Builder CreateBuilder() { return new Builder(); } |
| 2365 | public override Builder CreateBuilderForType() { return new Builder(); } |
| 2366 | public static Builder CreateBuilder(TestAllTypes prototype) { |
| 2367 | return (Builder) new Builder().MergeFrom(prototype); |
| 2368 | } |
| 2369 | |
| 2370 | public sealed partial class Builder : pb::GeneratedBuilder<TestAllTypes, Builder> { |
| 2371 | protected override Builder ThisBuilder { |
| 2372 | get { return this; } |
| 2373 | } |
| 2374 | public Builder() {} |
| 2375 | |
| 2376 | TestAllTypes result = new TestAllTypes(); |
| 2377 | |
| 2378 | protected override TestAllTypes MessageBeingBuilt { |
| 2379 | get { return result; } |
| 2380 | } |
| 2381 | |
| 2382 | public override Builder Clear() { |
| 2383 | result = new TestAllTypes(); |
| 2384 | return this; |
| 2385 | } |
| 2386 | |
| 2387 | public override Builder Clone() { |
| 2388 | return new Builder().MergeFrom(result); |
| 2389 | } |
| 2390 | |
| 2391 | public override pbd::MessageDescriptor DescriptorForType { |
| 2392 | get { return TestAllTypes.Descriptor; } |
| 2393 | } |
| 2394 | |
| 2395 | public override TestAllTypes DefaultInstanceForType { |
| 2396 | get { return TestAllTypes.DefaultInstance; } |
| 2397 | } |
| 2398 | |
| 2399 | public override TestAllTypes BuildPartial() { |
| 2400 | result.repeatedInt32_.MakeReadOnly(); |
| 2401 | result.repeatedInt64_.MakeReadOnly(); |
| 2402 | result.repeatedUint32_.MakeReadOnly(); |
| 2403 | result.repeatedUint64_.MakeReadOnly(); |
| 2404 | result.repeatedSint32_.MakeReadOnly(); |
| 2405 | result.repeatedSint64_.MakeReadOnly(); |
| 2406 | result.repeatedFixed32_.MakeReadOnly(); |
| 2407 | result.repeatedFixed64_.MakeReadOnly(); |
| 2408 | result.repeatedSfixed32_.MakeReadOnly(); |
| 2409 | result.repeatedSfixed64_.MakeReadOnly(); |
| 2410 | result.repeatedFloat_.MakeReadOnly(); |
| 2411 | result.repeatedDouble_.MakeReadOnly(); |
| 2412 | result.repeatedBool_.MakeReadOnly(); |
| 2413 | result.repeatedString_.MakeReadOnly(); |
| 2414 | result.repeatedBytes_.MakeReadOnly(); |
| 2415 | result.repeatedGroup_.MakeReadOnly(); |
| 2416 | result.repeatedNestedMessage_.MakeReadOnly(); |
| 2417 | result.repeatedForeignMessage_.MakeReadOnly(); |
| 2418 | result.repeatedImportMessage_.MakeReadOnly(); |
| 2419 | result.repeatedNestedEnum_.MakeReadOnly(); |
| 2420 | result.repeatedForeignEnum_.MakeReadOnly(); |
| 2421 | result.repeatedImportEnum_.MakeReadOnly(); |
| 2422 | result.repeatedStringPiece_.MakeReadOnly(); |
| 2423 | result.repeatedCord_.MakeReadOnly(); |
| 2424 | TestAllTypes returnMe = result; |
| 2425 | result = null; |
| 2426 | return returnMe; |
| 2427 | } |
| 2428 | |
| 2429 | public override Builder MergeFrom(pb::IMessage other) { |
| 2430 | if (other is TestAllTypes) { |
| 2431 | return MergeFrom((TestAllTypes) other); |
| 2432 | } else { |
| 2433 | base.MergeFrom(other); |
| 2434 | return this; |
| 2435 | } |
| 2436 | } |
| 2437 | |
| 2438 | public override Builder MergeFrom(TestAllTypes other) { |
| 2439 | if (other == TestAllTypes.DefaultInstance) return this; |
| 2440 | if (other.HasOptionalInt32) { |
| 2441 | OptionalInt32 = other.OptionalInt32; |
| 2442 | } |
| 2443 | if (other.HasOptionalInt64) { |
| 2444 | OptionalInt64 = other.OptionalInt64; |
| 2445 | } |
| 2446 | if (other.HasOptionalUint32) { |
| 2447 | OptionalUint32 = other.OptionalUint32; |
| 2448 | } |
| 2449 | if (other.HasOptionalUint64) { |
| 2450 | OptionalUint64 = other.OptionalUint64; |
| 2451 | } |
| 2452 | if (other.HasOptionalSint32) { |
| 2453 | OptionalSint32 = other.OptionalSint32; |
| 2454 | } |
| 2455 | if (other.HasOptionalSint64) { |
| 2456 | OptionalSint64 = other.OptionalSint64; |
| 2457 | } |
| 2458 | if (other.HasOptionalFixed32) { |
| 2459 | OptionalFixed32 = other.OptionalFixed32; |
| 2460 | } |
| 2461 | if (other.HasOptionalFixed64) { |
| 2462 | OptionalFixed64 = other.OptionalFixed64; |
| 2463 | } |
| 2464 | if (other.HasOptionalSfixed32) { |
| 2465 | OptionalSfixed32 = other.OptionalSfixed32; |
| 2466 | } |
| 2467 | if (other.HasOptionalSfixed64) { |
| 2468 | OptionalSfixed64 = other.OptionalSfixed64; |
| 2469 | } |
| 2470 | if (other.HasOptionalFloat) { |
| 2471 | OptionalFloat = other.OptionalFloat; |
| 2472 | } |
| 2473 | if (other.HasOptionalDouble) { |
| 2474 | OptionalDouble = other.OptionalDouble; |
| 2475 | } |
| 2476 | if (other.HasOptionalBool) { |
| 2477 | OptionalBool = other.OptionalBool; |
| 2478 | } |
| 2479 | if (other.HasOptionalString) { |
| 2480 | OptionalString = other.OptionalString; |
| 2481 | } |
| 2482 | if (other.HasOptionalBytes) { |
| 2483 | OptionalBytes = other.OptionalBytes; |
| 2484 | } |
| 2485 | if (other.HasOptionalGroup) { |
| 2486 | MergeOptionalGroup(other.OptionalGroup); |
| 2487 | } |
| 2488 | if (other.HasOptionalNestedMessage) { |
| 2489 | MergeOptionalNestedMessage(other.OptionalNestedMessage); |
| 2490 | } |
| 2491 | if (other.HasOptionalForeignMessage) { |
| 2492 | MergeOptionalForeignMessage(other.OptionalForeignMessage); |
| 2493 | } |
| 2494 | if (other.HasOptionalImportMessage) { |
| 2495 | MergeOptionalImportMessage(other.OptionalImportMessage); |
| 2496 | } |
| 2497 | if (other.HasOptionalNestedEnum) { |
| 2498 | OptionalNestedEnum = other.OptionalNestedEnum; |
| 2499 | } |
| 2500 | if (other.HasOptionalForeignEnum) { |
| 2501 | OptionalForeignEnum = other.OptionalForeignEnum; |
| 2502 | } |
| 2503 | if (other.HasOptionalImportEnum) { |
| 2504 | OptionalImportEnum = other.OptionalImportEnum; |
| 2505 | } |
| 2506 | if (other.HasOptionalStringPiece) { |
| 2507 | OptionalStringPiece = other.OptionalStringPiece; |
| 2508 | } |
| 2509 | if (other.HasOptionalCord) { |
| 2510 | OptionalCord = other.OptionalCord; |
| 2511 | } |
| 2512 | if (other.repeatedInt32_.Count != 0) { |
| 2513 | base.AddRange(other.repeatedInt32_, result.repeatedInt32_); |
| 2514 | } |
| 2515 | if (other.repeatedInt64_.Count != 0) { |
| 2516 | base.AddRange(other.repeatedInt64_, result.repeatedInt64_); |
| 2517 | } |
| 2518 | if (other.repeatedUint32_.Count != 0) { |
| 2519 | base.AddRange(other.repeatedUint32_, result.repeatedUint32_); |
| 2520 | } |
| 2521 | if (other.repeatedUint64_.Count != 0) { |
| 2522 | base.AddRange(other.repeatedUint64_, result.repeatedUint64_); |
| 2523 | } |
| 2524 | if (other.repeatedSint32_.Count != 0) { |
| 2525 | base.AddRange(other.repeatedSint32_, result.repeatedSint32_); |
| 2526 | } |
| 2527 | if (other.repeatedSint64_.Count != 0) { |
| 2528 | base.AddRange(other.repeatedSint64_, result.repeatedSint64_); |
| 2529 | } |
| 2530 | if (other.repeatedFixed32_.Count != 0) { |
| 2531 | base.AddRange(other.repeatedFixed32_, result.repeatedFixed32_); |
| 2532 | } |
| 2533 | if (other.repeatedFixed64_.Count != 0) { |
| 2534 | base.AddRange(other.repeatedFixed64_, result.repeatedFixed64_); |
| 2535 | } |
| 2536 | if (other.repeatedSfixed32_.Count != 0) { |
| 2537 | base.AddRange(other.repeatedSfixed32_, result.repeatedSfixed32_); |
| 2538 | } |
| 2539 | if (other.repeatedSfixed64_.Count != 0) { |
| 2540 | base.AddRange(other.repeatedSfixed64_, result.repeatedSfixed64_); |
| 2541 | } |
| 2542 | if (other.repeatedFloat_.Count != 0) { |
| 2543 | base.AddRange(other.repeatedFloat_, result.repeatedFloat_); |
| 2544 | } |
| 2545 | if (other.repeatedDouble_.Count != 0) { |
| 2546 | base.AddRange(other.repeatedDouble_, result.repeatedDouble_); |
| 2547 | } |
| 2548 | if (other.repeatedBool_.Count != 0) { |
| 2549 | base.AddRange(other.repeatedBool_, result.repeatedBool_); |
| 2550 | } |
| 2551 | if (other.repeatedString_.Count != 0) { |
| 2552 | base.AddRange(other.repeatedString_, result.repeatedString_); |
| 2553 | } |
| 2554 | if (other.repeatedBytes_.Count != 0) { |
| 2555 | base.AddRange(other.repeatedBytes_, result.repeatedBytes_); |
| 2556 | } |
| 2557 | if (other.repeatedGroup_.Count != 0) { |
| 2558 | base.AddRange(other.repeatedGroup_, result.repeatedGroup_); |
| 2559 | } |
| 2560 | if (other.repeatedNestedMessage_.Count != 0) { |
| 2561 | base.AddRange(other.repeatedNestedMessage_, result.repeatedNestedMessage_); |
| 2562 | } |
| 2563 | if (other.repeatedForeignMessage_.Count != 0) { |
| 2564 | base.AddRange(other.repeatedForeignMessage_, result.repeatedForeignMessage_); |
| 2565 | } |
| 2566 | if (other.repeatedImportMessage_.Count != 0) { |
| 2567 | base.AddRange(other.repeatedImportMessage_, result.repeatedImportMessage_); |
| 2568 | } |
| 2569 | if (other.repeatedNestedEnum_.Count != 0) { |
| 2570 | base.AddRange(other.repeatedNestedEnum_, result.repeatedNestedEnum_); |
| 2571 | } |
| 2572 | if (other.repeatedForeignEnum_.Count != 0) { |
| 2573 | base.AddRange(other.repeatedForeignEnum_, result.repeatedForeignEnum_); |
| 2574 | } |
| 2575 | if (other.repeatedImportEnum_.Count != 0) { |
| 2576 | base.AddRange(other.repeatedImportEnum_, result.repeatedImportEnum_); |
| 2577 | } |
| 2578 | if (other.repeatedStringPiece_.Count != 0) { |
| 2579 | base.AddRange(other.repeatedStringPiece_, result.repeatedStringPiece_); |
| 2580 | } |
| 2581 | if (other.repeatedCord_.Count != 0) { |
| 2582 | base.AddRange(other.repeatedCord_, result.repeatedCord_); |
| 2583 | } |
| 2584 | if (other.HasDefaultInt32) { |
| 2585 | DefaultInt32 = other.DefaultInt32; |
| 2586 | } |
| 2587 | if (other.HasDefaultInt64) { |
| 2588 | DefaultInt64 = other.DefaultInt64; |
| 2589 | } |
| 2590 | if (other.HasDefaultUint32) { |
| 2591 | DefaultUint32 = other.DefaultUint32; |
| 2592 | } |
| 2593 | if (other.HasDefaultUint64) { |
| 2594 | DefaultUint64 = other.DefaultUint64; |
| 2595 | } |
| 2596 | if (other.HasDefaultSint32) { |
| 2597 | DefaultSint32 = other.DefaultSint32; |
| 2598 | } |
| 2599 | if (other.HasDefaultSint64) { |
| 2600 | DefaultSint64 = other.DefaultSint64; |
| 2601 | } |
| 2602 | if (other.HasDefaultFixed32) { |
| 2603 | DefaultFixed32 = other.DefaultFixed32; |
| 2604 | } |
| 2605 | if (other.HasDefaultFixed64) { |
| 2606 | DefaultFixed64 = other.DefaultFixed64; |
| 2607 | } |
| 2608 | if (other.HasDefaultSfixed32) { |
| 2609 | DefaultSfixed32 = other.DefaultSfixed32; |
| 2610 | } |
| 2611 | if (other.HasDefaultSfixed64) { |
| 2612 | DefaultSfixed64 = other.DefaultSfixed64; |
| 2613 | } |
| 2614 | if (other.HasDefaultFloat) { |
| 2615 | DefaultFloat = other.DefaultFloat; |
| 2616 | } |
| 2617 | if (other.HasDefaultDouble) { |
| 2618 | DefaultDouble = other.DefaultDouble; |
| 2619 | } |
| 2620 | if (other.HasDefaultBool) { |
| 2621 | DefaultBool = other.DefaultBool; |
| 2622 | } |
| 2623 | if (other.HasDefaultString) { |
| 2624 | DefaultString = other.DefaultString; |
| 2625 | } |
| 2626 | if (other.HasDefaultBytes) { |
| 2627 | DefaultBytes = other.DefaultBytes; |
| 2628 | } |
| 2629 | if (other.HasDefaultNestedEnum) { |
| 2630 | DefaultNestedEnum = other.DefaultNestedEnum; |
| 2631 | } |
| 2632 | if (other.HasDefaultForeignEnum) { |
| 2633 | DefaultForeignEnum = other.DefaultForeignEnum; |
| 2634 | } |
| 2635 | if (other.HasDefaultImportEnum) { |
| 2636 | DefaultImportEnum = other.DefaultImportEnum; |
| 2637 | } |
| 2638 | if (other.HasDefaultStringPiece) { |
| 2639 | DefaultStringPiece = other.DefaultStringPiece; |
| 2640 | } |
| 2641 | if (other.HasDefaultCord) { |
| 2642 | DefaultCord = other.DefaultCord; |
| 2643 | } |
| 2644 | this.MergeUnknownFields(other.UnknownFields); |
| 2645 | return this; |
| 2646 | } |
| 2647 | |
| 2648 | public override Builder MergeFrom(pb::CodedInputStream input) { |
| 2649 | return MergeFrom(input, pb::ExtensionRegistry.Empty); |
| 2650 | } |
| 2651 | |
| 2652 | public override Builder MergeFrom(pb::CodedInputStream input, pb::ExtensionRegistry extensionRegistry) { |
| 2653 | pb::UnknownFieldSet.Builder unknownFields = pb::UnknownFieldSet.CreateBuilder(this.UnknownFields); |
| 2654 | while (true) { |
| 2655 | uint tag = input.ReadTag(); |
| 2656 | switch (tag) { |
| 2657 | case 0: { |
| 2658 | this.UnknownFields = unknownFields.Build(); |
| 2659 | return this; |
| 2660 | } |
| 2661 | default: { |
| 2662 | if (!ParseUnknownField(input, unknownFields, extensionRegistry, tag)) { |
| 2663 | this.UnknownFields = unknownFields.Build(); |
| 2664 | return this; |
| 2665 | } |
| 2666 | break; |
| 2667 | } |
| 2668 | case 8: { |
| 2669 | OptionalInt32 = input.ReadInt32(); |
| 2670 | break; |
| 2671 | } |
| 2672 | case 16: { |
| 2673 | OptionalInt64 = input.ReadInt64(); |
| 2674 | break; |
| 2675 | } |
| 2676 | case 24: { |
| 2677 | OptionalUint32 = input.ReadUInt32(); |
| 2678 | break; |
| 2679 | } |
| 2680 | case 32: { |
| 2681 | OptionalUint64 = input.ReadUInt64(); |
| 2682 | break; |
| 2683 | } |
| 2684 | case 40: { |
| 2685 | OptionalSint32 = input.ReadSInt32(); |
| 2686 | break; |
| 2687 | } |
| 2688 | case 48: { |
| 2689 | OptionalSint64 = input.ReadSInt64(); |
| 2690 | break; |
| 2691 | } |
| 2692 | case 61: { |
| 2693 | OptionalFixed32 = input.ReadFixed32(); |
| 2694 | break; |
| 2695 | } |
| 2696 | case 65: { |
| 2697 | OptionalFixed64 = input.ReadFixed64(); |
| 2698 | break; |
| 2699 | } |
| 2700 | case 77: { |
| 2701 | OptionalSfixed32 = input.ReadSFixed32(); |
| 2702 | break; |
| 2703 | } |
| 2704 | case 81: { |
| 2705 | OptionalSfixed64 = input.ReadSFixed64(); |
| 2706 | break; |
| 2707 | } |
| 2708 | case 93: { |
| 2709 | OptionalFloat = input.ReadFloat(); |
| 2710 | break; |
| 2711 | } |
| 2712 | case 97: { |
| 2713 | OptionalDouble = input.ReadDouble(); |
| 2714 | break; |
| 2715 | } |
| 2716 | case 104: { |
| 2717 | OptionalBool = input.ReadBool(); |
| 2718 | break; |
| 2719 | } |
| 2720 | case 114: { |
| 2721 | OptionalString = input.ReadString(); |
| 2722 | break; |
| 2723 | } |
| 2724 | case 122: { |
| 2725 | OptionalBytes = input.ReadBytes(); |
| 2726 | break; |
| 2727 | } |
| 2728 | case 131: { |
| 2729 | global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.OptionalGroup.Builder subBuilder = global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.OptionalGroup.CreateBuilder(); |
| 2730 | if (HasOptionalGroup) { |
| 2731 | subBuilder.MergeFrom(OptionalGroup); |
| 2732 | } |
| 2733 | input.ReadGroup(16, subBuilder, extensionRegistry); |
| 2734 | OptionalGroup = subBuilder.BuildPartial(); |
| 2735 | break; |
| 2736 | } |
| 2737 | case 146: { |
| 2738 | global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedMessage.Builder subBuilder = global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedMessage.CreateBuilder(); |
| 2739 | if (HasOptionalNestedMessage) { |
| 2740 | subBuilder.MergeFrom(OptionalNestedMessage); |
| 2741 | } |
| 2742 | input.ReadMessage(subBuilder, extensionRegistry); |
| 2743 | OptionalNestedMessage = subBuilder.BuildPartial(); |
| 2744 | break; |
| 2745 | } |
| 2746 | case 154: { |
| 2747 | global::Google.ProtocolBuffers.TestProtos.ForeignMessage.Builder subBuilder = global::Google.ProtocolBuffers.TestProtos.ForeignMessage.CreateBuilder(); |
| 2748 | if (HasOptionalForeignMessage) { |
| 2749 | subBuilder.MergeFrom(OptionalForeignMessage); |
| 2750 | } |
| 2751 | input.ReadMessage(subBuilder, extensionRegistry); |
| 2752 | OptionalForeignMessage = subBuilder.BuildPartial(); |
| 2753 | break; |
| 2754 | } |
| 2755 | case 162: { |
| 2756 | global::Google.ProtocolBuffers.TestProtos.ImportMessage.Builder subBuilder = global::Google.ProtocolBuffers.TestProtos.ImportMessage.CreateBuilder(); |
| 2757 | if (HasOptionalImportMessage) { |
| 2758 | subBuilder.MergeFrom(OptionalImportMessage); |
| 2759 | } |
| 2760 | input.ReadMessage(subBuilder, extensionRegistry); |
| 2761 | OptionalImportMessage = subBuilder.BuildPartial(); |
| 2762 | break; |
| 2763 | } |
| 2764 | case 168: { |
| 2765 | int rawValue = input.ReadEnum(); |
| 2766 | if (!global::System.Enum.IsDefined(typeof(global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedEnum), rawValue)) { |
| 2767 | unknownFields.MergeVarintField(21, (ulong) rawValue); |
| 2768 | } else { |
| 2769 | OptionalNestedEnum = (global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedEnum) rawValue; |
| 2770 | } |
| 2771 | break; |
| 2772 | } |
| 2773 | case 176: { |
| 2774 | int rawValue = input.ReadEnum(); |
| 2775 | if (!global::System.Enum.IsDefined(typeof(global::Google.ProtocolBuffers.TestProtos.ForeignEnum), rawValue)) { |
| 2776 | unknownFields.MergeVarintField(22, (ulong) rawValue); |
| 2777 | } else { |
| 2778 | OptionalForeignEnum = (global::Google.ProtocolBuffers.TestProtos.ForeignEnum) rawValue; |
| 2779 | } |
| 2780 | break; |
| 2781 | } |
| 2782 | case 184: { |
| 2783 | int rawValue = input.ReadEnum(); |
| 2784 | if (!global::System.Enum.IsDefined(typeof(global::Google.ProtocolBuffers.TestProtos.ImportEnum), rawValue)) { |
| 2785 | unknownFields.MergeVarintField(23, (ulong) rawValue); |
| 2786 | } else { |
| 2787 | OptionalImportEnum = (global::Google.ProtocolBuffers.TestProtos.ImportEnum) rawValue; |
| 2788 | } |
| 2789 | break; |
| 2790 | } |
| 2791 | case 194: { |
| 2792 | OptionalStringPiece = input.ReadString(); |
| 2793 | break; |
| 2794 | } |
| 2795 | case 202: { |
| 2796 | OptionalCord = input.ReadString(); |
| 2797 | break; |
| 2798 | } |
| 2799 | case 248: { |
| 2800 | AddRepeatedInt32(input.ReadInt32()); |
| 2801 | break; |
| 2802 | } |
| 2803 | case 256: { |
| 2804 | AddRepeatedInt64(input.ReadInt64()); |
| 2805 | break; |
| 2806 | } |
| 2807 | case 264: { |
| 2808 | AddRepeatedUint32(input.ReadUInt32()); |
| 2809 | break; |
| 2810 | } |
| 2811 | case 272: { |
| 2812 | AddRepeatedUint64(input.ReadUInt64()); |
| 2813 | break; |
| 2814 | } |
| 2815 | case 280: { |
| 2816 | AddRepeatedSint32(input.ReadSInt32()); |
| 2817 | break; |
| 2818 | } |
| 2819 | case 288: { |
| 2820 | AddRepeatedSint64(input.ReadSInt64()); |
| 2821 | break; |
| 2822 | } |
| 2823 | case 301: { |
| 2824 | AddRepeatedFixed32(input.ReadFixed32()); |
| 2825 | break; |
| 2826 | } |
| 2827 | case 305: { |
| 2828 | AddRepeatedFixed64(input.ReadFixed64()); |
| 2829 | break; |
| 2830 | } |
| 2831 | case 317: { |
| 2832 | AddRepeatedSfixed32(input.ReadSFixed32()); |
| 2833 | break; |
| 2834 | } |
| 2835 | case 321: { |
| 2836 | AddRepeatedSfixed64(input.ReadSFixed64()); |
| 2837 | break; |
| 2838 | } |
| 2839 | case 333: { |
| 2840 | AddRepeatedFloat(input.ReadFloat()); |
| 2841 | break; |
| 2842 | } |
| 2843 | case 337: { |
| 2844 | AddRepeatedDouble(input.ReadDouble()); |
| 2845 | break; |
| 2846 | } |
| 2847 | case 344: { |
| 2848 | AddRepeatedBool(input.ReadBool()); |
| 2849 | break; |
| 2850 | } |
| 2851 | case 354: { |
| 2852 | AddRepeatedString(input.ReadString()); |
| 2853 | break; |
| 2854 | } |
| 2855 | case 362: { |
| 2856 | AddRepeatedBytes(input.ReadBytes()); |
| 2857 | break; |
| 2858 | } |
| 2859 | case 371: { |
| 2860 | global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.RepeatedGroup.Builder subBuilder = global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.RepeatedGroup.CreateBuilder(); |
| 2861 | input.ReadGroup(46, subBuilder, extensionRegistry); |
| 2862 | AddRepeatedGroup(subBuilder.BuildPartial()); |
| 2863 | break; |
| 2864 | } |
| 2865 | case 386: { |
| 2866 | global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedMessage.Builder subBuilder = global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedMessage.CreateBuilder(); |
| 2867 | input.ReadMessage(subBuilder, extensionRegistry); |
| 2868 | AddRepeatedNestedMessage(subBuilder.BuildPartial()); |
| 2869 | break; |
| 2870 | } |
| 2871 | case 394: { |
| 2872 | global::Google.ProtocolBuffers.TestProtos.ForeignMessage.Builder subBuilder = global::Google.ProtocolBuffers.TestProtos.ForeignMessage.CreateBuilder(); |
| 2873 | input.ReadMessage(subBuilder, extensionRegistry); |
| 2874 | AddRepeatedForeignMessage(subBuilder.BuildPartial()); |
| 2875 | break; |
| 2876 | } |
| 2877 | case 402: { |
| 2878 | global::Google.ProtocolBuffers.TestProtos.ImportMessage.Builder subBuilder = global::Google.ProtocolBuffers.TestProtos.ImportMessage.CreateBuilder(); |
| 2879 | input.ReadMessage(subBuilder, extensionRegistry); |
| 2880 | AddRepeatedImportMessage(subBuilder.BuildPartial()); |
| 2881 | break; |
| 2882 | } |
| 2883 | case 408: { |
| 2884 | int rawValue = input.ReadEnum(); |
| 2885 | if (!global::System.Enum.IsDefined(typeof(global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedEnum), rawValue)) { |
| 2886 | unknownFields.MergeVarintField(51, (ulong) rawValue); |
| 2887 | } else { |
| 2888 | AddRepeatedNestedEnum((global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedEnum) rawValue); |
| 2889 | } |
| 2890 | break; |
| 2891 | } |
| 2892 | case 416: { |
| 2893 | int rawValue = input.ReadEnum(); |
| 2894 | if (!global::System.Enum.IsDefined(typeof(global::Google.ProtocolBuffers.TestProtos.ForeignEnum), rawValue)) { |
| 2895 | unknownFields.MergeVarintField(52, (ulong) rawValue); |
| 2896 | } else { |
| 2897 | AddRepeatedForeignEnum((global::Google.ProtocolBuffers.TestProtos.ForeignEnum) rawValue); |
| 2898 | } |
| 2899 | break; |
| 2900 | } |
| 2901 | case 424: { |
| 2902 | int rawValue = input.ReadEnum(); |
| 2903 | if (!global::System.Enum.IsDefined(typeof(global::Google.ProtocolBuffers.TestProtos.ImportEnum), rawValue)) { |
| 2904 | unknownFields.MergeVarintField(53, (ulong) rawValue); |
| 2905 | } else { |
| 2906 | AddRepeatedImportEnum((global::Google.ProtocolBuffers.TestProtos.ImportEnum) rawValue); |
| 2907 | } |
| 2908 | break; |
| 2909 | } |
| 2910 | case 434: { |
| 2911 | AddRepeatedStringPiece(input.ReadString()); |
| 2912 | break; |
| 2913 | } |
| 2914 | case 442: { |
| 2915 | AddRepeatedCord(input.ReadString()); |
| 2916 | break; |
| 2917 | } |
| 2918 | case 488: { |
| 2919 | DefaultInt32 = input.ReadInt32(); |
| 2920 | break; |
| 2921 | } |
| 2922 | case 496: { |
| 2923 | DefaultInt64 = input.ReadInt64(); |
| 2924 | break; |
| 2925 | } |
| 2926 | case 504: { |
| 2927 | DefaultUint32 = input.ReadUInt32(); |
| 2928 | break; |
| 2929 | } |
| 2930 | case 512: { |
| 2931 | DefaultUint64 = input.ReadUInt64(); |
| 2932 | break; |
| 2933 | } |
| 2934 | case 520: { |
| 2935 | DefaultSint32 = input.ReadSInt32(); |
| 2936 | break; |
| 2937 | } |
| 2938 | case 528: { |
| 2939 | DefaultSint64 = input.ReadSInt64(); |
| 2940 | break; |
| 2941 | } |
| 2942 | case 541: { |
| 2943 | DefaultFixed32 = input.ReadFixed32(); |
| 2944 | break; |
| 2945 | } |
| 2946 | case 545: { |
| 2947 | DefaultFixed64 = input.ReadFixed64(); |
| 2948 | break; |
| 2949 | } |
| 2950 | case 557: { |
| 2951 | DefaultSfixed32 = input.ReadSFixed32(); |
| 2952 | break; |
| 2953 | } |
| 2954 | case 561: { |
| 2955 | DefaultSfixed64 = input.ReadSFixed64(); |
| 2956 | break; |
| 2957 | } |
| 2958 | case 573: { |
| 2959 | DefaultFloat = input.ReadFloat(); |
| 2960 | break; |
| 2961 | } |
| 2962 | case 577: { |
| 2963 | DefaultDouble = input.ReadDouble(); |
| 2964 | break; |
| 2965 | } |
| 2966 | case 584: { |
| 2967 | DefaultBool = input.ReadBool(); |
| 2968 | break; |
| 2969 | } |
| 2970 | case 594: { |
| 2971 | DefaultString = input.ReadString(); |
| 2972 | break; |
| 2973 | } |
| 2974 | case 602: { |
| 2975 | DefaultBytes = input.ReadBytes(); |
| 2976 | break; |
| 2977 | } |
| 2978 | case 648: { |
| 2979 | int rawValue = input.ReadEnum(); |
| 2980 | if (!global::System.Enum.IsDefined(typeof(global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedEnum), rawValue)) { |
| 2981 | unknownFields.MergeVarintField(81, (ulong) rawValue); |
| 2982 | } else { |
| 2983 | DefaultNestedEnum = (global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedEnum) rawValue; |
| 2984 | } |
| 2985 | break; |
| 2986 | } |
| 2987 | case 656: { |
| 2988 | int rawValue = input.ReadEnum(); |
| 2989 | if (!global::System.Enum.IsDefined(typeof(global::Google.ProtocolBuffers.TestProtos.ForeignEnum), rawValue)) { |
| 2990 | unknownFields.MergeVarintField(82, (ulong) rawValue); |
| 2991 | } else { |
| 2992 | DefaultForeignEnum = (global::Google.ProtocolBuffers.TestProtos.ForeignEnum) rawValue; |
| 2993 | } |
| 2994 | break; |
| 2995 | } |
| 2996 | case 664: { |
| 2997 | int rawValue = input.ReadEnum(); |
| 2998 | if (!global::System.Enum.IsDefined(typeof(global::Google.ProtocolBuffers.TestProtos.ImportEnum), rawValue)) { |
| 2999 | unknownFields.MergeVarintField(83, (ulong) rawValue); |
| 3000 | } else { |
| 3001 | DefaultImportEnum = (global::Google.ProtocolBuffers.TestProtos.ImportEnum) rawValue; |
| 3002 | } |
| 3003 | break; |
| 3004 | } |
| 3005 | case 674: { |
| 3006 | DefaultStringPiece = input.ReadString(); |
| 3007 | break; |
| 3008 | } |
| 3009 | case 682: { |
| 3010 | DefaultCord = input.ReadString(); |
| 3011 | break; |
| 3012 | } |
| 3013 | } |
| 3014 | } |
| 3015 | } |
| 3016 | |
| 3017 | |
| 3018 | public bool HasOptionalInt32 { |
| 3019 | get { return result.HasOptionalInt32; } |
| 3020 | } |
| 3021 | public int OptionalInt32 { |
| 3022 | get { return result.OptionalInt32; } |
| 3023 | set { SetOptionalInt32(value); } |
| 3024 | } |
| 3025 | public Builder SetOptionalInt32(int value) { |
| 3026 | result.hasOptionalInt32 = true; |
| 3027 | result.optionalInt32_ = value; |
| 3028 | return this; |
| 3029 | } |
| 3030 | public Builder ClearOptionalInt32() { |
| 3031 | result.hasOptionalInt32 = false; |
| 3032 | result.optionalInt32_ = 0; |
| 3033 | return this; |
| 3034 | } |
| 3035 | |
| 3036 | public bool HasOptionalInt64 { |
| 3037 | get { return result.HasOptionalInt64; } |
| 3038 | } |
| 3039 | public long OptionalInt64 { |
| 3040 | get { return result.OptionalInt64; } |
| 3041 | set { SetOptionalInt64(value); } |
| 3042 | } |
| 3043 | public Builder SetOptionalInt64(long value) { |
| 3044 | result.hasOptionalInt64 = true; |
| 3045 | result.optionalInt64_ = value; |
| 3046 | return this; |
| 3047 | } |
| 3048 | public Builder ClearOptionalInt64() { |
| 3049 | result.hasOptionalInt64 = false; |
| 3050 | result.optionalInt64_ = 0L; |
| 3051 | return this; |
| 3052 | } |
| 3053 | |
| 3054 | public bool HasOptionalUint32 { |
| 3055 | get { return result.HasOptionalUint32; } |
| 3056 | } |
| 3057 | public uint OptionalUint32 { |
| 3058 | get { return result.OptionalUint32; } |
| 3059 | set { SetOptionalUint32(value); } |
| 3060 | } |
| 3061 | public Builder SetOptionalUint32(uint value) { |
| 3062 | result.hasOptionalUint32 = true; |
| 3063 | result.optionalUint32_ = value; |
| 3064 | return this; |
| 3065 | } |
| 3066 | public Builder ClearOptionalUint32() { |
| 3067 | result.hasOptionalUint32 = false; |
| 3068 | result.optionalUint32_ = 0; |
| 3069 | return this; |
| 3070 | } |
| 3071 | |
| 3072 | public bool HasOptionalUint64 { |
| 3073 | get { return result.HasOptionalUint64; } |
| 3074 | } |
| 3075 | public ulong OptionalUint64 { |
| 3076 | get { return result.OptionalUint64; } |
| 3077 | set { SetOptionalUint64(value); } |
| 3078 | } |
| 3079 | public Builder SetOptionalUint64(ulong value) { |
| 3080 | result.hasOptionalUint64 = true; |
| 3081 | result.optionalUint64_ = value; |
| 3082 | return this; |
| 3083 | } |
| 3084 | public Builder ClearOptionalUint64() { |
| 3085 | result.hasOptionalUint64 = false; |
| 3086 | result.optionalUint64_ = 0UL; |
| 3087 | return this; |
| 3088 | } |
| 3089 | |
| 3090 | public bool HasOptionalSint32 { |
| 3091 | get { return result.HasOptionalSint32; } |
| 3092 | } |
| 3093 | public int OptionalSint32 { |
| 3094 | get { return result.OptionalSint32; } |
| 3095 | set { SetOptionalSint32(value); } |
| 3096 | } |
| 3097 | public Builder SetOptionalSint32(int value) { |
| 3098 | result.hasOptionalSint32 = true; |
| 3099 | result.optionalSint32_ = value; |
| 3100 | return this; |
| 3101 | } |
| 3102 | public Builder ClearOptionalSint32() { |
| 3103 | result.hasOptionalSint32 = false; |
| 3104 | result.optionalSint32_ = 0; |
| 3105 | return this; |
| 3106 | } |
| 3107 | |
| 3108 | public bool HasOptionalSint64 { |
| 3109 | get { return result.HasOptionalSint64; } |
| 3110 | } |
| 3111 | public long OptionalSint64 { |
| 3112 | get { return result.OptionalSint64; } |
| 3113 | set { SetOptionalSint64(value); } |
| 3114 | } |
| 3115 | public Builder SetOptionalSint64(long value) { |
| 3116 | result.hasOptionalSint64 = true; |
| 3117 | result.optionalSint64_ = value; |
| 3118 | return this; |
| 3119 | } |
| 3120 | public Builder ClearOptionalSint64() { |
| 3121 | result.hasOptionalSint64 = false; |
| 3122 | result.optionalSint64_ = 0; |
| 3123 | return this; |
| 3124 | } |
| 3125 | |
| 3126 | public bool HasOptionalFixed32 { |
| 3127 | get { return result.HasOptionalFixed32; } |
| 3128 | } |
| 3129 | public uint OptionalFixed32 { |
| 3130 | get { return result.OptionalFixed32; } |
| 3131 | set { SetOptionalFixed32(value); } |
| 3132 | } |
| 3133 | public Builder SetOptionalFixed32(uint value) { |
| 3134 | result.hasOptionalFixed32 = true; |
| 3135 | result.optionalFixed32_ = value; |
| 3136 | return this; |
| 3137 | } |
| 3138 | public Builder ClearOptionalFixed32() { |
| 3139 | result.hasOptionalFixed32 = false; |
| 3140 | result.optionalFixed32_ = 0; |
| 3141 | return this; |
| 3142 | } |
| 3143 | |
| 3144 | public bool HasOptionalFixed64 { |
| 3145 | get { return result.HasOptionalFixed64; } |
| 3146 | } |
| 3147 | public ulong OptionalFixed64 { |
| 3148 | get { return result.OptionalFixed64; } |
| 3149 | set { SetOptionalFixed64(value); } |
| 3150 | } |
| 3151 | public Builder SetOptionalFixed64(ulong value) { |
| 3152 | result.hasOptionalFixed64 = true; |
| 3153 | result.optionalFixed64_ = value; |
| 3154 | return this; |
| 3155 | } |
| 3156 | public Builder ClearOptionalFixed64() { |
| 3157 | result.hasOptionalFixed64 = false; |
| 3158 | result.optionalFixed64_ = 0; |
| 3159 | return this; |
| 3160 | } |
| 3161 | |
| 3162 | public bool HasOptionalSfixed32 { |
| 3163 | get { return result.HasOptionalSfixed32; } |
| 3164 | } |
| 3165 | public int OptionalSfixed32 { |
| 3166 | get { return result.OptionalSfixed32; } |
| 3167 | set { SetOptionalSfixed32(value); } |
| 3168 | } |
| 3169 | public Builder SetOptionalSfixed32(int value) { |
| 3170 | result.hasOptionalSfixed32 = true; |
| 3171 | result.optionalSfixed32_ = value; |
| 3172 | return this; |
| 3173 | } |
| 3174 | public Builder ClearOptionalSfixed32() { |
| 3175 | result.hasOptionalSfixed32 = false; |
| 3176 | result.optionalSfixed32_ = 0; |
| 3177 | return this; |
| 3178 | } |
| 3179 | |
| 3180 | public bool HasOptionalSfixed64 { |
| 3181 | get { return result.HasOptionalSfixed64; } |
| 3182 | } |
| 3183 | public long OptionalSfixed64 { |
| 3184 | get { return result.OptionalSfixed64; } |
| 3185 | set { SetOptionalSfixed64(value); } |
| 3186 | } |
| 3187 | public Builder SetOptionalSfixed64(long value) { |
| 3188 | result.hasOptionalSfixed64 = true; |
| 3189 | result.optionalSfixed64_ = value; |
| 3190 | return this; |
| 3191 | } |
| 3192 | public Builder ClearOptionalSfixed64() { |
| 3193 | result.hasOptionalSfixed64 = false; |
| 3194 | result.optionalSfixed64_ = 0; |
| 3195 | return this; |
| 3196 | } |
| 3197 | |
| 3198 | public bool HasOptionalFloat { |
| 3199 | get { return result.HasOptionalFloat; } |
| 3200 | } |
| 3201 | public float OptionalFloat { |
| 3202 | get { return result.OptionalFloat; } |
| 3203 | set { SetOptionalFloat(value); } |
| 3204 | } |
| 3205 | public Builder SetOptionalFloat(float value) { |
| 3206 | result.hasOptionalFloat = true; |
| 3207 | result.optionalFloat_ = value; |
| 3208 | return this; |
| 3209 | } |
| 3210 | public Builder ClearOptionalFloat() { |
| 3211 | result.hasOptionalFloat = false; |
| 3212 | result.optionalFloat_ = 0F; |
| 3213 | return this; |
| 3214 | } |
| 3215 | |
| 3216 | public bool HasOptionalDouble { |
| 3217 | get { return result.HasOptionalDouble; } |
| 3218 | } |
| 3219 | public double OptionalDouble { |
| 3220 | get { return result.OptionalDouble; } |
| 3221 | set { SetOptionalDouble(value); } |
| 3222 | } |
| 3223 | public Builder SetOptionalDouble(double value) { |
| 3224 | result.hasOptionalDouble = true; |
| 3225 | result.optionalDouble_ = value; |
| 3226 | return this; |
| 3227 | } |
| 3228 | public Builder ClearOptionalDouble() { |
| 3229 | result.hasOptionalDouble = false; |
| 3230 | result.optionalDouble_ = 0D; |
| 3231 | return this; |
| 3232 | } |
| 3233 | |
| 3234 | public bool HasOptionalBool { |
| 3235 | get { return result.HasOptionalBool; } |
| 3236 | } |
| 3237 | public bool OptionalBool { |
| 3238 | get { return result.OptionalBool; } |
| 3239 | set { SetOptionalBool(value); } |
| 3240 | } |
| 3241 | public Builder SetOptionalBool(bool value) { |
| 3242 | result.hasOptionalBool = true; |
| 3243 | result.optionalBool_ = value; |
| 3244 | return this; |
| 3245 | } |
| 3246 | public Builder ClearOptionalBool() { |
| 3247 | result.hasOptionalBool = false; |
| 3248 | result.optionalBool_ = false; |
| 3249 | return this; |
| 3250 | } |
| 3251 | |
| 3252 | public bool HasOptionalString { |
| 3253 | get { return result.HasOptionalString; } |
| 3254 | } |
| 3255 | public string OptionalString { |
| 3256 | get { return result.OptionalString; } |
| 3257 | set { SetOptionalString(value); } |
| 3258 | } |
| 3259 | public Builder SetOptionalString(string value) { |
| 3260 | result.hasOptionalString = true; |
| 3261 | result.optionalString_ = value; |
| 3262 | return this; |
| 3263 | } |
| 3264 | public Builder ClearOptionalString() { |
| 3265 | result.hasOptionalString = false; |
| 3266 | result.optionalString_ = ""; |
| 3267 | return this; |
| 3268 | } |
| 3269 | |
| 3270 | public bool HasOptionalBytes { |
| 3271 | get { return result.HasOptionalBytes; } |
| 3272 | } |
| 3273 | public pb::ByteString OptionalBytes { |
| 3274 | get { return result.OptionalBytes; } |
| 3275 | set { SetOptionalBytes(value); } |
| 3276 | } |
| 3277 | public Builder SetOptionalBytes(pb::ByteString value) { |
| 3278 | result.hasOptionalBytes = true; |
| 3279 | result.optionalBytes_ = value; |
| 3280 | return this; |
| 3281 | } |
| 3282 | public Builder ClearOptionalBytes() { |
| 3283 | result.hasOptionalBytes = false; |
| 3284 | result.optionalBytes_ = pb::ByteString.Empty; |
| 3285 | return this; |
| 3286 | } |
| 3287 | |
| 3288 | public bool HasOptionalGroup { |
| 3289 | get { return result.HasOptionalGroup; } |
| 3290 | } |
| 3291 | public global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.OptionalGroup OptionalGroup { |
| 3292 | get { return result.OptionalGroup; } |
| 3293 | set { SetOptionalGroup(value); } |
| 3294 | } |
| 3295 | public Builder SetOptionalGroup(global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.OptionalGroup value) { |
| 3296 | result.hasOptionalGroup = true; |
| 3297 | result.optionalGroup_ = value; |
| 3298 | return this; |
| 3299 | } |
| 3300 | public Builder SetOptionalGroup(global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.OptionalGroup.Builder builderForValue) { |
| 3301 | result.hasOptionalGroup = true; |
| 3302 | result.optionalGroup_ = builderForValue.Build(); |
| 3303 | return this; |
| 3304 | } |
| 3305 | public Builder MergeOptionalGroup(global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.OptionalGroup value) { |
| 3306 | if (result.HasOptionalGroup && |
| 3307 | result.optionalGroup_ != global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.OptionalGroup.DefaultInstance) { |
| 3308 | result.optionalGroup_ = global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.OptionalGroup.CreateBuilder(result.optionalGroup_).MergeFrom(value).BuildPartial(); |
| 3309 | } else { |
| 3310 | result.optionalGroup_ = value; |
| 3311 | } |
| 3312 | result.hasOptionalGroup = true; |
| 3313 | return this; |
| 3314 | } |
| 3315 | public Builder ClearOptionalGroup() { |
| 3316 | result.hasOptionalGroup = false; |
| 3317 | result.optionalGroup_ = global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.OptionalGroup.DefaultInstance; |
| 3318 | return this; |
| 3319 | } |
| 3320 | |
| 3321 | public bool HasOptionalNestedMessage { |
| 3322 | get { return result.HasOptionalNestedMessage; } |
| 3323 | } |
| 3324 | public global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedMessage OptionalNestedMessage { |
| 3325 | get { return result.OptionalNestedMessage; } |
| 3326 | set { SetOptionalNestedMessage(value); } |
| 3327 | } |
| 3328 | public Builder SetOptionalNestedMessage(global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedMessage value) { |
| 3329 | result.hasOptionalNestedMessage = true; |
| 3330 | result.optionalNestedMessage_ = value; |
| 3331 | return this; |
| 3332 | } |
| 3333 | public Builder SetOptionalNestedMessage(global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedMessage.Builder builderForValue) { |
| 3334 | result.hasOptionalNestedMessage = true; |
| 3335 | result.optionalNestedMessage_ = builderForValue.Build(); |
| 3336 | return this; |
| 3337 | } |
| 3338 | public Builder MergeOptionalNestedMessage(global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedMessage value) { |
| 3339 | if (result.HasOptionalNestedMessage && |
| 3340 | result.optionalNestedMessage_ != global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedMessage.DefaultInstance) { |
| 3341 | result.optionalNestedMessage_ = global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedMessage.CreateBuilder(result.optionalNestedMessage_).MergeFrom(value).BuildPartial(); |
| 3342 | } else { |
| 3343 | result.optionalNestedMessage_ = value; |
| 3344 | } |
| 3345 | result.hasOptionalNestedMessage = true; |
| 3346 | return this; |
| 3347 | } |
| 3348 | public Builder ClearOptionalNestedMessage() { |
| 3349 | result.hasOptionalNestedMessage = false; |
| 3350 | result.optionalNestedMessage_ = global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedMessage.DefaultInstance; |
| 3351 | return this; |
| 3352 | } |
| 3353 | |
| 3354 | public bool HasOptionalForeignMessage { |
| 3355 | get { return result.HasOptionalForeignMessage; } |
| 3356 | } |
| 3357 | public global::Google.ProtocolBuffers.TestProtos.ForeignMessage OptionalForeignMessage { |
| 3358 | get { return result.OptionalForeignMessage; } |
| 3359 | set { SetOptionalForeignMessage(value); } |
| 3360 | } |
| 3361 | public Builder SetOptionalForeignMessage(global::Google.ProtocolBuffers.TestProtos.ForeignMessage value) { |
| 3362 | result.hasOptionalForeignMessage = true; |
| 3363 | result.optionalForeignMessage_ = value; |
| 3364 | return this; |
| 3365 | } |
| 3366 | public Builder SetOptionalForeignMessage(global::Google.ProtocolBuffers.TestProtos.ForeignMessage.Builder builderForValue) { |
| 3367 | result.hasOptionalForeignMessage = true; |
| 3368 | result.optionalForeignMessage_ = builderForValue.Build(); |
| 3369 | return this; |
| 3370 | } |
| 3371 | public Builder MergeOptionalForeignMessage(global::Google.ProtocolBuffers.TestProtos.ForeignMessage value) { |
| 3372 | if (result.HasOptionalForeignMessage && |
| 3373 | result.optionalForeignMessage_ != global::Google.ProtocolBuffers.TestProtos.ForeignMessage.DefaultInstance) { |
| 3374 | result.optionalForeignMessage_ = global::Google.ProtocolBuffers.TestProtos.ForeignMessage.CreateBuilder(result.optionalForeignMessage_).MergeFrom(value).BuildPartial(); |
| 3375 | } else { |
| 3376 | result.optionalForeignMessage_ = value; |
| 3377 | } |
| 3378 | result.hasOptionalForeignMessage = true; |
| 3379 | return this; |
| 3380 | } |
| 3381 | public Builder ClearOptionalForeignMessage() { |
| 3382 | result.hasOptionalForeignMessage = false; |
| 3383 | result.optionalForeignMessage_ = global::Google.ProtocolBuffers.TestProtos.ForeignMessage.DefaultInstance; |
| 3384 | return this; |
| 3385 | } |
| 3386 | |
| 3387 | public bool HasOptionalImportMessage { |
| 3388 | get { return result.HasOptionalImportMessage; } |
| 3389 | } |
| 3390 | public global::Google.ProtocolBuffers.TestProtos.ImportMessage OptionalImportMessage { |
| 3391 | get { return result.OptionalImportMessage; } |
| 3392 | set { SetOptionalImportMessage(value); } |
| 3393 | } |
| 3394 | public Builder SetOptionalImportMessage(global::Google.ProtocolBuffers.TestProtos.ImportMessage value) { |
| 3395 | result.hasOptionalImportMessage = true; |
| 3396 | result.optionalImportMessage_ = value; |
| 3397 | return this; |
| 3398 | } |
| 3399 | public Builder SetOptionalImportMessage(global::Google.ProtocolBuffers.TestProtos.ImportMessage.Builder builderForValue) { |
| 3400 | result.hasOptionalImportMessage = true; |
| 3401 | result.optionalImportMessage_ = builderForValue.Build(); |
| 3402 | return this; |
| 3403 | } |
| 3404 | public Builder MergeOptionalImportMessage(global::Google.ProtocolBuffers.TestProtos.ImportMessage value) { |
| 3405 | if (result.HasOptionalImportMessage && |
| 3406 | result.optionalImportMessage_ != global::Google.ProtocolBuffers.TestProtos.ImportMessage.DefaultInstance) { |
| 3407 | result.optionalImportMessage_ = global::Google.ProtocolBuffers.TestProtos.ImportMessage.CreateBuilder(result.optionalImportMessage_).MergeFrom(value).BuildPartial(); |
| 3408 | } else { |
| 3409 | result.optionalImportMessage_ = value; |
| 3410 | } |
| 3411 | result.hasOptionalImportMessage = true; |
| 3412 | return this; |
| 3413 | } |
| 3414 | public Builder ClearOptionalImportMessage() { |
| 3415 | result.hasOptionalImportMessage = false; |
| 3416 | result.optionalImportMessage_ = global::Google.ProtocolBuffers.TestProtos.ImportMessage.DefaultInstance; |
| 3417 | return this; |
| 3418 | } |
| 3419 | |
| 3420 | public bool HasOptionalNestedEnum { |
| 3421 | get { return result.HasOptionalNestedEnum; } |
| 3422 | } |
| 3423 | public global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedEnum OptionalNestedEnum { |
| 3424 | get { return result.OptionalNestedEnum; } |
| 3425 | set { SetOptionalNestedEnum(value); } |
| 3426 | } |
| 3427 | public Builder SetOptionalNestedEnum(global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedEnum value) { |
| 3428 | result.hasOptionalNestedEnum = true; |
| 3429 | result.optionalNestedEnum_ = value; |
| 3430 | return this; |
| 3431 | } |
| 3432 | public Builder ClearOptionalNestedEnum() { |
| 3433 | result.hasOptionalNestedEnum = false; |
| 3434 | result.optionalNestedEnum_ = global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedEnum.FOO; |
| 3435 | return this; |
| 3436 | } |
| 3437 | |
| 3438 | public bool HasOptionalForeignEnum { |
| 3439 | get { return result.HasOptionalForeignEnum; } |
| 3440 | } |
| 3441 | public global::Google.ProtocolBuffers.TestProtos.ForeignEnum OptionalForeignEnum { |
| 3442 | get { return result.OptionalForeignEnum; } |
| 3443 | set { SetOptionalForeignEnum(value); } |
| 3444 | } |
| 3445 | public Builder SetOptionalForeignEnum(global::Google.ProtocolBuffers.TestProtos.ForeignEnum value) { |
| 3446 | result.hasOptionalForeignEnum = true; |
| 3447 | result.optionalForeignEnum_ = value; |
| 3448 | return this; |
| 3449 | } |
| 3450 | public Builder ClearOptionalForeignEnum() { |
| 3451 | result.hasOptionalForeignEnum = false; |
| 3452 | result.optionalForeignEnum_ = global::Google.ProtocolBuffers.TestProtos.ForeignEnum.FOREIGN_FOO; |
| 3453 | return this; |
| 3454 | } |
| 3455 | |
| 3456 | public bool HasOptionalImportEnum { |
| 3457 | get { return result.HasOptionalImportEnum; } |
| 3458 | } |
| 3459 | public global::Google.ProtocolBuffers.TestProtos.ImportEnum OptionalImportEnum { |
| 3460 | get { return result.OptionalImportEnum; } |
| 3461 | set { SetOptionalImportEnum(value); } |
| 3462 | } |
| 3463 | public Builder SetOptionalImportEnum(global::Google.ProtocolBuffers.TestProtos.ImportEnum value) { |
| 3464 | result.hasOptionalImportEnum = true; |
| 3465 | result.optionalImportEnum_ = value; |
| 3466 | return this; |
| 3467 | } |
| 3468 | public Builder ClearOptionalImportEnum() { |
| 3469 | result.hasOptionalImportEnum = false; |
| 3470 | result.optionalImportEnum_ = global::Google.ProtocolBuffers.TestProtos.ImportEnum.IMPORT_FOO; |
| 3471 | return this; |
| 3472 | } |
| 3473 | |
| 3474 | public bool HasOptionalStringPiece { |
| 3475 | get { return result.HasOptionalStringPiece; } |
| 3476 | } |
| 3477 | public string OptionalStringPiece { |
| 3478 | get { return result.OptionalStringPiece; } |
| 3479 | set { SetOptionalStringPiece(value); } |
| 3480 | } |
| 3481 | public Builder SetOptionalStringPiece(string value) { |
| 3482 | result.hasOptionalStringPiece = true; |
| 3483 | result.optionalStringPiece_ = value; |
| 3484 | return this; |
| 3485 | } |
| 3486 | public Builder ClearOptionalStringPiece() { |
| 3487 | result.hasOptionalStringPiece = false; |
| 3488 | result.optionalStringPiece_ = ""; |
| 3489 | return this; |
| 3490 | } |
| 3491 | |
| 3492 | public bool HasOptionalCord { |
| 3493 | get { return result.HasOptionalCord; } |
| 3494 | } |
| 3495 | public string OptionalCord { |
| 3496 | get { return result.OptionalCord; } |
| 3497 | set { SetOptionalCord(value); } |
| 3498 | } |
| 3499 | public Builder SetOptionalCord(string value) { |
| 3500 | result.hasOptionalCord = true; |
| 3501 | result.optionalCord_ = value; |
| 3502 | return this; |
| 3503 | } |
| 3504 | public Builder ClearOptionalCord() { |
| 3505 | result.hasOptionalCord = false; |
| 3506 | result.optionalCord_ = ""; |
| 3507 | return this; |
| 3508 | } |
| 3509 | |
| 3510 | public scg::IList<int> RepeatedInt32List { |
| 3511 | get { return result.repeatedInt32_; } |
| 3512 | } |
| 3513 | public int RepeatedInt32Count { |
| 3514 | get { return result.RepeatedInt32Count; } |
| 3515 | } |
| 3516 | public int GetRepeatedInt32(int index) { |
| 3517 | return result.GetRepeatedInt32(index); |
| 3518 | } |
| 3519 | public Builder SetRepeatedInt32(int index, int value) { |
| 3520 | result.repeatedInt32_[index] = value; |
| 3521 | return this; |
| 3522 | } |
| 3523 | public Builder AddRepeatedInt32(int value) { |
| 3524 | result.repeatedInt32_.Add(value); |
| 3525 | return this; |
| 3526 | } |
| 3527 | public Builder AddRangeRepeatedInt32(scg::IEnumerable<int> values) { |
| 3528 | base.AddRange(values, result.repeatedInt32_); |
| 3529 | return this; |
| 3530 | } |
| 3531 | public Builder ClearRepeatedInt32() { |
| 3532 | result.repeatedInt32_.Clear(); |
| 3533 | return this; |
| 3534 | } |
| 3535 | |
| 3536 | public scg::IList<long> RepeatedInt64List { |
| 3537 | get { return result.repeatedInt64_; } |
| 3538 | } |
| 3539 | public int RepeatedInt64Count { |
| 3540 | get { return result.RepeatedInt64Count; } |
| 3541 | } |
| 3542 | public long GetRepeatedInt64(int index) { |
| 3543 | return result.GetRepeatedInt64(index); |
| 3544 | } |
| 3545 | public Builder SetRepeatedInt64(int index, long value) { |
| 3546 | result.repeatedInt64_[index] = value; |
| 3547 | return this; |
| 3548 | } |
| 3549 | public Builder AddRepeatedInt64(long value) { |
| 3550 | result.repeatedInt64_.Add(value); |
| 3551 | return this; |
| 3552 | } |
| 3553 | public Builder AddRangeRepeatedInt64(scg::IEnumerable<long> values) { |
| 3554 | base.AddRange(values, result.repeatedInt64_); |
| 3555 | return this; |
| 3556 | } |
| 3557 | public Builder ClearRepeatedInt64() { |
| 3558 | result.repeatedInt64_.Clear(); |
| 3559 | return this; |
| 3560 | } |
| 3561 | |
| 3562 | public scg::IList<uint> RepeatedUint32List { |
| 3563 | get { return result.repeatedUint32_; } |
| 3564 | } |
| 3565 | public int RepeatedUint32Count { |
| 3566 | get { return result.RepeatedUint32Count; } |
| 3567 | } |
| 3568 | public uint GetRepeatedUint32(int index) { |
| 3569 | return result.GetRepeatedUint32(index); |
| 3570 | } |
| 3571 | public Builder SetRepeatedUint32(int index, uint value) { |
| 3572 | result.repeatedUint32_[index] = value; |
| 3573 | return this; |
| 3574 | } |
| 3575 | public Builder AddRepeatedUint32(uint value) { |
| 3576 | result.repeatedUint32_.Add(value); |
| 3577 | return this; |
| 3578 | } |
| 3579 | public Builder AddRangeRepeatedUint32(scg::IEnumerable<uint> values) { |
| 3580 | base.AddRange(values, result.repeatedUint32_); |
| 3581 | return this; |
| 3582 | } |
| 3583 | public Builder ClearRepeatedUint32() { |
| 3584 | result.repeatedUint32_.Clear(); |
| 3585 | return this; |
| 3586 | } |
| 3587 | |
| 3588 | public scg::IList<ulong> RepeatedUint64List { |
| 3589 | get { return result.repeatedUint64_; } |
| 3590 | } |
| 3591 | public int RepeatedUint64Count { |
| 3592 | get { return result.RepeatedUint64Count; } |
| 3593 | } |
| 3594 | public ulong GetRepeatedUint64(int index) { |
| 3595 | return result.GetRepeatedUint64(index); |
| 3596 | } |
| 3597 | public Builder SetRepeatedUint64(int index, ulong value) { |
| 3598 | result.repeatedUint64_[index] = value; |
| 3599 | return this; |
| 3600 | } |
| 3601 | public Builder AddRepeatedUint64(ulong value) { |
| 3602 | result.repeatedUint64_.Add(value); |
| 3603 | return this; |
| 3604 | } |
| 3605 | public Builder AddRangeRepeatedUint64(scg::IEnumerable<ulong> values) { |
| 3606 | base.AddRange(values, result.repeatedUint64_); |
| 3607 | return this; |
| 3608 | } |
| 3609 | public Builder ClearRepeatedUint64() { |
| 3610 | result.repeatedUint64_.Clear(); |
| 3611 | return this; |
| 3612 | } |
| 3613 | |
| 3614 | public scg::IList<int> RepeatedSint32List { |
| 3615 | get { return result.repeatedSint32_; } |
| 3616 | } |
| 3617 | public int RepeatedSint32Count { |
| 3618 | get { return result.RepeatedSint32Count; } |
| 3619 | } |
| 3620 | public int GetRepeatedSint32(int index) { |
| 3621 | return result.GetRepeatedSint32(index); |
| 3622 | } |
| 3623 | public Builder SetRepeatedSint32(int index, int value) { |
| 3624 | result.repeatedSint32_[index] = value; |
| 3625 | return this; |
| 3626 | } |
| 3627 | public Builder AddRepeatedSint32(int value) { |
| 3628 | result.repeatedSint32_.Add(value); |
| 3629 | return this; |
| 3630 | } |
| 3631 | public Builder AddRangeRepeatedSint32(scg::IEnumerable<int> values) { |
| 3632 | base.AddRange(values, result.repeatedSint32_); |
| 3633 | return this; |
| 3634 | } |
| 3635 | public Builder ClearRepeatedSint32() { |
| 3636 | result.repeatedSint32_.Clear(); |
| 3637 | return this; |
| 3638 | } |
| 3639 | |
| 3640 | public scg::IList<long> RepeatedSint64List { |
| 3641 | get { return result.repeatedSint64_; } |
| 3642 | } |
| 3643 | public int RepeatedSint64Count { |
| 3644 | get { return result.RepeatedSint64Count; } |
| 3645 | } |
| 3646 | public long GetRepeatedSint64(int index) { |
| 3647 | return result.GetRepeatedSint64(index); |
| 3648 | } |
| 3649 | public Builder SetRepeatedSint64(int index, long value) { |
| 3650 | result.repeatedSint64_[index] = value; |
| 3651 | return this; |
| 3652 | } |
| 3653 | public Builder AddRepeatedSint64(long value) { |
| 3654 | result.repeatedSint64_.Add(value); |
| 3655 | return this; |
| 3656 | } |
| 3657 | public Builder AddRangeRepeatedSint64(scg::IEnumerable<long> values) { |
| 3658 | base.AddRange(values, result.repeatedSint64_); |
| 3659 | return this; |
| 3660 | } |
| 3661 | public Builder ClearRepeatedSint64() { |
| 3662 | result.repeatedSint64_.Clear(); |
| 3663 | return this; |
| 3664 | } |
| 3665 | |
| 3666 | public scg::IList<uint> RepeatedFixed32List { |
| 3667 | get { return result.repeatedFixed32_; } |
| 3668 | } |
| 3669 | public int RepeatedFixed32Count { |
| 3670 | get { return result.RepeatedFixed32Count; } |
| 3671 | } |
| 3672 | public uint GetRepeatedFixed32(int index) { |
| 3673 | return result.GetRepeatedFixed32(index); |
| 3674 | } |
| 3675 | public Builder SetRepeatedFixed32(int index, uint value) { |
| 3676 | result.repeatedFixed32_[index] = value; |
| 3677 | return this; |
| 3678 | } |
| 3679 | public Builder AddRepeatedFixed32(uint value) { |
| 3680 | result.repeatedFixed32_.Add(value); |
| 3681 | return this; |
| 3682 | } |
| 3683 | public Builder AddRangeRepeatedFixed32(scg::IEnumerable<uint> values) { |
| 3684 | base.AddRange(values, result.repeatedFixed32_); |
| 3685 | return this; |
| 3686 | } |
| 3687 | public Builder ClearRepeatedFixed32() { |
| 3688 | result.repeatedFixed32_.Clear(); |
| 3689 | return this; |
| 3690 | } |
| 3691 | |
| 3692 | public scg::IList<ulong> RepeatedFixed64List { |
| 3693 | get { return result.repeatedFixed64_; } |
| 3694 | } |
| 3695 | public int RepeatedFixed64Count { |
| 3696 | get { return result.RepeatedFixed64Count; } |
| 3697 | } |
| 3698 | public ulong GetRepeatedFixed64(int index) { |
| 3699 | return result.GetRepeatedFixed64(index); |
| 3700 | } |
| 3701 | public Builder SetRepeatedFixed64(int index, ulong value) { |
| 3702 | result.repeatedFixed64_[index] = value; |
| 3703 | return this; |
| 3704 | } |
| 3705 | public Builder AddRepeatedFixed64(ulong value) { |
| 3706 | result.repeatedFixed64_.Add(value); |
| 3707 | return this; |
| 3708 | } |
| 3709 | public Builder AddRangeRepeatedFixed64(scg::IEnumerable<ulong> values) { |
| 3710 | base.AddRange(values, result.repeatedFixed64_); |
| 3711 | return this; |
| 3712 | } |
| 3713 | public Builder ClearRepeatedFixed64() { |
| 3714 | result.repeatedFixed64_.Clear(); |
| 3715 | return this; |
| 3716 | } |
| 3717 | |
| 3718 | public scg::IList<int> RepeatedSfixed32List { |
| 3719 | get { return result.repeatedSfixed32_; } |
| 3720 | } |
| 3721 | public int RepeatedSfixed32Count { |
| 3722 | get { return result.RepeatedSfixed32Count; } |
| 3723 | } |
| 3724 | public int GetRepeatedSfixed32(int index) { |
| 3725 | return result.GetRepeatedSfixed32(index); |
| 3726 | } |
| 3727 | public Builder SetRepeatedSfixed32(int index, int value) { |
| 3728 | result.repeatedSfixed32_[index] = value; |
| 3729 | return this; |
| 3730 | } |
| 3731 | public Builder AddRepeatedSfixed32(int value) { |
| 3732 | result.repeatedSfixed32_.Add(value); |
| 3733 | return this; |
| 3734 | } |
| 3735 | public Builder AddRangeRepeatedSfixed32(scg::IEnumerable<int> values) { |
| 3736 | base.AddRange(values, result.repeatedSfixed32_); |
| 3737 | return this; |
| 3738 | } |
| 3739 | public Builder ClearRepeatedSfixed32() { |
| 3740 | result.repeatedSfixed32_.Clear(); |
| 3741 | return this; |
| 3742 | } |
| 3743 | |
| 3744 | public scg::IList<long> RepeatedSfixed64List { |
| 3745 | get { return result.repeatedSfixed64_; } |
| 3746 | } |
| 3747 | public int RepeatedSfixed64Count { |
| 3748 | get { return result.RepeatedSfixed64Count; } |
| 3749 | } |
| 3750 | public long GetRepeatedSfixed64(int index) { |
| 3751 | return result.GetRepeatedSfixed64(index); |
| 3752 | } |
| 3753 | public Builder SetRepeatedSfixed64(int index, long value) { |
| 3754 | result.repeatedSfixed64_[index] = value; |
| 3755 | return this; |
| 3756 | } |
| 3757 | public Builder AddRepeatedSfixed64(long value) { |
| 3758 | result.repeatedSfixed64_.Add(value); |
| 3759 | return this; |
| 3760 | } |
| 3761 | public Builder AddRangeRepeatedSfixed64(scg::IEnumerable<long> values) { |
| 3762 | base.AddRange(values, result.repeatedSfixed64_); |
| 3763 | return this; |
| 3764 | } |
| 3765 | public Builder ClearRepeatedSfixed64() { |
| 3766 | result.repeatedSfixed64_.Clear(); |
| 3767 | return this; |
| 3768 | } |
| 3769 | |
| 3770 | public scg::IList<float> RepeatedFloatList { |
| 3771 | get { return result.repeatedFloat_; } |
| 3772 | } |
| 3773 | public int RepeatedFloatCount { |
| 3774 | get { return result.RepeatedFloatCount; } |
| 3775 | } |
| 3776 | public float GetRepeatedFloat(int index) { |
| 3777 | return result.GetRepeatedFloat(index); |
| 3778 | } |
| 3779 | public Builder SetRepeatedFloat(int index, float value) { |
| 3780 | result.repeatedFloat_[index] = value; |
| 3781 | return this; |
| 3782 | } |
| 3783 | public Builder AddRepeatedFloat(float value) { |
| 3784 | result.repeatedFloat_.Add(value); |
| 3785 | return this; |
| 3786 | } |
| 3787 | public Builder AddRangeRepeatedFloat(scg::IEnumerable<float> values) { |
| 3788 | base.AddRange(values, result.repeatedFloat_); |
| 3789 | return this; |
| 3790 | } |
| 3791 | public Builder ClearRepeatedFloat() { |
| 3792 | result.repeatedFloat_.Clear(); |
| 3793 | return this; |
| 3794 | } |
| 3795 | |
| 3796 | public scg::IList<double> RepeatedDoubleList { |
| 3797 | get { return result.repeatedDouble_; } |
| 3798 | } |
| 3799 | public int RepeatedDoubleCount { |
| 3800 | get { return result.RepeatedDoubleCount; } |
| 3801 | } |
| 3802 | public double GetRepeatedDouble(int index) { |
| 3803 | return result.GetRepeatedDouble(index); |
| 3804 | } |
| 3805 | public Builder SetRepeatedDouble(int index, double value) { |
| 3806 | result.repeatedDouble_[index] = value; |
| 3807 | return this; |
| 3808 | } |
| 3809 | public Builder AddRepeatedDouble(double value) { |
| 3810 | result.repeatedDouble_.Add(value); |
| 3811 | return this; |
| 3812 | } |
| 3813 | public Builder AddRangeRepeatedDouble(scg::IEnumerable<double> values) { |
| 3814 | base.AddRange(values, result.repeatedDouble_); |
| 3815 | return this; |
| 3816 | } |
| 3817 | public Builder ClearRepeatedDouble() { |
| 3818 | result.repeatedDouble_.Clear(); |
| 3819 | return this; |
| 3820 | } |
| 3821 | |
| 3822 | public scg::IList<bool> RepeatedBoolList { |
| 3823 | get { return result.repeatedBool_; } |
| 3824 | } |
| 3825 | public int RepeatedBoolCount { |
| 3826 | get { return result.RepeatedBoolCount; } |
| 3827 | } |
| 3828 | public bool GetRepeatedBool(int index) { |
| 3829 | return result.GetRepeatedBool(index); |
| 3830 | } |
| 3831 | public Builder SetRepeatedBool(int index, bool value) { |
| 3832 | result.repeatedBool_[index] = value; |
| 3833 | return this; |
| 3834 | } |
| 3835 | public Builder AddRepeatedBool(bool value) { |
| 3836 | result.repeatedBool_.Add(value); |
| 3837 | return this; |
| 3838 | } |
| 3839 | public Builder AddRangeRepeatedBool(scg::IEnumerable<bool> values) { |
| 3840 | base.AddRange(values, result.repeatedBool_); |
| 3841 | return this; |
| 3842 | } |
| 3843 | public Builder ClearRepeatedBool() { |
| 3844 | result.repeatedBool_.Clear(); |
| 3845 | return this; |
| 3846 | } |
| 3847 | |
| 3848 | public scg::IList<string> RepeatedStringList { |
| 3849 | get { return result.repeatedString_; } |
| 3850 | } |
| 3851 | public int RepeatedStringCount { |
| 3852 | get { return result.RepeatedStringCount; } |
| 3853 | } |
| 3854 | public string GetRepeatedString(int index) { |
| 3855 | return result.GetRepeatedString(index); |
| 3856 | } |
| 3857 | public Builder SetRepeatedString(int index, string value) { |
| 3858 | result.repeatedString_[index] = value; |
| 3859 | return this; |
| 3860 | } |
| 3861 | public Builder AddRepeatedString(string value) { |
| 3862 | result.repeatedString_.Add(value); |
| 3863 | return this; |
| 3864 | } |
| 3865 | public Builder AddRangeRepeatedString(scg::IEnumerable<string> values) { |
| 3866 | base.AddRange(values, result.repeatedString_); |
| 3867 | return this; |
| 3868 | } |
| 3869 | public Builder ClearRepeatedString() { |
| 3870 | result.repeatedString_.Clear(); |
| 3871 | return this; |
| 3872 | } |
| 3873 | |
| 3874 | public scg::IList<pb::ByteString> RepeatedBytesList { |
| 3875 | get { return result.repeatedBytes_; } |
| 3876 | } |
| 3877 | public int RepeatedBytesCount { |
| 3878 | get { return result.RepeatedBytesCount; } |
| 3879 | } |
| 3880 | public pb::ByteString GetRepeatedBytes(int index) { |
| 3881 | return result.GetRepeatedBytes(index); |
| 3882 | } |
| 3883 | public Builder SetRepeatedBytes(int index, pb::ByteString value) { |
| 3884 | result.repeatedBytes_[index] = value; |
| 3885 | return this; |
| 3886 | } |
| 3887 | public Builder AddRepeatedBytes(pb::ByteString value) { |
| 3888 | result.repeatedBytes_.Add(value); |
| 3889 | return this; |
| 3890 | } |
| 3891 | public Builder AddRangeRepeatedBytes(scg::IEnumerable<pb::ByteString> values) { |
| 3892 | base.AddRange(values, result.repeatedBytes_); |
| 3893 | return this; |
| 3894 | } |
| 3895 | public Builder ClearRepeatedBytes() { |
| 3896 | result.repeatedBytes_.Clear(); |
| 3897 | return this; |
| 3898 | } |
| 3899 | |
| 3900 | public scg::IList<global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.RepeatedGroup> RepeatedGroupList { |
| 3901 | get { return result.repeatedGroup_; } |
| 3902 | } |
| 3903 | public int RepeatedGroupCount { |
| 3904 | get { return result.RepeatedGroupCount; } |
| 3905 | } |
| 3906 | public global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.RepeatedGroup GetRepeatedGroup(int index) { |
| 3907 | return result.GetRepeatedGroup(index); |
| 3908 | } |
| 3909 | public Builder SetRepeatedGroup(int index, global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.RepeatedGroup value) { |
| 3910 | result.repeatedGroup_[index] = value; |
| 3911 | return this; |
| 3912 | } |
| 3913 | public Builder SetRepeatedGroup(int index, global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.RepeatedGroup.Builder builderForValue) { |
| 3914 | result.repeatedGroup_[index] = builderForValue.Build(); |
| 3915 | return this; |
| 3916 | } |
| 3917 | public Builder AddRepeatedGroup(global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.RepeatedGroup value) { |
| 3918 | result.repeatedGroup_.Add(value); |
| 3919 | return this; |
| 3920 | } |
| 3921 | public Builder AddRepeatedGroup(global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.RepeatedGroup.Builder builderForValue) { |
| 3922 | result.repeatedGroup_.Add(builderForValue.Build()); |
| 3923 | return this; |
| 3924 | } |
| 3925 | public Builder AddRangeRepeatedGroup(scg::IEnumerable<global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.RepeatedGroup> values) { |
| 3926 | base.AddRange(values, result.repeatedGroup_); |
| 3927 | return this; |
| 3928 | } |
| 3929 | public Builder ClearRepeatedGroup() { |
| 3930 | result.repeatedGroup_.Clear(); |
| 3931 | return this; |
| 3932 | } |
| 3933 | |
| 3934 | public scg::IList<global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedMessage> RepeatedNestedMessageList { |
| 3935 | get { return result.repeatedNestedMessage_; } |
| 3936 | } |
| 3937 | public int RepeatedNestedMessageCount { |
| 3938 | get { return result.RepeatedNestedMessageCount; } |
| 3939 | } |
| 3940 | public global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedMessage GetRepeatedNestedMessage(int index) { |
| 3941 | return result.GetRepeatedNestedMessage(index); |
| 3942 | } |
| 3943 | public Builder SetRepeatedNestedMessage(int index, global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedMessage value) { |
| 3944 | result.repeatedNestedMessage_[index] = value; |
| 3945 | return this; |
| 3946 | } |
| 3947 | public Builder SetRepeatedNestedMessage(int index, global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedMessage.Builder builderForValue) { |
| 3948 | result.repeatedNestedMessage_[index] = builderForValue.Build(); |
| 3949 | return this; |
| 3950 | } |
| 3951 | public Builder AddRepeatedNestedMessage(global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedMessage value) { |
| 3952 | result.repeatedNestedMessage_.Add(value); |
| 3953 | return this; |
| 3954 | } |
| 3955 | public Builder AddRepeatedNestedMessage(global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedMessage.Builder builderForValue) { |
| 3956 | result.repeatedNestedMessage_.Add(builderForValue.Build()); |
| 3957 | return this; |
| 3958 | } |
| 3959 | public Builder AddRangeRepeatedNestedMessage(scg::IEnumerable<global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedMessage> values) { |
| 3960 | base.AddRange(values, result.repeatedNestedMessage_); |
| 3961 | return this; |
| 3962 | } |
| 3963 | public Builder ClearRepeatedNestedMessage() { |
| 3964 | result.repeatedNestedMessage_.Clear(); |
| 3965 | return this; |
| 3966 | } |
| 3967 | |
| 3968 | public scg::IList<global::Google.ProtocolBuffers.TestProtos.ForeignMessage> RepeatedForeignMessageList { |
| 3969 | get { return result.repeatedForeignMessage_; } |
| 3970 | } |
| 3971 | public int RepeatedForeignMessageCount { |
| 3972 | get { return result.RepeatedForeignMessageCount; } |
| 3973 | } |
| 3974 | public global::Google.ProtocolBuffers.TestProtos.ForeignMessage GetRepeatedForeignMessage(int index) { |
| 3975 | return result.GetRepeatedForeignMessage(index); |
| 3976 | } |
| 3977 | public Builder SetRepeatedForeignMessage(int index, global::Google.ProtocolBuffers.TestProtos.ForeignMessage value) { |
| 3978 | result.repeatedForeignMessage_[index] = value; |
| 3979 | return this; |
| 3980 | } |
| 3981 | public Builder SetRepeatedForeignMessage(int index, global::Google.ProtocolBuffers.TestProtos.ForeignMessage.Builder builderForValue) { |
| 3982 | result.repeatedForeignMessage_[index] = builderForValue.Build(); |
| 3983 | return this; |
| 3984 | } |
| 3985 | public Builder AddRepeatedForeignMessage(global::Google.ProtocolBuffers.TestProtos.ForeignMessage value) { |
| 3986 | result.repeatedForeignMessage_.Add(value); |
| 3987 | return this; |
| 3988 | } |
| 3989 | public Builder AddRepeatedForeignMessage(global::Google.ProtocolBuffers.TestProtos.ForeignMessage.Builder builderForValue) { |
| 3990 | result.repeatedForeignMessage_.Add(builderForValue.Build()); |
| 3991 | return this; |
| 3992 | } |
| 3993 | public Builder AddRangeRepeatedForeignMessage(scg::IEnumerable<global::Google.ProtocolBuffers.TestProtos.ForeignMessage> values) { |
| 3994 | base.AddRange(values, result.repeatedForeignMessage_); |
| 3995 | return this; |
| 3996 | } |
| 3997 | public Builder ClearRepeatedForeignMessage() { |
| 3998 | result.repeatedForeignMessage_.Clear(); |
| 3999 | return this; |
| 4000 | } |
| 4001 | |
| 4002 | public scg::IList<global::Google.ProtocolBuffers.TestProtos.ImportMessage> RepeatedImportMessageList { |
| 4003 | get { return result.repeatedImportMessage_; } |
| 4004 | } |
| 4005 | public int RepeatedImportMessageCount { |
| 4006 | get { return result.RepeatedImportMessageCount; } |
| 4007 | } |
| 4008 | public global::Google.ProtocolBuffers.TestProtos.ImportMessage GetRepeatedImportMessage(int index) { |
| 4009 | return result.GetRepeatedImportMessage(index); |
| 4010 | } |
| 4011 | public Builder SetRepeatedImportMessage(int index, global::Google.ProtocolBuffers.TestProtos.ImportMessage value) { |
| 4012 | result.repeatedImportMessage_[index] = value; |
| 4013 | return this; |
| 4014 | } |
| 4015 | public Builder SetRepeatedImportMessage(int index, global::Google.ProtocolBuffers.TestProtos.ImportMessage.Builder builderForValue) { |
| 4016 | result.repeatedImportMessage_[index] = builderForValue.Build(); |
| 4017 | return this; |
| 4018 | } |
| 4019 | public Builder AddRepeatedImportMessage(global::Google.ProtocolBuffers.TestProtos.ImportMessage value) { |
| 4020 | result.repeatedImportMessage_.Add(value); |
| 4021 | return this; |
| 4022 | } |
| 4023 | public Builder AddRepeatedImportMessage(global::Google.ProtocolBuffers.TestProtos.ImportMessage.Builder builderForValue) { |
| 4024 | result.repeatedImportMessage_.Add(builderForValue.Build()); |
| 4025 | return this; |
| 4026 | } |
| 4027 | public Builder AddRangeRepeatedImportMessage(scg::IEnumerable<global::Google.ProtocolBuffers.TestProtos.ImportMessage> values) { |
| 4028 | base.AddRange(values, result.repeatedImportMessage_); |
| 4029 | return this; |
| 4030 | } |
| 4031 | public Builder ClearRepeatedImportMessage() { |
| 4032 | result.repeatedImportMessage_.Clear(); |
| 4033 | return this; |
| 4034 | } |
| 4035 | |
| 4036 | public scg::IList<global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedEnum> RepeatedNestedEnumList { |
| 4037 | get { return result.repeatedNestedEnum_; } |
| 4038 | } |
| 4039 | public int RepeatedNestedEnumCount { |
| 4040 | get { return result.RepeatedNestedEnumCount; } |
| 4041 | } |
| 4042 | public global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedEnum GetRepeatedNestedEnum(int index) { |
| 4043 | return result.GetRepeatedNestedEnum(index); |
| 4044 | } |
| 4045 | public Builder SetRepeatedNestedEnum(int index, global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedEnum value) { |
| 4046 | result.repeatedNestedEnum_[index] = value; |
| 4047 | return this; |
| 4048 | } |
| 4049 | public Builder AddRepeatedNestedEnum(global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedEnum value) { |
| 4050 | result.repeatedNestedEnum_.Add(value); |
| 4051 | return this; |
| 4052 | } |
| 4053 | public Builder AddRangeRepeatedNestedEnum(scg::IEnumerable<global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedEnum> values) { |
| 4054 | base.AddRange(values, result.repeatedNestedEnum_); |
| 4055 | return this; |
| 4056 | } |
| 4057 | public Builder ClearRepeatedNestedEnum() { |
| 4058 | result.repeatedNestedEnum_.Clear(); |
| 4059 | return this; |
| 4060 | } |
| 4061 | |
| 4062 | public scg::IList<global::Google.ProtocolBuffers.TestProtos.ForeignEnum> RepeatedForeignEnumList { |
| 4063 | get { return result.repeatedForeignEnum_; } |
| 4064 | } |
| 4065 | public int RepeatedForeignEnumCount { |
| 4066 | get { return result.RepeatedForeignEnumCount; } |
| 4067 | } |
| 4068 | public global::Google.ProtocolBuffers.TestProtos.ForeignEnum GetRepeatedForeignEnum(int index) { |
| 4069 | return result.GetRepeatedForeignEnum(index); |
| 4070 | } |
| 4071 | public Builder SetRepeatedForeignEnum(int index, global::Google.ProtocolBuffers.TestProtos.ForeignEnum value) { |
| 4072 | result.repeatedForeignEnum_[index] = value; |
| 4073 | return this; |
| 4074 | } |
| 4075 | public Builder AddRepeatedForeignEnum(global::Google.ProtocolBuffers.TestProtos.ForeignEnum value) { |
| 4076 | result.repeatedForeignEnum_.Add(value); |
| 4077 | return this; |
| 4078 | } |
| 4079 | public Builder AddRangeRepeatedForeignEnum(scg::IEnumerable<global::Google.ProtocolBuffers.TestProtos.ForeignEnum> values) { |
| 4080 | base.AddRange(values, result.repeatedForeignEnum_); |
| 4081 | return this; |
| 4082 | } |
| 4083 | public Builder ClearRepeatedForeignEnum() { |
| 4084 | result.repeatedForeignEnum_.Clear(); |
| 4085 | return this; |
| 4086 | } |
| 4087 | |
| 4088 | public scg::IList<global::Google.ProtocolBuffers.TestProtos.ImportEnum> RepeatedImportEnumList { |
| 4089 | get { return result.repeatedImportEnum_; } |
| 4090 | } |
| 4091 | public int RepeatedImportEnumCount { |
| 4092 | get { return result.RepeatedImportEnumCount; } |
| 4093 | } |
| 4094 | public global::Google.ProtocolBuffers.TestProtos.ImportEnum GetRepeatedImportEnum(int index) { |
| 4095 | return result.GetRepeatedImportEnum(index); |
| 4096 | } |
| 4097 | public Builder SetRepeatedImportEnum(int index, global::Google.ProtocolBuffers.TestProtos.ImportEnum value) { |
| 4098 | result.repeatedImportEnum_[index] = value; |
| 4099 | return this; |
| 4100 | } |
| 4101 | public Builder AddRepeatedImportEnum(global::Google.ProtocolBuffers.TestProtos.ImportEnum value) { |
| 4102 | result.repeatedImportEnum_.Add(value); |
| 4103 | return this; |
| 4104 | } |
| 4105 | public Builder AddRangeRepeatedImportEnum(scg::IEnumerable<global::Google.ProtocolBuffers.TestProtos.ImportEnum> values) { |
| 4106 | base.AddRange(values, result.repeatedImportEnum_); |
| 4107 | return this; |
| 4108 | } |
| 4109 | public Builder ClearRepeatedImportEnum() { |
| 4110 | result.repeatedImportEnum_.Clear(); |
| 4111 | return this; |
| 4112 | } |
| 4113 | |
| 4114 | public scg::IList<string> RepeatedStringPieceList { |
| 4115 | get { return result.repeatedStringPiece_; } |
| 4116 | } |
| 4117 | public int RepeatedStringPieceCount { |
| 4118 | get { return result.RepeatedStringPieceCount; } |
| 4119 | } |
| 4120 | public string GetRepeatedStringPiece(int index) { |
| 4121 | return result.GetRepeatedStringPiece(index); |
| 4122 | } |
| 4123 | public Builder SetRepeatedStringPiece(int index, string value) { |
| 4124 | result.repeatedStringPiece_[index] = value; |
| 4125 | return this; |
| 4126 | } |
| 4127 | public Builder AddRepeatedStringPiece(string value) { |
| 4128 | result.repeatedStringPiece_.Add(value); |
| 4129 | return this; |
| 4130 | } |
| 4131 | public Builder AddRangeRepeatedStringPiece(scg::IEnumerable<string> values) { |
| 4132 | base.AddRange(values, result.repeatedStringPiece_); |
| 4133 | return this; |
| 4134 | } |
| 4135 | public Builder ClearRepeatedStringPiece() { |
| 4136 | result.repeatedStringPiece_.Clear(); |
| 4137 | return this; |
| 4138 | } |
| 4139 | |
| 4140 | public scg::IList<string> RepeatedCordList { |
| 4141 | get { return result.repeatedCord_; } |
| 4142 | } |
| 4143 | public int RepeatedCordCount { |
| 4144 | get { return result.RepeatedCordCount; } |
| 4145 | } |
| 4146 | public string GetRepeatedCord(int index) { |
| 4147 | return result.GetRepeatedCord(index); |
| 4148 | } |
| 4149 | public Builder SetRepeatedCord(int index, string value) { |
| 4150 | result.repeatedCord_[index] = value; |
| 4151 | return this; |
| 4152 | } |
| 4153 | public Builder AddRepeatedCord(string value) { |
| 4154 | result.repeatedCord_.Add(value); |
| 4155 | return this; |
| 4156 | } |
| 4157 | public Builder AddRangeRepeatedCord(scg::IEnumerable<string> values) { |
| 4158 | base.AddRange(values, result.repeatedCord_); |
| 4159 | return this; |
| 4160 | } |
| 4161 | public Builder ClearRepeatedCord() { |
| 4162 | result.repeatedCord_.Clear(); |
| 4163 | return this; |
| 4164 | } |
| 4165 | |
| 4166 | public bool HasDefaultInt32 { |
| 4167 | get { return result.HasDefaultInt32; } |
| 4168 | } |
| 4169 | public int DefaultInt32 { |
| 4170 | get { return result.DefaultInt32; } |
| 4171 | set { SetDefaultInt32(value); } |
| 4172 | } |
| 4173 | public Builder SetDefaultInt32(int value) { |
| 4174 | result.hasDefaultInt32 = true; |
| 4175 | result.defaultInt32_ = value; |
| 4176 | return this; |
| 4177 | } |
| 4178 | public Builder ClearDefaultInt32() { |
| 4179 | result.hasDefaultInt32 = false; |
| 4180 | result.defaultInt32_ = 41; |
| 4181 | return this; |
| 4182 | } |
| 4183 | |
| 4184 | public bool HasDefaultInt64 { |
| 4185 | get { return result.HasDefaultInt64; } |
| 4186 | } |
| 4187 | public long DefaultInt64 { |
| 4188 | get { return result.DefaultInt64; } |
| 4189 | set { SetDefaultInt64(value); } |
| 4190 | } |
| 4191 | public Builder SetDefaultInt64(long value) { |
| 4192 | result.hasDefaultInt64 = true; |
| 4193 | result.defaultInt64_ = value; |
| 4194 | return this; |
| 4195 | } |
| 4196 | public Builder ClearDefaultInt64() { |
| 4197 | result.hasDefaultInt64 = false; |
| 4198 | result.defaultInt64_ = 42L; |
| 4199 | return this; |
| 4200 | } |
| 4201 | |
| 4202 | public bool HasDefaultUint32 { |
| 4203 | get { return result.HasDefaultUint32; } |
| 4204 | } |
| 4205 | public uint DefaultUint32 { |
| 4206 | get { return result.DefaultUint32; } |
| 4207 | set { SetDefaultUint32(value); } |
| 4208 | } |
| 4209 | public Builder SetDefaultUint32(uint value) { |
| 4210 | result.hasDefaultUint32 = true; |
| 4211 | result.defaultUint32_ = value; |
| 4212 | return this; |
| 4213 | } |
| 4214 | public Builder ClearDefaultUint32() { |
| 4215 | result.hasDefaultUint32 = false; |
| 4216 | result.defaultUint32_ = 43; |
| 4217 | return this; |
| 4218 | } |
| 4219 | |
| 4220 | public bool HasDefaultUint64 { |
| 4221 | get { return result.HasDefaultUint64; } |
| 4222 | } |
| 4223 | public ulong DefaultUint64 { |
| 4224 | get { return result.DefaultUint64; } |
| 4225 | set { SetDefaultUint64(value); } |
| 4226 | } |
| 4227 | public Builder SetDefaultUint64(ulong value) { |
| 4228 | result.hasDefaultUint64 = true; |
| 4229 | result.defaultUint64_ = value; |
| 4230 | return this; |
| 4231 | } |
| 4232 | public Builder ClearDefaultUint64() { |
| 4233 | result.hasDefaultUint64 = false; |
| 4234 | result.defaultUint64_ = 44UL; |
| 4235 | return this; |
| 4236 | } |
| 4237 | |
| 4238 | public bool HasDefaultSint32 { |
| 4239 | get { return result.HasDefaultSint32; } |
| 4240 | } |
| 4241 | public int DefaultSint32 { |
| 4242 | get { return result.DefaultSint32; } |
| 4243 | set { SetDefaultSint32(value); } |
| 4244 | } |
| 4245 | public Builder SetDefaultSint32(int value) { |
| 4246 | result.hasDefaultSint32 = true; |
| 4247 | result.defaultSint32_ = value; |
| 4248 | return this; |
| 4249 | } |
| 4250 | public Builder ClearDefaultSint32() { |
| 4251 | result.hasDefaultSint32 = false; |
| 4252 | result.defaultSint32_ = -45; |
| 4253 | return this; |
| 4254 | } |
| 4255 | |
| 4256 | public bool HasDefaultSint64 { |
| 4257 | get { return result.HasDefaultSint64; } |
| 4258 | } |
| 4259 | public long DefaultSint64 { |
| 4260 | get { return result.DefaultSint64; } |
| 4261 | set { SetDefaultSint64(value); } |
| 4262 | } |
| 4263 | public Builder SetDefaultSint64(long value) { |
| 4264 | result.hasDefaultSint64 = true; |
| 4265 | result.defaultSint64_ = value; |
| 4266 | return this; |
| 4267 | } |
| 4268 | public Builder ClearDefaultSint64() { |
| 4269 | result.hasDefaultSint64 = false; |
| 4270 | result.defaultSint64_ = 46; |
| 4271 | return this; |
| 4272 | } |
| 4273 | |
| 4274 | public bool HasDefaultFixed32 { |
| 4275 | get { return result.HasDefaultFixed32; } |
| 4276 | } |
| 4277 | public uint DefaultFixed32 { |
| 4278 | get { return result.DefaultFixed32; } |
| 4279 | set { SetDefaultFixed32(value); } |
| 4280 | } |
| 4281 | public Builder SetDefaultFixed32(uint value) { |
| 4282 | result.hasDefaultFixed32 = true; |
| 4283 | result.defaultFixed32_ = value; |
| 4284 | return this; |
| 4285 | } |
| 4286 | public Builder ClearDefaultFixed32() { |
| 4287 | result.hasDefaultFixed32 = false; |
| 4288 | result.defaultFixed32_ = 47; |
| 4289 | return this; |
| 4290 | } |
| 4291 | |
| 4292 | public bool HasDefaultFixed64 { |
| 4293 | get { return result.HasDefaultFixed64; } |
| 4294 | } |
| 4295 | public ulong DefaultFixed64 { |
| 4296 | get { return result.DefaultFixed64; } |
| 4297 | set { SetDefaultFixed64(value); } |
| 4298 | } |
| 4299 | public Builder SetDefaultFixed64(ulong value) { |
| 4300 | result.hasDefaultFixed64 = true; |
| 4301 | result.defaultFixed64_ = value; |
| 4302 | return this; |
| 4303 | } |
| 4304 | public Builder ClearDefaultFixed64() { |
| 4305 | result.hasDefaultFixed64 = false; |
| 4306 | result.defaultFixed64_ = 48; |
| 4307 | return this; |
| 4308 | } |
| 4309 | |
| 4310 | public bool HasDefaultSfixed32 { |
| 4311 | get { return result.HasDefaultSfixed32; } |
| 4312 | } |
| 4313 | public int DefaultSfixed32 { |
| 4314 | get { return result.DefaultSfixed32; } |
| 4315 | set { SetDefaultSfixed32(value); } |
| 4316 | } |
| 4317 | public Builder SetDefaultSfixed32(int value) { |
| 4318 | result.hasDefaultSfixed32 = true; |
| 4319 | result.defaultSfixed32_ = value; |
| 4320 | return this; |
| 4321 | } |
| 4322 | public Builder ClearDefaultSfixed32() { |
| 4323 | result.hasDefaultSfixed32 = false; |
| 4324 | result.defaultSfixed32_ = 49; |
| 4325 | return this; |
| 4326 | } |
| 4327 | |
| 4328 | public bool HasDefaultSfixed64 { |
| 4329 | get { return result.HasDefaultSfixed64; } |
| 4330 | } |
| 4331 | public long DefaultSfixed64 { |
| 4332 | get { return result.DefaultSfixed64; } |
| 4333 | set { SetDefaultSfixed64(value); } |
| 4334 | } |
| 4335 | public Builder SetDefaultSfixed64(long value) { |
| 4336 | result.hasDefaultSfixed64 = true; |
| 4337 | result.defaultSfixed64_ = value; |
| 4338 | return this; |
| 4339 | } |
| 4340 | public Builder ClearDefaultSfixed64() { |
| 4341 | result.hasDefaultSfixed64 = false; |
| 4342 | result.defaultSfixed64_ = -50; |
| 4343 | return this; |
| 4344 | } |
| 4345 | |
| 4346 | public bool HasDefaultFloat { |
| 4347 | get { return result.HasDefaultFloat; } |
| 4348 | } |
| 4349 | public float DefaultFloat { |
| 4350 | get { return result.DefaultFloat; } |
| 4351 | set { SetDefaultFloat(value); } |
| 4352 | } |
| 4353 | public Builder SetDefaultFloat(float value) { |
| 4354 | result.hasDefaultFloat = true; |
| 4355 | result.defaultFloat_ = value; |
| 4356 | return this; |
| 4357 | } |
| 4358 | public Builder ClearDefaultFloat() { |
| 4359 | result.hasDefaultFloat = false; |
| 4360 | result.defaultFloat_ = 51.5F; |
| 4361 | return this; |
| 4362 | } |
| 4363 | |
| 4364 | public bool HasDefaultDouble { |
| 4365 | get { return result.HasDefaultDouble; } |
| 4366 | } |
| 4367 | public double DefaultDouble { |
| 4368 | get { return result.DefaultDouble; } |
| 4369 | set { SetDefaultDouble(value); } |
| 4370 | } |
| 4371 | public Builder SetDefaultDouble(double value) { |
| 4372 | result.hasDefaultDouble = true; |
| 4373 | result.defaultDouble_ = value; |
| 4374 | return this; |
| 4375 | } |
| 4376 | public Builder ClearDefaultDouble() { |
| 4377 | result.hasDefaultDouble = false; |
| 4378 | result.defaultDouble_ = 52000D; |
| 4379 | return this; |
| 4380 | } |
| 4381 | |
| 4382 | public bool HasDefaultBool { |
| 4383 | get { return result.HasDefaultBool; } |
| 4384 | } |
| 4385 | public bool DefaultBool { |
| 4386 | get { return result.DefaultBool; } |
| 4387 | set { SetDefaultBool(value); } |
| 4388 | } |
| 4389 | public Builder SetDefaultBool(bool value) { |
| 4390 | result.hasDefaultBool = true; |
| 4391 | result.defaultBool_ = value; |
| 4392 | return this; |
| 4393 | } |
| 4394 | public Builder ClearDefaultBool() { |
| 4395 | result.hasDefaultBool = false; |
| 4396 | result.defaultBool_ = true; |
| 4397 | return this; |
| 4398 | } |
| 4399 | |
| 4400 | public bool HasDefaultString { |
| 4401 | get { return result.HasDefaultString; } |
| 4402 | } |
| 4403 | public string DefaultString { |
| 4404 | get { return result.DefaultString; } |
| 4405 | set { SetDefaultString(value); } |
| 4406 | } |
| 4407 | public Builder SetDefaultString(string value) { |
| 4408 | result.hasDefaultString = true; |
| 4409 | result.defaultString_ = value; |
| 4410 | return this; |
| 4411 | } |
| 4412 | public Builder ClearDefaultString() { |
| 4413 | result.hasDefaultString = false; |
| 4414 | result.defaultString_ = "hello"; |
| 4415 | return this; |
| 4416 | } |
| 4417 | |
| 4418 | public bool HasDefaultBytes { |
| 4419 | get { return result.HasDefaultBytes; } |
| 4420 | } |
| 4421 | public pb::ByteString DefaultBytes { |
| 4422 | get { return result.DefaultBytes; } |
| 4423 | set { SetDefaultBytes(value); } |
| 4424 | } |
| 4425 | public Builder SetDefaultBytes(pb::ByteString value) { |
| 4426 | result.hasDefaultBytes = true; |
| 4427 | result.defaultBytes_ = value; |
| 4428 | return this; |
| 4429 | } |
| 4430 | public Builder ClearDefaultBytes() { |
| 4431 | result.hasDefaultBytes = false; |
| 4432 | result.defaultBytes_ = (pb::ByteString) global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Descriptor.Fields[62].DefaultValue; |
| 4433 | return this; |
| 4434 | } |
| 4435 | |
| 4436 | public bool HasDefaultNestedEnum { |
| 4437 | get { return result.HasDefaultNestedEnum; } |
| 4438 | } |
| 4439 | public global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedEnum DefaultNestedEnum { |
| 4440 | get { return result.DefaultNestedEnum; } |
| 4441 | set { SetDefaultNestedEnum(value); } |
| 4442 | } |
| 4443 | public Builder SetDefaultNestedEnum(global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedEnum value) { |
| 4444 | result.hasDefaultNestedEnum = true; |
| 4445 | result.defaultNestedEnum_ = value; |
| 4446 | return this; |
| 4447 | } |
| 4448 | public Builder ClearDefaultNestedEnum() { |
| 4449 | result.hasDefaultNestedEnum = false; |
| 4450 | result.defaultNestedEnum_ = global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedEnum.BAR; |
| 4451 | return this; |
| 4452 | } |
| 4453 | |
| 4454 | public bool HasDefaultForeignEnum { |
| 4455 | get { return result.HasDefaultForeignEnum; } |
| 4456 | } |
| 4457 | public global::Google.ProtocolBuffers.TestProtos.ForeignEnum DefaultForeignEnum { |
| 4458 | get { return result.DefaultForeignEnum; } |
| 4459 | set { SetDefaultForeignEnum(value); } |
| 4460 | } |
| 4461 | public Builder SetDefaultForeignEnum(global::Google.ProtocolBuffers.TestProtos.ForeignEnum value) { |
| 4462 | result.hasDefaultForeignEnum = true; |
| 4463 | result.defaultForeignEnum_ = value; |
| 4464 | return this; |
| 4465 | } |
| 4466 | public Builder ClearDefaultForeignEnum() { |
| 4467 | result.hasDefaultForeignEnum = false; |
| 4468 | result.defaultForeignEnum_ = global::Google.ProtocolBuffers.TestProtos.ForeignEnum.FOREIGN_BAR; |
| 4469 | return this; |
| 4470 | } |
| 4471 | |
| 4472 | public bool HasDefaultImportEnum { |
| 4473 | get { return result.HasDefaultImportEnum; } |
| 4474 | } |
| 4475 | public global::Google.ProtocolBuffers.TestProtos.ImportEnum DefaultImportEnum { |
| 4476 | get { return result.DefaultImportEnum; } |
| 4477 | set { SetDefaultImportEnum(value); } |
| 4478 | } |
| 4479 | public Builder SetDefaultImportEnum(global::Google.ProtocolBuffers.TestProtos.ImportEnum value) { |
| 4480 | result.hasDefaultImportEnum = true; |
| 4481 | result.defaultImportEnum_ = value; |
| 4482 | return this; |
| 4483 | } |
| 4484 | public Builder ClearDefaultImportEnum() { |
| 4485 | result.hasDefaultImportEnum = false; |
| 4486 | result.defaultImportEnum_ = global::Google.ProtocolBuffers.TestProtos.ImportEnum.IMPORT_BAR; |
| 4487 | return this; |
| 4488 | } |
| 4489 | |
| 4490 | public bool HasDefaultStringPiece { |
| 4491 | get { return result.HasDefaultStringPiece; } |
| 4492 | } |
| 4493 | public string DefaultStringPiece { |
| 4494 | get { return result.DefaultStringPiece; } |
| 4495 | set { SetDefaultStringPiece(value); } |
| 4496 | } |
| 4497 | public Builder SetDefaultStringPiece(string value) { |
| 4498 | result.hasDefaultStringPiece = true; |
| 4499 | result.defaultStringPiece_ = value; |
| 4500 | return this; |
| 4501 | } |
| 4502 | public Builder ClearDefaultStringPiece() { |
| 4503 | result.hasDefaultStringPiece = false; |
| 4504 | result.defaultStringPiece_ = "abc"; |
| 4505 | return this; |
| 4506 | } |
| 4507 | |
| 4508 | public bool HasDefaultCord { |
| 4509 | get { return result.HasDefaultCord; } |
| 4510 | } |
| 4511 | public string DefaultCord { |
| 4512 | get { return result.DefaultCord; } |
| 4513 | set { SetDefaultCord(value); } |
| 4514 | } |
| 4515 | public Builder SetDefaultCord(string value) { |
| 4516 | result.hasDefaultCord = true; |
| 4517 | result.defaultCord_ = value; |
| 4518 | return this; |
| 4519 | } |
| 4520 | public Builder ClearDefaultCord() { |
| 4521 | result.hasDefaultCord = false; |
| 4522 | result.defaultCord_ = "123"; |
| 4523 | return this; |
| 4524 | } |
| 4525 | } |
| 4526 | } |
| 4527 | |
| 4528 | public sealed partial class ForeignMessage : pb::GeneratedMessage<ForeignMessage, ForeignMessage.Builder> { |
| 4529 | private static readonly ForeignMessage defaultInstance = new Builder().BuildPartial(); |
| 4530 | public static ForeignMessage DefaultInstance { |
| 4531 | get { return defaultInstance; } |
| 4532 | } |
| 4533 | |
| 4534 | public override ForeignMessage DefaultInstanceForType { |
| 4535 | get { return defaultInstance; } |
| 4536 | } |
| 4537 | |
| 4538 | protected override ForeignMessage ThisMessage { |
| 4539 | get { return this; } |
| 4540 | } |
| 4541 | |
| 4542 | public static pbd::MessageDescriptor Descriptor { |
| 4543 | get { return global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.internal__static_protobuf_unittest_ForeignMessage__Descriptor; } |
| 4544 | } |
| 4545 | |
| 4546 | protected override pb::FieldAccess.FieldAccessorTable<ForeignMessage, ForeignMessage.Builder> InternalFieldAccessors { |
| 4547 | get { return global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.internal__static_protobuf_unittest_ForeignMessage__FieldAccessorTable; } |
| 4548 | } |
| 4549 | |
| 4550 | private bool hasC; |
| 4551 | private int c_ = 0; |
| 4552 | public bool HasC { |
| 4553 | get { return hasC; } |
| 4554 | } |
| 4555 | public int C { |
| 4556 | get { return c_; } |
| 4557 | } |
| 4558 | |
| 4559 | public override bool IsInitialized { |
| 4560 | get { |
| 4561 | return true; |
| 4562 | } |
| 4563 | } |
| 4564 | |
| 4565 | public override void WriteTo(pb::CodedOutputStream output) { |
| 4566 | if (HasC) { |
| 4567 | output.WriteInt32(1, C); |
| 4568 | } |
| 4569 | UnknownFields.WriteTo(output); |
| 4570 | } |
| 4571 | |
| 4572 | private int memoizedSerializedSize = -1; |
| 4573 | public override int SerializedSize { |
| 4574 | get { |
| 4575 | int size = memoizedSerializedSize; |
| 4576 | if (size != -1) return size; |
| 4577 | |
| 4578 | size = 0; |
| 4579 | if (HasC) { |
| 4580 | size += pb::CodedOutputStream.ComputeInt32Size(1, C); |
| 4581 | } |
| 4582 | size += UnknownFields.SerializedSize; |
| 4583 | memoizedSerializedSize = size; |
| 4584 | return size; |
| 4585 | } |
| 4586 | } |
| 4587 | |
| 4588 | public static ForeignMessage ParseFrom(pb::ByteString data) { |
| 4589 | return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed(); |
| 4590 | } |
| 4591 | public static ForeignMessage ParseFrom(pb::ByteString data, pb::ExtensionRegistry extensionRegistry) { |
| 4592 | return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed(); |
| 4593 | } |
| 4594 | public static ForeignMessage ParseFrom(byte[] data) { |
| 4595 | return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed(); |
| 4596 | } |
| 4597 | public static ForeignMessage ParseFrom(byte[] data, pb::ExtensionRegistry extensionRegistry) { |
| 4598 | return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed(); |
| 4599 | } |
| 4600 | public static ForeignMessage ParseFrom(global::System.IO.Stream input) { |
| 4601 | return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed(); |
| 4602 | } |
| 4603 | public static ForeignMessage ParseFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) { |
| 4604 | return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed(); |
| 4605 | } |
| 4606 | public static ForeignMessage ParseFrom(pb::CodedInputStream input) { |
| 4607 | return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed(); |
| 4608 | } |
| 4609 | public static ForeignMessage ParseFrom(pb::CodedInputStream input, pb::ExtensionRegistry extensionRegistry) { |
| 4610 | return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed(); |
| 4611 | } |
| 4612 | public static Builder CreateBuilder() { return new Builder(); } |
| 4613 | public override Builder CreateBuilderForType() { return new Builder(); } |
| 4614 | public static Builder CreateBuilder(ForeignMessage prototype) { |
| 4615 | return (Builder) new Builder().MergeFrom(prototype); |
| 4616 | } |
| 4617 | |
| 4618 | public sealed partial class Builder : pb::GeneratedBuilder<ForeignMessage, Builder> { |
| 4619 | protected override Builder ThisBuilder { |
| 4620 | get { return this; } |
| 4621 | } |
| 4622 | public Builder() {} |
| 4623 | |
| 4624 | ForeignMessage result = new ForeignMessage(); |
| 4625 | |
| 4626 | protected override ForeignMessage MessageBeingBuilt { |
| 4627 | get { return result; } |
| 4628 | } |
| 4629 | |
| 4630 | public override Builder Clear() { |
| 4631 | result = new ForeignMessage(); |
| 4632 | return this; |
| 4633 | } |
| 4634 | |
| 4635 | public override Builder Clone() { |
| 4636 | return new Builder().MergeFrom(result); |
| 4637 | } |
| 4638 | |
| 4639 | public override pbd::MessageDescriptor DescriptorForType { |
| 4640 | get { return ForeignMessage.Descriptor; } |
| 4641 | } |
| 4642 | |
| 4643 | public override ForeignMessage DefaultInstanceForType { |
| 4644 | get { return ForeignMessage.DefaultInstance; } |
| 4645 | } |
| 4646 | |
| 4647 | public override ForeignMessage BuildPartial() { |
| 4648 | ForeignMessage returnMe = result; |
| 4649 | result = null; |
| 4650 | return returnMe; |
| 4651 | } |
| 4652 | |
| 4653 | public override Builder MergeFrom(pb::IMessage other) { |
| 4654 | if (other is ForeignMessage) { |
| 4655 | return MergeFrom((ForeignMessage) other); |
| 4656 | } else { |
| 4657 | base.MergeFrom(other); |
| 4658 | return this; |
| 4659 | } |
| 4660 | } |
| 4661 | |
| 4662 | public override Builder MergeFrom(ForeignMessage other) { |
| 4663 | if (other == ForeignMessage.DefaultInstance) return this; |
| 4664 | if (other.HasC) { |
| 4665 | C = other.C; |
| 4666 | } |
| 4667 | this.MergeUnknownFields(other.UnknownFields); |
| 4668 | return this; |
| 4669 | } |
| 4670 | |
| 4671 | public override Builder MergeFrom(pb::CodedInputStream input) { |
| 4672 | return MergeFrom(input, pb::ExtensionRegistry.Empty); |
| 4673 | } |
| 4674 | |
| 4675 | public override Builder MergeFrom(pb::CodedInputStream input, pb::ExtensionRegistry extensionRegistry) { |
| 4676 | pb::UnknownFieldSet.Builder unknownFields = pb::UnknownFieldSet.CreateBuilder(this.UnknownFields); |
| 4677 | while (true) { |
| 4678 | uint tag = input.ReadTag(); |
| 4679 | switch (tag) { |
| 4680 | case 0: { |
| 4681 | this.UnknownFields = unknownFields.Build(); |
| 4682 | return this; |
| 4683 | } |
| 4684 | default: { |
| 4685 | if (!ParseUnknownField(input, unknownFields, extensionRegistry, tag)) { |
| 4686 | this.UnknownFields = unknownFields.Build(); |
| 4687 | return this; |
| 4688 | } |
| 4689 | break; |
| 4690 | } |
| 4691 | case 8: { |
| 4692 | C = input.ReadInt32(); |
| 4693 | break; |
| 4694 | } |
| 4695 | } |
| 4696 | } |
| 4697 | } |
| 4698 | |
| 4699 | |
| 4700 | public bool HasC { |
| 4701 | get { return result.HasC; } |
| 4702 | } |
| 4703 | public int C { |
| 4704 | get { return result.C; } |
| 4705 | set { SetC(value); } |
| 4706 | } |
| 4707 | public Builder SetC(int value) { |
| 4708 | result.hasC = true; |
| 4709 | result.c_ = value; |
| 4710 | return this; |
| 4711 | } |
| 4712 | public Builder ClearC() { |
| 4713 | result.hasC = false; |
| 4714 | result.c_ = 0; |
| 4715 | return this; |
| 4716 | } |
| 4717 | } |
| 4718 | } |
| 4719 | |
| 4720 | public sealed partial class TestAllExtensions : pb::ExtendableMessage<TestAllExtensions, TestAllExtensions.Builder> { |
| 4721 | private static readonly TestAllExtensions defaultInstance = new Builder().BuildPartial(); |
| 4722 | public static TestAllExtensions DefaultInstance { |
| 4723 | get { return defaultInstance; } |
| 4724 | } |
| 4725 | |
| 4726 | public override TestAllExtensions DefaultInstanceForType { |
| 4727 | get { return defaultInstance; } |
| 4728 | } |
| 4729 | |
| 4730 | protected override TestAllExtensions ThisMessage { |
| 4731 | get { return this; } |
| 4732 | } |
| 4733 | |
| 4734 | public static pbd::MessageDescriptor Descriptor { |
| 4735 | get { return global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.internal__static_protobuf_unittest_TestAllExtensions__Descriptor; } |
| 4736 | } |
| 4737 | |
| 4738 | protected override pb::FieldAccess.FieldAccessorTable<TestAllExtensions, TestAllExtensions.Builder> InternalFieldAccessors { |
| 4739 | get { return global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.internal__static_protobuf_unittest_TestAllExtensions__FieldAccessorTable; } |
| 4740 | } |
| 4741 | |
| 4742 | public override bool IsInitialized { |
| 4743 | get { |
| 4744 | if (!ExtensionsAreInitialized) return false; |
| 4745 | return true; |
| 4746 | } |
| 4747 | } |
| 4748 | |
| 4749 | public override void WriteTo(pb::CodedOutputStream output) { |
| 4750 | pb::ExtendableMessage<TestAllExtensions, TestAllExtensions.Builder>.ExtensionWriter extensionWriter = CreateExtensionWriter(this); |
| 4751 | extensionWriter.WriteUntil(536870912, output); |
| 4752 | UnknownFields.WriteTo(output); |
| 4753 | } |
| 4754 | |
| 4755 | private int memoizedSerializedSize = -1; |
| 4756 | public override int SerializedSize { |
| 4757 | get { |
| 4758 | int size = memoizedSerializedSize; |
| 4759 | if (size != -1) return size; |
| 4760 | |
| 4761 | size = 0; |
| 4762 | size += ExtensionsSerializedSize; |
| 4763 | size += UnknownFields.SerializedSize; |
| 4764 | memoizedSerializedSize = size; |
| 4765 | return size; |
| 4766 | } |
| 4767 | } |
| 4768 | |
| 4769 | public static TestAllExtensions ParseFrom(pb::ByteString data) { |
| 4770 | return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed(); |
| 4771 | } |
| 4772 | public static TestAllExtensions ParseFrom(pb::ByteString data, pb::ExtensionRegistry extensionRegistry) { |
| 4773 | return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed(); |
| 4774 | } |
| 4775 | public static TestAllExtensions ParseFrom(byte[] data) { |
| 4776 | return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed(); |
| 4777 | } |
| 4778 | public static TestAllExtensions ParseFrom(byte[] data, pb::ExtensionRegistry extensionRegistry) { |
| 4779 | return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed(); |
| 4780 | } |
| 4781 | public static TestAllExtensions ParseFrom(global::System.IO.Stream input) { |
| 4782 | return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed(); |
| 4783 | } |
| 4784 | public static TestAllExtensions ParseFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) { |
| 4785 | return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed(); |
| 4786 | } |
| 4787 | public static TestAllExtensions ParseFrom(pb::CodedInputStream input) { |
| 4788 | return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed(); |
| 4789 | } |
| 4790 | public static TestAllExtensions ParseFrom(pb::CodedInputStream input, pb::ExtensionRegistry extensionRegistry) { |
| 4791 | return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed(); |
| 4792 | } |
| 4793 | public static Builder CreateBuilder() { return new Builder(); } |
| 4794 | public override Builder CreateBuilderForType() { return new Builder(); } |
| 4795 | public static Builder CreateBuilder(TestAllExtensions prototype) { |
| 4796 | return (Builder) new Builder().MergeFrom(prototype); |
| 4797 | } |
| 4798 | |
| 4799 | public sealed partial class Builder : pb::ExtendableBuilder<TestAllExtensions, Builder> { |
| 4800 | protected override Builder ThisBuilder { |
| 4801 | get { return this; } |
| 4802 | } |
| 4803 | public Builder() {} |
| 4804 | |
| 4805 | TestAllExtensions result = new TestAllExtensions(); |
| 4806 | |
| 4807 | protected override TestAllExtensions MessageBeingBuilt { |
| 4808 | get { return result; } |
| 4809 | } |
| 4810 | |
| 4811 | public override Builder Clear() { |
| 4812 | result = new TestAllExtensions(); |
| 4813 | return this; |
| 4814 | } |
| 4815 | |
| 4816 | public override Builder Clone() { |
| 4817 | return new Builder().MergeFrom(result); |
| 4818 | } |
| 4819 | |
| 4820 | public override pbd::MessageDescriptor DescriptorForType { |
| 4821 | get { return TestAllExtensions.Descriptor; } |
| 4822 | } |
| 4823 | |
| 4824 | public override TestAllExtensions DefaultInstanceForType { |
| 4825 | get { return TestAllExtensions.DefaultInstance; } |
| 4826 | } |
| 4827 | |
| 4828 | public override TestAllExtensions BuildPartial() { |
| 4829 | TestAllExtensions returnMe = result; |
| 4830 | result = null; |
| 4831 | return returnMe; |
| 4832 | } |
| 4833 | |
| 4834 | public override Builder MergeFrom(pb::IMessage other) { |
| 4835 | if (other is TestAllExtensions) { |
| 4836 | return MergeFrom((TestAllExtensions) other); |
| 4837 | } else { |
| 4838 | base.MergeFrom(other); |
| 4839 | return this; |
| 4840 | } |
| 4841 | } |
| 4842 | |
| 4843 | public override Builder MergeFrom(TestAllExtensions other) { |
| 4844 | if (other == TestAllExtensions.DefaultInstance) return this; |
| 4845 | this.MergeUnknownFields(other.UnknownFields); |
| 4846 | return this; |
| 4847 | } |
| 4848 | |
| 4849 | public override Builder MergeFrom(pb::CodedInputStream input) { |
| 4850 | return MergeFrom(input, pb::ExtensionRegistry.Empty); |
| 4851 | } |
| 4852 | |
| 4853 | public override Builder MergeFrom(pb::CodedInputStream input, pb::ExtensionRegistry extensionRegistry) { |
| 4854 | pb::UnknownFieldSet.Builder unknownFields = pb::UnknownFieldSet.CreateBuilder(this.UnknownFields); |
| 4855 | while (true) { |
| 4856 | uint tag = input.ReadTag(); |
| 4857 | switch (tag) { |
| 4858 | case 0: { |
| 4859 | this.UnknownFields = unknownFields.Build(); |
| 4860 | return this; |
| 4861 | } |
| 4862 | default: { |
| 4863 | if (!ParseUnknownField(input, unknownFields, extensionRegistry, tag)) { |
| 4864 | this.UnknownFields = unknownFields.Build(); |
| 4865 | return this; |
| 4866 | } |
| 4867 | break; |
| 4868 | } |
| 4869 | } |
| 4870 | } |
| 4871 | } |
| 4872 | |
| 4873 | } |
| 4874 | } |
| 4875 | |
| 4876 | public sealed partial class OptionalGroup_extension : pb::GeneratedMessage<OptionalGroup_extension, OptionalGroup_extension.Builder> { |
| 4877 | private static readonly OptionalGroup_extension defaultInstance = new Builder().BuildPartial(); |
| 4878 | public static OptionalGroup_extension DefaultInstance { |
| 4879 | get { return defaultInstance; } |
| 4880 | } |
| 4881 | |
| 4882 | public override OptionalGroup_extension DefaultInstanceForType { |
| 4883 | get { return defaultInstance; } |
| 4884 | } |
| 4885 | |
| 4886 | protected override OptionalGroup_extension ThisMessage { |
| 4887 | get { return this; } |
| 4888 | } |
| 4889 | |
| 4890 | public static pbd::MessageDescriptor Descriptor { |
| 4891 | get { return global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.internal__static_protobuf_unittest_OptionalGroup_extension__Descriptor; } |
| 4892 | } |
| 4893 | |
| 4894 | protected override pb::FieldAccess.FieldAccessorTable<OptionalGroup_extension, OptionalGroup_extension.Builder> InternalFieldAccessors { |
| 4895 | get { return global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.internal__static_protobuf_unittest_OptionalGroup_extension__FieldAccessorTable; } |
| 4896 | } |
| 4897 | |
| 4898 | private bool hasA; |
| 4899 | private int a_ = 0; |
| 4900 | public bool HasA { |
| 4901 | get { return hasA; } |
| 4902 | } |
| 4903 | public int A { |
| 4904 | get { return a_; } |
| 4905 | } |
| 4906 | |
| 4907 | public override bool IsInitialized { |
| 4908 | get { |
| 4909 | return true; |
| 4910 | } |
| 4911 | } |
| 4912 | |
| 4913 | public override void WriteTo(pb::CodedOutputStream output) { |
| 4914 | if (HasA) { |
| 4915 | output.WriteInt32(17, A); |
| 4916 | } |
| 4917 | UnknownFields.WriteTo(output); |
| 4918 | } |
| 4919 | |
| 4920 | private int memoizedSerializedSize = -1; |
| 4921 | public override int SerializedSize { |
| 4922 | get { |
| 4923 | int size = memoizedSerializedSize; |
| 4924 | if (size != -1) return size; |
| 4925 | |
| 4926 | size = 0; |
| 4927 | if (HasA) { |
| 4928 | size += pb::CodedOutputStream.ComputeInt32Size(17, A); |
| 4929 | } |
| 4930 | size += UnknownFields.SerializedSize; |
| 4931 | memoizedSerializedSize = size; |
| 4932 | return size; |
| 4933 | } |
| 4934 | } |
| 4935 | |
| 4936 | public static OptionalGroup_extension ParseFrom(pb::ByteString data) { |
| 4937 | return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed(); |
| 4938 | } |
| 4939 | public static OptionalGroup_extension ParseFrom(pb::ByteString data, pb::ExtensionRegistry extensionRegistry) { |
| 4940 | return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed(); |
| 4941 | } |
| 4942 | public static OptionalGroup_extension ParseFrom(byte[] data) { |
| 4943 | return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed(); |
| 4944 | } |
| 4945 | public static OptionalGroup_extension ParseFrom(byte[] data, pb::ExtensionRegistry extensionRegistry) { |
| 4946 | return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed(); |
| 4947 | } |
| 4948 | public static OptionalGroup_extension ParseFrom(global::System.IO.Stream input) { |
| 4949 | return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed(); |
| 4950 | } |
| 4951 | public static OptionalGroup_extension ParseFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) { |
| 4952 | return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed(); |
| 4953 | } |
| 4954 | public static OptionalGroup_extension ParseFrom(pb::CodedInputStream input) { |
| 4955 | return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed(); |
| 4956 | } |
| 4957 | public static OptionalGroup_extension ParseFrom(pb::CodedInputStream input, pb::ExtensionRegistry extensionRegistry) { |
| 4958 | return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed(); |
| 4959 | } |
| 4960 | public static Builder CreateBuilder() { return new Builder(); } |
| 4961 | public override Builder CreateBuilderForType() { return new Builder(); } |
| 4962 | public static Builder CreateBuilder(OptionalGroup_extension prototype) { |
| 4963 | return (Builder) new Builder().MergeFrom(prototype); |
| 4964 | } |
| 4965 | |
| 4966 | public sealed partial class Builder : pb::GeneratedBuilder<OptionalGroup_extension, Builder> { |
| 4967 | protected override Builder ThisBuilder { |
| 4968 | get { return this; } |
| 4969 | } |
| 4970 | public Builder() {} |
| 4971 | |
| 4972 | OptionalGroup_extension result = new OptionalGroup_extension(); |
| 4973 | |
| 4974 | protected override OptionalGroup_extension MessageBeingBuilt { |
| 4975 | get { return result; } |
| 4976 | } |
| 4977 | |
| 4978 | public override Builder Clear() { |
| 4979 | result = new OptionalGroup_extension(); |
| 4980 | return this; |
| 4981 | } |
| 4982 | |
| 4983 | public override Builder Clone() { |
| 4984 | return new Builder().MergeFrom(result); |
| 4985 | } |
| 4986 | |
| 4987 | public override pbd::MessageDescriptor DescriptorForType { |
| 4988 | get { return OptionalGroup_extension.Descriptor; } |
| 4989 | } |
| 4990 | |
| 4991 | public override OptionalGroup_extension DefaultInstanceForType { |
| 4992 | get { return OptionalGroup_extension.DefaultInstance; } |
| 4993 | } |
| 4994 | |
| 4995 | public override OptionalGroup_extension BuildPartial() { |
| 4996 | OptionalGroup_extension returnMe = result; |
| 4997 | result = null; |
| 4998 | return returnMe; |
| 4999 | } |
| 5000 | |
| 5001 | public override Builder MergeFrom(pb::IMessage other) { |
| 5002 | if (other is OptionalGroup_extension) { |
| 5003 | return MergeFrom((OptionalGroup_extension) other); |
| 5004 | } else { |
| 5005 | base.MergeFrom(other); |
| 5006 | return this; |
| 5007 | } |
| 5008 | } |
| 5009 | |
| 5010 | public override Builder MergeFrom(OptionalGroup_extension other) { |
| 5011 | if (other == OptionalGroup_extension.DefaultInstance) return this; |
| 5012 | if (other.HasA) { |
| 5013 | A = other.A; |
| 5014 | } |
| 5015 | this.MergeUnknownFields(other.UnknownFields); |
| 5016 | return this; |
| 5017 | } |
| 5018 | |
| 5019 | public override Builder MergeFrom(pb::CodedInputStream input) { |
| 5020 | return MergeFrom(input, pb::ExtensionRegistry.Empty); |
| 5021 | } |
| 5022 | |
| 5023 | public override Builder MergeFrom(pb::CodedInputStream input, pb::ExtensionRegistry extensionRegistry) { |
| 5024 | pb::UnknownFieldSet.Builder unknownFields = pb::UnknownFieldSet.CreateBuilder(this.UnknownFields); |
| 5025 | while (true) { |
| 5026 | uint tag = input.ReadTag(); |
| 5027 | switch (tag) { |
| 5028 | case 0: { |
| 5029 | this.UnknownFields = unknownFields.Build(); |
| 5030 | return this; |
| 5031 | } |
| 5032 | default: { |
| 5033 | if (!ParseUnknownField(input, unknownFields, extensionRegistry, tag)) { |
| 5034 | this.UnknownFields = unknownFields.Build(); |
| 5035 | return this; |
| 5036 | } |
| 5037 | break; |
| 5038 | } |
| 5039 | case 136: { |
| 5040 | A = input.ReadInt32(); |
| 5041 | break; |
| 5042 | } |
| 5043 | } |
| 5044 | } |
| 5045 | } |
| 5046 | |
| 5047 | |
| 5048 | public bool HasA { |
| 5049 | get { return result.HasA; } |
| 5050 | } |
| 5051 | public int A { |
| 5052 | get { return result.A; } |
| 5053 | set { SetA(value); } |
| 5054 | } |
| 5055 | public Builder SetA(int value) { |
| 5056 | result.hasA = true; |
| 5057 | result.a_ = value; |
| 5058 | return this; |
| 5059 | } |
| 5060 | public Builder ClearA() { |
| 5061 | result.hasA = false; |
| 5062 | result.a_ = 0; |
| 5063 | return this; |
| 5064 | } |
| 5065 | } |
| 5066 | } |
| 5067 | |
| 5068 | public sealed partial class RepeatedGroup_extension : pb::GeneratedMessage<RepeatedGroup_extension, RepeatedGroup_extension.Builder> { |
| 5069 | private static readonly RepeatedGroup_extension defaultInstance = new Builder().BuildPartial(); |
| 5070 | public static RepeatedGroup_extension DefaultInstance { |
| 5071 | get { return defaultInstance; } |
| 5072 | } |
| 5073 | |
| 5074 | public override RepeatedGroup_extension DefaultInstanceForType { |
| 5075 | get { return defaultInstance; } |
| 5076 | } |
| 5077 | |
| 5078 | protected override RepeatedGroup_extension ThisMessage { |
| 5079 | get { return this; } |
| 5080 | } |
| 5081 | |
| 5082 | public static pbd::MessageDescriptor Descriptor { |
| 5083 | get { return global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.internal__static_protobuf_unittest_RepeatedGroup_extension__Descriptor; } |
| 5084 | } |
| 5085 | |
| 5086 | protected override pb::FieldAccess.FieldAccessorTable<RepeatedGroup_extension, RepeatedGroup_extension.Builder> InternalFieldAccessors { |
| 5087 | get { return global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.internal__static_protobuf_unittest_RepeatedGroup_extension__FieldAccessorTable; } |
| 5088 | } |
| 5089 | |
| 5090 | private bool hasA; |
| 5091 | private int a_ = 0; |
| 5092 | public bool HasA { |
| 5093 | get { return hasA; } |
| 5094 | } |
| 5095 | public int A { |
| 5096 | get { return a_; } |
| 5097 | } |
| 5098 | |
| 5099 | public override bool IsInitialized { |
| 5100 | get { |
| 5101 | return true; |
| 5102 | } |
| 5103 | } |
| 5104 | |
| 5105 | public override void WriteTo(pb::CodedOutputStream output) { |
| 5106 | if (HasA) { |
| 5107 | output.WriteInt32(47, A); |
| 5108 | } |
| 5109 | UnknownFields.WriteTo(output); |
| 5110 | } |
| 5111 | |
| 5112 | private int memoizedSerializedSize = -1; |
| 5113 | public override int SerializedSize { |
| 5114 | get { |
| 5115 | int size = memoizedSerializedSize; |
| 5116 | if (size != -1) return size; |
| 5117 | |
| 5118 | size = 0; |
| 5119 | if (HasA) { |
| 5120 | size += pb::CodedOutputStream.ComputeInt32Size(47, A); |
| 5121 | } |
| 5122 | size += UnknownFields.SerializedSize; |
| 5123 | memoizedSerializedSize = size; |
| 5124 | return size; |
| 5125 | } |
| 5126 | } |
| 5127 | |
| 5128 | public static RepeatedGroup_extension ParseFrom(pb::ByteString data) { |
| 5129 | return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed(); |
| 5130 | } |
| 5131 | public static RepeatedGroup_extension ParseFrom(pb::ByteString data, pb::ExtensionRegistry extensionRegistry) { |
| 5132 | return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed(); |
| 5133 | } |
| 5134 | public static RepeatedGroup_extension ParseFrom(byte[] data) { |
| 5135 | return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed(); |
| 5136 | } |
| 5137 | public static RepeatedGroup_extension ParseFrom(byte[] data, pb::ExtensionRegistry extensionRegistry) { |
| 5138 | return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed(); |
| 5139 | } |
| 5140 | public static RepeatedGroup_extension ParseFrom(global::System.IO.Stream input) { |
| 5141 | return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed(); |
| 5142 | } |
| 5143 | public static RepeatedGroup_extension ParseFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) { |
| 5144 | return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed(); |
| 5145 | } |
| 5146 | public static RepeatedGroup_extension ParseFrom(pb::CodedInputStream input) { |
| 5147 | return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed(); |
| 5148 | } |
| 5149 | public static RepeatedGroup_extension ParseFrom(pb::CodedInputStream input, pb::ExtensionRegistry extensionRegistry) { |
| 5150 | return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed(); |
| 5151 | } |
| 5152 | public static Builder CreateBuilder() { return new Builder(); } |
| 5153 | public override Builder CreateBuilderForType() { return new Builder(); } |
| 5154 | public static Builder CreateBuilder(RepeatedGroup_extension prototype) { |
| 5155 | return (Builder) new Builder().MergeFrom(prototype); |
| 5156 | } |
| 5157 | |
| 5158 | public sealed partial class Builder : pb::GeneratedBuilder<RepeatedGroup_extension, Builder> { |
| 5159 | protected override Builder ThisBuilder { |
| 5160 | get { return this; } |
| 5161 | } |
| 5162 | public Builder() {} |
| 5163 | |
| 5164 | RepeatedGroup_extension result = new RepeatedGroup_extension(); |
| 5165 | |
| 5166 | protected override RepeatedGroup_extension MessageBeingBuilt { |
| 5167 | get { return result; } |
| 5168 | } |
| 5169 | |
| 5170 | public override Builder Clear() { |
| 5171 | result = new RepeatedGroup_extension(); |
| 5172 | return this; |
| 5173 | } |
| 5174 | |
| 5175 | public override Builder Clone() { |
| 5176 | return new Builder().MergeFrom(result); |
| 5177 | } |
| 5178 | |
| 5179 | public override pbd::MessageDescriptor DescriptorForType { |
| 5180 | get { return RepeatedGroup_extension.Descriptor; } |
| 5181 | } |
| 5182 | |
| 5183 | public override RepeatedGroup_extension DefaultInstanceForType { |
| 5184 | get { return RepeatedGroup_extension.DefaultInstance; } |
| 5185 | } |
| 5186 | |
| 5187 | public override RepeatedGroup_extension BuildPartial() { |
| 5188 | RepeatedGroup_extension returnMe = result; |
| 5189 | result = null; |
| 5190 | return returnMe; |
| 5191 | } |
| 5192 | |
| 5193 | public override Builder MergeFrom(pb::IMessage other) { |
| 5194 | if (other is RepeatedGroup_extension) { |
| 5195 | return MergeFrom((RepeatedGroup_extension) other); |
| 5196 | } else { |
| 5197 | base.MergeFrom(other); |
| 5198 | return this; |
| 5199 | } |
| 5200 | } |
| 5201 | |
| 5202 | public override Builder MergeFrom(RepeatedGroup_extension other) { |
| 5203 | if (other == RepeatedGroup_extension.DefaultInstance) return this; |
| 5204 | if (other.HasA) { |
| 5205 | A = other.A; |
| 5206 | } |
| 5207 | this.MergeUnknownFields(other.UnknownFields); |
| 5208 | return this; |
| 5209 | } |
| 5210 | |
| 5211 | public override Builder MergeFrom(pb::CodedInputStream input) { |
| 5212 | return MergeFrom(input, pb::ExtensionRegistry.Empty); |
| 5213 | } |
| 5214 | |
| 5215 | public override Builder MergeFrom(pb::CodedInputStream input, pb::ExtensionRegistry extensionRegistry) { |
| 5216 | pb::UnknownFieldSet.Builder unknownFields = pb::UnknownFieldSet.CreateBuilder(this.UnknownFields); |
| 5217 | while (true) { |
| 5218 | uint tag = input.ReadTag(); |
| 5219 | switch (tag) { |
| 5220 | case 0: { |
| 5221 | this.UnknownFields = unknownFields.Build(); |
| 5222 | return this; |
| 5223 | } |
| 5224 | default: { |
| 5225 | if (!ParseUnknownField(input, unknownFields, extensionRegistry, tag)) { |
| 5226 | this.UnknownFields = unknownFields.Build(); |
| 5227 | return this; |
| 5228 | } |
| 5229 | break; |
| 5230 | } |
| 5231 | case 376: { |
| 5232 | A = input.ReadInt32(); |
| 5233 | break; |
| 5234 | } |
| 5235 | } |
| 5236 | } |
| 5237 | } |
| 5238 | |
| 5239 | |
| 5240 | public bool HasA { |
| 5241 | get { return result.HasA; } |
| 5242 | } |
| 5243 | public int A { |
| 5244 | get { return result.A; } |
| 5245 | set { SetA(value); } |
| 5246 | } |
| 5247 | public Builder SetA(int value) { |
| 5248 | result.hasA = true; |
| 5249 | result.a_ = value; |
| 5250 | return this; |
| 5251 | } |
| 5252 | public Builder ClearA() { |
| 5253 | result.hasA = false; |
| 5254 | result.a_ = 0; |
| 5255 | return this; |
| 5256 | } |
| 5257 | } |
| 5258 | } |
| 5259 | |
| 5260 | public sealed partial class TestRequired : pb::GeneratedMessage<TestRequired, TestRequired.Builder> { |
| 5261 | private static readonly TestRequired defaultInstance = new Builder().BuildPartial(); |
| 5262 | public static TestRequired DefaultInstance { |
| 5263 | get { return defaultInstance; } |
| 5264 | } |
| 5265 | |
| 5266 | public override TestRequired DefaultInstanceForType { |
| 5267 | get { return defaultInstance; } |
| 5268 | } |
| 5269 | |
| 5270 | protected override TestRequired ThisMessage { |
| 5271 | get { return this; } |
| 5272 | } |
| 5273 | |
| 5274 | public static pbd::MessageDescriptor Descriptor { |
| 5275 | get { return global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.internal__static_protobuf_unittest_TestRequired__Descriptor; } |
| 5276 | } |
| 5277 | |
| 5278 | protected override pb::FieldAccess.FieldAccessorTable<TestRequired, TestRequired.Builder> InternalFieldAccessors { |
| 5279 | get { return global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.internal__static_protobuf_unittest_TestRequired__FieldAccessorTable; } |
| 5280 | } |
| 5281 | |
| 5282 | public static readonly pb::GeneratedExtensionBase<global::Google.ProtocolBuffers.TestProtos.TestRequired> Single = |
| 5283 | pb::GeneratedSingleExtension<global::Google.ProtocolBuffers.TestProtos.TestRequired>.CreateInstance(Descriptor.Extensions[0]); |
| 5284 | public static readonly |
| 5285 | pb::GeneratedExtensionBase<scg::IList<global::Google.ProtocolBuffers.TestProtos.TestRequired>> Multi = |
| 5286 | pb::GeneratedRepeatExtension<global::Google.ProtocolBuffers.TestProtos.TestRequired>.CreateInstance(Descriptor.Extensions[1]); |
| 5287 | private bool hasA; |
| 5288 | private int a_ = 0; |
| 5289 | public bool HasA { |
| 5290 | get { return hasA; } |
| 5291 | } |
| 5292 | public int A { |
| 5293 | get { return a_; } |
| 5294 | } |
| 5295 | |
| 5296 | private bool hasDummy2; |
| 5297 | private int dummy2_ = 0; |
| 5298 | public bool HasDummy2 { |
| 5299 | get { return hasDummy2; } |
| 5300 | } |
| 5301 | public int Dummy2 { |
| 5302 | get { return dummy2_; } |
| 5303 | } |
| 5304 | |
| 5305 | private bool hasB; |
| 5306 | private int b_ = 0; |
| 5307 | public bool HasB { |
| 5308 | get { return hasB; } |
| 5309 | } |
| 5310 | public int B { |
| 5311 | get { return b_; } |
| 5312 | } |
| 5313 | |
| 5314 | private bool hasDummy4; |
| 5315 | private int dummy4_ = 0; |
| 5316 | public bool HasDummy4 { |
| 5317 | get { return hasDummy4; } |
| 5318 | } |
| 5319 | public int Dummy4 { |
| 5320 | get { return dummy4_; } |
| 5321 | } |
| 5322 | |
| 5323 | private bool hasDummy5; |
| 5324 | private int dummy5_ = 0; |
| 5325 | public bool HasDummy5 { |
| 5326 | get { return hasDummy5; } |
| 5327 | } |
| 5328 | public int Dummy5 { |
| 5329 | get { return dummy5_; } |
| 5330 | } |
| 5331 | |
| 5332 | private bool hasDummy6; |
| 5333 | private int dummy6_ = 0; |
| 5334 | public bool HasDummy6 { |
| 5335 | get { return hasDummy6; } |
| 5336 | } |
| 5337 | public int Dummy6 { |
| 5338 | get { return dummy6_; } |
| 5339 | } |
| 5340 | |
| 5341 | private bool hasDummy7; |
| 5342 | private int dummy7_ = 0; |
| 5343 | public bool HasDummy7 { |
| 5344 | get { return hasDummy7; } |
| 5345 | } |
| 5346 | public int Dummy7 { |
| 5347 | get { return dummy7_; } |
| 5348 | } |
| 5349 | |
| 5350 | private bool hasDummy8; |
| 5351 | private int dummy8_ = 0; |
| 5352 | public bool HasDummy8 { |
| 5353 | get { return hasDummy8; } |
| 5354 | } |
| 5355 | public int Dummy8 { |
| 5356 | get { return dummy8_; } |
| 5357 | } |
| 5358 | |
| 5359 | private bool hasDummy9; |
| 5360 | private int dummy9_ = 0; |
| 5361 | public bool HasDummy9 { |
| 5362 | get { return hasDummy9; } |
| 5363 | } |
| 5364 | public int Dummy9 { |
| 5365 | get { return dummy9_; } |
| 5366 | } |
| 5367 | |
| 5368 | private bool hasDummy10; |
| 5369 | private int dummy10_ = 0; |
| 5370 | public bool HasDummy10 { |
| 5371 | get { return hasDummy10; } |
| 5372 | } |
| 5373 | public int Dummy10 { |
| 5374 | get { return dummy10_; } |
| 5375 | } |
| 5376 | |
| 5377 | private bool hasDummy11; |
| 5378 | private int dummy11_ = 0; |
| 5379 | public bool HasDummy11 { |
| 5380 | get { return hasDummy11; } |
| 5381 | } |
| 5382 | public int Dummy11 { |
| 5383 | get { return dummy11_; } |
| 5384 | } |
| 5385 | |
| 5386 | private bool hasDummy12; |
| 5387 | private int dummy12_ = 0; |
| 5388 | public bool HasDummy12 { |
| 5389 | get { return hasDummy12; } |
| 5390 | } |
| 5391 | public int Dummy12 { |
| 5392 | get { return dummy12_; } |
| 5393 | } |
| 5394 | |
| 5395 | private bool hasDummy13; |
| 5396 | private int dummy13_ = 0; |
| 5397 | public bool HasDummy13 { |
| 5398 | get { return hasDummy13; } |
| 5399 | } |
| 5400 | public int Dummy13 { |
| 5401 | get { return dummy13_; } |
| 5402 | } |
| 5403 | |
| 5404 | private bool hasDummy14; |
| 5405 | private int dummy14_ = 0; |
| 5406 | public bool HasDummy14 { |
| 5407 | get { return hasDummy14; } |
| 5408 | } |
| 5409 | public int Dummy14 { |
| 5410 | get { return dummy14_; } |
| 5411 | } |
| 5412 | |
| 5413 | private bool hasDummy15; |
| 5414 | private int dummy15_ = 0; |
| 5415 | public bool HasDummy15 { |
| 5416 | get { return hasDummy15; } |
| 5417 | } |
| 5418 | public int Dummy15 { |
| 5419 | get { return dummy15_; } |
| 5420 | } |
| 5421 | |
| 5422 | private bool hasDummy16; |
| 5423 | private int dummy16_ = 0; |
| 5424 | public bool HasDummy16 { |
| 5425 | get { return hasDummy16; } |
| 5426 | } |
| 5427 | public int Dummy16 { |
| 5428 | get { return dummy16_; } |
| 5429 | } |
| 5430 | |
| 5431 | private bool hasDummy17; |
| 5432 | private int dummy17_ = 0; |
| 5433 | public bool HasDummy17 { |
| 5434 | get { return hasDummy17; } |
| 5435 | } |
| 5436 | public int Dummy17 { |
| 5437 | get { return dummy17_; } |
| 5438 | } |
| 5439 | |
| 5440 | private bool hasDummy18; |
| 5441 | private int dummy18_ = 0; |
| 5442 | public bool HasDummy18 { |
| 5443 | get { return hasDummy18; } |
| 5444 | } |
| 5445 | public int Dummy18 { |
| 5446 | get { return dummy18_; } |
| 5447 | } |
| 5448 | |
| 5449 | private bool hasDummy19; |
| 5450 | private int dummy19_ = 0; |
| 5451 | public bool HasDummy19 { |
| 5452 | get { return hasDummy19; } |
| 5453 | } |
| 5454 | public int Dummy19 { |
| 5455 | get { return dummy19_; } |
| 5456 | } |
| 5457 | |
| 5458 | private bool hasDummy20; |
| 5459 | private int dummy20_ = 0; |
| 5460 | public bool HasDummy20 { |
| 5461 | get { return hasDummy20; } |
| 5462 | } |
| 5463 | public int Dummy20 { |
| 5464 | get { return dummy20_; } |
| 5465 | } |
| 5466 | |
| 5467 | private bool hasDummy21; |
| 5468 | private int dummy21_ = 0; |
| 5469 | public bool HasDummy21 { |
| 5470 | get { return hasDummy21; } |
| 5471 | } |
| 5472 | public int Dummy21 { |
| 5473 | get { return dummy21_; } |
| 5474 | } |
| 5475 | |
| 5476 | private bool hasDummy22; |
| 5477 | private int dummy22_ = 0; |
| 5478 | public bool HasDummy22 { |
| 5479 | get { return hasDummy22; } |
| 5480 | } |
| 5481 | public int Dummy22 { |
| 5482 | get { return dummy22_; } |
| 5483 | } |
| 5484 | |
| 5485 | private bool hasDummy23; |
| 5486 | private int dummy23_ = 0; |
| 5487 | public bool HasDummy23 { |
| 5488 | get { return hasDummy23; } |
| 5489 | } |
| 5490 | public int Dummy23 { |
| 5491 | get { return dummy23_; } |
| 5492 | } |
| 5493 | |
| 5494 | private bool hasDummy24; |
| 5495 | private int dummy24_ = 0; |
| 5496 | public bool HasDummy24 { |
| 5497 | get { return hasDummy24; } |
| 5498 | } |
| 5499 | public int Dummy24 { |
| 5500 | get { return dummy24_; } |
| 5501 | } |
| 5502 | |
| 5503 | private bool hasDummy25; |
| 5504 | private int dummy25_ = 0; |
| 5505 | public bool HasDummy25 { |
| 5506 | get { return hasDummy25; } |
| 5507 | } |
| 5508 | public int Dummy25 { |
| 5509 | get { return dummy25_; } |
| 5510 | } |
| 5511 | |
| 5512 | private bool hasDummy26; |
| 5513 | private int dummy26_ = 0; |
| 5514 | public bool HasDummy26 { |
| 5515 | get { return hasDummy26; } |
| 5516 | } |
| 5517 | public int Dummy26 { |
| 5518 | get { return dummy26_; } |
| 5519 | } |
| 5520 | |
| 5521 | private bool hasDummy27; |
| 5522 | private int dummy27_ = 0; |
| 5523 | public bool HasDummy27 { |
| 5524 | get { return hasDummy27; } |
| 5525 | } |
| 5526 | public int Dummy27 { |
| 5527 | get { return dummy27_; } |
| 5528 | } |
| 5529 | |
| 5530 | private bool hasDummy28; |
| 5531 | private int dummy28_ = 0; |
| 5532 | public bool HasDummy28 { |
| 5533 | get { return hasDummy28; } |
| 5534 | } |
| 5535 | public int Dummy28 { |
| 5536 | get { return dummy28_; } |
| 5537 | } |
| 5538 | |
| 5539 | private bool hasDummy29; |
| 5540 | private int dummy29_ = 0; |
| 5541 | public bool HasDummy29 { |
| 5542 | get { return hasDummy29; } |
| 5543 | } |
| 5544 | public int Dummy29 { |
| 5545 | get { return dummy29_; } |
| 5546 | } |
| 5547 | |
| 5548 | private bool hasDummy30; |
| 5549 | private int dummy30_ = 0; |
| 5550 | public bool HasDummy30 { |
| 5551 | get { return hasDummy30; } |
| 5552 | } |
| 5553 | public int Dummy30 { |
| 5554 | get { return dummy30_; } |
| 5555 | } |
| 5556 | |
| 5557 | private bool hasDummy31; |
| 5558 | private int dummy31_ = 0; |
| 5559 | public bool HasDummy31 { |
| 5560 | get { return hasDummy31; } |
| 5561 | } |
| 5562 | public int Dummy31 { |
| 5563 | get { return dummy31_; } |
| 5564 | } |
| 5565 | |
| 5566 | private bool hasDummy32; |
| 5567 | private int dummy32_ = 0; |
| 5568 | public bool HasDummy32 { |
| 5569 | get { return hasDummy32; } |
| 5570 | } |
| 5571 | public int Dummy32 { |
| 5572 | get { return dummy32_; } |
| 5573 | } |
| 5574 | |
| 5575 | private bool hasC; |
| 5576 | private int c_ = 0; |
| 5577 | public bool HasC { |
| 5578 | get { return hasC; } |
| 5579 | } |
| 5580 | public int C { |
| 5581 | get { return c_; } |
| 5582 | } |
| 5583 | |
| 5584 | public override bool IsInitialized { |
| 5585 | get { |
| 5586 | if (!hasA) return false; |
| 5587 | if (!hasB) return false; |
| 5588 | if (!hasC) return false; |
| 5589 | return true; |
| 5590 | } |
| 5591 | } |
| 5592 | |
| 5593 | public override void WriteTo(pb::CodedOutputStream output) { |
| 5594 | if (HasA) { |
| 5595 | output.WriteInt32(1, A); |
| 5596 | } |
| 5597 | if (HasDummy2) { |
| 5598 | output.WriteInt32(2, Dummy2); |
| 5599 | } |
| 5600 | if (HasB) { |
| 5601 | output.WriteInt32(3, B); |
| 5602 | } |
| 5603 | if (HasDummy4) { |
| 5604 | output.WriteInt32(4, Dummy4); |
| 5605 | } |
| 5606 | if (HasDummy5) { |
| 5607 | output.WriteInt32(5, Dummy5); |
| 5608 | } |
| 5609 | if (HasDummy6) { |
| 5610 | output.WriteInt32(6, Dummy6); |
| 5611 | } |
| 5612 | if (HasDummy7) { |
| 5613 | output.WriteInt32(7, Dummy7); |
| 5614 | } |
| 5615 | if (HasDummy8) { |
| 5616 | output.WriteInt32(8, Dummy8); |
| 5617 | } |
| 5618 | if (HasDummy9) { |
| 5619 | output.WriteInt32(9, Dummy9); |
| 5620 | } |
| 5621 | if (HasDummy10) { |
| 5622 | output.WriteInt32(10, Dummy10); |
| 5623 | } |
| 5624 | if (HasDummy11) { |
| 5625 | output.WriteInt32(11, Dummy11); |
| 5626 | } |
| 5627 | if (HasDummy12) { |
| 5628 | output.WriteInt32(12, Dummy12); |
| 5629 | } |
| 5630 | if (HasDummy13) { |
| 5631 | output.WriteInt32(13, Dummy13); |
| 5632 | } |
| 5633 | if (HasDummy14) { |
| 5634 | output.WriteInt32(14, Dummy14); |
| 5635 | } |
| 5636 | if (HasDummy15) { |
| 5637 | output.WriteInt32(15, Dummy15); |
| 5638 | } |
| 5639 | if (HasDummy16) { |
| 5640 | output.WriteInt32(16, Dummy16); |
| 5641 | } |
| 5642 | if (HasDummy17) { |
| 5643 | output.WriteInt32(17, Dummy17); |
| 5644 | } |
| 5645 | if (HasDummy18) { |
| 5646 | output.WriteInt32(18, Dummy18); |
| 5647 | } |
| 5648 | if (HasDummy19) { |
| 5649 | output.WriteInt32(19, Dummy19); |
| 5650 | } |
| 5651 | if (HasDummy20) { |
| 5652 | output.WriteInt32(20, Dummy20); |
| 5653 | } |
| 5654 | if (HasDummy21) { |
| 5655 | output.WriteInt32(21, Dummy21); |
| 5656 | } |
| 5657 | if (HasDummy22) { |
| 5658 | output.WriteInt32(22, Dummy22); |
| 5659 | } |
| 5660 | if (HasDummy23) { |
| 5661 | output.WriteInt32(23, Dummy23); |
| 5662 | } |
| 5663 | if (HasDummy24) { |
| 5664 | output.WriteInt32(24, Dummy24); |
| 5665 | } |
| 5666 | if (HasDummy25) { |
| 5667 | output.WriteInt32(25, Dummy25); |
| 5668 | } |
| 5669 | if (HasDummy26) { |
| 5670 | output.WriteInt32(26, Dummy26); |
| 5671 | } |
| 5672 | if (HasDummy27) { |
| 5673 | output.WriteInt32(27, Dummy27); |
| 5674 | } |
| 5675 | if (HasDummy28) { |
| 5676 | output.WriteInt32(28, Dummy28); |
| 5677 | } |
| 5678 | if (HasDummy29) { |
| 5679 | output.WriteInt32(29, Dummy29); |
| 5680 | } |
| 5681 | if (HasDummy30) { |
| 5682 | output.WriteInt32(30, Dummy30); |
| 5683 | } |
| 5684 | if (HasDummy31) { |
| 5685 | output.WriteInt32(31, Dummy31); |
| 5686 | } |
| 5687 | if (HasDummy32) { |
| 5688 | output.WriteInt32(32, Dummy32); |
| 5689 | } |
| 5690 | if (HasC) { |
| 5691 | output.WriteInt32(33, C); |
| 5692 | } |
| 5693 | UnknownFields.WriteTo(output); |
| 5694 | } |
| 5695 | |
| 5696 | private int memoizedSerializedSize = -1; |
| 5697 | public override int SerializedSize { |
| 5698 | get { |
| 5699 | int size = memoizedSerializedSize; |
| 5700 | if (size != -1) return size; |
| 5701 | |
| 5702 | size = 0; |
| 5703 | if (HasA) { |
| 5704 | size += pb::CodedOutputStream.ComputeInt32Size(1, A); |
| 5705 | } |
| 5706 | if (HasDummy2) { |
| 5707 | size += pb::CodedOutputStream.ComputeInt32Size(2, Dummy2); |
| 5708 | } |
| 5709 | if (HasB) { |
| 5710 | size += pb::CodedOutputStream.ComputeInt32Size(3, B); |
| 5711 | } |
| 5712 | if (HasDummy4) { |
| 5713 | size += pb::CodedOutputStream.ComputeInt32Size(4, Dummy4); |
| 5714 | } |
| 5715 | if (HasDummy5) { |
| 5716 | size += pb::CodedOutputStream.ComputeInt32Size(5, Dummy5); |
| 5717 | } |
| 5718 | if (HasDummy6) { |
| 5719 | size += pb::CodedOutputStream.ComputeInt32Size(6, Dummy6); |
| 5720 | } |
| 5721 | if (HasDummy7) { |
| 5722 | size += pb::CodedOutputStream.ComputeInt32Size(7, Dummy7); |
| 5723 | } |
| 5724 | if (HasDummy8) { |
| 5725 | size += pb::CodedOutputStream.ComputeInt32Size(8, Dummy8); |
| 5726 | } |
| 5727 | if (HasDummy9) { |
| 5728 | size += pb::CodedOutputStream.ComputeInt32Size(9, Dummy9); |
| 5729 | } |
| 5730 | if (HasDummy10) { |
| 5731 | size += pb::CodedOutputStream.ComputeInt32Size(10, Dummy10); |
| 5732 | } |
| 5733 | if (HasDummy11) { |
| 5734 | size += pb::CodedOutputStream.ComputeInt32Size(11, Dummy11); |
| 5735 | } |
| 5736 | if (HasDummy12) { |
| 5737 | size += pb::CodedOutputStream.ComputeInt32Size(12, Dummy12); |
| 5738 | } |
| 5739 | if (HasDummy13) { |
| 5740 | size += pb::CodedOutputStream.ComputeInt32Size(13, Dummy13); |
| 5741 | } |
| 5742 | if (HasDummy14) { |
| 5743 | size += pb::CodedOutputStream.ComputeInt32Size(14, Dummy14); |
| 5744 | } |
| 5745 | if (HasDummy15) { |
| 5746 | size += pb::CodedOutputStream.ComputeInt32Size(15, Dummy15); |
| 5747 | } |
| 5748 | if (HasDummy16) { |
| 5749 | size += pb::CodedOutputStream.ComputeInt32Size(16, Dummy16); |
| 5750 | } |
| 5751 | if (HasDummy17) { |
| 5752 | size += pb::CodedOutputStream.ComputeInt32Size(17, Dummy17); |
| 5753 | } |
| 5754 | if (HasDummy18) { |
| 5755 | size += pb::CodedOutputStream.ComputeInt32Size(18, Dummy18); |
| 5756 | } |
| 5757 | if (HasDummy19) { |
| 5758 | size += pb::CodedOutputStream.ComputeInt32Size(19, Dummy19); |
| 5759 | } |
| 5760 | if (HasDummy20) { |
| 5761 | size += pb::CodedOutputStream.ComputeInt32Size(20, Dummy20); |
| 5762 | } |
| 5763 | if (HasDummy21) { |
| 5764 | size += pb::CodedOutputStream.ComputeInt32Size(21, Dummy21); |
| 5765 | } |
| 5766 | if (HasDummy22) { |
| 5767 | size += pb::CodedOutputStream.ComputeInt32Size(22, Dummy22); |
| 5768 | } |
| 5769 | if (HasDummy23) { |
| 5770 | size += pb::CodedOutputStream.ComputeInt32Size(23, Dummy23); |
| 5771 | } |
| 5772 | if (HasDummy24) { |
| 5773 | size += pb::CodedOutputStream.ComputeInt32Size(24, Dummy24); |
| 5774 | } |
| 5775 | if (HasDummy25) { |
| 5776 | size += pb::CodedOutputStream.ComputeInt32Size(25, Dummy25); |
| 5777 | } |
| 5778 | if (HasDummy26) { |
| 5779 | size += pb::CodedOutputStream.ComputeInt32Size(26, Dummy26); |
| 5780 | } |
| 5781 | if (HasDummy27) { |
| 5782 | size += pb::CodedOutputStream.ComputeInt32Size(27, Dummy27); |
| 5783 | } |
| 5784 | if (HasDummy28) { |
| 5785 | size += pb::CodedOutputStream.ComputeInt32Size(28, Dummy28); |
| 5786 | } |
| 5787 | if (HasDummy29) { |
| 5788 | size += pb::CodedOutputStream.ComputeInt32Size(29, Dummy29); |
| 5789 | } |
| 5790 | if (HasDummy30) { |
| 5791 | size += pb::CodedOutputStream.ComputeInt32Size(30, Dummy30); |
| 5792 | } |
| 5793 | if (HasDummy31) { |
| 5794 | size += pb::CodedOutputStream.ComputeInt32Size(31, Dummy31); |
| 5795 | } |
| 5796 | if (HasDummy32) { |
| 5797 | size += pb::CodedOutputStream.ComputeInt32Size(32, Dummy32); |
| 5798 | } |
| 5799 | if (HasC) { |
| 5800 | size += pb::CodedOutputStream.ComputeInt32Size(33, C); |
| 5801 | } |
| 5802 | size += UnknownFields.SerializedSize; |
| 5803 | memoizedSerializedSize = size; |
| 5804 | return size; |
| 5805 | } |
| 5806 | } |
| 5807 | |
| 5808 | public static TestRequired ParseFrom(pb::ByteString data) { |
| 5809 | return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed(); |
| 5810 | } |
| 5811 | public static TestRequired ParseFrom(pb::ByteString data, pb::ExtensionRegistry extensionRegistry) { |
| 5812 | return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed(); |
| 5813 | } |
| 5814 | public static TestRequired ParseFrom(byte[] data) { |
| 5815 | return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed(); |
| 5816 | } |
| 5817 | public static TestRequired ParseFrom(byte[] data, pb::ExtensionRegistry extensionRegistry) { |
| 5818 | return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed(); |
| 5819 | } |
| 5820 | public static TestRequired ParseFrom(global::System.IO.Stream input) { |
| 5821 | return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed(); |
| 5822 | } |
| 5823 | public static TestRequired ParseFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) { |
| 5824 | return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed(); |
| 5825 | } |
| 5826 | public static TestRequired ParseFrom(pb::CodedInputStream input) { |
| 5827 | return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed(); |
| 5828 | } |
| 5829 | public static TestRequired ParseFrom(pb::CodedInputStream input, pb::ExtensionRegistry extensionRegistry) { |
| 5830 | return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed(); |
| 5831 | } |
| 5832 | public static Builder CreateBuilder() { return new Builder(); } |
| 5833 | public override Builder CreateBuilderForType() { return new Builder(); } |
| 5834 | public static Builder CreateBuilder(TestRequired prototype) { |
| 5835 | return (Builder) new Builder().MergeFrom(prototype); |
| 5836 | } |
| 5837 | |
| 5838 | public sealed partial class Builder : pb::GeneratedBuilder<TestRequired, Builder> { |
| 5839 | protected override Builder ThisBuilder { |
| 5840 | get { return this; } |
| 5841 | } |
| 5842 | public Builder() {} |
| 5843 | |
| 5844 | TestRequired result = new TestRequired(); |
| 5845 | |
| 5846 | protected override TestRequired MessageBeingBuilt { |
| 5847 | get { return result; } |
| 5848 | } |
| 5849 | |
| 5850 | public override Builder Clear() { |
| 5851 | result = new TestRequired(); |
| 5852 | return this; |
| 5853 | } |
| 5854 | |
| 5855 | public override Builder Clone() { |
| 5856 | return new Builder().MergeFrom(result); |
| 5857 | } |
| 5858 | |
| 5859 | public override pbd::MessageDescriptor DescriptorForType { |
| 5860 | get { return TestRequired.Descriptor; } |
| 5861 | } |
| 5862 | |
| 5863 | public override TestRequired DefaultInstanceForType { |
| 5864 | get { return TestRequired.DefaultInstance; } |
| 5865 | } |
| 5866 | |
| 5867 | public override TestRequired BuildPartial() { |
| 5868 | TestRequired returnMe = result; |
| 5869 | result = null; |
| 5870 | return returnMe; |
| 5871 | } |
| 5872 | |
| 5873 | public override Builder MergeFrom(pb::IMessage other) { |
| 5874 | if (other is TestRequired) { |
| 5875 | return MergeFrom((TestRequired) other); |
| 5876 | } else { |
| 5877 | base.MergeFrom(other); |
| 5878 | return this; |
| 5879 | } |
| 5880 | } |
| 5881 | |
| 5882 | public override Builder MergeFrom(TestRequired other) { |
| 5883 | if (other == TestRequired.DefaultInstance) return this; |
| 5884 | if (other.HasA) { |
| 5885 | A = other.A; |
| 5886 | } |
| 5887 | if (other.HasDummy2) { |
| 5888 | Dummy2 = other.Dummy2; |
| 5889 | } |
| 5890 | if (other.HasB) { |
| 5891 | B = other.B; |
| 5892 | } |
| 5893 | if (other.HasDummy4) { |
| 5894 | Dummy4 = other.Dummy4; |
| 5895 | } |
| 5896 | if (other.HasDummy5) { |
| 5897 | Dummy5 = other.Dummy5; |
| 5898 | } |
| 5899 | if (other.HasDummy6) { |
| 5900 | Dummy6 = other.Dummy6; |
| 5901 | } |
| 5902 | if (other.HasDummy7) { |
| 5903 | Dummy7 = other.Dummy7; |
| 5904 | } |
| 5905 | if (other.HasDummy8) { |
| 5906 | Dummy8 = other.Dummy8; |
| 5907 | } |
| 5908 | if (other.HasDummy9) { |
| 5909 | Dummy9 = other.Dummy9; |
| 5910 | } |
| 5911 | if (other.HasDummy10) { |
| 5912 | Dummy10 = other.Dummy10; |
| 5913 | } |
| 5914 | if (other.HasDummy11) { |
| 5915 | Dummy11 = other.Dummy11; |
| 5916 | } |
| 5917 | if (other.HasDummy12) { |
| 5918 | Dummy12 = other.Dummy12; |
| 5919 | } |
| 5920 | if (other.HasDummy13) { |
| 5921 | Dummy13 = other.Dummy13; |
| 5922 | } |
| 5923 | if (other.HasDummy14) { |
| 5924 | Dummy14 = other.Dummy14; |
| 5925 | } |
| 5926 | if (other.HasDummy15) { |
| 5927 | Dummy15 = other.Dummy15; |
| 5928 | } |
| 5929 | if (other.HasDummy16) { |
| 5930 | Dummy16 = other.Dummy16; |
| 5931 | } |
| 5932 | if (other.HasDummy17) { |
| 5933 | Dummy17 = other.Dummy17; |
| 5934 | } |
| 5935 | if (other.HasDummy18) { |
| 5936 | Dummy18 = other.Dummy18; |
| 5937 | } |
| 5938 | if (other.HasDummy19) { |
| 5939 | Dummy19 = other.Dummy19; |
| 5940 | } |
| 5941 | if (other.HasDummy20) { |
| 5942 | Dummy20 = other.Dummy20; |
| 5943 | } |
| 5944 | if (other.HasDummy21) { |
| 5945 | Dummy21 = other.Dummy21; |
| 5946 | } |
| 5947 | if (other.HasDummy22) { |
| 5948 | Dummy22 = other.Dummy22; |
| 5949 | } |
| 5950 | if (other.HasDummy23) { |
| 5951 | Dummy23 = other.Dummy23; |
| 5952 | } |
| 5953 | if (other.HasDummy24) { |
| 5954 | Dummy24 = other.Dummy24; |
| 5955 | } |
| 5956 | if (other.HasDummy25) { |
| 5957 | Dummy25 = other.Dummy25; |
| 5958 | } |
| 5959 | if (other.HasDummy26) { |
| 5960 | Dummy26 = other.Dummy26; |
| 5961 | } |
| 5962 | if (other.HasDummy27) { |
| 5963 | Dummy27 = other.Dummy27; |
| 5964 | } |
| 5965 | if (other.HasDummy28) { |
| 5966 | Dummy28 = other.Dummy28; |
| 5967 | } |
| 5968 | if (other.HasDummy29) { |
| 5969 | Dummy29 = other.Dummy29; |
| 5970 | } |
| 5971 | if (other.HasDummy30) { |
| 5972 | Dummy30 = other.Dummy30; |
| 5973 | } |
| 5974 | if (other.HasDummy31) { |
| 5975 | Dummy31 = other.Dummy31; |
| 5976 | } |
| 5977 | if (other.HasDummy32) { |
| 5978 | Dummy32 = other.Dummy32; |
| 5979 | } |
| 5980 | if (other.HasC) { |
| 5981 | C = other.C; |
| 5982 | } |
| 5983 | this.MergeUnknownFields(other.UnknownFields); |
| 5984 | return this; |
| 5985 | } |
| 5986 | |
| 5987 | public override Builder MergeFrom(pb::CodedInputStream input) { |
| 5988 | return MergeFrom(input, pb::ExtensionRegistry.Empty); |
| 5989 | } |
| 5990 | |
| 5991 | public override Builder MergeFrom(pb::CodedInputStream input, pb::ExtensionRegistry extensionRegistry) { |
| 5992 | pb::UnknownFieldSet.Builder unknownFields = pb::UnknownFieldSet.CreateBuilder(this.UnknownFields); |
| 5993 | while (true) { |
| 5994 | uint tag = input.ReadTag(); |
| 5995 | switch (tag) { |
| 5996 | case 0: { |
| 5997 | this.UnknownFields = unknownFields.Build(); |
| 5998 | return this; |
| 5999 | } |
| 6000 | default: { |
| 6001 | if (!ParseUnknownField(input, unknownFields, extensionRegistry, tag)) { |
| 6002 | this.UnknownFields = unknownFields.Build(); |
| 6003 | return this; |
| 6004 | } |
| 6005 | break; |
| 6006 | } |
| 6007 | case 8: { |
| 6008 | A = input.ReadInt32(); |
| 6009 | break; |
| 6010 | } |
| 6011 | case 16: { |
| 6012 | Dummy2 = input.ReadInt32(); |
| 6013 | break; |
| 6014 | } |
| 6015 | case 24: { |
| 6016 | B = input.ReadInt32(); |
| 6017 | break; |
| 6018 | } |
| 6019 | case 32: { |
| 6020 | Dummy4 = input.ReadInt32(); |
| 6021 | break; |
| 6022 | } |
| 6023 | case 40: { |
| 6024 | Dummy5 = input.ReadInt32(); |
| 6025 | break; |
| 6026 | } |
| 6027 | case 48: { |
| 6028 | Dummy6 = input.ReadInt32(); |
| 6029 | break; |
| 6030 | } |
| 6031 | case 56: { |
| 6032 | Dummy7 = input.ReadInt32(); |
| 6033 | break; |
| 6034 | } |
| 6035 | case 64: { |
| 6036 | Dummy8 = input.ReadInt32(); |
| 6037 | break; |
| 6038 | } |
| 6039 | case 72: { |
| 6040 | Dummy9 = input.ReadInt32(); |
| 6041 | break; |
| 6042 | } |
| 6043 | case 80: { |
| 6044 | Dummy10 = input.ReadInt32(); |
| 6045 | break; |
| 6046 | } |
| 6047 | case 88: { |
| 6048 | Dummy11 = input.ReadInt32(); |
| 6049 | break; |
| 6050 | } |
| 6051 | case 96: { |
| 6052 | Dummy12 = input.ReadInt32(); |
| 6053 | break; |
| 6054 | } |
| 6055 | case 104: { |
| 6056 | Dummy13 = input.ReadInt32(); |
| 6057 | break; |
| 6058 | } |
| 6059 | case 112: { |
| 6060 | Dummy14 = input.ReadInt32(); |
| 6061 | break; |
| 6062 | } |
| 6063 | case 120: { |
| 6064 | Dummy15 = input.ReadInt32(); |
| 6065 | break; |
| 6066 | } |
| 6067 | case 128: { |
| 6068 | Dummy16 = input.ReadInt32(); |
| 6069 | break; |
| 6070 | } |
| 6071 | case 136: { |
| 6072 | Dummy17 = input.ReadInt32(); |
| 6073 | break; |
| 6074 | } |
| 6075 | case 144: { |
| 6076 | Dummy18 = input.ReadInt32(); |
| 6077 | break; |
| 6078 | } |
| 6079 | case 152: { |
| 6080 | Dummy19 = input.ReadInt32(); |
| 6081 | break; |
| 6082 | } |
| 6083 | case 160: { |
| 6084 | Dummy20 = input.ReadInt32(); |
| 6085 | break; |
| 6086 | } |
| 6087 | case 168: { |
| 6088 | Dummy21 = input.ReadInt32(); |
| 6089 | break; |
| 6090 | } |
| 6091 | case 176: { |
| 6092 | Dummy22 = input.ReadInt32(); |
| 6093 | break; |
| 6094 | } |
| 6095 | case 184: { |
| 6096 | Dummy23 = input.ReadInt32(); |
| 6097 | break; |
| 6098 | } |
| 6099 | case 192: { |
| 6100 | Dummy24 = input.ReadInt32(); |
| 6101 | break; |
| 6102 | } |
| 6103 | case 200: { |
| 6104 | Dummy25 = input.ReadInt32(); |
| 6105 | break; |
| 6106 | } |
| 6107 | case 208: { |
| 6108 | Dummy26 = input.ReadInt32(); |
| 6109 | break; |
| 6110 | } |
| 6111 | case 216: { |
| 6112 | Dummy27 = input.ReadInt32(); |
| 6113 | break; |
| 6114 | } |
| 6115 | case 224: { |
| 6116 | Dummy28 = input.ReadInt32(); |
| 6117 | break; |
| 6118 | } |
| 6119 | case 232: { |
| 6120 | Dummy29 = input.ReadInt32(); |
| 6121 | break; |
| 6122 | } |
| 6123 | case 240: { |
| 6124 | Dummy30 = input.ReadInt32(); |
| 6125 | break; |
| 6126 | } |
| 6127 | case 248: { |
| 6128 | Dummy31 = input.ReadInt32(); |
| 6129 | break; |
| 6130 | } |
| 6131 | case 256: { |
| 6132 | Dummy32 = input.ReadInt32(); |
| 6133 | break; |
| 6134 | } |
| 6135 | case 264: { |
| 6136 | C = input.ReadInt32(); |
| 6137 | break; |
| 6138 | } |
| 6139 | } |
| 6140 | } |
| 6141 | } |
| 6142 | |
| 6143 | |
| 6144 | public bool HasA { |
| 6145 | get { return result.HasA; } |
| 6146 | } |
| 6147 | public int A { |
| 6148 | get { return result.A; } |
| 6149 | set { SetA(value); } |
| 6150 | } |
| 6151 | public Builder SetA(int value) { |
| 6152 | result.hasA = true; |
| 6153 | result.a_ = value; |
| 6154 | return this; |
| 6155 | } |
| 6156 | public Builder ClearA() { |
| 6157 | result.hasA = false; |
| 6158 | result.a_ = 0; |
| 6159 | return this; |
| 6160 | } |
| 6161 | |
| 6162 | public bool HasDummy2 { |
| 6163 | get { return result.HasDummy2; } |
| 6164 | } |
| 6165 | public int Dummy2 { |
| 6166 | get { return result.Dummy2; } |
| 6167 | set { SetDummy2(value); } |
| 6168 | } |
| 6169 | public Builder SetDummy2(int value) { |
| 6170 | result.hasDummy2 = true; |
| 6171 | result.dummy2_ = value; |
| 6172 | return this; |
| 6173 | } |
| 6174 | public Builder ClearDummy2() { |
| 6175 | result.hasDummy2 = false; |
| 6176 | result.dummy2_ = 0; |
| 6177 | return this; |
| 6178 | } |
| 6179 | |
| 6180 | public bool HasB { |
| 6181 | get { return result.HasB; } |
| 6182 | } |
| 6183 | public int B { |
| 6184 | get { return result.B; } |
| 6185 | set { SetB(value); } |
| 6186 | } |
| 6187 | public Builder SetB(int value) { |
| 6188 | result.hasB = true; |
| 6189 | result.b_ = value; |
| 6190 | return this; |
| 6191 | } |
| 6192 | public Builder ClearB() { |
| 6193 | result.hasB = false; |
| 6194 | result.b_ = 0; |
| 6195 | return this; |
| 6196 | } |
| 6197 | |
| 6198 | public bool HasDummy4 { |
| 6199 | get { return result.HasDummy4; } |
| 6200 | } |
| 6201 | public int Dummy4 { |
| 6202 | get { return result.Dummy4; } |
| 6203 | set { SetDummy4(value); } |
| 6204 | } |
| 6205 | public Builder SetDummy4(int value) { |
| 6206 | result.hasDummy4 = true; |
| 6207 | result.dummy4_ = value; |
| 6208 | return this; |
| 6209 | } |
| 6210 | public Builder ClearDummy4() { |
| 6211 | result.hasDummy4 = false; |
| 6212 | result.dummy4_ = 0; |
| 6213 | return this; |
| 6214 | } |
| 6215 | |
| 6216 | public bool HasDummy5 { |
| 6217 | get { return result.HasDummy5; } |
| 6218 | } |
| 6219 | public int Dummy5 { |
| 6220 | get { return result.Dummy5; } |
| 6221 | set { SetDummy5(value); } |
| 6222 | } |
| 6223 | public Builder SetDummy5(int value) { |
| 6224 | result.hasDummy5 = true; |
| 6225 | result.dummy5_ = value; |
| 6226 | return this; |
| 6227 | } |
| 6228 | public Builder ClearDummy5() { |
| 6229 | result.hasDummy5 = false; |
| 6230 | result.dummy5_ = 0; |
| 6231 | return this; |
| 6232 | } |
| 6233 | |
| 6234 | public bool HasDummy6 { |
| 6235 | get { return result.HasDummy6; } |
| 6236 | } |
| 6237 | public int Dummy6 { |
| 6238 | get { return result.Dummy6; } |
| 6239 | set { SetDummy6(value); } |
| 6240 | } |
| 6241 | public Builder SetDummy6(int value) { |
| 6242 | result.hasDummy6 = true; |
| 6243 | result.dummy6_ = value; |
| 6244 | return this; |
| 6245 | } |
| 6246 | public Builder ClearDummy6() { |
| 6247 | result.hasDummy6 = false; |
| 6248 | result.dummy6_ = 0; |
| 6249 | return this; |
| 6250 | } |
| 6251 | |
| 6252 | public bool HasDummy7 { |
| 6253 | get { return result.HasDummy7; } |
| 6254 | } |
| 6255 | public int Dummy7 { |
| 6256 | get { return result.Dummy7; } |
| 6257 | set { SetDummy7(value); } |
| 6258 | } |
| 6259 | public Builder SetDummy7(int value) { |
| 6260 | result.hasDummy7 = true; |
| 6261 | result.dummy7_ = value; |
| 6262 | return this; |
| 6263 | } |
| 6264 | public Builder ClearDummy7() { |
| 6265 | result.hasDummy7 = false; |
| 6266 | result.dummy7_ = 0; |
| 6267 | return this; |
| 6268 | } |
| 6269 | |
| 6270 | public bool HasDummy8 { |
| 6271 | get { return result.HasDummy8; } |
| 6272 | } |
| 6273 | public int Dummy8 { |
| 6274 | get { return result.Dummy8; } |
| 6275 | set { SetDummy8(value); } |
| 6276 | } |
| 6277 | public Builder SetDummy8(int value) { |
| 6278 | result.hasDummy8 = true; |
| 6279 | result.dummy8_ = value; |
| 6280 | return this; |
| 6281 | } |
| 6282 | public Builder ClearDummy8() { |
| 6283 | result.hasDummy8 = false; |
| 6284 | result.dummy8_ = 0; |
| 6285 | return this; |
| 6286 | } |
| 6287 | |
| 6288 | public bool HasDummy9 { |
| 6289 | get { return result.HasDummy9; } |
| 6290 | } |
| 6291 | public int Dummy9 { |
| 6292 | get { return result.Dummy9; } |
| 6293 | set { SetDummy9(value); } |
| 6294 | } |
| 6295 | public Builder SetDummy9(int value) { |
| 6296 | result.hasDummy9 = true; |
| 6297 | result.dummy9_ = value; |
| 6298 | return this; |
| 6299 | } |
| 6300 | public Builder ClearDummy9() { |
| 6301 | result.hasDummy9 = false; |
| 6302 | result.dummy9_ = 0; |
| 6303 | return this; |
| 6304 | } |
| 6305 | |
| 6306 | public bool HasDummy10 { |
| 6307 | get { return result.HasDummy10; } |
| 6308 | } |
| 6309 | public int Dummy10 { |
| 6310 | get { return result.Dummy10; } |
| 6311 | set { SetDummy10(value); } |
| 6312 | } |
| 6313 | public Builder SetDummy10(int value) { |
| 6314 | result.hasDummy10 = true; |
| 6315 | result.dummy10_ = value; |
| 6316 | return this; |
| 6317 | } |
| 6318 | public Builder ClearDummy10() { |
| 6319 | result.hasDummy10 = false; |
| 6320 | result.dummy10_ = 0; |
| 6321 | return this; |
| 6322 | } |
| 6323 | |
| 6324 | public bool HasDummy11 { |
| 6325 | get { return result.HasDummy11; } |
| 6326 | } |
| 6327 | public int Dummy11 { |
| 6328 | get { return result.Dummy11; } |
| 6329 | set { SetDummy11(value); } |
| 6330 | } |
| 6331 | public Builder SetDummy11(int value) { |
| 6332 | result.hasDummy11 = true; |
| 6333 | result.dummy11_ = value; |
| 6334 | return this; |
| 6335 | } |
| 6336 | public Builder ClearDummy11() { |
| 6337 | result.hasDummy11 = false; |
| 6338 | result.dummy11_ = 0; |
| 6339 | return this; |
| 6340 | } |
| 6341 | |
| 6342 | public bool HasDummy12 { |
| 6343 | get { return result.HasDummy12; } |
| 6344 | } |
| 6345 | public int Dummy12 { |
| 6346 | get { return result.Dummy12; } |
| 6347 | set { SetDummy12(value); } |
| 6348 | } |
| 6349 | public Builder SetDummy12(int value) { |
| 6350 | result.hasDummy12 = true; |
| 6351 | result.dummy12_ = value; |
| 6352 | return this; |
| 6353 | } |
| 6354 | public Builder ClearDummy12() { |
| 6355 | result.hasDummy12 = false; |
| 6356 | result.dummy12_ = 0; |
| 6357 | return this; |
| 6358 | } |
| 6359 | |
| 6360 | public bool HasDummy13 { |
| 6361 | get { return result.HasDummy13; } |
| 6362 | } |
| 6363 | public int Dummy13 { |
| 6364 | get { return result.Dummy13; } |
| 6365 | set { SetDummy13(value); } |
| 6366 | } |
| 6367 | public Builder SetDummy13(int value) { |
| 6368 | result.hasDummy13 = true; |
| 6369 | result.dummy13_ = value; |
| 6370 | return this; |
| 6371 | } |
| 6372 | public Builder ClearDummy13() { |
| 6373 | result.hasDummy13 = false; |
| 6374 | result.dummy13_ = 0; |
| 6375 | return this; |
| 6376 | } |
| 6377 | |
| 6378 | public bool HasDummy14 { |
| 6379 | get { return result.HasDummy14; } |
| 6380 | } |
| 6381 | public int Dummy14 { |
| 6382 | get { return result.Dummy14; } |
| 6383 | set { SetDummy14(value); } |
| 6384 | } |
| 6385 | public Builder SetDummy14(int value) { |
| 6386 | result.hasDummy14 = true; |
| 6387 | result.dummy14_ = value; |
| 6388 | return this; |
| 6389 | } |
| 6390 | public Builder ClearDummy14() { |
| 6391 | result.hasDummy14 = false; |
| 6392 | result.dummy14_ = 0; |
| 6393 | return this; |
| 6394 | } |
| 6395 | |
| 6396 | public bool HasDummy15 { |
| 6397 | get { return result.HasDummy15; } |
| 6398 | } |
| 6399 | public int Dummy15 { |
| 6400 | get { return result.Dummy15; } |
| 6401 | set { SetDummy15(value); } |
| 6402 | } |
| 6403 | public Builder SetDummy15(int value) { |
| 6404 | result.hasDummy15 = true; |
| 6405 | result.dummy15_ = value; |
| 6406 | return this; |
| 6407 | } |
| 6408 | public Builder ClearDummy15() { |
| 6409 | result.hasDummy15 = false; |
| 6410 | result.dummy15_ = 0; |
| 6411 | return this; |
| 6412 | } |
| 6413 | |
| 6414 | public bool HasDummy16 { |
| 6415 | get { return result.HasDummy16; } |
| 6416 | } |
| 6417 | public int Dummy16 { |
| 6418 | get { return result.Dummy16; } |
| 6419 | set { SetDummy16(value); } |
| 6420 | } |
| 6421 | public Builder SetDummy16(int value) { |
| 6422 | result.hasDummy16 = true; |
| 6423 | result.dummy16_ = value; |
| 6424 | return this; |
| 6425 | } |
| 6426 | public Builder ClearDummy16() { |
| 6427 | result.hasDummy16 = false; |
| 6428 | result.dummy16_ = 0; |
| 6429 | return this; |
| 6430 | } |
| 6431 | |
| 6432 | public bool HasDummy17 { |
| 6433 | get { return result.HasDummy17; } |
| 6434 | } |
| 6435 | public int Dummy17 { |
| 6436 | get { return result.Dummy17; } |
| 6437 | set { SetDummy17(value); } |
| 6438 | } |
| 6439 | public Builder SetDummy17(int value) { |
| 6440 | result.hasDummy17 = true; |
| 6441 | result.dummy17_ = value; |
| 6442 | return this; |
| 6443 | } |
| 6444 | public Builder ClearDummy17() { |
| 6445 | result.hasDummy17 = false; |
| 6446 | result.dummy17_ = 0; |
| 6447 | return this; |
| 6448 | } |
| 6449 | |
| 6450 | public bool HasDummy18 { |
| 6451 | get { return result.HasDummy18; } |
| 6452 | } |
| 6453 | public int Dummy18 { |
| 6454 | get { return result.Dummy18; } |
| 6455 | set { SetDummy18(value); } |
| 6456 | } |
| 6457 | public Builder SetDummy18(int value) { |
| 6458 | result.hasDummy18 = true; |
| 6459 | result.dummy18_ = value; |
| 6460 | return this; |
| 6461 | } |
| 6462 | public Builder ClearDummy18() { |
| 6463 | result.hasDummy18 = false; |
| 6464 | result.dummy18_ = 0; |
| 6465 | return this; |
| 6466 | } |
| 6467 | |
| 6468 | public bool HasDummy19 { |
| 6469 | get { return result.HasDummy19; } |
| 6470 | } |
| 6471 | public int Dummy19 { |
| 6472 | get { return result.Dummy19; } |
| 6473 | set { SetDummy19(value); } |
| 6474 | } |
| 6475 | public Builder SetDummy19(int value) { |
| 6476 | result.hasDummy19 = true; |
| 6477 | result.dummy19_ = value; |
| 6478 | return this; |
| 6479 | } |
| 6480 | public Builder ClearDummy19() { |
| 6481 | result.hasDummy19 = false; |
| 6482 | result.dummy19_ = 0; |
| 6483 | return this; |
| 6484 | } |
| 6485 | |
| 6486 | public bool HasDummy20 { |
| 6487 | get { return result.HasDummy20; } |
| 6488 | } |
| 6489 | public int Dummy20 { |
| 6490 | get { return result.Dummy20; } |
| 6491 | set { SetDummy20(value); } |
| 6492 | } |
| 6493 | public Builder SetDummy20(int value) { |
| 6494 | result.hasDummy20 = true; |
| 6495 | result.dummy20_ = value; |
| 6496 | return this; |
| 6497 | } |
| 6498 | public Builder ClearDummy20() { |
| 6499 | result.hasDummy20 = false; |
| 6500 | result.dummy20_ = 0; |
| 6501 | return this; |
| 6502 | } |
| 6503 | |
| 6504 | public bool HasDummy21 { |
| 6505 | get { return result.HasDummy21; } |
| 6506 | } |
| 6507 | public int Dummy21 { |
| 6508 | get { return result.Dummy21; } |
| 6509 | set { SetDummy21(value); } |
| 6510 | } |
| 6511 | public Builder SetDummy21(int value) { |
| 6512 | result.hasDummy21 = true; |
| 6513 | result.dummy21_ = value; |
| 6514 | return this; |
| 6515 | } |
| 6516 | public Builder ClearDummy21() { |
| 6517 | result.hasDummy21 = false; |
| 6518 | result.dummy21_ = 0; |
| 6519 | return this; |
| 6520 | } |
| 6521 | |
| 6522 | public bool HasDummy22 { |
| 6523 | get { return result.HasDummy22; } |
| 6524 | } |
| 6525 | public int Dummy22 { |
| 6526 | get { return result.Dummy22; } |
| 6527 | set { SetDummy22(value); } |
| 6528 | } |
| 6529 | public Builder SetDummy22(int value) { |
| 6530 | result.hasDummy22 = true; |
| 6531 | result.dummy22_ = value; |
| 6532 | return this; |
| 6533 | } |
| 6534 | public Builder ClearDummy22() { |
| 6535 | result.hasDummy22 = false; |
| 6536 | result.dummy22_ = 0; |
| 6537 | return this; |
| 6538 | } |
| 6539 | |
| 6540 | public bool HasDummy23 { |
| 6541 | get { return result.HasDummy23; } |
| 6542 | } |
| 6543 | public int Dummy23 { |
| 6544 | get { return result.Dummy23; } |
| 6545 | set { SetDummy23(value); } |
| 6546 | } |
| 6547 | public Builder SetDummy23(int value) { |
| 6548 | result.hasDummy23 = true; |
| 6549 | result.dummy23_ = value; |
| 6550 | return this; |
| 6551 | } |
| 6552 | public Builder ClearDummy23() { |
| 6553 | result.hasDummy23 = false; |
| 6554 | result.dummy23_ = 0; |
| 6555 | return this; |
| 6556 | } |
| 6557 | |
| 6558 | public bool HasDummy24 { |
| 6559 | get { return result.HasDummy24; } |
| 6560 | } |
| 6561 | public int Dummy24 { |
| 6562 | get { return result.Dummy24; } |
| 6563 | set { SetDummy24(value); } |
| 6564 | } |
| 6565 | public Builder SetDummy24(int value) { |
| 6566 | result.hasDummy24 = true; |
| 6567 | result.dummy24_ = value; |
| 6568 | return this; |
| 6569 | } |
| 6570 | public Builder ClearDummy24() { |
| 6571 | result.hasDummy24 = false; |
| 6572 | result.dummy24_ = 0; |
| 6573 | return this; |
| 6574 | } |
| 6575 | |
| 6576 | public bool HasDummy25 { |
| 6577 | get { return result.HasDummy25; } |
| 6578 | } |
| 6579 | public int Dummy25 { |
| 6580 | get { return result.Dummy25; } |
| 6581 | set { SetDummy25(value); } |
| 6582 | } |
| 6583 | public Builder SetDummy25(int value) { |
| 6584 | result.hasDummy25 = true; |
| 6585 | result.dummy25_ = value; |
| 6586 | return this; |
| 6587 | } |
| 6588 | public Builder ClearDummy25() { |
| 6589 | result.hasDummy25 = false; |
| 6590 | result.dummy25_ = 0; |
| 6591 | return this; |
| 6592 | } |
| 6593 | |
| 6594 | public bool HasDummy26 { |
| 6595 | get { return result.HasDummy26; } |
| 6596 | } |
| 6597 | public int Dummy26 { |
| 6598 | get { return result.Dummy26; } |
| 6599 | set { SetDummy26(value); } |
| 6600 | } |
| 6601 | public Builder SetDummy26(int value) { |
| 6602 | result.hasDummy26 = true; |
| 6603 | result.dummy26_ = value; |
| 6604 | return this; |
| 6605 | } |
| 6606 | public Builder ClearDummy26() { |
| 6607 | result.hasDummy26 = false; |
| 6608 | result.dummy26_ = 0; |
| 6609 | return this; |
| 6610 | } |
| 6611 | |
| 6612 | public bool HasDummy27 { |
| 6613 | get { return result.HasDummy27; } |
| 6614 | } |
| 6615 | public int Dummy27 { |
| 6616 | get { return result.Dummy27; } |
| 6617 | set { SetDummy27(value); } |
| 6618 | } |
| 6619 | public Builder SetDummy27(int value) { |
| 6620 | result.hasDummy27 = true; |
| 6621 | result.dummy27_ = value; |
| 6622 | return this; |
| 6623 | } |
| 6624 | public Builder ClearDummy27() { |
| 6625 | result.hasDummy27 = false; |
| 6626 | result.dummy27_ = 0; |
| 6627 | return this; |
| 6628 | } |
| 6629 | |
| 6630 | public bool HasDummy28 { |
| 6631 | get { return result.HasDummy28; } |
| 6632 | } |
| 6633 | public int Dummy28 { |
| 6634 | get { return result.Dummy28; } |
| 6635 | set { SetDummy28(value); } |
| 6636 | } |
| 6637 | public Builder SetDummy28(int value) { |
| 6638 | result.hasDummy28 = true; |
| 6639 | result.dummy28_ = value; |
| 6640 | return this; |
| 6641 | } |
| 6642 | public Builder ClearDummy28() { |
| 6643 | result.hasDummy28 = false; |
| 6644 | result.dummy28_ = 0; |
| 6645 | return this; |
| 6646 | } |
| 6647 | |
| 6648 | public bool HasDummy29 { |
| 6649 | get { return result.HasDummy29; } |
| 6650 | } |
| 6651 | public int Dummy29 { |
| 6652 | get { return result.Dummy29; } |
| 6653 | set { SetDummy29(value); } |
| 6654 | } |
| 6655 | public Builder SetDummy29(int value) { |
| 6656 | result.hasDummy29 = true; |
| 6657 | result.dummy29_ = value; |
| 6658 | return this; |
| 6659 | } |
| 6660 | public Builder ClearDummy29() { |
| 6661 | result.hasDummy29 = false; |
| 6662 | result.dummy29_ = 0; |
| 6663 | return this; |
| 6664 | } |
| 6665 | |
| 6666 | public bool HasDummy30 { |
| 6667 | get { return result.HasDummy30; } |
| 6668 | } |
| 6669 | public int Dummy30 { |
| 6670 | get { return result.Dummy30; } |
| 6671 | set { SetDummy30(value); } |
| 6672 | } |
| 6673 | public Builder SetDummy30(int value) { |
| 6674 | result.hasDummy30 = true; |
| 6675 | result.dummy30_ = value; |
| 6676 | return this; |
| 6677 | } |
| 6678 | public Builder ClearDummy30() { |
| 6679 | result.hasDummy30 = false; |
| 6680 | result.dummy30_ = 0; |
| 6681 | return this; |
| 6682 | } |
| 6683 | |
| 6684 | public bool HasDummy31 { |
| 6685 | get { return result.HasDummy31; } |
| 6686 | } |
| 6687 | public int Dummy31 { |
| 6688 | get { return result.Dummy31; } |
| 6689 | set { SetDummy31(value); } |
| 6690 | } |
| 6691 | public Builder SetDummy31(int value) { |
| 6692 | result.hasDummy31 = true; |
| 6693 | result.dummy31_ = value; |
| 6694 | return this; |
| 6695 | } |
| 6696 | public Builder ClearDummy31() { |
| 6697 | result.hasDummy31 = false; |
| 6698 | result.dummy31_ = 0; |
| 6699 | return this; |
| 6700 | } |
| 6701 | |
| 6702 | public bool HasDummy32 { |
| 6703 | get { return result.HasDummy32; } |
| 6704 | } |
| 6705 | public int Dummy32 { |
| 6706 | get { return result.Dummy32; } |
| 6707 | set { SetDummy32(value); } |
| 6708 | } |
| 6709 | public Builder SetDummy32(int value) { |
| 6710 | result.hasDummy32 = true; |
| 6711 | result.dummy32_ = value; |
| 6712 | return this; |
| 6713 | } |
| 6714 | public Builder ClearDummy32() { |
| 6715 | result.hasDummy32 = false; |
| 6716 | result.dummy32_ = 0; |
| 6717 | return this; |
| 6718 | } |
| 6719 | |
| 6720 | public bool HasC { |
| 6721 | get { return result.HasC; } |
| 6722 | } |
| 6723 | public int C { |
| 6724 | get { return result.C; } |
| 6725 | set { SetC(value); } |
| 6726 | } |
| 6727 | public Builder SetC(int value) { |
| 6728 | result.hasC = true; |
| 6729 | result.c_ = value; |
| 6730 | return this; |
| 6731 | } |
| 6732 | public Builder ClearC() { |
| 6733 | result.hasC = false; |
| 6734 | result.c_ = 0; |
| 6735 | return this; |
| 6736 | } |
| 6737 | } |
| 6738 | } |
| 6739 | |
| 6740 | public sealed partial class TestRequiredForeign : pb::GeneratedMessage<TestRequiredForeign, TestRequiredForeign.Builder> { |
| 6741 | private static readonly TestRequiredForeign defaultInstance = new Builder().BuildPartial(); |
| 6742 | public static TestRequiredForeign DefaultInstance { |
| 6743 | get { return defaultInstance; } |
| 6744 | } |
| 6745 | |
| 6746 | public override TestRequiredForeign DefaultInstanceForType { |
| 6747 | get { return defaultInstance; } |
| 6748 | } |
| 6749 | |
| 6750 | protected override TestRequiredForeign ThisMessage { |
| 6751 | get { return this; } |
| 6752 | } |
| 6753 | |
| 6754 | public static pbd::MessageDescriptor Descriptor { |
| 6755 | get { return global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.internal__static_protobuf_unittest_TestRequiredForeign__Descriptor; } |
| 6756 | } |
| 6757 | |
| 6758 | protected override pb::FieldAccess.FieldAccessorTable<TestRequiredForeign, TestRequiredForeign.Builder> InternalFieldAccessors { |
| 6759 | get { return global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.internal__static_protobuf_unittest_TestRequiredForeign__FieldAccessorTable; } |
| 6760 | } |
| 6761 | |
| 6762 | private bool hasOptionalMessage; |
| 6763 | private global::Google.ProtocolBuffers.TestProtos.TestRequired optionalMessage_ = global::Google.ProtocolBuffers.TestProtos.TestRequired.DefaultInstance; |
| 6764 | public bool HasOptionalMessage { |
| 6765 | get { return hasOptionalMessage; } |
| 6766 | } |
| 6767 | public global::Google.ProtocolBuffers.TestProtos.TestRequired OptionalMessage { |
| 6768 | get { return optionalMessage_; } |
| 6769 | } |
| 6770 | |
| 6771 | private pbc::PopsicleList<global::Google.ProtocolBuffers.TestProtos.TestRequired> repeatedMessage_ = new pbc::PopsicleList<global::Google.ProtocolBuffers.TestProtos.TestRequired>(); |
| 6772 | public scg::IList<global::Google.ProtocolBuffers.TestProtos.TestRequired> RepeatedMessageList { |
| 6773 | get { return repeatedMessage_; } |
| 6774 | } |
| 6775 | public int RepeatedMessageCount { |
| 6776 | get { return repeatedMessage_.Count; } |
| 6777 | } |
| 6778 | public global::Google.ProtocolBuffers.TestProtos.TestRequired GetRepeatedMessage(int index) { |
| 6779 | return repeatedMessage_[index]; |
| 6780 | } |
| 6781 | |
| 6782 | private bool hasDummy; |
| 6783 | private int dummy_ = 0; |
| 6784 | public bool HasDummy { |
| 6785 | get { return hasDummy; } |
| 6786 | } |
| 6787 | public int Dummy { |
| 6788 | get { return dummy_; } |
| 6789 | } |
| 6790 | |
| 6791 | public override bool IsInitialized { |
| 6792 | get { |
| 6793 | if (HasOptionalMessage) { |
| 6794 | if (!OptionalMessage.IsInitialized) return false; |
| 6795 | } |
| 6796 | foreach (global::Google.ProtocolBuffers.TestProtos.TestRequired element in RepeatedMessageList) { |
| 6797 | if (!element.IsInitialized) return false; |
| 6798 | } |
| 6799 | return true; |
| 6800 | } |
| 6801 | } |
| 6802 | |
| 6803 | public override void WriteTo(pb::CodedOutputStream output) { |
| 6804 | if (HasOptionalMessage) { |
| 6805 | output.WriteMessage(1, OptionalMessage); |
| 6806 | } |
| 6807 | foreach (global::Google.ProtocolBuffers.TestProtos.TestRequired element in RepeatedMessageList) { |
| 6808 | output.WriteMessage(2, element); |
| 6809 | } |
| 6810 | if (HasDummy) { |
| 6811 | output.WriteInt32(3, Dummy); |
| 6812 | } |
| 6813 | UnknownFields.WriteTo(output); |
| 6814 | } |
| 6815 | |
| 6816 | private int memoizedSerializedSize = -1; |
| 6817 | public override int SerializedSize { |
| 6818 | get { |
| 6819 | int size = memoizedSerializedSize; |
| 6820 | if (size != -1) return size; |
| 6821 | |
| 6822 | size = 0; |
| 6823 | if (HasOptionalMessage) { |
| 6824 | size += pb::CodedOutputStream.ComputeMessageSize(1, OptionalMessage); |
| 6825 | } |
| 6826 | foreach (global::Google.ProtocolBuffers.TestProtos.TestRequired element in RepeatedMessageList) { |
| 6827 | size += pb::CodedOutputStream.ComputeMessageSize(2, element); |
| 6828 | } |
| 6829 | if (HasDummy) { |
| 6830 | size += pb::CodedOutputStream.ComputeInt32Size(3, Dummy); |
| 6831 | } |
| 6832 | size += UnknownFields.SerializedSize; |
| 6833 | memoizedSerializedSize = size; |
| 6834 | return size; |
| 6835 | } |
| 6836 | } |
| 6837 | |
| 6838 | public static TestRequiredForeign ParseFrom(pb::ByteString data) { |
| 6839 | return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed(); |
| 6840 | } |
| 6841 | public static TestRequiredForeign ParseFrom(pb::ByteString data, pb::ExtensionRegistry extensionRegistry) { |
| 6842 | return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed(); |
| 6843 | } |
| 6844 | public static TestRequiredForeign ParseFrom(byte[] data) { |
| 6845 | return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed(); |
| 6846 | } |
| 6847 | public static TestRequiredForeign ParseFrom(byte[] data, pb::ExtensionRegistry extensionRegistry) { |
| 6848 | return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed(); |
| 6849 | } |
| 6850 | public static TestRequiredForeign ParseFrom(global::System.IO.Stream input) { |
| 6851 | return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed(); |
| 6852 | } |
| 6853 | public static TestRequiredForeign ParseFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) { |
| 6854 | return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed(); |
| 6855 | } |
| 6856 | public static TestRequiredForeign ParseFrom(pb::CodedInputStream input) { |
| 6857 | return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed(); |
| 6858 | } |
| 6859 | public static TestRequiredForeign ParseFrom(pb::CodedInputStream input, pb::ExtensionRegistry extensionRegistry) { |
| 6860 | return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed(); |
| 6861 | } |
| 6862 | public static Builder CreateBuilder() { return new Builder(); } |
| 6863 | public override Builder CreateBuilderForType() { return new Builder(); } |
| 6864 | public static Builder CreateBuilder(TestRequiredForeign prototype) { |
| 6865 | return (Builder) new Builder().MergeFrom(prototype); |
| 6866 | } |
| 6867 | |
| 6868 | public sealed partial class Builder : pb::GeneratedBuilder<TestRequiredForeign, Builder> { |
| 6869 | protected override Builder ThisBuilder { |
| 6870 | get { return this; } |
| 6871 | } |
| 6872 | public Builder() {} |
| 6873 | |
| 6874 | TestRequiredForeign result = new TestRequiredForeign(); |
| 6875 | |
| 6876 | protected override TestRequiredForeign MessageBeingBuilt { |
| 6877 | get { return result; } |
| 6878 | } |
| 6879 | |
| 6880 | public override Builder Clear() { |
| 6881 | result = new TestRequiredForeign(); |
| 6882 | return this; |
| 6883 | } |
| 6884 | |
| 6885 | public override Builder Clone() { |
| 6886 | return new Builder().MergeFrom(result); |
| 6887 | } |
| 6888 | |
| 6889 | public override pbd::MessageDescriptor DescriptorForType { |
| 6890 | get { return TestRequiredForeign.Descriptor; } |
| 6891 | } |
| 6892 | |
| 6893 | public override TestRequiredForeign DefaultInstanceForType { |
| 6894 | get { return TestRequiredForeign.DefaultInstance; } |
| 6895 | } |
| 6896 | |
| 6897 | public override TestRequiredForeign BuildPartial() { |
| 6898 | result.repeatedMessage_.MakeReadOnly(); |
| 6899 | TestRequiredForeign returnMe = result; |
| 6900 | result = null; |
| 6901 | return returnMe; |
| 6902 | } |
| 6903 | |
| 6904 | public override Builder MergeFrom(pb::IMessage other) { |
| 6905 | if (other is TestRequiredForeign) { |
| 6906 | return MergeFrom((TestRequiredForeign) other); |
| 6907 | } else { |
| 6908 | base.MergeFrom(other); |
| 6909 | return this; |
| 6910 | } |
| 6911 | } |
| 6912 | |
| 6913 | public override Builder MergeFrom(TestRequiredForeign other) { |
| 6914 | if (other == TestRequiredForeign.DefaultInstance) return this; |
| 6915 | if (other.HasOptionalMessage) { |
| 6916 | MergeOptionalMessage(other.OptionalMessage); |
| 6917 | } |
| 6918 | if (other.repeatedMessage_.Count != 0) { |
| 6919 | base.AddRange(other.repeatedMessage_, result.repeatedMessage_); |
| 6920 | } |
| 6921 | if (other.HasDummy) { |
| 6922 | Dummy = other.Dummy; |
| 6923 | } |
| 6924 | this.MergeUnknownFields(other.UnknownFields); |
| 6925 | return this; |
| 6926 | } |
| 6927 | |
| 6928 | public override Builder MergeFrom(pb::CodedInputStream input) { |
| 6929 | return MergeFrom(input, pb::ExtensionRegistry.Empty); |
| 6930 | } |
| 6931 | |
| 6932 | public override Builder MergeFrom(pb::CodedInputStream input, pb::ExtensionRegistry extensionRegistry) { |
| 6933 | pb::UnknownFieldSet.Builder unknownFields = pb::UnknownFieldSet.CreateBuilder(this.UnknownFields); |
| 6934 | while (true) { |
| 6935 | uint tag = input.ReadTag(); |
| 6936 | switch (tag) { |
| 6937 | case 0: { |
| 6938 | this.UnknownFields = unknownFields.Build(); |
| 6939 | return this; |
| 6940 | } |
| 6941 | default: { |
| 6942 | if (!ParseUnknownField(input, unknownFields, extensionRegistry, tag)) { |
| 6943 | this.UnknownFields = unknownFields.Build(); |
| 6944 | return this; |
| 6945 | } |
| 6946 | break; |
| 6947 | } |
| 6948 | case 10: { |
| 6949 | global::Google.ProtocolBuffers.TestProtos.TestRequired.Builder subBuilder = global::Google.ProtocolBuffers.TestProtos.TestRequired.CreateBuilder(); |
| 6950 | if (HasOptionalMessage) { |
| 6951 | subBuilder.MergeFrom(OptionalMessage); |
| 6952 | } |
| 6953 | input.ReadMessage(subBuilder, extensionRegistry); |
| 6954 | OptionalMessage = subBuilder.BuildPartial(); |
| 6955 | break; |
| 6956 | } |
| 6957 | case 18: { |
| 6958 | global::Google.ProtocolBuffers.TestProtos.TestRequired.Builder subBuilder = global::Google.ProtocolBuffers.TestProtos.TestRequired.CreateBuilder(); |
| 6959 | input.ReadMessage(subBuilder, extensionRegistry); |
| 6960 | AddRepeatedMessage(subBuilder.BuildPartial()); |
| 6961 | break; |
| 6962 | } |
| 6963 | case 24: { |
| 6964 | Dummy = input.ReadInt32(); |
| 6965 | break; |
| 6966 | } |
| 6967 | } |
| 6968 | } |
| 6969 | } |
| 6970 | |
| 6971 | |
| 6972 | public bool HasOptionalMessage { |
| 6973 | get { return result.HasOptionalMessage; } |
| 6974 | } |
| 6975 | public global::Google.ProtocolBuffers.TestProtos.TestRequired OptionalMessage { |
| 6976 | get { return result.OptionalMessage; } |
| 6977 | set { SetOptionalMessage(value); } |
| 6978 | } |
| 6979 | public Builder SetOptionalMessage(global::Google.ProtocolBuffers.TestProtos.TestRequired value) { |
| 6980 | result.hasOptionalMessage = true; |
| 6981 | result.optionalMessage_ = value; |
| 6982 | return this; |
| 6983 | } |
| 6984 | public Builder SetOptionalMessage(global::Google.ProtocolBuffers.TestProtos.TestRequired.Builder builderForValue) { |
| 6985 | result.hasOptionalMessage = true; |
| 6986 | result.optionalMessage_ = builderForValue.Build(); |
| 6987 | return this; |
| 6988 | } |
| 6989 | public Builder MergeOptionalMessage(global::Google.ProtocolBuffers.TestProtos.TestRequired value) { |
| 6990 | if (result.HasOptionalMessage && |
| 6991 | result.optionalMessage_ != global::Google.ProtocolBuffers.TestProtos.TestRequired.DefaultInstance) { |
| 6992 | result.optionalMessage_ = global::Google.ProtocolBuffers.TestProtos.TestRequired.CreateBuilder(result.optionalMessage_).MergeFrom(value).BuildPartial(); |
| 6993 | } else { |
| 6994 | result.optionalMessage_ = value; |
| 6995 | } |
| 6996 | result.hasOptionalMessage = true; |
| 6997 | return this; |
| 6998 | } |
| 6999 | public Builder ClearOptionalMessage() { |
| 7000 | result.hasOptionalMessage = false; |
| 7001 | result.optionalMessage_ = global::Google.ProtocolBuffers.TestProtos.TestRequired.DefaultInstance; |
| 7002 | return this; |
| 7003 | } |
| 7004 | |
| 7005 | public scg::IList<global::Google.ProtocolBuffers.TestProtos.TestRequired> RepeatedMessageList { |
| 7006 | get { return result.repeatedMessage_; } |
| 7007 | } |
| 7008 | public int RepeatedMessageCount { |
| 7009 | get { return result.RepeatedMessageCount; } |
| 7010 | } |
| 7011 | public global::Google.ProtocolBuffers.TestProtos.TestRequired GetRepeatedMessage(int index) { |
| 7012 | return result.GetRepeatedMessage(index); |
| 7013 | } |
| 7014 | public Builder SetRepeatedMessage(int index, global::Google.ProtocolBuffers.TestProtos.TestRequired value) { |
| 7015 | result.repeatedMessage_[index] = value; |
| 7016 | return this; |
| 7017 | } |
| 7018 | public Builder SetRepeatedMessage(int index, global::Google.ProtocolBuffers.TestProtos.TestRequired.Builder builderForValue) { |
| 7019 | result.repeatedMessage_[index] = builderForValue.Build(); |
| 7020 | return this; |
| 7021 | } |
| 7022 | public Builder AddRepeatedMessage(global::Google.ProtocolBuffers.TestProtos.TestRequired value) { |
| 7023 | result.repeatedMessage_.Add(value); |
| 7024 | return this; |
| 7025 | } |
| 7026 | public Builder AddRepeatedMessage(global::Google.ProtocolBuffers.TestProtos.TestRequired.Builder builderForValue) { |
| 7027 | result.repeatedMessage_.Add(builderForValue.Build()); |
| 7028 | return this; |
| 7029 | } |
| 7030 | public Builder AddRangeRepeatedMessage(scg::IEnumerable<global::Google.ProtocolBuffers.TestProtos.TestRequired> values) { |
| 7031 | base.AddRange(values, result.repeatedMessage_); |
| 7032 | return this; |
| 7033 | } |
| 7034 | public Builder ClearRepeatedMessage() { |
| 7035 | result.repeatedMessage_.Clear(); |
| 7036 | return this; |
| 7037 | } |
| 7038 | |
| 7039 | public bool HasDummy { |
| 7040 | get { return result.HasDummy; } |
| 7041 | } |
| 7042 | public int Dummy { |
| 7043 | get { return result.Dummy; } |
| 7044 | set { SetDummy(value); } |
| 7045 | } |
| 7046 | public Builder SetDummy(int value) { |
| 7047 | result.hasDummy = true; |
| 7048 | result.dummy_ = value; |
| 7049 | return this; |
| 7050 | } |
| 7051 | public Builder ClearDummy() { |
| 7052 | result.hasDummy = false; |
| 7053 | result.dummy_ = 0; |
| 7054 | return this; |
| 7055 | } |
| 7056 | } |
| 7057 | } |
| 7058 | |
| 7059 | public sealed partial class TestForeignNested : pb::GeneratedMessage<TestForeignNested, TestForeignNested.Builder> { |
| 7060 | private static readonly TestForeignNested defaultInstance = new Builder().BuildPartial(); |
| 7061 | public static TestForeignNested DefaultInstance { |
| 7062 | get { return defaultInstance; } |
| 7063 | } |
| 7064 | |
| 7065 | public override TestForeignNested DefaultInstanceForType { |
| 7066 | get { return defaultInstance; } |
| 7067 | } |
| 7068 | |
| 7069 | protected override TestForeignNested ThisMessage { |
| 7070 | get { return this; } |
| 7071 | } |
| 7072 | |
| 7073 | public static pbd::MessageDescriptor Descriptor { |
| 7074 | get { return global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.internal__static_protobuf_unittest_TestForeignNested__Descriptor; } |
| 7075 | } |
| 7076 | |
| 7077 | protected override pb::FieldAccess.FieldAccessorTable<TestForeignNested, TestForeignNested.Builder> InternalFieldAccessors { |
| 7078 | get { return global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.internal__static_protobuf_unittest_TestForeignNested__FieldAccessorTable; } |
| 7079 | } |
| 7080 | |
| 7081 | private bool hasForeignNested; |
| 7082 | private global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedMessage foreignNested_ = global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedMessage.DefaultInstance; |
| 7083 | public bool HasForeignNested { |
| 7084 | get { return hasForeignNested; } |
| 7085 | } |
| 7086 | public global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedMessage ForeignNested { |
| 7087 | get { return foreignNested_; } |
| 7088 | } |
| 7089 | |
| 7090 | public override bool IsInitialized { |
| 7091 | get { |
| 7092 | return true; |
| 7093 | } |
| 7094 | } |
| 7095 | |
| 7096 | public override void WriteTo(pb::CodedOutputStream output) { |
| 7097 | if (HasForeignNested) { |
| 7098 | output.WriteMessage(1, ForeignNested); |
| 7099 | } |
| 7100 | UnknownFields.WriteTo(output); |
| 7101 | } |
| 7102 | |
| 7103 | private int memoizedSerializedSize = -1; |
| 7104 | public override int SerializedSize { |
| 7105 | get { |
| 7106 | int size = memoizedSerializedSize; |
| 7107 | if (size != -1) return size; |
| 7108 | |
| 7109 | size = 0; |
| 7110 | if (HasForeignNested) { |
| 7111 | size += pb::CodedOutputStream.ComputeMessageSize(1, ForeignNested); |
| 7112 | } |
| 7113 | size += UnknownFields.SerializedSize; |
| 7114 | memoizedSerializedSize = size; |
| 7115 | return size; |
| 7116 | } |
| 7117 | } |
| 7118 | |
| 7119 | public static TestForeignNested ParseFrom(pb::ByteString data) { |
| 7120 | return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed(); |
| 7121 | } |
| 7122 | public static TestForeignNested ParseFrom(pb::ByteString data, pb::ExtensionRegistry extensionRegistry) { |
| 7123 | return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed(); |
| 7124 | } |
| 7125 | public static TestForeignNested ParseFrom(byte[] data) { |
| 7126 | return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed(); |
| 7127 | } |
| 7128 | public static TestForeignNested ParseFrom(byte[] data, pb::ExtensionRegistry extensionRegistry) { |
| 7129 | return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed(); |
| 7130 | } |
| 7131 | public static TestForeignNested ParseFrom(global::System.IO.Stream input) { |
| 7132 | return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed(); |
| 7133 | } |
| 7134 | public static TestForeignNested ParseFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) { |
| 7135 | return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed(); |
| 7136 | } |
| 7137 | public static TestForeignNested ParseFrom(pb::CodedInputStream input) { |
| 7138 | return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed(); |
| 7139 | } |
| 7140 | public static TestForeignNested ParseFrom(pb::CodedInputStream input, pb::ExtensionRegistry extensionRegistry) { |
| 7141 | return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed(); |
| 7142 | } |
| 7143 | public static Builder CreateBuilder() { return new Builder(); } |
| 7144 | public override Builder CreateBuilderForType() { return new Builder(); } |
| 7145 | public static Builder CreateBuilder(TestForeignNested prototype) { |
| 7146 | return (Builder) new Builder().MergeFrom(prototype); |
| 7147 | } |
| 7148 | |
| 7149 | public sealed partial class Builder : pb::GeneratedBuilder<TestForeignNested, Builder> { |
| 7150 | protected override Builder ThisBuilder { |
| 7151 | get { return this; } |
| 7152 | } |
| 7153 | public Builder() {} |
| 7154 | |
| 7155 | TestForeignNested result = new TestForeignNested(); |
| 7156 | |
| 7157 | protected override TestForeignNested MessageBeingBuilt { |
| 7158 | get { return result; } |
| 7159 | } |
| 7160 | |
| 7161 | public override Builder Clear() { |
| 7162 | result = new TestForeignNested(); |
| 7163 | return this; |
| 7164 | } |
| 7165 | |
| 7166 | public override Builder Clone() { |
| 7167 | return new Builder().MergeFrom(result); |
| 7168 | } |
| 7169 | |
| 7170 | public override pbd::MessageDescriptor DescriptorForType { |
| 7171 | get { return TestForeignNested.Descriptor; } |
| 7172 | } |
| 7173 | |
| 7174 | public override TestForeignNested DefaultInstanceForType { |
| 7175 | get { return TestForeignNested.DefaultInstance; } |
| 7176 | } |
| 7177 | |
| 7178 | public override TestForeignNested BuildPartial() { |
| 7179 | TestForeignNested returnMe = result; |
| 7180 | result = null; |
| 7181 | return returnMe; |
| 7182 | } |
| 7183 | |
| 7184 | public override Builder MergeFrom(pb::IMessage other) { |
| 7185 | if (other is TestForeignNested) { |
| 7186 | return MergeFrom((TestForeignNested) other); |
| 7187 | } else { |
| 7188 | base.MergeFrom(other); |
| 7189 | return this; |
| 7190 | } |
| 7191 | } |
| 7192 | |
| 7193 | public override Builder MergeFrom(TestForeignNested other) { |
| 7194 | if (other == TestForeignNested.DefaultInstance) return this; |
| 7195 | if (other.HasForeignNested) { |
| 7196 | MergeForeignNested(other.ForeignNested); |
| 7197 | } |
| 7198 | this.MergeUnknownFields(other.UnknownFields); |
| 7199 | return this; |
| 7200 | } |
| 7201 | |
| 7202 | public override Builder MergeFrom(pb::CodedInputStream input) { |
| 7203 | return MergeFrom(input, pb::ExtensionRegistry.Empty); |
| 7204 | } |
| 7205 | |
| 7206 | public override Builder MergeFrom(pb::CodedInputStream input, pb::ExtensionRegistry extensionRegistry) { |
| 7207 | pb::UnknownFieldSet.Builder unknownFields = pb::UnknownFieldSet.CreateBuilder(this.UnknownFields); |
| 7208 | while (true) { |
| 7209 | uint tag = input.ReadTag(); |
| 7210 | switch (tag) { |
| 7211 | case 0: { |
| 7212 | this.UnknownFields = unknownFields.Build(); |
| 7213 | return this; |
| 7214 | } |
| 7215 | default: { |
| 7216 | if (!ParseUnknownField(input, unknownFields, extensionRegistry, tag)) { |
| 7217 | this.UnknownFields = unknownFields.Build(); |
| 7218 | return this; |
| 7219 | } |
| 7220 | break; |
| 7221 | } |
| 7222 | case 10: { |
| 7223 | global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedMessage.Builder subBuilder = global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedMessage.CreateBuilder(); |
| 7224 | if (HasForeignNested) { |
| 7225 | subBuilder.MergeFrom(ForeignNested); |
| 7226 | } |
| 7227 | input.ReadMessage(subBuilder, extensionRegistry); |
| 7228 | ForeignNested = subBuilder.BuildPartial(); |
| 7229 | break; |
| 7230 | } |
| 7231 | } |
| 7232 | } |
| 7233 | } |
| 7234 | |
| 7235 | |
| 7236 | public bool HasForeignNested { |
| 7237 | get { return result.HasForeignNested; } |
| 7238 | } |
| 7239 | public global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedMessage ForeignNested { |
| 7240 | get { return result.ForeignNested; } |
| 7241 | set { SetForeignNested(value); } |
| 7242 | } |
| 7243 | public Builder SetForeignNested(global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedMessage value) { |
| 7244 | result.hasForeignNested = true; |
| 7245 | result.foreignNested_ = value; |
| 7246 | return this; |
| 7247 | } |
| 7248 | public Builder SetForeignNested(global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedMessage.Builder builderForValue) { |
| 7249 | result.hasForeignNested = true; |
| 7250 | result.foreignNested_ = builderForValue.Build(); |
| 7251 | return this; |
| 7252 | } |
| 7253 | public Builder MergeForeignNested(global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedMessage value) { |
| 7254 | if (result.HasForeignNested && |
| 7255 | result.foreignNested_ != global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedMessage.DefaultInstance) { |
| 7256 | result.foreignNested_ = global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedMessage.CreateBuilder(result.foreignNested_).MergeFrom(value).BuildPartial(); |
| 7257 | } else { |
| 7258 | result.foreignNested_ = value; |
| 7259 | } |
| 7260 | result.hasForeignNested = true; |
| 7261 | return this; |
| 7262 | } |
| 7263 | public Builder ClearForeignNested() { |
| 7264 | result.hasForeignNested = false; |
| 7265 | result.foreignNested_ = global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedMessage.DefaultInstance; |
| 7266 | return this; |
| 7267 | } |
| 7268 | } |
| 7269 | } |
| 7270 | |
| 7271 | public sealed partial class TestEmptyMessage : pb::GeneratedMessage<TestEmptyMessage, TestEmptyMessage.Builder> { |
| 7272 | private static readonly TestEmptyMessage defaultInstance = new Builder().BuildPartial(); |
| 7273 | public static TestEmptyMessage DefaultInstance { |
| 7274 | get { return defaultInstance; } |
| 7275 | } |
| 7276 | |
| 7277 | public override TestEmptyMessage DefaultInstanceForType { |
| 7278 | get { return defaultInstance; } |
| 7279 | } |
| 7280 | |
| 7281 | protected override TestEmptyMessage ThisMessage { |
| 7282 | get { return this; } |
| 7283 | } |
| 7284 | |
| 7285 | public static pbd::MessageDescriptor Descriptor { |
| 7286 | get { return global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.internal__static_protobuf_unittest_TestEmptyMessage__Descriptor; } |
| 7287 | } |
| 7288 | |
| 7289 | protected override pb::FieldAccess.FieldAccessorTable<TestEmptyMessage, TestEmptyMessage.Builder> InternalFieldAccessors { |
| 7290 | get { return global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.internal__static_protobuf_unittest_TestEmptyMessage__FieldAccessorTable; } |
| 7291 | } |
| 7292 | |
| 7293 | public override bool IsInitialized { |
| 7294 | get { |
| 7295 | return true; |
| 7296 | } |
| 7297 | } |
| 7298 | |
| 7299 | public override void WriteTo(pb::CodedOutputStream output) { |
| 7300 | UnknownFields.WriteTo(output); |
| 7301 | } |
| 7302 | |
| 7303 | private int memoizedSerializedSize = -1; |
| 7304 | public override int SerializedSize { |
| 7305 | get { |
| 7306 | int size = memoizedSerializedSize; |
| 7307 | if (size != -1) return size; |
| 7308 | |
| 7309 | size = 0; |
| 7310 | size += UnknownFields.SerializedSize; |
| 7311 | memoizedSerializedSize = size; |
| 7312 | return size; |
| 7313 | } |
| 7314 | } |
| 7315 | |
| 7316 | public static TestEmptyMessage ParseFrom(pb::ByteString data) { |
| 7317 | return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed(); |
| 7318 | } |
| 7319 | public static TestEmptyMessage ParseFrom(pb::ByteString data, pb::ExtensionRegistry extensionRegistry) { |
| 7320 | return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed(); |
| 7321 | } |
| 7322 | public static TestEmptyMessage ParseFrom(byte[] data) { |
| 7323 | return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed(); |
| 7324 | } |
| 7325 | public static TestEmptyMessage ParseFrom(byte[] data, pb::ExtensionRegistry extensionRegistry) { |
| 7326 | return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed(); |
| 7327 | } |
| 7328 | public static TestEmptyMessage ParseFrom(global::System.IO.Stream input) { |
| 7329 | return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed(); |
| 7330 | } |
| 7331 | public static TestEmptyMessage ParseFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) { |
| 7332 | return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed(); |
| 7333 | } |
| 7334 | public static TestEmptyMessage ParseFrom(pb::CodedInputStream input) { |
| 7335 | return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed(); |
| 7336 | } |
| 7337 | public static TestEmptyMessage ParseFrom(pb::CodedInputStream input, pb::ExtensionRegistry extensionRegistry) { |
| 7338 | return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed(); |
| 7339 | } |
| 7340 | public static Builder CreateBuilder() { return new Builder(); } |
| 7341 | public override Builder CreateBuilderForType() { return new Builder(); } |
| 7342 | public static Builder CreateBuilder(TestEmptyMessage prototype) { |
| 7343 | return (Builder) new Builder().MergeFrom(prototype); |
| 7344 | } |
| 7345 | |
| 7346 | public sealed partial class Builder : pb::GeneratedBuilder<TestEmptyMessage, Builder> { |
| 7347 | protected override Builder ThisBuilder { |
| 7348 | get { return this; } |
| 7349 | } |
| 7350 | public Builder() {} |
| 7351 | |
| 7352 | TestEmptyMessage result = new TestEmptyMessage(); |
| 7353 | |
| 7354 | protected override TestEmptyMessage MessageBeingBuilt { |
| 7355 | get { return result; } |
| 7356 | } |
| 7357 | |
| 7358 | public override Builder Clear() { |
| 7359 | result = new TestEmptyMessage(); |
| 7360 | return this; |
| 7361 | } |
| 7362 | |
| 7363 | public override Builder Clone() { |
| 7364 | return new Builder().MergeFrom(result); |
| 7365 | } |
| 7366 | |
| 7367 | public override pbd::MessageDescriptor DescriptorForType { |
| 7368 | get { return TestEmptyMessage.Descriptor; } |
| 7369 | } |
| 7370 | |
| 7371 | public override TestEmptyMessage DefaultInstanceForType { |
| 7372 | get { return TestEmptyMessage.DefaultInstance; } |
| 7373 | } |
| 7374 | |
| 7375 | public override TestEmptyMessage BuildPartial() { |
| 7376 | TestEmptyMessage returnMe = result; |
| 7377 | result = null; |
| 7378 | return returnMe; |
| 7379 | } |
| 7380 | |
| 7381 | public override Builder MergeFrom(pb::IMessage other) { |
| 7382 | if (other is TestEmptyMessage) { |
| 7383 | return MergeFrom((TestEmptyMessage) other); |
| 7384 | } else { |
| 7385 | base.MergeFrom(other); |
| 7386 | return this; |
| 7387 | } |
| 7388 | } |
| 7389 | |
| 7390 | public override Builder MergeFrom(TestEmptyMessage other) { |
| 7391 | if (other == TestEmptyMessage.DefaultInstance) return this; |
| 7392 | this.MergeUnknownFields(other.UnknownFields); |
| 7393 | return this; |
| 7394 | } |
| 7395 | |
| 7396 | public override Builder MergeFrom(pb::CodedInputStream input) { |
| 7397 | return MergeFrom(input, pb::ExtensionRegistry.Empty); |
| 7398 | } |
| 7399 | |
| 7400 | public override Builder MergeFrom(pb::CodedInputStream input, pb::ExtensionRegistry extensionRegistry) { |
| 7401 | pb::UnknownFieldSet.Builder unknownFields = pb::UnknownFieldSet.CreateBuilder(this.UnknownFields); |
| 7402 | while (true) { |
| 7403 | uint tag = input.ReadTag(); |
| 7404 | switch (tag) { |
| 7405 | case 0: { |
| 7406 | this.UnknownFields = unknownFields.Build(); |
| 7407 | return this; |
| 7408 | } |
| 7409 | default: { |
| 7410 | if (!ParseUnknownField(input, unknownFields, extensionRegistry, tag)) { |
| 7411 | this.UnknownFields = unknownFields.Build(); |
| 7412 | return this; |
| 7413 | } |
| 7414 | break; |
| 7415 | } |
| 7416 | } |
| 7417 | } |
| 7418 | } |
| 7419 | |
| 7420 | } |
| 7421 | } |
| 7422 | |
| 7423 | public sealed partial class TestEmptyMessageWithExtensions : pb::ExtendableMessage<TestEmptyMessageWithExtensions, TestEmptyMessageWithExtensions.Builder> { |
| 7424 | private static readonly TestEmptyMessageWithExtensions defaultInstance = new Builder().BuildPartial(); |
| 7425 | public static TestEmptyMessageWithExtensions DefaultInstance { |
| 7426 | get { return defaultInstance; } |
| 7427 | } |
| 7428 | |
| 7429 | public override TestEmptyMessageWithExtensions DefaultInstanceForType { |
| 7430 | get { return defaultInstance; } |
| 7431 | } |
| 7432 | |
| 7433 | protected override TestEmptyMessageWithExtensions ThisMessage { |
| 7434 | get { return this; } |
| 7435 | } |
| 7436 | |
| 7437 | public static pbd::MessageDescriptor Descriptor { |
| 7438 | get { return global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.internal__static_protobuf_unittest_TestEmptyMessageWithExtensions__Descriptor; } |
| 7439 | } |
| 7440 | |
| 7441 | protected override pb::FieldAccess.FieldAccessorTable<TestEmptyMessageWithExtensions, TestEmptyMessageWithExtensions.Builder> InternalFieldAccessors { |
| 7442 | get { return global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.internal__static_protobuf_unittest_TestEmptyMessageWithExtensions__FieldAccessorTable; } |
| 7443 | } |
| 7444 | |
| 7445 | public override bool IsInitialized { |
| 7446 | get { |
| 7447 | if (!ExtensionsAreInitialized) return false; |
| 7448 | return true; |
| 7449 | } |
| 7450 | } |
| 7451 | |
| 7452 | public override void WriteTo(pb::CodedOutputStream output) { |
| 7453 | pb::ExtendableMessage<TestEmptyMessageWithExtensions, TestEmptyMessageWithExtensions.Builder>.ExtensionWriter extensionWriter = CreateExtensionWriter(this); |
| 7454 | extensionWriter.WriteUntil(536870912, output); |
| 7455 | UnknownFields.WriteTo(output); |
| 7456 | } |
| 7457 | |
| 7458 | private int memoizedSerializedSize = -1; |
| 7459 | public override int SerializedSize { |
| 7460 | get { |
| 7461 | int size = memoizedSerializedSize; |
| 7462 | if (size != -1) return size; |
| 7463 | |
| 7464 | size = 0; |
| 7465 | size += ExtensionsSerializedSize; |
| 7466 | size += UnknownFields.SerializedSize; |
| 7467 | memoizedSerializedSize = size; |
| 7468 | return size; |
| 7469 | } |
| 7470 | } |
| 7471 | |
| 7472 | public static TestEmptyMessageWithExtensions ParseFrom(pb::ByteString data) { |
| 7473 | return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed(); |
| 7474 | } |
| 7475 | public static TestEmptyMessageWithExtensions ParseFrom(pb::ByteString data, pb::ExtensionRegistry extensionRegistry) { |
| 7476 | return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed(); |
| 7477 | } |
| 7478 | public static TestEmptyMessageWithExtensions ParseFrom(byte[] data) { |
| 7479 | return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed(); |
| 7480 | } |
| 7481 | public static TestEmptyMessageWithExtensions ParseFrom(byte[] data, pb::ExtensionRegistry extensionRegistry) { |
| 7482 | return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed(); |
| 7483 | } |
| 7484 | public static TestEmptyMessageWithExtensions ParseFrom(global::System.IO.Stream input) { |
| 7485 | return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed(); |
| 7486 | } |
| 7487 | public static TestEmptyMessageWithExtensions ParseFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) { |
| 7488 | return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed(); |
| 7489 | } |
| 7490 | public static TestEmptyMessageWithExtensions ParseFrom(pb::CodedInputStream input) { |
| 7491 | return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed(); |
| 7492 | } |
| 7493 | public static TestEmptyMessageWithExtensions ParseFrom(pb::CodedInputStream input, pb::ExtensionRegistry extensionRegistry) { |
| 7494 | return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed(); |
| 7495 | } |
| 7496 | public static Builder CreateBuilder() { return new Builder(); } |
| 7497 | public override Builder CreateBuilderForType() { return new Builder(); } |
| 7498 | public static Builder CreateBuilder(TestEmptyMessageWithExtensions prototype) { |
| 7499 | return (Builder) new Builder().MergeFrom(prototype); |
| 7500 | } |
| 7501 | |
| 7502 | public sealed partial class Builder : pb::ExtendableBuilder<TestEmptyMessageWithExtensions, Builder> { |
| 7503 | protected override Builder ThisBuilder { |
| 7504 | get { return this; } |
| 7505 | } |
| 7506 | public Builder() {} |
| 7507 | |
| 7508 | TestEmptyMessageWithExtensions result = new TestEmptyMessageWithExtensions(); |
| 7509 | |
| 7510 | protected override TestEmptyMessageWithExtensions MessageBeingBuilt { |
| 7511 | get { return result; } |
| 7512 | } |
| 7513 | |
| 7514 | public override Builder Clear() { |
| 7515 | result = new TestEmptyMessageWithExtensions(); |
| 7516 | return this; |
| 7517 | } |
| 7518 | |
| 7519 | public override Builder Clone() { |
| 7520 | return new Builder().MergeFrom(result); |
| 7521 | } |
| 7522 | |
| 7523 | public override pbd::MessageDescriptor DescriptorForType { |
| 7524 | get { return TestEmptyMessageWithExtensions.Descriptor; } |
| 7525 | } |
| 7526 | |
| 7527 | public override TestEmptyMessageWithExtensions DefaultInstanceForType { |
| 7528 | get { return TestEmptyMessageWithExtensions.DefaultInstance; } |
| 7529 | } |
| 7530 | |
| 7531 | public override TestEmptyMessageWithExtensions BuildPartial() { |
| 7532 | TestEmptyMessageWithExtensions returnMe = result; |
| 7533 | result = null; |
| 7534 | return returnMe; |
| 7535 | } |
| 7536 | |
| 7537 | public override Builder MergeFrom(pb::IMessage other) { |
| 7538 | if (other is TestEmptyMessageWithExtensions) { |
| 7539 | return MergeFrom((TestEmptyMessageWithExtensions) other); |
| 7540 | } else { |
| 7541 | base.MergeFrom(other); |
| 7542 | return this; |
| 7543 | } |
| 7544 | } |
| 7545 | |
| 7546 | public override Builder MergeFrom(TestEmptyMessageWithExtensions other) { |
| 7547 | if (other == TestEmptyMessageWithExtensions.DefaultInstance) return this; |
| 7548 | this.MergeUnknownFields(other.UnknownFields); |
| 7549 | return this; |
| 7550 | } |
| 7551 | |
| 7552 | public override Builder MergeFrom(pb::CodedInputStream input) { |
| 7553 | return MergeFrom(input, pb::ExtensionRegistry.Empty); |
| 7554 | } |
| 7555 | |
| 7556 | public override Builder MergeFrom(pb::CodedInputStream input, pb::ExtensionRegistry extensionRegistry) { |
| 7557 | pb::UnknownFieldSet.Builder unknownFields = pb::UnknownFieldSet.CreateBuilder(this.UnknownFields); |
| 7558 | while (true) { |
| 7559 | uint tag = input.ReadTag(); |
| 7560 | switch (tag) { |
| 7561 | case 0: { |
| 7562 | this.UnknownFields = unknownFields.Build(); |
| 7563 | return this; |
| 7564 | } |
| 7565 | default: { |
| 7566 | if (!ParseUnknownField(input, unknownFields, extensionRegistry, tag)) { |
| 7567 | this.UnknownFields = unknownFields.Build(); |
| 7568 | return this; |
| 7569 | } |
| 7570 | break; |
| 7571 | } |
| 7572 | } |
| 7573 | } |
| 7574 | } |
| 7575 | |
| 7576 | } |
| 7577 | } |
| 7578 | |
| 7579 | public sealed partial class TestReallyLargeTagNumber : pb::GeneratedMessage<TestReallyLargeTagNumber, TestReallyLargeTagNumber.Builder> { |
| 7580 | private static readonly TestReallyLargeTagNumber defaultInstance = new Builder().BuildPartial(); |
| 7581 | public static TestReallyLargeTagNumber DefaultInstance { |
| 7582 | get { return defaultInstance; } |
| 7583 | } |
| 7584 | |
| 7585 | public override TestReallyLargeTagNumber DefaultInstanceForType { |
| 7586 | get { return defaultInstance; } |
| 7587 | } |
| 7588 | |
| 7589 | protected override TestReallyLargeTagNumber ThisMessage { |
| 7590 | get { return this; } |
| 7591 | } |
| 7592 | |
| 7593 | public static pbd::MessageDescriptor Descriptor { |
| 7594 | get { return global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.internal__static_protobuf_unittest_TestReallyLargeTagNumber__Descriptor; } |
| 7595 | } |
| 7596 | |
| 7597 | protected override pb::FieldAccess.FieldAccessorTable<TestReallyLargeTagNumber, TestReallyLargeTagNumber.Builder> InternalFieldAccessors { |
| 7598 | get { return global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.internal__static_protobuf_unittest_TestReallyLargeTagNumber__FieldAccessorTable; } |
| 7599 | } |
| 7600 | |
| 7601 | private bool hasA; |
| 7602 | private int a_ = 0; |
| 7603 | public bool HasA { |
| 7604 | get { return hasA; } |
| 7605 | } |
| 7606 | public int A { |
| 7607 | get { return a_; } |
| 7608 | } |
| 7609 | |
| 7610 | private bool hasBb; |
| 7611 | private int bb_ = 0; |
| 7612 | public bool HasBb { |
| 7613 | get { return hasBb; } |
| 7614 | } |
| 7615 | public int Bb { |
| 7616 | get { return bb_; } |
| 7617 | } |
| 7618 | |
| 7619 | public override bool IsInitialized { |
| 7620 | get { |
| 7621 | return true; |
| 7622 | } |
| 7623 | } |
| 7624 | |
| 7625 | public override void WriteTo(pb::CodedOutputStream output) { |
| 7626 | if (HasA) { |
| 7627 | output.WriteInt32(1, A); |
| 7628 | } |
| 7629 | if (HasBb) { |
| 7630 | output.WriteInt32(268435455, Bb); |
| 7631 | } |
| 7632 | UnknownFields.WriteTo(output); |
| 7633 | } |
| 7634 | |
| 7635 | private int memoizedSerializedSize = -1; |
| 7636 | public override int SerializedSize { |
| 7637 | get { |
| 7638 | int size = memoizedSerializedSize; |
| 7639 | if (size != -1) return size; |
| 7640 | |
| 7641 | size = 0; |
| 7642 | if (HasA) { |
| 7643 | size += pb::CodedOutputStream.ComputeInt32Size(1, A); |
| 7644 | } |
| 7645 | if (HasBb) { |
| 7646 | size += pb::CodedOutputStream.ComputeInt32Size(268435455, Bb); |
| 7647 | } |
| 7648 | size += UnknownFields.SerializedSize; |
| 7649 | memoizedSerializedSize = size; |
| 7650 | return size; |
| 7651 | } |
| 7652 | } |
| 7653 | |
| 7654 | public static TestReallyLargeTagNumber ParseFrom(pb::ByteString data) { |
| 7655 | return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed(); |
| 7656 | } |
| 7657 | public static TestReallyLargeTagNumber ParseFrom(pb::ByteString data, pb::ExtensionRegistry extensionRegistry) { |
| 7658 | return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed(); |
| 7659 | } |
| 7660 | public static TestReallyLargeTagNumber ParseFrom(byte[] data) { |
| 7661 | return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed(); |
| 7662 | } |
| 7663 | public static TestReallyLargeTagNumber ParseFrom(byte[] data, pb::ExtensionRegistry extensionRegistry) { |
| 7664 | return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed(); |
| 7665 | } |
| 7666 | public static TestReallyLargeTagNumber ParseFrom(global::System.IO.Stream input) { |
| 7667 | return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed(); |
| 7668 | } |
| 7669 | public static TestReallyLargeTagNumber ParseFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) { |
| 7670 | return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed(); |
| 7671 | } |
| 7672 | public static TestReallyLargeTagNumber ParseFrom(pb::CodedInputStream input) { |
| 7673 | return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed(); |
| 7674 | } |
| 7675 | public static TestReallyLargeTagNumber ParseFrom(pb::CodedInputStream input, pb::ExtensionRegistry extensionRegistry) { |
| 7676 | return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed(); |
| 7677 | } |
| 7678 | public static Builder CreateBuilder() { return new Builder(); } |
| 7679 | public override Builder CreateBuilderForType() { return new Builder(); } |
| 7680 | public static Builder CreateBuilder(TestReallyLargeTagNumber prototype) { |
| 7681 | return (Builder) new Builder().MergeFrom(prototype); |
| 7682 | } |
| 7683 | |
| 7684 | public sealed partial class Builder : pb::GeneratedBuilder<TestReallyLargeTagNumber, Builder> { |
| 7685 | protected override Builder ThisBuilder { |
| 7686 | get { return this; } |
| 7687 | } |
| 7688 | public Builder() {} |
| 7689 | |
| 7690 | TestReallyLargeTagNumber result = new TestReallyLargeTagNumber(); |
| 7691 | |
| 7692 | protected override TestReallyLargeTagNumber MessageBeingBuilt { |
| 7693 | get { return result; } |
| 7694 | } |
| 7695 | |
| 7696 | public override Builder Clear() { |
| 7697 | result = new TestReallyLargeTagNumber(); |
| 7698 | return this; |
| 7699 | } |
| 7700 | |
| 7701 | public override Builder Clone() { |
| 7702 | return new Builder().MergeFrom(result); |
| 7703 | } |
| 7704 | |
| 7705 | public override pbd::MessageDescriptor DescriptorForType { |
| 7706 | get { return TestReallyLargeTagNumber.Descriptor; } |
| 7707 | } |
| 7708 | |
| 7709 | public override TestReallyLargeTagNumber DefaultInstanceForType { |
| 7710 | get { return TestReallyLargeTagNumber.DefaultInstance; } |
| 7711 | } |
| 7712 | |
| 7713 | public override TestReallyLargeTagNumber BuildPartial() { |
| 7714 | TestReallyLargeTagNumber returnMe = result; |
| 7715 | result = null; |
| 7716 | return returnMe; |
| 7717 | } |
| 7718 | |
| 7719 | public override Builder MergeFrom(pb::IMessage other) { |
| 7720 | if (other is TestReallyLargeTagNumber) { |
| 7721 | return MergeFrom((TestReallyLargeTagNumber) other); |
| 7722 | } else { |
| 7723 | base.MergeFrom(other); |
| 7724 | return this; |
| 7725 | } |
| 7726 | } |
| 7727 | |
| 7728 | public override Builder MergeFrom(TestReallyLargeTagNumber other) { |
| 7729 | if (other == TestReallyLargeTagNumber.DefaultInstance) return this; |
| 7730 | if (other.HasA) { |
| 7731 | A = other.A; |
| 7732 | } |
| 7733 | if (other.HasBb) { |
| 7734 | Bb = other.Bb; |
| 7735 | } |
| 7736 | this.MergeUnknownFields(other.UnknownFields); |
| 7737 | return this; |
| 7738 | } |
| 7739 | |
| 7740 | public override Builder MergeFrom(pb::CodedInputStream input) { |
| 7741 | return MergeFrom(input, pb::ExtensionRegistry.Empty); |
| 7742 | } |
| 7743 | |
| 7744 | public override Builder MergeFrom(pb::CodedInputStream input, pb::ExtensionRegistry extensionRegistry) { |
| 7745 | pb::UnknownFieldSet.Builder unknownFields = pb::UnknownFieldSet.CreateBuilder(this.UnknownFields); |
| 7746 | while (true) { |
| 7747 | uint tag = input.ReadTag(); |
| 7748 | switch (tag) { |
| 7749 | case 0: { |
| 7750 | this.UnknownFields = unknownFields.Build(); |
| 7751 | return this; |
| 7752 | } |
| 7753 | default: { |
| 7754 | if (!ParseUnknownField(input, unknownFields, extensionRegistry, tag)) { |
| 7755 | this.UnknownFields = unknownFields.Build(); |
| 7756 | return this; |
| 7757 | } |
| 7758 | break; |
| 7759 | } |
| 7760 | case 8: { |
| 7761 | A = input.ReadInt32(); |
| 7762 | break; |
| 7763 | } |
| 7764 | case 2147483640: { |
| 7765 | Bb = input.ReadInt32(); |
| 7766 | break; |
| 7767 | } |
| 7768 | } |
| 7769 | } |
| 7770 | } |
| 7771 | |
| 7772 | |
| 7773 | public bool HasA { |
| 7774 | get { return result.HasA; } |
| 7775 | } |
| 7776 | public int A { |
| 7777 | get { return result.A; } |
| 7778 | set { SetA(value); } |
| 7779 | } |
| 7780 | public Builder SetA(int value) { |
| 7781 | result.hasA = true; |
| 7782 | result.a_ = value; |
| 7783 | return this; |
| 7784 | } |
| 7785 | public Builder ClearA() { |
| 7786 | result.hasA = false; |
| 7787 | result.a_ = 0; |
| 7788 | return this; |
| 7789 | } |
| 7790 | |
| 7791 | public bool HasBb { |
| 7792 | get { return result.HasBb; } |
| 7793 | } |
| 7794 | public int Bb { |
| 7795 | get { return result.Bb; } |
| 7796 | set { SetBb(value); } |
| 7797 | } |
| 7798 | public Builder SetBb(int value) { |
| 7799 | result.hasBb = true; |
| 7800 | result.bb_ = value; |
| 7801 | return this; |
| 7802 | } |
| 7803 | public Builder ClearBb() { |
| 7804 | result.hasBb = false; |
| 7805 | result.bb_ = 0; |
| 7806 | return this; |
| 7807 | } |
| 7808 | } |
| 7809 | } |
| 7810 | |
| 7811 | public sealed partial class TestRecursiveMessage : pb::GeneratedMessage<TestRecursiveMessage, TestRecursiveMessage.Builder> { |
| 7812 | private static readonly TestRecursiveMessage defaultInstance = new Builder().BuildPartial(); |
| 7813 | public static TestRecursiveMessage DefaultInstance { |
| 7814 | get { return defaultInstance; } |
| 7815 | } |
| 7816 | |
| 7817 | public override TestRecursiveMessage DefaultInstanceForType { |
| 7818 | get { return defaultInstance; } |
| 7819 | } |
| 7820 | |
| 7821 | protected override TestRecursiveMessage ThisMessage { |
| 7822 | get { return this; } |
| 7823 | } |
| 7824 | |
| 7825 | public static pbd::MessageDescriptor Descriptor { |
| 7826 | get { return global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.internal__static_protobuf_unittest_TestRecursiveMessage__Descriptor; } |
| 7827 | } |
| 7828 | |
| 7829 | protected override pb::FieldAccess.FieldAccessorTable<TestRecursiveMessage, TestRecursiveMessage.Builder> InternalFieldAccessors { |
| 7830 | get { return global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.internal__static_protobuf_unittest_TestRecursiveMessage__FieldAccessorTable; } |
| 7831 | } |
| 7832 | |
| 7833 | private bool hasA; |
| 7834 | private global::Google.ProtocolBuffers.TestProtos.TestRecursiveMessage a_ = global::Google.ProtocolBuffers.TestProtos.TestRecursiveMessage.DefaultInstance; |
| 7835 | public bool HasA { |
| 7836 | get { return hasA; } |
| 7837 | } |
| 7838 | public global::Google.ProtocolBuffers.TestProtos.TestRecursiveMessage A { |
| 7839 | get { return a_; } |
| 7840 | } |
| 7841 | |
| 7842 | private bool hasI; |
| 7843 | private int i_ = 0; |
| 7844 | public bool HasI { |
| 7845 | get { return hasI; } |
| 7846 | } |
| 7847 | public int I { |
| 7848 | get { return i_; } |
| 7849 | } |
| 7850 | |
| 7851 | public override bool IsInitialized { |
| 7852 | get { |
| 7853 | return true; |
| 7854 | } |
| 7855 | } |
| 7856 | |
| 7857 | public override void WriteTo(pb::CodedOutputStream output) { |
| 7858 | if (HasA) { |
| 7859 | output.WriteMessage(1, A); |
| 7860 | } |
| 7861 | if (HasI) { |
| 7862 | output.WriteInt32(2, I); |
| 7863 | } |
| 7864 | UnknownFields.WriteTo(output); |
| 7865 | } |
| 7866 | |
| 7867 | private int memoizedSerializedSize = -1; |
| 7868 | public override int SerializedSize { |
| 7869 | get { |
| 7870 | int size = memoizedSerializedSize; |
| 7871 | if (size != -1) return size; |
| 7872 | |
| 7873 | size = 0; |
| 7874 | if (HasA) { |
| 7875 | size += pb::CodedOutputStream.ComputeMessageSize(1, A); |
| 7876 | } |
| 7877 | if (HasI) { |
| 7878 | size += pb::CodedOutputStream.ComputeInt32Size(2, I); |
| 7879 | } |
| 7880 | size += UnknownFields.SerializedSize; |
| 7881 | memoizedSerializedSize = size; |
| 7882 | return size; |
| 7883 | } |
| 7884 | } |
| 7885 | |
| 7886 | public static TestRecursiveMessage ParseFrom(pb::ByteString data) { |
| 7887 | return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed(); |
| 7888 | } |
| 7889 | public static TestRecursiveMessage ParseFrom(pb::ByteString data, pb::ExtensionRegistry extensionRegistry) { |
| 7890 | return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed(); |
| 7891 | } |
| 7892 | public static TestRecursiveMessage ParseFrom(byte[] data) { |
| 7893 | return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed(); |
| 7894 | } |
| 7895 | public static TestRecursiveMessage ParseFrom(byte[] data, pb::ExtensionRegistry extensionRegistry) { |
| 7896 | return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed(); |
| 7897 | } |
| 7898 | public static TestRecursiveMessage ParseFrom(global::System.IO.Stream input) { |
| 7899 | return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed(); |
| 7900 | } |
| 7901 | public static TestRecursiveMessage ParseFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) { |
| 7902 | return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed(); |
| 7903 | } |
| 7904 | public static TestRecursiveMessage ParseFrom(pb::CodedInputStream input) { |
| 7905 | return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed(); |
| 7906 | } |
| 7907 | public static TestRecursiveMessage ParseFrom(pb::CodedInputStream input, pb::ExtensionRegistry extensionRegistry) { |
| 7908 | return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed(); |
| 7909 | } |
| 7910 | public static Builder CreateBuilder() { return new Builder(); } |
| 7911 | public override Builder CreateBuilderForType() { return new Builder(); } |
| 7912 | public static Builder CreateBuilder(TestRecursiveMessage prototype) { |
| 7913 | return (Builder) new Builder().MergeFrom(prototype); |
| 7914 | } |
| 7915 | |
| 7916 | public sealed partial class Builder : pb::GeneratedBuilder<TestRecursiveMessage, Builder> { |
| 7917 | protected override Builder ThisBuilder { |
| 7918 | get { return this; } |
| 7919 | } |
| 7920 | public Builder() {} |
| 7921 | |
| 7922 | TestRecursiveMessage result = new TestRecursiveMessage(); |
| 7923 | |
| 7924 | protected override TestRecursiveMessage MessageBeingBuilt { |
| 7925 | get { return result; } |
| 7926 | } |
| 7927 | |
| 7928 | public override Builder Clear() { |
| 7929 | result = new TestRecursiveMessage(); |
| 7930 | return this; |
| 7931 | } |
| 7932 | |
| 7933 | public override Builder Clone() { |
| 7934 | return new Builder().MergeFrom(result); |
| 7935 | } |
| 7936 | |
| 7937 | public override pbd::MessageDescriptor DescriptorForType { |
| 7938 | get { return TestRecursiveMessage.Descriptor; } |
| 7939 | } |
| 7940 | |
| 7941 | public override TestRecursiveMessage DefaultInstanceForType { |
| 7942 | get { return TestRecursiveMessage.DefaultInstance; } |
| 7943 | } |
| 7944 | |
| 7945 | public override TestRecursiveMessage BuildPartial() { |
| 7946 | TestRecursiveMessage returnMe = result; |
| 7947 | result = null; |
| 7948 | return returnMe; |
| 7949 | } |
| 7950 | |
| 7951 | public override Builder MergeFrom(pb::IMessage other) { |
| 7952 | if (other is TestRecursiveMessage) { |
| 7953 | return MergeFrom((TestRecursiveMessage) other); |
| 7954 | } else { |
| 7955 | base.MergeFrom(other); |
| 7956 | return this; |
| 7957 | } |
| 7958 | } |
| 7959 | |
| 7960 | public override Builder MergeFrom(TestRecursiveMessage other) { |
| 7961 | if (other == TestRecursiveMessage.DefaultInstance) return this; |
| 7962 | if (other.HasA) { |
| 7963 | MergeA(other.A); |
| 7964 | } |
| 7965 | if (other.HasI) { |
| 7966 | I = other.I; |
| 7967 | } |
| 7968 | this.MergeUnknownFields(other.UnknownFields); |
| 7969 | return this; |
| 7970 | } |
| 7971 | |
| 7972 | public override Builder MergeFrom(pb::CodedInputStream input) { |
| 7973 | return MergeFrom(input, pb::ExtensionRegistry.Empty); |
| 7974 | } |
| 7975 | |
| 7976 | public override Builder MergeFrom(pb::CodedInputStream input, pb::ExtensionRegistry extensionRegistry) { |
| 7977 | pb::UnknownFieldSet.Builder unknownFields = pb::UnknownFieldSet.CreateBuilder(this.UnknownFields); |
| 7978 | while (true) { |
| 7979 | uint tag = input.ReadTag(); |
| 7980 | switch (tag) { |
| 7981 | case 0: { |
| 7982 | this.UnknownFields = unknownFields.Build(); |
| 7983 | return this; |
| 7984 | } |
| 7985 | default: { |
| 7986 | if (!ParseUnknownField(input, unknownFields, extensionRegistry, tag)) { |
| 7987 | this.UnknownFields = unknownFields.Build(); |
| 7988 | return this; |
| 7989 | } |
| 7990 | break; |
| 7991 | } |
| 7992 | case 10: { |
| 7993 | global::Google.ProtocolBuffers.TestProtos.TestRecursiveMessage.Builder subBuilder = global::Google.ProtocolBuffers.TestProtos.TestRecursiveMessage.CreateBuilder(); |
| 7994 | if (HasA) { |
| 7995 | subBuilder.MergeFrom(A); |
| 7996 | } |
| 7997 | input.ReadMessage(subBuilder, extensionRegistry); |
| 7998 | A = subBuilder.BuildPartial(); |
| 7999 | break; |
| 8000 | } |
| 8001 | case 16: { |
| 8002 | I = input.ReadInt32(); |
| 8003 | break; |
| 8004 | } |
| 8005 | } |
| 8006 | } |
| 8007 | } |
| 8008 | |
| 8009 | |
| 8010 | public bool HasA { |
| 8011 | get { return result.HasA; } |
| 8012 | } |
| 8013 | public global::Google.ProtocolBuffers.TestProtos.TestRecursiveMessage A { |
| 8014 | get { return result.A; } |
| 8015 | set { SetA(value); } |
| 8016 | } |
| 8017 | public Builder SetA(global::Google.ProtocolBuffers.TestProtos.TestRecursiveMessage value) { |
| 8018 | result.hasA = true; |
| 8019 | result.a_ = value; |
| 8020 | return this; |
| 8021 | } |
| 8022 | public Builder SetA(global::Google.ProtocolBuffers.TestProtos.TestRecursiveMessage.Builder builderForValue) { |
| 8023 | result.hasA = true; |
| 8024 | result.a_ = builderForValue.Build(); |
| 8025 | return this; |
| 8026 | } |
| 8027 | public Builder MergeA(global::Google.ProtocolBuffers.TestProtos.TestRecursiveMessage value) { |
| 8028 | if (result.HasA && |
| 8029 | result.a_ != global::Google.ProtocolBuffers.TestProtos.TestRecursiveMessage.DefaultInstance) { |
| 8030 | result.a_ = global::Google.ProtocolBuffers.TestProtos.TestRecursiveMessage.CreateBuilder(result.a_).MergeFrom(value).BuildPartial(); |
| 8031 | } else { |
| 8032 | result.a_ = value; |
| 8033 | } |
| 8034 | result.hasA = true; |
| 8035 | return this; |
| 8036 | } |
| 8037 | public Builder ClearA() { |
| 8038 | result.hasA = false; |
| 8039 | result.a_ = global::Google.ProtocolBuffers.TestProtos.TestRecursiveMessage.DefaultInstance; |
| 8040 | return this; |
| 8041 | } |
| 8042 | |
| 8043 | public bool HasI { |
| 8044 | get { return result.HasI; } |
| 8045 | } |
| 8046 | public int I { |
| 8047 | get { return result.I; } |
| 8048 | set { SetI(value); } |
| 8049 | } |
| 8050 | public Builder SetI(int value) { |
| 8051 | result.hasI = true; |
| 8052 | result.i_ = value; |
| 8053 | return this; |
| 8054 | } |
| 8055 | public Builder ClearI() { |
| 8056 | result.hasI = false; |
| 8057 | result.i_ = 0; |
| 8058 | return this; |
| 8059 | } |
| 8060 | } |
| 8061 | } |
| 8062 | |
| 8063 | public sealed partial class TestMutualRecursionA : pb::GeneratedMessage<TestMutualRecursionA, TestMutualRecursionA.Builder> { |
| 8064 | private static readonly TestMutualRecursionA defaultInstance = new Builder().BuildPartial(); |
| 8065 | public static TestMutualRecursionA DefaultInstance { |
| 8066 | get { return defaultInstance; } |
| 8067 | } |
| 8068 | |
| 8069 | public override TestMutualRecursionA DefaultInstanceForType { |
| 8070 | get { return defaultInstance; } |
| 8071 | } |
| 8072 | |
| 8073 | protected override TestMutualRecursionA ThisMessage { |
| 8074 | get { return this; } |
| 8075 | } |
| 8076 | |
| 8077 | public static pbd::MessageDescriptor Descriptor { |
| 8078 | get { return global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.internal__static_protobuf_unittest_TestMutualRecursionA__Descriptor; } |
| 8079 | } |
| 8080 | |
| 8081 | protected override pb::FieldAccess.FieldAccessorTable<TestMutualRecursionA, TestMutualRecursionA.Builder> InternalFieldAccessors { |
| 8082 | get { return global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.internal__static_protobuf_unittest_TestMutualRecursionA__FieldAccessorTable; } |
| 8083 | } |
| 8084 | |
| 8085 | private bool hasBb; |
| 8086 | private global::Google.ProtocolBuffers.TestProtos.TestMutualRecursionB bb_ = global::Google.ProtocolBuffers.TestProtos.TestMutualRecursionB.DefaultInstance; |
| 8087 | public bool HasBb { |
| 8088 | get { return hasBb; } |
| 8089 | } |
| 8090 | public global::Google.ProtocolBuffers.TestProtos.TestMutualRecursionB Bb { |
| 8091 | get { return bb_; } |
| 8092 | } |
| 8093 | |
| 8094 | public override bool IsInitialized { |
| 8095 | get { |
| 8096 | return true; |
| 8097 | } |
| 8098 | } |
| 8099 | |
| 8100 | public override void WriteTo(pb::CodedOutputStream output) { |
| 8101 | if (HasBb) { |
| 8102 | output.WriteMessage(1, Bb); |
| 8103 | } |
| 8104 | UnknownFields.WriteTo(output); |
| 8105 | } |
| 8106 | |
| 8107 | private int memoizedSerializedSize = -1; |
| 8108 | public override int SerializedSize { |
| 8109 | get { |
| 8110 | int size = memoizedSerializedSize; |
| 8111 | if (size != -1) return size; |
| 8112 | |
| 8113 | size = 0; |
| 8114 | if (HasBb) { |
| 8115 | size += pb::CodedOutputStream.ComputeMessageSize(1, Bb); |
| 8116 | } |
| 8117 | size += UnknownFields.SerializedSize; |
| 8118 | memoizedSerializedSize = size; |
| 8119 | return size; |
| 8120 | } |
| 8121 | } |
| 8122 | |
| 8123 | public static TestMutualRecursionA ParseFrom(pb::ByteString data) { |
| 8124 | return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed(); |
| 8125 | } |
| 8126 | public static TestMutualRecursionA ParseFrom(pb::ByteString data, pb::ExtensionRegistry extensionRegistry) { |
| 8127 | return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed(); |
| 8128 | } |
| 8129 | public static TestMutualRecursionA ParseFrom(byte[] data) { |
| 8130 | return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed(); |
| 8131 | } |
| 8132 | public static TestMutualRecursionA ParseFrom(byte[] data, pb::ExtensionRegistry extensionRegistry) { |
| 8133 | return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed(); |
| 8134 | } |
| 8135 | public static TestMutualRecursionA ParseFrom(global::System.IO.Stream input) { |
| 8136 | return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed(); |
| 8137 | } |
| 8138 | public static TestMutualRecursionA ParseFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) { |
| 8139 | return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed(); |
| 8140 | } |
| 8141 | public static TestMutualRecursionA ParseFrom(pb::CodedInputStream input) { |
| 8142 | return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed(); |
| 8143 | } |
| 8144 | public static TestMutualRecursionA ParseFrom(pb::CodedInputStream input, pb::ExtensionRegistry extensionRegistry) { |
| 8145 | return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed(); |
| 8146 | } |
| 8147 | public static Builder CreateBuilder() { return new Builder(); } |
| 8148 | public override Builder CreateBuilderForType() { return new Builder(); } |
| 8149 | public static Builder CreateBuilder(TestMutualRecursionA prototype) { |
| 8150 | return (Builder) new Builder().MergeFrom(prototype); |
| 8151 | } |
| 8152 | |
| 8153 | public sealed partial class Builder : pb::GeneratedBuilder<TestMutualRecursionA, Builder> { |
| 8154 | protected override Builder ThisBuilder { |
| 8155 | get { return this; } |
| 8156 | } |
| 8157 | public Builder() {} |
| 8158 | |
| 8159 | TestMutualRecursionA result = new TestMutualRecursionA(); |
| 8160 | |
| 8161 | protected override TestMutualRecursionA MessageBeingBuilt { |
| 8162 | get { return result; } |
| 8163 | } |
| 8164 | |
| 8165 | public override Builder Clear() { |
| 8166 | result = new TestMutualRecursionA(); |
| 8167 | return this; |
| 8168 | } |
| 8169 | |
| 8170 | public override Builder Clone() { |
| 8171 | return new Builder().MergeFrom(result); |
| 8172 | } |
| 8173 | |
| 8174 | public override pbd::MessageDescriptor DescriptorForType { |
| 8175 | get { return TestMutualRecursionA.Descriptor; } |
| 8176 | } |
| 8177 | |
| 8178 | public override TestMutualRecursionA DefaultInstanceForType { |
| 8179 | get { return TestMutualRecursionA.DefaultInstance; } |
| 8180 | } |
| 8181 | |
| 8182 | public override TestMutualRecursionA BuildPartial() { |
| 8183 | TestMutualRecursionA returnMe = result; |
| 8184 | result = null; |
| 8185 | return returnMe; |
| 8186 | } |
| 8187 | |
| 8188 | public override Builder MergeFrom(pb::IMessage other) { |
| 8189 | if (other is TestMutualRecursionA) { |
| 8190 | return MergeFrom((TestMutualRecursionA) other); |
| 8191 | } else { |
| 8192 | base.MergeFrom(other); |
| 8193 | return this; |
| 8194 | } |
| 8195 | } |
| 8196 | |
| 8197 | public override Builder MergeFrom(TestMutualRecursionA other) { |
| 8198 | if (other == TestMutualRecursionA.DefaultInstance) return this; |
| 8199 | if (other.HasBb) { |
| 8200 | MergeBb(other.Bb); |
| 8201 | } |
| 8202 | this.MergeUnknownFields(other.UnknownFields); |
| 8203 | return this; |
| 8204 | } |
| 8205 | |
| 8206 | public override Builder MergeFrom(pb::CodedInputStream input) { |
| 8207 | return MergeFrom(input, pb::ExtensionRegistry.Empty); |
| 8208 | } |
| 8209 | |
| 8210 | public override Builder MergeFrom(pb::CodedInputStream input, pb::ExtensionRegistry extensionRegistry) { |
| 8211 | pb::UnknownFieldSet.Builder unknownFields = pb::UnknownFieldSet.CreateBuilder(this.UnknownFields); |
| 8212 | while (true) { |
| 8213 | uint tag = input.ReadTag(); |
| 8214 | switch (tag) { |
| 8215 | case 0: { |
| 8216 | this.UnknownFields = unknownFields.Build(); |
| 8217 | return this; |
| 8218 | } |
| 8219 | default: { |
| 8220 | if (!ParseUnknownField(input, unknownFields, extensionRegistry, tag)) { |
| 8221 | this.UnknownFields = unknownFields.Build(); |
| 8222 | return this; |
| 8223 | } |
| 8224 | break; |
| 8225 | } |
| 8226 | case 10: { |
| 8227 | global::Google.ProtocolBuffers.TestProtos.TestMutualRecursionB.Builder subBuilder = global::Google.ProtocolBuffers.TestProtos.TestMutualRecursionB.CreateBuilder(); |
| 8228 | if (HasBb) { |
| 8229 | subBuilder.MergeFrom(Bb); |
| 8230 | } |
| 8231 | input.ReadMessage(subBuilder, extensionRegistry); |
| 8232 | Bb = subBuilder.BuildPartial(); |
| 8233 | break; |
| 8234 | } |
| 8235 | } |
| 8236 | } |
| 8237 | } |
| 8238 | |
| 8239 | |
| 8240 | public bool HasBb { |
| 8241 | get { return result.HasBb; } |
| 8242 | } |
| 8243 | public global::Google.ProtocolBuffers.TestProtos.TestMutualRecursionB Bb { |
| 8244 | get { return result.Bb; } |
| 8245 | set { SetBb(value); } |
| 8246 | } |
| 8247 | public Builder SetBb(global::Google.ProtocolBuffers.TestProtos.TestMutualRecursionB value) { |
| 8248 | result.hasBb = true; |
| 8249 | result.bb_ = value; |
| 8250 | return this; |
| 8251 | } |
| 8252 | public Builder SetBb(global::Google.ProtocolBuffers.TestProtos.TestMutualRecursionB.Builder builderForValue) { |
| 8253 | result.hasBb = true; |
| 8254 | result.bb_ = builderForValue.Build(); |
| 8255 | return this; |
| 8256 | } |
| 8257 | public Builder MergeBb(global::Google.ProtocolBuffers.TestProtos.TestMutualRecursionB value) { |
| 8258 | if (result.HasBb && |
| 8259 | result.bb_ != global::Google.ProtocolBuffers.TestProtos.TestMutualRecursionB.DefaultInstance) { |
| 8260 | result.bb_ = global::Google.ProtocolBuffers.TestProtos.TestMutualRecursionB.CreateBuilder(result.bb_).MergeFrom(value).BuildPartial(); |
| 8261 | } else { |
| 8262 | result.bb_ = value; |
| 8263 | } |
| 8264 | result.hasBb = true; |
| 8265 | return this; |
| 8266 | } |
| 8267 | public Builder ClearBb() { |
| 8268 | result.hasBb = false; |
| 8269 | result.bb_ = global::Google.ProtocolBuffers.TestProtos.TestMutualRecursionB.DefaultInstance; |
| 8270 | return this; |
| 8271 | } |
| 8272 | } |
| 8273 | } |
| 8274 | |
| 8275 | public sealed partial class TestMutualRecursionB : pb::GeneratedMessage<TestMutualRecursionB, TestMutualRecursionB.Builder> { |
| 8276 | private static readonly TestMutualRecursionB defaultInstance = new Builder().BuildPartial(); |
| 8277 | public static TestMutualRecursionB DefaultInstance { |
| 8278 | get { return defaultInstance; } |
| 8279 | } |
| 8280 | |
| 8281 | public override TestMutualRecursionB DefaultInstanceForType { |
| 8282 | get { return defaultInstance; } |
| 8283 | } |
| 8284 | |
| 8285 | protected override TestMutualRecursionB ThisMessage { |
| 8286 | get { return this; } |
| 8287 | } |
| 8288 | |
| 8289 | public static pbd::MessageDescriptor Descriptor { |
| 8290 | get { return global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.internal__static_protobuf_unittest_TestMutualRecursionB__Descriptor; } |
| 8291 | } |
| 8292 | |
| 8293 | protected override pb::FieldAccess.FieldAccessorTable<TestMutualRecursionB, TestMutualRecursionB.Builder> InternalFieldAccessors { |
| 8294 | get { return global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.internal__static_protobuf_unittest_TestMutualRecursionB__FieldAccessorTable; } |
| 8295 | } |
| 8296 | |
| 8297 | private bool hasA; |
| 8298 | private global::Google.ProtocolBuffers.TestProtos.TestMutualRecursionA a_ = global::Google.ProtocolBuffers.TestProtos.TestMutualRecursionA.DefaultInstance; |
| 8299 | public bool HasA { |
| 8300 | get { return hasA; } |
| 8301 | } |
| 8302 | public global::Google.ProtocolBuffers.TestProtos.TestMutualRecursionA A { |
| 8303 | get { return a_; } |
| 8304 | } |
| 8305 | |
| 8306 | private bool hasOptionalInt32; |
| 8307 | private int optionalInt32_ = 0; |
| 8308 | public bool HasOptionalInt32 { |
| 8309 | get { return hasOptionalInt32; } |
| 8310 | } |
| 8311 | public int OptionalInt32 { |
| 8312 | get { return optionalInt32_; } |
| 8313 | } |
| 8314 | |
| 8315 | public override bool IsInitialized { |
| 8316 | get { |
| 8317 | return true; |
| 8318 | } |
| 8319 | } |
| 8320 | |
| 8321 | public override void WriteTo(pb::CodedOutputStream output) { |
| 8322 | if (HasA) { |
| 8323 | output.WriteMessage(1, A); |
| 8324 | } |
| 8325 | if (HasOptionalInt32) { |
| 8326 | output.WriteInt32(2, OptionalInt32); |
| 8327 | } |
| 8328 | UnknownFields.WriteTo(output); |
| 8329 | } |
| 8330 | |
| 8331 | private int memoizedSerializedSize = -1; |
| 8332 | public override int SerializedSize { |
| 8333 | get { |
| 8334 | int size = memoizedSerializedSize; |
| 8335 | if (size != -1) return size; |
| 8336 | |
| 8337 | size = 0; |
| 8338 | if (HasA) { |
| 8339 | size += pb::CodedOutputStream.ComputeMessageSize(1, A); |
| 8340 | } |
| 8341 | if (HasOptionalInt32) { |
| 8342 | size += pb::CodedOutputStream.ComputeInt32Size(2, OptionalInt32); |
| 8343 | } |
| 8344 | size += UnknownFields.SerializedSize; |
| 8345 | memoizedSerializedSize = size; |
| 8346 | return size; |
| 8347 | } |
| 8348 | } |
| 8349 | |
| 8350 | public static TestMutualRecursionB ParseFrom(pb::ByteString data) { |
| 8351 | return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed(); |
| 8352 | } |
| 8353 | public static TestMutualRecursionB ParseFrom(pb::ByteString data, pb::ExtensionRegistry extensionRegistry) { |
| 8354 | return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed(); |
| 8355 | } |
| 8356 | public static TestMutualRecursionB ParseFrom(byte[] data) { |
| 8357 | return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed(); |
| 8358 | } |
| 8359 | public static TestMutualRecursionB ParseFrom(byte[] data, pb::ExtensionRegistry extensionRegistry) { |
| 8360 | return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed(); |
| 8361 | } |
| 8362 | public static TestMutualRecursionB ParseFrom(global::System.IO.Stream input) { |
| 8363 | return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed(); |
| 8364 | } |
| 8365 | public static TestMutualRecursionB ParseFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) { |
| 8366 | return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed(); |
| 8367 | } |
| 8368 | public static TestMutualRecursionB ParseFrom(pb::CodedInputStream input) { |
| 8369 | return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed(); |
| 8370 | } |
| 8371 | public static TestMutualRecursionB ParseFrom(pb::CodedInputStream input, pb::ExtensionRegistry extensionRegistry) { |
| 8372 | return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed(); |
| 8373 | } |
| 8374 | public static Builder CreateBuilder() { return new Builder(); } |
| 8375 | public override Builder CreateBuilderForType() { return new Builder(); } |
| 8376 | public static Builder CreateBuilder(TestMutualRecursionB prototype) { |
| 8377 | return (Builder) new Builder().MergeFrom(prototype); |
| 8378 | } |
| 8379 | |
| 8380 | public sealed partial class Builder : pb::GeneratedBuilder<TestMutualRecursionB, Builder> { |
| 8381 | protected override Builder ThisBuilder { |
| 8382 | get { return this; } |
| 8383 | } |
| 8384 | public Builder() {} |
| 8385 | |
| 8386 | TestMutualRecursionB result = new TestMutualRecursionB(); |
| 8387 | |
| 8388 | protected override TestMutualRecursionB MessageBeingBuilt { |
| 8389 | get { return result; } |
| 8390 | } |
| 8391 | |
| 8392 | public override Builder Clear() { |
| 8393 | result = new TestMutualRecursionB(); |
| 8394 | return this; |
| 8395 | } |
| 8396 | |
| 8397 | public override Builder Clone() { |
| 8398 | return new Builder().MergeFrom(result); |
| 8399 | } |
| 8400 | |
| 8401 | public override pbd::MessageDescriptor DescriptorForType { |
| 8402 | get { return TestMutualRecursionB.Descriptor; } |
| 8403 | } |
| 8404 | |
| 8405 | public override TestMutualRecursionB DefaultInstanceForType { |
| 8406 | get { return TestMutualRecursionB.DefaultInstance; } |
| 8407 | } |
| 8408 | |
| 8409 | public override TestMutualRecursionB BuildPartial() { |
| 8410 | TestMutualRecursionB returnMe = result; |
| 8411 | result = null; |
| 8412 | return returnMe; |
| 8413 | } |
| 8414 | |
| 8415 | public override Builder MergeFrom(pb::IMessage other) { |
| 8416 | if (other is TestMutualRecursionB) { |
| 8417 | return MergeFrom((TestMutualRecursionB) other); |
| 8418 | } else { |
| 8419 | base.MergeFrom(other); |
| 8420 | return this; |
| 8421 | } |
| 8422 | } |
| 8423 | |
| 8424 | public override Builder MergeFrom(TestMutualRecursionB other) { |
| 8425 | if (other == TestMutualRecursionB.DefaultInstance) return this; |
| 8426 | if (other.HasA) { |
| 8427 | MergeA(other.A); |
| 8428 | } |
| 8429 | if (other.HasOptionalInt32) { |
| 8430 | OptionalInt32 = other.OptionalInt32; |
| 8431 | } |
| 8432 | this.MergeUnknownFields(other.UnknownFields); |
| 8433 | return this; |
| 8434 | } |
| 8435 | |
| 8436 | public override Builder MergeFrom(pb::CodedInputStream input) { |
| 8437 | return MergeFrom(input, pb::ExtensionRegistry.Empty); |
| 8438 | } |
| 8439 | |
| 8440 | public override Builder MergeFrom(pb::CodedInputStream input, pb::ExtensionRegistry extensionRegistry) { |
| 8441 | pb::UnknownFieldSet.Builder unknownFields = pb::UnknownFieldSet.CreateBuilder(this.UnknownFields); |
| 8442 | while (true) { |
| 8443 | uint tag = input.ReadTag(); |
| 8444 | switch (tag) { |
| 8445 | case 0: { |
| 8446 | this.UnknownFields = unknownFields.Build(); |
| 8447 | return this; |
| 8448 | } |
| 8449 | default: { |
| 8450 | if (!ParseUnknownField(input, unknownFields, extensionRegistry, tag)) { |
| 8451 | this.UnknownFields = unknownFields.Build(); |
| 8452 | return this; |
| 8453 | } |
| 8454 | break; |
| 8455 | } |
| 8456 | case 10: { |
| 8457 | global::Google.ProtocolBuffers.TestProtos.TestMutualRecursionA.Builder subBuilder = global::Google.ProtocolBuffers.TestProtos.TestMutualRecursionA.CreateBuilder(); |
| 8458 | if (HasA) { |
| 8459 | subBuilder.MergeFrom(A); |
| 8460 | } |
| 8461 | input.ReadMessage(subBuilder, extensionRegistry); |
| 8462 | A = subBuilder.BuildPartial(); |
| 8463 | break; |
| 8464 | } |
| 8465 | case 16: { |
| 8466 | OptionalInt32 = input.ReadInt32(); |
| 8467 | break; |
| 8468 | } |
| 8469 | } |
| 8470 | } |
| 8471 | } |
| 8472 | |
| 8473 | |
| 8474 | public bool HasA { |
| 8475 | get { return result.HasA; } |
| 8476 | } |
| 8477 | public global::Google.ProtocolBuffers.TestProtos.TestMutualRecursionA A { |
| 8478 | get { return result.A; } |
| 8479 | set { SetA(value); } |
| 8480 | } |
| 8481 | public Builder SetA(global::Google.ProtocolBuffers.TestProtos.TestMutualRecursionA value) { |
| 8482 | result.hasA = true; |
| 8483 | result.a_ = value; |
| 8484 | return this; |
| 8485 | } |
| 8486 | public Builder SetA(global::Google.ProtocolBuffers.TestProtos.TestMutualRecursionA.Builder builderForValue) { |
| 8487 | result.hasA = true; |
| 8488 | result.a_ = builderForValue.Build(); |
| 8489 | return this; |
| 8490 | } |
| 8491 | public Builder MergeA(global::Google.ProtocolBuffers.TestProtos.TestMutualRecursionA value) { |
| 8492 | if (result.HasA && |
| 8493 | result.a_ != global::Google.ProtocolBuffers.TestProtos.TestMutualRecursionA.DefaultInstance) { |
| 8494 | result.a_ = global::Google.ProtocolBuffers.TestProtos.TestMutualRecursionA.CreateBuilder(result.a_).MergeFrom(value).BuildPartial(); |
| 8495 | } else { |
| 8496 | result.a_ = value; |
| 8497 | } |
| 8498 | result.hasA = true; |
| 8499 | return this; |
| 8500 | } |
| 8501 | public Builder ClearA() { |
| 8502 | result.hasA = false; |
| 8503 | result.a_ = global::Google.ProtocolBuffers.TestProtos.TestMutualRecursionA.DefaultInstance; |
| 8504 | return this; |
| 8505 | } |
| 8506 | |
| 8507 | public bool HasOptionalInt32 { |
| 8508 | get { return result.HasOptionalInt32; } |
| 8509 | } |
| 8510 | public int OptionalInt32 { |
| 8511 | get { return result.OptionalInt32; } |
| 8512 | set { SetOptionalInt32(value); } |
| 8513 | } |
| 8514 | public Builder SetOptionalInt32(int value) { |
| 8515 | result.hasOptionalInt32 = true; |
| 8516 | result.optionalInt32_ = value; |
| 8517 | return this; |
| 8518 | } |
| 8519 | public Builder ClearOptionalInt32() { |
| 8520 | result.hasOptionalInt32 = false; |
| 8521 | result.optionalInt32_ = 0; |
| 8522 | return this; |
| 8523 | } |
| 8524 | } |
| 8525 | } |
| 8526 | |
| 8527 | public sealed partial class TestDupFieldNumber : pb::GeneratedMessage<TestDupFieldNumber, TestDupFieldNumber.Builder> { |
| 8528 | private static readonly TestDupFieldNumber defaultInstance = new Builder().BuildPartial(); |
| 8529 | public static TestDupFieldNumber DefaultInstance { |
| 8530 | get { return defaultInstance; } |
| 8531 | } |
| 8532 | |
| 8533 | public override TestDupFieldNumber DefaultInstanceForType { |
| 8534 | get { return defaultInstance; } |
| 8535 | } |
| 8536 | |
| 8537 | protected override TestDupFieldNumber ThisMessage { |
| 8538 | get { return this; } |
| 8539 | } |
| 8540 | |
| 8541 | public static pbd::MessageDescriptor Descriptor { |
| 8542 | get { return global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.internal__static_protobuf_unittest_TestDupFieldNumber__Descriptor; } |
| 8543 | } |
| 8544 | |
| 8545 | protected override pb::FieldAccess.FieldAccessorTable<TestDupFieldNumber, TestDupFieldNumber.Builder> InternalFieldAccessors { |
| 8546 | get { return global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.internal__static_protobuf_unittest_TestDupFieldNumber__FieldAccessorTable; } |
| 8547 | } |
| 8548 | |
| 8549 | #region Nested types |
| 8550 | public static class Types { |
| 8551 | public sealed partial class Foo : pb::GeneratedMessage<Foo, Foo.Builder> { |
| 8552 | private static readonly Foo defaultInstance = new Builder().BuildPartial(); |
| 8553 | public static Foo DefaultInstance { |
| 8554 | get { return defaultInstance; } |
| 8555 | } |
| 8556 | |
| 8557 | public override Foo DefaultInstanceForType { |
| 8558 | get { return defaultInstance; } |
| 8559 | } |
| 8560 | |
| 8561 | protected override Foo ThisMessage { |
| 8562 | get { return this; } |
| 8563 | } |
| 8564 | |
| 8565 | public static pbd::MessageDescriptor Descriptor { |
| 8566 | get { return global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.internal__static_protobuf_unittest_TestDupFieldNumber_Foo__Descriptor; } |
| 8567 | } |
| 8568 | |
| 8569 | protected override pb::FieldAccess.FieldAccessorTable<Foo, Foo.Builder> InternalFieldAccessors { |
| 8570 | get { return global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.internal__static_protobuf_unittest_TestDupFieldNumber_Foo__FieldAccessorTable; } |
| 8571 | } |
| 8572 | |
| 8573 | private bool hasA; |
| 8574 | private int a_ = 0; |
| 8575 | public bool HasA { |
| 8576 | get { return hasA; } |
| 8577 | } |
| 8578 | public int A { |
| 8579 | get { return a_; } |
| 8580 | } |
| 8581 | |
| 8582 | public override bool IsInitialized { |
| 8583 | get { |
| 8584 | return true; |
| 8585 | } |
| 8586 | } |
| 8587 | |
| 8588 | public override void WriteTo(pb::CodedOutputStream output) { |
| 8589 | if (HasA) { |
| 8590 | output.WriteInt32(1, A); |
| 8591 | } |
| 8592 | UnknownFields.WriteTo(output); |
| 8593 | } |
| 8594 | |
| 8595 | private int memoizedSerializedSize = -1; |
| 8596 | public override int SerializedSize { |
| 8597 | get { |
| 8598 | int size = memoizedSerializedSize; |
| 8599 | if (size != -1) return size; |
| 8600 | |
| 8601 | size = 0; |
| 8602 | if (HasA) { |
| 8603 | size += pb::CodedOutputStream.ComputeInt32Size(1, A); |
| 8604 | } |
| 8605 | size += UnknownFields.SerializedSize; |
| 8606 | memoizedSerializedSize = size; |
| 8607 | return size; |
| 8608 | } |
| 8609 | } |
| 8610 | |
| 8611 | public static Foo ParseFrom(pb::ByteString data) { |
| 8612 | return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed(); |
| 8613 | } |
| 8614 | public static Foo ParseFrom(pb::ByteString data, pb::ExtensionRegistry extensionRegistry) { |
| 8615 | return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed(); |
| 8616 | } |
| 8617 | public static Foo ParseFrom(byte[] data) { |
| 8618 | return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed(); |
| 8619 | } |
| 8620 | public static Foo ParseFrom(byte[] data, pb::ExtensionRegistry extensionRegistry) { |
| 8621 | return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed(); |
| 8622 | } |
| 8623 | public static Foo ParseFrom(global::System.IO.Stream input) { |
| 8624 | return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed(); |
| 8625 | } |
| 8626 | public static Foo ParseFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) { |
| 8627 | return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed(); |
| 8628 | } |
| 8629 | public static Foo ParseFrom(pb::CodedInputStream input) { |
| 8630 | return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed(); |
| 8631 | } |
| 8632 | public static Foo ParseFrom(pb::CodedInputStream input, pb::ExtensionRegistry extensionRegistry) { |
| 8633 | return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed(); |
| 8634 | } |
| 8635 | public static Builder CreateBuilder() { return new Builder(); } |
| 8636 | public override Builder CreateBuilderForType() { return new Builder(); } |
| 8637 | public static Builder CreateBuilder(Foo prototype) { |
| 8638 | return (Builder) new Builder().MergeFrom(prototype); |
| 8639 | } |
| 8640 | |
| 8641 | public sealed partial class Builder : pb::GeneratedBuilder<Foo, Builder> { |
| 8642 | protected override Builder ThisBuilder { |
| 8643 | get { return this; } |
| 8644 | } |
| 8645 | public Builder() {} |
| 8646 | |
| 8647 | Foo result = new Foo(); |
| 8648 | |
| 8649 | protected override Foo MessageBeingBuilt { |
| 8650 | get { return result; } |
| 8651 | } |
| 8652 | |
| 8653 | public override Builder Clear() { |
| 8654 | result = new Foo(); |
| 8655 | return this; |
| 8656 | } |
| 8657 | |
| 8658 | public override Builder Clone() { |
| 8659 | return new Builder().MergeFrom(result); |
| 8660 | } |
| 8661 | |
| 8662 | public override pbd::MessageDescriptor DescriptorForType { |
| 8663 | get { return Foo.Descriptor; } |
| 8664 | } |
| 8665 | |
| 8666 | public override Foo DefaultInstanceForType { |
| 8667 | get { return Foo.DefaultInstance; } |
| 8668 | } |
| 8669 | |
| 8670 | public override Foo BuildPartial() { |
| 8671 | Foo returnMe = result; |
| 8672 | result = null; |
| 8673 | return returnMe; |
| 8674 | } |
| 8675 | |
| 8676 | public override Builder MergeFrom(pb::IMessage other) { |
| 8677 | if (other is Foo) { |
| 8678 | return MergeFrom((Foo) other); |
| 8679 | } else { |
| 8680 | base.MergeFrom(other); |
| 8681 | return this; |
| 8682 | } |
| 8683 | } |
| 8684 | |
| 8685 | public override Builder MergeFrom(Foo other) { |
| 8686 | if (other == Foo.DefaultInstance) return this; |
| 8687 | if (other.HasA) { |
| 8688 | A = other.A; |
| 8689 | } |
| 8690 | this.MergeUnknownFields(other.UnknownFields); |
| 8691 | return this; |
| 8692 | } |
| 8693 | |
| 8694 | public override Builder MergeFrom(pb::CodedInputStream input) { |
| 8695 | return MergeFrom(input, pb::ExtensionRegistry.Empty); |
| 8696 | } |
| 8697 | |
| 8698 | public override Builder MergeFrom(pb::CodedInputStream input, pb::ExtensionRegistry extensionRegistry) { |
| 8699 | pb::UnknownFieldSet.Builder unknownFields = pb::UnknownFieldSet.CreateBuilder(this.UnknownFields); |
| 8700 | while (true) { |
| 8701 | uint tag = input.ReadTag(); |
| 8702 | switch (tag) { |
| 8703 | case 0: { |
| 8704 | this.UnknownFields = unknownFields.Build(); |
| 8705 | return this; |
| 8706 | } |
| 8707 | default: { |
| 8708 | if (!ParseUnknownField(input, unknownFields, extensionRegistry, tag)) { |
| 8709 | this.UnknownFields = unknownFields.Build(); |
| 8710 | return this; |
| 8711 | } |
| 8712 | break; |
| 8713 | } |
| 8714 | case 8: { |
| 8715 | A = input.ReadInt32(); |
| 8716 | break; |
| 8717 | } |
| 8718 | } |
| 8719 | } |
| 8720 | } |
| 8721 | |
| 8722 | |
| 8723 | public bool HasA { |
| 8724 | get { return result.HasA; } |
| 8725 | } |
| 8726 | public int A { |
| 8727 | get { return result.A; } |
| 8728 | set { SetA(value); } |
| 8729 | } |
| 8730 | public Builder SetA(int value) { |
| 8731 | result.hasA = true; |
| 8732 | result.a_ = value; |
| 8733 | return this; |
| 8734 | } |
| 8735 | public Builder ClearA() { |
| 8736 | result.hasA = false; |
| 8737 | result.a_ = 0; |
| 8738 | return this; |
| 8739 | } |
| 8740 | } |
| 8741 | } |
| 8742 | |
| 8743 | public sealed partial class Bar : pb::GeneratedMessage<Bar, Bar.Builder> { |
| 8744 | private static readonly Bar defaultInstance = new Builder().BuildPartial(); |
| 8745 | public static Bar DefaultInstance { |
| 8746 | get { return defaultInstance; } |
| 8747 | } |
| 8748 | |
| 8749 | public override Bar DefaultInstanceForType { |
| 8750 | get { return defaultInstance; } |
| 8751 | } |
| 8752 | |
| 8753 | protected override Bar ThisMessage { |
| 8754 | get { return this; } |
| 8755 | } |
| 8756 | |
| 8757 | public static pbd::MessageDescriptor Descriptor { |
| 8758 | get { return global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.internal__static_protobuf_unittest_TestDupFieldNumber_Bar__Descriptor; } |
| 8759 | } |
| 8760 | |
| 8761 | protected override pb::FieldAccess.FieldAccessorTable<Bar, Bar.Builder> InternalFieldAccessors { |
| 8762 | get { return global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.internal__static_protobuf_unittest_TestDupFieldNumber_Bar__FieldAccessorTable; } |
| 8763 | } |
| 8764 | |
| 8765 | private bool hasA; |
| 8766 | private int a_ = 0; |
| 8767 | public bool HasA { |
| 8768 | get { return hasA; } |
| 8769 | } |
| 8770 | public int A { |
| 8771 | get { return a_; } |
| 8772 | } |
| 8773 | |
| 8774 | public override bool IsInitialized { |
| 8775 | get { |
| 8776 | return true; |
| 8777 | } |
| 8778 | } |
| 8779 | |
| 8780 | public override void WriteTo(pb::CodedOutputStream output) { |
| 8781 | if (HasA) { |
| 8782 | output.WriteInt32(1, A); |
| 8783 | } |
| 8784 | UnknownFields.WriteTo(output); |
| 8785 | } |
| 8786 | |
| 8787 | private int memoizedSerializedSize = -1; |
| 8788 | public override int SerializedSize { |
| 8789 | get { |
| 8790 | int size = memoizedSerializedSize; |
| 8791 | if (size != -1) return size; |
| 8792 | |
| 8793 | size = 0; |
| 8794 | if (HasA) { |
| 8795 | size += pb::CodedOutputStream.ComputeInt32Size(1, A); |
| 8796 | } |
| 8797 | size += UnknownFields.SerializedSize; |
| 8798 | memoizedSerializedSize = size; |
| 8799 | return size; |
| 8800 | } |
| 8801 | } |
| 8802 | |
| 8803 | public static Bar ParseFrom(pb::ByteString data) { |
| 8804 | return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed(); |
| 8805 | } |
| 8806 | public static Bar ParseFrom(pb::ByteString data, pb::ExtensionRegistry extensionRegistry) { |
| 8807 | return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed(); |
| 8808 | } |
| 8809 | public static Bar ParseFrom(byte[] data) { |
| 8810 | return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed(); |
| 8811 | } |
| 8812 | public static Bar ParseFrom(byte[] data, pb::ExtensionRegistry extensionRegistry) { |
| 8813 | return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed(); |
| 8814 | } |
| 8815 | public static Bar ParseFrom(global::System.IO.Stream input) { |
| 8816 | return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed(); |
| 8817 | } |
| 8818 | public static Bar ParseFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) { |
| 8819 | return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed(); |
| 8820 | } |
| 8821 | public static Bar ParseFrom(pb::CodedInputStream input) { |
| 8822 | return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed(); |
| 8823 | } |
| 8824 | public static Bar ParseFrom(pb::CodedInputStream input, pb::ExtensionRegistry extensionRegistry) { |
| 8825 | return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed(); |
| 8826 | } |
| 8827 | public static Builder CreateBuilder() { return new Builder(); } |
| 8828 | public override Builder CreateBuilderForType() { return new Builder(); } |
| 8829 | public static Builder CreateBuilder(Bar prototype) { |
| 8830 | return (Builder) new Builder().MergeFrom(prototype); |
| 8831 | } |
| 8832 | |
| 8833 | public sealed partial class Builder : pb::GeneratedBuilder<Bar, Builder> { |
| 8834 | protected override Builder ThisBuilder { |
| 8835 | get { return this; } |
| 8836 | } |
| 8837 | public Builder() {} |
| 8838 | |
| 8839 | Bar result = new Bar(); |
| 8840 | |
| 8841 | protected override Bar MessageBeingBuilt { |
| 8842 | get { return result; } |
| 8843 | } |
| 8844 | |
| 8845 | public override Builder Clear() { |
| 8846 | result = new Bar(); |
| 8847 | return this; |
| 8848 | } |
| 8849 | |
| 8850 | public override Builder Clone() { |
| 8851 | return new Builder().MergeFrom(result); |
| 8852 | } |
| 8853 | |
| 8854 | public override pbd::MessageDescriptor DescriptorForType { |
| 8855 | get { return Bar.Descriptor; } |
| 8856 | } |
| 8857 | |
| 8858 | public override Bar DefaultInstanceForType { |
| 8859 | get { return Bar.DefaultInstance; } |
| 8860 | } |
| 8861 | |
| 8862 | public override Bar BuildPartial() { |
| 8863 | Bar returnMe = result; |
| 8864 | result = null; |
| 8865 | return returnMe; |
| 8866 | } |
| 8867 | |
| 8868 | public override Builder MergeFrom(pb::IMessage other) { |
| 8869 | if (other is Bar) { |
| 8870 | return MergeFrom((Bar) other); |
| 8871 | } else { |
| 8872 | base.MergeFrom(other); |
| 8873 | return this; |
| 8874 | } |
| 8875 | } |
| 8876 | |
| 8877 | public override Builder MergeFrom(Bar other) { |
| 8878 | if (other == Bar.DefaultInstance) return this; |
| 8879 | if (other.HasA) { |
| 8880 | A = other.A; |
| 8881 | } |
| 8882 | this.MergeUnknownFields(other.UnknownFields); |
| 8883 | return this; |
| 8884 | } |
| 8885 | |
| 8886 | public override Builder MergeFrom(pb::CodedInputStream input) { |
| 8887 | return MergeFrom(input, pb::ExtensionRegistry.Empty); |
| 8888 | } |
| 8889 | |
| 8890 | public override Builder MergeFrom(pb::CodedInputStream input, pb::ExtensionRegistry extensionRegistry) { |
| 8891 | pb::UnknownFieldSet.Builder unknownFields = pb::UnknownFieldSet.CreateBuilder(this.UnknownFields); |
| 8892 | while (true) { |
| 8893 | uint tag = input.ReadTag(); |
| 8894 | switch (tag) { |
| 8895 | case 0: { |
| 8896 | this.UnknownFields = unknownFields.Build(); |
| 8897 | return this; |
| 8898 | } |
| 8899 | default: { |
| 8900 | if (!ParseUnknownField(input, unknownFields, extensionRegistry, tag)) { |
| 8901 | this.UnknownFields = unknownFields.Build(); |
| 8902 | return this; |
| 8903 | } |
| 8904 | break; |
| 8905 | } |
| 8906 | case 8: { |
| 8907 | A = input.ReadInt32(); |
| 8908 | break; |
| 8909 | } |
| 8910 | } |
| 8911 | } |
| 8912 | } |
| 8913 | |
| 8914 | |
| 8915 | public bool HasA { |
| 8916 | get { return result.HasA; } |
| 8917 | } |
| 8918 | public int A { |
| 8919 | get { return result.A; } |
| 8920 | set { SetA(value); } |
| 8921 | } |
| 8922 | public Builder SetA(int value) { |
| 8923 | result.hasA = true; |
| 8924 | result.a_ = value; |
| 8925 | return this; |
| 8926 | } |
| 8927 | public Builder ClearA() { |
| 8928 | result.hasA = false; |
| 8929 | result.a_ = 0; |
| 8930 | return this; |
| 8931 | } |
| 8932 | } |
| 8933 | } |
| 8934 | |
| 8935 | } |
| 8936 | #endregion |
| 8937 | |
| 8938 | private bool hasA; |
| 8939 | private int a_ = 0; |
| 8940 | public bool HasA { |
| 8941 | get { return hasA; } |
| 8942 | } |
| 8943 | public int A { |
| 8944 | get { return a_; } |
| 8945 | } |
| 8946 | |
| 8947 | private bool hasFoo; |
| 8948 | private global::Google.ProtocolBuffers.TestProtos.TestDupFieldNumber.Types.Foo foo_ = global::Google.ProtocolBuffers.TestProtos.TestDupFieldNumber.Types.Foo.DefaultInstance; |
| 8949 | public bool HasFoo { |
| 8950 | get { return hasFoo; } |
| 8951 | } |
| 8952 | public global::Google.ProtocolBuffers.TestProtos.TestDupFieldNumber.Types.Foo Foo { |
| 8953 | get { return foo_; } |
| 8954 | } |
| 8955 | |
| 8956 | private bool hasBar; |
| 8957 | private global::Google.ProtocolBuffers.TestProtos.TestDupFieldNumber.Types.Bar bar_ = global::Google.ProtocolBuffers.TestProtos.TestDupFieldNumber.Types.Bar.DefaultInstance; |
| 8958 | public bool HasBar { |
| 8959 | get { return hasBar; } |
| 8960 | } |
| 8961 | public global::Google.ProtocolBuffers.TestProtos.TestDupFieldNumber.Types.Bar Bar { |
| 8962 | get { return bar_; } |
| 8963 | } |
| 8964 | |
| 8965 | public override bool IsInitialized { |
| 8966 | get { |
| 8967 | return true; |
| 8968 | } |
| 8969 | } |
| 8970 | |
| 8971 | public override void WriteTo(pb::CodedOutputStream output) { |
| 8972 | if (HasA) { |
| 8973 | output.WriteInt32(1, A); |
| 8974 | } |
| 8975 | if (HasFoo) { |
| 8976 | output.WriteGroup(2, Foo); |
| 8977 | } |
| 8978 | if (HasBar) { |
| 8979 | output.WriteGroup(3, Bar); |
| 8980 | } |
| 8981 | UnknownFields.WriteTo(output); |
| 8982 | } |
| 8983 | |
| 8984 | private int memoizedSerializedSize = -1; |
| 8985 | public override int SerializedSize { |
| 8986 | get { |
| 8987 | int size = memoizedSerializedSize; |
| 8988 | if (size != -1) return size; |
| 8989 | |
| 8990 | size = 0; |
| 8991 | if (HasA) { |
| 8992 | size += pb::CodedOutputStream.ComputeInt32Size(1, A); |
| 8993 | } |
| 8994 | if (HasFoo) { |
| 8995 | size += pb::CodedOutputStream.ComputeGroupSize(2, Foo); |
| 8996 | } |
| 8997 | if (HasBar) { |
| 8998 | size += pb::CodedOutputStream.ComputeGroupSize(3, Bar); |
| 8999 | } |
| 9000 | size += UnknownFields.SerializedSize; |
| 9001 | memoizedSerializedSize = size; |
| 9002 | return size; |
| 9003 | } |
| 9004 | } |
| 9005 | |
| 9006 | public static TestDupFieldNumber ParseFrom(pb::ByteString data) { |
| 9007 | return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed(); |
| 9008 | } |
| 9009 | public static TestDupFieldNumber ParseFrom(pb::ByteString data, pb::ExtensionRegistry extensionRegistry) { |
| 9010 | return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed(); |
| 9011 | } |
| 9012 | public static TestDupFieldNumber ParseFrom(byte[] data) { |
| 9013 | return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed(); |
| 9014 | } |
| 9015 | public static TestDupFieldNumber ParseFrom(byte[] data, pb::ExtensionRegistry extensionRegistry) { |
| 9016 | return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed(); |
| 9017 | } |
| 9018 | public static TestDupFieldNumber ParseFrom(global::System.IO.Stream input) { |
| 9019 | return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed(); |
| 9020 | } |
| 9021 | public static TestDupFieldNumber ParseFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) { |
| 9022 | return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed(); |
| 9023 | } |
| 9024 | public static TestDupFieldNumber ParseFrom(pb::CodedInputStream input) { |
| 9025 | return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed(); |
| 9026 | } |
| 9027 | public static TestDupFieldNumber ParseFrom(pb::CodedInputStream input, pb::ExtensionRegistry extensionRegistry) { |
| 9028 | return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed(); |
| 9029 | } |
| 9030 | public static Builder CreateBuilder() { return new Builder(); } |
| 9031 | public override Builder CreateBuilderForType() { return new Builder(); } |
| 9032 | public static Builder CreateBuilder(TestDupFieldNumber prototype) { |
| 9033 | return (Builder) new Builder().MergeFrom(prototype); |
| 9034 | } |
| 9035 | |
| 9036 | public sealed partial class Builder : pb::GeneratedBuilder<TestDupFieldNumber, Builder> { |
| 9037 | protected override Builder ThisBuilder { |
| 9038 | get { return this; } |
| 9039 | } |
| 9040 | public Builder() {} |
| 9041 | |
| 9042 | TestDupFieldNumber result = new TestDupFieldNumber(); |
| 9043 | |
| 9044 | protected override TestDupFieldNumber MessageBeingBuilt { |
| 9045 | get { return result; } |
| 9046 | } |
| 9047 | |
| 9048 | public override Builder Clear() { |
| 9049 | result = new TestDupFieldNumber(); |
| 9050 | return this; |
| 9051 | } |
| 9052 | |
| 9053 | public override Builder Clone() { |
| 9054 | return new Builder().MergeFrom(result); |
| 9055 | } |
| 9056 | |
| 9057 | public override pbd::MessageDescriptor DescriptorForType { |
| 9058 | get { return TestDupFieldNumber.Descriptor; } |
| 9059 | } |
| 9060 | |
| 9061 | public override TestDupFieldNumber DefaultInstanceForType { |
| 9062 | get { return TestDupFieldNumber.DefaultInstance; } |
| 9063 | } |
| 9064 | |
| 9065 | public override TestDupFieldNumber BuildPartial() { |
| 9066 | TestDupFieldNumber returnMe = result; |
| 9067 | result = null; |
| 9068 | return returnMe; |
| 9069 | } |
| 9070 | |
| 9071 | public override Builder MergeFrom(pb::IMessage other) { |
| 9072 | if (other is TestDupFieldNumber) { |
| 9073 | return MergeFrom((TestDupFieldNumber) other); |
| 9074 | } else { |
| 9075 | base.MergeFrom(other); |
| 9076 | return this; |
| 9077 | } |
| 9078 | } |
| 9079 | |
| 9080 | public override Builder MergeFrom(TestDupFieldNumber other) { |
| 9081 | if (other == TestDupFieldNumber.DefaultInstance) return this; |
| 9082 | if (other.HasA) { |
| 9083 | A = other.A; |
| 9084 | } |
| 9085 | if (other.HasFoo) { |
| 9086 | MergeFoo(other.Foo); |
| 9087 | } |
| 9088 | if (other.HasBar) { |
| 9089 | MergeBar(other.Bar); |
| 9090 | } |
| 9091 | this.MergeUnknownFields(other.UnknownFields); |
| 9092 | return this; |
| 9093 | } |
| 9094 | |
| 9095 | public override Builder MergeFrom(pb::CodedInputStream input) { |
| 9096 | return MergeFrom(input, pb::ExtensionRegistry.Empty); |
| 9097 | } |
| 9098 | |
| 9099 | public override Builder MergeFrom(pb::CodedInputStream input, pb::ExtensionRegistry extensionRegistry) { |
| 9100 | pb::UnknownFieldSet.Builder unknownFields = pb::UnknownFieldSet.CreateBuilder(this.UnknownFields); |
| 9101 | while (true) { |
| 9102 | uint tag = input.ReadTag(); |
| 9103 | switch (tag) { |
| 9104 | case 0: { |
| 9105 | this.UnknownFields = unknownFields.Build(); |
| 9106 | return this; |
| 9107 | } |
| 9108 | default: { |
| 9109 | if (!ParseUnknownField(input, unknownFields, extensionRegistry, tag)) { |
| 9110 | this.UnknownFields = unknownFields.Build(); |
| 9111 | return this; |
| 9112 | } |
| 9113 | break; |
| 9114 | } |
| 9115 | case 8: { |
| 9116 | A = input.ReadInt32(); |
| 9117 | break; |
| 9118 | } |
| 9119 | case 19: { |
| 9120 | global::Google.ProtocolBuffers.TestProtos.TestDupFieldNumber.Types.Foo.Builder subBuilder = global::Google.ProtocolBuffers.TestProtos.TestDupFieldNumber.Types.Foo.CreateBuilder(); |
| 9121 | if (HasFoo) { |
| 9122 | subBuilder.MergeFrom(Foo); |
| 9123 | } |
| 9124 | input.ReadGroup(2, subBuilder, extensionRegistry); |
| 9125 | Foo = subBuilder.BuildPartial(); |
| 9126 | break; |
| 9127 | } |
| 9128 | case 27: { |
| 9129 | global::Google.ProtocolBuffers.TestProtos.TestDupFieldNumber.Types.Bar.Builder subBuilder = global::Google.ProtocolBuffers.TestProtos.TestDupFieldNumber.Types.Bar.CreateBuilder(); |
| 9130 | if (HasBar) { |
| 9131 | subBuilder.MergeFrom(Bar); |
| 9132 | } |
| 9133 | input.ReadGroup(3, subBuilder, extensionRegistry); |
| 9134 | Bar = subBuilder.BuildPartial(); |
| 9135 | break; |
| 9136 | } |
| 9137 | } |
| 9138 | } |
| 9139 | } |
| 9140 | |
| 9141 | |
| 9142 | public bool HasA { |
| 9143 | get { return result.HasA; } |
| 9144 | } |
| 9145 | public int A { |
| 9146 | get { return result.A; } |
| 9147 | set { SetA(value); } |
| 9148 | } |
| 9149 | public Builder SetA(int value) { |
| 9150 | result.hasA = true; |
| 9151 | result.a_ = value; |
| 9152 | return this; |
| 9153 | } |
| 9154 | public Builder ClearA() { |
| 9155 | result.hasA = false; |
| 9156 | result.a_ = 0; |
| 9157 | return this; |
| 9158 | } |
| 9159 | |
| 9160 | public bool HasFoo { |
| 9161 | get { return result.HasFoo; } |
| 9162 | } |
| 9163 | public global::Google.ProtocolBuffers.TestProtos.TestDupFieldNumber.Types.Foo Foo { |
| 9164 | get { return result.Foo; } |
| 9165 | set { SetFoo(value); } |
| 9166 | } |
| 9167 | public Builder SetFoo(global::Google.ProtocolBuffers.TestProtos.TestDupFieldNumber.Types.Foo value) { |
| 9168 | result.hasFoo = true; |
| 9169 | result.foo_ = value; |
| 9170 | return this; |
| 9171 | } |
| 9172 | public Builder SetFoo(global::Google.ProtocolBuffers.TestProtos.TestDupFieldNumber.Types.Foo.Builder builderForValue) { |
| 9173 | result.hasFoo = true; |
| 9174 | result.foo_ = builderForValue.Build(); |
| 9175 | return this; |
| 9176 | } |
| 9177 | public Builder MergeFoo(global::Google.ProtocolBuffers.TestProtos.TestDupFieldNumber.Types.Foo value) { |
| 9178 | if (result.HasFoo && |
| 9179 | result.foo_ != global::Google.ProtocolBuffers.TestProtos.TestDupFieldNumber.Types.Foo.DefaultInstance) { |
| 9180 | result.foo_ = global::Google.ProtocolBuffers.TestProtos.TestDupFieldNumber.Types.Foo.CreateBuilder(result.foo_).MergeFrom(value).BuildPartial(); |
| 9181 | } else { |
| 9182 | result.foo_ = value; |
| 9183 | } |
| 9184 | result.hasFoo = true; |
| 9185 | return this; |
| 9186 | } |
| 9187 | public Builder ClearFoo() { |
| 9188 | result.hasFoo = false; |
| 9189 | result.foo_ = global::Google.ProtocolBuffers.TestProtos.TestDupFieldNumber.Types.Foo.DefaultInstance; |
| 9190 | return this; |
| 9191 | } |
| 9192 | |
| 9193 | public bool HasBar { |
| 9194 | get { return result.HasBar; } |
| 9195 | } |
| 9196 | public global::Google.ProtocolBuffers.TestProtos.TestDupFieldNumber.Types.Bar Bar { |
| 9197 | get { return result.Bar; } |
| 9198 | set { SetBar(value); } |
| 9199 | } |
| 9200 | public Builder SetBar(global::Google.ProtocolBuffers.TestProtos.TestDupFieldNumber.Types.Bar value) { |
| 9201 | result.hasBar = true; |
| 9202 | result.bar_ = value; |
| 9203 | return this; |
| 9204 | } |
| 9205 | public Builder SetBar(global::Google.ProtocolBuffers.TestProtos.TestDupFieldNumber.Types.Bar.Builder builderForValue) { |
| 9206 | result.hasBar = true; |
| 9207 | result.bar_ = builderForValue.Build(); |
| 9208 | return this; |
| 9209 | } |
| 9210 | public Builder MergeBar(global::Google.ProtocolBuffers.TestProtos.TestDupFieldNumber.Types.Bar value) { |
| 9211 | if (result.HasBar && |
| 9212 | result.bar_ != global::Google.ProtocolBuffers.TestProtos.TestDupFieldNumber.Types.Bar.DefaultInstance) { |
| 9213 | result.bar_ = global::Google.ProtocolBuffers.TestProtos.TestDupFieldNumber.Types.Bar.CreateBuilder(result.bar_).MergeFrom(value).BuildPartial(); |
| 9214 | } else { |
| 9215 | result.bar_ = value; |
| 9216 | } |
| 9217 | result.hasBar = true; |
| 9218 | return this; |
| 9219 | } |
| 9220 | public Builder ClearBar() { |
| 9221 | result.hasBar = false; |
| 9222 | result.bar_ = global::Google.ProtocolBuffers.TestProtos.TestDupFieldNumber.Types.Bar.DefaultInstance; |
| 9223 | return this; |
| 9224 | } |
| 9225 | } |
| 9226 | } |
| 9227 | |
| 9228 | public sealed partial class TestNestedMessageHasBits : pb::GeneratedMessage<TestNestedMessageHasBits, TestNestedMessageHasBits.Builder> { |
| 9229 | private static readonly TestNestedMessageHasBits defaultInstance = new Builder().BuildPartial(); |
| 9230 | public static TestNestedMessageHasBits DefaultInstance { |
| 9231 | get { return defaultInstance; } |
| 9232 | } |
| 9233 | |
| 9234 | public override TestNestedMessageHasBits DefaultInstanceForType { |
| 9235 | get { return defaultInstance; } |
| 9236 | } |
| 9237 | |
| 9238 | protected override TestNestedMessageHasBits ThisMessage { |
| 9239 | get { return this; } |
| 9240 | } |
| 9241 | |
| 9242 | public static pbd::MessageDescriptor Descriptor { |
| 9243 | get { return global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.internal__static_protobuf_unittest_TestNestedMessageHasBits__Descriptor; } |
| 9244 | } |
| 9245 | |
| 9246 | protected override pb::FieldAccess.FieldAccessorTable<TestNestedMessageHasBits, TestNestedMessageHasBits.Builder> InternalFieldAccessors { |
| 9247 | get { return global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.internal__static_protobuf_unittest_TestNestedMessageHasBits__FieldAccessorTable; } |
| 9248 | } |
| 9249 | |
| 9250 | #region Nested types |
| 9251 | public static class Types { |
| 9252 | public sealed partial class NestedMessage : pb::GeneratedMessage<NestedMessage, NestedMessage.Builder> { |
| 9253 | private static readonly NestedMessage defaultInstance = new Builder().BuildPartial(); |
| 9254 | public static NestedMessage DefaultInstance { |
| 9255 | get { return defaultInstance; } |
| 9256 | } |
| 9257 | |
| 9258 | public override NestedMessage DefaultInstanceForType { |
| 9259 | get { return defaultInstance; } |
| 9260 | } |
| 9261 | |
| 9262 | protected override NestedMessage ThisMessage { |
| 9263 | get { return this; } |
| 9264 | } |
| 9265 | |
| 9266 | public static pbd::MessageDescriptor Descriptor { |
| 9267 | get { return global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.internal__static_protobuf_unittest_TestNestedMessageHasBits_NestedMessage__Descriptor; } |
| 9268 | } |
| 9269 | |
| 9270 | protected override pb::FieldAccess.FieldAccessorTable<NestedMessage, NestedMessage.Builder> InternalFieldAccessors { |
| 9271 | get { return global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.internal__static_protobuf_unittest_TestNestedMessageHasBits_NestedMessage__FieldAccessorTable; } |
| 9272 | } |
| 9273 | |
| 9274 | private pbc::PopsicleList<int> nestedmessageRepeatedInt32_ = new pbc::PopsicleList<int>(); |
| 9275 | public scg::IList<int> NestedmessageRepeatedInt32List { |
| 9276 | get { return pbc::Lists.AsReadOnly(nestedmessageRepeatedInt32_); } |
| 9277 | } |
| 9278 | public int NestedmessageRepeatedInt32Count { |
| 9279 | get { return nestedmessageRepeatedInt32_.Count; } |
| 9280 | } |
| 9281 | public int GetNestedmessageRepeatedInt32(int index) { |
| 9282 | return nestedmessageRepeatedInt32_[index]; |
| 9283 | } |
| 9284 | |
| 9285 | private pbc::PopsicleList<global::Google.ProtocolBuffers.TestProtos.ForeignMessage> nestedmessageRepeatedForeignmessage_ = new pbc::PopsicleList<global::Google.ProtocolBuffers.TestProtos.ForeignMessage>(); |
| 9286 | public scg::IList<global::Google.ProtocolBuffers.TestProtos.ForeignMessage> NestedmessageRepeatedForeignmessageList { |
| 9287 | get { return nestedmessageRepeatedForeignmessage_; } |
| 9288 | } |
| 9289 | public int NestedmessageRepeatedForeignmessageCount { |
| 9290 | get { return nestedmessageRepeatedForeignmessage_.Count; } |
| 9291 | } |
| 9292 | public global::Google.ProtocolBuffers.TestProtos.ForeignMessage GetNestedmessageRepeatedForeignmessage(int index) { |
| 9293 | return nestedmessageRepeatedForeignmessage_[index]; |
| 9294 | } |
| 9295 | |
| 9296 | public override bool IsInitialized { |
| 9297 | get { |
| 9298 | return true; |
| 9299 | } |
| 9300 | } |
| 9301 | |
| 9302 | public override void WriteTo(pb::CodedOutputStream output) { |
| 9303 | foreach (int element in NestedmessageRepeatedInt32List) { |
| 9304 | output.WriteInt32(1, element); |
| 9305 | } |
| 9306 | foreach (global::Google.ProtocolBuffers.TestProtos.ForeignMessage element in NestedmessageRepeatedForeignmessageList) { |
| 9307 | output.WriteMessage(2, element); |
| 9308 | } |
| 9309 | UnknownFields.WriteTo(output); |
| 9310 | } |
| 9311 | |
| 9312 | private int memoizedSerializedSize = -1; |
| 9313 | public override int SerializedSize { |
| 9314 | get { |
| 9315 | int size = memoizedSerializedSize; |
| 9316 | if (size != -1) return size; |
| 9317 | |
| 9318 | size = 0; |
| 9319 | foreach (int element in NestedmessageRepeatedInt32List) { |
| 9320 | size += pb::CodedOutputStream.ComputeInt32Size(1, element); |
| 9321 | } |
| 9322 | foreach (global::Google.ProtocolBuffers.TestProtos.ForeignMessage element in NestedmessageRepeatedForeignmessageList) { |
| 9323 | size += pb::CodedOutputStream.ComputeMessageSize(2, element); |
| 9324 | } |
| 9325 | size += UnknownFields.SerializedSize; |
| 9326 | memoizedSerializedSize = size; |
| 9327 | return size; |
| 9328 | } |
| 9329 | } |
| 9330 | |
| 9331 | public static NestedMessage ParseFrom(pb::ByteString data) { |
| 9332 | return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed(); |
| 9333 | } |
| 9334 | public static NestedMessage ParseFrom(pb::ByteString data, pb::ExtensionRegistry extensionRegistry) { |
| 9335 | return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed(); |
| 9336 | } |
| 9337 | public static NestedMessage ParseFrom(byte[] data) { |
| 9338 | return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed(); |
| 9339 | } |
| 9340 | public static NestedMessage ParseFrom(byte[] data, pb::ExtensionRegistry extensionRegistry) { |
| 9341 | return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed(); |
| 9342 | } |
| 9343 | public static NestedMessage ParseFrom(global::System.IO.Stream input) { |
| 9344 | return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed(); |
| 9345 | } |
| 9346 | public static NestedMessage ParseFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) { |
| 9347 | return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed(); |
| 9348 | } |
| 9349 | public static NestedMessage ParseFrom(pb::CodedInputStream input) { |
| 9350 | return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed(); |
| 9351 | } |
| 9352 | public static NestedMessage ParseFrom(pb::CodedInputStream input, pb::ExtensionRegistry extensionRegistry) { |
| 9353 | return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed(); |
| 9354 | } |
| 9355 | public static Builder CreateBuilder() { return new Builder(); } |
| 9356 | public override Builder CreateBuilderForType() { return new Builder(); } |
| 9357 | public static Builder CreateBuilder(NestedMessage prototype) { |
| 9358 | return (Builder) new Builder().MergeFrom(prototype); |
| 9359 | } |
| 9360 | |
| 9361 | public sealed partial class Builder : pb::GeneratedBuilder<NestedMessage, Builder> { |
| 9362 | protected override Builder ThisBuilder { |
| 9363 | get { return this; } |
| 9364 | } |
| 9365 | public Builder() {} |
| 9366 | |
| 9367 | NestedMessage result = new NestedMessage(); |
| 9368 | |
| 9369 | protected override NestedMessage MessageBeingBuilt { |
| 9370 | get { return result; } |
| 9371 | } |
| 9372 | |
| 9373 | public override Builder Clear() { |
| 9374 | result = new NestedMessage(); |
| 9375 | return this; |
| 9376 | } |
| 9377 | |
| 9378 | public override Builder Clone() { |
| 9379 | return new Builder().MergeFrom(result); |
| 9380 | } |
| 9381 | |
| 9382 | public override pbd::MessageDescriptor DescriptorForType { |
| 9383 | get { return NestedMessage.Descriptor; } |
| 9384 | } |
| 9385 | |
| 9386 | public override NestedMessage DefaultInstanceForType { |
| 9387 | get { return NestedMessage.DefaultInstance; } |
| 9388 | } |
| 9389 | |
| 9390 | public override NestedMessage BuildPartial() { |
| 9391 | result.nestedmessageRepeatedInt32_.MakeReadOnly(); |
| 9392 | result.nestedmessageRepeatedForeignmessage_.MakeReadOnly(); |
| 9393 | NestedMessage returnMe = result; |
| 9394 | result = null; |
| 9395 | return returnMe; |
| 9396 | } |
| 9397 | |
| 9398 | public override Builder MergeFrom(pb::IMessage other) { |
| 9399 | if (other is NestedMessage) { |
| 9400 | return MergeFrom((NestedMessage) other); |
| 9401 | } else { |
| 9402 | base.MergeFrom(other); |
| 9403 | return this; |
| 9404 | } |
| 9405 | } |
| 9406 | |
| 9407 | public override Builder MergeFrom(NestedMessage other) { |
| 9408 | if (other == NestedMessage.DefaultInstance) return this; |
| 9409 | if (other.nestedmessageRepeatedInt32_.Count != 0) { |
| 9410 | base.AddRange(other.nestedmessageRepeatedInt32_, result.nestedmessageRepeatedInt32_); |
| 9411 | } |
| 9412 | if (other.nestedmessageRepeatedForeignmessage_.Count != 0) { |
| 9413 | base.AddRange(other.nestedmessageRepeatedForeignmessage_, result.nestedmessageRepeatedForeignmessage_); |
| 9414 | } |
| 9415 | this.MergeUnknownFields(other.UnknownFields); |
| 9416 | return this; |
| 9417 | } |
| 9418 | |
| 9419 | public override Builder MergeFrom(pb::CodedInputStream input) { |
| 9420 | return MergeFrom(input, pb::ExtensionRegistry.Empty); |
| 9421 | } |
| 9422 | |
| 9423 | public override Builder MergeFrom(pb::CodedInputStream input, pb::ExtensionRegistry extensionRegistry) { |
| 9424 | pb::UnknownFieldSet.Builder unknownFields = pb::UnknownFieldSet.CreateBuilder(this.UnknownFields); |
| 9425 | while (true) { |
| 9426 | uint tag = input.ReadTag(); |
| 9427 | switch (tag) { |
| 9428 | case 0: { |
| 9429 | this.UnknownFields = unknownFields.Build(); |
| 9430 | return this; |
| 9431 | } |
| 9432 | default: { |
| 9433 | if (!ParseUnknownField(input, unknownFields, extensionRegistry, tag)) { |
| 9434 | this.UnknownFields = unknownFields.Build(); |
| 9435 | return this; |
| 9436 | } |
| 9437 | break; |
| 9438 | } |
| 9439 | case 8: { |
| 9440 | AddNestedmessageRepeatedInt32(input.ReadInt32()); |
| 9441 | break; |
| 9442 | } |
| 9443 | case 18: { |
| 9444 | global::Google.ProtocolBuffers.TestProtos.ForeignMessage.Builder subBuilder = global::Google.ProtocolBuffers.TestProtos.ForeignMessage.CreateBuilder(); |
| 9445 | input.ReadMessage(subBuilder, extensionRegistry); |
| 9446 | AddNestedmessageRepeatedForeignmessage(subBuilder.BuildPartial()); |
| 9447 | break; |
| 9448 | } |
| 9449 | } |
| 9450 | } |
| 9451 | } |
| 9452 | |
| 9453 | |
| 9454 | public scg::IList<int> NestedmessageRepeatedInt32List { |
| 9455 | get { return result.nestedmessageRepeatedInt32_; } |
| 9456 | } |
| 9457 | public int NestedmessageRepeatedInt32Count { |
| 9458 | get { return result.NestedmessageRepeatedInt32Count; } |
| 9459 | } |
| 9460 | public int GetNestedmessageRepeatedInt32(int index) { |
| 9461 | return result.GetNestedmessageRepeatedInt32(index); |
| 9462 | } |
| 9463 | public Builder SetNestedmessageRepeatedInt32(int index, int value) { |
| 9464 | result.nestedmessageRepeatedInt32_[index] = value; |
| 9465 | return this; |
| 9466 | } |
| 9467 | public Builder AddNestedmessageRepeatedInt32(int value) { |
| 9468 | result.nestedmessageRepeatedInt32_.Add(value); |
| 9469 | return this; |
| 9470 | } |
| 9471 | public Builder AddRangeNestedmessageRepeatedInt32(scg::IEnumerable<int> values) { |
| 9472 | base.AddRange(values, result.nestedmessageRepeatedInt32_); |
| 9473 | return this; |
| 9474 | } |
| 9475 | public Builder ClearNestedmessageRepeatedInt32() { |
| 9476 | result.nestedmessageRepeatedInt32_.Clear(); |
| 9477 | return this; |
| 9478 | } |
| 9479 | |
| 9480 | public scg::IList<global::Google.ProtocolBuffers.TestProtos.ForeignMessage> NestedmessageRepeatedForeignmessageList { |
| 9481 | get { return result.nestedmessageRepeatedForeignmessage_; } |
| 9482 | } |
| 9483 | public int NestedmessageRepeatedForeignmessageCount { |
| 9484 | get { return result.NestedmessageRepeatedForeignmessageCount; } |
| 9485 | } |
| 9486 | public global::Google.ProtocolBuffers.TestProtos.ForeignMessage GetNestedmessageRepeatedForeignmessage(int index) { |
| 9487 | return result.GetNestedmessageRepeatedForeignmessage(index); |
| 9488 | } |
| 9489 | public Builder SetNestedmessageRepeatedForeignmessage(int index, global::Google.ProtocolBuffers.TestProtos.ForeignMessage value) { |
| 9490 | result.nestedmessageRepeatedForeignmessage_[index] = value; |
| 9491 | return this; |
| 9492 | } |
| 9493 | public Builder SetNestedmessageRepeatedForeignmessage(int index, global::Google.ProtocolBuffers.TestProtos.ForeignMessage.Builder builderForValue) { |
| 9494 | result.nestedmessageRepeatedForeignmessage_[index] = builderForValue.Build(); |
| 9495 | return this; |
| 9496 | } |
| 9497 | public Builder AddNestedmessageRepeatedForeignmessage(global::Google.ProtocolBuffers.TestProtos.ForeignMessage value) { |
| 9498 | result.nestedmessageRepeatedForeignmessage_.Add(value); |
| 9499 | return this; |
| 9500 | } |
| 9501 | public Builder AddNestedmessageRepeatedForeignmessage(global::Google.ProtocolBuffers.TestProtos.ForeignMessage.Builder builderForValue) { |
| 9502 | result.nestedmessageRepeatedForeignmessage_.Add(builderForValue.Build()); |
| 9503 | return this; |
| 9504 | } |
| 9505 | public Builder AddRangeNestedmessageRepeatedForeignmessage(scg::IEnumerable<global::Google.ProtocolBuffers.TestProtos.ForeignMessage> values) { |
| 9506 | base.AddRange(values, result.nestedmessageRepeatedForeignmessage_); |
| 9507 | return this; |
| 9508 | } |
| 9509 | public Builder ClearNestedmessageRepeatedForeignmessage() { |
| 9510 | result.nestedmessageRepeatedForeignmessage_.Clear(); |
| 9511 | return this; |
| 9512 | } |
| 9513 | } |
| 9514 | } |
| 9515 | |
| 9516 | } |
| 9517 | #endregion |
| 9518 | |
| 9519 | private bool hasOptionalNestedMessage; |
| 9520 | private global::Google.ProtocolBuffers.TestProtos.TestNestedMessageHasBits.Types.NestedMessage optionalNestedMessage_ = global::Google.ProtocolBuffers.TestProtos.TestNestedMessageHasBits.Types.NestedMessage.DefaultInstance; |
| 9521 | public bool HasOptionalNestedMessage { |
| 9522 | get { return hasOptionalNestedMessage; } |
| 9523 | } |
| 9524 | public global::Google.ProtocolBuffers.TestProtos.TestNestedMessageHasBits.Types.NestedMessage OptionalNestedMessage { |
| 9525 | get { return optionalNestedMessage_; } |
| 9526 | } |
| 9527 | |
| 9528 | public override bool IsInitialized { |
| 9529 | get { |
| 9530 | return true; |
| 9531 | } |
| 9532 | } |
| 9533 | |
| 9534 | public override void WriteTo(pb::CodedOutputStream output) { |
| 9535 | if (HasOptionalNestedMessage) { |
| 9536 | output.WriteMessage(1, OptionalNestedMessage); |
| 9537 | } |
| 9538 | UnknownFields.WriteTo(output); |
| 9539 | } |
| 9540 | |
| 9541 | private int memoizedSerializedSize = -1; |
| 9542 | public override int SerializedSize { |
| 9543 | get { |
| 9544 | int size = memoizedSerializedSize; |
| 9545 | if (size != -1) return size; |
| 9546 | |
| 9547 | size = 0; |
| 9548 | if (HasOptionalNestedMessage) { |
| 9549 | size += pb::CodedOutputStream.ComputeMessageSize(1, OptionalNestedMessage); |
| 9550 | } |
| 9551 | size += UnknownFields.SerializedSize; |
| 9552 | memoizedSerializedSize = size; |
| 9553 | return size; |
| 9554 | } |
| 9555 | } |
| 9556 | |
| 9557 | public static TestNestedMessageHasBits ParseFrom(pb::ByteString data) { |
| 9558 | return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed(); |
| 9559 | } |
| 9560 | public static TestNestedMessageHasBits ParseFrom(pb::ByteString data, pb::ExtensionRegistry extensionRegistry) { |
| 9561 | return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed(); |
| 9562 | } |
| 9563 | public static TestNestedMessageHasBits ParseFrom(byte[] data) { |
| 9564 | return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed(); |
| 9565 | } |
| 9566 | public static TestNestedMessageHasBits ParseFrom(byte[] data, pb::ExtensionRegistry extensionRegistry) { |
| 9567 | return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed(); |
| 9568 | } |
| 9569 | public static TestNestedMessageHasBits ParseFrom(global::System.IO.Stream input) { |
| 9570 | return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed(); |
| 9571 | } |
| 9572 | public static TestNestedMessageHasBits ParseFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) { |
| 9573 | return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed(); |
| 9574 | } |
| 9575 | public static TestNestedMessageHasBits ParseFrom(pb::CodedInputStream input) { |
| 9576 | return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed(); |
| 9577 | } |
| 9578 | public static TestNestedMessageHasBits ParseFrom(pb::CodedInputStream input, pb::ExtensionRegistry extensionRegistry) { |
| 9579 | return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed(); |
| 9580 | } |
| 9581 | public static Builder CreateBuilder() { return new Builder(); } |
| 9582 | public override Builder CreateBuilderForType() { return new Builder(); } |
| 9583 | public static Builder CreateBuilder(TestNestedMessageHasBits prototype) { |
| 9584 | return (Builder) new Builder().MergeFrom(prototype); |
| 9585 | } |
| 9586 | |
| 9587 | public sealed partial class Builder : pb::GeneratedBuilder<TestNestedMessageHasBits, Builder> { |
| 9588 | protected override Builder ThisBuilder { |
| 9589 | get { return this; } |
| 9590 | } |
| 9591 | public Builder() {} |
| 9592 | |
| 9593 | TestNestedMessageHasBits result = new TestNestedMessageHasBits(); |
| 9594 | |
| 9595 | protected override TestNestedMessageHasBits MessageBeingBuilt { |
| 9596 | get { return result; } |
| 9597 | } |
| 9598 | |
| 9599 | public override Builder Clear() { |
| 9600 | result = new TestNestedMessageHasBits(); |
| 9601 | return this; |
| 9602 | } |
| 9603 | |
| 9604 | public override Builder Clone() { |
| 9605 | return new Builder().MergeFrom(result); |
| 9606 | } |
| 9607 | |
| 9608 | public override pbd::MessageDescriptor DescriptorForType { |
| 9609 | get { return TestNestedMessageHasBits.Descriptor; } |
| 9610 | } |
| 9611 | |
| 9612 | public override TestNestedMessageHasBits DefaultInstanceForType { |
| 9613 | get { return TestNestedMessageHasBits.DefaultInstance; } |
| 9614 | } |
| 9615 | |
| 9616 | public override TestNestedMessageHasBits BuildPartial() { |
| 9617 | TestNestedMessageHasBits returnMe = result; |
| 9618 | result = null; |
| 9619 | return returnMe; |
| 9620 | } |
| 9621 | |
| 9622 | public override Builder MergeFrom(pb::IMessage other) { |
| 9623 | if (other is TestNestedMessageHasBits) { |
| 9624 | return MergeFrom((TestNestedMessageHasBits) other); |
| 9625 | } else { |
| 9626 | base.MergeFrom(other); |
| 9627 | return this; |
| 9628 | } |
| 9629 | } |
| 9630 | |
| 9631 | public override Builder MergeFrom(TestNestedMessageHasBits other) { |
| 9632 | if (other == TestNestedMessageHasBits.DefaultInstance) return this; |
| 9633 | if (other.HasOptionalNestedMessage) { |
| 9634 | MergeOptionalNestedMessage(other.OptionalNestedMessage); |
| 9635 | } |
| 9636 | this.MergeUnknownFields(other.UnknownFields); |
| 9637 | return this; |
| 9638 | } |
| 9639 | |
| 9640 | public override Builder MergeFrom(pb::CodedInputStream input) { |
| 9641 | return MergeFrom(input, pb::ExtensionRegistry.Empty); |
| 9642 | } |
| 9643 | |
| 9644 | public override Builder MergeFrom(pb::CodedInputStream input, pb::ExtensionRegistry extensionRegistry) { |
| 9645 | pb::UnknownFieldSet.Builder unknownFields = pb::UnknownFieldSet.CreateBuilder(this.UnknownFields); |
| 9646 | while (true) { |
| 9647 | uint tag = input.ReadTag(); |
| 9648 | switch (tag) { |
| 9649 | case 0: { |
| 9650 | this.UnknownFields = unknownFields.Build(); |
| 9651 | return this; |
| 9652 | } |
| 9653 | default: { |
| 9654 | if (!ParseUnknownField(input, unknownFields, extensionRegistry, tag)) { |
| 9655 | this.UnknownFields = unknownFields.Build(); |
| 9656 | return this; |
| 9657 | } |
| 9658 | break; |
| 9659 | } |
| 9660 | case 10: { |
| 9661 | global::Google.ProtocolBuffers.TestProtos.TestNestedMessageHasBits.Types.NestedMessage.Builder subBuilder = global::Google.ProtocolBuffers.TestProtos.TestNestedMessageHasBits.Types.NestedMessage.CreateBuilder(); |
| 9662 | if (HasOptionalNestedMessage) { |
| 9663 | subBuilder.MergeFrom(OptionalNestedMessage); |
| 9664 | } |
| 9665 | input.ReadMessage(subBuilder, extensionRegistry); |
| 9666 | OptionalNestedMessage = subBuilder.BuildPartial(); |
| 9667 | break; |
| 9668 | } |
| 9669 | } |
| 9670 | } |
| 9671 | } |
| 9672 | |
| 9673 | |
| 9674 | public bool HasOptionalNestedMessage { |
| 9675 | get { return result.HasOptionalNestedMessage; } |
| 9676 | } |
| 9677 | public global::Google.ProtocolBuffers.TestProtos.TestNestedMessageHasBits.Types.NestedMessage OptionalNestedMessage { |
| 9678 | get { return result.OptionalNestedMessage; } |
| 9679 | set { SetOptionalNestedMessage(value); } |
| 9680 | } |
| 9681 | public Builder SetOptionalNestedMessage(global::Google.ProtocolBuffers.TestProtos.TestNestedMessageHasBits.Types.NestedMessage value) { |
| 9682 | result.hasOptionalNestedMessage = true; |
| 9683 | result.optionalNestedMessage_ = value; |
| 9684 | return this; |
| 9685 | } |
| 9686 | public Builder SetOptionalNestedMessage(global::Google.ProtocolBuffers.TestProtos.TestNestedMessageHasBits.Types.NestedMessage.Builder builderForValue) { |
| 9687 | result.hasOptionalNestedMessage = true; |
| 9688 | result.optionalNestedMessage_ = builderForValue.Build(); |
| 9689 | return this; |
| 9690 | } |
| 9691 | public Builder MergeOptionalNestedMessage(global::Google.ProtocolBuffers.TestProtos.TestNestedMessageHasBits.Types.NestedMessage value) { |
| 9692 | if (result.HasOptionalNestedMessage && |
| 9693 | result.optionalNestedMessage_ != global::Google.ProtocolBuffers.TestProtos.TestNestedMessageHasBits.Types.NestedMessage.DefaultInstance) { |
| 9694 | result.optionalNestedMessage_ = global::Google.ProtocolBuffers.TestProtos.TestNestedMessageHasBits.Types.NestedMessage.CreateBuilder(result.optionalNestedMessage_).MergeFrom(value).BuildPartial(); |
| 9695 | } else { |
| 9696 | result.optionalNestedMessage_ = value; |
| 9697 | } |
| 9698 | result.hasOptionalNestedMessage = true; |
| 9699 | return this; |
| 9700 | } |
| 9701 | public Builder ClearOptionalNestedMessage() { |
| 9702 | result.hasOptionalNestedMessage = false; |
| 9703 | result.optionalNestedMessage_ = global::Google.ProtocolBuffers.TestProtos.TestNestedMessageHasBits.Types.NestedMessage.DefaultInstance; |
| 9704 | return this; |
| 9705 | } |
| 9706 | } |
| 9707 | } |
| 9708 | |
| 9709 | public sealed partial class TestCamelCaseFieldNames : pb::GeneratedMessage<TestCamelCaseFieldNames, TestCamelCaseFieldNames.Builder> { |
| 9710 | private static readonly TestCamelCaseFieldNames defaultInstance = new Builder().BuildPartial(); |
| 9711 | public static TestCamelCaseFieldNames DefaultInstance { |
| 9712 | get { return defaultInstance; } |
| 9713 | } |
| 9714 | |
| 9715 | public override TestCamelCaseFieldNames DefaultInstanceForType { |
| 9716 | get { return defaultInstance; } |
| 9717 | } |
| 9718 | |
| 9719 | protected override TestCamelCaseFieldNames ThisMessage { |
| 9720 | get { return this; } |
| 9721 | } |
| 9722 | |
| 9723 | public static pbd::MessageDescriptor Descriptor { |
| 9724 | get { return global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.internal__static_protobuf_unittest_TestCamelCaseFieldNames__Descriptor; } |
| 9725 | } |
| 9726 | |
| 9727 | protected override pb::FieldAccess.FieldAccessorTable<TestCamelCaseFieldNames, TestCamelCaseFieldNames.Builder> InternalFieldAccessors { |
| 9728 | get { return global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.internal__static_protobuf_unittest_TestCamelCaseFieldNames__FieldAccessorTable; } |
| 9729 | } |
| 9730 | |
| 9731 | private bool hasPrimitiveField; |
| 9732 | private int primitiveField_ = 0; |
| 9733 | public bool HasPrimitiveField { |
| 9734 | get { return hasPrimitiveField; } |
| 9735 | } |
| 9736 | public int PrimitiveField { |
| 9737 | get { return primitiveField_; } |
| 9738 | } |
| 9739 | |
| 9740 | private bool hasStringField; |
| 9741 | private string stringField_ = ""; |
| 9742 | public bool HasStringField { |
| 9743 | get { return hasStringField; } |
| 9744 | } |
| 9745 | public string StringField { |
| 9746 | get { return stringField_; } |
| 9747 | } |
| 9748 | |
| 9749 | private bool hasEnumField; |
| 9750 | private global::Google.ProtocolBuffers.TestProtos.ForeignEnum enumField_ = global::Google.ProtocolBuffers.TestProtos.ForeignEnum.FOREIGN_FOO; |
| 9751 | public bool HasEnumField { |
| 9752 | get { return hasEnumField; } |
| 9753 | } |
| 9754 | public global::Google.ProtocolBuffers.TestProtos.ForeignEnum EnumField { |
| 9755 | get { return enumField_; } |
| 9756 | } |
| 9757 | |
| 9758 | private bool hasMessageField; |
| 9759 | private global::Google.ProtocolBuffers.TestProtos.ForeignMessage messageField_ = global::Google.ProtocolBuffers.TestProtos.ForeignMessage.DefaultInstance; |
| 9760 | public bool HasMessageField { |
| 9761 | get { return hasMessageField; } |
| 9762 | } |
| 9763 | public global::Google.ProtocolBuffers.TestProtos.ForeignMessage MessageField { |
| 9764 | get { return messageField_; } |
| 9765 | } |
| 9766 | |
| 9767 | private bool hasStringPieceField; |
| 9768 | private string stringPieceField_ = ""; |
| 9769 | public bool HasStringPieceField { |
| 9770 | get { return hasStringPieceField; } |
| 9771 | } |
| 9772 | public string StringPieceField { |
| 9773 | get { return stringPieceField_; } |
| 9774 | } |
| 9775 | |
| 9776 | private bool hasCordField; |
| 9777 | private string cordField_ = ""; |
| 9778 | public bool HasCordField { |
| 9779 | get { return hasCordField; } |
| 9780 | } |
| 9781 | public string CordField { |
| 9782 | get { return cordField_; } |
| 9783 | } |
| 9784 | |
| 9785 | private pbc::PopsicleList<int> repeatedPrimitiveField_ = new pbc::PopsicleList<int>(); |
| 9786 | public scg::IList<int> RepeatedPrimitiveFieldList { |
| 9787 | get { return pbc::Lists.AsReadOnly(repeatedPrimitiveField_); } |
| 9788 | } |
| 9789 | public int RepeatedPrimitiveFieldCount { |
| 9790 | get { return repeatedPrimitiveField_.Count; } |
| 9791 | } |
| 9792 | public int GetRepeatedPrimitiveField(int index) { |
| 9793 | return repeatedPrimitiveField_[index]; |
| 9794 | } |
| 9795 | |
| 9796 | private pbc::PopsicleList<string> repeatedStringField_ = new pbc::PopsicleList<string>(); |
| 9797 | public scg::IList<string> RepeatedStringFieldList { |
| 9798 | get { return pbc::Lists.AsReadOnly(repeatedStringField_); } |
| 9799 | } |
| 9800 | public int RepeatedStringFieldCount { |
| 9801 | get { return repeatedStringField_.Count; } |
| 9802 | } |
| 9803 | public string GetRepeatedStringField(int index) { |
| 9804 | return repeatedStringField_[index]; |
| 9805 | } |
| 9806 | |
| 9807 | private pbc::PopsicleList<global::Google.ProtocolBuffers.TestProtos.ForeignEnum> repeatedEnumField_ = new pbc::PopsicleList<global::Google.ProtocolBuffers.TestProtos.ForeignEnum>(); |
| 9808 | public scg::IList<global::Google.ProtocolBuffers.TestProtos.ForeignEnum> RepeatedEnumFieldList { |
| 9809 | get { return pbc::Lists.AsReadOnly(repeatedEnumField_); } |
| 9810 | } |
| 9811 | public int RepeatedEnumFieldCount { |
| 9812 | get { return repeatedEnumField_.Count; } |
| 9813 | } |
| 9814 | public global::Google.ProtocolBuffers.TestProtos.ForeignEnum GetRepeatedEnumField(int index) { |
| 9815 | return repeatedEnumField_[index]; |
| 9816 | } |
| 9817 | |
| 9818 | private pbc::PopsicleList<global::Google.ProtocolBuffers.TestProtos.ForeignMessage> repeatedMessageField_ = new pbc::PopsicleList<global::Google.ProtocolBuffers.TestProtos.ForeignMessage>(); |
| 9819 | public scg::IList<global::Google.ProtocolBuffers.TestProtos.ForeignMessage> RepeatedMessageFieldList { |
| 9820 | get { return repeatedMessageField_; } |
| 9821 | } |
| 9822 | public int RepeatedMessageFieldCount { |
| 9823 | get { return repeatedMessageField_.Count; } |
| 9824 | } |
| 9825 | public global::Google.ProtocolBuffers.TestProtos.ForeignMessage GetRepeatedMessageField(int index) { |
| 9826 | return repeatedMessageField_[index]; |
| 9827 | } |
| 9828 | |
| 9829 | private pbc::PopsicleList<string> repeatedStringPieceField_ = new pbc::PopsicleList<string>(); |
| 9830 | public scg::IList<string> RepeatedStringPieceFieldList { |
| 9831 | get { return pbc::Lists.AsReadOnly(repeatedStringPieceField_); } |
| 9832 | } |
| 9833 | public int RepeatedStringPieceFieldCount { |
| 9834 | get { return repeatedStringPieceField_.Count; } |
| 9835 | } |
| 9836 | public string GetRepeatedStringPieceField(int index) { |
| 9837 | return repeatedStringPieceField_[index]; |
| 9838 | } |
| 9839 | |
| 9840 | private pbc::PopsicleList<string> repeatedCordField_ = new pbc::PopsicleList<string>(); |
| 9841 | public scg::IList<string> RepeatedCordFieldList { |
| 9842 | get { return pbc::Lists.AsReadOnly(repeatedCordField_); } |
| 9843 | } |
| 9844 | public int RepeatedCordFieldCount { |
| 9845 | get { return repeatedCordField_.Count; } |
| 9846 | } |
| 9847 | public string GetRepeatedCordField(int index) { |
| 9848 | return repeatedCordField_[index]; |
| 9849 | } |
| 9850 | |
| 9851 | public override bool IsInitialized { |
| 9852 | get { |
| 9853 | return true; |
| 9854 | } |
| 9855 | } |
| 9856 | |
| 9857 | public override void WriteTo(pb::CodedOutputStream output) { |
| 9858 | if (HasPrimitiveField) { |
| 9859 | output.WriteInt32(1, PrimitiveField); |
| 9860 | } |
| 9861 | if (HasStringField) { |
| 9862 | output.WriteString(2, StringField); |
| 9863 | } |
| 9864 | if (HasEnumField) { |
| 9865 | output.WriteEnum(3, (int) EnumField); |
| 9866 | } |
| 9867 | if (HasMessageField) { |
| 9868 | output.WriteMessage(4, MessageField); |
| 9869 | } |
| 9870 | if (HasStringPieceField) { |
| 9871 | output.WriteString(5, StringPieceField); |
| 9872 | } |
| 9873 | if (HasCordField) { |
| 9874 | output.WriteString(6, CordField); |
| 9875 | } |
| 9876 | foreach (int element in RepeatedPrimitiveFieldList) { |
| 9877 | output.WriteInt32(7, element); |
| 9878 | } |
| 9879 | foreach (string element in RepeatedStringFieldList) { |
| 9880 | output.WriteString(8, element); |
| 9881 | } |
| 9882 | foreach (global::Google.ProtocolBuffers.TestProtos.ForeignEnum element in RepeatedEnumFieldList) { |
| 9883 | output.WriteEnum(9, (int) element); |
| 9884 | } |
| 9885 | foreach (global::Google.ProtocolBuffers.TestProtos.ForeignMessage element in RepeatedMessageFieldList) { |
| 9886 | output.WriteMessage(10, element); |
| 9887 | } |
| 9888 | foreach (string element in RepeatedStringPieceFieldList) { |
| 9889 | output.WriteString(11, element); |
| 9890 | } |
| 9891 | foreach (string element in RepeatedCordFieldList) { |
| 9892 | output.WriteString(12, element); |
| 9893 | } |
| 9894 | UnknownFields.WriteTo(output); |
| 9895 | } |
| 9896 | |
| 9897 | private int memoizedSerializedSize = -1; |
| 9898 | public override int SerializedSize { |
| 9899 | get { |
| 9900 | int size = memoizedSerializedSize; |
| 9901 | if (size != -1) return size; |
| 9902 | |
| 9903 | size = 0; |
| 9904 | if (HasPrimitiveField) { |
| 9905 | size += pb::CodedOutputStream.ComputeInt32Size(1, PrimitiveField); |
| 9906 | } |
| 9907 | if (HasStringField) { |
| 9908 | size += pb::CodedOutputStream.ComputeStringSize(2, StringField); |
| 9909 | } |
| 9910 | if (HasEnumField) { |
| 9911 | size += pb::CodedOutputStream.ComputeEnumSize(3, (int) EnumField); |
| 9912 | } |
| 9913 | if (HasMessageField) { |
| 9914 | size += pb::CodedOutputStream.ComputeMessageSize(4, MessageField); |
| 9915 | } |
| 9916 | if (HasStringPieceField) { |
| 9917 | size += pb::CodedOutputStream.ComputeStringSize(5, StringPieceField); |
| 9918 | } |
| 9919 | if (HasCordField) { |
| 9920 | size += pb::CodedOutputStream.ComputeStringSize(6, CordField); |
| 9921 | } |
| 9922 | foreach (int element in RepeatedPrimitiveFieldList) { |
| 9923 | size += pb::CodedOutputStream.ComputeInt32Size(7, element); |
| 9924 | } |
| 9925 | foreach (string element in RepeatedStringFieldList) { |
| 9926 | size += pb::CodedOutputStream.ComputeStringSize(8, element); |
| 9927 | } |
| 9928 | foreach (global::Google.ProtocolBuffers.TestProtos.ForeignEnum element in RepeatedEnumFieldList) { |
| 9929 | size += pb::CodedOutputStream.ComputeEnumSize(9, (int) element); |
| 9930 | } |
| 9931 | foreach (global::Google.ProtocolBuffers.TestProtos.ForeignMessage element in RepeatedMessageFieldList) { |
| 9932 | size += pb::CodedOutputStream.ComputeMessageSize(10, element); |
| 9933 | } |
| 9934 | foreach (string element in RepeatedStringPieceFieldList) { |
| 9935 | size += pb::CodedOutputStream.ComputeStringSize(11, element); |
| 9936 | } |
| 9937 | foreach (string element in RepeatedCordFieldList) { |
| 9938 | size += pb::CodedOutputStream.ComputeStringSize(12, element); |
| 9939 | } |
| 9940 | size += UnknownFields.SerializedSize; |
| 9941 | memoizedSerializedSize = size; |
| 9942 | return size; |
| 9943 | } |
| 9944 | } |
| 9945 | |
| 9946 | public static TestCamelCaseFieldNames ParseFrom(pb::ByteString data) { |
| 9947 | return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed(); |
| 9948 | } |
| 9949 | public static TestCamelCaseFieldNames ParseFrom(pb::ByteString data, pb::ExtensionRegistry extensionRegistry) { |
| 9950 | return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed(); |
| 9951 | } |
| 9952 | public static TestCamelCaseFieldNames ParseFrom(byte[] data) { |
| 9953 | return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed(); |
| 9954 | } |
| 9955 | public static TestCamelCaseFieldNames ParseFrom(byte[] data, pb::ExtensionRegistry extensionRegistry) { |
| 9956 | return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed(); |
| 9957 | } |
| 9958 | public static TestCamelCaseFieldNames ParseFrom(global::System.IO.Stream input) { |
| 9959 | return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed(); |
| 9960 | } |
| 9961 | public static TestCamelCaseFieldNames ParseFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) { |
| 9962 | return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed(); |
| 9963 | } |
| 9964 | public static TestCamelCaseFieldNames ParseFrom(pb::CodedInputStream input) { |
| 9965 | return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed(); |
| 9966 | } |
| 9967 | public static TestCamelCaseFieldNames ParseFrom(pb::CodedInputStream input, pb::ExtensionRegistry extensionRegistry) { |
| 9968 | return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed(); |
| 9969 | } |
| 9970 | public static Builder CreateBuilder() { return new Builder(); } |
| 9971 | public override Builder CreateBuilderForType() { return new Builder(); } |
| 9972 | public static Builder CreateBuilder(TestCamelCaseFieldNames prototype) { |
| 9973 | return (Builder) new Builder().MergeFrom(prototype); |
| 9974 | } |
| 9975 | |
| 9976 | public sealed partial class Builder : pb::GeneratedBuilder<TestCamelCaseFieldNames, Builder> { |
| 9977 | protected override Builder ThisBuilder { |
| 9978 | get { return this; } |
| 9979 | } |
| 9980 | public Builder() {} |
| 9981 | |
| 9982 | TestCamelCaseFieldNames result = new TestCamelCaseFieldNames(); |
| 9983 | |
| 9984 | protected override TestCamelCaseFieldNames MessageBeingBuilt { |
| 9985 | get { return result; } |
| 9986 | } |
| 9987 | |
| 9988 | public override Builder Clear() { |
| 9989 | result = new TestCamelCaseFieldNames(); |
| 9990 | return this; |
| 9991 | } |
| 9992 | |
| 9993 | public override Builder Clone() { |
| 9994 | return new Builder().MergeFrom(result); |
| 9995 | } |
| 9996 | |
| 9997 | public override pbd::MessageDescriptor DescriptorForType { |
| 9998 | get { return TestCamelCaseFieldNames.Descriptor; } |
| 9999 | } |
| 10000 | |
| 10001 | public override TestCamelCaseFieldNames DefaultInstanceForType { |
| 10002 | get { return TestCamelCaseFieldNames.DefaultInstance; } |
| 10003 | } |
| 10004 | |
| 10005 | public override TestCamelCaseFieldNames BuildPartial() { |
| 10006 | result.repeatedPrimitiveField_.MakeReadOnly(); |
| 10007 | result.repeatedStringField_.MakeReadOnly(); |
| 10008 | result.repeatedEnumField_.MakeReadOnly(); |
| 10009 | result.repeatedMessageField_.MakeReadOnly(); |
| 10010 | result.repeatedStringPieceField_.MakeReadOnly(); |
| 10011 | result.repeatedCordField_.MakeReadOnly(); |
| 10012 | TestCamelCaseFieldNames returnMe = result; |
| 10013 | result = null; |
| 10014 | return returnMe; |
| 10015 | } |
| 10016 | |
| 10017 | public override Builder MergeFrom(pb::IMessage other) { |
| 10018 | if (other is TestCamelCaseFieldNames) { |
| 10019 | return MergeFrom((TestCamelCaseFieldNames) other); |
| 10020 | } else { |
| 10021 | base.MergeFrom(other); |
| 10022 | return this; |
| 10023 | } |
| 10024 | } |
| 10025 | |
| 10026 | public override Builder MergeFrom(TestCamelCaseFieldNames other) { |
| 10027 | if (other == TestCamelCaseFieldNames.DefaultInstance) return this; |
| 10028 | if (other.HasPrimitiveField) { |
| 10029 | PrimitiveField = other.PrimitiveField; |
| 10030 | } |
| 10031 | if (other.HasStringField) { |
| 10032 | StringField = other.StringField; |
| 10033 | } |
| 10034 | if (other.HasEnumField) { |
| 10035 | EnumField = other.EnumField; |
| 10036 | } |
| 10037 | if (other.HasMessageField) { |
| 10038 | MergeMessageField(other.MessageField); |
| 10039 | } |
| 10040 | if (other.HasStringPieceField) { |
| 10041 | StringPieceField = other.StringPieceField; |
| 10042 | } |
| 10043 | if (other.HasCordField) { |
| 10044 | CordField = other.CordField; |
| 10045 | } |
| 10046 | if (other.repeatedPrimitiveField_.Count != 0) { |
| 10047 | base.AddRange(other.repeatedPrimitiveField_, result.repeatedPrimitiveField_); |
| 10048 | } |
| 10049 | if (other.repeatedStringField_.Count != 0) { |
| 10050 | base.AddRange(other.repeatedStringField_, result.repeatedStringField_); |
| 10051 | } |
| 10052 | if (other.repeatedEnumField_.Count != 0) { |
| 10053 | base.AddRange(other.repeatedEnumField_, result.repeatedEnumField_); |
| 10054 | } |
| 10055 | if (other.repeatedMessageField_.Count != 0) { |
| 10056 | base.AddRange(other.repeatedMessageField_, result.repeatedMessageField_); |
| 10057 | } |
| 10058 | if (other.repeatedStringPieceField_.Count != 0) { |
| 10059 | base.AddRange(other.repeatedStringPieceField_, result.repeatedStringPieceField_); |
| 10060 | } |
| 10061 | if (other.repeatedCordField_.Count != 0) { |
| 10062 | base.AddRange(other.repeatedCordField_, result.repeatedCordField_); |
| 10063 | } |
| 10064 | this.MergeUnknownFields(other.UnknownFields); |
| 10065 | return this; |
| 10066 | } |
| 10067 | |
| 10068 | public override Builder MergeFrom(pb::CodedInputStream input) { |
| 10069 | return MergeFrom(input, pb::ExtensionRegistry.Empty); |
| 10070 | } |
| 10071 | |
| 10072 | public override Builder MergeFrom(pb::CodedInputStream input, pb::ExtensionRegistry extensionRegistry) { |
| 10073 | pb::UnknownFieldSet.Builder unknownFields = pb::UnknownFieldSet.CreateBuilder(this.UnknownFields); |
| 10074 | while (true) { |
| 10075 | uint tag = input.ReadTag(); |
| 10076 | switch (tag) { |
| 10077 | case 0: { |
| 10078 | this.UnknownFields = unknownFields.Build(); |
| 10079 | return this; |
| 10080 | } |
| 10081 | default: { |
| 10082 | if (!ParseUnknownField(input, unknownFields, extensionRegistry, tag)) { |
| 10083 | this.UnknownFields = unknownFields.Build(); |
| 10084 | return this; |
| 10085 | } |
| 10086 | break; |
| 10087 | } |
| 10088 | case 8: { |
| 10089 | PrimitiveField = input.ReadInt32(); |
| 10090 | break; |
| 10091 | } |
| 10092 | case 18: { |
| 10093 | StringField = input.ReadString(); |
| 10094 | break; |
| 10095 | } |
| 10096 | case 24: { |
| 10097 | int rawValue = input.ReadEnum(); |
| 10098 | if (!global::System.Enum.IsDefined(typeof(global::Google.ProtocolBuffers.TestProtos.ForeignEnum), rawValue)) { |
| 10099 | unknownFields.MergeVarintField(3, (ulong) rawValue); |
| 10100 | } else { |
| 10101 | EnumField = (global::Google.ProtocolBuffers.TestProtos.ForeignEnum) rawValue; |
| 10102 | } |
| 10103 | break; |
| 10104 | } |
| 10105 | case 34: { |
| 10106 | global::Google.ProtocolBuffers.TestProtos.ForeignMessage.Builder subBuilder = global::Google.ProtocolBuffers.TestProtos.ForeignMessage.CreateBuilder(); |
| 10107 | if (HasMessageField) { |
| 10108 | subBuilder.MergeFrom(MessageField); |
| 10109 | } |
| 10110 | input.ReadMessage(subBuilder, extensionRegistry); |
| 10111 | MessageField = subBuilder.BuildPartial(); |
| 10112 | break; |
| 10113 | } |
| 10114 | case 42: { |
| 10115 | StringPieceField = input.ReadString(); |
| 10116 | break; |
| 10117 | } |
| 10118 | case 50: { |
| 10119 | CordField = input.ReadString(); |
| 10120 | break; |
| 10121 | } |
| 10122 | case 56: { |
| 10123 | AddRepeatedPrimitiveField(input.ReadInt32()); |
| 10124 | break; |
| 10125 | } |
| 10126 | case 66: { |
| 10127 | AddRepeatedStringField(input.ReadString()); |
| 10128 | break; |
| 10129 | } |
| 10130 | case 72: { |
| 10131 | int rawValue = input.ReadEnum(); |
| 10132 | if (!global::System.Enum.IsDefined(typeof(global::Google.ProtocolBuffers.TestProtos.ForeignEnum), rawValue)) { |
| 10133 | unknownFields.MergeVarintField(9, (ulong) rawValue); |
| 10134 | } else { |
| 10135 | AddRepeatedEnumField((global::Google.ProtocolBuffers.TestProtos.ForeignEnum) rawValue); |
| 10136 | } |
| 10137 | break; |
| 10138 | } |
| 10139 | case 82: { |
| 10140 | global::Google.ProtocolBuffers.TestProtos.ForeignMessage.Builder subBuilder = global::Google.ProtocolBuffers.TestProtos.ForeignMessage.CreateBuilder(); |
| 10141 | input.ReadMessage(subBuilder, extensionRegistry); |
| 10142 | AddRepeatedMessageField(subBuilder.BuildPartial()); |
| 10143 | break; |
| 10144 | } |
| 10145 | case 90: { |
| 10146 | AddRepeatedStringPieceField(input.ReadString()); |
| 10147 | break; |
| 10148 | } |
| 10149 | case 98: { |
| 10150 | AddRepeatedCordField(input.ReadString()); |
| 10151 | break; |
| 10152 | } |
| 10153 | } |
| 10154 | } |
| 10155 | } |
| 10156 | |
| 10157 | |
| 10158 | public bool HasPrimitiveField { |
| 10159 | get { return result.HasPrimitiveField; } |
| 10160 | } |
| 10161 | public int PrimitiveField { |
| 10162 | get { return result.PrimitiveField; } |
| 10163 | set { SetPrimitiveField(value); } |
| 10164 | } |
| 10165 | public Builder SetPrimitiveField(int value) { |
| 10166 | result.hasPrimitiveField = true; |
| 10167 | result.primitiveField_ = value; |
| 10168 | return this; |
| 10169 | } |
| 10170 | public Builder ClearPrimitiveField() { |
| 10171 | result.hasPrimitiveField = false; |
| 10172 | result.primitiveField_ = 0; |
| 10173 | return this; |
| 10174 | } |
| 10175 | |
| 10176 | public bool HasStringField { |
| 10177 | get { return result.HasStringField; } |
| 10178 | } |
| 10179 | public string StringField { |
| 10180 | get { return result.StringField; } |
| 10181 | set { SetStringField(value); } |
| 10182 | } |
| 10183 | public Builder SetStringField(string value) { |
| 10184 | result.hasStringField = true; |
| 10185 | result.stringField_ = value; |
| 10186 | return this; |
| 10187 | } |
| 10188 | public Builder ClearStringField() { |
| 10189 | result.hasStringField = false; |
| 10190 | result.stringField_ = ""; |
| 10191 | return this; |
| 10192 | } |
| 10193 | |
| 10194 | public bool HasEnumField { |
| 10195 | get { return result.HasEnumField; } |
| 10196 | } |
| 10197 | public global::Google.ProtocolBuffers.TestProtos.ForeignEnum EnumField { |
| 10198 | get { return result.EnumField; } |
| 10199 | set { SetEnumField(value); } |
| 10200 | } |
| 10201 | public Builder SetEnumField(global::Google.ProtocolBuffers.TestProtos.ForeignEnum value) { |
| 10202 | result.hasEnumField = true; |
| 10203 | result.enumField_ = value; |
| 10204 | return this; |
| 10205 | } |
| 10206 | public Builder ClearEnumField() { |
| 10207 | result.hasEnumField = false; |
| 10208 | result.enumField_ = global::Google.ProtocolBuffers.TestProtos.ForeignEnum.FOREIGN_FOO; |
| 10209 | return this; |
| 10210 | } |
| 10211 | |
| 10212 | public bool HasMessageField { |
| 10213 | get { return result.HasMessageField; } |
| 10214 | } |
| 10215 | public global::Google.ProtocolBuffers.TestProtos.ForeignMessage MessageField { |
| 10216 | get { return result.MessageField; } |
| 10217 | set { SetMessageField(value); } |
| 10218 | } |
| 10219 | public Builder SetMessageField(global::Google.ProtocolBuffers.TestProtos.ForeignMessage value) { |
| 10220 | result.hasMessageField = true; |
| 10221 | result.messageField_ = value; |
| 10222 | return this; |
| 10223 | } |
| 10224 | public Builder SetMessageField(global::Google.ProtocolBuffers.TestProtos.ForeignMessage.Builder builderForValue) { |
| 10225 | result.hasMessageField = true; |
| 10226 | result.messageField_ = builderForValue.Build(); |
| 10227 | return this; |
| 10228 | } |
| 10229 | public Builder MergeMessageField(global::Google.ProtocolBuffers.TestProtos.ForeignMessage value) { |
| 10230 | if (result.HasMessageField && |
| 10231 | result.messageField_ != global::Google.ProtocolBuffers.TestProtos.ForeignMessage.DefaultInstance) { |
| 10232 | result.messageField_ = global::Google.ProtocolBuffers.TestProtos.ForeignMessage.CreateBuilder(result.messageField_).MergeFrom(value).BuildPartial(); |
| 10233 | } else { |
| 10234 | result.messageField_ = value; |
| 10235 | } |
| 10236 | result.hasMessageField = true; |
| 10237 | return this; |
| 10238 | } |
| 10239 | public Builder ClearMessageField() { |
| 10240 | result.hasMessageField = false; |
| 10241 | result.messageField_ = global::Google.ProtocolBuffers.TestProtos.ForeignMessage.DefaultInstance; |
| 10242 | return this; |
| 10243 | } |
| 10244 | |
| 10245 | public bool HasStringPieceField { |
| 10246 | get { return result.HasStringPieceField; } |
| 10247 | } |
| 10248 | public string StringPieceField { |
| 10249 | get { return result.StringPieceField; } |
| 10250 | set { SetStringPieceField(value); } |
| 10251 | } |
| 10252 | public Builder SetStringPieceField(string value) { |
| 10253 | result.hasStringPieceField = true; |
| 10254 | result.stringPieceField_ = value; |
| 10255 | return this; |
| 10256 | } |
| 10257 | public Builder ClearStringPieceField() { |
| 10258 | result.hasStringPieceField = false; |
| 10259 | result.stringPieceField_ = ""; |
| 10260 | return this; |
| 10261 | } |
| 10262 | |
| 10263 | public bool HasCordField { |
| 10264 | get { return result.HasCordField; } |
| 10265 | } |
| 10266 | public string CordField { |
| 10267 | get { return result.CordField; } |
| 10268 | set { SetCordField(value); } |
| 10269 | } |
| 10270 | public Builder SetCordField(string value) { |
| 10271 | result.hasCordField = true; |
| 10272 | result.cordField_ = value; |
| 10273 | return this; |
| 10274 | } |
| 10275 | public Builder ClearCordField() { |
| 10276 | result.hasCordField = false; |
| 10277 | result.cordField_ = ""; |
| 10278 | return this; |
| 10279 | } |
| 10280 | |
| 10281 | public scg::IList<int> RepeatedPrimitiveFieldList { |
| 10282 | get { return result.repeatedPrimitiveField_; } |
| 10283 | } |
| 10284 | public int RepeatedPrimitiveFieldCount { |
| 10285 | get { return result.RepeatedPrimitiveFieldCount; } |
| 10286 | } |
| 10287 | public int GetRepeatedPrimitiveField(int index) { |
| 10288 | return result.GetRepeatedPrimitiveField(index); |
| 10289 | } |
| 10290 | public Builder SetRepeatedPrimitiveField(int index, int value) { |
| 10291 | result.repeatedPrimitiveField_[index] = value; |
| 10292 | return this; |
| 10293 | } |
| 10294 | public Builder AddRepeatedPrimitiveField(int value) { |
| 10295 | result.repeatedPrimitiveField_.Add(value); |
| 10296 | return this; |
| 10297 | } |
| 10298 | public Builder AddRangeRepeatedPrimitiveField(scg::IEnumerable<int> values) { |
| 10299 | base.AddRange(values, result.repeatedPrimitiveField_); |
| 10300 | return this; |
| 10301 | } |
| 10302 | public Builder ClearRepeatedPrimitiveField() { |
| 10303 | result.repeatedPrimitiveField_.Clear(); |
| 10304 | return this; |
| 10305 | } |
| 10306 | |
| 10307 | public scg::IList<string> RepeatedStringFieldList { |
| 10308 | get { return result.repeatedStringField_; } |
| 10309 | } |
| 10310 | public int RepeatedStringFieldCount { |
| 10311 | get { return result.RepeatedStringFieldCount; } |
| 10312 | } |
| 10313 | public string GetRepeatedStringField(int index) { |
| 10314 | return result.GetRepeatedStringField(index); |
| 10315 | } |
| 10316 | public Builder SetRepeatedStringField(int index, string value) { |
| 10317 | result.repeatedStringField_[index] = value; |
| 10318 | return this; |
| 10319 | } |
| 10320 | public Builder AddRepeatedStringField(string value) { |
| 10321 | result.repeatedStringField_.Add(value); |
| 10322 | return this; |
| 10323 | } |
| 10324 | public Builder AddRangeRepeatedStringField(scg::IEnumerable<string> values) { |
| 10325 | base.AddRange(values, result.repeatedStringField_); |
| 10326 | return this; |
| 10327 | } |
| 10328 | public Builder ClearRepeatedStringField() { |
| 10329 | result.repeatedStringField_.Clear(); |
| 10330 | return this; |
| 10331 | } |
| 10332 | |
| 10333 | public scg::IList<global::Google.ProtocolBuffers.TestProtos.ForeignEnum> RepeatedEnumFieldList { |
| 10334 | get { return result.repeatedEnumField_; } |
| 10335 | } |
| 10336 | public int RepeatedEnumFieldCount { |
| 10337 | get { return result.RepeatedEnumFieldCount; } |
| 10338 | } |
| 10339 | public global::Google.ProtocolBuffers.TestProtos.ForeignEnum GetRepeatedEnumField(int index) { |
| 10340 | return result.GetRepeatedEnumField(index); |
| 10341 | } |
| 10342 | public Builder SetRepeatedEnumField(int index, global::Google.ProtocolBuffers.TestProtos.ForeignEnum value) { |
| 10343 | result.repeatedEnumField_[index] = value; |
| 10344 | return this; |
| 10345 | } |
| 10346 | public Builder AddRepeatedEnumField(global::Google.ProtocolBuffers.TestProtos.ForeignEnum value) { |
| 10347 | result.repeatedEnumField_.Add(value); |
| 10348 | return this; |
| 10349 | } |
| 10350 | public Builder AddRangeRepeatedEnumField(scg::IEnumerable<global::Google.ProtocolBuffers.TestProtos.ForeignEnum> values) { |
| 10351 | base.AddRange(values, result.repeatedEnumField_); |
| 10352 | return this; |
| 10353 | } |
| 10354 | public Builder ClearRepeatedEnumField() { |
| 10355 | result.repeatedEnumField_.Clear(); |
| 10356 | return this; |
| 10357 | } |
| 10358 | |
| 10359 | public scg::IList<global::Google.ProtocolBuffers.TestProtos.ForeignMessage> RepeatedMessageFieldList { |
| 10360 | get { return result.repeatedMessageField_; } |
| 10361 | } |
| 10362 | public int RepeatedMessageFieldCount { |
| 10363 | get { return result.RepeatedMessageFieldCount; } |
| 10364 | } |
| 10365 | public global::Google.ProtocolBuffers.TestProtos.ForeignMessage GetRepeatedMessageField(int index) { |
| 10366 | return result.GetRepeatedMessageField(index); |
| 10367 | } |
| 10368 | public Builder SetRepeatedMessageField(int index, global::Google.ProtocolBuffers.TestProtos.ForeignMessage value) { |
| 10369 | result.repeatedMessageField_[index] = value; |
| 10370 | return this; |
| 10371 | } |
| 10372 | public Builder SetRepeatedMessageField(int index, global::Google.ProtocolBuffers.TestProtos.ForeignMessage.Builder builderForValue) { |
| 10373 | result.repeatedMessageField_[index] = builderForValue.Build(); |
| 10374 | return this; |
| 10375 | } |
| 10376 | public Builder AddRepeatedMessageField(global::Google.ProtocolBuffers.TestProtos.ForeignMessage value) { |
| 10377 | result.repeatedMessageField_.Add(value); |
| 10378 | return this; |
| 10379 | } |
| 10380 | public Builder AddRepeatedMessageField(global::Google.ProtocolBuffers.TestProtos.ForeignMessage.Builder builderForValue) { |
| 10381 | result.repeatedMessageField_.Add(builderForValue.Build()); |
| 10382 | return this; |
| 10383 | } |
| 10384 | public Builder AddRangeRepeatedMessageField(scg::IEnumerable<global::Google.ProtocolBuffers.TestProtos.ForeignMessage> values) { |
| 10385 | base.AddRange(values, result.repeatedMessageField_); |
| 10386 | return this; |
| 10387 | } |
| 10388 | public Builder ClearRepeatedMessageField() { |
| 10389 | result.repeatedMessageField_.Clear(); |
| 10390 | return this; |
| 10391 | } |
| 10392 | |
| 10393 | public scg::IList<string> RepeatedStringPieceFieldList { |
| 10394 | get { return result.repeatedStringPieceField_; } |
| 10395 | } |
| 10396 | public int RepeatedStringPieceFieldCount { |
| 10397 | get { return result.RepeatedStringPieceFieldCount; } |
| 10398 | } |
| 10399 | public string GetRepeatedStringPieceField(int index) { |
| 10400 | return result.GetRepeatedStringPieceField(index); |
| 10401 | } |
| 10402 | public Builder SetRepeatedStringPieceField(int index, string value) { |
| 10403 | result.repeatedStringPieceField_[index] = value; |
| 10404 | return this; |
| 10405 | } |
| 10406 | public Builder AddRepeatedStringPieceField(string value) { |
| 10407 | result.repeatedStringPieceField_.Add(value); |
| 10408 | return this; |
| 10409 | } |
| 10410 | public Builder AddRangeRepeatedStringPieceField(scg::IEnumerable<string> values) { |
| 10411 | base.AddRange(values, result.repeatedStringPieceField_); |
| 10412 | return this; |
| 10413 | } |
| 10414 | public Builder ClearRepeatedStringPieceField() { |
| 10415 | result.repeatedStringPieceField_.Clear(); |
| 10416 | return this; |
| 10417 | } |
| 10418 | |
| 10419 | public scg::IList<string> RepeatedCordFieldList { |
| 10420 | get { return result.repeatedCordField_; } |
| 10421 | } |
| 10422 | public int RepeatedCordFieldCount { |
| 10423 | get { return result.RepeatedCordFieldCount; } |
| 10424 | } |
| 10425 | public string GetRepeatedCordField(int index) { |
| 10426 | return result.GetRepeatedCordField(index); |
| 10427 | } |
| 10428 | public Builder SetRepeatedCordField(int index, string value) { |
| 10429 | result.repeatedCordField_[index] = value; |
| 10430 | return this; |
| 10431 | } |
| 10432 | public Builder AddRepeatedCordField(string value) { |
| 10433 | result.repeatedCordField_.Add(value); |
| 10434 | return this; |
| 10435 | } |
| 10436 | public Builder AddRangeRepeatedCordField(scg::IEnumerable<string> values) { |
| 10437 | base.AddRange(values, result.repeatedCordField_); |
| 10438 | return this; |
| 10439 | } |
| 10440 | public Builder ClearRepeatedCordField() { |
| 10441 | result.repeatedCordField_.Clear(); |
| 10442 | return this; |
| 10443 | } |
| 10444 | } |
| 10445 | } |
| 10446 | |
| 10447 | public sealed partial class TestFieldOrderings : pb::ExtendableMessage<TestFieldOrderings, TestFieldOrderings.Builder> { |
| 10448 | private static readonly TestFieldOrderings defaultInstance = new Builder().BuildPartial(); |
| 10449 | public static TestFieldOrderings DefaultInstance { |
| 10450 | get { return defaultInstance; } |
| 10451 | } |
| 10452 | |
| 10453 | public override TestFieldOrderings DefaultInstanceForType { |
| 10454 | get { return defaultInstance; } |
| 10455 | } |
| 10456 | |
| 10457 | protected override TestFieldOrderings ThisMessage { |
| 10458 | get { return this; } |
| 10459 | } |
| 10460 | |
| 10461 | public static pbd::MessageDescriptor Descriptor { |
| 10462 | get { return global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.internal__static_protobuf_unittest_TestFieldOrderings__Descriptor; } |
| 10463 | } |
| 10464 | |
| 10465 | protected override pb::FieldAccess.FieldAccessorTable<TestFieldOrderings, TestFieldOrderings.Builder> InternalFieldAccessors { |
| 10466 | get { return global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.internal__static_protobuf_unittest_TestFieldOrderings__FieldAccessorTable; } |
| 10467 | } |
| 10468 | |
| 10469 | private bool hasMyString; |
| 10470 | private string myString_ = ""; |
| 10471 | public bool HasMyString { |
| 10472 | get { return hasMyString; } |
| 10473 | } |
| 10474 | public string MyString { |
| 10475 | get { return myString_; } |
| 10476 | } |
| 10477 | |
| 10478 | private bool hasMyInt; |
| 10479 | private long myInt_ = 0L; |
| 10480 | public bool HasMyInt { |
| 10481 | get { return hasMyInt; } |
| 10482 | } |
| 10483 | public long MyInt { |
| 10484 | get { return myInt_; } |
| 10485 | } |
| 10486 | |
| 10487 | private bool hasMyFloat; |
| 10488 | private float myFloat_ = 0F; |
| 10489 | public bool HasMyFloat { |
| 10490 | get { return hasMyFloat; } |
| 10491 | } |
| 10492 | public float MyFloat { |
| 10493 | get { return myFloat_; } |
| 10494 | } |
| 10495 | |
| 10496 | public override bool IsInitialized { |
| 10497 | get { |
| 10498 | if (!ExtensionsAreInitialized) return false; |
| 10499 | return true; |
| 10500 | } |
| 10501 | } |
| 10502 | |
| 10503 | public override void WriteTo(pb::CodedOutputStream output) { |
| 10504 | pb::ExtendableMessage<TestFieldOrderings, TestFieldOrderings.Builder>.ExtensionWriter extensionWriter = CreateExtensionWriter(this); |
| 10505 | if (HasMyInt) { |
| 10506 | output.WriteInt64(1, MyInt); |
| 10507 | } |
| 10508 | extensionWriter.WriteUntil(11, output); |
| 10509 | if (HasMyString) { |
| 10510 | output.WriteString(11, MyString); |
| 10511 | } |
| 10512 | extensionWriter.WriteUntil(101, output); |
| 10513 | if (HasMyFloat) { |
| 10514 | output.WriteFloat(101, MyFloat); |
| 10515 | } |
| 10516 | UnknownFields.WriteTo(output); |
| 10517 | } |
| 10518 | |
| 10519 | private int memoizedSerializedSize = -1; |
| 10520 | public override int SerializedSize { |
| 10521 | get { |
| 10522 | int size = memoizedSerializedSize; |
| 10523 | if (size != -1) return size; |
| 10524 | |
| 10525 | size = 0; |
| 10526 | if (HasMyString) { |
| 10527 | size += pb::CodedOutputStream.ComputeStringSize(11, MyString); |
| 10528 | } |
| 10529 | if (HasMyInt) { |
| 10530 | size += pb::CodedOutputStream.ComputeInt64Size(1, MyInt); |
| 10531 | } |
| 10532 | if (HasMyFloat) { |
| 10533 | size += pb::CodedOutputStream.ComputeFloatSize(101, MyFloat); |
| 10534 | } |
| 10535 | size += ExtensionsSerializedSize; |
| 10536 | size += UnknownFields.SerializedSize; |
| 10537 | memoizedSerializedSize = size; |
| 10538 | return size; |
| 10539 | } |
| 10540 | } |
| 10541 | |
| 10542 | public static TestFieldOrderings ParseFrom(pb::ByteString data) { |
| 10543 | return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed(); |
| 10544 | } |
| 10545 | public static TestFieldOrderings ParseFrom(pb::ByteString data, pb::ExtensionRegistry extensionRegistry) { |
| 10546 | return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed(); |
| 10547 | } |
| 10548 | public static TestFieldOrderings ParseFrom(byte[] data) { |
| 10549 | return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed(); |
| 10550 | } |
| 10551 | public static TestFieldOrderings ParseFrom(byte[] data, pb::ExtensionRegistry extensionRegistry) { |
| 10552 | return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed(); |
| 10553 | } |
| 10554 | public static TestFieldOrderings ParseFrom(global::System.IO.Stream input) { |
| 10555 | return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed(); |
| 10556 | } |
| 10557 | public static TestFieldOrderings ParseFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) { |
| 10558 | return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed(); |
| 10559 | } |
| 10560 | public static TestFieldOrderings ParseFrom(pb::CodedInputStream input) { |
| 10561 | return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed(); |
| 10562 | } |
| 10563 | public static TestFieldOrderings ParseFrom(pb::CodedInputStream input, pb::ExtensionRegistry extensionRegistry) { |
| 10564 | return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed(); |
| 10565 | } |
| 10566 | public static Builder CreateBuilder() { return new Builder(); } |
| 10567 | public override Builder CreateBuilderForType() { return new Builder(); } |
| 10568 | public static Builder CreateBuilder(TestFieldOrderings prototype) { |
| 10569 | return (Builder) new Builder().MergeFrom(prototype); |
| 10570 | } |
| 10571 | |
| 10572 | public sealed partial class Builder : pb::ExtendableBuilder<TestFieldOrderings, Builder> { |
| 10573 | protected override Builder ThisBuilder { |
| 10574 | get { return this; } |
| 10575 | } |
| 10576 | public Builder() {} |
| 10577 | |
| 10578 | TestFieldOrderings result = new TestFieldOrderings(); |
| 10579 | |
| 10580 | protected override TestFieldOrderings MessageBeingBuilt { |
| 10581 | get { return result; } |
| 10582 | } |
| 10583 | |
| 10584 | public override Builder Clear() { |
| 10585 | result = new TestFieldOrderings(); |
| 10586 | return this; |
| 10587 | } |
| 10588 | |
| 10589 | public override Builder Clone() { |
| 10590 | return new Builder().MergeFrom(result); |
| 10591 | } |
| 10592 | |
| 10593 | public override pbd::MessageDescriptor DescriptorForType { |
| 10594 | get { return TestFieldOrderings.Descriptor; } |
| 10595 | } |
| 10596 | |
| 10597 | public override TestFieldOrderings DefaultInstanceForType { |
| 10598 | get { return TestFieldOrderings.DefaultInstance; } |
| 10599 | } |
| 10600 | |
| 10601 | public override TestFieldOrderings BuildPartial() { |
| 10602 | TestFieldOrderings returnMe = result; |
| 10603 | result = null; |
| 10604 | return returnMe; |
| 10605 | } |
| 10606 | |
| 10607 | public override Builder MergeFrom(pb::IMessage other) { |
| 10608 | if (other is TestFieldOrderings) { |
| 10609 | return MergeFrom((TestFieldOrderings) other); |
| 10610 | } else { |
| 10611 | base.MergeFrom(other); |
| 10612 | return this; |
| 10613 | } |
| 10614 | } |
| 10615 | |
| 10616 | public override Builder MergeFrom(TestFieldOrderings other) { |
| 10617 | if (other == TestFieldOrderings.DefaultInstance) return this; |
| 10618 | if (other.HasMyString) { |
| 10619 | MyString = other.MyString; |
| 10620 | } |
| 10621 | if (other.HasMyInt) { |
| 10622 | MyInt = other.MyInt; |
| 10623 | } |
| 10624 | if (other.HasMyFloat) { |
| 10625 | MyFloat = other.MyFloat; |
| 10626 | } |
| 10627 | this.MergeUnknownFields(other.UnknownFields); |
| 10628 | return this; |
| 10629 | } |
| 10630 | |
| 10631 | public override Builder MergeFrom(pb::CodedInputStream input) { |
| 10632 | return MergeFrom(input, pb::ExtensionRegistry.Empty); |
| 10633 | } |
| 10634 | |
| 10635 | public override Builder MergeFrom(pb::CodedInputStream input, pb::ExtensionRegistry extensionRegistry) { |
| 10636 | pb::UnknownFieldSet.Builder unknownFields = pb::UnknownFieldSet.CreateBuilder(this.UnknownFields); |
| 10637 | while (true) { |
| 10638 | uint tag = input.ReadTag(); |
| 10639 | switch (tag) { |
| 10640 | case 0: { |
| 10641 | this.UnknownFields = unknownFields.Build(); |
| 10642 | return this; |
| 10643 | } |
| 10644 | default: { |
| 10645 | if (!ParseUnknownField(input, unknownFields, extensionRegistry, tag)) { |
| 10646 | this.UnknownFields = unknownFields.Build(); |
| 10647 | return this; |
| 10648 | } |
| 10649 | break; |
| 10650 | } |
| 10651 | case 8: { |
| 10652 | MyInt = input.ReadInt64(); |
| 10653 | break; |
| 10654 | } |
| 10655 | case 90: { |
| 10656 | MyString = input.ReadString(); |
| 10657 | break; |
| 10658 | } |
| 10659 | case 813: { |
| 10660 | MyFloat = input.ReadFloat(); |
| 10661 | break; |
| 10662 | } |
| 10663 | } |
| 10664 | } |
| 10665 | } |
| 10666 | |
| 10667 | |
| 10668 | public bool HasMyString { |
| 10669 | get { return result.HasMyString; } |
| 10670 | } |
| 10671 | public string MyString { |
| 10672 | get { return result.MyString; } |
| 10673 | set { SetMyString(value); } |
| 10674 | } |
| 10675 | public Builder SetMyString(string value) { |
| 10676 | result.hasMyString = true; |
| 10677 | result.myString_ = value; |
| 10678 | return this; |
| 10679 | } |
| 10680 | public Builder ClearMyString() { |
| 10681 | result.hasMyString = false; |
| 10682 | result.myString_ = ""; |
| 10683 | return this; |
| 10684 | } |
| 10685 | |
| 10686 | public bool HasMyInt { |
| 10687 | get { return result.HasMyInt; } |
| 10688 | } |
| 10689 | public long MyInt { |
| 10690 | get { return result.MyInt; } |
| 10691 | set { SetMyInt(value); } |
| 10692 | } |
| 10693 | public Builder SetMyInt(long value) { |
| 10694 | result.hasMyInt = true; |
| 10695 | result.myInt_ = value; |
| 10696 | return this; |
| 10697 | } |
| 10698 | public Builder ClearMyInt() { |
| 10699 | result.hasMyInt = false; |
| 10700 | result.myInt_ = 0L; |
| 10701 | return this; |
| 10702 | } |
| 10703 | |
| 10704 | public bool HasMyFloat { |
| 10705 | get { return result.HasMyFloat; } |
| 10706 | } |
| 10707 | public float MyFloat { |
| 10708 | get { return result.MyFloat; } |
| 10709 | set { SetMyFloat(value); } |
| 10710 | } |
| 10711 | public Builder SetMyFloat(float value) { |
| 10712 | result.hasMyFloat = true; |
| 10713 | result.myFloat_ = value; |
| 10714 | return this; |
| 10715 | } |
| 10716 | public Builder ClearMyFloat() { |
| 10717 | result.hasMyFloat = false; |
| 10718 | result.myFloat_ = 0F; |
| 10719 | return this; |
| 10720 | } |
| 10721 | } |
| 10722 | } |
| 10723 | |
| 10724 | public sealed partial class TestExtremeDefaultValues : pb::GeneratedMessage<TestExtremeDefaultValues, TestExtremeDefaultValues.Builder> { |
| 10725 | private static readonly TestExtremeDefaultValues defaultInstance = new Builder().BuildPartial(); |
| 10726 | public static TestExtremeDefaultValues DefaultInstance { |
| 10727 | get { return defaultInstance; } |
| 10728 | } |
| 10729 | |
| 10730 | public override TestExtremeDefaultValues DefaultInstanceForType { |
| 10731 | get { return defaultInstance; } |
| 10732 | } |
| 10733 | |
| 10734 | protected override TestExtremeDefaultValues ThisMessage { |
| 10735 | get { return this; } |
| 10736 | } |
| 10737 | |
| 10738 | public static pbd::MessageDescriptor Descriptor { |
| 10739 | get { return global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.internal__static_protobuf_unittest_TestExtremeDefaultValues__Descriptor; } |
| 10740 | } |
| 10741 | |
| 10742 | protected override pb::FieldAccess.FieldAccessorTable<TestExtremeDefaultValues, TestExtremeDefaultValues.Builder> InternalFieldAccessors { |
| 10743 | get { return global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.internal__static_protobuf_unittest_TestExtremeDefaultValues__FieldAccessorTable; } |
| 10744 | } |
| 10745 | |
| 10746 | private bool hasEscapedBytes; |
| 10747 | private pb::ByteString escapedBytes_ = (pb::ByteString) global::Google.ProtocolBuffers.TestProtos.TestExtremeDefaultValues.Descriptor.Fields[0].DefaultValue; |
| 10748 | public bool HasEscapedBytes { |
| 10749 | get { return hasEscapedBytes; } |
| 10750 | } |
| 10751 | public pb::ByteString EscapedBytes { |
| 10752 | get { return escapedBytes_; } |
| 10753 | } |
| 10754 | |
| 10755 | private bool hasLargeUint32; |
| 10756 | private uint largeUint32_ = 4294967295; |
| 10757 | public bool HasLargeUint32 { |
| 10758 | get { return hasLargeUint32; } |
| 10759 | } |
| 10760 | public uint LargeUint32 { |
| 10761 | get { return largeUint32_; } |
| 10762 | } |
| 10763 | |
| 10764 | private bool hasLargeUint64; |
| 10765 | private ulong largeUint64_ = 18446744073709551615UL; |
| 10766 | public bool HasLargeUint64 { |
| 10767 | get { return hasLargeUint64; } |
| 10768 | } |
| 10769 | public ulong LargeUint64 { |
| 10770 | get { return largeUint64_; } |
| 10771 | } |
| 10772 | |
| 10773 | private bool hasSmallInt32; |
| 10774 | private int smallInt32_ = -2147483647; |
| 10775 | public bool HasSmallInt32 { |
| 10776 | get { return hasSmallInt32; } |
| 10777 | } |
| 10778 | public int SmallInt32 { |
| 10779 | get { return smallInt32_; } |
| 10780 | } |
| 10781 | |
| 10782 | private bool hasSmallInt64; |
| 10783 | private long smallInt64_ = -9223372036854775807L; |
| 10784 | public bool HasSmallInt64 { |
| 10785 | get { return hasSmallInt64; } |
| 10786 | } |
| 10787 | public long SmallInt64 { |
| 10788 | get { return smallInt64_; } |
| 10789 | } |
| 10790 | |
| 10791 | private bool hasUtf8String; |
| 10792 | private string utf8String_ = (string) global::Google.ProtocolBuffers.TestProtos.TestExtremeDefaultValues.Descriptor.Fields[5].DefaultValue; |
| 10793 | public bool HasUtf8String { |
| 10794 | get { return hasUtf8String; } |
| 10795 | } |
| 10796 | public string Utf8String { |
| 10797 | get { return utf8String_; } |
| 10798 | } |
| 10799 | |
| 10800 | public override bool IsInitialized { |
| 10801 | get { |
| 10802 | return true; |
| 10803 | } |
| 10804 | } |
| 10805 | |
| 10806 | public override void WriteTo(pb::CodedOutputStream output) { |
| 10807 | if (HasEscapedBytes) { |
| 10808 | output.WriteBytes(1, EscapedBytes); |
| 10809 | } |
| 10810 | if (HasLargeUint32) { |
| 10811 | output.WriteUInt32(2, LargeUint32); |
| 10812 | } |
| 10813 | if (HasLargeUint64) { |
| 10814 | output.WriteUInt64(3, LargeUint64); |
| 10815 | } |
| 10816 | if (HasSmallInt32) { |
| 10817 | output.WriteInt32(4, SmallInt32); |
| 10818 | } |
| 10819 | if (HasSmallInt64) { |
| 10820 | output.WriteInt64(5, SmallInt64); |
| 10821 | } |
| 10822 | if (HasUtf8String) { |
| 10823 | output.WriteString(6, Utf8String); |
| 10824 | } |
| 10825 | UnknownFields.WriteTo(output); |
| 10826 | } |
| 10827 | |
| 10828 | private int memoizedSerializedSize = -1; |
| 10829 | public override int SerializedSize { |
| 10830 | get { |
| 10831 | int size = memoizedSerializedSize; |
| 10832 | if (size != -1) return size; |
| 10833 | |
| 10834 | size = 0; |
| 10835 | if (HasEscapedBytes) { |
| 10836 | size += pb::CodedOutputStream.ComputeBytesSize(1, EscapedBytes); |
| 10837 | } |
| 10838 | if (HasLargeUint32) { |
| 10839 | size += pb::CodedOutputStream.ComputeUInt32Size(2, LargeUint32); |
| 10840 | } |
| 10841 | if (HasLargeUint64) { |
| 10842 | size += pb::CodedOutputStream.ComputeUInt64Size(3, LargeUint64); |
| 10843 | } |
| 10844 | if (HasSmallInt32) { |
| 10845 | size += pb::CodedOutputStream.ComputeInt32Size(4, SmallInt32); |
| 10846 | } |
| 10847 | if (HasSmallInt64) { |
| 10848 | size += pb::CodedOutputStream.ComputeInt64Size(5, SmallInt64); |
| 10849 | } |
| 10850 | if (HasUtf8String) { |
| 10851 | size += pb::CodedOutputStream.ComputeStringSize(6, Utf8String); |
| 10852 | } |
| 10853 | size += UnknownFields.SerializedSize; |
| 10854 | memoizedSerializedSize = size; |
| 10855 | return size; |
| 10856 | } |
| 10857 | } |
| 10858 | |
| 10859 | public static TestExtremeDefaultValues ParseFrom(pb::ByteString data) { |
| 10860 | return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed(); |
| 10861 | } |
| 10862 | public static TestExtremeDefaultValues ParseFrom(pb::ByteString data, pb::ExtensionRegistry extensionRegistry) { |
| 10863 | return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed(); |
| 10864 | } |
| 10865 | public static TestExtremeDefaultValues ParseFrom(byte[] data) { |
| 10866 | return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed(); |
| 10867 | } |
| 10868 | public static TestExtremeDefaultValues ParseFrom(byte[] data, pb::ExtensionRegistry extensionRegistry) { |
| 10869 | return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed(); |
| 10870 | } |
| 10871 | public static TestExtremeDefaultValues ParseFrom(global::System.IO.Stream input) { |
| 10872 | return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed(); |
| 10873 | } |
| 10874 | public static TestExtremeDefaultValues ParseFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) { |
| 10875 | return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed(); |
| 10876 | } |
| 10877 | public static TestExtremeDefaultValues ParseFrom(pb::CodedInputStream input) { |
| 10878 | return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed(); |
| 10879 | } |
| 10880 | public static TestExtremeDefaultValues ParseFrom(pb::CodedInputStream input, pb::ExtensionRegistry extensionRegistry) { |
| 10881 | return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed(); |
| 10882 | } |
| 10883 | public static Builder CreateBuilder() { return new Builder(); } |
| 10884 | public override Builder CreateBuilderForType() { return new Builder(); } |
| 10885 | public static Builder CreateBuilder(TestExtremeDefaultValues prototype) { |
| 10886 | return (Builder) new Builder().MergeFrom(prototype); |
| 10887 | } |
| 10888 | |
| 10889 | public sealed partial class Builder : pb::GeneratedBuilder<TestExtremeDefaultValues, Builder> { |
| 10890 | protected override Builder ThisBuilder { |
| 10891 | get { return this; } |
| 10892 | } |
| 10893 | public Builder() {} |
| 10894 | |
| 10895 | TestExtremeDefaultValues result = new TestExtremeDefaultValues(); |
| 10896 | |
| 10897 | protected override TestExtremeDefaultValues MessageBeingBuilt { |
| 10898 | get { return result; } |
| 10899 | } |
| 10900 | |
| 10901 | public override Builder Clear() { |
| 10902 | result = new TestExtremeDefaultValues(); |
| 10903 | return this; |
| 10904 | } |
| 10905 | |
| 10906 | public override Builder Clone() { |
| 10907 | return new Builder().MergeFrom(result); |
| 10908 | } |
| 10909 | |
| 10910 | public override pbd::MessageDescriptor DescriptorForType { |
| 10911 | get { return TestExtremeDefaultValues.Descriptor; } |
| 10912 | } |
| 10913 | |
| 10914 | public override TestExtremeDefaultValues DefaultInstanceForType { |
| 10915 | get { return TestExtremeDefaultValues.DefaultInstance; } |
| 10916 | } |
| 10917 | |
| 10918 | public override TestExtremeDefaultValues BuildPartial() { |
| 10919 | TestExtremeDefaultValues returnMe = result; |
| 10920 | result = null; |
| 10921 | return returnMe; |
| 10922 | } |
| 10923 | |
| 10924 | public override Builder MergeFrom(pb::IMessage other) { |
| 10925 | if (other is TestExtremeDefaultValues) { |
| 10926 | return MergeFrom((TestExtremeDefaultValues) other); |
| 10927 | } else { |
| 10928 | base.MergeFrom(other); |
| 10929 | return this; |
| 10930 | } |
| 10931 | } |
| 10932 | |
| 10933 | public override Builder MergeFrom(TestExtremeDefaultValues other) { |
| 10934 | if (other == TestExtremeDefaultValues.DefaultInstance) return this; |
| 10935 | if (other.HasEscapedBytes) { |
| 10936 | EscapedBytes = other.EscapedBytes; |
| 10937 | } |
| 10938 | if (other.HasLargeUint32) { |
| 10939 | LargeUint32 = other.LargeUint32; |
| 10940 | } |
| 10941 | if (other.HasLargeUint64) { |
| 10942 | LargeUint64 = other.LargeUint64; |
| 10943 | } |
| 10944 | if (other.HasSmallInt32) { |
| 10945 | SmallInt32 = other.SmallInt32; |
| 10946 | } |
| 10947 | if (other.HasSmallInt64) { |
| 10948 | SmallInt64 = other.SmallInt64; |
| 10949 | } |
| 10950 | if (other.HasUtf8String) { |
| 10951 | Utf8String = other.Utf8String; |
| 10952 | } |
| 10953 | this.MergeUnknownFields(other.UnknownFields); |
| 10954 | return this; |
| 10955 | } |
| 10956 | |
| 10957 | public override Builder MergeFrom(pb::CodedInputStream input) { |
| 10958 | return MergeFrom(input, pb::ExtensionRegistry.Empty); |
| 10959 | } |
| 10960 | |
| 10961 | public override Builder MergeFrom(pb::CodedInputStream input, pb::ExtensionRegistry extensionRegistry) { |
| 10962 | pb::UnknownFieldSet.Builder unknownFields = pb::UnknownFieldSet.CreateBuilder(this.UnknownFields); |
| 10963 | while (true) { |
| 10964 | uint tag = input.ReadTag(); |
| 10965 | switch (tag) { |
| 10966 | case 0: { |
| 10967 | this.UnknownFields = unknownFields.Build(); |
| 10968 | return this; |
| 10969 | } |
| 10970 | default: { |
| 10971 | if (!ParseUnknownField(input, unknownFields, extensionRegistry, tag)) { |
| 10972 | this.UnknownFields = unknownFields.Build(); |
| 10973 | return this; |
| 10974 | } |
| 10975 | break; |
| 10976 | } |
| 10977 | case 10: { |
| 10978 | EscapedBytes = input.ReadBytes(); |
| 10979 | break; |
| 10980 | } |
| 10981 | case 16: { |
| 10982 | LargeUint32 = input.ReadUInt32(); |
| 10983 | break; |
| 10984 | } |
| 10985 | case 24: { |
| 10986 | LargeUint64 = input.ReadUInt64(); |
| 10987 | break; |
| 10988 | } |
| 10989 | case 32: { |
| 10990 | SmallInt32 = input.ReadInt32(); |
| 10991 | break; |
| 10992 | } |
| 10993 | case 40: { |
| 10994 | SmallInt64 = input.ReadInt64(); |
| 10995 | break; |
| 10996 | } |
| 10997 | case 50: { |
| 10998 | Utf8String = input.ReadString(); |
| 10999 | break; |
| 11000 | } |
| 11001 | } |
| 11002 | } |
| 11003 | } |
| 11004 | |
| 11005 | |
| 11006 | public bool HasEscapedBytes { |
| 11007 | get { return result.HasEscapedBytes; } |
| 11008 | } |
| 11009 | public pb::ByteString EscapedBytes { |
| 11010 | get { return result.EscapedBytes; } |
| 11011 | set { SetEscapedBytes(value); } |
| 11012 | } |
| 11013 | public Builder SetEscapedBytes(pb::ByteString value) { |
| 11014 | result.hasEscapedBytes = true; |
| 11015 | result.escapedBytes_ = value; |
| 11016 | return this; |
| 11017 | } |
| 11018 | public Builder ClearEscapedBytes() { |
| 11019 | result.hasEscapedBytes = false; |
| 11020 | result.escapedBytes_ = (pb::ByteString) global::Google.ProtocolBuffers.TestProtos.TestExtremeDefaultValues.Descriptor.Fields[0].DefaultValue; |
| 11021 | return this; |
| 11022 | } |
| 11023 | |
| 11024 | public bool HasLargeUint32 { |
| 11025 | get { return result.HasLargeUint32; } |
| 11026 | } |
| 11027 | public uint LargeUint32 { |
| 11028 | get { return result.LargeUint32; } |
| 11029 | set { SetLargeUint32(value); } |
| 11030 | } |
| 11031 | public Builder SetLargeUint32(uint value) { |
| 11032 | result.hasLargeUint32 = true; |
| 11033 | result.largeUint32_ = value; |
| 11034 | return this; |
| 11035 | } |
| 11036 | public Builder ClearLargeUint32() { |
| 11037 | result.hasLargeUint32 = false; |
| 11038 | result.largeUint32_ = 4294967295; |
| 11039 | return this; |
| 11040 | } |
| 11041 | |
| 11042 | public bool HasLargeUint64 { |
| 11043 | get { return result.HasLargeUint64; } |
| 11044 | } |
| 11045 | public ulong LargeUint64 { |
| 11046 | get { return result.LargeUint64; } |
| 11047 | set { SetLargeUint64(value); } |
| 11048 | } |
| 11049 | public Builder SetLargeUint64(ulong value) { |
| 11050 | result.hasLargeUint64 = true; |
| 11051 | result.largeUint64_ = value; |
| 11052 | return this; |
| 11053 | } |
| 11054 | public Builder ClearLargeUint64() { |
| 11055 | result.hasLargeUint64 = false; |
| 11056 | result.largeUint64_ = 18446744073709551615UL; |
| 11057 | return this; |
| 11058 | } |
| 11059 | |
| 11060 | public bool HasSmallInt32 { |
| 11061 | get { return result.HasSmallInt32; } |
| 11062 | } |
| 11063 | public int SmallInt32 { |
| 11064 | get { return result.SmallInt32; } |
| 11065 | set { SetSmallInt32(value); } |
| 11066 | } |
| 11067 | public Builder SetSmallInt32(int value) { |
| 11068 | result.hasSmallInt32 = true; |
| 11069 | result.smallInt32_ = value; |
| 11070 | return this; |
| 11071 | } |
| 11072 | public Builder ClearSmallInt32() { |
| 11073 | result.hasSmallInt32 = false; |
| 11074 | result.smallInt32_ = -2147483647; |
| 11075 | return this; |
| 11076 | } |
| 11077 | |
| 11078 | public bool HasSmallInt64 { |
| 11079 | get { return result.HasSmallInt64; } |
| 11080 | } |
| 11081 | public long SmallInt64 { |
| 11082 | get { return result.SmallInt64; } |
| 11083 | set { SetSmallInt64(value); } |
| 11084 | } |
| 11085 | public Builder SetSmallInt64(long value) { |
| 11086 | result.hasSmallInt64 = true; |
| 11087 | result.smallInt64_ = value; |
| 11088 | return this; |
| 11089 | } |
| 11090 | public Builder ClearSmallInt64() { |
| 11091 | result.hasSmallInt64 = false; |
| 11092 | result.smallInt64_ = -9223372036854775807L; |
| 11093 | return this; |
| 11094 | } |
| 11095 | |
| 11096 | public bool HasUtf8String { |
| 11097 | get { return result.HasUtf8String; } |
| 11098 | } |
| 11099 | public string Utf8String { |
| 11100 | get { return result.Utf8String; } |
| 11101 | set { SetUtf8String(value); } |
| 11102 | } |
| 11103 | public Builder SetUtf8String(string value) { |
| 11104 | result.hasUtf8String = true; |
| 11105 | result.utf8String_ = value; |
| 11106 | return this; |
| 11107 | } |
| 11108 | public Builder ClearUtf8String() { |
| 11109 | result.hasUtf8String = false; |
| 11110 | result.utf8String_ = (string) global::Google.ProtocolBuffers.TestProtos.TestExtremeDefaultValues.Descriptor.Fields[5].DefaultValue; |
| 11111 | return this; |
| 11112 | } |
| 11113 | } |
| 11114 | } |
| 11115 | |
| 11116 | public sealed partial class FooRequest : pb::GeneratedMessage<FooRequest, FooRequest.Builder> { |
| 11117 | private static readonly FooRequest defaultInstance = new Builder().BuildPartial(); |
| 11118 | public static FooRequest DefaultInstance { |
| 11119 | get { return defaultInstance; } |
| 11120 | } |
| 11121 | |
| 11122 | public override FooRequest DefaultInstanceForType { |
| 11123 | get { return defaultInstance; } |
| 11124 | } |
| 11125 | |
| 11126 | protected override FooRequest ThisMessage { |
| 11127 | get { return this; } |
| 11128 | } |
| 11129 | |
| 11130 | public static pbd::MessageDescriptor Descriptor { |
| 11131 | get { return global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.internal__static_protobuf_unittest_FooRequest__Descriptor; } |
| 11132 | } |
| 11133 | |
| 11134 | protected override pb::FieldAccess.FieldAccessorTable<FooRequest, FooRequest.Builder> InternalFieldAccessors { |
| 11135 | get { return global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.internal__static_protobuf_unittest_FooRequest__FieldAccessorTable; } |
| 11136 | } |
| 11137 | |
| 11138 | public override bool IsInitialized { |
| 11139 | get { |
| 11140 | return true; |
| 11141 | } |
| 11142 | } |
| 11143 | |
| 11144 | public override void WriteTo(pb::CodedOutputStream output) { |
| 11145 | UnknownFields.WriteTo(output); |
| 11146 | } |
| 11147 | |
| 11148 | private int memoizedSerializedSize = -1; |
| 11149 | public override int SerializedSize { |
| 11150 | get { |
| 11151 | int size = memoizedSerializedSize; |
| 11152 | if (size != -1) return size; |
| 11153 | |
| 11154 | size = 0; |
| 11155 | size += UnknownFields.SerializedSize; |
| 11156 | memoizedSerializedSize = size; |
| 11157 | return size; |
| 11158 | } |
| 11159 | } |
| 11160 | |
| 11161 | public static FooRequest ParseFrom(pb::ByteString data) { |
| 11162 | return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed(); |
| 11163 | } |
| 11164 | public static FooRequest ParseFrom(pb::ByteString data, pb::ExtensionRegistry extensionRegistry) { |
| 11165 | return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed(); |
| 11166 | } |
| 11167 | public static FooRequest ParseFrom(byte[] data) { |
| 11168 | return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed(); |
| 11169 | } |
| 11170 | public static FooRequest ParseFrom(byte[] data, pb::ExtensionRegistry extensionRegistry) { |
| 11171 | return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed(); |
| 11172 | } |
| 11173 | public static FooRequest ParseFrom(global::System.IO.Stream input) { |
| 11174 | return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed(); |
| 11175 | } |
| 11176 | public static FooRequest ParseFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) { |
| 11177 | return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed(); |
| 11178 | } |
| 11179 | public static FooRequest ParseFrom(pb::CodedInputStream input) { |
| 11180 | return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed(); |
| 11181 | } |
| 11182 | public static FooRequest ParseFrom(pb::CodedInputStream input, pb::ExtensionRegistry extensionRegistry) { |
| 11183 | return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed(); |
| 11184 | } |
| 11185 | public static Builder CreateBuilder() { return new Builder(); } |
| 11186 | public override Builder CreateBuilderForType() { return new Builder(); } |
| 11187 | public static Builder CreateBuilder(FooRequest prototype) { |
| 11188 | return (Builder) new Builder().MergeFrom(prototype); |
| 11189 | } |
| 11190 | |
| 11191 | public sealed partial class Builder : pb::GeneratedBuilder<FooRequest, Builder> { |
| 11192 | protected override Builder ThisBuilder { |
| 11193 | get { return this; } |
| 11194 | } |
| 11195 | public Builder() {} |
| 11196 | |
| 11197 | FooRequest result = new FooRequest(); |
| 11198 | |
| 11199 | protected override FooRequest MessageBeingBuilt { |
| 11200 | get { return result; } |
| 11201 | } |
| 11202 | |
| 11203 | public override Builder Clear() { |
| 11204 | result = new FooRequest(); |
| 11205 | return this; |
| 11206 | } |
| 11207 | |
| 11208 | public override Builder Clone() { |
| 11209 | return new Builder().MergeFrom(result); |
| 11210 | } |
| 11211 | |
| 11212 | public override pbd::MessageDescriptor DescriptorForType { |
| 11213 | get { return FooRequest.Descriptor; } |
| 11214 | } |
| 11215 | |
| 11216 | public override FooRequest DefaultInstanceForType { |
| 11217 | get { return FooRequest.DefaultInstance; } |
| 11218 | } |
| 11219 | |
| 11220 | public override FooRequest BuildPartial() { |
| 11221 | FooRequest returnMe = result; |
| 11222 | result = null; |
| 11223 | return returnMe; |
| 11224 | } |
| 11225 | |
| 11226 | public override Builder MergeFrom(pb::IMessage other) { |
| 11227 | if (other is FooRequest) { |
| 11228 | return MergeFrom((FooRequest) other); |
| 11229 | } else { |
| 11230 | base.MergeFrom(other); |
| 11231 | return this; |
| 11232 | } |
| 11233 | } |
| 11234 | |
| 11235 | public override Builder MergeFrom(FooRequest other) { |
| 11236 | if (other == FooRequest.DefaultInstance) return this; |
| 11237 | this.MergeUnknownFields(other.UnknownFields); |
| 11238 | return this; |
| 11239 | } |
| 11240 | |
| 11241 | public override Builder MergeFrom(pb::CodedInputStream input) { |
| 11242 | return MergeFrom(input, pb::ExtensionRegistry.Empty); |
| 11243 | } |
| 11244 | |
| 11245 | public override Builder MergeFrom(pb::CodedInputStream input, pb::ExtensionRegistry extensionRegistry) { |
| 11246 | pb::UnknownFieldSet.Builder unknownFields = pb::UnknownFieldSet.CreateBuilder(this.UnknownFields); |
| 11247 | while (true) { |
| 11248 | uint tag = input.ReadTag(); |
| 11249 | switch (tag) { |
| 11250 | case 0: { |
| 11251 | this.UnknownFields = unknownFields.Build(); |
| 11252 | return this; |
| 11253 | } |
| 11254 | default: { |
| 11255 | if (!ParseUnknownField(input, unknownFields, extensionRegistry, tag)) { |
| 11256 | this.UnknownFields = unknownFields.Build(); |
| 11257 | return this; |
| 11258 | } |
| 11259 | break; |
| 11260 | } |
| 11261 | } |
| 11262 | } |
| 11263 | } |
| 11264 | |
| 11265 | } |
| 11266 | } |
| 11267 | |
| 11268 | public sealed partial class FooResponse : pb::GeneratedMessage<FooResponse, FooResponse.Builder> { |
| 11269 | private static readonly FooResponse defaultInstance = new Builder().BuildPartial(); |
| 11270 | public static FooResponse DefaultInstance { |
| 11271 | get { return defaultInstance; } |
| 11272 | } |
| 11273 | |
| 11274 | public override FooResponse DefaultInstanceForType { |
| 11275 | get { return defaultInstance; } |
| 11276 | } |
| 11277 | |
| 11278 | protected override FooResponse ThisMessage { |
| 11279 | get { return this; } |
| 11280 | } |
| 11281 | |
| 11282 | public static pbd::MessageDescriptor Descriptor { |
| 11283 | get { return global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.internal__static_protobuf_unittest_FooResponse__Descriptor; } |
| 11284 | } |
| 11285 | |
| 11286 | protected override pb::FieldAccess.FieldAccessorTable<FooResponse, FooResponse.Builder> InternalFieldAccessors { |
| 11287 | get { return global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.internal__static_protobuf_unittest_FooResponse__FieldAccessorTable; } |
| 11288 | } |
| 11289 | |
| 11290 | public override bool IsInitialized { |
| 11291 | get { |
| 11292 | return true; |
| 11293 | } |
| 11294 | } |
| 11295 | |
| 11296 | public override void WriteTo(pb::CodedOutputStream output) { |
| 11297 | UnknownFields.WriteTo(output); |
| 11298 | } |
| 11299 | |
| 11300 | private int memoizedSerializedSize = -1; |
| 11301 | public override int SerializedSize { |
| 11302 | get { |
| 11303 | int size = memoizedSerializedSize; |
| 11304 | if (size != -1) return size; |
| 11305 | |
| 11306 | size = 0; |
| 11307 | size += UnknownFields.SerializedSize; |
| 11308 | memoizedSerializedSize = size; |
| 11309 | return size; |
| 11310 | } |
| 11311 | } |
| 11312 | |
| 11313 | public static FooResponse ParseFrom(pb::ByteString data) { |
| 11314 | return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed(); |
| 11315 | } |
| 11316 | public static FooResponse ParseFrom(pb::ByteString data, pb::ExtensionRegistry extensionRegistry) { |
| 11317 | return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed(); |
| 11318 | } |
| 11319 | public static FooResponse ParseFrom(byte[] data) { |
| 11320 | return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed(); |
| 11321 | } |
| 11322 | public static FooResponse ParseFrom(byte[] data, pb::ExtensionRegistry extensionRegistry) { |
| 11323 | return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed(); |
| 11324 | } |
| 11325 | public static FooResponse ParseFrom(global::System.IO.Stream input) { |
| 11326 | return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed(); |
| 11327 | } |
| 11328 | public static FooResponse ParseFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) { |
| 11329 | return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed(); |
| 11330 | } |
| 11331 | public static FooResponse ParseFrom(pb::CodedInputStream input) { |
| 11332 | return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed(); |
| 11333 | } |
| 11334 | public static FooResponse ParseFrom(pb::CodedInputStream input, pb::ExtensionRegistry extensionRegistry) { |
| 11335 | return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed(); |
| 11336 | } |
| 11337 | public static Builder CreateBuilder() { return new Builder(); } |
| 11338 | public override Builder CreateBuilderForType() { return new Builder(); } |
| 11339 | public static Builder CreateBuilder(FooResponse prototype) { |
| 11340 | return (Builder) new Builder().MergeFrom(prototype); |
| 11341 | } |
| 11342 | |
| 11343 | public sealed partial class Builder : pb::GeneratedBuilder<FooResponse, Builder> { |
| 11344 | protected override Builder ThisBuilder { |
| 11345 | get { return this; } |
| 11346 | } |
| 11347 | public Builder() {} |
| 11348 | |
| 11349 | FooResponse result = new FooResponse(); |
| 11350 | |
| 11351 | protected override FooResponse MessageBeingBuilt { |
| 11352 | get { return result; } |
| 11353 | } |
| 11354 | |
| 11355 | public override Builder Clear() { |
| 11356 | result = new FooResponse(); |
| 11357 | return this; |
| 11358 | } |
| 11359 | |
| 11360 | public override Builder Clone() { |
| 11361 | return new Builder().MergeFrom(result); |
| 11362 | } |
| 11363 | |
| 11364 | public override pbd::MessageDescriptor DescriptorForType { |
| 11365 | get { return FooResponse.Descriptor; } |
| 11366 | } |
| 11367 | |
| 11368 | public override FooResponse DefaultInstanceForType { |
| 11369 | get { return FooResponse.DefaultInstance; } |
| 11370 | } |
| 11371 | |
| 11372 | public override FooResponse BuildPartial() { |
| 11373 | FooResponse returnMe = result; |
| 11374 | result = null; |
| 11375 | return returnMe; |
| 11376 | } |
| 11377 | |
| 11378 | public override Builder MergeFrom(pb::IMessage other) { |
| 11379 | if (other is FooResponse) { |
| 11380 | return MergeFrom((FooResponse) other); |
| 11381 | } else { |
| 11382 | base.MergeFrom(other); |
| 11383 | return this; |
| 11384 | } |
| 11385 | } |
| 11386 | |
| 11387 | public override Builder MergeFrom(FooResponse other) { |
| 11388 | if (other == FooResponse.DefaultInstance) return this; |
| 11389 | this.MergeUnknownFields(other.UnknownFields); |
| 11390 | return this; |
| 11391 | } |
| 11392 | |
| 11393 | public override Builder MergeFrom(pb::CodedInputStream input) { |
| 11394 | return MergeFrom(input, pb::ExtensionRegistry.Empty); |
| 11395 | } |
| 11396 | |
| 11397 | public override Builder MergeFrom(pb::CodedInputStream input, pb::ExtensionRegistry extensionRegistry) { |
| 11398 | pb::UnknownFieldSet.Builder unknownFields = pb::UnknownFieldSet.CreateBuilder(this.UnknownFields); |
| 11399 | while (true) { |
| 11400 | uint tag = input.ReadTag(); |
| 11401 | switch (tag) { |
| 11402 | case 0: { |
| 11403 | this.UnknownFields = unknownFields.Build(); |
| 11404 | return this; |
| 11405 | } |
| 11406 | default: { |
| 11407 | if (!ParseUnknownField(input, unknownFields, extensionRegistry, tag)) { |
| 11408 | this.UnknownFields = unknownFields.Build(); |
| 11409 | return this; |
| 11410 | } |
| 11411 | break; |
| 11412 | } |
| 11413 | } |
| 11414 | } |
| 11415 | } |
| 11416 | |
| 11417 | } |
| 11418 | } |
| 11419 | |
| 11420 | public sealed partial class BarRequest : pb::GeneratedMessage<BarRequest, BarRequest.Builder> { |
| 11421 | private static readonly BarRequest defaultInstance = new Builder().BuildPartial(); |
| 11422 | public static BarRequest DefaultInstance { |
| 11423 | get { return defaultInstance; } |
| 11424 | } |
| 11425 | |
| 11426 | public override BarRequest DefaultInstanceForType { |
| 11427 | get { return defaultInstance; } |
| 11428 | } |
| 11429 | |
| 11430 | protected override BarRequest ThisMessage { |
| 11431 | get { return this; } |
| 11432 | } |
| 11433 | |
| 11434 | public static pbd::MessageDescriptor Descriptor { |
| 11435 | get { return global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.internal__static_protobuf_unittest_BarRequest__Descriptor; } |
| 11436 | } |
| 11437 | |
| 11438 | protected override pb::FieldAccess.FieldAccessorTable<BarRequest, BarRequest.Builder> InternalFieldAccessors { |
| 11439 | get { return global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.internal__static_protobuf_unittest_BarRequest__FieldAccessorTable; } |
| 11440 | } |
| 11441 | |
| 11442 | public override bool IsInitialized { |
| 11443 | get { |
| 11444 | return true; |
| 11445 | } |
| 11446 | } |
| 11447 | |
| 11448 | public override void WriteTo(pb::CodedOutputStream output) { |
| 11449 | UnknownFields.WriteTo(output); |
| 11450 | } |
| 11451 | |
| 11452 | private int memoizedSerializedSize = -1; |
| 11453 | public override int SerializedSize { |
| 11454 | get { |
| 11455 | int size = memoizedSerializedSize; |
| 11456 | if (size != -1) return size; |
| 11457 | |
| 11458 | size = 0; |
| 11459 | size += UnknownFields.SerializedSize; |
| 11460 | memoizedSerializedSize = size; |
| 11461 | return size; |
| 11462 | } |
| 11463 | } |
| 11464 | |
| 11465 | public static BarRequest ParseFrom(pb::ByteString data) { |
| 11466 | return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed(); |
| 11467 | } |
| 11468 | public static BarRequest ParseFrom(pb::ByteString data, pb::ExtensionRegistry extensionRegistry) { |
| 11469 | return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed(); |
| 11470 | } |
| 11471 | public static BarRequest ParseFrom(byte[] data) { |
| 11472 | return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed(); |
| 11473 | } |
| 11474 | public static BarRequest ParseFrom(byte[] data, pb::ExtensionRegistry extensionRegistry) { |
| 11475 | return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed(); |
| 11476 | } |
| 11477 | public static BarRequest ParseFrom(global::System.IO.Stream input) { |
| 11478 | return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed(); |
| 11479 | } |
| 11480 | public static BarRequest ParseFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) { |
| 11481 | return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed(); |
| 11482 | } |
| 11483 | public static BarRequest ParseFrom(pb::CodedInputStream input) { |
| 11484 | return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed(); |
| 11485 | } |
| 11486 | public static BarRequest ParseFrom(pb::CodedInputStream input, pb::ExtensionRegistry extensionRegistry) { |
| 11487 | return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed(); |
| 11488 | } |
| 11489 | public static Builder CreateBuilder() { return new Builder(); } |
| 11490 | public override Builder CreateBuilderForType() { return new Builder(); } |
| 11491 | public static Builder CreateBuilder(BarRequest prototype) { |
| 11492 | return (Builder) new Builder().MergeFrom(prototype); |
| 11493 | } |
| 11494 | |
| 11495 | public sealed partial class Builder : pb::GeneratedBuilder<BarRequest, Builder> { |
| 11496 | protected override Builder ThisBuilder { |
| 11497 | get { return this; } |
| 11498 | } |
| 11499 | public Builder() {} |
| 11500 | |
| 11501 | BarRequest result = new BarRequest(); |
| 11502 | |
| 11503 | protected override BarRequest MessageBeingBuilt { |
| 11504 | get { return result; } |
| 11505 | } |
| 11506 | |
| 11507 | public override Builder Clear() { |
| 11508 | result = new BarRequest(); |
| 11509 | return this; |
| 11510 | } |
| 11511 | |
| 11512 | public override Builder Clone() { |
| 11513 | return new Builder().MergeFrom(result); |
| 11514 | } |
| 11515 | |
| 11516 | public override pbd::MessageDescriptor DescriptorForType { |
| 11517 | get { return BarRequest.Descriptor; } |
| 11518 | } |
| 11519 | |
| 11520 | public override BarRequest DefaultInstanceForType { |
| 11521 | get { return BarRequest.DefaultInstance; } |
| 11522 | } |
| 11523 | |
| 11524 | public override BarRequest BuildPartial() { |
| 11525 | BarRequest returnMe = result; |
| 11526 | result = null; |
| 11527 | return returnMe; |
| 11528 | } |
| 11529 | |
| 11530 | public override Builder MergeFrom(pb::IMessage other) { |
| 11531 | if (other is BarRequest) { |
| 11532 | return MergeFrom((BarRequest) other); |
| 11533 | } else { |
| 11534 | base.MergeFrom(other); |
| 11535 | return this; |
| 11536 | } |
| 11537 | } |
| 11538 | |
| 11539 | public override Builder MergeFrom(BarRequest other) { |
| 11540 | if (other == BarRequest.DefaultInstance) return this; |
| 11541 | this.MergeUnknownFields(other.UnknownFields); |
| 11542 | return this; |
| 11543 | } |
| 11544 | |
| 11545 | public override Builder MergeFrom(pb::CodedInputStream input) { |
| 11546 | return MergeFrom(input, pb::ExtensionRegistry.Empty); |
| 11547 | } |
| 11548 | |
| 11549 | public override Builder MergeFrom(pb::CodedInputStream input, pb::ExtensionRegistry extensionRegistry) { |
| 11550 | pb::UnknownFieldSet.Builder unknownFields = pb::UnknownFieldSet.CreateBuilder(this.UnknownFields); |
| 11551 | while (true) { |
| 11552 | uint tag = input.ReadTag(); |
| 11553 | switch (tag) { |
| 11554 | case 0: { |
| 11555 | this.UnknownFields = unknownFields.Build(); |
| 11556 | return this; |
| 11557 | } |
| 11558 | default: { |
| 11559 | if (!ParseUnknownField(input, unknownFields, extensionRegistry, tag)) { |
| 11560 | this.UnknownFields = unknownFields.Build(); |
| 11561 | return this; |
| 11562 | } |
| 11563 | break; |
| 11564 | } |
| 11565 | } |
| 11566 | } |
| 11567 | } |
| 11568 | |
| 11569 | } |
| 11570 | } |
| 11571 | |
| 11572 | public sealed partial class BarResponse : pb::GeneratedMessage<BarResponse, BarResponse.Builder> { |
| 11573 | private static readonly BarResponse defaultInstance = new Builder().BuildPartial(); |
| 11574 | public static BarResponse DefaultInstance { |
| 11575 | get { return defaultInstance; } |
| 11576 | } |
| 11577 | |
| 11578 | public override BarResponse DefaultInstanceForType { |
| 11579 | get { return defaultInstance; } |
| 11580 | } |
| 11581 | |
| 11582 | protected override BarResponse ThisMessage { |
| 11583 | get { return this; } |
| 11584 | } |
| 11585 | |
| 11586 | public static pbd::MessageDescriptor Descriptor { |
| 11587 | get { return global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.internal__static_protobuf_unittest_BarResponse__Descriptor; } |
| 11588 | } |
| 11589 | |
| 11590 | protected override pb::FieldAccess.FieldAccessorTable<BarResponse, BarResponse.Builder> InternalFieldAccessors { |
| 11591 | get { return global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.internal__static_protobuf_unittest_BarResponse__FieldAccessorTable; } |
| 11592 | } |
| 11593 | |
| 11594 | public override bool IsInitialized { |
| 11595 | get { |
| 11596 | return true; |
| 11597 | } |
| 11598 | } |
| 11599 | |
| 11600 | public override void WriteTo(pb::CodedOutputStream output) { |
| 11601 | UnknownFields.WriteTo(output); |
| 11602 | } |
| 11603 | |
| 11604 | private int memoizedSerializedSize = -1; |
| 11605 | public override int SerializedSize { |
| 11606 | get { |
| 11607 | int size = memoizedSerializedSize; |
| 11608 | if (size != -1) return size; |
| 11609 | |
| 11610 | size = 0; |
| 11611 | size += UnknownFields.SerializedSize; |
| 11612 | memoizedSerializedSize = size; |
| 11613 | return size; |
| 11614 | } |
| 11615 | } |
| 11616 | |
| 11617 | public static BarResponse ParseFrom(pb::ByteString data) { |
| 11618 | return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed(); |
| 11619 | } |
| 11620 | public static BarResponse ParseFrom(pb::ByteString data, pb::ExtensionRegistry extensionRegistry) { |
| 11621 | return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed(); |
| 11622 | } |
| 11623 | public static BarResponse ParseFrom(byte[] data) { |
| 11624 | return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed(); |
| 11625 | } |
| 11626 | public static BarResponse ParseFrom(byte[] data, pb::ExtensionRegistry extensionRegistry) { |
| 11627 | return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed(); |
| 11628 | } |
| 11629 | public static BarResponse ParseFrom(global::System.IO.Stream input) { |
| 11630 | return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed(); |
| 11631 | } |
| 11632 | public static BarResponse ParseFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) { |
| 11633 | return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed(); |
| 11634 | } |
| 11635 | public static BarResponse ParseFrom(pb::CodedInputStream input) { |
| 11636 | return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed(); |
| 11637 | } |
| 11638 | public static BarResponse ParseFrom(pb::CodedInputStream input, pb::ExtensionRegistry extensionRegistry) { |
| 11639 | return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed(); |
| 11640 | } |
| 11641 | public static Builder CreateBuilder() { return new Builder(); } |
| 11642 | public override Builder CreateBuilderForType() { return new Builder(); } |
| 11643 | public static Builder CreateBuilder(BarResponse prototype) { |
| 11644 | return (Builder) new Builder().MergeFrom(prototype); |
| 11645 | } |
| 11646 | |
| 11647 | public sealed partial class Builder : pb::GeneratedBuilder<BarResponse, Builder> { |
| 11648 | protected override Builder ThisBuilder { |
| 11649 | get { return this; } |
| 11650 | } |
| 11651 | public Builder() {} |
| 11652 | |
| 11653 | BarResponse result = new BarResponse(); |
| 11654 | |
| 11655 | protected override BarResponse MessageBeingBuilt { |
| 11656 | get { return result; } |
| 11657 | } |
| 11658 | |
| 11659 | public override Builder Clear() { |
| 11660 | result = new BarResponse(); |
| 11661 | return this; |
| 11662 | } |
| 11663 | |
| 11664 | public override Builder Clone() { |
| 11665 | return new Builder().MergeFrom(result); |
| 11666 | } |
| 11667 | |
| 11668 | public override pbd::MessageDescriptor DescriptorForType { |
| 11669 | get { return BarResponse.Descriptor; } |
| 11670 | } |
| 11671 | |
| 11672 | public override BarResponse DefaultInstanceForType { |
| 11673 | get { return BarResponse.DefaultInstance; } |
| 11674 | } |
| 11675 | |
| 11676 | public override BarResponse BuildPartial() { |
| 11677 | BarResponse returnMe = result; |
| 11678 | result = null; |
| 11679 | return returnMe; |
| 11680 | } |
| 11681 | |
| 11682 | public override Builder MergeFrom(pb::IMessage other) { |
| 11683 | if (other is BarResponse) { |
| 11684 | return MergeFrom((BarResponse) other); |
| 11685 | } else { |
| 11686 | base.MergeFrom(other); |
| 11687 | return this; |
| 11688 | } |
| 11689 | } |
| 11690 | |
| 11691 | public override Builder MergeFrom(BarResponse other) { |
| 11692 | if (other == BarResponse.DefaultInstance) return this; |
| 11693 | this.MergeUnknownFields(other.UnknownFields); |
| 11694 | return this; |
| 11695 | } |
| 11696 | |
| 11697 | public override Builder MergeFrom(pb::CodedInputStream input) { |
| 11698 | return MergeFrom(input, pb::ExtensionRegistry.Empty); |
| 11699 | } |
| 11700 | |
| 11701 | public override Builder MergeFrom(pb::CodedInputStream input, pb::ExtensionRegistry extensionRegistry) { |
| 11702 | pb::UnknownFieldSet.Builder unknownFields = pb::UnknownFieldSet.CreateBuilder(this.UnknownFields); |
| 11703 | while (true) { |
| 11704 | uint tag = input.ReadTag(); |
| 11705 | switch (tag) { |
| 11706 | case 0: { |
| 11707 | this.UnknownFields = unknownFields.Build(); |
| 11708 | return this; |
| 11709 | } |
| 11710 | default: { |
| 11711 | if (!ParseUnknownField(input, unknownFields, extensionRegistry, tag)) { |
| 11712 | this.UnknownFields = unknownFields.Build(); |
| 11713 | return this; |
| 11714 | } |
| 11715 | break; |
| 11716 | } |
| 11717 | } |
| 11718 | } |
| 11719 | } |
| 11720 | |
| 11721 | } |
| 11722 | } |
| 11723 | |
| 11724 | #endregion |
| 11725 | |
| 11726 | #region Services |
| 11727 | public abstract class TestService : pb::IService { |
| 11728 | public abstract void Foo( |
| 11729 | pb::IRpcController controller, |
| 11730 | global::Google.ProtocolBuffers.TestProtos.FooRequest request, |
| 11731 | global::System.Action<global::Google.ProtocolBuffers.TestProtos.FooResponse> done); |
| 11732 | public abstract void Bar( |
| 11733 | pb::IRpcController controller, |
| 11734 | global::Google.ProtocolBuffers.TestProtos.BarRequest request, |
| 11735 | global::System.Action<global::Google.ProtocolBuffers.TestProtos.BarResponse> done); |
| 11736 | |
| 11737 | public static pbd::ServiceDescriptor Descriptor { |
| 11738 | get { return UnitTestProtoFile.Descriptor.Services[0]; } |
| 11739 | } |
| 11740 | public pbd::ServiceDescriptor DescriptorForType { |
| 11741 | get { return Descriptor; } |
| 11742 | } |
| 11743 | |
| 11744 | public void CallMethod( |
| 11745 | pbd::MethodDescriptor method, |
| 11746 | pb::IRpcController controller, |
| 11747 | pb::IMessage request, |
| 11748 | global::System.Action<pb::IMessage> done) { |
| 11749 | if (method.Service != Descriptor) { |
| 11750 | throw new global::System.ArgumentException( |
| 11751 | "Service.CallMethod() given method descriptor for wrong service type."); |
| 11752 | } |
| 11753 | switch(method.Index) { |
| 11754 | case 0: |
| 11755 | this.Foo(controller, (global::Google.ProtocolBuffers.TestProtos.FooRequest) request, |
| 11756 | pb::RpcUtil.SpecializeCallback<global::Google.ProtocolBuffers.TestProtos.FooResponse>( |
| 11757 | done)); |
| 11758 | return; |
| 11759 | case 1: |
| 11760 | this.Bar(controller, (global::Google.ProtocolBuffers.TestProtos.BarRequest) request, |
| 11761 | pb::RpcUtil.SpecializeCallback<global::Google.ProtocolBuffers.TestProtos.BarResponse>( |
| 11762 | done)); |
| 11763 | return; |
| 11764 | default: |
| 11765 | throw new global::System.InvalidOperationException("Can't get here."); |
| 11766 | } |
| 11767 | } |
| 11768 | |
| 11769 | public pb::IMessage GetRequestPrototype(pbd::MethodDescriptor method) { |
| 11770 | if (method.Service != Descriptor) { |
| 11771 | throw new global::System.ArgumentException( |
| 11772 | "Service.GetRequestPrototype() given method descriptor for wrong service type."); |
| 11773 | } |
| 11774 | switch(method.Index) { |
| 11775 | case 0: |
| 11776 | return global::Google.ProtocolBuffers.TestProtos.FooRequest.DefaultInstance; |
| 11777 | case 1: |
| 11778 | return global::Google.ProtocolBuffers.TestProtos.BarRequest.DefaultInstance; |
| 11779 | default: |
| 11780 | throw new global::System.InvalidOperationException("Can't get here."); |
| 11781 | } |
| 11782 | } |
| 11783 | |
| 11784 | public pb::IMessage GetResponsePrototype(pbd::MethodDescriptor method) { |
| 11785 | if (method.Service != Descriptor) { |
| 11786 | throw new global::System.ArgumentException( |
| 11787 | "Service.GetResponsePrototype() given method descriptor for wrong service type."); |
| 11788 | } |
| 11789 | switch(method.Index) { |
| 11790 | case 0: |
| 11791 | return global::Google.ProtocolBuffers.TestProtos.FooResponse.DefaultInstance; |
| 11792 | case 1: |
| 11793 | return global::Google.ProtocolBuffers.TestProtos.BarResponse.DefaultInstance; |
| 11794 | default: |
| 11795 | throw new global::System.InvalidOperationException("Can't get here."); |
| 11796 | } |
| 11797 | } |
| 11798 | |
| 11799 | public static Stub CreateStub(pb::IRpcChannel channel) { |
| 11800 | return new Stub(channel); |
| 11801 | } |
| 11802 | |
| 11803 | public class Stub : global::Google.ProtocolBuffers.TestProtos.TestService { |
| 11804 | internal Stub(pb::IRpcChannel channel) { |
| 11805 | this.channel = channel; |
| 11806 | } |
| 11807 | |
| 11808 | private readonly pb::IRpcChannel channel; |
| 11809 | |
| 11810 | public pb::IRpcChannel Channel { |
| 11811 | get { return channel; } |
| 11812 | } |
| 11813 | |
| 11814 | public override void Foo( |
| 11815 | pb::IRpcController controller, |
| 11816 | global::Google.ProtocolBuffers.TestProtos.FooRequest request, |
| 11817 | global::System.Action<global::Google.ProtocolBuffers.TestProtos.FooResponse> done) { |
| 11818 | channel.CallMethod(Descriptor.Methods[0], |
| 11819 | controller, request, global::Google.ProtocolBuffers.TestProtos.FooResponse.DefaultInstance, |
| 11820 | pb::RpcUtil.GeneralizeCallback<global::Google.ProtocolBuffers.TestProtos.FooResponse, global::Google.ProtocolBuffers.TestProtos.FooResponse.Builder>(done, global::Google.ProtocolBuffers.TestProtos.FooResponse.DefaultInstance)); |
| 11821 | } |
| 11822 | |
| 11823 | public override void Bar( |
| 11824 | pb::IRpcController controller, |
| 11825 | global::Google.ProtocolBuffers.TestProtos.BarRequest request, |
| 11826 | global::System.Action<global::Google.ProtocolBuffers.TestProtos.BarResponse> done) { |
| 11827 | channel.CallMethod(Descriptor.Methods[1], |
| 11828 | controller, request, global::Google.ProtocolBuffers.TestProtos.BarResponse.DefaultInstance, |
| 11829 | pb::RpcUtil.GeneralizeCallback<global::Google.ProtocolBuffers.TestProtos.BarResponse, global::Google.ProtocolBuffers.TestProtos.BarResponse.Builder>(done, global::Google.ProtocolBuffers.TestProtos.BarResponse.DefaultInstance)); |
| 11830 | } |
| 11831 | } |
| 11832 | } |
| 11833 | #endregion |
| 11834 | |
| 11835 | } |