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" + |
Jon Skeet | 343d9f5 | 2009-01-16 11:52:44 +0000 | [diff] [blame] | 19 | "JWdvb2dsZS9wcm90b2J1Zi91bml0dGVzdF9pbXBvcnQucHJvdG8iuxUKDFRl" + |
| 20 | "c3RBbGxUeXBlcxIWCg5vcHRpb25hbF9pbnQzMhgBIAEoBRIWCg5vcHRpb25h" + |
| 21 | "bF9pbnQ2NBgCIAEoAxIXCg9vcHRpb25hbF91aW50MzIYAyABKA0SFwoPb3B0" + |
| 22 | "aW9uYWxfdWludDY0GAQgASgEEhcKD29wdGlvbmFsX3NpbnQzMhgFIAEoERIX" + |
| 23 | "Cg9vcHRpb25hbF9zaW50NjQYBiABKBISGAoQb3B0aW9uYWxfZml4ZWQzMhgH" + |
| 24 | "IAEoBxIYChBvcHRpb25hbF9maXhlZDY0GAggASgGEhkKEW9wdGlvbmFsX3Nm" + |
| 25 | "aXhlZDMyGAkgASgPEhkKEW9wdGlvbmFsX3NmaXhlZDY0GAogASgQEhYKDm9w" + |
| 26 | "dGlvbmFsX2Zsb2F0GAsgASgCEhcKD29wdGlvbmFsX2RvdWJsZRgMIAEoARIV" + |
| 27 | "Cg1vcHRpb25hbF9ib29sGA0gASgIEhcKD29wdGlvbmFsX3N0cmluZxgOIAEo" + |
| 28 | "CRIWCg5vcHRpb25hbF9ieXRlcxgPIAEoDBJECg1vcHRpb25hbGdyb3VwGBAg" + |
| 29 | "ASgKMi0ucHJvdG9idWZfdW5pdHRlc3QuVGVzdEFsbFR5cGVzLk9wdGlvbmFs" + |
| 30 | "R3JvdXASTgoXb3B0aW9uYWxfbmVzdGVkX21lc3NhZ2UYEiABKAsyLS5wcm90" + |
| 31 | "b2J1Zl91bml0dGVzdC5UZXN0QWxsVHlwZXMuTmVzdGVkTWVzc2FnZRJDChhv" + |
| 32 | "cHRpb25hbF9mb3JlaWduX21lc3NhZ2UYEyABKAsyIS5wcm90b2J1Zl91bml0" + |
| 33 | "dGVzdC5Gb3JlaWduTWVzc2FnZRJIChdvcHRpb25hbF9pbXBvcnRfbWVzc2Fn" + |
| 34 | "ZRgUIAEoCzInLnByb3RvYnVmX3VuaXR0ZXN0X2ltcG9ydC5JbXBvcnRNZXNz" + |
| 35 | "YWdlEkgKFG9wdGlvbmFsX25lc3RlZF9lbnVtGBUgASgOMioucHJvdG9idWZf" + |
| 36 | "dW5pdHRlc3QuVGVzdEFsbFR5cGVzLk5lc3RlZEVudW0SPQoVb3B0aW9uYWxf" + |
| 37 | "Zm9yZWlnbl9lbnVtGBYgASgOMh4ucHJvdG9idWZfdW5pdHRlc3QuRm9yZWln" + |
| 38 | "bkVudW0SQgoUb3B0aW9uYWxfaW1wb3J0X2VudW0YFyABKA4yJC5wcm90b2J1" + |
| 39 | "Zl91bml0dGVzdF9pbXBvcnQuSW1wb3J0RW51bRIhChVvcHRpb25hbF9zdHJp" + |
| 40 | "bmdfcGllY2UYGCABKAlCAggCEhkKDW9wdGlvbmFsX2NvcmQYGSABKAlCAggB" + |
| 41 | "EhYKDnJlcGVhdGVkX2ludDMyGB8gAygFEhYKDnJlcGVhdGVkX2ludDY0GCAg" + |
| 42 | "AygDEhcKD3JlcGVhdGVkX3VpbnQzMhghIAMoDRIXCg9yZXBlYXRlZF91aW50" + |
| 43 | "NjQYIiADKAQSFwoPcmVwZWF0ZWRfc2ludDMyGCMgAygREhcKD3JlcGVhdGVk" + |
| 44 | "X3NpbnQ2NBgkIAMoEhIYChByZXBlYXRlZF9maXhlZDMyGCUgAygHEhgKEHJl" + |
| 45 | "cGVhdGVkX2ZpeGVkNjQYJiADKAYSGQoRcmVwZWF0ZWRfc2ZpeGVkMzIYJyAD" + |
| 46 | "KA8SGQoRcmVwZWF0ZWRfc2ZpeGVkNjQYKCADKBASFgoOcmVwZWF0ZWRfZmxv" + |
| 47 | "YXQYKSADKAISFwoPcmVwZWF0ZWRfZG91YmxlGCogAygBEhUKDXJlcGVhdGVk" + |
| 48 | "X2Jvb2wYKyADKAgSFwoPcmVwZWF0ZWRfc3RyaW5nGCwgAygJEhYKDnJlcGVh" + |
| 49 | "dGVkX2J5dGVzGC0gAygMEkQKDXJlcGVhdGVkZ3JvdXAYLiADKAoyLS5wcm90" + |
| 50 | "b2J1Zl91bml0dGVzdC5UZXN0QWxsVHlwZXMuUmVwZWF0ZWRHcm91cBJOChdy" + |
| 51 | "ZXBlYXRlZF9uZXN0ZWRfbWVzc2FnZRgwIAMoCzItLnByb3RvYnVmX3VuaXR0" + |
| 52 | "ZXN0LlRlc3RBbGxUeXBlcy5OZXN0ZWRNZXNzYWdlEkMKGHJlcGVhdGVkX2Zv" + |
| 53 | "cmVpZ25fbWVzc2FnZRgxIAMoCzIhLnByb3RvYnVmX3VuaXR0ZXN0LkZvcmVp" + |
| 54 | "Z25NZXNzYWdlEkgKF3JlcGVhdGVkX2ltcG9ydF9tZXNzYWdlGDIgAygLMicu" + |
| 55 | "cHJvdG9idWZfdW5pdHRlc3RfaW1wb3J0LkltcG9ydE1lc3NhZ2USSAoUcmVw" + |
| 56 | "ZWF0ZWRfbmVzdGVkX2VudW0YMyADKA4yKi5wcm90b2J1Zl91bml0dGVzdC5U" + |
| 57 | "ZXN0QWxsVHlwZXMuTmVzdGVkRW51bRI9ChVyZXBlYXRlZF9mb3JlaWduX2Vu" + |
| 58 | "dW0YNCADKA4yHi5wcm90b2J1Zl91bml0dGVzdC5Gb3JlaWduRW51bRJCChRy" + |
| 59 | "ZXBlYXRlZF9pbXBvcnRfZW51bRg1IAMoDjIkLnByb3RvYnVmX3VuaXR0ZXN0" + |
| 60 | "X2ltcG9ydC5JbXBvcnRFbnVtEiEKFXJlcGVhdGVkX3N0cmluZ19waWVjZRg2" + |
| 61 | "IAMoCUICCAISGQoNcmVwZWF0ZWRfY29yZBg3IAMoCUICCAESGQoNZGVmYXVs" + |
| 62 | "dF9pbnQzMhg9IAEoBToCNDESGQoNZGVmYXVsdF9pbnQ2NBg+IAEoAzoCNDIS" + |
| 63 | "GgoOZGVmYXVsdF91aW50MzIYPyABKA06AjQzEhoKDmRlZmF1bHRfdWludDY0" + |
| 64 | "GEAgASgEOgI0NBIbCg5kZWZhdWx0X3NpbnQzMhhBIAEoEToDLTQ1EhoKDmRl" + |
| 65 | "ZmF1bHRfc2ludDY0GEIgASgSOgI0NhIbCg9kZWZhdWx0X2ZpeGVkMzIYQyAB" + |
| 66 | "KAc6AjQ3EhsKD2RlZmF1bHRfZml4ZWQ2NBhEIAEoBjoCNDgSHAoQZGVmYXVs" + |
| 67 | "dF9zZml4ZWQzMhhFIAEoDzoCNDkSHQoQZGVmYXVsdF9zZml4ZWQ2NBhGIAEo" + |
| 68 | "EDoDLTUwEhsKDWRlZmF1bHRfZmxvYXQYRyABKAI6BDUxLjUSHQoOZGVmYXVs" + |
| 69 | "dF9kb3VibGUYSCABKAE6BTUyMDAwEhoKDGRlZmF1bHRfYm9vbBhJIAEoCDoE" + |
| 70 | "dHJ1ZRIdCg5kZWZhdWx0X3N0cmluZxhKIAEoCToFaGVsbG8SHAoNZGVmYXVs" + |
| 71 | "dF9ieXRlcxhLIAEoDDoFd29ybGQSTAoTZGVmYXVsdF9uZXN0ZWRfZW51bRhR" + |
| 72 | "IAEoDjIqLnByb3RvYnVmX3VuaXR0ZXN0LlRlc3RBbGxUeXBlcy5OZXN0ZWRF" + |
| 73 | "bnVtOgNCQVISSQoUZGVmYXVsdF9mb3JlaWduX2VudW0YUiABKA4yHi5wcm90" + |
| 74 | "b2J1Zl91bml0dGVzdC5Gb3JlaWduRW51bToLRk9SRUlHTl9CQVISTQoTZGVm" + |
| 75 | "YXVsdF9pbXBvcnRfZW51bRhTIAEoDjIkLnByb3RvYnVmX3VuaXR0ZXN0X2lt" + |
| 76 | "cG9ydC5JbXBvcnRFbnVtOgpJTVBPUlRfQkFSEiUKFGRlZmF1bHRfc3RyaW5n" + |
| 77 | "X3BpZWNlGFQgASgJOgNhYmNCAggCEh0KDGRlZmF1bHRfY29yZBhVIAEoCToD" + |
| 78 | "MTIzQgIIARobCg1OZXN0ZWRNZXNzYWdlEgoKAmJiGAEgASgFGhoKDU9wdGlv" + |
| 79 | "bmFsR3JvdXASCQoBYRgRIAEoBRoaCg1SZXBlYXRlZEdyb3VwEgkKAWEYLyAB" + |
| 80 | "KAUiJwoKTmVzdGVkRW51bRIHCgNGT08QARIHCgNCQVIQAhIHCgNCQVoQAyIb" + |
| 81 | "Cg5Gb3JlaWduTWVzc2FnZRIJCgFjGAEgASgFIh0KEVRlc3RBbGxFeHRlbnNp" + |
| 82 | "b25zKggIARCAgICAAiIkChdPcHRpb25hbEdyb3VwX2V4dGVuc2lvbhIJCgFh" + |
| 83 | "GBEgASgFIiQKF1JlcGVhdGVkR3JvdXBfZXh0ZW5zaW9uEgkKAWEYLyABKAUi" + |
| 84 | "1QUKDFRlc3RSZXF1aXJlZBIJCgFhGAEgAigFEg4KBmR1bW15MhgCIAEoBRIJ" + |
| 85 | "CgFiGAMgAigFEg4KBmR1bW15NBgEIAEoBRIOCgZkdW1teTUYBSABKAUSDgoG" + |
| 86 | "ZHVtbXk2GAYgASgFEg4KBmR1bW15NxgHIAEoBRIOCgZkdW1teTgYCCABKAUS" + |
| 87 | "DgoGZHVtbXk5GAkgASgFEg8KB2R1bW15MTAYCiABKAUSDwoHZHVtbXkxMRgL" + |
| 88 | "IAEoBRIPCgdkdW1teTEyGAwgASgFEg8KB2R1bW15MTMYDSABKAUSDwoHZHVt" + |
| 89 | "bXkxNBgOIAEoBRIPCgdkdW1teTE1GA8gASgFEg8KB2R1bW15MTYYECABKAUS" + |
| 90 | "DwoHZHVtbXkxNxgRIAEoBRIPCgdkdW1teTE4GBIgASgFEg8KB2R1bW15MTkY" + |
| 91 | "EyABKAUSDwoHZHVtbXkyMBgUIAEoBRIPCgdkdW1teTIxGBUgASgFEg8KB2R1" + |
| 92 | "bW15MjIYFiABKAUSDwoHZHVtbXkyMxgXIAEoBRIPCgdkdW1teTI0GBggASgF" + |
| 93 | "Eg8KB2R1bW15MjUYGSABKAUSDwoHZHVtbXkyNhgaIAEoBRIPCgdkdW1teTI3" + |
| 94 | "GBsgASgFEg8KB2R1bW15MjgYHCABKAUSDwoHZHVtbXkyORgdIAEoBRIPCgdk" + |
| 95 | "dW1teTMwGB4gASgFEg8KB2R1bW15MzEYHyABKAUSDwoHZHVtbXkzMhggIAEo" + |
| 96 | "BRIJCgFjGCEgAigFMlYKBnNpbmdsZRIkLnByb3RvYnVmX3VuaXR0ZXN0LlRl" + |
| 97 | "c3RBbGxFeHRlbnNpb25zGOgHIAEoCzIfLnByb3RvYnVmX3VuaXR0ZXN0LlRl" + |
| 98 | "c3RSZXF1aXJlZDJVCgVtdWx0aRIkLnByb3RvYnVmX3VuaXR0ZXN0LlRlc3RB" + |
| 99 | "bGxFeHRlbnNpb25zGOkHIAMoCzIfLnByb3RvYnVmX3VuaXR0ZXN0LlRlc3RS" + |
| 100 | "ZXF1aXJlZCKaAQoTVGVzdFJlcXVpcmVkRm9yZWlnbhI5ChBvcHRpb25hbF9t" + |
| 101 | "ZXNzYWdlGAEgASgLMh8ucHJvdG9idWZfdW5pdHRlc3QuVGVzdFJlcXVpcmVk" + |
| 102 | "EjkKEHJlcGVhdGVkX21lc3NhZ2UYAiADKAsyHy5wcm90b2J1Zl91bml0dGVz" + |
| 103 | "dC5UZXN0UmVxdWlyZWQSDQoFZHVtbXkYAyABKAUiWgoRVGVzdEZvcmVpZ25O" + |
| 104 | "ZXN0ZWQSRQoOZm9yZWlnbl9uZXN0ZWQYASABKAsyLS5wcm90b2J1Zl91bml0" + |
| 105 | "dGVzdC5UZXN0QWxsVHlwZXMuTmVzdGVkTWVzc2FnZSISChBUZXN0RW1wdHlN" + |
| 106 | "ZXNzYWdlIioKHlRlc3RFbXB0eU1lc3NhZ2VXaXRoRXh0ZW5zaW9ucyoICAEQ" + |
| 107 | "gICAgAIiNAoYVGVzdFJlYWxseUxhcmdlVGFnTnVtYmVyEgkKAWEYASABKAUS" + |
| 108 | "DQoCYmIY////fyABKAUiVQoUVGVzdFJlY3Vyc2l2ZU1lc3NhZ2USMgoBYRgB" + |
| 109 | "IAEoCzInLnByb3RvYnVmX3VuaXR0ZXN0LlRlc3RSZWN1cnNpdmVNZXNzYWdl" + |
| 110 | "EgkKAWkYAiABKAUiSwoUVGVzdE11dHVhbFJlY3Vyc2lvbkESMwoCYmIYASAB" + |
| 111 | "KAsyJy5wcm90b2J1Zl91bml0dGVzdC5UZXN0TXV0dWFsUmVjdXJzaW9uQiJi" + |
| 112 | "ChRUZXN0TXV0dWFsUmVjdXJzaW9uQhIyCgFhGAEgASgLMicucHJvdG9idWZf" + |
| 113 | "dW5pdHRlc3QuVGVzdE11dHVhbFJlY3Vyc2lvbkESFgoOb3B0aW9uYWxfaW50" + |
| 114 | "MzIYAiABKAUiswEKElRlc3REdXBGaWVsZE51bWJlchIJCgFhGAEgASgFEjYK" + |
| 115 | "A2ZvbxgCIAEoCjIpLnByb3RvYnVmX3VuaXR0ZXN0LlRlc3REdXBGaWVsZE51" + |
| 116 | "bWJlci5Gb28SNgoDYmFyGAMgASgKMikucHJvdG9idWZfdW5pdHRlc3QuVGVz" + |
| 117 | "dER1cEZpZWxkTnVtYmVyLkJhchoQCgNGb28SCQoBYRgBIAEoBRoQCgNCYXIS" + |
| 118 | "CQoBYRgBIAEoBSKAAgoYVGVzdE5lc3RlZE1lc3NhZ2VIYXNCaXRzEloKF29w" + |
| 119 | "dGlvbmFsX25lc3RlZF9tZXNzYWdlGAEgASgLMjkucHJvdG9idWZfdW5pdHRl" + |
| 120 | "c3QuVGVzdE5lc3RlZE1lc3NhZ2VIYXNCaXRzLk5lc3RlZE1lc3NhZ2UahwEK" + |
| 121 | "DU5lc3RlZE1lc3NhZ2USJAocbmVzdGVkbWVzc2FnZV9yZXBlYXRlZF9pbnQz" + |
| 122 | "MhgBIAMoBRJQCiVuZXN0ZWRtZXNzYWdlX3JlcGVhdGVkX2ZvcmVpZ25tZXNz" + |
| 123 | "YWdlGAIgAygLMiEucHJvdG9idWZfdW5pdHRlc3QuRm9yZWlnbk1lc3NhZ2Ui" + |
| 124 | "5QMKF1Rlc3RDYW1lbENhc2VGaWVsZE5hbWVzEhYKDlByaW1pdGl2ZUZpZWxk" + |
| 125 | "GAEgASgFEhMKC1N0cmluZ0ZpZWxkGAIgASgJEjEKCUVudW1GaWVsZBgDIAEo" + |
| 126 | "DjIeLnByb3RvYnVmX3VuaXR0ZXN0LkZvcmVpZ25FbnVtEjcKDE1lc3NhZ2VG" + |
| 127 | "aWVsZBgEIAEoCzIhLnByb3RvYnVmX3VuaXR0ZXN0LkZvcmVpZ25NZXNzYWdl" + |
| 128 | "EhwKEFN0cmluZ1BpZWNlRmllbGQYBSABKAlCAggCEhUKCUNvcmRGaWVsZBgG" + |
| 129 | "IAEoCUICCAESHgoWUmVwZWF0ZWRQcmltaXRpdmVGaWVsZBgHIAMoBRIbChNS" + |
| 130 | "ZXBlYXRlZFN0cmluZ0ZpZWxkGAggAygJEjkKEVJlcGVhdGVkRW51bUZpZWxk" + |
| 131 | "GAkgAygOMh4ucHJvdG9idWZfdW5pdHRlc3QuRm9yZWlnbkVudW0SPwoUUmVw" + |
| 132 | "ZWF0ZWRNZXNzYWdlRmllbGQYCiADKAsyIS5wcm90b2J1Zl91bml0dGVzdC5G" + |
| 133 | "b3JlaWduTWVzc2FnZRIkChhSZXBlYXRlZFN0cmluZ1BpZWNlRmllbGQYCyAD" + |
| 134 | "KAlCAggCEh0KEVJlcGVhdGVkQ29yZEZpZWxkGAwgAygJQgIIASJVChJUZXN0" + |
| 135 | "RmllbGRPcmRlcmluZ3MSEQoJbXlfc3RyaW5nGAsgASgJEg4KBm15X2ludBgB" + |
| 136 | "IAEoAxIQCghteV9mbG9hdBhlIAEoAioECAIQCyoECAwQZSKQAgoYVGVzdEV4" + |
| 137 | "dHJlbWVEZWZhdWx0VmFsdWVzEj8KDWVzY2FwZWRfYnl0ZXMYASABKAw6KFww" + |
| 138 | "MDBcMDAxXDAwN1wwMTBcMDE0XG5cclx0XDAxM1xcXCdcIlwzNzYSIAoMbGFy" + |
| 139 | "Z2VfdWludDMyGAIgASgNOgo0Mjk0OTY3Mjk1EioKDGxhcmdlX3VpbnQ2NBgD" + |
| 140 | "IAEoBDoUMTg0NDY3NDQwNzM3MDk1NTE2MTUSIAoLc21hbGxfaW50MzIYBCAB" + |
| 141 | "KAU6Cy0yMTQ3NDgzNjQ3EikKC3NtYWxsX2ludDY0GAUgASgDOhQtOTIyMzM3" + |
Jon Skeet | 25a2858 | 2009-02-18 16:06:22 +0000 | [diff] [blame^] | 142 | "MjAzNjg1NDc3NTgwNxIYCgt1dGY4X3N0cmluZxgGIAEoCToD4Yi0IqoDCg9U" + |
| 143 | "ZXN0UGFja2VkVHlwZXMSGAoMcGFja2VkX2ludDMyGFogAygFQgIQARIYCgxw" + |
| 144 | "YWNrZWRfaW50NjQYWyADKANCAhABEhkKDXBhY2tlZF91aW50MzIYXCADKA1C" + |
| 145 | "AhABEhkKDXBhY2tlZF91aW50NjQYXSADKARCAhABEhkKDXBhY2tlZF9zaW50" + |
| 146 | "MzIYXiADKBFCAhABEhkKDXBhY2tlZF9zaW50NjQYXyADKBJCAhABEhoKDnBh" + |
| 147 | "Y2tlZF9maXhlZDMyGGAgAygHQgIQARIaCg5wYWNrZWRfZml4ZWQ2NBhhIAMo" + |
| 148 | "BkICEAESGwoPcGFja2VkX3NmaXhlZDMyGGIgAygPQgIQARIbCg9wYWNrZWRf" + |
| 149 | "c2ZpeGVkNjQYYyADKBBCAhABEhgKDHBhY2tlZF9mbG9hdBhkIAMoAkICEAES" + |
| 150 | "GQoNcGFja2VkX2RvdWJsZRhlIAMoAUICEAESFwoLcGFja2VkX2Jvb2wYZiAD" + |
| 151 | "KAhCAhABEjcKC3BhY2tlZF9lbnVtGGcgAygOMh4ucHJvdG9idWZfdW5pdHRl" + |
| 152 | "c3QuRm9yZWlnbkVudW1CAhABIiAKFFRlc3RQYWNrZWRFeHRlbnNpb25zKggI" + |
| 153 | "ARCAgICAAiIMCgpGb29SZXF1ZXN0Ig0KC0Zvb1Jlc3BvbnNlIgwKCkJhclJl" + |
| 154 | "cXVlc3QiDQoLQmFyUmVzcG9uc2UqQAoLRm9yZWlnbkVudW0SDwoLRk9SRUlH" + |
| 155 | "Tl9GT08QBBIPCgtGT1JFSUdOX0JBUhAFEg8KC0ZPUkVJR05fQkFaEAYqRwoU" + |
| 156 | "VGVzdEVudW1XaXRoRHVwVmFsdWUSCAoERk9PMRABEggKBEJBUjEQAhIHCgNC" + |
| 157 | "QVoQAxIICgRGT08yEAESCAoEQkFSMhACKokBCg5UZXN0U3BhcnNlRW51bRIM" + |
| 158 | "CghTUEFSU0VfQRB7Eg4KCFNQQVJTRV9CEKbnAxIPCghTUEFSU0VfQxCysYAG" + |
| 159 | "EhUKCFNQQVJTRV9EEPH//////////wESFQoIU1BBUlNFX0UQtN78////////" + |
| 160 | "ARIMCghTUEFSU0VfRhAAEgwKCFNQQVJTRV9HEAIymQEKC1Rlc3RTZXJ2aWNl" + |
| 161 | "EkQKA0ZvbxIdLnByb3RvYnVmX3VuaXR0ZXN0LkZvb1JlcXVlc3QaHi5wcm90" + |
| 162 | "b2J1Zl91bml0dGVzdC5Gb29SZXNwb25zZRJECgNCYXISHS5wcm90b2J1Zl91" + |
| 163 | "bml0dGVzdC5CYXJSZXF1ZXN0Gh4ucHJvdG9idWZfdW5pdHRlc3QuQmFyUmVz" + |
| 164 | "cG9uc2U6RgoYb3B0aW9uYWxfaW50MzJfZXh0ZW5zaW9uEiQucHJvdG9idWZf" + |
| 165 | "dW5pdHRlc3QuVGVzdEFsbEV4dGVuc2lvbnMYASABKAU6RgoYb3B0aW9uYWxf" + |
| 166 | "aW50NjRfZXh0ZW5zaW9uEiQucHJvdG9idWZfdW5pdHRlc3QuVGVzdEFsbEV4" + |
| 167 | "dGVuc2lvbnMYAiABKAM6RwoZb3B0aW9uYWxfdWludDMyX2V4dGVuc2lvbhIk" + |
| 168 | "LnByb3RvYnVmX3VuaXR0ZXN0LlRlc3RBbGxFeHRlbnNpb25zGAMgASgNOkcK" + |
| 169 | "GW9wdGlvbmFsX3VpbnQ2NF9leHRlbnNpb24SJC5wcm90b2J1Zl91bml0dGVz" + |
| 170 | "dC5UZXN0QWxsRXh0ZW5zaW9ucxgEIAEoBDpHChlvcHRpb25hbF9zaW50MzJf" + |
Jon Skeet | 343d9f5 | 2009-01-16 11:52:44 +0000 | [diff] [blame] | 171 | "ZXh0ZW5zaW9uEiQucHJvdG9idWZfdW5pdHRlc3QuVGVzdEFsbEV4dGVuc2lv" + |
Jon Skeet | 25a2858 | 2009-02-18 16:06:22 +0000 | [diff] [blame^] | 172 | "bnMYBSABKBE6RwoZb3B0aW9uYWxfc2ludDY0X2V4dGVuc2lvbhIkLnByb3Rv" + |
| 173 | "YnVmX3VuaXR0ZXN0LlRlc3RBbGxFeHRlbnNpb25zGAYgASgSOkgKGm9wdGlv" + |
| 174 | "bmFsX2ZpeGVkMzJfZXh0ZW5zaW9uEiQucHJvdG9idWZfdW5pdHRlc3QuVGVz" + |
| 175 | "dEFsbEV4dGVuc2lvbnMYByABKAc6SAoab3B0aW9uYWxfZml4ZWQ2NF9leHRl" + |
| 176 | "bnNpb24SJC5wcm90b2J1Zl91bml0dGVzdC5UZXN0QWxsRXh0ZW5zaW9ucxgI" + |
| 177 | "IAEoBjpJChtvcHRpb25hbF9zZml4ZWQzMl9leHRlbnNpb24SJC5wcm90b2J1" + |
| 178 | "Zl91bml0dGVzdC5UZXN0QWxsRXh0ZW5zaW9ucxgJIAEoDzpJChtvcHRpb25h" + |
| 179 | "bF9zZml4ZWQ2NF9leHRlbnNpb24SJC5wcm90b2J1Zl91bml0dGVzdC5UZXN0" + |
| 180 | "QWxsRXh0ZW5zaW9ucxgKIAEoEDpGChhvcHRpb25hbF9mbG9hdF9leHRlbnNp" + |
| 181 | "b24SJC5wcm90b2J1Zl91bml0dGVzdC5UZXN0QWxsRXh0ZW5zaW9ucxgLIAEo" + |
| 182 | "AjpHChlvcHRpb25hbF9kb3VibGVfZXh0ZW5zaW9uEiQucHJvdG9idWZfdW5p" + |
| 183 | "dHRlc3QuVGVzdEFsbEV4dGVuc2lvbnMYDCABKAE6RQoXb3B0aW9uYWxfYm9v" + |
| 184 | "bF9leHRlbnNpb24SJC5wcm90b2J1Zl91bml0dGVzdC5UZXN0QWxsRXh0ZW5z" + |
| 185 | "aW9ucxgNIAEoCDpHChlvcHRpb25hbF9zdHJpbmdfZXh0ZW5zaW9uEiQucHJv" + |
| 186 | "dG9idWZfdW5pdHRlc3QuVGVzdEFsbEV4dGVuc2lvbnMYDiABKAk6RgoYb3B0" + |
| 187 | "aW9uYWxfYnl0ZXNfZXh0ZW5zaW9uEiQucHJvdG9idWZfdW5pdHRlc3QuVGVz" + |
| 188 | "dEFsbEV4dGVuc2lvbnMYDyABKAw6cQoXb3B0aW9uYWxncm91cF9leHRlbnNp" + |
| 189 | "b24SJC5wcm90b2J1Zl91bml0dGVzdC5UZXN0QWxsRXh0ZW5zaW9ucxgQIAEo" + |
| 190 | "CjIqLnByb3RvYnVmX3VuaXR0ZXN0Lk9wdGlvbmFsR3JvdXBfZXh0ZW5zaW9u" + |
| 191 | "On4KIW9wdGlvbmFsX25lc3RlZF9tZXNzYWdlX2V4dGVuc2lvbhIkLnByb3Rv" + |
| 192 | "YnVmX3VuaXR0ZXN0LlRlc3RBbGxFeHRlbnNpb25zGBIgASgLMi0ucHJvdG9i" + |
| 193 | "dWZfdW5pdHRlc3QuVGVzdEFsbFR5cGVzLk5lc3RlZE1lc3NhZ2U6cwoib3B0" + |
| 194 | "aW9uYWxfZm9yZWlnbl9tZXNzYWdlX2V4dGVuc2lvbhIkLnByb3RvYnVmX3Vu" + |
| 195 | "aXR0ZXN0LlRlc3RBbGxFeHRlbnNpb25zGBMgASgLMiEucHJvdG9idWZfdW5p" + |
| 196 | "dHRlc3QuRm9yZWlnbk1lc3NhZ2U6eAohb3B0aW9uYWxfaW1wb3J0X21lc3Nh" + |
| 197 | "Z2VfZXh0ZW5zaW9uEiQucHJvdG9idWZfdW5pdHRlc3QuVGVzdEFsbEV4dGVu" + |
| 198 | "c2lvbnMYFCABKAsyJy5wcm90b2J1Zl91bml0dGVzdF9pbXBvcnQuSW1wb3J0" + |
| 199 | "TWVzc2FnZTp4Ch5vcHRpb25hbF9uZXN0ZWRfZW51bV9leHRlbnNpb24SJC5w" + |
| 200 | "cm90b2J1Zl91bml0dGVzdC5UZXN0QWxsRXh0ZW5zaW9ucxgVIAEoDjIqLnBy" + |
| 201 | "b3RvYnVmX3VuaXR0ZXN0LlRlc3RBbGxUeXBlcy5OZXN0ZWRFbnVtOm0KH29w" + |
| 202 | "dGlvbmFsX2ZvcmVpZ25fZW51bV9leHRlbnNpb24SJC5wcm90b2J1Zl91bml0" + |
| 203 | "dGVzdC5UZXN0QWxsRXh0ZW5zaW9ucxgWIAEoDjIeLnByb3RvYnVmX3VuaXR0" + |
| 204 | "ZXN0LkZvcmVpZ25FbnVtOnIKHm9wdGlvbmFsX2ltcG9ydF9lbnVtX2V4dGVu" + |
| 205 | "c2lvbhIkLnByb3RvYnVmX3VuaXR0ZXN0LlRlc3RBbGxFeHRlbnNpb25zGBcg" + |
| 206 | "ASgOMiQucHJvdG9idWZfdW5pdHRlc3RfaW1wb3J0LkltcG9ydEVudW06UQof" + |
| 207 | "b3B0aW9uYWxfc3RyaW5nX3BpZWNlX2V4dGVuc2lvbhIkLnByb3RvYnVmX3Vu" + |
| 208 | "aXR0ZXN0LlRlc3RBbGxFeHRlbnNpb25zGBggASgJQgIIAjpJChdvcHRpb25h" + |
| 209 | "bF9jb3JkX2V4dGVuc2lvbhIkLnByb3RvYnVmX3VuaXR0ZXN0LlRlc3RBbGxF" + |
| 210 | "eHRlbnNpb25zGBkgASgJQgIIATpGChhyZXBlYXRlZF9pbnQzMl9leHRlbnNp" + |
| 211 | "b24SJC5wcm90b2J1Zl91bml0dGVzdC5UZXN0QWxsRXh0ZW5zaW9ucxgfIAMo" + |
| 212 | "BTpGChhyZXBlYXRlZF9pbnQ2NF9leHRlbnNpb24SJC5wcm90b2J1Zl91bml0" + |
| 213 | "dGVzdC5UZXN0QWxsRXh0ZW5zaW9ucxggIAMoAzpHChlyZXBlYXRlZF91aW50" + |
| 214 | "MzJfZXh0ZW5zaW9uEiQucHJvdG9idWZfdW5pdHRlc3QuVGVzdEFsbEV4dGVu" + |
| 215 | "c2lvbnMYISADKA06RwoZcmVwZWF0ZWRfdWludDY0X2V4dGVuc2lvbhIkLnBy" + |
| 216 | "b3RvYnVmX3VuaXR0ZXN0LlRlc3RBbGxFeHRlbnNpb25zGCIgAygEOkcKGXJl" + |
| 217 | "cGVhdGVkX3NpbnQzMl9leHRlbnNpb24SJC5wcm90b2J1Zl91bml0dGVzdC5U" + |
| 218 | "ZXN0QWxsRXh0ZW5zaW9ucxgjIAMoETpHChlyZXBlYXRlZF9zaW50NjRfZXh0" + |
| 219 | "ZW5zaW9uEiQucHJvdG9idWZfdW5pdHRlc3QuVGVzdEFsbEV4dGVuc2lvbnMY" + |
| 220 | "JCADKBI6SAoacmVwZWF0ZWRfZml4ZWQzMl9leHRlbnNpb24SJC5wcm90b2J1" + |
| 221 | "Zl91bml0dGVzdC5UZXN0QWxsRXh0ZW5zaW9ucxglIAMoBzpIChpyZXBlYXRl" + |
| 222 | "ZF9maXhlZDY0X2V4dGVuc2lvbhIkLnByb3RvYnVmX3VuaXR0ZXN0LlRlc3RB" + |
| 223 | "bGxFeHRlbnNpb25zGCYgAygGOkkKG3JlcGVhdGVkX3NmaXhlZDMyX2V4dGVu" + |
| 224 | "c2lvbhIkLnByb3RvYnVmX3VuaXR0ZXN0LlRlc3RBbGxFeHRlbnNpb25zGCcg" + |
| 225 | "AygPOkkKG3JlcGVhdGVkX3NmaXhlZDY0X2V4dGVuc2lvbhIkLnByb3RvYnVm" + |
| 226 | "X3VuaXR0ZXN0LlRlc3RBbGxFeHRlbnNpb25zGCggAygQOkYKGHJlcGVhdGVk" + |
| 227 | "X2Zsb2F0X2V4dGVuc2lvbhIkLnByb3RvYnVmX3VuaXR0ZXN0LlRlc3RBbGxF" + |
| 228 | "eHRlbnNpb25zGCkgAygCOkcKGXJlcGVhdGVkX2RvdWJsZV9leHRlbnNpb24S" + |
| 229 | "JC5wcm90b2J1Zl91bml0dGVzdC5UZXN0QWxsRXh0ZW5zaW9ucxgqIAMoATpF" + |
| 230 | "ChdyZXBlYXRlZF9ib29sX2V4dGVuc2lvbhIkLnByb3RvYnVmX3VuaXR0ZXN0" + |
| 231 | "LlRlc3RBbGxFeHRlbnNpb25zGCsgAygIOkcKGXJlcGVhdGVkX3N0cmluZ19l" + |
| 232 | "eHRlbnNpb24SJC5wcm90b2J1Zl91bml0dGVzdC5UZXN0QWxsRXh0ZW5zaW9u" + |
| 233 | "cxgsIAMoCTpGChhyZXBlYXRlZF9ieXRlc19leHRlbnNpb24SJC5wcm90b2J1" + |
| 234 | "Zl91bml0dGVzdC5UZXN0QWxsRXh0ZW5zaW9ucxgtIAMoDDpxChdyZXBlYXRl" + |
| 235 | "ZGdyb3VwX2V4dGVuc2lvbhIkLnByb3RvYnVmX3VuaXR0ZXN0LlRlc3RBbGxF" + |
| 236 | "eHRlbnNpb25zGC4gAygKMioucHJvdG9idWZfdW5pdHRlc3QuUmVwZWF0ZWRH" + |
| 237 | "cm91cF9leHRlbnNpb246fgohcmVwZWF0ZWRfbmVzdGVkX21lc3NhZ2VfZXh0" + |
| 238 | "ZW5zaW9uEiQucHJvdG9idWZfdW5pdHRlc3QuVGVzdEFsbEV4dGVuc2lvbnMY" + |
| 239 | "MCADKAsyLS5wcm90b2J1Zl91bml0dGVzdC5UZXN0QWxsVHlwZXMuTmVzdGVk" + |
| 240 | "TWVzc2FnZTpzCiJyZXBlYXRlZF9mb3JlaWduX21lc3NhZ2VfZXh0ZW5zaW9u" + |
| 241 | "EiQucHJvdG9idWZfdW5pdHRlc3QuVGVzdEFsbEV4dGVuc2lvbnMYMSADKAsy" + |
| 242 | "IS5wcm90b2J1Zl91bml0dGVzdC5Gb3JlaWduTWVzc2FnZTp4CiFyZXBlYXRl" + |
| 243 | "ZF9pbXBvcnRfbWVzc2FnZV9leHRlbnNpb24SJC5wcm90b2J1Zl91bml0dGVz" + |
| 244 | "dC5UZXN0QWxsRXh0ZW5zaW9ucxgyIAMoCzInLnByb3RvYnVmX3VuaXR0ZXN0" + |
| 245 | "X2ltcG9ydC5JbXBvcnRNZXNzYWdlOngKHnJlcGVhdGVkX25lc3RlZF9lbnVt" + |
Jon Skeet | 343d9f5 | 2009-01-16 11:52:44 +0000 | [diff] [blame] | 246 | "X2V4dGVuc2lvbhIkLnByb3RvYnVmX3VuaXR0ZXN0LlRlc3RBbGxFeHRlbnNp" + |
Jon Skeet | 25a2858 | 2009-02-18 16:06:22 +0000 | [diff] [blame^] | 247 | "b25zGDMgAygOMioucHJvdG9idWZfdW5pdHRlc3QuVGVzdEFsbFR5cGVzLk5l" + |
| 248 | "c3RlZEVudW06bQofcmVwZWF0ZWRfZm9yZWlnbl9lbnVtX2V4dGVuc2lvbhIk" + |
| 249 | "LnByb3RvYnVmX3VuaXR0ZXN0LlRlc3RBbGxFeHRlbnNpb25zGDQgAygOMh4u" + |
| 250 | "cHJvdG9idWZfdW5pdHRlc3QuRm9yZWlnbkVudW06cgoecmVwZWF0ZWRfaW1w" + |
| 251 | "b3J0X2VudW1fZXh0ZW5zaW9uEiQucHJvdG9idWZfdW5pdHRlc3QuVGVzdEFs" + |
| 252 | "bEV4dGVuc2lvbnMYNSADKA4yJC5wcm90b2J1Zl91bml0dGVzdF9pbXBvcnQu" + |
| 253 | "SW1wb3J0RW51bTpRCh9yZXBlYXRlZF9zdHJpbmdfcGllY2VfZXh0ZW5zaW9u" + |
| 254 | "EiQucHJvdG9idWZfdW5pdHRlc3QuVGVzdEFsbEV4dGVuc2lvbnMYNiADKAlC" + |
| 255 | "AggCOkkKF3JlcGVhdGVkX2NvcmRfZXh0ZW5zaW9uEiQucHJvdG9idWZfdW5p" + |
| 256 | "dHRlc3QuVGVzdEFsbEV4dGVuc2lvbnMYNyADKAlCAggBOkkKF2RlZmF1bHRf" + |
| 257 | "aW50MzJfZXh0ZW5zaW9uEiQucHJvdG9idWZfdW5pdHRlc3QuVGVzdEFsbEV4" + |
| 258 | "dGVuc2lvbnMYPSABKAU6AjQxOkkKF2RlZmF1bHRfaW50NjRfZXh0ZW5zaW9u" + |
| 259 | "EiQucHJvdG9idWZfdW5pdHRlc3QuVGVzdEFsbEV4dGVuc2lvbnMYPiABKAM6" + |
| 260 | "AjQyOkoKGGRlZmF1bHRfdWludDMyX2V4dGVuc2lvbhIkLnByb3RvYnVmX3Vu" + |
| 261 | "aXR0ZXN0LlRlc3RBbGxFeHRlbnNpb25zGD8gASgNOgI0MzpKChhkZWZhdWx0" + |
| 262 | "X3VpbnQ2NF9leHRlbnNpb24SJC5wcm90b2J1Zl91bml0dGVzdC5UZXN0QWxs" + |
| 263 | "RXh0ZW5zaW9ucxhAIAEoBDoCNDQ6SwoYZGVmYXVsdF9zaW50MzJfZXh0ZW5z" + |
| 264 | "aW9uEiQucHJvdG9idWZfdW5pdHRlc3QuVGVzdEFsbEV4dGVuc2lvbnMYQSAB" + |
| 265 | "KBE6Ay00NTpKChhkZWZhdWx0X3NpbnQ2NF9leHRlbnNpb24SJC5wcm90b2J1" + |
| 266 | "Zl91bml0dGVzdC5UZXN0QWxsRXh0ZW5zaW9ucxhCIAEoEjoCNDY6SwoZZGVm" + |
| 267 | "YXVsdF9maXhlZDMyX2V4dGVuc2lvbhIkLnByb3RvYnVmX3VuaXR0ZXN0LlRl" + |
| 268 | "c3RBbGxFeHRlbnNpb25zGEMgASgHOgI0NzpLChlkZWZhdWx0X2ZpeGVkNjRf" + |
| 269 | "ZXh0ZW5zaW9uEiQucHJvdG9idWZfdW5pdHRlc3QuVGVzdEFsbEV4dGVuc2lv" + |
| 270 | "bnMYRCABKAY6AjQ4OkwKGmRlZmF1bHRfc2ZpeGVkMzJfZXh0ZW5zaW9uEiQu" + |
| 271 | "cHJvdG9idWZfdW5pdHRlc3QuVGVzdEFsbEV4dGVuc2lvbnMYRSABKA86AjQ5" + |
| 272 | "Ok0KGmRlZmF1bHRfc2ZpeGVkNjRfZXh0ZW5zaW9uEiQucHJvdG9idWZfdW5p" + |
| 273 | "dHRlc3QuVGVzdEFsbEV4dGVuc2lvbnMYRiABKBA6Ay01MDpLChdkZWZhdWx0" + |
| 274 | "X2Zsb2F0X2V4dGVuc2lvbhIkLnByb3RvYnVmX3VuaXR0ZXN0LlRlc3RBbGxF" + |
| 275 | "eHRlbnNpb25zGEcgASgCOgQ1MS41Ok0KGGRlZmF1bHRfZG91YmxlX2V4dGVu" + |
| 276 | "c2lvbhIkLnByb3RvYnVmX3VuaXR0ZXN0LlRlc3RBbGxFeHRlbnNpb25zGEgg" + |
| 277 | "ASgBOgU1MjAwMDpKChZkZWZhdWx0X2Jvb2xfZXh0ZW5zaW9uEiQucHJvdG9i" + |
| 278 | "dWZfdW5pdHRlc3QuVGVzdEFsbEV4dGVuc2lvbnMYSSABKAg6BHRydWU6TQoY" + |
| 279 | "ZGVmYXVsdF9zdHJpbmdfZXh0ZW5zaW9uEiQucHJvdG9idWZfdW5pdHRlc3Qu" + |
| 280 | "VGVzdEFsbEV4dGVuc2lvbnMYSiABKAk6BWhlbGxvOkwKF2RlZmF1bHRfYnl0" + |
| 281 | "ZXNfZXh0ZW5zaW9uEiQucHJvdG9idWZfdW5pdHRlc3QuVGVzdEFsbEV4dGVu" + |
| 282 | "c2lvbnMYSyABKAw6BXdvcmxkOnwKHWRlZmF1bHRfbmVzdGVkX2VudW1fZXh0" + |
| 283 | "ZW5zaW9uEiQucHJvdG9idWZfdW5pdHRlc3QuVGVzdEFsbEV4dGVuc2lvbnMY" + |
| 284 | "USABKA4yKi5wcm90b2J1Zl91bml0dGVzdC5UZXN0QWxsVHlwZXMuTmVzdGVk" + |
| 285 | "RW51bToDQkFSOnkKHmRlZmF1bHRfZm9yZWlnbl9lbnVtX2V4dGVuc2lvbhIk" + |
| 286 | "LnByb3RvYnVmX3VuaXR0ZXN0LlRlc3RBbGxFeHRlbnNpb25zGFIgASgOMh4u" + |
| 287 | "cHJvdG9idWZfdW5pdHRlc3QuRm9yZWlnbkVudW06C0ZPUkVJR05fQkFSOn0K" + |
| 288 | "HWRlZmF1bHRfaW1wb3J0X2VudW1fZXh0ZW5zaW9uEiQucHJvdG9idWZfdW5p" + |
| 289 | "dHRlc3QuVGVzdEFsbEV4dGVuc2lvbnMYUyABKA4yJC5wcm90b2J1Zl91bml0" + |
| 290 | "dGVzdF9pbXBvcnQuSW1wb3J0RW51bToKSU1QT1JUX0JBUjpVCh5kZWZhdWx0" + |
| 291 | "X3N0cmluZ19waWVjZV9leHRlbnNpb24SJC5wcm90b2J1Zl91bml0dGVzdC5U" + |
| 292 | "ZXN0QWxsRXh0ZW5zaW9ucxhUIAEoCToDYWJjQgIIAjpNChZkZWZhdWx0X2Nv" + |
| 293 | "cmRfZXh0ZW5zaW9uEiQucHJvdG9idWZfdW5pdHRlc3QuVGVzdEFsbEV4dGVu" + |
| 294 | "c2lvbnMYVSABKAk6AzEyM0ICCAE6QgoTbXlfZXh0ZW5zaW9uX3N0cmluZxIl" + |
| 295 | "LnByb3RvYnVmX3VuaXR0ZXN0LlRlc3RGaWVsZE9yZGVyaW5ncxgyIAEoCTo/" + |
| 296 | "ChBteV9leHRlbnNpb25faW50EiUucHJvdG9idWZfdW5pdHRlc3QuVGVzdEZp" + |
| 297 | "ZWxkT3JkZXJpbmdzGAUgASgFOksKFnBhY2tlZF9pbnQzMl9leHRlbnNpb24S" + |
| 298 | "Jy5wcm90b2J1Zl91bml0dGVzdC5UZXN0UGFja2VkRXh0ZW5zaW9ucxhaIAMo" + |
| 299 | "BUICEAE6SwoWcGFja2VkX2ludDY0X2V4dGVuc2lvbhInLnByb3RvYnVmX3Vu" + |
| 300 | "aXR0ZXN0LlRlc3RQYWNrZWRFeHRlbnNpb25zGFsgAygDQgIQATpMChdwYWNr" + |
| 301 | "ZWRfdWludDMyX2V4dGVuc2lvbhInLnByb3RvYnVmX3VuaXR0ZXN0LlRlc3RQ" + |
| 302 | "YWNrZWRFeHRlbnNpb25zGFwgAygNQgIQATpMChdwYWNrZWRfdWludDY0X2V4" + |
| 303 | "dGVuc2lvbhInLnByb3RvYnVmX3VuaXR0ZXN0LlRlc3RQYWNrZWRFeHRlbnNp" + |
| 304 | "b25zGF0gAygEQgIQATpMChdwYWNrZWRfc2ludDMyX2V4dGVuc2lvbhInLnBy" + |
| 305 | "b3RvYnVmX3VuaXR0ZXN0LlRlc3RQYWNrZWRFeHRlbnNpb25zGF4gAygRQgIQ" + |
| 306 | "ATpMChdwYWNrZWRfc2ludDY0X2V4dGVuc2lvbhInLnByb3RvYnVmX3VuaXR0" + |
| 307 | "ZXN0LlRlc3RQYWNrZWRFeHRlbnNpb25zGF8gAygSQgIQATpNChhwYWNrZWRf" + |
| 308 | "Zml4ZWQzMl9leHRlbnNpb24SJy5wcm90b2J1Zl91bml0dGVzdC5UZXN0UGFj" + |
| 309 | "a2VkRXh0ZW5zaW9ucxhgIAMoB0ICEAE6TQoYcGFja2VkX2ZpeGVkNjRfZXh0" + |
| 310 | "ZW5zaW9uEicucHJvdG9idWZfdW5pdHRlc3QuVGVzdFBhY2tlZEV4dGVuc2lv" + |
| 311 | "bnMYYSADKAZCAhABOk4KGXBhY2tlZF9zZml4ZWQzMl9leHRlbnNpb24SJy5w" + |
| 312 | "cm90b2J1Zl91bml0dGVzdC5UZXN0UGFja2VkRXh0ZW5zaW9ucxhiIAMoD0IC" + |
| 313 | "EAE6TgoZcGFja2VkX3NmaXhlZDY0X2V4dGVuc2lvbhInLnByb3RvYnVmX3Vu" + |
| 314 | "aXR0ZXN0LlRlc3RQYWNrZWRFeHRlbnNpb25zGGMgAygQQgIQATpLChZwYWNr" + |
| 315 | "ZWRfZmxvYXRfZXh0ZW5zaW9uEicucHJvdG9idWZfdW5pdHRlc3QuVGVzdFBh" + |
| 316 | "Y2tlZEV4dGVuc2lvbnMYZCADKAJCAhABOkwKF3BhY2tlZF9kb3VibGVfZXh0" + |
| 317 | "ZW5zaW9uEicucHJvdG9idWZfdW5pdHRlc3QuVGVzdFBhY2tlZEV4dGVuc2lv" + |
| 318 | "bnMYZSADKAFCAhABOkoKFXBhY2tlZF9ib29sX2V4dGVuc2lvbhInLnByb3Rv" + |
| 319 | "YnVmX3VuaXR0ZXN0LlRlc3RQYWNrZWRFeHRlbnNpb25zGGYgAygIQgIQATpq" + |
| 320 | "ChVwYWNrZWRfZW51bV9leHRlbnNpb24SJy5wcm90b2J1Zl91bml0dGVzdC5U" + |
| 321 | "ZXN0UGFja2VkRXh0ZW5zaW9ucxhnIAMoDjIeLnByb3RvYnVmX3VuaXR0ZXN0" + |
| 322 | "LkZvcmVpZ25FbnVtQgIQAUJKQg1Vbml0dGVzdFByb3RvSAHCPjYKIUdvb2ds" + |
| 323 | "ZS5Qcm90b2NvbEJ1ZmZlcnMuVGVzdFByb3RvcxIRVW5pdFRlc3RQcm90b0Zp" + |
| 324 | "bGU="), |
Jon Skeet | 6803686 | 2008-10-22 13:30:34 +0100 | [diff] [blame] | 325 | new pbd::FileDescriptor[] { |
| 326 | global::Google.ProtocolBuffers.DescriptorProtos.CSharpOptions.Descriptor, |
Jon Skeet | 6803686 | 2008-10-22 13:30:34 +0100 | [diff] [blame] | 327 | global::Google.ProtocolBuffers.TestProtos.UnitTestImportProtoFile.Descriptor, |
| 328 | }); |
| 329 | #endregion |
| 330 | |
| 331 | #region Extensions |
| 332 | public static readonly pb::GeneratedExtensionBase<int> OptionalInt32Extension = |
| 333 | pb::GeneratedSingleExtension<int>.CreateInstance(Descriptor.Extensions[0]); |
| 334 | public static readonly pb::GeneratedExtensionBase<long> OptionalInt64Extension = |
| 335 | pb::GeneratedSingleExtension<long>.CreateInstance(Descriptor.Extensions[1]); |
| 336 | public static readonly pb::GeneratedExtensionBase<uint> OptionalUint32Extension = |
| 337 | pb::GeneratedSingleExtension<uint>.CreateInstance(Descriptor.Extensions[2]); |
| 338 | public static readonly pb::GeneratedExtensionBase<ulong> OptionalUint64Extension = |
| 339 | pb::GeneratedSingleExtension<ulong>.CreateInstance(Descriptor.Extensions[3]); |
| 340 | public static readonly pb::GeneratedExtensionBase<int> OptionalSint32Extension = |
| 341 | pb::GeneratedSingleExtension<int>.CreateInstance(Descriptor.Extensions[4]); |
| 342 | public static readonly pb::GeneratedExtensionBase<long> OptionalSint64Extension = |
| 343 | pb::GeneratedSingleExtension<long>.CreateInstance(Descriptor.Extensions[5]); |
| 344 | public static readonly pb::GeneratedExtensionBase<uint> OptionalFixed32Extension = |
| 345 | pb::GeneratedSingleExtension<uint>.CreateInstance(Descriptor.Extensions[6]); |
| 346 | public static readonly pb::GeneratedExtensionBase<ulong> OptionalFixed64Extension = |
| 347 | pb::GeneratedSingleExtension<ulong>.CreateInstance(Descriptor.Extensions[7]); |
| 348 | public static readonly pb::GeneratedExtensionBase<int> OptionalSfixed32Extension = |
| 349 | pb::GeneratedSingleExtension<int>.CreateInstance(Descriptor.Extensions[8]); |
| 350 | public static readonly pb::GeneratedExtensionBase<long> OptionalSfixed64Extension = |
| 351 | pb::GeneratedSingleExtension<long>.CreateInstance(Descriptor.Extensions[9]); |
| 352 | public static readonly pb::GeneratedExtensionBase<float> OptionalFloatExtension = |
| 353 | pb::GeneratedSingleExtension<float>.CreateInstance(Descriptor.Extensions[10]); |
| 354 | public static readonly pb::GeneratedExtensionBase<double> OptionalDoubleExtension = |
| 355 | pb::GeneratedSingleExtension<double>.CreateInstance(Descriptor.Extensions[11]); |
| 356 | public static readonly pb::GeneratedExtensionBase<bool> OptionalBoolExtension = |
| 357 | pb::GeneratedSingleExtension<bool>.CreateInstance(Descriptor.Extensions[12]); |
| 358 | public static readonly pb::GeneratedExtensionBase<string> OptionalStringExtension = |
| 359 | pb::GeneratedSingleExtension<string>.CreateInstance(Descriptor.Extensions[13]); |
| 360 | public static readonly pb::GeneratedExtensionBase<pb::ByteString> OptionalBytesExtension = |
| 361 | pb::GeneratedSingleExtension<pb::ByteString>.CreateInstance(Descriptor.Extensions[14]); |
| 362 | public static readonly pb::GeneratedExtensionBase<global::Google.ProtocolBuffers.TestProtos.OptionalGroup_extension> OptionalGroupExtension = |
| 363 | pb::GeneratedSingleExtension<global::Google.ProtocolBuffers.TestProtos.OptionalGroup_extension>.CreateInstance(Descriptor.Extensions[15]); |
| 364 | public static readonly pb::GeneratedExtensionBase<global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedMessage> OptionalNestedMessageExtension = |
| 365 | pb::GeneratedSingleExtension<global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedMessage>.CreateInstance(Descriptor.Extensions[16]); |
| 366 | public static readonly pb::GeneratedExtensionBase<global::Google.ProtocolBuffers.TestProtos.ForeignMessage> OptionalForeignMessageExtension = |
| 367 | pb::GeneratedSingleExtension<global::Google.ProtocolBuffers.TestProtos.ForeignMessage>.CreateInstance(Descriptor.Extensions[17]); |
| 368 | public static readonly pb::GeneratedExtensionBase<global::Google.ProtocolBuffers.TestProtos.ImportMessage> OptionalImportMessageExtension = |
| 369 | pb::GeneratedSingleExtension<global::Google.ProtocolBuffers.TestProtos.ImportMessage>.CreateInstance(Descriptor.Extensions[18]); |
| 370 | public static readonly pb::GeneratedExtensionBase<global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedEnum> OptionalNestedEnumExtension = |
| 371 | pb::GeneratedSingleExtension<global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedEnum>.CreateInstance(Descriptor.Extensions[19]); |
| 372 | public static readonly pb::GeneratedExtensionBase<global::Google.ProtocolBuffers.TestProtos.ForeignEnum> OptionalForeignEnumExtension = |
| 373 | pb::GeneratedSingleExtension<global::Google.ProtocolBuffers.TestProtos.ForeignEnum>.CreateInstance(Descriptor.Extensions[20]); |
| 374 | public static readonly pb::GeneratedExtensionBase<global::Google.ProtocolBuffers.TestProtos.ImportEnum> OptionalImportEnumExtension = |
| 375 | pb::GeneratedSingleExtension<global::Google.ProtocolBuffers.TestProtos.ImportEnum>.CreateInstance(Descriptor.Extensions[21]); |
| 376 | public static readonly pb::GeneratedExtensionBase<string> OptionalStringPieceExtension = |
| 377 | pb::GeneratedSingleExtension<string>.CreateInstance(Descriptor.Extensions[22]); |
| 378 | public static readonly pb::GeneratedExtensionBase<string> OptionalCordExtension = |
| 379 | pb::GeneratedSingleExtension<string>.CreateInstance(Descriptor.Extensions[23]); |
| 380 | public static readonly |
| 381 | pb::GeneratedExtensionBase<scg::IList<int>> RepeatedInt32Extension = |
| 382 | pb::GeneratedRepeatExtension<int>.CreateInstance(Descriptor.Extensions[24]); |
| 383 | public static readonly |
| 384 | pb::GeneratedExtensionBase<scg::IList<long>> RepeatedInt64Extension = |
| 385 | pb::GeneratedRepeatExtension<long>.CreateInstance(Descriptor.Extensions[25]); |
| 386 | public static readonly |
| 387 | pb::GeneratedExtensionBase<scg::IList<uint>> RepeatedUint32Extension = |
| 388 | pb::GeneratedRepeatExtension<uint>.CreateInstance(Descriptor.Extensions[26]); |
| 389 | public static readonly |
| 390 | pb::GeneratedExtensionBase<scg::IList<ulong>> RepeatedUint64Extension = |
| 391 | pb::GeneratedRepeatExtension<ulong>.CreateInstance(Descriptor.Extensions[27]); |
| 392 | public static readonly |
| 393 | pb::GeneratedExtensionBase<scg::IList<int>> RepeatedSint32Extension = |
| 394 | pb::GeneratedRepeatExtension<int>.CreateInstance(Descriptor.Extensions[28]); |
| 395 | public static readonly |
| 396 | pb::GeneratedExtensionBase<scg::IList<long>> RepeatedSint64Extension = |
| 397 | pb::GeneratedRepeatExtension<long>.CreateInstance(Descriptor.Extensions[29]); |
| 398 | public static readonly |
| 399 | pb::GeneratedExtensionBase<scg::IList<uint>> RepeatedFixed32Extension = |
| 400 | pb::GeneratedRepeatExtension<uint>.CreateInstance(Descriptor.Extensions[30]); |
| 401 | public static readonly |
| 402 | pb::GeneratedExtensionBase<scg::IList<ulong>> RepeatedFixed64Extension = |
| 403 | pb::GeneratedRepeatExtension<ulong>.CreateInstance(Descriptor.Extensions[31]); |
| 404 | public static readonly |
| 405 | pb::GeneratedExtensionBase<scg::IList<int>> RepeatedSfixed32Extension = |
| 406 | pb::GeneratedRepeatExtension<int>.CreateInstance(Descriptor.Extensions[32]); |
| 407 | public static readonly |
| 408 | pb::GeneratedExtensionBase<scg::IList<long>> RepeatedSfixed64Extension = |
| 409 | pb::GeneratedRepeatExtension<long>.CreateInstance(Descriptor.Extensions[33]); |
| 410 | public static readonly |
| 411 | pb::GeneratedExtensionBase<scg::IList<float>> RepeatedFloatExtension = |
| 412 | pb::GeneratedRepeatExtension<float>.CreateInstance(Descriptor.Extensions[34]); |
| 413 | public static readonly |
| 414 | pb::GeneratedExtensionBase<scg::IList<double>> RepeatedDoubleExtension = |
| 415 | pb::GeneratedRepeatExtension<double>.CreateInstance(Descriptor.Extensions[35]); |
| 416 | public static readonly |
| 417 | pb::GeneratedExtensionBase<scg::IList<bool>> RepeatedBoolExtension = |
| 418 | pb::GeneratedRepeatExtension<bool>.CreateInstance(Descriptor.Extensions[36]); |
| 419 | public static readonly |
| 420 | pb::GeneratedExtensionBase<scg::IList<string>> RepeatedStringExtension = |
| 421 | pb::GeneratedRepeatExtension<string>.CreateInstance(Descriptor.Extensions[37]); |
| 422 | public static readonly |
| 423 | pb::GeneratedExtensionBase<scg::IList<pb::ByteString>> RepeatedBytesExtension = |
| 424 | pb::GeneratedRepeatExtension<pb::ByteString>.CreateInstance(Descriptor.Extensions[38]); |
| 425 | public static readonly |
| 426 | pb::GeneratedExtensionBase<scg::IList<global::Google.ProtocolBuffers.TestProtos.RepeatedGroup_extension>> RepeatedGroupExtension = |
| 427 | pb::GeneratedRepeatExtension<global::Google.ProtocolBuffers.TestProtos.RepeatedGroup_extension>.CreateInstance(Descriptor.Extensions[39]); |
| 428 | public static readonly |
| 429 | pb::GeneratedExtensionBase<scg::IList<global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedMessage>> RepeatedNestedMessageExtension = |
| 430 | pb::GeneratedRepeatExtension<global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedMessage>.CreateInstance(Descriptor.Extensions[40]); |
| 431 | public static readonly |
| 432 | pb::GeneratedExtensionBase<scg::IList<global::Google.ProtocolBuffers.TestProtos.ForeignMessage>> RepeatedForeignMessageExtension = |
| 433 | pb::GeneratedRepeatExtension<global::Google.ProtocolBuffers.TestProtos.ForeignMessage>.CreateInstance(Descriptor.Extensions[41]); |
| 434 | public static readonly |
| 435 | pb::GeneratedExtensionBase<scg::IList<global::Google.ProtocolBuffers.TestProtos.ImportMessage>> RepeatedImportMessageExtension = |
| 436 | pb::GeneratedRepeatExtension<global::Google.ProtocolBuffers.TestProtos.ImportMessage>.CreateInstance(Descriptor.Extensions[42]); |
| 437 | public static readonly |
| 438 | pb::GeneratedExtensionBase<scg::IList<global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedEnum>> RepeatedNestedEnumExtension = |
| 439 | pb::GeneratedRepeatExtension<global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedEnum>.CreateInstance(Descriptor.Extensions[43]); |
| 440 | public static readonly |
| 441 | pb::GeneratedExtensionBase<scg::IList<global::Google.ProtocolBuffers.TestProtos.ForeignEnum>> RepeatedForeignEnumExtension = |
| 442 | pb::GeneratedRepeatExtension<global::Google.ProtocolBuffers.TestProtos.ForeignEnum>.CreateInstance(Descriptor.Extensions[44]); |
| 443 | public static readonly |
| 444 | pb::GeneratedExtensionBase<scg::IList<global::Google.ProtocolBuffers.TestProtos.ImportEnum>> RepeatedImportEnumExtension = |
| 445 | pb::GeneratedRepeatExtension<global::Google.ProtocolBuffers.TestProtos.ImportEnum>.CreateInstance(Descriptor.Extensions[45]); |
| 446 | public static readonly |
| 447 | pb::GeneratedExtensionBase<scg::IList<string>> RepeatedStringPieceExtension = |
| 448 | pb::GeneratedRepeatExtension<string>.CreateInstance(Descriptor.Extensions[46]); |
| 449 | public static readonly |
| 450 | pb::GeneratedExtensionBase<scg::IList<string>> RepeatedCordExtension = |
| 451 | pb::GeneratedRepeatExtension<string>.CreateInstance(Descriptor.Extensions[47]); |
| 452 | public static readonly pb::GeneratedExtensionBase<int> DefaultInt32Extension = |
| 453 | pb::GeneratedSingleExtension<int>.CreateInstance(Descriptor.Extensions[48]); |
| 454 | public static readonly pb::GeneratedExtensionBase<long> DefaultInt64Extension = |
| 455 | pb::GeneratedSingleExtension<long>.CreateInstance(Descriptor.Extensions[49]); |
| 456 | public static readonly pb::GeneratedExtensionBase<uint> DefaultUint32Extension = |
| 457 | pb::GeneratedSingleExtension<uint>.CreateInstance(Descriptor.Extensions[50]); |
| 458 | public static readonly pb::GeneratedExtensionBase<ulong> DefaultUint64Extension = |
| 459 | pb::GeneratedSingleExtension<ulong>.CreateInstance(Descriptor.Extensions[51]); |
| 460 | public static readonly pb::GeneratedExtensionBase<int> DefaultSint32Extension = |
| 461 | pb::GeneratedSingleExtension<int>.CreateInstance(Descriptor.Extensions[52]); |
| 462 | public static readonly pb::GeneratedExtensionBase<long> DefaultSint64Extension = |
| 463 | pb::GeneratedSingleExtension<long>.CreateInstance(Descriptor.Extensions[53]); |
| 464 | public static readonly pb::GeneratedExtensionBase<uint> DefaultFixed32Extension = |
| 465 | pb::GeneratedSingleExtension<uint>.CreateInstance(Descriptor.Extensions[54]); |
| 466 | public static readonly pb::GeneratedExtensionBase<ulong> DefaultFixed64Extension = |
| 467 | pb::GeneratedSingleExtension<ulong>.CreateInstance(Descriptor.Extensions[55]); |
| 468 | public static readonly pb::GeneratedExtensionBase<int> DefaultSfixed32Extension = |
| 469 | pb::GeneratedSingleExtension<int>.CreateInstance(Descriptor.Extensions[56]); |
| 470 | public static readonly pb::GeneratedExtensionBase<long> DefaultSfixed64Extension = |
| 471 | pb::GeneratedSingleExtension<long>.CreateInstance(Descriptor.Extensions[57]); |
| 472 | public static readonly pb::GeneratedExtensionBase<float> DefaultFloatExtension = |
| 473 | pb::GeneratedSingleExtension<float>.CreateInstance(Descriptor.Extensions[58]); |
| 474 | public static readonly pb::GeneratedExtensionBase<double> DefaultDoubleExtension = |
| 475 | pb::GeneratedSingleExtension<double>.CreateInstance(Descriptor.Extensions[59]); |
| 476 | public static readonly pb::GeneratedExtensionBase<bool> DefaultBoolExtension = |
| 477 | pb::GeneratedSingleExtension<bool>.CreateInstance(Descriptor.Extensions[60]); |
| 478 | public static readonly pb::GeneratedExtensionBase<string> DefaultStringExtension = |
| 479 | pb::GeneratedSingleExtension<string>.CreateInstance(Descriptor.Extensions[61]); |
| 480 | public static readonly pb::GeneratedExtensionBase<pb::ByteString> DefaultBytesExtension = |
| 481 | pb::GeneratedSingleExtension<pb::ByteString>.CreateInstance(Descriptor.Extensions[62]); |
| 482 | public static readonly pb::GeneratedExtensionBase<global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedEnum> DefaultNestedEnumExtension = |
| 483 | pb::GeneratedSingleExtension<global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedEnum>.CreateInstance(Descriptor.Extensions[63]); |
| 484 | public static readonly pb::GeneratedExtensionBase<global::Google.ProtocolBuffers.TestProtos.ForeignEnum> DefaultForeignEnumExtension = |
| 485 | pb::GeneratedSingleExtension<global::Google.ProtocolBuffers.TestProtos.ForeignEnum>.CreateInstance(Descriptor.Extensions[64]); |
| 486 | public static readonly pb::GeneratedExtensionBase<global::Google.ProtocolBuffers.TestProtos.ImportEnum> DefaultImportEnumExtension = |
| 487 | pb::GeneratedSingleExtension<global::Google.ProtocolBuffers.TestProtos.ImportEnum>.CreateInstance(Descriptor.Extensions[65]); |
| 488 | public static readonly pb::GeneratedExtensionBase<string> DefaultStringPieceExtension = |
| 489 | pb::GeneratedSingleExtension<string>.CreateInstance(Descriptor.Extensions[66]); |
| 490 | public static readonly pb::GeneratedExtensionBase<string> DefaultCordExtension = |
| 491 | pb::GeneratedSingleExtension<string>.CreateInstance(Descriptor.Extensions[67]); |
| 492 | public static readonly pb::GeneratedExtensionBase<string> MyExtensionString = |
| 493 | pb::GeneratedSingleExtension<string>.CreateInstance(Descriptor.Extensions[68]); |
| 494 | public static readonly pb::GeneratedExtensionBase<int> MyExtensionInt = |
| 495 | pb::GeneratedSingleExtension<int>.CreateInstance(Descriptor.Extensions[69]); |
Jon Skeet | 25a2858 | 2009-02-18 16:06:22 +0000 | [diff] [blame^] | 496 | public static readonly |
| 497 | pb::GeneratedExtensionBase<scg::IList<int>> PackedInt32Extension = |
| 498 | pb::GeneratedRepeatExtension<int>.CreateInstance(Descriptor.Extensions[70]); |
| 499 | public static readonly |
| 500 | pb::GeneratedExtensionBase<scg::IList<long>> PackedInt64Extension = |
| 501 | pb::GeneratedRepeatExtension<long>.CreateInstance(Descriptor.Extensions[71]); |
| 502 | public static readonly |
| 503 | pb::GeneratedExtensionBase<scg::IList<uint>> PackedUint32Extension = |
| 504 | pb::GeneratedRepeatExtension<uint>.CreateInstance(Descriptor.Extensions[72]); |
| 505 | public static readonly |
| 506 | pb::GeneratedExtensionBase<scg::IList<ulong>> PackedUint64Extension = |
| 507 | pb::GeneratedRepeatExtension<ulong>.CreateInstance(Descriptor.Extensions[73]); |
| 508 | public static readonly |
| 509 | pb::GeneratedExtensionBase<scg::IList<int>> PackedSint32Extension = |
| 510 | pb::GeneratedRepeatExtension<int>.CreateInstance(Descriptor.Extensions[74]); |
| 511 | public static readonly |
| 512 | pb::GeneratedExtensionBase<scg::IList<long>> PackedSint64Extension = |
| 513 | pb::GeneratedRepeatExtension<long>.CreateInstance(Descriptor.Extensions[75]); |
| 514 | public static readonly |
| 515 | pb::GeneratedExtensionBase<scg::IList<uint>> PackedFixed32Extension = |
| 516 | pb::GeneratedRepeatExtension<uint>.CreateInstance(Descriptor.Extensions[76]); |
| 517 | public static readonly |
| 518 | pb::GeneratedExtensionBase<scg::IList<ulong>> PackedFixed64Extension = |
| 519 | pb::GeneratedRepeatExtension<ulong>.CreateInstance(Descriptor.Extensions[77]); |
| 520 | public static readonly |
| 521 | pb::GeneratedExtensionBase<scg::IList<int>> PackedSfixed32Extension = |
| 522 | pb::GeneratedRepeatExtension<int>.CreateInstance(Descriptor.Extensions[78]); |
| 523 | public static readonly |
| 524 | pb::GeneratedExtensionBase<scg::IList<long>> PackedSfixed64Extension = |
| 525 | pb::GeneratedRepeatExtension<long>.CreateInstance(Descriptor.Extensions[79]); |
| 526 | public static readonly |
| 527 | pb::GeneratedExtensionBase<scg::IList<float>> PackedFloatExtension = |
| 528 | pb::GeneratedRepeatExtension<float>.CreateInstance(Descriptor.Extensions[80]); |
| 529 | public static readonly |
| 530 | pb::GeneratedExtensionBase<scg::IList<double>> PackedDoubleExtension = |
| 531 | pb::GeneratedRepeatExtension<double>.CreateInstance(Descriptor.Extensions[81]); |
| 532 | public static readonly |
| 533 | pb::GeneratedExtensionBase<scg::IList<bool>> PackedBoolExtension = |
| 534 | pb::GeneratedRepeatExtension<bool>.CreateInstance(Descriptor.Extensions[82]); |
| 535 | public static readonly |
| 536 | pb::GeneratedExtensionBase<scg::IList<global::Google.ProtocolBuffers.TestProtos.ForeignEnum>> PackedEnumExtension = |
| 537 | pb::GeneratedRepeatExtension<global::Google.ProtocolBuffers.TestProtos.ForeignEnum>.CreateInstance(Descriptor.Extensions[83]); |
Jon Skeet | 6803686 | 2008-10-22 13:30:34 +0100 | [diff] [blame] | 538 | #endregion |
| 539 | |
| 540 | #region Static variables |
| 541 | internal static readonly pbd::MessageDescriptor internal__static_protobuf_unittest_TestAllTypes__Descriptor |
| 542 | = Descriptor.MessageTypes[0]; |
| 543 | internal static pb::FieldAccess.FieldAccessorTable<global::Google.ProtocolBuffers.TestProtos.TestAllTypes, global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Builder> internal__static_protobuf_unittest_TestAllTypes__FieldAccessorTable |
| 544 | = new pb::FieldAccess.FieldAccessorTable<global::Google.ProtocolBuffers.TestProtos.TestAllTypes, global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Builder>(internal__static_protobuf_unittest_TestAllTypes__Descriptor, |
| 545 | 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", }); |
| 546 | internal static readonly pbd::MessageDescriptor internal__static_protobuf_unittest_TestAllTypes_NestedMessage__Descriptor |
| 547 | = internal__static_protobuf_unittest_TestAllTypes__Descriptor.NestedTypes[0]; |
| 548 | 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 |
| 549 | = 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, |
| 550 | new string[] { "Bb", }); |
| 551 | internal static readonly pbd::MessageDescriptor internal__static_protobuf_unittest_TestAllTypes_OptionalGroup__Descriptor |
| 552 | = internal__static_protobuf_unittest_TestAllTypes__Descriptor.NestedTypes[1]; |
| 553 | 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 |
| 554 | = 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, |
| 555 | new string[] { "A", }); |
| 556 | internal static readonly pbd::MessageDescriptor internal__static_protobuf_unittest_TestAllTypes_RepeatedGroup__Descriptor |
| 557 | = internal__static_protobuf_unittest_TestAllTypes__Descriptor.NestedTypes[2]; |
| 558 | 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 |
| 559 | = 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, |
| 560 | new string[] { "A", }); |
| 561 | internal static readonly pbd::MessageDescriptor internal__static_protobuf_unittest_ForeignMessage__Descriptor |
| 562 | = Descriptor.MessageTypes[1]; |
| 563 | internal static pb::FieldAccess.FieldAccessorTable<global::Google.ProtocolBuffers.TestProtos.ForeignMessage, global::Google.ProtocolBuffers.TestProtos.ForeignMessage.Builder> internal__static_protobuf_unittest_ForeignMessage__FieldAccessorTable |
| 564 | = new pb::FieldAccess.FieldAccessorTable<global::Google.ProtocolBuffers.TestProtos.ForeignMessage, global::Google.ProtocolBuffers.TestProtos.ForeignMessage.Builder>(internal__static_protobuf_unittest_ForeignMessage__Descriptor, |
| 565 | new string[] { "C", }); |
| 566 | internal static readonly pbd::MessageDescriptor internal__static_protobuf_unittest_TestAllExtensions__Descriptor |
| 567 | = Descriptor.MessageTypes[2]; |
| 568 | internal static pb::FieldAccess.FieldAccessorTable<global::Google.ProtocolBuffers.TestProtos.TestAllExtensions, global::Google.ProtocolBuffers.TestProtos.TestAllExtensions.Builder> internal__static_protobuf_unittest_TestAllExtensions__FieldAccessorTable |
| 569 | = new pb::FieldAccess.FieldAccessorTable<global::Google.ProtocolBuffers.TestProtos.TestAllExtensions, global::Google.ProtocolBuffers.TestProtos.TestAllExtensions.Builder>(internal__static_protobuf_unittest_TestAllExtensions__Descriptor, |
| 570 | new string[] { }); |
| 571 | internal static readonly pbd::MessageDescriptor internal__static_protobuf_unittest_OptionalGroup_extension__Descriptor |
| 572 | = Descriptor.MessageTypes[3]; |
| 573 | 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 |
| 574 | = new pb::FieldAccess.FieldAccessorTable<global::Google.ProtocolBuffers.TestProtos.OptionalGroup_extension, global::Google.ProtocolBuffers.TestProtos.OptionalGroup_extension.Builder>(internal__static_protobuf_unittest_OptionalGroup_extension__Descriptor, |
| 575 | new string[] { "A", }); |
| 576 | internal static readonly pbd::MessageDescriptor internal__static_protobuf_unittest_RepeatedGroup_extension__Descriptor |
| 577 | = Descriptor.MessageTypes[4]; |
| 578 | 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 |
| 579 | = new pb::FieldAccess.FieldAccessorTable<global::Google.ProtocolBuffers.TestProtos.RepeatedGroup_extension, global::Google.ProtocolBuffers.TestProtos.RepeatedGroup_extension.Builder>(internal__static_protobuf_unittest_RepeatedGroup_extension__Descriptor, |
| 580 | new string[] { "A", }); |
| 581 | internal static readonly pbd::MessageDescriptor internal__static_protobuf_unittest_TestRequired__Descriptor |
| 582 | = Descriptor.MessageTypes[5]; |
| 583 | internal static pb::FieldAccess.FieldAccessorTable<global::Google.ProtocolBuffers.TestProtos.TestRequired, global::Google.ProtocolBuffers.TestProtos.TestRequired.Builder> internal__static_protobuf_unittest_TestRequired__FieldAccessorTable |
| 584 | = new pb::FieldAccess.FieldAccessorTable<global::Google.ProtocolBuffers.TestProtos.TestRequired, global::Google.ProtocolBuffers.TestProtos.TestRequired.Builder>(internal__static_protobuf_unittest_TestRequired__Descriptor, |
| 585 | 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", }); |
| 586 | internal static readonly pbd::MessageDescriptor internal__static_protobuf_unittest_TestRequiredForeign__Descriptor |
| 587 | = Descriptor.MessageTypes[6]; |
| 588 | internal static pb::FieldAccess.FieldAccessorTable<global::Google.ProtocolBuffers.TestProtos.TestRequiredForeign, global::Google.ProtocolBuffers.TestProtos.TestRequiredForeign.Builder> internal__static_protobuf_unittest_TestRequiredForeign__FieldAccessorTable |
| 589 | = new pb::FieldAccess.FieldAccessorTable<global::Google.ProtocolBuffers.TestProtos.TestRequiredForeign, global::Google.ProtocolBuffers.TestProtos.TestRequiredForeign.Builder>(internal__static_protobuf_unittest_TestRequiredForeign__Descriptor, |
| 590 | new string[] { "OptionalMessage", "RepeatedMessage", "Dummy", }); |
| 591 | internal static readonly pbd::MessageDescriptor internal__static_protobuf_unittest_TestForeignNested__Descriptor |
| 592 | = Descriptor.MessageTypes[7]; |
| 593 | internal static pb::FieldAccess.FieldAccessorTable<global::Google.ProtocolBuffers.TestProtos.TestForeignNested, global::Google.ProtocolBuffers.TestProtos.TestForeignNested.Builder> internal__static_protobuf_unittest_TestForeignNested__FieldAccessorTable |
| 594 | = new pb::FieldAccess.FieldAccessorTable<global::Google.ProtocolBuffers.TestProtos.TestForeignNested, global::Google.ProtocolBuffers.TestProtos.TestForeignNested.Builder>(internal__static_protobuf_unittest_TestForeignNested__Descriptor, |
| 595 | new string[] { "ForeignNested", }); |
| 596 | internal static readonly pbd::MessageDescriptor internal__static_protobuf_unittest_TestEmptyMessage__Descriptor |
| 597 | = Descriptor.MessageTypes[8]; |
| 598 | internal static pb::FieldAccess.FieldAccessorTable<global::Google.ProtocolBuffers.TestProtos.TestEmptyMessage, global::Google.ProtocolBuffers.TestProtos.TestEmptyMessage.Builder> internal__static_protobuf_unittest_TestEmptyMessage__FieldAccessorTable |
| 599 | = new pb::FieldAccess.FieldAccessorTable<global::Google.ProtocolBuffers.TestProtos.TestEmptyMessage, global::Google.ProtocolBuffers.TestProtos.TestEmptyMessage.Builder>(internal__static_protobuf_unittest_TestEmptyMessage__Descriptor, |
| 600 | new string[] { }); |
| 601 | internal static readonly pbd::MessageDescriptor internal__static_protobuf_unittest_TestEmptyMessageWithExtensions__Descriptor |
| 602 | = Descriptor.MessageTypes[9]; |
| 603 | internal static pb::FieldAccess.FieldAccessorTable<global::Google.ProtocolBuffers.TestProtos.TestEmptyMessageWithExtensions, global::Google.ProtocolBuffers.TestProtos.TestEmptyMessageWithExtensions.Builder> internal__static_protobuf_unittest_TestEmptyMessageWithExtensions__FieldAccessorTable |
| 604 | = new pb::FieldAccess.FieldAccessorTable<global::Google.ProtocolBuffers.TestProtos.TestEmptyMessageWithExtensions, global::Google.ProtocolBuffers.TestProtos.TestEmptyMessageWithExtensions.Builder>(internal__static_protobuf_unittest_TestEmptyMessageWithExtensions__Descriptor, |
| 605 | new string[] { }); |
| 606 | internal static readonly pbd::MessageDescriptor internal__static_protobuf_unittest_TestReallyLargeTagNumber__Descriptor |
| 607 | = Descriptor.MessageTypes[10]; |
| 608 | internal static pb::FieldAccess.FieldAccessorTable<global::Google.ProtocolBuffers.TestProtos.TestReallyLargeTagNumber, global::Google.ProtocolBuffers.TestProtos.TestReallyLargeTagNumber.Builder> internal__static_protobuf_unittest_TestReallyLargeTagNumber__FieldAccessorTable |
| 609 | = new pb::FieldAccess.FieldAccessorTable<global::Google.ProtocolBuffers.TestProtos.TestReallyLargeTagNumber, global::Google.ProtocolBuffers.TestProtos.TestReallyLargeTagNumber.Builder>(internal__static_protobuf_unittest_TestReallyLargeTagNumber__Descriptor, |
| 610 | new string[] { "A", "Bb", }); |
| 611 | internal static readonly pbd::MessageDescriptor internal__static_protobuf_unittest_TestRecursiveMessage__Descriptor |
| 612 | = Descriptor.MessageTypes[11]; |
| 613 | internal static pb::FieldAccess.FieldAccessorTable<global::Google.ProtocolBuffers.TestProtos.TestRecursiveMessage, global::Google.ProtocolBuffers.TestProtos.TestRecursiveMessage.Builder> internal__static_protobuf_unittest_TestRecursiveMessage__FieldAccessorTable |
| 614 | = new pb::FieldAccess.FieldAccessorTable<global::Google.ProtocolBuffers.TestProtos.TestRecursiveMessage, global::Google.ProtocolBuffers.TestProtos.TestRecursiveMessage.Builder>(internal__static_protobuf_unittest_TestRecursiveMessage__Descriptor, |
| 615 | new string[] { "A", "I", }); |
| 616 | internal static readonly pbd::MessageDescriptor internal__static_protobuf_unittest_TestMutualRecursionA__Descriptor |
| 617 | = Descriptor.MessageTypes[12]; |
| 618 | internal static pb::FieldAccess.FieldAccessorTable<global::Google.ProtocolBuffers.TestProtos.TestMutualRecursionA, global::Google.ProtocolBuffers.TestProtos.TestMutualRecursionA.Builder> internal__static_protobuf_unittest_TestMutualRecursionA__FieldAccessorTable |
| 619 | = new pb::FieldAccess.FieldAccessorTable<global::Google.ProtocolBuffers.TestProtos.TestMutualRecursionA, global::Google.ProtocolBuffers.TestProtos.TestMutualRecursionA.Builder>(internal__static_protobuf_unittest_TestMutualRecursionA__Descriptor, |
| 620 | new string[] { "Bb", }); |
| 621 | internal static readonly pbd::MessageDescriptor internal__static_protobuf_unittest_TestMutualRecursionB__Descriptor |
| 622 | = Descriptor.MessageTypes[13]; |
| 623 | internal static pb::FieldAccess.FieldAccessorTable<global::Google.ProtocolBuffers.TestProtos.TestMutualRecursionB, global::Google.ProtocolBuffers.TestProtos.TestMutualRecursionB.Builder> internal__static_protobuf_unittest_TestMutualRecursionB__FieldAccessorTable |
| 624 | = new pb::FieldAccess.FieldAccessorTable<global::Google.ProtocolBuffers.TestProtos.TestMutualRecursionB, global::Google.ProtocolBuffers.TestProtos.TestMutualRecursionB.Builder>(internal__static_protobuf_unittest_TestMutualRecursionB__Descriptor, |
| 625 | new string[] { "A", "OptionalInt32", }); |
| 626 | internal static readonly pbd::MessageDescriptor internal__static_protobuf_unittest_TestDupFieldNumber__Descriptor |
| 627 | = Descriptor.MessageTypes[14]; |
| 628 | internal static pb::FieldAccess.FieldAccessorTable<global::Google.ProtocolBuffers.TestProtos.TestDupFieldNumber, global::Google.ProtocolBuffers.TestProtos.TestDupFieldNumber.Builder> internal__static_protobuf_unittest_TestDupFieldNumber__FieldAccessorTable |
| 629 | = new pb::FieldAccess.FieldAccessorTable<global::Google.ProtocolBuffers.TestProtos.TestDupFieldNumber, global::Google.ProtocolBuffers.TestProtos.TestDupFieldNumber.Builder>(internal__static_protobuf_unittest_TestDupFieldNumber__Descriptor, |
| 630 | new string[] { "A", "Foo", "Bar", }); |
| 631 | internal static readonly pbd::MessageDescriptor internal__static_protobuf_unittest_TestDupFieldNumber_Foo__Descriptor |
| 632 | = internal__static_protobuf_unittest_TestDupFieldNumber__Descriptor.NestedTypes[0]; |
| 633 | 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 |
| 634 | = 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, |
| 635 | new string[] { "A", }); |
| 636 | internal static readonly pbd::MessageDescriptor internal__static_protobuf_unittest_TestDupFieldNumber_Bar__Descriptor |
| 637 | = internal__static_protobuf_unittest_TestDupFieldNumber__Descriptor.NestedTypes[1]; |
| 638 | 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 |
| 639 | = 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, |
| 640 | new string[] { "A", }); |
| 641 | internal static readonly pbd::MessageDescriptor internal__static_protobuf_unittest_TestNestedMessageHasBits__Descriptor |
| 642 | = Descriptor.MessageTypes[15]; |
| 643 | internal static pb::FieldAccess.FieldAccessorTable<global::Google.ProtocolBuffers.TestProtos.TestNestedMessageHasBits, global::Google.ProtocolBuffers.TestProtos.TestNestedMessageHasBits.Builder> internal__static_protobuf_unittest_TestNestedMessageHasBits__FieldAccessorTable |
| 644 | = new pb::FieldAccess.FieldAccessorTable<global::Google.ProtocolBuffers.TestProtos.TestNestedMessageHasBits, global::Google.ProtocolBuffers.TestProtos.TestNestedMessageHasBits.Builder>(internal__static_protobuf_unittest_TestNestedMessageHasBits__Descriptor, |
| 645 | new string[] { "OptionalNestedMessage", }); |
| 646 | internal static readonly pbd::MessageDescriptor internal__static_protobuf_unittest_TestNestedMessageHasBits_NestedMessage__Descriptor |
| 647 | = internal__static_protobuf_unittest_TestNestedMessageHasBits__Descriptor.NestedTypes[0]; |
| 648 | 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 |
| 649 | = 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, |
| 650 | new string[] { "NestedmessageRepeatedInt32", "NestedmessageRepeatedForeignmessage", }); |
| 651 | internal static readonly pbd::MessageDescriptor internal__static_protobuf_unittest_TestCamelCaseFieldNames__Descriptor |
| 652 | = Descriptor.MessageTypes[16]; |
| 653 | internal static pb::FieldAccess.FieldAccessorTable<global::Google.ProtocolBuffers.TestProtos.TestCamelCaseFieldNames, global::Google.ProtocolBuffers.TestProtos.TestCamelCaseFieldNames.Builder> internal__static_protobuf_unittest_TestCamelCaseFieldNames__FieldAccessorTable |
| 654 | = new pb::FieldAccess.FieldAccessorTable<global::Google.ProtocolBuffers.TestProtos.TestCamelCaseFieldNames, global::Google.ProtocolBuffers.TestProtos.TestCamelCaseFieldNames.Builder>(internal__static_protobuf_unittest_TestCamelCaseFieldNames__Descriptor, |
| 655 | new string[] { "PrimitiveField", "StringField", "EnumField", "MessageField", "StringPieceField", "CordField", "RepeatedPrimitiveField", "RepeatedStringField", "RepeatedEnumField", "RepeatedMessageField", "RepeatedStringPieceField", "RepeatedCordField", }); |
| 656 | internal static readonly pbd::MessageDescriptor internal__static_protobuf_unittest_TestFieldOrderings__Descriptor |
| 657 | = Descriptor.MessageTypes[17]; |
| 658 | internal static pb::FieldAccess.FieldAccessorTable<global::Google.ProtocolBuffers.TestProtos.TestFieldOrderings, global::Google.ProtocolBuffers.TestProtos.TestFieldOrderings.Builder> internal__static_protobuf_unittest_TestFieldOrderings__FieldAccessorTable |
| 659 | = new pb::FieldAccess.FieldAccessorTable<global::Google.ProtocolBuffers.TestProtos.TestFieldOrderings, global::Google.ProtocolBuffers.TestProtos.TestFieldOrderings.Builder>(internal__static_protobuf_unittest_TestFieldOrderings__Descriptor, |
| 660 | new string[] { "MyString", "MyInt", "MyFloat", }); |
| 661 | internal static readonly pbd::MessageDescriptor internal__static_protobuf_unittest_TestExtremeDefaultValues__Descriptor |
| 662 | = Descriptor.MessageTypes[18]; |
| 663 | internal static pb::FieldAccess.FieldAccessorTable<global::Google.ProtocolBuffers.TestProtos.TestExtremeDefaultValues, global::Google.ProtocolBuffers.TestProtos.TestExtremeDefaultValues.Builder> internal__static_protobuf_unittest_TestExtremeDefaultValues__FieldAccessorTable |
| 664 | = new pb::FieldAccess.FieldAccessorTable<global::Google.ProtocolBuffers.TestProtos.TestExtremeDefaultValues, global::Google.ProtocolBuffers.TestProtos.TestExtremeDefaultValues.Builder>(internal__static_protobuf_unittest_TestExtremeDefaultValues__Descriptor, |
| 665 | new string[] { "EscapedBytes", "LargeUint32", "LargeUint64", "SmallInt32", "SmallInt64", "Utf8String", }); |
Jon Skeet | 25a2858 | 2009-02-18 16:06:22 +0000 | [diff] [blame^] | 666 | internal static readonly pbd::MessageDescriptor internal__static_protobuf_unittest_TestPackedTypes__Descriptor |
Jon Skeet | 6803686 | 2008-10-22 13:30:34 +0100 | [diff] [blame] | 667 | = Descriptor.MessageTypes[19]; |
Jon Skeet | 25a2858 | 2009-02-18 16:06:22 +0000 | [diff] [blame^] | 668 | internal static pb::FieldAccess.FieldAccessorTable<global::Google.ProtocolBuffers.TestProtos.TestPackedTypes, global::Google.ProtocolBuffers.TestProtos.TestPackedTypes.Builder> internal__static_protobuf_unittest_TestPackedTypes__FieldAccessorTable |
| 669 | = new pb::FieldAccess.FieldAccessorTable<global::Google.ProtocolBuffers.TestProtos.TestPackedTypes, global::Google.ProtocolBuffers.TestProtos.TestPackedTypes.Builder>(internal__static_protobuf_unittest_TestPackedTypes__Descriptor, |
| 670 | new string[] { "PackedInt32", "PackedInt64", "PackedUint32", "PackedUint64", "PackedSint32", "PackedSint64", "PackedFixed32", "PackedFixed64", "PackedSfixed32", "PackedSfixed64", "PackedFloat", "PackedDouble", "PackedBool", "PackedEnum", }); |
| 671 | internal static readonly pbd::MessageDescriptor internal__static_protobuf_unittest_TestPackedExtensions__Descriptor |
| 672 | = Descriptor.MessageTypes[20]; |
| 673 | internal static pb::FieldAccess.FieldAccessorTable<global::Google.ProtocolBuffers.TestProtos.TestPackedExtensions, global::Google.ProtocolBuffers.TestProtos.TestPackedExtensions.Builder> internal__static_protobuf_unittest_TestPackedExtensions__FieldAccessorTable |
| 674 | = new pb::FieldAccess.FieldAccessorTable<global::Google.ProtocolBuffers.TestProtos.TestPackedExtensions, global::Google.ProtocolBuffers.TestProtos.TestPackedExtensions.Builder>(internal__static_protobuf_unittest_TestPackedExtensions__Descriptor, |
| 675 | new string[] { }); |
| 676 | internal static readonly pbd::MessageDescriptor internal__static_protobuf_unittest_FooRequest__Descriptor |
| 677 | = Descriptor.MessageTypes[21]; |
Jon Skeet | 6803686 | 2008-10-22 13:30:34 +0100 | [diff] [blame] | 678 | internal static pb::FieldAccess.FieldAccessorTable<global::Google.ProtocolBuffers.TestProtos.FooRequest, global::Google.ProtocolBuffers.TestProtos.FooRequest.Builder> internal__static_protobuf_unittest_FooRequest__FieldAccessorTable |
| 679 | = new pb::FieldAccess.FieldAccessorTable<global::Google.ProtocolBuffers.TestProtos.FooRequest, global::Google.ProtocolBuffers.TestProtos.FooRequest.Builder>(internal__static_protobuf_unittest_FooRequest__Descriptor, |
| 680 | new string[] { }); |
| 681 | internal static readonly pbd::MessageDescriptor internal__static_protobuf_unittest_FooResponse__Descriptor |
Jon Skeet | 25a2858 | 2009-02-18 16:06:22 +0000 | [diff] [blame^] | 682 | = Descriptor.MessageTypes[22]; |
Jon Skeet | 6803686 | 2008-10-22 13:30:34 +0100 | [diff] [blame] | 683 | internal static pb::FieldAccess.FieldAccessorTable<global::Google.ProtocolBuffers.TestProtos.FooResponse, global::Google.ProtocolBuffers.TestProtos.FooResponse.Builder> internal__static_protobuf_unittest_FooResponse__FieldAccessorTable |
| 684 | = new pb::FieldAccess.FieldAccessorTable<global::Google.ProtocolBuffers.TestProtos.FooResponse, global::Google.ProtocolBuffers.TestProtos.FooResponse.Builder>(internal__static_protobuf_unittest_FooResponse__Descriptor, |
| 685 | new string[] { }); |
| 686 | internal static readonly pbd::MessageDescriptor internal__static_protobuf_unittest_BarRequest__Descriptor |
Jon Skeet | 25a2858 | 2009-02-18 16:06:22 +0000 | [diff] [blame^] | 687 | = Descriptor.MessageTypes[23]; |
Jon Skeet | 6803686 | 2008-10-22 13:30:34 +0100 | [diff] [blame] | 688 | internal static pb::FieldAccess.FieldAccessorTable<global::Google.ProtocolBuffers.TestProtos.BarRequest, global::Google.ProtocolBuffers.TestProtos.BarRequest.Builder> internal__static_protobuf_unittest_BarRequest__FieldAccessorTable |
| 689 | = new pb::FieldAccess.FieldAccessorTable<global::Google.ProtocolBuffers.TestProtos.BarRequest, global::Google.ProtocolBuffers.TestProtos.BarRequest.Builder>(internal__static_protobuf_unittest_BarRequest__Descriptor, |
| 690 | new string[] { }); |
| 691 | internal static readonly pbd::MessageDescriptor internal__static_protobuf_unittest_BarResponse__Descriptor |
Jon Skeet | 25a2858 | 2009-02-18 16:06:22 +0000 | [diff] [blame^] | 692 | = Descriptor.MessageTypes[24]; |
Jon Skeet | 6803686 | 2008-10-22 13:30:34 +0100 | [diff] [blame] | 693 | internal static pb::FieldAccess.FieldAccessorTable<global::Google.ProtocolBuffers.TestProtos.BarResponse, global::Google.ProtocolBuffers.TestProtos.BarResponse.Builder> internal__static_protobuf_unittest_BarResponse__FieldAccessorTable |
| 694 | = new pb::FieldAccess.FieldAccessorTable<global::Google.ProtocolBuffers.TestProtos.BarResponse, global::Google.ProtocolBuffers.TestProtos.BarResponse.Builder>(internal__static_protobuf_unittest_BarResponse__Descriptor, |
| 695 | new string[] { }); |
| 696 | #endregion |
| 697 | } |
| 698 | #region Enums |
| 699 | public enum ForeignEnum { |
| 700 | FOREIGN_FOO = 4, |
| 701 | FOREIGN_BAR = 5, |
| 702 | FOREIGN_BAZ = 6, |
| 703 | } |
| 704 | |
| 705 | public enum TestEnumWithDupValue { |
| 706 | FOO1 = 1, |
| 707 | BAR1 = 2, |
| 708 | BAZ = 3, |
| 709 | FOO2 = 1, |
| 710 | BAR2 = 2, |
| 711 | } |
| 712 | |
| 713 | public enum TestSparseEnum { |
| 714 | SPARSE_A = 123, |
| 715 | SPARSE_B = 62374, |
| 716 | SPARSE_C = 12589234, |
| 717 | SPARSE_D = -15, |
| 718 | SPARSE_E = -53452, |
| 719 | SPARSE_F = 0, |
| 720 | SPARSE_G = 2, |
| 721 | } |
| 722 | |
| 723 | #endregion |
| 724 | |
| 725 | #region Messages |
| 726 | public sealed partial class TestAllTypes : pb::GeneratedMessage<TestAllTypes, TestAllTypes.Builder> { |
| 727 | private static readonly TestAllTypes defaultInstance = new Builder().BuildPartial(); |
| 728 | public static TestAllTypes DefaultInstance { |
| 729 | get { return defaultInstance; } |
| 730 | } |
| 731 | |
| 732 | public override TestAllTypes DefaultInstanceForType { |
| 733 | get { return defaultInstance; } |
| 734 | } |
| 735 | |
| 736 | protected override TestAllTypes ThisMessage { |
| 737 | get { return this; } |
| 738 | } |
| 739 | |
| 740 | public static pbd::MessageDescriptor Descriptor { |
| 741 | get { return global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.internal__static_protobuf_unittest_TestAllTypes__Descriptor; } |
| 742 | } |
| 743 | |
| 744 | protected override pb::FieldAccess.FieldAccessorTable<TestAllTypes, TestAllTypes.Builder> InternalFieldAccessors { |
| 745 | get { return global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.internal__static_protobuf_unittest_TestAllTypes__FieldAccessorTable; } |
| 746 | } |
| 747 | |
| 748 | #region Nested types |
| 749 | public static class Types { |
| 750 | public enum NestedEnum { |
| 751 | FOO = 1, |
| 752 | BAR = 2, |
| 753 | BAZ = 3, |
| 754 | } |
| 755 | |
| 756 | public sealed partial class NestedMessage : pb::GeneratedMessage<NestedMessage, NestedMessage.Builder> { |
| 757 | private static readonly NestedMessage defaultInstance = new Builder().BuildPartial(); |
| 758 | public static NestedMessage DefaultInstance { |
| 759 | get { return defaultInstance; } |
| 760 | } |
| 761 | |
| 762 | public override NestedMessage DefaultInstanceForType { |
| 763 | get { return defaultInstance; } |
| 764 | } |
| 765 | |
| 766 | protected override NestedMessage ThisMessage { |
| 767 | get { return this; } |
| 768 | } |
| 769 | |
| 770 | public static pbd::MessageDescriptor Descriptor { |
| 771 | get { return global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.internal__static_protobuf_unittest_TestAllTypes_NestedMessage__Descriptor; } |
| 772 | } |
| 773 | |
| 774 | protected override pb::FieldAccess.FieldAccessorTable<NestedMessage, NestedMessage.Builder> InternalFieldAccessors { |
| 775 | get { return global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.internal__static_protobuf_unittest_TestAllTypes_NestedMessage__FieldAccessorTable; } |
| 776 | } |
| 777 | |
| 778 | private bool hasBb; |
| 779 | private int bb_ = 0; |
| 780 | public bool HasBb { |
| 781 | get { return hasBb; } |
| 782 | } |
| 783 | public int Bb { |
| 784 | get { return bb_; } |
| 785 | } |
| 786 | |
| 787 | public override bool IsInitialized { |
| 788 | get { |
| 789 | return true; |
| 790 | } |
| 791 | } |
| 792 | |
| 793 | public override void WriteTo(pb::CodedOutputStream output) { |
| 794 | if (HasBb) { |
| 795 | output.WriteInt32(1, Bb); |
| 796 | } |
| 797 | UnknownFields.WriteTo(output); |
| 798 | } |
| 799 | |
| 800 | private int memoizedSerializedSize = -1; |
| 801 | public override int SerializedSize { |
| 802 | get { |
| 803 | int size = memoizedSerializedSize; |
| 804 | if (size != -1) return size; |
| 805 | |
| 806 | size = 0; |
| 807 | if (HasBb) { |
| 808 | size += pb::CodedOutputStream.ComputeInt32Size(1, Bb); |
| 809 | } |
| 810 | size += UnknownFields.SerializedSize; |
| 811 | memoizedSerializedSize = size; |
| 812 | return size; |
| 813 | } |
| 814 | } |
| 815 | |
| 816 | public static NestedMessage ParseFrom(pb::ByteString data) { |
| 817 | return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed(); |
| 818 | } |
| 819 | public static NestedMessage ParseFrom(pb::ByteString data, pb::ExtensionRegistry extensionRegistry) { |
| 820 | return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed(); |
| 821 | } |
| 822 | public static NestedMessage ParseFrom(byte[] data) { |
| 823 | return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed(); |
| 824 | } |
| 825 | public static NestedMessage ParseFrom(byte[] data, pb::ExtensionRegistry extensionRegistry) { |
| 826 | return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed(); |
| 827 | } |
| 828 | public static NestedMessage ParseFrom(global::System.IO.Stream input) { |
| 829 | return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed(); |
| 830 | } |
| 831 | public static NestedMessage ParseFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) { |
| 832 | return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed(); |
| 833 | } |
| 834 | public static NestedMessage ParseFrom(pb::CodedInputStream input) { |
| 835 | return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed(); |
| 836 | } |
| 837 | public static NestedMessage ParseFrom(pb::CodedInputStream input, pb::ExtensionRegistry extensionRegistry) { |
| 838 | return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed(); |
| 839 | } |
| 840 | public static Builder CreateBuilder() { return new Builder(); } |
| 841 | public override Builder CreateBuilderForType() { return new Builder(); } |
| 842 | public static Builder CreateBuilder(NestedMessage prototype) { |
| 843 | return (Builder) new Builder().MergeFrom(prototype); |
| 844 | } |
| 845 | |
| 846 | public sealed partial class Builder : pb::GeneratedBuilder<NestedMessage, Builder> { |
| 847 | protected override Builder ThisBuilder { |
| 848 | get { return this; } |
| 849 | } |
| 850 | public Builder() {} |
| 851 | |
| 852 | NestedMessage result = new NestedMessage(); |
| 853 | |
| 854 | protected override NestedMessage MessageBeingBuilt { |
| 855 | get { return result; } |
| 856 | } |
| 857 | |
| 858 | public override Builder Clear() { |
| 859 | result = new NestedMessage(); |
| 860 | return this; |
| 861 | } |
| 862 | |
| 863 | public override Builder Clone() { |
| 864 | return new Builder().MergeFrom(result); |
| 865 | } |
| 866 | |
| 867 | public override pbd::MessageDescriptor DescriptorForType { |
| 868 | get { return NestedMessage.Descriptor; } |
| 869 | } |
| 870 | |
| 871 | public override NestedMessage DefaultInstanceForType { |
| 872 | get { return NestedMessage.DefaultInstance; } |
| 873 | } |
| 874 | |
| 875 | public override NestedMessage BuildPartial() { |
| 876 | NestedMessage returnMe = result; |
| 877 | result = null; |
| 878 | return returnMe; |
| 879 | } |
| 880 | |
| 881 | public override Builder MergeFrom(pb::IMessage other) { |
| 882 | if (other is NestedMessage) { |
| 883 | return MergeFrom((NestedMessage) other); |
| 884 | } else { |
| 885 | base.MergeFrom(other); |
| 886 | return this; |
| 887 | } |
| 888 | } |
| 889 | |
| 890 | public override Builder MergeFrom(NestedMessage other) { |
| 891 | if (other == NestedMessage.DefaultInstance) return this; |
| 892 | if (other.HasBb) { |
| 893 | Bb = other.Bb; |
| 894 | } |
| 895 | this.MergeUnknownFields(other.UnknownFields); |
| 896 | return this; |
| 897 | } |
| 898 | |
| 899 | public override Builder MergeFrom(pb::CodedInputStream input) { |
| 900 | return MergeFrom(input, pb::ExtensionRegistry.Empty); |
| 901 | } |
| 902 | |
| 903 | public override Builder MergeFrom(pb::CodedInputStream input, pb::ExtensionRegistry extensionRegistry) { |
| 904 | pb::UnknownFieldSet.Builder unknownFields = pb::UnknownFieldSet.CreateBuilder(this.UnknownFields); |
| 905 | while (true) { |
| 906 | uint tag = input.ReadTag(); |
| 907 | switch (tag) { |
| 908 | case 0: { |
| 909 | this.UnknownFields = unknownFields.Build(); |
| 910 | return this; |
| 911 | } |
| 912 | default: { |
| 913 | if (!ParseUnknownField(input, unknownFields, extensionRegistry, tag)) { |
| 914 | this.UnknownFields = unknownFields.Build(); |
| 915 | return this; |
| 916 | } |
| 917 | break; |
| 918 | } |
| 919 | case 8: { |
| 920 | Bb = input.ReadInt32(); |
| 921 | break; |
| 922 | } |
| 923 | } |
| 924 | } |
| 925 | } |
| 926 | |
| 927 | |
| 928 | public bool HasBb { |
| 929 | get { return result.HasBb; } |
| 930 | } |
| 931 | public int Bb { |
| 932 | get { return result.Bb; } |
| 933 | set { SetBb(value); } |
| 934 | } |
| 935 | public Builder SetBb(int value) { |
| 936 | result.hasBb = true; |
| 937 | result.bb_ = value; |
| 938 | return this; |
| 939 | } |
| 940 | public Builder ClearBb() { |
| 941 | result.hasBb = false; |
| 942 | result.bb_ = 0; |
| 943 | return this; |
| 944 | } |
| 945 | } |
| 946 | } |
| 947 | |
| 948 | public sealed partial class OptionalGroup : pb::GeneratedMessage<OptionalGroup, OptionalGroup.Builder> { |
| 949 | private static readonly OptionalGroup defaultInstance = new Builder().BuildPartial(); |
| 950 | public static OptionalGroup DefaultInstance { |
| 951 | get { return defaultInstance; } |
| 952 | } |
| 953 | |
| 954 | public override OptionalGroup DefaultInstanceForType { |
| 955 | get { return defaultInstance; } |
| 956 | } |
| 957 | |
| 958 | protected override OptionalGroup ThisMessage { |
| 959 | get { return this; } |
| 960 | } |
| 961 | |
| 962 | public static pbd::MessageDescriptor Descriptor { |
| 963 | get { return global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.internal__static_protobuf_unittest_TestAllTypes_OptionalGroup__Descriptor; } |
| 964 | } |
| 965 | |
| 966 | protected override pb::FieldAccess.FieldAccessorTable<OptionalGroup, OptionalGroup.Builder> InternalFieldAccessors { |
| 967 | get { return global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.internal__static_protobuf_unittest_TestAllTypes_OptionalGroup__FieldAccessorTable; } |
| 968 | } |
| 969 | |
| 970 | private bool hasA; |
| 971 | private int a_ = 0; |
| 972 | public bool HasA { |
| 973 | get { return hasA; } |
| 974 | } |
| 975 | public int A { |
| 976 | get { return a_; } |
| 977 | } |
| 978 | |
| 979 | public override bool IsInitialized { |
| 980 | get { |
| 981 | return true; |
| 982 | } |
| 983 | } |
| 984 | |
| 985 | public override void WriteTo(pb::CodedOutputStream output) { |
| 986 | if (HasA) { |
| 987 | output.WriteInt32(17, A); |
| 988 | } |
| 989 | UnknownFields.WriteTo(output); |
| 990 | } |
| 991 | |
| 992 | private int memoizedSerializedSize = -1; |
| 993 | public override int SerializedSize { |
| 994 | get { |
| 995 | int size = memoizedSerializedSize; |
| 996 | if (size != -1) return size; |
| 997 | |
| 998 | size = 0; |
| 999 | if (HasA) { |
| 1000 | size += pb::CodedOutputStream.ComputeInt32Size(17, A); |
| 1001 | } |
| 1002 | size += UnknownFields.SerializedSize; |
| 1003 | memoizedSerializedSize = size; |
| 1004 | return size; |
| 1005 | } |
| 1006 | } |
| 1007 | |
| 1008 | public static OptionalGroup ParseFrom(pb::ByteString data) { |
| 1009 | return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed(); |
| 1010 | } |
| 1011 | public static OptionalGroup ParseFrom(pb::ByteString data, pb::ExtensionRegistry extensionRegistry) { |
| 1012 | return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed(); |
| 1013 | } |
| 1014 | public static OptionalGroup ParseFrom(byte[] data) { |
| 1015 | return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed(); |
| 1016 | } |
| 1017 | public static OptionalGroup ParseFrom(byte[] data, pb::ExtensionRegistry extensionRegistry) { |
| 1018 | return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed(); |
| 1019 | } |
| 1020 | public static OptionalGroup ParseFrom(global::System.IO.Stream input) { |
| 1021 | return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed(); |
| 1022 | } |
| 1023 | public static OptionalGroup ParseFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) { |
| 1024 | return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed(); |
| 1025 | } |
| 1026 | public static OptionalGroup ParseFrom(pb::CodedInputStream input) { |
| 1027 | return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed(); |
| 1028 | } |
| 1029 | public static OptionalGroup ParseFrom(pb::CodedInputStream input, pb::ExtensionRegistry extensionRegistry) { |
| 1030 | return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed(); |
| 1031 | } |
| 1032 | public static Builder CreateBuilder() { return new Builder(); } |
| 1033 | public override Builder CreateBuilderForType() { return new Builder(); } |
| 1034 | public static Builder CreateBuilder(OptionalGroup prototype) { |
| 1035 | return (Builder) new Builder().MergeFrom(prototype); |
| 1036 | } |
| 1037 | |
| 1038 | public sealed partial class Builder : pb::GeneratedBuilder<OptionalGroup, Builder> { |
| 1039 | protected override Builder ThisBuilder { |
| 1040 | get { return this; } |
| 1041 | } |
| 1042 | public Builder() {} |
| 1043 | |
| 1044 | OptionalGroup result = new OptionalGroup(); |
| 1045 | |
| 1046 | protected override OptionalGroup MessageBeingBuilt { |
| 1047 | get { return result; } |
| 1048 | } |
| 1049 | |
| 1050 | public override Builder Clear() { |
| 1051 | result = new OptionalGroup(); |
| 1052 | return this; |
| 1053 | } |
| 1054 | |
| 1055 | public override Builder Clone() { |
| 1056 | return new Builder().MergeFrom(result); |
| 1057 | } |
| 1058 | |
| 1059 | public override pbd::MessageDescriptor DescriptorForType { |
| 1060 | get { return OptionalGroup.Descriptor; } |
| 1061 | } |
| 1062 | |
| 1063 | public override OptionalGroup DefaultInstanceForType { |
| 1064 | get { return OptionalGroup.DefaultInstance; } |
| 1065 | } |
| 1066 | |
| 1067 | public override OptionalGroup BuildPartial() { |
| 1068 | OptionalGroup returnMe = result; |
| 1069 | result = null; |
| 1070 | return returnMe; |
| 1071 | } |
| 1072 | |
| 1073 | public override Builder MergeFrom(pb::IMessage other) { |
| 1074 | if (other is OptionalGroup) { |
| 1075 | return MergeFrom((OptionalGroup) other); |
| 1076 | } else { |
| 1077 | base.MergeFrom(other); |
| 1078 | return this; |
| 1079 | } |
| 1080 | } |
| 1081 | |
| 1082 | public override Builder MergeFrom(OptionalGroup other) { |
| 1083 | if (other == OptionalGroup.DefaultInstance) return this; |
| 1084 | if (other.HasA) { |
| 1085 | A = other.A; |
| 1086 | } |
| 1087 | this.MergeUnknownFields(other.UnknownFields); |
| 1088 | return this; |
| 1089 | } |
| 1090 | |
| 1091 | public override Builder MergeFrom(pb::CodedInputStream input) { |
| 1092 | return MergeFrom(input, pb::ExtensionRegistry.Empty); |
| 1093 | } |
| 1094 | |
| 1095 | public override Builder MergeFrom(pb::CodedInputStream input, pb::ExtensionRegistry extensionRegistry) { |
| 1096 | pb::UnknownFieldSet.Builder unknownFields = pb::UnknownFieldSet.CreateBuilder(this.UnknownFields); |
| 1097 | while (true) { |
| 1098 | uint tag = input.ReadTag(); |
| 1099 | switch (tag) { |
| 1100 | case 0: { |
| 1101 | this.UnknownFields = unknownFields.Build(); |
| 1102 | return this; |
| 1103 | } |
| 1104 | default: { |
| 1105 | if (!ParseUnknownField(input, unknownFields, extensionRegistry, tag)) { |
| 1106 | this.UnknownFields = unknownFields.Build(); |
| 1107 | return this; |
| 1108 | } |
| 1109 | break; |
| 1110 | } |
| 1111 | case 136: { |
| 1112 | A = input.ReadInt32(); |
| 1113 | break; |
| 1114 | } |
| 1115 | } |
| 1116 | } |
| 1117 | } |
| 1118 | |
| 1119 | |
| 1120 | public bool HasA { |
| 1121 | get { return result.HasA; } |
| 1122 | } |
| 1123 | public int A { |
| 1124 | get { return result.A; } |
| 1125 | set { SetA(value); } |
| 1126 | } |
| 1127 | public Builder SetA(int value) { |
| 1128 | result.hasA = true; |
| 1129 | result.a_ = value; |
| 1130 | return this; |
| 1131 | } |
| 1132 | public Builder ClearA() { |
| 1133 | result.hasA = false; |
| 1134 | result.a_ = 0; |
| 1135 | return this; |
| 1136 | } |
| 1137 | } |
| 1138 | } |
| 1139 | |
| 1140 | public sealed partial class RepeatedGroup : pb::GeneratedMessage<RepeatedGroup, RepeatedGroup.Builder> { |
| 1141 | private static readonly RepeatedGroup defaultInstance = new Builder().BuildPartial(); |
| 1142 | public static RepeatedGroup DefaultInstance { |
| 1143 | get { return defaultInstance; } |
| 1144 | } |
| 1145 | |
| 1146 | public override RepeatedGroup DefaultInstanceForType { |
| 1147 | get { return defaultInstance; } |
| 1148 | } |
| 1149 | |
| 1150 | protected override RepeatedGroup ThisMessage { |
| 1151 | get { return this; } |
| 1152 | } |
| 1153 | |
| 1154 | public static pbd::MessageDescriptor Descriptor { |
| 1155 | get { return global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.internal__static_protobuf_unittest_TestAllTypes_RepeatedGroup__Descriptor; } |
| 1156 | } |
| 1157 | |
| 1158 | protected override pb::FieldAccess.FieldAccessorTable<RepeatedGroup, RepeatedGroup.Builder> InternalFieldAccessors { |
| 1159 | get { return global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.internal__static_protobuf_unittest_TestAllTypes_RepeatedGroup__FieldAccessorTable; } |
| 1160 | } |
| 1161 | |
| 1162 | private bool hasA; |
| 1163 | private int a_ = 0; |
| 1164 | public bool HasA { |
| 1165 | get { return hasA; } |
| 1166 | } |
| 1167 | public int A { |
| 1168 | get { return a_; } |
| 1169 | } |
| 1170 | |
| 1171 | public override bool IsInitialized { |
| 1172 | get { |
| 1173 | return true; |
| 1174 | } |
| 1175 | } |
| 1176 | |
| 1177 | public override void WriteTo(pb::CodedOutputStream output) { |
| 1178 | if (HasA) { |
| 1179 | output.WriteInt32(47, A); |
| 1180 | } |
| 1181 | UnknownFields.WriteTo(output); |
| 1182 | } |
| 1183 | |
| 1184 | private int memoizedSerializedSize = -1; |
| 1185 | public override int SerializedSize { |
| 1186 | get { |
| 1187 | int size = memoizedSerializedSize; |
| 1188 | if (size != -1) return size; |
| 1189 | |
| 1190 | size = 0; |
| 1191 | if (HasA) { |
| 1192 | size += pb::CodedOutputStream.ComputeInt32Size(47, A); |
| 1193 | } |
| 1194 | size += UnknownFields.SerializedSize; |
| 1195 | memoizedSerializedSize = size; |
| 1196 | return size; |
| 1197 | } |
| 1198 | } |
| 1199 | |
| 1200 | public static RepeatedGroup ParseFrom(pb::ByteString data) { |
| 1201 | return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed(); |
| 1202 | } |
| 1203 | public static RepeatedGroup ParseFrom(pb::ByteString data, pb::ExtensionRegistry extensionRegistry) { |
| 1204 | return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed(); |
| 1205 | } |
| 1206 | public static RepeatedGroup ParseFrom(byte[] data) { |
| 1207 | return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed(); |
| 1208 | } |
| 1209 | public static RepeatedGroup ParseFrom(byte[] data, pb::ExtensionRegistry extensionRegistry) { |
| 1210 | return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed(); |
| 1211 | } |
| 1212 | public static RepeatedGroup ParseFrom(global::System.IO.Stream input) { |
| 1213 | return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed(); |
| 1214 | } |
| 1215 | public static RepeatedGroup ParseFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) { |
| 1216 | return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed(); |
| 1217 | } |
| 1218 | public static RepeatedGroup ParseFrom(pb::CodedInputStream input) { |
| 1219 | return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed(); |
| 1220 | } |
| 1221 | public static RepeatedGroup ParseFrom(pb::CodedInputStream input, pb::ExtensionRegistry extensionRegistry) { |
| 1222 | return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed(); |
| 1223 | } |
| 1224 | public static Builder CreateBuilder() { return new Builder(); } |
| 1225 | public override Builder CreateBuilderForType() { return new Builder(); } |
| 1226 | public static Builder CreateBuilder(RepeatedGroup prototype) { |
| 1227 | return (Builder) new Builder().MergeFrom(prototype); |
| 1228 | } |
| 1229 | |
| 1230 | public sealed partial class Builder : pb::GeneratedBuilder<RepeatedGroup, Builder> { |
| 1231 | protected override Builder ThisBuilder { |
| 1232 | get { return this; } |
| 1233 | } |
| 1234 | public Builder() {} |
| 1235 | |
| 1236 | RepeatedGroup result = new RepeatedGroup(); |
| 1237 | |
| 1238 | protected override RepeatedGroup MessageBeingBuilt { |
| 1239 | get { return result; } |
| 1240 | } |
| 1241 | |
| 1242 | public override Builder Clear() { |
| 1243 | result = new RepeatedGroup(); |
| 1244 | return this; |
| 1245 | } |
| 1246 | |
| 1247 | public override Builder Clone() { |
| 1248 | return new Builder().MergeFrom(result); |
| 1249 | } |
| 1250 | |
| 1251 | public override pbd::MessageDescriptor DescriptorForType { |
| 1252 | get { return RepeatedGroup.Descriptor; } |
| 1253 | } |
| 1254 | |
| 1255 | public override RepeatedGroup DefaultInstanceForType { |
| 1256 | get { return RepeatedGroup.DefaultInstance; } |
| 1257 | } |
| 1258 | |
| 1259 | public override RepeatedGroup BuildPartial() { |
| 1260 | RepeatedGroup returnMe = result; |
| 1261 | result = null; |
| 1262 | return returnMe; |
| 1263 | } |
| 1264 | |
| 1265 | public override Builder MergeFrom(pb::IMessage other) { |
| 1266 | if (other is RepeatedGroup) { |
| 1267 | return MergeFrom((RepeatedGroup) other); |
| 1268 | } else { |
| 1269 | base.MergeFrom(other); |
| 1270 | return this; |
| 1271 | } |
| 1272 | } |
| 1273 | |
| 1274 | public override Builder MergeFrom(RepeatedGroup other) { |
| 1275 | if (other == RepeatedGroup.DefaultInstance) return this; |
| 1276 | if (other.HasA) { |
| 1277 | A = other.A; |
| 1278 | } |
| 1279 | this.MergeUnknownFields(other.UnknownFields); |
| 1280 | return this; |
| 1281 | } |
| 1282 | |
| 1283 | public override Builder MergeFrom(pb::CodedInputStream input) { |
| 1284 | return MergeFrom(input, pb::ExtensionRegistry.Empty); |
| 1285 | } |
| 1286 | |
| 1287 | public override Builder MergeFrom(pb::CodedInputStream input, pb::ExtensionRegistry extensionRegistry) { |
| 1288 | pb::UnknownFieldSet.Builder unknownFields = pb::UnknownFieldSet.CreateBuilder(this.UnknownFields); |
| 1289 | while (true) { |
| 1290 | uint tag = input.ReadTag(); |
| 1291 | switch (tag) { |
| 1292 | case 0: { |
| 1293 | this.UnknownFields = unknownFields.Build(); |
| 1294 | return this; |
| 1295 | } |
| 1296 | default: { |
| 1297 | if (!ParseUnknownField(input, unknownFields, extensionRegistry, tag)) { |
| 1298 | this.UnknownFields = unknownFields.Build(); |
| 1299 | return this; |
| 1300 | } |
| 1301 | break; |
| 1302 | } |
| 1303 | case 376: { |
| 1304 | A = input.ReadInt32(); |
| 1305 | break; |
| 1306 | } |
| 1307 | } |
| 1308 | } |
| 1309 | } |
| 1310 | |
| 1311 | |
| 1312 | public bool HasA { |
| 1313 | get { return result.HasA; } |
| 1314 | } |
| 1315 | public int A { |
| 1316 | get { return result.A; } |
| 1317 | set { SetA(value); } |
| 1318 | } |
| 1319 | public Builder SetA(int value) { |
| 1320 | result.hasA = true; |
| 1321 | result.a_ = value; |
| 1322 | return this; |
| 1323 | } |
| 1324 | public Builder ClearA() { |
| 1325 | result.hasA = false; |
| 1326 | result.a_ = 0; |
| 1327 | return this; |
| 1328 | } |
| 1329 | } |
| 1330 | } |
| 1331 | |
| 1332 | } |
| 1333 | #endregion |
| 1334 | |
| 1335 | private bool hasOptionalInt32; |
| 1336 | private int optionalInt32_ = 0; |
| 1337 | public bool HasOptionalInt32 { |
| 1338 | get { return hasOptionalInt32; } |
| 1339 | } |
| 1340 | public int OptionalInt32 { |
| 1341 | get { return optionalInt32_; } |
| 1342 | } |
| 1343 | |
| 1344 | private bool hasOptionalInt64; |
| 1345 | private long optionalInt64_ = 0L; |
| 1346 | public bool HasOptionalInt64 { |
| 1347 | get { return hasOptionalInt64; } |
| 1348 | } |
| 1349 | public long OptionalInt64 { |
| 1350 | get { return optionalInt64_; } |
| 1351 | } |
| 1352 | |
| 1353 | private bool hasOptionalUint32; |
| 1354 | private uint optionalUint32_ = 0; |
| 1355 | public bool HasOptionalUint32 { |
| 1356 | get { return hasOptionalUint32; } |
| 1357 | } |
| 1358 | public uint OptionalUint32 { |
| 1359 | get { return optionalUint32_; } |
| 1360 | } |
| 1361 | |
| 1362 | private bool hasOptionalUint64; |
| 1363 | private ulong optionalUint64_ = 0UL; |
| 1364 | public bool HasOptionalUint64 { |
| 1365 | get { return hasOptionalUint64; } |
| 1366 | } |
| 1367 | public ulong OptionalUint64 { |
| 1368 | get { return optionalUint64_; } |
| 1369 | } |
| 1370 | |
| 1371 | private bool hasOptionalSint32; |
| 1372 | private int optionalSint32_ = 0; |
| 1373 | public bool HasOptionalSint32 { |
| 1374 | get { return hasOptionalSint32; } |
| 1375 | } |
| 1376 | public int OptionalSint32 { |
| 1377 | get { return optionalSint32_; } |
| 1378 | } |
| 1379 | |
| 1380 | private bool hasOptionalSint64; |
| 1381 | private long optionalSint64_ = 0; |
| 1382 | public bool HasOptionalSint64 { |
| 1383 | get { return hasOptionalSint64; } |
| 1384 | } |
| 1385 | public long OptionalSint64 { |
| 1386 | get { return optionalSint64_; } |
| 1387 | } |
| 1388 | |
| 1389 | private bool hasOptionalFixed32; |
| 1390 | private uint optionalFixed32_ = 0; |
| 1391 | public bool HasOptionalFixed32 { |
| 1392 | get { return hasOptionalFixed32; } |
| 1393 | } |
| 1394 | public uint OptionalFixed32 { |
| 1395 | get { return optionalFixed32_; } |
| 1396 | } |
| 1397 | |
| 1398 | private bool hasOptionalFixed64; |
| 1399 | private ulong optionalFixed64_ = 0; |
| 1400 | public bool HasOptionalFixed64 { |
| 1401 | get { return hasOptionalFixed64; } |
| 1402 | } |
| 1403 | public ulong OptionalFixed64 { |
| 1404 | get { return optionalFixed64_; } |
| 1405 | } |
| 1406 | |
| 1407 | private bool hasOptionalSfixed32; |
| 1408 | private int optionalSfixed32_ = 0; |
| 1409 | public bool HasOptionalSfixed32 { |
| 1410 | get { return hasOptionalSfixed32; } |
| 1411 | } |
| 1412 | public int OptionalSfixed32 { |
| 1413 | get { return optionalSfixed32_; } |
| 1414 | } |
| 1415 | |
| 1416 | private bool hasOptionalSfixed64; |
| 1417 | private long optionalSfixed64_ = 0; |
| 1418 | public bool HasOptionalSfixed64 { |
| 1419 | get { return hasOptionalSfixed64; } |
| 1420 | } |
| 1421 | public long OptionalSfixed64 { |
| 1422 | get { return optionalSfixed64_; } |
| 1423 | } |
| 1424 | |
| 1425 | private bool hasOptionalFloat; |
| 1426 | private float optionalFloat_ = 0F; |
| 1427 | public bool HasOptionalFloat { |
| 1428 | get { return hasOptionalFloat; } |
| 1429 | } |
| 1430 | public float OptionalFloat { |
| 1431 | get { return optionalFloat_; } |
| 1432 | } |
| 1433 | |
| 1434 | private bool hasOptionalDouble; |
| 1435 | private double optionalDouble_ = 0D; |
| 1436 | public bool HasOptionalDouble { |
| 1437 | get { return hasOptionalDouble; } |
| 1438 | } |
| 1439 | public double OptionalDouble { |
| 1440 | get { return optionalDouble_; } |
| 1441 | } |
| 1442 | |
| 1443 | private bool hasOptionalBool; |
| 1444 | private bool optionalBool_ = false; |
| 1445 | public bool HasOptionalBool { |
| 1446 | get { return hasOptionalBool; } |
| 1447 | } |
| 1448 | public bool OptionalBool { |
| 1449 | get { return optionalBool_; } |
| 1450 | } |
| 1451 | |
| 1452 | private bool hasOptionalString; |
| 1453 | private string optionalString_ = ""; |
| 1454 | public bool HasOptionalString { |
| 1455 | get { return hasOptionalString; } |
| 1456 | } |
| 1457 | public string OptionalString { |
| 1458 | get { return optionalString_; } |
| 1459 | } |
| 1460 | |
| 1461 | private bool hasOptionalBytes; |
| 1462 | private pb::ByteString optionalBytes_ = pb::ByteString.Empty; |
| 1463 | public bool HasOptionalBytes { |
| 1464 | get { return hasOptionalBytes; } |
| 1465 | } |
| 1466 | public pb::ByteString OptionalBytes { |
| 1467 | get { return optionalBytes_; } |
| 1468 | } |
| 1469 | |
| 1470 | private bool hasOptionalGroup; |
| 1471 | private global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.OptionalGroup optionalGroup_ = global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.OptionalGroup.DefaultInstance; |
| 1472 | public bool HasOptionalGroup { |
| 1473 | get { return hasOptionalGroup; } |
| 1474 | } |
| 1475 | public global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.OptionalGroup OptionalGroup { |
| 1476 | get { return optionalGroup_; } |
| 1477 | } |
| 1478 | |
| 1479 | private bool hasOptionalNestedMessage; |
| 1480 | private global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedMessage optionalNestedMessage_ = global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedMessage.DefaultInstance; |
| 1481 | public bool HasOptionalNestedMessage { |
| 1482 | get { return hasOptionalNestedMessage; } |
| 1483 | } |
| 1484 | public global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedMessage OptionalNestedMessage { |
| 1485 | get { return optionalNestedMessage_; } |
| 1486 | } |
| 1487 | |
| 1488 | private bool hasOptionalForeignMessage; |
| 1489 | private global::Google.ProtocolBuffers.TestProtos.ForeignMessage optionalForeignMessage_ = global::Google.ProtocolBuffers.TestProtos.ForeignMessage.DefaultInstance; |
| 1490 | public bool HasOptionalForeignMessage { |
| 1491 | get { return hasOptionalForeignMessage; } |
| 1492 | } |
| 1493 | public global::Google.ProtocolBuffers.TestProtos.ForeignMessage OptionalForeignMessage { |
| 1494 | get { return optionalForeignMessage_; } |
| 1495 | } |
| 1496 | |
| 1497 | private bool hasOptionalImportMessage; |
| 1498 | private global::Google.ProtocolBuffers.TestProtos.ImportMessage optionalImportMessage_ = global::Google.ProtocolBuffers.TestProtos.ImportMessage.DefaultInstance; |
| 1499 | public bool HasOptionalImportMessage { |
| 1500 | get { return hasOptionalImportMessage; } |
| 1501 | } |
| 1502 | public global::Google.ProtocolBuffers.TestProtos.ImportMessage OptionalImportMessage { |
| 1503 | get { return optionalImportMessage_; } |
| 1504 | } |
| 1505 | |
| 1506 | private bool hasOptionalNestedEnum; |
| 1507 | private global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedEnum optionalNestedEnum_ = global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedEnum.FOO; |
| 1508 | public bool HasOptionalNestedEnum { |
| 1509 | get { return hasOptionalNestedEnum; } |
| 1510 | } |
| 1511 | public global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedEnum OptionalNestedEnum { |
| 1512 | get { return optionalNestedEnum_; } |
| 1513 | } |
| 1514 | |
| 1515 | private bool hasOptionalForeignEnum; |
| 1516 | private global::Google.ProtocolBuffers.TestProtos.ForeignEnum optionalForeignEnum_ = global::Google.ProtocolBuffers.TestProtos.ForeignEnum.FOREIGN_FOO; |
| 1517 | public bool HasOptionalForeignEnum { |
| 1518 | get { return hasOptionalForeignEnum; } |
| 1519 | } |
| 1520 | public global::Google.ProtocolBuffers.TestProtos.ForeignEnum OptionalForeignEnum { |
| 1521 | get { return optionalForeignEnum_; } |
| 1522 | } |
| 1523 | |
| 1524 | private bool hasOptionalImportEnum; |
| 1525 | private global::Google.ProtocolBuffers.TestProtos.ImportEnum optionalImportEnum_ = global::Google.ProtocolBuffers.TestProtos.ImportEnum.IMPORT_FOO; |
| 1526 | public bool HasOptionalImportEnum { |
| 1527 | get { return hasOptionalImportEnum; } |
| 1528 | } |
| 1529 | public global::Google.ProtocolBuffers.TestProtos.ImportEnum OptionalImportEnum { |
| 1530 | get { return optionalImportEnum_; } |
| 1531 | } |
| 1532 | |
| 1533 | private bool hasOptionalStringPiece; |
| 1534 | private string optionalStringPiece_ = ""; |
| 1535 | public bool HasOptionalStringPiece { |
| 1536 | get { return hasOptionalStringPiece; } |
| 1537 | } |
| 1538 | public string OptionalStringPiece { |
| 1539 | get { return optionalStringPiece_; } |
| 1540 | } |
| 1541 | |
| 1542 | private bool hasOptionalCord; |
| 1543 | private string optionalCord_ = ""; |
| 1544 | public bool HasOptionalCord { |
| 1545 | get { return hasOptionalCord; } |
| 1546 | } |
| 1547 | public string OptionalCord { |
| 1548 | get { return optionalCord_; } |
| 1549 | } |
| 1550 | |
| 1551 | private pbc::PopsicleList<int> repeatedInt32_ = new pbc::PopsicleList<int>(); |
| 1552 | public scg::IList<int> RepeatedInt32List { |
| 1553 | get { return pbc::Lists.AsReadOnly(repeatedInt32_); } |
| 1554 | } |
| 1555 | public int RepeatedInt32Count { |
| 1556 | get { return repeatedInt32_.Count; } |
| 1557 | } |
| 1558 | public int GetRepeatedInt32(int index) { |
| 1559 | return repeatedInt32_[index]; |
| 1560 | } |
| 1561 | |
| 1562 | private pbc::PopsicleList<long> repeatedInt64_ = new pbc::PopsicleList<long>(); |
| 1563 | public scg::IList<long> RepeatedInt64List { |
| 1564 | get { return pbc::Lists.AsReadOnly(repeatedInt64_); } |
| 1565 | } |
| 1566 | public int RepeatedInt64Count { |
| 1567 | get { return repeatedInt64_.Count; } |
| 1568 | } |
| 1569 | public long GetRepeatedInt64(int index) { |
| 1570 | return repeatedInt64_[index]; |
| 1571 | } |
| 1572 | |
| 1573 | private pbc::PopsicleList<uint> repeatedUint32_ = new pbc::PopsicleList<uint>(); |
| 1574 | public scg::IList<uint> RepeatedUint32List { |
| 1575 | get { return pbc::Lists.AsReadOnly(repeatedUint32_); } |
| 1576 | } |
| 1577 | public int RepeatedUint32Count { |
| 1578 | get { return repeatedUint32_.Count; } |
| 1579 | } |
| 1580 | public uint GetRepeatedUint32(int index) { |
| 1581 | return repeatedUint32_[index]; |
| 1582 | } |
| 1583 | |
| 1584 | private pbc::PopsicleList<ulong> repeatedUint64_ = new pbc::PopsicleList<ulong>(); |
| 1585 | public scg::IList<ulong> RepeatedUint64List { |
| 1586 | get { return pbc::Lists.AsReadOnly(repeatedUint64_); } |
| 1587 | } |
| 1588 | public int RepeatedUint64Count { |
| 1589 | get { return repeatedUint64_.Count; } |
| 1590 | } |
| 1591 | public ulong GetRepeatedUint64(int index) { |
| 1592 | return repeatedUint64_[index]; |
| 1593 | } |
| 1594 | |
| 1595 | private pbc::PopsicleList<int> repeatedSint32_ = new pbc::PopsicleList<int>(); |
| 1596 | public scg::IList<int> RepeatedSint32List { |
| 1597 | get { return pbc::Lists.AsReadOnly(repeatedSint32_); } |
| 1598 | } |
| 1599 | public int RepeatedSint32Count { |
| 1600 | get { return repeatedSint32_.Count; } |
| 1601 | } |
| 1602 | public int GetRepeatedSint32(int index) { |
| 1603 | return repeatedSint32_[index]; |
| 1604 | } |
| 1605 | |
| 1606 | private pbc::PopsicleList<long> repeatedSint64_ = new pbc::PopsicleList<long>(); |
| 1607 | public scg::IList<long> RepeatedSint64List { |
| 1608 | get { return pbc::Lists.AsReadOnly(repeatedSint64_); } |
| 1609 | } |
| 1610 | public int RepeatedSint64Count { |
| 1611 | get { return repeatedSint64_.Count; } |
| 1612 | } |
| 1613 | public long GetRepeatedSint64(int index) { |
| 1614 | return repeatedSint64_[index]; |
| 1615 | } |
| 1616 | |
| 1617 | private pbc::PopsicleList<uint> repeatedFixed32_ = new pbc::PopsicleList<uint>(); |
| 1618 | public scg::IList<uint> RepeatedFixed32List { |
| 1619 | get { return pbc::Lists.AsReadOnly(repeatedFixed32_); } |
| 1620 | } |
| 1621 | public int RepeatedFixed32Count { |
| 1622 | get { return repeatedFixed32_.Count; } |
| 1623 | } |
| 1624 | public uint GetRepeatedFixed32(int index) { |
| 1625 | return repeatedFixed32_[index]; |
| 1626 | } |
| 1627 | |
| 1628 | private pbc::PopsicleList<ulong> repeatedFixed64_ = new pbc::PopsicleList<ulong>(); |
| 1629 | public scg::IList<ulong> RepeatedFixed64List { |
| 1630 | get { return pbc::Lists.AsReadOnly(repeatedFixed64_); } |
| 1631 | } |
| 1632 | public int RepeatedFixed64Count { |
| 1633 | get { return repeatedFixed64_.Count; } |
| 1634 | } |
| 1635 | public ulong GetRepeatedFixed64(int index) { |
| 1636 | return repeatedFixed64_[index]; |
| 1637 | } |
| 1638 | |
| 1639 | private pbc::PopsicleList<int> repeatedSfixed32_ = new pbc::PopsicleList<int>(); |
| 1640 | public scg::IList<int> RepeatedSfixed32List { |
| 1641 | get { return pbc::Lists.AsReadOnly(repeatedSfixed32_); } |
| 1642 | } |
| 1643 | public int RepeatedSfixed32Count { |
| 1644 | get { return repeatedSfixed32_.Count; } |
| 1645 | } |
| 1646 | public int GetRepeatedSfixed32(int index) { |
| 1647 | return repeatedSfixed32_[index]; |
| 1648 | } |
| 1649 | |
| 1650 | private pbc::PopsicleList<long> repeatedSfixed64_ = new pbc::PopsicleList<long>(); |
| 1651 | public scg::IList<long> RepeatedSfixed64List { |
| 1652 | get { return pbc::Lists.AsReadOnly(repeatedSfixed64_); } |
| 1653 | } |
| 1654 | public int RepeatedSfixed64Count { |
| 1655 | get { return repeatedSfixed64_.Count; } |
| 1656 | } |
| 1657 | public long GetRepeatedSfixed64(int index) { |
| 1658 | return repeatedSfixed64_[index]; |
| 1659 | } |
| 1660 | |
| 1661 | private pbc::PopsicleList<float> repeatedFloat_ = new pbc::PopsicleList<float>(); |
| 1662 | public scg::IList<float> RepeatedFloatList { |
| 1663 | get { return pbc::Lists.AsReadOnly(repeatedFloat_); } |
| 1664 | } |
| 1665 | public int RepeatedFloatCount { |
| 1666 | get { return repeatedFloat_.Count; } |
| 1667 | } |
| 1668 | public float GetRepeatedFloat(int index) { |
| 1669 | return repeatedFloat_[index]; |
| 1670 | } |
| 1671 | |
| 1672 | private pbc::PopsicleList<double> repeatedDouble_ = new pbc::PopsicleList<double>(); |
| 1673 | public scg::IList<double> RepeatedDoubleList { |
| 1674 | get { return pbc::Lists.AsReadOnly(repeatedDouble_); } |
| 1675 | } |
| 1676 | public int RepeatedDoubleCount { |
| 1677 | get { return repeatedDouble_.Count; } |
| 1678 | } |
| 1679 | public double GetRepeatedDouble(int index) { |
| 1680 | return repeatedDouble_[index]; |
| 1681 | } |
| 1682 | |
| 1683 | private pbc::PopsicleList<bool> repeatedBool_ = new pbc::PopsicleList<bool>(); |
| 1684 | public scg::IList<bool> RepeatedBoolList { |
| 1685 | get { return pbc::Lists.AsReadOnly(repeatedBool_); } |
| 1686 | } |
| 1687 | public int RepeatedBoolCount { |
| 1688 | get { return repeatedBool_.Count; } |
| 1689 | } |
| 1690 | public bool GetRepeatedBool(int index) { |
| 1691 | return repeatedBool_[index]; |
| 1692 | } |
| 1693 | |
| 1694 | private pbc::PopsicleList<string> repeatedString_ = new pbc::PopsicleList<string>(); |
| 1695 | public scg::IList<string> RepeatedStringList { |
| 1696 | get { return pbc::Lists.AsReadOnly(repeatedString_); } |
| 1697 | } |
| 1698 | public int RepeatedStringCount { |
| 1699 | get { return repeatedString_.Count; } |
| 1700 | } |
| 1701 | public string GetRepeatedString(int index) { |
| 1702 | return repeatedString_[index]; |
| 1703 | } |
| 1704 | |
| 1705 | private pbc::PopsicleList<pb::ByteString> repeatedBytes_ = new pbc::PopsicleList<pb::ByteString>(); |
| 1706 | public scg::IList<pb::ByteString> RepeatedBytesList { |
| 1707 | get { return pbc::Lists.AsReadOnly(repeatedBytes_); } |
| 1708 | } |
| 1709 | public int RepeatedBytesCount { |
| 1710 | get { return repeatedBytes_.Count; } |
| 1711 | } |
| 1712 | public pb::ByteString GetRepeatedBytes(int index) { |
| 1713 | return repeatedBytes_[index]; |
| 1714 | } |
| 1715 | |
| 1716 | private pbc::PopsicleList<global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.RepeatedGroup> repeatedGroup_ = new pbc::PopsicleList<global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.RepeatedGroup>(); |
| 1717 | public scg::IList<global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.RepeatedGroup> RepeatedGroupList { |
| 1718 | get { return repeatedGroup_; } |
| 1719 | } |
| 1720 | public int RepeatedGroupCount { |
| 1721 | get { return repeatedGroup_.Count; } |
| 1722 | } |
| 1723 | public global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.RepeatedGroup GetRepeatedGroup(int index) { |
| 1724 | return repeatedGroup_[index]; |
| 1725 | } |
| 1726 | |
| 1727 | private pbc::PopsicleList<global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedMessage> repeatedNestedMessage_ = new pbc::PopsicleList<global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedMessage>(); |
| 1728 | public scg::IList<global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedMessage> RepeatedNestedMessageList { |
| 1729 | get { return repeatedNestedMessage_; } |
| 1730 | } |
| 1731 | public int RepeatedNestedMessageCount { |
| 1732 | get { return repeatedNestedMessage_.Count; } |
| 1733 | } |
| 1734 | public global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedMessage GetRepeatedNestedMessage(int index) { |
| 1735 | return repeatedNestedMessage_[index]; |
| 1736 | } |
| 1737 | |
| 1738 | private pbc::PopsicleList<global::Google.ProtocolBuffers.TestProtos.ForeignMessage> repeatedForeignMessage_ = new pbc::PopsicleList<global::Google.ProtocolBuffers.TestProtos.ForeignMessage>(); |
| 1739 | public scg::IList<global::Google.ProtocolBuffers.TestProtos.ForeignMessage> RepeatedForeignMessageList { |
| 1740 | get { return repeatedForeignMessage_; } |
| 1741 | } |
| 1742 | public int RepeatedForeignMessageCount { |
| 1743 | get { return repeatedForeignMessage_.Count; } |
| 1744 | } |
| 1745 | public global::Google.ProtocolBuffers.TestProtos.ForeignMessage GetRepeatedForeignMessage(int index) { |
| 1746 | return repeatedForeignMessage_[index]; |
| 1747 | } |
| 1748 | |
| 1749 | private pbc::PopsicleList<global::Google.ProtocolBuffers.TestProtos.ImportMessage> repeatedImportMessage_ = new pbc::PopsicleList<global::Google.ProtocolBuffers.TestProtos.ImportMessage>(); |
| 1750 | public scg::IList<global::Google.ProtocolBuffers.TestProtos.ImportMessage> RepeatedImportMessageList { |
| 1751 | get { return repeatedImportMessage_; } |
| 1752 | } |
| 1753 | public int RepeatedImportMessageCount { |
| 1754 | get { return repeatedImportMessage_.Count; } |
| 1755 | } |
| 1756 | public global::Google.ProtocolBuffers.TestProtos.ImportMessage GetRepeatedImportMessage(int index) { |
| 1757 | return repeatedImportMessage_[index]; |
| 1758 | } |
| 1759 | |
| 1760 | private pbc::PopsicleList<global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedEnum> repeatedNestedEnum_ = new pbc::PopsicleList<global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedEnum>(); |
| 1761 | public scg::IList<global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedEnum> RepeatedNestedEnumList { |
| 1762 | get { return pbc::Lists.AsReadOnly(repeatedNestedEnum_); } |
| 1763 | } |
| 1764 | public int RepeatedNestedEnumCount { |
| 1765 | get { return repeatedNestedEnum_.Count; } |
| 1766 | } |
| 1767 | public global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedEnum GetRepeatedNestedEnum(int index) { |
| 1768 | return repeatedNestedEnum_[index]; |
| 1769 | } |
| 1770 | |
| 1771 | private pbc::PopsicleList<global::Google.ProtocolBuffers.TestProtos.ForeignEnum> repeatedForeignEnum_ = new pbc::PopsicleList<global::Google.ProtocolBuffers.TestProtos.ForeignEnum>(); |
| 1772 | public scg::IList<global::Google.ProtocolBuffers.TestProtos.ForeignEnum> RepeatedForeignEnumList { |
| 1773 | get { return pbc::Lists.AsReadOnly(repeatedForeignEnum_); } |
| 1774 | } |
| 1775 | public int RepeatedForeignEnumCount { |
| 1776 | get { return repeatedForeignEnum_.Count; } |
| 1777 | } |
| 1778 | public global::Google.ProtocolBuffers.TestProtos.ForeignEnum GetRepeatedForeignEnum(int index) { |
| 1779 | return repeatedForeignEnum_[index]; |
| 1780 | } |
| 1781 | |
| 1782 | private pbc::PopsicleList<global::Google.ProtocolBuffers.TestProtos.ImportEnum> repeatedImportEnum_ = new pbc::PopsicleList<global::Google.ProtocolBuffers.TestProtos.ImportEnum>(); |
| 1783 | public scg::IList<global::Google.ProtocolBuffers.TestProtos.ImportEnum> RepeatedImportEnumList { |
| 1784 | get { return pbc::Lists.AsReadOnly(repeatedImportEnum_); } |
| 1785 | } |
| 1786 | public int RepeatedImportEnumCount { |
| 1787 | get { return repeatedImportEnum_.Count; } |
| 1788 | } |
| 1789 | public global::Google.ProtocolBuffers.TestProtos.ImportEnum GetRepeatedImportEnum(int index) { |
| 1790 | return repeatedImportEnum_[index]; |
| 1791 | } |
| 1792 | |
| 1793 | private pbc::PopsicleList<string> repeatedStringPiece_ = new pbc::PopsicleList<string>(); |
| 1794 | public scg::IList<string> RepeatedStringPieceList { |
| 1795 | get { return pbc::Lists.AsReadOnly(repeatedStringPiece_); } |
| 1796 | } |
| 1797 | public int RepeatedStringPieceCount { |
| 1798 | get { return repeatedStringPiece_.Count; } |
| 1799 | } |
| 1800 | public string GetRepeatedStringPiece(int index) { |
| 1801 | return repeatedStringPiece_[index]; |
| 1802 | } |
| 1803 | |
| 1804 | private pbc::PopsicleList<string> repeatedCord_ = new pbc::PopsicleList<string>(); |
| 1805 | public scg::IList<string> RepeatedCordList { |
| 1806 | get { return pbc::Lists.AsReadOnly(repeatedCord_); } |
| 1807 | } |
| 1808 | public int RepeatedCordCount { |
| 1809 | get { return repeatedCord_.Count; } |
| 1810 | } |
| 1811 | public string GetRepeatedCord(int index) { |
| 1812 | return repeatedCord_[index]; |
| 1813 | } |
| 1814 | |
| 1815 | private bool hasDefaultInt32; |
| 1816 | private int defaultInt32_ = 41; |
| 1817 | public bool HasDefaultInt32 { |
| 1818 | get { return hasDefaultInt32; } |
| 1819 | } |
| 1820 | public int DefaultInt32 { |
| 1821 | get { return defaultInt32_; } |
| 1822 | } |
| 1823 | |
| 1824 | private bool hasDefaultInt64; |
| 1825 | private long defaultInt64_ = 42L; |
| 1826 | public bool HasDefaultInt64 { |
| 1827 | get { return hasDefaultInt64; } |
| 1828 | } |
| 1829 | public long DefaultInt64 { |
| 1830 | get { return defaultInt64_; } |
| 1831 | } |
| 1832 | |
| 1833 | private bool hasDefaultUint32; |
| 1834 | private uint defaultUint32_ = 43; |
| 1835 | public bool HasDefaultUint32 { |
| 1836 | get { return hasDefaultUint32; } |
| 1837 | } |
| 1838 | public uint DefaultUint32 { |
| 1839 | get { return defaultUint32_; } |
| 1840 | } |
| 1841 | |
| 1842 | private bool hasDefaultUint64; |
| 1843 | private ulong defaultUint64_ = 44UL; |
| 1844 | public bool HasDefaultUint64 { |
| 1845 | get { return hasDefaultUint64; } |
| 1846 | } |
| 1847 | public ulong DefaultUint64 { |
| 1848 | get { return defaultUint64_; } |
| 1849 | } |
| 1850 | |
| 1851 | private bool hasDefaultSint32; |
| 1852 | private int defaultSint32_ = -45; |
| 1853 | public bool HasDefaultSint32 { |
| 1854 | get { return hasDefaultSint32; } |
| 1855 | } |
| 1856 | public int DefaultSint32 { |
| 1857 | get { return defaultSint32_; } |
| 1858 | } |
| 1859 | |
| 1860 | private bool hasDefaultSint64; |
| 1861 | private long defaultSint64_ = 46; |
| 1862 | public bool HasDefaultSint64 { |
| 1863 | get { return hasDefaultSint64; } |
| 1864 | } |
| 1865 | public long DefaultSint64 { |
| 1866 | get { return defaultSint64_; } |
| 1867 | } |
| 1868 | |
| 1869 | private bool hasDefaultFixed32; |
| 1870 | private uint defaultFixed32_ = 47; |
| 1871 | public bool HasDefaultFixed32 { |
| 1872 | get { return hasDefaultFixed32; } |
| 1873 | } |
| 1874 | public uint DefaultFixed32 { |
| 1875 | get { return defaultFixed32_; } |
| 1876 | } |
| 1877 | |
| 1878 | private bool hasDefaultFixed64; |
| 1879 | private ulong defaultFixed64_ = 48; |
| 1880 | public bool HasDefaultFixed64 { |
| 1881 | get { return hasDefaultFixed64; } |
| 1882 | } |
| 1883 | public ulong DefaultFixed64 { |
| 1884 | get { return defaultFixed64_; } |
| 1885 | } |
| 1886 | |
| 1887 | private bool hasDefaultSfixed32; |
| 1888 | private int defaultSfixed32_ = 49; |
| 1889 | public bool HasDefaultSfixed32 { |
| 1890 | get { return hasDefaultSfixed32; } |
| 1891 | } |
| 1892 | public int DefaultSfixed32 { |
| 1893 | get { return defaultSfixed32_; } |
| 1894 | } |
| 1895 | |
| 1896 | private bool hasDefaultSfixed64; |
| 1897 | private long defaultSfixed64_ = -50; |
| 1898 | public bool HasDefaultSfixed64 { |
| 1899 | get { return hasDefaultSfixed64; } |
| 1900 | } |
| 1901 | public long DefaultSfixed64 { |
| 1902 | get { return defaultSfixed64_; } |
| 1903 | } |
| 1904 | |
| 1905 | private bool hasDefaultFloat; |
| 1906 | private float defaultFloat_ = 51.5F; |
| 1907 | public bool HasDefaultFloat { |
| 1908 | get { return hasDefaultFloat; } |
| 1909 | } |
| 1910 | public float DefaultFloat { |
| 1911 | get { return defaultFloat_; } |
| 1912 | } |
| 1913 | |
| 1914 | private bool hasDefaultDouble; |
| 1915 | private double defaultDouble_ = 52000D; |
| 1916 | public bool HasDefaultDouble { |
| 1917 | get { return hasDefaultDouble; } |
| 1918 | } |
| 1919 | public double DefaultDouble { |
| 1920 | get { return defaultDouble_; } |
| 1921 | } |
| 1922 | |
| 1923 | private bool hasDefaultBool; |
| 1924 | private bool defaultBool_ = true; |
| 1925 | public bool HasDefaultBool { |
| 1926 | get { return hasDefaultBool; } |
| 1927 | } |
| 1928 | public bool DefaultBool { |
| 1929 | get { return defaultBool_; } |
| 1930 | } |
| 1931 | |
| 1932 | private bool hasDefaultString; |
| 1933 | private string defaultString_ = "hello"; |
| 1934 | public bool HasDefaultString { |
| 1935 | get { return hasDefaultString; } |
| 1936 | } |
| 1937 | public string DefaultString { |
| 1938 | get { return defaultString_; } |
| 1939 | } |
| 1940 | |
| 1941 | private bool hasDefaultBytes; |
| 1942 | private pb::ByteString defaultBytes_ = (pb::ByteString) global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Descriptor.Fields[62].DefaultValue; |
| 1943 | public bool HasDefaultBytes { |
| 1944 | get { return hasDefaultBytes; } |
| 1945 | } |
| 1946 | public pb::ByteString DefaultBytes { |
| 1947 | get { return defaultBytes_; } |
| 1948 | } |
| 1949 | |
| 1950 | private bool hasDefaultNestedEnum; |
| 1951 | private global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedEnum defaultNestedEnum_ = global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedEnum.BAR; |
| 1952 | public bool HasDefaultNestedEnum { |
| 1953 | get { return hasDefaultNestedEnum; } |
| 1954 | } |
| 1955 | public global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedEnum DefaultNestedEnum { |
| 1956 | get { return defaultNestedEnum_; } |
| 1957 | } |
| 1958 | |
| 1959 | private bool hasDefaultForeignEnum; |
| 1960 | private global::Google.ProtocolBuffers.TestProtos.ForeignEnum defaultForeignEnum_ = global::Google.ProtocolBuffers.TestProtos.ForeignEnum.FOREIGN_BAR; |
| 1961 | public bool HasDefaultForeignEnum { |
| 1962 | get { return hasDefaultForeignEnum; } |
| 1963 | } |
| 1964 | public global::Google.ProtocolBuffers.TestProtos.ForeignEnum DefaultForeignEnum { |
| 1965 | get { return defaultForeignEnum_; } |
| 1966 | } |
| 1967 | |
| 1968 | private bool hasDefaultImportEnum; |
| 1969 | private global::Google.ProtocolBuffers.TestProtos.ImportEnum defaultImportEnum_ = global::Google.ProtocolBuffers.TestProtos.ImportEnum.IMPORT_BAR; |
| 1970 | public bool HasDefaultImportEnum { |
| 1971 | get { return hasDefaultImportEnum; } |
| 1972 | } |
| 1973 | public global::Google.ProtocolBuffers.TestProtos.ImportEnum DefaultImportEnum { |
| 1974 | get { return defaultImportEnum_; } |
| 1975 | } |
| 1976 | |
| 1977 | private bool hasDefaultStringPiece; |
| 1978 | private string defaultStringPiece_ = "abc"; |
| 1979 | public bool HasDefaultStringPiece { |
| 1980 | get { return hasDefaultStringPiece; } |
| 1981 | } |
| 1982 | public string DefaultStringPiece { |
| 1983 | get { return defaultStringPiece_; } |
| 1984 | } |
| 1985 | |
| 1986 | private bool hasDefaultCord; |
| 1987 | private string defaultCord_ = "123"; |
| 1988 | public bool HasDefaultCord { |
| 1989 | get { return hasDefaultCord; } |
| 1990 | } |
| 1991 | public string DefaultCord { |
| 1992 | get { return defaultCord_; } |
| 1993 | } |
| 1994 | |
| 1995 | public override bool IsInitialized { |
| 1996 | get { |
| 1997 | return true; |
| 1998 | } |
| 1999 | } |
| 2000 | |
| 2001 | public override void WriteTo(pb::CodedOutputStream output) { |
| 2002 | if (HasOptionalInt32) { |
| 2003 | output.WriteInt32(1, OptionalInt32); |
| 2004 | } |
| 2005 | if (HasOptionalInt64) { |
| 2006 | output.WriteInt64(2, OptionalInt64); |
| 2007 | } |
| 2008 | if (HasOptionalUint32) { |
| 2009 | output.WriteUInt32(3, OptionalUint32); |
| 2010 | } |
| 2011 | if (HasOptionalUint64) { |
| 2012 | output.WriteUInt64(4, OptionalUint64); |
| 2013 | } |
| 2014 | if (HasOptionalSint32) { |
| 2015 | output.WriteSInt32(5, OptionalSint32); |
| 2016 | } |
| 2017 | if (HasOptionalSint64) { |
| 2018 | output.WriteSInt64(6, OptionalSint64); |
| 2019 | } |
| 2020 | if (HasOptionalFixed32) { |
| 2021 | output.WriteFixed32(7, OptionalFixed32); |
| 2022 | } |
| 2023 | if (HasOptionalFixed64) { |
| 2024 | output.WriteFixed64(8, OptionalFixed64); |
| 2025 | } |
| 2026 | if (HasOptionalSfixed32) { |
| 2027 | output.WriteSFixed32(9, OptionalSfixed32); |
| 2028 | } |
| 2029 | if (HasOptionalSfixed64) { |
| 2030 | output.WriteSFixed64(10, OptionalSfixed64); |
| 2031 | } |
| 2032 | if (HasOptionalFloat) { |
| 2033 | output.WriteFloat(11, OptionalFloat); |
| 2034 | } |
| 2035 | if (HasOptionalDouble) { |
| 2036 | output.WriteDouble(12, OptionalDouble); |
| 2037 | } |
| 2038 | if (HasOptionalBool) { |
| 2039 | output.WriteBool(13, OptionalBool); |
| 2040 | } |
| 2041 | if (HasOptionalString) { |
| 2042 | output.WriteString(14, OptionalString); |
| 2043 | } |
| 2044 | if (HasOptionalBytes) { |
| 2045 | output.WriteBytes(15, OptionalBytes); |
| 2046 | } |
| 2047 | if (HasOptionalGroup) { |
| 2048 | output.WriteGroup(16, OptionalGroup); |
| 2049 | } |
| 2050 | if (HasOptionalNestedMessage) { |
| 2051 | output.WriteMessage(18, OptionalNestedMessage); |
| 2052 | } |
| 2053 | if (HasOptionalForeignMessage) { |
| 2054 | output.WriteMessage(19, OptionalForeignMessage); |
| 2055 | } |
| 2056 | if (HasOptionalImportMessage) { |
| 2057 | output.WriteMessage(20, OptionalImportMessage); |
| 2058 | } |
| 2059 | if (HasOptionalNestedEnum) { |
| 2060 | output.WriteEnum(21, (int) OptionalNestedEnum); |
| 2061 | } |
| 2062 | if (HasOptionalForeignEnum) { |
| 2063 | output.WriteEnum(22, (int) OptionalForeignEnum); |
| 2064 | } |
| 2065 | if (HasOptionalImportEnum) { |
| 2066 | output.WriteEnum(23, (int) OptionalImportEnum); |
| 2067 | } |
| 2068 | if (HasOptionalStringPiece) { |
| 2069 | output.WriteString(24, OptionalStringPiece); |
| 2070 | } |
| 2071 | if (HasOptionalCord) { |
| 2072 | output.WriteString(25, OptionalCord); |
| 2073 | } |
Jon Skeet | 25a2858 | 2009-02-18 16:06:22 +0000 | [diff] [blame^] | 2074 | if (repeatedInt32_.Count > 0) { |
| 2075 | foreach (int element in repeatedInt32_) { |
| 2076 | output.WriteInt32(31, element); |
| 2077 | } |
Jon Skeet | 6803686 | 2008-10-22 13:30:34 +0100 | [diff] [blame] | 2078 | } |
Jon Skeet | 25a2858 | 2009-02-18 16:06:22 +0000 | [diff] [blame^] | 2079 | if (repeatedInt64_.Count > 0) { |
| 2080 | foreach (long element in repeatedInt64_) { |
| 2081 | output.WriteInt64(32, element); |
| 2082 | } |
Jon Skeet | 6803686 | 2008-10-22 13:30:34 +0100 | [diff] [blame] | 2083 | } |
Jon Skeet | 25a2858 | 2009-02-18 16:06:22 +0000 | [diff] [blame^] | 2084 | if (repeatedUint32_.Count > 0) { |
| 2085 | foreach (uint element in repeatedUint32_) { |
| 2086 | output.WriteUInt32(33, element); |
| 2087 | } |
Jon Skeet | 6803686 | 2008-10-22 13:30:34 +0100 | [diff] [blame] | 2088 | } |
Jon Skeet | 25a2858 | 2009-02-18 16:06:22 +0000 | [diff] [blame^] | 2089 | if (repeatedUint64_.Count > 0) { |
| 2090 | foreach (ulong element in repeatedUint64_) { |
| 2091 | output.WriteUInt64(34, element); |
| 2092 | } |
Jon Skeet | 6803686 | 2008-10-22 13:30:34 +0100 | [diff] [blame] | 2093 | } |
Jon Skeet | 25a2858 | 2009-02-18 16:06:22 +0000 | [diff] [blame^] | 2094 | if (repeatedSint32_.Count > 0) { |
| 2095 | foreach (int element in repeatedSint32_) { |
| 2096 | output.WriteSInt32(35, element); |
| 2097 | } |
Jon Skeet | 6803686 | 2008-10-22 13:30:34 +0100 | [diff] [blame] | 2098 | } |
Jon Skeet | 25a2858 | 2009-02-18 16:06:22 +0000 | [diff] [blame^] | 2099 | if (repeatedSint64_.Count > 0) { |
| 2100 | foreach (long element in repeatedSint64_) { |
| 2101 | output.WriteSInt64(36, element); |
| 2102 | } |
Jon Skeet | 6803686 | 2008-10-22 13:30:34 +0100 | [diff] [blame] | 2103 | } |
Jon Skeet | 25a2858 | 2009-02-18 16:06:22 +0000 | [diff] [blame^] | 2104 | if (repeatedFixed32_.Count > 0) { |
| 2105 | foreach (uint element in repeatedFixed32_) { |
| 2106 | output.WriteFixed32(37, element); |
| 2107 | } |
Jon Skeet | 6803686 | 2008-10-22 13:30:34 +0100 | [diff] [blame] | 2108 | } |
Jon Skeet | 25a2858 | 2009-02-18 16:06:22 +0000 | [diff] [blame^] | 2109 | if (repeatedFixed64_.Count > 0) { |
| 2110 | foreach (ulong element in repeatedFixed64_) { |
| 2111 | output.WriteFixed64(38, element); |
| 2112 | } |
Jon Skeet | 6803686 | 2008-10-22 13:30:34 +0100 | [diff] [blame] | 2113 | } |
Jon Skeet | 25a2858 | 2009-02-18 16:06:22 +0000 | [diff] [blame^] | 2114 | if (repeatedSfixed32_.Count > 0) { |
| 2115 | foreach (int element in repeatedSfixed32_) { |
| 2116 | output.WriteSFixed32(39, element); |
| 2117 | } |
Jon Skeet | 6803686 | 2008-10-22 13:30:34 +0100 | [diff] [blame] | 2118 | } |
Jon Skeet | 25a2858 | 2009-02-18 16:06:22 +0000 | [diff] [blame^] | 2119 | if (repeatedSfixed64_.Count > 0) { |
| 2120 | foreach (long element in repeatedSfixed64_) { |
| 2121 | output.WriteSFixed64(40, element); |
| 2122 | } |
Jon Skeet | 6803686 | 2008-10-22 13:30:34 +0100 | [diff] [blame] | 2123 | } |
Jon Skeet | 25a2858 | 2009-02-18 16:06:22 +0000 | [diff] [blame^] | 2124 | if (repeatedFloat_.Count > 0) { |
| 2125 | foreach (float element in repeatedFloat_) { |
| 2126 | output.WriteFloat(41, element); |
| 2127 | } |
Jon Skeet | 6803686 | 2008-10-22 13:30:34 +0100 | [diff] [blame] | 2128 | } |
Jon Skeet | 25a2858 | 2009-02-18 16:06:22 +0000 | [diff] [blame^] | 2129 | if (repeatedDouble_.Count > 0) { |
| 2130 | foreach (double element in repeatedDouble_) { |
| 2131 | output.WriteDouble(42, element); |
| 2132 | } |
Jon Skeet | 6803686 | 2008-10-22 13:30:34 +0100 | [diff] [blame] | 2133 | } |
Jon Skeet | 25a2858 | 2009-02-18 16:06:22 +0000 | [diff] [blame^] | 2134 | if (repeatedBool_.Count > 0) { |
| 2135 | foreach (bool element in repeatedBool_) { |
| 2136 | output.WriteBool(43, element); |
| 2137 | } |
Jon Skeet | 6803686 | 2008-10-22 13:30:34 +0100 | [diff] [blame] | 2138 | } |
Jon Skeet | 25a2858 | 2009-02-18 16:06:22 +0000 | [diff] [blame^] | 2139 | if (repeatedString_.Count > 0) { |
| 2140 | foreach (string element in repeatedString_) { |
| 2141 | output.WriteString(44, element); |
| 2142 | } |
Jon Skeet | 6803686 | 2008-10-22 13:30:34 +0100 | [diff] [blame] | 2143 | } |
Jon Skeet | 25a2858 | 2009-02-18 16:06:22 +0000 | [diff] [blame^] | 2144 | if (repeatedBytes_.Count > 0) { |
| 2145 | foreach (pb::ByteString element in repeatedBytes_) { |
| 2146 | output.WriteBytes(45, element); |
| 2147 | } |
Jon Skeet | 6803686 | 2008-10-22 13:30:34 +0100 | [diff] [blame] | 2148 | } |
| 2149 | foreach (global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.RepeatedGroup element in RepeatedGroupList) { |
| 2150 | output.WriteGroup(46, element); |
| 2151 | } |
| 2152 | foreach (global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedMessage element in RepeatedNestedMessageList) { |
| 2153 | output.WriteMessage(48, element); |
| 2154 | } |
| 2155 | foreach (global::Google.ProtocolBuffers.TestProtos.ForeignMessage element in RepeatedForeignMessageList) { |
| 2156 | output.WriteMessage(49, element); |
| 2157 | } |
| 2158 | foreach (global::Google.ProtocolBuffers.TestProtos.ImportMessage element in RepeatedImportMessageList) { |
| 2159 | output.WriteMessage(50, element); |
| 2160 | } |
Jon Skeet | 25a2858 | 2009-02-18 16:06:22 +0000 | [diff] [blame^] | 2161 | if (repeatedNestedEnum_.Count > 0) { |
| 2162 | foreach (int element in repeatedNestedEnum_) { |
| 2163 | output.WriteEnum(51, element); |
| 2164 | } |
Jon Skeet | 6803686 | 2008-10-22 13:30:34 +0100 | [diff] [blame] | 2165 | } |
Jon Skeet | 25a2858 | 2009-02-18 16:06:22 +0000 | [diff] [blame^] | 2166 | if (repeatedForeignEnum_.Count > 0) { |
| 2167 | foreach (int element in repeatedForeignEnum_) { |
| 2168 | output.WriteEnum(52, element); |
| 2169 | } |
Jon Skeet | 6803686 | 2008-10-22 13:30:34 +0100 | [diff] [blame] | 2170 | } |
Jon Skeet | 25a2858 | 2009-02-18 16:06:22 +0000 | [diff] [blame^] | 2171 | if (repeatedImportEnum_.Count > 0) { |
| 2172 | foreach (int element in repeatedImportEnum_) { |
| 2173 | output.WriteEnum(53, element); |
| 2174 | } |
Jon Skeet | 6803686 | 2008-10-22 13:30:34 +0100 | [diff] [blame] | 2175 | } |
Jon Skeet | 25a2858 | 2009-02-18 16:06:22 +0000 | [diff] [blame^] | 2176 | if (repeatedStringPiece_.Count > 0) { |
| 2177 | foreach (string element in repeatedStringPiece_) { |
| 2178 | output.WriteString(54, element); |
| 2179 | } |
Jon Skeet | 6803686 | 2008-10-22 13:30:34 +0100 | [diff] [blame] | 2180 | } |
Jon Skeet | 25a2858 | 2009-02-18 16:06:22 +0000 | [diff] [blame^] | 2181 | if (repeatedCord_.Count > 0) { |
| 2182 | foreach (string element in repeatedCord_) { |
| 2183 | output.WriteString(55, element); |
| 2184 | } |
Jon Skeet | 6803686 | 2008-10-22 13:30:34 +0100 | [diff] [blame] | 2185 | } |
| 2186 | if (HasDefaultInt32) { |
| 2187 | output.WriteInt32(61, DefaultInt32); |
| 2188 | } |
| 2189 | if (HasDefaultInt64) { |
| 2190 | output.WriteInt64(62, DefaultInt64); |
| 2191 | } |
| 2192 | if (HasDefaultUint32) { |
| 2193 | output.WriteUInt32(63, DefaultUint32); |
| 2194 | } |
| 2195 | if (HasDefaultUint64) { |
| 2196 | output.WriteUInt64(64, DefaultUint64); |
| 2197 | } |
| 2198 | if (HasDefaultSint32) { |
| 2199 | output.WriteSInt32(65, DefaultSint32); |
| 2200 | } |
| 2201 | if (HasDefaultSint64) { |
| 2202 | output.WriteSInt64(66, DefaultSint64); |
| 2203 | } |
| 2204 | if (HasDefaultFixed32) { |
| 2205 | output.WriteFixed32(67, DefaultFixed32); |
| 2206 | } |
| 2207 | if (HasDefaultFixed64) { |
| 2208 | output.WriteFixed64(68, DefaultFixed64); |
| 2209 | } |
| 2210 | if (HasDefaultSfixed32) { |
| 2211 | output.WriteSFixed32(69, DefaultSfixed32); |
| 2212 | } |
| 2213 | if (HasDefaultSfixed64) { |
| 2214 | output.WriteSFixed64(70, DefaultSfixed64); |
| 2215 | } |
| 2216 | if (HasDefaultFloat) { |
| 2217 | output.WriteFloat(71, DefaultFloat); |
| 2218 | } |
| 2219 | if (HasDefaultDouble) { |
| 2220 | output.WriteDouble(72, DefaultDouble); |
| 2221 | } |
| 2222 | if (HasDefaultBool) { |
| 2223 | output.WriteBool(73, DefaultBool); |
| 2224 | } |
| 2225 | if (HasDefaultString) { |
| 2226 | output.WriteString(74, DefaultString); |
| 2227 | } |
| 2228 | if (HasDefaultBytes) { |
| 2229 | output.WriteBytes(75, DefaultBytes); |
| 2230 | } |
| 2231 | if (HasDefaultNestedEnum) { |
| 2232 | output.WriteEnum(81, (int) DefaultNestedEnum); |
| 2233 | } |
| 2234 | if (HasDefaultForeignEnum) { |
| 2235 | output.WriteEnum(82, (int) DefaultForeignEnum); |
| 2236 | } |
| 2237 | if (HasDefaultImportEnum) { |
| 2238 | output.WriteEnum(83, (int) DefaultImportEnum); |
| 2239 | } |
| 2240 | if (HasDefaultStringPiece) { |
| 2241 | output.WriteString(84, DefaultStringPiece); |
| 2242 | } |
| 2243 | if (HasDefaultCord) { |
| 2244 | output.WriteString(85, DefaultCord); |
| 2245 | } |
| 2246 | UnknownFields.WriteTo(output); |
| 2247 | } |
| 2248 | |
| 2249 | private int memoizedSerializedSize = -1; |
| 2250 | public override int SerializedSize { |
| 2251 | get { |
| 2252 | int size = memoizedSerializedSize; |
| 2253 | if (size != -1) return size; |
| 2254 | |
| 2255 | size = 0; |
| 2256 | if (HasOptionalInt32) { |
| 2257 | size += pb::CodedOutputStream.ComputeInt32Size(1, OptionalInt32); |
| 2258 | } |
| 2259 | if (HasOptionalInt64) { |
| 2260 | size += pb::CodedOutputStream.ComputeInt64Size(2, OptionalInt64); |
| 2261 | } |
| 2262 | if (HasOptionalUint32) { |
| 2263 | size += pb::CodedOutputStream.ComputeUInt32Size(3, OptionalUint32); |
| 2264 | } |
| 2265 | if (HasOptionalUint64) { |
| 2266 | size += pb::CodedOutputStream.ComputeUInt64Size(4, OptionalUint64); |
| 2267 | } |
| 2268 | if (HasOptionalSint32) { |
| 2269 | size += pb::CodedOutputStream.ComputeSInt32Size(5, OptionalSint32); |
| 2270 | } |
| 2271 | if (HasOptionalSint64) { |
| 2272 | size += pb::CodedOutputStream.ComputeSInt64Size(6, OptionalSint64); |
| 2273 | } |
| 2274 | if (HasOptionalFixed32) { |
| 2275 | size += pb::CodedOutputStream.ComputeFixed32Size(7, OptionalFixed32); |
| 2276 | } |
| 2277 | if (HasOptionalFixed64) { |
| 2278 | size += pb::CodedOutputStream.ComputeFixed64Size(8, OptionalFixed64); |
| 2279 | } |
| 2280 | if (HasOptionalSfixed32) { |
| 2281 | size += pb::CodedOutputStream.ComputeSFixed32Size(9, OptionalSfixed32); |
| 2282 | } |
| 2283 | if (HasOptionalSfixed64) { |
| 2284 | size += pb::CodedOutputStream.ComputeSFixed64Size(10, OptionalSfixed64); |
| 2285 | } |
| 2286 | if (HasOptionalFloat) { |
| 2287 | size += pb::CodedOutputStream.ComputeFloatSize(11, OptionalFloat); |
| 2288 | } |
| 2289 | if (HasOptionalDouble) { |
| 2290 | size += pb::CodedOutputStream.ComputeDoubleSize(12, OptionalDouble); |
| 2291 | } |
| 2292 | if (HasOptionalBool) { |
| 2293 | size += pb::CodedOutputStream.ComputeBoolSize(13, OptionalBool); |
| 2294 | } |
| 2295 | if (HasOptionalString) { |
| 2296 | size += pb::CodedOutputStream.ComputeStringSize(14, OptionalString); |
| 2297 | } |
| 2298 | if (HasOptionalBytes) { |
| 2299 | size += pb::CodedOutputStream.ComputeBytesSize(15, OptionalBytes); |
| 2300 | } |
| 2301 | if (HasOptionalGroup) { |
| 2302 | size += pb::CodedOutputStream.ComputeGroupSize(16, OptionalGroup); |
| 2303 | } |
| 2304 | if (HasOptionalNestedMessage) { |
| 2305 | size += pb::CodedOutputStream.ComputeMessageSize(18, OptionalNestedMessage); |
| 2306 | } |
| 2307 | if (HasOptionalForeignMessage) { |
| 2308 | size += pb::CodedOutputStream.ComputeMessageSize(19, OptionalForeignMessage); |
| 2309 | } |
| 2310 | if (HasOptionalImportMessage) { |
| 2311 | size += pb::CodedOutputStream.ComputeMessageSize(20, OptionalImportMessage); |
| 2312 | } |
| 2313 | if (HasOptionalNestedEnum) { |
| 2314 | size += pb::CodedOutputStream.ComputeEnumSize(21, (int) OptionalNestedEnum); |
| 2315 | } |
| 2316 | if (HasOptionalForeignEnum) { |
| 2317 | size += pb::CodedOutputStream.ComputeEnumSize(22, (int) OptionalForeignEnum); |
| 2318 | } |
| 2319 | if (HasOptionalImportEnum) { |
| 2320 | size += pb::CodedOutputStream.ComputeEnumSize(23, (int) OptionalImportEnum); |
| 2321 | } |
| 2322 | if (HasOptionalStringPiece) { |
| 2323 | size += pb::CodedOutputStream.ComputeStringSize(24, OptionalStringPiece); |
| 2324 | } |
| 2325 | if (HasOptionalCord) { |
| 2326 | size += pb::CodedOutputStream.ComputeStringSize(25, OptionalCord); |
| 2327 | } |
Jon Skeet | 25a2858 | 2009-02-18 16:06:22 +0000 | [diff] [blame^] | 2328 | { |
| 2329 | int dataSize = 0; |
| 2330 | foreach (int element in RepeatedInt32List) { |
| 2331 | dataSize += pb::CodedOutputStream.ComputeInt32SizeNoTag(element); |
| 2332 | } |
| 2333 | size += dataSize; |
| 2334 | size += 2 * repeatedInt32_.Count; |
Jon Skeet | 6803686 | 2008-10-22 13:30:34 +0100 | [diff] [blame] | 2335 | } |
Jon Skeet | 25a2858 | 2009-02-18 16:06:22 +0000 | [diff] [blame^] | 2336 | { |
| 2337 | int dataSize = 0; |
| 2338 | foreach (long element in RepeatedInt64List) { |
| 2339 | dataSize += pb::CodedOutputStream.ComputeInt64SizeNoTag(element); |
| 2340 | } |
| 2341 | size += dataSize; |
| 2342 | size += 2 * repeatedInt64_.Count; |
Jon Skeet | 6803686 | 2008-10-22 13:30:34 +0100 | [diff] [blame] | 2343 | } |
Jon Skeet | 25a2858 | 2009-02-18 16:06:22 +0000 | [diff] [blame^] | 2344 | { |
| 2345 | int dataSize = 0; |
| 2346 | foreach (uint element in RepeatedUint32List) { |
| 2347 | dataSize += pb::CodedOutputStream.ComputeUInt32SizeNoTag(element); |
| 2348 | } |
| 2349 | size += dataSize; |
| 2350 | size += 2 * repeatedUint32_.Count; |
Jon Skeet | 6803686 | 2008-10-22 13:30:34 +0100 | [diff] [blame] | 2351 | } |
Jon Skeet | 25a2858 | 2009-02-18 16:06:22 +0000 | [diff] [blame^] | 2352 | { |
| 2353 | int dataSize = 0; |
| 2354 | foreach (ulong element in RepeatedUint64List) { |
| 2355 | dataSize += pb::CodedOutputStream.ComputeUInt64SizeNoTag(element); |
| 2356 | } |
| 2357 | size += dataSize; |
| 2358 | size += 2 * repeatedUint64_.Count; |
Jon Skeet | 6803686 | 2008-10-22 13:30:34 +0100 | [diff] [blame] | 2359 | } |
Jon Skeet | 25a2858 | 2009-02-18 16:06:22 +0000 | [diff] [blame^] | 2360 | { |
| 2361 | int dataSize = 0; |
| 2362 | foreach (int element in RepeatedSint32List) { |
| 2363 | dataSize += pb::CodedOutputStream.ComputeSInt32SizeNoTag(element); |
| 2364 | } |
| 2365 | size += dataSize; |
| 2366 | size += 2 * repeatedSint32_.Count; |
Jon Skeet | 6803686 | 2008-10-22 13:30:34 +0100 | [diff] [blame] | 2367 | } |
Jon Skeet | 25a2858 | 2009-02-18 16:06:22 +0000 | [diff] [blame^] | 2368 | { |
| 2369 | int dataSize = 0; |
| 2370 | foreach (long element in RepeatedSint64List) { |
| 2371 | dataSize += pb::CodedOutputStream.ComputeSInt64SizeNoTag(element); |
| 2372 | } |
| 2373 | size += dataSize; |
| 2374 | size += 2 * repeatedSint64_.Count; |
Jon Skeet | 6803686 | 2008-10-22 13:30:34 +0100 | [diff] [blame] | 2375 | } |
Jon Skeet | 25a2858 | 2009-02-18 16:06:22 +0000 | [diff] [blame^] | 2376 | { |
| 2377 | int dataSize = 0; |
| 2378 | dataSize = 4 * repeatedFixed32_.Count; |
| 2379 | size += dataSize; |
| 2380 | size += 2 * repeatedFixed32_.Count; |
Jon Skeet | 6803686 | 2008-10-22 13:30:34 +0100 | [diff] [blame] | 2381 | } |
Jon Skeet | 25a2858 | 2009-02-18 16:06:22 +0000 | [diff] [blame^] | 2382 | { |
| 2383 | int dataSize = 0; |
| 2384 | dataSize = 8 * repeatedFixed64_.Count; |
| 2385 | size += dataSize; |
| 2386 | size += 2 * repeatedFixed64_.Count; |
Jon Skeet | 6803686 | 2008-10-22 13:30:34 +0100 | [diff] [blame] | 2387 | } |
Jon Skeet | 25a2858 | 2009-02-18 16:06:22 +0000 | [diff] [blame^] | 2388 | { |
| 2389 | int dataSize = 0; |
| 2390 | dataSize = 4 * repeatedSfixed32_.Count; |
| 2391 | size += dataSize; |
| 2392 | size += 2 * repeatedSfixed32_.Count; |
Jon Skeet | 6803686 | 2008-10-22 13:30:34 +0100 | [diff] [blame] | 2393 | } |
Jon Skeet | 25a2858 | 2009-02-18 16:06:22 +0000 | [diff] [blame^] | 2394 | { |
| 2395 | int dataSize = 0; |
| 2396 | dataSize = 8 * repeatedSfixed64_.Count; |
| 2397 | size += dataSize; |
| 2398 | size += 2 * repeatedSfixed64_.Count; |
Jon Skeet | 6803686 | 2008-10-22 13:30:34 +0100 | [diff] [blame] | 2399 | } |
Jon Skeet | 25a2858 | 2009-02-18 16:06:22 +0000 | [diff] [blame^] | 2400 | { |
| 2401 | int dataSize = 0; |
| 2402 | dataSize = 4 * repeatedFloat_.Count; |
| 2403 | size += dataSize; |
| 2404 | size += 2 * repeatedFloat_.Count; |
Jon Skeet | 6803686 | 2008-10-22 13:30:34 +0100 | [diff] [blame] | 2405 | } |
Jon Skeet | 25a2858 | 2009-02-18 16:06:22 +0000 | [diff] [blame^] | 2406 | { |
| 2407 | int dataSize = 0; |
| 2408 | dataSize = 8 * repeatedDouble_.Count; |
| 2409 | size += dataSize; |
| 2410 | size += 2 * repeatedDouble_.Count; |
Jon Skeet | 6803686 | 2008-10-22 13:30:34 +0100 | [diff] [blame] | 2411 | } |
Jon Skeet | 25a2858 | 2009-02-18 16:06:22 +0000 | [diff] [blame^] | 2412 | { |
| 2413 | int dataSize = 0; |
| 2414 | dataSize = 1 * repeatedBool_.Count; |
| 2415 | size += dataSize; |
| 2416 | size += 2 * repeatedBool_.Count; |
Jon Skeet | 6803686 | 2008-10-22 13:30:34 +0100 | [diff] [blame] | 2417 | } |
Jon Skeet | 25a2858 | 2009-02-18 16:06:22 +0000 | [diff] [blame^] | 2418 | { |
| 2419 | int dataSize = 0; |
| 2420 | foreach (string element in RepeatedStringList) { |
| 2421 | dataSize += pb::CodedOutputStream.ComputeStringSizeNoTag(element); |
| 2422 | } |
| 2423 | size += dataSize; |
| 2424 | size += 2 * repeatedString_.Count; |
Jon Skeet | 6803686 | 2008-10-22 13:30:34 +0100 | [diff] [blame] | 2425 | } |
Jon Skeet | 25a2858 | 2009-02-18 16:06:22 +0000 | [diff] [blame^] | 2426 | { |
| 2427 | int dataSize = 0; |
| 2428 | foreach (pb::ByteString element in RepeatedBytesList) { |
| 2429 | dataSize += pb::CodedOutputStream.ComputeBytesSizeNoTag(element); |
| 2430 | } |
| 2431 | size += dataSize; |
| 2432 | size += 2 * repeatedBytes_.Count; |
Jon Skeet | 6803686 | 2008-10-22 13:30:34 +0100 | [diff] [blame] | 2433 | } |
| 2434 | foreach (global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.RepeatedGroup element in RepeatedGroupList) { |
| 2435 | size += pb::CodedOutputStream.ComputeGroupSize(46, element); |
| 2436 | } |
| 2437 | foreach (global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedMessage element in RepeatedNestedMessageList) { |
| 2438 | size += pb::CodedOutputStream.ComputeMessageSize(48, element); |
| 2439 | } |
| 2440 | foreach (global::Google.ProtocolBuffers.TestProtos.ForeignMessage element in RepeatedForeignMessageList) { |
| 2441 | size += pb::CodedOutputStream.ComputeMessageSize(49, element); |
| 2442 | } |
| 2443 | foreach (global::Google.ProtocolBuffers.TestProtos.ImportMessage element in RepeatedImportMessageList) { |
| 2444 | size += pb::CodedOutputStream.ComputeMessageSize(50, element); |
| 2445 | } |
Jon Skeet | 25a2858 | 2009-02-18 16:06:22 +0000 | [diff] [blame^] | 2446 | { |
| 2447 | int dataSize = 0; |
| 2448 | if (repeatedNestedEnum_.Count > 0) { |
| 2449 | foreach (global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedEnum element in repeatedNestedEnum_) { |
| 2450 | dataSize += pb::CodedOutputStream.ComputeEnumSizeNoTag((int) element); |
| 2451 | } |
| 2452 | size += dataSize; |
| 2453 | size += 2 * repeatedNestedEnum_.Count; |
| 2454 | } |
Jon Skeet | 6803686 | 2008-10-22 13:30:34 +0100 | [diff] [blame] | 2455 | } |
Jon Skeet | 25a2858 | 2009-02-18 16:06:22 +0000 | [diff] [blame^] | 2456 | { |
| 2457 | int dataSize = 0; |
| 2458 | if (repeatedForeignEnum_.Count > 0) { |
| 2459 | foreach (global::Google.ProtocolBuffers.TestProtos.ForeignEnum element in repeatedForeignEnum_) { |
| 2460 | dataSize += pb::CodedOutputStream.ComputeEnumSizeNoTag((int) element); |
| 2461 | } |
| 2462 | size += dataSize; |
| 2463 | size += 2 * repeatedForeignEnum_.Count; |
| 2464 | } |
Jon Skeet | 6803686 | 2008-10-22 13:30:34 +0100 | [diff] [blame] | 2465 | } |
Jon Skeet | 25a2858 | 2009-02-18 16:06:22 +0000 | [diff] [blame^] | 2466 | { |
| 2467 | int dataSize = 0; |
| 2468 | if (repeatedImportEnum_.Count > 0) { |
| 2469 | foreach (global::Google.ProtocolBuffers.TestProtos.ImportEnum element in repeatedImportEnum_) { |
| 2470 | dataSize += pb::CodedOutputStream.ComputeEnumSizeNoTag((int) element); |
| 2471 | } |
| 2472 | size += dataSize; |
| 2473 | size += 2 * repeatedImportEnum_.Count; |
| 2474 | } |
Jon Skeet | 6803686 | 2008-10-22 13:30:34 +0100 | [diff] [blame] | 2475 | } |
Jon Skeet | 25a2858 | 2009-02-18 16:06:22 +0000 | [diff] [blame^] | 2476 | { |
| 2477 | int dataSize = 0; |
| 2478 | foreach (string element in RepeatedStringPieceList) { |
| 2479 | dataSize += pb::CodedOutputStream.ComputeStringSizeNoTag(element); |
| 2480 | } |
| 2481 | size += dataSize; |
| 2482 | size += 2 * repeatedStringPiece_.Count; |
Jon Skeet | 6803686 | 2008-10-22 13:30:34 +0100 | [diff] [blame] | 2483 | } |
Jon Skeet | 25a2858 | 2009-02-18 16:06:22 +0000 | [diff] [blame^] | 2484 | { |
| 2485 | int dataSize = 0; |
| 2486 | foreach (string element in RepeatedCordList) { |
| 2487 | dataSize += pb::CodedOutputStream.ComputeStringSizeNoTag(element); |
| 2488 | } |
| 2489 | size += dataSize; |
| 2490 | size += 2 * repeatedCord_.Count; |
Jon Skeet | 6803686 | 2008-10-22 13:30:34 +0100 | [diff] [blame] | 2491 | } |
| 2492 | if (HasDefaultInt32) { |
| 2493 | size += pb::CodedOutputStream.ComputeInt32Size(61, DefaultInt32); |
| 2494 | } |
| 2495 | if (HasDefaultInt64) { |
| 2496 | size += pb::CodedOutputStream.ComputeInt64Size(62, DefaultInt64); |
| 2497 | } |
| 2498 | if (HasDefaultUint32) { |
| 2499 | size += pb::CodedOutputStream.ComputeUInt32Size(63, DefaultUint32); |
| 2500 | } |
| 2501 | if (HasDefaultUint64) { |
| 2502 | size += pb::CodedOutputStream.ComputeUInt64Size(64, DefaultUint64); |
| 2503 | } |
| 2504 | if (HasDefaultSint32) { |
| 2505 | size += pb::CodedOutputStream.ComputeSInt32Size(65, DefaultSint32); |
| 2506 | } |
| 2507 | if (HasDefaultSint64) { |
| 2508 | size += pb::CodedOutputStream.ComputeSInt64Size(66, DefaultSint64); |
| 2509 | } |
| 2510 | if (HasDefaultFixed32) { |
| 2511 | size += pb::CodedOutputStream.ComputeFixed32Size(67, DefaultFixed32); |
| 2512 | } |
| 2513 | if (HasDefaultFixed64) { |
| 2514 | size += pb::CodedOutputStream.ComputeFixed64Size(68, DefaultFixed64); |
| 2515 | } |
| 2516 | if (HasDefaultSfixed32) { |
| 2517 | size += pb::CodedOutputStream.ComputeSFixed32Size(69, DefaultSfixed32); |
| 2518 | } |
| 2519 | if (HasDefaultSfixed64) { |
| 2520 | size += pb::CodedOutputStream.ComputeSFixed64Size(70, DefaultSfixed64); |
| 2521 | } |
| 2522 | if (HasDefaultFloat) { |
| 2523 | size += pb::CodedOutputStream.ComputeFloatSize(71, DefaultFloat); |
| 2524 | } |
| 2525 | if (HasDefaultDouble) { |
| 2526 | size += pb::CodedOutputStream.ComputeDoubleSize(72, DefaultDouble); |
| 2527 | } |
| 2528 | if (HasDefaultBool) { |
| 2529 | size += pb::CodedOutputStream.ComputeBoolSize(73, DefaultBool); |
| 2530 | } |
| 2531 | if (HasDefaultString) { |
| 2532 | size += pb::CodedOutputStream.ComputeStringSize(74, DefaultString); |
| 2533 | } |
| 2534 | if (HasDefaultBytes) { |
| 2535 | size += pb::CodedOutputStream.ComputeBytesSize(75, DefaultBytes); |
| 2536 | } |
| 2537 | if (HasDefaultNestedEnum) { |
| 2538 | size += pb::CodedOutputStream.ComputeEnumSize(81, (int) DefaultNestedEnum); |
| 2539 | } |
| 2540 | if (HasDefaultForeignEnum) { |
| 2541 | size += pb::CodedOutputStream.ComputeEnumSize(82, (int) DefaultForeignEnum); |
| 2542 | } |
| 2543 | if (HasDefaultImportEnum) { |
| 2544 | size += pb::CodedOutputStream.ComputeEnumSize(83, (int) DefaultImportEnum); |
| 2545 | } |
| 2546 | if (HasDefaultStringPiece) { |
| 2547 | size += pb::CodedOutputStream.ComputeStringSize(84, DefaultStringPiece); |
| 2548 | } |
| 2549 | if (HasDefaultCord) { |
| 2550 | size += pb::CodedOutputStream.ComputeStringSize(85, DefaultCord); |
| 2551 | } |
| 2552 | size += UnknownFields.SerializedSize; |
| 2553 | memoizedSerializedSize = size; |
| 2554 | return size; |
| 2555 | } |
| 2556 | } |
| 2557 | |
| 2558 | public static TestAllTypes ParseFrom(pb::ByteString data) { |
| 2559 | return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed(); |
| 2560 | } |
| 2561 | public static TestAllTypes ParseFrom(pb::ByteString data, pb::ExtensionRegistry extensionRegistry) { |
| 2562 | return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed(); |
| 2563 | } |
| 2564 | public static TestAllTypes ParseFrom(byte[] data) { |
| 2565 | return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed(); |
| 2566 | } |
| 2567 | public static TestAllTypes ParseFrom(byte[] data, pb::ExtensionRegistry extensionRegistry) { |
| 2568 | return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed(); |
| 2569 | } |
| 2570 | public static TestAllTypes ParseFrom(global::System.IO.Stream input) { |
| 2571 | return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed(); |
| 2572 | } |
| 2573 | public static TestAllTypes ParseFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) { |
| 2574 | return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed(); |
| 2575 | } |
| 2576 | public static TestAllTypes ParseFrom(pb::CodedInputStream input) { |
| 2577 | return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed(); |
| 2578 | } |
| 2579 | public static TestAllTypes ParseFrom(pb::CodedInputStream input, pb::ExtensionRegistry extensionRegistry) { |
| 2580 | return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed(); |
| 2581 | } |
| 2582 | public static Builder CreateBuilder() { return new Builder(); } |
| 2583 | public override Builder CreateBuilderForType() { return new Builder(); } |
| 2584 | public static Builder CreateBuilder(TestAllTypes prototype) { |
| 2585 | return (Builder) new Builder().MergeFrom(prototype); |
| 2586 | } |
| 2587 | |
| 2588 | public sealed partial class Builder : pb::GeneratedBuilder<TestAllTypes, Builder> { |
| 2589 | protected override Builder ThisBuilder { |
| 2590 | get { return this; } |
| 2591 | } |
| 2592 | public Builder() {} |
| 2593 | |
| 2594 | TestAllTypes result = new TestAllTypes(); |
| 2595 | |
| 2596 | protected override TestAllTypes MessageBeingBuilt { |
| 2597 | get { return result; } |
| 2598 | } |
| 2599 | |
| 2600 | public override Builder Clear() { |
| 2601 | result = new TestAllTypes(); |
| 2602 | return this; |
| 2603 | } |
| 2604 | |
| 2605 | public override Builder Clone() { |
| 2606 | return new Builder().MergeFrom(result); |
| 2607 | } |
| 2608 | |
| 2609 | public override pbd::MessageDescriptor DescriptorForType { |
| 2610 | get { return TestAllTypes.Descriptor; } |
| 2611 | } |
| 2612 | |
| 2613 | public override TestAllTypes DefaultInstanceForType { |
| 2614 | get { return TestAllTypes.DefaultInstance; } |
| 2615 | } |
| 2616 | |
| 2617 | public override TestAllTypes BuildPartial() { |
| 2618 | result.repeatedInt32_.MakeReadOnly(); |
| 2619 | result.repeatedInt64_.MakeReadOnly(); |
| 2620 | result.repeatedUint32_.MakeReadOnly(); |
| 2621 | result.repeatedUint64_.MakeReadOnly(); |
| 2622 | result.repeatedSint32_.MakeReadOnly(); |
| 2623 | result.repeatedSint64_.MakeReadOnly(); |
| 2624 | result.repeatedFixed32_.MakeReadOnly(); |
| 2625 | result.repeatedFixed64_.MakeReadOnly(); |
| 2626 | result.repeatedSfixed32_.MakeReadOnly(); |
| 2627 | result.repeatedSfixed64_.MakeReadOnly(); |
| 2628 | result.repeatedFloat_.MakeReadOnly(); |
| 2629 | result.repeatedDouble_.MakeReadOnly(); |
| 2630 | result.repeatedBool_.MakeReadOnly(); |
| 2631 | result.repeatedString_.MakeReadOnly(); |
| 2632 | result.repeatedBytes_.MakeReadOnly(); |
| 2633 | result.repeatedGroup_.MakeReadOnly(); |
| 2634 | result.repeatedNestedMessage_.MakeReadOnly(); |
| 2635 | result.repeatedForeignMessage_.MakeReadOnly(); |
| 2636 | result.repeatedImportMessage_.MakeReadOnly(); |
| 2637 | result.repeatedNestedEnum_.MakeReadOnly(); |
| 2638 | result.repeatedForeignEnum_.MakeReadOnly(); |
| 2639 | result.repeatedImportEnum_.MakeReadOnly(); |
| 2640 | result.repeatedStringPiece_.MakeReadOnly(); |
| 2641 | result.repeatedCord_.MakeReadOnly(); |
| 2642 | TestAllTypes returnMe = result; |
| 2643 | result = null; |
| 2644 | return returnMe; |
| 2645 | } |
| 2646 | |
| 2647 | public override Builder MergeFrom(pb::IMessage other) { |
| 2648 | if (other is TestAllTypes) { |
| 2649 | return MergeFrom((TestAllTypes) other); |
| 2650 | } else { |
| 2651 | base.MergeFrom(other); |
| 2652 | return this; |
| 2653 | } |
| 2654 | } |
| 2655 | |
| 2656 | public override Builder MergeFrom(TestAllTypes other) { |
| 2657 | if (other == TestAllTypes.DefaultInstance) return this; |
| 2658 | if (other.HasOptionalInt32) { |
| 2659 | OptionalInt32 = other.OptionalInt32; |
| 2660 | } |
| 2661 | if (other.HasOptionalInt64) { |
| 2662 | OptionalInt64 = other.OptionalInt64; |
| 2663 | } |
| 2664 | if (other.HasOptionalUint32) { |
| 2665 | OptionalUint32 = other.OptionalUint32; |
| 2666 | } |
| 2667 | if (other.HasOptionalUint64) { |
| 2668 | OptionalUint64 = other.OptionalUint64; |
| 2669 | } |
| 2670 | if (other.HasOptionalSint32) { |
| 2671 | OptionalSint32 = other.OptionalSint32; |
| 2672 | } |
| 2673 | if (other.HasOptionalSint64) { |
| 2674 | OptionalSint64 = other.OptionalSint64; |
| 2675 | } |
| 2676 | if (other.HasOptionalFixed32) { |
| 2677 | OptionalFixed32 = other.OptionalFixed32; |
| 2678 | } |
| 2679 | if (other.HasOptionalFixed64) { |
| 2680 | OptionalFixed64 = other.OptionalFixed64; |
| 2681 | } |
| 2682 | if (other.HasOptionalSfixed32) { |
| 2683 | OptionalSfixed32 = other.OptionalSfixed32; |
| 2684 | } |
| 2685 | if (other.HasOptionalSfixed64) { |
| 2686 | OptionalSfixed64 = other.OptionalSfixed64; |
| 2687 | } |
| 2688 | if (other.HasOptionalFloat) { |
| 2689 | OptionalFloat = other.OptionalFloat; |
| 2690 | } |
| 2691 | if (other.HasOptionalDouble) { |
| 2692 | OptionalDouble = other.OptionalDouble; |
| 2693 | } |
| 2694 | if (other.HasOptionalBool) { |
| 2695 | OptionalBool = other.OptionalBool; |
| 2696 | } |
| 2697 | if (other.HasOptionalString) { |
| 2698 | OptionalString = other.OptionalString; |
| 2699 | } |
| 2700 | if (other.HasOptionalBytes) { |
| 2701 | OptionalBytes = other.OptionalBytes; |
| 2702 | } |
| 2703 | if (other.HasOptionalGroup) { |
| 2704 | MergeOptionalGroup(other.OptionalGroup); |
| 2705 | } |
| 2706 | if (other.HasOptionalNestedMessage) { |
| 2707 | MergeOptionalNestedMessage(other.OptionalNestedMessage); |
| 2708 | } |
| 2709 | if (other.HasOptionalForeignMessage) { |
| 2710 | MergeOptionalForeignMessage(other.OptionalForeignMessage); |
| 2711 | } |
| 2712 | if (other.HasOptionalImportMessage) { |
| 2713 | MergeOptionalImportMessage(other.OptionalImportMessage); |
| 2714 | } |
| 2715 | if (other.HasOptionalNestedEnum) { |
| 2716 | OptionalNestedEnum = other.OptionalNestedEnum; |
| 2717 | } |
| 2718 | if (other.HasOptionalForeignEnum) { |
| 2719 | OptionalForeignEnum = other.OptionalForeignEnum; |
| 2720 | } |
| 2721 | if (other.HasOptionalImportEnum) { |
| 2722 | OptionalImportEnum = other.OptionalImportEnum; |
| 2723 | } |
| 2724 | if (other.HasOptionalStringPiece) { |
| 2725 | OptionalStringPiece = other.OptionalStringPiece; |
| 2726 | } |
| 2727 | if (other.HasOptionalCord) { |
| 2728 | OptionalCord = other.OptionalCord; |
| 2729 | } |
| 2730 | if (other.repeatedInt32_.Count != 0) { |
| 2731 | base.AddRange(other.repeatedInt32_, result.repeatedInt32_); |
| 2732 | } |
| 2733 | if (other.repeatedInt64_.Count != 0) { |
| 2734 | base.AddRange(other.repeatedInt64_, result.repeatedInt64_); |
| 2735 | } |
| 2736 | if (other.repeatedUint32_.Count != 0) { |
| 2737 | base.AddRange(other.repeatedUint32_, result.repeatedUint32_); |
| 2738 | } |
| 2739 | if (other.repeatedUint64_.Count != 0) { |
| 2740 | base.AddRange(other.repeatedUint64_, result.repeatedUint64_); |
| 2741 | } |
| 2742 | if (other.repeatedSint32_.Count != 0) { |
| 2743 | base.AddRange(other.repeatedSint32_, result.repeatedSint32_); |
| 2744 | } |
| 2745 | if (other.repeatedSint64_.Count != 0) { |
| 2746 | base.AddRange(other.repeatedSint64_, result.repeatedSint64_); |
| 2747 | } |
| 2748 | if (other.repeatedFixed32_.Count != 0) { |
| 2749 | base.AddRange(other.repeatedFixed32_, result.repeatedFixed32_); |
| 2750 | } |
| 2751 | if (other.repeatedFixed64_.Count != 0) { |
| 2752 | base.AddRange(other.repeatedFixed64_, result.repeatedFixed64_); |
| 2753 | } |
| 2754 | if (other.repeatedSfixed32_.Count != 0) { |
| 2755 | base.AddRange(other.repeatedSfixed32_, result.repeatedSfixed32_); |
| 2756 | } |
| 2757 | if (other.repeatedSfixed64_.Count != 0) { |
| 2758 | base.AddRange(other.repeatedSfixed64_, result.repeatedSfixed64_); |
| 2759 | } |
| 2760 | if (other.repeatedFloat_.Count != 0) { |
| 2761 | base.AddRange(other.repeatedFloat_, result.repeatedFloat_); |
| 2762 | } |
| 2763 | if (other.repeatedDouble_.Count != 0) { |
| 2764 | base.AddRange(other.repeatedDouble_, result.repeatedDouble_); |
| 2765 | } |
| 2766 | if (other.repeatedBool_.Count != 0) { |
| 2767 | base.AddRange(other.repeatedBool_, result.repeatedBool_); |
| 2768 | } |
| 2769 | if (other.repeatedString_.Count != 0) { |
| 2770 | base.AddRange(other.repeatedString_, result.repeatedString_); |
| 2771 | } |
| 2772 | if (other.repeatedBytes_.Count != 0) { |
| 2773 | base.AddRange(other.repeatedBytes_, result.repeatedBytes_); |
| 2774 | } |
| 2775 | if (other.repeatedGroup_.Count != 0) { |
| 2776 | base.AddRange(other.repeatedGroup_, result.repeatedGroup_); |
| 2777 | } |
| 2778 | if (other.repeatedNestedMessage_.Count != 0) { |
| 2779 | base.AddRange(other.repeatedNestedMessage_, result.repeatedNestedMessage_); |
| 2780 | } |
| 2781 | if (other.repeatedForeignMessage_.Count != 0) { |
| 2782 | base.AddRange(other.repeatedForeignMessage_, result.repeatedForeignMessage_); |
| 2783 | } |
| 2784 | if (other.repeatedImportMessage_.Count != 0) { |
| 2785 | base.AddRange(other.repeatedImportMessage_, result.repeatedImportMessage_); |
| 2786 | } |
| 2787 | if (other.repeatedNestedEnum_.Count != 0) { |
| 2788 | base.AddRange(other.repeatedNestedEnum_, result.repeatedNestedEnum_); |
| 2789 | } |
| 2790 | if (other.repeatedForeignEnum_.Count != 0) { |
| 2791 | base.AddRange(other.repeatedForeignEnum_, result.repeatedForeignEnum_); |
| 2792 | } |
| 2793 | if (other.repeatedImportEnum_.Count != 0) { |
| 2794 | base.AddRange(other.repeatedImportEnum_, result.repeatedImportEnum_); |
| 2795 | } |
| 2796 | if (other.repeatedStringPiece_.Count != 0) { |
| 2797 | base.AddRange(other.repeatedStringPiece_, result.repeatedStringPiece_); |
| 2798 | } |
| 2799 | if (other.repeatedCord_.Count != 0) { |
| 2800 | base.AddRange(other.repeatedCord_, result.repeatedCord_); |
| 2801 | } |
| 2802 | if (other.HasDefaultInt32) { |
| 2803 | DefaultInt32 = other.DefaultInt32; |
| 2804 | } |
| 2805 | if (other.HasDefaultInt64) { |
| 2806 | DefaultInt64 = other.DefaultInt64; |
| 2807 | } |
| 2808 | if (other.HasDefaultUint32) { |
| 2809 | DefaultUint32 = other.DefaultUint32; |
| 2810 | } |
| 2811 | if (other.HasDefaultUint64) { |
| 2812 | DefaultUint64 = other.DefaultUint64; |
| 2813 | } |
| 2814 | if (other.HasDefaultSint32) { |
| 2815 | DefaultSint32 = other.DefaultSint32; |
| 2816 | } |
| 2817 | if (other.HasDefaultSint64) { |
| 2818 | DefaultSint64 = other.DefaultSint64; |
| 2819 | } |
| 2820 | if (other.HasDefaultFixed32) { |
| 2821 | DefaultFixed32 = other.DefaultFixed32; |
| 2822 | } |
| 2823 | if (other.HasDefaultFixed64) { |
| 2824 | DefaultFixed64 = other.DefaultFixed64; |
| 2825 | } |
| 2826 | if (other.HasDefaultSfixed32) { |
| 2827 | DefaultSfixed32 = other.DefaultSfixed32; |
| 2828 | } |
| 2829 | if (other.HasDefaultSfixed64) { |
| 2830 | DefaultSfixed64 = other.DefaultSfixed64; |
| 2831 | } |
| 2832 | if (other.HasDefaultFloat) { |
| 2833 | DefaultFloat = other.DefaultFloat; |
| 2834 | } |
| 2835 | if (other.HasDefaultDouble) { |
| 2836 | DefaultDouble = other.DefaultDouble; |
| 2837 | } |
| 2838 | if (other.HasDefaultBool) { |
| 2839 | DefaultBool = other.DefaultBool; |
| 2840 | } |
| 2841 | if (other.HasDefaultString) { |
| 2842 | DefaultString = other.DefaultString; |
| 2843 | } |
| 2844 | if (other.HasDefaultBytes) { |
| 2845 | DefaultBytes = other.DefaultBytes; |
| 2846 | } |
| 2847 | if (other.HasDefaultNestedEnum) { |
| 2848 | DefaultNestedEnum = other.DefaultNestedEnum; |
| 2849 | } |
| 2850 | if (other.HasDefaultForeignEnum) { |
| 2851 | DefaultForeignEnum = other.DefaultForeignEnum; |
| 2852 | } |
| 2853 | if (other.HasDefaultImportEnum) { |
| 2854 | DefaultImportEnum = other.DefaultImportEnum; |
| 2855 | } |
| 2856 | if (other.HasDefaultStringPiece) { |
| 2857 | DefaultStringPiece = other.DefaultStringPiece; |
| 2858 | } |
| 2859 | if (other.HasDefaultCord) { |
| 2860 | DefaultCord = other.DefaultCord; |
| 2861 | } |
| 2862 | this.MergeUnknownFields(other.UnknownFields); |
| 2863 | return this; |
| 2864 | } |
| 2865 | |
| 2866 | public override Builder MergeFrom(pb::CodedInputStream input) { |
| 2867 | return MergeFrom(input, pb::ExtensionRegistry.Empty); |
| 2868 | } |
| 2869 | |
| 2870 | public override Builder MergeFrom(pb::CodedInputStream input, pb::ExtensionRegistry extensionRegistry) { |
| 2871 | pb::UnknownFieldSet.Builder unknownFields = pb::UnknownFieldSet.CreateBuilder(this.UnknownFields); |
| 2872 | while (true) { |
| 2873 | uint tag = input.ReadTag(); |
| 2874 | switch (tag) { |
| 2875 | case 0: { |
| 2876 | this.UnknownFields = unknownFields.Build(); |
| 2877 | return this; |
| 2878 | } |
| 2879 | default: { |
| 2880 | if (!ParseUnknownField(input, unknownFields, extensionRegistry, tag)) { |
| 2881 | this.UnknownFields = unknownFields.Build(); |
| 2882 | return this; |
| 2883 | } |
| 2884 | break; |
| 2885 | } |
| 2886 | case 8: { |
| 2887 | OptionalInt32 = input.ReadInt32(); |
| 2888 | break; |
| 2889 | } |
| 2890 | case 16: { |
| 2891 | OptionalInt64 = input.ReadInt64(); |
| 2892 | break; |
| 2893 | } |
| 2894 | case 24: { |
| 2895 | OptionalUint32 = input.ReadUInt32(); |
| 2896 | break; |
| 2897 | } |
| 2898 | case 32: { |
| 2899 | OptionalUint64 = input.ReadUInt64(); |
| 2900 | break; |
| 2901 | } |
| 2902 | case 40: { |
| 2903 | OptionalSint32 = input.ReadSInt32(); |
| 2904 | break; |
| 2905 | } |
| 2906 | case 48: { |
| 2907 | OptionalSint64 = input.ReadSInt64(); |
| 2908 | break; |
| 2909 | } |
| 2910 | case 61: { |
| 2911 | OptionalFixed32 = input.ReadFixed32(); |
| 2912 | break; |
| 2913 | } |
| 2914 | case 65: { |
| 2915 | OptionalFixed64 = input.ReadFixed64(); |
| 2916 | break; |
| 2917 | } |
| 2918 | case 77: { |
| 2919 | OptionalSfixed32 = input.ReadSFixed32(); |
| 2920 | break; |
| 2921 | } |
| 2922 | case 81: { |
| 2923 | OptionalSfixed64 = input.ReadSFixed64(); |
| 2924 | break; |
| 2925 | } |
| 2926 | case 93: { |
| 2927 | OptionalFloat = input.ReadFloat(); |
| 2928 | break; |
| 2929 | } |
| 2930 | case 97: { |
| 2931 | OptionalDouble = input.ReadDouble(); |
| 2932 | break; |
| 2933 | } |
| 2934 | case 104: { |
| 2935 | OptionalBool = input.ReadBool(); |
| 2936 | break; |
| 2937 | } |
| 2938 | case 114: { |
| 2939 | OptionalString = input.ReadString(); |
| 2940 | break; |
| 2941 | } |
| 2942 | case 122: { |
| 2943 | OptionalBytes = input.ReadBytes(); |
| 2944 | break; |
| 2945 | } |
| 2946 | case 131: { |
| 2947 | global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.OptionalGroup.Builder subBuilder = global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.OptionalGroup.CreateBuilder(); |
| 2948 | if (HasOptionalGroup) { |
| 2949 | subBuilder.MergeFrom(OptionalGroup); |
| 2950 | } |
| 2951 | input.ReadGroup(16, subBuilder, extensionRegistry); |
| 2952 | OptionalGroup = subBuilder.BuildPartial(); |
| 2953 | break; |
| 2954 | } |
| 2955 | case 146: { |
| 2956 | global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedMessage.Builder subBuilder = global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedMessage.CreateBuilder(); |
| 2957 | if (HasOptionalNestedMessage) { |
| 2958 | subBuilder.MergeFrom(OptionalNestedMessage); |
| 2959 | } |
| 2960 | input.ReadMessage(subBuilder, extensionRegistry); |
| 2961 | OptionalNestedMessage = subBuilder.BuildPartial(); |
| 2962 | break; |
| 2963 | } |
| 2964 | case 154: { |
| 2965 | global::Google.ProtocolBuffers.TestProtos.ForeignMessage.Builder subBuilder = global::Google.ProtocolBuffers.TestProtos.ForeignMessage.CreateBuilder(); |
| 2966 | if (HasOptionalForeignMessage) { |
| 2967 | subBuilder.MergeFrom(OptionalForeignMessage); |
| 2968 | } |
| 2969 | input.ReadMessage(subBuilder, extensionRegistry); |
| 2970 | OptionalForeignMessage = subBuilder.BuildPartial(); |
| 2971 | break; |
| 2972 | } |
| 2973 | case 162: { |
| 2974 | global::Google.ProtocolBuffers.TestProtos.ImportMessage.Builder subBuilder = global::Google.ProtocolBuffers.TestProtos.ImportMessage.CreateBuilder(); |
| 2975 | if (HasOptionalImportMessage) { |
| 2976 | subBuilder.MergeFrom(OptionalImportMessage); |
| 2977 | } |
| 2978 | input.ReadMessage(subBuilder, extensionRegistry); |
| 2979 | OptionalImportMessage = subBuilder.BuildPartial(); |
| 2980 | break; |
| 2981 | } |
| 2982 | case 168: { |
| 2983 | int rawValue = input.ReadEnum(); |
| 2984 | if (!global::System.Enum.IsDefined(typeof(global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedEnum), rawValue)) { |
| 2985 | unknownFields.MergeVarintField(21, (ulong) rawValue); |
| 2986 | } else { |
| 2987 | OptionalNestedEnum = (global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedEnum) rawValue; |
| 2988 | } |
| 2989 | break; |
| 2990 | } |
| 2991 | case 176: { |
| 2992 | int rawValue = input.ReadEnum(); |
| 2993 | if (!global::System.Enum.IsDefined(typeof(global::Google.ProtocolBuffers.TestProtos.ForeignEnum), rawValue)) { |
| 2994 | unknownFields.MergeVarintField(22, (ulong) rawValue); |
| 2995 | } else { |
| 2996 | OptionalForeignEnum = (global::Google.ProtocolBuffers.TestProtos.ForeignEnum) rawValue; |
| 2997 | } |
| 2998 | break; |
| 2999 | } |
| 3000 | case 184: { |
| 3001 | int rawValue = input.ReadEnum(); |
| 3002 | if (!global::System.Enum.IsDefined(typeof(global::Google.ProtocolBuffers.TestProtos.ImportEnum), rawValue)) { |
| 3003 | unknownFields.MergeVarintField(23, (ulong) rawValue); |
| 3004 | } else { |
| 3005 | OptionalImportEnum = (global::Google.ProtocolBuffers.TestProtos.ImportEnum) rawValue; |
| 3006 | } |
| 3007 | break; |
| 3008 | } |
| 3009 | case 194: { |
| 3010 | OptionalStringPiece = input.ReadString(); |
| 3011 | break; |
| 3012 | } |
| 3013 | case 202: { |
| 3014 | OptionalCord = input.ReadString(); |
| 3015 | break; |
| 3016 | } |
| 3017 | case 248: { |
| 3018 | AddRepeatedInt32(input.ReadInt32()); |
| 3019 | break; |
| 3020 | } |
| 3021 | case 256: { |
| 3022 | AddRepeatedInt64(input.ReadInt64()); |
| 3023 | break; |
| 3024 | } |
| 3025 | case 264: { |
| 3026 | AddRepeatedUint32(input.ReadUInt32()); |
| 3027 | break; |
| 3028 | } |
| 3029 | case 272: { |
| 3030 | AddRepeatedUint64(input.ReadUInt64()); |
| 3031 | break; |
| 3032 | } |
| 3033 | case 280: { |
| 3034 | AddRepeatedSint32(input.ReadSInt32()); |
| 3035 | break; |
| 3036 | } |
| 3037 | case 288: { |
| 3038 | AddRepeatedSint64(input.ReadSInt64()); |
| 3039 | break; |
| 3040 | } |
| 3041 | case 301: { |
| 3042 | AddRepeatedFixed32(input.ReadFixed32()); |
| 3043 | break; |
| 3044 | } |
| 3045 | case 305: { |
| 3046 | AddRepeatedFixed64(input.ReadFixed64()); |
| 3047 | break; |
| 3048 | } |
| 3049 | case 317: { |
| 3050 | AddRepeatedSfixed32(input.ReadSFixed32()); |
| 3051 | break; |
| 3052 | } |
| 3053 | case 321: { |
| 3054 | AddRepeatedSfixed64(input.ReadSFixed64()); |
| 3055 | break; |
| 3056 | } |
| 3057 | case 333: { |
| 3058 | AddRepeatedFloat(input.ReadFloat()); |
| 3059 | break; |
| 3060 | } |
| 3061 | case 337: { |
| 3062 | AddRepeatedDouble(input.ReadDouble()); |
| 3063 | break; |
| 3064 | } |
| 3065 | case 344: { |
| 3066 | AddRepeatedBool(input.ReadBool()); |
| 3067 | break; |
| 3068 | } |
| 3069 | case 354: { |
| 3070 | AddRepeatedString(input.ReadString()); |
| 3071 | break; |
| 3072 | } |
| 3073 | case 362: { |
| 3074 | AddRepeatedBytes(input.ReadBytes()); |
| 3075 | break; |
| 3076 | } |
| 3077 | case 371: { |
| 3078 | global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.RepeatedGroup.Builder subBuilder = global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.RepeatedGroup.CreateBuilder(); |
| 3079 | input.ReadGroup(46, subBuilder, extensionRegistry); |
| 3080 | AddRepeatedGroup(subBuilder.BuildPartial()); |
| 3081 | break; |
| 3082 | } |
| 3083 | case 386: { |
| 3084 | global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedMessage.Builder subBuilder = global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedMessage.CreateBuilder(); |
| 3085 | input.ReadMessage(subBuilder, extensionRegistry); |
| 3086 | AddRepeatedNestedMessage(subBuilder.BuildPartial()); |
| 3087 | break; |
| 3088 | } |
| 3089 | case 394: { |
| 3090 | global::Google.ProtocolBuffers.TestProtos.ForeignMessage.Builder subBuilder = global::Google.ProtocolBuffers.TestProtos.ForeignMessage.CreateBuilder(); |
| 3091 | input.ReadMessage(subBuilder, extensionRegistry); |
| 3092 | AddRepeatedForeignMessage(subBuilder.BuildPartial()); |
| 3093 | break; |
| 3094 | } |
| 3095 | case 402: { |
| 3096 | global::Google.ProtocolBuffers.TestProtos.ImportMessage.Builder subBuilder = global::Google.ProtocolBuffers.TestProtos.ImportMessage.CreateBuilder(); |
| 3097 | input.ReadMessage(subBuilder, extensionRegistry); |
| 3098 | AddRepeatedImportMessage(subBuilder.BuildPartial()); |
| 3099 | break; |
| 3100 | } |
| 3101 | case 408: { |
| 3102 | int rawValue = input.ReadEnum(); |
| 3103 | if (!global::System.Enum.IsDefined(typeof(global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedEnum), rawValue)) { |
| 3104 | unknownFields.MergeVarintField(51, (ulong) rawValue); |
| 3105 | } else { |
| 3106 | AddRepeatedNestedEnum((global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedEnum) rawValue); |
| 3107 | } |
| 3108 | break; |
| 3109 | } |
| 3110 | case 416: { |
| 3111 | int rawValue = input.ReadEnum(); |
| 3112 | if (!global::System.Enum.IsDefined(typeof(global::Google.ProtocolBuffers.TestProtos.ForeignEnum), rawValue)) { |
| 3113 | unknownFields.MergeVarintField(52, (ulong) rawValue); |
| 3114 | } else { |
| 3115 | AddRepeatedForeignEnum((global::Google.ProtocolBuffers.TestProtos.ForeignEnum) rawValue); |
| 3116 | } |
| 3117 | break; |
| 3118 | } |
| 3119 | case 424: { |
| 3120 | int rawValue = input.ReadEnum(); |
| 3121 | if (!global::System.Enum.IsDefined(typeof(global::Google.ProtocolBuffers.TestProtos.ImportEnum), rawValue)) { |
| 3122 | unknownFields.MergeVarintField(53, (ulong) rawValue); |
| 3123 | } else { |
| 3124 | AddRepeatedImportEnum((global::Google.ProtocolBuffers.TestProtos.ImportEnum) rawValue); |
| 3125 | } |
| 3126 | break; |
| 3127 | } |
| 3128 | case 434: { |
| 3129 | AddRepeatedStringPiece(input.ReadString()); |
| 3130 | break; |
| 3131 | } |
| 3132 | case 442: { |
| 3133 | AddRepeatedCord(input.ReadString()); |
| 3134 | break; |
| 3135 | } |
| 3136 | case 488: { |
| 3137 | DefaultInt32 = input.ReadInt32(); |
| 3138 | break; |
| 3139 | } |
| 3140 | case 496: { |
| 3141 | DefaultInt64 = input.ReadInt64(); |
| 3142 | break; |
| 3143 | } |
| 3144 | case 504: { |
| 3145 | DefaultUint32 = input.ReadUInt32(); |
| 3146 | break; |
| 3147 | } |
| 3148 | case 512: { |
| 3149 | DefaultUint64 = input.ReadUInt64(); |
| 3150 | break; |
| 3151 | } |
| 3152 | case 520: { |
| 3153 | DefaultSint32 = input.ReadSInt32(); |
| 3154 | break; |
| 3155 | } |
| 3156 | case 528: { |
| 3157 | DefaultSint64 = input.ReadSInt64(); |
| 3158 | break; |
| 3159 | } |
| 3160 | case 541: { |
| 3161 | DefaultFixed32 = input.ReadFixed32(); |
| 3162 | break; |
| 3163 | } |
| 3164 | case 545: { |
| 3165 | DefaultFixed64 = input.ReadFixed64(); |
| 3166 | break; |
| 3167 | } |
| 3168 | case 557: { |
| 3169 | DefaultSfixed32 = input.ReadSFixed32(); |
| 3170 | break; |
| 3171 | } |
| 3172 | case 561: { |
| 3173 | DefaultSfixed64 = input.ReadSFixed64(); |
| 3174 | break; |
| 3175 | } |
| 3176 | case 573: { |
| 3177 | DefaultFloat = input.ReadFloat(); |
| 3178 | break; |
| 3179 | } |
| 3180 | case 577: { |
| 3181 | DefaultDouble = input.ReadDouble(); |
| 3182 | break; |
| 3183 | } |
| 3184 | case 584: { |
| 3185 | DefaultBool = input.ReadBool(); |
| 3186 | break; |
| 3187 | } |
| 3188 | case 594: { |
| 3189 | DefaultString = input.ReadString(); |
| 3190 | break; |
| 3191 | } |
| 3192 | case 602: { |
| 3193 | DefaultBytes = input.ReadBytes(); |
| 3194 | break; |
| 3195 | } |
| 3196 | case 648: { |
| 3197 | int rawValue = input.ReadEnum(); |
| 3198 | if (!global::System.Enum.IsDefined(typeof(global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedEnum), rawValue)) { |
| 3199 | unknownFields.MergeVarintField(81, (ulong) rawValue); |
| 3200 | } else { |
| 3201 | DefaultNestedEnum = (global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedEnum) rawValue; |
| 3202 | } |
| 3203 | break; |
| 3204 | } |
| 3205 | case 656: { |
| 3206 | int rawValue = input.ReadEnum(); |
| 3207 | if (!global::System.Enum.IsDefined(typeof(global::Google.ProtocolBuffers.TestProtos.ForeignEnum), rawValue)) { |
| 3208 | unknownFields.MergeVarintField(82, (ulong) rawValue); |
| 3209 | } else { |
| 3210 | DefaultForeignEnum = (global::Google.ProtocolBuffers.TestProtos.ForeignEnum) rawValue; |
| 3211 | } |
| 3212 | break; |
| 3213 | } |
| 3214 | case 664: { |
| 3215 | int rawValue = input.ReadEnum(); |
| 3216 | if (!global::System.Enum.IsDefined(typeof(global::Google.ProtocolBuffers.TestProtos.ImportEnum), rawValue)) { |
| 3217 | unknownFields.MergeVarintField(83, (ulong) rawValue); |
| 3218 | } else { |
| 3219 | DefaultImportEnum = (global::Google.ProtocolBuffers.TestProtos.ImportEnum) rawValue; |
| 3220 | } |
| 3221 | break; |
| 3222 | } |
| 3223 | case 674: { |
| 3224 | DefaultStringPiece = input.ReadString(); |
| 3225 | break; |
| 3226 | } |
| 3227 | case 682: { |
| 3228 | DefaultCord = input.ReadString(); |
| 3229 | break; |
| 3230 | } |
| 3231 | } |
| 3232 | } |
| 3233 | } |
| 3234 | |
| 3235 | |
| 3236 | public bool HasOptionalInt32 { |
| 3237 | get { return result.HasOptionalInt32; } |
| 3238 | } |
| 3239 | public int OptionalInt32 { |
| 3240 | get { return result.OptionalInt32; } |
| 3241 | set { SetOptionalInt32(value); } |
| 3242 | } |
| 3243 | public Builder SetOptionalInt32(int value) { |
| 3244 | result.hasOptionalInt32 = true; |
| 3245 | result.optionalInt32_ = value; |
| 3246 | return this; |
| 3247 | } |
| 3248 | public Builder ClearOptionalInt32() { |
| 3249 | result.hasOptionalInt32 = false; |
| 3250 | result.optionalInt32_ = 0; |
| 3251 | return this; |
| 3252 | } |
| 3253 | |
| 3254 | public bool HasOptionalInt64 { |
| 3255 | get { return result.HasOptionalInt64; } |
| 3256 | } |
| 3257 | public long OptionalInt64 { |
| 3258 | get { return result.OptionalInt64; } |
| 3259 | set { SetOptionalInt64(value); } |
| 3260 | } |
| 3261 | public Builder SetOptionalInt64(long value) { |
| 3262 | result.hasOptionalInt64 = true; |
| 3263 | result.optionalInt64_ = value; |
| 3264 | return this; |
| 3265 | } |
| 3266 | public Builder ClearOptionalInt64() { |
| 3267 | result.hasOptionalInt64 = false; |
| 3268 | result.optionalInt64_ = 0L; |
| 3269 | return this; |
| 3270 | } |
| 3271 | |
| 3272 | public bool HasOptionalUint32 { |
| 3273 | get { return result.HasOptionalUint32; } |
| 3274 | } |
| 3275 | public uint OptionalUint32 { |
| 3276 | get { return result.OptionalUint32; } |
| 3277 | set { SetOptionalUint32(value); } |
| 3278 | } |
| 3279 | public Builder SetOptionalUint32(uint value) { |
| 3280 | result.hasOptionalUint32 = true; |
| 3281 | result.optionalUint32_ = value; |
| 3282 | return this; |
| 3283 | } |
| 3284 | public Builder ClearOptionalUint32() { |
| 3285 | result.hasOptionalUint32 = false; |
| 3286 | result.optionalUint32_ = 0; |
| 3287 | return this; |
| 3288 | } |
| 3289 | |
| 3290 | public bool HasOptionalUint64 { |
| 3291 | get { return result.HasOptionalUint64; } |
| 3292 | } |
| 3293 | public ulong OptionalUint64 { |
| 3294 | get { return result.OptionalUint64; } |
| 3295 | set { SetOptionalUint64(value); } |
| 3296 | } |
| 3297 | public Builder SetOptionalUint64(ulong value) { |
| 3298 | result.hasOptionalUint64 = true; |
| 3299 | result.optionalUint64_ = value; |
| 3300 | return this; |
| 3301 | } |
| 3302 | public Builder ClearOptionalUint64() { |
| 3303 | result.hasOptionalUint64 = false; |
| 3304 | result.optionalUint64_ = 0UL; |
| 3305 | return this; |
| 3306 | } |
| 3307 | |
| 3308 | public bool HasOptionalSint32 { |
| 3309 | get { return result.HasOptionalSint32; } |
| 3310 | } |
| 3311 | public int OptionalSint32 { |
| 3312 | get { return result.OptionalSint32; } |
| 3313 | set { SetOptionalSint32(value); } |
| 3314 | } |
| 3315 | public Builder SetOptionalSint32(int value) { |
| 3316 | result.hasOptionalSint32 = true; |
| 3317 | result.optionalSint32_ = value; |
| 3318 | return this; |
| 3319 | } |
| 3320 | public Builder ClearOptionalSint32() { |
| 3321 | result.hasOptionalSint32 = false; |
| 3322 | result.optionalSint32_ = 0; |
| 3323 | return this; |
| 3324 | } |
| 3325 | |
| 3326 | public bool HasOptionalSint64 { |
| 3327 | get { return result.HasOptionalSint64; } |
| 3328 | } |
| 3329 | public long OptionalSint64 { |
| 3330 | get { return result.OptionalSint64; } |
| 3331 | set { SetOptionalSint64(value); } |
| 3332 | } |
| 3333 | public Builder SetOptionalSint64(long value) { |
| 3334 | result.hasOptionalSint64 = true; |
| 3335 | result.optionalSint64_ = value; |
| 3336 | return this; |
| 3337 | } |
| 3338 | public Builder ClearOptionalSint64() { |
| 3339 | result.hasOptionalSint64 = false; |
| 3340 | result.optionalSint64_ = 0; |
| 3341 | return this; |
| 3342 | } |
| 3343 | |
| 3344 | public bool HasOptionalFixed32 { |
| 3345 | get { return result.HasOptionalFixed32; } |
| 3346 | } |
| 3347 | public uint OptionalFixed32 { |
| 3348 | get { return result.OptionalFixed32; } |
| 3349 | set { SetOptionalFixed32(value); } |
| 3350 | } |
| 3351 | public Builder SetOptionalFixed32(uint value) { |
| 3352 | result.hasOptionalFixed32 = true; |
| 3353 | result.optionalFixed32_ = value; |
| 3354 | return this; |
| 3355 | } |
| 3356 | public Builder ClearOptionalFixed32() { |
| 3357 | result.hasOptionalFixed32 = false; |
| 3358 | result.optionalFixed32_ = 0; |
| 3359 | return this; |
| 3360 | } |
| 3361 | |
| 3362 | public bool HasOptionalFixed64 { |
| 3363 | get { return result.HasOptionalFixed64; } |
| 3364 | } |
| 3365 | public ulong OptionalFixed64 { |
| 3366 | get { return result.OptionalFixed64; } |
| 3367 | set { SetOptionalFixed64(value); } |
| 3368 | } |
| 3369 | public Builder SetOptionalFixed64(ulong value) { |
| 3370 | result.hasOptionalFixed64 = true; |
| 3371 | result.optionalFixed64_ = value; |
| 3372 | return this; |
| 3373 | } |
| 3374 | public Builder ClearOptionalFixed64() { |
| 3375 | result.hasOptionalFixed64 = false; |
| 3376 | result.optionalFixed64_ = 0; |
| 3377 | return this; |
| 3378 | } |
| 3379 | |
| 3380 | public bool HasOptionalSfixed32 { |
| 3381 | get { return result.HasOptionalSfixed32; } |
| 3382 | } |
| 3383 | public int OptionalSfixed32 { |
| 3384 | get { return result.OptionalSfixed32; } |
| 3385 | set { SetOptionalSfixed32(value); } |
| 3386 | } |
| 3387 | public Builder SetOptionalSfixed32(int value) { |
| 3388 | result.hasOptionalSfixed32 = true; |
| 3389 | result.optionalSfixed32_ = value; |
| 3390 | return this; |
| 3391 | } |
| 3392 | public Builder ClearOptionalSfixed32() { |
| 3393 | result.hasOptionalSfixed32 = false; |
| 3394 | result.optionalSfixed32_ = 0; |
| 3395 | return this; |
| 3396 | } |
| 3397 | |
| 3398 | public bool HasOptionalSfixed64 { |
| 3399 | get { return result.HasOptionalSfixed64; } |
| 3400 | } |
| 3401 | public long OptionalSfixed64 { |
| 3402 | get { return result.OptionalSfixed64; } |
| 3403 | set { SetOptionalSfixed64(value); } |
| 3404 | } |
| 3405 | public Builder SetOptionalSfixed64(long value) { |
| 3406 | result.hasOptionalSfixed64 = true; |
| 3407 | result.optionalSfixed64_ = value; |
| 3408 | return this; |
| 3409 | } |
| 3410 | public Builder ClearOptionalSfixed64() { |
| 3411 | result.hasOptionalSfixed64 = false; |
| 3412 | result.optionalSfixed64_ = 0; |
| 3413 | return this; |
| 3414 | } |
| 3415 | |
| 3416 | public bool HasOptionalFloat { |
| 3417 | get { return result.HasOptionalFloat; } |
| 3418 | } |
| 3419 | public float OptionalFloat { |
| 3420 | get { return result.OptionalFloat; } |
| 3421 | set { SetOptionalFloat(value); } |
| 3422 | } |
| 3423 | public Builder SetOptionalFloat(float value) { |
| 3424 | result.hasOptionalFloat = true; |
| 3425 | result.optionalFloat_ = value; |
| 3426 | return this; |
| 3427 | } |
| 3428 | public Builder ClearOptionalFloat() { |
| 3429 | result.hasOptionalFloat = false; |
| 3430 | result.optionalFloat_ = 0F; |
| 3431 | return this; |
| 3432 | } |
| 3433 | |
| 3434 | public bool HasOptionalDouble { |
| 3435 | get { return result.HasOptionalDouble; } |
| 3436 | } |
| 3437 | public double OptionalDouble { |
| 3438 | get { return result.OptionalDouble; } |
| 3439 | set { SetOptionalDouble(value); } |
| 3440 | } |
| 3441 | public Builder SetOptionalDouble(double value) { |
| 3442 | result.hasOptionalDouble = true; |
| 3443 | result.optionalDouble_ = value; |
| 3444 | return this; |
| 3445 | } |
| 3446 | public Builder ClearOptionalDouble() { |
| 3447 | result.hasOptionalDouble = false; |
| 3448 | result.optionalDouble_ = 0D; |
| 3449 | return this; |
| 3450 | } |
| 3451 | |
| 3452 | public bool HasOptionalBool { |
| 3453 | get { return result.HasOptionalBool; } |
| 3454 | } |
| 3455 | public bool OptionalBool { |
| 3456 | get { return result.OptionalBool; } |
| 3457 | set { SetOptionalBool(value); } |
| 3458 | } |
| 3459 | public Builder SetOptionalBool(bool value) { |
| 3460 | result.hasOptionalBool = true; |
| 3461 | result.optionalBool_ = value; |
| 3462 | return this; |
| 3463 | } |
| 3464 | public Builder ClearOptionalBool() { |
| 3465 | result.hasOptionalBool = false; |
| 3466 | result.optionalBool_ = false; |
| 3467 | return this; |
| 3468 | } |
| 3469 | |
| 3470 | public bool HasOptionalString { |
| 3471 | get { return result.HasOptionalString; } |
| 3472 | } |
| 3473 | public string OptionalString { |
| 3474 | get { return result.OptionalString; } |
| 3475 | set { SetOptionalString(value); } |
| 3476 | } |
| 3477 | public Builder SetOptionalString(string value) { |
Jon Skeet | 642a814 | 2009-01-27 12:25:21 +0000 | [diff] [blame] | 3478 | pb::ThrowHelper.ThrowIfNull(value, "value"); |
Jon Skeet | 6803686 | 2008-10-22 13:30:34 +0100 | [diff] [blame] | 3479 | result.hasOptionalString = true; |
| 3480 | result.optionalString_ = value; |
| 3481 | return this; |
| 3482 | } |
| 3483 | public Builder ClearOptionalString() { |
| 3484 | result.hasOptionalString = false; |
| 3485 | result.optionalString_ = ""; |
| 3486 | return this; |
| 3487 | } |
| 3488 | |
| 3489 | public bool HasOptionalBytes { |
| 3490 | get { return result.HasOptionalBytes; } |
| 3491 | } |
| 3492 | public pb::ByteString OptionalBytes { |
| 3493 | get { return result.OptionalBytes; } |
| 3494 | set { SetOptionalBytes(value); } |
| 3495 | } |
| 3496 | public Builder SetOptionalBytes(pb::ByteString value) { |
Jon Skeet | 642a814 | 2009-01-27 12:25:21 +0000 | [diff] [blame] | 3497 | pb::ThrowHelper.ThrowIfNull(value, "value"); |
Jon Skeet | 6803686 | 2008-10-22 13:30:34 +0100 | [diff] [blame] | 3498 | result.hasOptionalBytes = true; |
| 3499 | result.optionalBytes_ = value; |
| 3500 | return this; |
| 3501 | } |
| 3502 | public Builder ClearOptionalBytes() { |
| 3503 | result.hasOptionalBytes = false; |
| 3504 | result.optionalBytes_ = pb::ByteString.Empty; |
| 3505 | return this; |
| 3506 | } |
| 3507 | |
| 3508 | public bool HasOptionalGroup { |
| 3509 | get { return result.HasOptionalGroup; } |
| 3510 | } |
| 3511 | public global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.OptionalGroup OptionalGroup { |
| 3512 | get { return result.OptionalGroup; } |
| 3513 | set { SetOptionalGroup(value); } |
| 3514 | } |
| 3515 | public Builder SetOptionalGroup(global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.OptionalGroup value) { |
Jon Skeet | 642a814 | 2009-01-27 12:25:21 +0000 | [diff] [blame] | 3516 | pb::ThrowHelper.ThrowIfNull(value, "value"); |
Jon Skeet | 6803686 | 2008-10-22 13:30:34 +0100 | [diff] [blame] | 3517 | result.hasOptionalGroup = true; |
| 3518 | result.optionalGroup_ = value; |
| 3519 | return this; |
| 3520 | } |
| 3521 | public Builder SetOptionalGroup(global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.OptionalGroup.Builder builderForValue) { |
Jon Skeet | 642a814 | 2009-01-27 12:25:21 +0000 | [diff] [blame] | 3522 | pb::ThrowHelper.ThrowIfNull(builderForValue, "builderForValue"); |
Jon Skeet | 6803686 | 2008-10-22 13:30:34 +0100 | [diff] [blame] | 3523 | result.hasOptionalGroup = true; |
| 3524 | result.optionalGroup_ = builderForValue.Build(); |
| 3525 | return this; |
| 3526 | } |
| 3527 | public Builder MergeOptionalGroup(global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.OptionalGroup value) { |
Jon Skeet | 642a814 | 2009-01-27 12:25:21 +0000 | [diff] [blame] | 3528 | pb::ThrowHelper.ThrowIfNull(value, "value"); |
Jon Skeet | 6803686 | 2008-10-22 13:30:34 +0100 | [diff] [blame] | 3529 | if (result.HasOptionalGroup && |
| 3530 | result.optionalGroup_ != global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.OptionalGroup.DefaultInstance) { |
| 3531 | result.optionalGroup_ = global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.OptionalGroup.CreateBuilder(result.optionalGroup_).MergeFrom(value).BuildPartial(); |
| 3532 | } else { |
| 3533 | result.optionalGroup_ = value; |
| 3534 | } |
| 3535 | result.hasOptionalGroup = true; |
| 3536 | return this; |
| 3537 | } |
| 3538 | public Builder ClearOptionalGroup() { |
| 3539 | result.hasOptionalGroup = false; |
| 3540 | result.optionalGroup_ = global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.OptionalGroup.DefaultInstance; |
| 3541 | return this; |
| 3542 | } |
| 3543 | |
| 3544 | public bool HasOptionalNestedMessage { |
| 3545 | get { return result.HasOptionalNestedMessage; } |
| 3546 | } |
| 3547 | public global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedMessage OptionalNestedMessage { |
| 3548 | get { return result.OptionalNestedMessage; } |
| 3549 | set { SetOptionalNestedMessage(value); } |
| 3550 | } |
| 3551 | public Builder SetOptionalNestedMessage(global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedMessage value) { |
Jon Skeet | 642a814 | 2009-01-27 12:25:21 +0000 | [diff] [blame] | 3552 | pb::ThrowHelper.ThrowIfNull(value, "value"); |
Jon Skeet | 6803686 | 2008-10-22 13:30:34 +0100 | [diff] [blame] | 3553 | result.hasOptionalNestedMessage = true; |
| 3554 | result.optionalNestedMessage_ = value; |
| 3555 | return this; |
| 3556 | } |
| 3557 | public Builder SetOptionalNestedMessage(global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedMessage.Builder builderForValue) { |
Jon Skeet | 642a814 | 2009-01-27 12:25:21 +0000 | [diff] [blame] | 3558 | pb::ThrowHelper.ThrowIfNull(builderForValue, "builderForValue"); |
Jon Skeet | 6803686 | 2008-10-22 13:30:34 +0100 | [diff] [blame] | 3559 | result.hasOptionalNestedMessage = true; |
| 3560 | result.optionalNestedMessage_ = builderForValue.Build(); |
| 3561 | return this; |
| 3562 | } |
| 3563 | public Builder MergeOptionalNestedMessage(global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedMessage value) { |
Jon Skeet | 642a814 | 2009-01-27 12:25:21 +0000 | [diff] [blame] | 3564 | pb::ThrowHelper.ThrowIfNull(value, "value"); |
Jon Skeet | 6803686 | 2008-10-22 13:30:34 +0100 | [diff] [blame] | 3565 | if (result.HasOptionalNestedMessage && |
| 3566 | result.optionalNestedMessage_ != global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedMessage.DefaultInstance) { |
| 3567 | result.optionalNestedMessage_ = global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedMessage.CreateBuilder(result.optionalNestedMessage_).MergeFrom(value).BuildPartial(); |
| 3568 | } else { |
| 3569 | result.optionalNestedMessage_ = value; |
| 3570 | } |
| 3571 | result.hasOptionalNestedMessage = true; |
| 3572 | return this; |
| 3573 | } |
| 3574 | public Builder ClearOptionalNestedMessage() { |
| 3575 | result.hasOptionalNestedMessage = false; |
| 3576 | result.optionalNestedMessage_ = global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedMessage.DefaultInstance; |
| 3577 | return this; |
| 3578 | } |
| 3579 | |
| 3580 | public bool HasOptionalForeignMessage { |
| 3581 | get { return result.HasOptionalForeignMessage; } |
| 3582 | } |
| 3583 | public global::Google.ProtocolBuffers.TestProtos.ForeignMessage OptionalForeignMessage { |
| 3584 | get { return result.OptionalForeignMessage; } |
| 3585 | set { SetOptionalForeignMessage(value); } |
| 3586 | } |
| 3587 | public Builder SetOptionalForeignMessage(global::Google.ProtocolBuffers.TestProtos.ForeignMessage value) { |
Jon Skeet | 642a814 | 2009-01-27 12:25:21 +0000 | [diff] [blame] | 3588 | pb::ThrowHelper.ThrowIfNull(value, "value"); |
Jon Skeet | 6803686 | 2008-10-22 13:30:34 +0100 | [diff] [blame] | 3589 | result.hasOptionalForeignMessage = true; |
| 3590 | result.optionalForeignMessage_ = value; |
| 3591 | return this; |
| 3592 | } |
| 3593 | public Builder SetOptionalForeignMessage(global::Google.ProtocolBuffers.TestProtos.ForeignMessage.Builder builderForValue) { |
Jon Skeet | 642a814 | 2009-01-27 12:25:21 +0000 | [diff] [blame] | 3594 | pb::ThrowHelper.ThrowIfNull(builderForValue, "builderForValue"); |
Jon Skeet | 6803686 | 2008-10-22 13:30:34 +0100 | [diff] [blame] | 3595 | result.hasOptionalForeignMessage = true; |
| 3596 | result.optionalForeignMessage_ = builderForValue.Build(); |
| 3597 | return this; |
| 3598 | } |
| 3599 | public Builder MergeOptionalForeignMessage(global::Google.ProtocolBuffers.TestProtos.ForeignMessage value) { |
Jon Skeet | 642a814 | 2009-01-27 12:25:21 +0000 | [diff] [blame] | 3600 | pb::ThrowHelper.ThrowIfNull(value, "value"); |
Jon Skeet | 6803686 | 2008-10-22 13:30:34 +0100 | [diff] [blame] | 3601 | if (result.HasOptionalForeignMessage && |
| 3602 | result.optionalForeignMessage_ != global::Google.ProtocolBuffers.TestProtos.ForeignMessage.DefaultInstance) { |
| 3603 | result.optionalForeignMessage_ = global::Google.ProtocolBuffers.TestProtos.ForeignMessage.CreateBuilder(result.optionalForeignMessage_).MergeFrom(value).BuildPartial(); |
| 3604 | } else { |
| 3605 | result.optionalForeignMessage_ = value; |
| 3606 | } |
| 3607 | result.hasOptionalForeignMessage = true; |
| 3608 | return this; |
| 3609 | } |
| 3610 | public Builder ClearOptionalForeignMessage() { |
| 3611 | result.hasOptionalForeignMessage = false; |
| 3612 | result.optionalForeignMessage_ = global::Google.ProtocolBuffers.TestProtos.ForeignMessage.DefaultInstance; |
| 3613 | return this; |
| 3614 | } |
| 3615 | |
| 3616 | public bool HasOptionalImportMessage { |
| 3617 | get { return result.HasOptionalImportMessage; } |
| 3618 | } |
| 3619 | public global::Google.ProtocolBuffers.TestProtos.ImportMessage OptionalImportMessage { |
| 3620 | get { return result.OptionalImportMessage; } |
| 3621 | set { SetOptionalImportMessage(value); } |
| 3622 | } |
| 3623 | public Builder SetOptionalImportMessage(global::Google.ProtocolBuffers.TestProtos.ImportMessage value) { |
Jon Skeet | 642a814 | 2009-01-27 12:25:21 +0000 | [diff] [blame] | 3624 | pb::ThrowHelper.ThrowIfNull(value, "value"); |
Jon Skeet | 6803686 | 2008-10-22 13:30:34 +0100 | [diff] [blame] | 3625 | result.hasOptionalImportMessage = true; |
| 3626 | result.optionalImportMessage_ = value; |
| 3627 | return this; |
| 3628 | } |
| 3629 | public Builder SetOptionalImportMessage(global::Google.ProtocolBuffers.TestProtos.ImportMessage.Builder builderForValue) { |
Jon Skeet | 642a814 | 2009-01-27 12:25:21 +0000 | [diff] [blame] | 3630 | pb::ThrowHelper.ThrowIfNull(builderForValue, "builderForValue"); |
Jon Skeet | 6803686 | 2008-10-22 13:30:34 +0100 | [diff] [blame] | 3631 | result.hasOptionalImportMessage = true; |
| 3632 | result.optionalImportMessage_ = builderForValue.Build(); |
| 3633 | return this; |
| 3634 | } |
| 3635 | public Builder MergeOptionalImportMessage(global::Google.ProtocolBuffers.TestProtos.ImportMessage value) { |
Jon Skeet | 642a814 | 2009-01-27 12:25:21 +0000 | [diff] [blame] | 3636 | pb::ThrowHelper.ThrowIfNull(value, "value"); |
Jon Skeet | 6803686 | 2008-10-22 13:30:34 +0100 | [diff] [blame] | 3637 | if (result.HasOptionalImportMessage && |
| 3638 | result.optionalImportMessage_ != global::Google.ProtocolBuffers.TestProtos.ImportMessage.DefaultInstance) { |
| 3639 | result.optionalImportMessage_ = global::Google.ProtocolBuffers.TestProtos.ImportMessage.CreateBuilder(result.optionalImportMessage_).MergeFrom(value).BuildPartial(); |
| 3640 | } else { |
| 3641 | result.optionalImportMessage_ = value; |
| 3642 | } |
| 3643 | result.hasOptionalImportMessage = true; |
| 3644 | return this; |
| 3645 | } |
| 3646 | public Builder ClearOptionalImportMessage() { |
| 3647 | result.hasOptionalImportMessage = false; |
| 3648 | result.optionalImportMessage_ = global::Google.ProtocolBuffers.TestProtos.ImportMessage.DefaultInstance; |
| 3649 | return this; |
| 3650 | } |
| 3651 | |
| 3652 | public bool HasOptionalNestedEnum { |
| 3653 | get { return result.HasOptionalNestedEnum; } |
| 3654 | } |
| 3655 | public global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedEnum OptionalNestedEnum { |
| 3656 | get { return result.OptionalNestedEnum; } |
| 3657 | set { SetOptionalNestedEnum(value); } |
| 3658 | } |
| 3659 | public Builder SetOptionalNestedEnum(global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedEnum value) { |
| 3660 | result.hasOptionalNestedEnum = true; |
| 3661 | result.optionalNestedEnum_ = value; |
| 3662 | return this; |
| 3663 | } |
| 3664 | public Builder ClearOptionalNestedEnum() { |
| 3665 | result.hasOptionalNestedEnum = false; |
| 3666 | result.optionalNestedEnum_ = global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedEnum.FOO; |
| 3667 | return this; |
| 3668 | } |
| 3669 | |
| 3670 | public bool HasOptionalForeignEnum { |
| 3671 | get { return result.HasOptionalForeignEnum; } |
| 3672 | } |
| 3673 | public global::Google.ProtocolBuffers.TestProtos.ForeignEnum OptionalForeignEnum { |
| 3674 | get { return result.OptionalForeignEnum; } |
| 3675 | set { SetOptionalForeignEnum(value); } |
| 3676 | } |
| 3677 | public Builder SetOptionalForeignEnum(global::Google.ProtocolBuffers.TestProtos.ForeignEnum value) { |
| 3678 | result.hasOptionalForeignEnum = true; |
| 3679 | result.optionalForeignEnum_ = value; |
| 3680 | return this; |
| 3681 | } |
| 3682 | public Builder ClearOptionalForeignEnum() { |
| 3683 | result.hasOptionalForeignEnum = false; |
| 3684 | result.optionalForeignEnum_ = global::Google.ProtocolBuffers.TestProtos.ForeignEnum.FOREIGN_FOO; |
| 3685 | return this; |
| 3686 | } |
| 3687 | |
| 3688 | public bool HasOptionalImportEnum { |
| 3689 | get { return result.HasOptionalImportEnum; } |
| 3690 | } |
| 3691 | public global::Google.ProtocolBuffers.TestProtos.ImportEnum OptionalImportEnum { |
| 3692 | get { return result.OptionalImportEnum; } |
| 3693 | set { SetOptionalImportEnum(value); } |
| 3694 | } |
| 3695 | public Builder SetOptionalImportEnum(global::Google.ProtocolBuffers.TestProtos.ImportEnum value) { |
| 3696 | result.hasOptionalImportEnum = true; |
| 3697 | result.optionalImportEnum_ = value; |
| 3698 | return this; |
| 3699 | } |
| 3700 | public Builder ClearOptionalImportEnum() { |
| 3701 | result.hasOptionalImportEnum = false; |
| 3702 | result.optionalImportEnum_ = global::Google.ProtocolBuffers.TestProtos.ImportEnum.IMPORT_FOO; |
| 3703 | return this; |
| 3704 | } |
| 3705 | |
| 3706 | public bool HasOptionalStringPiece { |
| 3707 | get { return result.HasOptionalStringPiece; } |
| 3708 | } |
| 3709 | public string OptionalStringPiece { |
| 3710 | get { return result.OptionalStringPiece; } |
| 3711 | set { SetOptionalStringPiece(value); } |
| 3712 | } |
| 3713 | public Builder SetOptionalStringPiece(string value) { |
Jon Skeet | 642a814 | 2009-01-27 12:25:21 +0000 | [diff] [blame] | 3714 | pb::ThrowHelper.ThrowIfNull(value, "value"); |
Jon Skeet | 6803686 | 2008-10-22 13:30:34 +0100 | [diff] [blame] | 3715 | result.hasOptionalStringPiece = true; |
| 3716 | result.optionalStringPiece_ = value; |
| 3717 | return this; |
| 3718 | } |
| 3719 | public Builder ClearOptionalStringPiece() { |
| 3720 | result.hasOptionalStringPiece = false; |
| 3721 | result.optionalStringPiece_ = ""; |
| 3722 | return this; |
| 3723 | } |
| 3724 | |
| 3725 | public bool HasOptionalCord { |
| 3726 | get { return result.HasOptionalCord; } |
| 3727 | } |
| 3728 | public string OptionalCord { |
| 3729 | get { return result.OptionalCord; } |
| 3730 | set { SetOptionalCord(value); } |
| 3731 | } |
| 3732 | public Builder SetOptionalCord(string value) { |
Jon Skeet | 642a814 | 2009-01-27 12:25:21 +0000 | [diff] [blame] | 3733 | pb::ThrowHelper.ThrowIfNull(value, "value"); |
Jon Skeet | 6803686 | 2008-10-22 13:30:34 +0100 | [diff] [blame] | 3734 | result.hasOptionalCord = true; |
| 3735 | result.optionalCord_ = value; |
| 3736 | return this; |
| 3737 | } |
| 3738 | public Builder ClearOptionalCord() { |
| 3739 | result.hasOptionalCord = false; |
| 3740 | result.optionalCord_ = ""; |
| 3741 | return this; |
| 3742 | } |
| 3743 | |
| 3744 | public scg::IList<int> RepeatedInt32List { |
| 3745 | get { return result.repeatedInt32_; } |
| 3746 | } |
| 3747 | public int RepeatedInt32Count { |
| 3748 | get { return result.RepeatedInt32Count; } |
| 3749 | } |
| 3750 | public int GetRepeatedInt32(int index) { |
| 3751 | return result.GetRepeatedInt32(index); |
| 3752 | } |
| 3753 | public Builder SetRepeatedInt32(int index, int value) { |
| 3754 | result.repeatedInt32_[index] = value; |
| 3755 | return this; |
| 3756 | } |
| 3757 | public Builder AddRepeatedInt32(int value) { |
| 3758 | result.repeatedInt32_.Add(value); |
| 3759 | return this; |
| 3760 | } |
| 3761 | public Builder AddRangeRepeatedInt32(scg::IEnumerable<int> values) { |
| 3762 | base.AddRange(values, result.repeatedInt32_); |
| 3763 | return this; |
| 3764 | } |
| 3765 | public Builder ClearRepeatedInt32() { |
| 3766 | result.repeatedInt32_.Clear(); |
| 3767 | return this; |
| 3768 | } |
| 3769 | |
| 3770 | public scg::IList<long> RepeatedInt64List { |
| 3771 | get { return result.repeatedInt64_; } |
| 3772 | } |
| 3773 | public int RepeatedInt64Count { |
| 3774 | get { return result.RepeatedInt64Count; } |
| 3775 | } |
| 3776 | public long GetRepeatedInt64(int index) { |
| 3777 | return result.GetRepeatedInt64(index); |
| 3778 | } |
| 3779 | public Builder SetRepeatedInt64(int index, long value) { |
| 3780 | result.repeatedInt64_[index] = value; |
| 3781 | return this; |
| 3782 | } |
| 3783 | public Builder AddRepeatedInt64(long value) { |
| 3784 | result.repeatedInt64_.Add(value); |
| 3785 | return this; |
| 3786 | } |
| 3787 | public Builder AddRangeRepeatedInt64(scg::IEnumerable<long> values) { |
| 3788 | base.AddRange(values, result.repeatedInt64_); |
| 3789 | return this; |
| 3790 | } |
| 3791 | public Builder ClearRepeatedInt64() { |
| 3792 | result.repeatedInt64_.Clear(); |
| 3793 | return this; |
| 3794 | } |
| 3795 | |
| 3796 | public scg::IList<uint> RepeatedUint32List { |
| 3797 | get { return result.repeatedUint32_; } |
| 3798 | } |
| 3799 | public int RepeatedUint32Count { |
| 3800 | get { return result.RepeatedUint32Count; } |
| 3801 | } |
| 3802 | public uint GetRepeatedUint32(int index) { |
| 3803 | return result.GetRepeatedUint32(index); |
| 3804 | } |
| 3805 | public Builder SetRepeatedUint32(int index, uint value) { |
| 3806 | result.repeatedUint32_[index] = value; |
| 3807 | return this; |
| 3808 | } |
| 3809 | public Builder AddRepeatedUint32(uint value) { |
| 3810 | result.repeatedUint32_.Add(value); |
| 3811 | return this; |
| 3812 | } |
| 3813 | public Builder AddRangeRepeatedUint32(scg::IEnumerable<uint> values) { |
| 3814 | base.AddRange(values, result.repeatedUint32_); |
| 3815 | return this; |
| 3816 | } |
| 3817 | public Builder ClearRepeatedUint32() { |
| 3818 | result.repeatedUint32_.Clear(); |
| 3819 | return this; |
| 3820 | } |
| 3821 | |
| 3822 | public scg::IList<ulong> RepeatedUint64List { |
| 3823 | get { return result.repeatedUint64_; } |
| 3824 | } |
| 3825 | public int RepeatedUint64Count { |
| 3826 | get { return result.RepeatedUint64Count; } |
| 3827 | } |
| 3828 | public ulong GetRepeatedUint64(int index) { |
| 3829 | return result.GetRepeatedUint64(index); |
| 3830 | } |
| 3831 | public Builder SetRepeatedUint64(int index, ulong value) { |
| 3832 | result.repeatedUint64_[index] = value; |
| 3833 | return this; |
| 3834 | } |
| 3835 | public Builder AddRepeatedUint64(ulong value) { |
| 3836 | result.repeatedUint64_.Add(value); |
| 3837 | return this; |
| 3838 | } |
| 3839 | public Builder AddRangeRepeatedUint64(scg::IEnumerable<ulong> values) { |
| 3840 | base.AddRange(values, result.repeatedUint64_); |
| 3841 | return this; |
| 3842 | } |
| 3843 | public Builder ClearRepeatedUint64() { |
| 3844 | result.repeatedUint64_.Clear(); |
| 3845 | return this; |
| 3846 | } |
| 3847 | |
| 3848 | public scg::IList<int> RepeatedSint32List { |
| 3849 | get { return result.repeatedSint32_; } |
| 3850 | } |
| 3851 | public int RepeatedSint32Count { |
| 3852 | get { return result.RepeatedSint32Count; } |
| 3853 | } |
| 3854 | public int GetRepeatedSint32(int index) { |
| 3855 | return result.GetRepeatedSint32(index); |
| 3856 | } |
| 3857 | public Builder SetRepeatedSint32(int index, int value) { |
| 3858 | result.repeatedSint32_[index] = value; |
| 3859 | return this; |
| 3860 | } |
| 3861 | public Builder AddRepeatedSint32(int value) { |
| 3862 | result.repeatedSint32_.Add(value); |
| 3863 | return this; |
| 3864 | } |
| 3865 | public Builder AddRangeRepeatedSint32(scg::IEnumerable<int> values) { |
| 3866 | base.AddRange(values, result.repeatedSint32_); |
| 3867 | return this; |
| 3868 | } |
| 3869 | public Builder ClearRepeatedSint32() { |
| 3870 | result.repeatedSint32_.Clear(); |
| 3871 | return this; |
| 3872 | } |
| 3873 | |
| 3874 | public scg::IList<long> RepeatedSint64List { |
| 3875 | get { return result.repeatedSint64_; } |
| 3876 | } |
| 3877 | public int RepeatedSint64Count { |
| 3878 | get { return result.RepeatedSint64Count; } |
| 3879 | } |
| 3880 | public long GetRepeatedSint64(int index) { |
| 3881 | return result.GetRepeatedSint64(index); |
| 3882 | } |
| 3883 | public Builder SetRepeatedSint64(int index, long value) { |
| 3884 | result.repeatedSint64_[index] = value; |
| 3885 | return this; |
| 3886 | } |
| 3887 | public Builder AddRepeatedSint64(long value) { |
| 3888 | result.repeatedSint64_.Add(value); |
| 3889 | return this; |
| 3890 | } |
| 3891 | public Builder AddRangeRepeatedSint64(scg::IEnumerable<long> values) { |
| 3892 | base.AddRange(values, result.repeatedSint64_); |
| 3893 | return this; |
| 3894 | } |
| 3895 | public Builder ClearRepeatedSint64() { |
| 3896 | result.repeatedSint64_.Clear(); |
| 3897 | return this; |
| 3898 | } |
| 3899 | |
| 3900 | public scg::IList<uint> RepeatedFixed32List { |
| 3901 | get { return result.repeatedFixed32_; } |
| 3902 | } |
| 3903 | public int RepeatedFixed32Count { |
| 3904 | get { return result.RepeatedFixed32Count; } |
| 3905 | } |
| 3906 | public uint GetRepeatedFixed32(int index) { |
| 3907 | return result.GetRepeatedFixed32(index); |
| 3908 | } |
| 3909 | public Builder SetRepeatedFixed32(int index, uint value) { |
| 3910 | result.repeatedFixed32_[index] = value; |
| 3911 | return this; |
| 3912 | } |
| 3913 | public Builder AddRepeatedFixed32(uint value) { |
| 3914 | result.repeatedFixed32_.Add(value); |
| 3915 | return this; |
| 3916 | } |
| 3917 | public Builder AddRangeRepeatedFixed32(scg::IEnumerable<uint> values) { |
| 3918 | base.AddRange(values, result.repeatedFixed32_); |
| 3919 | return this; |
| 3920 | } |
| 3921 | public Builder ClearRepeatedFixed32() { |
| 3922 | result.repeatedFixed32_.Clear(); |
| 3923 | return this; |
| 3924 | } |
| 3925 | |
| 3926 | public scg::IList<ulong> RepeatedFixed64List { |
| 3927 | get { return result.repeatedFixed64_; } |
| 3928 | } |
| 3929 | public int RepeatedFixed64Count { |
| 3930 | get { return result.RepeatedFixed64Count; } |
| 3931 | } |
| 3932 | public ulong GetRepeatedFixed64(int index) { |
| 3933 | return result.GetRepeatedFixed64(index); |
| 3934 | } |
| 3935 | public Builder SetRepeatedFixed64(int index, ulong value) { |
| 3936 | result.repeatedFixed64_[index] = value; |
| 3937 | return this; |
| 3938 | } |
| 3939 | public Builder AddRepeatedFixed64(ulong value) { |
| 3940 | result.repeatedFixed64_.Add(value); |
| 3941 | return this; |
| 3942 | } |
| 3943 | public Builder AddRangeRepeatedFixed64(scg::IEnumerable<ulong> values) { |
| 3944 | base.AddRange(values, result.repeatedFixed64_); |
| 3945 | return this; |
| 3946 | } |
| 3947 | public Builder ClearRepeatedFixed64() { |
| 3948 | result.repeatedFixed64_.Clear(); |
| 3949 | return this; |
| 3950 | } |
| 3951 | |
| 3952 | public scg::IList<int> RepeatedSfixed32List { |
| 3953 | get { return result.repeatedSfixed32_; } |
| 3954 | } |
| 3955 | public int RepeatedSfixed32Count { |
| 3956 | get { return result.RepeatedSfixed32Count; } |
| 3957 | } |
| 3958 | public int GetRepeatedSfixed32(int index) { |
| 3959 | return result.GetRepeatedSfixed32(index); |
| 3960 | } |
| 3961 | public Builder SetRepeatedSfixed32(int index, int value) { |
| 3962 | result.repeatedSfixed32_[index] = value; |
| 3963 | return this; |
| 3964 | } |
| 3965 | public Builder AddRepeatedSfixed32(int value) { |
| 3966 | result.repeatedSfixed32_.Add(value); |
| 3967 | return this; |
| 3968 | } |
| 3969 | public Builder AddRangeRepeatedSfixed32(scg::IEnumerable<int> values) { |
| 3970 | base.AddRange(values, result.repeatedSfixed32_); |
| 3971 | return this; |
| 3972 | } |
| 3973 | public Builder ClearRepeatedSfixed32() { |
| 3974 | result.repeatedSfixed32_.Clear(); |
| 3975 | return this; |
| 3976 | } |
| 3977 | |
| 3978 | public scg::IList<long> RepeatedSfixed64List { |
| 3979 | get { return result.repeatedSfixed64_; } |
| 3980 | } |
| 3981 | public int RepeatedSfixed64Count { |
| 3982 | get { return result.RepeatedSfixed64Count; } |
| 3983 | } |
| 3984 | public long GetRepeatedSfixed64(int index) { |
| 3985 | return result.GetRepeatedSfixed64(index); |
| 3986 | } |
| 3987 | public Builder SetRepeatedSfixed64(int index, long value) { |
| 3988 | result.repeatedSfixed64_[index] = value; |
| 3989 | return this; |
| 3990 | } |
| 3991 | public Builder AddRepeatedSfixed64(long value) { |
| 3992 | result.repeatedSfixed64_.Add(value); |
| 3993 | return this; |
| 3994 | } |
| 3995 | public Builder AddRangeRepeatedSfixed64(scg::IEnumerable<long> values) { |
| 3996 | base.AddRange(values, result.repeatedSfixed64_); |
| 3997 | return this; |
| 3998 | } |
| 3999 | public Builder ClearRepeatedSfixed64() { |
| 4000 | result.repeatedSfixed64_.Clear(); |
| 4001 | return this; |
| 4002 | } |
| 4003 | |
| 4004 | public scg::IList<float> RepeatedFloatList { |
| 4005 | get { return result.repeatedFloat_; } |
| 4006 | } |
| 4007 | public int RepeatedFloatCount { |
| 4008 | get { return result.RepeatedFloatCount; } |
| 4009 | } |
| 4010 | public float GetRepeatedFloat(int index) { |
| 4011 | return result.GetRepeatedFloat(index); |
| 4012 | } |
| 4013 | public Builder SetRepeatedFloat(int index, float value) { |
| 4014 | result.repeatedFloat_[index] = value; |
| 4015 | return this; |
| 4016 | } |
| 4017 | public Builder AddRepeatedFloat(float value) { |
| 4018 | result.repeatedFloat_.Add(value); |
| 4019 | return this; |
| 4020 | } |
| 4021 | public Builder AddRangeRepeatedFloat(scg::IEnumerable<float> values) { |
| 4022 | base.AddRange(values, result.repeatedFloat_); |
| 4023 | return this; |
| 4024 | } |
| 4025 | public Builder ClearRepeatedFloat() { |
| 4026 | result.repeatedFloat_.Clear(); |
| 4027 | return this; |
| 4028 | } |
| 4029 | |
| 4030 | public scg::IList<double> RepeatedDoubleList { |
| 4031 | get { return result.repeatedDouble_; } |
| 4032 | } |
| 4033 | public int RepeatedDoubleCount { |
| 4034 | get { return result.RepeatedDoubleCount; } |
| 4035 | } |
| 4036 | public double GetRepeatedDouble(int index) { |
| 4037 | return result.GetRepeatedDouble(index); |
| 4038 | } |
| 4039 | public Builder SetRepeatedDouble(int index, double value) { |
| 4040 | result.repeatedDouble_[index] = value; |
| 4041 | return this; |
| 4042 | } |
| 4043 | public Builder AddRepeatedDouble(double value) { |
| 4044 | result.repeatedDouble_.Add(value); |
| 4045 | return this; |
| 4046 | } |
| 4047 | public Builder AddRangeRepeatedDouble(scg::IEnumerable<double> values) { |
| 4048 | base.AddRange(values, result.repeatedDouble_); |
| 4049 | return this; |
| 4050 | } |
| 4051 | public Builder ClearRepeatedDouble() { |
| 4052 | result.repeatedDouble_.Clear(); |
| 4053 | return this; |
| 4054 | } |
| 4055 | |
| 4056 | public scg::IList<bool> RepeatedBoolList { |
| 4057 | get { return result.repeatedBool_; } |
| 4058 | } |
| 4059 | public int RepeatedBoolCount { |
| 4060 | get { return result.RepeatedBoolCount; } |
| 4061 | } |
| 4062 | public bool GetRepeatedBool(int index) { |
| 4063 | return result.GetRepeatedBool(index); |
| 4064 | } |
| 4065 | public Builder SetRepeatedBool(int index, bool value) { |
| 4066 | result.repeatedBool_[index] = value; |
| 4067 | return this; |
| 4068 | } |
| 4069 | public Builder AddRepeatedBool(bool value) { |
| 4070 | result.repeatedBool_.Add(value); |
| 4071 | return this; |
| 4072 | } |
| 4073 | public Builder AddRangeRepeatedBool(scg::IEnumerable<bool> values) { |
| 4074 | base.AddRange(values, result.repeatedBool_); |
| 4075 | return this; |
| 4076 | } |
| 4077 | public Builder ClearRepeatedBool() { |
| 4078 | result.repeatedBool_.Clear(); |
| 4079 | return this; |
| 4080 | } |
| 4081 | |
| 4082 | public scg::IList<string> RepeatedStringList { |
| 4083 | get { return result.repeatedString_; } |
| 4084 | } |
| 4085 | public int RepeatedStringCount { |
| 4086 | get { return result.RepeatedStringCount; } |
| 4087 | } |
| 4088 | public string GetRepeatedString(int index) { |
| 4089 | return result.GetRepeatedString(index); |
| 4090 | } |
| 4091 | public Builder SetRepeatedString(int index, string value) { |
Jon Skeet | 642a814 | 2009-01-27 12:25:21 +0000 | [diff] [blame] | 4092 | pb::ThrowHelper.ThrowIfNull(value, "value"); |
Jon Skeet | 6803686 | 2008-10-22 13:30:34 +0100 | [diff] [blame] | 4093 | result.repeatedString_[index] = value; |
| 4094 | return this; |
| 4095 | } |
| 4096 | public Builder AddRepeatedString(string value) { |
Jon Skeet | 642a814 | 2009-01-27 12:25:21 +0000 | [diff] [blame] | 4097 | pb::ThrowHelper.ThrowIfNull(value, "value"); |
Jon Skeet | 6803686 | 2008-10-22 13:30:34 +0100 | [diff] [blame] | 4098 | result.repeatedString_.Add(value); |
| 4099 | return this; |
| 4100 | } |
| 4101 | public Builder AddRangeRepeatedString(scg::IEnumerable<string> values) { |
| 4102 | base.AddRange(values, result.repeatedString_); |
| 4103 | return this; |
| 4104 | } |
| 4105 | public Builder ClearRepeatedString() { |
| 4106 | result.repeatedString_.Clear(); |
| 4107 | return this; |
| 4108 | } |
| 4109 | |
| 4110 | public scg::IList<pb::ByteString> RepeatedBytesList { |
| 4111 | get { return result.repeatedBytes_; } |
| 4112 | } |
| 4113 | public int RepeatedBytesCount { |
| 4114 | get { return result.RepeatedBytesCount; } |
| 4115 | } |
| 4116 | public pb::ByteString GetRepeatedBytes(int index) { |
| 4117 | return result.GetRepeatedBytes(index); |
| 4118 | } |
| 4119 | public Builder SetRepeatedBytes(int index, pb::ByteString value) { |
Jon Skeet | 642a814 | 2009-01-27 12:25:21 +0000 | [diff] [blame] | 4120 | pb::ThrowHelper.ThrowIfNull(value, "value"); |
Jon Skeet | 6803686 | 2008-10-22 13:30:34 +0100 | [diff] [blame] | 4121 | result.repeatedBytes_[index] = value; |
| 4122 | return this; |
| 4123 | } |
| 4124 | public Builder AddRepeatedBytes(pb::ByteString value) { |
Jon Skeet | 642a814 | 2009-01-27 12:25:21 +0000 | [diff] [blame] | 4125 | pb::ThrowHelper.ThrowIfNull(value, "value"); |
Jon Skeet | 6803686 | 2008-10-22 13:30:34 +0100 | [diff] [blame] | 4126 | result.repeatedBytes_.Add(value); |
| 4127 | return this; |
| 4128 | } |
| 4129 | public Builder AddRangeRepeatedBytes(scg::IEnumerable<pb::ByteString> values) { |
| 4130 | base.AddRange(values, result.repeatedBytes_); |
| 4131 | return this; |
| 4132 | } |
| 4133 | public Builder ClearRepeatedBytes() { |
| 4134 | result.repeatedBytes_.Clear(); |
| 4135 | return this; |
| 4136 | } |
| 4137 | |
| 4138 | public scg::IList<global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.RepeatedGroup> RepeatedGroupList { |
| 4139 | get { return result.repeatedGroup_; } |
| 4140 | } |
| 4141 | public int RepeatedGroupCount { |
| 4142 | get { return result.RepeatedGroupCount; } |
| 4143 | } |
| 4144 | public global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.RepeatedGroup GetRepeatedGroup(int index) { |
| 4145 | return result.GetRepeatedGroup(index); |
| 4146 | } |
| 4147 | public Builder SetRepeatedGroup(int index, global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.RepeatedGroup value) { |
Jon Skeet | 642a814 | 2009-01-27 12:25:21 +0000 | [diff] [blame] | 4148 | pb::ThrowHelper.ThrowIfNull(value, "value"); |
Jon Skeet | 6803686 | 2008-10-22 13:30:34 +0100 | [diff] [blame] | 4149 | result.repeatedGroup_[index] = value; |
| 4150 | return this; |
| 4151 | } |
| 4152 | public Builder SetRepeatedGroup(int index, global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.RepeatedGroup.Builder builderForValue) { |
Jon Skeet | 642a814 | 2009-01-27 12:25:21 +0000 | [diff] [blame] | 4153 | pb::ThrowHelper.ThrowIfNull(builderForValue, "builderForValue"); |
Jon Skeet | 6803686 | 2008-10-22 13:30:34 +0100 | [diff] [blame] | 4154 | result.repeatedGroup_[index] = builderForValue.Build(); |
| 4155 | return this; |
| 4156 | } |
| 4157 | public Builder AddRepeatedGroup(global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.RepeatedGroup value) { |
Jon Skeet | 642a814 | 2009-01-27 12:25:21 +0000 | [diff] [blame] | 4158 | pb::ThrowHelper.ThrowIfNull(value, "value"); |
Jon Skeet | 6803686 | 2008-10-22 13:30:34 +0100 | [diff] [blame] | 4159 | result.repeatedGroup_.Add(value); |
| 4160 | return this; |
| 4161 | } |
| 4162 | public Builder AddRepeatedGroup(global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.RepeatedGroup.Builder builderForValue) { |
Jon Skeet | 642a814 | 2009-01-27 12:25:21 +0000 | [diff] [blame] | 4163 | pb::ThrowHelper.ThrowIfNull(builderForValue, "builderForValue"); |
Jon Skeet | 6803686 | 2008-10-22 13:30:34 +0100 | [diff] [blame] | 4164 | result.repeatedGroup_.Add(builderForValue.Build()); |
| 4165 | return this; |
| 4166 | } |
| 4167 | public Builder AddRangeRepeatedGroup(scg::IEnumerable<global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.RepeatedGroup> values) { |
| 4168 | base.AddRange(values, result.repeatedGroup_); |
| 4169 | return this; |
| 4170 | } |
| 4171 | public Builder ClearRepeatedGroup() { |
| 4172 | result.repeatedGroup_.Clear(); |
| 4173 | return this; |
| 4174 | } |
| 4175 | |
| 4176 | public scg::IList<global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedMessage> RepeatedNestedMessageList { |
| 4177 | get { return result.repeatedNestedMessage_; } |
| 4178 | } |
| 4179 | public int RepeatedNestedMessageCount { |
| 4180 | get { return result.RepeatedNestedMessageCount; } |
| 4181 | } |
| 4182 | public global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedMessage GetRepeatedNestedMessage(int index) { |
| 4183 | return result.GetRepeatedNestedMessage(index); |
| 4184 | } |
| 4185 | public Builder SetRepeatedNestedMessage(int index, global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedMessage value) { |
Jon Skeet | 642a814 | 2009-01-27 12:25:21 +0000 | [diff] [blame] | 4186 | pb::ThrowHelper.ThrowIfNull(value, "value"); |
Jon Skeet | 6803686 | 2008-10-22 13:30:34 +0100 | [diff] [blame] | 4187 | result.repeatedNestedMessage_[index] = value; |
| 4188 | return this; |
| 4189 | } |
| 4190 | public Builder SetRepeatedNestedMessage(int index, global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedMessage.Builder builderForValue) { |
Jon Skeet | 642a814 | 2009-01-27 12:25:21 +0000 | [diff] [blame] | 4191 | pb::ThrowHelper.ThrowIfNull(builderForValue, "builderForValue"); |
Jon Skeet | 6803686 | 2008-10-22 13:30:34 +0100 | [diff] [blame] | 4192 | result.repeatedNestedMessage_[index] = builderForValue.Build(); |
| 4193 | return this; |
| 4194 | } |
| 4195 | public Builder AddRepeatedNestedMessage(global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedMessage value) { |
Jon Skeet | 642a814 | 2009-01-27 12:25:21 +0000 | [diff] [blame] | 4196 | pb::ThrowHelper.ThrowIfNull(value, "value"); |
Jon Skeet | 6803686 | 2008-10-22 13:30:34 +0100 | [diff] [blame] | 4197 | result.repeatedNestedMessage_.Add(value); |
| 4198 | return this; |
| 4199 | } |
| 4200 | public Builder AddRepeatedNestedMessage(global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedMessage.Builder builderForValue) { |
Jon Skeet | 642a814 | 2009-01-27 12:25:21 +0000 | [diff] [blame] | 4201 | pb::ThrowHelper.ThrowIfNull(builderForValue, "builderForValue"); |
Jon Skeet | 6803686 | 2008-10-22 13:30:34 +0100 | [diff] [blame] | 4202 | result.repeatedNestedMessage_.Add(builderForValue.Build()); |
| 4203 | return this; |
| 4204 | } |
| 4205 | public Builder AddRangeRepeatedNestedMessage(scg::IEnumerable<global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedMessage> values) { |
| 4206 | base.AddRange(values, result.repeatedNestedMessage_); |
| 4207 | return this; |
| 4208 | } |
| 4209 | public Builder ClearRepeatedNestedMessage() { |
| 4210 | result.repeatedNestedMessage_.Clear(); |
| 4211 | return this; |
| 4212 | } |
| 4213 | |
| 4214 | public scg::IList<global::Google.ProtocolBuffers.TestProtos.ForeignMessage> RepeatedForeignMessageList { |
| 4215 | get { return result.repeatedForeignMessage_; } |
| 4216 | } |
| 4217 | public int RepeatedForeignMessageCount { |
| 4218 | get { return result.RepeatedForeignMessageCount; } |
| 4219 | } |
| 4220 | public global::Google.ProtocolBuffers.TestProtos.ForeignMessage GetRepeatedForeignMessage(int index) { |
| 4221 | return result.GetRepeatedForeignMessage(index); |
| 4222 | } |
| 4223 | public Builder SetRepeatedForeignMessage(int index, global::Google.ProtocolBuffers.TestProtos.ForeignMessage value) { |
Jon Skeet | 642a814 | 2009-01-27 12:25:21 +0000 | [diff] [blame] | 4224 | pb::ThrowHelper.ThrowIfNull(value, "value"); |
Jon Skeet | 6803686 | 2008-10-22 13:30:34 +0100 | [diff] [blame] | 4225 | result.repeatedForeignMessage_[index] = value; |
| 4226 | return this; |
| 4227 | } |
| 4228 | public Builder SetRepeatedForeignMessage(int index, global::Google.ProtocolBuffers.TestProtos.ForeignMessage.Builder builderForValue) { |
Jon Skeet | 642a814 | 2009-01-27 12:25:21 +0000 | [diff] [blame] | 4229 | pb::ThrowHelper.ThrowIfNull(builderForValue, "builderForValue"); |
Jon Skeet | 6803686 | 2008-10-22 13:30:34 +0100 | [diff] [blame] | 4230 | result.repeatedForeignMessage_[index] = builderForValue.Build(); |
| 4231 | return this; |
| 4232 | } |
| 4233 | public Builder AddRepeatedForeignMessage(global::Google.ProtocolBuffers.TestProtos.ForeignMessage value) { |
Jon Skeet | 642a814 | 2009-01-27 12:25:21 +0000 | [diff] [blame] | 4234 | pb::ThrowHelper.ThrowIfNull(value, "value"); |
Jon Skeet | 6803686 | 2008-10-22 13:30:34 +0100 | [diff] [blame] | 4235 | result.repeatedForeignMessage_.Add(value); |
| 4236 | return this; |
| 4237 | } |
| 4238 | public Builder AddRepeatedForeignMessage(global::Google.ProtocolBuffers.TestProtos.ForeignMessage.Builder builderForValue) { |
Jon Skeet | 642a814 | 2009-01-27 12:25:21 +0000 | [diff] [blame] | 4239 | pb::ThrowHelper.ThrowIfNull(builderForValue, "builderForValue"); |
Jon Skeet | 6803686 | 2008-10-22 13:30:34 +0100 | [diff] [blame] | 4240 | result.repeatedForeignMessage_.Add(builderForValue.Build()); |
| 4241 | return this; |
| 4242 | } |
| 4243 | public Builder AddRangeRepeatedForeignMessage(scg::IEnumerable<global::Google.ProtocolBuffers.TestProtos.ForeignMessage> values) { |
| 4244 | base.AddRange(values, result.repeatedForeignMessage_); |
| 4245 | return this; |
| 4246 | } |
| 4247 | public Builder ClearRepeatedForeignMessage() { |
| 4248 | result.repeatedForeignMessage_.Clear(); |
| 4249 | return this; |
| 4250 | } |
| 4251 | |
| 4252 | public scg::IList<global::Google.ProtocolBuffers.TestProtos.ImportMessage> RepeatedImportMessageList { |
| 4253 | get { return result.repeatedImportMessage_; } |
| 4254 | } |
| 4255 | public int RepeatedImportMessageCount { |
| 4256 | get { return result.RepeatedImportMessageCount; } |
| 4257 | } |
| 4258 | public global::Google.ProtocolBuffers.TestProtos.ImportMessage GetRepeatedImportMessage(int index) { |
| 4259 | return result.GetRepeatedImportMessage(index); |
| 4260 | } |
| 4261 | public Builder SetRepeatedImportMessage(int index, global::Google.ProtocolBuffers.TestProtos.ImportMessage value) { |
Jon Skeet | 642a814 | 2009-01-27 12:25:21 +0000 | [diff] [blame] | 4262 | pb::ThrowHelper.ThrowIfNull(value, "value"); |
Jon Skeet | 6803686 | 2008-10-22 13:30:34 +0100 | [diff] [blame] | 4263 | result.repeatedImportMessage_[index] = value; |
| 4264 | return this; |
| 4265 | } |
| 4266 | public Builder SetRepeatedImportMessage(int index, global::Google.ProtocolBuffers.TestProtos.ImportMessage.Builder builderForValue) { |
Jon Skeet | 642a814 | 2009-01-27 12:25:21 +0000 | [diff] [blame] | 4267 | pb::ThrowHelper.ThrowIfNull(builderForValue, "builderForValue"); |
Jon Skeet | 6803686 | 2008-10-22 13:30:34 +0100 | [diff] [blame] | 4268 | result.repeatedImportMessage_[index] = builderForValue.Build(); |
| 4269 | return this; |
| 4270 | } |
| 4271 | public Builder AddRepeatedImportMessage(global::Google.ProtocolBuffers.TestProtos.ImportMessage value) { |
Jon Skeet | 642a814 | 2009-01-27 12:25:21 +0000 | [diff] [blame] | 4272 | pb::ThrowHelper.ThrowIfNull(value, "value"); |
Jon Skeet | 6803686 | 2008-10-22 13:30:34 +0100 | [diff] [blame] | 4273 | result.repeatedImportMessage_.Add(value); |
| 4274 | return this; |
| 4275 | } |
| 4276 | public Builder AddRepeatedImportMessage(global::Google.ProtocolBuffers.TestProtos.ImportMessage.Builder builderForValue) { |
Jon Skeet | 642a814 | 2009-01-27 12:25:21 +0000 | [diff] [blame] | 4277 | pb::ThrowHelper.ThrowIfNull(builderForValue, "builderForValue"); |
Jon Skeet | 6803686 | 2008-10-22 13:30:34 +0100 | [diff] [blame] | 4278 | result.repeatedImportMessage_.Add(builderForValue.Build()); |
| 4279 | return this; |
| 4280 | } |
| 4281 | public Builder AddRangeRepeatedImportMessage(scg::IEnumerable<global::Google.ProtocolBuffers.TestProtos.ImportMessage> values) { |
| 4282 | base.AddRange(values, result.repeatedImportMessage_); |
| 4283 | return this; |
| 4284 | } |
| 4285 | public Builder ClearRepeatedImportMessage() { |
| 4286 | result.repeatedImportMessage_.Clear(); |
| 4287 | return this; |
| 4288 | } |
| 4289 | |
| 4290 | public scg::IList<global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedEnum> RepeatedNestedEnumList { |
| 4291 | get { return result.repeatedNestedEnum_; } |
| 4292 | } |
| 4293 | public int RepeatedNestedEnumCount { |
| 4294 | get { return result.RepeatedNestedEnumCount; } |
| 4295 | } |
| 4296 | public global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedEnum GetRepeatedNestedEnum(int index) { |
| 4297 | return result.GetRepeatedNestedEnum(index); |
| 4298 | } |
| 4299 | public Builder SetRepeatedNestedEnum(int index, global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedEnum value) { |
| 4300 | result.repeatedNestedEnum_[index] = value; |
| 4301 | return this; |
| 4302 | } |
| 4303 | public Builder AddRepeatedNestedEnum(global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedEnum value) { |
| 4304 | result.repeatedNestedEnum_.Add(value); |
| 4305 | return this; |
| 4306 | } |
| 4307 | public Builder AddRangeRepeatedNestedEnum(scg::IEnumerable<global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedEnum> values) { |
| 4308 | base.AddRange(values, result.repeatedNestedEnum_); |
| 4309 | return this; |
| 4310 | } |
| 4311 | public Builder ClearRepeatedNestedEnum() { |
| 4312 | result.repeatedNestedEnum_.Clear(); |
| 4313 | return this; |
| 4314 | } |
| 4315 | |
| 4316 | public scg::IList<global::Google.ProtocolBuffers.TestProtos.ForeignEnum> RepeatedForeignEnumList { |
| 4317 | get { return result.repeatedForeignEnum_; } |
| 4318 | } |
| 4319 | public int RepeatedForeignEnumCount { |
| 4320 | get { return result.RepeatedForeignEnumCount; } |
| 4321 | } |
| 4322 | public global::Google.ProtocolBuffers.TestProtos.ForeignEnum GetRepeatedForeignEnum(int index) { |
| 4323 | return result.GetRepeatedForeignEnum(index); |
| 4324 | } |
| 4325 | public Builder SetRepeatedForeignEnum(int index, global::Google.ProtocolBuffers.TestProtos.ForeignEnum value) { |
| 4326 | result.repeatedForeignEnum_[index] = value; |
| 4327 | return this; |
| 4328 | } |
| 4329 | public Builder AddRepeatedForeignEnum(global::Google.ProtocolBuffers.TestProtos.ForeignEnum value) { |
| 4330 | result.repeatedForeignEnum_.Add(value); |
| 4331 | return this; |
| 4332 | } |
| 4333 | public Builder AddRangeRepeatedForeignEnum(scg::IEnumerable<global::Google.ProtocolBuffers.TestProtos.ForeignEnum> values) { |
| 4334 | base.AddRange(values, result.repeatedForeignEnum_); |
| 4335 | return this; |
| 4336 | } |
| 4337 | public Builder ClearRepeatedForeignEnum() { |
| 4338 | result.repeatedForeignEnum_.Clear(); |
| 4339 | return this; |
| 4340 | } |
| 4341 | |
| 4342 | public scg::IList<global::Google.ProtocolBuffers.TestProtos.ImportEnum> RepeatedImportEnumList { |
| 4343 | get { return result.repeatedImportEnum_; } |
| 4344 | } |
| 4345 | public int RepeatedImportEnumCount { |
| 4346 | get { return result.RepeatedImportEnumCount; } |
| 4347 | } |
| 4348 | public global::Google.ProtocolBuffers.TestProtos.ImportEnum GetRepeatedImportEnum(int index) { |
| 4349 | return result.GetRepeatedImportEnum(index); |
| 4350 | } |
| 4351 | public Builder SetRepeatedImportEnum(int index, global::Google.ProtocolBuffers.TestProtos.ImportEnum value) { |
| 4352 | result.repeatedImportEnum_[index] = value; |
| 4353 | return this; |
| 4354 | } |
| 4355 | public Builder AddRepeatedImportEnum(global::Google.ProtocolBuffers.TestProtos.ImportEnum value) { |
| 4356 | result.repeatedImportEnum_.Add(value); |
| 4357 | return this; |
| 4358 | } |
| 4359 | public Builder AddRangeRepeatedImportEnum(scg::IEnumerable<global::Google.ProtocolBuffers.TestProtos.ImportEnum> values) { |
| 4360 | base.AddRange(values, result.repeatedImportEnum_); |
| 4361 | return this; |
| 4362 | } |
| 4363 | public Builder ClearRepeatedImportEnum() { |
| 4364 | result.repeatedImportEnum_.Clear(); |
| 4365 | return this; |
| 4366 | } |
| 4367 | |
| 4368 | public scg::IList<string> RepeatedStringPieceList { |
| 4369 | get { return result.repeatedStringPiece_; } |
| 4370 | } |
| 4371 | public int RepeatedStringPieceCount { |
| 4372 | get { return result.RepeatedStringPieceCount; } |
| 4373 | } |
| 4374 | public string GetRepeatedStringPiece(int index) { |
| 4375 | return result.GetRepeatedStringPiece(index); |
| 4376 | } |
| 4377 | public Builder SetRepeatedStringPiece(int index, string value) { |
Jon Skeet | 642a814 | 2009-01-27 12:25:21 +0000 | [diff] [blame] | 4378 | pb::ThrowHelper.ThrowIfNull(value, "value"); |
Jon Skeet | 6803686 | 2008-10-22 13:30:34 +0100 | [diff] [blame] | 4379 | result.repeatedStringPiece_[index] = value; |
| 4380 | return this; |
| 4381 | } |
| 4382 | public Builder AddRepeatedStringPiece(string value) { |
Jon Skeet | 642a814 | 2009-01-27 12:25:21 +0000 | [diff] [blame] | 4383 | pb::ThrowHelper.ThrowIfNull(value, "value"); |
Jon Skeet | 6803686 | 2008-10-22 13:30:34 +0100 | [diff] [blame] | 4384 | result.repeatedStringPiece_.Add(value); |
| 4385 | return this; |
| 4386 | } |
| 4387 | public Builder AddRangeRepeatedStringPiece(scg::IEnumerable<string> values) { |
| 4388 | base.AddRange(values, result.repeatedStringPiece_); |
| 4389 | return this; |
| 4390 | } |
| 4391 | public Builder ClearRepeatedStringPiece() { |
| 4392 | result.repeatedStringPiece_.Clear(); |
| 4393 | return this; |
| 4394 | } |
| 4395 | |
| 4396 | public scg::IList<string> RepeatedCordList { |
| 4397 | get { return result.repeatedCord_; } |
| 4398 | } |
| 4399 | public int RepeatedCordCount { |
| 4400 | get { return result.RepeatedCordCount; } |
| 4401 | } |
| 4402 | public string GetRepeatedCord(int index) { |
| 4403 | return result.GetRepeatedCord(index); |
| 4404 | } |
| 4405 | public Builder SetRepeatedCord(int index, string value) { |
Jon Skeet | 642a814 | 2009-01-27 12:25:21 +0000 | [diff] [blame] | 4406 | pb::ThrowHelper.ThrowIfNull(value, "value"); |
Jon Skeet | 6803686 | 2008-10-22 13:30:34 +0100 | [diff] [blame] | 4407 | result.repeatedCord_[index] = value; |
| 4408 | return this; |
| 4409 | } |
| 4410 | public Builder AddRepeatedCord(string value) { |
Jon Skeet | 642a814 | 2009-01-27 12:25:21 +0000 | [diff] [blame] | 4411 | pb::ThrowHelper.ThrowIfNull(value, "value"); |
Jon Skeet | 6803686 | 2008-10-22 13:30:34 +0100 | [diff] [blame] | 4412 | result.repeatedCord_.Add(value); |
| 4413 | return this; |
| 4414 | } |
| 4415 | public Builder AddRangeRepeatedCord(scg::IEnumerable<string> values) { |
| 4416 | base.AddRange(values, result.repeatedCord_); |
| 4417 | return this; |
| 4418 | } |
| 4419 | public Builder ClearRepeatedCord() { |
| 4420 | result.repeatedCord_.Clear(); |
| 4421 | return this; |
| 4422 | } |
| 4423 | |
| 4424 | public bool HasDefaultInt32 { |
| 4425 | get { return result.HasDefaultInt32; } |
| 4426 | } |
| 4427 | public int DefaultInt32 { |
| 4428 | get { return result.DefaultInt32; } |
| 4429 | set { SetDefaultInt32(value); } |
| 4430 | } |
| 4431 | public Builder SetDefaultInt32(int value) { |
| 4432 | result.hasDefaultInt32 = true; |
| 4433 | result.defaultInt32_ = value; |
| 4434 | return this; |
| 4435 | } |
| 4436 | public Builder ClearDefaultInt32() { |
| 4437 | result.hasDefaultInt32 = false; |
| 4438 | result.defaultInt32_ = 41; |
| 4439 | return this; |
| 4440 | } |
| 4441 | |
| 4442 | public bool HasDefaultInt64 { |
| 4443 | get { return result.HasDefaultInt64; } |
| 4444 | } |
| 4445 | public long DefaultInt64 { |
| 4446 | get { return result.DefaultInt64; } |
| 4447 | set { SetDefaultInt64(value); } |
| 4448 | } |
| 4449 | public Builder SetDefaultInt64(long value) { |
| 4450 | result.hasDefaultInt64 = true; |
| 4451 | result.defaultInt64_ = value; |
| 4452 | return this; |
| 4453 | } |
| 4454 | public Builder ClearDefaultInt64() { |
| 4455 | result.hasDefaultInt64 = false; |
| 4456 | result.defaultInt64_ = 42L; |
| 4457 | return this; |
| 4458 | } |
| 4459 | |
| 4460 | public bool HasDefaultUint32 { |
| 4461 | get { return result.HasDefaultUint32; } |
| 4462 | } |
| 4463 | public uint DefaultUint32 { |
| 4464 | get { return result.DefaultUint32; } |
| 4465 | set { SetDefaultUint32(value); } |
| 4466 | } |
| 4467 | public Builder SetDefaultUint32(uint value) { |
| 4468 | result.hasDefaultUint32 = true; |
| 4469 | result.defaultUint32_ = value; |
| 4470 | return this; |
| 4471 | } |
| 4472 | public Builder ClearDefaultUint32() { |
| 4473 | result.hasDefaultUint32 = false; |
| 4474 | result.defaultUint32_ = 43; |
| 4475 | return this; |
| 4476 | } |
| 4477 | |
| 4478 | public bool HasDefaultUint64 { |
| 4479 | get { return result.HasDefaultUint64; } |
| 4480 | } |
| 4481 | public ulong DefaultUint64 { |
| 4482 | get { return result.DefaultUint64; } |
| 4483 | set { SetDefaultUint64(value); } |
| 4484 | } |
| 4485 | public Builder SetDefaultUint64(ulong value) { |
| 4486 | result.hasDefaultUint64 = true; |
| 4487 | result.defaultUint64_ = value; |
| 4488 | return this; |
| 4489 | } |
| 4490 | public Builder ClearDefaultUint64() { |
| 4491 | result.hasDefaultUint64 = false; |
| 4492 | result.defaultUint64_ = 44UL; |
| 4493 | return this; |
| 4494 | } |
| 4495 | |
| 4496 | public bool HasDefaultSint32 { |
| 4497 | get { return result.HasDefaultSint32; } |
| 4498 | } |
| 4499 | public int DefaultSint32 { |
| 4500 | get { return result.DefaultSint32; } |
| 4501 | set { SetDefaultSint32(value); } |
| 4502 | } |
| 4503 | public Builder SetDefaultSint32(int value) { |
| 4504 | result.hasDefaultSint32 = true; |
| 4505 | result.defaultSint32_ = value; |
| 4506 | return this; |
| 4507 | } |
| 4508 | public Builder ClearDefaultSint32() { |
| 4509 | result.hasDefaultSint32 = false; |
| 4510 | result.defaultSint32_ = -45; |
| 4511 | return this; |
| 4512 | } |
| 4513 | |
| 4514 | public bool HasDefaultSint64 { |
| 4515 | get { return result.HasDefaultSint64; } |
| 4516 | } |
| 4517 | public long DefaultSint64 { |
| 4518 | get { return result.DefaultSint64; } |
| 4519 | set { SetDefaultSint64(value); } |
| 4520 | } |
| 4521 | public Builder SetDefaultSint64(long value) { |
| 4522 | result.hasDefaultSint64 = true; |
| 4523 | result.defaultSint64_ = value; |
| 4524 | return this; |
| 4525 | } |
| 4526 | public Builder ClearDefaultSint64() { |
| 4527 | result.hasDefaultSint64 = false; |
| 4528 | result.defaultSint64_ = 46; |
| 4529 | return this; |
| 4530 | } |
| 4531 | |
| 4532 | public bool HasDefaultFixed32 { |
| 4533 | get { return result.HasDefaultFixed32; } |
| 4534 | } |
| 4535 | public uint DefaultFixed32 { |
| 4536 | get { return result.DefaultFixed32; } |
| 4537 | set { SetDefaultFixed32(value); } |
| 4538 | } |
| 4539 | public Builder SetDefaultFixed32(uint value) { |
| 4540 | result.hasDefaultFixed32 = true; |
| 4541 | result.defaultFixed32_ = value; |
| 4542 | return this; |
| 4543 | } |
| 4544 | public Builder ClearDefaultFixed32() { |
| 4545 | result.hasDefaultFixed32 = false; |
| 4546 | result.defaultFixed32_ = 47; |
| 4547 | return this; |
| 4548 | } |
| 4549 | |
| 4550 | public bool HasDefaultFixed64 { |
| 4551 | get { return result.HasDefaultFixed64; } |
| 4552 | } |
| 4553 | public ulong DefaultFixed64 { |
| 4554 | get { return result.DefaultFixed64; } |
| 4555 | set { SetDefaultFixed64(value); } |
| 4556 | } |
| 4557 | public Builder SetDefaultFixed64(ulong value) { |
| 4558 | result.hasDefaultFixed64 = true; |
| 4559 | result.defaultFixed64_ = value; |
| 4560 | return this; |
| 4561 | } |
| 4562 | public Builder ClearDefaultFixed64() { |
| 4563 | result.hasDefaultFixed64 = false; |
| 4564 | result.defaultFixed64_ = 48; |
| 4565 | return this; |
| 4566 | } |
| 4567 | |
| 4568 | public bool HasDefaultSfixed32 { |
| 4569 | get { return result.HasDefaultSfixed32; } |
| 4570 | } |
| 4571 | public int DefaultSfixed32 { |
| 4572 | get { return result.DefaultSfixed32; } |
| 4573 | set { SetDefaultSfixed32(value); } |
| 4574 | } |
| 4575 | public Builder SetDefaultSfixed32(int value) { |
| 4576 | result.hasDefaultSfixed32 = true; |
| 4577 | result.defaultSfixed32_ = value; |
| 4578 | return this; |
| 4579 | } |
| 4580 | public Builder ClearDefaultSfixed32() { |
| 4581 | result.hasDefaultSfixed32 = false; |
| 4582 | result.defaultSfixed32_ = 49; |
| 4583 | return this; |
| 4584 | } |
| 4585 | |
| 4586 | public bool HasDefaultSfixed64 { |
| 4587 | get { return result.HasDefaultSfixed64; } |
| 4588 | } |
| 4589 | public long DefaultSfixed64 { |
| 4590 | get { return result.DefaultSfixed64; } |
| 4591 | set { SetDefaultSfixed64(value); } |
| 4592 | } |
| 4593 | public Builder SetDefaultSfixed64(long value) { |
| 4594 | result.hasDefaultSfixed64 = true; |
| 4595 | result.defaultSfixed64_ = value; |
| 4596 | return this; |
| 4597 | } |
| 4598 | public Builder ClearDefaultSfixed64() { |
| 4599 | result.hasDefaultSfixed64 = false; |
| 4600 | result.defaultSfixed64_ = -50; |
| 4601 | return this; |
| 4602 | } |
| 4603 | |
| 4604 | public bool HasDefaultFloat { |
| 4605 | get { return result.HasDefaultFloat; } |
| 4606 | } |
| 4607 | public float DefaultFloat { |
| 4608 | get { return result.DefaultFloat; } |
| 4609 | set { SetDefaultFloat(value); } |
| 4610 | } |
| 4611 | public Builder SetDefaultFloat(float value) { |
| 4612 | result.hasDefaultFloat = true; |
| 4613 | result.defaultFloat_ = value; |
| 4614 | return this; |
| 4615 | } |
| 4616 | public Builder ClearDefaultFloat() { |
| 4617 | result.hasDefaultFloat = false; |
| 4618 | result.defaultFloat_ = 51.5F; |
| 4619 | return this; |
| 4620 | } |
| 4621 | |
| 4622 | public bool HasDefaultDouble { |
| 4623 | get { return result.HasDefaultDouble; } |
| 4624 | } |
| 4625 | public double DefaultDouble { |
| 4626 | get { return result.DefaultDouble; } |
| 4627 | set { SetDefaultDouble(value); } |
| 4628 | } |
| 4629 | public Builder SetDefaultDouble(double value) { |
| 4630 | result.hasDefaultDouble = true; |
| 4631 | result.defaultDouble_ = value; |
| 4632 | return this; |
| 4633 | } |
| 4634 | public Builder ClearDefaultDouble() { |
| 4635 | result.hasDefaultDouble = false; |
| 4636 | result.defaultDouble_ = 52000D; |
| 4637 | return this; |
| 4638 | } |
| 4639 | |
| 4640 | public bool HasDefaultBool { |
| 4641 | get { return result.HasDefaultBool; } |
| 4642 | } |
| 4643 | public bool DefaultBool { |
| 4644 | get { return result.DefaultBool; } |
| 4645 | set { SetDefaultBool(value); } |
| 4646 | } |
| 4647 | public Builder SetDefaultBool(bool value) { |
| 4648 | result.hasDefaultBool = true; |
| 4649 | result.defaultBool_ = value; |
| 4650 | return this; |
| 4651 | } |
| 4652 | public Builder ClearDefaultBool() { |
| 4653 | result.hasDefaultBool = false; |
| 4654 | result.defaultBool_ = true; |
| 4655 | return this; |
| 4656 | } |
| 4657 | |
| 4658 | public bool HasDefaultString { |
| 4659 | get { return result.HasDefaultString; } |
| 4660 | } |
| 4661 | public string DefaultString { |
| 4662 | get { return result.DefaultString; } |
| 4663 | set { SetDefaultString(value); } |
| 4664 | } |
| 4665 | public Builder SetDefaultString(string value) { |
Jon Skeet | 642a814 | 2009-01-27 12:25:21 +0000 | [diff] [blame] | 4666 | pb::ThrowHelper.ThrowIfNull(value, "value"); |
Jon Skeet | 6803686 | 2008-10-22 13:30:34 +0100 | [diff] [blame] | 4667 | result.hasDefaultString = true; |
| 4668 | result.defaultString_ = value; |
| 4669 | return this; |
| 4670 | } |
| 4671 | public Builder ClearDefaultString() { |
| 4672 | result.hasDefaultString = false; |
| 4673 | result.defaultString_ = "hello"; |
| 4674 | return this; |
| 4675 | } |
| 4676 | |
| 4677 | public bool HasDefaultBytes { |
| 4678 | get { return result.HasDefaultBytes; } |
| 4679 | } |
| 4680 | public pb::ByteString DefaultBytes { |
| 4681 | get { return result.DefaultBytes; } |
| 4682 | set { SetDefaultBytes(value); } |
| 4683 | } |
| 4684 | public Builder SetDefaultBytes(pb::ByteString value) { |
Jon Skeet | 642a814 | 2009-01-27 12:25:21 +0000 | [diff] [blame] | 4685 | pb::ThrowHelper.ThrowIfNull(value, "value"); |
Jon Skeet | 6803686 | 2008-10-22 13:30:34 +0100 | [diff] [blame] | 4686 | result.hasDefaultBytes = true; |
| 4687 | result.defaultBytes_ = value; |
| 4688 | return this; |
| 4689 | } |
| 4690 | public Builder ClearDefaultBytes() { |
| 4691 | result.hasDefaultBytes = false; |
| 4692 | result.defaultBytes_ = (pb::ByteString) global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Descriptor.Fields[62].DefaultValue; |
| 4693 | return this; |
| 4694 | } |
| 4695 | |
| 4696 | public bool HasDefaultNestedEnum { |
| 4697 | get { return result.HasDefaultNestedEnum; } |
| 4698 | } |
| 4699 | public global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedEnum DefaultNestedEnum { |
| 4700 | get { return result.DefaultNestedEnum; } |
| 4701 | set { SetDefaultNestedEnum(value); } |
| 4702 | } |
| 4703 | public Builder SetDefaultNestedEnum(global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedEnum value) { |
| 4704 | result.hasDefaultNestedEnum = true; |
| 4705 | result.defaultNestedEnum_ = value; |
| 4706 | return this; |
| 4707 | } |
| 4708 | public Builder ClearDefaultNestedEnum() { |
| 4709 | result.hasDefaultNestedEnum = false; |
| 4710 | result.defaultNestedEnum_ = global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedEnum.BAR; |
| 4711 | return this; |
| 4712 | } |
| 4713 | |
| 4714 | public bool HasDefaultForeignEnum { |
| 4715 | get { return result.HasDefaultForeignEnum; } |
| 4716 | } |
| 4717 | public global::Google.ProtocolBuffers.TestProtos.ForeignEnum DefaultForeignEnum { |
| 4718 | get { return result.DefaultForeignEnum; } |
| 4719 | set { SetDefaultForeignEnum(value); } |
| 4720 | } |
| 4721 | public Builder SetDefaultForeignEnum(global::Google.ProtocolBuffers.TestProtos.ForeignEnum value) { |
| 4722 | result.hasDefaultForeignEnum = true; |
| 4723 | result.defaultForeignEnum_ = value; |
| 4724 | return this; |
| 4725 | } |
| 4726 | public Builder ClearDefaultForeignEnum() { |
| 4727 | result.hasDefaultForeignEnum = false; |
| 4728 | result.defaultForeignEnum_ = global::Google.ProtocolBuffers.TestProtos.ForeignEnum.FOREIGN_BAR; |
| 4729 | return this; |
| 4730 | } |
| 4731 | |
| 4732 | public bool HasDefaultImportEnum { |
| 4733 | get { return result.HasDefaultImportEnum; } |
| 4734 | } |
| 4735 | public global::Google.ProtocolBuffers.TestProtos.ImportEnum DefaultImportEnum { |
| 4736 | get { return result.DefaultImportEnum; } |
| 4737 | set { SetDefaultImportEnum(value); } |
| 4738 | } |
| 4739 | public Builder SetDefaultImportEnum(global::Google.ProtocolBuffers.TestProtos.ImportEnum value) { |
| 4740 | result.hasDefaultImportEnum = true; |
| 4741 | result.defaultImportEnum_ = value; |
| 4742 | return this; |
| 4743 | } |
| 4744 | public Builder ClearDefaultImportEnum() { |
| 4745 | result.hasDefaultImportEnum = false; |
| 4746 | result.defaultImportEnum_ = global::Google.ProtocolBuffers.TestProtos.ImportEnum.IMPORT_BAR; |
| 4747 | return this; |
| 4748 | } |
| 4749 | |
| 4750 | public bool HasDefaultStringPiece { |
| 4751 | get { return result.HasDefaultStringPiece; } |
| 4752 | } |
| 4753 | public string DefaultStringPiece { |
| 4754 | get { return result.DefaultStringPiece; } |
| 4755 | set { SetDefaultStringPiece(value); } |
| 4756 | } |
| 4757 | public Builder SetDefaultStringPiece(string value) { |
Jon Skeet | 642a814 | 2009-01-27 12:25:21 +0000 | [diff] [blame] | 4758 | pb::ThrowHelper.ThrowIfNull(value, "value"); |
Jon Skeet | 6803686 | 2008-10-22 13:30:34 +0100 | [diff] [blame] | 4759 | result.hasDefaultStringPiece = true; |
| 4760 | result.defaultStringPiece_ = value; |
| 4761 | return this; |
| 4762 | } |
| 4763 | public Builder ClearDefaultStringPiece() { |
| 4764 | result.hasDefaultStringPiece = false; |
| 4765 | result.defaultStringPiece_ = "abc"; |
| 4766 | return this; |
| 4767 | } |
| 4768 | |
| 4769 | public bool HasDefaultCord { |
| 4770 | get { return result.HasDefaultCord; } |
| 4771 | } |
| 4772 | public string DefaultCord { |
| 4773 | get { return result.DefaultCord; } |
| 4774 | set { SetDefaultCord(value); } |
| 4775 | } |
| 4776 | public Builder SetDefaultCord(string value) { |
Jon Skeet | 642a814 | 2009-01-27 12:25:21 +0000 | [diff] [blame] | 4777 | pb::ThrowHelper.ThrowIfNull(value, "value"); |
Jon Skeet | 6803686 | 2008-10-22 13:30:34 +0100 | [diff] [blame] | 4778 | result.hasDefaultCord = true; |
| 4779 | result.defaultCord_ = value; |
| 4780 | return this; |
| 4781 | } |
| 4782 | public Builder ClearDefaultCord() { |
| 4783 | result.hasDefaultCord = false; |
| 4784 | result.defaultCord_ = "123"; |
| 4785 | return this; |
| 4786 | } |
| 4787 | } |
| 4788 | } |
| 4789 | |
| 4790 | public sealed partial class ForeignMessage : pb::GeneratedMessage<ForeignMessage, ForeignMessage.Builder> { |
| 4791 | private static readonly ForeignMessage defaultInstance = new Builder().BuildPartial(); |
| 4792 | public static ForeignMessage DefaultInstance { |
| 4793 | get { return defaultInstance; } |
| 4794 | } |
| 4795 | |
| 4796 | public override ForeignMessage DefaultInstanceForType { |
| 4797 | get { return defaultInstance; } |
| 4798 | } |
| 4799 | |
| 4800 | protected override ForeignMessage ThisMessage { |
| 4801 | get { return this; } |
| 4802 | } |
| 4803 | |
| 4804 | public static pbd::MessageDescriptor Descriptor { |
| 4805 | get { return global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.internal__static_protobuf_unittest_ForeignMessage__Descriptor; } |
| 4806 | } |
| 4807 | |
| 4808 | protected override pb::FieldAccess.FieldAccessorTable<ForeignMessage, ForeignMessage.Builder> InternalFieldAccessors { |
| 4809 | get { return global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.internal__static_protobuf_unittest_ForeignMessage__FieldAccessorTable; } |
| 4810 | } |
| 4811 | |
| 4812 | private bool hasC; |
| 4813 | private int c_ = 0; |
| 4814 | public bool HasC { |
| 4815 | get { return hasC; } |
| 4816 | } |
| 4817 | public int C { |
| 4818 | get { return c_; } |
| 4819 | } |
| 4820 | |
| 4821 | public override bool IsInitialized { |
| 4822 | get { |
| 4823 | return true; |
| 4824 | } |
| 4825 | } |
| 4826 | |
| 4827 | public override void WriteTo(pb::CodedOutputStream output) { |
| 4828 | if (HasC) { |
| 4829 | output.WriteInt32(1, C); |
| 4830 | } |
| 4831 | UnknownFields.WriteTo(output); |
| 4832 | } |
| 4833 | |
| 4834 | private int memoizedSerializedSize = -1; |
| 4835 | public override int SerializedSize { |
| 4836 | get { |
| 4837 | int size = memoizedSerializedSize; |
| 4838 | if (size != -1) return size; |
| 4839 | |
| 4840 | size = 0; |
| 4841 | if (HasC) { |
| 4842 | size += pb::CodedOutputStream.ComputeInt32Size(1, C); |
| 4843 | } |
| 4844 | size += UnknownFields.SerializedSize; |
| 4845 | memoizedSerializedSize = size; |
| 4846 | return size; |
| 4847 | } |
| 4848 | } |
| 4849 | |
| 4850 | public static ForeignMessage ParseFrom(pb::ByteString data) { |
| 4851 | return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed(); |
| 4852 | } |
| 4853 | public static ForeignMessage ParseFrom(pb::ByteString data, pb::ExtensionRegistry extensionRegistry) { |
| 4854 | return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed(); |
| 4855 | } |
| 4856 | public static ForeignMessage ParseFrom(byte[] data) { |
| 4857 | return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed(); |
| 4858 | } |
| 4859 | public static ForeignMessage ParseFrom(byte[] data, pb::ExtensionRegistry extensionRegistry) { |
| 4860 | return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed(); |
| 4861 | } |
| 4862 | public static ForeignMessage ParseFrom(global::System.IO.Stream input) { |
| 4863 | return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed(); |
| 4864 | } |
| 4865 | public static ForeignMessage ParseFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) { |
| 4866 | return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed(); |
| 4867 | } |
| 4868 | public static ForeignMessage ParseFrom(pb::CodedInputStream input) { |
| 4869 | return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed(); |
| 4870 | } |
| 4871 | public static ForeignMessage ParseFrom(pb::CodedInputStream input, pb::ExtensionRegistry extensionRegistry) { |
| 4872 | return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed(); |
| 4873 | } |
| 4874 | public static Builder CreateBuilder() { return new Builder(); } |
| 4875 | public override Builder CreateBuilderForType() { return new Builder(); } |
| 4876 | public static Builder CreateBuilder(ForeignMessage prototype) { |
| 4877 | return (Builder) new Builder().MergeFrom(prototype); |
| 4878 | } |
| 4879 | |
| 4880 | public sealed partial class Builder : pb::GeneratedBuilder<ForeignMessage, Builder> { |
| 4881 | protected override Builder ThisBuilder { |
| 4882 | get { return this; } |
| 4883 | } |
| 4884 | public Builder() {} |
| 4885 | |
| 4886 | ForeignMessage result = new ForeignMessage(); |
| 4887 | |
| 4888 | protected override ForeignMessage MessageBeingBuilt { |
| 4889 | get { return result; } |
| 4890 | } |
| 4891 | |
| 4892 | public override Builder Clear() { |
| 4893 | result = new ForeignMessage(); |
| 4894 | return this; |
| 4895 | } |
| 4896 | |
| 4897 | public override Builder Clone() { |
| 4898 | return new Builder().MergeFrom(result); |
| 4899 | } |
| 4900 | |
| 4901 | public override pbd::MessageDescriptor DescriptorForType { |
| 4902 | get { return ForeignMessage.Descriptor; } |
| 4903 | } |
| 4904 | |
| 4905 | public override ForeignMessage DefaultInstanceForType { |
| 4906 | get { return ForeignMessage.DefaultInstance; } |
| 4907 | } |
| 4908 | |
| 4909 | public override ForeignMessage BuildPartial() { |
| 4910 | ForeignMessage returnMe = result; |
| 4911 | result = null; |
| 4912 | return returnMe; |
| 4913 | } |
| 4914 | |
| 4915 | public override Builder MergeFrom(pb::IMessage other) { |
| 4916 | if (other is ForeignMessage) { |
| 4917 | return MergeFrom((ForeignMessage) other); |
| 4918 | } else { |
| 4919 | base.MergeFrom(other); |
| 4920 | return this; |
| 4921 | } |
| 4922 | } |
| 4923 | |
| 4924 | public override Builder MergeFrom(ForeignMessage other) { |
| 4925 | if (other == ForeignMessage.DefaultInstance) return this; |
| 4926 | if (other.HasC) { |
| 4927 | C = other.C; |
| 4928 | } |
| 4929 | this.MergeUnknownFields(other.UnknownFields); |
| 4930 | return this; |
| 4931 | } |
| 4932 | |
| 4933 | public override Builder MergeFrom(pb::CodedInputStream input) { |
| 4934 | return MergeFrom(input, pb::ExtensionRegistry.Empty); |
| 4935 | } |
| 4936 | |
| 4937 | public override Builder MergeFrom(pb::CodedInputStream input, pb::ExtensionRegistry extensionRegistry) { |
| 4938 | pb::UnknownFieldSet.Builder unknownFields = pb::UnknownFieldSet.CreateBuilder(this.UnknownFields); |
| 4939 | while (true) { |
| 4940 | uint tag = input.ReadTag(); |
| 4941 | switch (tag) { |
| 4942 | case 0: { |
| 4943 | this.UnknownFields = unknownFields.Build(); |
| 4944 | return this; |
| 4945 | } |
| 4946 | default: { |
| 4947 | if (!ParseUnknownField(input, unknownFields, extensionRegistry, tag)) { |
| 4948 | this.UnknownFields = unknownFields.Build(); |
| 4949 | return this; |
| 4950 | } |
| 4951 | break; |
| 4952 | } |
| 4953 | case 8: { |
| 4954 | C = input.ReadInt32(); |
| 4955 | break; |
| 4956 | } |
| 4957 | } |
| 4958 | } |
| 4959 | } |
| 4960 | |
| 4961 | |
| 4962 | public bool HasC { |
| 4963 | get { return result.HasC; } |
| 4964 | } |
| 4965 | public int C { |
| 4966 | get { return result.C; } |
| 4967 | set { SetC(value); } |
| 4968 | } |
| 4969 | public Builder SetC(int value) { |
| 4970 | result.hasC = true; |
| 4971 | result.c_ = value; |
| 4972 | return this; |
| 4973 | } |
| 4974 | public Builder ClearC() { |
| 4975 | result.hasC = false; |
| 4976 | result.c_ = 0; |
| 4977 | return this; |
| 4978 | } |
| 4979 | } |
| 4980 | } |
| 4981 | |
| 4982 | public sealed partial class TestAllExtensions : pb::ExtendableMessage<TestAllExtensions, TestAllExtensions.Builder> { |
| 4983 | private static readonly TestAllExtensions defaultInstance = new Builder().BuildPartial(); |
| 4984 | public static TestAllExtensions DefaultInstance { |
| 4985 | get { return defaultInstance; } |
| 4986 | } |
| 4987 | |
| 4988 | public override TestAllExtensions DefaultInstanceForType { |
| 4989 | get { return defaultInstance; } |
| 4990 | } |
| 4991 | |
| 4992 | protected override TestAllExtensions ThisMessage { |
| 4993 | get { return this; } |
| 4994 | } |
| 4995 | |
| 4996 | public static pbd::MessageDescriptor Descriptor { |
| 4997 | get { return global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.internal__static_protobuf_unittest_TestAllExtensions__Descriptor; } |
| 4998 | } |
| 4999 | |
| 5000 | protected override pb::FieldAccess.FieldAccessorTable<TestAllExtensions, TestAllExtensions.Builder> InternalFieldAccessors { |
| 5001 | get { return global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.internal__static_protobuf_unittest_TestAllExtensions__FieldAccessorTable; } |
| 5002 | } |
| 5003 | |
| 5004 | public override bool IsInitialized { |
| 5005 | get { |
| 5006 | if (!ExtensionsAreInitialized) return false; |
| 5007 | return true; |
| 5008 | } |
| 5009 | } |
| 5010 | |
| 5011 | public override void WriteTo(pb::CodedOutputStream output) { |
| 5012 | pb::ExtendableMessage<TestAllExtensions, TestAllExtensions.Builder>.ExtensionWriter extensionWriter = CreateExtensionWriter(this); |
| 5013 | extensionWriter.WriteUntil(536870912, output); |
| 5014 | UnknownFields.WriteTo(output); |
| 5015 | } |
| 5016 | |
| 5017 | private int memoizedSerializedSize = -1; |
| 5018 | public override int SerializedSize { |
| 5019 | get { |
| 5020 | int size = memoizedSerializedSize; |
| 5021 | if (size != -1) return size; |
| 5022 | |
| 5023 | size = 0; |
| 5024 | size += ExtensionsSerializedSize; |
| 5025 | size += UnknownFields.SerializedSize; |
| 5026 | memoizedSerializedSize = size; |
| 5027 | return size; |
| 5028 | } |
| 5029 | } |
| 5030 | |
| 5031 | public static TestAllExtensions ParseFrom(pb::ByteString data) { |
| 5032 | return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed(); |
| 5033 | } |
| 5034 | public static TestAllExtensions ParseFrom(pb::ByteString data, pb::ExtensionRegistry extensionRegistry) { |
| 5035 | return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed(); |
| 5036 | } |
| 5037 | public static TestAllExtensions ParseFrom(byte[] data) { |
| 5038 | return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed(); |
| 5039 | } |
| 5040 | public static TestAllExtensions ParseFrom(byte[] data, pb::ExtensionRegistry extensionRegistry) { |
| 5041 | return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed(); |
| 5042 | } |
| 5043 | public static TestAllExtensions ParseFrom(global::System.IO.Stream input) { |
| 5044 | return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed(); |
| 5045 | } |
| 5046 | public static TestAllExtensions ParseFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) { |
| 5047 | return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed(); |
| 5048 | } |
| 5049 | public static TestAllExtensions ParseFrom(pb::CodedInputStream input) { |
| 5050 | return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed(); |
| 5051 | } |
| 5052 | public static TestAllExtensions ParseFrom(pb::CodedInputStream input, pb::ExtensionRegistry extensionRegistry) { |
| 5053 | return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed(); |
| 5054 | } |
| 5055 | public static Builder CreateBuilder() { return new Builder(); } |
| 5056 | public override Builder CreateBuilderForType() { return new Builder(); } |
| 5057 | public static Builder CreateBuilder(TestAllExtensions prototype) { |
| 5058 | return (Builder) new Builder().MergeFrom(prototype); |
| 5059 | } |
| 5060 | |
| 5061 | public sealed partial class Builder : pb::ExtendableBuilder<TestAllExtensions, Builder> { |
| 5062 | protected override Builder ThisBuilder { |
| 5063 | get { return this; } |
| 5064 | } |
| 5065 | public Builder() {} |
| 5066 | |
| 5067 | TestAllExtensions result = new TestAllExtensions(); |
| 5068 | |
| 5069 | protected override TestAllExtensions MessageBeingBuilt { |
| 5070 | get { return result; } |
| 5071 | } |
| 5072 | |
| 5073 | public override Builder Clear() { |
| 5074 | result = new TestAllExtensions(); |
| 5075 | return this; |
| 5076 | } |
| 5077 | |
| 5078 | public override Builder Clone() { |
| 5079 | return new Builder().MergeFrom(result); |
| 5080 | } |
| 5081 | |
| 5082 | public override pbd::MessageDescriptor DescriptorForType { |
| 5083 | get { return TestAllExtensions.Descriptor; } |
| 5084 | } |
| 5085 | |
| 5086 | public override TestAllExtensions DefaultInstanceForType { |
| 5087 | get { return TestAllExtensions.DefaultInstance; } |
| 5088 | } |
| 5089 | |
| 5090 | public override TestAllExtensions BuildPartial() { |
| 5091 | TestAllExtensions returnMe = result; |
| 5092 | result = null; |
| 5093 | return returnMe; |
| 5094 | } |
| 5095 | |
| 5096 | public override Builder MergeFrom(pb::IMessage other) { |
| 5097 | if (other is TestAllExtensions) { |
| 5098 | return MergeFrom((TestAllExtensions) other); |
| 5099 | } else { |
| 5100 | base.MergeFrom(other); |
| 5101 | return this; |
| 5102 | } |
| 5103 | } |
| 5104 | |
| 5105 | public override Builder MergeFrom(TestAllExtensions other) { |
| 5106 | if (other == TestAllExtensions.DefaultInstance) return this; |
Jon Skeet | 49fcd4f | 2009-01-27 14:43:10 +0000 | [diff] [blame] | 5107 | this.MergeExtensionFields(other); |
Jon Skeet | 6803686 | 2008-10-22 13:30:34 +0100 | [diff] [blame] | 5108 | this.MergeUnknownFields(other.UnknownFields); |
| 5109 | return this; |
| 5110 | } |
| 5111 | |
| 5112 | public override Builder MergeFrom(pb::CodedInputStream input) { |
| 5113 | return MergeFrom(input, pb::ExtensionRegistry.Empty); |
| 5114 | } |
| 5115 | |
| 5116 | public override Builder MergeFrom(pb::CodedInputStream input, pb::ExtensionRegistry extensionRegistry) { |
| 5117 | pb::UnknownFieldSet.Builder unknownFields = pb::UnknownFieldSet.CreateBuilder(this.UnknownFields); |
| 5118 | while (true) { |
| 5119 | uint tag = input.ReadTag(); |
| 5120 | switch (tag) { |
| 5121 | case 0: { |
| 5122 | this.UnknownFields = unknownFields.Build(); |
| 5123 | return this; |
| 5124 | } |
| 5125 | default: { |
| 5126 | if (!ParseUnknownField(input, unknownFields, extensionRegistry, tag)) { |
| 5127 | this.UnknownFields = unknownFields.Build(); |
| 5128 | return this; |
| 5129 | } |
| 5130 | break; |
| 5131 | } |
| 5132 | } |
| 5133 | } |
| 5134 | } |
| 5135 | |
| 5136 | } |
| 5137 | } |
| 5138 | |
| 5139 | public sealed partial class OptionalGroup_extension : pb::GeneratedMessage<OptionalGroup_extension, OptionalGroup_extension.Builder> { |
| 5140 | private static readonly OptionalGroup_extension defaultInstance = new Builder().BuildPartial(); |
| 5141 | public static OptionalGroup_extension DefaultInstance { |
| 5142 | get { return defaultInstance; } |
| 5143 | } |
| 5144 | |
| 5145 | public override OptionalGroup_extension DefaultInstanceForType { |
| 5146 | get { return defaultInstance; } |
| 5147 | } |
| 5148 | |
| 5149 | protected override OptionalGroup_extension ThisMessage { |
| 5150 | get { return this; } |
| 5151 | } |
| 5152 | |
| 5153 | public static pbd::MessageDescriptor Descriptor { |
| 5154 | get { return global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.internal__static_protobuf_unittest_OptionalGroup_extension__Descriptor; } |
| 5155 | } |
| 5156 | |
| 5157 | protected override pb::FieldAccess.FieldAccessorTable<OptionalGroup_extension, OptionalGroup_extension.Builder> InternalFieldAccessors { |
| 5158 | get { return global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.internal__static_protobuf_unittest_OptionalGroup_extension__FieldAccessorTable; } |
| 5159 | } |
| 5160 | |
| 5161 | private bool hasA; |
| 5162 | private int a_ = 0; |
| 5163 | public bool HasA { |
| 5164 | get { return hasA; } |
| 5165 | } |
| 5166 | public int A { |
| 5167 | get { return a_; } |
| 5168 | } |
| 5169 | |
| 5170 | public override bool IsInitialized { |
| 5171 | get { |
| 5172 | return true; |
| 5173 | } |
| 5174 | } |
| 5175 | |
| 5176 | public override void WriteTo(pb::CodedOutputStream output) { |
| 5177 | if (HasA) { |
| 5178 | output.WriteInt32(17, A); |
| 5179 | } |
| 5180 | UnknownFields.WriteTo(output); |
| 5181 | } |
| 5182 | |
| 5183 | private int memoizedSerializedSize = -1; |
| 5184 | public override int SerializedSize { |
| 5185 | get { |
| 5186 | int size = memoizedSerializedSize; |
| 5187 | if (size != -1) return size; |
| 5188 | |
| 5189 | size = 0; |
| 5190 | if (HasA) { |
| 5191 | size += pb::CodedOutputStream.ComputeInt32Size(17, A); |
| 5192 | } |
| 5193 | size += UnknownFields.SerializedSize; |
| 5194 | memoizedSerializedSize = size; |
| 5195 | return size; |
| 5196 | } |
| 5197 | } |
| 5198 | |
| 5199 | public static OptionalGroup_extension ParseFrom(pb::ByteString data) { |
| 5200 | return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed(); |
| 5201 | } |
| 5202 | public static OptionalGroup_extension ParseFrom(pb::ByteString data, pb::ExtensionRegistry extensionRegistry) { |
| 5203 | return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed(); |
| 5204 | } |
| 5205 | public static OptionalGroup_extension ParseFrom(byte[] data) { |
| 5206 | return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed(); |
| 5207 | } |
| 5208 | public static OptionalGroup_extension ParseFrom(byte[] data, pb::ExtensionRegistry extensionRegistry) { |
| 5209 | return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed(); |
| 5210 | } |
| 5211 | public static OptionalGroup_extension ParseFrom(global::System.IO.Stream input) { |
| 5212 | return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed(); |
| 5213 | } |
| 5214 | public static OptionalGroup_extension ParseFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) { |
| 5215 | return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed(); |
| 5216 | } |
| 5217 | public static OptionalGroup_extension ParseFrom(pb::CodedInputStream input) { |
| 5218 | return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed(); |
| 5219 | } |
| 5220 | public static OptionalGroup_extension ParseFrom(pb::CodedInputStream input, pb::ExtensionRegistry extensionRegistry) { |
| 5221 | return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed(); |
| 5222 | } |
| 5223 | public static Builder CreateBuilder() { return new Builder(); } |
| 5224 | public override Builder CreateBuilderForType() { return new Builder(); } |
| 5225 | public static Builder CreateBuilder(OptionalGroup_extension prototype) { |
| 5226 | return (Builder) new Builder().MergeFrom(prototype); |
| 5227 | } |
| 5228 | |
| 5229 | public sealed partial class Builder : pb::GeneratedBuilder<OptionalGroup_extension, Builder> { |
| 5230 | protected override Builder ThisBuilder { |
| 5231 | get { return this; } |
| 5232 | } |
| 5233 | public Builder() {} |
| 5234 | |
| 5235 | OptionalGroup_extension result = new OptionalGroup_extension(); |
| 5236 | |
| 5237 | protected override OptionalGroup_extension MessageBeingBuilt { |
| 5238 | get { return result; } |
| 5239 | } |
| 5240 | |
| 5241 | public override Builder Clear() { |
| 5242 | result = new OptionalGroup_extension(); |
| 5243 | return this; |
| 5244 | } |
| 5245 | |
| 5246 | public override Builder Clone() { |
| 5247 | return new Builder().MergeFrom(result); |
| 5248 | } |
| 5249 | |
| 5250 | public override pbd::MessageDescriptor DescriptorForType { |
| 5251 | get { return OptionalGroup_extension.Descriptor; } |
| 5252 | } |
| 5253 | |
| 5254 | public override OptionalGroup_extension DefaultInstanceForType { |
| 5255 | get { return OptionalGroup_extension.DefaultInstance; } |
| 5256 | } |
| 5257 | |
| 5258 | public override OptionalGroup_extension BuildPartial() { |
| 5259 | OptionalGroup_extension returnMe = result; |
| 5260 | result = null; |
| 5261 | return returnMe; |
| 5262 | } |
| 5263 | |
| 5264 | public override Builder MergeFrom(pb::IMessage other) { |
| 5265 | if (other is OptionalGroup_extension) { |
| 5266 | return MergeFrom((OptionalGroup_extension) other); |
| 5267 | } else { |
| 5268 | base.MergeFrom(other); |
| 5269 | return this; |
| 5270 | } |
| 5271 | } |
| 5272 | |
| 5273 | public override Builder MergeFrom(OptionalGroup_extension other) { |
| 5274 | if (other == OptionalGroup_extension.DefaultInstance) return this; |
| 5275 | if (other.HasA) { |
| 5276 | A = other.A; |
| 5277 | } |
| 5278 | this.MergeUnknownFields(other.UnknownFields); |
| 5279 | return this; |
| 5280 | } |
| 5281 | |
| 5282 | public override Builder MergeFrom(pb::CodedInputStream input) { |
| 5283 | return MergeFrom(input, pb::ExtensionRegistry.Empty); |
| 5284 | } |
| 5285 | |
| 5286 | public override Builder MergeFrom(pb::CodedInputStream input, pb::ExtensionRegistry extensionRegistry) { |
| 5287 | pb::UnknownFieldSet.Builder unknownFields = pb::UnknownFieldSet.CreateBuilder(this.UnknownFields); |
| 5288 | while (true) { |
| 5289 | uint tag = input.ReadTag(); |
| 5290 | switch (tag) { |
| 5291 | case 0: { |
| 5292 | this.UnknownFields = unknownFields.Build(); |
| 5293 | return this; |
| 5294 | } |
| 5295 | default: { |
| 5296 | if (!ParseUnknownField(input, unknownFields, extensionRegistry, tag)) { |
| 5297 | this.UnknownFields = unknownFields.Build(); |
| 5298 | return this; |
| 5299 | } |
| 5300 | break; |
| 5301 | } |
| 5302 | case 136: { |
| 5303 | A = input.ReadInt32(); |
| 5304 | break; |
| 5305 | } |
| 5306 | } |
| 5307 | } |
| 5308 | } |
| 5309 | |
| 5310 | |
| 5311 | public bool HasA { |
| 5312 | get { return result.HasA; } |
| 5313 | } |
| 5314 | public int A { |
| 5315 | get { return result.A; } |
| 5316 | set { SetA(value); } |
| 5317 | } |
| 5318 | public Builder SetA(int value) { |
| 5319 | result.hasA = true; |
| 5320 | result.a_ = value; |
| 5321 | return this; |
| 5322 | } |
| 5323 | public Builder ClearA() { |
| 5324 | result.hasA = false; |
| 5325 | result.a_ = 0; |
| 5326 | return this; |
| 5327 | } |
| 5328 | } |
| 5329 | } |
| 5330 | |
| 5331 | public sealed partial class RepeatedGroup_extension : pb::GeneratedMessage<RepeatedGroup_extension, RepeatedGroup_extension.Builder> { |
| 5332 | private static readonly RepeatedGroup_extension defaultInstance = new Builder().BuildPartial(); |
| 5333 | public static RepeatedGroup_extension DefaultInstance { |
| 5334 | get { return defaultInstance; } |
| 5335 | } |
| 5336 | |
| 5337 | public override RepeatedGroup_extension DefaultInstanceForType { |
| 5338 | get { return defaultInstance; } |
| 5339 | } |
| 5340 | |
| 5341 | protected override RepeatedGroup_extension ThisMessage { |
| 5342 | get { return this; } |
| 5343 | } |
| 5344 | |
| 5345 | public static pbd::MessageDescriptor Descriptor { |
| 5346 | get { return global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.internal__static_protobuf_unittest_RepeatedGroup_extension__Descriptor; } |
| 5347 | } |
| 5348 | |
| 5349 | protected override pb::FieldAccess.FieldAccessorTable<RepeatedGroup_extension, RepeatedGroup_extension.Builder> InternalFieldAccessors { |
| 5350 | get { return global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.internal__static_protobuf_unittest_RepeatedGroup_extension__FieldAccessorTable; } |
| 5351 | } |
| 5352 | |
| 5353 | private bool hasA; |
| 5354 | private int a_ = 0; |
| 5355 | public bool HasA { |
| 5356 | get { return hasA; } |
| 5357 | } |
| 5358 | public int A { |
| 5359 | get { return a_; } |
| 5360 | } |
| 5361 | |
| 5362 | public override bool IsInitialized { |
| 5363 | get { |
| 5364 | return true; |
| 5365 | } |
| 5366 | } |
| 5367 | |
| 5368 | public override void WriteTo(pb::CodedOutputStream output) { |
| 5369 | if (HasA) { |
| 5370 | output.WriteInt32(47, A); |
| 5371 | } |
| 5372 | UnknownFields.WriteTo(output); |
| 5373 | } |
| 5374 | |
| 5375 | private int memoizedSerializedSize = -1; |
| 5376 | public override int SerializedSize { |
| 5377 | get { |
| 5378 | int size = memoizedSerializedSize; |
| 5379 | if (size != -1) return size; |
| 5380 | |
| 5381 | size = 0; |
| 5382 | if (HasA) { |
| 5383 | size += pb::CodedOutputStream.ComputeInt32Size(47, A); |
| 5384 | } |
| 5385 | size += UnknownFields.SerializedSize; |
| 5386 | memoizedSerializedSize = size; |
| 5387 | return size; |
| 5388 | } |
| 5389 | } |
| 5390 | |
| 5391 | public static RepeatedGroup_extension ParseFrom(pb::ByteString data) { |
| 5392 | return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed(); |
| 5393 | } |
| 5394 | public static RepeatedGroup_extension ParseFrom(pb::ByteString data, pb::ExtensionRegistry extensionRegistry) { |
| 5395 | return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed(); |
| 5396 | } |
| 5397 | public static RepeatedGroup_extension ParseFrom(byte[] data) { |
| 5398 | return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed(); |
| 5399 | } |
| 5400 | public static RepeatedGroup_extension ParseFrom(byte[] data, pb::ExtensionRegistry extensionRegistry) { |
| 5401 | return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed(); |
| 5402 | } |
| 5403 | public static RepeatedGroup_extension ParseFrom(global::System.IO.Stream input) { |
| 5404 | return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed(); |
| 5405 | } |
| 5406 | public static RepeatedGroup_extension ParseFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) { |
| 5407 | return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed(); |
| 5408 | } |
| 5409 | public static RepeatedGroup_extension ParseFrom(pb::CodedInputStream input) { |
| 5410 | return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed(); |
| 5411 | } |
| 5412 | public static RepeatedGroup_extension ParseFrom(pb::CodedInputStream input, pb::ExtensionRegistry extensionRegistry) { |
| 5413 | return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed(); |
| 5414 | } |
| 5415 | public static Builder CreateBuilder() { return new Builder(); } |
| 5416 | public override Builder CreateBuilderForType() { return new Builder(); } |
| 5417 | public static Builder CreateBuilder(RepeatedGroup_extension prototype) { |
| 5418 | return (Builder) new Builder().MergeFrom(prototype); |
| 5419 | } |
| 5420 | |
| 5421 | public sealed partial class Builder : pb::GeneratedBuilder<RepeatedGroup_extension, Builder> { |
| 5422 | protected override Builder ThisBuilder { |
| 5423 | get { return this; } |
| 5424 | } |
| 5425 | public Builder() {} |
| 5426 | |
| 5427 | RepeatedGroup_extension result = new RepeatedGroup_extension(); |
| 5428 | |
| 5429 | protected override RepeatedGroup_extension MessageBeingBuilt { |
| 5430 | get { return result; } |
| 5431 | } |
| 5432 | |
| 5433 | public override Builder Clear() { |
| 5434 | result = new RepeatedGroup_extension(); |
| 5435 | return this; |
| 5436 | } |
| 5437 | |
| 5438 | public override Builder Clone() { |
| 5439 | return new Builder().MergeFrom(result); |
| 5440 | } |
| 5441 | |
| 5442 | public override pbd::MessageDescriptor DescriptorForType { |
| 5443 | get { return RepeatedGroup_extension.Descriptor; } |
| 5444 | } |
| 5445 | |
| 5446 | public override RepeatedGroup_extension DefaultInstanceForType { |
| 5447 | get { return RepeatedGroup_extension.DefaultInstance; } |
| 5448 | } |
| 5449 | |
| 5450 | public override RepeatedGroup_extension BuildPartial() { |
| 5451 | RepeatedGroup_extension returnMe = result; |
| 5452 | result = null; |
| 5453 | return returnMe; |
| 5454 | } |
| 5455 | |
| 5456 | public override Builder MergeFrom(pb::IMessage other) { |
| 5457 | if (other is RepeatedGroup_extension) { |
| 5458 | return MergeFrom((RepeatedGroup_extension) other); |
| 5459 | } else { |
| 5460 | base.MergeFrom(other); |
| 5461 | return this; |
| 5462 | } |
| 5463 | } |
| 5464 | |
| 5465 | public override Builder MergeFrom(RepeatedGroup_extension other) { |
| 5466 | if (other == RepeatedGroup_extension.DefaultInstance) return this; |
| 5467 | if (other.HasA) { |
| 5468 | A = other.A; |
| 5469 | } |
| 5470 | this.MergeUnknownFields(other.UnknownFields); |
| 5471 | return this; |
| 5472 | } |
| 5473 | |
| 5474 | public override Builder MergeFrom(pb::CodedInputStream input) { |
| 5475 | return MergeFrom(input, pb::ExtensionRegistry.Empty); |
| 5476 | } |
| 5477 | |
| 5478 | public override Builder MergeFrom(pb::CodedInputStream input, pb::ExtensionRegistry extensionRegistry) { |
| 5479 | pb::UnknownFieldSet.Builder unknownFields = pb::UnknownFieldSet.CreateBuilder(this.UnknownFields); |
| 5480 | while (true) { |
| 5481 | uint tag = input.ReadTag(); |
| 5482 | switch (tag) { |
| 5483 | case 0: { |
| 5484 | this.UnknownFields = unknownFields.Build(); |
| 5485 | return this; |
| 5486 | } |
| 5487 | default: { |
| 5488 | if (!ParseUnknownField(input, unknownFields, extensionRegistry, tag)) { |
| 5489 | this.UnknownFields = unknownFields.Build(); |
| 5490 | return this; |
| 5491 | } |
| 5492 | break; |
| 5493 | } |
| 5494 | case 376: { |
| 5495 | A = input.ReadInt32(); |
| 5496 | break; |
| 5497 | } |
| 5498 | } |
| 5499 | } |
| 5500 | } |
| 5501 | |
| 5502 | |
| 5503 | public bool HasA { |
| 5504 | get { return result.HasA; } |
| 5505 | } |
| 5506 | public int A { |
| 5507 | get { return result.A; } |
| 5508 | set { SetA(value); } |
| 5509 | } |
| 5510 | public Builder SetA(int value) { |
| 5511 | result.hasA = true; |
| 5512 | result.a_ = value; |
| 5513 | return this; |
| 5514 | } |
| 5515 | public Builder ClearA() { |
| 5516 | result.hasA = false; |
| 5517 | result.a_ = 0; |
| 5518 | return this; |
| 5519 | } |
| 5520 | } |
| 5521 | } |
| 5522 | |
| 5523 | public sealed partial class TestRequired : pb::GeneratedMessage<TestRequired, TestRequired.Builder> { |
| 5524 | private static readonly TestRequired defaultInstance = new Builder().BuildPartial(); |
| 5525 | public static TestRequired DefaultInstance { |
| 5526 | get { return defaultInstance; } |
| 5527 | } |
| 5528 | |
| 5529 | public override TestRequired DefaultInstanceForType { |
| 5530 | get { return defaultInstance; } |
| 5531 | } |
| 5532 | |
| 5533 | protected override TestRequired ThisMessage { |
| 5534 | get { return this; } |
| 5535 | } |
| 5536 | |
| 5537 | public static pbd::MessageDescriptor Descriptor { |
| 5538 | get { return global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.internal__static_protobuf_unittest_TestRequired__Descriptor; } |
| 5539 | } |
| 5540 | |
| 5541 | protected override pb::FieldAccess.FieldAccessorTable<TestRequired, TestRequired.Builder> InternalFieldAccessors { |
| 5542 | get { return global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.internal__static_protobuf_unittest_TestRequired__FieldAccessorTable; } |
| 5543 | } |
| 5544 | |
| 5545 | public static readonly pb::GeneratedExtensionBase<global::Google.ProtocolBuffers.TestProtos.TestRequired> Single = |
| 5546 | pb::GeneratedSingleExtension<global::Google.ProtocolBuffers.TestProtos.TestRequired>.CreateInstance(Descriptor.Extensions[0]); |
| 5547 | public static readonly |
| 5548 | pb::GeneratedExtensionBase<scg::IList<global::Google.ProtocolBuffers.TestProtos.TestRequired>> Multi = |
| 5549 | pb::GeneratedRepeatExtension<global::Google.ProtocolBuffers.TestProtos.TestRequired>.CreateInstance(Descriptor.Extensions[1]); |
| 5550 | private bool hasA; |
| 5551 | private int a_ = 0; |
| 5552 | public bool HasA { |
| 5553 | get { return hasA; } |
| 5554 | } |
| 5555 | public int A { |
| 5556 | get { return a_; } |
| 5557 | } |
| 5558 | |
| 5559 | private bool hasDummy2; |
| 5560 | private int dummy2_ = 0; |
| 5561 | public bool HasDummy2 { |
| 5562 | get { return hasDummy2; } |
| 5563 | } |
| 5564 | public int Dummy2 { |
| 5565 | get { return dummy2_; } |
| 5566 | } |
| 5567 | |
| 5568 | private bool hasB; |
| 5569 | private int b_ = 0; |
| 5570 | public bool HasB { |
| 5571 | get { return hasB; } |
| 5572 | } |
| 5573 | public int B { |
| 5574 | get { return b_; } |
| 5575 | } |
| 5576 | |
| 5577 | private bool hasDummy4; |
| 5578 | private int dummy4_ = 0; |
| 5579 | public bool HasDummy4 { |
| 5580 | get { return hasDummy4; } |
| 5581 | } |
| 5582 | public int Dummy4 { |
| 5583 | get { return dummy4_; } |
| 5584 | } |
| 5585 | |
| 5586 | private bool hasDummy5; |
| 5587 | private int dummy5_ = 0; |
| 5588 | public bool HasDummy5 { |
| 5589 | get { return hasDummy5; } |
| 5590 | } |
| 5591 | public int Dummy5 { |
| 5592 | get { return dummy5_; } |
| 5593 | } |
| 5594 | |
| 5595 | private bool hasDummy6; |
| 5596 | private int dummy6_ = 0; |
| 5597 | public bool HasDummy6 { |
| 5598 | get { return hasDummy6; } |
| 5599 | } |
| 5600 | public int Dummy6 { |
| 5601 | get { return dummy6_; } |
| 5602 | } |
| 5603 | |
| 5604 | private bool hasDummy7; |
| 5605 | private int dummy7_ = 0; |
| 5606 | public bool HasDummy7 { |
| 5607 | get { return hasDummy7; } |
| 5608 | } |
| 5609 | public int Dummy7 { |
| 5610 | get { return dummy7_; } |
| 5611 | } |
| 5612 | |
| 5613 | private bool hasDummy8; |
| 5614 | private int dummy8_ = 0; |
| 5615 | public bool HasDummy8 { |
| 5616 | get { return hasDummy8; } |
| 5617 | } |
| 5618 | public int Dummy8 { |
| 5619 | get { return dummy8_; } |
| 5620 | } |
| 5621 | |
| 5622 | private bool hasDummy9; |
| 5623 | private int dummy9_ = 0; |
| 5624 | public bool HasDummy9 { |
| 5625 | get { return hasDummy9; } |
| 5626 | } |
| 5627 | public int Dummy9 { |
| 5628 | get { return dummy9_; } |
| 5629 | } |
| 5630 | |
| 5631 | private bool hasDummy10; |
| 5632 | private int dummy10_ = 0; |
| 5633 | public bool HasDummy10 { |
| 5634 | get { return hasDummy10; } |
| 5635 | } |
| 5636 | public int Dummy10 { |
| 5637 | get { return dummy10_; } |
| 5638 | } |
| 5639 | |
| 5640 | private bool hasDummy11; |
| 5641 | private int dummy11_ = 0; |
| 5642 | public bool HasDummy11 { |
| 5643 | get { return hasDummy11; } |
| 5644 | } |
| 5645 | public int Dummy11 { |
| 5646 | get { return dummy11_; } |
| 5647 | } |
| 5648 | |
| 5649 | private bool hasDummy12; |
| 5650 | private int dummy12_ = 0; |
| 5651 | public bool HasDummy12 { |
| 5652 | get { return hasDummy12; } |
| 5653 | } |
| 5654 | public int Dummy12 { |
| 5655 | get { return dummy12_; } |
| 5656 | } |
| 5657 | |
| 5658 | private bool hasDummy13; |
| 5659 | private int dummy13_ = 0; |
| 5660 | public bool HasDummy13 { |
| 5661 | get { return hasDummy13; } |
| 5662 | } |
| 5663 | public int Dummy13 { |
| 5664 | get { return dummy13_; } |
| 5665 | } |
| 5666 | |
| 5667 | private bool hasDummy14; |
| 5668 | private int dummy14_ = 0; |
| 5669 | public bool HasDummy14 { |
| 5670 | get { return hasDummy14; } |
| 5671 | } |
| 5672 | public int Dummy14 { |
| 5673 | get { return dummy14_; } |
| 5674 | } |
| 5675 | |
| 5676 | private bool hasDummy15; |
| 5677 | private int dummy15_ = 0; |
| 5678 | public bool HasDummy15 { |
| 5679 | get { return hasDummy15; } |
| 5680 | } |
| 5681 | public int Dummy15 { |
| 5682 | get { return dummy15_; } |
| 5683 | } |
| 5684 | |
| 5685 | private bool hasDummy16; |
| 5686 | private int dummy16_ = 0; |
| 5687 | public bool HasDummy16 { |
| 5688 | get { return hasDummy16; } |
| 5689 | } |
| 5690 | public int Dummy16 { |
| 5691 | get { return dummy16_; } |
| 5692 | } |
| 5693 | |
| 5694 | private bool hasDummy17; |
| 5695 | private int dummy17_ = 0; |
| 5696 | public bool HasDummy17 { |
| 5697 | get { return hasDummy17; } |
| 5698 | } |
| 5699 | public int Dummy17 { |
| 5700 | get { return dummy17_; } |
| 5701 | } |
| 5702 | |
| 5703 | private bool hasDummy18; |
| 5704 | private int dummy18_ = 0; |
| 5705 | public bool HasDummy18 { |
| 5706 | get { return hasDummy18; } |
| 5707 | } |
| 5708 | public int Dummy18 { |
| 5709 | get { return dummy18_; } |
| 5710 | } |
| 5711 | |
| 5712 | private bool hasDummy19; |
| 5713 | private int dummy19_ = 0; |
| 5714 | public bool HasDummy19 { |
| 5715 | get { return hasDummy19; } |
| 5716 | } |
| 5717 | public int Dummy19 { |
| 5718 | get { return dummy19_; } |
| 5719 | } |
| 5720 | |
| 5721 | private bool hasDummy20; |
| 5722 | private int dummy20_ = 0; |
| 5723 | public bool HasDummy20 { |
| 5724 | get { return hasDummy20; } |
| 5725 | } |
| 5726 | public int Dummy20 { |
| 5727 | get { return dummy20_; } |
| 5728 | } |
| 5729 | |
| 5730 | private bool hasDummy21; |
| 5731 | private int dummy21_ = 0; |
| 5732 | public bool HasDummy21 { |
| 5733 | get { return hasDummy21; } |
| 5734 | } |
| 5735 | public int Dummy21 { |
| 5736 | get { return dummy21_; } |
| 5737 | } |
| 5738 | |
| 5739 | private bool hasDummy22; |
| 5740 | private int dummy22_ = 0; |
| 5741 | public bool HasDummy22 { |
| 5742 | get { return hasDummy22; } |
| 5743 | } |
| 5744 | public int Dummy22 { |
| 5745 | get { return dummy22_; } |
| 5746 | } |
| 5747 | |
| 5748 | private bool hasDummy23; |
| 5749 | private int dummy23_ = 0; |
| 5750 | public bool HasDummy23 { |
| 5751 | get { return hasDummy23; } |
| 5752 | } |
| 5753 | public int Dummy23 { |
| 5754 | get { return dummy23_; } |
| 5755 | } |
| 5756 | |
| 5757 | private bool hasDummy24; |
| 5758 | private int dummy24_ = 0; |
| 5759 | public bool HasDummy24 { |
| 5760 | get { return hasDummy24; } |
| 5761 | } |
| 5762 | public int Dummy24 { |
| 5763 | get { return dummy24_; } |
| 5764 | } |
| 5765 | |
| 5766 | private bool hasDummy25; |
| 5767 | private int dummy25_ = 0; |
| 5768 | public bool HasDummy25 { |
| 5769 | get { return hasDummy25; } |
| 5770 | } |
| 5771 | public int Dummy25 { |
| 5772 | get { return dummy25_; } |
| 5773 | } |
| 5774 | |
| 5775 | private bool hasDummy26; |
| 5776 | private int dummy26_ = 0; |
| 5777 | public bool HasDummy26 { |
| 5778 | get { return hasDummy26; } |
| 5779 | } |
| 5780 | public int Dummy26 { |
| 5781 | get { return dummy26_; } |
| 5782 | } |
| 5783 | |
| 5784 | private bool hasDummy27; |
| 5785 | private int dummy27_ = 0; |
| 5786 | public bool HasDummy27 { |
| 5787 | get { return hasDummy27; } |
| 5788 | } |
| 5789 | public int Dummy27 { |
| 5790 | get { return dummy27_; } |
| 5791 | } |
| 5792 | |
| 5793 | private bool hasDummy28; |
| 5794 | private int dummy28_ = 0; |
| 5795 | public bool HasDummy28 { |
| 5796 | get { return hasDummy28; } |
| 5797 | } |
| 5798 | public int Dummy28 { |
| 5799 | get { return dummy28_; } |
| 5800 | } |
| 5801 | |
| 5802 | private bool hasDummy29; |
| 5803 | private int dummy29_ = 0; |
| 5804 | public bool HasDummy29 { |
| 5805 | get { return hasDummy29; } |
| 5806 | } |
| 5807 | public int Dummy29 { |
| 5808 | get { return dummy29_; } |
| 5809 | } |
| 5810 | |
| 5811 | private bool hasDummy30; |
| 5812 | private int dummy30_ = 0; |
| 5813 | public bool HasDummy30 { |
| 5814 | get { return hasDummy30; } |
| 5815 | } |
| 5816 | public int Dummy30 { |
| 5817 | get { return dummy30_; } |
| 5818 | } |
| 5819 | |
| 5820 | private bool hasDummy31; |
| 5821 | private int dummy31_ = 0; |
| 5822 | public bool HasDummy31 { |
| 5823 | get { return hasDummy31; } |
| 5824 | } |
| 5825 | public int Dummy31 { |
| 5826 | get { return dummy31_; } |
| 5827 | } |
| 5828 | |
| 5829 | private bool hasDummy32; |
| 5830 | private int dummy32_ = 0; |
| 5831 | public bool HasDummy32 { |
| 5832 | get { return hasDummy32; } |
| 5833 | } |
| 5834 | public int Dummy32 { |
| 5835 | get { return dummy32_; } |
| 5836 | } |
| 5837 | |
| 5838 | private bool hasC; |
| 5839 | private int c_ = 0; |
| 5840 | public bool HasC { |
| 5841 | get { return hasC; } |
| 5842 | } |
| 5843 | public int C { |
| 5844 | get { return c_; } |
| 5845 | } |
| 5846 | |
| 5847 | public override bool IsInitialized { |
| 5848 | get { |
| 5849 | if (!hasA) return false; |
| 5850 | if (!hasB) return false; |
| 5851 | if (!hasC) return false; |
| 5852 | return true; |
| 5853 | } |
| 5854 | } |
| 5855 | |
| 5856 | public override void WriteTo(pb::CodedOutputStream output) { |
| 5857 | if (HasA) { |
| 5858 | output.WriteInt32(1, A); |
| 5859 | } |
| 5860 | if (HasDummy2) { |
| 5861 | output.WriteInt32(2, Dummy2); |
| 5862 | } |
| 5863 | if (HasB) { |
| 5864 | output.WriteInt32(3, B); |
| 5865 | } |
| 5866 | if (HasDummy4) { |
| 5867 | output.WriteInt32(4, Dummy4); |
| 5868 | } |
| 5869 | if (HasDummy5) { |
| 5870 | output.WriteInt32(5, Dummy5); |
| 5871 | } |
| 5872 | if (HasDummy6) { |
| 5873 | output.WriteInt32(6, Dummy6); |
| 5874 | } |
| 5875 | if (HasDummy7) { |
| 5876 | output.WriteInt32(7, Dummy7); |
| 5877 | } |
| 5878 | if (HasDummy8) { |
| 5879 | output.WriteInt32(8, Dummy8); |
| 5880 | } |
| 5881 | if (HasDummy9) { |
| 5882 | output.WriteInt32(9, Dummy9); |
| 5883 | } |
| 5884 | if (HasDummy10) { |
| 5885 | output.WriteInt32(10, Dummy10); |
| 5886 | } |
| 5887 | if (HasDummy11) { |
| 5888 | output.WriteInt32(11, Dummy11); |
| 5889 | } |
| 5890 | if (HasDummy12) { |
| 5891 | output.WriteInt32(12, Dummy12); |
| 5892 | } |
| 5893 | if (HasDummy13) { |
| 5894 | output.WriteInt32(13, Dummy13); |
| 5895 | } |
| 5896 | if (HasDummy14) { |
| 5897 | output.WriteInt32(14, Dummy14); |
| 5898 | } |
| 5899 | if (HasDummy15) { |
| 5900 | output.WriteInt32(15, Dummy15); |
| 5901 | } |
| 5902 | if (HasDummy16) { |
| 5903 | output.WriteInt32(16, Dummy16); |
| 5904 | } |
| 5905 | if (HasDummy17) { |
| 5906 | output.WriteInt32(17, Dummy17); |
| 5907 | } |
| 5908 | if (HasDummy18) { |
| 5909 | output.WriteInt32(18, Dummy18); |
| 5910 | } |
| 5911 | if (HasDummy19) { |
| 5912 | output.WriteInt32(19, Dummy19); |
| 5913 | } |
| 5914 | if (HasDummy20) { |
| 5915 | output.WriteInt32(20, Dummy20); |
| 5916 | } |
| 5917 | if (HasDummy21) { |
| 5918 | output.WriteInt32(21, Dummy21); |
| 5919 | } |
| 5920 | if (HasDummy22) { |
| 5921 | output.WriteInt32(22, Dummy22); |
| 5922 | } |
| 5923 | if (HasDummy23) { |
| 5924 | output.WriteInt32(23, Dummy23); |
| 5925 | } |
| 5926 | if (HasDummy24) { |
| 5927 | output.WriteInt32(24, Dummy24); |
| 5928 | } |
| 5929 | if (HasDummy25) { |
| 5930 | output.WriteInt32(25, Dummy25); |
| 5931 | } |
| 5932 | if (HasDummy26) { |
| 5933 | output.WriteInt32(26, Dummy26); |
| 5934 | } |
| 5935 | if (HasDummy27) { |
| 5936 | output.WriteInt32(27, Dummy27); |
| 5937 | } |
| 5938 | if (HasDummy28) { |
| 5939 | output.WriteInt32(28, Dummy28); |
| 5940 | } |
| 5941 | if (HasDummy29) { |
| 5942 | output.WriteInt32(29, Dummy29); |
| 5943 | } |
| 5944 | if (HasDummy30) { |
| 5945 | output.WriteInt32(30, Dummy30); |
| 5946 | } |
| 5947 | if (HasDummy31) { |
| 5948 | output.WriteInt32(31, Dummy31); |
| 5949 | } |
| 5950 | if (HasDummy32) { |
| 5951 | output.WriteInt32(32, Dummy32); |
| 5952 | } |
| 5953 | if (HasC) { |
| 5954 | output.WriteInt32(33, C); |
| 5955 | } |
| 5956 | UnknownFields.WriteTo(output); |
| 5957 | } |
| 5958 | |
| 5959 | private int memoizedSerializedSize = -1; |
| 5960 | public override int SerializedSize { |
| 5961 | get { |
| 5962 | int size = memoizedSerializedSize; |
| 5963 | if (size != -1) return size; |
| 5964 | |
| 5965 | size = 0; |
| 5966 | if (HasA) { |
| 5967 | size += pb::CodedOutputStream.ComputeInt32Size(1, A); |
| 5968 | } |
| 5969 | if (HasDummy2) { |
| 5970 | size += pb::CodedOutputStream.ComputeInt32Size(2, Dummy2); |
| 5971 | } |
| 5972 | if (HasB) { |
| 5973 | size += pb::CodedOutputStream.ComputeInt32Size(3, B); |
| 5974 | } |
| 5975 | if (HasDummy4) { |
| 5976 | size += pb::CodedOutputStream.ComputeInt32Size(4, Dummy4); |
| 5977 | } |
| 5978 | if (HasDummy5) { |
| 5979 | size += pb::CodedOutputStream.ComputeInt32Size(5, Dummy5); |
| 5980 | } |
| 5981 | if (HasDummy6) { |
| 5982 | size += pb::CodedOutputStream.ComputeInt32Size(6, Dummy6); |
| 5983 | } |
| 5984 | if (HasDummy7) { |
| 5985 | size += pb::CodedOutputStream.ComputeInt32Size(7, Dummy7); |
| 5986 | } |
| 5987 | if (HasDummy8) { |
| 5988 | size += pb::CodedOutputStream.ComputeInt32Size(8, Dummy8); |
| 5989 | } |
| 5990 | if (HasDummy9) { |
| 5991 | size += pb::CodedOutputStream.ComputeInt32Size(9, Dummy9); |
| 5992 | } |
| 5993 | if (HasDummy10) { |
| 5994 | size += pb::CodedOutputStream.ComputeInt32Size(10, Dummy10); |
| 5995 | } |
| 5996 | if (HasDummy11) { |
| 5997 | size += pb::CodedOutputStream.ComputeInt32Size(11, Dummy11); |
| 5998 | } |
| 5999 | if (HasDummy12) { |
| 6000 | size += pb::CodedOutputStream.ComputeInt32Size(12, Dummy12); |
| 6001 | } |
| 6002 | if (HasDummy13) { |
| 6003 | size += pb::CodedOutputStream.ComputeInt32Size(13, Dummy13); |
| 6004 | } |
| 6005 | if (HasDummy14) { |
| 6006 | size += pb::CodedOutputStream.ComputeInt32Size(14, Dummy14); |
| 6007 | } |
| 6008 | if (HasDummy15) { |
| 6009 | size += pb::CodedOutputStream.ComputeInt32Size(15, Dummy15); |
| 6010 | } |
| 6011 | if (HasDummy16) { |
| 6012 | size += pb::CodedOutputStream.ComputeInt32Size(16, Dummy16); |
| 6013 | } |
| 6014 | if (HasDummy17) { |
| 6015 | size += pb::CodedOutputStream.ComputeInt32Size(17, Dummy17); |
| 6016 | } |
| 6017 | if (HasDummy18) { |
| 6018 | size += pb::CodedOutputStream.ComputeInt32Size(18, Dummy18); |
| 6019 | } |
| 6020 | if (HasDummy19) { |
| 6021 | size += pb::CodedOutputStream.ComputeInt32Size(19, Dummy19); |
| 6022 | } |
| 6023 | if (HasDummy20) { |
| 6024 | size += pb::CodedOutputStream.ComputeInt32Size(20, Dummy20); |
| 6025 | } |
| 6026 | if (HasDummy21) { |
| 6027 | size += pb::CodedOutputStream.ComputeInt32Size(21, Dummy21); |
| 6028 | } |
| 6029 | if (HasDummy22) { |
| 6030 | size += pb::CodedOutputStream.ComputeInt32Size(22, Dummy22); |
| 6031 | } |
| 6032 | if (HasDummy23) { |
| 6033 | size += pb::CodedOutputStream.ComputeInt32Size(23, Dummy23); |
| 6034 | } |
| 6035 | if (HasDummy24) { |
| 6036 | size += pb::CodedOutputStream.ComputeInt32Size(24, Dummy24); |
| 6037 | } |
| 6038 | if (HasDummy25) { |
| 6039 | size += pb::CodedOutputStream.ComputeInt32Size(25, Dummy25); |
| 6040 | } |
| 6041 | if (HasDummy26) { |
| 6042 | size += pb::CodedOutputStream.ComputeInt32Size(26, Dummy26); |
| 6043 | } |
| 6044 | if (HasDummy27) { |
| 6045 | size += pb::CodedOutputStream.ComputeInt32Size(27, Dummy27); |
| 6046 | } |
| 6047 | if (HasDummy28) { |
| 6048 | size += pb::CodedOutputStream.ComputeInt32Size(28, Dummy28); |
| 6049 | } |
| 6050 | if (HasDummy29) { |
| 6051 | size += pb::CodedOutputStream.ComputeInt32Size(29, Dummy29); |
| 6052 | } |
| 6053 | if (HasDummy30) { |
| 6054 | size += pb::CodedOutputStream.ComputeInt32Size(30, Dummy30); |
| 6055 | } |
| 6056 | if (HasDummy31) { |
| 6057 | size += pb::CodedOutputStream.ComputeInt32Size(31, Dummy31); |
| 6058 | } |
| 6059 | if (HasDummy32) { |
| 6060 | size += pb::CodedOutputStream.ComputeInt32Size(32, Dummy32); |
| 6061 | } |
| 6062 | if (HasC) { |
| 6063 | size += pb::CodedOutputStream.ComputeInt32Size(33, C); |
| 6064 | } |
| 6065 | size += UnknownFields.SerializedSize; |
| 6066 | memoizedSerializedSize = size; |
| 6067 | return size; |
| 6068 | } |
| 6069 | } |
| 6070 | |
| 6071 | public static TestRequired ParseFrom(pb::ByteString data) { |
| 6072 | return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed(); |
| 6073 | } |
| 6074 | public static TestRequired ParseFrom(pb::ByteString data, pb::ExtensionRegistry extensionRegistry) { |
| 6075 | return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed(); |
| 6076 | } |
| 6077 | public static TestRequired ParseFrom(byte[] data) { |
| 6078 | return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed(); |
| 6079 | } |
| 6080 | public static TestRequired ParseFrom(byte[] data, pb::ExtensionRegistry extensionRegistry) { |
| 6081 | return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed(); |
| 6082 | } |
| 6083 | public static TestRequired ParseFrom(global::System.IO.Stream input) { |
| 6084 | return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed(); |
| 6085 | } |
| 6086 | public static TestRequired ParseFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) { |
| 6087 | return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed(); |
| 6088 | } |
| 6089 | public static TestRequired ParseFrom(pb::CodedInputStream input) { |
| 6090 | return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed(); |
| 6091 | } |
| 6092 | public static TestRequired ParseFrom(pb::CodedInputStream input, pb::ExtensionRegistry extensionRegistry) { |
| 6093 | return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed(); |
| 6094 | } |
| 6095 | public static Builder CreateBuilder() { return new Builder(); } |
| 6096 | public override Builder CreateBuilderForType() { return new Builder(); } |
| 6097 | public static Builder CreateBuilder(TestRequired prototype) { |
| 6098 | return (Builder) new Builder().MergeFrom(prototype); |
| 6099 | } |
| 6100 | |
| 6101 | public sealed partial class Builder : pb::GeneratedBuilder<TestRequired, Builder> { |
| 6102 | protected override Builder ThisBuilder { |
| 6103 | get { return this; } |
| 6104 | } |
| 6105 | public Builder() {} |
| 6106 | |
| 6107 | TestRequired result = new TestRequired(); |
| 6108 | |
| 6109 | protected override TestRequired MessageBeingBuilt { |
| 6110 | get { return result; } |
| 6111 | } |
| 6112 | |
| 6113 | public override Builder Clear() { |
| 6114 | result = new TestRequired(); |
| 6115 | return this; |
| 6116 | } |
| 6117 | |
| 6118 | public override Builder Clone() { |
| 6119 | return new Builder().MergeFrom(result); |
| 6120 | } |
| 6121 | |
| 6122 | public override pbd::MessageDescriptor DescriptorForType { |
| 6123 | get { return TestRequired.Descriptor; } |
| 6124 | } |
| 6125 | |
| 6126 | public override TestRequired DefaultInstanceForType { |
| 6127 | get { return TestRequired.DefaultInstance; } |
| 6128 | } |
| 6129 | |
| 6130 | public override TestRequired BuildPartial() { |
| 6131 | TestRequired returnMe = result; |
| 6132 | result = null; |
| 6133 | return returnMe; |
| 6134 | } |
| 6135 | |
| 6136 | public override Builder MergeFrom(pb::IMessage other) { |
| 6137 | if (other is TestRequired) { |
| 6138 | return MergeFrom((TestRequired) other); |
| 6139 | } else { |
| 6140 | base.MergeFrom(other); |
| 6141 | return this; |
| 6142 | } |
| 6143 | } |
| 6144 | |
| 6145 | public override Builder MergeFrom(TestRequired other) { |
| 6146 | if (other == TestRequired.DefaultInstance) return this; |
| 6147 | if (other.HasA) { |
| 6148 | A = other.A; |
| 6149 | } |
| 6150 | if (other.HasDummy2) { |
| 6151 | Dummy2 = other.Dummy2; |
| 6152 | } |
| 6153 | if (other.HasB) { |
| 6154 | B = other.B; |
| 6155 | } |
| 6156 | if (other.HasDummy4) { |
| 6157 | Dummy4 = other.Dummy4; |
| 6158 | } |
| 6159 | if (other.HasDummy5) { |
| 6160 | Dummy5 = other.Dummy5; |
| 6161 | } |
| 6162 | if (other.HasDummy6) { |
| 6163 | Dummy6 = other.Dummy6; |
| 6164 | } |
| 6165 | if (other.HasDummy7) { |
| 6166 | Dummy7 = other.Dummy7; |
| 6167 | } |
| 6168 | if (other.HasDummy8) { |
| 6169 | Dummy8 = other.Dummy8; |
| 6170 | } |
| 6171 | if (other.HasDummy9) { |
| 6172 | Dummy9 = other.Dummy9; |
| 6173 | } |
| 6174 | if (other.HasDummy10) { |
| 6175 | Dummy10 = other.Dummy10; |
| 6176 | } |
| 6177 | if (other.HasDummy11) { |
| 6178 | Dummy11 = other.Dummy11; |
| 6179 | } |
| 6180 | if (other.HasDummy12) { |
| 6181 | Dummy12 = other.Dummy12; |
| 6182 | } |
| 6183 | if (other.HasDummy13) { |
| 6184 | Dummy13 = other.Dummy13; |
| 6185 | } |
| 6186 | if (other.HasDummy14) { |
| 6187 | Dummy14 = other.Dummy14; |
| 6188 | } |
| 6189 | if (other.HasDummy15) { |
| 6190 | Dummy15 = other.Dummy15; |
| 6191 | } |
| 6192 | if (other.HasDummy16) { |
| 6193 | Dummy16 = other.Dummy16; |
| 6194 | } |
| 6195 | if (other.HasDummy17) { |
| 6196 | Dummy17 = other.Dummy17; |
| 6197 | } |
| 6198 | if (other.HasDummy18) { |
| 6199 | Dummy18 = other.Dummy18; |
| 6200 | } |
| 6201 | if (other.HasDummy19) { |
| 6202 | Dummy19 = other.Dummy19; |
| 6203 | } |
| 6204 | if (other.HasDummy20) { |
| 6205 | Dummy20 = other.Dummy20; |
| 6206 | } |
| 6207 | if (other.HasDummy21) { |
| 6208 | Dummy21 = other.Dummy21; |
| 6209 | } |
| 6210 | if (other.HasDummy22) { |
| 6211 | Dummy22 = other.Dummy22; |
| 6212 | } |
| 6213 | if (other.HasDummy23) { |
| 6214 | Dummy23 = other.Dummy23; |
| 6215 | } |
| 6216 | if (other.HasDummy24) { |
| 6217 | Dummy24 = other.Dummy24; |
| 6218 | } |
| 6219 | if (other.HasDummy25) { |
| 6220 | Dummy25 = other.Dummy25; |
| 6221 | } |
| 6222 | if (other.HasDummy26) { |
| 6223 | Dummy26 = other.Dummy26; |
| 6224 | } |
| 6225 | if (other.HasDummy27) { |
| 6226 | Dummy27 = other.Dummy27; |
| 6227 | } |
| 6228 | if (other.HasDummy28) { |
| 6229 | Dummy28 = other.Dummy28; |
| 6230 | } |
| 6231 | if (other.HasDummy29) { |
| 6232 | Dummy29 = other.Dummy29; |
| 6233 | } |
| 6234 | if (other.HasDummy30) { |
| 6235 | Dummy30 = other.Dummy30; |
| 6236 | } |
| 6237 | if (other.HasDummy31) { |
| 6238 | Dummy31 = other.Dummy31; |
| 6239 | } |
| 6240 | if (other.HasDummy32) { |
| 6241 | Dummy32 = other.Dummy32; |
| 6242 | } |
| 6243 | if (other.HasC) { |
| 6244 | C = other.C; |
| 6245 | } |
| 6246 | this.MergeUnknownFields(other.UnknownFields); |
| 6247 | return this; |
| 6248 | } |
| 6249 | |
| 6250 | public override Builder MergeFrom(pb::CodedInputStream input) { |
| 6251 | return MergeFrom(input, pb::ExtensionRegistry.Empty); |
| 6252 | } |
| 6253 | |
| 6254 | public override Builder MergeFrom(pb::CodedInputStream input, pb::ExtensionRegistry extensionRegistry) { |
| 6255 | pb::UnknownFieldSet.Builder unknownFields = pb::UnknownFieldSet.CreateBuilder(this.UnknownFields); |
| 6256 | while (true) { |
| 6257 | uint tag = input.ReadTag(); |
| 6258 | switch (tag) { |
| 6259 | case 0: { |
| 6260 | this.UnknownFields = unknownFields.Build(); |
| 6261 | return this; |
| 6262 | } |
| 6263 | default: { |
| 6264 | if (!ParseUnknownField(input, unknownFields, extensionRegistry, tag)) { |
| 6265 | this.UnknownFields = unknownFields.Build(); |
| 6266 | return this; |
| 6267 | } |
| 6268 | break; |
| 6269 | } |
| 6270 | case 8: { |
| 6271 | A = input.ReadInt32(); |
| 6272 | break; |
| 6273 | } |
| 6274 | case 16: { |
| 6275 | Dummy2 = input.ReadInt32(); |
| 6276 | break; |
| 6277 | } |
| 6278 | case 24: { |
| 6279 | B = input.ReadInt32(); |
| 6280 | break; |
| 6281 | } |
| 6282 | case 32: { |
| 6283 | Dummy4 = input.ReadInt32(); |
| 6284 | break; |
| 6285 | } |
| 6286 | case 40: { |
| 6287 | Dummy5 = input.ReadInt32(); |
| 6288 | break; |
| 6289 | } |
| 6290 | case 48: { |
| 6291 | Dummy6 = input.ReadInt32(); |
| 6292 | break; |
| 6293 | } |
| 6294 | case 56: { |
| 6295 | Dummy7 = input.ReadInt32(); |
| 6296 | break; |
| 6297 | } |
| 6298 | case 64: { |
| 6299 | Dummy8 = input.ReadInt32(); |
| 6300 | break; |
| 6301 | } |
| 6302 | case 72: { |
| 6303 | Dummy9 = input.ReadInt32(); |
| 6304 | break; |
| 6305 | } |
| 6306 | case 80: { |
| 6307 | Dummy10 = input.ReadInt32(); |
| 6308 | break; |
| 6309 | } |
| 6310 | case 88: { |
| 6311 | Dummy11 = input.ReadInt32(); |
| 6312 | break; |
| 6313 | } |
| 6314 | case 96: { |
| 6315 | Dummy12 = input.ReadInt32(); |
| 6316 | break; |
| 6317 | } |
| 6318 | case 104: { |
| 6319 | Dummy13 = input.ReadInt32(); |
| 6320 | break; |
| 6321 | } |
| 6322 | case 112: { |
| 6323 | Dummy14 = input.ReadInt32(); |
| 6324 | break; |
| 6325 | } |
| 6326 | case 120: { |
| 6327 | Dummy15 = input.ReadInt32(); |
| 6328 | break; |
| 6329 | } |
| 6330 | case 128: { |
| 6331 | Dummy16 = input.ReadInt32(); |
| 6332 | break; |
| 6333 | } |
| 6334 | case 136: { |
| 6335 | Dummy17 = input.ReadInt32(); |
| 6336 | break; |
| 6337 | } |
| 6338 | case 144: { |
| 6339 | Dummy18 = input.ReadInt32(); |
| 6340 | break; |
| 6341 | } |
| 6342 | case 152: { |
| 6343 | Dummy19 = input.ReadInt32(); |
| 6344 | break; |
| 6345 | } |
| 6346 | case 160: { |
| 6347 | Dummy20 = input.ReadInt32(); |
| 6348 | break; |
| 6349 | } |
| 6350 | case 168: { |
| 6351 | Dummy21 = input.ReadInt32(); |
| 6352 | break; |
| 6353 | } |
| 6354 | case 176: { |
| 6355 | Dummy22 = input.ReadInt32(); |
| 6356 | break; |
| 6357 | } |
| 6358 | case 184: { |
| 6359 | Dummy23 = input.ReadInt32(); |
| 6360 | break; |
| 6361 | } |
| 6362 | case 192: { |
| 6363 | Dummy24 = input.ReadInt32(); |
| 6364 | break; |
| 6365 | } |
| 6366 | case 200: { |
| 6367 | Dummy25 = input.ReadInt32(); |
| 6368 | break; |
| 6369 | } |
| 6370 | case 208: { |
| 6371 | Dummy26 = input.ReadInt32(); |
| 6372 | break; |
| 6373 | } |
| 6374 | case 216: { |
| 6375 | Dummy27 = input.ReadInt32(); |
| 6376 | break; |
| 6377 | } |
| 6378 | case 224: { |
| 6379 | Dummy28 = input.ReadInt32(); |
| 6380 | break; |
| 6381 | } |
| 6382 | case 232: { |
| 6383 | Dummy29 = input.ReadInt32(); |
| 6384 | break; |
| 6385 | } |
| 6386 | case 240: { |
| 6387 | Dummy30 = input.ReadInt32(); |
| 6388 | break; |
| 6389 | } |
| 6390 | case 248: { |
| 6391 | Dummy31 = input.ReadInt32(); |
| 6392 | break; |
| 6393 | } |
| 6394 | case 256: { |
| 6395 | Dummy32 = input.ReadInt32(); |
| 6396 | break; |
| 6397 | } |
| 6398 | case 264: { |
| 6399 | C = input.ReadInt32(); |
| 6400 | break; |
| 6401 | } |
| 6402 | } |
| 6403 | } |
| 6404 | } |
| 6405 | |
| 6406 | |
| 6407 | public bool HasA { |
| 6408 | get { return result.HasA; } |
| 6409 | } |
| 6410 | public int A { |
| 6411 | get { return result.A; } |
| 6412 | set { SetA(value); } |
| 6413 | } |
| 6414 | public Builder SetA(int value) { |
| 6415 | result.hasA = true; |
| 6416 | result.a_ = value; |
| 6417 | return this; |
| 6418 | } |
| 6419 | public Builder ClearA() { |
| 6420 | result.hasA = false; |
| 6421 | result.a_ = 0; |
| 6422 | return this; |
| 6423 | } |
| 6424 | |
| 6425 | public bool HasDummy2 { |
| 6426 | get { return result.HasDummy2; } |
| 6427 | } |
| 6428 | public int Dummy2 { |
| 6429 | get { return result.Dummy2; } |
| 6430 | set { SetDummy2(value); } |
| 6431 | } |
| 6432 | public Builder SetDummy2(int value) { |
| 6433 | result.hasDummy2 = true; |
| 6434 | result.dummy2_ = value; |
| 6435 | return this; |
| 6436 | } |
| 6437 | public Builder ClearDummy2() { |
| 6438 | result.hasDummy2 = false; |
| 6439 | result.dummy2_ = 0; |
| 6440 | return this; |
| 6441 | } |
| 6442 | |
| 6443 | public bool HasB { |
| 6444 | get { return result.HasB; } |
| 6445 | } |
| 6446 | public int B { |
| 6447 | get { return result.B; } |
| 6448 | set { SetB(value); } |
| 6449 | } |
| 6450 | public Builder SetB(int value) { |
| 6451 | result.hasB = true; |
| 6452 | result.b_ = value; |
| 6453 | return this; |
| 6454 | } |
| 6455 | public Builder ClearB() { |
| 6456 | result.hasB = false; |
| 6457 | result.b_ = 0; |
| 6458 | return this; |
| 6459 | } |
| 6460 | |
| 6461 | public bool HasDummy4 { |
| 6462 | get { return result.HasDummy4; } |
| 6463 | } |
| 6464 | public int Dummy4 { |
| 6465 | get { return result.Dummy4; } |
| 6466 | set { SetDummy4(value); } |
| 6467 | } |
| 6468 | public Builder SetDummy4(int value) { |
| 6469 | result.hasDummy4 = true; |
| 6470 | result.dummy4_ = value; |
| 6471 | return this; |
| 6472 | } |
| 6473 | public Builder ClearDummy4() { |
| 6474 | result.hasDummy4 = false; |
| 6475 | result.dummy4_ = 0; |
| 6476 | return this; |
| 6477 | } |
| 6478 | |
| 6479 | public bool HasDummy5 { |
| 6480 | get { return result.HasDummy5; } |
| 6481 | } |
| 6482 | public int Dummy5 { |
| 6483 | get { return result.Dummy5; } |
| 6484 | set { SetDummy5(value); } |
| 6485 | } |
| 6486 | public Builder SetDummy5(int value) { |
| 6487 | result.hasDummy5 = true; |
| 6488 | result.dummy5_ = value; |
| 6489 | return this; |
| 6490 | } |
| 6491 | public Builder ClearDummy5() { |
| 6492 | result.hasDummy5 = false; |
| 6493 | result.dummy5_ = 0; |
| 6494 | return this; |
| 6495 | } |
| 6496 | |
| 6497 | public bool HasDummy6 { |
| 6498 | get { return result.HasDummy6; } |
| 6499 | } |
| 6500 | public int Dummy6 { |
| 6501 | get { return result.Dummy6; } |
| 6502 | set { SetDummy6(value); } |
| 6503 | } |
| 6504 | public Builder SetDummy6(int value) { |
| 6505 | result.hasDummy6 = true; |
| 6506 | result.dummy6_ = value; |
| 6507 | return this; |
| 6508 | } |
| 6509 | public Builder ClearDummy6() { |
| 6510 | result.hasDummy6 = false; |
| 6511 | result.dummy6_ = 0; |
| 6512 | return this; |
| 6513 | } |
| 6514 | |
| 6515 | public bool HasDummy7 { |
| 6516 | get { return result.HasDummy7; } |
| 6517 | } |
| 6518 | public int Dummy7 { |
| 6519 | get { return result.Dummy7; } |
| 6520 | set { SetDummy7(value); } |
| 6521 | } |
| 6522 | public Builder SetDummy7(int value) { |
| 6523 | result.hasDummy7 = true; |
| 6524 | result.dummy7_ = value; |
| 6525 | return this; |
| 6526 | } |
| 6527 | public Builder ClearDummy7() { |
| 6528 | result.hasDummy7 = false; |
| 6529 | result.dummy7_ = 0; |
| 6530 | return this; |
| 6531 | } |
| 6532 | |
| 6533 | public bool HasDummy8 { |
| 6534 | get { return result.HasDummy8; } |
| 6535 | } |
| 6536 | public int Dummy8 { |
| 6537 | get { return result.Dummy8; } |
| 6538 | set { SetDummy8(value); } |
| 6539 | } |
| 6540 | public Builder SetDummy8(int value) { |
| 6541 | result.hasDummy8 = true; |
| 6542 | result.dummy8_ = value; |
| 6543 | return this; |
| 6544 | } |
| 6545 | public Builder ClearDummy8() { |
| 6546 | result.hasDummy8 = false; |
| 6547 | result.dummy8_ = 0; |
| 6548 | return this; |
| 6549 | } |
| 6550 | |
| 6551 | public bool HasDummy9 { |
| 6552 | get { return result.HasDummy9; } |
| 6553 | } |
| 6554 | public int Dummy9 { |
| 6555 | get { return result.Dummy9; } |
| 6556 | set { SetDummy9(value); } |
| 6557 | } |
| 6558 | public Builder SetDummy9(int value) { |
| 6559 | result.hasDummy9 = true; |
| 6560 | result.dummy9_ = value; |
| 6561 | return this; |
| 6562 | } |
| 6563 | public Builder ClearDummy9() { |
| 6564 | result.hasDummy9 = false; |
| 6565 | result.dummy9_ = 0; |
| 6566 | return this; |
| 6567 | } |
| 6568 | |
| 6569 | public bool HasDummy10 { |
| 6570 | get { return result.HasDummy10; } |
| 6571 | } |
| 6572 | public int Dummy10 { |
| 6573 | get { return result.Dummy10; } |
| 6574 | set { SetDummy10(value); } |
| 6575 | } |
| 6576 | public Builder SetDummy10(int value) { |
| 6577 | result.hasDummy10 = true; |
| 6578 | result.dummy10_ = value; |
| 6579 | return this; |
| 6580 | } |
| 6581 | public Builder ClearDummy10() { |
| 6582 | result.hasDummy10 = false; |
| 6583 | result.dummy10_ = 0; |
| 6584 | return this; |
| 6585 | } |
| 6586 | |
| 6587 | public bool HasDummy11 { |
| 6588 | get { return result.HasDummy11; } |
| 6589 | } |
| 6590 | public int Dummy11 { |
| 6591 | get { return result.Dummy11; } |
| 6592 | set { SetDummy11(value); } |
| 6593 | } |
| 6594 | public Builder SetDummy11(int value) { |
| 6595 | result.hasDummy11 = true; |
| 6596 | result.dummy11_ = value; |
| 6597 | return this; |
| 6598 | } |
| 6599 | public Builder ClearDummy11() { |
| 6600 | result.hasDummy11 = false; |
| 6601 | result.dummy11_ = 0; |
| 6602 | return this; |
| 6603 | } |
| 6604 | |
| 6605 | public bool HasDummy12 { |
| 6606 | get { return result.HasDummy12; } |
| 6607 | } |
| 6608 | public int Dummy12 { |
| 6609 | get { return result.Dummy12; } |
| 6610 | set { SetDummy12(value); } |
| 6611 | } |
| 6612 | public Builder SetDummy12(int value) { |
| 6613 | result.hasDummy12 = true; |
| 6614 | result.dummy12_ = value; |
| 6615 | return this; |
| 6616 | } |
| 6617 | public Builder ClearDummy12() { |
| 6618 | result.hasDummy12 = false; |
| 6619 | result.dummy12_ = 0; |
| 6620 | return this; |
| 6621 | } |
| 6622 | |
| 6623 | public bool HasDummy13 { |
| 6624 | get { return result.HasDummy13; } |
| 6625 | } |
| 6626 | public int Dummy13 { |
| 6627 | get { return result.Dummy13; } |
| 6628 | set { SetDummy13(value); } |
| 6629 | } |
| 6630 | public Builder SetDummy13(int value) { |
| 6631 | result.hasDummy13 = true; |
| 6632 | result.dummy13_ = value; |
| 6633 | return this; |
| 6634 | } |
| 6635 | public Builder ClearDummy13() { |
| 6636 | result.hasDummy13 = false; |
| 6637 | result.dummy13_ = 0; |
| 6638 | return this; |
| 6639 | } |
| 6640 | |
| 6641 | public bool HasDummy14 { |
| 6642 | get { return result.HasDummy14; } |
| 6643 | } |
| 6644 | public int Dummy14 { |
| 6645 | get { return result.Dummy14; } |
| 6646 | set { SetDummy14(value); } |
| 6647 | } |
| 6648 | public Builder SetDummy14(int value) { |
| 6649 | result.hasDummy14 = true; |
| 6650 | result.dummy14_ = value; |
| 6651 | return this; |
| 6652 | } |
| 6653 | public Builder ClearDummy14() { |
| 6654 | result.hasDummy14 = false; |
| 6655 | result.dummy14_ = 0; |
| 6656 | return this; |
| 6657 | } |
| 6658 | |
| 6659 | public bool HasDummy15 { |
| 6660 | get { return result.HasDummy15; } |
| 6661 | } |
| 6662 | public int Dummy15 { |
| 6663 | get { return result.Dummy15; } |
| 6664 | set { SetDummy15(value); } |
| 6665 | } |
| 6666 | public Builder SetDummy15(int value) { |
| 6667 | result.hasDummy15 = true; |
| 6668 | result.dummy15_ = value; |
| 6669 | return this; |
| 6670 | } |
| 6671 | public Builder ClearDummy15() { |
| 6672 | result.hasDummy15 = false; |
| 6673 | result.dummy15_ = 0; |
| 6674 | return this; |
| 6675 | } |
| 6676 | |
| 6677 | public bool HasDummy16 { |
| 6678 | get { return result.HasDummy16; } |
| 6679 | } |
| 6680 | public int Dummy16 { |
| 6681 | get { return result.Dummy16; } |
| 6682 | set { SetDummy16(value); } |
| 6683 | } |
| 6684 | public Builder SetDummy16(int value) { |
| 6685 | result.hasDummy16 = true; |
| 6686 | result.dummy16_ = value; |
| 6687 | return this; |
| 6688 | } |
| 6689 | public Builder ClearDummy16() { |
| 6690 | result.hasDummy16 = false; |
| 6691 | result.dummy16_ = 0; |
| 6692 | return this; |
| 6693 | } |
| 6694 | |
| 6695 | public bool HasDummy17 { |
| 6696 | get { return result.HasDummy17; } |
| 6697 | } |
| 6698 | public int Dummy17 { |
| 6699 | get { return result.Dummy17; } |
| 6700 | set { SetDummy17(value); } |
| 6701 | } |
| 6702 | public Builder SetDummy17(int value) { |
| 6703 | result.hasDummy17 = true; |
| 6704 | result.dummy17_ = value; |
| 6705 | return this; |
| 6706 | } |
| 6707 | public Builder ClearDummy17() { |
| 6708 | result.hasDummy17 = false; |
| 6709 | result.dummy17_ = 0; |
| 6710 | return this; |
| 6711 | } |
| 6712 | |
| 6713 | public bool HasDummy18 { |
| 6714 | get { return result.HasDummy18; } |
| 6715 | } |
| 6716 | public int Dummy18 { |
| 6717 | get { return result.Dummy18; } |
| 6718 | set { SetDummy18(value); } |
| 6719 | } |
| 6720 | public Builder SetDummy18(int value) { |
| 6721 | result.hasDummy18 = true; |
| 6722 | result.dummy18_ = value; |
| 6723 | return this; |
| 6724 | } |
| 6725 | public Builder ClearDummy18() { |
| 6726 | result.hasDummy18 = false; |
| 6727 | result.dummy18_ = 0; |
| 6728 | return this; |
| 6729 | } |
| 6730 | |
| 6731 | public bool HasDummy19 { |
| 6732 | get { return result.HasDummy19; } |
| 6733 | } |
| 6734 | public int Dummy19 { |
| 6735 | get { return result.Dummy19; } |
| 6736 | set { SetDummy19(value); } |
| 6737 | } |
| 6738 | public Builder SetDummy19(int value) { |
| 6739 | result.hasDummy19 = true; |
| 6740 | result.dummy19_ = value; |
| 6741 | return this; |
| 6742 | } |
| 6743 | public Builder ClearDummy19() { |
| 6744 | result.hasDummy19 = false; |
| 6745 | result.dummy19_ = 0; |
| 6746 | return this; |
| 6747 | } |
| 6748 | |
| 6749 | public bool HasDummy20 { |
| 6750 | get { return result.HasDummy20; } |
| 6751 | } |
| 6752 | public int Dummy20 { |
| 6753 | get { return result.Dummy20; } |
| 6754 | set { SetDummy20(value); } |
| 6755 | } |
| 6756 | public Builder SetDummy20(int value) { |
| 6757 | result.hasDummy20 = true; |
| 6758 | result.dummy20_ = value; |
| 6759 | return this; |
| 6760 | } |
| 6761 | public Builder ClearDummy20() { |
| 6762 | result.hasDummy20 = false; |
| 6763 | result.dummy20_ = 0; |
| 6764 | return this; |
| 6765 | } |
| 6766 | |
| 6767 | public bool HasDummy21 { |
| 6768 | get { return result.HasDummy21; } |
| 6769 | } |
| 6770 | public int Dummy21 { |
| 6771 | get { return result.Dummy21; } |
| 6772 | set { SetDummy21(value); } |
| 6773 | } |
| 6774 | public Builder SetDummy21(int value) { |
| 6775 | result.hasDummy21 = true; |
| 6776 | result.dummy21_ = value; |
| 6777 | return this; |
| 6778 | } |
| 6779 | public Builder ClearDummy21() { |
| 6780 | result.hasDummy21 = false; |
| 6781 | result.dummy21_ = 0; |
| 6782 | return this; |
| 6783 | } |
| 6784 | |
| 6785 | public bool HasDummy22 { |
| 6786 | get { return result.HasDummy22; } |
| 6787 | } |
| 6788 | public int Dummy22 { |
| 6789 | get { return result.Dummy22; } |
| 6790 | set { SetDummy22(value); } |
| 6791 | } |
| 6792 | public Builder SetDummy22(int value) { |
| 6793 | result.hasDummy22 = true; |
| 6794 | result.dummy22_ = value; |
| 6795 | return this; |
| 6796 | } |
| 6797 | public Builder ClearDummy22() { |
| 6798 | result.hasDummy22 = false; |
| 6799 | result.dummy22_ = 0; |
| 6800 | return this; |
| 6801 | } |
| 6802 | |
| 6803 | public bool HasDummy23 { |
| 6804 | get { return result.HasDummy23; } |
| 6805 | } |
| 6806 | public int Dummy23 { |
| 6807 | get { return result.Dummy23; } |
| 6808 | set { SetDummy23(value); } |
| 6809 | } |
| 6810 | public Builder SetDummy23(int value) { |
| 6811 | result.hasDummy23 = true; |
| 6812 | result.dummy23_ = value; |
| 6813 | return this; |
| 6814 | } |
| 6815 | public Builder ClearDummy23() { |
| 6816 | result.hasDummy23 = false; |
| 6817 | result.dummy23_ = 0; |
| 6818 | return this; |
| 6819 | } |
| 6820 | |
| 6821 | public bool HasDummy24 { |
| 6822 | get { return result.HasDummy24; } |
| 6823 | } |
| 6824 | public int Dummy24 { |
| 6825 | get { return result.Dummy24; } |
| 6826 | set { SetDummy24(value); } |
| 6827 | } |
| 6828 | public Builder SetDummy24(int value) { |
| 6829 | result.hasDummy24 = true; |
| 6830 | result.dummy24_ = value; |
| 6831 | return this; |
| 6832 | } |
| 6833 | public Builder ClearDummy24() { |
| 6834 | result.hasDummy24 = false; |
| 6835 | result.dummy24_ = 0; |
| 6836 | return this; |
| 6837 | } |
| 6838 | |
| 6839 | public bool HasDummy25 { |
| 6840 | get { return result.HasDummy25; } |
| 6841 | } |
| 6842 | public int Dummy25 { |
| 6843 | get { return result.Dummy25; } |
| 6844 | set { SetDummy25(value); } |
| 6845 | } |
| 6846 | public Builder SetDummy25(int value) { |
| 6847 | result.hasDummy25 = true; |
| 6848 | result.dummy25_ = value; |
| 6849 | return this; |
| 6850 | } |
| 6851 | public Builder ClearDummy25() { |
| 6852 | result.hasDummy25 = false; |
| 6853 | result.dummy25_ = 0; |
| 6854 | return this; |
| 6855 | } |
| 6856 | |
| 6857 | public bool HasDummy26 { |
| 6858 | get { return result.HasDummy26; } |
| 6859 | } |
| 6860 | public int Dummy26 { |
| 6861 | get { return result.Dummy26; } |
| 6862 | set { SetDummy26(value); } |
| 6863 | } |
| 6864 | public Builder SetDummy26(int value) { |
| 6865 | result.hasDummy26 = true; |
| 6866 | result.dummy26_ = value; |
| 6867 | return this; |
| 6868 | } |
| 6869 | public Builder ClearDummy26() { |
| 6870 | result.hasDummy26 = false; |
| 6871 | result.dummy26_ = 0; |
| 6872 | return this; |
| 6873 | } |
| 6874 | |
| 6875 | public bool HasDummy27 { |
| 6876 | get { return result.HasDummy27; } |
| 6877 | } |
| 6878 | public int Dummy27 { |
| 6879 | get { return result.Dummy27; } |
| 6880 | set { SetDummy27(value); } |
| 6881 | } |
| 6882 | public Builder SetDummy27(int value) { |
| 6883 | result.hasDummy27 = true; |
| 6884 | result.dummy27_ = value; |
| 6885 | return this; |
| 6886 | } |
| 6887 | public Builder ClearDummy27() { |
| 6888 | result.hasDummy27 = false; |
| 6889 | result.dummy27_ = 0; |
| 6890 | return this; |
| 6891 | } |
| 6892 | |
| 6893 | public bool HasDummy28 { |
| 6894 | get { return result.HasDummy28; } |
| 6895 | } |
| 6896 | public int Dummy28 { |
| 6897 | get { return result.Dummy28; } |
| 6898 | set { SetDummy28(value); } |
| 6899 | } |
| 6900 | public Builder SetDummy28(int value) { |
| 6901 | result.hasDummy28 = true; |
| 6902 | result.dummy28_ = value; |
| 6903 | return this; |
| 6904 | } |
| 6905 | public Builder ClearDummy28() { |
| 6906 | result.hasDummy28 = false; |
| 6907 | result.dummy28_ = 0; |
| 6908 | return this; |
| 6909 | } |
| 6910 | |
| 6911 | public bool HasDummy29 { |
| 6912 | get { return result.HasDummy29; } |
| 6913 | } |
| 6914 | public int Dummy29 { |
| 6915 | get { return result.Dummy29; } |
| 6916 | set { SetDummy29(value); } |
| 6917 | } |
| 6918 | public Builder SetDummy29(int value) { |
| 6919 | result.hasDummy29 = true; |
| 6920 | result.dummy29_ = value; |
| 6921 | return this; |
| 6922 | } |
| 6923 | public Builder ClearDummy29() { |
| 6924 | result.hasDummy29 = false; |
| 6925 | result.dummy29_ = 0; |
| 6926 | return this; |
| 6927 | } |
| 6928 | |
| 6929 | public bool HasDummy30 { |
| 6930 | get { return result.HasDummy30; } |
| 6931 | } |
| 6932 | public int Dummy30 { |
| 6933 | get { return result.Dummy30; } |
| 6934 | set { SetDummy30(value); } |
| 6935 | } |
| 6936 | public Builder SetDummy30(int value) { |
| 6937 | result.hasDummy30 = true; |
| 6938 | result.dummy30_ = value; |
| 6939 | return this; |
| 6940 | } |
| 6941 | public Builder ClearDummy30() { |
| 6942 | result.hasDummy30 = false; |
| 6943 | result.dummy30_ = 0; |
| 6944 | return this; |
| 6945 | } |
| 6946 | |
| 6947 | public bool HasDummy31 { |
| 6948 | get { return result.HasDummy31; } |
| 6949 | } |
| 6950 | public int Dummy31 { |
| 6951 | get { return result.Dummy31; } |
| 6952 | set { SetDummy31(value); } |
| 6953 | } |
| 6954 | public Builder SetDummy31(int value) { |
| 6955 | result.hasDummy31 = true; |
| 6956 | result.dummy31_ = value; |
| 6957 | return this; |
| 6958 | } |
| 6959 | public Builder ClearDummy31() { |
| 6960 | result.hasDummy31 = false; |
| 6961 | result.dummy31_ = 0; |
| 6962 | return this; |
| 6963 | } |
| 6964 | |
| 6965 | public bool HasDummy32 { |
| 6966 | get { return result.HasDummy32; } |
| 6967 | } |
| 6968 | public int Dummy32 { |
| 6969 | get { return result.Dummy32; } |
| 6970 | set { SetDummy32(value); } |
| 6971 | } |
| 6972 | public Builder SetDummy32(int value) { |
| 6973 | result.hasDummy32 = true; |
| 6974 | result.dummy32_ = value; |
| 6975 | return this; |
| 6976 | } |
| 6977 | public Builder ClearDummy32() { |
| 6978 | result.hasDummy32 = false; |
| 6979 | result.dummy32_ = 0; |
| 6980 | return this; |
| 6981 | } |
| 6982 | |
| 6983 | public bool HasC { |
| 6984 | get { return result.HasC; } |
| 6985 | } |
| 6986 | public int C { |
| 6987 | get { return result.C; } |
| 6988 | set { SetC(value); } |
| 6989 | } |
| 6990 | public Builder SetC(int value) { |
| 6991 | result.hasC = true; |
| 6992 | result.c_ = value; |
| 6993 | return this; |
| 6994 | } |
| 6995 | public Builder ClearC() { |
| 6996 | result.hasC = false; |
| 6997 | result.c_ = 0; |
| 6998 | return this; |
| 6999 | } |
| 7000 | } |
| 7001 | } |
| 7002 | |
| 7003 | public sealed partial class TestRequiredForeign : pb::GeneratedMessage<TestRequiredForeign, TestRequiredForeign.Builder> { |
| 7004 | private static readonly TestRequiredForeign defaultInstance = new Builder().BuildPartial(); |
| 7005 | public static TestRequiredForeign DefaultInstance { |
| 7006 | get { return defaultInstance; } |
| 7007 | } |
| 7008 | |
| 7009 | public override TestRequiredForeign DefaultInstanceForType { |
| 7010 | get { return defaultInstance; } |
| 7011 | } |
| 7012 | |
| 7013 | protected override TestRequiredForeign ThisMessage { |
| 7014 | get { return this; } |
| 7015 | } |
| 7016 | |
| 7017 | public static pbd::MessageDescriptor Descriptor { |
| 7018 | get { return global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.internal__static_protobuf_unittest_TestRequiredForeign__Descriptor; } |
| 7019 | } |
| 7020 | |
| 7021 | protected override pb::FieldAccess.FieldAccessorTable<TestRequiredForeign, TestRequiredForeign.Builder> InternalFieldAccessors { |
| 7022 | get { return global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.internal__static_protobuf_unittest_TestRequiredForeign__FieldAccessorTable; } |
| 7023 | } |
| 7024 | |
| 7025 | private bool hasOptionalMessage; |
| 7026 | private global::Google.ProtocolBuffers.TestProtos.TestRequired optionalMessage_ = global::Google.ProtocolBuffers.TestProtos.TestRequired.DefaultInstance; |
| 7027 | public bool HasOptionalMessage { |
| 7028 | get { return hasOptionalMessage; } |
| 7029 | } |
| 7030 | public global::Google.ProtocolBuffers.TestProtos.TestRequired OptionalMessage { |
| 7031 | get { return optionalMessage_; } |
| 7032 | } |
| 7033 | |
| 7034 | private pbc::PopsicleList<global::Google.ProtocolBuffers.TestProtos.TestRequired> repeatedMessage_ = new pbc::PopsicleList<global::Google.ProtocolBuffers.TestProtos.TestRequired>(); |
| 7035 | public scg::IList<global::Google.ProtocolBuffers.TestProtos.TestRequired> RepeatedMessageList { |
| 7036 | get { return repeatedMessage_; } |
| 7037 | } |
| 7038 | public int RepeatedMessageCount { |
| 7039 | get { return repeatedMessage_.Count; } |
| 7040 | } |
| 7041 | public global::Google.ProtocolBuffers.TestProtos.TestRequired GetRepeatedMessage(int index) { |
| 7042 | return repeatedMessage_[index]; |
| 7043 | } |
| 7044 | |
| 7045 | private bool hasDummy; |
| 7046 | private int dummy_ = 0; |
| 7047 | public bool HasDummy { |
| 7048 | get { return hasDummy; } |
| 7049 | } |
| 7050 | public int Dummy { |
| 7051 | get { return dummy_; } |
| 7052 | } |
| 7053 | |
| 7054 | public override bool IsInitialized { |
| 7055 | get { |
| 7056 | if (HasOptionalMessage) { |
| 7057 | if (!OptionalMessage.IsInitialized) return false; |
| 7058 | } |
| 7059 | foreach (global::Google.ProtocolBuffers.TestProtos.TestRequired element in RepeatedMessageList) { |
| 7060 | if (!element.IsInitialized) return false; |
| 7061 | } |
| 7062 | return true; |
| 7063 | } |
| 7064 | } |
| 7065 | |
| 7066 | public override void WriteTo(pb::CodedOutputStream output) { |
| 7067 | if (HasOptionalMessage) { |
| 7068 | output.WriteMessage(1, OptionalMessage); |
| 7069 | } |
| 7070 | foreach (global::Google.ProtocolBuffers.TestProtos.TestRequired element in RepeatedMessageList) { |
| 7071 | output.WriteMessage(2, element); |
| 7072 | } |
| 7073 | if (HasDummy) { |
| 7074 | output.WriteInt32(3, Dummy); |
| 7075 | } |
| 7076 | UnknownFields.WriteTo(output); |
| 7077 | } |
| 7078 | |
| 7079 | private int memoizedSerializedSize = -1; |
| 7080 | public override int SerializedSize { |
| 7081 | get { |
| 7082 | int size = memoizedSerializedSize; |
| 7083 | if (size != -1) return size; |
| 7084 | |
| 7085 | size = 0; |
| 7086 | if (HasOptionalMessage) { |
| 7087 | size += pb::CodedOutputStream.ComputeMessageSize(1, OptionalMessage); |
| 7088 | } |
| 7089 | foreach (global::Google.ProtocolBuffers.TestProtos.TestRequired element in RepeatedMessageList) { |
| 7090 | size += pb::CodedOutputStream.ComputeMessageSize(2, element); |
| 7091 | } |
| 7092 | if (HasDummy) { |
| 7093 | size += pb::CodedOutputStream.ComputeInt32Size(3, Dummy); |
| 7094 | } |
| 7095 | size += UnknownFields.SerializedSize; |
| 7096 | memoizedSerializedSize = size; |
| 7097 | return size; |
| 7098 | } |
| 7099 | } |
| 7100 | |
| 7101 | public static TestRequiredForeign ParseFrom(pb::ByteString data) { |
| 7102 | return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed(); |
| 7103 | } |
| 7104 | public static TestRequiredForeign ParseFrom(pb::ByteString data, pb::ExtensionRegistry extensionRegistry) { |
| 7105 | return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed(); |
| 7106 | } |
| 7107 | public static TestRequiredForeign ParseFrom(byte[] data) { |
| 7108 | return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed(); |
| 7109 | } |
| 7110 | public static TestRequiredForeign ParseFrom(byte[] data, pb::ExtensionRegistry extensionRegistry) { |
| 7111 | return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed(); |
| 7112 | } |
| 7113 | public static TestRequiredForeign ParseFrom(global::System.IO.Stream input) { |
| 7114 | return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed(); |
| 7115 | } |
| 7116 | public static TestRequiredForeign ParseFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) { |
| 7117 | return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed(); |
| 7118 | } |
| 7119 | public static TestRequiredForeign ParseFrom(pb::CodedInputStream input) { |
| 7120 | return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed(); |
| 7121 | } |
| 7122 | public static TestRequiredForeign ParseFrom(pb::CodedInputStream input, pb::ExtensionRegistry extensionRegistry) { |
| 7123 | return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed(); |
| 7124 | } |
| 7125 | public static Builder CreateBuilder() { return new Builder(); } |
| 7126 | public override Builder CreateBuilderForType() { return new Builder(); } |
| 7127 | public static Builder CreateBuilder(TestRequiredForeign prototype) { |
| 7128 | return (Builder) new Builder().MergeFrom(prototype); |
| 7129 | } |
| 7130 | |
| 7131 | public sealed partial class Builder : pb::GeneratedBuilder<TestRequiredForeign, Builder> { |
| 7132 | protected override Builder ThisBuilder { |
| 7133 | get { return this; } |
| 7134 | } |
| 7135 | public Builder() {} |
| 7136 | |
| 7137 | TestRequiredForeign result = new TestRequiredForeign(); |
| 7138 | |
| 7139 | protected override TestRequiredForeign MessageBeingBuilt { |
| 7140 | get { return result; } |
| 7141 | } |
| 7142 | |
| 7143 | public override Builder Clear() { |
| 7144 | result = new TestRequiredForeign(); |
| 7145 | return this; |
| 7146 | } |
| 7147 | |
| 7148 | public override Builder Clone() { |
| 7149 | return new Builder().MergeFrom(result); |
| 7150 | } |
| 7151 | |
| 7152 | public override pbd::MessageDescriptor DescriptorForType { |
| 7153 | get { return TestRequiredForeign.Descriptor; } |
| 7154 | } |
| 7155 | |
| 7156 | public override TestRequiredForeign DefaultInstanceForType { |
| 7157 | get { return TestRequiredForeign.DefaultInstance; } |
| 7158 | } |
| 7159 | |
| 7160 | public override TestRequiredForeign BuildPartial() { |
| 7161 | result.repeatedMessage_.MakeReadOnly(); |
| 7162 | TestRequiredForeign returnMe = result; |
| 7163 | result = null; |
| 7164 | return returnMe; |
| 7165 | } |
| 7166 | |
| 7167 | public override Builder MergeFrom(pb::IMessage other) { |
| 7168 | if (other is TestRequiredForeign) { |
| 7169 | return MergeFrom((TestRequiredForeign) other); |
| 7170 | } else { |
| 7171 | base.MergeFrom(other); |
| 7172 | return this; |
| 7173 | } |
| 7174 | } |
| 7175 | |
| 7176 | public override Builder MergeFrom(TestRequiredForeign other) { |
| 7177 | if (other == TestRequiredForeign.DefaultInstance) return this; |
| 7178 | if (other.HasOptionalMessage) { |
| 7179 | MergeOptionalMessage(other.OptionalMessage); |
| 7180 | } |
| 7181 | if (other.repeatedMessage_.Count != 0) { |
| 7182 | base.AddRange(other.repeatedMessage_, result.repeatedMessage_); |
| 7183 | } |
| 7184 | if (other.HasDummy) { |
| 7185 | Dummy = other.Dummy; |
| 7186 | } |
| 7187 | this.MergeUnknownFields(other.UnknownFields); |
| 7188 | return this; |
| 7189 | } |
| 7190 | |
| 7191 | public override Builder MergeFrom(pb::CodedInputStream input) { |
| 7192 | return MergeFrom(input, pb::ExtensionRegistry.Empty); |
| 7193 | } |
| 7194 | |
| 7195 | public override Builder MergeFrom(pb::CodedInputStream input, pb::ExtensionRegistry extensionRegistry) { |
| 7196 | pb::UnknownFieldSet.Builder unknownFields = pb::UnknownFieldSet.CreateBuilder(this.UnknownFields); |
| 7197 | while (true) { |
| 7198 | uint tag = input.ReadTag(); |
| 7199 | switch (tag) { |
| 7200 | case 0: { |
| 7201 | this.UnknownFields = unknownFields.Build(); |
| 7202 | return this; |
| 7203 | } |
| 7204 | default: { |
| 7205 | if (!ParseUnknownField(input, unknownFields, extensionRegistry, tag)) { |
| 7206 | this.UnknownFields = unknownFields.Build(); |
| 7207 | return this; |
| 7208 | } |
| 7209 | break; |
| 7210 | } |
| 7211 | case 10: { |
| 7212 | global::Google.ProtocolBuffers.TestProtos.TestRequired.Builder subBuilder = global::Google.ProtocolBuffers.TestProtos.TestRequired.CreateBuilder(); |
| 7213 | if (HasOptionalMessage) { |
| 7214 | subBuilder.MergeFrom(OptionalMessage); |
| 7215 | } |
| 7216 | input.ReadMessage(subBuilder, extensionRegistry); |
| 7217 | OptionalMessage = subBuilder.BuildPartial(); |
| 7218 | break; |
| 7219 | } |
| 7220 | case 18: { |
| 7221 | global::Google.ProtocolBuffers.TestProtos.TestRequired.Builder subBuilder = global::Google.ProtocolBuffers.TestProtos.TestRequired.CreateBuilder(); |
| 7222 | input.ReadMessage(subBuilder, extensionRegistry); |
| 7223 | AddRepeatedMessage(subBuilder.BuildPartial()); |
| 7224 | break; |
| 7225 | } |
| 7226 | case 24: { |
| 7227 | Dummy = input.ReadInt32(); |
| 7228 | break; |
| 7229 | } |
| 7230 | } |
| 7231 | } |
| 7232 | } |
| 7233 | |
| 7234 | |
| 7235 | public bool HasOptionalMessage { |
| 7236 | get { return result.HasOptionalMessage; } |
| 7237 | } |
| 7238 | public global::Google.ProtocolBuffers.TestProtos.TestRequired OptionalMessage { |
| 7239 | get { return result.OptionalMessage; } |
| 7240 | set { SetOptionalMessage(value); } |
| 7241 | } |
| 7242 | public Builder SetOptionalMessage(global::Google.ProtocolBuffers.TestProtos.TestRequired value) { |
Jon Skeet | 642a814 | 2009-01-27 12:25:21 +0000 | [diff] [blame] | 7243 | pb::ThrowHelper.ThrowIfNull(value, "value"); |
Jon Skeet | 6803686 | 2008-10-22 13:30:34 +0100 | [diff] [blame] | 7244 | result.hasOptionalMessage = true; |
| 7245 | result.optionalMessage_ = value; |
| 7246 | return this; |
| 7247 | } |
| 7248 | public Builder SetOptionalMessage(global::Google.ProtocolBuffers.TestProtos.TestRequired.Builder builderForValue) { |
Jon Skeet | 642a814 | 2009-01-27 12:25:21 +0000 | [diff] [blame] | 7249 | pb::ThrowHelper.ThrowIfNull(builderForValue, "builderForValue"); |
Jon Skeet | 6803686 | 2008-10-22 13:30:34 +0100 | [diff] [blame] | 7250 | result.hasOptionalMessage = true; |
| 7251 | result.optionalMessage_ = builderForValue.Build(); |
| 7252 | return this; |
| 7253 | } |
| 7254 | public Builder MergeOptionalMessage(global::Google.ProtocolBuffers.TestProtos.TestRequired value) { |
Jon Skeet | 642a814 | 2009-01-27 12:25:21 +0000 | [diff] [blame] | 7255 | pb::ThrowHelper.ThrowIfNull(value, "value"); |
Jon Skeet | 6803686 | 2008-10-22 13:30:34 +0100 | [diff] [blame] | 7256 | if (result.HasOptionalMessage && |
| 7257 | result.optionalMessage_ != global::Google.ProtocolBuffers.TestProtos.TestRequired.DefaultInstance) { |
| 7258 | result.optionalMessage_ = global::Google.ProtocolBuffers.TestProtos.TestRequired.CreateBuilder(result.optionalMessage_).MergeFrom(value).BuildPartial(); |
| 7259 | } else { |
| 7260 | result.optionalMessage_ = value; |
| 7261 | } |
| 7262 | result.hasOptionalMessage = true; |
| 7263 | return this; |
| 7264 | } |
| 7265 | public Builder ClearOptionalMessage() { |
| 7266 | result.hasOptionalMessage = false; |
| 7267 | result.optionalMessage_ = global::Google.ProtocolBuffers.TestProtos.TestRequired.DefaultInstance; |
| 7268 | return this; |
| 7269 | } |
| 7270 | |
| 7271 | public scg::IList<global::Google.ProtocolBuffers.TestProtos.TestRequired> RepeatedMessageList { |
| 7272 | get { return result.repeatedMessage_; } |
| 7273 | } |
| 7274 | public int RepeatedMessageCount { |
| 7275 | get { return result.RepeatedMessageCount; } |
| 7276 | } |
| 7277 | public global::Google.ProtocolBuffers.TestProtos.TestRequired GetRepeatedMessage(int index) { |
| 7278 | return result.GetRepeatedMessage(index); |
| 7279 | } |
| 7280 | public Builder SetRepeatedMessage(int index, global::Google.ProtocolBuffers.TestProtos.TestRequired value) { |
Jon Skeet | 642a814 | 2009-01-27 12:25:21 +0000 | [diff] [blame] | 7281 | pb::ThrowHelper.ThrowIfNull(value, "value"); |
Jon Skeet | 6803686 | 2008-10-22 13:30:34 +0100 | [diff] [blame] | 7282 | result.repeatedMessage_[index] = value; |
| 7283 | return this; |
| 7284 | } |
| 7285 | public Builder SetRepeatedMessage(int index, global::Google.ProtocolBuffers.TestProtos.TestRequired.Builder builderForValue) { |
Jon Skeet | 642a814 | 2009-01-27 12:25:21 +0000 | [diff] [blame] | 7286 | pb::ThrowHelper.ThrowIfNull(builderForValue, "builderForValue"); |
Jon Skeet | 6803686 | 2008-10-22 13:30:34 +0100 | [diff] [blame] | 7287 | result.repeatedMessage_[index] = builderForValue.Build(); |
| 7288 | return this; |
| 7289 | } |
| 7290 | public Builder AddRepeatedMessage(global::Google.ProtocolBuffers.TestProtos.TestRequired value) { |
Jon Skeet | 642a814 | 2009-01-27 12:25:21 +0000 | [diff] [blame] | 7291 | pb::ThrowHelper.ThrowIfNull(value, "value"); |
Jon Skeet | 6803686 | 2008-10-22 13:30:34 +0100 | [diff] [blame] | 7292 | result.repeatedMessage_.Add(value); |
| 7293 | return this; |
| 7294 | } |
| 7295 | public Builder AddRepeatedMessage(global::Google.ProtocolBuffers.TestProtos.TestRequired.Builder builderForValue) { |
Jon Skeet | 642a814 | 2009-01-27 12:25:21 +0000 | [diff] [blame] | 7296 | pb::ThrowHelper.ThrowIfNull(builderForValue, "builderForValue"); |
Jon Skeet | 6803686 | 2008-10-22 13:30:34 +0100 | [diff] [blame] | 7297 | result.repeatedMessage_.Add(builderForValue.Build()); |
| 7298 | return this; |
| 7299 | } |
| 7300 | public Builder AddRangeRepeatedMessage(scg::IEnumerable<global::Google.ProtocolBuffers.TestProtos.TestRequired> values) { |
| 7301 | base.AddRange(values, result.repeatedMessage_); |
| 7302 | return this; |
| 7303 | } |
| 7304 | public Builder ClearRepeatedMessage() { |
| 7305 | result.repeatedMessage_.Clear(); |
| 7306 | return this; |
| 7307 | } |
| 7308 | |
| 7309 | public bool HasDummy { |
| 7310 | get { return result.HasDummy; } |
| 7311 | } |
| 7312 | public int Dummy { |
| 7313 | get { return result.Dummy; } |
| 7314 | set { SetDummy(value); } |
| 7315 | } |
| 7316 | public Builder SetDummy(int value) { |
| 7317 | result.hasDummy = true; |
| 7318 | result.dummy_ = value; |
| 7319 | return this; |
| 7320 | } |
| 7321 | public Builder ClearDummy() { |
| 7322 | result.hasDummy = false; |
| 7323 | result.dummy_ = 0; |
| 7324 | return this; |
| 7325 | } |
| 7326 | } |
| 7327 | } |
| 7328 | |
| 7329 | public sealed partial class TestForeignNested : pb::GeneratedMessage<TestForeignNested, TestForeignNested.Builder> { |
| 7330 | private static readonly TestForeignNested defaultInstance = new Builder().BuildPartial(); |
| 7331 | public static TestForeignNested DefaultInstance { |
| 7332 | get { return defaultInstance; } |
| 7333 | } |
| 7334 | |
| 7335 | public override TestForeignNested DefaultInstanceForType { |
| 7336 | get { return defaultInstance; } |
| 7337 | } |
| 7338 | |
| 7339 | protected override TestForeignNested ThisMessage { |
| 7340 | get { return this; } |
| 7341 | } |
| 7342 | |
| 7343 | public static pbd::MessageDescriptor Descriptor { |
| 7344 | get { return global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.internal__static_protobuf_unittest_TestForeignNested__Descriptor; } |
| 7345 | } |
| 7346 | |
| 7347 | protected override pb::FieldAccess.FieldAccessorTable<TestForeignNested, TestForeignNested.Builder> InternalFieldAccessors { |
| 7348 | get { return global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.internal__static_protobuf_unittest_TestForeignNested__FieldAccessorTable; } |
| 7349 | } |
| 7350 | |
| 7351 | private bool hasForeignNested; |
| 7352 | private global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedMessage foreignNested_ = global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedMessage.DefaultInstance; |
| 7353 | public bool HasForeignNested { |
| 7354 | get { return hasForeignNested; } |
| 7355 | } |
| 7356 | public global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedMessage ForeignNested { |
| 7357 | get { return foreignNested_; } |
| 7358 | } |
| 7359 | |
| 7360 | public override bool IsInitialized { |
| 7361 | get { |
| 7362 | return true; |
| 7363 | } |
| 7364 | } |
| 7365 | |
| 7366 | public override void WriteTo(pb::CodedOutputStream output) { |
| 7367 | if (HasForeignNested) { |
| 7368 | output.WriteMessage(1, ForeignNested); |
| 7369 | } |
| 7370 | UnknownFields.WriteTo(output); |
| 7371 | } |
| 7372 | |
| 7373 | private int memoizedSerializedSize = -1; |
| 7374 | public override int SerializedSize { |
| 7375 | get { |
| 7376 | int size = memoizedSerializedSize; |
| 7377 | if (size != -1) return size; |
| 7378 | |
| 7379 | size = 0; |
| 7380 | if (HasForeignNested) { |
| 7381 | size += pb::CodedOutputStream.ComputeMessageSize(1, ForeignNested); |
| 7382 | } |
| 7383 | size += UnknownFields.SerializedSize; |
| 7384 | memoizedSerializedSize = size; |
| 7385 | return size; |
| 7386 | } |
| 7387 | } |
| 7388 | |
| 7389 | public static TestForeignNested ParseFrom(pb::ByteString data) { |
| 7390 | return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed(); |
| 7391 | } |
| 7392 | public static TestForeignNested ParseFrom(pb::ByteString data, pb::ExtensionRegistry extensionRegistry) { |
| 7393 | return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed(); |
| 7394 | } |
| 7395 | public static TestForeignNested ParseFrom(byte[] data) { |
| 7396 | return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed(); |
| 7397 | } |
| 7398 | public static TestForeignNested ParseFrom(byte[] data, pb::ExtensionRegistry extensionRegistry) { |
| 7399 | return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed(); |
| 7400 | } |
| 7401 | public static TestForeignNested ParseFrom(global::System.IO.Stream input) { |
| 7402 | return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed(); |
| 7403 | } |
| 7404 | public static TestForeignNested ParseFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) { |
| 7405 | return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed(); |
| 7406 | } |
| 7407 | public static TestForeignNested ParseFrom(pb::CodedInputStream input) { |
| 7408 | return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed(); |
| 7409 | } |
| 7410 | public static TestForeignNested ParseFrom(pb::CodedInputStream input, pb::ExtensionRegistry extensionRegistry) { |
| 7411 | return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed(); |
| 7412 | } |
| 7413 | public static Builder CreateBuilder() { return new Builder(); } |
| 7414 | public override Builder CreateBuilderForType() { return new Builder(); } |
| 7415 | public static Builder CreateBuilder(TestForeignNested prototype) { |
| 7416 | return (Builder) new Builder().MergeFrom(prototype); |
| 7417 | } |
| 7418 | |
| 7419 | public sealed partial class Builder : pb::GeneratedBuilder<TestForeignNested, Builder> { |
| 7420 | protected override Builder ThisBuilder { |
| 7421 | get { return this; } |
| 7422 | } |
| 7423 | public Builder() {} |
| 7424 | |
| 7425 | TestForeignNested result = new TestForeignNested(); |
| 7426 | |
| 7427 | protected override TestForeignNested MessageBeingBuilt { |
| 7428 | get { return result; } |
| 7429 | } |
| 7430 | |
| 7431 | public override Builder Clear() { |
| 7432 | result = new TestForeignNested(); |
| 7433 | return this; |
| 7434 | } |
| 7435 | |
| 7436 | public override Builder Clone() { |
| 7437 | return new Builder().MergeFrom(result); |
| 7438 | } |
| 7439 | |
| 7440 | public override pbd::MessageDescriptor DescriptorForType { |
| 7441 | get { return TestForeignNested.Descriptor; } |
| 7442 | } |
| 7443 | |
| 7444 | public override TestForeignNested DefaultInstanceForType { |
| 7445 | get { return TestForeignNested.DefaultInstance; } |
| 7446 | } |
| 7447 | |
| 7448 | public override TestForeignNested BuildPartial() { |
| 7449 | TestForeignNested returnMe = result; |
| 7450 | result = null; |
| 7451 | return returnMe; |
| 7452 | } |
| 7453 | |
| 7454 | public override Builder MergeFrom(pb::IMessage other) { |
| 7455 | if (other is TestForeignNested) { |
| 7456 | return MergeFrom((TestForeignNested) other); |
| 7457 | } else { |
| 7458 | base.MergeFrom(other); |
| 7459 | return this; |
| 7460 | } |
| 7461 | } |
| 7462 | |
| 7463 | public override Builder MergeFrom(TestForeignNested other) { |
| 7464 | if (other == TestForeignNested.DefaultInstance) return this; |
| 7465 | if (other.HasForeignNested) { |
| 7466 | MergeForeignNested(other.ForeignNested); |
| 7467 | } |
| 7468 | this.MergeUnknownFields(other.UnknownFields); |
| 7469 | return this; |
| 7470 | } |
| 7471 | |
| 7472 | public override Builder MergeFrom(pb::CodedInputStream input) { |
| 7473 | return MergeFrom(input, pb::ExtensionRegistry.Empty); |
| 7474 | } |
| 7475 | |
| 7476 | public override Builder MergeFrom(pb::CodedInputStream input, pb::ExtensionRegistry extensionRegistry) { |
| 7477 | pb::UnknownFieldSet.Builder unknownFields = pb::UnknownFieldSet.CreateBuilder(this.UnknownFields); |
| 7478 | while (true) { |
| 7479 | uint tag = input.ReadTag(); |
| 7480 | switch (tag) { |
| 7481 | case 0: { |
| 7482 | this.UnknownFields = unknownFields.Build(); |
| 7483 | return this; |
| 7484 | } |
| 7485 | default: { |
| 7486 | if (!ParseUnknownField(input, unknownFields, extensionRegistry, tag)) { |
| 7487 | this.UnknownFields = unknownFields.Build(); |
| 7488 | return this; |
| 7489 | } |
| 7490 | break; |
| 7491 | } |
| 7492 | case 10: { |
| 7493 | global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedMessage.Builder subBuilder = global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedMessage.CreateBuilder(); |
| 7494 | if (HasForeignNested) { |
| 7495 | subBuilder.MergeFrom(ForeignNested); |
| 7496 | } |
| 7497 | input.ReadMessage(subBuilder, extensionRegistry); |
| 7498 | ForeignNested = subBuilder.BuildPartial(); |
| 7499 | break; |
| 7500 | } |
| 7501 | } |
| 7502 | } |
| 7503 | } |
| 7504 | |
| 7505 | |
| 7506 | public bool HasForeignNested { |
| 7507 | get { return result.HasForeignNested; } |
| 7508 | } |
| 7509 | public global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedMessage ForeignNested { |
| 7510 | get { return result.ForeignNested; } |
| 7511 | set { SetForeignNested(value); } |
| 7512 | } |
| 7513 | public Builder SetForeignNested(global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedMessage value) { |
Jon Skeet | 642a814 | 2009-01-27 12:25:21 +0000 | [diff] [blame] | 7514 | pb::ThrowHelper.ThrowIfNull(value, "value"); |
Jon Skeet | 6803686 | 2008-10-22 13:30:34 +0100 | [diff] [blame] | 7515 | result.hasForeignNested = true; |
| 7516 | result.foreignNested_ = value; |
| 7517 | return this; |
| 7518 | } |
| 7519 | public Builder SetForeignNested(global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedMessage.Builder builderForValue) { |
Jon Skeet | 642a814 | 2009-01-27 12:25:21 +0000 | [diff] [blame] | 7520 | pb::ThrowHelper.ThrowIfNull(builderForValue, "builderForValue"); |
Jon Skeet | 6803686 | 2008-10-22 13:30:34 +0100 | [diff] [blame] | 7521 | result.hasForeignNested = true; |
| 7522 | result.foreignNested_ = builderForValue.Build(); |
| 7523 | return this; |
| 7524 | } |
| 7525 | public Builder MergeForeignNested(global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedMessage value) { |
Jon Skeet | 642a814 | 2009-01-27 12:25:21 +0000 | [diff] [blame] | 7526 | pb::ThrowHelper.ThrowIfNull(value, "value"); |
Jon Skeet | 6803686 | 2008-10-22 13:30:34 +0100 | [diff] [blame] | 7527 | if (result.HasForeignNested && |
| 7528 | result.foreignNested_ != global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedMessage.DefaultInstance) { |
| 7529 | result.foreignNested_ = global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedMessage.CreateBuilder(result.foreignNested_).MergeFrom(value).BuildPartial(); |
| 7530 | } else { |
| 7531 | result.foreignNested_ = value; |
| 7532 | } |
| 7533 | result.hasForeignNested = true; |
| 7534 | return this; |
| 7535 | } |
| 7536 | public Builder ClearForeignNested() { |
| 7537 | result.hasForeignNested = false; |
| 7538 | result.foreignNested_ = global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedMessage.DefaultInstance; |
| 7539 | return this; |
| 7540 | } |
| 7541 | } |
| 7542 | } |
| 7543 | |
| 7544 | public sealed partial class TestEmptyMessage : pb::GeneratedMessage<TestEmptyMessage, TestEmptyMessage.Builder> { |
| 7545 | private static readonly TestEmptyMessage defaultInstance = new Builder().BuildPartial(); |
| 7546 | public static TestEmptyMessage DefaultInstance { |
| 7547 | get { return defaultInstance; } |
| 7548 | } |
| 7549 | |
| 7550 | public override TestEmptyMessage DefaultInstanceForType { |
| 7551 | get { return defaultInstance; } |
| 7552 | } |
| 7553 | |
| 7554 | protected override TestEmptyMessage ThisMessage { |
| 7555 | get { return this; } |
| 7556 | } |
| 7557 | |
| 7558 | public static pbd::MessageDescriptor Descriptor { |
| 7559 | get { return global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.internal__static_protobuf_unittest_TestEmptyMessage__Descriptor; } |
| 7560 | } |
| 7561 | |
| 7562 | protected override pb::FieldAccess.FieldAccessorTable<TestEmptyMessage, TestEmptyMessage.Builder> InternalFieldAccessors { |
| 7563 | get { return global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.internal__static_protobuf_unittest_TestEmptyMessage__FieldAccessorTable; } |
| 7564 | } |
| 7565 | |
| 7566 | public override bool IsInitialized { |
| 7567 | get { |
| 7568 | return true; |
| 7569 | } |
| 7570 | } |
| 7571 | |
| 7572 | public override void WriteTo(pb::CodedOutputStream output) { |
| 7573 | UnknownFields.WriteTo(output); |
| 7574 | } |
| 7575 | |
| 7576 | private int memoizedSerializedSize = -1; |
| 7577 | public override int SerializedSize { |
| 7578 | get { |
| 7579 | int size = memoizedSerializedSize; |
| 7580 | if (size != -1) return size; |
| 7581 | |
| 7582 | size = 0; |
| 7583 | size += UnknownFields.SerializedSize; |
| 7584 | memoizedSerializedSize = size; |
| 7585 | return size; |
| 7586 | } |
| 7587 | } |
| 7588 | |
| 7589 | public static TestEmptyMessage ParseFrom(pb::ByteString data) { |
| 7590 | return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed(); |
| 7591 | } |
| 7592 | public static TestEmptyMessage ParseFrom(pb::ByteString data, pb::ExtensionRegistry extensionRegistry) { |
| 7593 | return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed(); |
| 7594 | } |
| 7595 | public static TestEmptyMessage ParseFrom(byte[] data) { |
| 7596 | return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed(); |
| 7597 | } |
| 7598 | public static TestEmptyMessage ParseFrom(byte[] data, pb::ExtensionRegistry extensionRegistry) { |
| 7599 | return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed(); |
| 7600 | } |
| 7601 | public static TestEmptyMessage ParseFrom(global::System.IO.Stream input) { |
| 7602 | return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed(); |
| 7603 | } |
| 7604 | public static TestEmptyMessage ParseFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) { |
| 7605 | return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed(); |
| 7606 | } |
| 7607 | public static TestEmptyMessage ParseFrom(pb::CodedInputStream input) { |
| 7608 | return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed(); |
| 7609 | } |
| 7610 | public static TestEmptyMessage ParseFrom(pb::CodedInputStream input, pb::ExtensionRegistry extensionRegistry) { |
| 7611 | return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed(); |
| 7612 | } |
| 7613 | public static Builder CreateBuilder() { return new Builder(); } |
| 7614 | public override Builder CreateBuilderForType() { return new Builder(); } |
| 7615 | public static Builder CreateBuilder(TestEmptyMessage prototype) { |
| 7616 | return (Builder) new Builder().MergeFrom(prototype); |
| 7617 | } |
| 7618 | |
| 7619 | public sealed partial class Builder : pb::GeneratedBuilder<TestEmptyMessage, Builder> { |
| 7620 | protected override Builder ThisBuilder { |
| 7621 | get { return this; } |
| 7622 | } |
| 7623 | public Builder() {} |
| 7624 | |
| 7625 | TestEmptyMessage result = new TestEmptyMessage(); |
| 7626 | |
| 7627 | protected override TestEmptyMessage MessageBeingBuilt { |
| 7628 | get { return result; } |
| 7629 | } |
| 7630 | |
| 7631 | public override Builder Clear() { |
| 7632 | result = new TestEmptyMessage(); |
| 7633 | return this; |
| 7634 | } |
| 7635 | |
| 7636 | public override Builder Clone() { |
| 7637 | return new Builder().MergeFrom(result); |
| 7638 | } |
| 7639 | |
| 7640 | public override pbd::MessageDescriptor DescriptorForType { |
| 7641 | get { return TestEmptyMessage.Descriptor; } |
| 7642 | } |
| 7643 | |
| 7644 | public override TestEmptyMessage DefaultInstanceForType { |
| 7645 | get { return TestEmptyMessage.DefaultInstance; } |
| 7646 | } |
| 7647 | |
| 7648 | public override TestEmptyMessage BuildPartial() { |
| 7649 | TestEmptyMessage returnMe = result; |
| 7650 | result = null; |
| 7651 | return returnMe; |
| 7652 | } |
| 7653 | |
| 7654 | public override Builder MergeFrom(pb::IMessage other) { |
| 7655 | if (other is TestEmptyMessage) { |
| 7656 | return MergeFrom((TestEmptyMessage) other); |
| 7657 | } else { |
| 7658 | base.MergeFrom(other); |
| 7659 | return this; |
| 7660 | } |
| 7661 | } |
| 7662 | |
| 7663 | public override Builder MergeFrom(TestEmptyMessage other) { |
| 7664 | if (other == TestEmptyMessage.DefaultInstance) return this; |
| 7665 | this.MergeUnknownFields(other.UnknownFields); |
| 7666 | return this; |
| 7667 | } |
| 7668 | |
| 7669 | public override Builder MergeFrom(pb::CodedInputStream input) { |
| 7670 | return MergeFrom(input, pb::ExtensionRegistry.Empty); |
| 7671 | } |
| 7672 | |
| 7673 | public override Builder MergeFrom(pb::CodedInputStream input, pb::ExtensionRegistry extensionRegistry) { |
| 7674 | pb::UnknownFieldSet.Builder unknownFields = pb::UnknownFieldSet.CreateBuilder(this.UnknownFields); |
| 7675 | while (true) { |
| 7676 | uint tag = input.ReadTag(); |
| 7677 | switch (tag) { |
| 7678 | case 0: { |
| 7679 | this.UnknownFields = unknownFields.Build(); |
| 7680 | return this; |
| 7681 | } |
| 7682 | default: { |
| 7683 | if (!ParseUnknownField(input, unknownFields, extensionRegistry, tag)) { |
| 7684 | this.UnknownFields = unknownFields.Build(); |
| 7685 | return this; |
| 7686 | } |
| 7687 | break; |
| 7688 | } |
| 7689 | } |
| 7690 | } |
| 7691 | } |
| 7692 | |
| 7693 | } |
| 7694 | } |
| 7695 | |
| 7696 | public sealed partial class TestEmptyMessageWithExtensions : pb::ExtendableMessage<TestEmptyMessageWithExtensions, TestEmptyMessageWithExtensions.Builder> { |
| 7697 | private static readonly TestEmptyMessageWithExtensions defaultInstance = new Builder().BuildPartial(); |
| 7698 | public static TestEmptyMessageWithExtensions DefaultInstance { |
| 7699 | get { return defaultInstance; } |
| 7700 | } |
| 7701 | |
| 7702 | public override TestEmptyMessageWithExtensions DefaultInstanceForType { |
| 7703 | get { return defaultInstance; } |
| 7704 | } |
| 7705 | |
| 7706 | protected override TestEmptyMessageWithExtensions ThisMessage { |
| 7707 | get { return this; } |
| 7708 | } |
| 7709 | |
| 7710 | public static pbd::MessageDescriptor Descriptor { |
| 7711 | get { return global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.internal__static_protobuf_unittest_TestEmptyMessageWithExtensions__Descriptor; } |
| 7712 | } |
| 7713 | |
| 7714 | protected override pb::FieldAccess.FieldAccessorTable<TestEmptyMessageWithExtensions, TestEmptyMessageWithExtensions.Builder> InternalFieldAccessors { |
| 7715 | get { return global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.internal__static_protobuf_unittest_TestEmptyMessageWithExtensions__FieldAccessorTable; } |
| 7716 | } |
| 7717 | |
| 7718 | public override bool IsInitialized { |
| 7719 | get { |
| 7720 | if (!ExtensionsAreInitialized) return false; |
| 7721 | return true; |
| 7722 | } |
| 7723 | } |
| 7724 | |
| 7725 | public override void WriteTo(pb::CodedOutputStream output) { |
| 7726 | pb::ExtendableMessage<TestEmptyMessageWithExtensions, TestEmptyMessageWithExtensions.Builder>.ExtensionWriter extensionWriter = CreateExtensionWriter(this); |
| 7727 | extensionWriter.WriteUntil(536870912, output); |
| 7728 | UnknownFields.WriteTo(output); |
| 7729 | } |
| 7730 | |
| 7731 | private int memoizedSerializedSize = -1; |
| 7732 | public override int SerializedSize { |
| 7733 | get { |
| 7734 | int size = memoizedSerializedSize; |
| 7735 | if (size != -1) return size; |
| 7736 | |
| 7737 | size = 0; |
| 7738 | size += ExtensionsSerializedSize; |
| 7739 | size += UnknownFields.SerializedSize; |
| 7740 | memoizedSerializedSize = size; |
| 7741 | return size; |
| 7742 | } |
| 7743 | } |
| 7744 | |
| 7745 | public static TestEmptyMessageWithExtensions ParseFrom(pb::ByteString data) { |
| 7746 | return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed(); |
| 7747 | } |
| 7748 | public static TestEmptyMessageWithExtensions ParseFrom(pb::ByteString data, pb::ExtensionRegistry extensionRegistry) { |
| 7749 | return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed(); |
| 7750 | } |
| 7751 | public static TestEmptyMessageWithExtensions ParseFrom(byte[] data) { |
| 7752 | return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed(); |
| 7753 | } |
| 7754 | public static TestEmptyMessageWithExtensions ParseFrom(byte[] data, pb::ExtensionRegistry extensionRegistry) { |
| 7755 | return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed(); |
| 7756 | } |
| 7757 | public static TestEmptyMessageWithExtensions ParseFrom(global::System.IO.Stream input) { |
| 7758 | return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed(); |
| 7759 | } |
| 7760 | public static TestEmptyMessageWithExtensions ParseFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) { |
| 7761 | return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed(); |
| 7762 | } |
| 7763 | public static TestEmptyMessageWithExtensions ParseFrom(pb::CodedInputStream input) { |
| 7764 | return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed(); |
| 7765 | } |
| 7766 | public static TestEmptyMessageWithExtensions ParseFrom(pb::CodedInputStream input, pb::ExtensionRegistry extensionRegistry) { |
| 7767 | return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed(); |
| 7768 | } |
| 7769 | public static Builder CreateBuilder() { return new Builder(); } |
| 7770 | public override Builder CreateBuilderForType() { return new Builder(); } |
| 7771 | public static Builder CreateBuilder(TestEmptyMessageWithExtensions prototype) { |
| 7772 | return (Builder) new Builder().MergeFrom(prototype); |
| 7773 | } |
| 7774 | |
| 7775 | public sealed partial class Builder : pb::ExtendableBuilder<TestEmptyMessageWithExtensions, Builder> { |
| 7776 | protected override Builder ThisBuilder { |
| 7777 | get { return this; } |
| 7778 | } |
| 7779 | public Builder() {} |
| 7780 | |
| 7781 | TestEmptyMessageWithExtensions result = new TestEmptyMessageWithExtensions(); |
| 7782 | |
| 7783 | protected override TestEmptyMessageWithExtensions MessageBeingBuilt { |
| 7784 | get { return result; } |
| 7785 | } |
| 7786 | |
| 7787 | public override Builder Clear() { |
| 7788 | result = new TestEmptyMessageWithExtensions(); |
| 7789 | return this; |
| 7790 | } |
| 7791 | |
| 7792 | public override Builder Clone() { |
| 7793 | return new Builder().MergeFrom(result); |
| 7794 | } |
| 7795 | |
| 7796 | public override pbd::MessageDescriptor DescriptorForType { |
| 7797 | get { return TestEmptyMessageWithExtensions.Descriptor; } |
| 7798 | } |
| 7799 | |
| 7800 | public override TestEmptyMessageWithExtensions DefaultInstanceForType { |
| 7801 | get { return TestEmptyMessageWithExtensions.DefaultInstance; } |
| 7802 | } |
| 7803 | |
| 7804 | public override TestEmptyMessageWithExtensions BuildPartial() { |
| 7805 | TestEmptyMessageWithExtensions returnMe = result; |
| 7806 | result = null; |
| 7807 | return returnMe; |
| 7808 | } |
| 7809 | |
| 7810 | public override Builder MergeFrom(pb::IMessage other) { |
| 7811 | if (other is TestEmptyMessageWithExtensions) { |
| 7812 | return MergeFrom((TestEmptyMessageWithExtensions) other); |
| 7813 | } else { |
| 7814 | base.MergeFrom(other); |
| 7815 | return this; |
| 7816 | } |
| 7817 | } |
| 7818 | |
| 7819 | public override Builder MergeFrom(TestEmptyMessageWithExtensions other) { |
| 7820 | if (other == TestEmptyMessageWithExtensions.DefaultInstance) return this; |
Jon Skeet | 49fcd4f | 2009-01-27 14:43:10 +0000 | [diff] [blame] | 7821 | this.MergeExtensionFields(other); |
Jon Skeet | 6803686 | 2008-10-22 13:30:34 +0100 | [diff] [blame] | 7822 | this.MergeUnknownFields(other.UnknownFields); |
| 7823 | return this; |
| 7824 | } |
| 7825 | |
| 7826 | public override Builder MergeFrom(pb::CodedInputStream input) { |
| 7827 | return MergeFrom(input, pb::ExtensionRegistry.Empty); |
| 7828 | } |
| 7829 | |
| 7830 | public override Builder MergeFrom(pb::CodedInputStream input, pb::ExtensionRegistry extensionRegistry) { |
| 7831 | pb::UnknownFieldSet.Builder unknownFields = pb::UnknownFieldSet.CreateBuilder(this.UnknownFields); |
| 7832 | while (true) { |
| 7833 | uint tag = input.ReadTag(); |
| 7834 | switch (tag) { |
| 7835 | case 0: { |
| 7836 | this.UnknownFields = unknownFields.Build(); |
| 7837 | return this; |
| 7838 | } |
| 7839 | default: { |
| 7840 | if (!ParseUnknownField(input, unknownFields, extensionRegistry, tag)) { |
| 7841 | this.UnknownFields = unknownFields.Build(); |
| 7842 | return this; |
| 7843 | } |
| 7844 | break; |
| 7845 | } |
| 7846 | } |
| 7847 | } |
| 7848 | } |
| 7849 | |
| 7850 | } |
| 7851 | } |
| 7852 | |
| 7853 | public sealed partial class TestReallyLargeTagNumber : pb::GeneratedMessage<TestReallyLargeTagNumber, TestReallyLargeTagNumber.Builder> { |
| 7854 | private static readonly TestReallyLargeTagNumber defaultInstance = new Builder().BuildPartial(); |
| 7855 | public static TestReallyLargeTagNumber DefaultInstance { |
| 7856 | get { return defaultInstance; } |
| 7857 | } |
| 7858 | |
| 7859 | public override TestReallyLargeTagNumber DefaultInstanceForType { |
| 7860 | get { return defaultInstance; } |
| 7861 | } |
| 7862 | |
| 7863 | protected override TestReallyLargeTagNumber ThisMessage { |
| 7864 | get { return this; } |
| 7865 | } |
| 7866 | |
| 7867 | public static pbd::MessageDescriptor Descriptor { |
| 7868 | get { return global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.internal__static_protobuf_unittest_TestReallyLargeTagNumber__Descriptor; } |
| 7869 | } |
| 7870 | |
| 7871 | protected override pb::FieldAccess.FieldAccessorTable<TestReallyLargeTagNumber, TestReallyLargeTagNumber.Builder> InternalFieldAccessors { |
| 7872 | get { return global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.internal__static_protobuf_unittest_TestReallyLargeTagNumber__FieldAccessorTable; } |
| 7873 | } |
| 7874 | |
| 7875 | private bool hasA; |
| 7876 | private int a_ = 0; |
| 7877 | public bool HasA { |
| 7878 | get { return hasA; } |
| 7879 | } |
| 7880 | public int A { |
| 7881 | get { return a_; } |
| 7882 | } |
| 7883 | |
| 7884 | private bool hasBb; |
| 7885 | private int bb_ = 0; |
| 7886 | public bool HasBb { |
| 7887 | get { return hasBb; } |
| 7888 | } |
| 7889 | public int Bb { |
| 7890 | get { return bb_; } |
| 7891 | } |
| 7892 | |
| 7893 | public override bool IsInitialized { |
| 7894 | get { |
| 7895 | return true; |
| 7896 | } |
| 7897 | } |
| 7898 | |
| 7899 | public override void WriteTo(pb::CodedOutputStream output) { |
| 7900 | if (HasA) { |
| 7901 | output.WriteInt32(1, A); |
| 7902 | } |
| 7903 | if (HasBb) { |
| 7904 | output.WriteInt32(268435455, Bb); |
| 7905 | } |
| 7906 | UnknownFields.WriteTo(output); |
| 7907 | } |
| 7908 | |
| 7909 | private int memoizedSerializedSize = -1; |
| 7910 | public override int SerializedSize { |
| 7911 | get { |
| 7912 | int size = memoizedSerializedSize; |
| 7913 | if (size != -1) return size; |
| 7914 | |
| 7915 | size = 0; |
| 7916 | if (HasA) { |
| 7917 | size += pb::CodedOutputStream.ComputeInt32Size(1, A); |
| 7918 | } |
| 7919 | if (HasBb) { |
| 7920 | size += pb::CodedOutputStream.ComputeInt32Size(268435455, Bb); |
| 7921 | } |
| 7922 | size += UnknownFields.SerializedSize; |
| 7923 | memoizedSerializedSize = size; |
| 7924 | return size; |
| 7925 | } |
| 7926 | } |
| 7927 | |
| 7928 | public static TestReallyLargeTagNumber ParseFrom(pb::ByteString data) { |
| 7929 | return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed(); |
| 7930 | } |
| 7931 | public static TestReallyLargeTagNumber ParseFrom(pb::ByteString data, pb::ExtensionRegistry extensionRegistry) { |
| 7932 | return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed(); |
| 7933 | } |
| 7934 | public static TestReallyLargeTagNumber ParseFrom(byte[] data) { |
| 7935 | return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed(); |
| 7936 | } |
| 7937 | public static TestReallyLargeTagNumber ParseFrom(byte[] data, pb::ExtensionRegistry extensionRegistry) { |
| 7938 | return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed(); |
| 7939 | } |
| 7940 | public static TestReallyLargeTagNumber ParseFrom(global::System.IO.Stream input) { |
| 7941 | return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed(); |
| 7942 | } |
| 7943 | public static TestReallyLargeTagNumber ParseFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) { |
| 7944 | return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed(); |
| 7945 | } |
| 7946 | public static TestReallyLargeTagNumber ParseFrom(pb::CodedInputStream input) { |
| 7947 | return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed(); |
| 7948 | } |
| 7949 | public static TestReallyLargeTagNumber ParseFrom(pb::CodedInputStream input, pb::ExtensionRegistry extensionRegistry) { |
| 7950 | return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed(); |
| 7951 | } |
| 7952 | public static Builder CreateBuilder() { return new Builder(); } |
| 7953 | public override Builder CreateBuilderForType() { return new Builder(); } |
| 7954 | public static Builder CreateBuilder(TestReallyLargeTagNumber prototype) { |
| 7955 | return (Builder) new Builder().MergeFrom(prototype); |
| 7956 | } |
| 7957 | |
| 7958 | public sealed partial class Builder : pb::GeneratedBuilder<TestReallyLargeTagNumber, Builder> { |
| 7959 | protected override Builder ThisBuilder { |
| 7960 | get { return this; } |
| 7961 | } |
| 7962 | public Builder() {} |
| 7963 | |
| 7964 | TestReallyLargeTagNumber result = new TestReallyLargeTagNumber(); |
| 7965 | |
| 7966 | protected override TestReallyLargeTagNumber MessageBeingBuilt { |
| 7967 | get { return result; } |
| 7968 | } |
| 7969 | |
| 7970 | public override Builder Clear() { |
| 7971 | result = new TestReallyLargeTagNumber(); |
| 7972 | return this; |
| 7973 | } |
| 7974 | |
| 7975 | public override Builder Clone() { |
| 7976 | return new Builder().MergeFrom(result); |
| 7977 | } |
| 7978 | |
| 7979 | public override pbd::MessageDescriptor DescriptorForType { |
| 7980 | get { return TestReallyLargeTagNumber.Descriptor; } |
| 7981 | } |
| 7982 | |
| 7983 | public override TestReallyLargeTagNumber DefaultInstanceForType { |
| 7984 | get { return TestReallyLargeTagNumber.DefaultInstance; } |
| 7985 | } |
| 7986 | |
| 7987 | public override TestReallyLargeTagNumber BuildPartial() { |
| 7988 | TestReallyLargeTagNumber returnMe = result; |
| 7989 | result = null; |
| 7990 | return returnMe; |
| 7991 | } |
| 7992 | |
| 7993 | public override Builder MergeFrom(pb::IMessage other) { |
| 7994 | if (other is TestReallyLargeTagNumber) { |
| 7995 | return MergeFrom((TestReallyLargeTagNumber) other); |
| 7996 | } else { |
| 7997 | base.MergeFrom(other); |
| 7998 | return this; |
| 7999 | } |
| 8000 | } |
| 8001 | |
| 8002 | public override Builder MergeFrom(TestReallyLargeTagNumber other) { |
| 8003 | if (other == TestReallyLargeTagNumber.DefaultInstance) return this; |
| 8004 | if (other.HasA) { |
| 8005 | A = other.A; |
| 8006 | } |
| 8007 | if (other.HasBb) { |
| 8008 | Bb = other.Bb; |
| 8009 | } |
| 8010 | this.MergeUnknownFields(other.UnknownFields); |
| 8011 | return this; |
| 8012 | } |
| 8013 | |
| 8014 | public override Builder MergeFrom(pb::CodedInputStream input) { |
| 8015 | return MergeFrom(input, pb::ExtensionRegistry.Empty); |
| 8016 | } |
| 8017 | |
| 8018 | public override Builder MergeFrom(pb::CodedInputStream input, pb::ExtensionRegistry extensionRegistry) { |
| 8019 | pb::UnknownFieldSet.Builder unknownFields = pb::UnknownFieldSet.CreateBuilder(this.UnknownFields); |
| 8020 | while (true) { |
| 8021 | uint tag = input.ReadTag(); |
| 8022 | switch (tag) { |
| 8023 | case 0: { |
| 8024 | this.UnknownFields = unknownFields.Build(); |
| 8025 | return this; |
| 8026 | } |
| 8027 | default: { |
| 8028 | if (!ParseUnknownField(input, unknownFields, extensionRegistry, tag)) { |
| 8029 | this.UnknownFields = unknownFields.Build(); |
| 8030 | return this; |
| 8031 | } |
| 8032 | break; |
| 8033 | } |
| 8034 | case 8: { |
| 8035 | A = input.ReadInt32(); |
| 8036 | break; |
| 8037 | } |
| 8038 | case 2147483640: { |
| 8039 | Bb = input.ReadInt32(); |
| 8040 | break; |
| 8041 | } |
| 8042 | } |
| 8043 | } |
| 8044 | } |
| 8045 | |
| 8046 | |
| 8047 | public bool HasA { |
| 8048 | get { return result.HasA; } |
| 8049 | } |
| 8050 | public int A { |
| 8051 | get { return result.A; } |
| 8052 | set { SetA(value); } |
| 8053 | } |
| 8054 | public Builder SetA(int value) { |
| 8055 | result.hasA = true; |
| 8056 | result.a_ = value; |
| 8057 | return this; |
| 8058 | } |
| 8059 | public Builder ClearA() { |
| 8060 | result.hasA = false; |
| 8061 | result.a_ = 0; |
| 8062 | return this; |
| 8063 | } |
| 8064 | |
| 8065 | public bool HasBb { |
| 8066 | get { return result.HasBb; } |
| 8067 | } |
| 8068 | public int Bb { |
| 8069 | get { return result.Bb; } |
| 8070 | set { SetBb(value); } |
| 8071 | } |
| 8072 | public Builder SetBb(int value) { |
| 8073 | result.hasBb = true; |
| 8074 | result.bb_ = value; |
| 8075 | return this; |
| 8076 | } |
| 8077 | public Builder ClearBb() { |
| 8078 | result.hasBb = false; |
| 8079 | result.bb_ = 0; |
| 8080 | return this; |
| 8081 | } |
| 8082 | } |
| 8083 | } |
| 8084 | |
| 8085 | public sealed partial class TestRecursiveMessage : pb::GeneratedMessage<TestRecursiveMessage, TestRecursiveMessage.Builder> { |
| 8086 | private static readonly TestRecursiveMessage defaultInstance = new Builder().BuildPartial(); |
| 8087 | public static TestRecursiveMessage DefaultInstance { |
| 8088 | get { return defaultInstance; } |
| 8089 | } |
| 8090 | |
| 8091 | public override TestRecursiveMessage DefaultInstanceForType { |
| 8092 | get { return defaultInstance; } |
| 8093 | } |
| 8094 | |
| 8095 | protected override TestRecursiveMessage ThisMessage { |
| 8096 | get { return this; } |
| 8097 | } |
| 8098 | |
| 8099 | public static pbd::MessageDescriptor Descriptor { |
| 8100 | get { return global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.internal__static_protobuf_unittest_TestRecursiveMessage__Descriptor; } |
| 8101 | } |
| 8102 | |
| 8103 | protected override pb::FieldAccess.FieldAccessorTable<TestRecursiveMessage, TestRecursiveMessage.Builder> InternalFieldAccessors { |
| 8104 | get { return global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.internal__static_protobuf_unittest_TestRecursiveMessage__FieldAccessorTable; } |
| 8105 | } |
| 8106 | |
| 8107 | private bool hasA; |
| 8108 | private global::Google.ProtocolBuffers.TestProtos.TestRecursiveMessage a_ = global::Google.ProtocolBuffers.TestProtos.TestRecursiveMessage.DefaultInstance; |
| 8109 | public bool HasA { |
| 8110 | get { return hasA; } |
| 8111 | } |
| 8112 | public global::Google.ProtocolBuffers.TestProtos.TestRecursiveMessage A { |
| 8113 | get { return a_; } |
| 8114 | } |
| 8115 | |
| 8116 | private bool hasI; |
| 8117 | private int i_ = 0; |
| 8118 | public bool HasI { |
| 8119 | get { return hasI; } |
| 8120 | } |
| 8121 | public int I { |
| 8122 | get { return i_; } |
| 8123 | } |
| 8124 | |
| 8125 | public override bool IsInitialized { |
| 8126 | get { |
| 8127 | return true; |
| 8128 | } |
| 8129 | } |
| 8130 | |
| 8131 | public override void WriteTo(pb::CodedOutputStream output) { |
| 8132 | if (HasA) { |
| 8133 | output.WriteMessage(1, A); |
| 8134 | } |
| 8135 | if (HasI) { |
| 8136 | output.WriteInt32(2, I); |
| 8137 | } |
| 8138 | UnknownFields.WriteTo(output); |
| 8139 | } |
| 8140 | |
| 8141 | private int memoizedSerializedSize = -1; |
| 8142 | public override int SerializedSize { |
| 8143 | get { |
| 8144 | int size = memoizedSerializedSize; |
| 8145 | if (size != -1) return size; |
| 8146 | |
| 8147 | size = 0; |
| 8148 | if (HasA) { |
| 8149 | size += pb::CodedOutputStream.ComputeMessageSize(1, A); |
| 8150 | } |
| 8151 | if (HasI) { |
| 8152 | size += pb::CodedOutputStream.ComputeInt32Size(2, I); |
| 8153 | } |
| 8154 | size += UnknownFields.SerializedSize; |
| 8155 | memoizedSerializedSize = size; |
| 8156 | return size; |
| 8157 | } |
| 8158 | } |
| 8159 | |
| 8160 | public static TestRecursiveMessage ParseFrom(pb::ByteString data) { |
| 8161 | return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed(); |
| 8162 | } |
| 8163 | public static TestRecursiveMessage ParseFrom(pb::ByteString data, pb::ExtensionRegistry extensionRegistry) { |
| 8164 | return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed(); |
| 8165 | } |
| 8166 | public static TestRecursiveMessage ParseFrom(byte[] data) { |
| 8167 | return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed(); |
| 8168 | } |
| 8169 | public static TestRecursiveMessage ParseFrom(byte[] data, pb::ExtensionRegistry extensionRegistry) { |
| 8170 | return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed(); |
| 8171 | } |
| 8172 | public static TestRecursiveMessage ParseFrom(global::System.IO.Stream input) { |
| 8173 | return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed(); |
| 8174 | } |
| 8175 | public static TestRecursiveMessage ParseFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) { |
| 8176 | return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed(); |
| 8177 | } |
| 8178 | public static TestRecursiveMessage ParseFrom(pb::CodedInputStream input) { |
| 8179 | return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed(); |
| 8180 | } |
| 8181 | public static TestRecursiveMessage ParseFrom(pb::CodedInputStream input, pb::ExtensionRegistry extensionRegistry) { |
| 8182 | return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed(); |
| 8183 | } |
| 8184 | public static Builder CreateBuilder() { return new Builder(); } |
| 8185 | public override Builder CreateBuilderForType() { return new Builder(); } |
| 8186 | public static Builder CreateBuilder(TestRecursiveMessage prototype) { |
| 8187 | return (Builder) new Builder().MergeFrom(prototype); |
| 8188 | } |
| 8189 | |
| 8190 | public sealed partial class Builder : pb::GeneratedBuilder<TestRecursiveMessage, Builder> { |
| 8191 | protected override Builder ThisBuilder { |
| 8192 | get { return this; } |
| 8193 | } |
| 8194 | public Builder() {} |
| 8195 | |
| 8196 | TestRecursiveMessage result = new TestRecursiveMessage(); |
| 8197 | |
| 8198 | protected override TestRecursiveMessage MessageBeingBuilt { |
| 8199 | get { return result; } |
| 8200 | } |
| 8201 | |
| 8202 | public override Builder Clear() { |
| 8203 | result = new TestRecursiveMessage(); |
| 8204 | return this; |
| 8205 | } |
| 8206 | |
| 8207 | public override Builder Clone() { |
| 8208 | return new Builder().MergeFrom(result); |
| 8209 | } |
| 8210 | |
| 8211 | public override pbd::MessageDescriptor DescriptorForType { |
| 8212 | get { return TestRecursiveMessage.Descriptor; } |
| 8213 | } |
| 8214 | |
| 8215 | public override TestRecursiveMessage DefaultInstanceForType { |
| 8216 | get { return TestRecursiveMessage.DefaultInstance; } |
| 8217 | } |
| 8218 | |
| 8219 | public override TestRecursiveMessage BuildPartial() { |
| 8220 | TestRecursiveMessage returnMe = result; |
| 8221 | result = null; |
| 8222 | return returnMe; |
| 8223 | } |
| 8224 | |
| 8225 | public override Builder MergeFrom(pb::IMessage other) { |
| 8226 | if (other is TestRecursiveMessage) { |
| 8227 | return MergeFrom((TestRecursiveMessage) other); |
| 8228 | } else { |
| 8229 | base.MergeFrom(other); |
| 8230 | return this; |
| 8231 | } |
| 8232 | } |
| 8233 | |
| 8234 | public override Builder MergeFrom(TestRecursiveMessage other) { |
| 8235 | if (other == TestRecursiveMessage.DefaultInstance) return this; |
| 8236 | if (other.HasA) { |
| 8237 | MergeA(other.A); |
| 8238 | } |
| 8239 | if (other.HasI) { |
| 8240 | I = other.I; |
| 8241 | } |
| 8242 | this.MergeUnknownFields(other.UnknownFields); |
| 8243 | return this; |
| 8244 | } |
| 8245 | |
| 8246 | public override Builder MergeFrom(pb::CodedInputStream input) { |
| 8247 | return MergeFrom(input, pb::ExtensionRegistry.Empty); |
| 8248 | } |
| 8249 | |
| 8250 | public override Builder MergeFrom(pb::CodedInputStream input, pb::ExtensionRegistry extensionRegistry) { |
| 8251 | pb::UnknownFieldSet.Builder unknownFields = pb::UnknownFieldSet.CreateBuilder(this.UnknownFields); |
| 8252 | while (true) { |
| 8253 | uint tag = input.ReadTag(); |
| 8254 | switch (tag) { |
| 8255 | case 0: { |
| 8256 | this.UnknownFields = unknownFields.Build(); |
| 8257 | return this; |
| 8258 | } |
| 8259 | default: { |
| 8260 | if (!ParseUnknownField(input, unknownFields, extensionRegistry, tag)) { |
| 8261 | this.UnknownFields = unknownFields.Build(); |
| 8262 | return this; |
| 8263 | } |
| 8264 | break; |
| 8265 | } |
| 8266 | case 10: { |
| 8267 | global::Google.ProtocolBuffers.TestProtos.TestRecursiveMessage.Builder subBuilder = global::Google.ProtocolBuffers.TestProtos.TestRecursiveMessage.CreateBuilder(); |
| 8268 | if (HasA) { |
| 8269 | subBuilder.MergeFrom(A); |
| 8270 | } |
| 8271 | input.ReadMessage(subBuilder, extensionRegistry); |
| 8272 | A = subBuilder.BuildPartial(); |
| 8273 | break; |
| 8274 | } |
| 8275 | case 16: { |
| 8276 | I = input.ReadInt32(); |
| 8277 | break; |
| 8278 | } |
| 8279 | } |
| 8280 | } |
| 8281 | } |
| 8282 | |
| 8283 | |
| 8284 | public bool HasA { |
| 8285 | get { return result.HasA; } |
| 8286 | } |
| 8287 | public global::Google.ProtocolBuffers.TestProtos.TestRecursiveMessage A { |
| 8288 | get { return result.A; } |
| 8289 | set { SetA(value); } |
| 8290 | } |
| 8291 | public Builder SetA(global::Google.ProtocolBuffers.TestProtos.TestRecursiveMessage value) { |
Jon Skeet | 642a814 | 2009-01-27 12:25:21 +0000 | [diff] [blame] | 8292 | pb::ThrowHelper.ThrowIfNull(value, "value"); |
Jon Skeet | 6803686 | 2008-10-22 13:30:34 +0100 | [diff] [blame] | 8293 | result.hasA = true; |
| 8294 | result.a_ = value; |
| 8295 | return this; |
| 8296 | } |
| 8297 | public Builder SetA(global::Google.ProtocolBuffers.TestProtos.TestRecursiveMessage.Builder builderForValue) { |
Jon Skeet | 642a814 | 2009-01-27 12:25:21 +0000 | [diff] [blame] | 8298 | pb::ThrowHelper.ThrowIfNull(builderForValue, "builderForValue"); |
Jon Skeet | 6803686 | 2008-10-22 13:30:34 +0100 | [diff] [blame] | 8299 | result.hasA = true; |
| 8300 | result.a_ = builderForValue.Build(); |
| 8301 | return this; |
| 8302 | } |
| 8303 | public Builder MergeA(global::Google.ProtocolBuffers.TestProtos.TestRecursiveMessage value) { |
Jon Skeet | 642a814 | 2009-01-27 12:25:21 +0000 | [diff] [blame] | 8304 | pb::ThrowHelper.ThrowIfNull(value, "value"); |
Jon Skeet | 6803686 | 2008-10-22 13:30:34 +0100 | [diff] [blame] | 8305 | if (result.HasA && |
| 8306 | result.a_ != global::Google.ProtocolBuffers.TestProtos.TestRecursiveMessage.DefaultInstance) { |
| 8307 | result.a_ = global::Google.ProtocolBuffers.TestProtos.TestRecursiveMessage.CreateBuilder(result.a_).MergeFrom(value).BuildPartial(); |
| 8308 | } else { |
| 8309 | result.a_ = value; |
| 8310 | } |
| 8311 | result.hasA = true; |
| 8312 | return this; |
| 8313 | } |
| 8314 | public Builder ClearA() { |
| 8315 | result.hasA = false; |
| 8316 | result.a_ = global::Google.ProtocolBuffers.TestProtos.TestRecursiveMessage.DefaultInstance; |
| 8317 | return this; |
| 8318 | } |
| 8319 | |
| 8320 | public bool HasI { |
| 8321 | get { return result.HasI; } |
| 8322 | } |
| 8323 | public int I { |
| 8324 | get { return result.I; } |
| 8325 | set { SetI(value); } |
| 8326 | } |
| 8327 | public Builder SetI(int value) { |
| 8328 | result.hasI = true; |
| 8329 | result.i_ = value; |
| 8330 | return this; |
| 8331 | } |
| 8332 | public Builder ClearI() { |
| 8333 | result.hasI = false; |
| 8334 | result.i_ = 0; |
| 8335 | return this; |
| 8336 | } |
| 8337 | } |
| 8338 | } |
| 8339 | |
| 8340 | public sealed partial class TestMutualRecursionA : pb::GeneratedMessage<TestMutualRecursionA, TestMutualRecursionA.Builder> { |
| 8341 | private static readonly TestMutualRecursionA defaultInstance = new Builder().BuildPartial(); |
| 8342 | public static TestMutualRecursionA DefaultInstance { |
| 8343 | get { return defaultInstance; } |
| 8344 | } |
| 8345 | |
| 8346 | public override TestMutualRecursionA DefaultInstanceForType { |
| 8347 | get { return defaultInstance; } |
| 8348 | } |
| 8349 | |
| 8350 | protected override TestMutualRecursionA ThisMessage { |
| 8351 | get { return this; } |
| 8352 | } |
| 8353 | |
| 8354 | public static pbd::MessageDescriptor Descriptor { |
| 8355 | get { return global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.internal__static_protobuf_unittest_TestMutualRecursionA__Descriptor; } |
| 8356 | } |
| 8357 | |
| 8358 | protected override pb::FieldAccess.FieldAccessorTable<TestMutualRecursionA, TestMutualRecursionA.Builder> InternalFieldAccessors { |
| 8359 | get { return global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.internal__static_protobuf_unittest_TestMutualRecursionA__FieldAccessorTable; } |
| 8360 | } |
| 8361 | |
| 8362 | private bool hasBb; |
| 8363 | private global::Google.ProtocolBuffers.TestProtos.TestMutualRecursionB bb_ = global::Google.ProtocolBuffers.TestProtos.TestMutualRecursionB.DefaultInstance; |
| 8364 | public bool HasBb { |
| 8365 | get { return hasBb; } |
| 8366 | } |
| 8367 | public global::Google.ProtocolBuffers.TestProtos.TestMutualRecursionB Bb { |
| 8368 | get { return bb_; } |
| 8369 | } |
| 8370 | |
| 8371 | public override bool IsInitialized { |
| 8372 | get { |
| 8373 | return true; |
| 8374 | } |
| 8375 | } |
| 8376 | |
| 8377 | public override void WriteTo(pb::CodedOutputStream output) { |
| 8378 | if (HasBb) { |
| 8379 | output.WriteMessage(1, Bb); |
| 8380 | } |
| 8381 | UnknownFields.WriteTo(output); |
| 8382 | } |
| 8383 | |
| 8384 | private int memoizedSerializedSize = -1; |
| 8385 | public override int SerializedSize { |
| 8386 | get { |
| 8387 | int size = memoizedSerializedSize; |
| 8388 | if (size != -1) return size; |
| 8389 | |
| 8390 | size = 0; |
| 8391 | if (HasBb) { |
| 8392 | size += pb::CodedOutputStream.ComputeMessageSize(1, Bb); |
| 8393 | } |
| 8394 | size += UnknownFields.SerializedSize; |
| 8395 | memoizedSerializedSize = size; |
| 8396 | return size; |
| 8397 | } |
| 8398 | } |
| 8399 | |
| 8400 | public static TestMutualRecursionA ParseFrom(pb::ByteString data) { |
| 8401 | return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed(); |
| 8402 | } |
| 8403 | public static TestMutualRecursionA ParseFrom(pb::ByteString data, pb::ExtensionRegistry extensionRegistry) { |
| 8404 | return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed(); |
| 8405 | } |
| 8406 | public static TestMutualRecursionA ParseFrom(byte[] data) { |
| 8407 | return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed(); |
| 8408 | } |
| 8409 | public static TestMutualRecursionA ParseFrom(byte[] data, pb::ExtensionRegistry extensionRegistry) { |
| 8410 | return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed(); |
| 8411 | } |
| 8412 | public static TestMutualRecursionA ParseFrom(global::System.IO.Stream input) { |
| 8413 | return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed(); |
| 8414 | } |
| 8415 | public static TestMutualRecursionA ParseFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) { |
| 8416 | return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed(); |
| 8417 | } |
| 8418 | public static TestMutualRecursionA ParseFrom(pb::CodedInputStream input) { |
| 8419 | return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed(); |
| 8420 | } |
| 8421 | public static TestMutualRecursionA ParseFrom(pb::CodedInputStream input, pb::ExtensionRegistry extensionRegistry) { |
| 8422 | return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed(); |
| 8423 | } |
| 8424 | public static Builder CreateBuilder() { return new Builder(); } |
| 8425 | public override Builder CreateBuilderForType() { return new Builder(); } |
| 8426 | public static Builder CreateBuilder(TestMutualRecursionA prototype) { |
| 8427 | return (Builder) new Builder().MergeFrom(prototype); |
| 8428 | } |
| 8429 | |
| 8430 | public sealed partial class Builder : pb::GeneratedBuilder<TestMutualRecursionA, Builder> { |
| 8431 | protected override Builder ThisBuilder { |
| 8432 | get { return this; } |
| 8433 | } |
| 8434 | public Builder() {} |
| 8435 | |
| 8436 | TestMutualRecursionA result = new TestMutualRecursionA(); |
| 8437 | |
| 8438 | protected override TestMutualRecursionA MessageBeingBuilt { |
| 8439 | get { return result; } |
| 8440 | } |
| 8441 | |
| 8442 | public override Builder Clear() { |
| 8443 | result = new TestMutualRecursionA(); |
| 8444 | return this; |
| 8445 | } |
| 8446 | |
| 8447 | public override Builder Clone() { |
| 8448 | return new Builder().MergeFrom(result); |
| 8449 | } |
| 8450 | |
| 8451 | public override pbd::MessageDescriptor DescriptorForType { |
| 8452 | get { return TestMutualRecursionA.Descriptor; } |
| 8453 | } |
| 8454 | |
| 8455 | public override TestMutualRecursionA DefaultInstanceForType { |
| 8456 | get { return TestMutualRecursionA.DefaultInstance; } |
| 8457 | } |
| 8458 | |
| 8459 | public override TestMutualRecursionA BuildPartial() { |
| 8460 | TestMutualRecursionA returnMe = result; |
| 8461 | result = null; |
| 8462 | return returnMe; |
| 8463 | } |
| 8464 | |
| 8465 | public override Builder MergeFrom(pb::IMessage other) { |
| 8466 | if (other is TestMutualRecursionA) { |
| 8467 | return MergeFrom((TestMutualRecursionA) other); |
| 8468 | } else { |
| 8469 | base.MergeFrom(other); |
| 8470 | return this; |
| 8471 | } |
| 8472 | } |
| 8473 | |
| 8474 | public override Builder MergeFrom(TestMutualRecursionA other) { |
| 8475 | if (other == TestMutualRecursionA.DefaultInstance) return this; |
| 8476 | if (other.HasBb) { |
| 8477 | MergeBb(other.Bb); |
| 8478 | } |
| 8479 | this.MergeUnknownFields(other.UnknownFields); |
| 8480 | return this; |
| 8481 | } |
| 8482 | |
| 8483 | public override Builder MergeFrom(pb::CodedInputStream input) { |
| 8484 | return MergeFrom(input, pb::ExtensionRegistry.Empty); |
| 8485 | } |
| 8486 | |
| 8487 | public override Builder MergeFrom(pb::CodedInputStream input, pb::ExtensionRegistry extensionRegistry) { |
| 8488 | pb::UnknownFieldSet.Builder unknownFields = pb::UnknownFieldSet.CreateBuilder(this.UnknownFields); |
| 8489 | while (true) { |
| 8490 | uint tag = input.ReadTag(); |
| 8491 | switch (tag) { |
| 8492 | case 0: { |
| 8493 | this.UnknownFields = unknownFields.Build(); |
| 8494 | return this; |
| 8495 | } |
| 8496 | default: { |
| 8497 | if (!ParseUnknownField(input, unknownFields, extensionRegistry, tag)) { |
| 8498 | this.UnknownFields = unknownFields.Build(); |
| 8499 | return this; |
| 8500 | } |
| 8501 | break; |
| 8502 | } |
| 8503 | case 10: { |
| 8504 | global::Google.ProtocolBuffers.TestProtos.TestMutualRecursionB.Builder subBuilder = global::Google.ProtocolBuffers.TestProtos.TestMutualRecursionB.CreateBuilder(); |
| 8505 | if (HasBb) { |
| 8506 | subBuilder.MergeFrom(Bb); |
| 8507 | } |
| 8508 | input.ReadMessage(subBuilder, extensionRegistry); |
| 8509 | Bb = subBuilder.BuildPartial(); |
| 8510 | break; |
| 8511 | } |
| 8512 | } |
| 8513 | } |
| 8514 | } |
| 8515 | |
| 8516 | |
| 8517 | public bool HasBb { |
| 8518 | get { return result.HasBb; } |
| 8519 | } |
| 8520 | public global::Google.ProtocolBuffers.TestProtos.TestMutualRecursionB Bb { |
| 8521 | get { return result.Bb; } |
| 8522 | set { SetBb(value); } |
| 8523 | } |
| 8524 | public Builder SetBb(global::Google.ProtocolBuffers.TestProtos.TestMutualRecursionB value) { |
Jon Skeet | 642a814 | 2009-01-27 12:25:21 +0000 | [diff] [blame] | 8525 | pb::ThrowHelper.ThrowIfNull(value, "value"); |
Jon Skeet | 6803686 | 2008-10-22 13:30:34 +0100 | [diff] [blame] | 8526 | result.hasBb = true; |
| 8527 | result.bb_ = value; |
| 8528 | return this; |
| 8529 | } |
| 8530 | public Builder SetBb(global::Google.ProtocolBuffers.TestProtos.TestMutualRecursionB.Builder builderForValue) { |
Jon Skeet | 642a814 | 2009-01-27 12:25:21 +0000 | [diff] [blame] | 8531 | pb::ThrowHelper.ThrowIfNull(builderForValue, "builderForValue"); |
Jon Skeet | 6803686 | 2008-10-22 13:30:34 +0100 | [diff] [blame] | 8532 | result.hasBb = true; |
| 8533 | result.bb_ = builderForValue.Build(); |
| 8534 | return this; |
| 8535 | } |
| 8536 | public Builder MergeBb(global::Google.ProtocolBuffers.TestProtos.TestMutualRecursionB value) { |
Jon Skeet | 642a814 | 2009-01-27 12:25:21 +0000 | [diff] [blame] | 8537 | pb::ThrowHelper.ThrowIfNull(value, "value"); |
Jon Skeet | 6803686 | 2008-10-22 13:30:34 +0100 | [diff] [blame] | 8538 | if (result.HasBb && |
| 8539 | result.bb_ != global::Google.ProtocolBuffers.TestProtos.TestMutualRecursionB.DefaultInstance) { |
| 8540 | result.bb_ = global::Google.ProtocolBuffers.TestProtos.TestMutualRecursionB.CreateBuilder(result.bb_).MergeFrom(value).BuildPartial(); |
| 8541 | } else { |
| 8542 | result.bb_ = value; |
| 8543 | } |
| 8544 | result.hasBb = true; |
| 8545 | return this; |
| 8546 | } |
| 8547 | public Builder ClearBb() { |
| 8548 | result.hasBb = false; |
| 8549 | result.bb_ = global::Google.ProtocolBuffers.TestProtos.TestMutualRecursionB.DefaultInstance; |
| 8550 | return this; |
| 8551 | } |
| 8552 | } |
| 8553 | } |
| 8554 | |
| 8555 | public sealed partial class TestMutualRecursionB : pb::GeneratedMessage<TestMutualRecursionB, TestMutualRecursionB.Builder> { |
| 8556 | private static readonly TestMutualRecursionB defaultInstance = new Builder().BuildPartial(); |
| 8557 | public static TestMutualRecursionB DefaultInstance { |
| 8558 | get { return defaultInstance; } |
| 8559 | } |
| 8560 | |
| 8561 | public override TestMutualRecursionB DefaultInstanceForType { |
| 8562 | get { return defaultInstance; } |
| 8563 | } |
| 8564 | |
| 8565 | protected override TestMutualRecursionB ThisMessage { |
| 8566 | get { return this; } |
| 8567 | } |
| 8568 | |
| 8569 | public static pbd::MessageDescriptor Descriptor { |
| 8570 | get { return global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.internal__static_protobuf_unittest_TestMutualRecursionB__Descriptor; } |
| 8571 | } |
| 8572 | |
| 8573 | protected override pb::FieldAccess.FieldAccessorTable<TestMutualRecursionB, TestMutualRecursionB.Builder> InternalFieldAccessors { |
| 8574 | get { return global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.internal__static_protobuf_unittest_TestMutualRecursionB__FieldAccessorTable; } |
| 8575 | } |
| 8576 | |
| 8577 | private bool hasA; |
| 8578 | private global::Google.ProtocolBuffers.TestProtos.TestMutualRecursionA a_ = global::Google.ProtocolBuffers.TestProtos.TestMutualRecursionA.DefaultInstance; |
| 8579 | public bool HasA { |
| 8580 | get { return hasA; } |
| 8581 | } |
| 8582 | public global::Google.ProtocolBuffers.TestProtos.TestMutualRecursionA A { |
| 8583 | get { return a_; } |
| 8584 | } |
| 8585 | |
| 8586 | private bool hasOptionalInt32; |
| 8587 | private int optionalInt32_ = 0; |
| 8588 | public bool HasOptionalInt32 { |
| 8589 | get { return hasOptionalInt32; } |
| 8590 | } |
| 8591 | public int OptionalInt32 { |
| 8592 | get { return optionalInt32_; } |
| 8593 | } |
| 8594 | |
| 8595 | public override bool IsInitialized { |
| 8596 | get { |
| 8597 | return true; |
| 8598 | } |
| 8599 | } |
| 8600 | |
| 8601 | public override void WriteTo(pb::CodedOutputStream output) { |
| 8602 | if (HasA) { |
| 8603 | output.WriteMessage(1, A); |
| 8604 | } |
| 8605 | if (HasOptionalInt32) { |
| 8606 | output.WriteInt32(2, OptionalInt32); |
| 8607 | } |
| 8608 | UnknownFields.WriteTo(output); |
| 8609 | } |
| 8610 | |
| 8611 | private int memoizedSerializedSize = -1; |
| 8612 | public override int SerializedSize { |
| 8613 | get { |
| 8614 | int size = memoizedSerializedSize; |
| 8615 | if (size != -1) return size; |
| 8616 | |
| 8617 | size = 0; |
| 8618 | if (HasA) { |
| 8619 | size += pb::CodedOutputStream.ComputeMessageSize(1, A); |
| 8620 | } |
| 8621 | if (HasOptionalInt32) { |
| 8622 | size += pb::CodedOutputStream.ComputeInt32Size(2, OptionalInt32); |
| 8623 | } |
| 8624 | size += UnknownFields.SerializedSize; |
| 8625 | memoizedSerializedSize = size; |
| 8626 | return size; |
| 8627 | } |
| 8628 | } |
| 8629 | |
| 8630 | public static TestMutualRecursionB ParseFrom(pb::ByteString data) { |
| 8631 | return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed(); |
| 8632 | } |
| 8633 | public static TestMutualRecursionB ParseFrom(pb::ByteString data, pb::ExtensionRegistry extensionRegistry) { |
| 8634 | return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed(); |
| 8635 | } |
| 8636 | public static TestMutualRecursionB ParseFrom(byte[] data) { |
| 8637 | return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed(); |
| 8638 | } |
| 8639 | public static TestMutualRecursionB ParseFrom(byte[] data, pb::ExtensionRegistry extensionRegistry) { |
| 8640 | return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed(); |
| 8641 | } |
| 8642 | public static TestMutualRecursionB ParseFrom(global::System.IO.Stream input) { |
| 8643 | return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed(); |
| 8644 | } |
| 8645 | public static TestMutualRecursionB ParseFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) { |
| 8646 | return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed(); |
| 8647 | } |
| 8648 | public static TestMutualRecursionB ParseFrom(pb::CodedInputStream input) { |
| 8649 | return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed(); |
| 8650 | } |
| 8651 | public static TestMutualRecursionB ParseFrom(pb::CodedInputStream input, pb::ExtensionRegistry extensionRegistry) { |
| 8652 | return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed(); |
| 8653 | } |
| 8654 | public static Builder CreateBuilder() { return new Builder(); } |
| 8655 | public override Builder CreateBuilderForType() { return new Builder(); } |
| 8656 | public static Builder CreateBuilder(TestMutualRecursionB prototype) { |
| 8657 | return (Builder) new Builder().MergeFrom(prototype); |
| 8658 | } |
| 8659 | |
| 8660 | public sealed partial class Builder : pb::GeneratedBuilder<TestMutualRecursionB, Builder> { |
| 8661 | protected override Builder ThisBuilder { |
| 8662 | get { return this; } |
| 8663 | } |
| 8664 | public Builder() {} |
| 8665 | |
| 8666 | TestMutualRecursionB result = new TestMutualRecursionB(); |
| 8667 | |
| 8668 | protected override TestMutualRecursionB MessageBeingBuilt { |
| 8669 | get { return result; } |
| 8670 | } |
| 8671 | |
| 8672 | public override Builder Clear() { |
| 8673 | result = new TestMutualRecursionB(); |
| 8674 | return this; |
| 8675 | } |
| 8676 | |
| 8677 | public override Builder Clone() { |
| 8678 | return new Builder().MergeFrom(result); |
| 8679 | } |
| 8680 | |
| 8681 | public override pbd::MessageDescriptor DescriptorForType { |
| 8682 | get { return TestMutualRecursionB.Descriptor; } |
| 8683 | } |
| 8684 | |
| 8685 | public override TestMutualRecursionB DefaultInstanceForType { |
| 8686 | get { return TestMutualRecursionB.DefaultInstance; } |
| 8687 | } |
| 8688 | |
| 8689 | public override TestMutualRecursionB BuildPartial() { |
| 8690 | TestMutualRecursionB returnMe = result; |
| 8691 | result = null; |
| 8692 | return returnMe; |
| 8693 | } |
| 8694 | |
| 8695 | public override Builder MergeFrom(pb::IMessage other) { |
| 8696 | if (other is TestMutualRecursionB) { |
| 8697 | return MergeFrom((TestMutualRecursionB) other); |
| 8698 | } else { |
| 8699 | base.MergeFrom(other); |
| 8700 | return this; |
| 8701 | } |
| 8702 | } |
| 8703 | |
| 8704 | public override Builder MergeFrom(TestMutualRecursionB other) { |
| 8705 | if (other == TestMutualRecursionB.DefaultInstance) return this; |
| 8706 | if (other.HasA) { |
| 8707 | MergeA(other.A); |
| 8708 | } |
| 8709 | if (other.HasOptionalInt32) { |
| 8710 | OptionalInt32 = other.OptionalInt32; |
| 8711 | } |
| 8712 | this.MergeUnknownFields(other.UnknownFields); |
| 8713 | return this; |
| 8714 | } |
| 8715 | |
| 8716 | public override Builder MergeFrom(pb::CodedInputStream input) { |
| 8717 | return MergeFrom(input, pb::ExtensionRegistry.Empty); |
| 8718 | } |
| 8719 | |
| 8720 | public override Builder MergeFrom(pb::CodedInputStream input, pb::ExtensionRegistry extensionRegistry) { |
| 8721 | pb::UnknownFieldSet.Builder unknownFields = pb::UnknownFieldSet.CreateBuilder(this.UnknownFields); |
| 8722 | while (true) { |
| 8723 | uint tag = input.ReadTag(); |
| 8724 | switch (tag) { |
| 8725 | case 0: { |
| 8726 | this.UnknownFields = unknownFields.Build(); |
| 8727 | return this; |
| 8728 | } |
| 8729 | default: { |
| 8730 | if (!ParseUnknownField(input, unknownFields, extensionRegistry, tag)) { |
| 8731 | this.UnknownFields = unknownFields.Build(); |
| 8732 | return this; |
| 8733 | } |
| 8734 | break; |
| 8735 | } |
| 8736 | case 10: { |
| 8737 | global::Google.ProtocolBuffers.TestProtos.TestMutualRecursionA.Builder subBuilder = global::Google.ProtocolBuffers.TestProtos.TestMutualRecursionA.CreateBuilder(); |
| 8738 | if (HasA) { |
| 8739 | subBuilder.MergeFrom(A); |
| 8740 | } |
| 8741 | input.ReadMessage(subBuilder, extensionRegistry); |
| 8742 | A = subBuilder.BuildPartial(); |
| 8743 | break; |
| 8744 | } |
| 8745 | case 16: { |
| 8746 | OptionalInt32 = input.ReadInt32(); |
| 8747 | break; |
| 8748 | } |
| 8749 | } |
| 8750 | } |
| 8751 | } |
| 8752 | |
| 8753 | |
| 8754 | public bool HasA { |
| 8755 | get { return result.HasA; } |
| 8756 | } |
| 8757 | public global::Google.ProtocolBuffers.TestProtos.TestMutualRecursionA A { |
| 8758 | get { return result.A; } |
| 8759 | set { SetA(value); } |
| 8760 | } |
| 8761 | public Builder SetA(global::Google.ProtocolBuffers.TestProtos.TestMutualRecursionA value) { |
Jon Skeet | 642a814 | 2009-01-27 12:25:21 +0000 | [diff] [blame] | 8762 | pb::ThrowHelper.ThrowIfNull(value, "value"); |
Jon Skeet | 6803686 | 2008-10-22 13:30:34 +0100 | [diff] [blame] | 8763 | result.hasA = true; |
| 8764 | result.a_ = value; |
| 8765 | return this; |
| 8766 | } |
| 8767 | public Builder SetA(global::Google.ProtocolBuffers.TestProtos.TestMutualRecursionA.Builder builderForValue) { |
Jon Skeet | 642a814 | 2009-01-27 12:25:21 +0000 | [diff] [blame] | 8768 | pb::ThrowHelper.ThrowIfNull(builderForValue, "builderForValue"); |
Jon Skeet | 6803686 | 2008-10-22 13:30:34 +0100 | [diff] [blame] | 8769 | result.hasA = true; |
| 8770 | result.a_ = builderForValue.Build(); |
| 8771 | return this; |
| 8772 | } |
| 8773 | public Builder MergeA(global::Google.ProtocolBuffers.TestProtos.TestMutualRecursionA value) { |
Jon Skeet | 642a814 | 2009-01-27 12:25:21 +0000 | [diff] [blame] | 8774 | pb::ThrowHelper.ThrowIfNull(value, "value"); |
Jon Skeet | 6803686 | 2008-10-22 13:30:34 +0100 | [diff] [blame] | 8775 | if (result.HasA && |
| 8776 | result.a_ != global::Google.ProtocolBuffers.TestProtos.TestMutualRecursionA.DefaultInstance) { |
| 8777 | result.a_ = global::Google.ProtocolBuffers.TestProtos.TestMutualRecursionA.CreateBuilder(result.a_).MergeFrom(value).BuildPartial(); |
| 8778 | } else { |
| 8779 | result.a_ = value; |
| 8780 | } |
| 8781 | result.hasA = true; |
| 8782 | return this; |
| 8783 | } |
| 8784 | public Builder ClearA() { |
| 8785 | result.hasA = false; |
| 8786 | result.a_ = global::Google.ProtocolBuffers.TestProtos.TestMutualRecursionA.DefaultInstance; |
| 8787 | return this; |
| 8788 | } |
| 8789 | |
| 8790 | public bool HasOptionalInt32 { |
| 8791 | get { return result.HasOptionalInt32; } |
| 8792 | } |
| 8793 | public int OptionalInt32 { |
| 8794 | get { return result.OptionalInt32; } |
| 8795 | set { SetOptionalInt32(value); } |
| 8796 | } |
| 8797 | public Builder SetOptionalInt32(int value) { |
| 8798 | result.hasOptionalInt32 = true; |
| 8799 | result.optionalInt32_ = value; |
| 8800 | return this; |
| 8801 | } |
| 8802 | public Builder ClearOptionalInt32() { |
| 8803 | result.hasOptionalInt32 = false; |
| 8804 | result.optionalInt32_ = 0; |
| 8805 | return this; |
| 8806 | } |
| 8807 | } |
| 8808 | } |
| 8809 | |
| 8810 | public sealed partial class TestDupFieldNumber : pb::GeneratedMessage<TestDupFieldNumber, TestDupFieldNumber.Builder> { |
| 8811 | private static readonly TestDupFieldNumber defaultInstance = new Builder().BuildPartial(); |
| 8812 | public static TestDupFieldNumber DefaultInstance { |
| 8813 | get { return defaultInstance; } |
| 8814 | } |
| 8815 | |
| 8816 | public override TestDupFieldNumber DefaultInstanceForType { |
| 8817 | get { return defaultInstance; } |
| 8818 | } |
| 8819 | |
| 8820 | protected override TestDupFieldNumber ThisMessage { |
| 8821 | get { return this; } |
| 8822 | } |
| 8823 | |
| 8824 | public static pbd::MessageDescriptor Descriptor { |
| 8825 | get { return global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.internal__static_protobuf_unittest_TestDupFieldNumber__Descriptor; } |
| 8826 | } |
| 8827 | |
| 8828 | protected override pb::FieldAccess.FieldAccessorTable<TestDupFieldNumber, TestDupFieldNumber.Builder> InternalFieldAccessors { |
| 8829 | get { return global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.internal__static_protobuf_unittest_TestDupFieldNumber__FieldAccessorTable; } |
| 8830 | } |
| 8831 | |
| 8832 | #region Nested types |
| 8833 | public static class Types { |
| 8834 | public sealed partial class Foo : pb::GeneratedMessage<Foo, Foo.Builder> { |
| 8835 | private static readonly Foo defaultInstance = new Builder().BuildPartial(); |
| 8836 | public static Foo DefaultInstance { |
| 8837 | get { return defaultInstance; } |
| 8838 | } |
| 8839 | |
| 8840 | public override Foo DefaultInstanceForType { |
| 8841 | get { return defaultInstance; } |
| 8842 | } |
| 8843 | |
| 8844 | protected override Foo ThisMessage { |
| 8845 | get { return this; } |
| 8846 | } |
| 8847 | |
| 8848 | public static pbd::MessageDescriptor Descriptor { |
| 8849 | get { return global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.internal__static_protobuf_unittest_TestDupFieldNumber_Foo__Descriptor; } |
| 8850 | } |
| 8851 | |
| 8852 | protected override pb::FieldAccess.FieldAccessorTable<Foo, Foo.Builder> InternalFieldAccessors { |
| 8853 | get { return global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.internal__static_protobuf_unittest_TestDupFieldNumber_Foo__FieldAccessorTable; } |
| 8854 | } |
| 8855 | |
| 8856 | private bool hasA; |
| 8857 | private int a_ = 0; |
| 8858 | public bool HasA { |
| 8859 | get { return hasA; } |
| 8860 | } |
| 8861 | public int A { |
| 8862 | get { return a_; } |
| 8863 | } |
| 8864 | |
| 8865 | public override bool IsInitialized { |
| 8866 | get { |
| 8867 | return true; |
| 8868 | } |
| 8869 | } |
| 8870 | |
| 8871 | public override void WriteTo(pb::CodedOutputStream output) { |
| 8872 | if (HasA) { |
| 8873 | output.WriteInt32(1, A); |
| 8874 | } |
| 8875 | UnknownFields.WriteTo(output); |
| 8876 | } |
| 8877 | |
| 8878 | private int memoizedSerializedSize = -1; |
| 8879 | public override int SerializedSize { |
| 8880 | get { |
| 8881 | int size = memoizedSerializedSize; |
| 8882 | if (size != -1) return size; |
| 8883 | |
| 8884 | size = 0; |
| 8885 | if (HasA) { |
| 8886 | size += pb::CodedOutputStream.ComputeInt32Size(1, A); |
| 8887 | } |
| 8888 | size += UnknownFields.SerializedSize; |
| 8889 | memoizedSerializedSize = size; |
| 8890 | return size; |
| 8891 | } |
| 8892 | } |
| 8893 | |
| 8894 | public static Foo ParseFrom(pb::ByteString data) { |
| 8895 | return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed(); |
| 8896 | } |
| 8897 | public static Foo ParseFrom(pb::ByteString data, pb::ExtensionRegistry extensionRegistry) { |
| 8898 | return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed(); |
| 8899 | } |
| 8900 | public static Foo ParseFrom(byte[] data) { |
| 8901 | return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed(); |
| 8902 | } |
| 8903 | public static Foo ParseFrom(byte[] data, pb::ExtensionRegistry extensionRegistry) { |
| 8904 | return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed(); |
| 8905 | } |
| 8906 | public static Foo ParseFrom(global::System.IO.Stream input) { |
| 8907 | return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed(); |
| 8908 | } |
| 8909 | public static Foo ParseFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) { |
| 8910 | return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed(); |
| 8911 | } |
| 8912 | public static Foo ParseFrom(pb::CodedInputStream input) { |
| 8913 | return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed(); |
| 8914 | } |
| 8915 | public static Foo ParseFrom(pb::CodedInputStream input, pb::ExtensionRegistry extensionRegistry) { |
| 8916 | return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed(); |
| 8917 | } |
| 8918 | public static Builder CreateBuilder() { return new Builder(); } |
| 8919 | public override Builder CreateBuilderForType() { return new Builder(); } |
| 8920 | public static Builder CreateBuilder(Foo prototype) { |
| 8921 | return (Builder) new Builder().MergeFrom(prototype); |
| 8922 | } |
| 8923 | |
| 8924 | public sealed partial class Builder : pb::GeneratedBuilder<Foo, Builder> { |
| 8925 | protected override Builder ThisBuilder { |
| 8926 | get { return this; } |
| 8927 | } |
| 8928 | public Builder() {} |
| 8929 | |
| 8930 | Foo result = new Foo(); |
| 8931 | |
| 8932 | protected override Foo MessageBeingBuilt { |
| 8933 | get { return result; } |
| 8934 | } |
| 8935 | |
| 8936 | public override Builder Clear() { |
| 8937 | result = new Foo(); |
| 8938 | return this; |
| 8939 | } |
| 8940 | |
| 8941 | public override Builder Clone() { |
| 8942 | return new Builder().MergeFrom(result); |
| 8943 | } |
| 8944 | |
| 8945 | public override pbd::MessageDescriptor DescriptorForType { |
| 8946 | get { return Foo.Descriptor; } |
| 8947 | } |
| 8948 | |
| 8949 | public override Foo DefaultInstanceForType { |
| 8950 | get { return Foo.DefaultInstance; } |
| 8951 | } |
| 8952 | |
| 8953 | public override Foo BuildPartial() { |
| 8954 | Foo returnMe = result; |
| 8955 | result = null; |
| 8956 | return returnMe; |
| 8957 | } |
| 8958 | |
| 8959 | public override Builder MergeFrom(pb::IMessage other) { |
| 8960 | if (other is Foo) { |
| 8961 | return MergeFrom((Foo) other); |
| 8962 | } else { |
| 8963 | base.MergeFrom(other); |
| 8964 | return this; |
| 8965 | } |
| 8966 | } |
| 8967 | |
| 8968 | public override Builder MergeFrom(Foo other) { |
| 8969 | if (other == Foo.DefaultInstance) return this; |
| 8970 | if (other.HasA) { |
| 8971 | A = other.A; |
| 8972 | } |
| 8973 | this.MergeUnknownFields(other.UnknownFields); |
| 8974 | return this; |
| 8975 | } |
| 8976 | |
| 8977 | public override Builder MergeFrom(pb::CodedInputStream input) { |
| 8978 | return MergeFrom(input, pb::ExtensionRegistry.Empty); |
| 8979 | } |
| 8980 | |
| 8981 | public override Builder MergeFrom(pb::CodedInputStream input, pb::ExtensionRegistry extensionRegistry) { |
| 8982 | pb::UnknownFieldSet.Builder unknownFields = pb::UnknownFieldSet.CreateBuilder(this.UnknownFields); |
| 8983 | while (true) { |
| 8984 | uint tag = input.ReadTag(); |
| 8985 | switch (tag) { |
| 8986 | case 0: { |
| 8987 | this.UnknownFields = unknownFields.Build(); |
| 8988 | return this; |
| 8989 | } |
| 8990 | default: { |
| 8991 | if (!ParseUnknownField(input, unknownFields, extensionRegistry, tag)) { |
| 8992 | this.UnknownFields = unknownFields.Build(); |
| 8993 | return this; |
| 8994 | } |
| 8995 | break; |
| 8996 | } |
| 8997 | case 8: { |
| 8998 | A = input.ReadInt32(); |
| 8999 | break; |
| 9000 | } |
| 9001 | } |
| 9002 | } |
| 9003 | } |
| 9004 | |
| 9005 | |
| 9006 | public bool HasA { |
| 9007 | get { return result.HasA; } |
| 9008 | } |
| 9009 | public int A { |
| 9010 | get { return result.A; } |
| 9011 | set { SetA(value); } |
| 9012 | } |
| 9013 | public Builder SetA(int value) { |
| 9014 | result.hasA = true; |
| 9015 | result.a_ = value; |
| 9016 | return this; |
| 9017 | } |
| 9018 | public Builder ClearA() { |
| 9019 | result.hasA = false; |
| 9020 | result.a_ = 0; |
| 9021 | return this; |
| 9022 | } |
| 9023 | } |
| 9024 | } |
| 9025 | |
| 9026 | public sealed partial class Bar : pb::GeneratedMessage<Bar, Bar.Builder> { |
| 9027 | private static readonly Bar defaultInstance = new Builder().BuildPartial(); |
| 9028 | public static Bar DefaultInstance { |
| 9029 | get { return defaultInstance; } |
| 9030 | } |
| 9031 | |
| 9032 | public override Bar DefaultInstanceForType { |
| 9033 | get { return defaultInstance; } |
| 9034 | } |
| 9035 | |
| 9036 | protected override Bar ThisMessage { |
| 9037 | get { return this; } |
| 9038 | } |
| 9039 | |
| 9040 | public static pbd::MessageDescriptor Descriptor { |
| 9041 | get { return global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.internal__static_protobuf_unittest_TestDupFieldNumber_Bar__Descriptor; } |
| 9042 | } |
| 9043 | |
| 9044 | protected override pb::FieldAccess.FieldAccessorTable<Bar, Bar.Builder> InternalFieldAccessors { |
| 9045 | get { return global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.internal__static_protobuf_unittest_TestDupFieldNumber_Bar__FieldAccessorTable; } |
| 9046 | } |
| 9047 | |
| 9048 | private bool hasA; |
| 9049 | private int a_ = 0; |
| 9050 | public bool HasA { |
| 9051 | get { return hasA; } |
| 9052 | } |
| 9053 | public int A { |
| 9054 | get { return a_; } |
| 9055 | } |
| 9056 | |
| 9057 | public override bool IsInitialized { |
| 9058 | get { |
| 9059 | return true; |
| 9060 | } |
| 9061 | } |
| 9062 | |
| 9063 | public override void WriteTo(pb::CodedOutputStream output) { |
| 9064 | if (HasA) { |
| 9065 | output.WriteInt32(1, A); |
| 9066 | } |
| 9067 | UnknownFields.WriteTo(output); |
| 9068 | } |
| 9069 | |
| 9070 | private int memoizedSerializedSize = -1; |
| 9071 | public override int SerializedSize { |
| 9072 | get { |
| 9073 | int size = memoizedSerializedSize; |
| 9074 | if (size != -1) return size; |
| 9075 | |
| 9076 | size = 0; |
| 9077 | if (HasA) { |
| 9078 | size += pb::CodedOutputStream.ComputeInt32Size(1, A); |
| 9079 | } |
| 9080 | size += UnknownFields.SerializedSize; |
| 9081 | memoizedSerializedSize = size; |
| 9082 | return size; |
| 9083 | } |
| 9084 | } |
| 9085 | |
| 9086 | public static Bar ParseFrom(pb::ByteString data) { |
| 9087 | return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed(); |
| 9088 | } |
| 9089 | public static Bar ParseFrom(pb::ByteString data, pb::ExtensionRegistry extensionRegistry) { |
| 9090 | return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed(); |
| 9091 | } |
| 9092 | public static Bar ParseFrom(byte[] data) { |
| 9093 | return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed(); |
| 9094 | } |
| 9095 | public static Bar ParseFrom(byte[] data, pb::ExtensionRegistry extensionRegistry) { |
| 9096 | return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed(); |
| 9097 | } |
| 9098 | public static Bar ParseFrom(global::System.IO.Stream input) { |
| 9099 | return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed(); |
| 9100 | } |
| 9101 | public static Bar ParseFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) { |
| 9102 | return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed(); |
| 9103 | } |
| 9104 | public static Bar ParseFrom(pb::CodedInputStream input) { |
| 9105 | return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed(); |
| 9106 | } |
| 9107 | public static Bar ParseFrom(pb::CodedInputStream input, pb::ExtensionRegistry extensionRegistry) { |
| 9108 | return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed(); |
| 9109 | } |
| 9110 | public static Builder CreateBuilder() { return new Builder(); } |
| 9111 | public override Builder CreateBuilderForType() { return new Builder(); } |
| 9112 | public static Builder CreateBuilder(Bar prototype) { |
| 9113 | return (Builder) new Builder().MergeFrom(prototype); |
| 9114 | } |
| 9115 | |
| 9116 | public sealed partial class Builder : pb::GeneratedBuilder<Bar, Builder> { |
| 9117 | protected override Builder ThisBuilder { |
| 9118 | get { return this; } |
| 9119 | } |
| 9120 | public Builder() {} |
| 9121 | |
| 9122 | Bar result = new Bar(); |
| 9123 | |
| 9124 | protected override Bar MessageBeingBuilt { |
| 9125 | get { return result; } |
| 9126 | } |
| 9127 | |
| 9128 | public override Builder Clear() { |
| 9129 | result = new Bar(); |
| 9130 | return this; |
| 9131 | } |
| 9132 | |
| 9133 | public override Builder Clone() { |
| 9134 | return new Builder().MergeFrom(result); |
| 9135 | } |
| 9136 | |
| 9137 | public override pbd::MessageDescriptor DescriptorForType { |
| 9138 | get { return Bar.Descriptor; } |
| 9139 | } |
| 9140 | |
| 9141 | public override Bar DefaultInstanceForType { |
| 9142 | get { return Bar.DefaultInstance; } |
| 9143 | } |
| 9144 | |
| 9145 | public override Bar BuildPartial() { |
| 9146 | Bar returnMe = result; |
| 9147 | result = null; |
| 9148 | return returnMe; |
| 9149 | } |
| 9150 | |
| 9151 | public override Builder MergeFrom(pb::IMessage other) { |
| 9152 | if (other is Bar) { |
| 9153 | return MergeFrom((Bar) other); |
| 9154 | } else { |
| 9155 | base.MergeFrom(other); |
| 9156 | return this; |
| 9157 | } |
| 9158 | } |
| 9159 | |
| 9160 | public override Builder MergeFrom(Bar other) { |
| 9161 | if (other == Bar.DefaultInstance) return this; |
| 9162 | if (other.HasA) { |
| 9163 | A = other.A; |
| 9164 | } |
| 9165 | this.MergeUnknownFields(other.UnknownFields); |
| 9166 | return this; |
| 9167 | } |
| 9168 | |
| 9169 | public override Builder MergeFrom(pb::CodedInputStream input) { |
| 9170 | return MergeFrom(input, pb::ExtensionRegistry.Empty); |
| 9171 | } |
| 9172 | |
| 9173 | public override Builder MergeFrom(pb::CodedInputStream input, pb::ExtensionRegistry extensionRegistry) { |
| 9174 | pb::UnknownFieldSet.Builder unknownFields = pb::UnknownFieldSet.CreateBuilder(this.UnknownFields); |
| 9175 | while (true) { |
| 9176 | uint tag = input.ReadTag(); |
| 9177 | switch (tag) { |
| 9178 | case 0: { |
| 9179 | this.UnknownFields = unknownFields.Build(); |
| 9180 | return this; |
| 9181 | } |
| 9182 | default: { |
| 9183 | if (!ParseUnknownField(input, unknownFields, extensionRegistry, tag)) { |
| 9184 | this.UnknownFields = unknownFields.Build(); |
| 9185 | return this; |
| 9186 | } |
| 9187 | break; |
| 9188 | } |
| 9189 | case 8: { |
| 9190 | A = input.ReadInt32(); |
| 9191 | break; |
| 9192 | } |
| 9193 | } |
| 9194 | } |
| 9195 | } |
| 9196 | |
| 9197 | |
| 9198 | public bool HasA { |
| 9199 | get { return result.HasA; } |
| 9200 | } |
| 9201 | public int A { |
| 9202 | get { return result.A; } |
| 9203 | set { SetA(value); } |
| 9204 | } |
| 9205 | public Builder SetA(int value) { |
| 9206 | result.hasA = true; |
| 9207 | result.a_ = value; |
| 9208 | return this; |
| 9209 | } |
| 9210 | public Builder ClearA() { |
| 9211 | result.hasA = false; |
| 9212 | result.a_ = 0; |
| 9213 | return this; |
| 9214 | } |
| 9215 | } |
| 9216 | } |
| 9217 | |
| 9218 | } |
| 9219 | #endregion |
| 9220 | |
| 9221 | private bool hasA; |
| 9222 | private int a_ = 0; |
| 9223 | public bool HasA { |
| 9224 | get { return hasA; } |
| 9225 | } |
| 9226 | public int A { |
| 9227 | get { return a_; } |
| 9228 | } |
| 9229 | |
| 9230 | private bool hasFoo; |
| 9231 | private global::Google.ProtocolBuffers.TestProtos.TestDupFieldNumber.Types.Foo foo_ = global::Google.ProtocolBuffers.TestProtos.TestDupFieldNumber.Types.Foo.DefaultInstance; |
| 9232 | public bool HasFoo { |
| 9233 | get { return hasFoo; } |
| 9234 | } |
| 9235 | public global::Google.ProtocolBuffers.TestProtos.TestDupFieldNumber.Types.Foo Foo { |
| 9236 | get { return foo_; } |
| 9237 | } |
| 9238 | |
| 9239 | private bool hasBar; |
| 9240 | private global::Google.ProtocolBuffers.TestProtos.TestDupFieldNumber.Types.Bar bar_ = global::Google.ProtocolBuffers.TestProtos.TestDupFieldNumber.Types.Bar.DefaultInstance; |
| 9241 | public bool HasBar { |
| 9242 | get { return hasBar; } |
| 9243 | } |
| 9244 | public global::Google.ProtocolBuffers.TestProtos.TestDupFieldNumber.Types.Bar Bar { |
| 9245 | get { return bar_; } |
| 9246 | } |
| 9247 | |
| 9248 | public override bool IsInitialized { |
| 9249 | get { |
| 9250 | return true; |
| 9251 | } |
| 9252 | } |
| 9253 | |
| 9254 | public override void WriteTo(pb::CodedOutputStream output) { |
| 9255 | if (HasA) { |
| 9256 | output.WriteInt32(1, A); |
| 9257 | } |
| 9258 | if (HasFoo) { |
| 9259 | output.WriteGroup(2, Foo); |
| 9260 | } |
| 9261 | if (HasBar) { |
| 9262 | output.WriteGroup(3, Bar); |
| 9263 | } |
| 9264 | UnknownFields.WriteTo(output); |
| 9265 | } |
| 9266 | |
| 9267 | private int memoizedSerializedSize = -1; |
| 9268 | public override int SerializedSize { |
| 9269 | get { |
| 9270 | int size = memoizedSerializedSize; |
| 9271 | if (size != -1) return size; |
| 9272 | |
| 9273 | size = 0; |
| 9274 | if (HasA) { |
| 9275 | size += pb::CodedOutputStream.ComputeInt32Size(1, A); |
| 9276 | } |
| 9277 | if (HasFoo) { |
| 9278 | size += pb::CodedOutputStream.ComputeGroupSize(2, Foo); |
| 9279 | } |
| 9280 | if (HasBar) { |
| 9281 | size += pb::CodedOutputStream.ComputeGroupSize(3, Bar); |
| 9282 | } |
| 9283 | size += UnknownFields.SerializedSize; |
| 9284 | memoizedSerializedSize = size; |
| 9285 | return size; |
| 9286 | } |
| 9287 | } |
| 9288 | |
| 9289 | public static TestDupFieldNumber ParseFrom(pb::ByteString data) { |
| 9290 | return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed(); |
| 9291 | } |
| 9292 | public static TestDupFieldNumber ParseFrom(pb::ByteString data, pb::ExtensionRegistry extensionRegistry) { |
| 9293 | return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed(); |
| 9294 | } |
| 9295 | public static TestDupFieldNumber ParseFrom(byte[] data) { |
| 9296 | return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed(); |
| 9297 | } |
| 9298 | public static TestDupFieldNumber ParseFrom(byte[] data, pb::ExtensionRegistry extensionRegistry) { |
| 9299 | return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed(); |
| 9300 | } |
| 9301 | public static TestDupFieldNumber ParseFrom(global::System.IO.Stream input) { |
| 9302 | return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed(); |
| 9303 | } |
| 9304 | public static TestDupFieldNumber ParseFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) { |
| 9305 | return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed(); |
| 9306 | } |
| 9307 | public static TestDupFieldNumber ParseFrom(pb::CodedInputStream input) { |
| 9308 | return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed(); |
| 9309 | } |
| 9310 | public static TestDupFieldNumber ParseFrom(pb::CodedInputStream input, pb::ExtensionRegistry extensionRegistry) { |
| 9311 | return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed(); |
| 9312 | } |
| 9313 | public static Builder CreateBuilder() { return new Builder(); } |
| 9314 | public override Builder CreateBuilderForType() { return new Builder(); } |
| 9315 | public static Builder CreateBuilder(TestDupFieldNumber prototype) { |
| 9316 | return (Builder) new Builder().MergeFrom(prototype); |
| 9317 | } |
| 9318 | |
| 9319 | public sealed partial class Builder : pb::GeneratedBuilder<TestDupFieldNumber, Builder> { |
| 9320 | protected override Builder ThisBuilder { |
| 9321 | get { return this; } |
| 9322 | } |
| 9323 | public Builder() {} |
| 9324 | |
| 9325 | TestDupFieldNumber result = new TestDupFieldNumber(); |
| 9326 | |
| 9327 | protected override TestDupFieldNumber MessageBeingBuilt { |
| 9328 | get { return result; } |
| 9329 | } |
| 9330 | |
| 9331 | public override Builder Clear() { |
| 9332 | result = new TestDupFieldNumber(); |
| 9333 | return this; |
| 9334 | } |
| 9335 | |
| 9336 | public override Builder Clone() { |
| 9337 | return new Builder().MergeFrom(result); |
| 9338 | } |
| 9339 | |
| 9340 | public override pbd::MessageDescriptor DescriptorForType { |
| 9341 | get { return TestDupFieldNumber.Descriptor; } |
| 9342 | } |
| 9343 | |
| 9344 | public override TestDupFieldNumber DefaultInstanceForType { |
| 9345 | get { return TestDupFieldNumber.DefaultInstance; } |
| 9346 | } |
| 9347 | |
| 9348 | public override TestDupFieldNumber BuildPartial() { |
| 9349 | TestDupFieldNumber returnMe = result; |
| 9350 | result = null; |
| 9351 | return returnMe; |
| 9352 | } |
| 9353 | |
| 9354 | public override Builder MergeFrom(pb::IMessage other) { |
| 9355 | if (other is TestDupFieldNumber) { |
| 9356 | return MergeFrom((TestDupFieldNumber) other); |
| 9357 | } else { |
| 9358 | base.MergeFrom(other); |
| 9359 | return this; |
| 9360 | } |
| 9361 | } |
| 9362 | |
| 9363 | public override Builder MergeFrom(TestDupFieldNumber other) { |
| 9364 | if (other == TestDupFieldNumber.DefaultInstance) return this; |
| 9365 | if (other.HasA) { |
| 9366 | A = other.A; |
| 9367 | } |
| 9368 | if (other.HasFoo) { |
| 9369 | MergeFoo(other.Foo); |
| 9370 | } |
| 9371 | if (other.HasBar) { |
| 9372 | MergeBar(other.Bar); |
| 9373 | } |
| 9374 | this.MergeUnknownFields(other.UnknownFields); |
| 9375 | return this; |
| 9376 | } |
| 9377 | |
| 9378 | public override Builder MergeFrom(pb::CodedInputStream input) { |
| 9379 | return MergeFrom(input, pb::ExtensionRegistry.Empty); |
| 9380 | } |
| 9381 | |
| 9382 | public override Builder MergeFrom(pb::CodedInputStream input, pb::ExtensionRegistry extensionRegistry) { |
| 9383 | pb::UnknownFieldSet.Builder unknownFields = pb::UnknownFieldSet.CreateBuilder(this.UnknownFields); |
| 9384 | while (true) { |
| 9385 | uint tag = input.ReadTag(); |
| 9386 | switch (tag) { |
| 9387 | case 0: { |
| 9388 | this.UnknownFields = unknownFields.Build(); |
| 9389 | return this; |
| 9390 | } |
| 9391 | default: { |
| 9392 | if (!ParseUnknownField(input, unknownFields, extensionRegistry, tag)) { |
| 9393 | this.UnknownFields = unknownFields.Build(); |
| 9394 | return this; |
| 9395 | } |
| 9396 | break; |
| 9397 | } |
| 9398 | case 8: { |
| 9399 | A = input.ReadInt32(); |
| 9400 | break; |
| 9401 | } |
| 9402 | case 19: { |
| 9403 | global::Google.ProtocolBuffers.TestProtos.TestDupFieldNumber.Types.Foo.Builder subBuilder = global::Google.ProtocolBuffers.TestProtos.TestDupFieldNumber.Types.Foo.CreateBuilder(); |
| 9404 | if (HasFoo) { |
| 9405 | subBuilder.MergeFrom(Foo); |
| 9406 | } |
| 9407 | input.ReadGroup(2, subBuilder, extensionRegistry); |
| 9408 | Foo = subBuilder.BuildPartial(); |
| 9409 | break; |
| 9410 | } |
| 9411 | case 27: { |
| 9412 | global::Google.ProtocolBuffers.TestProtos.TestDupFieldNumber.Types.Bar.Builder subBuilder = global::Google.ProtocolBuffers.TestProtos.TestDupFieldNumber.Types.Bar.CreateBuilder(); |
| 9413 | if (HasBar) { |
| 9414 | subBuilder.MergeFrom(Bar); |
| 9415 | } |
| 9416 | input.ReadGroup(3, subBuilder, extensionRegistry); |
| 9417 | Bar = subBuilder.BuildPartial(); |
| 9418 | break; |
| 9419 | } |
| 9420 | } |
| 9421 | } |
| 9422 | } |
| 9423 | |
| 9424 | |
| 9425 | public bool HasA { |
| 9426 | get { return result.HasA; } |
| 9427 | } |
| 9428 | public int A { |
| 9429 | get { return result.A; } |
| 9430 | set { SetA(value); } |
| 9431 | } |
| 9432 | public Builder SetA(int value) { |
| 9433 | result.hasA = true; |
| 9434 | result.a_ = value; |
| 9435 | return this; |
| 9436 | } |
| 9437 | public Builder ClearA() { |
| 9438 | result.hasA = false; |
| 9439 | result.a_ = 0; |
| 9440 | return this; |
| 9441 | } |
| 9442 | |
| 9443 | public bool HasFoo { |
| 9444 | get { return result.HasFoo; } |
| 9445 | } |
| 9446 | public global::Google.ProtocolBuffers.TestProtos.TestDupFieldNumber.Types.Foo Foo { |
| 9447 | get { return result.Foo; } |
| 9448 | set { SetFoo(value); } |
| 9449 | } |
| 9450 | public Builder SetFoo(global::Google.ProtocolBuffers.TestProtos.TestDupFieldNumber.Types.Foo value) { |
Jon Skeet | 642a814 | 2009-01-27 12:25:21 +0000 | [diff] [blame] | 9451 | pb::ThrowHelper.ThrowIfNull(value, "value"); |
Jon Skeet | 6803686 | 2008-10-22 13:30:34 +0100 | [diff] [blame] | 9452 | result.hasFoo = true; |
| 9453 | result.foo_ = value; |
| 9454 | return this; |
| 9455 | } |
| 9456 | public Builder SetFoo(global::Google.ProtocolBuffers.TestProtos.TestDupFieldNumber.Types.Foo.Builder builderForValue) { |
Jon Skeet | 642a814 | 2009-01-27 12:25:21 +0000 | [diff] [blame] | 9457 | pb::ThrowHelper.ThrowIfNull(builderForValue, "builderForValue"); |
Jon Skeet | 6803686 | 2008-10-22 13:30:34 +0100 | [diff] [blame] | 9458 | result.hasFoo = true; |
| 9459 | result.foo_ = builderForValue.Build(); |
| 9460 | return this; |
| 9461 | } |
| 9462 | public Builder MergeFoo(global::Google.ProtocolBuffers.TestProtos.TestDupFieldNumber.Types.Foo value) { |
Jon Skeet | 642a814 | 2009-01-27 12:25:21 +0000 | [diff] [blame] | 9463 | pb::ThrowHelper.ThrowIfNull(value, "value"); |
Jon Skeet | 6803686 | 2008-10-22 13:30:34 +0100 | [diff] [blame] | 9464 | if (result.HasFoo && |
| 9465 | result.foo_ != global::Google.ProtocolBuffers.TestProtos.TestDupFieldNumber.Types.Foo.DefaultInstance) { |
| 9466 | result.foo_ = global::Google.ProtocolBuffers.TestProtos.TestDupFieldNumber.Types.Foo.CreateBuilder(result.foo_).MergeFrom(value).BuildPartial(); |
| 9467 | } else { |
| 9468 | result.foo_ = value; |
| 9469 | } |
| 9470 | result.hasFoo = true; |
| 9471 | return this; |
| 9472 | } |
| 9473 | public Builder ClearFoo() { |
| 9474 | result.hasFoo = false; |
| 9475 | result.foo_ = global::Google.ProtocolBuffers.TestProtos.TestDupFieldNumber.Types.Foo.DefaultInstance; |
| 9476 | return this; |
| 9477 | } |
| 9478 | |
| 9479 | public bool HasBar { |
| 9480 | get { return result.HasBar; } |
| 9481 | } |
| 9482 | public global::Google.ProtocolBuffers.TestProtos.TestDupFieldNumber.Types.Bar Bar { |
| 9483 | get { return result.Bar; } |
| 9484 | set { SetBar(value); } |
| 9485 | } |
| 9486 | public Builder SetBar(global::Google.ProtocolBuffers.TestProtos.TestDupFieldNumber.Types.Bar value) { |
Jon Skeet | 642a814 | 2009-01-27 12:25:21 +0000 | [diff] [blame] | 9487 | pb::ThrowHelper.ThrowIfNull(value, "value"); |
Jon Skeet | 6803686 | 2008-10-22 13:30:34 +0100 | [diff] [blame] | 9488 | result.hasBar = true; |
| 9489 | result.bar_ = value; |
| 9490 | return this; |
| 9491 | } |
| 9492 | public Builder SetBar(global::Google.ProtocolBuffers.TestProtos.TestDupFieldNumber.Types.Bar.Builder builderForValue) { |
Jon Skeet | 642a814 | 2009-01-27 12:25:21 +0000 | [diff] [blame] | 9493 | pb::ThrowHelper.ThrowIfNull(builderForValue, "builderForValue"); |
Jon Skeet | 6803686 | 2008-10-22 13:30:34 +0100 | [diff] [blame] | 9494 | result.hasBar = true; |
| 9495 | result.bar_ = builderForValue.Build(); |
| 9496 | return this; |
| 9497 | } |
| 9498 | public Builder MergeBar(global::Google.ProtocolBuffers.TestProtos.TestDupFieldNumber.Types.Bar value) { |
Jon Skeet | 642a814 | 2009-01-27 12:25:21 +0000 | [diff] [blame] | 9499 | pb::ThrowHelper.ThrowIfNull(value, "value"); |
Jon Skeet | 6803686 | 2008-10-22 13:30:34 +0100 | [diff] [blame] | 9500 | if (result.HasBar && |
| 9501 | result.bar_ != global::Google.ProtocolBuffers.TestProtos.TestDupFieldNumber.Types.Bar.DefaultInstance) { |
| 9502 | result.bar_ = global::Google.ProtocolBuffers.TestProtos.TestDupFieldNumber.Types.Bar.CreateBuilder(result.bar_).MergeFrom(value).BuildPartial(); |
| 9503 | } else { |
| 9504 | result.bar_ = value; |
| 9505 | } |
| 9506 | result.hasBar = true; |
| 9507 | return this; |
| 9508 | } |
| 9509 | public Builder ClearBar() { |
| 9510 | result.hasBar = false; |
| 9511 | result.bar_ = global::Google.ProtocolBuffers.TestProtos.TestDupFieldNumber.Types.Bar.DefaultInstance; |
| 9512 | return this; |
| 9513 | } |
| 9514 | } |
| 9515 | } |
| 9516 | |
| 9517 | public sealed partial class TestNestedMessageHasBits : pb::GeneratedMessage<TestNestedMessageHasBits, TestNestedMessageHasBits.Builder> { |
| 9518 | private static readonly TestNestedMessageHasBits defaultInstance = new Builder().BuildPartial(); |
| 9519 | public static TestNestedMessageHasBits DefaultInstance { |
| 9520 | get { return defaultInstance; } |
| 9521 | } |
| 9522 | |
| 9523 | public override TestNestedMessageHasBits DefaultInstanceForType { |
| 9524 | get { return defaultInstance; } |
| 9525 | } |
| 9526 | |
| 9527 | protected override TestNestedMessageHasBits ThisMessage { |
| 9528 | get { return this; } |
| 9529 | } |
| 9530 | |
| 9531 | public static pbd::MessageDescriptor Descriptor { |
| 9532 | get { return global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.internal__static_protobuf_unittest_TestNestedMessageHasBits__Descriptor; } |
| 9533 | } |
| 9534 | |
| 9535 | protected override pb::FieldAccess.FieldAccessorTable<TestNestedMessageHasBits, TestNestedMessageHasBits.Builder> InternalFieldAccessors { |
| 9536 | get { return global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.internal__static_protobuf_unittest_TestNestedMessageHasBits__FieldAccessorTable; } |
| 9537 | } |
| 9538 | |
| 9539 | #region Nested types |
| 9540 | public static class Types { |
| 9541 | public sealed partial class NestedMessage : pb::GeneratedMessage<NestedMessage, NestedMessage.Builder> { |
| 9542 | private static readonly NestedMessage defaultInstance = new Builder().BuildPartial(); |
| 9543 | public static NestedMessage DefaultInstance { |
| 9544 | get { return defaultInstance; } |
| 9545 | } |
| 9546 | |
| 9547 | public override NestedMessage DefaultInstanceForType { |
| 9548 | get { return defaultInstance; } |
| 9549 | } |
| 9550 | |
| 9551 | protected override NestedMessage ThisMessage { |
| 9552 | get { return this; } |
| 9553 | } |
| 9554 | |
| 9555 | public static pbd::MessageDescriptor Descriptor { |
| 9556 | get { return global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.internal__static_protobuf_unittest_TestNestedMessageHasBits_NestedMessage__Descriptor; } |
| 9557 | } |
| 9558 | |
| 9559 | protected override pb::FieldAccess.FieldAccessorTable<NestedMessage, NestedMessage.Builder> InternalFieldAccessors { |
| 9560 | get { return global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.internal__static_protobuf_unittest_TestNestedMessageHasBits_NestedMessage__FieldAccessorTable; } |
| 9561 | } |
| 9562 | |
| 9563 | private pbc::PopsicleList<int> nestedmessageRepeatedInt32_ = new pbc::PopsicleList<int>(); |
| 9564 | public scg::IList<int> NestedmessageRepeatedInt32List { |
| 9565 | get { return pbc::Lists.AsReadOnly(nestedmessageRepeatedInt32_); } |
| 9566 | } |
| 9567 | public int NestedmessageRepeatedInt32Count { |
| 9568 | get { return nestedmessageRepeatedInt32_.Count; } |
| 9569 | } |
| 9570 | public int GetNestedmessageRepeatedInt32(int index) { |
| 9571 | return nestedmessageRepeatedInt32_[index]; |
| 9572 | } |
| 9573 | |
| 9574 | private pbc::PopsicleList<global::Google.ProtocolBuffers.TestProtos.ForeignMessage> nestedmessageRepeatedForeignmessage_ = new pbc::PopsicleList<global::Google.ProtocolBuffers.TestProtos.ForeignMessage>(); |
| 9575 | public scg::IList<global::Google.ProtocolBuffers.TestProtos.ForeignMessage> NestedmessageRepeatedForeignmessageList { |
| 9576 | get { return nestedmessageRepeatedForeignmessage_; } |
| 9577 | } |
| 9578 | public int NestedmessageRepeatedForeignmessageCount { |
| 9579 | get { return nestedmessageRepeatedForeignmessage_.Count; } |
| 9580 | } |
| 9581 | public global::Google.ProtocolBuffers.TestProtos.ForeignMessage GetNestedmessageRepeatedForeignmessage(int index) { |
| 9582 | return nestedmessageRepeatedForeignmessage_[index]; |
| 9583 | } |
| 9584 | |
| 9585 | public override bool IsInitialized { |
| 9586 | get { |
| 9587 | return true; |
| 9588 | } |
| 9589 | } |
| 9590 | |
| 9591 | public override void WriteTo(pb::CodedOutputStream output) { |
Jon Skeet | 25a2858 | 2009-02-18 16:06:22 +0000 | [diff] [blame^] | 9592 | if (nestedmessageRepeatedInt32_.Count > 0) { |
| 9593 | foreach (int element in nestedmessageRepeatedInt32_) { |
| 9594 | output.WriteInt32(1, element); |
| 9595 | } |
Jon Skeet | 6803686 | 2008-10-22 13:30:34 +0100 | [diff] [blame] | 9596 | } |
| 9597 | foreach (global::Google.ProtocolBuffers.TestProtos.ForeignMessage element in NestedmessageRepeatedForeignmessageList) { |
| 9598 | output.WriteMessage(2, element); |
| 9599 | } |
| 9600 | UnknownFields.WriteTo(output); |
| 9601 | } |
| 9602 | |
| 9603 | private int memoizedSerializedSize = -1; |
| 9604 | public override int SerializedSize { |
| 9605 | get { |
| 9606 | int size = memoizedSerializedSize; |
| 9607 | if (size != -1) return size; |
| 9608 | |
| 9609 | size = 0; |
Jon Skeet | 25a2858 | 2009-02-18 16:06:22 +0000 | [diff] [blame^] | 9610 | { |
| 9611 | int dataSize = 0; |
| 9612 | foreach (int element in NestedmessageRepeatedInt32List) { |
| 9613 | dataSize += pb::CodedOutputStream.ComputeInt32SizeNoTag(element); |
| 9614 | } |
| 9615 | size += dataSize; |
| 9616 | size += 1 * nestedmessageRepeatedInt32_.Count; |
Jon Skeet | 6803686 | 2008-10-22 13:30:34 +0100 | [diff] [blame] | 9617 | } |
| 9618 | foreach (global::Google.ProtocolBuffers.TestProtos.ForeignMessage element in NestedmessageRepeatedForeignmessageList) { |
| 9619 | size += pb::CodedOutputStream.ComputeMessageSize(2, element); |
| 9620 | } |
| 9621 | size += UnknownFields.SerializedSize; |
| 9622 | memoizedSerializedSize = size; |
| 9623 | return size; |
| 9624 | } |
| 9625 | } |
| 9626 | |
| 9627 | public static NestedMessage ParseFrom(pb::ByteString data) { |
| 9628 | return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed(); |
| 9629 | } |
| 9630 | public static NestedMessage ParseFrom(pb::ByteString data, pb::ExtensionRegistry extensionRegistry) { |
| 9631 | return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed(); |
| 9632 | } |
| 9633 | public static NestedMessage ParseFrom(byte[] data) { |
| 9634 | return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed(); |
| 9635 | } |
| 9636 | public static NestedMessage ParseFrom(byte[] data, pb::ExtensionRegistry extensionRegistry) { |
| 9637 | return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed(); |
| 9638 | } |
| 9639 | public static NestedMessage ParseFrom(global::System.IO.Stream input) { |
| 9640 | return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed(); |
| 9641 | } |
| 9642 | public static NestedMessage ParseFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) { |
| 9643 | return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed(); |
| 9644 | } |
| 9645 | public static NestedMessage ParseFrom(pb::CodedInputStream input) { |
| 9646 | return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed(); |
| 9647 | } |
| 9648 | public static NestedMessage ParseFrom(pb::CodedInputStream input, pb::ExtensionRegistry extensionRegistry) { |
| 9649 | return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed(); |
| 9650 | } |
| 9651 | public static Builder CreateBuilder() { return new Builder(); } |
| 9652 | public override Builder CreateBuilderForType() { return new Builder(); } |
| 9653 | public static Builder CreateBuilder(NestedMessage prototype) { |
| 9654 | return (Builder) new Builder().MergeFrom(prototype); |
| 9655 | } |
| 9656 | |
| 9657 | public sealed partial class Builder : pb::GeneratedBuilder<NestedMessage, Builder> { |
| 9658 | protected override Builder ThisBuilder { |
| 9659 | get { return this; } |
| 9660 | } |
| 9661 | public Builder() {} |
| 9662 | |
| 9663 | NestedMessage result = new NestedMessage(); |
| 9664 | |
| 9665 | protected override NestedMessage MessageBeingBuilt { |
| 9666 | get { return result; } |
| 9667 | } |
| 9668 | |
| 9669 | public override Builder Clear() { |
| 9670 | result = new NestedMessage(); |
| 9671 | return this; |
| 9672 | } |
| 9673 | |
| 9674 | public override Builder Clone() { |
| 9675 | return new Builder().MergeFrom(result); |
| 9676 | } |
| 9677 | |
| 9678 | public override pbd::MessageDescriptor DescriptorForType { |
| 9679 | get { return NestedMessage.Descriptor; } |
| 9680 | } |
| 9681 | |
| 9682 | public override NestedMessage DefaultInstanceForType { |
| 9683 | get { return NestedMessage.DefaultInstance; } |
| 9684 | } |
| 9685 | |
| 9686 | public override NestedMessage BuildPartial() { |
| 9687 | result.nestedmessageRepeatedInt32_.MakeReadOnly(); |
| 9688 | result.nestedmessageRepeatedForeignmessage_.MakeReadOnly(); |
| 9689 | NestedMessage returnMe = result; |
| 9690 | result = null; |
| 9691 | return returnMe; |
| 9692 | } |
| 9693 | |
| 9694 | public override Builder MergeFrom(pb::IMessage other) { |
| 9695 | if (other is NestedMessage) { |
| 9696 | return MergeFrom((NestedMessage) other); |
| 9697 | } else { |
| 9698 | base.MergeFrom(other); |
| 9699 | return this; |
| 9700 | } |
| 9701 | } |
| 9702 | |
| 9703 | public override Builder MergeFrom(NestedMessage other) { |
| 9704 | if (other == NestedMessage.DefaultInstance) return this; |
| 9705 | if (other.nestedmessageRepeatedInt32_.Count != 0) { |
| 9706 | base.AddRange(other.nestedmessageRepeatedInt32_, result.nestedmessageRepeatedInt32_); |
| 9707 | } |
| 9708 | if (other.nestedmessageRepeatedForeignmessage_.Count != 0) { |
| 9709 | base.AddRange(other.nestedmessageRepeatedForeignmessage_, result.nestedmessageRepeatedForeignmessage_); |
| 9710 | } |
| 9711 | this.MergeUnknownFields(other.UnknownFields); |
| 9712 | return this; |
| 9713 | } |
| 9714 | |
| 9715 | public override Builder MergeFrom(pb::CodedInputStream input) { |
| 9716 | return MergeFrom(input, pb::ExtensionRegistry.Empty); |
| 9717 | } |
| 9718 | |
| 9719 | public override Builder MergeFrom(pb::CodedInputStream input, pb::ExtensionRegistry extensionRegistry) { |
| 9720 | pb::UnknownFieldSet.Builder unknownFields = pb::UnknownFieldSet.CreateBuilder(this.UnknownFields); |
| 9721 | while (true) { |
| 9722 | uint tag = input.ReadTag(); |
| 9723 | switch (tag) { |
| 9724 | case 0: { |
| 9725 | this.UnknownFields = unknownFields.Build(); |
| 9726 | return this; |
| 9727 | } |
| 9728 | default: { |
| 9729 | if (!ParseUnknownField(input, unknownFields, extensionRegistry, tag)) { |
| 9730 | this.UnknownFields = unknownFields.Build(); |
| 9731 | return this; |
| 9732 | } |
| 9733 | break; |
| 9734 | } |
| 9735 | case 8: { |
| 9736 | AddNestedmessageRepeatedInt32(input.ReadInt32()); |
| 9737 | break; |
| 9738 | } |
| 9739 | case 18: { |
| 9740 | global::Google.ProtocolBuffers.TestProtos.ForeignMessage.Builder subBuilder = global::Google.ProtocolBuffers.TestProtos.ForeignMessage.CreateBuilder(); |
| 9741 | input.ReadMessage(subBuilder, extensionRegistry); |
| 9742 | AddNestedmessageRepeatedForeignmessage(subBuilder.BuildPartial()); |
| 9743 | break; |
| 9744 | } |
| 9745 | } |
| 9746 | } |
| 9747 | } |
| 9748 | |
| 9749 | |
| 9750 | public scg::IList<int> NestedmessageRepeatedInt32List { |
| 9751 | get { return result.nestedmessageRepeatedInt32_; } |
| 9752 | } |
| 9753 | public int NestedmessageRepeatedInt32Count { |
| 9754 | get { return result.NestedmessageRepeatedInt32Count; } |
| 9755 | } |
| 9756 | public int GetNestedmessageRepeatedInt32(int index) { |
| 9757 | return result.GetNestedmessageRepeatedInt32(index); |
| 9758 | } |
| 9759 | public Builder SetNestedmessageRepeatedInt32(int index, int value) { |
| 9760 | result.nestedmessageRepeatedInt32_[index] = value; |
| 9761 | return this; |
| 9762 | } |
| 9763 | public Builder AddNestedmessageRepeatedInt32(int value) { |
| 9764 | result.nestedmessageRepeatedInt32_.Add(value); |
| 9765 | return this; |
| 9766 | } |
| 9767 | public Builder AddRangeNestedmessageRepeatedInt32(scg::IEnumerable<int> values) { |
| 9768 | base.AddRange(values, result.nestedmessageRepeatedInt32_); |
| 9769 | return this; |
| 9770 | } |
| 9771 | public Builder ClearNestedmessageRepeatedInt32() { |
| 9772 | result.nestedmessageRepeatedInt32_.Clear(); |
| 9773 | return this; |
| 9774 | } |
| 9775 | |
| 9776 | public scg::IList<global::Google.ProtocolBuffers.TestProtos.ForeignMessage> NestedmessageRepeatedForeignmessageList { |
| 9777 | get { return result.nestedmessageRepeatedForeignmessage_; } |
| 9778 | } |
| 9779 | public int NestedmessageRepeatedForeignmessageCount { |
| 9780 | get { return result.NestedmessageRepeatedForeignmessageCount; } |
| 9781 | } |
| 9782 | public global::Google.ProtocolBuffers.TestProtos.ForeignMessage GetNestedmessageRepeatedForeignmessage(int index) { |
| 9783 | return result.GetNestedmessageRepeatedForeignmessage(index); |
| 9784 | } |
| 9785 | public Builder SetNestedmessageRepeatedForeignmessage(int index, global::Google.ProtocolBuffers.TestProtos.ForeignMessage value) { |
Jon Skeet | 642a814 | 2009-01-27 12:25:21 +0000 | [diff] [blame] | 9786 | pb::ThrowHelper.ThrowIfNull(value, "value"); |
Jon Skeet | 6803686 | 2008-10-22 13:30:34 +0100 | [diff] [blame] | 9787 | result.nestedmessageRepeatedForeignmessage_[index] = value; |
| 9788 | return this; |
| 9789 | } |
| 9790 | public Builder SetNestedmessageRepeatedForeignmessage(int index, global::Google.ProtocolBuffers.TestProtos.ForeignMessage.Builder builderForValue) { |
Jon Skeet | 642a814 | 2009-01-27 12:25:21 +0000 | [diff] [blame] | 9791 | pb::ThrowHelper.ThrowIfNull(builderForValue, "builderForValue"); |
Jon Skeet | 6803686 | 2008-10-22 13:30:34 +0100 | [diff] [blame] | 9792 | result.nestedmessageRepeatedForeignmessage_[index] = builderForValue.Build(); |
| 9793 | return this; |
| 9794 | } |
| 9795 | public Builder AddNestedmessageRepeatedForeignmessage(global::Google.ProtocolBuffers.TestProtos.ForeignMessage value) { |
Jon Skeet | 642a814 | 2009-01-27 12:25:21 +0000 | [diff] [blame] | 9796 | pb::ThrowHelper.ThrowIfNull(value, "value"); |
Jon Skeet | 6803686 | 2008-10-22 13:30:34 +0100 | [diff] [blame] | 9797 | result.nestedmessageRepeatedForeignmessage_.Add(value); |
| 9798 | return this; |
| 9799 | } |
| 9800 | public Builder AddNestedmessageRepeatedForeignmessage(global::Google.ProtocolBuffers.TestProtos.ForeignMessage.Builder builderForValue) { |
Jon Skeet | 642a814 | 2009-01-27 12:25:21 +0000 | [diff] [blame] | 9801 | pb::ThrowHelper.ThrowIfNull(builderForValue, "builderForValue"); |
Jon Skeet | 6803686 | 2008-10-22 13:30:34 +0100 | [diff] [blame] | 9802 | result.nestedmessageRepeatedForeignmessage_.Add(builderForValue.Build()); |
| 9803 | return this; |
| 9804 | } |
| 9805 | public Builder AddRangeNestedmessageRepeatedForeignmessage(scg::IEnumerable<global::Google.ProtocolBuffers.TestProtos.ForeignMessage> values) { |
| 9806 | base.AddRange(values, result.nestedmessageRepeatedForeignmessage_); |
| 9807 | return this; |
| 9808 | } |
| 9809 | public Builder ClearNestedmessageRepeatedForeignmessage() { |
| 9810 | result.nestedmessageRepeatedForeignmessage_.Clear(); |
| 9811 | return this; |
| 9812 | } |
| 9813 | } |
| 9814 | } |
| 9815 | |
| 9816 | } |
| 9817 | #endregion |
| 9818 | |
| 9819 | private bool hasOptionalNestedMessage; |
| 9820 | private global::Google.ProtocolBuffers.TestProtos.TestNestedMessageHasBits.Types.NestedMessage optionalNestedMessage_ = global::Google.ProtocolBuffers.TestProtos.TestNestedMessageHasBits.Types.NestedMessage.DefaultInstance; |
| 9821 | public bool HasOptionalNestedMessage { |
| 9822 | get { return hasOptionalNestedMessage; } |
| 9823 | } |
| 9824 | public global::Google.ProtocolBuffers.TestProtos.TestNestedMessageHasBits.Types.NestedMessage OptionalNestedMessage { |
| 9825 | get { return optionalNestedMessage_; } |
| 9826 | } |
| 9827 | |
| 9828 | public override bool IsInitialized { |
| 9829 | get { |
| 9830 | return true; |
| 9831 | } |
| 9832 | } |
| 9833 | |
| 9834 | public override void WriteTo(pb::CodedOutputStream output) { |
| 9835 | if (HasOptionalNestedMessage) { |
| 9836 | output.WriteMessage(1, OptionalNestedMessage); |
| 9837 | } |
| 9838 | UnknownFields.WriteTo(output); |
| 9839 | } |
| 9840 | |
| 9841 | private int memoizedSerializedSize = -1; |
| 9842 | public override int SerializedSize { |
| 9843 | get { |
| 9844 | int size = memoizedSerializedSize; |
| 9845 | if (size != -1) return size; |
| 9846 | |
| 9847 | size = 0; |
| 9848 | if (HasOptionalNestedMessage) { |
| 9849 | size += pb::CodedOutputStream.ComputeMessageSize(1, OptionalNestedMessage); |
| 9850 | } |
| 9851 | size += UnknownFields.SerializedSize; |
| 9852 | memoizedSerializedSize = size; |
| 9853 | return size; |
| 9854 | } |
| 9855 | } |
| 9856 | |
| 9857 | public static TestNestedMessageHasBits ParseFrom(pb::ByteString data) { |
| 9858 | return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed(); |
| 9859 | } |
| 9860 | public static TestNestedMessageHasBits ParseFrom(pb::ByteString data, pb::ExtensionRegistry extensionRegistry) { |
| 9861 | return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed(); |
| 9862 | } |
| 9863 | public static TestNestedMessageHasBits ParseFrom(byte[] data) { |
| 9864 | return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed(); |
| 9865 | } |
| 9866 | public static TestNestedMessageHasBits ParseFrom(byte[] data, pb::ExtensionRegistry extensionRegistry) { |
| 9867 | return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed(); |
| 9868 | } |
| 9869 | public static TestNestedMessageHasBits ParseFrom(global::System.IO.Stream input) { |
| 9870 | return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed(); |
| 9871 | } |
| 9872 | public static TestNestedMessageHasBits ParseFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) { |
| 9873 | return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed(); |
| 9874 | } |
| 9875 | public static TestNestedMessageHasBits ParseFrom(pb::CodedInputStream input) { |
| 9876 | return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed(); |
| 9877 | } |
| 9878 | public static TestNestedMessageHasBits ParseFrom(pb::CodedInputStream input, pb::ExtensionRegistry extensionRegistry) { |
| 9879 | return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed(); |
| 9880 | } |
| 9881 | public static Builder CreateBuilder() { return new Builder(); } |
| 9882 | public override Builder CreateBuilderForType() { return new Builder(); } |
| 9883 | public static Builder CreateBuilder(TestNestedMessageHasBits prototype) { |
| 9884 | return (Builder) new Builder().MergeFrom(prototype); |
| 9885 | } |
| 9886 | |
| 9887 | public sealed partial class Builder : pb::GeneratedBuilder<TestNestedMessageHasBits, Builder> { |
| 9888 | protected override Builder ThisBuilder { |
| 9889 | get { return this; } |
| 9890 | } |
| 9891 | public Builder() {} |
| 9892 | |
| 9893 | TestNestedMessageHasBits result = new TestNestedMessageHasBits(); |
| 9894 | |
| 9895 | protected override TestNestedMessageHasBits MessageBeingBuilt { |
| 9896 | get { return result; } |
| 9897 | } |
| 9898 | |
| 9899 | public override Builder Clear() { |
| 9900 | result = new TestNestedMessageHasBits(); |
| 9901 | return this; |
| 9902 | } |
| 9903 | |
| 9904 | public override Builder Clone() { |
| 9905 | return new Builder().MergeFrom(result); |
| 9906 | } |
| 9907 | |
| 9908 | public override pbd::MessageDescriptor DescriptorForType { |
| 9909 | get { return TestNestedMessageHasBits.Descriptor; } |
| 9910 | } |
| 9911 | |
| 9912 | public override TestNestedMessageHasBits DefaultInstanceForType { |
| 9913 | get { return TestNestedMessageHasBits.DefaultInstance; } |
| 9914 | } |
| 9915 | |
| 9916 | public override TestNestedMessageHasBits BuildPartial() { |
| 9917 | TestNestedMessageHasBits returnMe = result; |
| 9918 | result = null; |
| 9919 | return returnMe; |
| 9920 | } |
| 9921 | |
| 9922 | public override Builder MergeFrom(pb::IMessage other) { |
| 9923 | if (other is TestNestedMessageHasBits) { |
| 9924 | return MergeFrom((TestNestedMessageHasBits) other); |
| 9925 | } else { |
| 9926 | base.MergeFrom(other); |
| 9927 | return this; |
| 9928 | } |
| 9929 | } |
| 9930 | |
| 9931 | public override Builder MergeFrom(TestNestedMessageHasBits other) { |
| 9932 | if (other == TestNestedMessageHasBits.DefaultInstance) return this; |
| 9933 | if (other.HasOptionalNestedMessage) { |
| 9934 | MergeOptionalNestedMessage(other.OptionalNestedMessage); |
| 9935 | } |
| 9936 | this.MergeUnknownFields(other.UnknownFields); |
| 9937 | return this; |
| 9938 | } |
| 9939 | |
| 9940 | public override Builder MergeFrom(pb::CodedInputStream input) { |
| 9941 | return MergeFrom(input, pb::ExtensionRegistry.Empty); |
| 9942 | } |
| 9943 | |
| 9944 | public override Builder MergeFrom(pb::CodedInputStream input, pb::ExtensionRegistry extensionRegistry) { |
| 9945 | pb::UnknownFieldSet.Builder unknownFields = pb::UnknownFieldSet.CreateBuilder(this.UnknownFields); |
| 9946 | while (true) { |
| 9947 | uint tag = input.ReadTag(); |
| 9948 | switch (tag) { |
| 9949 | case 0: { |
| 9950 | this.UnknownFields = unknownFields.Build(); |
| 9951 | return this; |
| 9952 | } |
| 9953 | default: { |
| 9954 | if (!ParseUnknownField(input, unknownFields, extensionRegistry, tag)) { |
| 9955 | this.UnknownFields = unknownFields.Build(); |
| 9956 | return this; |
| 9957 | } |
| 9958 | break; |
| 9959 | } |
| 9960 | case 10: { |
| 9961 | global::Google.ProtocolBuffers.TestProtos.TestNestedMessageHasBits.Types.NestedMessage.Builder subBuilder = global::Google.ProtocolBuffers.TestProtos.TestNestedMessageHasBits.Types.NestedMessage.CreateBuilder(); |
| 9962 | if (HasOptionalNestedMessage) { |
| 9963 | subBuilder.MergeFrom(OptionalNestedMessage); |
| 9964 | } |
| 9965 | input.ReadMessage(subBuilder, extensionRegistry); |
| 9966 | OptionalNestedMessage = subBuilder.BuildPartial(); |
| 9967 | break; |
| 9968 | } |
| 9969 | } |
| 9970 | } |
| 9971 | } |
| 9972 | |
| 9973 | |
| 9974 | public bool HasOptionalNestedMessage { |
| 9975 | get { return result.HasOptionalNestedMessage; } |
| 9976 | } |
| 9977 | public global::Google.ProtocolBuffers.TestProtos.TestNestedMessageHasBits.Types.NestedMessage OptionalNestedMessage { |
| 9978 | get { return result.OptionalNestedMessage; } |
| 9979 | set { SetOptionalNestedMessage(value); } |
| 9980 | } |
| 9981 | public Builder SetOptionalNestedMessage(global::Google.ProtocolBuffers.TestProtos.TestNestedMessageHasBits.Types.NestedMessage value) { |
Jon Skeet | 642a814 | 2009-01-27 12:25:21 +0000 | [diff] [blame] | 9982 | pb::ThrowHelper.ThrowIfNull(value, "value"); |
Jon Skeet | 6803686 | 2008-10-22 13:30:34 +0100 | [diff] [blame] | 9983 | result.hasOptionalNestedMessage = true; |
| 9984 | result.optionalNestedMessage_ = value; |
| 9985 | return this; |
| 9986 | } |
| 9987 | public Builder SetOptionalNestedMessage(global::Google.ProtocolBuffers.TestProtos.TestNestedMessageHasBits.Types.NestedMessage.Builder builderForValue) { |
Jon Skeet | 642a814 | 2009-01-27 12:25:21 +0000 | [diff] [blame] | 9988 | pb::ThrowHelper.ThrowIfNull(builderForValue, "builderForValue"); |
Jon Skeet | 6803686 | 2008-10-22 13:30:34 +0100 | [diff] [blame] | 9989 | result.hasOptionalNestedMessage = true; |
| 9990 | result.optionalNestedMessage_ = builderForValue.Build(); |
| 9991 | return this; |
| 9992 | } |
| 9993 | public Builder MergeOptionalNestedMessage(global::Google.ProtocolBuffers.TestProtos.TestNestedMessageHasBits.Types.NestedMessage value) { |
Jon Skeet | 642a814 | 2009-01-27 12:25:21 +0000 | [diff] [blame] | 9994 | pb::ThrowHelper.ThrowIfNull(value, "value"); |
Jon Skeet | 6803686 | 2008-10-22 13:30:34 +0100 | [diff] [blame] | 9995 | if (result.HasOptionalNestedMessage && |
| 9996 | result.optionalNestedMessage_ != global::Google.ProtocolBuffers.TestProtos.TestNestedMessageHasBits.Types.NestedMessage.DefaultInstance) { |
| 9997 | result.optionalNestedMessage_ = global::Google.ProtocolBuffers.TestProtos.TestNestedMessageHasBits.Types.NestedMessage.CreateBuilder(result.optionalNestedMessage_).MergeFrom(value).BuildPartial(); |
| 9998 | } else { |
| 9999 | result.optionalNestedMessage_ = value; |
| 10000 | } |
| 10001 | result.hasOptionalNestedMessage = true; |
| 10002 | return this; |
| 10003 | } |
| 10004 | public Builder ClearOptionalNestedMessage() { |
| 10005 | result.hasOptionalNestedMessage = false; |
| 10006 | result.optionalNestedMessage_ = global::Google.ProtocolBuffers.TestProtos.TestNestedMessageHasBits.Types.NestedMessage.DefaultInstance; |
| 10007 | return this; |
| 10008 | } |
| 10009 | } |
| 10010 | } |
| 10011 | |
| 10012 | public sealed partial class TestCamelCaseFieldNames : pb::GeneratedMessage<TestCamelCaseFieldNames, TestCamelCaseFieldNames.Builder> { |
| 10013 | private static readonly TestCamelCaseFieldNames defaultInstance = new Builder().BuildPartial(); |
| 10014 | public static TestCamelCaseFieldNames DefaultInstance { |
| 10015 | get { return defaultInstance; } |
| 10016 | } |
| 10017 | |
| 10018 | public override TestCamelCaseFieldNames DefaultInstanceForType { |
| 10019 | get { return defaultInstance; } |
| 10020 | } |
| 10021 | |
| 10022 | protected override TestCamelCaseFieldNames ThisMessage { |
| 10023 | get { return this; } |
| 10024 | } |
| 10025 | |
| 10026 | public static pbd::MessageDescriptor Descriptor { |
| 10027 | get { return global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.internal__static_protobuf_unittest_TestCamelCaseFieldNames__Descriptor; } |
| 10028 | } |
| 10029 | |
| 10030 | protected override pb::FieldAccess.FieldAccessorTable<TestCamelCaseFieldNames, TestCamelCaseFieldNames.Builder> InternalFieldAccessors { |
| 10031 | get { return global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.internal__static_protobuf_unittest_TestCamelCaseFieldNames__FieldAccessorTable; } |
| 10032 | } |
| 10033 | |
| 10034 | private bool hasPrimitiveField; |
| 10035 | private int primitiveField_ = 0; |
| 10036 | public bool HasPrimitiveField { |
| 10037 | get { return hasPrimitiveField; } |
| 10038 | } |
| 10039 | public int PrimitiveField { |
| 10040 | get { return primitiveField_; } |
| 10041 | } |
| 10042 | |
| 10043 | private bool hasStringField; |
| 10044 | private string stringField_ = ""; |
| 10045 | public bool HasStringField { |
| 10046 | get { return hasStringField; } |
| 10047 | } |
| 10048 | public string StringField { |
| 10049 | get { return stringField_; } |
| 10050 | } |
| 10051 | |
| 10052 | private bool hasEnumField; |
| 10053 | private global::Google.ProtocolBuffers.TestProtos.ForeignEnum enumField_ = global::Google.ProtocolBuffers.TestProtos.ForeignEnum.FOREIGN_FOO; |
| 10054 | public bool HasEnumField { |
| 10055 | get { return hasEnumField; } |
| 10056 | } |
| 10057 | public global::Google.ProtocolBuffers.TestProtos.ForeignEnum EnumField { |
| 10058 | get { return enumField_; } |
| 10059 | } |
| 10060 | |
| 10061 | private bool hasMessageField; |
| 10062 | private global::Google.ProtocolBuffers.TestProtos.ForeignMessage messageField_ = global::Google.ProtocolBuffers.TestProtos.ForeignMessage.DefaultInstance; |
| 10063 | public bool HasMessageField { |
| 10064 | get { return hasMessageField; } |
| 10065 | } |
| 10066 | public global::Google.ProtocolBuffers.TestProtos.ForeignMessage MessageField { |
| 10067 | get { return messageField_; } |
| 10068 | } |
| 10069 | |
| 10070 | private bool hasStringPieceField; |
| 10071 | private string stringPieceField_ = ""; |
| 10072 | public bool HasStringPieceField { |
| 10073 | get { return hasStringPieceField; } |
| 10074 | } |
| 10075 | public string StringPieceField { |
| 10076 | get { return stringPieceField_; } |
| 10077 | } |
| 10078 | |
| 10079 | private bool hasCordField; |
| 10080 | private string cordField_ = ""; |
| 10081 | public bool HasCordField { |
| 10082 | get { return hasCordField; } |
| 10083 | } |
| 10084 | public string CordField { |
| 10085 | get { return cordField_; } |
| 10086 | } |
| 10087 | |
| 10088 | private pbc::PopsicleList<int> repeatedPrimitiveField_ = new pbc::PopsicleList<int>(); |
| 10089 | public scg::IList<int> RepeatedPrimitiveFieldList { |
| 10090 | get { return pbc::Lists.AsReadOnly(repeatedPrimitiveField_); } |
| 10091 | } |
| 10092 | public int RepeatedPrimitiveFieldCount { |
| 10093 | get { return repeatedPrimitiveField_.Count; } |
| 10094 | } |
| 10095 | public int GetRepeatedPrimitiveField(int index) { |
| 10096 | return repeatedPrimitiveField_[index]; |
| 10097 | } |
| 10098 | |
| 10099 | private pbc::PopsicleList<string> repeatedStringField_ = new pbc::PopsicleList<string>(); |
| 10100 | public scg::IList<string> RepeatedStringFieldList { |
| 10101 | get { return pbc::Lists.AsReadOnly(repeatedStringField_); } |
| 10102 | } |
| 10103 | public int RepeatedStringFieldCount { |
| 10104 | get { return repeatedStringField_.Count; } |
| 10105 | } |
| 10106 | public string GetRepeatedStringField(int index) { |
| 10107 | return repeatedStringField_[index]; |
| 10108 | } |
| 10109 | |
| 10110 | private pbc::PopsicleList<global::Google.ProtocolBuffers.TestProtos.ForeignEnum> repeatedEnumField_ = new pbc::PopsicleList<global::Google.ProtocolBuffers.TestProtos.ForeignEnum>(); |
| 10111 | public scg::IList<global::Google.ProtocolBuffers.TestProtos.ForeignEnum> RepeatedEnumFieldList { |
| 10112 | get { return pbc::Lists.AsReadOnly(repeatedEnumField_); } |
| 10113 | } |
| 10114 | public int RepeatedEnumFieldCount { |
| 10115 | get { return repeatedEnumField_.Count; } |
| 10116 | } |
| 10117 | public global::Google.ProtocolBuffers.TestProtos.ForeignEnum GetRepeatedEnumField(int index) { |
| 10118 | return repeatedEnumField_[index]; |
| 10119 | } |
| 10120 | |
| 10121 | private pbc::PopsicleList<global::Google.ProtocolBuffers.TestProtos.ForeignMessage> repeatedMessageField_ = new pbc::PopsicleList<global::Google.ProtocolBuffers.TestProtos.ForeignMessage>(); |
| 10122 | public scg::IList<global::Google.ProtocolBuffers.TestProtos.ForeignMessage> RepeatedMessageFieldList { |
| 10123 | get { return repeatedMessageField_; } |
| 10124 | } |
| 10125 | public int RepeatedMessageFieldCount { |
| 10126 | get { return repeatedMessageField_.Count; } |
| 10127 | } |
| 10128 | public global::Google.ProtocolBuffers.TestProtos.ForeignMessage GetRepeatedMessageField(int index) { |
| 10129 | return repeatedMessageField_[index]; |
| 10130 | } |
| 10131 | |
| 10132 | private pbc::PopsicleList<string> repeatedStringPieceField_ = new pbc::PopsicleList<string>(); |
| 10133 | public scg::IList<string> RepeatedStringPieceFieldList { |
| 10134 | get { return pbc::Lists.AsReadOnly(repeatedStringPieceField_); } |
| 10135 | } |
| 10136 | public int RepeatedStringPieceFieldCount { |
| 10137 | get { return repeatedStringPieceField_.Count; } |
| 10138 | } |
| 10139 | public string GetRepeatedStringPieceField(int index) { |
| 10140 | return repeatedStringPieceField_[index]; |
| 10141 | } |
| 10142 | |
| 10143 | private pbc::PopsicleList<string> repeatedCordField_ = new pbc::PopsicleList<string>(); |
| 10144 | public scg::IList<string> RepeatedCordFieldList { |
| 10145 | get { return pbc::Lists.AsReadOnly(repeatedCordField_); } |
| 10146 | } |
| 10147 | public int RepeatedCordFieldCount { |
| 10148 | get { return repeatedCordField_.Count; } |
| 10149 | } |
| 10150 | public string GetRepeatedCordField(int index) { |
| 10151 | return repeatedCordField_[index]; |
| 10152 | } |
| 10153 | |
| 10154 | public override bool IsInitialized { |
| 10155 | get { |
| 10156 | return true; |
| 10157 | } |
| 10158 | } |
| 10159 | |
| 10160 | public override void WriteTo(pb::CodedOutputStream output) { |
| 10161 | if (HasPrimitiveField) { |
| 10162 | output.WriteInt32(1, PrimitiveField); |
| 10163 | } |
| 10164 | if (HasStringField) { |
| 10165 | output.WriteString(2, StringField); |
| 10166 | } |
| 10167 | if (HasEnumField) { |
| 10168 | output.WriteEnum(3, (int) EnumField); |
| 10169 | } |
| 10170 | if (HasMessageField) { |
| 10171 | output.WriteMessage(4, MessageField); |
| 10172 | } |
| 10173 | if (HasStringPieceField) { |
| 10174 | output.WriteString(5, StringPieceField); |
| 10175 | } |
| 10176 | if (HasCordField) { |
| 10177 | output.WriteString(6, CordField); |
| 10178 | } |
Jon Skeet | 25a2858 | 2009-02-18 16:06:22 +0000 | [diff] [blame^] | 10179 | if (repeatedPrimitiveField_.Count > 0) { |
| 10180 | foreach (int element in repeatedPrimitiveField_) { |
| 10181 | output.WriteInt32(7, element); |
| 10182 | } |
Jon Skeet | 6803686 | 2008-10-22 13:30:34 +0100 | [diff] [blame] | 10183 | } |
Jon Skeet | 25a2858 | 2009-02-18 16:06:22 +0000 | [diff] [blame^] | 10184 | if (repeatedStringField_.Count > 0) { |
| 10185 | foreach (string element in repeatedStringField_) { |
| 10186 | output.WriteString(8, element); |
| 10187 | } |
Jon Skeet | 6803686 | 2008-10-22 13:30:34 +0100 | [diff] [blame] | 10188 | } |
Jon Skeet | 25a2858 | 2009-02-18 16:06:22 +0000 | [diff] [blame^] | 10189 | if (repeatedEnumField_.Count > 0) { |
| 10190 | foreach (int element in repeatedEnumField_) { |
| 10191 | output.WriteEnum(9, element); |
| 10192 | } |
Jon Skeet | 6803686 | 2008-10-22 13:30:34 +0100 | [diff] [blame] | 10193 | } |
| 10194 | foreach (global::Google.ProtocolBuffers.TestProtos.ForeignMessage element in RepeatedMessageFieldList) { |
| 10195 | output.WriteMessage(10, element); |
| 10196 | } |
Jon Skeet | 25a2858 | 2009-02-18 16:06:22 +0000 | [diff] [blame^] | 10197 | if (repeatedStringPieceField_.Count > 0) { |
| 10198 | foreach (string element in repeatedStringPieceField_) { |
| 10199 | output.WriteString(11, element); |
| 10200 | } |
Jon Skeet | 6803686 | 2008-10-22 13:30:34 +0100 | [diff] [blame] | 10201 | } |
Jon Skeet | 25a2858 | 2009-02-18 16:06:22 +0000 | [diff] [blame^] | 10202 | if (repeatedCordField_.Count > 0) { |
| 10203 | foreach (string element in repeatedCordField_) { |
| 10204 | output.WriteString(12, element); |
| 10205 | } |
Jon Skeet | 6803686 | 2008-10-22 13:30:34 +0100 | [diff] [blame] | 10206 | } |
| 10207 | UnknownFields.WriteTo(output); |
| 10208 | } |
| 10209 | |
| 10210 | private int memoizedSerializedSize = -1; |
| 10211 | public override int SerializedSize { |
| 10212 | get { |
| 10213 | int size = memoizedSerializedSize; |
| 10214 | if (size != -1) return size; |
| 10215 | |
| 10216 | size = 0; |
| 10217 | if (HasPrimitiveField) { |
| 10218 | size += pb::CodedOutputStream.ComputeInt32Size(1, PrimitiveField); |
| 10219 | } |
| 10220 | if (HasStringField) { |
| 10221 | size += pb::CodedOutputStream.ComputeStringSize(2, StringField); |
| 10222 | } |
| 10223 | if (HasEnumField) { |
| 10224 | size += pb::CodedOutputStream.ComputeEnumSize(3, (int) EnumField); |
| 10225 | } |
| 10226 | if (HasMessageField) { |
| 10227 | size += pb::CodedOutputStream.ComputeMessageSize(4, MessageField); |
| 10228 | } |
| 10229 | if (HasStringPieceField) { |
| 10230 | size += pb::CodedOutputStream.ComputeStringSize(5, StringPieceField); |
| 10231 | } |
| 10232 | if (HasCordField) { |
| 10233 | size += pb::CodedOutputStream.ComputeStringSize(6, CordField); |
| 10234 | } |
Jon Skeet | 25a2858 | 2009-02-18 16:06:22 +0000 | [diff] [blame^] | 10235 | { |
| 10236 | int dataSize = 0; |
| 10237 | foreach (int element in RepeatedPrimitiveFieldList) { |
| 10238 | dataSize += pb::CodedOutputStream.ComputeInt32SizeNoTag(element); |
| 10239 | } |
| 10240 | size += dataSize; |
| 10241 | size += 1 * repeatedPrimitiveField_.Count; |
Jon Skeet | 6803686 | 2008-10-22 13:30:34 +0100 | [diff] [blame] | 10242 | } |
Jon Skeet | 25a2858 | 2009-02-18 16:06:22 +0000 | [diff] [blame^] | 10243 | { |
| 10244 | int dataSize = 0; |
| 10245 | foreach (string element in RepeatedStringFieldList) { |
| 10246 | dataSize += pb::CodedOutputStream.ComputeStringSizeNoTag(element); |
| 10247 | } |
| 10248 | size += dataSize; |
| 10249 | size += 1 * repeatedStringField_.Count; |
Jon Skeet | 6803686 | 2008-10-22 13:30:34 +0100 | [diff] [blame] | 10250 | } |
Jon Skeet | 25a2858 | 2009-02-18 16:06:22 +0000 | [diff] [blame^] | 10251 | { |
| 10252 | int dataSize = 0; |
| 10253 | if (repeatedEnumField_.Count > 0) { |
| 10254 | foreach (global::Google.ProtocolBuffers.TestProtos.ForeignEnum element in repeatedEnumField_) { |
| 10255 | dataSize += pb::CodedOutputStream.ComputeEnumSizeNoTag((int) element); |
| 10256 | } |
| 10257 | size += dataSize; |
| 10258 | size += 1 * repeatedEnumField_.Count; |
| 10259 | } |
Jon Skeet | 6803686 | 2008-10-22 13:30:34 +0100 | [diff] [blame] | 10260 | } |
| 10261 | foreach (global::Google.ProtocolBuffers.TestProtos.ForeignMessage element in RepeatedMessageFieldList) { |
| 10262 | size += pb::CodedOutputStream.ComputeMessageSize(10, element); |
| 10263 | } |
Jon Skeet | 25a2858 | 2009-02-18 16:06:22 +0000 | [diff] [blame^] | 10264 | { |
| 10265 | int dataSize = 0; |
| 10266 | foreach (string element in RepeatedStringPieceFieldList) { |
| 10267 | dataSize += pb::CodedOutputStream.ComputeStringSizeNoTag(element); |
| 10268 | } |
| 10269 | size += dataSize; |
| 10270 | size += 1 * repeatedStringPieceField_.Count; |
Jon Skeet | 6803686 | 2008-10-22 13:30:34 +0100 | [diff] [blame] | 10271 | } |
Jon Skeet | 25a2858 | 2009-02-18 16:06:22 +0000 | [diff] [blame^] | 10272 | { |
| 10273 | int dataSize = 0; |
| 10274 | foreach (string element in RepeatedCordFieldList) { |
| 10275 | dataSize += pb::CodedOutputStream.ComputeStringSizeNoTag(element); |
| 10276 | } |
| 10277 | size += dataSize; |
| 10278 | size += 1 * repeatedCordField_.Count; |
Jon Skeet | 6803686 | 2008-10-22 13:30:34 +0100 | [diff] [blame] | 10279 | } |
| 10280 | size += UnknownFields.SerializedSize; |
| 10281 | memoizedSerializedSize = size; |
| 10282 | return size; |
| 10283 | } |
| 10284 | } |
| 10285 | |
| 10286 | public static TestCamelCaseFieldNames ParseFrom(pb::ByteString data) { |
| 10287 | return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed(); |
| 10288 | } |
| 10289 | public static TestCamelCaseFieldNames ParseFrom(pb::ByteString data, pb::ExtensionRegistry extensionRegistry) { |
| 10290 | return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed(); |
| 10291 | } |
| 10292 | public static TestCamelCaseFieldNames ParseFrom(byte[] data) { |
| 10293 | return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed(); |
| 10294 | } |
| 10295 | public static TestCamelCaseFieldNames ParseFrom(byte[] data, pb::ExtensionRegistry extensionRegistry) { |
| 10296 | return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed(); |
| 10297 | } |
| 10298 | public static TestCamelCaseFieldNames ParseFrom(global::System.IO.Stream input) { |
| 10299 | return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed(); |
| 10300 | } |
| 10301 | public static TestCamelCaseFieldNames ParseFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) { |
| 10302 | return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed(); |
| 10303 | } |
| 10304 | public static TestCamelCaseFieldNames ParseFrom(pb::CodedInputStream input) { |
| 10305 | return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed(); |
| 10306 | } |
| 10307 | public static TestCamelCaseFieldNames ParseFrom(pb::CodedInputStream input, pb::ExtensionRegistry extensionRegistry) { |
| 10308 | return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed(); |
| 10309 | } |
| 10310 | public static Builder CreateBuilder() { return new Builder(); } |
| 10311 | public override Builder CreateBuilderForType() { return new Builder(); } |
| 10312 | public static Builder CreateBuilder(TestCamelCaseFieldNames prototype) { |
| 10313 | return (Builder) new Builder().MergeFrom(prototype); |
| 10314 | } |
| 10315 | |
| 10316 | public sealed partial class Builder : pb::GeneratedBuilder<TestCamelCaseFieldNames, Builder> { |
| 10317 | protected override Builder ThisBuilder { |
| 10318 | get { return this; } |
| 10319 | } |
| 10320 | public Builder() {} |
| 10321 | |
| 10322 | TestCamelCaseFieldNames result = new TestCamelCaseFieldNames(); |
| 10323 | |
| 10324 | protected override TestCamelCaseFieldNames MessageBeingBuilt { |
| 10325 | get { return result; } |
| 10326 | } |
| 10327 | |
| 10328 | public override Builder Clear() { |
| 10329 | result = new TestCamelCaseFieldNames(); |
| 10330 | return this; |
| 10331 | } |
| 10332 | |
| 10333 | public override Builder Clone() { |
| 10334 | return new Builder().MergeFrom(result); |
| 10335 | } |
| 10336 | |
| 10337 | public override pbd::MessageDescriptor DescriptorForType { |
| 10338 | get { return TestCamelCaseFieldNames.Descriptor; } |
| 10339 | } |
| 10340 | |
| 10341 | public override TestCamelCaseFieldNames DefaultInstanceForType { |
| 10342 | get { return TestCamelCaseFieldNames.DefaultInstance; } |
| 10343 | } |
| 10344 | |
| 10345 | public override TestCamelCaseFieldNames BuildPartial() { |
| 10346 | result.repeatedPrimitiveField_.MakeReadOnly(); |
| 10347 | result.repeatedStringField_.MakeReadOnly(); |
| 10348 | result.repeatedEnumField_.MakeReadOnly(); |
| 10349 | result.repeatedMessageField_.MakeReadOnly(); |
| 10350 | result.repeatedStringPieceField_.MakeReadOnly(); |
| 10351 | result.repeatedCordField_.MakeReadOnly(); |
| 10352 | TestCamelCaseFieldNames returnMe = result; |
| 10353 | result = null; |
| 10354 | return returnMe; |
| 10355 | } |
| 10356 | |
| 10357 | public override Builder MergeFrom(pb::IMessage other) { |
| 10358 | if (other is TestCamelCaseFieldNames) { |
| 10359 | return MergeFrom((TestCamelCaseFieldNames) other); |
| 10360 | } else { |
| 10361 | base.MergeFrom(other); |
| 10362 | return this; |
| 10363 | } |
| 10364 | } |
| 10365 | |
| 10366 | public override Builder MergeFrom(TestCamelCaseFieldNames other) { |
| 10367 | if (other == TestCamelCaseFieldNames.DefaultInstance) return this; |
| 10368 | if (other.HasPrimitiveField) { |
| 10369 | PrimitiveField = other.PrimitiveField; |
| 10370 | } |
| 10371 | if (other.HasStringField) { |
| 10372 | StringField = other.StringField; |
| 10373 | } |
| 10374 | if (other.HasEnumField) { |
| 10375 | EnumField = other.EnumField; |
| 10376 | } |
| 10377 | if (other.HasMessageField) { |
| 10378 | MergeMessageField(other.MessageField); |
| 10379 | } |
| 10380 | if (other.HasStringPieceField) { |
| 10381 | StringPieceField = other.StringPieceField; |
| 10382 | } |
| 10383 | if (other.HasCordField) { |
| 10384 | CordField = other.CordField; |
| 10385 | } |
| 10386 | if (other.repeatedPrimitiveField_.Count != 0) { |
| 10387 | base.AddRange(other.repeatedPrimitiveField_, result.repeatedPrimitiveField_); |
| 10388 | } |
| 10389 | if (other.repeatedStringField_.Count != 0) { |
| 10390 | base.AddRange(other.repeatedStringField_, result.repeatedStringField_); |
| 10391 | } |
| 10392 | if (other.repeatedEnumField_.Count != 0) { |
| 10393 | base.AddRange(other.repeatedEnumField_, result.repeatedEnumField_); |
| 10394 | } |
| 10395 | if (other.repeatedMessageField_.Count != 0) { |
| 10396 | base.AddRange(other.repeatedMessageField_, result.repeatedMessageField_); |
| 10397 | } |
| 10398 | if (other.repeatedStringPieceField_.Count != 0) { |
| 10399 | base.AddRange(other.repeatedStringPieceField_, result.repeatedStringPieceField_); |
| 10400 | } |
| 10401 | if (other.repeatedCordField_.Count != 0) { |
| 10402 | base.AddRange(other.repeatedCordField_, result.repeatedCordField_); |
| 10403 | } |
| 10404 | this.MergeUnknownFields(other.UnknownFields); |
| 10405 | return this; |
| 10406 | } |
| 10407 | |
| 10408 | public override Builder MergeFrom(pb::CodedInputStream input) { |
| 10409 | return MergeFrom(input, pb::ExtensionRegistry.Empty); |
| 10410 | } |
| 10411 | |
| 10412 | public override Builder MergeFrom(pb::CodedInputStream input, pb::ExtensionRegistry extensionRegistry) { |
| 10413 | pb::UnknownFieldSet.Builder unknownFields = pb::UnknownFieldSet.CreateBuilder(this.UnknownFields); |
| 10414 | while (true) { |
| 10415 | uint tag = input.ReadTag(); |
| 10416 | switch (tag) { |
| 10417 | case 0: { |
| 10418 | this.UnknownFields = unknownFields.Build(); |
| 10419 | return this; |
| 10420 | } |
| 10421 | default: { |
| 10422 | if (!ParseUnknownField(input, unknownFields, extensionRegistry, tag)) { |
| 10423 | this.UnknownFields = unknownFields.Build(); |
| 10424 | return this; |
| 10425 | } |
| 10426 | break; |
| 10427 | } |
| 10428 | case 8: { |
| 10429 | PrimitiveField = input.ReadInt32(); |
| 10430 | break; |
| 10431 | } |
| 10432 | case 18: { |
| 10433 | StringField = input.ReadString(); |
| 10434 | break; |
| 10435 | } |
| 10436 | case 24: { |
| 10437 | int rawValue = input.ReadEnum(); |
| 10438 | if (!global::System.Enum.IsDefined(typeof(global::Google.ProtocolBuffers.TestProtos.ForeignEnum), rawValue)) { |
| 10439 | unknownFields.MergeVarintField(3, (ulong) rawValue); |
| 10440 | } else { |
| 10441 | EnumField = (global::Google.ProtocolBuffers.TestProtos.ForeignEnum) rawValue; |
| 10442 | } |
| 10443 | break; |
| 10444 | } |
| 10445 | case 34: { |
| 10446 | global::Google.ProtocolBuffers.TestProtos.ForeignMessage.Builder subBuilder = global::Google.ProtocolBuffers.TestProtos.ForeignMessage.CreateBuilder(); |
| 10447 | if (HasMessageField) { |
| 10448 | subBuilder.MergeFrom(MessageField); |
| 10449 | } |
| 10450 | input.ReadMessage(subBuilder, extensionRegistry); |
| 10451 | MessageField = subBuilder.BuildPartial(); |
| 10452 | break; |
| 10453 | } |
| 10454 | case 42: { |
| 10455 | StringPieceField = input.ReadString(); |
| 10456 | break; |
| 10457 | } |
| 10458 | case 50: { |
| 10459 | CordField = input.ReadString(); |
| 10460 | break; |
| 10461 | } |
| 10462 | case 56: { |
| 10463 | AddRepeatedPrimitiveField(input.ReadInt32()); |
| 10464 | break; |
| 10465 | } |
| 10466 | case 66: { |
| 10467 | AddRepeatedStringField(input.ReadString()); |
| 10468 | break; |
| 10469 | } |
| 10470 | case 72: { |
| 10471 | int rawValue = input.ReadEnum(); |
| 10472 | if (!global::System.Enum.IsDefined(typeof(global::Google.ProtocolBuffers.TestProtos.ForeignEnum), rawValue)) { |
| 10473 | unknownFields.MergeVarintField(9, (ulong) rawValue); |
| 10474 | } else { |
| 10475 | AddRepeatedEnumField((global::Google.ProtocolBuffers.TestProtos.ForeignEnum) rawValue); |
| 10476 | } |
| 10477 | break; |
| 10478 | } |
| 10479 | case 82: { |
| 10480 | global::Google.ProtocolBuffers.TestProtos.ForeignMessage.Builder subBuilder = global::Google.ProtocolBuffers.TestProtos.ForeignMessage.CreateBuilder(); |
| 10481 | input.ReadMessage(subBuilder, extensionRegistry); |
| 10482 | AddRepeatedMessageField(subBuilder.BuildPartial()); |
| 10483 | break; |
| 10484 | } |
| 10485 | case 90: { |
| 10486 | AddRepeatedStringPieceField(input.ReadString()); |
| 10487 | break; |
| 10488 | } |
| 10489 | case 98: { |
| 10490 | AddRepeatedCordField(input.ReadString()); |
| 10491 | break; |
| 10492 | } |
| 10493 | } |
| 10494 | } |
| 10495 | } |
| 10496 | |
| 10497 | |
| 10498 | public bool HasPrimitiveField { |
| 10499 | get { return result.HasPrimitiveField; } |
| 10500 | } |
| 10501 | public int PrimitiveField { |
| 10502 | get { return result.PrimitiveField; } |
| 10503 | set { SetPrimitiveField(value); } |
| 10504 | } |
| 10505 | public Builder SetPrimitiveField(int value) { |
| 10506 | result.hasPrimitiveField = true; |
| 10507 | result.primitiveField_ = value; |
| 10508 | return this; |
| 10509 | } |
| 10510 | public Builder ClearPrimitiveField() { |
| 10511 | result.hasPrimitiveField = false; |
| 10512 | result.primitiveField_ = 0; |
| 10513 | return this; |
| 10514 | } |
| 10515 | |
| 10516 | public bool HasStringField { |
| 10517 | get { return result.HasStringField; } |
| 10518 | } |
| 10519 | public string StringField { |
| 10520 | get { return result.StringField; } |
| 10521 | set { SetStringField(value); } |
| 10522 | } |
| 10523 | public Builder SetStringField(string value) { |
Jon Skeet | 642a814 | 2009-01-27 12:25:21 +0000 | [diff] [blame] | 10524 | pb::ThrowHelper.ThrowIfNull(value, "value"); |
Jon Skeet | 6803686 | 2008-10-22 13:30:34 +0100 | [diff] [blame] | 10525 | result.hasStringField = true; |
| 10526 | result.stringField_ = value; |
| 10527 | return this; |
| 10528 | } |
| 10529 | public Builder ClearStringField() { |
| 10530 | result.hasStringField = false; |
| 10531 | result.stringField_ = ""; |
| 10532 | return this; |
| 10533 | } |
| 10534 | |
| 10535 | public bool HasEnumField { |
| 10536 | get { return result.HasEnumField; } |
| 10537 | } |
| 10538 | public global::Google.ProtocolBuffers.TestProtos.ForeignEnum EnumField { |
| 10539 | get { return result.EnumField; } |
| 10540 | set { SetEnumField(value); } |
| 10541 | } |
| 10542 | public Builder SetEnumField(global::Google.ProtocolBuffers.TestProtos.ForeignEnum value) { |
| 10543 | result.hasEnumField = true; |
| 10544 | result.enumField_ = value; |
| 10545 | return this; |
| 10546 | } |
| 10547 | public Builder ClearEnumField() { |
| 10548 | result.hasEnumField = false; |
| 10549 | result.enumField_ = global::Google.ProtocolBuffers.TestProtos.ForeignEnum.FOREIGN_FOO; |
| 10550 | return this; |
| 10551 | } |
| 10552 | |
| 10553 | public bool HasMessageField { |
| 10554 | get { return result.HasMessageField; } |
| 10555 | } |
| 10556 | public global::Google.ProtocolBuffers.TestProtos.ForeignMessage MessageField { |
| 10557 | get { return result.MessageField; } |
| 10558 | set { SetMessageField(value); } |
| 10559 | } |
| 10560 | public Builder SetMessageField(global::Google.ProtocolBuffers.TestProtos.ForeignMessage value) { |
Jon Skeet | 642a814 | 2009-01-27 12:25:21 +0000 | [diff] [blame] | 10561 | pb::ThrowHelper.ThrowIfNull(value, "value"); |
Jon Skeet | 6803686 | 2008-10-22 13:30:34 +0100 | [diff] [blame] | 10562 | result.hasMessageField = true; |
| 10563 | result.messageField_ = value; |
| 10564 | return this; |
| 10565 | } |
| 10566 | public Builder SetMessageField(global::Google.ProtocolBuffers.TestProtos.ForeignMessage.Builder builderForValue) { |
Jon Skeet | 642a814 | 2009-01-27 12:25:21 +0000 | [diff] [blame] | 10567 | pb::ThrowHelper.ThrowIfNull(builderForValue, "builderForValue"); |
Jon Skeet | 6803686 | 2008-10-22 13:30:34 +0100 | [diff] [blame] | 10568 | result.hasMessageField = true; |
| 10569 | result.messageField_ = builderForValue.Build(); |
| 10570 | return this; |
| 10571 | } |
| 10572 | public Builder MergeMessageField(global::Google.ProtocolBuffers.TestProtos.ForeignMessage value) { |
Jon Skeet | 642a814 | 2009-01-27 12:25:21 +0000 | [diff] [blame] | 10573 | pb::ThrowHelper.ThrowIfNull(value, "value"); |
Jon Skeet | 6803686 | 2008-10-22 13:30:34 +0100 | [diff] [blame] | 10574 | if (result.HasMessageField && |
| 10575 | result.messageField_ != global::Google.ProtocolBuffers.TestProtos.ForeignMessage.DefaultInstance) { |
| 10576 | result.messageField_ = global::Google.ProtocolBuffers.TestProtos.ForeignMessage.CreateBuilder(result.messageField_).MergeFrom(value).BuildPartial(); |
| 10577 | } else { |
| 10578 | result.messageField_ = value; |
| 10579 | } |
| 10580 | result.hasMessageField = true; |
| 10581 | return this; |
| 10582 | } |
| 10583 | public Builder ClearMessageField() { |
| 10584 | result.hasMessageField = false; |
| 10585 | result.messageField_ = global::Google.ProtocolBuffers.TestProtos.ForeignMessage.DefaultInstance; |
| 10586 | return this; |
| 10587 | } |
| 10588 | |
| 10589 | public bool HasStringPieceField { |
| 10590 | get { return result.HasStringPieceField; } |
| 10591 | } |
| 10592 | public string StringPieceField { |
| 10593 | get { return result.StringPieceField; } |
| 10594 | set { SetStringPieceField(value); } |
| 10595 | } |
| 10596 | public Builder SetStringPieceField(string value) { |
Jon Skeet | 642a814 | 2009-01-27 12:25:21 +0000 | [diff] [blame] | 10597 | pb::ThrowHelper.ThrowIfNull(value, "value"); |
Jon Skeet | 6803686 | 2008-10-22 13:30:34 +0100 | [diff] [blame] | 10598 | result.hasStringPieceField = true; |
| 10599 | result.stringPieceField_ = value; |
| 10600 | return this; |
| 10601 | } |
| 10602 | public Builder ClearStringPieceField() { |
| 10603 | result.hasStringPieceField = false; |
| 10604 | result.stringPieceField_ = ""; |
| 10605 | return this; |
| 10606 | } |
| 10607 | |
| 10608 | public bool HasCordField { |
| 10609 | get { return result.HasCordField; } |
| 10610 | } |
| 10611 | public string CordField { |
| 10612 | get { return result.CordField; } |
| 10613 | set { SetCordField(value); } |
| 10614 | } |
| 10615 | public Builder SetCordField(string value) { |
Jon Skeet | 642a814 | 2009-01-27 12:25:21 +0000 | [diff] [blame] | 10616 | pb::ThrowHelper.ThrowIfNull(value, "value"); |
Jon Skeet | 6803686 | 2008-10-22 13:30:34 +0100 | [diff] [blame] | 10617 | result.hasCordField = true; |
| 10618 | result.cordField_ = value; |
| 10619 | return this; |
| 10620 | } |
| 10621 | public Builder ClearCordField() { |
| 10622 | result.hasCordField = false; |
| 10623 | result.cordField_ = ""; |
| 10624 | return this; |
| 10625 | } |
| 10626 | |
| 10627 | public scg::IList<int> RepeatedPrimitiveFieldList { |
| 10628 | get { return result.repeatedPrimitiveField_; } |
| 10629 | } |
| 10630 | public int RepeatedPrimitiveFieldCount { |
| 10631 | get { return result.RepeatedPrimitiveFieldCount; } |
| 10632 | } |
| 10633 | public int GetRepeatedPrimitiveField(int index) { |
| 10634 | return result.GetRepeatedPrimitiveField(index); |
| 10635 | } |
| 10636 | public Builder SetRepeatedPrimitiveField(int index, int value) { |
| 10637 | result.repeatedPrimitiveField_[index] = value; |
| 10638 | return this; |
| 10639 | } |
| 10640 | public Builder AddRepeatedPrimitiveField(int value) { |
| 10641 | result.repeatedPrimitiveField_.Add(value); |
| 10642 | return this; |
| 10643 | } |
| 10644 | public Builder AddRangeRepeatedPrimitiveField(scg::IEnumerable<int> values) { |
| 10645 | base.AddRange(values, result.repeatedPrimitiveField_); |
| 10646 | return this; |
| 10647 | } |
| 10648 | public Builder ClearRepeatedPrimitiveField() { |
| 10649 | result.repeatedPrimitiveField_.Clear(); |
| 10650 | return this; |
| 10651 | } |
| 10652 | |
| 10653 | public scg::IList<string> RepeatedStringFieldList { |
| 10654 | get { return result.repeatedStringField_; } |
| 10655 | } |
| 10656 | public int RepeatedStringFieldCount { |
| 10657 | get { return result.RepeatedStringFieldCount; } |
| 10658 | } |
| 10659 | public string GetRepeatedStringField(int index) { |
| 10660 | return result.GetRepeatedStringField(index); |
| 10661 | } |
| 10662 | public Builder SetRepeatedStringField(int index, string value) { |
Jon Skeet | 642a814 | 2009-01-27 12:25:21 +0000 | [diff] [blame] | 10663 | pb::ThrowHelper.ThrowIfNull(value, "value"); |
Jon Skeet | 6803686 | 2008-10-22 13:30:34 +0100 | [diff] [blame] | 10664 | result.repeatedStringField_[index] = value; |
| 10665 | return this; |
| 10666 | } |
| 10667 | public Builder AddRepeatedStringField(string value) { |
Jon Skeet | 642a814 | 2009-01-27 12:25:21 +0000 | [diff] [blame] | 10668 | pb::ThrowHelper.ThrowIfNull(value, "value"); |
Jon Skeet | 6803686 | 2008-10-22 13:30:34 +0100 | [diff] [blame] | 10669 | result.repeatedStringField_.Add(value); |
| 10670 | return this; |
| 10671 | } |
| 10672 | public Builder AddRangeRepeatedStringField(scg::IEnumerable<string> values) { |
| 10673 | base.AddRange(values, result.repeatedStringField_); |
| 10674 | return this; |
| 10675 | } |
| 10676 | public Builder ClearRepeatedStringField() { |
| 10677 | result.repeatedStringField_.Clear(); |
| 10678 | return this; |
| 10679 | } |
| 10680 | |
| 10681 | public scg::IList<global::Google.ProtocolBuffers.TestProtos.ForeignEnum> RepeatedEnumFieldList { |
| 10682 | get { return result.repeatedEnumField_; } |
| 10683 | } |
| 10684 | public int RepeatedEnumFieldCount { |
| 10685 | get { return result.RepeatedEnumFieldCount; } |
| 10686 | } |
| 10687 | public global::Google.ProtocolBuffers.TestProtos.ForeignEnum GetRepeatedEnumField(int index) { |
| 10688 | return result.GetRepeatedEnumField(index); |
| 10689 | } |
| 10690 | public Builder SetRepeatedEnumField(int index, global::Google.ProtocolBuffers.TestProtos.ForeignEnum value) { |
| 10691 | result.repeatedEnumField_[index] = value; |
| 10692 | return this; |
| 10693 | } |
| 10694 | public Builder AddRepeatedEnumField(global::Google.ProtocolBuffers.TestProtos.ForeignEnum value) { |
| 10695 | result.repeatedEnumField_.Add(value); |
| 10696 | return this; |
| 10697 | } |
| 10698 | public Builder AddRangeRepeatedEnumField(scg::IEnumerable<global::Google.ProtocolBuffers.TestProtos.ForeignEnum> values) { |
| 10699 | base.AddRange(values, result.repeatedEnumField_); |
| 10700 | return this; |
| 10701 | } |
| 10702 | public Builder ClearRepeatedEnumField() { |
| 10703 | result.repeatedEnumField_.Clear(); |
| 10704 | return this; |
| 10705 | } |
| 10706 | |
| 10707 | public scg::IList<global::Google.ProtocolBuffers.TestProtos.ForeignMessage> RepeatedMessageFieldList { |
| 10708 | get { return result.repeatedMessageField_; } |
| 10709 | } |
| 10710 | public int RepeatedMessageFieldCount { |
| 10711 | get { return result.RepeatedMessageFieldCount; } |
| 10712 | } |
| 10713 | public global::Google.ProtocolBuffers.TestProtos.ForeignMessage GetRepeatedMessageField(int index) { |
| 10714 | return result.GetRepeatedMessageField(index); |
| 10715 | } |
| 10716 | public Builder SetRepeatedMessageField(int index, global::Google.ProtocolBuffers.TestProtos.ForeignMessage value) { |
Jon Skeet | 642a814 | 2009-01-27 12:25:21 +0000 | [diff] [blame] | 10717 | pb::ThrowHelper.ThrowIfNull(value, "value"); |
Jon Skeet | 6803686 | 2008-10-22 13:30:34 +0100 | [diff] [blame] | 10718 | result.repeatedMessageField_[index] = value; |
| 10719 | return this; |
| 10720 | } |
| 10721 | public Builder SetRepeatedMessageField(int index, global::Google.ProtocolBuffers.TestProtos.ForeignMessage.Builder builderForValue) { |
Jon Skeet | 642a814 | 2009-01-27 12:25:21 +0000 | [diff] [blame] | 10722 | pb::ThrowHelper.ThrowIfNull(builderForValue, "builderForValue"); |
Jon Skeet | 6803686 | 2008-10-22 13:30:34 +0100 | [diff] [blame] | 10723 | result.repeatedMessageField_[index] = builderForValue.Build(); |
| 10724 | return this; |
| 10725 | } |
| 10726 | public Builder AddRepeatedMessageField(global::Google.ProtocolBuffers.TestProtos.ForeignMessage value) { |
Jon Skeet | 642a814 | 2009-01-27 12:25:21 +0000 | [diff] [blame] | 10727 | pb::ThrowHelper.ThrowIfNull(value, "value"); |
Jon Skeet | 6803686 | 2008-10-22 13:30:34 +0100 | [diff] [blame] | 10728 | result.repeatedMessageField_.Add(value); |
| 10729 | return this; |
| 10730 | } |
| 10731 | public Builder AddRepeatedMessageField(global::Google.ProtocolBuffers.TestProtos.ForeignMessage.Builder builderForValue) { |
Jon Skeet | 642a814 | 2009-01-27 12:25:21 +0000 | [diff] [blame] | 10732 | pb::ThrowHelper.ThrowIfNull(builderForValue, "builderForValue"); |
Jon Skeet | 6803686 | 2008-10-22 13:30:34 +0100 | [diff] [blame] | 10733 | result.repeatedMessageField_.Add(builderForValue.Build()); |
| 10734 | return this; |
| 10735 | } |
| 10736 | public Builder AddRangeRepeatedMessageField(scg::IEnumerable<global::Google.ProtocolBuffers.TestProtos.ForeignMessage> values) { |
| 10737 | base.AddRange(values, result.repeatedMessageField_); |
| 10738 | return this; |
| 10739 | } |
| 10740 | public Builder ClearRepeatedMessageField() { |
| 10741 | result.repeatedMessageField_.Clear(); |
| 10742 | return this; |
| 10743 | } |
| 10744 | |
| 10745 | public scg::IList<string> RepeatedStringPieceFieldList { |
| 10746 | get { return result.repeatedStringPieceField_; } |
| 10747 | } |
| 10748 | public int RepeatedStringPieceFieldCount { |
| 10749 | get { return result.RepeatedStringPieceFieldCount; } |
| 10750 | } |
| 10751 | public string GetRepeatedStringPieceField(int index) { |
| 10752 | return result.GetRepeatedStringPieceField(index); |
| 10753 | } |
| 10754 | public Builder SetRepeatedStringPieceField(int index, string value) { |
Jon Skeet | 642a814 | 2009-01-27 12:25:21 +0000 | [diff] [blame] | 10755 | pb::ThrowHelper.ThrowIfNull(value, "value"); |
Jon Skeet | 6803686 | 2008-10-22 13:30:34 +0100 | [diff] [blame] | 10756 | result.repeatedStringPieceField_[index] = value; |
| 10757 | return this; |
| 10758 | } |
| 10759 | public Builder AddRepeatedStringPieceField(string value) { |
Jon Skeet | 642a814 | 2009-01-27 12:25:21 +0000 | [diff] [blame] | 10760 | pb::ThrowHelper.ThrowIfNull(value, "value"); |
Jon Skeet | 6803686 | 2008-10-22 13:30:34 +0100 | [diff] [blame] | 10761 | result.repeatedStringPieceField_.Add(value); |
| 10762 | return this; |
| 10763 | } |
| 10764 | public Builder AddRangeRepeatedStringPieceField(scg::IEnumerable<string> values) { |
| 10765 | base.AddRange(values, result.repeatedStringPieceField_); |
| 10766 | return this; |
| 10767 | } |
| 10768 | public Builder ClearRepeatedStringPieceField() { |
| 10769 | result.repeatedStringPieceField_.Clear(); |
| 10770 | return this; |
| 10771 | } |
| 10772 | |
| 10773 | public scg::IList<string> RepeatedCordFieldList { |
| 10774 | get { return result.repeatedCordField_; } |
| 10775 | } |
| 10776 | public int RepeatedCordFieldCount { |
| 10777 | get { return result.RepeatedCordFieldCount; } |
| 10778 | } |
| 10779 | public string GetRepeatedCordField(int index) { |
| 10780 | return result.GetRepeatedCordField(index); |
| 10781 | } |
| 10782 | public Builder SetRepeatedCordField(int index, string value) { |
Jon Skeet | 642a814 | 2009-01-27 12:25:21 +0000 | [diff] [blame] | 10783 | pb::ThrowHelper.ThrowIfNull(value, "value"); |
Jon Skeet | 6803686 | 2008-10-22 13:30:34 +0100 | [diff] [blame] | 10784 | result.repeatedCordField_[index] = value; |
| 10785 | return this; |
| 10786 | } |
| 10787 | public Builder AddRepeatedCordField(string value) { |
Jon Skeet | 642a814 | 2009-01-27 12:25:21 +0000 | [diff] [blame] | 10788 | pb::ThrowHelper.ThrowIfNull(value, "value"); |
Jon Skeet | 6803686 | 2008-10-22 13:30:34 +0100 | [diff] [blame] | 10789 | result.repeatedCordField_.Add(value); |
| 10790 | return this; |
| 10791 | } |
| 10792 | public Builder AddRangeRepeatedCordField(scg::IEnumerable<string> values) { |
| 10793 | base.AddRange(values, result.repeatedCordField_); |
| 10794 | return this; |
| 10795 | } |
| 10796 | public Builder ClearRepeatedCordField() { |
| 10797 | result.repeatedCordField_.Clear(); |
| 10798 | return this; |
| 10799 | } |
| 10800 | } |
| 10801 | } |
| 10802 | |
| 10803 | public sealed partial class TestFieldOrderings : pb::ExtendableMessage<TestFieldOrderings, TestFieldOrderings.Builder> { |
| 10804 | private static readonly TestFieldOrderings defaultInstance = new Builder().BuildPartial(); |
| 10805 | public static TestFieldOrderings DefaultInstance { |
| 10806 | get { return defaultInstance; } |
| 10807 | } |
| 10808 | |
| 10809 | public override TestFieldOrderings DefaultInstanceForType { |
| 10810 | get { return defaultInstance; } |
| 10811 | } |
| 10812 | |
| 10813 | protected override TestFieldOrderings ThisMessage { |
| 10814 | get { return this; } |
| 10815 | } |
| 10816 | |
| 10817 | public static pbd::MessageDescriptor Descriptor { |
| 10818 | get { return global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.internal__static_protobuf_unittest_TestFieldOrderings__Descriptor; } |
| 10819 | } |
| 10820 | |
| 10821 | protected override pb::FieldAccess.FieldAccessorTable<TestFieldOrderings, TestFieldOrderings.Builder> InternalFieldAccessors { |
| 10822 | get { return global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.internal__static_protobuf_unittest_TestFieldOrderings__FieldAccessorTable; } |
| 10823 | } |
| 10824 | |
| 10825 | private bool hasMyString; |
| 10826 | private string myString_ = ""; |
| 10827 | public bool HasMyString { |
| 10828 | get { return hasMyString; } |
| 10829 | } |
| 10830 | public string MyString { |
| 10831 | get { return myString_; } |
| 10832 | } |
| 10833 | |
| 10834 | private bool hasMyInt; |
| 10835 | private long myInt_ = 0L; |
| 10836 | public bool HasMyInt { |
| 10837 | get { return hasMyInt; } |
| 10838 | } |
| 10839 | public long MyInt { |
| 10840 | get { return myInt_; } |
| 10841 | } |
| 10842 | |
| 10843 | private bool hasMyFloat; |
| 10844 | private float myFloat_ = 0F; |
| 10845 | public bool HasMyFloat { |
| 10846 | get { return hasMyFloat; } |
| 10847 | } |
| 10848 | public float MyFloat { |
| 10849 | get { return myFloat_; } |
| 10850 | } |
| 10851 | |
| 10852 | public override bool IsInitialized { |
| 10853 | get { |
| 10854 | if (!ExtensionsAreInitialized) return false; |
| 10855 | return true; |
| 10856 | } |
| 10857 | } |
| 10858 | |
| 10859 | public override void WriteTo(pb::CodedOutputStream output) { |
| 10860 | pb::ExtendableMessage<TestFieldOrderings, TestFieldOrderings.Builder>.ExtensionWriter extensionWriter = CreateExtensionWriter(this); |
| 10861 | if (HasMyInt) { |
| 10862 | output.WriteInt64(1, MyInt); |
| 10863 | } |
| 10864 | extensionWriter.WriteUntil(11, output); |
| 10865 | if (HasMyString) { |
| 10866 | output.WriteString(11, MyString); |
| 10867 | } |
| 10868 | extensionWriter.WriteUntil(101, output); |
| 10869 | if (HasMyFloat) { |
| 10870 | output.WriteFloat(101, MyFloat); |
| 10871 | } |
| 10872 | UnknownFields.WriteTo(output); |
| 10873 | } |
| 10874 | |
| 10875 | private int memoizedSerializedSize = -1; |
| 10876 | public override int SerializedSize { |
| 10877 | get { |
| 10878 | int size = memoizedSerializedSize; |
| 10879 | if (size != -1) return size; |
| 10880 | |
| 10881 | size = 0; |
| 10882 | if (HasMyString) { |
| 10883 | size += pb::CodedOutputStream.ComputeStringSize(11, MyString); |
| 10884 | } |
| 10885 | if (HasMyInt) { |
| 10886 | size += pb::CodedOutputStream.ComputeInt64Size(1, MyInt); |
| 10887 | } |
| 10888 | if (HasMyFloat) { |
| 10889 | size += pb::CodedOutputStream.ComputeFloatSize(101, MyFloat); |
| 10890 | } |
| 10891 | size += ExtensionsSerializedSize; |
| 10892 | size += UnknownFields.SerializedSize; |
| 10893 | memoizedSerializedSize = size; |
| 10894 | return size; |
| 10895 | } |
| 10896 | } |
| 10897 | |
| 10898 | public static TestFieldOrderings ParseFrom(pb::ByteString data) { |
| 10899 | return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed(); |
| 10900 | } |
| 10901 | public static TestFieldOrderings ParseFrom(pb::ByteString data, pb::ExtensionRegistry extensionRegistry) { |
| 10902 | return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed(); |
| 10903 | } |
| 10904 | public static TestFieldOrderings ParseFrom(byte[] data) { |
| 10905 | return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed(); |
| 10906 | } |
| 10907 | public static TestFieldOrderings ParseFrom(byte[] data, pb::ExtensionRegistry extensionRegistry) { |
| 10908 | return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed(); |
| 10909 | } |
| 10910 | public static TestFieldOrderings ParseFrom(global::System.IO.Stream input) { |
| 10911 | return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed(); |
| 10912 | } |
| 10913 | public static TestFieldOrderings ParseFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) { |
| 10914 | return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed(); |
| 10915 | } |
| 10916 | public static TestFieldOrderings ParseFrom(pb::CodedInputStream input) { |
| 10917 | return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed(); |
| 10918 | } |
| 10919 | public static TestFieldOrderings ParseFrom(pb::CodedInputStream input, pb::ExtensionRegistry extensionRegistry) { |
| 10920 | return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed(); |
| 10921 | } |
| 10922 | public static Builder CreateBuilder() { return new Builder(); } |
| 10923 | public override Builder CreateBuilderForType() { return new Builder(); } |
| 10924 | public static Builder CreateBuilder(TestFieldOrderings prototype) { |
| 10925 | return (Builder) new Builder().MergeFrom(prototype); |
| 10926 | } |
| 10927 | |
| 10928 | public sealed partial class Builder : pb::ExtendableBuilder<TestFieldOrderings, Builder> { |
| 10929 | protected override Builder ThisBuilder { |
| 10930 | get { return this; } |
| 10931 | } |
| 10932 | public Builder() {} |
| 10933 | |
| 10934 | TestFieldOrderings result = new TestFieldOrderings(); |
| 10935 | |
| 10936 | protected override TestFieldOrderings MessageBeingBuilt { |
| 10937 | get { return result; } |
| 10938 | } |
| 10939 | |
| 10940 | public override Builder Clear() { |
| 10941 | result = new TestFieldOrderings(); |
| 10942 | return this; |
| 10943 | } |
| 10944 | |
| 10945 | public override Builder Clone() { |
| 10946 | return new Builder().MergeFrom(result); |
| 10947 | } |
| 10948 | |
| 10949 | public override pbd::MessageDescriptor DescriptorForType { |
| 10950 | get { return TestFieldOrderings.Descriptor; } |
| 10951 | } |
| 10952 | |
| 10953 | public override TestFieldOrderings DefaultInstanceForType { |
| 10954 | get { return TestFieldOrderings.DefaultInstance; } |
| 10955 | } |
| 10956 | |
| 10957 | public override TestFieldOrderings BuildPartial() { |
| 10958 | TestFieldOrderings returnMe = result; |
| 10959 | result = null; |
| 10960 | return returnMe; |
| 10961 | } |
| 10962 | |
| 10963 | public override Builder MergeFrom(pb::IMessage other) { |
| 10964 | if (other is TestFieldOrderings) { |
| 10965 | return MergeFrom((TestFieldOrderings) other); |
| 10966 | } else { |
| 10967 | base.MergeFrom(other); |
| 10968 | return this; |
| 10969 | } |
| 10970 | } |
| 10971 | |
| 10972 | public override Builder MergeFrom(TestFieldOrderings other) { |
| 10973 | if (other == TestFieldOrderings.DefaultInstance) return this; |
| 10974 | if (other.HasMyString) { |
| 10975 | MyString = other.MyString; |
| 10976 | } |
| 10977 | if (other.HasMyInt) { |
| 10978 | MyInt = other.MyInt; |
| 10979 | } |
| 10980 | if (other.HasMyFloat) { |
| 10981 | MyFloat = other.MyFloat; |
| 10982 | } |
Jon Skeet | 49fcd4f | 2009-01-27 14:43:10 +0000 | [diff] [blame] | 10983 | this.MergeExtensionFields(other); |
Jon Skeet | 6803686 | 2008-10-22 13:30:34 +0100 | [diff] [blame] | 10984 | this.MergeUnknownFields(other.UnknownFields); |
| 10985 | return this; |
| 10986 | } |
| 10987 | |
| 10988 | public override Builder MergeFrom(pb::CodedInputStream input) { |
| 10989 | return MergeFrom(input, pb::ExtensionRegistry.Empty); |
| 10990 | } |
| 10991 | |
| 10992 | public override Builder MergeFrom(pb::CodedInputStream input, pb::ExtensionRegistry extensionRegistry) { |
| 10993 | pb::UnknownFieldSet.Builder unknownFields = pb::UnknownFieldSet.CreateBuilder(this.UnknownFields); |
| 10994 | while (true) { |
| 10995 | uint tag = input.ReadTag(); |
| 10996 | switch (tag) { |
| 10997 | case 0: { |
| 10998 | this.UnknownFields = unknownFields.Build(); |
| 10999 | return this; |
| 11000 | } |
| 11001 | default: { |
| 11002 | if (!ParseUnknownField(input, unknownFields, extensionRegistry, tag)) { |
| 11003 | this.UnknownFields = unknownFields.Build(); |
| 11004 | return this; |
| 11005 | } |
| 11006 | break; |
| 11007 | } |
| 11008 | case 8: { |
| 11009 | MyInt = input.ReadInt64(); |
| 11010 | break; |
| 11011 | } |
| 11012 | case 90: { |
| 11013 | MyString = input.ReadString(); |
| 11014 | break; |
| 11015 | } |
| 11016 | case 813: { |
| 11017 | MyFloat = input.ReadFloat(); |
| 11018 | break; |
| 11019 | } |
| 11020 | } |
| 11021 | } |
| 11022 | } |
| 11023 | |
| 11024 | |
| 11025 | public bool HasMyString { |
| 11026 | get { return result.HasMyString; } |
| 11027 | } |
| 11028 | public string MyString { |
| 11029 | get { return result.MyString; } |
| 11030 | set { SetMyString(value); } |
| 11031 | } |
| 11032 | public Builder SetMyString(string value) { |
Jon Skeet | 642a814 | 2009-01-27 12:25:21 +0000 | [diff] [blame] | 11033 | pb::ThrowHelper.ThrowIfNull(value, "value"); |
Jon Skeet | 6803686 | 2008-10-22 13:30:34 +0100 | [diff] [blame] | 11034 | result.hasMyString = true; |
| 11035 | result.myString_ = value; |
| 11036 | return this; |
| 11037 | } |
| 11038 | public Builder ClearMyString() { |
| 11039 | result.hasMyString = false; |
| 11040 | result.myString_ = ""; |
| 11041 | return this; |
| 11042 | } |
| 11043 | |
| 11044 | public bool HasMyInt { |
| 11045 | get { return result.HasMyInt; } |
| 11046 | } |
| 11047 | public long MyInt { |
| 11048 | get { return result.MyInt; } |
| 11049 | set { SetMyInt(value); } |
| 11050 | } |
| 11051 | public Builder SetMyInt(long value) { |
| 11052 | result.hasMyInt = true; |
| 11053 | result.myInt_ = value; |
| 11054 | return this; |
| 11055 | } |
| 11056 | public Builder ClearMyInt() { |
| 11057 | result.hasMyInt = false; |
| 11058 | result.myInt_ = 0L; |
| 11059 | return this; |
| 11060 | } |
| 11061 | |
| 11062 | public bool HasMyFloat { |
| 11063 | get { return result.HasMyFloat; } |
| 11064 | } |
| 11065 | public float MyFloat { |
| 11066 | get { return result.MyFloat; } |
| 11067 | set { SetMyFloat(value); } |
| 11068 | } |
| 11069 | public Builder SetMyFloat(float value) { |
| 11070 | result.hasMyFloat = true; |
| 11071 | result.myFloat_ = value; |
| 11072 | return this; |
| 11073 | } |
| 11074 | public Builder ClearMyFloat() { |
| 11075 | result.hasMyFloat = false; |
| 11076 | result.myFloat_ = 0F; |
| 11077 | return this; |
| 11078 | } |
| 11079 | } |
| 11080 | } |
| 11081 | |
| 11082 | public sealed partial class TestExtremeDefaultValues : pb::GeneratedMessage<TestExtremeDefaultValues, TestExtremeDefaultValues.Builder> { |
| 11083 | private static readonly TestExtremeDefaultValues defaultInstance = new Builder().BuildPartial(); |
| 11084 | public static TestExtremeDefaultValues DefaultInstance { |
| 11085 | get { return defaultInstance; } |
| 11086 | } |
| 11087 | |
| 11088 | public override TestExtremeDefaultValues DefaultInstanceForType { |
| 11089 | get { return defaultInstance; } |
| 11090 | } |
| 11091 | |
| 11092 | protected override TestExtremeDefaultValues ThisMessage { |
| 11093 | get { return this; } |
| 11094 | } |
| 11095 | |
| 11096 | public static pbd::MessageDescriptor Descriptor { |
| 11097 | get { return global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.internal__static_protobuf_unittest_TestExtremeDefaultValues__Descriptor; } |
| 11098 | } |
| 11099 | |
| 11100 | protected override pb::FieldAccess.FieldAccessorTable<TestExtremeDefaultValues, TestExtremeDefaultValues.Builder> InternalFieldAccessors { |
| 11101 | get { return global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.internal__static_protobuf_unittest_TestExtremeDefaultValues__FieldAccessorTable; } |
| 11102 | } |
| 11103 | |
| 11104 | private bool hasEscapedBytes; |
| 11105 | private pb::ByteString escapedBytes_ = (pb::ByteString) global::Google.ProtocolBuffers.TestProtos.TestExtremeDefaultValues.Descriptor.Fields[0].DefaultValue; |
| 11106 | public bool HasEscapedBytes { |
| 11107 | get { return hasEscapedBytes; } |
| 11108 | } |
| 11109 | public pb::ByteString EscapedBytes { |
| 11110 | get { return escapedBytes_; } |
| 11111 | } |
| 11112 | |
| 11113 | private bool hasLargeUint32; |
| 11114 | private uint largeUint32_ = 4294967295; |
| 11115 | public bool HasLargeUint32 { |
| 11116 | get { return hasLargeUint32; } |
| 11117 | } |
| 11118 | public uint LargeUint32 { |
| 11119 | get { return largeUint32_; } |
| 11120 | } |
| 11121 | |
| 11122 | private bool hasLargeUint64; |
| 11123 | private ulong largeUint64_ = 18446744073709551615UL; |
| 11124 | public bool HasLargeUint64 { |
| 11125 | get { return hasLargeUint64; } |
| 11126 | } |
| 11127 | public ulong LargeUint64 { |
| 11128 | get { return largeUint64_; } |
| 11129 | } |
| 11130 | |
| 11131 | private bool hasSmallInt32; |
| 11132 | private int smallInt32_ = -2147483647; |
| 11133 | public bool HasSmallInt32 { |
| 11134 | get { return hasSmallInt32; } |
| 11135 | } |
| 11136 | public int SmallInt32 { |
| 11137 | get { return smallInt32_; } |
| 11138 | } |
| 11139 | |
| 11140 | private bool hasSmallInt64; |
| 11141 | private long smallInt64_ = -9223372036854775807L; |
| 11142 | public bool HasSmallInt64 { |
| 11143 | get { return hasSmallInt64; } |
| 11144 | } |
| 11145 | public long SmallInt64 { |
| 11146 | get { return smallInt64_; } |
| 11147 | } |
| 11148 | |
| 11149 | private bool hasUtf8String; |
| 11150 | private string utf8String_ = (string) global::Google.ProtocolBuffers.TestProtos.TestExtremeDefaultValues.Descriptor.Fields[5].DefaultValue; |
| 11151 | public bool HasUtf8String { |
| 11152 | get { return hasUtf8String; } |
| 11153 | } |
| 11154 | public string Utf8String { |
| 11155 | get { return utf8String_; } |
| 11156 | } |
| 11157 | |
| 11158 | public override bool IsInitialized { |
| 11159 | get { |
| 11160 | return true; |
| 11161 | } |
| 11162 | } |
| 11163 | |
| 11164 | public override void WriteTo(pb::CodedOutputStream output) { |
| 11165 | if (HasEscapedBytes) { |
| 11166 | output.WriteBytes(1, EscapedBytes); |
| 11167 | } |
| 11168 | if (HasLargeUint32) { |
| 11169 | output.WriteUInt32(2, LargeUint32); |
| 11170 | } |
| 11171 | if (HasLargeUint64) { |
| 11172 | output.WriteUInt64(3, LargeUint64); |
| 11173 | } |
| 11174 | if (HasSmallInt32) { |
| 11175 | output.WriteInt32(4, SmallInt32); |
| 11176 | } |
| 11177 | if (HasSmallInt64) { |
| 11178 | output.WriteInt64(5, SmallInt64); |
| 11179 | } |
| 11180 | if (HasUtf8String) { |
| 11181 | output.WriteString(6, Utf8String); |
| 11182 | } |
| 11183 | UnknownFields.WriteTo(output); |
| 11184 | } |
| 11185 | |
| 11186 | private int memoizedSerializedSize = -1; |
| 11187 | public override int SerializedSize { |
| 11188 | get { |
| 11189 | int size = memoizedSerializedSize; |
| 11190 | if (size != -1) return size; |
| 11191 | |
| 11192 | size = 0; |
| 11193 | if (HasEscapedBytes) { |
| 11194 | size += pb::CodedOutputStream.ComputeBytesSize(1, EscapedBytes); |
| 11195 | } |
| 11196 | if (HasLargeUint32) { |
| 11197 | size += pb::CodedOutputStream.ComputeUInt32Size(2, LargeUint32); |
| 11198 | } |
| 11199 | if (HasLargeUint64) { |
| 11200 | size += pb::CodedOutputStream.ComputeUInt64Size(3, LargeUint64); |
| 11201 | } |
| 11202 | if (HasSmallInt32) { |
| 11203 | size += pb::CodedOutputStream.ComputeInt32Size(4, SmallInt32); |
| 11204 | } |
| 11205 | if (HasSmallInt64) { |
| 11206 | size += pb::CodedOutputStream.ComputeInt64Size(5, SmallInt64); |
| 11207 | } |
| 11208 | if (HasUtf8String) { |
| 11209 | size += pb::CodedOutputStream.ComputeStringSize(6, Utf8String); |
| 11210 | } |
| 11211 | size += UnknownFields.SerializedSize; |
| 11212 | memoizedSerializedSize = size; |
| 11213 | return size; |
| 11214 | } |
| 11215 | } |
| 11216 | |
| 11217 | public static TestExtremeDefaultValues ParseFrom(pb::ByteString data) { |
| 11218 | return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed(); |
| 11219 | } |
| 11220 | public static TestExtremeDefaultValues ParseFrom(pb::ByteString data, pb::ExtensionRegistry extensionRegistry) { |
| 11221 | return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed(); |
| 11222 | } |
| 11223 | public static TestExtremeDefaultValues ParseFrom(byte[] data) { |
| 11224 | return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed(); |
| 11225 | } |
| 11226 | public static TestExtremeDefaultValues ParseFrom(byte[] data, pb::ExtensionRegistry extensionRegistry) { |
| 11227 | return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed(); |
| 11228 | } |
| 11229 | public static TestExtremeDefaultValues ParseFrom(global::System.IO.Stream input) { |
| 11230 | return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed(); |
| 11231 | } |
| 11232 | public static TestExtremeDefaultValues ParseFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) { |
| 11233 | return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed(); |
| 11234 | } |
| 11235 | public static TestExtremeDefaultValues ParseFrom(pb::CodedInputStream input) { |
| 11236 | return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed(); |
| 11237 | } |
| 11238 | public static TestExtremeDefaultValues ParseFrom(pb::CodedInputStream input, pb::ExtensionRegistry extensionRegistry) { |
| 11239 | return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed(); |
| 11240 | } |
| 11241 | public static Builder CreateBuilder() { return new Builder(); } |
| 11242 | public override Builder CreateBuilderForType() { return new Builder(); } |
| 11243 | public static Builder CreateBuilder(TestExtremeDefaultValues prototype) { |
| 11244 | return (Builder) new Builder().MergeFrom(prototype); |
| 11245 | } |
| 11246 | |
| 11247 | public sealed partial class Builder : pb::GeneratedBuilder<TestExtremeDefaultValues, Builder> { |
| 11248 | protected override Builder ThisBuilder { |
| 11249 | get { return this; } |
| 11250 | } |
| 11251 | public Builder() {} |
| 11252 | |
| 11253 | TestExtremeDefaultValues result = new TestExtremeDefaultValues(); |
| 11254 | |
| 11255 | protected override TestExtremeDefaultValues MessageBeingBuilt { |
| 11256 | get { return result; } |
| 11257 | } |
| 11258 | |
| 11259 | public override Builder Clear() { |
| 11260 | result = new TestExtremeDefaultValues(); |
| 11261 | return this; |
| 11262 | } |
| 11263 | |
| 11264 | public override Builder Clone() { |
| 11265 | return new Builder().MergeFrom(result); |
| 11266 | } |
| 11267 | |
| 11268 | public override pbd::MessageDescriptor DescriptorForType { |
| 11269 | get { return TestExtremeDefaultValues.Descriptor; } |
| 11270 | } |
| 11271 | |
| 11272 | public override TestExtremeDefaultValues DefaultInstanceForType { |
| 11273 | get { return TestExtremeDefaultValues.DefaultInstance; } |
| 11274 | } |
| 11275 | |
| 11276 | public override TestExtremeDefaultValues BuildPartial() { |
| 11277 | TestExtremeDefaultValues returnMe = result; |
| 11278 | result = null; |
| 11279 | return returnMe; |
| 11280 | } |
| 11281 | |
| 11282 | public override Builder MergeFrom(pb::IMessage other) { |
| 11283 | if (other is TestExtremeDefaultValues) { |
| 11284 | return MergeFrom((TestExtremeDefaultValues) other); |
| 11285 | } else { |
| 11286 | base.MergeFrom(other); |
| 11287 | return this; |
| 11288 | } |
| 11289 | } |
| 11290 | |
| 11291 | public override Builder MergeFrom(TestExtremeDefaultValues other) { |
| 11292 | if (other == TestExtremeDefaultValues.DefaultInstance) return this; |
| 11293 | if (other.HasEscapedBytes) { |
| 11294 | EscapedBytes = other.EscapedBytes; |
| 11295 | } |
| 11296 | if (other.HasLargeUint32) { |
| 11297 | LargeUint32 = other.LargeUint32; |
| 11298 | } |
| 11299 | if (other.HasLargeUint64) { |
| 11300 | LargeUint64 = other.LargeUint64; |
| 11301 | } |
| 11302 | if (other.HasSmallInt32) { |
| 11303 | SmallInt32 = other.SmallInt32; |
| 11304 | } |
| 11305 | if (other.HasSmallInt64) { |
| 11306 | SmallInt64 = other.SmallInt64; |
| 11307 | } |
| 11308 | if (other.HasUtf8String) { |
| 11309 | Utf8String = other.Utf8String; |
| 11310 | } |
| 11311 | this.MergeUnknownFields(other.UnknownFields); |
| 11312 | return this; |
| 11313 | } |
| 11314 | |
| 11315 | public override Builder MergeFrom(pb::CodedInputStream input) { |
| 11316 | return MergeFrom(input, pb::ExtensionRegistry.Empty); |
| 11317 | } |
| 11318 | |
| 11319 | public override Builder MergeFrom(pb::CodedInputStream input, pb::ExtensionRegistry extensionRegistry) { |
| 11320 | pb::UnknownFieldSet.Builder unknownFields = pb::UnknownFieldSet.CreateBuilder(this.UnknownFields); |
| 11321 | while (true) { |
| 11322 | uint tag = input.ReadTag(); |
| 11323 | switch (tag) { |
| 11324 | case 0: { |
| 11325 | this.UnknownFields = unknownFields.Build(); |
| 11326 | return this; |
| 11327 | } |
| 11328 | default: { |
| 11329 | if (!ParseUnknownField(input, unknownFields, extensionRegistry, tag)) { |
| 11330 | this.UnknownFields = unknownFields.Build(); |
| 11331 | return this; |
| 11332 | } |
| 11333 | break; |
| 11334 | } |
| 11335 | case 10: { |
| 11336 | EscapedBytes = input.ReadBytes(); |
| 11337 | break; |
| 11338 | } |
| 11339 | case 16: { |
| 11340 | LargeUint32 = input.ReadUInt32(); |
| 11341 | break; |
| 11342 | } |
| 11343 | case 24: { |
| 11344 | LargeUint64 = input.ReadUInt64(); |
| 11345 | break; |
| 11346 | } |
| 11347 | case 32: { |
| 11348 | SmallInt32 = input.ReadInt32(); |
| 11349 | break; |
| 11350 | } |
| 11351 | case 40: { |
| 11352 | SmallInt64 = input.ReadInt64(); |
| 11353 | break; |
| 11354 | } |
| 11355 | case 50: { |
| 11356 | Utf8String = input.ReadString(); |
| 11357 | break; |
| 11358 | } |
| 11359 | } |
| 11360 | } |
| 11361 | } |
| 11362 | |
| 11363 | |
| 11364 | public bool HasEscapedBytes { |
| 11365 | get { return result.HasEscapedBytes; } |
| 11366 | } |
| 11367 | public pb::ByteString EscapedBytes { |
| 11368 | get { return result.EscapedBytes; } |
| 11369 | set { SetEscapedBytes(value); } |
| 11370 | } |
| 11371 | public Builder SetEscapedBytes(pb::ByteString value) { |
Jon Skeet | 642a814 | 2009-01-27 12:25:21 +0000 | [diff] [blame] | 11372 | pb::ThrowHelper.ThrowIfNull(value, "value"); |
Jon Skeet | 6803686 | 2008-10-22 13:30:34 +0100 | [diff] [blame] | 11373 | result.hasEscapedBytes = true; |
| 11374 | result.escapedBytes_ = value; |
| 11375 | return this; |
| 11376 | } |
| 11377 | public Builder ClearEscapedBytes() { |
| 11378 | result.hasEscapedBytes = false; |
| 11379 | result.escapedBytes_ = (pb::ByteString) global::Google.ProtocolBuffers.TestProtos.TestExtremeDefaultValues.Descriptor.Fields[0].DefaultValue; |
| 11380 | return this; |
| 11381 | } |
| 11382 | |
| 11383 | public bool HasLargeUint32 { |
| 11384 | get { return result.HasLargeUint32; } |
| 11385 | } |
| 11386 | public uint LargeUint32 { |
| 11387 | get { return result.LargeUint32; } |
| 11388 | set { SetLargeUint32(value); } |
| 11389 | } |
| 11390 | public Builder SetLargeUint32(uint value) { |
| 11391 | result.hasLargeUint32 = true; |
| 11392 | result.largeUint32_ = value; |
| 11393 | return this; |
| 11394 | } |
| 11395 | public Builder ClearLargeUint32() { |
| 11396 | result.hasLargeUint32 = false; |
| 11397 | result.largeUint32_ = 4294967295; |
| 11398 | return this; |
| 11399 | } |
| 11400 | |
| 11401 | public bool HasLargeUint64 { |
| 11402 | get { return result.HasLargeUint64; } |
| 11403 | } |
| 11404 | public ulong LargeUint64 { |
| 11405 | get { return result.LargeUint64; } |
| 11406 | set { SetLargeUint64(value); } |
| 11407 | } |
| 11408 | public Builder SetLargeUint64(ulong value) { |
| 11409 | result.hasLargeUint64 = true; |
| 11410 | result.largeUint64_ = value; |
| 11411 | return this; |
| 11412 | } |
| 11413 | public Builder ClearLargeUint64() { |
| 11414 | result.hasLargeUint64 = false; |
| 11415 | result.largeUint64_ = 18446744073709551615UL; |
| 11416 | return this; |
| 11417 | } |
| 11418 | |
| 11419 | public bool HasSmallInt32 { |
| 11420 | get { return result.HasSmallInt32; } |
| 11421 | } |
| 11422 | public int SmallInt32 { |
| 11423 | get { return result.SmallInt32; } |
| 11424 | set { SetSmallInt32(value); } |
| 11425 | } |
| 11426 | public Builder SetSmallInt32(int value) { |
| 11427 | result.hasSmallInt32 = true; |
| 11428 | result.smallInt32_ = value; |
| 11429 | return this; |
| 11430 | } |
| 11431 | public Builder ClearSmallInt32() { |
| 11432 | result.hasSmallInt32 = false; |
| 11433 | result.smallInt32_ = -2147483647; |
| 11434 | return this; |
| 11435 | } |
| 11436 | |
| 11437 | public bool HasSmallInt64 { |
| 11438 | get { return result.HasSmallInt64; } |
| 11439 | } |
| 11440 | public long SmallInt64 { |
| 11441 | get { return result.SmallInt64; } |
| 11442 | set { SetSmallInt64(value); } |
| 11443 | } |
| 11444 | public Builder SetSmallInt64(long value) { |
| 11445 | result.hasSmallInt64 = true; |
| 11446 | result.smallInt64_ = value; |
| 11447 | return this; |
| 11448 | } |
| 11449 | public Builder ClearSmallInt64() { |
| 11450 | result.hasSmallInt64 = false; |
| 11451 | result.smallInt64_ = -9223372036854775807L; |
| 11452 | return this; |
| 11453 | } |
| 11454 | |
| 11455 | public bool HasUtf8String { |
| 11456 | get { return result.HasUtf8String; } |
| 11457 | } |
| 11458 | public string Utf8String { |
| 11459 | get { return result.Utf8String; } |
| 11460 | set { SetUtf8String(value); } |
| 11461 | } |
| 11462 | public Builder SetUtf8String(string value) { |
Jon Skeet | 642a814 | 2009-01-27 12:25:21 +0000 | [diff] [blame] | 11463 | pb::ThrowHelper.ThrowIfNull(value, "value"); |
Jon Skeet | 6803686 | 2008-10-22 13:30:34 +0100 | [diff] [blame] | 11464 | result.hasUtf8String = true; |
| 11465 | result.utf8String_ = value; |
| 11466 | return this; |
| 11467 | } |
| 11468 | public Builder ClearUtf8String() { |
| 11469 | result.hasUtf8String = false; |
| 11470 | result.utf8String_ = (string) global::Google.ProtocolBuffers.TestProtos.TestExtremeDefaultValues.Descriptor.Fields[5].DefaultValue; |
| 11471 | return this; |
| 11472 | } |
| 11473 | } |
| 11474 | } |
| 11475 | |
Jon Skeet | 25a2858 | 2009-02-18 16:06:22 +0000 | [diff] [blame^] | 11476 | public sealed partial class TestPackedTypes : pb::GeneratedMessage<TestPackedTypes, TestPackedTypes.Builder> { |
| 11477 | private static readonly TestPackedTypes defaultInstance = new Builder().BuildPartial(); |
| 11478 | public static TestPackedTypes DefaultInstance { |
| 11479 | get { return defaultInstance; } |
| 11480 | } |
| 11481 | |
| 11482 | public override TestPackedTypes DefaultInstanceForType { |
| 11483 | get { return defaultInstance; } |
| 11484 | } |
| 11485 | |
| 11486 | protected override TestPackedTypes ThisMessage { |
| 11487 | get { return this; } |
| 11488 | } |
| 11489 | |
| 11490 | public static pbd::MessageDescriptor Descriptor { |
| 11491 | get { return global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.internal__static_protobuf_unittest_TestPackedTypes__Descriptor; } |
| 11492 | } |
| 11493 | |
| 11494 | protected override pb::FieldAccess.FieldAccessorTable<TestPackedTypes, TestPackedTypes.Builder> InternalFieldAccessors { |
| 11495 | get { return global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.internal__static_protobuf_unittest_TestPackedTypes__FieldAccessorTable; } |
| 11496 | } |
| 11497 | |
| 11498 | private int packedInt32MemoizedSerializedSize; |
| 11499 | private pbc::PopsicleList<int> packedInt32_ = new pbc::PopsicleList<int>(); |
| 11500 | public scg::IList<int> PackedInt32List { |
| 11501 | get { return pbc::Lists.AsReadOnly(packedInt32_); } |
| 11502 | } |
| 11503 | public int PackedInt32Count { |
| 11504 | get { return packedInt32_.Count; } |
| 11505 | } |
| 11506 | public int GetPackedInt32(int index) { |
| 11507 | return packedInt32_[index]; |
| 11508 | } |
| 11509 | |
| 11510 | private int packedInt64MemoizedSerializedSize; |
| 11511 | private pbc::PopsicleList<long> packedInt64_ = new pbc::PopsicleList<long>(); |
| 11512 | public scg::IList<long> PackedInt64List { |
| 11513 | get { return pbc::Lists.AsReadOnly(packedInt64_); } |
| 11514 | } |
| 11515 | public int PackedInt64Count { |
| 11516 | get { return packedInt64_.Count; } |
| 11517 | } |
| 11518 | public long GetPackedInt64(int index) { |
| 11519 | return packedInt64_[index]; |
| 11520 | } |
| 11521 | |
| 11522 | private int packedUint32MemoizedSerializedSize; |
| 11523 | private pbc::PopsicleList<uint> packedUint32_ = new pbc::PopsicleList<uint>(); |
| 11524 | public scg::IList<uint> PackedUint32List { |
| 11525 | get { return pbc::Lists.AsReadOnly(packedUint32_); } |
| 11526 | } |
| 11527 | public int PackedUint32Count { |
| 11528 | get { return packedUint32_.Count; } |
| 11529 | } |
| 11530 | public uint GetPackedUint32(int index) { |
| 11531 | return packedUint32_[index]; |
| 11532 | } |
| 11533 | |
| 11534 | private int packedUint64MemoizedSerializedSize; |
| 11535 | private pbc::PopsicleList<ulong> packedUint64_ = new pbc::PopsicleList<ulong>(); |
| 11536 | public scg::IList<ulong> PackedUint64List { |
| 11537 | get { return pbc::Lists.AsReadOnly(packedUint64_); } |
| 11538 | } |
| 11539 | public int PackedUint64Count { |
| 11540 | get { return packedUint64_.Count; } |
| 11541 | } |
| 11542 | public ulong GetPackedUint64(int index) { |
| 11543 | return packedUint64_[index]; |
| 11544 | } |
| 11545 | |
| 11546 | private int packedSint32MemoizedSerializedSize; |
| 11547 | private pbc::PopsicleList<int> packedSint32_ = new pbc::PopsicleList<int>(); |
| 11548 | public scg::IList<int> PackedSint32List { |
| 11549 | get { return pbc::Lists.AsReadOnly(packedSint32_); } |
| 11550 | } |
| 11551 | public int PackedSint32Count { |
| 11552 | get { return packedSint32_.Count; } |
| 11553 | } |
| 11554 | public int GetPackedSint32(int index) { |
| 11555 | return packedSint32_[index]; |
| 11556 | } |
| 11557 | |
| 11558 | private int packedSint64MemoizedSerializedSize; |
| 11559 | private pbc::PopsicleList<long> packedSint64_ = new pbc::PopsicleList<long>(); |
| 11560 | public scg::IList<long> PackedSint64List { |
| 11561 | get { return pbc::Lists.AsReadOnly(packedSint64_); } |
| 11562 | } |
| 11563 | public int PackedSint64Count { |
| 11564 | get { return packedSint64_.Count; } |
| 11565 | } |
| 11566 | public long GetPackedSint64(int index) { |
| 11567 | return packedSint64_[index]; |
| 11568 | } |
| 11569 | |
| 11570 | private int packedFixed32MemoizedSerializedSize; |
| 11571 | private pbc::PopsicleList<uint> packedFixed32_ = new pbc::PopsicleList<uint>(); |
| 11572 | public scg::IList<uint> PackedFixed32List { |
| 11573 | get { return pbc::Lists.AsReadOnly(packedFixed32_); } |
| 11574 | } |
| 11575 | public int PackedFixed32Count { |
| 11576 | get { return packedFixed32_.Count; } |
| 11577 | } |
| 11578 | public uint GetPackedFixed32(int index) { |
| 11579 | return packedFixed32_[index]; |
| 11580 | } |
| 11581 | |
| 11582 | private int packedFixed64MemoizedSerializedSize; |
| 11583 | private pbc::PopsicleList<ulong> packedFixed64_ = new pbc::PopsicleList<ulong>(); |
| 11584 | public scg::IList<ulong> PackedFixed64List { |
| 11585 | get { return pbc::Lists.AsReadOnly(packedFixed64_); } |
| 11586 | } |
| 11587 | public int PackedFixed64Count { |
| 11588 | get { return packedFixed64_.Count; } |
| 11589 | } |
| 11590 | public ulong GetPackedFixed64(int index) { |
| 11591 | return packedFixed64_[index]; |
| 11592 | } |
| 11593 | |
| 11594 | private int packedSfixed32MemoizedSerializedSize; |
| 11595 | private pbc::PopsicleList<int> packedSfixed32_ = new pbc::PopsicleList<int>(); |
| 11596 | public scg::IList<int> PackedSfixed32List { |
| 11597 | get { return pbc::Lists.AsReadOnly(packedSfixed32_); } |
| 11598 | } |
| 11599 | public int PackedSfixed32Count { |
| 11600 | get { return packedSfixed32_.Count; } |
| 11601 | } |
| 11602 | public int GetPackedSfixed32(int index) { |
| 11603 | return packedSfixed32_[index]; |
| 11604 | } |
| 11605 | |
| 11606 | private int packedSfixed64MemoizedSerializedSize; |
| 11607 | private pbc::PopsicleList<long> packedSfixed64_ = new pbc::PopsicleList<long>(); |
| 11608 | public scg::IList<long> PackedSfixed64List { |
| 11609 | get { return pbc::Lists.AsReadOnly(packedSfixed64_); } |
| 11610 | } |
| 11611 | public int PackedSfixed64Count { |
| 11612 | get { return packedSfixed64_.Count; } |
| 11613 | } |
| 11614 | public long GetPackedSfixed64(int index) { |
| 11615 | return packedSfixed64_[index]; |
| 11616 | } |
| 11617 | |
| 11618 | private int packedFloatMemoizedSerializedSize; |
| 11619 | private pbc::PopsicleList<float> packedFloat_ = new pbc::PopsicleList<float>(); |
| 11620 | public scg::IList<float> PackedFloatList { |
| 11621 | get { return pbc::Lists.AsReadOnly(packedFloat_); } |
| 11622 | } |
| 11623 | public int PackedFloatCount { |
| 11624 | get { return packedFloat_.Count; } |
| 11625 | } |
| 11626 | public float GetPackedFloat(int index) { |
| 11627 | return packedFloat_[index]; |
| 11628 | } |
| 11629 | |
| 11630 | private int packedDoubleMemoizedSerializedSize; |
| 11631 | private pbc::PopsicleList<double> packedDouble_ = new pbc::PopsicleList<double>(); |
| 11632 | public scg::IList<double> PackedDoubleList { |
| 11633 | get { return pbc::Lists.AsReadOnly(packedDouble_); } |
| 11634 | } |
| 11635 | public int PackedDoubleCount { |
| 11636 | get { return packedDouble_.Count; } |
| 11637 | } |
| 11638 | public double GetPackedDouble(int index) { |
| 11639 | return packedDouble_[index]; |
| 11640 | } |
| 11641 | |
| 11642 | private int packedBoolMemoizedSerializedSize; |
| 11643 | private pbc::PopsicleList<bool> packedBool_ = new pbc::PopsicleList<bool>(); |
| 11644 | public scg::IList<bool> PackedBoolList { |
| 11645 | get { return pbc::Lists.AsReadOnly(packedBool_); } |
| 11646 | } |
| 11647 | public int PackedBoolCount { |
| 11648 | get { return packedBool_.Count; } |
| 11649 | } |
| 11650 | public bool GetPackedBool(int index) { |
| 11651 | return packedBool_[index]; |
| 11652 | } |
| 11653 | |
| 11654 | private int packedEnumMemoizedSerializedSize; |
| 11655 | private pbc::PopsicleList<global::Google.ProtocolBuffers.TestProtos.ForeignEnum> packedEnum_ = new pbc::PopsicleList<global::Google.ProtocolBuffers.TestProtos.ForeignEnum>(); |
| 11656 | public scg::IList<global::Google.ProtocolBuffers.TestProtos.ForeignEnum> PackedEnumList { |
| 11657 | get { return pbc::Lists.AsReadOnly(packedEnum_); } |
| 11658 | } |
| 11659 | public int PackedEnumCount { |
| 11660 | get { return packedEnum_.Count; } |
| 11661 | } |
| 11662 | public global::Google.ProtocolBuffers.TestProtos.ForeignEnum GetPackedEnum(int index) { |
| 11663 | return packedEnum_[index]; |
| 11664 | } |
| 11665 | |
| 11666 | public override bool IsInitialized { |
| 11667 | get { |
| 11668 | return true; |
| 11669 | } |
| 11670 | } |
| 11671 | |
| 11672 | public override void WriteTo(pb::CodedOutputStream output) { |
| 11673 | if (packedInt32_.Count > 0) { |
| 11674 | output.WriteRawVarint32(722); |
| 11675 | output.WriteRawVarint32((uint) packedInt32MemoizedSerializedSize); |
| 11676 | foreach (int element in packedInt32_) { |
| 11677 | output.WriteInt32NoTag(element); |
| 11678 | } |
| 11679 | } |
| 11680 | if (packedInt64_.Count > 0) { |
| 11681 | output.WriteRawVarint32(730); |
| 11682 | output.WriteRawVarint32((uint) packedInt64MemoizedSerializedSize); |
| 11683 | foreach (long element in packedInt64_) { |
| 11684 | output.WriteInt64NoTag(element); |
| 11685 | } |
| 11686 | } |
| 11687 | if (packedUint32_.Count > 0) { |
| 11688 | output.WriteRawVarint32(738); |
| 11689 | output.WriteRawVarint32((uint) packedUint32MemoizedSerializedSize); |
| 11690 | foreach (uint element in packedUint32_) { |
| 11691 | output.WriteUInt32NoTag(element); |
| 11692 | } |
| 11693 | } |
| 11694 | if (packedUint64_.Count > 0) { |
| 11695 | output.WriteRawVarint32(746); |
| 11696 | output.WriteRawVarint32((uint) packedUint64MemoizedSerializedSize); |
| 11697 | foreach (ulong element in packedUint64_) { |
| 11698 | output.WriteUInt64NoTag(element); |
| 11699 | } |
| 11700 | } |
| 11701 | if (packedSint32_.Count > 0) { |
| 11702 | output.WriteRawVarint32(754); |
| 11703 | output.WriteRawVarint32((uint) packedSint32MemoizedSerializedSize); |
| 11704 | foreach (int element in packedSint32_) { |
| 11705 | output.WriteSInt32NoTag(element); |
| 11706 | } |
| 11707 | } |
| 11708 | if (packedSint64_.Count > 0) { |
| 11709 | output.WriteRawVarint32(762); |
| 11710 | output.WriteRawVarint32((uint) packedSint64MemoizedSerializedSize); |
| 11711 | foreach (long element in packedSint64_) { |
| 11712 | output.WriteSInt64NoTag(element); |
| 11713 | } |
| 11714 | } |
| 11715 | if (packedFixed32_.Count > 0) { |
| 11716 | output.WriteRawVarint32(770); |
| 11717 | output.WriteRawVarint32((uint) packedFixed32MemoizedSerializedSize); |
| 11718 | foreach (uint element in packedFixed32_) { |
| 11719 | output.WriteFixed32NoTag(element); |
| 11720 | } |
| 11721 | } |
| 11722 | if (packedFixed64_.Count > 0) { |
| 11723 | output.WriteRawVarint32(778); |
| 11724 | output.WriteRawVarint32((uint) packedFixed64MemoizedSerializedSize); |
| 11725 | foreach (ulong element in packedFixed64_) { |
| 11726 | output.WriteFixed64NoTag(element); |
| 11727 | } |
| 11728 | } |
| 11729 | if (packedSfixed32_.Count > 0) { |
| 11730 | output.WriteRawVarint32(786); |
| 11731 | output.WriteRawVarint32((uint) packedSfixed32MemoizedSerializedSize); |
| 11732 | foreach (int element in packedSfixed32_) { |
| 11733 | output.WriteSFixed32NoTag(element); |
| 11734 | } |
| 11735 | } |
| 11736 | if (packedSfixed64_.Count > 0) { |
| 11737 | output.WriteRawVarint32(794); |
| 11738 | output.WriteRawVarint32((uint) packedSfixed64MemoizedSerializedSize); |
| 11739 | foreach (long element in packedSfixed64_) { |
| 11740 | output.WriteSFixed64NoTag(element); |
| 11741 | } |
| 11742 | } |
| 11743 | if (packedFloat_.Count > 0) { |
| 11744 | output.WriteRawVarint32(802); |
| 11745 | output.WriteRawVarint32((uint) packedFloatMemoizedSerializedSize); |
| 11746 | foreach (float element in packedFloat_) { |
| 11747 | output.WriteFloatNoTag(element); |
| 11748 | } |
| 11749 | } |
| 11750 | if (packedDouble_.Count > 0) { |
| 11751 | output.WriteRawVarint32(810); |
| 11752 | output.WriteRawVarint32((uint) packedDoubleMemoizedSerializedSize); |
| 11753 | foreach (double element in packedDouble_) { |
| 11754 | output.WriteDoubleNoTag(element); |
| 11755 | } |
| 11756 | } |
| 11757 | if (packedBool_.Count > 0) { |
| 11758 | output.WriteRawVarint32(818); |
| 11759 | output.WriteRawVarint32((uint) packedBoolMemoizedSerializedSize); |
| 11760 | foreach (bool element in packedBool_) { |
| 11761 | output.WriteBoolNoTag(element); |
| 11762 | } |
| 11763 | } |
| 11764 | if (packedEnum_.Count > 0) { |
| 11765 | output.WriteRawVarint32(826); |
| 11766 | output.WriteRawVarint32((uint) packedEnumMemoizedSerializedSize); |
| 11767 | foreach (int element in packedEnum_) { |
| 11768 | output.WriteEnumNoTag(element); |
| 11769 | } |
| 11770 | } |
| 11771 | UnknownFields.WriteTo(output); |
| 11772 | } |
| 11773 | |
| 11774 | private int memoizedSerializedSize = -1; |
| 11775 | public override int SerializedSize { |
| 11776 | get { |
| 11777 | int size = memoizedSerializedSize; |
| 11778 | if (size != -1) return size; |
| 11779 | |
| 11780 | size = 0; |
| 11781 | { |
| 11782 | int dataSize = 0; |
| 11783 | foreach (int element in PackedInt32List) { |
| 11784 | dataSize += pb::CodedOutputStream.ComputeInt32SizeNoTag(element); |
| 11785 | } |
| 11786 | size += dataSize; |
| 11787 | size += 2; |
| 11788 | size += pb::CodedOutputStream.ComputeInt32SizeNoTag(dataSize); |
| 11789 | packedInt32MemoizedSerializedSize = dataSize; |
| 11790 | } |
| 11791 | { |
| 11792 | int dataSize = 0; |
| 11793 | foreach (long element in PackedInt64List) { |
| 11794 | dataSize += pb::CodedOutputStream.ComputeInt64SizeNoTag(element); |
| 11795 | } |
| 11796 | size += dataSize; |
| 11797 | size += 2; |
| 11798 | size += pb::CodedOutputStream.ComputeInt32SizeNoTag(dataSize); |
| 11799 | packedInt64MemoizedSerializedSize = dataSize; |
| 11800 | } |
| 11801 | { |
| 11802 | int dataSize = 0; |
| 11803 | foreach (uint element in PackedUint32List) { |
| 11804 | dataSize += pb::CodedOutputStream.ComputeUInt32SizeNoTag(element); |
| 11805 | } |
| 11806 | size += dataSize; |
| 11807 | size += 2; |
| 11808 | size += pb::CodedOutputStream.ComputeInt32SizeNoTag(dataSize); |
| 11809 | packedUint32MemoizedSerializedSize = dataSize; |
| 11810 | } |
| 11811 | { |
| 11812 | int dataSize = 0; |
| 11813 | foreach (ulong element in PackedUint64List) { |
| 11814 | dataSize += pb::CodedOutputStream.ComputeUInt64SizeNoTag(element); |
| 11815 | } |
| 11816 | size += dataSize; |
| 11817 | size += 2; |
| 11818 | size += pb::CodedOutputStream.ComputeInt32SizeNoTag(dataSize); |
| 11819 | packedUint64MemoizedSerializedSize = dataSize; |
| 11820 | } |
| 11821 | { |
| 11822 | int dataSize = 0; |
| 11823 | foreach (int element in PackedSint32List) { |
| 11824 | dataSize += pb::CodedOutputStream.ComputeSInt32SizeNoTag(element); |
| 11825 | } |
| 11826 | size += dataSize; |
| 11827 | size += 2; |
| 11828 | size += pb::CodedOutputStream.ComputeInt32SizeNoTag(dataSize); |
| 11829 | packedSint32MemoizedSerializedSize = dataSize; |
| 11830 | } |
| 11831 | { |
| 11832 | int dataSize = 0; |
| 11833 | foreach (long element in PackedSint64List) { |
| 11834 | dataSize += pb::CodedOutputStream.ComputeSInt64SizeNoTag(element); |
| 11835 | } |
| 11836 | size += dataSize; |
| 11837 | size += 2; |
| 11838 | size += pb::CodedOutputStream.ComputeInt32SizeNoTag(dataSize); |
| 11839 | packedSint64MemoizedSerializedSize = dataSize; |
| 11840 | } |
| 11841 | { |
| 11842 | int dataSize = 0; |
| 11843 | dataSize = 4 * packedFixed32_.Count; |
| 11844 | size += dataSize; |
| 11845 | size += 2; |
| 11846 | size += pb::CodedOutputStream.ComputeInt32SizeNoTag(dataSize); |
| 11847 | packedFixed32MemoizedSerializedSize = dataSize; |
| 11848 | } |
| 11849 | { |
| 11850 | int dataSize = 0; |
| 11851 | dataSize = 8 * packedFixed64_.Count; |
| 11852 | size += dataSize; |
| 11853 | size += 2; |
| 11854 | size += pb::CodedOutputStream.ComputeInt32SizeNoTag(dataSize); |
| 11855 | packedFixed64MemoizedSerializedSize = dataSize; |
| 11856 | } |
| 11857 | { |
| 11858 | int dataSize = 0; |
| 11859 | dataSize = 4 * packedSfixed32_.Count; |
| 11860 | size += dataSize; |
| 11861 | size += 2; |
| 11862 | size += pb::CodedOutputStream.ComputeInt32SizeNoTag(dataSize); |
| 11863 | packedSfixed32MemoizedSerializedSize = dataSize; |
| 11864 | } |
| 11865 | { |
| 11866 | int dataSize = 0; |
| 11867 | dataSize = 8 * packedSfixed64_.Count; |
| 11868 | size += dataSize; |
| 11869 | size += 2; |
| 11870 | size += pb::CodedOutputStream.ComputeInt32SizeNoTag(dataSize); |
| 11871 | packedSfixed64MemoizedSerializedSize = dataSize; |
| 11872 | } |
| 11873 | { |
| 11874 | int dataSize = 0; |
| 11875 | dataSize = 4 * packedFloat_.Count; |
| 11876 | size += dataSize; |
| 11877 | size += 2; |
| 11878 | size += pb::CodedOutputStream.ComputeInt32SizeNoTag(dataSize); |
| 11879 | packedFloatMemoizedSerializedSize = dataSize; |
| 11880 | } |
| 11881 | { |
| 11882 | int dataSize = 0; |
| 11883 | dataSize = 8 * packedDouble_.Count; |
| 11884 | size += dataSize; |
| 11885 | size += 2; |
| 11886 | size += pb::CodedOutputStream.ComputeInt32SizeNoTag(dataSize); |
| 11887 | packedDoubleMemoizedSerializedSize = dataSize; |
| 11888 | } |
| 11889 | { |
| 11890 | int dataSize = 0; |
| 11891 | dataSize = 1 * packedBool_.Count; |
| 11892 | size += dataSize; |
| 11893 | size += 2; |
| 11894 | size += pb::CodedOutputStream.ComputeInt32SizeNoTag(dataSize); |
| 11895 | packedBoolMemoizedSerializedSize = dataSize; |
| 11896 | } |
| 11897 | { |
| 11898 | int dataSize = 0; |
| 11899 | if (packedEnum_.Count > 0) { |
| 11900 | foreach (global::Google.ProtocolBuffers.TestProtos.ForeignEnum element in packedEnum_) { |
| 11901 | dataSize += pb::CodedOutputStream.ComputeEnumSizeNoTag((int) element); |
| 11902 | } |
| 11903 | size += dataSize; |
| 11904 | size += 2; |
| 11905 | size += pb::CodedOutputStream.ComputeRawVarint32Size((uint) dataSize); |
| 11906 | } |
| 11907 | packedEnumMemoizedSerializedSize = dataSize; |
| 11908 | } |
| 11909 | size += UnknownFields.SerializedSize; |
| 11910 | memoizedSerializedSize = size; |
| 11911 | return size; |
| 11912 | } |
| 11913 | } |
| 11914 | |
| 11915 | public static TestPackedTypes ParseFrom(pb::ByteString data) { |
| 11916 | return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed(); |
| 11917 | } |
| 11918 | public static TestPackedTypes ParseFrom(pb::ByteString data, pb::ExtensionRegistry extensionRegistry) { |
| 11919 | return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed(); |
| 11920 | } |
| 11921 | public static TestPackedTypes ParseFrom(byte[] data) { |
| 11922 | return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed(); |
| 11923 | } |
| 11924 | public static TestPackedTypes ParseFrom(byte[] data, pb::ExtensionRegistry extensionRegistry) { |
| 11925 | return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed(); |
| 11926 | } |
| 11927 | public static TestPackedTypes ParseFrom(global::System.IO.Stream input) { |
| 11928 | return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed(); |
| 11929 | } |
| 11930 | public static TestPackedTypes ParseFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) { |
| 11931 | return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed(); |
| 11932 | } |
| 11933 | public static TestPackedTypes ParseFrom(pb::CodedInputStream input) { |
| 11934 | return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed(); |
| 11935 | } |
| 11936 | public static TestPackedTypes ParseFrom(pb::CodedInputStream input, pb::ExtensionRegistry extensionRegistry) { |
| 11937 | return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed(); |
| 11938 | } |
| 11939 | public static Builder CreateBuilder() { return new Builder(); } |
| 11940 | public override Builder CreateBuilderForType() { return new Builder(); } |
| 11941 | public static Builder CreateBuilder(TestPackedTypes prototype) { |
| 11942 | return (Builder) new Builder().MergeFrom(prototype); |
| 11943 | } |
| 11944 | |
| 11945 | public sealed partial class Builder : pb::GeneratedBuilder<TestPackedTypes, Builder> { |
| 11946 | protected override Builder ThisBuilder { |
| 11947 | get { return this; } |
| 11948 | } |
| 11949 | public Builder() {} |
| 11950 | |
| 11951 | TestPackedTypes result = new TestPackedTypes(); |
| 11952 | |
| 11953 | protected override TestPackedTypes MessageBeingBuilt { |
| 11954 | get { return result; } |
| 11955 | } |
| 11956 | |
| 11957 | public override Builder Clear() { |
| 11958 | result = new TestPackedTypes(); |
| 11959 | return this; |
| 11960 | } |
| 11961 | |
| 11962 | public override Builder Clone() { |
| 11963 | return new Builder().MergeFrom(result); |
| 11964 | } |
| 11965 | |
| 11966 | public override pbd::MessageDescriptor DescriptorForType { |
| 11967 | get { return TestPackedTypes.Descriptor; } |
| 11968 | } |
| 11969 | |
| 11970 | public override TestPackedTypes DefaultInstanceForType { |
| 11971 | get { return TestPackedTypes.DefaultInstance; } |
| 11972 | } |
| 11973 | |
| 11974 | public override TestPackedTypes BuildPartial() { |
| 11975 | result.packedInt32_.MakeReadOnly(); |
| 11976 | result.packedInt64_.MakeReadOnly(); |
| 11977 | result.packedUint32_.MakeReadOnly(); |
| 11978 | result.packedUint64_.MakeReadOnly(); |
| 11979 | result.packedSint32_.MakeReadOnly(); |
| 11980 | result.packedSint64_.MakeReadOnly(); |
| 11981 | result.packedFixed32_.MakeReadOnly(); |
| 11982 | result.packedFixed64_.MakeReadOnly(); |
| 11983 | result.packedSfixed32_.MakeReadOnly(); |
| 11984 | result.packedSfixed64_.MakeReadOnly(); |
| 11985 | result.packedFloat_.MakeReadOnly(); |
| 11986 | result.packedDouble_.MakeReadOnly(); |
| 11987 | result.packedBool_.MakeReadOnly(); |
| 11988 | result.packedEnum_.MakeReadOnly(); |
| 11989 | TestPackedTypes returnMe = result; |
| 11990 | result = null; |
| 11991 | return returnMe; |
| 11992 | } |
| 11993 | |
| 11994 | public override Builder MergeFrom(pb::IMessage other) { |
| 11995 | if (other is TestPackedTypes) { |
| 11996 | return MergeFrom((TestPackedTypes) other); |
| 11997 | } else { |
| 11998 | base.MergeFrom(other); |
| 11999 | return this; |
| 12000 | } |
| 12001 | } |
| 12002 | |
| 12003 | public override Builder MergeFrom(TestPackedTypes other) { |
| 12004 | if (other == TestPackedTypes.DefaultInstance) return this; |
| 12005 | if (other.packedInt32_.Count != 0) { |
| 12006 | base.AddRange(other.packedInt32_, result.packedInt32_); |
| 12007 | } |
| 12008 | if (other.packedInt64_.Count != 0) { |
| 12009 | base.AddRange(other.packedInt64_, result.packedInt64_); |
| 12010 | } |
| 12011 | if (other.packedUint32_.Count != 0) { |
| 12012 | base.AddRange(other.packedUint32_, result.packedUint32_); |
| 12013 | } |
| 12014 | if (other.packedUint64_.Count != 0) { |
| 12015 | base.AddRange(other.packedUint64_, result.packedUint64_); |
| 12016 | } |
| 12017 | if (other.packedSint32_.Count != 0) { |
| 12018 | base.AddRange(other.packedSint32_, result.packedSint32_); |
| 12019 | } |
| 12020 | if (other.packedSint64_.Count != 0) { |
| 12021 | base.AddRange(other.packedSint64_, result.packedSint64_); |
| 12022 | } |
| 12023 | if (other.packedFixed32_.Count != 0) { |
| 12024 | base.AddRange(other.packedFixed32_, result.packedFixed32_); |
| 12025 | } |
| 12026 | if (other.packedFixed64_.Count != 0) { |
| 12027 | base.AddRange(other.packedFixed64_, result.packedFixed64_); |
| 12028 | } |
| 12029 | if (other.packedSfixed32_.Count != 0) { |
| 12030 | base.AddRange(other.packedSfixed32_, result.packedSfixed32_); |
| 12031 | } |
| 12032 | if (other.packedSfixed64_.Count != 0) { |
| 12033 | base.AddRange(other.packedSfixed64_, result.packedSfixed64_); |
| 12034 | } |
| 12035 | if (other.packedFloat_.Count != 0) { |
| 12036 | base.AddRange(other.packedFloat_, result.packedFloat_); |
| 12037 | } |
| 12038 | if (other.packedDouble_.Count != 0) { |
| 12039 | base.AddRange(other.packedDouble_, result.packedDouble_); |
| 12040 | } |
| 12041 | if (other.packedBool_.Count != 0) { |
| 12042 | base.AddRange(other.packedBool_, result.packedBool_); |
| 12043 | } |
| 12044 | if (other.packedEnum_.Count != 0) { |
| 12045 | base.AddRange(other.packedEnum_, result.packedEnum_); |
| 12046 | } |
| 12047 | this.MergeUnknownFields(other.UnknownFields); |
| 12048 | return this; |
| 12049 | } |
| 12050 | |
| 12051 | public override Builder MergeFrom(pb::CodedInputStream input) { |
| 12052 | return MergeFrom(input, pb::ExtensionRegistry.Empty); |
| 12053 | } |
| 12054 | |
| 12055 | public override Builder MergeFrom(pb::CodedInputStream input, pb::ExtensionRegistry extensionRegistry) { |
| 12056 | pb::UnknownFieldSet.Builder unknownFields = pb::UnknownFieldSet.CreateBuilder(this.UnknownFields); |
| 12057 | while (true) { |
| 12058 | uint tag = input.ReadTag(); |
| 12059 | switch (tag) { |
| 12060 | case 0: { |
| 12061 | this.UnknownFields = unknownFields.Build(); |
| 12062 | return this; |
| 12063 | } |
| 12064 | default: { |
| 12065 | if (!ParseUnknownField(input, unknownFields, extensionRegistry, tag)) { |
| 12066 | this.UnknownFields = unknownFields.Build(); |
| 12067 | return this; |
| 12068 | } |
| 12069 | break; |
| 12070 | } |
| 12071 | case 722: { |
| 12072 | int length = input.ReadInt32(); |
| 12073 | int limit = input.PushLimit(length); |
| 12074 | while (!input.ReachedLimit) { |
| 12075 | AddPackedInt32(input.ReadInt32()); |
| 12076 | } |
| 12077 | input.PopLimit(limit); |
| 12078 | break; |
| 12079 | } |
| 12080 | case 730: { |
| 12081 | int length = input.ReadInt32(); |
| 12082 | int limit = input.PushLimit(length); |
| 12083 | while (!input.ReachedLimit) { |
| 12084 | AddPackedInt64(input.ReadInt64()); |
| 12085 | } |
| 12086 | input.PopLimit(limit); |
| 12087 | break; |
| 12088 | } |
| 12089 | case 738: { |
| 12090 | int length = input.ReadInt32(); |
| 12091 | int limit = input.PushLimit(length); |
| 12092 | while (!input.ReachedLimit) { |
| 12093 | AddPackedUint32(input.ReadUInt32()); |
| 12094 | } |
| 12095 | input.PopLimit(limit); |
| 12096 | break; |
| 12097 | } |
| 12098 | case 746: { |
| 12099 | int length = input.ReadInt32(); |
| 12100 | int limit = input.PushLimit(length); |
| 12101 | while (!input.ReachedLimit) { |
| 12102 | AddPackedUint64(input.ReadUInt64()); |
| 12103 | } |
| 12104 | input.PopLimit(limit); |
| 12105 | break; |
| 12106 | } |
| 12107 | case 754: { |
| 12108 | int length = input.ReadInt32(); |
| 12109 | int limit = input.PushLimit(length); |
| 12110 | while (!input.ReachedLimit) { |
| 12111 | AddPackedSint32(input.ReadSInt32()); |
| 12112 | } |
| 12113 | input.PopLimit(limit); |
| 12114 | break; |
| 12115 | } |
| 12116 | case 762: { |
| 12117 | int length = input.ReadInt32(); |
| 12118 | int limit = input.PushLimit(length); |
| 12119 | while (!input.ReachedLimit) { |
| 12120 | AddPackedSint64(input.ReadSInt64()); |
| 12121 | } |
| 12122 | input.PopLimit(limit); |
| 12123 | break; |
| 12124 | } |
| 12125 | case 770: { |
| 12126 | int length = input.ReadInt32(); |
| 12127 | int limit = input.PushLimit(length); |
| 12128 | while (!input.ReachedLimit) { |
| 12129 | AddPackedFixed32(input.ReadFixed32()); |
| 12130 | } |
| 12131 | input.PopLimit(limit); |
| 12132 | break; |
| 12133 | } |
| 12134 | case 778: { |
| 12135 | int length = input.ReadInt32(); |
| 12136 | int limit = input.PushLimit(length); |
| 12137 | while (!input.ReachedLimit) { |
| 12138 | AddPackedFixed64(input.ReadFixed64()); |
| 12139 | } |
| 12140 | input.PopLimit(limit); |
| 12141 | break; |
| 12142 | } |
| 12143 | case 786: { |
| 12144 | int length = input.ReadInt32(); |
| 12145 | int limit = input.PushLimit(length); |
| 12146 | while (!input.ReachedLimit) { |
| 12147 | AddPackedSfixed32(input.ReadSFixed32()); |
| 12148 | } |
| 12149 | input.PopLimit(limit); |
| 12150 | break; |
| 12151 | } |
| 12152 | case 794: { |
| 12153 | int length = input.ReadInt32(); |
| 12154 | int limit = input.PushLimit(length); |
| 12155 | while (!input.ReachedLimit) { |
| 12156 | AddPackedSfixed64(input.ReadSFixed64()); |
| 12157 | } |
| 12158 | input.PopLimit(limit); |
| 12159 | break; |
| 12160 | } |
| 12161 | case 802: { |
| 12162 | int length = input.ReadInt32(); |
| 12163 | int limit = input.PushLimit(length); |
| 12164 | while (!input.ReachedLimit) { |
| 12165 | AddPackedFloat(input.ReadFloat()); |
| 12166 | } |
| 12167 | input.PopLimit(limit); |
| 12168 | break; |
| 12169 | } |
| 12170 | case 810: { |
| 12171 | int length = input.ReadInt32(); |
| 12172 | int limit = input.PushLimit(length); |
| 12173 | while (!input.ReachedLimit) { |
| 12174 | AddPackedDouble(input.ReadDouble()); |
| 12175 | } |
| 12176 | input.PopLimit(limit); |
| 12177 | break; |
| 12178 | } |
| 12179 | case 818: { |
| 12180 | int length = input.ReadInt32(); |
| 12181 | int limit = input.PushLimit(length); |
| 12182 | while (!input.ReachedLimit) { |
| 12183 | AddPackedBool(input.ReadBool()); |
| 12184 | } |
| 12185 | input.PopLimit(limit); |
| 12186 | break; |
| 12187 | } |
| 12188 | case 826: { |
| 12189 | int length = input.ReadInt32(); |
| 12190 | int oldLimit = input.PushLimit(length); |
| 12191 | while (!input.ReachedLimit) { |
| 12192 | int rawValue = input.ReadEnum(); |
| 12193 | if (!global::System.Enum.IsDefined(typeof(global::Google.ProtocolBuffers.TestProtos.ForeignEnum), rawValue)) { |
| 12194 | unknownFields.MergeVarintField(103, (ulong) rawValue); |
| 12195 | } else { |
| 12196 | AddPackedEnum((global::Google.ProtocolBuffers.TestProtos.ForeignEnum) rawValue); |
| 12197 | } |
| 12198 | } |
| 12199 | input.PopLimit(oldLimit); |
| 12200 | break; |
| 12201 | } |
| 12202 | } |
| 12203 | } |
| 12204 | } |
| 12205 | |
| 12206 | |
| 12207 | public scg::IList<int> PackedInt32List { |
| 12208 | get { return result.packedInt32_; } |
| 12209 | } |
| 12210 | public int PackedInt32Count { |
| 12211 | get { return result.PackedInt32Count; } |
| 12212 | } |
| 12213 | public int GetPackedInt32(int index) { |
| 12214 | return result.GetPackedInt32(index); |
| 12215 | } |
| 12216 | public Builder SetPackedInt32(int index, int value) { |
| 12217 | result.packedInt32_[index] = value; |
| 12218 | return this; |
| 12219 | } |
| 12220 | public Builder AddPackedInt32(int value) { |
| 12221 | result.packedInt32_.Add(value); |
| 12222 | return this; |
| 12223 | } |
| 12224 | public Builder AddRangePackedInt32(scg::IEnumerable<int> values) { |
| 12225 | base.AddRange(values, result.packedInt32_); |
| 12226 | return this; |
| 12227 | } |
| 12228 | public Builder ClearPackedInt32() { |
| 12229 | result.packedInt32_.Clear(); |
| 12230 | return this; |
| 12231 | } |
| 12232 | |
| 12233 | public scg::IList<long> PackedInt64List { |
| 12234 | get { return result.packedInt64_; } |
| 12235 | } |
| 12236 | public int PackedInt64Count { |
| 12237 | get { return result.PackedInt64Count; } |
| 12238 | } |
| 12239 | public long GetPackedInt64(int index) { |
| 12240 | return result.GetPackedInt64(index); |
| 12241 | } |
| 12242 | public Builder SetPackedInt64(int index, long value) { |
| 12243 | result.packedInt64_[index] = value; |
| 12244 | return this; |
| 12245 | } |
| 12246 | public Builder AddPackedInt64(long value) { |
| 12247 | result.packedInt64_.Add(value); |
| 12248 | return this; |
| 12249 | } |
| 12250 | public Builder AddRangePackedInt64(scg::IEnumerable<long> values) { |
| 12251 | base.AddRange(values, result.packedInt64_); |
| 12252 | return this; |
| 12253 | } |
| 12254 | public Builder ClearPackedInt64() { |
| 12255 | result.packedInt64_.Clear(); |
| 12256 | return this; |
| 12257 | } |
| 12258 | |
| 12259 | public scg::IList<uint> PackedUint32List { |
| 12260 | get { return result.packedUint32_; } |
| 12261 | } |
| 12262 | public int PackedUint32Count { |
| 12263 | get { return result.PackedUint32Count; } |
| 12264 | } |
| 12265 | public uint GetPackedUint32(int index) { |
| 12266 | return result.GetPackedUint32(index); |
| 12267 | } |
| 12268 | public Builder SetPackedUint32(int index, uint value) { |
| 12269 | result.packedUint32_[index] = value; |
| 12270 | return this; |
| 12271 | } |
| 12272 | public Builder AddPackedUint32(uint value) { |
| 12273 | result.packedUint32_.Add(value); |
| 12274 | return this; |
| 12275 | } |
| 12276 | public Builder AddRangePackedUint32(scg::IEnumerable<uint> values) { |
| 12277 | base.AddRange(values, result.packedUint32_); |
| 12278 | return this; |
| 12279 | } |
| 12280 | public Builder ClearPackedUint32() { |
| 12281 | result.packedUint32_.Clear(); |
| 12282 | return this; |
| 12283 | } |
| 12284 | |
| 12285 | public scg::IList<ulong> PackedUint64List { |
| 12286 | get { return result.packedUint64_; } |
| 12287 | } |
| 12288 | public int PackedUint64Count { |
| 12289 | get { return result.PackedUint64Count; } |
| 12290 | } |
| 12291 | public ulong GetPackedUint64(int index) { |
| 12292 | return result.GetPackedUint64(index); |
| 12293 | } |
| 12294 | public Builder SetPackedUint64(int index, ulong value) { |
| 12295 | result.packedUint64_[index] = value; |
| 12296 | return this; |
| 12297 | } |
| 12298 | public Builder AddPackedUint64(ulong value) { |
| 12299 | result.packedUint64_.Add(value); |
| 12300 | return this; |
| 12301 | } |
| 12302 | public Builder AddRangePackedUint64(scg::IEnumerable<ulong> values) { |
| 12303 | base.AddRange(values, result.packedUint64_); |
| 12304 | return this; |
| 12305 | } |
| 12306 | public Builder ClearPackedUint64() { |
| 12307 | result.packedUint64_.Clear(); |
| 12308 | return this; |
| 12309 | } |
| 12310 | |
| 12311 | public scg::IList<int> PackedSint32List { |
| 12312 | get { return result.packedSint32_; } |
| 12313 | } |
| 12314 | public int PackedSint32Count { |
| 12315 | get { return result.PackedSint32Count; } |
| 12316 | } |
| 12317 | public int GetPackedSint32(int index) { |
| 12318 | return result.GetPackedSint32(index); |
| 12319 | } |
| 12320 | public Builder SetPackedSint32(int index, int value) { |
| 12321 | result.packedSint32_[index] = value; |
| 12322 | return this; |
| 12323 | } |
| 12324 | public Builder AddPackedSint32(int value) { |
| 12325 | result.packedSint32_.Add(value); |
| 12326 | return this; |
| 12327 | } |
| 12328 | public Builder AddRangePackedSint32(scg::IEnumerable<int> values) { |
| 12329 | base.AddRange(values, result.packedSint32_); |
| 12330 | return this; |
| 12331 | } |
| 12332 | public Builder ClearPackedSint32() { |
| 12333 | result.packedSint32_.Clear(); |
| 12334 | return this; |
| 12335 | } |
| 12336 | |
| 12337 | public scg::IList<long> PackedSint64List { |
| 12338 | get { return result.packedSint64_; } |
| 12339 | } |
| 12340 | public int PackedSint64Count { |
| 12341 | get { return result.PackedSint64Count; } |
| 12342 | } |
| 12343 | public long GetPackedSint64(int index) { |
| 12344 | return result.GetPackedSint64(index); |
| 12345 | } |
| 12346 | public Builder SetPackedSint64(int index, long value) { |
| 12347 | result.packedSint64_[index] = value; |
| 12348 | return this; |
| 12349 | } |
| 12350 | public Builder AddPackedSint64(long value) { |
| 12351 | result.packedSint64_.Add(value); |
| 12352 | return this; |
| 12353 | } |
| 12354 | public Builder AddRangePackedSint64(scg::IEnumerable<long> values) { |
| 12355 | base.AddRange(values, result.packedSint64_); |
| 12356 | return this; |
| 12357 | } |
| 12358 | public Builder ClearPackedSint64() { |
| 12359 | result.packedSint64_.Clear(); |
| 12360 | return this; |
| 12361 | } |
| 12362 | |
| 12363 | public scg::IList<uint> PackedFixed32List { |
| 12364 | get { return result.packedFixed32_; } |
| 12365 | } |
| 12366 | public int PackedFixed32Count { |
| 12367 | get { return result.PackedFixed32Count; } |
| 12368 | } |
| 12369 | public uint GetPackedFixed32(int index) { |
| 12370 | return result.GetPackedFixed32(index); |
| 12371 | } |
| 12372 | public Builder SetPackedFixed32(int index, uint value) { |
| 12373 | result.packedFixed32_[index] = value; |
| 12374 | return this; |
| 12375 | } |
| 12376 | public Builder AddPackedFixed32(uint value) { |
| 12377 | result.packedFixed32_.Add(value); |
| 12378 | return this; |
| 12379 | } |
| 12380 | public Builder AddRangePackedFixed32(scg::IEnumerable<uint> values) { |
| 12381 | base.AddRange(values, result.packedFixed32_); |
| 12382 | return this; |
| 12383 | } |
| 12384 | public Builder ClearPackedFixed32() { |
| 12385 | result.packedFixed32_.Clear(); |
| 12386 | return this; |
| 12387 | } |
| 12388 | |
| 12389 | public scg::IList<ulong> PackedFixed64List { |
| 12390 | get { return result.packedFixed64_; } |
| 12391 | } |
| 12392 | public int PackedFixed64Count { |
| 12393 | get { return result.PackedFixed64Count; } |
| 12394 | } |
| 12395 | public ulong GetPackedFixed64(int index) { |
| 12396 | return result.GetPackedFixed64(index); |
| 12397 | } |
| 12398 | public Builder SetPackedFixed64(int index, ulong value) { |
| 12399 | result.packedFixed64_[index] = value; |
| 12400 | return this; |
| 12401 | } |
| 12402 | public Builder AddPackedFixed64(ulong value) { |
| 12403 | result.packedFixed64_.Add(value); |
| 12404 | return this; |
| 12405 | } |
| 12406 | public Builder AddRangePackedFixed64(scg::IEnumerable<ulong> values) { |
| 12407 | base.AddRange(values, result.packedFixed64_); |
| 12408 | return this; |
| 12409 | } |
| 12410 | public Builder ClearPackedFixed64() { |
| 12411 | result.packedFixed64_.Clear(); |
| 12412 | return this; |
| 12413 | } |
| 12414 | |
| 12415 | public scg::IList<int> PackedSfixed32List { |
| 12416 | get { return result.packedSfixed32_; } |
| 12417 | } |
| 12418 | public int PackedSfixed32Count { |
| 12419 | get { return result.PackedSfixed32Count; } |
| 12420 | } |
| 12421 | public int GetPackedSfixed32(int index) { |
| 12422 | return result.GetPackedSfixed32(index); |
| 12423 | } |
| 12424 | public Builder SetPackedSfixed32(int index, int value) { |
| 12425 | result.packedSfixed32_[index] = value; |
| 12426 | return this; |
| 12427 | } |
| 12428 | public Builder AddPackedSfixed32(int value) { |
| 12429 | result.packedSfixed32_.Add(value); |
| 12430 | return this; |
| 12431 | } |
| 12432 | public Builder AddRangePackedSfixed32(scg::IEnumerable<int> values) { |
| 12433 | base.AddRange(values, result.packedSfixed32_); |
| 12434 | return this; |
| 12435 | } |
| 12436 | public Builder ClearPackedSfixed32() { |
| 12437 | result.packedSfixed32_.Clear(); |
| 12438 | return this; |
| 12439 | } |
| 12440 | |
| 12441 | public scg::IList<long> PackedSfixed64List { |
| 12442 | get { return result.packedSfixed64_; } |
| 12443 | } |
| 12444 | public int PackedSfixed64Count { |
| 12445 | get { return result.PackedSfixed64Count; } |
| 12446 | } |
| 12447 | public long GetPackedSfixed64(int index) { |
| 12448 | return result.GetPackedSfixed64(index); |
| 12449 | } |
| 12450 | public Builder SetPackedSfixed64(int index, long value) { |
| 12451 | result.packedSfixed64_[index] = value; |
| 12452 | return this; |
| 12453 | } |
| 12454 | public Builder AddPackedSfixed64(long value) { |
| 12455 | result.packedSfixed64_.Add(value); |
| 12456 | return this; |
| 12457 | } |
| 12458 | public Builder AddRangePackedSfixed64(scg::IEnumerable<long> values) { |
| 12459 | base.AddRange(values, result.packedSfixed64_); |
| 12460 | return this; |
| 12461 | } |
| 12462 | public Builder ClearPackedSfixed64() { |
| 12463 | result.packedSfixed64_.Clear(); |
| 12464 | return this; |
| 12465 | } |
| 12466 | |
| 12467 | public scg::IList<float> PackedFloatList { |
| 12468 | get { return result.packedFloat_; } |
| 12469 | } |
| 12470 | public int PackedFloatCount { |
| 12471 | get { return result.PackedFloatCount; } |
| 12472 | } |
| 12473 | public float GetPackedFloat(int index) { |
| 12474 | return result.GetPackedFloat(index); |
| 12475 | } |
| 12476 | public Builder SetPackedFloat(int index, float value) { |
| 12477 | result.packedFloat_[index] = value; |
| 12478 | return this; |
| 12479 | } |
| 12480 | public Builder AddPackedFloat(float value) { |
| 12481 | result.packedFloat_.Add(value); |
| 12482 | return this; |
| 12483 | } |
| 12484 | public Builder AddRangePackedFloat(scg::IEnumerable<float> values) { |
| 12485 | base.AddRange(values, result.packedFloat_); |
| 12486 | return this; |
| 12487 | } |
| 12488 | public Builder ClearPackedFloat() { |
| 12489 | result.packedFloat_.Clear(); |
| 12490 | return this; |
| 12491 | } |
| 12492 | |
| 12493 | public scg::IList<double> PackedDoubleList { |
| 12494 | get { return result.packedDouble_; } |
| 12495 | } |
| 12496 | public int PackedDoubleCount { |
| 12497 | get { return result.PackedDoubleCount; } |
| 12498 | } |
| 12499 | public double GetPackedDouble(int index) { |
| 12500 | return result.GetPackedDouble(index); |
| 12501 | } |
| 12502 | public Builder SetPackedDouble(int index, double value) { |
| 12503 | result.packedDouble_[index] = value; |
| 12504 | return this; |
| 12505 | } |
| 12506 | public Builder AddPackedDouble(double value) { |
| 12507 | result.packedDouble_.Add(value); |
| 12508 | return this; |
| 12509 | } |
| 12510 | public Builder AddRangePackedDouble(scg::IEnumerable<double> values) { |
| 12511 | base.AddRange(values, result.packedDouble_); |
| 12512 | return this; |
| 12513 | } |
| 12514 | public Builder ClearPackedDouble() { |
| 12515 | result.packedDouble_.Clear(); |
| 12516 | return this; |
| 12517 | } |
| 12518 | |
| 12519 | public scg::IList<bool> PackedBoolList { |
| 12520 | get { return result.packedBool_; } |
| 12521 | } |
| 12522 | public int PackedBoolCount { |
| 12523 | get { return result.PackedBoolCount; } |
| 12524 | } |
| 12525 | public bool GetPackedBool(int index) { |
| 12526 | return result.GetPackedBool(index); |
| 12527 | } |
| 12528 | public Builder SetPackedBool(int index, bool value) { |
| 12529 | result.packedBool_[index] = value; |
| 12530 | return this; |
| 12531 | } |
| 12532 | public Builder AddPackedBool(bool value) { |
| 12533 | result.packedBool_.Add(value); |
| 12534 | return this; |
| 12535 | } |
| 12536 | public Builder AddRangePackedBool(scg::IEnumerable<bool> values) { |
| 12537 | base.AddRange(values, result.packedBool_); |
| 12538 | return this; |
| 12539 | } |
| 12540 | public Builder ClearPackedBool() { |
| 12541 | result.packedBool_.Clear(); |
| 12542 | return this; |
| 12543 | } |
| 12544 | |
| 12545 | public scg::IList<global::Google.ProtocolBuffers.TestProtos.ForeignEnum> PackedEnumList { |
| 12546 | get { return result.packedEnum_; } |
| 12547 | } |
| 12548 | public int PackedEnumCount { |
| 12549 | get { return result.PackedEnumCount; } |
| 12550 | } |
| 12551 | public global::Google.ProtocolBuffers.TestProtos.ForeignEnum GetPackedEnum(int index) { |
| 12552 | return result.GetPackedEnum(index); |
| 12553 | } |
| 12554 | public Builder SetPackedEnum(int index, global::Google.ProtocolBuffers.TestProtos.ForeignEnum value) { |
| 12555 | result.packedEnum_[index] = value; |
| 12556 | return this; |
| 12557 | } |
| 12558 | public Builder AddPackedEnum(global::Google.ProtocolBuffers.TestProtos.ForeignEnum value) { |
| 12559 | result.packedEnum_.Add(value); |
| 12560 | return this; |
| 12561 | } |
| 12562 | public Builder AddRangePackedEnum(scg::IEnumerable<global::Google.ProtocolBuffers.TestProtos.ForeignEnum> values) { |
| 12563 | base.AddRange(values, result.packedEnum_); |
| 12564 | return this; |
| 12565 | } |
| 12566 | public Builder ClearPackedEnum() { |
| 12567 | result.packedEnum_.Clear(); |
| 12568 | return this; |
| 12569 | } |
| 12570 | } |
| 12571 | } |
| 12572 | |
| 12573 | public sealed partial class TestPackedExtensions : pb::ExtendableMessage<TestPackedExtensions, TestPackedExtensions.Builder> { |
| 12574 | private static readonly TestPackedExtensions defaultInstance = new Builder().BuildPartial(); |
| 12575 | public static TestPackedExtensions DefaultInstance { |
| 12576 | get { return defaultInstance; } |
| 12577 | } |
| 12578 | |
| 12579 | public override TestPackedExtensions DefaultInstanceForType { |
| 12580 | get { return defaultInstance; } |
| 12581 | } |
| 12582 | |
| 12583 | protected override TestPackedExtensions ThisMessage { |
| 12584 | get { return this; } |
| 12585 | } |
| 12586 | |
| 12587 | public static pbd::MessageDescriptor Descriptor { |
| 12588 | get { return global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.internal__static_protobuf_unittest_TestPackedExtensions__Descriptor; } |
| 12589 | } |
| 12590 | |
| 12591 | protected override pb::FieldAccess.FieldAccessorTable<TestPackedExtensions, TestPackedExtensions.Builder> InternalFieldAccessors { |
| 12592 | get { return global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.internal__static_protobuf_unittest_TestPackedExtensions__FieldAccessorTable; } |
| 12593 | } |
| 12594 | |
| 12595 | public override bool IsInitialized { |
| 12596 | get { |
| 12597 | if (!ExtensionsAreInitialized) return false; |
| 12598 | return true; |
| 12599 | } |
| 12600 | } |
| 12601 | |
| 12602 | public override void WriteTo(pb::CodedOutputStream output) { |
| 12603 | pb::ExtendableMessage<TestPackedExtensions, TestPackedExtensions.Builder>.ExtensionWriter extensionWriter = CreateExtensionWriter(this); |
| 12604 | extensionWriter.WriteUntil(536870912, output); |
| 12605 | UnknownFields.WriteTo(output); |
| 12606 | } |
| 12607 | |
| 12608 | private int memoizedSerializedSize = -1; |
| 12609 | public override int SerializedSize { |
| 12610 | get { |
| 12611 | int size = memoizedSerializedSize; |
| 12612 | if (size != -1) return size; |
| 12613 | |
| 12614 | size = 0; |
| 12615 | size += ExtensionsSerializedSize; |
| 12616 | size += UnknownFields.SerializedSize; |
| 12617 | memoizedSerializedSize = size; |
| 12618 | return size; |
| 12619 | } |
| 12620 | } |
| 12621 | |
| 12622 | public static TestPackedExtensions ParseFrom(pb::ByteString data) { |
| 12623 | return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed(); |
| 12624 | } |
| 12625 | public static TestPackedExtensions ParseFrom(pb::ByteString data, pb::ExtensionRegistry extensionRegistry) { |
| 12626 | return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed(); |
| 12627 | } |
| 12628 | public static TestPackedExtensions ParseFrom(byte[] data) { |
| 12629 | return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed(); |
| 12630 | } |
| 12631 | public static TestPackedExtensions ParseFrom(byte[] data, pb::ExtensionRegistry extensionRegistry) { |
| 12632 | return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed(); |
| 12633 | } |
| 12634 | public static TestPackedExtensions ParseFrom(global::System.IO.Stream input) { |
| 12635 | return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed(); |
| 12636 | } |
| 12637 | public static TestPackedExtensions ParseFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) { |
| 12638 | return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed(); |
| 12639 | } |
| 12640 | public static TestPackedExtensions ParseFrom(pb::CodedInputStream input) { |
| 12641 | return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed(); |
| 12642 | } |
| 12643 | public static TestPackedExtensions ParseFrom(pb::CodedInputStream input, pb::ExtensionRegistry extensionRegistry) { |
| 12644 | return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed(); |
| 12645 | } |
| 12646 | public static Builder CreateBuilder() { return new Builder(); } |
| 12647 | public override Builder CreateBuilderForType() { return new Builder(); } |
| 12648 | public static Builder CreateBuilder(TestPackedExtensions prototype) { |
| 12649 | return (Builder) new Builder().MergeFrom(prototype); |
| 12650 | } |
| 12651 | |
| 12652 | public sealed partial class Builder : pb::ExtendableBuilder<TestPackedExtensions, Builder> { |
| 12653 | protected override Builder ThisBuilder { |
| 12654 | get { return this; } |
| 12655 | } |
| 12656 | public Builder() {} |
| 12657 | |
| 12658 | TestPackedExtensions result = new TestPackedExtensions(); |
| 12659 | |
| 12660 | protected override TestPackedExtensions MessageBeingBuilt { |
| 12661 | get { return result; } |
| 12662 | } |
| 12663 | |
| 12664 | public override Builder Clear() { |
| 12665 | result = new TestPackedExtensions(); |
| 12666 | return this; |
| 12667 | } |
| 12668 | |
| 12669 | public override Builder Clone() { |
| 12670 | return new Builder().MergeFrom(result); |
| 12671 | } |
| 12672 | |
| 12673 | public override pbd::MessageDescriptor DescriptorForType { |
| 12674 | get { return TestPackedExtensions.Descriptor; } |
| 12675 | } |
| 12676 | |
| 12677 | public override TestPackedExtensions DefaultInstanceForType { |
| 12678 | get { return TestPackedExtensions.DefaultInstance; } |
| 12679 | } |
| 12680 | |
| 12681 | public override TestPackedExtensions BuildPartial() { |
| 12682 | TestPackedExtensions returnMe = result; |
| 12683 | result = null; |
| 12684 | return returnMe; |
| 12685 | } |
| 12686 | |
| 12687 | public override Builder MergeFrom(pb::IMessage other) { |
| 12688 | if (other is TestPackedExtensions) { |
| 12689 | return MergeFrom((TestPackedExtensions) other); |
| 12690 | } else { |
| 12691 | base.MergeFrom(other); |
| 12692 | return this; |
| 12693 | } |
| 12694 | } |
| 12695 | |
| 12696 | public override Builder MergeFrom(TestPackedExtensions other) { |
| 12697 | if (other == TestPackedExtensions.DefaultInstance) return this; |
| 12698 | this.MergeExtensionFields(other); |
| 12699 | this.MergeUnknownFields(other.UnknownFields); |
| 12700 | return this; |
| 12701 | } |
| 12702 | |
| 12703 | public override Builder MergeFrom(pb::CodedInputStream input) { |
| 12704 | return MergeFrom(input, pb::ExtensionRegistry.Empty); |
| 12705 | } |
| 12706 | |
| 12707 | public override Builder MergeFrom(pb::CodedInputStream input, pb::ExtensionRegistry extensionRegistry) { |
| 12708 | pb::UnknownFieldSet.Builder unknownFields = pb::UnknownFieldSet.CreateBuilder(this.UnknownFields); |
| 12709 | while (true) { |
| 12710 | uint tag = input.ReadTag(); |
| 12711 | switch (tag) { |
| 12712 | case 0: { |
| 12713 | this.UnknownFields = unknownFields.Build(); |
| 12714 | return this; |
| 12715 | } |
| 12716 | default: { |
| 12717 | if (!ParseUnknownField(input, unknownFields, extensionRegistry, tag)) { |
| 12718 | this.UnknownFields = unknownFields.Build(); |
| 12719 | return this; |
| 12720 | } |
| 12721 | break; |
| 12722 | } |
| 12723 | } |
| 12724 | } |
| 12725 | } |
| 12726 | |
| 12727 | } |
| 12728 | } |
| 12729 | |
Jon Skeet | 6803686 | 2008-10-22 13:30:34 +0100 | [diff] [blame] | 12730 | public sealed partial class FooRequest : pb::GeneratedMessage<FooRequest, FooRequest.Builder> { |
| 12731 | private static readonly FooRequest defaultInstance = new Builder().BuildPartial(); |
| 12732 | public static FooRequest DefaultInstance { |
| 12733 | get { return defaultInstance; } |
| 12734 | } |
| 12735 | |
| 12736 | public override FooRequest DefaultInstanceForType { |
| 12737 | get { return defaultInstance; } |
| 12738 | } |
| 12739 | |
| 12740 | protected override FooRequest ThisMessage { |
| 12741 | get { return this; } |
| 12742 | } |
| 12743 | |
| 12744 | public static pbd::MessageDescriptor Descriptor { |
| 12745 | get { return global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.internal__static_protobuf_unittest_FooRequest__Descriptor; } |
| 12746 | } |
| 12747 | |
| 12748 | protected override pb::FieldAccess.FieldAccessorTable<FooRequest, FooRequest.Builder> InternalFieldAccessors { |
| 12749 | get { return global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.internal__static_protobuf_unittest_FooRequest__FieldAccessorTable; } |
| 12750 | } |
| 12751 | |
| 12752 | public override bool IsInitialized { |
| 12753 | get { |
| 12754 | return true; |
| 12755 | } |
| 12756 | } |
| 12757 | |
| 12758 | public override void WriteTo(pb::CodedOutputStream output) { |
| 12759 | UnknownFields.WriteTo(output); |
| 12760 | } |
| 12761 | |
| 12762 | private int memoizedSerializedSize = -1; |
| 12763 | public override int SerializedSize { |
| 12764 | get { |
| 12765 | int size = memoizedSerializedSize; |
| 12766 | if (size != -1) return size; |
| 12767 | |
| 12768 | size = 0; |
| 12769 | size += UnknownFields.SerializedSize; |
| 12770 | memoizedSerializedSize = size; |
| 12771 | return size; |
| 12772 | } |
| 12773 | } |
| 12774 | |
| 12775 | public static FooRequest ParseFrom(pb::ByteString data) { |
| 12776 | return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed(); |
| 12777 | } |
| 12778 | public static FooRequest ParseFrom(pb::ByteString data, pb::ExtensionRegistry extensionRegistry) { |
| 12779 | return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed(); |
| 12780 | } |
| 12781 | public static FooRequest ParseFrom(byte[] data) { |
| 12782 | return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed(); |
| 12783 | } |
| 12784 | public static FooRequest ParseFrom(byte[] data, pb::ExtensionRegistry extensionRegistry) { |
| 12785 | return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed(); |
| 12786 | } |
| 12787 | public static FooRequest ParseFrom(global::System.IO.Stream input) { |
| 12788 | return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed(); |
| 12789 | } |
| 12790 | public static FooRequest ParseFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) { |
| 12791 | return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed(); |
| 12792 | } |
| 12793 | public static FooRequest ParseFrom(pb::CodedInputStream input) { |
| 12794 | return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed(); |
| 12795 | } |
| 12796 | public static FooRequest ParseFrom(pb::CodedInputStream input, pb::ExtensionRegistry extensionRegistry) { |
| 12797 | return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed(); |
| 12798 | } |
| 12799 | public static Builder CreateBuilder() { return new Builder(); } |
| 12800 | public override Builder CreateBuilderForType() { return new Builder(); } |
| 12801 | public static Builder CreateBuilder(FooRequest prototype) { |
| 12802 | return (Builder) new Builder().MergeFrom(prototype); |
| 12803 | } |
| 12804 | |
| 12805 | public sealed partial class Builder : pb::GeneratedBuilder<FooRequest, Builder> { |
| 12806 | protected override Builder ThisBuilder { |
| 12807 | get { return this; } |
| 12808 | } |
| 12809 | public Builder() {} |
| 12810 | |
| 12811 | FooRequest result = new FooRequest(); |
| 12812 | |
| 12813 | protected override FooRequest MessageBeingBuilt { |
| 12814 | get { return result; } |
| 12815 | } |
| 12816 | |
| 12817 | public override Builder Clear() { |
| 12818 | result = new FooRequest(); |
| 12819 | return this; |
| 12820 | } |
| 12821 | |
| 12822 | public override Builder Clone() { |
| 12823 | return new Builder().MergeFrom(result); |
| 12824 | } |
| 12825 | |
| 12826 | public override pbd::MessageDescriptor DescriptorForType { |
| 12827 | get { return FooRequest.Descriptor; } |
| 12828 | } |
| 12829 | |
| 12830 | public override FooRequest DefaultInstanceForType { |
| 12831 | get { return FooRequest.DefaultInstance; } |
| 12832 | } |
| 12833 | |
| 12834 | public override FooRequest BuildPartial() { |
| 12835 | FooRequest returnMe = result; |
| 12836 | result = null; |
| 12837 | return returnMe; |
| 12838 | } |
| 12839 | |
| 12840 | public override Builder MergeFrom(pb::IMessage other) { |
| 12841 | if (other is FooRequest) { |
| 12842 | return MergeFrom((FooRequest) other); |
| 12843 | } else { |
| 12844 | base.MergeFrom(other); |
| 12845 | return this; |
| 12846 | } |
| 12847 | } |
| 12848 | |
| 12849 | public override Builder MergeFrom(FooRequest other) { |
| 12850 | if (other == FooRequest.DefaultInstance) return this; |
| 12851 | this.MergeUnknownFields(other.UnknownFields); |
| 12852 | return this; |
| 12853 | } |
| 12854 | |
| 12855 | public override Builder MergeFrom(pb::CodedInputStream input) { |
| 12856 | return MergeFrom(input, pb::ExtensionRegistry.Empty); |
| 12857 | } |
| 12858 | |
| 12859 | public override Builder MergeFrom(pb::CodedInputStream input, pb::ExtensionRegistry extensionRegistry) { |
| 12860 | pb::UnknownFieldSet.Builder unknownFields = pb::UnknownFieldSet.CreateBuilder(this.UnknownFields); |
| 12861 | while (true) { |
| 12862 | uint tag = input.ReadTag(); |
| 12863 | switch (tag) { |
| 12864 | case 0: { |
| 12865 | this.UnknownFields = unknownFields.Build(); |
| 12866 | return this; |
| 12867 | } |
| 12868 | default: { |
| 12869 | if (!ParseUnknownField(input, unknownFields, extensionRegistry, tag)) { |
| 12870 | this.UnknownFields = unknownFields.Build(); |
| 12871 | return this; |
| 12872 | } |
| 12873 | break; |
| 12874 | } |
| 12875 | } |
| 12876 | } |
| 12877 | } |
| 12878 | |
| 12879 | } |
| 12880 | } |
| 12881 | |
| 12882 | public sealed partial class FooResponse : pb::GeneratedMessage<FooResponse, FooResponse.Builder> { |
| 12883 | private static readonly FooResponse defaultInstance = new Builder().BuildPartial(); |
| 12884 | public static FooResponse DefaultInstance { |
| 12885 | get { return defaultInstance; } |
| 12886 | } |
| 12887 | |
| 12888 | public override FooResponse DefaultInstanceForType { |
| 12889 | get { return defaultInstance; } |
| 12890 | } |
| 12891 | |
| 12892 | protected override FooResponse ThisMessage { |
| 12893 | get { return this; } |
| 12894 | } |
| 12895 | |
| 12896 | public static pbd::MessageDescriptor Descriptor { |
| 12897 | get { return global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.internal__static_protobuf_unittest_FooResponse__Descriptor; } |
| 12898 | } |
| 12899 | |
| 12900 | protected override pb::FieldAccess.FieldAccessorTable<FooResponse, FooResponse.Builder> InternalFieldAccessors { |
| 12901 | get { return global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.internal__static_protobuf_unittest_FooResponse__FieldAccessorTable; } |
| 12902 | } |
| 12903 | |
| 12904 | public override bool IsInitialized { |
| 12905 | get { |
| 12906 | return true; |
| 12907 | } |
| 12908 | } |
| 12909 | |
| 12910 | public override void WriteTo(pb::CodedOutputStream output) { |
| 12911 | UnknownFields.WriteTo(output); |
| 12912 | } |
| 12913 | |
| 12914 | private int memoizedSerializedSize = -1; |
| 12915 | public override int SerializedSize { |
| 12916 | get { |
| 12917 | int size = memoizedSerializedSize; |
| 12918 | if (size != -1) return size; |
| 12919 | |
| 12920 | size = 0; |
| 12921 | size += UnknownFields.SerializedSize; |
| 12922 | memoizedSerializedSize = size; |
| 12923 | return size; |
| 12924 | } |
| 12925 | } |
| 12926 | |
| 12927 | public static FooResponse ParseFrom(pb::ByteString data) { |
| 12928 | return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed(); |
| 12929 | } |
| 12930 | public static FooResponse ParseFrom(pb::ByteString data, pb::ExtensionRegistry extensionRegistry) { |
| 12931 | return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed(); |
| 12932 | } |
| 12933 | public static FooResponse ParseFrom(byte[] data) { |
| 12934 | return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed(); |
| 12935 | } |
| 12936 | public static FooResponse ParseFrom(byte[] data, pb::ExtensionRegistry extensionRegistry) { |
| 12937 | return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed(); |
| 12938 | } |
| 12939 | public static FooResponse ParseFrom(global::System.IO.Stream input) { |
| 12940 | return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed(); |
| 12941 | } |
| 12942 | public static FooResponse ParseFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) { |
| 12943 | return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed(); |
| 12944 | } |
| 12945 | public static FooResponse ParseFrom(pb::CodedInputStream input) { |
| 12946 | return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed(); |
| 12947 | } |
| 12948 | public static FooResponse ParseFrom(pb::CodedInputStream input, pb::ExtensionRegistry extensionRegistry) { |
| 12949 | return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed(); |
| 12950 | } |
| 12951 | public static Builder CreateBuilder() { return new Builder(); } |
| 12952 | public override Builder CreateBuilderForType() { return new Builder(); } |
| 12953 | public static Builder CreateBuilder(FooResponse prototype) { |
| 12954 | return (Builder) new Builder().MergeFrom(prototype); |
| 12955 | } |
| 12956 | |
| 12957 | public sealed partial class Builder : pb::GeneratedBuilder<FooResponse, Builder> { |
| 12958 | protected override Builder ThisBuilder { |
| 12959 | get { return this; } |
| 12960 | } |
| 12961 | public Builder() {} |
| 12962 | |
| 12963 | FooResponse result = new FooResponse(); |
| 12964 | |
| 12965 | protected override FooResponse MessageBeingBuilt { |
| 12966 | get { return result; } |
| 12967 | } |
| 12968 | |
| 12969 | public override Builder Clear() { |
| 12970 | result = new FooResponse(); |
| 12971 | return this; |
| 12972 | } |
| 12973 | |
| 12974 | public override Builder Clone() { |
| 12975 | return new Builder().MergeFrom(result); |
| 12976 | } |
| 12977 | |
| 12978 | public override pbd::MessageDescriptor DescriptorForType { |
| 12979 | get { return FooResponse.Descriptor; } |
| 12980 | } |
| 12981 | |
| 12982 | public override FooResponse DefaultInstanceForType { |
| 12983 | get { return FooResponse.DefaultInstance; } |
| 12984 | } |
| 12985 | |
| 12986 | public override FooResponse BuildPartial() { |
| 12987 | FooResponse returnMe = result; |
| 12988 | result = null; |
| 12989 | return returnMe; |
| 12990 | } |
| 12991 | |
| 12992 | public override Builder MergeFrom(pb::IMessage other) { |
| 12993 | if (other is FooResponse) { |
| 12994 | return MergeFrom((FooResponse) other); |
| 12995 | } else { |
| 12996 | base.MergeFrom(other); |
| 12997 | return this; |
| 12998 | } |
| 12999 | } |
| 13000 | |
| 13001 | public override Builder MergeFrom(FooResponse other) { |
| 13002 | if (other == FooResponse.DefaultInstance) return this; |
| 13003 | this.MergeUnknownFields(other.UnknownFields); |
| 13004 | return this; |
| 13005 | } |
| 13006 | |
| 13007 | public override Builder MergeFrom(pb::CodedInputStream input) { |
| 13008 | return MergeFrom(input, pb::ExtensionRegistry.Empty); |
| 13009 | } |
| 13010 | |
| 13011 | public override Builder MergeFrom(pb::CodedInputStream input, pb::ExtensionRegistry extensionRegistry) { |
| 13012 | pb::UnknownFieldSet.Builder unknownFields = pb::UnknownFieldSet.CreateBuilder(this.UnknownFields); |
| 13013 | while (true) { |
| 13014 | uint tag = input.ReadTag(); |
| 13015 | switch (tag) { |
| 13016 | case 0: { |
| 13017 | this.UnknownFields = unknownFields.Build(); |
| 13018 | return this; |
| 13019 | } |
| 13020 | default: { |
| 13021 | if (!ParseUnknownField(input, unknownFields, extensionRegistry, tag)) { |
| 13022 | this.UnknownFields = unknownFields.Build(); |
| 13023 | return this; |
| 13024 | } |
| 13025 | break; |
| 13026 | } |
| 13027 | } |
| 13028 | } |
| 13029 | } |
| 13030 | |
| 13031 | } |
| 13032 | } |
| 13033 | |
| 13034 | public sealed partial class BarRequest : pb::GeneratedMessage<BarRequest, BarRequest.Builder> { |
| 13035 | private static readonly BarRequest defaultInstance = new Builder().BuildPartial(); |
| 13036 | public static BarRequest DefaultInstance { |
| 13037 | get { return defaultInstance; } |
| 13038 | } |
| 13039 | |
| 13040 | public override BarRequest DefaultInstanceForType { |
| 13041 | get { return defaultInstance; } |
| 13042 | } |
| 13043 | |
| 13044 | protected override BarRequest ThisMessage { |
| 13045 | get { return this; } |
| 13046 | } |
| 13047 | |
| 13048 | public static pbd::MessageDescriptor Descriptor { |
| 13049 | get { return global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.internal__static_protobuf_unittest_BarRequest__Descriptor; } |
| 13050 | } |
| 13051 | |
| 13052 | protected override pb::FieldAccess.FieldAccessorTable<BarRequest, BarRequest.Builder> InternalFieldAccessors { |
| 13053 | get { return global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.internal__static_protobuf_unittest_BarRequest__FieldAccessorTable; } |
| 13054 | } |
| 13055 | |
| 13056 | public override bool IsInitialized { |
| 13057 | get { |
| 13058 | return true; |
| 13059 | } |
| 13060 | } |
| 13061 | |
| 13062 | public override void WriteTo(pb::CodedOutputStream output) { |
| 13063 | UnknownFields.WriteTo(output); |
| 13064 | } |
| 13065 | |
| 13066 | private int memoizedSerializedSize = -1; |
| 13067 | public override int SerializedSize { |
| 13068 | get { |
| 13069 | int size = memoizedSerializedSize; |
| 13070 | if (size != -1) return size; |
| 13071 | |
| 13072 | size = 0; |
| 13073 | size += UnknownFields.SerializedSize; |
| 13074 | memoizedSerializedSize = size; |
| 13075 | return size; |
| 13076 | } |
| 13077 | } |
| 13078 | |
| 13079 | public static BarRequest ParseFrom(pb::ByteString data) { |
| 13080 | return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed(); |
| 13081 | } |
| 13082 | public static BarRequest ParseFrom(pb::ByteString data, pb::ExtensionRegistry extensionRegistry) { |
| 13083 | return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed(); |
| 13084 | } |
| 13085 | public static BarRequest ParseFrom(byte[] data) { |
| 13086 | return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed(); |
| 13087 | } |
| 13088 | public static BarRequest ParseFrom(byte[] data, pb::ExtensionRegistry extensionRegistry) { |
| 13089 | return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed(); |
| 13090 | } |
| 13091 | public static BarRequest ParseFrom(global::System.IO.Stream input) { |
| 13092 | return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed(); |
| 13093 | } |
| 13094 | public static BarRequest ParseFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) { |
| 13095 | return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed(); |
| 13096 | } |
| 13097 | public static BarRequest ParseFrom(pb::CodedInputStream input) { |
| 13098 | return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed(); |
| 13099 | } |
| 13100 | public static BarRequest ParseFrom(pb::CodedInputStream input, pb::ExtensionRegistry extensionRegistry) { |
| 13101 | return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed(); |
| 13102 | } |
| 13103 | public static Builder CreateBuilder() { return new Builder(); } |
| 13104 | public override Builder CreateBuilderForType() { return new Builder(); } |
| 13105 | public static Builder CreateBuilder(BarRequest prototype) { |
| 13106 | return (Builder) new Builder().MergeFrom(prototype); |
| 13107 | } |
| 13108 | |
| 13109 | public sealed partial class Builder : pb::GeneratedBuilder<BarRequest, Builder> { |
| 13110 | protected override Builder ThisBuilder { |
| 13111 | get { return this; } |
| 13112 | } |
| 13113 | public Builder() {} |
| 13114 | |
| 13115 | BarRequest result = new BarRequest(); |
| 13116 | |
| 13117 | protected override BarRequest MessageBeingBuilt { |
| 13118 | get { return result; } |
| 13119 | } |
| 13120 | |
| 13121 | public override Builder Clear() { |
| 13122 | result = new BarRequest(); |
| 13123 | return this; |
| 13124 | } |
| 13125 | |
| 13126 | public override Builder Clone() { |
| 13127 | return new Builder().MergeFrom(result); |
| 13128 | } |
| 13129 | |
| 13130 | public override pbd::MessageDescriptor DescriptorForType { |
| 13131 | get { return BarRequest.Descriptor; } |
| 13132 | } |
| 13133 | |
| 13134 | public override BarRequest DefaultInstanceForType { |
| 13135 | get { return BarRequest.DefaultInstance; } |
| 13136 | } |
| 13137 | |
| 13138 | public override BarRequest BuildPartial() { |
| 13139 | BarRequest returnMe = result; |
| 13140 | result = null; |
| 13141 | return returnMe; |
| 13142 | } |
| 13143 | |
| 13144 | public override Builder MergeFrom(pb::IMessage other) { |
| 13145 | if (other is BarRequest) { |
| 13146 | return MergeFrom((BarRequest) other); |
| 13147 | } else { |
| 13148 | base.MergeFrom(other); |
| 13149 | return this; |
| 13150 | } |
| 13151 | } |
| 13152 | |
| 13153 | public override Builder MergeFrom(BarRequest other) { |
| 13154 | if (other == BarRequest.DefaultInstance) return this; |
| 13155 | this.MergeUnknownFields(other.UnknownFields); |
| 13156 | return this; |
| 13157 | } |
| 13158 | |
| 13159 | public override Builder MergeFrom(pb::CodedInputStream input) { |
| 13160 | return MergeFrom(input, pb::ExtensionRegistry.Empty); |
| 13161 | } |
| 13162 | |
| 13163 | public override Builder MergeFrom(pb::CodedInputStream input, pb::ExtensionRegistry extensionRegistry) { |
| 13164 | pb::UnknownFieldSet.Builder unknownFields = pb::UnknownFieldSet.CreateBuilder(this.UnknownFields); |
| 13165 | while (true) { |
| 13166 | uint tag = input.ReadTag(); |
| 13167 | switch (tag) { |
| 13168 | case 0: { |
| 13169 | this.UnknownFields = unknownFields.Build(); |
| 13170 | return this; |
| 13171 | } |
| 13172 | default: { |
| 13173 | if (!ParseUnknownField(input, unknownFields, extensionRegistry, tag)) { |
| 13174 | this.UnknownFields = unknownFields.Build(); |
| 13175 | return this; |
| 13176 | } |
| 13177 | break; |
| 13178 | } |
| 13179 | } |
| 13180 | } |
| 13181 | } |
| 13182 | |
| 13183 | } |
| 13184 | } |
| 13185 | |
| 13186 | public sealed partial class BarResponse : pb::GeneratedMessage<BarResponse, BarResponse.Builder> { |
| 13187 | private static readonly BarResponse defaultInstance = new Builder().BuildPartial(); |
| 13188 | public static BarResponse DefaultInstance { |
| 13189 | get { return defaultInstance; } |
| 13190 | } |
| 13191 | |
| 13192 | public override BarResponse DefaultInstanceForType { |
| 13193 | get { return defaultInstance; } |
| 13194 | } |
| 13195 | |
| 13196 | protected override BarResponse ThisMessage { |
| 13197 | get { return this; } |
| 13198 | } |
| 13199 | |
| 13200 | public static pbd::MessageDescriptor Descriptor { |
| 13201 | get { return global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.internal__static_protobuf_unittest_BarResponse__Descriptor; } |
| 13202 | } |
| 13203 | |
| 13204 | protected override pb::FieldAccess.FieldAccessorTable<BarResponse, BarResponse.Builder> InternalFieldAccessors { |
| 13205 | get { return global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.internal__static_protobuf_unittest_BarResponse__FieldAccessorTable; } |
| 13206 | } |
| 13207 | |
| 13208 | public override bool IsInitialized { |
| 13209 | get { |
| 13210 | return true; |
| 13211 | } |
| 13212 | } |
| 13213 | |
| 13214 | public override void WriteTo(pb::CodedOutputStream output) { |
| 13215 | UnknownFields.WriteTo(output); |
| 13216 | } |
| 13217 | |
| 13218 | private int memoizedSerializedSize = -1; |
| 13219 | public override int SerializedSize { |
| 13220 | get { |
| 13221 | int size = memoizedSerializedSize; |
| 13222 | if (size != -1) return size; |
| 13223 | |
| 13224 | size = 0; |
| 13225 | size += UnknownFields.SerializedSize; |
| 13226 | memoizedSerializedSize = size; |
| 13227 | return size; |
| 13228 | } |
| 13229 | } |
| 13230 | |
| 13231 | public static BarResponse ParseFrom(pb::ByteString data) { |
| 13232 | return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed(); |
| 13233 | } |
| 13234 | public static BarResponse ParseFrom(pb::ByteString data, pb::ExtensionRegistry extensionRegistry) { |
| 13235 | return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed(); |
| 13236 | } |
| 13237 | public static BarResponse ParseFrom(byte[] data) { |
| 13238 | return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed(); |
| 13239 | } |
| 13240 | public static BarResponse ParseFrom(byte[] data, pb::ExtensionRegistry extensionRegistry) { |
| 13241 | return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed(); |
| 13242 | } |
| 13243 | public static BarResponse ParseFrom(global::System.IO.Stream input) { |
| 13244 | return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed(); |
| 13245 | } |
| 13246 | public static BarResponse ParseFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) { |
| 13247 | return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed(); |
| 13248 | } |
| 13249 | public static BarResponse ParseFrom(pb::CodedInputStream input) { |
| 13250 | return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed(); |
| 13251 | } |
| 13252 | public static BarResponse ParseFrom(pb::CodedInputStream input, pb::ExtensionRegistry extensionRegistry) { |
| 13253 | return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed(); |
| 13254 | } |
| 13255 | public static Builder CreateBuilder() { return new Builder(); } |
| 13256 | public override Builder CreateBuilderForType() { return new Builder(); } |
| 13257 | public static Builder CreateBuilder(BarResponse prototype) { |
| 13258 | return (Builder) new Builder().MergeFrom(prototype); |
| 13259 | } |
| 13260 | |
| 13261 | public sealed partial class Builder : pb::GeneratedBuilder<BarResponse, Builder> { |
| 13262 | protected override Builder ThisBuilder { |
| 13263 | get { return this; } |
| 13264 | } |
| 13265 | public Builder() {} |
| 13266 | |
| 13267 | BarResponse result = new BarResponse(); |
| 13268 | |
| 13269 | protected override BarResponse MessageBeingBuilt { |
| 13270 | get { return result; } |
| 13271 | } |
| 13272 | |
| 13273 | public override Builder Clear() { |
| 13274 | result = new BarResponse(); |
| 13275 | return this; |
| 13276 | } |
| 13277 | |
| 13278 | public override Builder Clone() { |
| 13279 | return new Builder().MergeFrom(result); |
| 13280 | } |
| 13281 | |
| 13282 | public override pbd::MessageDescriptor DescriptorForType { |
| 13283 | get { return BarResponse.Descriptor; } |
| 13284 | } |
| 13285 | |
| 13286 | public override BarResponse DefaultInstanceForType { |
| 13287 | get { return BarResponse.DefaultInstance; } |
| 13288 | } |
| 13289 | |
| 13290 | public override BarResponse BuildPartial() { |
| 13291 | BarResponse returnMe = result; |
| 13292 | result = null; |
| 13293 | return returnMe; |
| 13294 | } |
| 13295 | |
| 13296 | public override Builder MergeFrom(pb::IMessage other) { |
| 13297 | if (other is BarResponse) { |
| 13298 | return MergeFrom((BarResponse) other); |
| 13299 | } else { |
| 13300 | base.MergeFrom(other); |
| 13301 | return this; |
| 13302 | } |
| 13303 | } |
| 13304 | |
| 13305 | public override Builder MergeFrom(BarResponse other) { |
| 13306 | if (other == BarResponse.DefaultInstance) return this; |
| 13307 | this.MergeUnknownFields(other.UnknownFields); |
| 13308 | return this; |
| 13309 | } |
| 13310 | |
| 13311 | public override Builder MergeFrom(pb::CodedInputStream input) { |
| 13312 | return MergeFrom(input, pb::ExtensionRegistry.Empty); |
| 13313 | } |
| 13314 | |
| 13315 | public override Builder MergeFrom(pb::CodedInputStream input, pb::ExtensionRegistry extensionRegistry) { |
| 13316 | pb::UnknownFieldSet.Builder unknownFields = pb::UnknownFieldSet.CreateBuilder(this.UnknownFields); |
| 13317 | while (true) { |
| 13318 | uint tag = input.ReadTag(); |
| 13319 | switch (tag) { |
| 13320 | case 0: { |
| 13321 | this.UnknownFields = unknownFields.Build(); |
| 13322 | return this; |
| 13323 | } |
| 13324 | default: { |
| 13325 | if (!ParseUnknownField(input, unknownFields, extensionRegistry, tag)) { |
| 13326 | this.UnknownFields = unknownFields.Build(); |
| 13327 | return this; |
| 13328 | } |
| 13329 | break; |
| 13330 | } |
| 13331 | } |
| 13332 | } |
| 13333 | } |
| 13334 | |
| 13335 | } |
| 13336 | } |
| 13337 | |
| 13338 | #endregion |
| 13339 | |
| 13340 | #region Services |
| 13341 | public abstract class TestService : pb::IService { |
| 13342 | public abstract void Foo( |
| 13343 | pb::IRpcController controller, |
| 13344 | global::Google.ProtocolBuffers.TestProtos.FooRequest request, |
| 13345 | global::System.Action<global::Google.ProtocolBuffers.TestProtos.FooResponse> done); |
| 13346 | public abstract void Bar( |
| 13347 | pb::IRpcController controller, |
| 13348 | global::Google.ProtocolBuffers.TestProtos.BarRequest request, |
| 13349 | global::System.Action<global::Google.ProtocolBuffers.TestProtos.BarResponse> done); |
| 13350 | |
| 13351 | public static pbd::ServiceDescriptor Descriptor { |
| 13352 | get { return UnitTestProtoFile.Descriptor.Services[0]; } |
| 13353 | } |
| 13354 | public pbd::ServiceDescriptor DescriptorForType { |
| 13355 | get { return Descriptor; } |
| 13356 | } |
| 13357 | |
| 13358 | public void CallMethod( |
| 13359 | pbd::MethodDescriptor method, |
| 13360 | pb::IRpcController controller, |
| 13361 | pb::IMessage request, |
| 13362 | global::System.Action<pb::IMessage> done) { |
| 13363 | if (method.Service != Descriptor) { |
| 13364 | throw new global::System.ArgumentException( |
| 13365 | "Service.CallMethod() given method descriptor for wrong service type."); |
| 13366 | } |
| 13367 | switch(method.Index) { |
| 13368 | case 0: |
| 13369 | this.Foo(controller, (global::Google.ProtocolBuffers.TestProtos.FooRequest) request, |
| 13370 | pb::RpcUtil.SpecializeCallback<global::Google.ProtocolBuffers.TestProtos.FooResponse>( |
| 13371 | done)); |
| 13372 | return; |
| 13373 | case 1: |
| 13374 | this.Bar(controller, (global::Google.ProtocolBuffers.TestProtos.BarRequest) request, |
| 13375 | pb::RpcUtil.SpecializeCallback<global::Google.ProtocolBuffers.TestProtos.BarResponse>( |
| 13376 | done)); |
| 13377 | return; |
| 13378 | default: |
| 13379 | throw new global::System.InvalidOperationException("Can't get here."); |
| 13380 | } |
| 13381 | } |
| 13382 | |
| 13383 | public pb::IMessage GetRequestPrototype(pbd::MethodDescriptor method) { |
| 13384 | if (method.Service != Descriptor) { |
| 13385 | throw new global::System.ArgumentException( |
| 13386 | "Service.GetRequestPrototype() given method descriptor for wrong service type."); |
| 13387 | } |
| 13388 | switch(method.Index) { |
| 13389 | case 0: |
| 13390 | return global::Google.ProtocolBuffers.TestProtos.FooRequest.DefaultInstance; |
| 13391 | case 1: |
| 13392 | return global::Google.ProtocolBuffers.TestProtos.BarRequest.DefaultInstance; |
| 13393 | default: |
| 13394 | throw new global::System.InvalidOperationException("Can't get here."); |
| 13395 | } |
| 13396 | } |
| 13397 | |
| 13398 | public pb::IMessage GetResponsePrototype(pbd::MethodDescriptor method) { |
| 13399 | if (method.Service != Descriptor) { |
| 13400 | throw new global::System.ArgumentException( |
| 13401 | "Service.GetResponsePrototype() given method descriptor for wrong service type."); |
| 13402 | } |
| 13403 | switch(method.Index) { |
| 13404 | case 0: |
| 13405 | return global::Google.ProtocolBuffers.TestProtos.FooResponse.DefaultInstance; |
| 13406 | case 1: |
| 13407 | return global::Google.ProtocolBuffers.TestProtos.BarResponse.DefaultInstance; |
| 13408 | default: |
| 13409 | throw new global::System.InvalidOperationException("Can't get here."); |
| 13410 | } |
| 13411 | } |
| 13412 | |
| 13413 | public static Stub CreateStub(pb::IRpcChannel channel) { |
| 13414 | return new Stub(channel); |
| 13415 | } |
| 13416 | |
| 13417 | public class Stub : global::Google.ProtocolBuffers.TestProtos.TestService { |
| 13418 | internal Stub(pb::IRpcChannel channel) { |
| 13419 | this.channel = channel; |
| 13420 | } |
| 13421 | |
| 13422 | private readonly pb::IRpcChannel channel; |
| 13423 | |
| 13424 | public pb::IRpcChannel Channel { |
| 13425 | get { return channel; } |
| 13426 | } |
| 13427 | |
| 13428 | public override void Foo( |
| 13429 | pb::IRpcController controller, |
| 13430 | global::Google.ProtocolBuffers.TestProtos.FooRequest request, |
| 13431 | global::System.Action<global::Google.ProtocolBuffers.TestProtos.FooResponse> done) { |
| 13432 | channel.CallMethod(Descriptor.Methods[0], |
| 13433 | controller, request, global::Google.ProtocolBuffers.TestProtos.FooResponse.DefaultInstance, |
| 13434 | pb::RpcUtil.GeneralizeCallback<global::Google.ProtocolBuffers.TestProtos.FooResponse, global::Google.ProtocolBuffers.TestProtos.FooResponse.Builder>(done, global::Google.ProtocolBuffers.TestProtos.FooResponse.DefaultInstance)); |
| 13435 | } |
| 13436 | |
| 13437 | public override void Bar( |
| 13438 | pb::IRpcController controller, |
| 13439 | global::Google.ProtocolBuffers.TestProtos.BarRequest request, |
| 13440 | global::System.Action<global::Google.ProtocolBuffers.TestProtos.BarResponse> done) { |
| 13441 | channel.CallMethod(Descriptor.Methods[1], |
| 13442 | controller, request, global::Google.ProtocolBuffers.TestProtos.BarResponse.DefaultInstance, |
| 13443 | pb::RpcUtil.GeneralizeCallback<global::Google.ProtocolBuffers.TestProtos.BarResponse, global::Google.ProtocolBuffers.TestProtos.BarResponse.Builder>(done, global::Google.ProtocolBuffers.TestProtos.BarResponse.DefaultInstance)); |
| 13444 | } |
| 13445 | } |
| 13446 | } |
| 13447 | #endregion |
| 13448 | |
| 13449 | } |