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" + |
| 142 | "MjAzNjg1NDc3NTgwNxIYCgt1dGY4X3N0cmluZxgGIAEoCToD4Yi0IgwKCkZv" + |
| 143 | "b1JlcXVlc3QiDQoLRm9vUmVzcG9uc2UiDAoKQmFyUmVxdWVzdCINCgtCYXJS" + |
| 144 | "ZXNwb25zZSpACgtGb3JlaWduRW51bRIPCgtGT1JFSUdOX0ZPTxAEEg8KC0ZP" + |
| 145 | "UkVJR05fQkFSEAUSDwoLRk9SRUlHTl9CQVoQBipHChRUZXN0RW51bVdpdGhE" + |
| 146 | "dXBWYWx1ZRIICgRGT08xEAESCAoEQkFSMRACEgcKA0JBWhADEggKBEZPTzIQ" + |
| 147 | "ARIICgRCQVIyEAIqiQEKDlRlc3RTcGFyc2VFbnVtEgwKCFNQQVJTRV9BEHsS" + |
| 148 | "DgoIU1BBUlNFX0IQpucDEg8KCFNQQVJTRV9DELKxgAYSFQoIU1BBUlNFX0QQ" + |
| 149 | "8f//////////ARIVCghTUEFSU0VfRRC03vz///////8BEgwKCFNQQVJTRV9G" + |
| 150 | "EAASDAoIU1BBUlNFX0cQAjKZAQoLVGVzdFNlcnZpY2USRAoDRm9vEh0ucHJv" + |
| 151 | "dG9idWZfdW5pdHRlc3QuRm9vUmVxdWVzdBoeLnByb3RvYnVmX3VuaXR0ZXN0" + |
| 152 | "LkZvb1Jlc3BvbnNlEkQKA0JhchIdLnByb3RvYnVmX3VuaXR0ZXN0LkJhclJl" + |
| 153 | "cXVlc3QaHi5wcm90b2J1Zl91bml0dGVzdC5CYXJSZXNwb25zZTpGChhvcHRp" + |
| 154 | "b25hbF9pbnQzMl9leHRlbnNpb24SJC5wcm90b2J1Zl91bml0dGVzdC5UZXN0" + |
| 155 | "QWxsRXh0ZW5zaW9ucxgBIAEoBTpGChhvcHRpb25hbF9pbnQ2NF9leHRlbnNp" + |
| 156 | "b24SJC5wcm90b2J1Zl91bml0dGVzdC5UZXN0QWxsRXh0ZW5zaW9ucxgCIAEo" + |
| 157 | "AzpHChlvcHRpb25hbF91aW50MzJfZXh0ZW5zaW9uEiQucHJvdG9idWZfdW5p" + |
| 158 | "dHRlc3QuVGVzdEFsbEV4dGVuc2lvbnMYAyABKA06RwoZb3B0aW9uYWxfdWlu" + |
Jon Skeet | 6803686 | 2008-10-22 13:30:34 +0100 | [diff] [blame] | 159 | "dDY0X2V4dGVuc2lvbhIkLnByb3RvYnVmX3VuaXR0ZXN0LlRlc3RBbGxFeHRl" + |
Jon Skeet | 343d9f5 | 2009-01-16 11:52:44 +0000 | [diff] [blame] | 160 | "bnNpb25zGAQgASgEOkcKGW9wdGlvbmFsX3NpbnQzMl9leHRlbnNpb24SJC5w" + |
| 161 | "cm90b2J1Zl91bml0dGVzdC5UZXN0QWxsRXh0ZW5zaW9ucxgFIAEoETpHChlv" + |
| 162 | "cHRpb25hbF9zaW50NjRfZXh0ZW5zaW9uEiQucHJvdG9idWZfdW5pdHRlc3Qu" + |
| 163 | "VGVzdEFsbEV4dGVuc2lvbnMYBiABKBI6SAoab3B0aW9uYWxfZml4ZWQzMl9l" + |
| 164 | "eHRlbnNpb24SJC5wcm90b2J1Zl91bml0dGVzdC5UZXN0QWxsRXh0ZW5zaW9u" + |
| 165 | "cxgHIAEoBzpIChpvcHRpb25hbF9maXhlZDY0X2V4dGVuc2lvbhIkLnByb3Rv" + |
| 166 | "YnVmX3VuaXR0ZXN0LlRlc3RBbGxFeHRlbnNpb25zGAggASgGOkkKG29wdGlv" + |
| 167 | "bmFsX3NmaXhlZDMyX2V4dGVuc2lvbhIkLnByb3RvYnVmX3VuaXR0ZXN0LlRl" + |
| 168 | "c3RBbGxFeHRlbnNpb25zGAkgASgPOkkKG29wdGlvbmFsX3NmaXhlZDY0X2V4" + |
Jon Skeet | 6803686 | 2008-10-22 13:30:34 +0100 | [diff] [blame] | 169 | "dGVuc2lvbhIkLnByb3RvYnVmX3VuaXR0ZXN0LlRlc3RBbGxFeHRlbnNpb25z" + |
Jon Skeet | 343d9f5 | 2009-01-16 11:52:44 +0000 | [diff] [blame] | 170 | "GAogASgQOkYKGG9wdGlvbmFsX2Zsb2F0X2V4dGVuc2lvbhIkLnByb3RvYnVm" + |
| 171 | "X3VuaXR0ZXN0LlRlc3RBbGxFeHRlbnNpb25zGAsgASgCOkcKGW9wdGlvbmFs" + |
| 172 | "X2RvdWJsZV9leHRlbnNpb24SJC5wcm90b2J1Zl91bml0dGVzdC5UZXN0QWxs" + |
| 173 | "RXh0ZW5zaW9ucxgMIAEoATpFChdvcHRpb25hbF9ib29sX2V4dGVuc2lvbhIk" + |
| 174 | "LnByb3RvYnVmX3VuaXR0ZXN0LlRlc3RBbGxFeHRlbnNpb25zGA0gASgIOkcK" + |
| 175 | "GW9wdGlvbmFsX3N0cmluZ19leHRlbnNpb24SJC5wcm90b2J1Zl91bml0dGVz" + |
| 176 | "dC5UZXN0QWxsRXh0ZW5zaW9ucxgOIAEoCTpGChhvcHRpb25hbF9ieXRlc19l" + |
| 177 | "eHRlbnNpb24SJC5wcm90b2J1Zl91bml0dGVzdC5UZXN0QWxsRXh0ZW5zaW9u" + |
| 178 | "cxgPIAEoDDpxChdvcHRpb25hbGdyb3VwX2V4dGVuc2lvbhIkLnByb3RvYnVm" + |
| 179 | "X3VuaXR0ZXN0LlRlc3RBbGxFeHRlbnNpb25zGBAgASgKMioucHJvdG9idWZf" + |
| 180 | "dW5pdHRlc3QuT3B0aW9uYWxHcm91cF9leHRlbnNpb246fgohb3B0aW9uYWxf" + |
| 181 | "bmVzdGVkX21lc3NhZ2VfZXh0ZW5zaW9uEiQucHJvdG9idWZfdW5pdHRlc3Qu" + |
| 182 | "VGVzdEFsbEV4dGVuc2lvbnMYEiABKAsyLS5wcm90b2J1Zl91bml0dGVzdC5U" + |
| 183 | "ZXN0QWxsVHlwZXMuTmVzdGVkTWVzc2FnZTpzCiJvcHRpb25hbF9mb3JlaWdu" + |
| 184 | "X21lc3NhZ2VfZXh0ZW5zaW9uEiQucHJvdG9idWZfdW5pdHRlc3QuVGVzdEFs" + |
| 185 | "bEV4dGVuc2lvbnMYEyABKAsyIS5wcm90b2J1Zl91bml0dGVzdC5Gb3JlaWdu" + |
| 186 | "TWVzc2FnZTp4CiFvcHRpb25hbF9pbXBvcnRfbWVzc2FnZV9leHRlbnNpb24S" + |
| 187 | "JC5wcm90b2J1Zl91bml0dGVzdC5UZXN0QWxsRXh0ZW5zaW9ucxgUIAEoCzIn" + |
| 188 | "LnByb3RvYnVmX3VuaXR0ZXN0X2ltcG9ydC5JbXBvcnRNZXNzYWdlOngKHm9w" + |
| 189 | "dGlvbmFsX25lc3RlZF9lbnVtX2V4dGVuc2lvbhIkLnByb3RvYnVmX3VuaXR0" + |
| 190 | "ZXN0LlRlc3RBbGxFeHRlbnNpb25zGBUgASgOMioucHJvdG9idWZfdW5pdHRl" + |
| 191 | "c3QuVGVzdEFsbFR5cGVzLk5lc3RlZEVudW06bQofb3B0aW9uYWxfZm9yZWln" + |
| 192 | "bl9lbnVtX2V4dGVuc2lvbhIkLnByb3RvYnVmX3VuaXR0ZXN0LlRlc3RBbGxF" + |
| 193 | "eHRlbnNpb25zGBYgASgOMh4ucHJvdG9idWZfdW5pdHRlc3QuRm9yZWlnbkVu" + |
| 194 | "dW06cgoeb3B0aW9uYWxfaW1wb3J0X2VudW1fZXh0ZW5zaW9uEiQucHJvdG9i" + |
| 195 | "dWZfdW5pdHRlc3QuVGVzdEFsbEV4dGVuc2lvbnMYFyABKA4yJC5wcm90b2J1" + |
| 196 | "Zl91bml0dGVzdF9pbXBvcnQuSW1wb3J0RW51bTpRCh9vcHRpb25hbF9zdHJp" + |
| 197 | "bmdfcGllY2VfZXh0ZW5zaW9uEiQucHJvdG9idWZfdW5pdHRlc3QuVGVzdEFs" + |
| 198 | "bEV4dGVuc2lvbnMYGCABKAlCAggCOkkKF29wdGlvbmFsX2NvcmRfZXh0ZW5z" + |
| 199 | "aW9uEiQucHJvdG9idWZfdW5pdHRlc3QuVGVzdEFsbEV4dGVuc2lvbnMYGSAB" + |
| 200 | "KAlCAggBOkYKGHJlcGVhdGVkX2ludDMyX2V4dGVuc2lvbhIkLnByb3RvYnVm" + |
| 201 | "X3VuaXR0ZXN0LlRlc3RBbGxFeHRlbnNpb25zGB8gAygFOkYKGHJlcGVhdGVk" + |
| 202 | "X2ludDY0X2V4dGVuc2lvbhIkLnByb3RvYnVmX3VuaXR0ZXN0LlRlc3RBbGxF" + |
| 203 | "eHRlbnNpb25zGCAgAygDOkcKGXJlcGVhdGVkX3VpbnQzMl9leHRlbnNpb24S" + |
| 204 | "JC5wcm90b2J1Zl91bml0dGVzdC5UZXN0QWxsRXh0ZW5zaW9ucxghIAMoDTpH" + |
| 205 | "ChlyZXBlYXRlZF91aW50NjRfZXh0ZW5zaW9uEiQucHJvdG9idWZfdW5pdHRl" + |
| 206 | "c3QuVGVzdEFsbEV4dGVuc2lvbnMYIiADKAQ6RwoZcmVwZWF0ZWRfc2ludDMy" + |
Jon Skeet | 6803686 | 2008-10-22 13:30:34 +0100 | [diff] [blame] | 207 | "X2V4dGVuc2lvbhIkLnByb3RvYnVmX3VuaXR0ZXN0LlRlc3RBbGxFeHRlbnNp" + |
Jon Skeet | 343d9f5 | 2009-01-16 11:52:44 +0000 | [diff] [blame] | 208 | "b25zGCMgAygROkcKGXJlcGVhdGVkX3NpbnQ2NF9leHRlbnNpb24SJC5wcm90" + |
| 209 | "b2J1Zl91bml0dGVzdC5UZXN0QWxsRXh0ZW5zaW9ucxgkIAMoEjpIChpyZXBl" + |
| 210 | "YXRlZF9maXhlZDMyX2V4dGVuc2lvbhIkLnByb3RvYnVmX3VuaXR0ZXN0LlRl" + |
| 211 | "c3RBbGxFeHRlbnNpb25zGCUgAygHOkgKGnJlcGVhdGVkX2ZpeGVkNjRfZXh0" + |
Jon Skeet | 6803686 | 2008-10-22 13:30:34 +0100 | [diff] [blame] | 212 | "ZW5zaW9uEiQucHJvdG9idWZfdW5pdHRlc3QuVGVzdEFsbEV4dGVuc2lvbnMY" + |
Jon Skeet | 343d9f5 | 2009-01-16 11:52:44 +0000 | [diff] [blame] | 213 | "JiADKAY6SQobcmVwZWF0ZWRfc2ZpeGVkMzJfZXh0ZW5zaW9uEiQucHJvdG9i" + |
| 214 | "dWZfdW5pdHRlc3QuVGVzdEFsbEV4dGVuc2lvbnMYJyADKA86SQobcmVwZWF0" + |
| 215 | "ZWRfc2ZpeGVkNjRfZXh0ZW5zaW9uEiQucHJvdG9idWZfdW5pdHRlc3QuVGVz" + |
| 216 | "dEFsbEV4dGVuc2lvbnMYKCADKBA6RgoYcmVwZWF0ZWRfZmxvYXRfZXh0ZW5z" + |
| 217 | "aW9uEiQucHJvdG9idWZfdW5pdHRlc3QuVGVzdEFsbEV4dGVuc2lvbnMYKSAD" + |
| 218 | "KAI6RwoZcmVwZWF0ZWRfZG91YmxlX2V4dGVuc2lvbhIkLnByb3RvYnVmX3Vu" + |
| 219 | "aXR0ZXN0LlRlc3RBbGxFeHRlbnNpb25zGCogAygBOkUKF3JlcGVhdGVkX2Jv" + |
Jon Skeet | 6803686 | 2008-10-22 13:30:34 +0100 | [diff] [blame] | 220 | "b2xfZXh0ZW5zaW9uEiQucHJvdG9idWZfdW5pdHRlc3QuVGVzdEFsbEV4dGVu" + |
Jon Skeet | 343d9f5 | 2009-01-16 11:52:44 +0000 | [diff] [blame] | 221 | "c2lvbnMYKyADKAg6RwoZcmVwZWF0ZWRfc3RyaW5nX2V4dGVuc2lvbhIkLnBy" + |
| 222 | "b3RvYnVmX3VuaXR0ZXN0LlRlc3RBbGxFeHRlbnNpb25zGCwgAygJOkYKGHJl" + |
| 223 | "cGVhdGVkX2J5dGVzX2V4dGVuc2lvbhIkLnByb3RvYnVmX3VuaXR0ZXN0LlRl" + |
| 224 | "c3RBbGxFeHRlbnNpb25zGC0gAygMOnEKF3JlcGVhdGVkZ3JvdXBfZXh0ZW5z" + |
| 225 | "aW9uEiQucHJvdG9idWZfdW5pdHRlc3QuVGVzdEFsbEV4dGVuc2lvbnMYLiAD" + |
| 226 | "KAoyKi5wcm90b2J1Zl91bml0dGVzdC5SZXBlYXRlZEdyb3VwX2V4dGVuc2lv" + |
| 227 | "bjp+CiFyZXBlYXRlZF9uZXN0ZWRfbWVzc2FnZV9leHRlbnNpb24SJC5wcm90" + |
| 228 | "b2J1Zl91bml0dGVzdC5UZXN0QWxsRXh0ZW5zaW9ucxgwIAMoCzItLnByb3Rv" + |
| 229 | "YnVmX3VuaXR0ZXN0LlRlc3RBbGxUeXBlcy5OZXN0ZWRNZXNzYWdlOnMKInJl" + |
| 230 | "cGVhdGVkX2ZvcmVpZ25fbWVzc2FnZV9leHRlbnNpb24SJC5wcm90b2J1Zl91" + |
| 231 | "bml0dGVzdC5UZXN0QWxsRXh0ZW5zaW9ucxgxIAMoCzIhLnByb3RvYnVmX3Vu" + |
| 232 | "aXR0ZXN0LkZvcmVpZ25NZXNzYWdlOngKIXJlcGVhdGVkX2ltcG9ydF9tZXNz" + |
| 233 | "YWdlX2V4dGVuc2lvbhIkLnByb3RvYnVmX3VuaXR0ZXN0LlRlc3RBbGxFeHRl" + |
| 234 | "bnNpb25zGDIgAygLMicucHJvdG9idWZfdW5pdHRlc3RfaW1wb3J0LkltcG9y" + |
| 235 | "dE1lc3NhZ2U6eAoecmVwZWF0ZWRfbmVzdGVkX2VudW1fZXh0ZW5zaW9uEiQu" + |
| 236 | "cHJvdG9idWZfdW5pdHRlc3QuVGVzdEFsbEV4dGVuc2lvbnMYMyADKA4yKi5w" + |
| 237 | "cm90b2J1Zl91bml0dGVzdC5UZXN0QWxsVHlwZXMuTmVzdGVkRW51bTptCh9y" + |
| 238 | "ZXBlYXRlZF9mb3JlaWduX2VudW1fZXh0ZW5zaW9uEiQucHJvdG9idWZfdW5p" + |
| 239 | "dHRlc3QuVGVzdEFsbEV4dGVuc2lvbnMYNCADKA4yHi5wcm90b2J1Zl91bml0" + |
| 240 | "dGVzdC5Gb3JlaWduRW51bTpyCh5yZXBlYXRlZF9pbXBvcnRfZW51bV9leHRl" + |
| 241 | "bnNpb24SJC5wcm90b2J1Zl91bml0dGVzdC5UZXN0QWxsRXh0ZW5zaW9ucxg1" + |
| 242 | "IAMoDjIkLnByb3RvYnVmX3VuaXR0ZXN0X2ltcG9ydC5JbXBvcnRFbnVtOlEK" + |
| 243 | "H3JlcGVhdGVkX3N0cmluZ19waWVjZV9leHRlbnNpb24SJC5wcm90b2J1Zl91" + |
| 244 | "bml0dGVzdC5UZXN0QWxsRXh0ZW5zaW9ucxg2IAMoCUICCAI6SQoXcmVwZWF0" + |
| 245 | "ZWRfY29yZF9leHRlbnNpb24SJC5wcm90b2J1Zl91bml0dGVzdC5UZXN0QWxs" + |
| 246 | "RXh0ZW5zaW9ucxg3IAMoCUICCAE6SQoXZGVmYXVsdF9pbnQzMl9leHRlbnNp" + |
| 247 | "b24SJC5wcm90b2J1Zl91bml0dGVzdC5UZXN0QWxsRXh0ZW5zaW9ucxg9IAEo" + |
| 248 | "BToCNDE6SQoXZGVmYXVsdF9pbnQ2NF9leHRlbnNpb24SJC5wcm90b2J1Zl91" + |
| 249 | "bml0dGVzdC5UZXN0QWxsRXh0ZW5zaW9ucxg+IAEoAzoCNDI6SgoYZGVmYXVs" + |
| 250 | "dF91aW50MzJfZXh0ZW5zaW9uEiQucHJvdG9idWZfdW5pdHRlc3QuVGVzdEFs" + |
| 251 | "bEV4dGVuc2lvbnMYPyABKA06AjQzOkoKGGRlZmF1bHRfdWludDY0X2V4dGVu" + |
| 252 | "c2lvbhIkLnByb3RvYnVmX3VuaXR0ZXN0LlRlc3RBbGxFeHRlbnNpb25zGEAg" + |
| 253 | "ASgEOgI0NDpLChhkZWZhdWx0X3NpbnQzMl9leHRlbnNpb24SJC5wcm90b2J1" + |
| 254 | "Zl91bml0dGVzdC5UZXN0QWxsRXh0ZW5zaW9ucxhBIAEoEToDLTQ1OkoKGGRl" + |
| 255 | "ZmF1bHRfc2ludDY0X2V4dGVuc2lvbhIkLnByb3RvYnVmX3VuaXR0ZXN0LlRl" + |
| 256 | "c3RBbGxFeHRlbnNpb25zGEIgASgSOgI0NjpLChlkZWZhdWx0X2ZpeGVkMzJf" + |
| 257 | "ZXh0ZW5zaW9uEiQucHJvdG9idWZfdW5pdHRlc3QuVGVzdEFsbEV4dGVuc2lv" + |
| 258 | "bnMYQyABKAc6AjQ3OksKGWRlZmF1bHRfZml4ZWQ2NF9leHRlbnNpb24SJC5w" + |
| 259 | "cm90b2J1Zl91bml0dGVzdC5UZXN0QWxsRXh0ZW5zaW9ucxhEIAEoBjoCNDg6" + |
| 260 | "TAoaZGVmYXVsdF9zZml4ZWQzMl9leHRlbnNpb24SJC5wcm90b2J1Zl91bml0" + |
| 261 | "dGVzdC5UZXN0QWxsRXh0ZW5zaW9ucxhFIAEoDzoCNDk6TQoaZGVmYXVsdF9z" + |
| 262 | "Zml4ZWQ2NF9leHRlbnNpb24SJC5wcm90b2J1Zl91bml0dGVzdC5UZXN0QWxs" + |
| 263 | "RXh0ZW5zaW9ucxhGIAEoEDoDLTUwOksKF2RlZmF1bHRfZmxvYXRfZXh0ZW5z" + |
| 264 | "aW9uEiQucHJvdG9idWZfdW5pdHRlc3QuVGVzdEFsbEV4dGVuc2lvbnMYRyAB" + |
| 265 | "KAI6BDUxLjU6TQoYZGVmYXVsdF9kb3VibGVfZXh0ZW5zaW9uEiQucHJvdG9i" + |
| 266 | "dWZfdW5pdHRlc3QuVGVzdEFsbEV4dGVuc2lvbnMYSCABKAE6BTUyMDAwOkoK" + |
| 267 | "FmRlZmF1bHRfYm9vbF9leHRlbnNpb24SJC5wcm90b2J1Zl91bml0dGVzdC5U" + |
| 268 | "ZXN0QWxsRXh0ZW5zaW9ucxhJIAEoCDoEdHJ1ZTpNChhkZWZhdWx0X3N0cmlu" + |
| 269 | "Z19leHRlbnNpb24SJC5wcm90b2J1Zl91bml0dGVzdC5UZXN0QWxsRXh0ZW5z" + |
| 270 | "aW9ucxhKIAEoCToFaGVsbG86TAoXZGVmYXVsdF9ieXRlc19leHRlbnNpb24S" + |
| 271 | "JC5wcm90b2J1Zl91bml0dGVzdC5UZXN0QWxsRXh0ZW5zaW9ucxhLIAEoDDoF" + |
| 272 | "d29ybGQ6fAodZGVmYXVsdF9uZXN0ZWRfZW51bV9leHRlbnNpb24SJC5wcm90" + |
| 273 | "b2J1Zl91bml0dGVzdC5UZXN0QWxsRXh0ZW5zaW9ucxhRIAEoDjIqLnByb3Rv" + |
| 274 | "YnVmX3VuaXR0ZXN0LlRlc3RBbGxUeXBlcy5OZXN0ZWRFbnVtOgNCQVI6eQoe" + |
| 275 | "ZGVmYXVsdF9mb3JlaWduX2VudW1fZXh0ZW5zaW9uEiQucHJvdG9idWZfdW5p" + |
| 276 | "dHRlc3QuVGVzdEFsbEV4dGVuc2lvbnMYUiABKA4yHi5wcm90b2J1Zl91bml0" + |
| 277 | "dGVzdC5Gb3JlaWduRW51bToLRk9SRUlHTl9CQVI6fQodZGVmYXVsdF9pbXBv" + |
| 278 | "cnRfZW51bV9leHRlbnNpb24SJC5wcm90b2J1Zl91bml0dGVzdC5UZXN0QWxs" + |
| 279 | "RXh0ZW5zaW9ucxhTIAEoDjIkLnByb3RvYnVmX3VuaXR0ZXN0X2ltcG9ydC5J" + |
| 280 | "bXBvcnRFbnVtOgpJTVBPUlRfQkFSOlUKHmRlZmF1bHRfc3RyaW5nX3BpZWNl" + |
| 281 | "X2V4dGVuc2lvbhIkLnByb3RvYnVmX3VuaXR0ZXN0LlRlc3RBbGxFeHRlbnNp" + |
| 282 | "b25zGFQgASgJOgNhYmNCAggCOk0KFmRlZmF1bHRfY29yZF9leHRlbnNpb24S" + |
| 283 | "JC5wcm90b2J1Zl91bml0dGVzdC5UZXN0QWxsRXh0ZW5zaW9ucxhVIAEoCToD" + |
| 284 | "MTIzQgIIATpCChNteV9leHRlbnNpb25fc3RyaW5nEiUucHJvdG9idWZfdW5p" + |
| 285 | "dHRlc3QuVGVzdEZpZWxkT3JkZXJpbmdzGDIgASgJOj8KEG15X2V4dGVuc2lv" + |
| 286 | "bl9pbnQSJS5wcm90b2J1Zl91bml0dGVzdC5UZXN0RmllbGRPcmRlcmluZ3MY" + |
| 287 | "BSABKAVCSkINVW5pdHRlc3RQcm90b0gBwj42CiFHb29nbGUuUHJvdG9jb2xC" + |
| 288 | "dWZmZXJzLlRlc3RQcm90b3MSEVVuaXRUZXN0UHJvdG9GaWxl"), |
Jon Skeet | 6803686 | 2008-10-22 13:30:34 +0100 | [diff] [blame] | 289 | new pbd::FileDescriptor[] { |
| 290 | global::Google.ProtocolBuffers.DescriptorProtos.CSharpOptions.Descriptor, |
Jon Skeet | 6803686 | 2008-10-22 13:30:34 +0100 | [diff] [blame] | 291 | global::Google.ProtocolBuffers.TestProtos.UnitTestImportProtoFile.Descriptor, |
| 292 | }); |
| 293 | #endregion |
| 294 | |
| 295 | #region Extensions |
| 296 | public static readonly pb::GeneratedExtensionBase<int> OptionalInt32Extension = |
| 297 | pb::GeneratedSingleExtension<int>.CreateInstance(Descriptor.Extensions[0]); |
| 298 | public static readonly pb::GeneratedExtensionBase<long> OptionalInt64Extension = |
| 299 | pb::GeneratedSingleExtension<long>.CreateInstance(Descriptor.Extensions[1]); |
| 300 | public static readonly pb::GeneratedExtensionBase<uint> OptionalUint32Extension = |
| 301 | pb::GeneratedSingleExtension<uint>.CreateInstance(Descriptor.Extensions[2]); |
| 302 | public static readonly pb::GeneratedExtensionBase<ulong> OptionalUint64Extension = |
| 303 | pb::GeneratedSingleExtension<ulong>.CreateInstance(Descriptor.Extensions[3]); |
| 304 | public static readonly pb::GeneratedExtensionBase<int> OptionalSint32Extension = |
| 305 | pb::GeneratedSingleExtension<int>.CreateInstance(Descriptor.Extensions[4]); |
| 306 | public static readonly pb::GeneratedExtensionBase<long> OptionalSint64Extension = |
| 307 | pb::GeneratedSingleExtension<long>.CreateInstance(Descriptor.Extensions[5]); |
| 308 | public static readonly pb::GeneratedExtensionBase<uint> OptionalFixed32Extension = |
| 309 | pb::GeneratedSingleExtension<uint>.CreateInstance(Descriptor.Extensions[6]); |
| 310 | public static readonly pb::GeneratedExtensionBase<ulong> OptionalFixed64Extension = |
| 311 | pb::GeneratedSingleExtension<ulong>.CreateInstance(Descriptor.Extensions[7]); |
| 312 | public static readonly pb::GeneratedExtensionBase<int> OptionalSfixed32Extension = |
| 313 | pb::GeneratedSingleExtension<int>.CreateInstance(Descriptor.Extensions[8]); |
| 314 | public static readonly pb::GeneratedExtensionBase<long> OptionalSfixed64Extension = |
| 315 | pb::GeneratedSingleExtension<long>.CreateInstance(Descriptor.Extensions[9]); |
| 316 | public static readonly pb::GeneratedExtensionBase<float> OptionalFloatExtension = |
| 317 | pb::GeneratedSingleExtension<float>.CreateInstance(Descriptor.Extensions[10]); |
| 318 | public static readonly pb::GeneratedExtensionBase<double> OptionalDoubleExtension = |
| 319 | pb::GeneratedSingleExtension<double>.CreateInstance(Descriptor.Extensions[11]); |
| 320 | public static readonly pb::GeneratedExtensionBase<bool> OptionalBoolExtension = |
| 321 | pb::GeneratedSingleExtension<bool>.CreateInstance(Descriptor.Extensions[12]); |
| 322 | public static readonly pb::GeneratedExtensionBase<string> OptionalStringExtension = |
| 323 | pb::GeneratedSingleExtension<string>.CreateInstance(Descriptor.Extensions[13]); |
| 324 | public static readonly pb::GeneratedExtensionBase<pb::ByteString> OptionalBytesExtension = |
| 325 | pb::GeneratedSingleExtension<pb::ByteString>.CreateInstance(Descriptor.Extensions[14]); |
| 326 | public static readonly pb::GeneratedExtensionBase<global::Google.ProtocolBuffers.TestProtos.OptionalGroup_extension> OptionalGroupExtension = |
| 327 | pb::GeneratedSingleExtension<global::Google.ProtocolBuffers.TestProtos.OptionalGroup_extension>.CreateInstance(Descriptor.Extensions[15]); |
| 328 | public static readonly pb::GeneratedExtensionBase<global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedMessage> OptionalNestedMessageExtension = |
| 329 | pb::GeneratedSingleExtension<global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedMessage>.CreateInstance(Descriptor.Extensions[16]); |
| 330 | public static readonly pb::GeneratedExtensionBase<global::Google.ProtocolBuffers.TestProtos.ForeignMessage> OptionalForeignMessageExtension = |
| 331 | pb::GeneratedSingleExtension<global::Google.ProtocolBuffers.TestProtos.ForeignMessage>.CreateInstance(Descriptor.Extensions[17]); |
| 332 | public static readonly pb::GeneratedExtensionBase<global::Google.ProtocolBuffers.TestProtos.ImportMessage> OptionalImportMessageExtension = |
| 333 | pb::GeneratedSingleExtension<global::Google.ProtocolBuffers.TestProtos.ImportMessage>.CreateInstance(Descriptor.Extensions[18]); |
| 334 | public static readonly pb::GeneratedExtensionBase<global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedEnum> OptionalNestedEnumExtension = |
| 335 | pb::GeneratedSingleExtension<global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedEnum>.CreateInstance(Descriptor.Extensions[19]); |
| 336 | public static readonly pb::GeneratedExtensionBase<global::Google.ProtocolBuffers.TestProtos.ForeignEnum> OptionalForeignEnumExtension = |
| 337 | pb::GeneratedSingleExtension<global::Google.ProtocolBuffers.TestProtos.ForeignEnum>.CreateInstance(Descriptor.Extensions[20]); |
| 338 | public static readonly pb::GeneratedExtensionBase<global::Google.ProtocolBuffers.TestProtos.ImportEnum> OptionalImportEnumExtension = |
| 339 | pb::GeneratedSingleExtension<global::Google.ProtocolBuffers.TestProtos.ImportEnum>.CreateInstance(Descriptor.Extensions[21]); |
| 340 | public static readonly pb::GeneratedExtensionBase<string> OptionalStringPieceExtension = |
| 341 | pb::GeneratedSingleExtension<string>.CreateInstance(Descriptor.Extensions[22]); |
| 342 | public static readonly pb::GeneratedExtensionBase<string> OptionalCordExtension = |
| 343 | pb::GeneratedSingleExtension<string>.CreateInstance(Descriptor.Extensions[23]); |
| 344 | public static readonly |
| 345 | pb::GeneratedExtensionBase<scg::IList<int>> RepeatedInt32Extension = |
| 346 | pb::GeneratedRepeatExtension<int>.CreateInstance(Descriptor.Extensions[24]); |
| 347 | public static readonly |
| 348 | pb::GeneratedExtensionBase<scg::IList<long>> RepeatedInt64Extension = |
| 349 | pb::GeneratedRepeatExtension<long>.CreateInstance(Descriptor.Extensions[25]); |
| 350 | public static readonly |
| 351 | pb::GeneratedExtensionBase<scg::IList<uint>> RepeatedUint32Extension = |
| 352 | pb::GeneratedRepeatExtension<uint>.CreateInstance(Descriptor.Extensions[26]); |
| 353 | public static readonly |
| 354 | pb::GeneratedExtensionBase<scg::IList<ulong>> RepeatedUint64Extension = |
| 355 | pb::GeneratedRepeatExtension<ulong>.CreateInstance(Descriptor.Extensions[27]); |
| 356 | public static readonly |
| 357 | pb::GeneratedExtensionBase<scg::IList<int>> RepeatedSint32Extension = |
| 358 | pb::GeneratedRepeatExtension<int>.CreateInstance(Descriptor.Extensions[28]); |
| 359 | public static readonly |
| 360 | pb::GeneratedExtensionBase<scg::IList<long>> RepeatedSint64Extension = |
| 361 | pb::GeneratedRepeatExtension<long>.CreateInstance(Descriptor.Extensions[29]); |
| 362 | public static readonly |
| 363 | pb::GeneratedExtensionBase<scg::IList<uint>> RepeatedFixed32Extension = |
| 364 | pb::GeneratedRepeatExtension<uint>.CreateInstance(Descriptor.Extensions[30]); |
| 365 | public static readonly |
| 366 | pb::GeneratedExtensionBase<scg::IList<ulong>> RepeatedFixed64Extension = |
| 367 | pb::GeneratedRepeatExtension<ulong>.CreateInstance(Descriptor.Extensions[31]); |
| 368 | public static readonly |
| 369 | pb::GeneratedExtensionBase<scg::IList<int>> RepeatedSfixed32Extension = |
| 370 | pb::GeneratedRepeatExtension<int>.CreateInstance(Descriptor.Extensions[32]); |
| 371 | public static readonly |
| 372 | pb::GeneratedExtensionBase<scg::IList<long>> RepeatedSfixed64Extension = |
| 373 | pb::GeneratedRepeatExtension<long>.CreateInstance(Descriptor.Extensions[33]); |
| 374 | public static readonly |
| 375 | pb::GeneratedExtensionBase<scg::IList<float>> RepeatedFloatExtension = |
| 376 | pb::GeneratedRepeatExtension<float>.CreateInstance(Descriptor.Extensions[34]); |
| 377 | public static readonly |
| 378 | pb::GeneratedExtensionBase<scg::IList<double>> RepeatedDoubleExtension = |
| 379 | pb::GeneratedRepeatExtension<double>.CreateInstance(Descriptor.Extensions[35]); |
| 380 | public static readonly |
| 381 | pb::GeneratedExtensionBase<scg::IList<bool>> RepeatedBoolExtension = |
| 382 | pb::GeneratedRepeatExtension<bool>.CreateInstance(Descriptor.Extensions[36]); |
| 383 | public static readonly |
| 384 | pb::GeneratedExtensionBase<scg::IList<string>> RepeatedStringExtension = |
| 385 | pb::GeneratedRepeatExtension<string>.CreateInstance(Descriptor.Extensions[37]); |
| 386 | public static readonly |
| 387 | pb::GeneratedExtensionBase<scg::IList<pb::ByteString>> RepeatedBytesExtension = |
| 388 | pb::GeneratedRepeatExtension<pb::ByteString>.CreateInstance(Descriptor.Extensions[38]); |
| 389 | public static readonly |
| 390 | pb::GeneratedExtensionBase<scg::IList<global::Google.ProtocolBuffers.TestProtos.RepeatedGroup_extension>> RepeatedGroupExtension = |
| 391 | pb::GeneratedRepeatExtension<global::Google.ProtocolBuffers.TestProtos.RepeatedGroup_extension>.CreateInstance(Descriptor.Extensions[39]); |
| 392 | public static readonly |
| 393 | pb::GeneratedExtensionBase<scg::IList<global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedMessage>> RepeatedNestedMessageExtension = |
| 394 | pb::GeneratedRepeatExtension<global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedMessage>.CreateInstance(Descriptor.Extensions[40]); |
| 395 | public static readonly |
| 396 | pb::GeneratedExtensionBase<scg::IList<global::Google.ProtocolBuffers.TestProtos.ForeignMessage>> RepeatedForeignMessageExtension = |
| 397 | pb::GeneratedRepeatExtension<global::Google.ProtocolBuffers.TestProtos.ForeignMessage>.CreateInstance(Descriptor.Extensions[41]); |
| 398 | public static readonly |
| 399 | pb::GeneratedExtensionBase<scg::IList<global::Google.ProtocolBuffers.TestProtos.ImportMessage>> RepeatedImportMessageExtension = |
| 400 | pb::GeneratedRepeatExtension<global::Google.ProtocolBuffers.TestProtos.ImportMessage>.CreateInstance(Descriptor.Extensions[42]); |
| 401 | public static readonly |
| 402 | pb::GeneratedExtensionBase<scg::IList<global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedEnum>> RepeatedNestedEnumExtension = |
| 403 | pb::GeneratedRepeatExtension<global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedEnum>.CreateInstance(Descriptor.Extensions[43]); |
| 404 | public static readonly |
| 405 | pb::GeneratedExtensionBase<scg::IList<global::Google.ProtocolBuffers.TestProtos.ForeignEnum>> RepeatedForeignEnumExtension = |
| 406 | pb::GeneratedRepeatExtension<global::Google.ProtocolBuffers.TestProtos.ForeignEnum>.CreateInstance(Descriptor.Extensions[44]); |
| 407 | public static readonly |
| 408 | pb::GeneratedExtensionBase<scg::IList<global::Google.ProtocolBuffers.TestProtos.ImportEnum>> RepeatedImportEnumExtension = |
| 409 | pb::GeneratedRepeatExtension<global::Google.ProtocolBuffers.TestProtos.ImportEnum>.CreateInstance(Descriptor.Extensions[45]); |
| 410 | public static readonly |
| 411 | pb::GeneratedExtensionBase<scg::IList<string>> RepeatedStringPieceExtension = |
| 412 | pb::GeneratedRepeatExtension<string>.CreateInstance(Descriptor.Extensions[46]); |
| 413 | public static readonly |
| 414 | pb::GeneratedExtensionBase<scg::IList<string>> RepeatedCordExtension = |
| 415 | pb::GeneratedRepeatExtension<string>.CreateInstance(Descriptor.Extensions[47]); |
| 416 | public static readonly pb::GeneratedExtensionBase<int> DefaultInt32Extension = |
| 417 | pb::GeneratedSingleExtension<int>.CreateInstance(Descriptor.Extensions[48]); |
| 418 | public static readonly pb::GeneratedExtensionBase<long> DefaultInt64Extension = |
| 419 | pb::GeneratedSingleExtension<long>.CreateInstance(Descriptor.Extensions[49]); |
| 420 | public static readonly pb::GeneratedExtensionBase<uint> DefaultUint32Extension = |
| 421 | pb::GeneratedSingleExtension<uint>.CreateInstance(Descriptor.Extensions[50]); |
| 422 | public static readonly pb::GeneratedExtensionBase<ulong> DefaultUint64Extension = |
| 423 | pb::GeneratedSingleExtension<ulong>.CreateInstance(Descriptor.Extensions[51]); |
| 424 | public static readonly pb::GeneratedExtensionBase<int> DefaultSint32Extension = |
| 425 | pb::GeneratedSingleExtension<int>.CreateInstance(Descriptor.Extensions[52]); |
| 426 | public static readonly pb::GeneratedExtensionBase<long> DefaultSint64Extension = |
| 427 | pb::GeneratedSingleExtension<long>.CreateInstance(Descriptor.Extensions[53]); |
| 428 | public static readonly pb::GeneratedExtensionBase<uint> DefaultFixed32Extension = |
| 429 | pb::GeneratedSingleExtension<uint>.CreateInstance(Descriptor.Extensions[54]); |
| 430 | public static readonly pb::GeneratedExtensionBase<ulong> DefaultFixed64Extension = |
| 431 | pb::GeneratedSingleExtension<ulong>.CreateInstance(Descriptor.Extensions[55]); |
| 432 | public static readonly pb::GeneratedExtensionBase<int> DefaultSfixed32Extension = |
| 433 | pb::GeneratedSingleExtension<int>.CreateInstance(Descriptor.Extensions[56]); |
| 434 | public static readonly pb::GeneratedExtensionBase<long> DefaultSfixed64Extension = |
| 435 | pb::GeneratedSingleExtension<long>.CreateInstance(Descriptor.Extensions[57]); |
| 436 | public static readonly pb::GeneratedExtensionBase<float> DefaultFloatExtension = |
| 437 | pb::GeneratedSingleExtension<float>.CreateInstance(Descriptor.Extensions[58]); |
| 438 | public static readonly pb::GeneratedExtensionBase<double> DefaultDoubleExtension = |
| 439 | pb::GeneratedSingleExtension<double>.CreateInstance(Descriptor.Extensions[59]); |
| 440 | public static readonly pb::GeneratedExtensionBase<bool> DefaultBoolExtension = |
| 441 | pb::GeneratedSingleExtension<bool>.CreateInstance(Descriptor.Extensions[60]); |
| 442 | public static readonly pb::GeneratedExtensionBase<string> DefaultStringExtension = |
| 443 | pb::GeneratedSingleExtension<string>.CreateInstance(Descriptor.Extensions[61]); |
| 444 | public static readonly pb::GeneratedExtensionBase<pb::ByteString> DefaultBytesExtension = |
| 445 | pb::GeneratedSingleExtension<pb::ByteString>.CreateInstance(Descriptor.Extensions[62]); |
| 446 | public static readonly pb::GeneratedExtensionBase<global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedEnum> DefaultNestedEnumExtension = |
| 447 | pb::GeneratedSingleExtension<global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedEnum>.CreateInstance(Descriptor.Extensions[63]); |
| 448 | public static readonly pb::GeneratedExtensionBase<global::Google.ProtocolBuffers.TestProtos.ForeignEnum> DefaultForeignEnumExtension = |
| 449 | pb::GeneratedSingleExtension<global::Google.ProtocolBuffers.TestProtos.ForeignEnum>.CreateInstance(Descriptor.Extensions[64]); |
| 450 | public static readonly pb::GeneratedExtensionBase<global::Google.ProtocolBuffers.TestProtos.ImportEnum> DefaultImportEnumExtension = |
| 451 | pb::GeneratedSingleExtension<global::Google.ProtocolBuffers.TestProtos.ImportEnum>.CreateInstance(Descriptor.Extensions[65]); |
| 452 | public static readonly pb::GeneratedExtensionBase<string> DefaultStringPieceExtension = |
| 453 | pb::GeneratedSingleExtension<string>.CreateInstance(Descriptor.Extensions[66]); |
| 454 | public static readonly pb::GeneratedExtensionBase<string> DefaultCordExtension = |
| 455 | pb::GeneratedSingleExtension<string>.CreateInstance(Descriptor.Extensions[67]); |
| 456 | public static readonly pb::GeneratedExtensionBase<string> MyExtensionString = |
| 457 | pb::GeneratedSingleExtension<string>.CreateInstance(Descriptor.Extensions[68]); |
| 458 | public static readonly pb::GeneratedExtensionBase<int> MyExtensionInt = |
| 459 | pb::GeneratedSingleExtension<int>.CreateInstance(Descriptor.Extensions[69]); |
| 460 | #endregion |
| 461 | |
| 462 | #region Static variables |
| 463 | internal static readonly pbd::MessageDescriptor internal__static_protobuf_unittest_TestAllTypes__Descriptor |
| 464 | = Descriptor.MessageTypes[0]; |
| 465 | internal static pb::FieldAccess.FieldAccessorTable<global::Google.ProtocolBuffers.TestProtos.TestAllTypes, global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Builder> internal__static_protobuf_unittest_TestAllTypes__FieldAccessorTable |
| 466 | = new pb::FieldAccess.FieldAccessorTable<global::Google.ProtocolBuffers.TestProtos.TestAllTypes, global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Builder>(internal__static_protobuf_unittest_TestAllTypes__Descriptor, |
| 467 | 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", }); |
| 468 | internal static readonly pbd::MessageDescriptor internal__static_protobuf_unittest_TestAllTypes_NestedMessage__Descriptor |
| 469 | = internal__static_protobuf_unittest_TestAllTypes__Descriptor.NestedTypes[0]; |
| 470 | 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 |
| 471 | = 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, |
| 472 | new string[] { "Bb", }); |
| 473 | internal static readonly pbd::MessageDescriptor internal__static_protobuf_unittest_TestAllTypes_OptionalGroup__Descriptor |
| 474 | = internal__static_protobuf_unittest_TestAllTypes__Descriptor.NestedTypes[1]; |
| 475 | 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 |
| 476 | = 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, |
| 477 | new string[] { "A", }); |
| 478 | internal static readonly pbd::MessageDescriptor internal__static_protobuf_unittest_TestAllTypes_RepeatedGroup__Descriptor |
| 479 | = internal__static_protobuf_unittest_TestAllTypes__Descriptor.NestedTypes[2]; |
| 480 | 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 |
| 481 | = 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, |
| 482 | new string[] { "A", }); |
| 483 | internal static readonly pbd::MessageDescriptor internal__static_protobuf_unittest_ForeignMessage__Descriptor |
| 484 | = Descriptor.MessageTypes[1]; |
| 485 | internal static pb::FieldAccess.FieldAccessorTable<global::Google.ProtocolBuffers.TestProtos.ForeignMessage, global::Google.ProtocolBuffers.TestProtos.ForeignMessage.Builder> internal__static_protobuf_unittest_ForeignMessage__FieldAccessorTable |
| 486 | = new pb::FieldAccess.FieldAccessorTable<global::Google.ProtocolBuffers.TestProtos.ForeignMessage, global::Google.ProtocolBuffers.TestProtos.ForeignMessage.Builder>(internal__static_protobuf_unittest_ForeignMessage__Descriptor, |
| 487 | new string[] { "C", }); |
| 488 | internal static readonly pbd::MessageDescriptor internal__static_protobuf_unittest_TestAllExtensions__Descriptor |
| 489 | = Descriptor.MessageTypes[2]; |
| 490 | internal static pb::FieldAccess.FieldAccessorTable<global::Google.ProtocolBuffers.TestProtos.TestAllExtensions, global::Google.ProtocolBuffers.TestProtos.TestAllExtensions.Builder> internal__static_protobuf_unittest_TestAllExtensions__FieldAccessorTable |
| 491 | = new pb::FieldAccess.FieldAccessorTable<global::Google.ProtocolBuffers.TestProtos.TestAllExtensions, global::Google.ProtocolBuffers.TestProtos.TestAllExtensions.Builder>(internal__static_protobuf_unittest_TestAllExtensions__Descriptor, |
| 492 | new string[] { }); |
| 493 | internal static readonly pbd::MessageDescriptor internal__static_protobuf_unittest_OptionalGroup_extension__Descriptor |
| 494 | = Descriptor.MessageTypes[3]; |
| 495 | 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 |
| 496 | = new pb::FieldAccess.FieldAccessorTable<global::Google.ProtocolBuffers.TestProtos.OptionalGroup_extension, global::Google.ProtocolBuffers.TestProtos.OptionalGroup_extension.Builder>(internal__static_protobuf_unittest_OptionalGroup_extension__Descriptor, |
| 497 | new string[] { "A", }); |
| 498 | internal static readonly pbd::MessageDescriptor internal__static_protobuf_unittest_RepeatedGroup_extension__Descriptor |
| 499 | = Descriptor.MessageTypes[4]; |
| 500 | 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 |
| 501 | = new pb::FieldAccess.FieldAccessorTable<global::Google.ProtocolBuffers.TestProtos.RepeatedGroup_extension, global::Google.ProtocolBuffers.TestProtos.RepeatedGroup_extension.Builder>(internal__static_protobuf_unittest_RepeatedGroup_extension__Descriptor, |
| 502 | new string[] { "A", }); |
| 503 | internal static readonly pbd::MessageDescriptor internal__static_protobuf_unittest_TestRequired__Descriptor |
| 504 | = Descriptor.MessageTypes[5]; |
| 505 | internal static pb::FieldAccess.FieldAccessorTable<global::Google.ProtocolBuffers.TestProtos.TestRequired, global::Google.ProtocolBuffers.TestProtos.TestRequired.Builder> internal__static_protobuf_unittest_TestRequired__FieldAccessorTable |
| 506 | = new pb::FieldAccess.FieldAccessorTable<global::Google.ProtocolBuffers.TestProtos.TestRequired, global::Google.ProtocolBuffers.TestProtos.TestRequired.Builder>(internal__static_protobuf_unittest_TestRequired__Descriptor, |
| 507 | 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", }); |
| 508 | internal static readonly pbd::MessageDescriptor internal__static_protobuf_unittest_TestRequiredForeign__Descriptor |
| 509 | = Descriptor.MessageTypes[6]; |
| 510 | internal static pb::FieldAccess.FieldAccessorTable<global::Google.ProtocolBuffers.TestProtos.TestRequiredForeign, global::Google.ProtocolBuffers.TestProtos.TestRequiredForeign.Builder> internal__static_protobuf_unittest_TestRequiredForeign__FieldAccessorTable |
| 511 | = new pb::FieldAccess.FieldAccessorTable<global::Google.ProtocolBuffers.TestProtos.TestRequiredForeign, global::Google.ProtocolBuffers.TestProtos.TestRequiredForeign.Builder>(internal__static_protobuf_unittest_TestRequiredForeign__Descriptor, |
| 512 | new string[] { "OptionalMessage", "RepeatedMessage", "Dummy", }); |
| 513 | internal static readonly pbd::MessageDescriptor internal__static_protobuf_unittest_TestForeignNested__Descriptor |
| 514 | = Descriptor.MessageTypes[7]; |
| 515 | internal static pb::FieldAccess.FieldAccessorTable<global::Google.ProtocolBuffers.TestProtos.TestForeignNested, global::Google.ProtocolBuffers.TestProtos.TestForeignNested.Builder> internal__static_protobuf_unittest_TestForeignNested__FieldAccessorTable |
| 516 | = new pb::FieldAccess.FieldAccessorTable<global::Google.ProtocolBuffers.TestProtos.TestForeignNested, global::Google.ProtocolBuffers.TestProtos.TestForeignNested.Builder>(internal__static_protobuf_unittest_TestForeignNested__Descriptor, |
| 517 | new string[] { "ForeignNested", }); |
| 518 | internal static readonly pbd::MessageDescriptor internal__static_protobuf_unittest_TestEmptyMessage__Descriptor |
| 519 | = Descriptor.MessageTypes[8]; |
| 520 | internal static pb::FieldAccess.FieldAccessorTable<global::Google.ProtocolBuffers.TestProtos.TestEmptyMessage, global::Google.ProtocolBuffers.TestProtos.TestEmptyMessage.Builder> internal__static_protobuf_unittest_TestEmptyMessage__FieldAccessorTable |
| 521 | = new pb::FieldAccess.FieldAccessorTable<global::Google.ProtocolBuffers.TestProtos.TestEmptyMessage, global::Google.ProtocolBuffers.TestProtos.TestEmptyMessage.Builder>(internal__static_protobuf_unittest_TestEmptyMessage__Descriptor, |
| 522 | new string[] { }); |
| 523 | internal static readonly pbd::MessageDescriptor internal__static_protobuf_unittest_TestEmptyMessageWithExtensions__Descriptor |
| 524 | = Descriptor.MessageTypes[9]; |
| 525 | internal static pb::FieldAccess.FieldAccessorTable<global::Google.ProtocolBuffers.TestProtos.TestEmptyMessageWithExtensions, global::Google.ProtocolBuffers.TestProtos.TestEmptyMessageWithExtensions.Builder> internal__static_protobuf_unittest_TestEmptyMessageWithExtensions__FieldAccessorTable |
| 526 | = new pb::FieldAccess.FieldAccessorTable<global::Google.ProtocolBuffers.TestProtos.TestEmptyMessageWithExtensions, global::Google.ProtocolBuffers.TestProtos.TestEmptyMessageWithExtensions.Builder>(internal__static_protobuf_unittest_TestEmptyMessageWithExtensions__Descriptor, |
| 527 | new string[] { }); |
| 528 | internal static readonly pbd::MessageDescriptor internal__static_protobuf_unittest_TestReallyLargeTagNumber__Descriptor |
| 529 | = Descriptor.MessageTypes[10]; |
| 530 | internal static pb::FieldAccess.FieldAccessorTable<global::Google.ProtocolBuffers.TestProtos.TestReallyLargeTagNumber, global::Google.ProtocolBuffers.TestProtos.TestReallyLargeTagNumber.Builder> internal__static_protobuf_unittest_TestReallyLargeTagNumber__FieldAccessorTable |
| 531 | = new pb::FieldAccess.FieldAccessorTable<global::Google.ProtocolBuffers.TestProtos.TestReallyLargeTagNumber, global::Google.ProtocolBuffers.TestProtos.TestReallyLargeTagNumber.Builder>(internal__static_protobuf_unittest_TestReallyLargeTagNumber__Descriptor, |
| 532 | new string[] { "A", "Bb", }); |
| 533 | internal static readonly pbd::MessageDescriptor internal__static_protobuf_unittest_TestRecursiveMessage__Descriptor |
| 534 | = Descriptor.MessageTypes[11]; |
| 535 | internal static pb::FieldAccess.FieldAccessorTable<global::Google.ProtocolBuffers.TestProtos.TestRecursiveMessage, global::Google.ProtocolBuffers.TestProtos.TestRecursiveMessage.Builder> internal__static_protobuf_unittest_TestRecursiveMessage__FieldAccessorTable |
| 536 | = new pb::FieldAccess.FieldAccessorTable<global::Google.ProtocolBuffers.TestProtos.TestRecursiveMessage, global::Google.ProtocolBuffers.TestProtos.TestRecursiveMessage.Builder>(internal__static_protobuf_unittest_TestRecursiveMessage__Descriptor, |
| 537 | new string[] { "A", "I", }); |
| 538 | internal static readonly pbd::MessageDescriptor internal__static_protobuf_unittest_TestMutualRecursionA__Descriptor |
| 539 | = Descriptor.MessageTypes[12]; |
| 540 | internal static pb::FieldAccess.FieldAccessorTable<global::Google.ProtocolBuffers.TestProtos.TestMutualRecursionA, global::Google.ProtocolBuffers.TestProtos.TestMutualRecursionA.Builder> internal__static_protobuf_unittest_TestMutualRecursionA__FieldAccessorTable |
| 541 | = new pb::FieldAccess.FieldAccessorTable<global::Google.ProtocolBuffers.TestProtos.TestMutualRecursionA, global::Google.ProtocolBuffers.TestProtos.TestMutualRecursionA.Builder>(internal__static_protobuf_unittest_TestMutualRecursionA__Descriptor, |
| 542 | new string[] { "Bb", }); |
| 543 | internal static readonly pbd::MessageDescriptor internal__static_protobuf_unittest_TestMutualRecursionB__Descriptor |
| 544 | = Descriptor.MessageTypes[13]; |
| 545 | internal static pb::FieldAccess.FieldAccessorTable<global::Google.ProtocolBuffers.TestProtos.TestMutualRecursionB, global::Google.ProtocolBuffers.TestProtos.TestMutualRecursionB.Builder> internal__static_protobuf_unittest_TestMutualRecursionB__FieldAccessorTable |
| 546 | = new pb::FieldAccess.FieldAccessorTable<global::Google.ProtocolBuffers.TestProtos.TestMutualRecursionB, global::Google.ProtocolBuffers.TestProtos.TestMutualRecursionB.Builder>(internal__static_protobuf_unittest_TestMutualRecursionB__Descriptor, |
| 547 | new string[] { "A", "OptionalInt32", }); |
| 548 | internal static readonly pbd::MessageDescriptor internal__static_protobuf_unittest_TestDupFieldNumber__Descriptor |
| 549 | = Descriptor.MessageTypes[14]; |
| 550 | internal static pb::FieldAccess.FieldAccessorTable<global::Google.ProtocolBuffers.TestProtos.TestDupFieldNumber, global::Google.ProtocolBuffers.TestProtos.TestDupFieldNumber.Builder> internal__static_protobuf_unittest_TestDupFieldNumber__FieldAccessorTable |
| 551 | = new pb::FieldAccess.FieldAccessorTable<global::Google.ProtocolBuffers.TestProtos.TestDupFieldNumber, global::Google.ProtocolBuffers.TestProtos.TestDupFieldNumber.Builder>(internal__static_protobuf_unittest_TestDupFieldNumber__Descriptor, |
| 552 | new string[] { "A", "Foo", "Bar", }); |
| 553 | internal static readonly pbd::MessageDescriptor internal__static_protobuf_unittest_TestDupFieldNumber_Foo__Descriptor |
| 554 | = internal__static_protobuf_unittest_TestDupFieldNumber__Descriptor.NestedTypes[0]; |
| 555 | 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 |
| 556 | = 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, |
| 557 | new string[] { "A", }); |
| 558 | internal static readonly pbd::MessageDescriptor internal__static_protobuf_unittest_TestDupFieldNumber_Bar__Descriptor |
| 559 | = internal__static_protobuf_unittest_TestDupFieldNumber__Descriptor.NestedTypes[1]; |
| 560 | 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 |
| 561 | = 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, |
| 562 | new string[] { "A", }); |
| 563 | internal static readonly pbd::MessageDescriptor internal__static_protobuf_unittest_TestNestedMessageHasBits__Descriptor |
| 564 | = Descriptor.MessageTypes[15]; |
| 565 | internal static pb::FieldAccess.FieldAccessorTable<global::Google.ProtocolBuffers.TestProtos.TestNestedMessageHasBits, global::Google.ProtocolBuffers.TestProtos.TestNestedMessageHasBits.Builder> internal__static_protobuf_unittest_TestNestedMessageHasBits__FieldAccessorTable |
| 566 | = new pb::FieldAccess.FieldAccessorTable<global::Google.ProtocolBuffers.TestProtos.TestNestedMessageHasBits, global::Google.ProtocolBuffers.TestProtos.TestNestedMessageHasBits.Builder>(internal__static_protobuf_unittest_TestNestedMessageHasBits__Descriptor, |
| 567 | new string[] { "OptionalNestedMessage", }); |
| 568 | internal static readonly pbd::MessageDescriptor internal__static_protobuf_unittest_TestNestedMessageHasBits_NestedMessage__Descriptor |
| 569 | = internal__static_protobuf_unittest_TestNestedMessageHasBits__Descriptor.NestedTypes[0]; |
| 570 | 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 |
| 571 | = 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, |
| 572 | new string[] { "NestedmessageRepeatedInt32", "NestedmessageRepeatedForeignmessage", }); |
| 573 | internal static readonly pbd::MessageDescriptor internal__static_protobuf_unittest_TestCamelCaseFieldNames__Descriptor |
| 574 | = Descriptor.MessageTypes[16]; |
| 575 | internal static pb::FieldAccess.FieldAccessorTable<global::Google.ProtocolBuffers.TestProtos.TestCamelCaseFieldNames, global::Google.ProtocolBuffers.TestProtos.TestCamelCaseFieldNames.Builder> internal__static_protobuf_unittest_TestCamelCaseFieldNames__FieldAccessorTable |
| 576 | = new pb::FieldAccess.FieldAccessorTable<global::Google.ProtocolBuffers.TestProtos.TestCamelCaseFieldNames, global::Google.ProtocolBuffers.TestProtos.TestCamelCaseFieldNames.Builder>(internal__static_protobuf_unittest_TestCamelCaseFieldNames__Descriptor, |
| 577 | new string[] { "PrimitiveField", "StringField", "EnumField", "MessageField", "StringPieceField", "CordField", "RepeatedPrimitiveField", "RepeatedStringField", "RepeatedEnumField", "RepeatedMessageField", "RepeatedStringPieceField", "RepeatedCordField", }); |
| 578 | internal static readonly pbd::MessageDescriptor internal__static_protobuf_unittest_TestFieldOrderings__Descriptor |
| 579 | = Descriptor.MessageTypes[17]; |
| 580 | internal static pb::FieldAccess.FieldAccessorTable<global::Google.ProtocolBuffers.TestProtos.TestFieldOrderings, global::Google.ProtocolBuffers.TestProtos.TestFieldOrderings.Builder> internal__static_protobuf_unittest_TestFieldOrderings__FieldAccessorTable |
| 581 | = new pb::FieldAccess.FieldAccessorTable<global::Google.ProtocolBuffers.TestProtos.TestFieldOrderings, global::Google.ProtocolBuffers.TestProtos.TestFieldOrderings.Builder>(internal__static_protobuf_unittest_TestFieldOrderings__Descriptor, |
| 582 | new string[] { "MyString", "MyInt", "MyFloat", }); |
| 583 | internal static readonly pbd::MessageDescriptor internal__static_protobuf_unittest_TestExtremeDefaultValues__Descriptor |
| 584 | = Descriptor.MessageTypes[18]; |
| 585 | internal static pb::FieldAccess.FieldAccessorTable<global::Google.ProtocolBuffers.TestProtos.TestExtremeDefaultValues, global::Google.ProtocolBuffers.TestProtos.TestExtremeDefaultValues.Builder> internal__static_protobuf_unittest_TestExtremeDefaultValues__FieldAccessorTable |
| 586 | = new pb::FieldAccess.FieldAccessorTable<global::Google.ProtocolBuffers.TestProtos.TestExtremeDefaultValues, global::Google.ProtocolBuffers.TestProtos.TestExtremeDefaultValues.Builder>(internal__static_protobuf_unittest_TestExtremeDefaultValues__Descriptor, |
| 587 | new string[] { "EscapedBytes", "LargeUint32", "LargeUint64", "SmallInt32", "SmallInt64", "Utf8String", }); |
| 588 | internal static readonly pbd::MessageDescriptor internal__static_protobuf_unittest_FooRequest__Descriptor |
| 589 | = Descriptor.MessageTypes[19]; |
| 590 | internal static pb::FieldAccess.FieldAccessorTable<global::Google.ProtocolBuffers.TestProtos.FooRequest, global::Google.ProtocolBuffers.TestProtos.FooRequest.Builder> internal__static_protobuf_unittest_FooRequest__FieldAccessorTable |
| 591 | = new pb::FieldAccess.FieldAccessorTable<global::Google.ProtocolBuffers.TestProtos.FooRequest, global::Google.ProtocolBuffers.TestProtos.FooRequest.Builder>(internal__static_protobuf_unittest_FooRequest__Descriptor, |
| 592 | new string[] { }); |
| 593 | internal static readonly pbd::MessageDescriptor internal__static_protobuf_unittest_FooResponse__Descriptor |
| 594 | = Descriptor.MessageTypes[20]; |
| 595 | internal static pb::FieldAccess.FieldAccessorTable<global::Google.ProtocolBuffers.TestProtos.FooResponse, global::Google.ProtocolBuffers.TestProtos.FooResponse.Builder> internal__static_protobuf_unittest_FooResponse__FieldAccessorTable |
| 596 | = new pb::FieldAccess.FieldAccessorTable<global::Google.ProtocolBuffers.TestProtos.FooResponse, global::Google.ProtocolBuffers.TestProtos.FooResponse.Builder>(internal__static_protobuf_unittest_FooResponse__Descriptor, |
| 597 | new string[] { }); |
| 598 | internal static readonly pbd::MessageDescriptor internal__static_protobuf_unittest_BarRequest__Descriptor |
| 599 | = Descriptor.MessageTypes[21]; |
| 600 | internal static pb::FieldAccess.FieldAccessorTable<global::Google.ProtocolBuffers.TestProtos.BarRequest, global::Google.ProtocolBuffers.TestProtos.BarRequest.Builder> internal__static_protobuf_unittest_BarRequest__FieldAccessorTable |
| 601 | = new pb::FieldAccess.FieldAccessorTable<global::Google.ProtocolBuffers.TestProtos.BarRequest, global::Google.ProtocolBuffers.TestProtos.BarRequest.Builder>(internal__static_protobuf_unittest_BarRequest__Descriptor, |
| 602 | new string[] { }); |
| 603 | internal static readonly pbd::MessageDescriptor internal__static_protobuf_unittest_BarResponse__Descriptor |
| 604 | = Descriptor.MessageTypes[22]; |
| 605 | internal static pb::FieldAccess.FieldAccessorTable<global::Google.ProtocolBuffers.TestProtos.BarResponse, global::Google.ProtocolBuffers.TestProtos.BarResponse.Builder> internal__static_protobuf_unittest_BarResponse__FieldAccessorTable |
| 606 | = new pb::FieldAccess.FieldAccessorTable<global::Google.ProtocolBuffers.TestProtos.BarResponse, global::Google.ProtocolBuffers.TestProtos.BarResponse.Builder>(internal__static_protobuf_unittest_BarResponse__Descriptor, |
| 607 | new string[] { }); |
| 608 | #endregion |
| 609 | } |
| 610 | #region Enums |
| 611 | public enum ForeignEnum { |
| 612 | FOREIGN_FOO = 4, |
| 613 | FOREIGN_BAR = 5, |
| 614 | FOREIGN_BAZ = 6, |
| 615 | } |
| 616 | |
| 617 | public enum TestEnumWithDupValue { |
| 618 | FOO1 = 1, |
| 619 | BAR1 = 2, |
| 620 | BAZ = 3, |
| 621 | FOO2 = 1, |
| 622 | BAR2 = 2, |
| 623 | } |
| 624 | |
| 625 | public enum TestSparseEnum { |
| 626 | SPARSE_A = 123, |
| 627 | SPARSE_B = 62374, |
| 628 | SPARSE_C = 12589234, |
| 629 | SPARSE_D = -15, |
| 630 | SPARSE_E = -53452, |
| 631 | SPARSE_F = 0, |
| 632 | SPARSE_G = 2, |
| 633 | } |
| 634 | |
| 635 | #endregion |
| 636 | |
| 637 | #region Messages |
| 638 | public sealed partial class TestAllTypes : pb::GeneratedMessage<TestAllTypes, TestAllTypes.Builder> { |
| 639 | private static readonly TestAllTypes defaultInstance = new Builder().BuildPartial(); |
| 640 | public static TestAllTypes DefaultInstance { |
| 641 | get { return defaultInstance; } |
| 642 | } |
| 643 | |
| 644 | public override TestAllTypes DefaultInstanceForType { |
| 645 | get { return defaultInstance; } |
| 646 | } |
| 647 | |
| 648 | protected override TestAllTypes ThisMessage { |
| 649 | get { return this; } |
| 650 | } |
| 651 | |
| 652 | public static pbd::MessageDescriptor Descriptor { |
| 653 | get { return global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.internal__static_protobuf_unittest_TestAllTypes__Descriptor; } |
| 654 | } |
| 655 | |
| 656 | protected override pb::FieldAccess.FieldAccessorTable<TestAllTypes, TestAllTypes.Builder> InternalFieldAccessors { |
| 657 | get { return global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.internal__static_protobuf_unittest_TestAllTypes__FieldAccessorTable; } |
| 658 | } |
| 659 | |
| 660 | #region Nested types |
| 661 | public static class Types { |
| 662 | public enum NestedEnum { |
| 663 | FOO = 1, |
| 664 | BAR = 2, |
| 665 | BAZ = 3, |
| 666 | } |
| 667 | |
| 668 | public sealed partial class NestedMessage : pb::GeneratedMessage<NestedMessage, NestedMessage.Builder> { |
| 669 | private static readonly NestedMessage defaultInstance = new Builder().BuildPartial(); |
| 670 | public static NestedMessage DefaultInstance { |
| 671 | get { return defaultInstance; } |
| 672 | } |
| 673 | |
| 674 | public override NestedMessage DefaultInstanceForType { |
| 675 | get { return defaultInstance; } |
| 676 | } |
| 677 | |
| 678 | protected override NestedMessage ThisMessage { |
| 679 | get { return this; } |
| 680 | } |
| 681 | |
| 682 | public static pbd::MessageDescriptor Descriptor { |
| 683 | get { return global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.internal__static_protobuf_unittest_TestAllTypes_NestedMessage__Descriptor; } |
| 684 | } |
| 685 | |
| 686 | protected override pb::FieldAccess.FieldAccessorTable<NestedMessage, NestedMessage.Builder> InternalFieldAccessors { |
| 687 | get { return global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.internal__static_protobuf_unittest_TestAllTypes_NestedMessage__FieldAccessorTable; } |
| 688 | } |
| 689 | |
| 690 | private bool hasBb; |
| 691 | private int bb_ = 0; |
| 692 | public bool HasBb { |
| 693 | get { return hasBb; } |
| 694 | } |
| 695 | public int Bb { |
| 696 | get { return bb_; } |
| 697 | } |
| 698 | |
| 699 | public override bool IsInitialized { |
| 700 | get { |
| 701 | return true; |
| 702 | } |
| 703 | } |
| 704 | |
| 705 | public override void WriteTo(pb::CodedOutputStream output) { |
| 706 | if (HasBb) { |
| 707 | output.WriteInt32(1, Bb); |
| 708 | } |
| 709 | UnknownFields.WriteTo(output); |
| 710 | } |
| 711 | |
| 712 | private int memoizedSerializedSize = -1; |
| 713 | public override int SerializedSize { |
| 714 | get { |
| 715 | int size = memoizedSerializedSize; |
| 716 | if (size != -1) return size; |
| 717 | |
| 718 | size = 0; |
| 719 | if (HasBb) { |
| 720 | size += pb::CodedOutputStream.ComputeInt32Size(1, Bb); |
| 721 | } |
| 722 | size += UnknownFields.SerializedSize; |
| 723 | memoizedSerializedSize = size; |
| 724 | return size; |
| 725 | } |
| 726 | } |
| 727 | |
| 728 | public static NestedMessage ParseFrom(pb::ByteString data) { |
| 729 | return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed(); |
| 730 | } |
| 731 | public static NestedMessage ParseFrom(pb::ByteString data, pb::ExtensionRegistry extensionRegistry) { |
| 732 | return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed(); |
| 733 | } |
| 734 | public static NestedMessage ParseFrom(byte[] data) { |
| 735 | return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed(); |
| 736 | } |
| 737 | public static NestedMessage ParseFrom(byte[] data, pb::ExtensionRegistry extensionRegistry) { |
| 738 | return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed(); |
| 739 | } |
| 740 | public static NestedMessage ParseFrom(global::System.IO.Stream input) { |
| 741 | return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed(); |
| 742 | } |
| 743 | public static NestedMessage ParseFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) { |
| 744 | return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed(); |
| 745 | } |
| 746 | public static NestedMessage ParseFrom(pb::CodedInputStream input) { |
| 747 | return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed(); |
| 748 | } |
| 749 | public static NestedMessage ParseFrom(pb::CodedInputStream input, pb::ExtensionRegistry extensionRegistry) { |
| 750 | return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed(); |
| 751 | } |
| 752 | public static Builder CreateBuilder() { return new Builder(); } |
| 753 | public override Builder CreateBuilderForType() { return new Builder(); } |
| 754 | public static Builder CreateBuilder(NestedMessage prototype) { |
| 755 | return (Builder) new Builder().MergeFrom(prototype); |
| 756 | } |
| 757 | |
| 758 | public sealed partial class Builder : pb::GeneratedBuilder<NestedMessage, Builder> { |
| 759 | protected override Builder ThisBuilder { |
| 760 | get { return this; } |
| 761 | } |
| 762 | public Builder() {} |
| 763 | |
| 764 | NestedMessage result = new NestedMessage(); |
| 765 | |
| 766 | protected override NestedMessage MessageBeingBuilt { |
| 767 | get { return result; } |
| 768 | } |
| 769 | |
| 770 | public override Builder Clear() { |
| 771 | result = new NestedMessage(); |
| 772 | return this; |
| 773 | } |
| 774 | |
| 775 | public override Builder Clone() { |
| 776 | return new Builder().MergeFrom(result); |
| 777 | } |
| 778 | |
| 779 | public override pbd::MessageDescriptor DescriptorForType { |
| 780 | get { return NestedMessage.Descriptor; } |
| 781 | } |
| 782 | |
| 783 | public override NestedMessage DefaultInstanceForType { |
| 784 | get { return NestedMessage.DefaultInstance; } |
| 785 | } |
| 786 | |
| 787 | public override NestedMessage BuildPartial() { |
| 788 | NestedMessage returnMe = result; |
| 789 | result = null; |
| 790 | return returnMe; |
| 791 | } |
| 792 | |
| 793 | public override Builder MergeFrom(pb::IMessage other) { |
| 794 | if (other is NestedMessage) { |
| 795 | return MergeFrom((NestedMessage) other); |
| 796 | } else { |
| 797 | base.MergeFrom(other); |
| 798 | return this; |
| 799 | } |
| 800 | } |
| 801 | |
| 802 | public override Builder MergeFrom(NestedMessage other) { |
| 803 | if (other == NestedMessage.DefaultInstance) return this; |
| 804 | if (other.HasBb) { |
| 805 | Bb = other.Bb; |
| 806 | } |
| 807 | this.MergeUnknownFields(other.UnknownFields); |
| 808 | return this; |
| 809 | } |
| 810 | |
| 811 | public override Builder MergeFrom(pb::CodedInputStream input) { |
| 812 | return MergeFrom(input, pb::ExtensionRegistry.Empty); |
| 813 | } |
| 814 | |
| 815 | public override Builder MergeFrom(pb::CodedInputStream input, pb::ExtensionRegistry extensionRegistry) { |
| 816 | pb::UnknownFieldSet.Builder unknownFields = pb::UnknownFieldSet.CreateBuilder(this.UnknownFields); |
| 817 | while (true) { |
| 818 | uint tag = input.ReadTag(); |
| 819 | switch (tag) { |
| 820 | case 0: { |
| 821 | this.UnknownFields = unknownFields.Build(); |
| 822 | return this; |
| 823 | } |
| 824 | default: { |
| 825 | if (!ParseUnknownField(input, unknownFields, extensionRegistry, tag)) { |
| 826 | this.UnknownFields = unknownFields.Build(); |
| 827 | return this; |
| 828 | } |
| 829 | break; |
| 830 | } |
| 831 | case 8: { |
| 832 | Bb = input.ReadInt32(); |
| 833 | break; |
| 834 | } |
| 835 | } |
| 836 | } |
| 837 | } |
| 838 | |
| 839 | |
| 840 | public bool HasBb { |
| 841 | get { return result.HasBb; } |
| 842 | } |
| 843 | public int Bb { |
| 844 | get { return result.Bb; } |
| 845 | set { SetBb(value); } |
| 846 | } |
| 847 | public Builder SetBb(int value) { |
| 848 | result.hasBb = true; |
| 849 | result.bb_ = value; |
| 850 | return this; |
| 851 | } |
| 852 | public Builder ClearBb() { |
| 853 | result.hasBb = false; |
| 854 | result.bb_ = 0; |
| 855 | return this; |
| 856 | } |
| 857 | } |
| 858 | } |
| 859 | |
| 860 | public sealed partial class OptionalGroup : pb::GeneratedMessage<OptionalGroup, OptionalGroup.Builder> { |
| 861 | private static readonly OptionalGroup defaultInstance = new Builder().BuildPartial(); |
| 862 | public static OptionalGroup DefaultInstance { |
| 863 | get { return defaultInstance; } |
| 864 | } |
| 865 | |
| 866 | public override OptionalGroup DefaultInstanceForType { |
| 867 | get { return defaultInstance; } |
| 868 | } |
| 869 | |
| 870 | protected override OptionalGroup ThisMessage { |
| 871 | get { return this; } |
| 872 | } |
| 873 | |
| 874 | public static pbd::MessageDescriptor Descriptor { |
| 875 | get { return global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.internal__static_protobuf_unittest_TestAllTypes_OptionalGroup__Descriptor; } |
| 876 | } |
| 877 | |
| 878 | protected override pb::FieldAccess.FieldAccessorTable<OptionalGroup, OptionalGroup.Builder> InternalFieldAccessors { |
| 879 | get { return global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.internal__static_protobuf_unittest_TestAllTypes_OptionalGroup__FieldAccessorTable; } |
| 880 | } |
| 881 | |
| 882 | private bool hasA; |
| 883 | private int a_ = 0; |
| 884 | public bool HasA { |
| 885 | get { return hasA; } |
| 886 | } |
| 887 | public int A { |
| 888 | get { return a_; } |
| 889 | } |
| 890 | |
| 891 | public override bool IsInitialized { |
| 892 | get { |
| 893 | return true; |
| 894 | } |
| 895 | } |
| 896 | |
| 897 | public override void WriteTo(pb::CodedOutputStream output) { |
| 898 | if (HasA) { |
| 899 | output.WriteInt32(17, A); |
| 900 | } |
| 901 | UnknownFields.WriteTo(output); |
| 902 | } |
| 903 | |
| 904 | private int memoizedSerializedSize = -1; |
| 905 | public override int SerializedSize { |
| 906 | get { |
| 907 | int size = memoizedSerializedSize; |
| 908 | if (size != -1) return size; |
| 909 | |
| 910 | size = 0; |
| 911 | if (HasA) { |
| 912 | size += pb::CodedOutputStream.ComputeInt32Size(17, A); |
| 913 | } |
| 914 | size += UnknownFields.SerializedSize; |
| 915 | memoizedSerializedSize = size; |
| 916 | return size; |
| 917 | } |
| 918 | } |
| 919 | |
| 920 | public static OptionalGroup ParseFrom(pb::ByteString data) { |
| 921 | return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed(); |
| 922 | } |
| 923 | public static OptionalGroup ParseFrom(pb::ByteString data, pb::ExtensionRegistry extensionRegistry) { |
| 924 | return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed(); |
| 925 | } |
| 926 | public static OptionalGroup ParseFrom(byte[] data) { |
| 927 | return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed(); |
| 928 | } |
| 929 | public static OptionalGroup ParseFrom(byte[] data, pb::ExtensionRegistry extensionRegistry) { |
| 930 | return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed(); |
| 931 | } |
| 932 | public static OptionalGroup ParseFrom(global::System.IO.Stream input) { |
| 933 | return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed(); |
| 934 | } |
| 935 | public static OptionalGroup ParseFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) { |
| 936 | return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed(); |
| 937 | } |
| 938 | public static OptionalGroup ParseFrom(pb::CodedInputStream input) { |
| 939 | return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed(); |
| 940 | } |
| 941 | public static OptionalGroup ParseFrom(pb::CodedInputStream input, pb::ExtensionRegistry extensionRegistry) { |
| 942 | return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed(); |
| 943 | } |
| 944 | public static Builder CreateBuilder() { return new Builder(); } |
| 945 | public override Builder CreateBuilderForType() { return new Builder(); } |
| 946 | public static Builder CreateBuilder(OptionalGroup prototype) { |
| 947 | return (Builder) new Builder().MergeFrom(prototype); |
| 948 | } |
| 949 | |
| 950 | public sealed partial class Builder : pb::GeneratedBuilder<OptionalGroup, Builder> { |
| 951 | protected override Builder ThisBuilder { |
| 952 | get { return this; } |
| 953 | } |
| 954 | public Builder() {} |
| 955 | |
| 956 | OptionalGroup result = new OptionalGroup(); |
| 957 | |
| 958 | protected override OptionalGroup MessageBeingBuilt { |
| 959 | get { return result; } |
| 960 | } |
| 961 | |
| 962 | public override Builder Clear() { |
| 963 | result = new OptionalGroup(); |
| 964 | return this; |
| 965 | } |
| 966 | |
| 967 | public override Builder Clone() { |
| 968 | return new Builder().MergeFrom(result); |
| 969 | } |
| 970 | |
| 971 | public override pbd::MessageDescriptor DescriptorForType { |
| 972 | get { return OptionalGroup.Descriptor; } |
| 973 | } |
| 974 | |
| 975 | public override OptionalGroup DefaultInstanceForType { |
| 976 | get { return OptionalGroup.DefaultInstance; } |
| 977 | } |
| 978 | |
| 979 | public override OptionalGroup BuildPartial() { |
| 980 | OptionalGroup returnMe = result; |
| 981 | result = null; |
| 982 | return returnMe; |
| 983 | } |
| 984 | |
| 985 | public override Builder MergeFrom(pb::IMessage other) { |
| 986 | if (other is OptionalGroup) { |
| 987 | return MergeFrom((OptionalGroup) other); |
| 988 | } else { |
| 989 | base.MergeFrom(other); |
| 990 | return this; |
| 991 | } |
| 992 | } |
| 993 | |
| 994 | public override Builder MergeFrom(OptionalGroup other) { |
| 995 | if (other == OptionalGroup.DefaultInstance) return this; |
| 996 | if (other.HasA) { |
| 997 | A = other.A; |
| 998 | } |
| 999 | this.MergeUnknownFields(other.UnknownFields); |
| 1000 | return this; |
| 1001 | } |
| 1002 | |
| 1003 | public override Builder MergeFrom(pb::CodedInputStream input) { |
| 1004 | return MergeFrom(input, pb::ExtensionRegistry.Empty); |
| 1005 | } |
| 1006 | |
| 1007 | public override Builder MergeFrom(pb::CodedInputStream input, pb::ExtensionRegistry extensionRegistry) { |
| 1008 | pb::UnknownFieldSet.Builder unknownFields = pb::UnknownFieldSet.CreateBuilder(this.UnknownFields); |
| 1009 | while (true) { |
| 1010 | uint tag = input.ReadTag(); |
| 1011 | switch (tag) { |
| 1012 | case 0: { |
| 1013 | this.UnknownFields = unknownFields.Build(); |
| 1014 | return this; |
| 1015 | } |
| 1016 | default: { |
| 1017 | if (!ParseUnknownField(input, unknownFields, extensionRegistry, tag)) { |
| 1018 | this.UnknownFields = unknownFields.Build(); |
| 1019 | return this; |
| 1020 | } |
| 1021 | break; |
| 1022 | } |
| 1023 | case 136: { |
| 1024 | A = input.ReadInt32(); |
| 1025 | break; |
| 1026 | } |
| 1027 | } |
| 1028 | } |
| 1029 | } |
| 1030 | |
| 1031 | |
| 1032 | public bool HasA { |
| 1033 | get { return result.HasA; } |
| 1034 | } |
| 1035 | public int A { |
| 1036 | get { return result.A; } |
| 1037 | set { SetA(value); } |
| 1038 | } |
| 1039 | public Builder SetA(int value) { |
| 1040 | result.hasA = true; |
| 1041 | result.a_ = value; |
| 1042 | return this; |
| 1043 | } |
| 1044 | public Builder ClearA() { |
| 1045 | result.hasA = false; |
| 1046 | result.a_ = 0; |
| 1047 | return this; |
| 1048 | } |
| 1049 | } |
| 1050 | } |
| 1051 | |
| 1052 | public sealed partial class RepeatedGroup : pb::GeneratedMessage<RepeatedGroup, RepeatedGroup.Builder> { |
| 1053 | private static readonly RepeatedGroup defaultInstance = new Builder().BuildPartial(); |
| 1054 | public static RepeatedGroup DefaultInstance { |
| 1055 | get { return defaultInstance; } |
| 1056 | } |
| 1057 | |
| 1058 | public override RepeatedGroup DefaultInstanceForType { |
| 1059 | get { return defaultInstance; } |
| 1060 | } |
| 1061 | |
| 1062 | protected override RepeatedGroup ThisMessage { |
| 1063 | get { return this; } |
| 1064 | } |
| 1065 | |
| 1066 | public static pbd::MessageDescriptor Descriptor { |
| 1067 | get { return global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.internal__static_protobuf_unittest_TestAllTypes_RepeatedGroup__Descriptor; } |
| 1068 | } |
| 1069 | |
| 1070 | protected override pb::FieldAccess.FieldAccessorTable<RepeatedGroup, RepeatedGroup.Builder> InternalFieldAccessors { |
| 1071 | get { return global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.internal__static_protobuf_unittest_TestAllTypes_RepeatedGroup__FieldAccessorTable; } |
| 1072 | } |
| 1073 | |
| 1074 | private bool hasA; |
| 1075 | private int a_ = 0; |
| 1076 | public bool HasA { |
| 1077 | get { return hasA; } |
| 1078 | } |
| 1079 | public int A { |
| 1080 | get { return a_; } |
| 1081 | } |
| 1082 | |
| 1083 | public override bool IsInitialized { |
| 1084 | get { |
| 1085 | return true; |
| 1086 | } |
| 1087 | } |
| 1088 | |
| 1089 | public override void WriteTo(pb::CodedOutputStream output) { |
| 1090 | if (HasA) { |
| 1091 | output.WriteInt32(47, A); |
| 1092 | } |
| 1093 | UnknownFields.WriteTo(output); |
| 1094 | } |
| 1095 | |
| 1096 | private int memoizedSerializedSize = -1; |
| 1097 | public override int SerializedSize { |
| 1098 | get { |
| 1099 | int size = memoizedSerializedSize; |
| 1100 | if (size != -1) return size; |
| 1101 | |
| 1102 | size = 0; |
| 1103 | if (HasA) { |
| 1104 | size += pb::CodedOutputStream.ComputeInt32Size(47, A); |
| 1105 | } |
| 1106 | size += UnknownFields.SerializedSize; |
| 1107 | memoizedSerializedSize = size; |
| 1108 | return size; |
| 1109 | } |
| 1110 | } |
| 1111 | |
| 1112 | public static RepeatedGroup ParseFrom(pb::ByteString data) { |
| 1113 | return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed(); |
| 1114 | } |
| 1115 | public static RepeatedGroup ParseFrom(pb::ByteString data, pb::ExtensionRegistry extensionRegistry) { |
| 1116 | return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed(); |
| 1117 | } |
| 1118 | public static RepeatedGroup ParseFrom(byte[] data) { |
| 1119 | return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed(); |
| 1120 | } |
| 1121 | public static RepeatedGroup ParseFrom(byte[] data, pb::ExtensionRegistry extensionRegistry) { |
| 1122 | return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed(); |
| 1123 | } |
| 1124 | public static RepeatedGroup ParseFrom(global::System.IO.Stream input) { |
| 1125 | return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed(); |
| 1126 | } |
| 1127 | public static RepeatedGroup ParseFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) { |
| 1128 | return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed(); |
| 1129 | } |
| 1130 | public static RepeatedGroup ParseFrom(pb::CodedInputStream input) { |
| 1131 | return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed(); |
| 1132 | } |
| 1133 | public static RepeatedGroup ParseFrom(pb::CodedInputStream input, pb::ExtensionRegistry extensionRegistry) { |
| 1134 | return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed(); |
| 1135 | } |
| 1136 | public static Builder CreateBuilder() { return new Builder(); } |
| 1137 | public override Builder CreateBuilderForType() { return new Builder(); } |
| 1138 | public static Builder CreateBuilder(RepeatedGroup prototype) { |
| 1139 | return (Builder) new Builder().MergeFrom(prototype); |
| 1140 | } |
| 1141 | |
| 1142 | public sealed partial class Builder : pb::GeneratedBuilder<RepeatedGroup, Builder> { |
| 1143 | protected override Builder ThisBuilder { |
| 1144 | get { return this; } |
| 1145 | } |
| 1146 | public Builder() {} |
| 1147 | |
| 1148 | RepeatedGroup result = new RepeatedGroup(); |
| 1149 | |
| 1150 | protected override RepeatedGroup MessageBeingBuilt { |
| 1151 | get { return result; } |
| 1152 | } |
| 1153 | |
| 1154 | public override Builder Clear() { |
| 1155 | result = new RepeatedGroup(); |
| 1156 | return this; |
| 1157 | } |
| 1158 | |
| 1159 | public override Builder Clone() { |
| 1160 | return new Builder().MergeFrom(result); |
| 1161 | } |
| 1162 | |
| 1163 | public override pbd::MessageDescriptor DescriptorForType { |
| 1164 | get { return RepeatedGroup.Descriptor; } |
| 1165 | } |
| 1166 | |
| 1167 | public override RepeatedGroup DefaultInstanceForType { |
| 1168 | get { return RepeatedGroup.DefaultInstance; } |
| 1169 | } |
| 1170 | |
| 1171 | public override RepeatedGroup BuildPartial() { |
| 1172 | RepeatedGroup returnMe = result; |
| 1173 | result = null; |
| 1174 | return returnMe; |
| 1175 | } |
| 1176 | |
| 1177 | public override Builder MergeFrom(pb::IMessage other) { |
| 1178 | if (other is RepeatedGroup) { |
| 1179 | return MergeFrom((RepeatedGroup) other); |
| 1180 | } else { |
| 1181 | base.MergeFrom(other); |
| 1182 | return this; |
| 1183 | } |
| 1184 | } |
| 1185 | |
| 1186 | public override Builder MergeFrom(RepeatedGroup other) { |
| 1187 | if (other == RepeatedGroup.DefaultInstance) return this; |
| 1188 | if (other.HasA) { |
| 1189 | A = other.A; |
| 1190 | } |
| 1191 | this.MergeUnknownFields(other.UnknownFields); |
| 1192 | return this; |
| 1193 | } |
| 1194 | |
| 1195 | public override Builder MergeFrom(pb::CodedInputStream input) { |
| 1196 | return MergeFrom(input, pb::ExtensionRegistry.Empty); |
| 1197 | } |
| 1198 | |
| 1199 | public override Builder MergeFrom(pb::CodedInputStream input, pb::ExtensionRegistry extensionRegistry) { |
| 1200 | pb::UnknownFieldSet.Builder unknownFields = pb::UnknownFieldSet.CreateBuilder(this.UnknownFields); |
| 1201 | while (true) { |
| 1202 | uint tag = input.ReadTag(); |
| 1203 | switch (tag) { |
| 1204 | case 0: { |
| 1205 | this.UnknownFields = unknownFields.Build(); |
| 1206 | return this; |
| 1207 | } |
| 1208 | default: { |
| 1209 | if (!ParseUnknownField(input, unknownFields, extensionRegistry, tag)) { |
| 1210 | this.UnknownFields = unknownFields.Build(); |
| 1211 | return this; |
| 1212 | } |
| 1213 | break; |
| 1214 | } |
| 1215 | case 376: { |
| 1216 | A = input.ReadInt32(); |
| 1217 | break; |
| 1218 | } |
| 1219 | } |
| 1220 | } |
| 1221 | } |
| 1222 | |
| 1223 | |
| 1224 | public bool HasA { |
| 1225 | get { return result.HasA; } |
| 1226 | } |
| 1227 | public int A { |
| 1228 | get { return result.A; } |
| 1229 | set { SetA(value); } |
| 1230 | } |
| 1231 | public Builder SetA(int value) { |
| 1232 | result.hasA = true; |
| 1233 | result.a_ = value; |
| 1234 | return this; |
| 1235 | } |
| 1236 | public Builder ClearA() { |
| 1237 | result.hasA = false; |
| 1238 | result.a_ = 0; |
| 1239 | return this; |
| 1240 | } |
| 1241 | } |
| 1242 | } |
| 1243 | |
| 1244 | } |
| 1245 | #endregion |
| 1246 | |
| 1247 | private bool hasOptionalInt32; |
| 1248 | private int optionalInt32_ = 0; |
| 1249 | public bool HasOptionalInt32 { |
| 1250 | get { return hasOptionalInt32; } |
| 1251 | } |
| 1252 | public int OptionalInt32 { |
| 1253 | get { return optionalInt32_; } |
| 1254 | } |
| 1255 | |
| 1256 | private bool hasOptionalInt64; |
| 1257 | private long optionalInt64_ = 0L; |
| 1258 | public bool HasOptionalInt64 { |
| 1259 | get { return hasOptionalInt64; } |
| 1260 | } |
| 1261 | public long OptionalInt64 { |
| 1262 | get { return optionalInt64_; } |
| 1263 | } |
| 1264 | |
| 1265 | private bool hasOptionalUint32; |
| 1266 | private uint optionalUint32_ = 0; |
| 1267 | public bool HasOptionalUint32 { |
| 1268 | get { return hasOptionalUint32; } |
| 1269 | } |
| 1270 | public uint OptionalUint32 { |
| 1271 | get { return optionalUint32_; } |
| 1272 | } |
| 1273 | |
| 1274 | private bool hasOptionalUint64; |
| 1275 | private ulong optionalUint64_ = 0UL; |
| 1276 | public bool HasOptionalUint64 { |
| 1277 | get { return hasOptionalUint64; } |
| 1278 | } |
| 1279 | public ulong OptionalUint64 { |
| 1280 | get { return optionalUint64_; } |
| 1281 | } |
| 1282 | |
| 1283 | private bool hasOptionalSint32; |
| 1284 | private int optionalSint32_ = 0; |
| 1285 | public bool HasOptionalSint32 { |
| 1286 | get { return hasOptionalSint32; } |
| 1287 | } |
| 1288 | public int OptionalSint32 { |
| 1289 | get { return optionalSint32_; } |
| 1290 | } |
| 1291 | |
| 1292 | private bool hasOptionalSint64; |
| 1293 | private long optionalSint64_ = 0; |
| 1294 | public bool HasOptionalSint64 { |
| 1295 | get { return hasOptionalSint64; } |
| 1296 | } |
| 1297 | public long OptionalSint64 { |
| 1298 | get { return optionalSint64_; } |
| 1299 | } |
| 1300 | |
| 1301 | private bool hasOptionalFixed32; |
| 1302 | private uint optionalFixed32_ = 0; |
| 1303 | public bool HasOptionalFixed32 { |
| 1304 | get { return hasOptionalFixed32; } |
| 1305 | } |
| 1306 | public uint OptionalFixed32 { |
| 1307 | get { return optionalFixed32_; } |
| 1308 | } |
| 1309 | |
| 1310 | private bool hasOptionalFixed64; |
| 1311 | private ulong optionalFixed64_ = 0; |
| 1312 | public bool HasOptionalFixed64 { |
| 1313 | get { return hasOptionalFixed64; } |
| 1314 | } |
| 1315 | public ulong OptionalFixed64 { |
| 1316 | get { return optionalFixed64_; } |
| 1317 | } |
| 1318 | |
| 1319 | private bool hasOptionalSfixed32; |
| 1320 | private int optionalSfixed32_ = 0; |
| 1321 | public bool HasOptionalSfixed32 { |
| 1322 | get { return hasOptionalSfixed32; } |
| 1323 | } |
| 1324 | public int OptionalSfixed32 { |
| 1325 | get { return optionalSfixed32_; } |
| 1326 | } |
| 1327 | |
| 1328 | private bool hasOptionalSfixed64; |
| 1329 | private long optionalSfixed64_ = 0; |
| 1330 | public bool HasOptionalSfixed64 { |
| 1331 | get { return hasOptionalSfixed64; } |
| 1332 | } |
| 1333 | public long OptionalSfixed64 { |
| 1334 | get { return optionalSfixed64_; } |
| 1335 | } |
| 1336 | |
| 1337 | private bool hasOptionalFloat; |
| 1338 | private float optionalFloat_ = 0F; |
| 1339 | public bool HasOptionalFloat { |
| 1340 | get { return hasOptionalFloat; } |
| 1341 | } |
| 1342 | public float OptionalFloat { |
| 1343 | get { return optionalFloat_; } |
| 1344 | } |
| 1345 | |
| 1346 | private bool hasOptionalDouble; |
| 1347 | private double optionalDouble_ = 0D; |
| 1348 | public bool HasOptionalDouble { |
| 1349 | get { return hasOptionalDouble; } |
| 1350 | } |
| 1351 | public double OptionalDouble { |
| 1352 | get { return optionalDouble_; } |
| 1353 | } |
| 1354 | |
| 1355 | private bool hasOptionalBool; |
| 1356 | private bool optionalBool_ = false; |
| 1357 | public bool HasOptionalBool { |
| 1358 | get { return hasOptionalBool; } |
| 1359 | } |
| 1360 | public bool OptionalBool { |
| 1361 | get { return optionalBool_; } |
| 1362 | } |
| 1363 | |
| 1364 | private bool hasOptionalString; |
| 1365 | private string optionalString_ = ""; |
| 1366 | public bool HasOptionalString { |
| 1367 | get { return hasOptionalString; } |
| 1368 | } |
| 1369 | public string OptionalString { |
| 1370 | get { return optionalString_; } |
| 1371 | } |
| 1372 | |
| 1373 | private bool hasOptionalBytes; |
| 1374 | private pb::ByteString optionalBytes_ = pb::ByteString.Empty; |
| 1375 | public bool HasOptionalBytes { |
| 1376 | get { return hasOptionalBytes; } |
| 1377 | } |
| 1378 | public pb::ByteString OptionalBytes { |
| 1379 | get { return optionalBytes_; } |
| 1380 | } |
| 1381 | |
| 1382 | private bool hasOptionalGroup; |
| 1383 | private global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.OptionalGroup optionalGroup_ = global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.OptionalGroup.DefaultInstance; |
| 1384 | public bool HasOptionalGroup { |
| 1385 | get { return hasOptionalGroup; } |
| 1386 | } |
| 1387 | public global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.OptionalGroup OptionalGroup { |
| 1388 | get { return optionalGroup_; } |
| 1389 | } |
| 1390 | |
| 1391 | private bool hasOptionalNestedMessage; |
| 1392 | private global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedMessage optionalNestedMessage_ = global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedMessage.DefaultInstance; |
| 1393 | public bool HasOptionalNestedMessage { |
| 1394 | get { return hasOptionalNestedMessage; } |
| 1395 | } |
| 1396 | public global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedMessage OptionalNestedMessage { |
| 1397 | get { return optionalNestedMessage_; } |
| 1398 | } |
| 1399 | |
| 1400 | private bool hasOptionalForeignMessage; |
| 1401 | private global::Google.ProtocolBuffers.TestProtos.ForeignMessage optionalForeignMessage_ = global::Google.ProtocolBuffers.TestProtos.ForeignMessage.DefaultInstance; |
| 1402 | public bool HasOptionalForeignMessage { |
| 1403 | get { return hasOptionalForeignMessage; } |
| 1404 | } |
| 1405 | public global::Google.ProtocolBuffers.TestProtos.ForeignMessage OptionalForeignMessage { |
| 1406 | get { return optionalForeignMessage_; } |
| 1407 | } |
| 1408 | |
| 1409 | private bool hasOptionalImportMessage; |
| 1410 | private global::Google.ProtocolBuffers.TestProtos.ImportMessage optionalImportMessage_ = global::Google.ProtocolBuffers.TestProtos.ImportMessage.DefaultInstance; |
| 1411 | public bool HasOptionalImportMessage { |
| 1412 | get { return hasOptionalImportMessage; } |
| 1413 | } |
| 1414 | public global::Google.ProtocolBuffers.TestProtos.ImportMessage OptionalImportMessage { |
| 1415 | get { return optionalImportMessage_; } |
| 1416 | } |
| 1417 | |
| 1418 | private bool hasOptionalNestedEnum; |
| 1419 | private global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedEnum optionalNestedEnum_ = global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedEnum.FOO; |
| 1420 | public bool HasOptionalNestedEnum { |
| 1421 | get { return hasOptionalNestedEnum; } |
| 1422 | } |
| 1423 | public global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedEnum OptionalNestedEnum { |
| 1424 | get { return optionalNestedEnum_; } |
| 1425 | } |
| 1426 | |
| 1427 | private bool hasOptionalForeignEnum; |
| 1428 | private global::Google.ProtocolBuffers.TestProtos.ForeignEnum optionalForeignEnum_ = global::Google.ProtocolBuffers.TestProtos.ForeignEnum.FOREIGN_FOO; |
| 1429 | public bool HasOptionalForeignEnum { |
| 1430 | get { return hasOptionalForeignEnum; } |
| 1431 | } |
| 1432 | public global::Google.ProtocolBuffers.TestProtos.ForeignEnum OptionalForeignEnum { |
| 1433 | get { return optionalForeignEnum_; } |
| 1434 | } |
| 1435 | |
| 1436 | private bool hasOptionalImportEnum; |
| 1437 | private global::Google.ProtocolBuffers.TestProtos.ImportEnum optionalImportEnum_ = global::Google.ProtocolBuffers.TestProtos.ImportEnum.IMPORT_FOO; |
| 1438 | public bool HasOptionalImportEnum { |
| 1439 | get { return hasOptionalImportEnum; } |
| 1440 | } |
| 1441 | public global::Google.ProtocolBuffers.TestProtos.ImportEnum OptionalImportEnum { |
| 1442 | get { return optionalImportEnum_; } |
| 1443 | } |
| 1444 | |
| 1445 | private bool hasOptionalStringPiece; |
| 1446 | private string optionalStringPiece_ = ""; |
| 1447 | public bool HasOptionalStringPiece { |
| 1448 | get { return hasOptionalStringPiece; } |
| 1449 | } |
| 1450 | public string OptionalStringPiece { |
| 1451 | get { return optionalStringPiece_; } |
| 1452 | } |
| 1453 | |
| 1454 | private bool hasOptionalCord; |
| 1455 | private string optionalCord_ = ""; |
| 1456 | public bool HasOptionalCord { |
| 1457 | get { return hasOptionalCord; } |
| 1458 | } |
| 1459 | public string OptionalCord { |
| 1460 | get { return optionalCord_; } |
| 1461 | } |
| 1462 | |
| 1463 | private pbc::PopsicleList<int> repeatedInt32_ = new pbc::PopsicleList<int>(); |
| 1464 | public scg::IList<int> RepeatedInt32List { |
| 1465 | get { return pbc::Lists.AsReadOnly(repeatedInt32_); } |
| 1466 | } |
| 1467 | public int RepeatedInt32Count { |
| 1468 | get { return repeatedInt32_.Count; } |
| 1469 | } |
| 1470 | public int GetRepeatedInt32(int index) { |
| 1471 | return repeatedInt32_[index]; |
| 1472 | } |
| 1473 | |
| 1474 | private pbc::PopsicleList<long> repeatedInt64_ = new pbc::PopsicleList<long>(); |
| 1475 | public scg::IList<long> RepeatedInt64List { |
| 1476 | get { return pbc::Lists.AsReadOnly(repeatedInt64_); } |
| 1477 | } |
| 1478 | public int RepeatedInt64Count { |
| 1479 | get { return repeatedInt64_.Count; } |
| 1480 | } |
| 1481 | public long GetRepeatedInt64(int index) { |
| 1482 | return repeatedInt64_[index]; |
| 1483 | } |
| 1484 | |
| 1485 | private pbc::PopsicleList<uint> repeatedUint32_ = new pbc::PopsicleList<uint>(); |
| 1486 | public scg::IList<uint> RepeatedUint32List { |
| 1487 | get { return pbc::Lists.AsReadOnly(repeatedUint32_); } |
| 1488 | } |
| 1489 | public int RepeatedUint32Count { |
| 1490 | get { return repeatedUint32_.Count; } |
| 1491 | } |
| 1492 | public uint GetRepeatedUint32(int index) { |
| 1493 | return repeatedUint32_[index]; |
| 1494 | } |
| 1495 | |
| 1496 | private pbc::PopsicleList<ulong> repeatedUint64_ = new pbc::PopsicleList<ulong>(); |
| 1497 | public scg::IList<ulong> RepeatedUint64List { |
| 1498 | get { return pbc::Lists.AsReadOnly(repeatedUint64_); } |
| 1499 | } |
| 1500 | public int RepeatedUint64Count { |
| 1501 | get { return repeatedUint64_.Count; } |
| 1502 | } |
| 1503 | public ulong GetRepeatedUint64(int index) { |
| 1504 | return repeatedUint64_[index]; |
| 1505 | } |
| 1506 | |
| 1507 | private pbc::PopsicleList<int> repeatedSint32_ = new pbc::PopsicleList<int>(); |
| 1508 | public scg::IList<int> RepeatedSint32List { |
| 1509 | get { return pbc::Lists.AsReadOnly(repeatedSint32_); } |
| 1510 | } |
| 1511 | public int RepeatedSint32Count { |
| 1512 | get { return repeatedSint32_.Count; } |
| 1513 | } |
| 1514 | public int GetRepeatedSint32(int index) { |
| 1515 | return repeatedSint32_[index]; |
| 1516 | } |
| 1517 | |
| 1518 | private pbc::PopsicleList<long> repeatedSint64_ = new pbc::PopsicleList<long>(); |
| 1519 | public scg::IList<long> RepeatedSint64List { |
| 1520 | get { return pbc::Lists.AsReadOnly(repeatedSint64_); } |
| 1521 | } |
| 1522 | public int RepeatedSint64Count { |
| 1523 | get { return repeatedSint64_.Count; } |
| 1524 | } |
| 1525 | public long GetRepeatedSint64(int index) { |
| 1526 | return repeatedSint64_[index]; |
| 1527 | } |
| 1528 | |
| 1529 | private pbc::PopsicleList<uint> repeatedFixed32_ = new pbc::PopsicleList<uint>(); |
| 1530 | public scg::IList<uint> RepeatedFixed32List { |
| 1531 | get { return pbc::Lists.AsReadOnly(repeatedFixed32_); } |
| 1532 | } |
| 1533 | public int RepeatedFixed32Count { |
| 1534 | get { return repeatedFixed32_.Count; } |
| 1535 | } |
| 1536 | public uint GetRepeatedFixed32(int index) { |
| 1537 | return repeatedFixed32_[index]; |
| 1538 | } |
| 1539 | |
| 1540 | private pbc::PopsicleList<ulong> repeatedFixed64_ = new pbc::PopsicleList<ulong>(); |
| 1541 | public scg::IList<ulong> RepeatedFixed64List { |
| 1542 | get { return pbc::Lists.AsReadOnly(repeatedFixed64_); } |
| 1543 | } |
| 1544 | public int RepeatedFixed64Count { |
| 1545 | get { return repeatedFixed64_.Count; } |
| 1546 | } |
| 1547 | public ulong GetRepeatedFixed64(int index) { |
| 1548 | return repeatedFixed64_[index]; |
| 1549 | } |
| 1550 | |
| 1551 | private pbc::PopsicleList<int> repeatedSfixed32_ = new pbc::PopsicleList<int>(); |
| 1552 | public scg::IList<int> RepeatedSfixed32List { |
| 1553 | get { return pbc::Lists.AsReadOnly(repeatedSfixed32_); } |
| 1554 | } |
| 1555 | public int RepeatedSfixed32Count { |
| 1556 | get { return repeatedSfixed32_.Count; } |
| 1557 | } |
| 1558 | public int GetRepeatedSfixed32(int index) { |
| 1559 | return repeatedSfixed32_[index]; |
| 1560 | } |
| 1561 | |
| 1562 | private pbc::PopsicleList<long> repeatedSfixed64_ = new pbc::PopsicleList<long>(); |
| 1563 | public scg::IList<long> RepeatedSfixed64List { |
| 1564 | get { return pbc::Lists.AsReadOnly(repeatedSfixed64_); } |
| 1565 | } |
| 1566 | public int RepeatedSfixed64Count { |
| 1567 | get { return repeatedSfixed64_.Count; } |
| 1568 | } |
| 1569 | public long GetRepeatedSfixed64(int index) { |
| 1570 | return repeatedSfixed64_[index]; |
| 1571 | } |
| 1572 | |
| 1573 | private pbc::PopsicleList<float> repeatedFloat_ = new pbc::PopsicleList<float>(); |
| 1574 | public scg::IList<float> RepeatedFloatList { |
| 1575 | get { return pbc::Lists.AsReadOnly(repeatedFloat_); } |
| 1576 | } |
| 1577 | public int RepeatedFloatCount { |
| 1578 | get { return repeatedFloat_.Count; } |
| 1579 | } |
| 1580 | public float GetRepeatedFloat(int index) { |
| 1581 | return repeatedFloat_[index]; |
| 1582 | } |
| 1583 | |
| 1584 | private pbc::PopsicleList<double> repeatedDouble_ = new pbc::PopsicleList<double>(); |
| 1585 | public scg::IList<double> RepeatedDoubleList { |
| 1586 | get { return pbc::Lists.AsReadOnly(repeatedDouble_); } |
| 1587 | } |
| 1588 | public int RepeatedDoubleCount { |
| 1589 | get { return repeatedDouble_.Count; } |
| 1590 | } |
| 1591 | public double GetRepeatedDouble(int index) { |
| 1592 | return repeatedDouble_[index]; |
| 1593 | } |
| 1594 | |
| 1595 | private pbc::PopsicleList<bool> repeatedBool_ = new pbc::PopsicleList<bool>(); |
| 1596 | public scg::IList<bool> RepeatedBoolList { |
| 1597 | get { return pbc::Lists.AsReadOnly(repeatedBool_); } |
| 1598 | } |
| 1599 | public int RepeatedBoolCount { |
| 1600 | get { return repeatedBool_.Count; } |
| 1601 | } |
| 1602 | public bool GetRepeatedBool(int index) { |
| 1603 | return repeatedBool_[index]; |
| 1604 | } |
| 1605 | |
| 1606 | private pbc::PopsicleList<string> repeatedString_ = new pbc::PopsicleList<string>(); |
| 1607 | public scg::IList<string> RepeatedStringList { |
| 1608 | get { return pbc::Lists.AsReadOnly(repeatedString_); } |
| 1609 | } |
| 1610 | public int RepeatedStringCount { |
| 1611 | get { return repeatedString_.Count; } |
| 1612 | } |
| 1613 | public string GetRepeatedString(int index) { |
| 1614 | return repeatedString_[index]; |
| 1615 | } |
| 1616 | |
| 1617 | private pbc::PopsicleList<pb::ByteString> repeatedBytes_ = new pbc::PopsicleList<pb::ByteString>(); |
| 1618 | public scg::IList<pb::ByteString> RepeatedBytesList { |
| 1619 | get { return pbc::Lists.AsReadOnly(repeatedBytes_); } |
| 1620 | } |
| 1621 | public int RepeatedBytesCount { |
| 1622 | get { return repeatedBytes_.Count; } |
| 1623 | } |
| 1624 | public pb::ByteString GetRepeatedBytes(int index) { |
| 1625 | return repeatedBytes_[index]; |
| 1626 | } |
| 1627 | |
| 1628 | private pbc::PopsicleList<global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.RepeatedGroup> repeatedGroup_ = new pbc::PopsicleList<global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.RepeatedGroup>(); |
| 1629 | public scg::IList<global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.RepeatedGroup> RepeatedGroupList { |
| 1630 | get { return repeatedGroup_; } |
| 1631 | } |
| 1632 | public int RepeatedGroupCount { |
| 1633 | get { return repeatedGroup_.Count; } |
| 1634 | } |
| 1635 | public global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.RepeatedGroup GetRepeatedGroup(int index) { |
| 1636 | return repeatedGroup_[index]; |
| 1637 | } |
| 1638 | |
| 1639 | private pbc::PopsicleList<global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedMessage> repeatedNestedMessage_ = new pbc::PopsicleList<global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedMessage>(); |
| 1640 | public scg::IList<global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedMessage> RepeatedNestedMessageList { |
| 1641 | get { return repeatedNestedMessage_; } |
| 1642 | } |
| 1643 | public int RepeatedNestedMessageCount { |
| 1644 | get { return repeatedNestedMessage_.Count; } |
| 1645 | } |
| 1646 | public global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedMessage GetRepeatedNestedMessage(int index) { |
| 1647 | return repeatedNestedMessage_[index]; |
| 1648 | } |
| 1649 | |
| 1650 | private pbc::PopsicleList<global::Google.ProtocolBuffers.TestProtos.ForeignMessage> repeatedForeignMessage_ = new pbc::PopsicleList<global::Google.ProtocolBuffers.TestProtos.ForeignMessage>(); |
| 1651 | public scg::IList<global::Google.ProtocolBuffers.TestProtos.ForeignMessage> RepeatedForeignMessageList { |
| 1652 | get { return repeatedForeignMessage_; } |
| 1653 | } |
| 1654 | public int RepeatedForeignMessageCount { |
| 1655 | get { return repeatedForeignMessage_.Count; } |
| 1656 | } |
| 1657 | public global::Google.ProtocolBuffers.TestProtos.ForeignMessage GetRepeatedForeignMessage(int index) { |
| 1658 | return repeatedForeignMessage_[index]; |
| 1659 | } |
| 1660 | |
| 1661 | private pbc::PopsicleList<global::Google.ProtocolBuffers.TestProtos.ImportMessage> repeatedImportMessage_ = new pbc::PopsicleList<global::Google.ProtocolBuffers.TestProtos.ImportMessage>(); |
| 1662 | public scg::IList<global::Google.ProtocolBuffers.TestProtos.ImportMessage> RepeatedImportMessageList { |
| 1663 | get { return repeatedImportMessage_; } |
| 1664 | } |
| 1665 | public int RepeatedImportMessageCount { |
| 1666 | get { return repeatedImportMessage_.Count; } |
| 1667 | } |
| 1668 | public global::Google.ProtocolBuffers.TestProtos.ImportMessage GetRepeatedImportMessage(int index) { |
| 1669 | return repeatedImportMessage_[index]; |
| 1670 | } |
| 1671 | |
| 1672 | private pbc::PopsicleList<global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedEnum> repeatedNestedEnum_ = new pbc::PopsicleList<global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedEnum>(); |
| 1673 | public scg::IList<global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedEnum> RepeatedNestedEnumList { |
| 1674 | get { return pbc::Lists.AsReadOnly(repeatedNestedEnum_); } |
| 1675 | } |
| 1676 | public int RepeatedNestedEnumCount { |
| 1677 | get { return repeatedNestedEnum_.Count; } |
| 1678 | } |
| 1679 | public global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedEnum GetRepeatedNestedEnum(int index) { |
| 1680 | return repeatedNestedEnum_[index]; |
| 1681 | } |
| 1682 | |
| 1683 | private pbc::PopsicleList<global::Google.ProtocolBuffers.TestProtos.ForeignEnum> repeatedForeignEnum_ = new pbc::PopsicleList<global::Google.ProtocolBuffers.TestProtos.ForeignEnum>(); |
| 1684 | public scg::IList<global::Google.ProtocolBuffers.TestProtos.ForeignEnum> RepeatedForeignEnumList { |
| 1685 | get { return pbc::Lists.AsReadOnly(repeatedForeignEnum_); } |
| 1686 | } |
| 1687 | public int RepeatedForeignEnumCount { |
| 1688 | get { return repeatedForeignEnum_.Count; } |
| 1689 | } |
| 1690 | public global::Google.ProtocolBuffers.TestProtos.ForeignEnum GetRepeatedForeignEnum(int index) { |
| 1691 | return repeatedForeignEnum_[index]; |
| 1692 | } |
| 1693 | |
| 1694 | private pbc::PopsicleList<global::Google.ProtocolBuffers.TestProtos.ImportEnum> repeatedImportEnum_ = new pbc::PopsicleList<global::Google.ProtocolBuffers.TestProtos.ImportEnum>(); |
| 1695 | public scg::IList<global::Google.ProtocolBuffers.TestProtos.ImportEnum> RepeatedImportEnumList { |
| 1696 | get { return pbc::Lists.AsReadOnly(repeatedImportEnum_); } |
| 1697 | } |
| 1698 | public int RepeatedImportEnumCount { |
| 1699 | get { return repeatedImportEnum_.Count; } |
| 1700 | } |
| 1701 | public global::Google.ProtocolBuffers.TestProtos.ImportEnum GetRepeatedImportEnum(int index) { |
| 1702 | return repeatedImportEnum_[index]; |
| 1703 | } |
| 1704 | |
| 1705 | private pbc::PopsicleList<string> repeatedStringPiece_ = new pbc::PopsicleList<string>(); |
| 1706 | public scg::IList<string> RepeatedStringPieceList { |
| 1707 | get { return pbc::Lists.AsReadOnly(repeatedStringPiece_); } |
| 1708 | } |
| 1709 | public int RepeatedStringPieceCount { |
| 1710 | get { return repeatedStringPiece_.Count; } |
| 1711 | } |
| 1712 | public string GetRepeatedStringPiece(int index) { |
| 1713 | return repeatedStringPiece_[index]; |
| 1714 | } |
| 1715 | |
| 1716 | private pbc::PopsicleList<string> repeatedCord_ = new pbc::PopsicleList<string>(); |
| 1717 | public scg::IList<string> RepeatedCordList { |
| 1718 | get { return pbc::Lists.AsReadOnly(repeatedCord_); } |
| 1719 | } |
| 1720 | public int RepeatedCordCount { |
| 1721 | get { return repeatedCord_.Count; } |
| 1722 | } |
| 1723 | public string GetRepeatedCord(int index) { |
| 1724 | return repeatedCord_[index]; |
| 1725 | } |
| 1726 | |
| 1727 | private bool hasDefaultInt32; |
| 1728 | private int defaultInt32_ = 41; |
| 1729 | public bool HasDefaultInt32 { |
| 1730 | get { return hasDefaultInt32; } |
| 1731 | } |
| 1732 | public int DefaultInt32 { |
| 1733 | get { return defaultInt32_; } |
| 1734 | } |
| 1735 | |
| 1736 | private bool hasDefaultInt64; |
| 1737 | private long defaultInt64_ = 42L; |
| 1738 | public bool HasDefaultInt64 { |
| 1739 | get { return hasDefaultInt64; } |
| 1740 | } |
| 1741 | public long DefaultInt64 { |
| 1742 | get { return defaultInt64_; } |
| 1743 | } |
| 1744 | |
| 1745 | private bool hasDefaultUint32; |
| 1746 | private uint defaultUint32_ = 43; |
| 1747 | public bool HasDefaultUint32 { |
| 1748 | get { return hasDefaultUint32; } |
| 1749 | } |
| 1750 | public uint DefaultUint32 { |
| 1751 | get { return defaultUint32_; } |
| 1752 | } |
| 1753 | |
| 1754 | private bool hasDefaultUint64; |
| 1755 | private ulong defaultUint64_ = 44UL; |
| 1756 | public bool HasDefaultUint64 { |
| 1757 | get { return hasDefaultUint64; } |
| 1758 | } |
| 1759 | public ulong DefaultUint64 { |
| 1760 | get { return defaultUint64_; } |
| 1761 | } |
| 1762 | |
| 1763 | private bool hasDefaultSint32; |
| 1764 | private int defaultSint32_ = -45; |
| 1765 | public bool HasDefaultSint32 { |
| 1766 | get { return hasDefaultSint32; } |
| 1767 | } |
| 1768 | public int DefaultSint32 { |
| 1769 | get { return defaultSint32_; } |
| 1770 | } |
| 1771 | |
| 1772 | private bool hasDefaultSint64; |
| 1773 | private long defaultSint64_ = 46; |
| 1774 | public bool HasDefaultSint64 { |
| 1775 | get { return hasDefaultSint64; } |
| 1776 | } |
| 1777 | public long DefaultSint64 { |
| 1778 | get { return defaultSint64_; } |
| 1779 | } |
| 1780 | |
| 1781 | private bool hasDefaultFixed32; |
| 1782 | private uint defaultFixed32_ = 47; |
| 1783 | public bool HasDefaultFixed32 { |
| 1784 | get { return hasDefaultFixed32; } |
| 1785 | } |
| 1786 | public uint DefaultFixed32 { |
| 1787 | get { return defaultFixed32_; } |
| 1788 | } |
| 1789 | |
| 1790 | private bool hasDefaultFixed64; |
| 1791 | private ulong defaultFixed64_ = 48; |
| 1792 | public bool HasDefaultFixed64 { |
| 1793 | get { return hasDefaultFixed64; } |
| 1794 | } |
| 1795 | public ulong DefaultFixed64 { |
| 1796 | get { return defaultFixed64_; } |
| 1797 | } |
| 1798 | |
| 1799 | private bool hasDefaultSfixed32; |
| 1800 | private int defaultSfixed32_ = 49; |
| 1801 | public bool HasDefaultSfixed32 { |
| 1802 | get { return hasDefaultSfixed32; } |
| 1803 | } |
| 1804 | public int DefaultSfixed32 { |
| 1805 | get { return defaultSfixed32_; } |
| 1806 | } |
| 1807 | |
| 1808 | private bool hasDefaultSfixed64; |
| 1809 | private long defaultSfixed64_ = -50; |
| 1810 | public bool HasDefaultSfixed64 { |
| 1811 | get { return hasDefaultSfixed64; } |
| 1812 | } |
| 1813 | public long DefaultSfixed64 { |
| 1814 | get { return defaultSfixed64_; } |
| 1815 | } |
| 1816 | |
| 1817 | private bool hasDefaultFloat; |
| 1818 | private float defaultFloat_ = 51.5F; |
| 1819 | public bool HasDefaultFloat { |
| 1820 | get { return hasDefaultFloat; } |
| 1821 | } |
| 1822 | public float DefaultFloat { |
| 1823 | get { return defaultFloat_; } |
| 1824 | } |
| 1825 | |
| 1826 | private bool hasDefaultDouble; |
| 1827 | private double defaultDouble_ = 52000D; |
| 1828 | public bool HasDefaultDouble { |
| 1829 | get { return hasDefaultDouble; } |
| 1830 | } |
| 1831 | public double DefaultDouble { |
| 1832 | get { return defaultDouble_; } |
| 1833 | } |
| 1834 | |
| 1835 | private bool hasDefaultBool; |
| 1836 | private bool defaultBool_ = true; |
| 1837 | public bool HasDefaultBool { |
| 1838 | get { return hasDefaultBool; } |
| 1839 | } |
| 1840 | public bool DefaultBool { |
| 1841 | get { return defaultBool_; } |
| 1842 | } |
| 1843 | |
| 1844 | private bool hasDefaultString; |
| 1845 | private string defaultString_ = "hello"; |
| 1846 | public bool HasDefaultString { |
| 1847 | get { return hasDefaultString; } |
| 1848 | } |
| 1849 | public string DefaultString { |
| 1850 | get { return defaultString_; } |
| 1851 | } |
| 1852 | |
| 1853 | private bool hasDefaultBytes; |
| 1854 | private pb::ByteString defaultBytes_ = (pb::ByteString) global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Descriptor.Fields[62].DefaultValue; |
| 1855 | public bool HasDefaultBytes { |
| 1856 | get { return hasDefaultBytes; } |
| 1857 | } |
| 1858 | public pb::ByteString DefaultBytes { |
| 1859 | get { return defaultBytes_; } |
| 1860 | } |
| 1861 | |
| 1862 | private bool hasDefaultNestedEnum; |
| 1863 | private global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedEnum defaultNestedEnum_ = global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedEnum.BAR; |
| 1864 | public bool HasDefaultNestedEnum { |
| 1865 | get { return hasDefaultNestedEnum; } |
| 1866 | } |
| 1867 | public global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedEnum DefaultNestedEnum { |
| 1868 | get { return defaultNestedEnum_; } |
| 1869 | } |
| 1870 | |
| 1871 | private bool hasDefaultForeignEnum; |
| 1872 | private global::Google.ProtocolBuffers.TestProtos.ForeignEnum defaultForeignEnum_ = global::Google.ProtocolBuffers.TestProtos.ForeignEnum.FOREIGN_BAR; |
| 1873 | public bool HasDefaultForeignEnum { |
| 1874 | get { return hasDefaultForeignEnum; } |
| 1875 | } |
| 1876 | public global::Google.ProtocolBuffers.TestProtos.ForeignEnum DefaultForeignEnum { |
| 1877 | get { return defaultForeignEnum_; } |
| 1878 | } |
| 1879 | |
| 1880 | private bool hasDefaultImportEnum; |
| 1881 | private global::Google.ProtocolBuffers.TestProtos.ImportEnum defaultImportEnum_ = global::Google.ProtocolBuffers.TestProtos.ImportEnum.IMPORT_BAR; |
| 1882 | public bool HasDefaultImportEnum { |
| 1883 | get { return hasDefaultImportEnum; } |
| 1884 | } |
| 1885 | public global::Google.ProtocolBuffers.TestProtos.ImportEnum DefaultImportEnum { |
| 1886 | get { return defaultImportEnum_; } |
| 1887 | } |
| 1888 | |
| 1889 | private bool hasDefaultStringPiece; |
| 1890 | private string defaultStringPiece_ = "abc"; |
| 1891 | public bool HasDefaultStringPiece { |
| 1892 | get { return hasDefaultStringPiece; } |
| 1893 | } |
| 1894 | public string DefaultStringPiece { |
| 1895 | get { return defaultStringPiece_; } |
| 1896 | } |
| 1897 | |
| 1898 | private bool hasDefaultCord; |
| 1899 | private string defaultCord_ = "123"; |
| 1900 | public bool HasDefaultCord { |
| 1901 | get { return hasDefaultCord; } |
| 1902 | } |
| 1903 | public string DefaultCord { |
| 1904 | get { return defaultCord_; } |
| 1905 | } |
| 1906 | |
| 1907 | public override bool IsInitialized { |
| 1908 | get { |
| 1909 | return true; |
| 1910 | } |
| 1911 | } |
| 1912 | |
| 1913 | public override void WriteTo(pb::CodedOutputStream output) { |
| 1914 | if (HasOptionalInt32) { |
| 1915 | output.WriteInt32(1, OptionalInt32); |
| 1916 | } |
| 1917 | if (HasOptionalInt64) { |
| 1918 | output.WriteInt64(2, OptionalInt64); |
| 1919 | } |
| 1920 | if (HasOptionalUint32) { |
| 1921 | output.WriteUInt32(3, OptionalUint32); |
| 1922 | } |
| 1923 | if (HasOptionalUint64) { |
| 1924 | output.WriteUInt64(4, OptionalUint64); |
| 1925 | } |
| 1926 | if (HasOptionalSint32) { |
| 1927 | output.WriteSInt32(5, OptionalSint32); |
| 1928 | } |
| 1929 | if (HasOptionalSint64) { |
| 1930 | output.WriteSInt64(6, OptionalSint64); |
| 1931 | } |
| 1932 | if (HasOptionalFixed32) { |
| 1933 | output.WriteFixed32(7, OptionalFixed32); |
| 1934 | } |
| 1935 | if (HasOptionalFixed64) { |
| 1936 | output.WriteFixed64(8, OptionalFixed64); |
| 1937 | } |
| 1938 | if (HasOptionalSfixed32) { |
| 1939 | output.WriteSFixed32(9, OptionalSfixed32); |
| 1940 | } |
| 1941 | if (HasOptionalSfixed64) { |
| 1942 | output.WriteSFixed64(10, OptionalSfixed64); |
| 1943 | } |
| 1944 | if (HasOptionalFloat) { |
| 1945 | output.WriteFloat(11, OptionalFloat); |
| 1946 | } |
| 1947 | if (HasOptionalDouble) { |
| 1948 | output.WriteDouble(12, OptionalDouble); |
| 1949 | } |
| 1950 | if (HasOptionalBool) { |
| 1951 | output.WriteBool(13, OptionalBool); |
| 1952 | } |
| 1953 | if (HasOptionalString) { |
| 1954 | output.WriteString(14, OptionalString); |
| 1955 | } |
| 1956 | if (HasOptionalBytes) { |
| 1957 | output.WriteBytes(15, OptionalBytes); |
| 1958 | } |
| 1959 | if (HasOptionalGroup) { |
| 1960 | output.WriteGroup(16, OptionalGroup); |
| 1961 | } |
| 1962 | if (HasOptionalNestedMessage) { |
| 1963 | output.WriteMessage(18, OptionalNestedMessage); |
| 1964 | } |
| 1965 | if (HasOptionalForeignMessage) { |
| 1966 | output.WriteMessage(19, OptionalForeignMessage); |
| 1967 | } |
| 1968 | if (HasOptionalImportMessage) { |
| 1969 | output.WriteMessage(20, OptionalImportMessage); |
| 1970 | } |
| 1971 | if (HasOptionalNestedEnum) { |
| 1972 | output.WriteEnum(21, (int) OptionalNestedEnum); |
| 1973 | } |
| 1974 | if (HasOptionalForeignEnum) { |
| 1975 | output.WriteEnum(22, (int) OptionalForeignEnum); |
| 1976 | } |
| 1977 | if (HasOptionalImportEnum) { |
| 1978 | output.WriteEnum(23, (int) OptionalImportEnum); |
| 1979 | } |
| 1980 | if (HasOptionalStringPiece) { |
| 1981 | output.WriteString(24, OptionalStringPiece); |
| 1982 | } |
| 1983 | if (HasOptionalCord) { |
| 1984 | output.WriteString(25, OptionalCord); |
| 1985 | } |
| 1986 | foreach (int element in RepeatedInt32List) { |
| 1987 | output.WriteInt32(31, element); |
| 1988 | } |
| 1989 | foreach (long element in RepeatedInt64List) { |
| 1990 | output.WriteInt64(32, element); |
| 1991 | } |
| 1992 | foreach (uint element in RepeatedUint32List) { |
| 1993 | output.WriteUInt32(33, element); |
| 1994 | } |
| 1995 | foreach (ulong element in RepeatedUint64List) { |
| 1996 | output.WriteUInt64(34, element); |
| 1997 | } |
| 1998 | foreach (int element in RepeatedSint32List) { |
| 1999 | output.WriteSInt32(35, element); |
| 2000 | } |
| 2001 | foreach (long element in RepeatedSint64List) { |
| 2002 | output.WriteSInt64(36, element); |
| 2003 | } |
| 2004 | foreach (uint element in RepeatedFixed32List) { |
| 2005 | output.WriteFixed32(37, element); |
| 2006 | } |
| 2007 | foreach (ulong element in RepeatedFixed64List) { |
| 2008 | output.WriteFixed64(38, element); |
| 2009 | } |
| 2010 | foreach (int element in RepeatedSfixed32List) { |
| 2011 | output.WriteSFixed32(39, element); |
| 2012 | } |
| 2013 | foreach (long element in RepeatedSfixed64List) { |
| 2014 | output.WriteSFixed64(40, element); |
| 2015 | } |
| 2016 | foreach (float element in RepeatedFloatList) { |
| 2017 | output.WriteFloat(41, element); |
| 2018 | } |
| 2019 | foreach (double element in RepeatedDoubleList) { |
| 2020 | output.WriteDouble(42, element); |
| 2021 | } |
| 2022 | foreach (bool element in RepeatedBoolList) { |
| 2023 | output.WriteBool(43, element); |
| 2024 | } |
| 2025 | foreach (string element in RepeatedStringList) { |
| 2026 | output.WriteString(44, element); |
| 2027 | } |
| 2028 | foreach (pb::ByteString element in RepeatedBytesList) { |
| 2029 | output.WriteBytes(45, element); |
| 2030 | } |
| 2031 | foreach (global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.RepeatedGroup element in RepeatedGroupList) { |
| 2032 | output.WriteGroup(46, element); |
| 2033 | } |
| 2034 | foreach (global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedMessage element in RepeatedNestedMessageList) { |
| 2035 | output.WriteMessage(48, element); |
| 2036 | } |
| 2037 | foreach (global::Google.ProtocolBuffers.TestProtos.ForeignMessage element in RepeatedForeignMessageList) { |
| 2038 | output.WriteMessage(49, element); |
| 2039 | } |
| 2040 | foreach (global::Google.ProtocolBuffers.TestProtos.ImportMessage element in RepeatedImportMessageList) { |
| 2041 | output.WriteMessage(50, element); |
| 2042 | } |
| 2043 | foreach (global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedEnum element in RepeatedNestedEnumList) { |
| 2044 | output.WriteEnum(51, (int) element); |
| 2045 | } |
| 2046 | foreach (global::Google.ProtocolBuffers.TestProtos.ForeignEnum element in RepeatedForeignEnumList) { |
| 2047 | output.WriteEnum(52, (int) element); |
| 2048 | } |
| 2049 | foreach (global::Google.ProtocolBuffers.TestProtos.ImportEnum element in RepeatedImportEnumList) { |
| 2050 | output.WriteEnum(53, (int) element); |
| 2051 | } |
| 2052 | foreach (string element in RepeatedStringPieceList) { |
| 2053 | output.WriteString(54, element); |
| 2054 | } |
| 2055 | foreach (string element in RepeatedCordList) { |
| 2056 | output.WriteString(55, element); |
| 2057 | } |
| 2058 | if (HasDefaultInt32) { |
| 2059 | output.WriteInt32(61, DefaultInt32); |
| 2060 | } |
| 2061 | if (HasDefaultInt64) { |
| 2062 | output.WriteInt64(62, DefaultInt64); |
| 2063 | } |
| 2064 | if (HasDefaultUint32) { |
| 2065 | output.WriteUInt32(63, DefaultUint32); |
| 2066 | } |
| 2067 | if (HasDefaultUint64) { |
| 2068 | output.WriteUInt64(64, DefaultUint64); |
| 2069 | } |
| 2070 | if (HasDefaultSint32) { |
| 2071 | output.WriteSInt32(65, DefaultSint32); |
| 2072 | } |
| 2073 | if (HasDefaultSint64) { |
| 2074 | output.WriteSInt64(66, DefaultSint64); |
| 2075 | } |
| 2076 | if (HasDefaultFixed32) { |
| 2077 | output.WriteFixed32(67, DefaultFixed32); |
| 2078 | } |
| 2079 | if (HasDefaultFixed64) { |
| 2080 | output.WriteFixed64(68, DefaultFixed64); |
| 2081 | } |
| 2082 | if (HasDefaultSfixed32) { |
| 2083 | output.WriteSFixed32(69, DefaultSfixed32); |
| 2084 | } |
| 2085 | if (HasDefaultSfixed64) { |
| 2086 | output.WriteSFixed64(70, DefaultSfixed64); |
| 2087 | } |
| 2088 | if (HasDefaultFloat) { |
| 2089 | output.WriteFloat(71, DefaultFloat); |
| 2090 | } |
| 2091 | if (HasDefaultDouble) { |
| 2092 | output.WriteDouble(72, DefaultDouble); |
| 2093 | } |
| 2094 | if (HasDefaultBool) { |
| 2095 | output.WriteBool(73, DefaultBool); |
| 2096 | } |
| 2097 | if (HasDefaultString) { |
| 2098 | output.WriteString(74, DefaultString); |
| 2099 | } |
| 2100 | if (HasDefaultBytes) { |
| 2101 | output.WriteBytes(75, DefaultBytes); |
| 2102 | } |
| 2103 | if (HasDefaultNestedEnum) { |
| 2104 | output.WriteEnum(81, (int) DefaultNestedEnum); |
| 2105 | } |
| 2106 | if (HasDefaultForeignEnum) { |
| 2107 | output.WriteEnum(82, (int) DefaultForeignEnum); |
| 2108 | } |
| 2109 | if (HasDefaultImportEnum) { |
| 2110 | output.WriteEnum(83, (int) DefaultImportEnum); |
| 2111 | } |
| 2112 | if (HasDefaultStringPiece) { |
| 2113 | output.WriteString(84, DefaultStringPiece); |
| 2114 | } |
| 2115 | if (HasDefaultCord) { |
| 2116 | output.WriteString(85, DefaultCord); |
| 2117 | } |
| 2118 | UnknownFields.WriteTo(output); |
| 2119 | } |
| 2120 | |
| 2121 | private int memoizedSerializedSize = -1; |
| 2122 | public override int SerializedSize { |
| 2123 | get { |
| 2124 | int size = memoizedSerializedSize; |
| 2125 | if (size != -1) return size; |
| 2126 | |
| 2127 | size = 0; |
| 2128 | if (HasOptionalInt32) { |
| 2129 | size += pb::CodedOutputStream.ComputeInt32Size(1, OptionalInt32); |
| 2130 | } |
| 2131 | if (HasOptionalInt64) { |
| 2132 | size += pb::CodedOutputStream.ComputeInt64Size(2, OptionalInt64); |
| 2133 | } |
| 2134 | if (HasOptionalUint32) { |
| 2135 | size += pb::CodedOutputStream.ComputeUInt32Size(3, OptionalUint32); |
| 2136 | } |
| 2137 | if (HasOptionalUint64) { |
| 2138 | size += pb::CodedOutputStream.ComputeUInt64Size(4, OptionalUint64); |
| 2139 | } |
| 2140 | if (HasOptionalSint32) { |
| 2141 | size += pb::CodedOutputStream.ComputeSInt32Size(5, OptionalSint32); |
| 2142 | } |
| 2143 | if (HasOptionalSint64) { |
| 2144 | size += pb::CodedOutputStream.ComputeSInt64Size(6, OptionalSint64); |
| 2145 | } |
| 2146 | if (HasOptionalFixed32) { |
| 2147 | size += pb::CodedOutputStream.ComputeFixed32Size(7, OptionalFixed32); |
| 2148 | } |
| 2149 | if (HasOptionalFixed64) { |
| 2150 | size += pb::CodedOutputStream.ComputeFixed64Size(8, OptionalFixed64); |
| 2151 | } |
| 2152 | if (HasOptionalSfixed32) { |
| 2153 | size += pb::CodedOutputStream.ComputeSFixed32Size(9, OptionalSfixed32); |
| 2154 | } |
| 2155 | if (HasOptionalSfixed64) { |
| 2156 | size += pb::CodedOutputStream.ComputeSFixed64Size(10, OptionalSfixed64); |
| 2157 | } |
| 2158 | if (HasOptionalFloat) { |
| 2159 | size += pb::CodedOutputStream.ComputeFloatSize(11, OptionalFloat); |
| 2160 | } |
| 2161 | if (HasOptionalDouble) { |
| 2162 | size += pb::CodedOutputStream.ComputeDoubleSize(12, OptionalDouble); |
| 2163 | } |
| 2164 | if (HasOptionalBool) { |
| 2165 | size += pb::CodedOutputStream.ComputeBoolSize(13, OptionalBool); |
| 2166 | } |
| 2167 | if (HasOptionalString) { |
| 2168 | size += pb::CodedOutputStream.ComputeStringSize(14, OptionalString); |
| 2169 | } |
| 2170 | if (HasOptionalBytes) { |
| 2171 | size += pb::CodedOutputStream.ComputeBytesSize(15, OptionalBytes); |
| 2172 | } |
| 2173 | if (HasOptionalGroup) { |
| 2174 | size += pb::CodedOutputStream.ComputeGroupSize(16, OptionalGroup); |
| 2175 | } |
| 2176 | if (HasOptionalNestedMessage) { |
| 2177 | size += pb::CodedOutputStream.ComputeMessageSize(18, OptionalNestedMessage); |
| 2178 | } |
| 2179 | if (HasOptionalForeignMessage) { |
| 2180 | size += pb::CodedOutputStream.ComputeMessageSize(19, OptionalForeignMessage); |
| 2181 | } |
| 2182 | if (HasOptionalImportMessage) { |
| 2183 | size += pb::CodedOutputStream.ComputeMessageSize(20, OptionalImportMessage); |
| 2184 | } |
| 2185 | if (HasOptionalNestedEnum) { |
| 2186 | size += pb::CodedOutputStream.ComputeEnumSize(21, (int) OptionalNestedEnum); |
| 2187 | } |
| 2188 | if (HasOptionalForeignEnum) { |
| 2189 | size += pb::CodedOutputStream.ComputeEnumSize(22, (int) OptionalForeignEnum); |
| 2190 | } |
| 2191 | if (HasOptionalImportEnum) { |
| 2192 | size += pb::CodedOutputStream.ComputeEnumSize(23, (int) OptionalImportEnum); |
| 2193 | } |
| 2194 | if (HasOptionalStringPiece) { |
| 2195 | size += pb::CodedOutputStream.ComputeStringSize(24, OptionalStringPiece); |
| 2196 | } |
| 2197 | if (HasOptionalCord) { |
| 2198 | size += pb::CodedOutputStream.ComputeStringSize(25, OptionalCord); |
| 2199 | } |
| 2200 | foreach (int element in RepeatedInt32List) { |
| 2201 | size += pb::CodedOutputStream.ComputeInt32Size(31, element); |
| 2202 | } |
| 2203 | foreach (long element in RepeatedInt64List) { |
| 2204 | size += pb::CodedOutputStream.ComputeInt64Size(32, element); |
| 2205 | } |
| 2206 | foreach (uint element in RepeatedUint32List) { |
| 2207 | size += pb::CodedOutputStream.ComputeUInt32Size(33, element); |
| 2208 | } |
| 2209 | foreach (ulong element in RepeatedUint64List) { |
| 2210 | size += pb::CodedOutputStream.ComputeUInt64Size(34, element); |
| 2211 | } |
| 2212 | foreach (int element in RepeatedSint32List) { |
| 2213 | size += pb::CodedOutputStream.ComputeSInt32Size(35, element); |
| 2214 | } |
| 2215 | foreach (long element in RepeatedSint64List) { |
| 2216 | size += pb::CodedOutputStream.ComputeSInt64Size(36, element); |
| 2217 | } |
| 2218 | foreach (uint element in RepeatedFixed32List) { |
| 2219 | size += pb::CodedOutputStream.ComputeFixed32Size(37, element); |
| 2220 | } |
| 2221 | foreach (ulong element in RepeatedFixed64List) { |
| 2222 | size += pb::CodedOutputStream.ComputeFixed64Size(38, element); |
| 2223 | } |
| 2224 | foreach (int element in RepeatedSfixed32List) { |
| 2225 | size += pb::CodedOutputStream.ComputeSFixed32Size(39, element); |
| 2226 | } |
| 2227 | foreach (long element in RepeatedSfixed64List) { |
| 2228 | size += pb::CodedOutputStream.ComputeSFixed64Size(40, element); |
| 2229 | } |
| 2230 | foreach (float element in RepeatedFloatList) { |
| 2231 | size += pb::CodedOutputStream.ComputeFloatSize(41, element); |
| 2232 | } |
| 2233 | foreach (double element in RepeatedDoubleList) { |
| 2234 | size += pb::CodedOutputStream.ComputeDoubleSize(42, element); |
| 2235 | } |
| 2236 | foreach (bool element in RepeatedBoolList) { |
| 2237 | size += pb::CodedOutputStream.ComputeBoolSize(43, element); |
| 2238 | } |
| 2239 | foreach (string element in RepeatedStringList) { |
| 2240 | size += pb::CodedOutputStream.ComputeStringSize(44, element); |
| 2241 | } |
| 2242 | foreach (pb::ByteString element in RepeatedBytesList) { |
| 2243 | size += pb::CodedOutputStream.ComputeBytesSize(45, element); |
| 2244 | } |
| 2245 | foreach (global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.RepeatedGroup element in RepeatedGroupList) { |
| 2246 | size += pb::CodedOutputStream.ComputeGroupSize(46, element); |
| 2247 | } |
| 2248 | foreach (global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedMessage element in RepeatedNestedMessageList) { |
| 2249 | size += pb::CodedOutputStream.ComputeMessageSize(48, element); |
| 2250 | } |
| 2251 | foreach (global::Google.ProtocolBuffers.TestProtos.ForeignMessage element in RepeatedForeignMessageList) { |
| 2252 | size += pb::CodedOutputStream.ComputeMessageSize(49, element); |
| 2253 | } |
| 2254 | foreach (global::Google.ProtocolBuffers.TestProtos.ImportMessage element in RepeatedImportMessageList) { |
| 2255 | size += pb::CodedOutputStream.ComputeMessageSize(50, element); |
| 2256 | } |
| 2257 | foreach (global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedEnum element in RepeatedNestedEnumList) { |
| 2258 | size += pb::CodedOutputStream.ComputeEnumSize(51, (int) element); |
| 2259 | } |
| 2260 | foreach (global::Google.ProtocolBuffers.TestProtos.ForeignEnum element in RepeatedForeignEnumList) { |
| 2261 | size += pb::CodedOutputStream.ComputeEnumSize(52, (int) element); |
| 2262 | } |
| 2263 | foreach (global::Google.ProtocolBuffers.TestProtos.ImportEnum element in RepeatedImportEnumList) { |
| 2264 | size += pb::CodedOutputStream.ComputeEnumSize(53, (int) element); |
| 2265 | } |
| 2266 | foreach (string element in RepeatedStringPieceList) { |
| 2267 | size += pb::CodedOutputStream.ComputeStringSize(54, element); |
| 2268 | } |
| 2269 | foreach (string element in RepeatedCordList) { |
| 2270 | size += pb::CodedOutputStream.ComputeStringSize(55, element); |
| 2271 | } |
| 2272 | if (HasDefaultInt32) { |
| 2273 | size += pb::CodedOutputStream.ComputeInt32Size(61, DefaultInt32); |
| 2274 | } |
| 2275 | if (HasDefaultInt64) { |
| 2276 | size += pb::CodedOutputStream.ComputeInt64Size(62, DefaultInt64); |
| 2277 | } |
| 2278 | if (HasDefaultUint32) { |
| 2279 | size += pb::CodedOutputStream.ComputeUInt32Size(63, DefaultUint32); |
| 2280 | } |
| 2281 | if (HasDefaultUint64) { |
| 2282 | size += pb::CodedOutputStream.ComputeUInt64Size(64, DefaultUint64); |
| 2283 | } |
| 2284 | if (HasDefaultSint32) { |
| 2285 | size += pb::CodedOutputStream.ComputeSInt32Size(65, DefaultSint32); |
| 2286 | } |
| 2287 | if (HasDefaultSint64) { |
| 2288 | size += pb::CodedOutputStream.ComputeSInt64Size(66, DefaultSint64); |
| 2289 | } |
| 2290 | if (HasDefaultFixed32) { |
| 2291 | size += pb::CodedOutputStream.ComputeFixed32Size(67, DefaultFixed32); |
| 2292 | } |
| 2293 | if (HasDefaultFixed64) { |
| 2294 | size += pb::CodedOutputStream.ComputeFixed64Size(68, DefaultFixed64); |
| 2295 | } |
| 2296 | if (HasDefaultSfixed32) { |
| 2297 | size += pb::CodedOutputStream.ComputeSFixed32Size(69, DefaultSfixed32); |
| 2298 | } |
| 2299 | if (HasDefaultSfixed64) { |
| 2300 | size += pb::CodedOutputStream.ComputeSFixed64Size(70, DefaultSfixed64); |
| 2301 | } |
| 2302 | if (HasDefaultFloat) { |
| 2303 | size += pb::CodedOutputStream.ComputeFloatSize(71, DefaultFloat); |
| 2304 | } |
| 2305 | if (HasDefaultDouble) { |
| 2306 | size += pb::CodedOutputStream.ComputeDoubleSize(72, DefaultDouble); |
| 2307 | } |
| 2308 | if (HasDefaultBool) { |
| 2309 | size += pb::CodedOutputStream.ComputeBoolSize(73, DefaultBool); |
| 2310 | } |
| 2311 | if (HasDefaultString) { |
| 2312 | size += pb::CodedOutputStream.ComputeStringSize(74, DefaultString); |
| 2313 | } |
| 2314 | if (HasDefaultBytes) { |
| 2315 | size += pb::CodedOutputStream.ComputeBytesSize(75, DefaultBytes); |
| 2316 | } |
| 2317 | if (HasDefaultNestedEnum) { |
| 2318 | size += pb::CodedOutputStream.ComputeEnumSize(81, (int) DefaultNestedEnum); |
| 2319 | } |
| 2320 | if (HasDefaultForeignEnum) { |
| 2321 | size += pb::CodedOutputStream.ComputeEnumSize(82, (int) DefaultForeignEnum); |
| 2322 | } |
| 2323 | if (HasDefaultImportEnum) { |
| 2324 | size += pb::CodedOutputStream.ComputeEnumSize(83, (int) DefaultImportEnum); |
| 2325 | } |
| 2326 | if (HasDefaultStringPiece) { |
| 2327 | size += pb::CodedOutputStream.ComputeStringSize(84, DefaultStringPiece); |
| 2328 | } |
| 2329 | if (HasDefaultCord) { |
| 2330 | size += pb::CodedOutputStream.ComputeStringSize(85, DefaultCord); |
| 2331 | } |
| 2332 | size += UnknownFields.SerializedSize; |
| 2333 | memoizedSerializedSize = size; |
| 2334 | return size; |
| 2335 | } |
| 2336 | } |
| 2337 | |
| 2338 | public static TestAllTypes ParseFrom(pb::ByteString data) { |
| 2339 | return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed(); |
| 2340 | } |
| 2341 | public static TestAllTypes ParseFrom(pb::ByteString data, pb::ExtensionRegistry extensionRegistry) { |
| 2342 | return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed(); |
| 2343 | } |
| 2344 | public static TestAllTypes ParseFrom(byte[] data) { |
| 2345 | return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed(); |
| 2346 | } |
| 2347 | public static TestAllTypes ParseFrom(byte[] data, pb::ExtensionRegistry extensionRegistry) { |
| 2348 | return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed(); |
| 2349 | } |
| 2350 | public static TestAllTypes ParseFrom(global::System.IO.Stream input) { |
| 2351 | return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed(); |
| 2352 | } |
| 2353 | public static TestAllTypes ParseFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) { |
| 2354 | return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed(); |
| 2355 | } |
| 2356 | public static TestAllTypes ParseFrom(pb::CodedInputStream input) { |
| 2357 | return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed(); |
| 2358 | } |
| 2359 | public static TestAllTypes ParseFrom(pb::CodedInputStream input, pb::ExtensionRegistry extensionRegistry) { |
| 2360 | return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed(); |
| 2361 | } |
| 2362 | public static Builder CreateBuilder() { return new Builder(); } |
| 2363 | public override Builder CreateBuilderForType() { return new Builder(); } |
| 2364 | public static Builder CreateBuilder(TestAllTypes prototype) { |
| 2365 | return (Builder) new Builder().MergeFrom(prototype); |
| 2366 | } |
| 2367 | |
| 2368 | public sealed partial class Builder : pb::GeneratedBuilder<TestAllTypes, Builder> { |
| 2369 | protected override Builder ThisBuilder { |
| 2370 | get { return this; } |
| 2371 | } |
| 2372 | public Builder() {} |
| 2373 | |
| 2374 | TestAllTypes result = new TestAllTypes(); |
| 2375 | |
| 2376 | protected override TestAllTypes MessageBeingBuilt { |
| 2377 | get { return result; } |
| 2378 | } |
| 2379 | |
| 2380 | public override Builder Clear() { |
| 2381 | result = new TestAllTypes(); |
| 2382 | return this; |
| 2383 | } |
| 2384 | |
| 2385 | public override Builder Clone() { |
| 2386 | return new Builder().MergeFrom(result); |
| 2387 | } |
| 2388 | |
| 2389 | public override pbd::MessageDescriptor DescriptorForType { |
| 2390 | get { return TestAllTypes.Descriptor; } |
| 2391 | } |
| 2392 | |
| 2393 | public override TestAllTypes DefaultInstanceForType { |
| 2394 | get { return TestAllTypes.DefaultInstance; } |
| 2395 | } |
| 2396 | |
| 2397 | public override TestAllTypes BuildPartial() { |
| 2398 | result.repeatedInt32_.MakeReadOnly(); |
| 2399 | result.repeatedInt64_.MakeReadOnly(); |
| 2400 | result.repeatedUint32_.MakeReadOnly(); |
| 2401 | result.repeatedUint64_.MakeReadOnly(); |
| 2402 | result.repeatedSint32_.MakeReadOnly(); |
| 2403 | result.repeatedSint64_.MakeReadOnly(); |
| 2404 | result.repeatedFixed32_.MakeReadOnly(); |
| 2405 | result.repeatedFixed64_.MakeReadOnly(); |
| 2406 | result.repeatedSfixed32_.MakeReadOnly(); |
| 2407 | result.repeatedSfixed64_.MakeReadOnly(); |
| 2408 | result.repeatedFloat_.MakeReadOnly(); |
| 2409 | result.repeatedDouble_.MakeReadOnly(); |
| 2410 | result.repeatedBool_.MakeReadOnly(); |
| 2411 | result.repeatedString_.MakeReadOnly(); |
| 2412 | result.repeatedBytes_.MakeReadOnly(); |
| 2413 | result.repeatedGroup_.MakeReadOnly(); |
| 2414 | result.repeatedNestedMessage_.MakeReadOnly(); |
| 2415 | result.repeatedForeignMessage_.MakeReadOnly(); |
| 2416 | result.repeatedImportMessage_.MakeReadOnly(); |
| 2417 | result.repeatedNestedEnum_.MakeReadOnly(); |
| 2418 | result.repeatedForeignEnum_.MakeReadOnly(); |
| 2419 | result.repeatedImportEnum_.MakeReadOnly(); |
| 2420 | result.repeatedStringPiece_.MakeReadOnly(); |
| 2421 | result.repeatedCord_.MakeReadOnly(); |
| 2422 | TestAllTypes returnMe = result; |
| 2423 | result = null; |
| 2424 | return returnMe; |
| 2425 | } |
| 2426 | |
| 2427 | public override Builder MergeFrom(pb::IMessage other) { |
| 2428 | if (other is TestAllTypes) { |
| 2429 | return MergeFrom((TestAllTypes) other); |
| 2430 | } else { |
| 2431 | base.MergeFrom(other); |
| 2432 | return this; |
| 2433 | } |
| 2434 | } |
| 2435 | |
| 2436 | public override Builder MergeFrom(TestAllTypes other) { |
| 2437 | if (other == TestAllTypes.DefaultInstance) return this; |
| 2438 | if (other.HasOptionalInt32) { |
| 2439 | OptionalInt32 = other.OptionalInt32; |
| 2440 | } |
| 2441 | if (other.HasOptionalInt64) { |
| 2442 | OptionalInt64 = other.OptionalInt64; |
| 2443 | } |
| 2444 | if (other.HasOptionalUint32) { |
| 2445 | OptionalUint32 = other.OptionalUint32; |
| 2446 | } |
| 2447 | if (other.HasOptionalUint64) { |
| 2448 | OptionalUint64 = other.OptionalUint64; |
| 2449 | } |
| 2450 | if (other.HasOptionalSint32) { |
| 2451 | OptionalSint32 = other.OptionalSint32; |
| 2452 | } |
| 2453 | if (other.HasOptionalSint64) { |
| 2454 | OptionalSint64 = other.OptionalSint64; |
| 2455 | } |
| 2456 | if (other.HasOptionalFixed32) { |
| 2457 | OptionalFixed32 = other.OptionalFixed32; |
| 2458 | } |
| 2459 | if (other.HasOptionalFixed64) { |
| 2460 | OptionalFixed64 = other.OptionalFixed64; |
| 2461 | } |
| 2462 | if (other.HasOptionalSfixed32) { |
| 2463 | OptionalSfixed32 = other.OptionalSfixed32; |
| 2464 | } |
| 2465 | if (other.HasOptionalSfixed64) { |
| 2466 | OptionalSfixed64 = other.OptionalSfixed64; |
| 2467 | } |
| 2468 | if (other.HasOptionalFloat) { |
| 2469 | OptionalFloat = other.OptionalFloat; |
| 2470 | } |
| 2471 | if (other.HasOptionalDouble) { |
| 2472 | OptionalDouble = other.OptionalDouble; |
| 2473 | } |
| 2474 | if (other.HasOptionalBool) { |
| 2475 | OptionalBool = other.OptionalBool; |
| 2476 | } |
| 2477 | if (other.HasOptionalString) { |
| 2478 | OptionalString = other.OptionalString; |
| 2479 | } |
| 2480 | if (other.HasOptionalBytes) { |
| 2481 | OptionalBytes = other.OptionalBytes; |
| 2482 | } |
| 2483 | if (other.HasOptionalGroup) { |
| 2484 | MergeOptionalGroup(other.OptionalGroup); |
| 2485 | } |
| 2486 | if (other.HasOptionalNestedMessage) { |
| 2487 | MergeOptionalNestedMessage(other.OptionalNestedMessage); |
| 2488 | } |
| 2489 | if (other.HasOptionalForeignMessage) { |
| 2490 | MergeOptionalForeignMessage(other.OptionalForeignMessage); |
| 2491 | } |
| 2492 | if (other.HasOptionalImportMessage) { |
| 2493 | MergeOptionalImportMessage(other.OptionalImportMessage); |
| 2494 | } |
| 2495 | if (other.HasOptionalNestedEnum) { |
| 2496 | OptionalNestedEnum = other.OptionalNestedEnum; |
| 2497 | } |
| 2498 | if (other.HasOptionalForeignEnum) { |
| 2499 | OptionalForeignEnum = other.OptionalForeignEnum; |
| 2500 | } |
| 2501 | if (other.HasOptionalImportEnum) { |
| 2502 | OptionalImportEnum = other.OptionalImportEnum; |
| 2503 | } |
| 2504 | if (other.HasOptionalStringPiece) { |
| 2505 | OptionalStringPiece = other.OptionalStringPiece; |
| 2506 | } |
| 2507 | if (other.HasOptionalCord) { |
| 2508 | OptionalCord = other.OptionalCord; |
| 2509 | } |
| 2510 | if (other.repeatedInt32_.Count != 0) { |
| 2511 | base.AddRange(other.repeatedInt32_, result.repeatedInt32_); |
| 2512 | } |
| 2513 | if (other.repeatedInt64_.Count != 0) { |
| 2514 | base.AddRange(other.repeatedInt64_, result.repeatedInt64_); |
| 2515 | } |
| 2516 | if (other.repeatedUint32_.Count != 0) { |
| 2517 | base.AddRange(other.repeatedUint32_, result.repeatedUint32_); |
| 2518 | } |
| 2519 | if (other.repeatedUint64_.Count != 0) { |
| 2520 | base.AddRange(other.repeatedUint64_, result.repeatedUint64_); |
| 2521 | } |
| 2522 | if (other.repeatedSint32_.Count != 0) { |
| 2523 | base.AddRange(other.repeatedSint32_, result.repeatedSint32_); |
| 2524 | } |
| 2525 | if (other.repeatedSint64_.Count != 0) { |
| 2526 | base.AddRange(other.repeatedSint64_, result.repeatedSint64_); |
| 2527 | } |
| 2528 | if (other.repeatedFixed32_.Count != 0) { |
| 2529 | base.AddRange(other.repeatedFixed32_, result.repeatedFixed32_); |
| 2530 | } |
| 2531 | if (other.repeatedFixed64_.Count != 0) { |
| 2532 | base.AddRange(other.repeatedFixed64_, result.repeatedFixed64_); |
| 2533 | } |
| 2534 | if (other.repeatedSfixed32_.Count != 0) { |
| 2535 | base.AddRange(other.repeatedSfixed32_, result.repeatedSfixed32_); |
| 2536 | } |
| 2537 | if (other.repeatedSfixed64_.Count != 0) { |
| 2538 | base.AddRange(other.repeatedSfixed64_, result.repeatedSfixed64_); |
| 2539 | } |
| 2540 | if (other.repeatedFloat_.Count != 0) { |
| 2541 | base.AddRange(other.repeatedFloat_, result.repeatedFloat_); |
| 2542 | } |
| 2543 | if (other.repeatedDouble_.Count != 0) { |
| 2544 | base.AddRange(other.repeatedDouble_, result.repeatedDouble_); |
| 2545 | } |
| 2546 | if (other.repeatedBool_.Count != 0) { |
| 2547 | base.AddRange(other.repeatedBool_, result.repeatedBool_); |
| 2548 | } |
| 2549 | if (other.repeatedString_.Count != 0) { |
| 2550 | base.AddRange(other.repeatedString_, result.repeatedString_); |
| 2551 | } |
| 2552 | if (other.repeatedBytes_.Count != 0) { |
| 2553 | base.AddRange(other.repeatedBytes_, result.repeatedBytes_); |
| 2554 | } |
| 2555 | if (other.repeatedGroup_.Count != 0) { |
| 2556 | base.AddRange(other.repeatedGroup_, result.repeatedGroup_); |
| 2557 | } |
| 2558 | if (other.repeatedNestedMessage_.Count != 0) { |
| 2559 | base.AddRange(other.repeatedNestedMessage_, result.repeatedNestedMessage_); |
| 2560 | } |
| 2561 | if (other.repeatedForeignMessage_.Count != 0) { |
| 2562 | base.AddRange(other.repeatedForeignMessage_, result.repeatedForeignMessage_); |
| 2563 | } |
| 2564 | if (other.repeatedImportMessage_.Count != 0) { |
| 2565 | base.AddRange(other.repeatedImportMessage_, result.repeatedImportMessage_); |
| 2566 | } |
| 2567 | if (other.repeatedNestedEnum_.Count != 0) { |
| 2568 | base.AddRange(other.repeatedNestedEnum_, result.repeatedNestedEnum_); |
| 2569 | } |
| 2570 | if (other.repeatedForeignEnum_.Count != 0) { |
| 2571 | base.AddRange(other.repeatedForeignEnum_, result.repeatedForeignEnum_); |
| 2572 | } |
| 2573 | if (other.repeatedImportEnum_.Count != 0) { |
| 2574 | base.AddRange(other.repeatedImportEnum_, result.repeatedImportEnum_); |
| 2575 | } |
| 2576 | if (other.repeatedStringPiece_.Count != 0) { |
| 2577 | base.AddRange(other.repeatedStringPiece_, result.repeatedStringPiece_); |
| 2578 | } |
| 2579 | if (other.repeatedCord_.Count != 0) { |
| 2580 | base.AddRange(other.repeatedCord_, result.repeatedCord_); |
| 2581 | } |
| 2582 | if (other.HasDefaultInt32) { |
| 2583 | DefaultInt32 = other.DefaultInt32; |
| 2584 | } |
| 2585 | if (other.HasDefaultInt64) { |
| 2586 | DefaultInt64 = other.DefaultInt64; |
| 2587 | } |
| 2588 | if (other.HasDefaultUint32) { |
| 2589 | DefaultUint32 = other.DefaultUint32; |
| 2590 | } |
| 2591 | if (other.HasDefaultUint64) { |
| 2592 | DefaultUint64 = other.DefaultUint64; |
| 2593 | } |
| 2594 | if (other.HasDefaultSint32) { |
| 2595 | DefaultSint32 = other.DefaultSint32; |
| 2596 | } |
| 2597 | if (other.HasDefaultSint64) { |
| 2598 | DefaultSint64 = other.DefaultSint64; |
| 2599 | } |
| 2600 | if (other.HasDefaultFixed32) { |
| 2601 | DefaultFixed32 = other.DefaultFixed32; |
| 2602 | } |
| 2603 | if (other.HasDefaultFixed64) { |
| 2604 | DefaultFixed64 = other.DefaultFixed64; |
| 2605 | } |
| 2606 | if (other.HasDefaultSfixed32) { |
| 2607 | DefaultSfixed32 = other.DefaultSfixed32; |
| 2608 | } |
| 2609 | if (other.HasDefaultSfixed64) { |
| 2610 | DefaultSfixed64 = other.DefaultSfixed64; |
| 2611 | } |
| 2612 | if (other.HasDefaultFloat) { |
| 2613 | DefaultFloat = other.DefaultFloat; |
| 2614 | } |
| 2615 | if (other.HasDefaultDouble) { |
| 2616 | DefaultDouble = other.DefaultDouble; |
| 2617 | } |
| 2618 | if (other.HasDefaultBool) { |
| 2619 | DefaultBool = other.DefaultBool; |
| 2620 | } |
| 2621 | if (other.HasDefaultString) { |
| 2622 | DefaultString = other.DefaultString; |
| 2623 | } |
| 2624 | if (other.HasDefaultBytes) { |
| 2625 | DefaultBytes = other.DefaultBytes; |
| 2626 | } |
| 2627 | if (other.HasDefaultNestedEnum) { |
| 2628 | DefaultNestedEnum = other.DefaultNestedEnum; |
| 2629 | } |
| 2630 | if (other.HasDefaultForeignEnum) { |
| 2631 | DefaultForeignEnum = other.DefaultForeignEnum; |
| 2632 | } |
| 2633 | if (other.HasDefaultImportEnum) { |
| 2634 | DefaultImportEnum = other.DefaultImportEnum; |
| 2635 | } |
| 2636 | if (other.HasDefaultStringPiece) { |
| 2637 | DefaultStringPiece = other.DefaultStringPiece; |
| 2638 | } |
| 2639 | if (other.HasDefaultCord) { |
| 2640 | DefaultCord = other.DefaultCord; |
| 2641 | } |
| 2642 | this.MergeUnknownFields(other.UnknownFields); |
| 2643 | return this; |
| 2644 | } |
| 2645 | |
| 2646 | public override Builder MergeFrom(pb::CodedInputStream input) { |
| 2647 | return MergeFrom(input, pb::ExtensionRegistry.Empty); |
| 2648 | } |
| 2649 | |
| 2650 | public override Builder MergeFrom(pb::CodedInputStream input, pb::ExtensionRegistry extensionRegistry) { |
| 2651 | pb::UnknownFieldSet.Builder unknownFields = pb::UnknownFieldSet.CreateBuilder(this.UnknownFields); |
| 2652 | while (true) { |
| 2653 | uint tag = input.ReadTag(); |
| 2654 | switch (tag) { |
| 2655 | case 0: { |
| 2656 | this.UnknownFields = unknownFields.Build(); |
| 2657 | return this; |
| 2658 | } |
| 2659 | default: { |
| 2660 | if (!ParseUnknownField(input, unknownFields, extensionRegistry, tag)) { |
| 2661 | this.UnknownFields = unknownFields.Build(); |
| 2662 | return this; |
| 2663 | } |
| 2664 | break; |
| 2665 | } |
| 2666 | case 8: { |
| 2667 | OptionalInt32 = input.ReadInt32(); |
| 2668 | break; |
| 2669 | } |
| 2670 | case 16: { |
| 2671 | OptionalInt64 = input.ReadInt64(); |
| 2672 | break; |
| 2673 | } |
| 2674 | case 24: { |
| 2675 | OptionalUint32 = input.ReadUInt32(); |
| 2676 | break; |
| 2677 | } |
| 2678 | case 32: { |
| 2679 | OptionalUint64 = input.ReadUInt64(); |
| 2680 | break; |
| 2681 | } |
| 2682 | case 40: { |
| 2683 | OptionalSint32 = input.ReadSInt32(); |
| 2684 | break; |
| 2685 | } |
| 2686 | case 48: { |
| 2687 | OptionalSint64 = input.ReadSInt64(); |
| 2688 | break; |
| 2689 | } |
| 2690 | case 61: { |
| 2691 | OptionalFixed32 = input.ReadFixed32(); |
| 2692 | break; |
| 2693 | } |
| 2694 | case 65: { |
| 2695 | OptionalFixed64 = input.ReadFixed64(); |
| 2696 | break; |
| 2697 | } |
| 2698 | case 77: { |
| 2699 | OptionalSfixed32 = input.ReadSFixed32(); |
| 2700 | break; |
| 2701 | } |
| 2702 | case 81: { |
| 2703 | OptionalSfixed64 = input.ReadSFixed64(); |
| 2704 | break; |
| 2705 | } |
| 2706 | case 93: { |
| 2707 | OptionalFloat = input.ReadFloat(); |
| 2708 | break; |
| 2709 | } |
| 2710 | case 97: { |
| 2711 | OptionalDouble = input.ReadDouble(); |
| 2712 | break; |
| 2713 | } |
| 2714 | case 104: { |
| 2715 | OptionalBool = input.ReadBool(); |
| 2716 | break; |
| 2717 | } |
| 2718 | case 114: { |
| 2719 | OptionalString = input.ReadString(); |
| 2720 | break; |
| 2721 | } |
| 2722 | case 122: { |
| 2723 | OptionalBytes = input.ReadBytes(); |
| 2724 | break; |
| 2725 | } |
| 2726 | case 131: { |
| 2727 | global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.OptionalGroup.Builder subBuilder = global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.OptionalGroup.CreateBuilder(); |
| 2728 | if (HasOptionalGroup) { |
| 2729 | subBuilder.MergeFrom(OptionalGroup); |
| 2730 | } |
| 2731 | input.ReadGroup(16, subBuilder, extensionRegistry); |
| 2732 | OptionalGroup = subBuilder.BuildPartial(); |
| 2733 | break; |
| 2734 | } |
| 2735 | case 146: { |
| 2736 | global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedMessage.Builder subBuilder = global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedMessage.CreateBuilder(); |
| 2737 | if (HasOptionalNestedMessage) { |
| 2738 | subBuilder.MergeFrom(OptionalNestedMessage); |
| 2739 | } |
| 2740 | input.ReadMessage(subBuilder, extensionRegistry); |
| 2741 | OptionalNestedMessage = subBuilder.BuildPartial(); |
| 2742 | break; |
| 2743 | } |
| 2744 | case 154: { |
| 2745 | global::Google.ProtocolBuffers.TestProtos.ForeignMessage.Builder subBuilder = global::Google.ProtocolBuffers.TestProtos.ForeignMessage.CreateBuilder(); |
| 2746 | if (HasOptionalForeignMessage) { |
| 2747 | subBuilder.MergeFrom(OptionalForeignMessage); |
| 2748 | } |
| 2749 | input.ReadMessage(subBuilder, extensionRegistry); |
| 2750 | OptionalForeignMessage = subBuilder.BuildPartial(); |
| 2751 | break; |
| 2752 | } |
| 2753 | case 162: { |
| 2754 | global::Google.ProtocolBuffers.TestProtos.ImportMessage.Builder subBuilder = global::Google.ProtocolBuffers.TestProtos.ImportMessage.CreateBuilder(); |
| 2755 | if (HasOptionalImportMessage) { |
| 2756 | subBuilder.MergeFrom(OptionalImportMessage); |
| 2757 | } |
| 2758 | input.ReadMessage(subBuilder, extensionRegistry); |
| 2759 | OptionalImportMessage = subBuilder.BuildPartial(); |
| 2760 | break; |
| 2761 | } |
| 2762 | case 168: { |
| 2763 | int rawValue = input.ReadEnum(); |
| 2764 | if (!global::System.Enum.IsDefined(typeof(global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedEnum), rawValue)) { |
| 2765 | unknownFields.MergeVarintField(21, (ulong) rawValue); |
| 2766 | } else { |
| 2767 | OptionalNestedEnum = (global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedEnum) rawValue; |
| 2768 | } |
| 2769 | break; |
| 2770 | } |
| 2771 | case 176: { |
| 2772 | int rawValue = input.ReadEnum(); |
| 2773 | if (!global::System.Enum.IsDefined(typeof(global::Google.ProtocolBuffers.TestProtos.ForeignEnum), rawValue)) { |
| 2774 | unknownFields.MergeVarintField(22, (ulong) rawValue); |
| 2775 | } else { |
| 2776 | OptionalForeignEnum = (global::Google.ProtocolBuffers.TestProtos.ForeignEnum) rawValue; |
| 2777 | } |
| 2778 | break; |
| 2779 | } |
| 2780 | case 184: { |
| 2781 | int rawValue = input.ReadEnum(); |
| 2782 | if (!global::System.Enum.IsDefined(typeof(global::Google.ProtocolBuffers.TestProtos.ImportEnum), rawValue)) { |
| 2783 | unknownFields.MergeVarintField(23, (ulong) rawValue); |
| 2784 | } else { |
| 2785 | OptionalImportEnum = (global::Google.ProtocolBuffers.TestProtos.ImportEnum) rawValue; |
| 2786 | } |
| 2787 | break; |
| 2788 | } |
| 2789 | case 194: { |
| 2790 | OptionalStringPiece = input.ReadString(); |
| 2791 | break; |
| 2792 | } |
| 2793 | case 202: { |
| 2794 | OptionalCord = input.ReadString(); |
| 2795 | break; |
| 2796 | } |
| 2797 | case 248: { |
| 2798 | AddRepeatedInt32(input.ReadInt32()); |
| 2799 | break; |
| 2800 | } |
| 2801 | case 256: { |
| 2802 | AddRepeatedInt64(input.ReadInt64()); |
| 2803 | break; |
| 2804 | } |
| 2805 | case 264: { |
| 2806 | AddRepeatedUint32(input.ReadUInt32()); |
| 2807 | break; |
| 2808 | } |
| 2809 | case 272: { |
| 2810 | AddRepeatedUint64(input.ReadUInt64()); |
| 2811 | break; |
| 2812 | } |
| 2813 | case 280: { |
| 2814 | AddRepeatedSint32(input.ReadSInt32()); |
| 2815 | break; |
| 2816 | } |
| 2817 | case 288: { |
| 2818 | AddRepeatedSint64(input.ReadSInt64()); |
| 2819 | break; |
| 2820 | } |
| 2821 | case 301: { |
| 2822 | AddRepeatedFixed32(input.ReadFixed32()); |
| 2823 | break; |
| 2824 | } |
| 2825 | case 305: { |
| 2826 | AddRepeatedFixed64(input.ReadFixed64()); |
| 2827 | break; |
| 2828 | } |
| 2829 | case 317: { |
| 2830 | AddRepeatedSfixed32(input.ReadSFixed32()); |
| 2831 | break; |
| 2832 | } |
| 2833 | case 321: { |
| 2834 | AddRepeatedSfixed64(input.ReadSFixed64()); |
| 2835 | break; |
| 2836 | } |
| 2837 | case 333: { |
| 2838 | AddRepeatedFloat(input.ReadFloat()); |
| 2839 | break; |
| 2840 | } |
| 2841 | case 337: { |
| 2842 | AddRepeatedDouble(input.ReadDouble()); |
| 2843 | break; |
| 2844 | } |
| 2845 | case 344: { |
| 2846 | AddRepeatedBool(input.ReadBool()); |
| 2847 | break; |
| 2848 | } |
| 2849 | case 354: { |
| 2850 | AddRepeatedString(input.ReadString()); |
| 2851 | break; |
| 2852 | } |
| 2853 | case 362: { |
| 2854 | AddRepeatedBytes(input.ReadBytes()); |
| 2855 | break; |
| 2856 | } |
| 2857 | case 371: { |
| 2858 | global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.RepeatedGroup.Builder subBuilder = global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.RepeatedGroup.CreateBuilder(); |
| 2859 | input.ReadGroup(46, subBuilder, extensionRegistry); |
| 2860 | AddRepeatedGroup(subBuilder.BuildPartial()); |
| 2861 | break; |
| 2862 | } |
| 2863 | case 386: { |
| 2864 | global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedMessage.Builder subBuilder = global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedMessage.CreateBuilder(); |
| 2865 | input.ReadMessage(subBuilder, extensionRegistry); |
| 2866 | AddRepeatedNestedMessage(subBuilder.BuildPartial()); |
| 2867 | break; |
| 2868 | } |
| 2869 | case 394: { |
| 2870 | global::Google.ProtocolBuffers.TestProtos.ForeignMessage.Builder subBuilder = global::Google.ProtocolBuffers.TestProtos.ForeignMessage.CreateBuilder(); |
| 2871 | input.ReadMessage(subBuilder, extensionRegistry); |
| 2872 | AddRepeatedForeignMessage(subBuilder.BuildPartial()); |
| 2873 | break; |
| 2874 | } |
| 2875 | case 402: { |
| 2876 | global::Google.ProtocolBuffers.TestProtos.ImportMessage.Builder subBuilder = global::Google.ProtocolBuffers.TestProtos.ImportMessage.CreateBuilder(); |
| 2877 | input.ReadMessage(subBuilder, extensionRegistry); |
| 2878 | AddRepeatedImportMessage(subBuilder.BuildPartial()); |
| 2879 | break; |
| 2880 | } |
| 2881 | case 408: { |
| 2882 | int rawValue = input.ReadEnum(); |
| 2883 | if (!global::System.Enum.IsDefined(typeof(global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedEnum), rawValue)) { |
| 2884 | unknownFields.MergeVarintField(51, (ulong) rawValue); |
| 2885 | } else { |
| 2886 | AddRepeatedNestedEnum((global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedEnum) rawValue); |
| 2887 | } |
| 2888 | break; |
| 2889 | } |
| 2890 | case 416: { |
| 2891 | int rawValue = input.ReadEnum(); |
| 2892 | if (!global::System.Enum.IsDefined(typeof(global::Google.ProtocolBuffers.TestProtos.ForeignEnum), rawValue)) { |
| 2893 | unknownFields.MergeVarintField(52, (ulong) rawValue); |
| 2894 | } else { |
| 2895 | AddRepeatedForeignEnum((global::Google.ProtocolBuffers.TestProtos.ForeignEnum) rawValue); |
| 2896 | } |
| 2897 | break; |
| 2898 | } |
| 2899 | case 424: { |
| 2900 | int rawValue = input.ReadEnum(); |
| 2901 | if (!global::System.Enum.IsDefined(typeof(global::Google.ProtocolBuffers.TestProtos.ImportEnum), rawValue)) { |
| 2902 | unknownFields.MergeVarintField(53, (ulong) rawValue); |
| 2903 | } else { |
| 2904 | AddRepeatedImportEnum((global::Google.ProtocolBuffers.TestProtos.ImportEnum) rawValue); |
| 2905 | } |
| 2906 | break; |
| 2907 | } |
| 2908 | case 434: { |
| 2909 | AddRepeatedStringPiece(input.ReadString()); |
| 2910 | break; |
| 2911 | } |
| 2912 | case 442: { |
| 2913 | AddRepeatedCord(input.ReadString()); |
| 2914 | break; |
| 2915 | } |
| 2916 | case 488: { |
| 2917 | DefaultInt32 = input.ReadInt32(); |
| 2918 | break; |
| 2919 | } |
| 2920 | case 496: { |
| 2921 | DefaultInt64 = input.ReadInt64(); |
| 2922 | break; |
| 2923 | } |
| 2924 | case 504: { |
| 2925 | DefaultUint32 = input.ReadUInt32(); |
| 2926 | break; |
| 2927 | } |
| 2928 | case 512: { |
| 2929 | DefaultUint64 = input.ReadUInt64(); |
| 2930 | break; |
| 2931 | } |
| 2932 | case 520: { |
| 2933 | DefaultSint32 = input.ReadSInt32(); |
| 2934 | break; |
| 2935 | } |
| 2936 | case 528: { |
| 2937 | DefaultSint64 = input.ReadSInt64(); |
| 2938 | break; |
| 2939 | } |
| 2940 | case 541: { |
| 2941 | DefaultFixed32 = input.ReadFixed32(); |
| 2942 | break; |
| 2943 | } |
| 2944 | case 545: { |
| 2945 | DefaultFixed64 = input.ReadFixed64(); |
| 2946 | break; |
| 2947 | } |
| 2948 | case 557: { |
| 2949 | DefaultSfixed32 = input.ReadSFixed32(); |
| 2950 | break; |
| 2951 | } |
| 2952 | case 561: { |
| 2953 | DefaultSfixed64 = input.ReadSFixed64(); |
| 2954 | break; |
| 2955 | } |
| 2956 | case 573: { |
| 2957 | DefaultFloat = input.ReadFloat(); |
| 2958 | break; |
| 2959 | } |
| 2960 | case 577: { |
| 2961 | DefaultDouble = input.ReadDouble(); |
| 2962 | break; |
| 2963 | } |
| 2964 | case 584: { |
| 2965 | DefaultBool = input.ReadBool(); |
| 2966 | break; |
| 2967 | } |
| 2968 | case 594: { |
| 2969 | DefaultString = input.ReadString(); |
| 2970 | break; |
| 2971 | } |
| 2972 | case 602: { |
| 2973 | DefaultBytes = input.ReadBytes(); |
| 2974 | break; |
| 2975 | } |
| 2976 | case 648: { |
| 2977 | int rawValue = input.ReadEnum(); |
| 2978 | if (!global::System.Enum.IsDefined(typeof(global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedEnum), rawValue)) { |
| 2979 | unknownFields.MergeVarintField(81, (ulong) rawValue); |
| 2980 | } else { |
| 2981 | DefaultNestedEnum = (global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedEnum) rawValue; |
| 2982 | } |
| 2983 | break; |
| 2984 | } |
| 2985 | case 656: { |
| 2986 | int rawValue = input.ReadEnum(); |
| 2987 | if (!global::System.Enum.IsDefined(typeof(global::Google.ProtocolBuffers.TestProtos.ForeignEnum), rawValue)) { |
| 2988 | unknownFields.MergeVarintField(82, (ulong) rawValue); |
| 2989 | } else { |
| 2990 | DefaultForeignEnum = (global::Google.ProtocolBuffers.TestProtos.ForeignEnum) rawValue; |
| 2991 | } |
| 2992 | break; |
| 2993 | } |
| 2994 | case 664: { |
| 2995 | int rawValue = input.ReadEnum(); |
| 2996 | if (!global::System.Enum.IsDefined(typeof(global::Google.ProtocolBuffers.TestProtos.ImportEnum), rawValue)) { |
| 2997 | unknownFields.MergeVarintField(83, (ulong) rawValue); |
| 2998 | } else { |
| 2999 | DefaultImportEnum = (global::Google.ProtocolBuffers.TestProtos.ImportEnum) rawValue; |
| 3000 | } |
| 3001 | break; |
| 3002 | } |
| 3003 | case 674: { |
| 3004 | DefaultStringPiece = input.ReadString(); |
| 3005 | break; |
| 3006 | } |
| 3007 | case 682: { |
| 3008 | DefaultCord = input.ReadString(); |
| 3009 | break; |
| 3010 | } |
| 3011 | } |
| 3012 | } |
| 3013 | } |
| 3014 | |
| 3015 | |
| 3016 | public bool HasOptionalInt32 { |
| 3017 | get { return result.HasOptionalInt32; } |
| 3018 | } |
| 3019 | public int OptionalInt32 { |
| 3020 | get { return result.OptionalInt32; } |
| 3021 | set { SetOptionalInt32(value); } |
| 3022 | } |
| 3023 | public Builder SetOptionalInt32(int value) { |
| 3024 | result.hasOptionalInt32 = true; |
| 3025 | result.optionalInt32_ = value; |
| 3026 | return this; |
| 3027 | } |
| 3028 | public Builder ClearOptionalInt32() { |
| 3029 | result.hasOptionalInt32 = false; |
| 3030 | result.optionalInt32_ = 0; |
| 3031 | return this; |
| 3032 | } |
| 3033 | |
| 3034 | public bool HasOptionalInt64 { |
| 3035 | get { return result.HasOptionalInt64; } |
| 3036 | } |
| 3037 | public long OptionalInt64 { |
| 3038 | get { return result.OptionalInt64; } |
| 3039 | set { SetOptionalInt64(value); } |
| 3040 | } |
| 3041 | public Builder SetOptionalInt64(long value) { |
| 3042 | result.hasOptionalInt64 = true; |
| 3043 | result.optionalInt64_ = value; |
| 3044 | return this; |
| 3045 | } |
| 3046 | public Builder ClearOptionalInt64() { |
| 3047 | result.hasOptionalInt64 = false; |
| 3048 | result.optionalInt64_ = 0L; |
| 3049 | return this; |
| 3050 | } |
| 3051 | |
| 3052 | public bool HasOptionalUint32 { |
| 3053 | get { return result.HasOptionalUint32; } |
| 3054 | } |
| 3055 | public uint OptionalUint32 { |
| 3056 | get { return result.OptionalUint32; } |
| 3057 | set { SetOptionalUint32(value); } |
| 3058 | } |
| 3059 | public Builder SetOptionalUint32(uint value) { |
| 3060 | result.hasOptionalUint32 = true; |
| 3061 | result.optionalUint32_ = value; |
| 3062 | return this; |
| 3063 | } |
| 3064 | public Builder ClearOptionalUint32() { |
| 3065 | result.hasOptionalUint32 = false; |
| 3066 | result.optionalUint32_ = 0; |
| 3067 | return this; |
| 3068 | } |
| 3069 | |
| 3070 | public bool HasOptionalUint64 { |
| 3071 | get { return result.HasOptionalUint64; } |
| 3072 | } |
| 3073 | public ulong OptionalUint64 { |
| 3074 | get { return result.OptionalUint64; } |
| 3075 | set { SetOptionalUint64(value); } |
| 3076 | } |
| 3077 | public Builder SetOptionalUint64(ulong value) { |
| 3078 | result.hasOptionalUint64 = true; |
| 3079 | result.optionalUint64_ = value; |
| 3080 | return this; |
| 3081 | } |
| 3082 | public Builder ClearOptionalUint64() { |
| 3083 | result.hasOptionalUint64 = false; |
| 3084 | result.optionalUint64_ = 0UL; |
| 3085 | return this; |
| 3086 | } |
| 3087 | |
| 3088 | public bool HasOptionalSint32 { |
| 3089 | get { return result.HasOptionalSint32; } |
| 3090 | } |
| 3091 | public int OptionalSint32 { |
| 3092 | get { return result.OptionalSint32; } |
| 3093 | set { SetOptionalSint32(value); } |
| 3094 | } |
| 3095 | public Builder SetOptionalSint32(int value) { |
| 3096 | result.hasOptionalSint32 = true; |
| 3097 | result.optionalSint32_ = value; |
| 3098 | return this; |
| 3099 | } |
| 3100 | public Builder ClearOptionalSint32() { |
| 3101 | result.hasOptionalSint32 = false; |
| 3102 | result.optionalSint32_ = 0; |
| 3103 | return this; |
| 3104 | } |
| 3105 | |
| 3106 | public bool HasOptionalSint64 { |
| 3107 | get { return result.HasOptionalSint64; } |
| 3108 | } |
| 3109 | public long OptionalSint64 { |
| 3110 | get { return result.OptionalSint64; } |
| 3111 | set { SetOptionalSint64(value); } |
| 3112 | } |
| 3113 | public Builder SetOptionalSint64(long value) { |
| 3114 | result.hasOptionalSint64 = true; |
| 3115 | result.optionalSint64_ = value; |
| 3116 | return this; |
| 3117 | } |
| 3118 | public Builder ClearOptionalSint64() { |
| 3119 | result.hasOptionalSint64 = false; |
| 3120 | result.optionalSint64_ = 0; |
| 3121 | return this; |
| 3122 | } |
| 3123 | |
| 3124 | public bool HasOptionalFixed32 { |
| 3125 | get { return result.HasOptionalFixed32; } |
| 3126 | } |
| 3127 | public uint OptionalFixed32 { |
| 3128 | get { return result.OptionalFixed32; } |
| 3129 | set { SetOptionalFixed32(value); } |
| 3130 | } |
| 3131 | public Builder SetOptionalFixed32(uint value) { |
| 3132 | result.hasOptionalFixed32 = true; |
| 3133 | result.optionalFixed32_ = value; |
| 3134 | return this; |
| 3135 | } |
| 3136 | public Builder ClearOptionalFixed32() { |
| 3137 | result.hasOptionalFixed32 = false; |
| 3138 | result.optionalFixed32_ = 0; |
| 3139 | return this; |
| 3140 | } |
| 3141 | |
| 3142 | public bool HasOptionalFixed64 { |
| 3143 | get { return result.HasOptionalFixed64; } |
| 3144 | } |
| 3145 | public ulong OptionalFixed64 { |
| 3146 | get { return result.OptionalFixed64; } |
| 3147 | set { SetOptionalFixed64(value); } |
| 3148 | } |
| 3149 | public Builder SetOptionalFixed64(ulong value) { |
| 3150 | result.hasOptionalFixed64 = true; |
| 3151 | result.optionalFixed64_ = value; |
| 3152 | return this; |
| 3153 | } |
| 3154 | public Builder ClearOptionalFixed64() { |
| 3155 | result.hasOptionalFixed64 = false; |
| 3156 | result.optionalFixed64_ = 0; |
| 3157 | return this; |
| 3158 | } |
| 3159 | |
| 3160 | public bool HasOptionalSfixed32 { |
| 3161 | get { return result.HasOptionalSfixed32; } |
| 3162 | } |
| 3163 | public int OptionalSfixed32 { |
| 3164 | get { return result.OptionalSfixed32; } |
| 3165 | set { SetOptionalSfixed32(value); } |
| 3166 | } |
| 3167 | public Builder SetOptionalSfixed32(int value) { |
| 3168 | result.hasOptionalSfixed32 = true; |
| 3169 | result.optionalSfixed32_ = value; |
| 3170 | return this; |
| 3171 | } |
| 3172 | public Builder ClearOptionalSfixed32() { |
| 3173 | result.hasOptionalSfixed32 = false; |
| 3174 | result.optionalSfixed32_ = 0; |
| 3175 | return this; |
| 3176 | } |
| 3177 | |
| 3178 | public bool HasOptionalSfixed64 { |
| 3179 | get { return result.HasOptionalSfixed64; } |
| 3180 | } |
| 3181 | public long OptionalSfixed64 { |
| 3182 | get { return result.OptionalSfixed64; } |
| 3183 | set { SetOptionalSfixed64(value); } |
| 3184 | } |
| 3185 | public Builder SetOptionalSfixed64(long value) { |
| 3186 | result.hasOptionalSfixed64 = true; |
| 3187 | result.optionalSfixed64_ = value; |
| 3188 | return this; |
| 3189 | } |
| 3190 | public Builder ClearOptionalSfixed64() { |
| 3191 | result.hasOptionalSfixed64 = false; |
| 3192 | result.optionalSfixed64_ = 0; |
| 3193 | return this; |
| 3194 | } |
| 3195 | |
| 3196 | public bool HasOptionalFloat { |
| 3197 | get { return result.HasOptionalFloat; } |
| 3198 | } |
| 3199 | public float OptionalFloat { |
| 3200 | get { return result.OptionalFloat; } |
| 3201 | set { SetOptionalFloat(value); } |
| 3202 | } |
| 3203 | public Builder SetOptionalFloat(float value) { |
| 3204 | result.hasOptionalFloat = true; |
| 3205 | result.optionalFloat_ = value; |
| 3206 | return this; |
| 3207 | } |
| 3208 | public Builder ClearOptionalFloat() { |
| 3209 | result.hasOptionalFloat = false; |
| 3210 | result.optionalFloat_ = 0F; |
| 3211 | return this; |
| 3212 | } |
| 3213 | |
| 3214 | public bool HasOptionalDouble { |
| 3215 | get { return result.HasOptionalDouble; } |
| 3216 | } |
| 3217 | public double OptionalDouble { |
| 3218 | get { return result.OptionalDouble; } |
| 3219 | set { SetOptionalDouble(value); } |
| 3220 | } |
| 3221 | public Builder SetOptionalDouble(double value) { |
| 3222 | result.hasOptionalDouble = true; |
| 3223 | result.optionalDouble_ = value; |
| 3224 | return this; |
| 3225 | } |
| 3226 | public Builder ClearOptionalDouble() { |
| 3227 | result.hasOptionalDouble = false; |
| 3228 | result.optionalDouble_ = 0D; |
| 3229 | return this; |
| 3230 | } |
| 3231 | |
| 3232 | public bool HasOptionalBool { |
| 3233 | get { return result.HasOptionalBool; } |
| 3234 | } |
| 3235 | public bool OptionalBool { |
| 3236 | get { return result.OptionalBool; } |
| 3237 | set { SetOptionalBool(value); } |
| 3238 | } |
| 3239 | public Builder SetOptionalBool(bool value) { |
| 3240 | result.hasOptionalBool = true; |
| 3241 | result.optionalBool_ = value; |
| 3242 | return this; |
| 3243 | } |
| 3244 | public Builder ClearOptionalBool() { |
| 3245 | result.hasOptionalBool = false; |
| 3246 | result.optionalBool_ = false; |
| 3247 | return this; |
| 3248 | } |
| 3249 | |
| 3250 | public bool HasOptionalString { |
| 3251 | get { return result.HasOptionalString; } |
| 3252 | } |
| 3253 | public string OptionalString { |
| 3254 | get { return result.OptionalString; } |
| 3255 | set { SetOptionalString(value); } |
| 3256 | } |
| 3257 | public Builder SetOptionalString(string value) { |
Jon Skeet | 642a814 | 2009-01-27 12:25:21 +0000 | [diff] [blame] | 3258 | pb::ThrowHelper.ThrowIfNull(value, "value"); |
Jon Skeet | 6803686 | 2008-10-22 13:30:34 +0100 | [diff] [blame] | 3259 | result.hasOptionalString = true; |
| 3260 | result.optionalString_ = value; |
| 3261 | return this; |
| 3262 | } |
| 3263 | public Builder ClearOptionalString() { |
| 3264 | result.hasOptionalString = false; |
| 3265 | result.optionalString_ = ""; |
| 3266 | return this; |
| 3267 | } |
| 3268 | |
| 3269 | public bool HasOptionalBytes { |
| 3270 | get { return result.HasOptionalBytes; } |
| 3271 | } |
| 3272 | public pb::ByteString OptionalBytes { |
| 3273 | get { return result.OptionalBytes; } |
| 3274 | set { SetOptionalBytes(value); } |
| 3275 | } |
| 3276 | public Builder SetOptionalBytes(pb::ByteString value) { |
Jon Skeet | 642a814 | 2009-01-27 12:25:21 +0000 | [diff] [blame] | 3277 | pb::ThrowHelper.ThrowIfNull(value, "value"); |
Jon Skeet | 6803686 | 2008-10-22 13:30:34 +0100 | [diff] [blame] | 3278 | result.hasOptionalBytes = true; |
| 3279 | result.optionalBytes_ = value; |
| 3280 | return this; |
| 3281 | } |
| 3282 | public Builder ClearOptionalBytes() { |
| 3283 | result.hasOptionalBytes = false; |
| 3284 | result.optionalBytes_ = pb::ByteString.Empty; |
| 3285 | return this; |
| 3286 | } |
| 3287 | |
| 3288 | public bool HasOptionalGroup { |
| 3289 | get { return result.HasOptionalGroup; } |
| 3290 | } |
| 3291 | public global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.OptionalGroup OptionalGroup { |
| 3292 | get { return result.OptionalGroup; } |
| 3293 | set { SetOptionalGroup(value); } |
| 3294 | } |
| 3295 | public Builder SetOptionalGroup(global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.OptionalGroup value) { |
Jon Skeet | 642a814 | 2009-01-27 12:25:21 +0000 | [diff] [blame] | 3296 | pb::ThrowHelper.ThrowIfNull(value, "value"); |
Jon Skeet | 6803686 | 2008-10-22 13:30:34 +0100 | [diff] [blame] | 3297 | result.hasOptionalGroup = true; |
| 3298 | result.optionalGroup_ = value; |
| 3299 | return this; |
| 3300 | } |
| 3301 | public Builder SetOptionalGroup(global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.OptionalGroup.Builder builderForValue) { |
Jon Skeet | 642a814 | 2009-01-27 12:25:21 +0000 | [diff] [blame] | 3302 | pb::ThrowHelper.ThrowIfNull(builderForValue, "builderForValue"); |
Jon Skeet | 6803686 | 2008-10-22 13:30:34 +0100 | [diff] [blame] | 3303 | result.hasOptionalGroup = true; |
| 3304 | result.optionalGroup_ = builderForValue.Build(); |
| 3305 | return this; |
| 3306 | } |
| 3307 | public Builder MergeOptionalGroup(global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.OptionalGroup value) { |
Jon Skeet | 642a814 | 2009-01-27 12:25:21 +0000 | [diff] [blame] | 3308 | pb::ThrowHelper.ThrowIfNull(value, "value"); |
Jon Skeet | 6803686 | 2008-10-22 13:30:34 +0100 | [diff] [blame] | 3309 | if (result.HasOptionalGroup && |
| 3310 | result.optionalGroup_ != global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.OptionalGroup.DefaultInstance) { |
| 3311 | result.optionalGroup_ = global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.OptionalGroup.CreateBuilder(result.optionalGroup_).MergeFrom(value).BuildPartial(); |
| 3312 | } else { |
| 3313 | result.optionalGroup_ = value; |
| 3314 | } |
| 3315 | result.hasOptionalGroup = true; |
| 3316 | return this; |
| 3317 | } |
| 3318 | public Builder ClearOptionalGroup() { |
| 3319 | result.hasOptionalGroup = false; |
| 3320 | result.optionalGroup_ = global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.OptionalGroup.DefaultInstance; |
| 3321 | return this; |
| 3322 | } |
| 3323 | |
| 3324 | public bool HasOptionalNestedMessage { |
| 3325 | get { return result.HasOptionalNestedMessage; } |
| 3326 | } |
| 3327 | public global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedMessage OptionalNestedMessage { |
| 3328 | get { return result.OptionalNestedMessage; } |
| 3329 | set { SetOptionalNestedMessage(value); } |
| 3330 | } |
| 3331 | public Builder SetOptionalNestedMessage(global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedMessage value) { |
Jon Skeet | 642a814 | 2009-01-27 12:25:21 +0000 | [diff] [blame] | 3332 | pb::ThrowHelper.ThrowIfNull(value, "value"); |
Jon Skeet | 6803686 | 2008-10-22 13:30:34 +0100 | [diff] [blame] | 3333 | result.hasOptionalNestedMessage = true; |
| 3334 | result.optionalNestedMessage_ = value; |
| 3335 | return this; |
| 3336 | } |
| 3337 | public Builder SetOptionalNestedMessage(global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedMessage.Builder builderForValue) { |
Jon Skeet | 642a814 | 2009-01-27 12:25:21 +0000 | [diff] [blame] | 3338 | pb::ThrowHelper.ThrowIfNull(builderForValue, "builderForValue"); |
Jon Skeet | 6803686 | 2008-10-22 13:30:34 +0100 | [diff] [blame] | 3339 | result.hasOptionalNestedMessage = true; |
| 3340 | result.optionalNestedMessage_ = builderForValue.Build(); |
| 3341 | return this; |
| 3342 | } |
| 3343 | public Builder MergeOptionalNestedMessage(global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedMessage value) { |
Jon Skeet | 642a814 | 2009-01-27 12:25:21 +0000 | [diff] [blame] | 3344 | pb::ThrowHelper.ThrowIfNull(value, "value"); |
Jon Skeet | 6803686 | 2008-10-22 13:30:34 +0100 | [diff] [blame] | 3345 | if (result.HasOptionalNestedMessage && |
| 3346 | result.optionalNestedMessage_ != global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedMessage.DefaultInstance) { |
| 3347 | result.optionalNestedMessage_ = global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedMessage.CreateBuilder(result.optionalNestedMessage_).MergeFrom(value).BuildPartial(); |
| 3348 | } else { |
| 3349 | result.optionalNestedMessage_ = value; |
| 3350 | } |
| 3351 | result.hasOptionalNestedMessage = true; |
| 3352 | return this; |
| 3353 | } |
| 3354 | public Builder ClearOptionalNestedMessage() { |
| 3355 | result.hasOptionalNestedMessage = false; |
| 3356 | result.optionalNestedMessage_ = global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedMessage.DefaultInstance; |
| 3357 | return this; |
| 3358 | } |
| 3359 | |
| 3360 | public bool HasOptionalForeignMessage { |
| 3361 | get { return result.HasOptionalForeignMessage; } |
| 3362 | } |
| 3363 | public global::Google.ProtocolBuffers.TestProtos.ForeignMessage OptionalForeignMessage { |
| 3364 | get { return result.OptionalForeignMessage; } |
| 3365 | set { SetOptionalForeignMessage(value); } |
| 3366 | } |
| 3367 | public Builder SetOptionalForeignMessage(global::Google.ProtocolBuffers.TestProtos.ForeignMessage value) { |
Jon Skeet | 642a814 | 2009-01-27 12:25:21 +0000 | [diff] [blame] | 3368 | pb::ThrowHelper.ThrowIfNull(value, "value"); |
Jon Skeet | 6803686 | 2008-10-22 13:30:34 +0100 | [diff] [blame] | 3369 | result.hasOptionalForeignMessage = true; |
| 3370 | result.optionalForeignMessage_ = value; |
| 3371 | return this; |
| 3372 | } |
| 3373 | public Builder SetOptionalForeignMessage(global::Google.ProtocolBuffers.TestProtos.ForeignMessage.Builder builderForValue) { |
Jon Skeet | 642a814 | 2009-01-27 12:25:21 +0000 | [diff] [blame] | 3374 | pb::ThrowHelper.ThrowIfNull(builderForValue, "builderForValue"); |
Jon Skeet | 6803686 | 2008-10-22 13:30:34 +0100 | [diff] [blame] | 3375 | result.hasOptionalForeignMessage = true; |
| 3376 | result.optionalForeignMessage_ = builderForValue.Build(); |
| 3377 | return this; |
| 3378 | } |
| 3379 | public Builder MergeOptionalForeignMessage(global::Google.ProtocolBuffers.TestProtos.ForeignMessage value) { |
Jon Skeet | 642a814 | 2009-01-27 12:25:21 +0000 | [diff] [blame] | 3380 | pb::ThrowHelper.ThrowIfNull(value, "value"); |
Jon Skeet | 6803686 | 2008-10-22 13:30:34 +0100 | [diff] [blame] | 3381 | if (result.HasOptionalForeignMessage && |
| 3382 | result.optionalForeignMessage_ != global::Google.ProtocolBuffers.TestProtos.ForeignMessage.DefaultInstance) { |
| 3383 | result.optionalForeignMessage_ = global::Google.ProtocolBuffers.TestProtos.ForeignMessage.CreateBuilder(result.optionalForeignMessage_).MergeFrom(value).BuildPartial(); |
| 3384 | } else { |
| 3385 | result.optionalForeignMessage_ = value; |
| 3386 | } |
| 3387 | result.hasOptionalForeignMessage = true; |
| 3388 | return this; |
| 3389 | } |
| 3390 | public Builder ClearOptionalForeignMessage() { |
| 3391 | result.hasOptionalForeignMessage = false; |
| 3392 | result.optionalForeignMessage_ = global::Google.ProtocolBuffers.TestProtos.ForeignMessage.DefaultInstance; |
| 3393 | return this; |
| 3394 | } |
| 3395 | |
| 3396 | public bool HasOptionalImportMessage { |
| 3397 | get { return result.HasOptionalImportMessage; } |
| 3398 | } |
| 3399 | public global::Google.ProtocolBuffers.TestProtos.ImportMessage OptionalImportMessage { |
| 3400 | get { return result.OptionalImportMessage; } |
| 3401 | set { SetOptionalImportMessage(value); } |
| 3402 | } |
| 3403 | public Builder SetOptionalImportMessage(global::Google.ProtocolBuffers.TestProtos.ImportMessage value) { |
Jon Skeet | 642a814 | 2009-01-27 12:25:21 +0000 | [diff] [blame] | 3404 | pb::ThrowHelper.ThrowIfNull(value, "value"); |
Jon Skeet | 6803686 | 2008-10-22 13:30:34 +0100 | [diff] [blame] | 3405 | result.hasOptionalImportMessage = true; |
| 3406 | result.optionalImportMessage_ = value; |
| 3407 | return this; |
| 3408 | } |
| 3409 | public Builder SetOptionalImportMessage(global::Google.ProtocolBuffers.TestProtos.ImportMessage.Builder builderForValue) { |
Jon Skeet | 642a814 | 2009-01-27 12:25:21 +0000 | [diff] [blame] | 3410 | pb::ThrowHelper.ThrowIfNull(builderForValue, "builderForValue"); |
Jon Skeet | 6803686 | 2008-10-22 13:30:34 +0100 | [diff] [blame] | 3411 | result.hasOptionalImportMessage = true; |
| 3412 | result.optionalImportMessage_ = builderForValue.Build(); |
| 3413 | return this; |
| 3414 | } |
| 3415 | public Builder MergeOptionalImportMessage(global::Google.ProtocolBuffers.TestProtos.ImportMessage value) { |
Jon Skeet | 642a814 | 2009-01-27 12:25:21 +0000 | [diff] [blame] | 3416 | pb::ThrowHelper.ThrowIfNull(value, "value"); |
Jon Skeet | 6803686 | 2008-10-22 13:30:34 +0100 | [diff] [blame] | 3417 | if (result.HasOptionalImportMessage && |
| 3418 | result.optionalImportMessage_ != global::Google.ProtocolBuffers.TestProtos.ImportMessage.DefaultInstance) { |
| 3419 | result.optionalImportMessage_ = global::Google.ProtocolBuffers.TestProtos.ImportMessage.CreateBuilder(result.optionalImportMessage_).MergeFrom(value).BuildPartial(); |
| 3420 | } else { |
| 3421 | result.optionalImportMessage_ = value; |
| 3422 | } |
| 3423 | result.hasOptionalImportMessage = true; |
| 3424 | return this; |
| 3425 | } |
| 3426 | public Builder ClearOptionalImportMessage() { |
| 3427 | result.hasOptionalImportMessage = false; |
| 3428 | result.optionalImportMessage_ = global::Google.ProtocolBuffers.TestProtos.ImportMessage.DefaultInstance; |
| 3429 | return this; |
| 3430 | } |
| 3431 | |
| 3432 | public bool HasOptionalNestedEnum { |
| 3433 | get { return result.HasOptionalNestedEnum; } |
| 3434 | } |
| 3435 | public global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedEnum OptionalNestedEnum { |
| 3436 | get { return result.OptionalNestedEnum; } |
| 3437 | set { SetOptionalNestedEnum(value); } |
| 3438 | } |
| 3439 | public Builder SetOptionalNestedEnum(global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedEnum value) { |
| 3440 | result.hasOptionalNestedEnum = true; |
| 3441 | result.optionalNestedEnum_ = value; |
| 3442 | return this; |
| 3443 | } |
| 3444 | public Builder ClearOptionalNestedEnum() { |
| 3445 | result.hasOptionalNestedEnum = false; |
| 3446 | result.optionalNestedEnum_ = global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedEnum.FOO; |
| 3447 | return this; |
| 3448 | } |
| 3449 | |
| 3450 | public bool HasOptionalForeignEnum { |
| 3451 | get { return result.HasOptionalForeignEnum; } |
| 3452 | } |
| 3453 | public global::Google.ProtocolBuffers.TestProtos.ForeignEnum OptionalForeignEnum { |
| 3454 | get { return result.OptionalForeignEnum; } |
| 3455 | set { SetOptionalForeignEnum(value); } |
| 3456 | } |
| 3457 | public Builder SetOptionalForeignEnum(global::Google.ProtocolBuffers.TestProtos.ForeignEnum value) { |
| 3458 | result.hasOptionalForeignEnum = true; |
| 3459 | result.optionalForeignEnum_ = value; |
| 3460 | return this; |
| 3461 | } |
| 3462 | public Builder ClearOptionalForeignEnum() { |
| 3463 | result.hasOptionalForeignEnum = false; |
| 3464 | result.optionalForeignEnum_ = global::Google.ProtocolBuffers.TestProtos.ForeignEnum.FOREIGN_FOO; |
| 3465 | return this; |
| 3466 | } |
| 3467 | |
| 3468 | public bool HasOptionalImportEnum { |
| 3469 | get { return result.HasOptionalImportEnum; } |
| 3470 | } |
| 3471 | public global::Google.ProtocolBuffers.TestProtos.ImportEnum OptionalImportEnum { |
| 3472 | get { return result.OptionalImportEnum; } |
| 3473 | set { SetOptionalImportEnum(value); } |
| 3474 | } |
| 3475 | public Builder SetOptionalImportEnum(global::Google.ProtocolBuffers.TestProtos.ImportEnum value) { |
| 3476 | result.hasOptionalImportEnum = true; |
| 3477 | result.optionalImportEnum_ = value; |
| 3478 | return this; |
| 3479 | } |
| 3480 | public Builder ClearOptionalImportEnum() { |
| 3481 | result.hasOptionalImportEnum = false; |
| 3482 | result.optionalImportEnum_ = global::Google.ProtocolBuffers.TestProtos.ImportEnum.IMPORT_FOO; |
| 3483 | return this; |
| 3484 | } |
| 3485 | |
| 3486 | public bool HasOptionalStringPiece { |
| 3487 | get { return result.HasOptionalStringPiece; } |
| 3488 | } |
| 3489 | public string OptionalStringPiece { |
| 3490 | get { return result.OptionalStringPiece; } |
| 3491 | set { SetOptionalStringPiece(value); } |
| 3492 | } |
| 3493 | public Builder SetOptionalStringPiece(string value) { |
Jon Skeet | 642a814 | 2009-01-27 12:25:21 +0000 | [diff] [blame] | 3494 | pb::ThrowHelper.ThrowIfNull(value, "value"); |
Jon Skeet | 6803686 | 2008-10-22 13:30:34 +0100 | [diff] [blame] | 3495 | result.hasOptionalStringPiece = true; |
| 3496 | result.optionalStringPiece_ = value; |
| 3497 | return this; |
| 3498 | } |
| 3499 | public Builder ClearOptionalStringPiece() { |
| 3500 | result.hasOptionalStringPiece = false; |
| 3501 | result.optionalStringPiece_ = ""; |
| 3502 | return this; |
| 3503 | } |
| 3504 | |
| 3505 | public bool HasOptionalCord { |
| 3506 | get { return result.HasOptionalCord; } |
| 3507 | } |
| 3508 | public string OptionalCord { |
| 3509 | get { return result.OptionalCord; } |
| 3510 | set { SetOptionalCord(value); } |
| 3511 | } |
| 3512 | public Builder SetOptionalCord(string value) { |
Jon Skeet | 642a814 | 2009-01-27 12:25:21 +0000 | [diff] [blame] | 3513 | pb::ThrowHelper.ThrowIfNull(value, "value"); |
Jon Skeet | 6803686 | 2008-10-22 13:30:34 +0100 | [diff] [blame] | 3514 | result.hasOptionalCord = true; |
| 3515 | result.optionalCord_ = value; |
| 3516 | return this; |
| 3517 | } |
| 3518 | public Builder ClearOptionalCord() { |
| 3519 | result.hasOptionalCord = false; |
| 3520 | result.optionalCord_ = ""; |
| 3521 | return this; |
| 3522 | } |
| 3523 | |
| 3524 | public scg::IList<int> RepeatedInt32List { |
| 3525 | get { return result.repeatedInt32_; } |
| 3526 | } |
| 3527 | public int RepeatedInt32Count { |
| 3528 | get { return result.RepeatedInt32Count; } |
| 3529 | } |
| 3530 | public int GetRepeatedInt32(int index) { |
| 3531 | return result.GetRepeatedInt32(index); |
| 3532 | } |
| 3533 | public Builder SetRepeatedInt32(int index, int value) { |
| 3534 | result.repeatedInt32_[index] = value; |
| 3535 | return this; |
| 3536 | } |
| 3537 | public Builder AddRepeatedInt32(int value) { |
| 3538 | result.repeatedInt32_.Add(value); |
| 3539 | return this; |
| 3540 | } |
| 3541 | public Builder AddRangeRepeatedInt32(scg::IEnumerable<int> values) { |
| 3542 | base.AddRange(values, result.repeatedInt32_); |
| 3543 | return this; |
| 3544 | } |
| 3545 | public Builder ClearRepeatedInt32() { |
| 3546 | result.repeatedInt32_.Clear(); |
| 3547 | return this; |
| 3548 | } |
| 3549 | |
| 3550 | public scg::IList<long> RepeatedInt64List { |
| 3551 | get { return result.repeatedInt64_; } |
| 3552 | } |
| 3553 | public int RepeatedInt64Count { |
| 3554 | get { return result.RepeatedInt64Count; } |
| 3555 | } |
| 3556 | public long GetRepeatedInt64(int index) { |
| 3557 | return result.GetRepeatedInt64(index); |
| 3558 | } |
| 3559 | public Builder SetRepeatedInt64(int index, long value) { |
| 3560 | result.repeatedInt64_[index] = value; |
| 3561 | return this; |
| 3562 | } |
| 3563 | public Builder AddRepeatedInt64(long value) { |
| 3564 | result.repeatedInt64_.Add(value); |
| 3565 | return this; |
| 3566 | } |
| 3567 | public Builder AddRangeRepeatedInt64(scg::IEnumerable<long> values) { |
| 3568 | base.AddRange(values, result.repeatedInt64_); |
| 3569 | return this; |
| 3570 | } |
| 3571 | public Builder ClearRepeatedInt64() { |
| 3572 | result.repeatedInt64_.Clear(); |
| 3573 | return this; |
| 3574 | } |
| 3575 | |
| 3576 | public scg::IList<uint> RepeatedUint32List { |
| 3577 | get { return result.repeatedUint32_; } |
| 3578 | } |
| 3579 | public int RepeatedUint32Count { |
| 3580 | get { return result.RepeatedUint32Count; } |
| 3581 | } |
| 3582 | public uint GetRepeatedUint32(int index) { |
| 3583 | return result.GetRepeatedUint32(index); |
| 3584 | } |
| 3585 | public Builder SetRepeatedUint32(int index, uint value) { |
| 3586 | result.repeatedUint32_[index] = value; |
| 3587 | return this; |
| 3588 | } |
| 3589 | public Builder AddRepeatedUint32(uint value) { |
| 3590 | result.repeatedUint32_.Add(value); |
| 3591 | return this; |
| 3592 | } |
| 3593 | public Builder AddRangeRepeatedUint32(scg::IEnumerable<uint> values) { |
| 3594 | base.AddRange(values, result.repeatedUint32_); |
| 3595 | return this; |
| 3596 | } |
| 3597 | public Builder ClearRepeatedUint32() { |
| 3598 | result.repeatedUint32_.Clear(); |
| 3599 | return this; |
| 3600 | } |
| 3601 | |
| 3602 | public scg::IList<ulong> RepeatedUint64List { |
| 3603 | get { return result.repeatedUint64_; } |
| 3604 | } |
| 3605 | public int RepeatedUint64Count { |
| 3606 | get { return result.RepeatedUint64Count; } |
| 3607 | } |
| 3608 | public ulong GetRepeatedUint64(int index) { |
| 3609 | return result.GetRepeatedUint64(index); |
| 3610 | } |
| 3611 | public Builder SetRepeatedUint64(int index, ulong value) { |
| 3612 | result.repeatedUint64_[index] = value; |
| 3613 | return this; |
| 3614 | } |
| 3615 | public Builder AddRepeatedUint64(ulong value) { |
| 3616 | result.repeatedUint64_.Add(value); |
| 3617 | return this; |
| 3618 | } |
| 3619 | public Builder AddRangeRepeatedUint64(scg::IEnumerable<ulong> values) { |
| 3620 | base.AddRange(values, result.repeatedUint64_); |
| 3621 | return this; |
| 3622 | } |
| 3623 | public Builder ClearRepeatedUint64() { |
| 3624 | result.repeatedUint64_.Clear(); |
| 3625 | return this; |
| 3626 | } |
| 3627 | |
| 3628 | public scg::IList<int> RepeatedSint32List { |
| 3629 | get { return result.repeatedSint32_; } |
| 3630 | } |
| 3631 | public int RepeatedSint32Count { |
| 3632 | get { return result.RepeatedSint32Count; } |
| 3633 | } |
| 3634 | public int GetRepeatedSint32(int index) { |
| 3635 | return result.GetRepeatedSint32(index); |
| 3636 | } |
| 3637 | public Builder SetRepeatedSint32(int index, int value) { |
| 3638 | result.repeatedSint32_[index] = value; |
| 3639 | return this; |
| 3640 | } |
| 3641 | public Builder AddRepeatedSint32(int value) { |
| 3642 | result.repeatedSint32_.Add(value); |
| 3643 | return this; |
| 3644 | } |
| 3645 | public Builder AddRangeRepeatedSint32(scg::IEnumerable<int> values) { |
| 3646 | base.AddRange(values, result.repeatedSint32_); |
| 3647 | return this; |
| 3648 | } |
| 3649 | public Builder ClearRepeatedSint32() { |
| 3650 | result.repeatedSint32_.Clear(); |
| 3651 | return this; |
| 3652 | } |
| 3653 | |
| 3654 | public scg::IList<long> RepeatedSint64List { |
| 3655 | get { return result.repeatedSint64_; } |
| 3656 | } |
| 3657 | public int RepeatedSint64Count { |
| 3658 | get { return result.RepeatedSint64Count; } |
| 3659 | } |
| 3660 | public long GetRepeatedSint64(int index) { |
| 3661 | return result.GetRepeatedSint64(index); |
| 3662 | } |
| 3663 | public Builder SetRepeatedSint64(int index, long value) { |
| 3664 | result.repeatedSint64_[index] = value; |
| 3665 | return this; |
| 3666 | } |
| 3667 | public Builder AddRepeatedSint64(long value) { |
| 3668 | result.repeatedSint64_.Add(value); |
| 3669 | return this; |
| 3670 | } |
| 3671 | public Builder AddRangeRepeatedSint64(scg::IEnumerable<long> values) { |
| 3672 | base.AddRange(values, result.repeatedSint64_); |
| 3673 | return this; |
| 3674 | } |
| 3675 | public Builder ClearRepeatedSint64() { |
| 3676 | result.repeatedSint64_.Clear(); |
| 3677 | return this; |
| 3678 | } |
| 3679 | |
| 3680 | public scg::IList<uint> RepeatedFixed32List { |
| 3681 | get { return result.repeatedFixed32_; } |
| 3682 | } |
| 3683 | public int RepeatedFixed32Count { |
| 3684 | get { return result.RepeatedFixed32Count; } |
| 3685 | } |
| 3686 | public uint GetRepeatedFixed32(int index) { |
| 3687 | return result.GetRepeatedFixed32(index); |
| 3688 | } |
| 3689 | public Builder SetRepeatedFixed32(int index, uint value) { |
| 3690 | result.repeatedFixed32_[index] = value; |
| 3691 | return this; |
| 3692 | } |
| 3693 | public Builder AddRepeatedFixed32(uint value) { |
| 3694 | result.repeatedFixed32_.Add(value); |
| 3695 | return this; |
| 3696 | } |
| 3697 | public Builder AddRangeRepeatedFixed32(scg::IEnumerable<uint> values) { |
| 3698 | base.AddRange(values, result.repeatedFixed32_); |
| 3699 | return this; |
| 3700 | } |
| 3701 | public Builder ClearRepeatedFixed32() { |
| 3702 | result.repeatedFixed32_.Clear(); |
| 3703 | return this; |
| 3704 | } |
| 3705 | |
| 3706 | public scg::IList<ulong> RepeatedFixed64List { |
| 3707 | get { return result.repeatedFixed64_; } |
| 3708 | } |
| 3709 | public int RepeatedFixed64Count { |
| 3710 | get { return result.RepeatedFixed64Count; } |
| 3711 | } |
| 3712 | public ulong GetRepeatedFixed64(int index) { |
| 3713 | return result.GetRepeatedFixed64(index); |
| 3714 | } |
| 3715 | public Builder SetRepeatedFixed64(int index, ulong value) { |
| 3716 | result.repeatedFixed64_[index] = value; |
| 3717 | return this; |
| 3718 | } |
| 3719 | public Builder AddRepeatedFixed64(ulong value) { |
| 3720 | result.repeatedFixed64_.Add(value); |
| 3721 | return this; |
| 3722 | } |
| 3723 | public Builder AddRangeRepeatedFixed64(scg::IEnumerable<ulong> values) { |
| 3724 | base.AddRange(values, result.repeatedFixed64_); |
| 3725 | return this; |
| 3726 | } |
| 3727 | public Builder ClearRepeatedFixed64() { |
| 3728 | result.repeatedFixed64_.Clear(); |
| 3729 | return this; |
| 3730 | } |
| 3731 | |
| 3732 | public scg::IList<int> RepeatedSfixed32List { |
| 3733 | get { return result.repeatedSfixed32_; } |
| 3734 | } |
| 3735 | public int RepeatedSfixed32Count { |
| 3736 | get { return result.RepeatedSfixed32Count; } |
| 3737 | } |
| 3738 | public int GetRepeatedSfixed32(int index) { |
| 3739 | return result.GetRepeatedSfixed32(index); |
| 3740 | } |
| 3741 | public Builder SetRepeatedSfixed32(int index, int value) { |
| 3742 | result.repeatedSfixed32_[index] = value; |
| 3743 | return this; |
| 3744 | } |
| 3745 | public Builder AddRepeatedSfixed32(int value) { |
| 3746 | result.repeatedSfixed32_.Add(value); |
| 3747 | return this; |
| 3748 | } |
| 3749 | public Builder AddRangeRepeatedSfixed32(scg::IEnumerable<int> values) { |
| 3750 | base.AddRange(values, result.repeatedSfixed32_); |
| 3751 | return this; |
| 3752 | } |
| 3753 | public Builder ClearRepeatedSfixed32() { |
| 3754 | result.repeatedSfixed32_.Clear(); |
| 3755 | return this; |
| 3756 | } |
| 3757 | |
| 3758 | public scg::IList<long> RepeatedSfixed64List { |
| 3759 | get { return result.repeatedSfixed64_; } |
| 3760 | } |
| 3761 | public int RepeatedSfixed64Count { |
| 3762 | get { return result.RepeatedSfixed64Count; } |
| 3763 | } |
| 3764 | public long GetRepeatedSfixed64(int index) { |
| 3765 | return result.GetRepeatedSfixed64(index); |
| 3766 | } |
| 3767 | public Builder SetRepeatedSfixed64(int index, long value) { |
| 3768 | result.repeatedSfixed64_[index] = value; |
| 3769 | return this; |
| 3770 | } |
| 3771 | public Builder AddRepeatedSfixed64(long value) { |
| 3772 | result.repeatedSfixed64_.Add(value); |
| 3773 | return this; |
| 3774 | } |
| 3775 | public Builder AddRangeRepeatedSfixed64(scg::IEnumerable<long> values) { |
| 3776 | base.AddRange(values, result.repeatedSfixed64_); |
| 3777 | return this; |
| 3778 | } |
| 3779 | public Builder ClearRepeatedSfixed64() { |
| 3780 | result.repeatedSfixed64_.Clear(); |
| 3781 | return this; |
| 3782 | } |
| 3783 | |
| 3784 | public scg::IList<float> RepeatedFloatList { |
| 3785 | get { return result.repeatedFloat_; } |
| 3786 | } |
| 3787 | public int RepeatedFloatCount { |
| 3788 | get { return result.RepeatedFloatCount; } |
| 3789 | } |
| 3790 | public float GetRepeatedFloat(int index) { |
| 3791 | return result.GetRepeatedFloat(index); |
| 3792 | } |
| 3793 | public Builder SetRepeatedFloat(int index, float value) { |
| 3794 | result.repeatedFloat_[index] = value; |
| 3795 | return this; |
| 3796 | } |
| 3797 | public Builder AddRepeatedFloat(float value) { |
| 3798 | result.repeatedFloat_.Add(value); |
| 3799 | return this; |
| 3800 | } |
| 3801 | public Builder AddRangeRepeatedFloat(scg::IEnumerable<float> values) { |
| 3802 | base.AddRange(values, result.repeatedFloat_); |
| 3803 | return this; |
| 3804 | } |
| 3805 | public Builder ClearRepeatedFloat() { |
| 3806 | result.repeatedFloat_.Clear(); |
| 3807 | return this; |
| 3808 | } |
| 3809 | |
| 3810 | public scg::IList<double> RepeatedDoubleList { |
| 3811 | get { return result.repeatedDouble_; } |
| 3812 | } |
| 3813 | public int RepeatedDoubleCount { |
| 3814 | get { return result.RepeatedDoubleCount; } |
| 3815 | } |
| 3816 | public double GetRepeatedDouble(int index) { |
| 3817 | return result.GetRepeatedDouble(index); |
| 3818 | } |
| 3819 | public Builder SetRepeatedDouble(int index, double value) { |
| 3820 | result.repeatedDouble_[index] = value; |
| 3821 | return this; |
| 3822 | } |
| 3823 | public Builder AddRepeatedDouble(double value) { |
| 3824 | result.repeatedDouble_.Add(value); |
| 3825 | return this; |
| 3826 | } |
| 3827 | public Builder AddRangeRepeatedDouble(scg::IEnumerable<double> values) { |
| 3828 | base.AddRange(values, result.repeatedDouble_); |
| 3829 | return this; |
| 3830 | } |
| 3831 | public Builder ClearRepeatedDouble() { |
| 3832 | result.repeatedDouble_.Clear(); |
| 3833 | return this; |
| 3834 | } |
| 3835 | |
| 3836 | public scg::IList<bool> RepeatedBoolList { |
| 3837 | get { return result.repeatedBool_; } |
| 3838 | } |
| 3839 | public int RepeatedBoolCount { |
| 3840 | get { return result.RepeatedBoolCount; } |
| 3841 | } |
| 3842 | public bool GetRepeatedBool(int index) { |
| 3843 | return result.GetRepeatedBool(index); |
| 3844 | } |
| 3845 | public Builder SetRepeatedBool(int index, bool value) { |
| 3846 | result.repeatedBool_[index] = value; |
| 3847 | return this; |
| 3848 | } |
| 3849 | public Builder AddRepeatedBool(bool value) { |
| 3850 | result.repeatedBool_.Add(value); |
| 3851 | return this; |
| 3852 | } |
| 3853 | public Builder AddRangeRepeatedBool(scg::IEnumerable<bool> values) { |
| 3854 | base.AddRange(values, result.repeatedBool_); |
| 3855 | return this; |
| 3856 | } |
| 3857 | public Builder ClearRepeatedBool() { |
| 3858 | result.repeatedBool_.Clear(); |
| 3859 | return this; |
| 3860 | } |
| 3861 | |
| 3862 | public scg::IList<string> RepeatedStringList { |
| 3863 | get { return result.repeatedString_; } |
| 3864 | } |
| 3865 | public int RepeatedStringCount { |
| 3866 | get { return result.RepeatedStringCount; } |
| 3867 | } |
| 3868 | public string GetRepeatedString(int index) { |
| 3869 | return result.GetRepeatedString(index); |
| 3870 | } |
| 3871 | public Builder SetRepeatedString(int index, string value) { |
Jon Skeet | 642a814 | 2009-01-27 12:25:21 +0000 | [diff] [blame] | 3872 | pb::ThrowHelper.ThrowIfNull(value, "value"); |
Jon Skeet | 6803686 | 2008-10-22 13:30:34 +0100 | [diff] [blame] | 3873 | result.repeatedString_[index] = value; |
| 3874 | return this; |
| 3875 | } |
| 3876 | public Builder AddRepeatedString(string value) { |
Jon Skeet | 642a814 | 2009-01-27 12:25:21 +0000 | [diff] [blame] | 3877 | pb::ThrowHelper.ThrowIfNull(value, "value"); |
Jon Skeet | 6803686 | 2008-10-22 13:30:34 +0100 | [diff] [blame] | 3878 | result.repeatedString_.Add(value); |
| 3879 | return this; |
| 3880 | } |
| 3881 | public Builder AddRangeRepeatedString(scg::IEnumerable<string> values) { |
| 3882 | base.AddRange(values, result.repeatedString_); |
| 3883 | return this; |
| 3884 | } |
| 3885 | public Builder ClearRepeatedString() { |
| 3886 | result.repeatedString_.Clear(); |
| 3887 | return this; |
| 3888 | } |
| 3889 | |
| 3890 | public scg::IList<pb::ByteString> RepeatedBytesList { |
| 3891 | get { return result.repeatedBytes_; } |
| 3892 | } |
| 3893 | public int RepeatedBytesCount { |
| 3894 | get { return result.RepeatedBytesCount; } |
| 3895 | } |
| 3896 | public pb::ByteString GetRepeatedBytes(int index) { |
| 3897 | return result.GetRepeatedBytes(index); |
| 3898 | } |
| 3899 | public Builder SetRepeatedBytes(int index, pb::ByteString value) { |
Jon Skeet | 642a814 | 2009-01-27 12:25:21 +0000 | [diff] [blame] | 3900 | pb::ThrowHelper.ThrowIfNull(value, "value"); |
Jon Skeet | 6803686 | 2008-10-22 13:30:34 +0100 | [diff] [blame] | 3901 | result.repeatedBytes_[index] = value; |
| 3902 | return this; |
| 3903 | } |
| 3904 | public Builder AddRepeatedBytes(pb::ByteString value) { |
Jon Skeet | 642a814 | 2009-01-27 12:25:21 +0000 | [diff] [blame] | 3905 | pb::ThrowHelper.ThrowIfNull(value, "value"); |
Jon Skeet | 6803686 | 2008-10-22 13:30:34 +0100 | [diff] [blame] | 3906 | result.repeatedBytes_.Add(value); |
| 3907 | return this; |
| 3908 | } |
| 3909 | public Builder AddRangeRepeatedBytes(scg::IEnumerable<pb::ByteString> values) { |
| 3910 | base.AddRange(values, result.repeatedBytes_); |
| 3911 | return this; |
| 3912 | } |
| 3913 | public Builder ClearRepeatedBytes() { |
| 3914 | result.repeatedBytes_.Clear(); |
| 3915 | return this; |
| 3916 | } |
| 3917 | |
| 3918 | public scg::IList<global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.RepeatedGroup> RepeatedGroupList { |
| 3919 | get { return result.repeatedGroup_; } |
| 3920 | } |
| 3921 | public int RepeatedGroupCount { |
| 3922 | get { return result.RepeatedGroupCount; } |
| 3923 | } |
| 3924 | public global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.RepeatedGroup GetRepeatedGroup(int index) { |
| 3925 | return result.GetRepeatedGroup(index); |
| 3926 | } |
| 3927 | 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] | 3928 | pb::ThrowHelper.ThrowIfNull(value, "value"); |
Jon Skeet | 6803686 | 2008-10-22 13:30:34 +0100 | [diff] [blame] | 3929 | result.repeatedGroup_[index] = value; |
| 3930 | return this; |
| 3931 | } |
| 3932 | 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] | 3933 | pb::ThrowHelper.ThrowIfNull(builderForValue, "builderForValue"); |
Jon Skeet | 6803686 | 2008-10-22 13:30:34 +0100 | [diff] [blame] | 3934 | result.repeatedGroup_[index] = builderForValue.Build(); |
| 3935 | return this; |
| 3936 | } |
| 3937 | public Builder AddRepeatedGroup(global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.RepeatedGroup value) { |
Jon Skeet | 642a814 | 2009-01-27 12:25:21 +0000 | [diff] [blame] | 3938 | pb::ThrowHelper.ThrowIfNull(value, "value"); |
Jon Skeet | 6803686 | 2008-10-22 13:30:34 +0100 | [diff] [blame] | 3939 | result.repeatedGroup_.Add(value); |
| 3940 | return this; |
| 3941 | } |
| 3942 | public Builder AddRepeatedGroup(global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.RepeatedGroup.Builder builderForValue) { |
Jon Skeet | 642a814 | 2009-01-27 12:25:21 +0000 | [diff] [blame] | 3943 | pb::ThrowHelper.ThrowIfNull(builderForValue, "builderForValue"); |
Jon Skeet | 6803686 | 2008-10-22 13:30:34 +0100 | [diff] [blame] | 3944 | result.repeatedGroup_.Add(builderForValue.Build()); |
| 3945 | return this; |
| 3946 | } |
| 3947 | public Builder AddRangeRepeatedGroup(scg::IEnumerable<global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.RepeatedGroup> values) { |
| 3948 | base.AddRange(values, result.repeatedGroup_); |
| 3949 | return this; |
| 3950 | } |
| 3951 | public Builder ClearRepeatedGroup() { |
| 3952 | result.repeatedGroup_.Clear(); |
| 3953 | return this; |
| 3954 | } |
| 3955 | |
| 3956 | public scg::IList<global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedMessage> RepeatedNestedMessageList { |
| 3957 | get { return result.repeatedNestedMessage_; } |
| 3958 | } |
| 3959 | public int RepeatedNestedMessageCount { |
| 3960 | get { return result.RepeatedNestedMessageCount; } |
| 3961 | } |
| 3962 | public global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedMessage GetRepeatedNestedMessage(int index) { |
| 3963 | return result.GetRepeatedNestedMessage(index); |
| 3964 | } |
| 3965 | 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] | 3966 | pb::ThrowHelper.ThrowIfNull(value, "value"); |
Jon Skeet | 6803686 | 2008-10-22 13:30:34 +0100 | [diff] [blame] | 3967 | result.repeatedNestedMessage_[index] = value; |
| 3968 | return this; |
| 3969 | } |
| 3970 | 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] | 3971 | pb::ThrowHelper.ThrowIfNull(builderForValue, "builderForValue"); |
Jon Skeet | 6803686 | 2008-10-22 13:30:34 +0100 | [diff] [blame] | 3972 | result.repeatedNestedMessage_[index] = builderForValue.Build(); |
| 3973 | return this; |
| 3974 | } |
| 3975 | public Builder AddRepeatedNestedMessage(global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedMessage value) { |
Jon Skeet | 642a814 | 2009-01-27 12:25:21 +0000 | [diff] [blame] | 3976 | pb::ThrowHelper.ThrowIfNull(value, "value"); |
Jon Skeet | 6803686 | 2008-10-22 13:30:34 +0100 | [diff] [blame] | 3977 | result.repeatedNestedMessage_.Add(value); |
| 3978 | return this; |
| 3979 | } |
| 3980 | public Builder AddRepeatedNestedMessage(global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedMessage.Builder builderForValue) { |
Jon Skeet | 642a814 | 2009-01-27 12:25:21 +0000 | [diff] [blame] | 3981 | pb::ThrowHelper.ThrowIfNull(builderForValue, "builderForValue"); |
Jon Skeet | 6803686 | 2008-10-22 13:30:34 +0100 | [diff] [blame] | 3982 | result.repeatedNestedMessage_.Add(builderForValue.Build()); |
| 3983 | return this; |
| 3984 | } |
| 3985 | public Builder AddRangeRepeatedNestedMessage(scg::IEnumerable<global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedMessage> values) { |
| 3986 | base.AddRange(values, result.repeatedNestedMessage_); |
| 3987 | return this; |
| 3988 | } |
| 3989 | public Builder ClearRepeatedNestedMessage() { |
| 3990 | result.repeatedNestedMessage_.Clear(); |
| 3991 | return this; |
| 3992 | } |
| 3993 | |
| 3994 | public scg::IList<global::Google.ProtocolBuffers.TestProtos.ForeignMessage> RepeatedForeignMessageList { |
| 3995 | get { return result.repeatedForeignMessage_; } |
| 3996 | } |
| 3997 | public int RepeatedForeignMessageCount { |
| 3998 | get { return result.RepeatedForeignMessageCount; } |
| 3999 | } |
| 4000 | public global::Google.ProtocolBuffers.TestProtos.ForeignMessage GetRepeatedForeignMessage(int index) { |
| 4001 | return result.GetRepeatedForeignMessage(index); |
| 4002 | } |
| 4003 | public Builder SetRepeatedForeignMessage(int index, global::Google.ProtocolBuffers.TestProtos.ForeignMessage value) { |
Jon Skeet | 642a814 | 2009-01-27 12:25:21 +0000 | [diff] [blame] | 4004 | pb::ThrowHelper.ThrowIfNull(value, "value"); |
Jon Skeet | 6803686 | 2008-10-22 13:30:34 +0100 | [diff] [blame] | 4005 | result.repeatedForeignMessage_[index] = value; |
| 4006 | return this; |
| 4007 | } |
| 4008 | public Builder SetRepeatedForeignMessage(int index, global::Google.ProtocolBuffers.TestProtos.ForeignMessage.Builder builderForValue) { |
Jon Skeet | 642a814 | 2009-01-27 12:25:21 +0000 | [diff] [blame] | 4009 | pb::ThrowHelper.ThrowIfNull(builderForValue, "builderForValue"); |
Jon Skeet | 6803686 | 2008-10-22 13:30:34 +0100 | [diff] [blame] | 4010 | result.repeatedForeignMessage_[index] = builderForValue.Build(); |
| 4011 | return this; |
| 4012 | } |
| 4013 | public Builder AddRepeatedForeignMessage(global::Google.ProtocolBuffers.TestProtos.ForeignMessage value) { |
Jon Skeet | 642a814 | 2009-01-27 12:25:21 +0000 | [diff] [blame] | 4014 | pb::ThrowHelper.ThrowIfNull(value, "value"); |
Jon Skeet | 6803686 | 2008-10-22 13:30:34 +0100 | [diff] [blame] | 4015 | result.repeatedForeignMessage_.Add(value); |
| 4016 | return this; |
| 4017 | } |
| 4018 | public Builder AddRepeatedForeignMessage(global::Google.ProtocolBuffers.TestProtos.ForeignMessage.Builder builderForValue) { |
Jon Skeet | 642a814 | 2009-01-27 12:25:21 +0000 | [diff] [blame] | 4019 | pb::ThrowHelper.ThrowIfNull(builderForValue, "builderForValue"); |
Jon Skeet | 6803686 | 2008-10-22 13:30:34 +0100 | [diff] [blame] | 4020 | result.repeatedForeignMessage_.Add(builderForValue.Build()); |
| 4021 | return this; |
| 4022 | } |
| 4023 | public Builder AddRangeRepeatedForeignMessage(scg::IEnumerable<global::Google.ProtocolBuffers.TestProtos.ForeignMessage> values) { |
| 4024 | base.AddRange(values, result.repeatedForeignMessage_); |
| 4025 | return this; |
| 4026 | } |
| 4027 | public Builder ClearRepeatedForeignMessage() { |
| 4028 | result.repeatedForeignMessage_.Clear(); |
| 4029 | return this; |
| 4030 | } |
| 4031 | |
| 4032 | public scg::IList<global::Google.ProtocolBuffers.TestProtos.ImportMessage> RepeatedImportMessageList { |
| 4033 | get { return result.repeatedImportMessage_; } |
| 4034 | } |
| 4035 | public int RepeatedImportMessageCount { |
| 4036 | get { return result.RepeatedImportMessageCount; } |
| 4037 | } |
| 4038 | public global::Google.ProtocolBuffers.TestProtos.ImportMessage GetRepeatedImportMessage(int index) { |
| 4039 | return result.GetRepeatedImportMessage(index); |
| 4040 | } |
| 4041 | public Builder SetRepeatedImportMessage(int index, global::Google.ProtocolBuffers.TestProtos.ImportMessage value) { |
Jon Skeet | 642a814 | 2009-01-27 12:25:21 +0000 | [diff] [blame] | 4042 | pb::ThrowHelper.ThrowIfNull(value, "value"); |
Jon Skeet | 6803686 | 2008-10-22 13:30:34 +0100 | [diff] [blame] | 4043 | result.repeatedImportMessage_[index] = value; |
| 4044 | return this; |
| 4045 | } |
| 4046 | public Builder SetRepeatedImportMessage(int index, global::Google.ProtocolBuffers.TestProtos.ImportMessage.Builder builderForValue) { |
Jon Skeet | 642a814 | 2009-01-27 12:25:21 +0000 | [diff] [blame] | 4047 | pb::ThrowHelper.ThrowIfNull(builderForValue, "builderForValue"); |
Jon Skeet | 6803686 | 2008-10-22 13:30:34 +0100 | [diff] [blame] | 4048 | result.repeatedImportMessage_[index] = builderForValue.Build(); |
| 4049 | return this; |
| 4050 | } |
| 4051 | public Builder AddRepeatedImportMessage(global::Google.ProtocolBuffers.TestProtos.ImportMessage value) { |
Jon Skeet | 642a814 | 2009-01-27 12:25:21 +0000 | [diff] [blame] | 4052 | pb::ThrowHelper.ThrowIfNull(value, "value"); |
Jon Skeet | 6803686 | 2008-10-22 13:30:34 +0100 | [diff] [blame] | 4053 | result.repeatedImportMessage_.Add(value); |
| 4054 | return this; |
| 4055 | } |
| 4056 | public Builder AddRepeatedImportMessage(global::Google.ProtocolBuffers.TestProtos.ImportMessage.Builder builderForValue) { |
Jon Skeet | 642a814 | 2009-01-27 12:25:21 +0000 | [diff] [blame] | 4057 | pb::ThrowHelper.ThrowIfNull(builderForValue, "builderForValue"); |
Jon Skeet | 6803686 | 2008-10-22 13:30:34 +0100 | [diff] [blame] | 4058 | result.repeatedImportMessage_.Add(builderForValue.Build()); |
| 4059 | return this; |
| 4060 | } |
| 4061 | public Builder AddRangeRepeatedImportMessage(scg::IEnumerable<global::Google.ProtocolBuffers.TestProtos.ImportMessage> values) { |
| 4062 | base.AddRange(values, result.repeatedImportMessage_); |
| 4063 | return this; |
| 4064 | } |
| 4065 | public Builder ClearRepeatedImportMessage() { |
| 4066 | result.repeatedImportMessage_.Clear(); |
| 4067 | return this; |
| 4068 | } |
| 4069 | |
| 4070 | public scg::IList<global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedEnum> RepeatedNestedEnumList { |
| 4071 | get { return result.repeatedNestedEnum_; } |
| 4072 | } |
| 4073 | public int RepeatedNestedEnumCount { |
| 4074 | get { return result.RepeatedNestedEnumCount; } |
| 4075 | } |
| 4076 | public global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedEnum GetRepeatedNestedEnum(int index) { |
| 4077 | return result.GetRepeatedNestedEnum(index); |
| 4078 | } |
| 4079 | public Builder SetRepeatedNestedEnum(int index, global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedEnum value) { |
| 4080 | result.repeatedNestedEnum_[index] = value; |
| 4081 | return this; |
| 4082 | } |
| 4083 | public Builder AddRepeatedNestedEnum(global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedEnum value) { |
| 4084 | result.repeatedNestedEnum_.Add(value); |
| 4085 | return this; |
| 4086 | } |
| 4087 | public Builder AddRangeRepeatedNestedEnum(scg::IEnumerable<global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedEnum> values) { |
| 4088 | base.AddRange(values, result.repeatedNestedEnum_); |
| 4089 | return this; |
| 4090 | } |
| 4091 | public Builder ClearRepeatedNestedEnum() { |
| 4092 | result.repeatedNestedEnum_.Clear(); |
| 4093 | return this; |
| 4094 | } |
| 4095 | |
| 4096 | public scg::IList<global::Google.ProtocolBuffers.TestProtos.ForeignEnum> RepeatedForeignEnumList { |
| 4097 | get { return result.repeatedForeignEnum_; } |
| 4098 | } |
| 4099 | public int RepeatedForeignEnumCount { |
| 4100 | get { return result.RepeatedForeignEnumCount; } |
| 4101 | } |
| 4102 | public global::Google.ProtocolBuffers.TestProtos.ForeignEnum GetRepeatedForeignEnum(int index) { |
| 4103 | return result.GetRepeatedForeignEnum(index); |
| 4104 | } |
| 4105 | public Builder SetRepeatedForeignEnum(int index, global::Google.ProtocolBuffers.TestProtos.ForeignEnum value) { |
| 4106 | result.repeatedForeignEnum_[index] = value; |
| 4107 | return this; |
| 4108 | } |
| 4109 | public Builder AddRepeatedForeignEnum(global::Google.ProtocolBuffers.TestProtos.ForeignEnum value) { |
| 4110 | result.repeatedForeignEnum_.Add(value); |
| 4111 | return this; |
| 4112 | } |
| 4113 | public Builder AddRangeRepeatedForeignEnum(scg::IEnumerable<global::Google.ProtocolBuffers.TestProtos.ForeignEnum> values) { |
| 4114 | base.AddRange(values, result.repeatedForeignEnum_); |
| 4115 | return this; |
| 4116 | } |
| 4117 | public Builder ClearRepeatedForeignEnum() { |
| 4118 | result.repeatedForeignEnum_.Clear(); |
| 4119 | return this; |
| 4120 | } |
| 4121 | |
| 4122 | public scg::IList<global::Google.ProtocolBuffers.TestProtos.ImportEnum> RepeatedImportEnumList { |
| 4123 | get { return result.repeatedImportEnum_; } |
| 4124 | } |
| 4125 | public int RepeatedImportEnumCount { |
| 4126 | get { return result.RepeatedImportEnumCount; } |
| 4127 | } |
| 4128 | public global::Google.ProtocolBuffers.TestProtos.ImportEnum GetRepeatedImportEnum(int index) { |
| 4129 | return result.GetRepeatedImportEnum(index); |
| 4130 | } |
| 4131 | public Builder SetRepeatedImportEnum(int index, global::Google.ProtocolBuffers.TestProtos.ImportEnum value) { |
| 4132 | result.repeatedImportEnum_[index] = value; |
| 4133 | return this; |
| 4134 | } |
| 4135 | public Builder AddRepeatedImportEnum(global::Google.ProtocolBuffers.TestProtos.ImportEnum value) { |
| 4136 | result.repeatedImportEnum_.Add(value); |
| 4137 | return this; |
| 4138 | } |
| 4139 | public Builder AddRangeRepeatedImportEnum(scg::IEnumerable<global::Google.ProtocolBuffers.TestProtos.ImportEnum> values) { |
| 4140 | base.AddRange(values, result.repeatedImportEnum_); |
| 4141 | return this; |
| 4142 | } |
| 4143 | public Builder ClearRepeatedImportEnum() { |
| 4144 | result.repeatedImportEnum_.Clear(); |
| 4145 | return this; |
| 4146 | } |
| 4147 | |
| 4148 | public scg::IList<string> RepeatedStringPieceList { |
| 4149 | get { return result.repeatedStringPiece_; } |
| 4150 | } |
| 4151 | public int RepeatedStringPieceCount { |
| 4152 | get { return result.RepeatedStringPieceCount; } |
| 4153 | } |
| 4154 | public string GetRepeatedStringPiece(int index) { |
| 4155 | return result.GetRepeatedStringPiece(index); |
| 4156 | } |
| 4157 | public Builder SetRepeatedStringPiece(int index, string 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.repeatedStringPiece_[index] = value; |
| 4160 | return this; |
| 4161 | } |
| 4162 | public Builder AddRepeatedStringPiece(string value) { |
Jon Skeet | 642a814 | 2009-01-27 12:25:21 +0000 | [diff] [blame] | 4163 | pb::ThrowHelper.ThrowIfNull(value, "value"); |
Jon Skeet | 6803686 | 2008-10-22 13:30:34 +0100 | [diff] [blame] | 4164 | result.repeatedStringPiece_.Add(value); |
| 4165 | return this; |
| 4166 | } |
| 4167 | public Builder AddRangeRepeatedStringPiece(scg::IEnumerable<string> values) { |
| 4168 | base.AddRange(values, result.repeatedStringPiece_); |
| 4169 | return this; |
| 4170 | } |
| 4171 | public Builder ClearRepeatedStringPiece() { |
| 4172 | result.repeatedStringPiece_.Clear(); |
| 4173 | return this; |
| 4174 | } |
| 4175 | |
| 4176 | public scg::IList<string> RepeatedCordList { |
| 4177 | get { return result.repeatedCord_; } |
| 4178 | } |
| 4179 | public int RepeatedCordCount { |
| 4180 | get { return result.RepeatedCordCount; } |
| 4181 | } |
| 4182 | public string GetRepeatedCord(int index) { |
| 4183 | return result.GetRepeatedCord(index); |
| 4184 | } |
| 4185 | public Builder SetRepeatedCord(int index, string 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.repeatedCord_[index] = value; |
| 4188 | return this; |
| 4189 | } |
| 4190 | public Builder AddRepeatedCord(string value) { |
Jon Skeet | 642a814 | 2009-01-27 12:25:21 +0000 | [diff] [blame] | 4191 | pb::ThrowHelper.ThrowIfNull(value, "value"); |
Jon Skeet | 6803686 | 2008-10-22 13:30:34 +0100 | [diff] [blame] | 4192 | result.repeatedCord_.Add(value); |
| 4193 | return this; |
| 4194 | } |
| 4195 | public Builder AddRangeRepeatedCord(scg::IEnumerable<string> values) { |
| 4196 | base.AddRange(values, result.repeatedCord_); |
| 4197 | return this; |
| 4198 | } |
| 4199 | public Builder ClearRepeatedCord() { |
| 4200 | result.repeatedCord_.Clear(); |
| 4201 | return this; |
| 4202 | } |
| 4203 | |
| 4204 | public bool HasDefaultInt32 { |
| 4205 | get { return result.HasDefaultInt32; } |
| 4206 | } |
| 4207 | public int DefaultInt32 { |
| 4208 | get { return result.DefaultInt32; } |
| 4209 | set { SetDefaultInt32(value); } |
| 4210 | } |
| 4211 | public Builder SetDefaultInt32(int value) { |
| 4212 | result.hasDefaultInt32 = true; |
| 4213 | result.defaultInt32_ = value; |
| 4214 | return this; |
| 4215 | } |
| 4216 | public Builder ClearDefaultInt32() { |
| 4217 | result.hasDefaultInt32 = false; |
| 4218 | result.defaultInt32_ = 41; |
| 4219 | return this; |
| 4220 | } |
| 4221 | |
| 4222 | public bool HasDefaultInt64 { |
| 4223 | get { return result.HasDefaultInt64; } |
| 4224 | } |
| 4225 | public long DefaultInt64 { |
| 4226 | get { return result.DefaultInt64; } |
| 4227 | set { SetDefaultInt64(value); } |
| 4228 | } |
| 4229 | public Builder SetDefaultInt64(long value) { |
| 4230 | result.hasDefaultInt64 = true; |
| 4231 | result.defaultInt64_ = value; |
| 4232 | return this; |
| 4233 | } |
| 4234 | public Builder ClearDefaultInt64() { |
| 4235 | result.hasDefaultInt64 = false; |
| 4236 | result.defaultInt64_ = 42L; |
| 4237 | return this; |
| 4238 | } |
| 4239 | |
| 4240 | public bool HasDefaultUint32 { |
| 4241 | get { return result.HasDefaultUint32; } |
| 4242 | } |
| 4243 | public uint DefaultUint32 { |
| 4244 | get { return result.DefaultUint32; } |
| 4245 | set { SetDefaultUint32(value); } |
| 4246 | } |
| 4247 | public Builder SetDefaultUint32(uint value) { |
| 4248 | result.hasDefaultUint32 = true; |
| 4249 | result.defaultUint32_ = value; |
| 4250 | return this; |
| 4251 | } |
| 4252 | public Builder ClearDefaultUint32() { |
| 4253 | result.hasDefaultUint32 = false; |
| 4254 | result.defaultUint32_ = 43; |
| 4255 | return this; |
| 4256 | } |
| 4257 | |
| 4258 | public bool HasDefaultUint64 { |
| 4259 | get { return result.HasDefaultUint64; } |
| 4260 | } |
| 4261 | public ulong DefaultUint64 { |
| 4262 | get { return result.DefaultUint64; } |
| 4263 | set { SetDefaultUint64(value); } |
| 4264 | } |
| 4265 | public Builder SetDefaultUint64(ulong value) { |
| 4266 | result.hasDefaultUint64 = true; |
| 4267 | result.defaultUint64_ = value; |
| 4268 | return this; |
| 4269 | } |
| 4270 | public Builder ClearDefaultUint64() { |
| 4271 | result.hasDefaultUint64 = false; |
| 4272 | result.defaultUint64_ = 44UL; |
| 4273 | return this; |
| 4274 | } |
| 4275 | |
| 4276 | public bool HasDefaultSint32 { |
| 4277 | get { return result.HasDefaultSint32; } |
| 4278 | } |
| 4279 | public int DefaultSint32 { |
| 4280 | get { return result.DefaultSint32; } |
| 4281 | set { SetDefaultSint32(value); } |
| 4282 | } |
| 4283 | public Builder SetDefaultSint32(int value) { |
| 4284 | result.hasDefaultSint32 = true; |
| 4285 | result.defaultSint32_ = value; |
| 4286 | return this; |
| 4287 | } |
| 4288 | public Builder ClearDefaultSint32() { |
| 4289 | result.hasDefaultSint32 = false; |
| 4290 | result.defaultSint32_ = -45; |
| 4291 | return this; |
| 4292 | } |
| 4293 | |
| 4294 | public bool HasDefaultSint64 { |
| 4295 | get { return result.HasDefaultSint64; } |
| 4296 | } |
| 4297 | public long DefaultSint64 { |
| 4298 | get { return result.DefaultSint64; } |
| 4299 | set { SetDefaultSint64(value); } |
| 4300 | } |
| 4301 | public Builder SetDefaultSint64(long value) { |
| 4302 | result.hasDefaultSint64 = true; |
| 4303 | result.defaultSint64_ = value; |
| 4304 | return this; |
| 4305 | } |
| 4306 | public Builder ClearDefaultSint64() { |
| 4307 | result.hasDefaultSint64 = false; |
| 4308 | result.defaultSint64_ = 46; |
| 4309 | return this; |
| 4310 | } |
| 4311 | |
| 4312 | public bool HasDefaultFixed32 { |
| 4313 | get { return result.HasDefaultFixed32; } |
| 4314 | } |
| 4315 | public uint DefaultFixed32 { |
| 4316 | get { return result.DefaultFixed32; } |
| 4317 | set { SetDefaultFixed32(value); } |
| 4318 | } |
| 4319 | public Builder SetDefaultFixed32(uint value) { |
| 4320 | result.hasDefaultFixed32 = true; |
| 4321 | result.defaultFixed32_ = value; |
| 4322 | return this; |
| 4323 | } |
| 4324 | public Builder ClearDefaultFixed32() { |
| 4325 | result.hasDefaultFixed32 = false; |
| 4326 | result.defaultFixed32_ = 47; |
| 4327 | return this; |
| 4328 | } |
| 4329 | |
| 4330 | public bool HasDefaultFixed64 { |
| 4331 | get { return result.HasDefaultFixed64; } |
| 4332 | } |
| 4333 | public ulong DefaultFixed64 { |
| 4334 | get { return result.DefaultFixed64; } |
| 4335 | set { SetDefaultFixed64(value); } |
| 4336 | } |
| 4337 | public Builder SetDefaultFixed64(ulong value) { |
| 4338 | result.hasDefaultFixed64 = true; |
| 4339 | result.defaultFixed64_ = value; |
| 4340 | return this; |
| 4341 | } |
| 4342 | public Builder ClearDefaultFixed64() { |
| 4343 | result.hasDefaultFixed64 = false; |
| 4344 | result.defaultFixed64_ = 48; |
| 4345 | return this; |
| 4346 | } |
| 4347 | |
| 4348 | public bool HasDefaultSfixed32 { |
| 4349 | get { return result.HasDefaultSfixed32; } |
| 4350 | } |
| 4351 | public int DefaultSfixed32 { |
| 4352 | get { return result.DefaultSfixed32; } |
| 4353 | set { SetDefaultSfixed32(value); } |
| 4354 | } |
| 4355 | public Builder SetDefaultSfixed32(int value) { |
| 4356 | result.hasDefaultSfixed32 = true; |
| 4357 | result.defaultSfixed32_ = value; |
| 4358 | return this; |
| 4359 | } |
| 4360 | public Builder ClearDefaultSfixed32() { |
| 4361 | result.hasDefaultSfixed32 = false; |
| 4362 | result.defaultSfixed32_ = 49; |
| 4363 | return this; |
| 4364 | } |
| 4365 | |
| 4366 | public bool HasDefaultSfixed64 { |
| 4367 | get { return result.HasDefaultSfixed64; } |
| 4368 | } |
| 4369 | public long DefaultSfixed64 { |
| 4370 | get { return result.DefaultSfixed64; } |
| 4371 | set { SetDefaultSfixed64(value); } |
| 4372 | } |
| 4373 | public Builder SetDefaultSfixed64(long value) { |
| 4374 | result.hasDefaultSfixed64 = true; |
| 4375 | result.defaultSfixed64_ = value; |
| 4376 | return this; |
| 4377 | } |
| 4378 | public Builder ClearDefaultSfixed64() { |
| 4379 | result.hasDefaultSfixed64 = false; |
| 4380 | result.defaultSfixed64_ = -50; |
| 4381 | return this; |
| 4382 | } |
| 4383 | |
| 4384 | public bool HasDefaultFloat { |
| 4385 | get { return result.HasDefaultFloat; } |
| 4386 | } |
| 4387 | public float DefaultFloat { |
| 4388 | get { return result.DefaultFloat; } |
| 4389 | set { SetDefaultFloat(value); } |
| 4390 | } |
| 4391 | public Builder SetDefaultFloat(float value) { |
| 4392 | result.hasDefaultFloat = true; |
| 4393 | result.defaultFloat_ = value; |
| 4394 | return this; |
| 4395 | } |
| 4396 | public Builder ClearDefaultFloat() { |
| 4397 | result.hasDefaultFloat = false; |
| 4398 | result.defaultFloat_ = 51.5F; |
| 4399 | return this; |
| 4400 | } |
| 4401 | |
| 4402 | public bool HasDefaultDouble { |
| 4403 | get { return result.HasDefaultDouble; } |
| 4404 | } |
| 4405 | public double DefaultDouble { |
| 4406 | get { return result.DefaultDouble; } |
| 4407 | set { SetDefaultDouble(value); } |
| 4408 | } |
| 4409 | public Builder SetDefaultDouble(double value) { |
| 4410 | result.hasDefaultDouble = true; |
| 4411 | result.defaultDouble_ = value; |
| 4412 | return this; |
| 4413 | } |
| 4414 | public Builder ClearDefaultDouble() { |
| 4415 | result.hasDefaultDouble = false; |
| 4416 | result.defaultDouble_ = 52000D; |
| 4417 | return this; |
| 4418 | } |
| 4419 | |
| 4420 | public bool HasDefaultBool { |
| 4421 | get { return result.HasDefaultBool; } |
| 4422 | } |
| 4423 | public bool DefaultBool { |
| 4424 | get { return result.DefaultBool; } |
| 4425 | set { SetDefaultBool(value); } |
| 4426 | } |
| 4427 | public Builder SetDefaultBool(bool value) { |
| 4428 | result.hasDefaultBool = true; |
| 4429 | result.defaultBool_ = value; |
| 4430 | return this; |
| 4431 | } |
| 4432 | public Builder ClearDefaultBool() { |
| 4433 | result.hasDefaultBool = false; |
| 4434 | result.defaultBool_ = true; |
| 4435 | return this; |
| 4436 | } |
| 4437 | |
| 4438 | public bool HasDefaultString { |
| 4439 | get { return result.HasDefaultString; } |
| 4440 | } |
| 4441 | public string DefaultString { |
| 4442 | get { return result.DefaultString; } |
| 4443 | set { SetDefaultString(value); } |
| 4444 | } |
| 4445 | public Builder SetDefaultString(string value) { |
Jon Skeet | 642a814 | 2009-01-27 12:25:21 +0000 | [diff] [blame] | 4446 | pb::ThrowHelper.ThrowIfNull(value, "value"); |
Jon Skeet | 6803686 | 2008-10-22 13:30:34 +0100 | [diff] [blame] | 4447 | result.hasDefaultString = true; |
| 4448 | result.defaultString_ = value; |
| 4449 | return this; |
| 4450 | } |
| 4451 | public Builder ClearDefaultString() { |
| 4452 | result.hasDefaultString = false; |
| 4453 | result.defaultString_ = "hello"; |
| 4454 | return this; |
| 4455 | } |
| 4456 | |
| 4457 | public bool HasDefaultBytes { |
| 4458 | get { return result.HasDefaultBytes; } |
| 4459 | } |
| 4460 | public pb::ByteString DefaultBytes { |
| 4461 | get { return result.DefaultBytes; } |
| 4462 | set { SetDefaultBytes(value); } |
| 4463 | } |
| 4464 | public Builder SetDefaultBytes(pb::ByteString value) { |
Jon Skeet | 642a814 | 2009-01-27 12:25:21 +0000 | [diff] [blame] | 4465 | pb::ThrowHelper.ThrowIfNull(value, "value"); |
Jon Skeet | 6803686 | 2008-10-22 13:30:34 +0100 | [diff] [blame] | 4466 | result.hasDefaultBytes = true; |
| 4467 | result.defaultBytes_ = value; |
| 4468 | return this; |
| 4469 | } |
| 4470 | public Builder ClearDefaultBytes() { |
| 4471 | result.hasDefaultBytes = false; |
| 4472 | result.defaultBytes_ = (pb::ByteString) global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Descriptor.Fields[62].DefaultValue; |
| 4473 | return this; |
| 4474 | } |
| 4475 | |
| 4476 | public bool HasDefaultNestedEnum { |
| 4477 | get { return result.HasDefaultNestedEnum; } |
| 4478 | } |
| 4479 | public global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedEnum DefaultNestedEnum { |
| 4480 | get { return result.DefaultNestedEnum; } |
| 4481 | set { SetDefaultNestedEnum(value); } |
| 4482 | } |
| 4483 | public Builder SetDefaultNestedEnum(global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedEnum value) { |
| 4484 | result.hasDefaultNestedEnum = true; |
| 4485 | result.defaultNestedEnum_ = value; |
| 4486 | return this; |
| 4487 | } |
| 4488 | public Builder ClearDefaultNestedEnum() { |
| 4489 | result.hasDefaultNestedEnum = false; |
| 4490 | result.defaultNestedEnum_ = global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedEnum.BAR; |
| 4491 | return this; |
| 4492 | } |
| 4493 | |
| 4494 | public bool HasDefaultForeignEnum { |
| 4495 | get { return result.HasDefaultForeignEnum; } |
| 4496 | } |
| 4497 | public global::Google.ProtocolBuffers.TestProtos.ForeignEnum DefaultForeignEnum { |
| 4498 | get { return result.DefaultForeignEnum; } |
| 4499 | set { SetDefaultForeignEnum(value); } |
| 4500 | } |
| 4501 | public Builder SetDefaultForeignEnum(global::Google.ProtocolBuffers.TestProtos.ForeignEnum value) { |
| 4502 | result.hasDefaultForeignEnum = true; |
| 4503 | result.defaultForeignEnum_ = value; |
| 4504 | return this; |
| 4505 | } |
| 4506 | public Builder ClearDefaultForeignEnum() { |
| 4507 | result.hasDefaultForeignEnum = false; |
| 4508 | result.defaultForeignEnum_ = global::Google.ProtocolBuffers.TestProtos.ForeignEnum.FOREIGN_BAR; |
| 4509 | return this; |
| 4510 | } |
| 4511 | |
| 4512 | public bool HasDefaultImportEnum { |
| 4513 | get { return result.HasDefaultImportEnum; } |
| 4514 | } |
| 4515 | public global::Google.ProtocolBuffers.TestProtos.ImportEnum DefaultImportEnum { |
| 4516 | get { return result.DefaultImportEnum; } |
| 4517 | set { SetDefaultImportEnum(value); } |
| 4518 | } |
| 4519 | public Builder SetDefaultImportEnum(global::Google.ProtocolBuffers.TestProtos.ImportEnum value) { |
| 4520 | result.hasDefaultImportEnum = true; |
| 4521 | result.defaultImportEnum_ = value; |
| 4522 | return this; |
| 4523 | } |
| 4524 | public Builder ClearDefaultImportEnum() { |
| 4525 | result.hasDefaultImportEnum = false; |
| 4526 | result.defaultImportEnum_ = global::Google.ProtocolBuffers.TestProtos.ImportEnum.IMPORT_BAR; |
| 4527 | return this; |
| 4528 | } |
| 4529 | |
| 4530 | public bool HasDefaultStringPiece { |
| 4531 | get { return result.HasDefaultStringPiece; } |
| 4532 | } |
| 4533 | public string DefaultStringPiece { |
| 4534 | get { return result.DefaultStringPiece; } |
| 4535 | set { SetDefaultStringPiece(value); } |
| 4536 | } |
| 4537 | public Builder SetDefaultStringPiece(string value) { |
Jon Skeet | 642a814 | 2009-01-27 12:25:21 +0000 | [diff] [blame] | 4538 | pb::ThrowHelper.ThrowIfNull(value, "value"); |
Jon Skeet | 6803686 | 2008-10-22 13:30:34 +0100 | [diff] [blame] | 4539 | result.hasDefaultStringPiece = true; |
| 4540 | result.defaultStringPiece_ = value; |
| 4541 | return this; |
| 4542 | } |
| 4543 | public Builder ClearDefaultStringPiece() { |
| 4544 | result.hasDefaultStringPiece = false; |
| 4545 | result.defaultStringPiece_ = "abc"; |
| 4546 | return this; |
| 4547 | } |
| 4548 | |
| 4549 | public bool HasDefaultCord { |
| 4550 | get { return result.HasDefaultCord; } |
| 4551 | } |
| 4552 | public string DefaultCord { |
| 4553 | get { return result.DefaultCord; } |
| 4554 | set { SetDefaultCord(value); } |
| 4555 | } |
| 4556 | public Builder SetDefaultCord(string value) { |
Jon Skeet | 642a814 | 2009-01-27 12:25:21 +0000 | [diff] [blame] | 4557 | pb::ThrowHelper.ThrowIfNull(value, "value"); |
Jon Skeet | 6803686 | 2008-10-22 13:30:34 +0100 | [diff] [blame] | 4558 | result.hasDefaultCord = true; |
| 4559 | result.defaultCord_ = value; |
| 4560 | return this; |
| 4561 | } |
| 4562 | public Builder ClearDefaultCord() { |
| 4563 | result.hasDefaultCord = false; |
| 4564 | result.defaultCord_ = "123"; |
| 4565 | return this; |
| 4566 | } |
| 4567 | } |
| 4568 | } |
| 4569 | |
| 4570 | public sealed partial class ForeignMessage : pb::GeneratedMessage<ForeignMessage, ForeignMessage.Builder> { |
| 4571 | private static readonly ForeignMessage defaultInstance = new Builder().BuildPartial(); |
| 4572 | public static ForeignMessage DefaultInstance { |
| 4573 | get { return defaultInstance; } |
| 4574 | } |
| 4575 | |
| 4576 | public override ForeignMessage DefaultInstanceForType { |
| 4577 | get { return defaultInstance; } |
| 4578 | } |
| 4579 | |
| 4580 | protected override ForeignMessage ThisMessage { |
| 4581 | get { return this; } |
| 4582 | } |
| 4583 | |
| 4584 | public static pbd::MessageDescriptor Descriptor { |
| 4585 | get { return global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.internal__static_protobuf_unittest_ForeignMessage__Descriptor; } |
| 4586 | } |
| 4587 | |
| 4588 | protected override pb::FieldAccess.FieldAccessorTable<ForeignMessage, ForeignMessage.Builder> InternalFieldAccessors { |
| 4589 | get { return global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.internal__static_protobuf_unittest_ForeignMessage__FieldAccessorTable; } |
| 4590 | } |
| 4591 | |
| 4592 | private bool hasC; |
| 4593 | private int c_ = 0; |
| 4594 | public bool HasC { |
| 4595 | get { return hasC; } |
| 4596 | } |
| 4597 | public int C { |
| 4598 | get { return c_; } |
| 4599 | } |
| 4600 | |
| 4601 | public override bool IsInitialized { |
| 4602 | get { |
| 4603 | return true; |
| 4604 | } |
| 4605 | } |
| 4606 | |
| 4607 | public override void WriteTo(pb::CodedOutputStream output) { |
| 4608 | if (HasC) { |
| 4609 | output.WriteInt32(1, C); |
| 4610 | } |
| 4611 | UnknownFields.WriteTo(output); |
| 4612 | } |
| 4613 | |
| 4614 | private int memoizedSerializedSize = -1; |
| 4615 | public override int SerializedSize { |
| 4616 | get { |
| 4617 | int size = memoizedSerializedSize; |
| 4618 | if (size != -1) return size; |
| 4619 | |
| 4620 | size = 0; |
| 4621 | if (HasC) { |
| 4622 | size += pb::CodedOutputStream.ComputeInt32Size(1, C); |
| 4623 | } |
| 4624 | size += UnknownFields.SerializedSize; |
| 4625 | memoizedSerializedSize = size; |
| 4626 | return size; |
| 4627 | } |
| 4628 | } |
| 4629 | |
| 4630 | public static ForeignMessage ParseFrom(pb::ByteString data) { |
| 4631 | return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed(); |
| 4632 | } |
| 4633 | public static ForeignMessage ParseFrom(pb::ByteString data, pb::ExtensionRegistry extensionRegistry) { |
| 4634 | return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed(); |
| 4635 | } |
| 4636 | public static ForeignMessage ParseFrom(byte[] data) { |
| 4637 | return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed(); |
| 4638 | } |
| 4639 | public static ForeignMessage ParseFrom(byte[] data, pb::ExtensionRegistry extensionRegistry) { |
| 4640 | return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed(); |
| 4641 | } |
| 4642 | public static ForeignMessage ParseFrom(global::System.IO.Stream input) { |
| 4643 | return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed(); |
| 4644 | } |
| 4645 | public static ForeignMessage ParseFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) { |
| 4646 | return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed(); |
| 4647 | } |
| 4648 | public static ForeignMessage ParseFrom(pb::CodedInputStream input) { |
| 4649 | return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed(); |
| 4650 | } |
| 4651 | public static ForeignMessage ParseFrom(pb::CodedInputStream input, pb::ExtensionRegistry extensionRegistry) { |
| 4652 | return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed(); |
| 4653 | } |
| 4654 | public static Builder CreateBuilder() { return new Builder(); } |
| 4655 | public override Builder CreateBuilderForType() { return new Builder(); } |
| 4656 | public static Builder CreateBuilder(ForeignMessage prototype) { |
| 4657 | return (Builder) new Builder().MergeFrom(prototype); |
| 4658 | } |
| 4659 | |
| 4660 | public sealed partial class Builder : pb::GeneratedBuilder<ForeignMessage, Builder> { |
| 4661 | protected override Builder ThisBuilder { |
| 4662 | get { return this; } |
| 4663 | } |
| 4664 | public Builder() {} |
| 4665 | |
| 4666 | ForeignMessage result = new ForeignMessage(); |
| 4667 | |
| 4668 | protected override ForeignMessage MessageBeingBuilt { |
| 4669 | get { return result; } |
| 4670 | } |
| 4671 | |
| 4672 | public override Builder Clear() { |
| 4673 | result = new ForeignMessage(); |
| 4674 | return this; |
| 4675 | } |
| 4676 | |
| 4677 | public override Builder Clone() { |
| 4678 | return new Builder().MergeFrom(result); |
| 4679 | } |
| 4680 | |
| 4681 | public override pbd::MessageDescriptor DescriptorForType { |
| 4682 | get { return ForeignMessage.Descriptor; } |
| 4683 | } |
| 4684 | |
| 4685 | public override ForeignMessage DefaultInstanceForType { |
| 4686 | get { return ForeignMessage.DefaultInstance; } |
| 4687 | } |
| 4688 | |
| 4689 | public override ForeignMessage BuildPartial() { |
| 4690 | ForeignMessage returnMe = result; |
| 4691 | result = null; |
| 4692 | return returnMe; |
| 4693 | } |
| 4694 | |
| 4695 | public override Builder MergeFrom(pb::IMessage other) { |
| 4696 | if (other is ForeignMessage) { |
| 4697 | return MergeFrom((ForeignMessage) other); |
| 4698 | } else { |
| 4699 | base.MergeFrom(other); |
| 4700 | return this; |
| 4701 | } |
| 4702 | } |
| 4703 | |
| 4704 | public override Builder MergeFrom(ForeignMessage other) { |
| 4705 | if (other == ForeignMessage.DefaultInstance) return this; |
| 4706 | if (other.HasC) { |
| 4707 | C = other.C; |
| 4708 | } |
| 4709 | this.MergeUnknownFields(other.UnknownFields); |
| 4710 | return this; |
| 4711 | } |
| 4712 | |
| 4713 | public override Builder MergeFrom(pb::CodedInputStream input) { |
| 4714 | return MergeFrom(input, pb::ExtensionRegistry.Empty); |
| 4715 | } |
| 4716 | |
| 4717 | public override Builder MergeFrom(pb::CodedInputStream input, pb::ExtensionRegistry extensionRegistry) { |
| 4718 | pb::UnknownFieldSet.Builder unknownFields = pb::UnknownFieldSet.CreateBuilder(this.UnknownFields); |
| 4719 | while (true) { |
| 4720 | uint tag = input.ReadTag(); |
| 4721 | switch (tag) { |
| 4722 | case 0: { |
| 4723 | this.UnknownFields = unknownFields.Build(); |
| 4724 | return this; |
| 4725 | } |
| 4726 | default: { |
| 4727 | if (!ParseUnknownField(input, unknownFields, extensionRegistry, tag)) { |
| 4728 | this.UnknownFields = unknownFields.Build(); |
| 4729 | return this; |
| 4730 | } |
| 4731 | break; |
| 4732 | } |
| 4733 | case 8: { |
| 4734 | C = input.ReadInt32(); |
| 4735 | break; |
| 4736 | } |
| 4737 | } |
| 4738 | } |
| 4739 | } |
| 4740 | |
| 4741 | |
| 4742 | public bool HasC { |
| 4743 | get { return result.HasC; } |
| 4744 | } |
| 4745 | public int C { |
| 4746 | get { return result.C; } |
| 4747 | set { SetC(value); } |
| 4748 | } |
| 4749 | public Builder SetC(int value) { |
| 4750 | result.hasC = true; |
| 4751 | result.c_ = value; |
| 4752 | return this; |
| 4753 | } |
| 4754 | public Builder ClearC() { |
| 4755 | result.hasC = false; |
| 4756 | result.c_ = 0; |
| 4757 | return this; |
| 4758 | } |
| 4759 | } |
| 4760 | } |
| 4761 | |
| 4762 | public sealed partial class TestAllExtensions : pb::ExtendableMessage<TestAllExtensions, TestAllExtensions.Builder> { |
| 4763 | private static readonly TestAllExtensions defaultInstance = new Builder().BuildPartial(); |
| 4764 | public static TestAllExtensions DefaultInstance { |
| 4765 | get { return defaultInstance; } |
| 4766 | } |
| 4767 | |
| 4768 | public override TestAllExtensions DefaultInstanceForType { |
| 4769 | get { return defaultInstance; } |
| 4770 | } |
| 4771 | |
| 4772 | protected override TestAllExtensions ThisMessage { |
| 4773 | get { return this; } |
| 4774 | } |
| 4775 | |
| 4776 | public static pbd::MessageDescriptor Descriptor { |
| 4777 | get { return global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.internal__static_protobuf_unittest_TestAllExtensions__Descriptor; } |
| 4778 | } |
| 4779 | |
| 4780 | protected override pb::FieldAccess.FieldAccessorTable<TestAllExtensions, TestAllExtensions.Builder> InternalFieldAccessors { |
| 4781 | get { return global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.internal__static_protobuf_unittest_TestAllExtensions__FieldAccessorTable; } |
| 4782 | } |
| 4783 | |
| 4784 | public override bool IsInitialized { |
| 4785 | get { |
| 4786 | if (!ExtensionsAreInitialized) return false; |
| 4787 | return true; |
| 4788 | } |
| 4789 | } |
| 4790 | |
| 4791 | public override void WriteTo(pb::CodedOutputStream output) { |
| 4792 | pb::ExtendableMessage<TestAllExtensions, TestAllExtensions.Builder>.ExtensionWriter extensionWriter = CreateExtensionWriter(this); |
| 4793 | extensionWriter.WriteUntil(536870912, output); |
| 4794 | UnknownFields.WriteTo(output); |
| 4795 | } |
| 4796 | |
| 4797 | private int memoizedSerializedSize = -1; |
| 4798 | public override int SerializedSize { |
| 4799 | get { |
| 4800 | int size = memoizedSerializedSize; |
| 4801 | if (size != -1) return size; |
| 4802 | |
| 4803 | size = 0; |
| 4804 | size += ExtensionsSerializedSize; |
| 4805 | size += UnknownFields.SerializedSize; |
| 4806 | memoizedSerializedSize = size; |
| 4807 | return size; |
| 4808 | } |
| 4809 | } |
| 4810 | |
| 4811 | public static TestAllExtensions ParseFrom(pb::ByteString data) { |
| 4812 | return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed(); |
| 4813 | } |
| 4814 | public static TestAllExtensions ParseFrom(pb::ByteString data, pb::ExtensionRegistry extensionRegistry) { |
| 4815 | return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed(); |
| 4816 | } |
| 4817 | public static TestAllExtensions ParseFrom(byte[] data) { |
| 4818 | return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed(); |
| 4819 | } |
| 4820 | public static TestAllExtensions ParseFrom(byte[] data, pb::ExtensionRegistry extensionRegistry) { |
| 4821 | return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed(); |
| 4822 | } |
| 4823 | public static TestAllExtensions ParseFrom(global::System.IO.Stream input) { |
| 4824 | return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed(); |
| 4825 | } |
| 4826 | public static TestAllExtensions ParseFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) { |
| 4827 | return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed(); |
| 4828 | } |
| 4829 | public static TestAllExtensions ParseFrom(pb::CodedInputStream input) { |
| 4830 | return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed(); |
| 4831 | } |
| 4832 | public static TestAllExtensions ParseFrom(pb::CodedInputStream input, pb::ExtensionRegistry extensionRegistry) { |
| 4833 | return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed(); |
| 4834 | } |
| 4835 | public static Builder CreateBuilder() { return new Builder(); } |
| 4836 | public override Builder CreateBuilderForType() { return new Builder(); } |
| 4837 | public static Builder CreateBuilder(TestAllExtensions prototype) { |
| 4838 | return (Builder) new Builder().MergeFrom(prototype); |
| 4839 | } |
| 4840 | |
| 4841 | public sealed partial class Builder : pb::ExtendableBuilder<TestAllExtensions, Builder> { |
| 4842 | protected override Builder ThisBuilder { |
| 4843 | get { return this; } |
| 4844 | } |
| 4845 | public Builder() {} |
| 4846 | |
| 4847 | TestAllExtensions result = new TestAllExtensions(); |
| 4848 | |
| 4849 | protected override TestAllExtensions MessageBeingBuilt { |
| 4850 | get { return result; } |
| 4851 | } |
| 4852 | |
| 4853 | public override Builder Clear() { |
| 4854 | result = new TestAllExtensions(); |
| 4855 | return this; |
| 4856 | } |
| 4857 | |
| 4858 | public override Builder Clone() { |
| 4859 | return new Builder().MergeFrom(result); |
| 4860 | } |
| 4861 | |
| 4862 | public override pbd::MessageDescriptor DescriptorForType { |
| 4863 | get { return TestAllExtensions.Descriptor; } |
| 4864 | } |
| 4865 | |
| 4866 | public override TestAllExtensions DefaultInstanceForType { |
| 4867 | get { return TestAllExtensions.DefaultInstance; } |
| 4868 | } |
| 4869 | |
| 4870 | public override TestAllExtensions BuildPartial() { |
| 4871 | TestAllExtensions returnMe = result; |
| 4872 | result = null; |
| 4873 | return returnMe; |
| 4874 | } |
| 4875 | |
| 4876 | public override Builder MergeFrom(pb::IMessage other) { |
| 4877 | if (other is TestAllExtensions) { |
| 4878 | return MergeFrom((TestAllExtensions) other); |
| 4879 | } else { |
| 4880 | base.MergeFrom(other); |
| 4881 | return this; |
| 4882 | } |
| 4883 | } |
| 4884 | |
| 4885 | public override Builder MergeFrom(TestAllExtensions other) { |
| 4886 | if (other == TestAllExtensions.DefaultInstance) return this; |
Jon Skeet | 49fcd4f | 2009-01-27 14:43:10 +0000 | [diff] [blame^] | 4887 | this.MergeExtensionFields(other); |
Jon Skeet | 6803686 | 2008-10-22 13:30:34 +0100 | [diff] [blame] | 4888 | this.MergeUnknownFields(other.UnknownFields); |
| 4889 | return this; |
| 4890 | } |
| 4891 | |
| 4892 | public override Builder MergeFrom(pb::CodedInputStream input) { |
| 4893 | return MergeFrom(input, pb::ExtensionRegistry.Empty); |
| 4894 | } |
| 4895 | |
| 4896 | public override Builder MergeFrom(pb::CodedInputStream input, pb::ExtensionRegistry extensionRegistry) { |
| 4897 | pb::UnknownFieldSet.Builder unknownFields = pb::UnknownFieldSet.CreateBuilder(this.UnknownFields); |
| 4898 | while (true) { |
| 4899 | uint tag = input.ReadTag(); |
| 4900 | switch (tag) { |
| 4901 | case 0: { |
| 4902 | this.UnknownFields = unknownFields.Build(); |
| 4903 | return this; |
| 4904 | } |
| 4905 | default: { |
| 4906 | if (!ParseUnknownField(input, unknownFields, extensionRegistry, tag)) { |
| 4907 | this.UnknownFields = unknownFields.Build(); |
| 4908 | return this; |
| 4909 | } |
| 4910 | break; |
| 4911 | } |
| 4912 | } |
| 4913 | } |
| 4914 | } |
| 4915 | |
| 4916 | } |
| 4917 | } |
| 4918 | |
| 4919 | public sealed partial class OptionalGroup_extension : pb::GeneratedMessage<OptionalGroup_extension, OptionalGroup_extension.Builder> { |
| 4920 | private static readonly OptionalGroup_extension defaultInstance = new Builder().BuildPartial(); |
| 4921 | public static OptionalGroup_extension DefaultInstance { |
| 4922 | get { return defaultInstance; } |
| 4923 | } |
| 4924 | |
| 4925 | public override OptionalGroup_extension DefaultInstanceForType { |
| 4926 | get { return defaultInstance; } |
| 4927 | } |
| 4928 | |
| 4929 | protected override OptionalGroup_extension ThisMessage { |
| 4930 | get { return this; } |
| 4931 | } |
| 4932 | |
| 4933 | public static pbd::MessageDescriptor Descriptor { |
| 4934 | get { return global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.internal__static_protobuf_unittest_OptionalGroup_extension__Descriptor; } |
| 4935 | } |
| 4936 | |
| 4937 | protected override pb::FieldAccess.FieldAccessorTable<OptionalGroup_extension, OptionalGroup_extension.Builder> InternalFieldAccessors { |
| 4938 | get { return global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.internal__static_protobuf_unittest_OptionalGroup_extension__FieldAccessorTable; } |
| 4939 | } |
| 4940 | |
| 4941 | private bool hasA; |
| 4942 | private int a_ = 0; |
| 4943 | public bool HasA { |
| 4944 | get { return hasA; } |
| 4945 | } |
| 4946 | public int A { |
| 4947 | get { return a_; } |
| 4948 | } |
| 4949 | |
| 4950 | public override bool IsInitialized { |
| 4951 | get { |
| 4952 | return true; |
| 4953 | } |
| 4954 | } |
| 4955 | |
| 4956 | public override void WriteTo(pb::CodedOutputStream output) { |
| 4957 | if (HasA) { |
| 4958 | output.WriteInt32(17, A); |
| 4959 | } |
| 4960 | UnknownFields.WriteTo(output); |
| 4961 | } |
| 4962 | |
| 4963 | private int memoizedSerializedSize = -1; |
| 4964 | public override int SerializedSize { |
| 4965 | get { |
| 4966 | int size = memoizedSerializedSize; |
| 4967 | if (size != -1) return size; |
| 4968 | |
| 4969 | size = 0; |
| 4970 | if (HasA) { |
| 4971 | size += pb::CodedOutputStream.ComputeInt32Size(17, A); |
| 4972 | } |
| 4973 | size += UnknownFields.SerializedSize; |
| 4974 | memoizedSerializedSize = size; |
| 4975 | return size; |
| 4976 | } |
| 4977 | } |
| 4978 | |
| 4979 | public static OptionalGroup_extension ParseFrom(pb::ByteString data) { |
| 4980 | return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed(); |
| 4981 | } |
| 4982 | public static OptionalGroup_extension ParseFrom(pb::ByteString data, pb::ExtensionRegistry extensionRegistry) { |
| 4983 | return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed(); |
| 4984 | } |
| 4985 | public static OptionalGroup_extension ParseFrom(byte[] data) { |
| 4986 | return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed(); |
| 4987 | } |
| 4988 | public static OptionalGroup_extension ParseFrom(byte[] data, pb::ExtensionRegistry extensionRegistry) { |
| 4989 | return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed(); |
| 4990 | } |
| 4991 | public static OptionalGroup_extension ParseFrom(global::System.IO.Stream input) { |
| 4992 | return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed(); |
| 4993 | } |
| 4994 | public static OptionalGroup_extension ParseFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) { |
| 4995 | return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed(); |
| 4996 | } |
| 4997 | public static OptionalGroup_extension ParseFrom(pb::CodedInputStream input) { |
| 4998 | return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed(); |
| 4999 | } |
| 5000 | public static OptionalGroup_extension ParseFrom(pb::CodedInputStream input, pb::ExtensionRegistry extensionRegistry) { |
| 5001 | return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed(); |
| 5002 | } |
| 5003 | public static Builder CreateBuilder() { return new Builder(); } |
| 5004 | public override Builder CreateBuilderForType() { return new Builder(); } |
| 5005 | public static Builder CreateBuilder(OptionalGroup_extension prototype) { |
| 5006 | return (Builder) new Builder().MergeFrom(prototype); |
| 5007 | } |
| 5008 | |
| 5009 | public sealed partial class Builder : pb::GeneratedBuilder<OptionalGroup_extension, Builder> { |
| 5010 | protected override Builder ThisBuilder { |
| 5011 | get { return this; } |
| 5012 | } |
| 5013 | public Builder() {} |
| 5014 | |
| 5015 | OptionalGroup_extension result = new OptionalGroup_extension(); |
| 5016 | |
| 5017 | protected override OptionalGroup_extension MessageBeingBuilt { |
| 5018 | get { return result; } |
| 5019 | } |
| 5020 | |
| 5021 | public override Builder Clear() { |
| 5022 | result = new OptionalGroup_extension(); |
| 5023 | return this; |
| 5024 | } |
| 5025 | |
| 5026 | public override Builder Clone() { |
| 5027 | return new Builder().MergeFrom(result); |
| 5028 | } |
| 5029 | |
| 5030 | public override pbd::MessageDescriptor DescriptorForType { |
| 5031 | get { return OptionalGroup_extension.Descriptor; } |
| 5032 | } |
| 5033 | |
| 5034 | public override OptionalGroup_extension DefaultInstanceForType { |
| 5035 | get { return OptionalGroup_extension.DefaultInstance; } |
| 5036 | } |
| 5037 | |
| 5038 | public override OptionalGroup_extension BuildPartial() { |
| 5039 | OptionalGroup_extension returnMe = result; |
| 5040 | result = null; |
| 5041 | return returnMe; |
| 5042 | } |
| 5043 | |
| 5044 | public override Builder MergeFrom(pb::IMessage other) { |
| 5045 | if (other is OptionalGroup_extension) { |
| 5046 | return MergeFrom((OptionalGroup_extension) other); |
| 5047 | } else { |
| 5048 | base.MergeFrom(other); |
| 5049 | return this; |
| 5050 | } |
| 5051 | } |
| 5052 | |
| 5053 | public override Builder MergeFrom(OptionalGroup_extension other) { |
| 5054 | if (other == OptionalGroup_extension.DefaultInstance) return this; |
| 5055 | if (other.HasA) { |
| 5056 | A = other.A; |
| 5057 | } |
| 5058 | this.MergeUnknownFields(other.UnknownFields); |
| 5059 | return this; |
| 5060 | } |
| 5061 | |
| 5062 | public override Builder MergeFrom(pb::CodedInputStream input) { |
| 5063 | return MergeFrom(input, pb::ExtensionRegistry.Empty); |
| 5064 | } |
| 5065 | |
| 5066 | public override Builder MergeFrom(pb::CodedInputStream input, pb::ExtensionRegistry extensionRegistry) { |
| 5067 | pb::UnknownFieldSet.Builder unknownFields = pb::UnknownFieldSet.CreateBuilder(this.UnknownFields); |
| 5068 | while (true) { |
| 5069 | uint tag = input.ReadTag(); |
| 5070 | switch (tag) { |
| 5071 | case 0: { |
| 5072 | this.UnknownFields = unknownFields.Build(); |
| 5073 | return this; |
| 5074 | } |
| 5075 | default: { |
| 5076 | if (!ParseUnknownField(input, unknownFields, extensionRegistry, tag)) { |
| 5077 | this.UnknownFields = unknownFields.Build(); |
| 5078 | return this; |
| 5079 | } |
| 5080 | break; |
| 5081 | } |
| 5082 | case 136: { |
| 5083 | A = input.ReadInt32(); |
| 5084 | break; |
| 5085 | } |
| 5086 | } |
| 5087 | } |
| 5088 | } |
| 5089 | |
| 5090 | |
| 5091 | public bool HasA { |
| 5092 | get { return result.HasA; } |
| 5093 | } |
| 5094 | public int A { |
| 5095 | get { return result.A; } |
| 5096 | set { SetA(value); } |
| 5097 | } |
| 5098 | public Builder SetA(int value) { |
| 5099 | result.hasA = true; |
| 5100 | result.a_ = value; |
| 5101 | return this; |
| 5102 | } |
| 5103 | public Builder ClearA() { |
| 5104 | result.hasA = false; |
| 5105 | result.a_ = 0; |
| 5106 | return this; |
| 5107 | } |
| 5108 | } |
| 5109 | } |
| 5110 | |
| 5111 | public sealed partial class RepeatedGroup_extension : pb::GeneratedMessage<RepeatedGroup_extension, RepeatedGroup_extension.Builder> { |
| 5112 | private static readonly RepeatedGroup_extension defaultInstance = new Builder().BuildPartial(); |
| 5113 | public static RepeatedGroup_extension DefaultInstance { |
| 5114 | get { return defaultInstance; } |
| 5115 | } |
| 5116 | |
| 5117 | public override RepeatedGroup_extension DefaultInstanceForType { |
| 5118 | get { return defaultInstance; } |
| 5119 | } |
| 5120 | |
| 5121 | protected override RepeatedGroup_extension ThisMessage { |
| 5122 | get { return this; } |
| 5123 | } |
| 5124 | |
| 5125 | public static pbd::MessageDescriptor Descriptor { |
| 5126 | get { return global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.internal__static_protobuf_unittest_RepeatedGroup_extension__Descriptor; } |
| 5127 | } |
| 5128 | |
| 5129 | protected override pb::FieldAccess.FieldAccessorTable<RepeatedGroup_extension, RepeatedGroup_extension.Builder> InternalFieldAccessors { |
| 5130 | get { return global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.internal__static_protobuf_unittest_RepeatedGroup_extension__FieldAccessorTable; } |
| 5131 | } |
| 5132 | |
| 5133 | private bool hasA; |
| 5134 | private int a_ = 0; |
| 5135 | public bool HasA { |
| 5136 | get { return hasA; } |
| 5137 | } |
| 5138 | public int A { |
| 5139 | get { return a_; } |
| 5140 | } |
| 5141 | |
| 5142 | public override bool IsInitialized { |
| 5143 | get { |
| 5144 | return true; |
| 5145 | } |
| 5146 | } |
| 5147 | |
| 5148 | public override void WriteTo(pb::CodedOutputStream output) { |
| 5149 | if (HasA) { |
| 5150 | output.WriteInt32(47, A); |
| 5151 | } |
| 5152 | UnknownFields.WriteTo(output); |
| 5153 | } |
| 5154 | |
| 5155 | private int memoizedSerializedSize = -1; |
| 5156 | public override int SerializedSize { |
| 5157 | get { |
| 5158 | int size = memoizedSerializedSize; |
| 5159 | if (size != -1) return size; |
| 5160 | |
| 5161 | size = 0; |
| 5162 | if (HasA) { |
| 5163 | size += pb::CodedOutputStream.ComputeInt32Size(47, A); |
| 5164 | } |
| 5165 | size += UnknownFields.SerializedSize; |
| 5166 | memoizedSerializedSize = size; |
| 5167 | return size; |
| 5168 | } |
| 5169 | } |
| 5170 | |
| 5171 | public static RepeatedGroup_extension ParseFrom(pb::ByteString data) { |
| 5172 | return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed(); |
| 5173 | } |
| 5174 | public static RepeatedGroup_extension ParseFrom(pb::ByteString data, pb::ExtensionRegistry extensionRegistry) { |
| 5175 | return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed(); |
| 5176 | } |
| 5177 | public static RepeatedGroup_extension ParseFrom(byte[] data) { |
| 5178 | return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed(); |
| 5179 | } |
| 5180 | public static RepeatedGroup_extension ParseFrom(byte[] data, pb::ExtensionRegistry extensionRegistry) { |
| 5181 | return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed(); |
| 5182 | } |
| 5183 | public static RepeatedGroup_extension ParseFrom(global::System.IO.Stream input) { |
| 5184 | return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed(); |
| 5185 | } |
| 5186 | public static RepeatedGroup_extension ParseFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) { |
| 5187 | return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed(); |
| 5188 | } |
| 5189 | public static RepeatedGroup_extension ParseFrom(pb::CodedInputStream input) { |
| 5190 | return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed(); |
| 5191 | } |
| 5192 | public static RepeatedGroup_extension ParseFrom(pb::CodedInputStream input, pb::ExtensionRegistry extensionRegistry) { |
| 5193 | return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed(); |
| 5194 | } |
| 5195 | public static Builder CreateBuilder() { return new Builder(); } |
| 5196 | public override Builder CreateBuilderForType() { return new Builder(); } |
| 5197 | public static Builder CreateBuilder(RepeatedGroup_extension prototype) { |
| 5198 | return (Builder) new Builder().MergeFrom(prototype); |
| 5199 | } |
| 5200 | |
| 5201 | public sealed partial class Builder : pb::GeneratedBuilder<RepeatedGroup_extension, Builder> { |
| 5202 | protected override Builder ThisBuilder { |
| 5203 | get { return this; } |
| 5204 | } |
| 5205 | public Builder() {} |
| 5206 | |
| 5207 | RepeatedGroup_extension result = new RepeatedGroup_extension(); |
| 5208 | |
| 5209 | protected override RepeatedGroup_extension MessageBeingBuilt { |
| 5210 | get { return result; } |
| 5211 | } |
| 5212 | |
| 5213 | public override Builder Clear() { |
| 5214 | result = new RepeatedGroup_extension(); |
| 5215 | return this; |
| 5216 | } |
| 5217 | |
| 5218 | public override Builder Clone() { |
| 5219 | return new Builder().MergeFrom(result); |
| 5220 | } |
| 5221 | |
| 5222 | public override pbd::MessageDescriptor DescriptorForType { |
| 5223 | get { return RepeatedGroup_extension.Descriptor; } |
| 5224 | } |
| 5225 | |
| 5226 | public override RepeatedGroup_extension DefaultInstanceForType { |
| 5227 | get { return RepeatedGroup_extension.DefaultInstance; } |
| 5228 | } |
| 5229 | |
| 5230 | public override RepeatedGroup_extension BuildPartial() { |
| 5231 | RepeatedGroup_extension returnMe = result; |
| 5232 | result = null; |
| 5233 | return returnMe; |
| 5234 | } |
| 5235 | |
| 5236 | public override Builder MergeFrom(pb::IMessage other) { |
| 5237 | if (other is RepeatedGroup_extension) { |
| 5238 | return MergeFrom((RepeatedGroup_extension) other); |
| 5239 | } else { |
| 5240 | base.MergeFrom(other); |
| 5241 | return this; |
| 5242 | } |
| 5243 | } |
| 5244 | |
| 5245 | public override Builder MergeFrom(RepeatedGroup_extension other) { |
| 5246 | if (other == RepeatedGroup_extension.DefaultInstance) return this; |
| 5247 | if (other.HasA) { |
| 5248 | A = other.A; |
| 5249 | } |
| 5250 | this.MergeUnknownFields(other.UnknownFields); |
| 5251 | return this; |
| 5252 | } |
| 5253 | |
| 5254 | public override Builder MergeFrom(pb::CodedInputStream input) { |
| 5255 | return MergeFrom(input, pb::ExtensionRegistry.Empty); |
| 5256 | } |
| 5257 | |
| 5258 | public override Builder MergeFrom(pb::CodedInputStream input, pb::ExtensionRegistry extensionRegistry) { |
| 5259 | pb::UnknownFieldSet.Builder unknownFields = pb::UnknownFieldSet.CreateBuilder(this.UnknownFields); |
| 5260 | while (true) { |
| 5261 | uint tag = input.ReadTag(); |
| 5262 | switch (tag) { |
| 5263 | case 0: { |
| 5264 | this.UnknownFields = unknownFields.Build(); |
| 5265 | return this; |
| 5266 | } |
| 5267 | default: { |
| 5268 | if (!ParseUnknownField(input, unknownFields, extensionRegistry, tag)) { |
| 5269 | this.UnknownFields = unknownFields.Build(); |
| 5270 | return this; |
| 5271 | } |
| 5272 | break; |
| 5273 | } |
| 5274 | case 376: { |
| 5275 | A = input.ReadInt32(); |
| 5276 | break; |
| 5277 | } |
| 5278 | } |
| 5279 | } |
| 5280 | } |
| 5281 | |
| 5282 | |
| 5283 | public bool HasA { |
| 5284 | get { return result.HasA; } |
| 5285 | } |
| 5286 | public int A { |
| 5287 | get { return result.A; } |
| 5288 | set { SetA(value); } |
| 5289 | } |
| 5290 | public Builder SetA(int value) { |
| 5291 | result.hasA = true; |
| 5292 | result.a_ = value; |
| 5293 | return this; |
| 5294 | } |
| 5295 | public Builder ClearA() { |
| 5296 | result.hasA = false; |
| 5297 | result.a_ = 0; |
| 5298 | return this; |
| 5299 | } |
| 5300 | } |
| 5301 | } |
| 5302 | |
| 5303 | public sealed partial class TestRequired : pb::GeneratedMessage<TestRequired, TestRequired.Builder> { |
| 5304 | private static readonly TestRequired defaultInstance = new Builder().BuildPartial(); |
| 5305 | public static TestRequired DefaultInstance { |
| 5306 | get { return defaultInstance; } |
| 5307 | } |
| 5308 | |
| 5309 | public override TestRequired DefaultInstanceForType { |
| 5310 | get { return defaultInstance; } |
| 5311 | } |
| 5312 | |
| 5313 | protected override TestRequired ThisMessage { |
| 5314 | get { return this; } |
| 5315 | } |
| 5316 | |
| 5317 | public static pbd::MessageDescriptor Descriptor { |
| 5318 | get { return global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.internal__static_protobuf_unittest_TestRequired__Descriptor; } |
| 5319 | } |
| 5320 | |
| 5321 | protected override pb::FieldAccess.FieldAccessorTable<TestRequired, TestRequired.Builder> InternalFieldAccessors { |
| 5322 | get { return global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.internal__static_protobuf_unittest_TestRequired__FieldAccessorTable; } |
| 5323 | } |
| 5324 | |
| 5325 | public static readonly pb::GeneratedExtensionBase<global::Google.ProtocolBuffers.TestProtos.TestRequired> Single = |
| 5326 | pb::GeneratedSingleExtension<global::Google.ProtocolBuffers.TestProtos.TestRequired>.CreateInstance(Descriptor.Extensions[0]); |
| 5327 | public static readonly |
| 5328 | pb::GeneratedExtensionBase<scg::IList<global::Google.ProtocolBuffers.TestProtos.TestRequired>> Multi = |
| 5329 | pb::GeneratedRepeatExtension<global::Google.ProtocolBuffers.TestProtos.TestRequired>.CreateInstance(Descriptor.Extensions[1]); |
| 5330 | private bool hasA; |
| 5331 | private int a_ = 0; |
| 5332 | public bool HasA { |
| 5333 | get { return hasA; } |
| 5334 | } |
| 5335 | public int A { |
| 5336 | get { return a_; } |
| 5337 | } |
| 5338 | |
| 5339 | private bool hasDummy2; |
| 5340 | private int dummy2_ = 0; |
| 5341 | public bool HasDummy2 { |
| 5342 | get { return hasDummy2; } |
| 5343 | } |
| 5344 | public int Dummy2 { |
| 5345 | get { return dummy2_; } |
| 5346 | } |
| 5347 | |
| 5348 | private bool hasB; |
| 5349 | private int b_ = 0; |
| 5350 | public bool HasB { |
| 5351 | get { return hasB; } |
| 5352 | } |
| 5353 | public int B { |
| 5354 | get { return b_; } |
| 5355 | } |
| 5356 | |
| 5357 | private bool hasDummy4; |
| 5358 | private int dummy4_ = 0; |
| 5359 | public bool HasDummy4 { |
| 5360 | get { return hasDummy4; } |
| 5361 | } |
| 5362 | public int Dummy4 { |
| 5363 | get { return dummy4_; } |
| 5364 | } |
| 5365 | |
| 5366 | private bool hasDummy5; |
| 5367 | private int dummy5_ = 0; |
| 5368 | public bool HasDummy5 { |
| 5369 | get { return hasDummy5; } |
| 5370 | } |
| 5371 | public int Dummy5 { |
| 5372 | get { return dummy5_; } |
| 5373 | } |
| 5374 | |
| 5375 | private bool hasDummy6; |
| 5376 | private int dummy6_ = 0; |
| 5377 | public bool HasDummy6 { |
| 5378 | get { return hasDummy6; } |
| 5379 | } |
| 5380 | public int Dummy6 { |
| 5381 | get { return dummy6_; } |
| 5382 | } |
| 5383 | |
| 5384 | private bool hasDummy7; |
| 5385 | private int dummy7_ = 0; |
| 5386 | public bool HasDummy7 { |
| 5387 | get { return hasDummy7; } |
| 5388 | } |
| 5389 | public int Dummy7 { |
| 5390 | get { return dummy7_; } |
| 5391 | } |
| 5392 | |
| 5393 | private bool hasDummy8; |
| 5394 | private int dummy8_ = 0; |
| 5395 | public bool HasDummy8 { |
| 5396 | get { return hasDummy8; } |
| 5397 | } |
| 5398 | public int Dummy8 { |
| 5399 | get { return dummy8_; } |
| 5400 | } |
| 5401 | |
| 5402 | private bool hasDummy9; |
| 5403 | private int dummy9_ = 0; |
| 5404 | public bool HasDummy9 { |
| 5405 | get { return hasDummy9; } |
| 5406 | } |
| 5407 | public int Dummy9 { |
| 5408 | get { return dummy9_; } |
| 5409 | } |
| 5410 | |
| 5411 | private bool hasDummy10; |
| 5412 | private int dummy10_ = 0; |
| 5413 | public bool HasDummy10 { |
| 5414 | get { return hasDummy10; } |
| 5415 | } |
| 5416 | public int Dummy10 { |
| 5417 | get { return dummy10_; } |
| 5418 | } |
| 5419 | |
| 5420 | private bool hasDummy11; |
| 5421 | private int dummy11_ = 0; |
| 5422 | public bool HasDummy11 { |
| 5423 | get { return hasDummy11; } |
| 5424 | } |
| 5425 | public int Dummy11 { |
| 5426 | get { return dummy11_; } |
| 5427 | } |
| 5428 | |
| 5429 | private bool hasDummy12; |
| 5430 | private int dummy12_ = 0; |
| 5431 | public bool HasDummy12 { |
| 5432 | get { return hasDummy12; } |
| 5433 | } |
| 5434 | public int Dummy12 { |
| 5435 | get { return dummy12_; } |
| 5436 | } |
| 5437 | |
| 5438 | private bool hasDummy13; |
| 5439 | private int dummy13_ = 0; |
| 5440 | public bool HasDummy13 { |
| 5441 | get { return hasDummy13; } |
| 5442 | } |
| 5443 | public int Dummy13 { |
| 5444 | get { return dummy13_; } |
| 5445 | } |
| 5446 | |
| 5447 | private bool hasDummy14; |
| 5448 | private int dummy14_ = 0; |
| 5449 | public bool HasDummy14 { |
| 5450 | get { return hasDummy14; } |
| 5451 | } |
| 5452 | public int Dummy14 { |
| 5453 | get { return dummy14_; } |
| 5454 | } |
| 5455 | |
| 5456 | private bool hasDummy15; |
| 5457 | private int dummy15_ = 0; |
| 5458 | public bool HasDummy15 { |
| 5459 | get { return hasDummy15; } |
| 5460 | } |
| 5461 | public int Dummy15 { |
| 5462 | get { return dummy15_; } |
| 5463 | } |
| 5464 | |
| 5465 | private bool hasDummy16; |
| 5466 | private int dummy16_ = 0; |
| 5467 | public bool HasDummy16 { |
| 5468 | get { return hasDummy16; } |
| 5469 | } |
| 5470 | public int Dummy16 { |
| 5471 | get { return dummy16_; } |
| 5472 | } |
| 5473 | |
| 5474 | private bool hasDummy17; |
| 5475 | private int dummy17_ = 0; |
| 5476 | public bool HasDummy17 { |
| 5477 | get { return hasDummy17; } |
| 5478 | } |
| 5479 | public int Dummy17 { |
| 5480 | get { return dummy17_; } |
| 5481 | } |
| 5482 | |
| 5483 | private bool hasDummy18; |
| 5484 | private int dummy18_ = 0; |
| 5485 | public bool HasDummy18 { |
| 5486 | get { return hasDummy18; } |
| 5487 | } |
| 5488 | public int Dummy18 { |
| 5489 | get { return dummy18_; } |
| 5490 | } |
| 5491 | |
| 5492 | private bool hasDummy19; |
| 5493 | private int dummy19_ = 0; |
| 5494 | public bool HasDummy19 { |
| 5495 | get { return hasDummy19; } |
| 5496 | } |
| 5497 | public int Dummy19 { |
| 5498 | get { return dummy19_; } |
| 5499 | } |
| 5500 | |
| 5501 | private bool hasDummy20; |
| 5502 | private int dummy20_ = 0; |
| 5503 | public bool HasDummy20 { |
| 5504 | get { return hasDummy20; } |
| 5505 | } |
| 5506 | public int Dummy20 { |
| 5507 | get { return dummy20_; } |
| 5508 | } |
| 5509 | |
| 5510 | private bool hasDummy21; |
| 5511 | private int dummy21_ = 0; |
| 5512 | public bool HasDummy21 { |
| 5513 | get { return hasDummy21; } |
| 5514 | } |
| 5515 | public int Dummy21 { |
| 5516 | get { return dummy21_; } |
| 5517 | } |
| 5518 | |
| 5519 | private bool hasDummy22; |
| 5520 | private int dummy22_ = 0; |
| 5521 | public bool HasDummy22 { |
| 5522 | get { return hasDummy22; } |
| 5523 | } |
| 5524 | public int Dummy22 { |
| 5525 | get { return dummy22_; } |
| 5526 | } |
| 5527 | |
| 5528 | private bool hasDummy23; |
| 5529 | private int dummy23_ = 0; |
| 5530 | public bool HasDummy23 { |
| 5531 | get { return hasDummy23; } |
| 5532 | } |
| 5533 | public int Dummy23 { |
| 5534 | get { return dummy23_; } |
| 5535 | } |
| 5536 | |
| 5537 | private bool hasDummy24; |
| 5538 | private int dummy24_ = 0; |
| 5539 | public bool HasDummy24 { |
| 5540 | get { return hasDummy24; } |
| 5541 | } |
| 5542 | public int Dummy24 { |
| 5543 | get { return dummy24_; } |
| 5544 | } |
| 5545 | |
| 5546 | private bool hasDummy25; |
| 5547 | private int dummy25_ = 0; |
| 5548 | public bool HasDummy25 { |
| 5549 | get { return hasDummy25; } |
| 5550 | } |
| 5551 | public int Dummy25 { |
| 5552 | get { return dummy25_; } |
| 5553 | } |
| 5554 | |
| 5555 | private bool hasDummy26; |
| 5556 | private int dummy26_ = 0; |
| 5557 | public bool HasDummy26 { |
| 5558 | get { return hasDummy26; } |
| 5559 | } |
| 5560 | public int Dummy26 { |
| 5561 | get { return dummy26_; } |
| 5562 | } |
| 5563 | |
| 5564 | private bool hasDummy27; |
| 5565 | private int dummy27_ = 0; |
| 5566 | public bool HasDummy27 { |
| 5567 | get { return hasDummy27; } |
| 5568 | } |
| 5569 | public int Dummy27 { |
| 5570 | get { return dummy27_; } |
| 5571 | } |
| 5572 | |
| 5573 | private bool hasDummy28; |
| 5574 | private int dummy28_ = 0; |
| 5575 | public bool HasDummy28 { |
| 5576 | get { return hasDummy28; } |
| 5577 | } |
| 5578 | public int Dummy28 { |
| 5579 | get { return dummy28_; } |
| 5580 | } |
| 5581 | |
| 5582 | private bool hasDummy29; |
| 5583 | private int dummy29_ = 0; |
| 5584 | public bool HasDummy29 { |
| 5585 | get { return hasDummy29; } |
| 5586 | } |
| 5587 | public int Dummy29 { |
| 5588 | get { return dummy29_; } |
| 5589 | } |
| 5590 | |
| 5591 | private bool hasDummy30; |
| 5592 | private int dummy30_ = 0; |
| 5593 | public bool HasDummy30 { |
| 5594 | get { return hasDummy30; } |
| 5595 | } |
| 5596 | public int Dummy30 { |
| 5597 | get { return dummy30_; } |
| 5598 | } |
| 5599 | |
| 5600 | private bool hasDummy31; |
| 5601 | private int dummy31_ = 0; |
| 5602 | public bool HasDummy31 { |
| 5603 | get { return hasDummy31; } |
| 5604 | } |
| 5605 | public int Dummy31 { |
| 5606 | get { return dummy31_; } |
| 5607 | } |
| 5608 | |
| 5609 | private bool hasDummy32; |
| 5610 | private int dummy32_ = 0; |
| 5611 | public bool HasDummy32 { |
| 5612 | get { return hasDummy32; } |
| 5613 | } |
| 5614 | public int Dummy32 { |
| 5615 | get { return dummy32_; } |
| 5616 | } |
| 5617 | |
| 5618 | private bool hasC; |
| 5619 | private int c_ = 0; |
| 5620 | public bool HasC { |
| 5621 | get { return hasC; } |
| 5622 | } |
| 5623 | public int C { |
| 5624 | get { return c_; } |
| 5625 | } |
| 5626 | |
| 5627 | public override bool IsInitialized { |
| 5628 | get { |
| 5629 | if (!hasA) return false; |
| 5630 | if (!hasB) return false; |
| 5631 | if (!hasC) return false; |
| 5632 | return true; |
| 5633 | } |
| 5634 | } |
| 5635 | |
| 5636 | public override void WriteTo(pb::CodedOutputStream output) { |
| 5637 | if (HasA) { |
| 5638 | output.WriteInt32(1, A); |
| 5639 | } |
| 5640 | if (HasDummy2) { |
| 5641 | output.WriteInt32(2, Dummy2); |
| 5642 | } |
| 5643 | if (HasB) { |
| 5644 | output.WriteInt32(3, B); |
| 5645 | } |
| 5646 | if (HasDummy4) { |
| 5647 | output.WriteInt32(4, Dummy4); |
| 5648 | } |
| 5649 | if (HasDummy5) { |
| 5650 | output.WriteInt32(5, Dummy5); |
| 5651 | } |
| 5652 | if (HasDummy6) { |
| 5653 | output.WriteInt32(6, Dummy6); |
| 5654 | } |
| 5655 | if (HasDummy7) { |
| 5656 | output.WriteInt32(7, Dummy7); |
| 5657 | } |
| 5658 | if (HasDummy8) { |
| 5659 | output.WriteInt32(8, Dummy8); |
| 5660 | } |
| 5661 | if (HasDummy9) { |
| 5662 | output.WriteInt32(9, Dummy9); |
| 5663 | } |
| 5664 | if (HasDummy10) { |
| 5665 | output.WriteInt32(10, Dummy10); |
| 5666 | } |
| 5667 | if (HasDummy11) { |
| 5668 | output.WriteInt32(11, Dummy11); |
| 5669 | } |
| 5670 | if (HasDummy12) { |
| 5671 | output.WriteInt32(12, Dummy12); |
| 5672 | } |
| 5673 | if (HasDummy13) { |
| 5674 | output.WriteInt32(13, Dummy13); |
| 5675 | } |
| 5676 | if (HasDummy14) { |
| 5677 | output.WriteInt32(14, Dummy14); |
| 5678 | } |
| 5679 | if (HasDummy15) { |
| 5680 | output.WriteInt32(15, Dummy15); |
| 5681 | } |
| 5682 | if (HasDummy16) { |
| 5683 | output.WriteInt32(16, Dummy16); |
| 5684 | } |
| 5685 | if (HasDummy17) { |
| 5686 | output.WriteInt32(17, Dummy17); |
| 5687 | } |
| 5688 | if (HasDummy18) { |
| 5689 | output.WriteInt32(18, Dummy18); |
| 5690 | } |
| 5691 | if (HasDummy19) { |
| 5692 | output.WriteInt32(19, Dummy19); |
| 5693 | } |
| 5694 | if (HasDummy20) { |
| 5695 | output.WriteInt32(20, Dummy20); |
| 5696 | } |
| 5697 | if (HasDummy21) { |
| 5698 | output.WriteInt32(21, Dummy21); |
| 5699 | } |
| 5700 | if (HasDummy22) { |
| 5701 | output.WriteInt32(22, Dummy22); |
| 5702 | } |
| 5703 | if (HasDummy23) { |
| 5704 | output.WriteInt32(23, Dummy23); |
| 5705 | } |
| 5706 | if (HasDummy24) { |
| 5707 | output.WriteInt32(24, Dummy24); |
| 5708 | } |
| 5709 | if (HasDummy25) { |
| 5710 | output.WriteInt32(25, Dummy25); |
| 5711 | } |
| 5712 | if (HasDummy26) { |
| 5713 | output.WriteInt32(26, Dummy26); |
| 5714 | } |
| 5715 | if (HasDummy27) { |
| 5716 | output.WriteInt32(27, Dummy27); |
| 5717 | } |
| 5718 | if (HasDummy28) { |
| 5719 | output.WriteInt32(28, Dummy28); |
| 5720 | } |
| 5721 | if (HasDummy29) { |
| 5722 | output.WriteInt32(29, Dummy29); |
| 5723 | } |
| 5724 | if (HasDummy30) { |
| 5725 | output.WriteInt32(30, Dummy30); |
| 5726 | } |
| 5727 | if (HasDummy31) { |
| 5728 | output.WriteInt32(31, Dummy31); |
| 5729 | } |
| 5730 | if (HasDummy32) { |
| 5731 | output.WriteInt32(32, Dummy32); |
| 5732 | } |
| 5733 | if (HasC) { |
| 5734 | output.WriteInt32(33, C); |
| 5735 | } |
| 5736 | UnknownFields.WriteTo(output); |
| 5737 | } |
| 5738 | |
| 5739 | private int memoizedSerializedSize = -1; |
| 5740 | public override int SerializedSize { |
| 5741 | get { |
| 5742 | int size = memoizedSerializedSize; |
| 5743 | if (size != -1) return size; |
| 5744 | |
| 5745 | size = 0; |
| 5746 | if (HasA) { |
| 5747 | size += pb::CodedOutputStream.ComputeInt32Size(1, A); |
| 5748 | } |
| 5749 | if (HasDummy2) { |
| 5750 | size += pb::CodedOutputStream.ComputeInt32Size(2, Dummy2); |
| 5751 | } |
| 5752 | if (HasB) { |
| 5753 | size += pb::CodedOutputStream.ComputeInt32Size(3, B); |
| 5754 | } |
| 5755 | if (HasDummy4) { |
| 5756 | size += pb::CodedOutputStream.ComputeInt32Size(4, Dummy4); |
| 5757 | } |
| 5758 | if (HasDummy5) { |
| 5759 | size += pb::CodedOutputStream.ComputeInt32Size(5, Dummy5); |
| 5760 | } |
| 5761 | if (HasDummy6) { |
| 5762 | size += pb::CodedOutputStream.ComputeInt32Size(6, Dummy6); |
| 5763 | } |
| 5764 | if (HasDummy7) { |
| 5765 | size += pb::CodedOutputStream.ComputeInt32Size(7, Dummy7); |
| 5766 | } |
| 5767 | if (HasDummy8) { |
| 5768 | size += pb::CodedOutputStream.ComputeInt32Size(8, Dummy8); |
| 5769 | } |
| 5770 | if (HasDummy9) { |
| 5771 | size += pb::CodedOutputStream.ComputeInt32Size(9, Dummy9); |
| 5772 | } |
| 5773 | if (HasDummy10) { |
| 5774 | size += pb::CodedOutputStream.ComputeInt32Size(10, Dummy10); |
| 5775 | } |
| 5776 | if (HasDummy11) { |
| 5777 | size += pb::CodedOutputStream.ComputeInt32Size(11, Dummy11); |
| 5778 | } |
| 5779 | if (HasDummy12) { |
| 5780 | size += pb::CodedOutputStream.ComputeInt32Size(12, Dummy12); |
| 5781 | } |
| 5782 | if (HasDummy13) { |
| 5783 | size += pb::CodedOutputStream.ComputeInt32Size(13, Dummy13); |
| 5784 | } |
| 5785 | if (HasDummy14) { |
| 5786 | size += pb::CodedOutputStream.ComputeInt32Size(14, Dummy14); |
| 5787 | } |
| 5788 | if (HasDummy15) { |
| 5789 | size += pb::CodedOutputStream.ComputeInt32Size(15, Dummy15); |
| 5790 | } |
| 5791 | if (HasDummy16) { |
| 5792 | size += pb::CodedOutputStream.ComputeInt32Size(16, Dummy16); |
| 5793 | } |
| 5794 | if (HasDummy17) { |
| 5795 | size += pb::CodedOutputStream.ComputeInt32Size(17, Dummy17); |
| 5796 | } |
| 5797 | if (HasDummy18) { |
| 5798 | size += pb::CodedOutputStream.ComputeInt32Size(18, Dummy18); |
| 5799 | } |
| 5800 | if (HasDummy19) { |
| 5801 | size += pb::CodedOutputStream.ComputeInt32Size(19, Dummy19); |
| 5802 | } |
| 5803 | if (HasDummy20) { |
| 5804 | size += pb::CodedOutputStream.ComputeInt32Size(20, Dummy20); |
| 5805 | } |
| 5806 | if (HasDummy21) { |
| 5807 | size += pb::CodedOutputStream.ComputeInt32Size(21, Dummy21); |
| 5808 | } |
| 5809 | if (HasDummy22) { |
| 5810 | size += pb::CodedOutputStream.ComputeInt32Size(22, Dummy22); |
| 5811 | } |
| 5812 | if (HasDummy23) { |
| 5813 | size += pb::CodedOutputStream.ComputeInt32Size(23, Dummy23); |
| 5814 | } |
| 5815 | if (HasDummy24) { |
| 5816 | size += pb::CodedOutputStream.ComputeInt32Size(24, Dummy24); |
| 5817 | } |
| 5818 | if (HasDummy25) { |
| 5819 | size += pb::CodedOutputStream.ComputeInt32Size(25, Dummy25); |
| 5820 | } |
| 5821 | if (HasDummy26) { |
| 5822 | size += pb::CodedOutputStream.ComputeInt32Size(26, Dummy26); |
| 5823 | } |
| 5824 | if (HasDummy27) { |
| 5825 | size += pb::CodedOutputStream.ComputeInt32Size(27, Dummy27); |
| 5826 | } |
| 5827 | if (HasDummy28) { |
| 5828 | size += pb::CodedOutputStream.ComputeInt32Size(28, Dummy28); |
| 5829 | } |
| 5830 | if (HasDummy29) { |
| 5831 | size += pb::CodedOutputStream.ComputeInt32Size(29, Dummy29); |
| 5832 | } |
| 5833 | if (HasDummy30) { |
| 5834 | size += pb::CodedOutputStream.ComputeInt32Size(30, Dummy30); |
| 5835 | } |
| 5836 | if (HasDummy31) { |
| 5837 | size += pb::CodedOutputStream.ComputeInt32Size(31, Dummy31); |
| 5838 | } |
| 5839 | if (HasDummy32) { |
| 5840 | size += pb::CodedOutputStream.ComputeInt32Size(32, Dummy32); |
| 5841 | } |
| 5842 | if (HasC) { |
| 5843 | size += pb::CodedOutputStream.ComputeInt32Size(33, C); |
| 5844 | } |
| 5845 | size += UnknownFields.SerializedSize; |
| 5846 | memoizedSerializedSize = size; |
| 5847 | return size; |
| 5848 | } |
| 5849 | } |
| 5850 | |
| 5851 | public static TestRequired ParseFrom(pb::ByteString data) { |
| 5852 | return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed(); |
| 5853 | } |
| 5854 | public static TestRequired ParseFrom(pb::ByteString data, pb::ExtensionRegistry extensionRegistry) { |
| 5855 | return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed(); |
| 5856 | } |
| 5857 | public static TestRequired ParseFrom(byte[] data) { |
| 5858 | return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed(); |
| 5859 | } |
| 5860 | public static TestRequired ParseFrom(byte[] data, pb::ExtensionRegistry extensionRegistry) { |
| 5861 | return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed(); |
| 5862 | } |
| 5863 | public static TestRequired ParseFrom(global::System.IO.Stream input) { |
| 5864 | return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed(); |
| 5865 | } |
| 5866 | public static TestRequired ParseFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) { |
| 5867 | return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed(); |
| 5868 | } |
| 5869 | public static TestRequired ParseFrom(pb::CodedInputStream input) { |
| 5870 | return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed(); |
| 5871 | } |
| 5872 | public static TestRequired ParseFrom(pb::CodedInputStream input, pb::ExtensionRegistry extensionRegistry) { |
| 5873 | return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed(); |
| 5874 | } |
| 5875 | public static Builder CreateBuilder() { return new Builder(); } |
| 5876 | public override Builder CreateBuilderForType() { return new Builder(); } |
| 5877 | public static Builder CreateBuilder(TestRequired prototype) { |
| 5878 | return (Builder) new Builder().MergeFrom(prototype); |
| 5879 | } |
| 5880 | |
| 5881 | public sealed partial class Builder : pb::GeneratedBuilder<TestRequired, Builder> { |
| 5882 | protected override Builder ThisBuilder { |
| 5883 | get { return this; } |
| 5884 | } |
| 5885 | public Builder() {} |
| 5886 | |
| 5887 | TestRequired result = new TestRequired(); |
| 5888 | |
| 5889 | protected override TestRequired MessageBeingBuilt { |
| 5890 | get { return result; } |
| 5891 | } |
| 5892 | |
| 5893 | public override Builder Clear() { |
| 5894 | result = new TestRequired(); |
| 5895 | return this; |
| 5896 | } |
| 5897 | |
| 5898 | public override Builder Clone() { |
| 5899 | return new Builder().MergeFrom(result); |
| 5900 | } |
| 5901 | |
| 5902 | public override pbd::MessageDescriptor DescriptorForType { |
| 5903 | get { return TestRequired.Descriptor; } |
| 5904 | } |
| 5905 | |
| 5906 | public override TestRequired DefaultInstanceForType { |
| 5907 | get { return TestRequired.DefaultInstance; } |
| 5908 | } |
| 5909 | |
| 5910 | public override TestRequired BuildPartial() { |
| 5911 | TestRequired returnMe = result; |
| 5912 | result = null; |
| 5913 | return returnMe; |
| 5914 | } |
| 5915 | |
| 5916 | public override Builder MergeFrom(pb::IMessage other) { |
| 5917 | if (other is TestRequired) { |
| 5918 | return MergeFrom((TestRequired) other); |
| 5919 | } else { |
| 5920 | base.MergeFrom(other); |
| 5921 | return this; |
| 5922 | } |
| 5923 | } |
| 5924 | |
| 5925 | public override Builder MergeFrom(TestRequired other) { |
| 5926 | if (other == TestRequired.DefaultInstance) return this; |
| 5927 | if (other.HasA) { |
| 5928 | A = other.A; |
| 5929 | } |
| 5930 | if (other.HasDummy2) { |
| 5931 | Dummy2 = other.Dummy2; |
| 5932 | } |
| 5933 | if (other.HasB) { |
| 5934 | B = other.B; |
| 5935 | } |
| 5936 | if (other.HasDummy4) { |
| 5937 | Dummy4 = other.Dummy4; |
| 5938 | } |
| 5939 | if (other.HasDummy5) { |
| 5940 | Dummy5 = other.Dummy5; |
| 5941 | } |
| 5942 | if (other.HasDummy6) { |
| 5943 | Dummy6 = other.Dummy6; |
| 5944 | } |
| 5945 | if (other.HasDummy7) { |
| 5946 | Dummy7 = other.Dummy7; |
| 5947 | } |
| 5948 | if (other.HasDummy8) { |
| 5949 | Dummy8 = other.Dummy8; |
| 5950 | } |
| 5951 | if (other.HasDummy9) { |
| 5952 | Dummy9 = other.Dummy9; |
| 5953 | } |
| 5954 | if (other.HasDummy10) { |
| 5955 | Dummy10 = other.Dummy10; |
| 5956 | } |
| 5957 | if (other.HasDummy11) { |
| 5958 | Dummy11 = other.Dummy11; |
| 5959 | } |
| 5960 | if (other.HasDummy12) { |
| 5961 | Dummy12 = other.Dummy12; |
| 5962 | } |
| 5963 | if (other.HasDummy13) { |
| 5964 | Dummy13 = other.Dummy13; |
| 5965 | } |
| 5966 | if (other.HasDummy14) { |
| 5967 | Dummy14 = other.Dummy14; |
| 5968 | } |
| 5969 | if (other.HasDummy15) { |
| 5970 | Dummy15 = other.Dummy15; |
| 5971 | } |
| 5972 | if (other.HasDummy16) { |
| 5973 | Dummy16 = other.Dummy16; |
| 5974 | } |
| 5975 | if (other.HasDummy17) { |
| 5976 | Dummy17 = other.Dummy17; |
| 5977 | } |
| 5978 | if (other.HasDummy18) { |
| 5979 | Dummy18 = other.Dummy18; |
| 5980 | } |
| 5981 | if (other.HasDummy19) { |
| 5982 | Dummy19 = other.Dummy19; |
| 5983 | } |
| 5984 | if (other.HasDummy20) { |
| 5985 | Dummy20 = other.Dummy20; |
| 5986 | } |
| 5987 | if (other.HasDummy21) { |
| 5988 | Dummy21 = other.Dummy21; |
| 5989 | } |
| 5990 | if (other.HasDummy22) { |
| 5991 | Dummy22 = other.Dummy22; |
| 5992 | } |
| 5993 | if (other.HasDummy23) { |
| 5994 | Dummy23 = other.Dummy23; |
| 5995 | } |
| 5996 | if (other.HasDummy24) { |
| 5997 | Dummy24 = other.Dummy24; |
| 5998 | } |
| 5999 | if (other.HasDummy25) { |
| 6000 | Dummy25 = other.Dummy25; |
| 6001 | } |
| 6002 | if (other.HasDummy26) { |
| 6003 | Dummy26 = other.Dummy26; |
| 6004 | } |
| 6005 | if (other.HasDummy27) { |
| 6006 | Dummy27 = other.Dummy27; |
| 6007 | } |
| 6008 | if (other.HasDummy28) { |
| 6009 | Dummy28 = other.Dummy28; |
| 6010 | } |
| 6011 | if (other.HasDummy29) { |
| 6012 | Dummy29 = other.Dummy29; |
| 6013 | } |
| 6014 | if (other.HasDummy30) { |
| 6015 | Dummy30 = other.Dummy30; |
| 6016 | } |
| 6017 | if (other.HasDummy31) { |
| 6018 | Dummy31 = other.Dummy31; |
| 6019 | } |
| 6020 | if (other.HasDummy32) { |
| 6021 | Dummy32 = other.Dummy32; |
| 6022 | } |
| 6023 | if (other.HasC) { |
| 6024 | C = other.C; |
| 6025 | } |
| 6026 | this.MergeUnknownFields(other.UnknownFields); |
| 6027 | return this; |
| 6028 | } |
| 6029 | |
| 6030 | public override Builder MergeFrom(pb::CodedInputStream input) { |
| 6031 | return MergeFrom(input, pb::ExtensionRegistry.Empty); |
| 6032 | } |
| 6033 | |
| 6034 | public override Builder MergeFrom(pb::CodedInputStream input, pb::ExtensionRegistry extensionRegistry) { |
| 6035 | pb::UnknownFieldSet.Builder unknownFields = pb::UnknownFieldSet.CreateBuilder(this.UnknownFields); |
| 6036 | while (true) { |
| 6037 | uint tag = input.ReadTag(); |
| 6038 | switch (tag) { |
| 6039 | case 0: { |
| 6040 | this.UnknownFields = unknownFields.Build(); |
| 6041 | return this; |
| 6042 | } |
| 6043 | default: { |
| 6044 | if (!ParseUnknownField(input, unknownFields, extensionRegistry, tag)) { |
| 6045 | this.UnknownFields = unknownFields.Build(); |
| 6046 | return this; |
| 6047 | } |
| 6048 | break; |
| 6049 | } |
| 6050 | case 8: { |
| 6051 | A = input.ReadInt32(); |
| 6052 | break; |
| 6053 | } |
| 6054 | case 16: { |
| 6055 | Dummy2 = input.ReadInt32(); |
| 6056 | break; |
| 6057 | } |
| 6058 | case 24: { |
| 6059 | B = input.ReadInt32(); |
| 6060 | break; |
| 6061 | } |
| 6062 | case 32: { |
| 6063 | Dummy4 = input.ReadInt32(); |
| 6064 | break; |
| 6065 | } |
| 6066 | case 40: { |
| 6067 | Dummy5 = input.ReadInt32(); |
| 6068 | break; |
| 6069 | } |
| 6070 | case 48: { |
| 6071 | Dummy6 = input.ReadInt32(); |
| 6072 | break; |
| 6073 | } |
| 6074 | case 56: { |
| 6075 | Dummy7 = input.ReadInt32(); |
| 6076 | break; |
| 6077 | } |
| 6078 | case 64: { |
| 6079 | Dummy8 = input.ReadInt32(); |
| 6080 | break; |
| 6081 | } |
| 6082 | case 72: { |
| 6083 | Dummy9 = input.ReadInt32(); |
| 6084 | break; |
| 6085 | } |
| 6086 | case 80: { |
| 6087 | Dummy10 = input.ReadInt32(); |
| 6088 | break; |
| 6089 | } |
| 6090 | case 88: { |
| 6091 | Dummy11 = input.ReadInt32(); |
| 6092 | break; |
| 6093 | } |
| 6094 | case 96: { |
| 6095 | Dummy12 = input.ReadInt32(); |
| 6096 | break; |
| 6097 | } |
| 6098 | case 104: { |
| 6099 | Dummy13 = input.ReadInt32(); |
| 6100 | break; |
| 6101 | } |
| 6102 | case 112: { |
| 6103 | Dummy14 = input.ReadInt32(); |
| 6104 | break; |
| 6105 | } |
| 6106 | case 120: { |
| 6107 | Dummy15 = input.ReadInt32(); |
| 6108 | break; |
| 6109 | } |
| 6110 | case 128: { |
| 6111 | Dummy16 = input.ReadInt32(); |
| 6112 | break; |
| 6113 | } |
| 6114 | case 136: { |
| 6115 | Dummy17 = input.ReadInt32(); |
| 6116 | break; |
| 6117 | } |
| 6118 | case 144: { |
| 6119 | Dummy18 = input.ReadInt32(); |
| 6120 | break; |
| 6121 | } |
| 6122 | case 152: { |
| 6123 | Dummy19 = input.ReadInt32(); |
| 6124 | break; |
| 6125 | } |
| 6126 | case 160: { |
| 6127 | Dummy20 = input.ReadInt32(); |
| 6128 | break; |
| 6129 | } |
| 6130 | case 168: { |
| 6131 | Dummy21 = input.ReadInt32(); |
| 6132 | break; |
| 6133 | } |
| 6134 | case 176: { |
| 6135 | Dummy22 = input.ReadInt32(); |
| 6136 | break; |
| 6137 | } |
| 6138 | case 184: { |
| 6139 | Dummy23 = input.ReadInt32(); |
| 6140 | break; |
| 6141 | } |
| 6142 | case 192: { |
| 6143 | Dummy24 = input.ReadInt32(); |
| 6144 | break; |
| 6145 | } |
| 6146 | case 200: { |
| 6147 | Dummy25 = input.ReadInt32(); |
| 6148 | break; |
| 6149 | } |
| 6150 | case 208: { |
| 6151 | Dummy26 = input.ReadInt32(); |
| 6152 | break; |
| 6153 | } |
| 6154 | case 216: { |
| 6155 | Dummy27 = input.ReadInt32(); |
| 6156 | break; |
| 6157 | } |
| 6158 | case 224: { |
| 6159 | Dummy28 = input.ReadInt32(); |
| 6160 | break; |
| 6161 | } |
| 6162 | case 232: { |
| 6163 | Dummy29 = input.ReadInt32(); |
| 6164 | break; |
| 6165 | } |
| 6166 | case 240: { |
| 6167 | Dummy30 = input.ReadInt32(); |
| 6168 | break; |
| 6169 | } |
| 6170 | case 248: { |
| 6171 | Dummy31 = input.ReadInt32(); |
| 6172 | break; |
| 6173 | } |
| 6174 | case 256: { |
| 6175 | Dummy32 = input.ReadInt32(); |
| 6176 | break; |
| 6177 | } |
| 6178 | case 264: { |
| 6179 | C = input.ReadInt32(); |
| 6180 | break; |
| 6181 | } |
| 6182 | } |
| 6183 | } |
| 6184 | } |
| 6185 | |
| 6186 | |
| 6187 | public bool HasA { |
| 6188 | get { return result.HasA; } |
| 6189 | } |
| 6190 | public int A { |
| 6191 | get { return result.A; } |
| 6192 | set { SetA(value); } |
| 6193 | } |
| 6194 | public Builder SetA(int value) { |
| 6195 | result.hasA = true; |
| 6196 | result.a_ = value; |
| 6197 | return this; |
| 6198 | } |
| 6199 | public Builder ClearA() { |
| 6200 | result.hasA = false; |
| 6201 | result.a_ = 0; |
| 6202 | return this; |
| 6203 | } |
| 6204 | |
| 6205 | public bool HasDummy2 { |
| 6206 | get { return result.HasDummy2; } |
| 6207 | } |
| 6208 | public int Dummy2 { |
| 6209 | get { return result.Dummy2; } |
| 6210 | set { SetDummy2(value); } |
| 6211 | } |
| 6212 | public Builder SetDummy2(int value) { |
| 6213 | result.hasDummy2 = true; |
| 6214 | result.dummy2_ = value; |
| 6215 | return this; |
| 6216 | } |
| 6217 | public Builder ClearDummy2() { |
| 6218 | result.hasDummy2 = false; |
| 6219 | result.dummy2_ = 0; |
| 6220 | return this; |
| 6221 | } |
| 6222 | |
| 6223 | public bool HasB { |
| 6224 | get { return result.HasB; } |
| 6225 | } |
| 6226 | public int B { |
| 6227 | get { return result.B; } |
| 6228 | set { SetB(value); } |
| 6229 | } |
| 6230 | public Builder SetB(int value) { |
| 6231 | result.hasB = true; |
| 6232 | result.b_ = value; |
| 6233 | return this; |
| 6234 | } |
| 6235 | public Builder ClearB() { |
| 6236 | result.hasB = false; |
| 6237 | result.b_ = 0; |
| 6238 | return this; |
| 6239 | } |
| 6240 | |
| 6241 | public bool HasDummy4 { |
| 6242 | get { return result.HasDummy4; } |
| 6243 | } |
| 6244 | public int Dummy4 { |
| 6245 | get { return result.Dummy4; } |
| 6246 | set { SetDummy4(value); } |
| 6247 | } |
| 6248 | public Builder SetDummy4(int value) { |
| 6249 | result.hasDummy4 = true; |
| 6250 | result.dummy4_ = value; |
| 6251 | return this; |
| 6252 | } |
| 6253 | public Builder ClearDummy4() { |
| 6254 | result.hasDummy4 = false; |
| 6255 | result.dummy4_ = 0; |
| 6256 | return this; |
| 6257 | } |
| 6258 | |
| 6259 | public bool HasDummy5 { |
| 6260 | get { return result.HasDummy5; } |
| 6261 | } |
| 6262 | public int Dummy5 { |
| 6263 | get { return result.Dummy5; } |
| 6264 | set { SetDummy5(value); } |
| 6265 | } |
| 6266 | public Builder SetDummy5(int value) { |
| 6267 | result.hasDummy5 = true; |
| 6268 | result.dummy5_ = value; |
| 6269 | return this; |
| 6270 | } |
| 6271 | public Builder ClearDummy5() { |
| 6272 | result.hasDummy5 = false; |
| 6273 | result.dummy5_ = 0; |
| 6274 | return this; |
| 6275 | } |
| 6276 | |
| 6277 | public bool HasDummy6 { |
| 6278 | get { return result.HasDummy6; } |
| 6279 | } |
| 6280 | public int Dummy6 { |
| 6281 | get { return result.Dummy6; } |
| 6282 | set { SetDummy6(value); } |
| 6283 | } |
| 6284 | public Builder SetDummy6(int value) { |
| 6285 | result.hasDummy6 = true; |
| 6286 | result.dummy6_ = value; |
| 6287 | return this; |
| 6288 | } |
| 6289 | public Builder ClearDummy6() { |
| 6290 | result.hasDummy6 = false; |
| 6291 | result.dummy6_ = 0; |
| 6292 | return this; |
| 6293 | } |
| 6294 | |
| 6295 | public bool HasDummy7 { |
| 6296 | get { return result.HasDummy7; } |
| 6297 | } |
| 6298 | public int Dummy7 { |
| 6299 | get { return result.Dummy7; } |
| 6300 | set { SetDummy7(value); } |
| 6301 | } |
| 6302 | public Builder SetDummy7(int value) { |
| 6303 | result.hasDummy7 = true; |
| 6304 | result.dummy7_ = value; |
| 6305 | return this; |
| 6306 | } |
| 6307 | public Builder ClearDummy7() { |
| 6308 | result.hasDummy7 = false; |
| 6309 | result.dummy7_ = 0; |
| 6310 | return this; |
| 6311 | } |
| 6312 | |
| 6313 | public bool HasDummy8 { |
| 6314 | get { return result.HasDummy8; } |
| 6315 | } |
| 6316 | public int Dummy8 { |
| 6317 | get { return result.Dummy8; } |
| 6318 | set { SetDummy8(value); } |
| 6319 | } |
| 6320 | public Builder SetDummy8(int value) { |
| 6321 | result.hasDummy8 = true; |
| 6322 | result.dummy8_ = value; |
| 6323 | return this; |
| 6324 | } |
| 6325 | public Builder ClearDummy8() { |
| 6326 | result.hasDummy8 = false; |
| 6327 | result.dummy8_ = 0; |
| 6328 | return this; |
| 6329 | } |
| 6330 | |
| 6331 | public bool HasDummy9 { |
| 6332 | get { return result.HasDummy9; } |
| 6333 | } |
| 6334 | public int Dummy9 { |
| 6335 | get { return result.Dummy9; } |
| 6336 | set { SetDummy9(value); } |
| 6337 | } |
| 6338 | public Builder SetDummy9(int value) { |
| 6339 | result.hasDummy9 = true; |
| 6340 | result.dummy9_ = value; |
| 6341 | return this; |
| 6342 | } |
| 6343 | public Builder ClearDummy9() { |
| 6344 | result.hasDummy9 = false; |
| 6345 | result.dummy9_ = 0; |
| 6346 | return this; |
| 6347 | } |
| 6348 | |
| 6349 | public bool HasDummy10 { |
| 6350 | get { return result.HasDummy10; } |
| 6351 | } |
| 6352 | public int Dummy10 { |
| 6353 | get { return result.Dummy10; } |
| 6354 | set { SetDummy10(value); } |
| 6355 | } |
| 6356 | public Builder SetDummy10(int value) { |
| 6357 | result.hasDummy10 = true; |
| 6358 | result.dummy10_ = value; |
| 6359 | return this; |
| 6360 | } |
| 6361 | public Builder ClearDummy10() { |
| 6362 | result.hasDummy10 = false; |
| 6363 | result.dummy10_ = 0; |
| 6364 | return this; |
| 6365 | } |
| 6366 | |
| 6367 | public bool HasDummy11 { |
| 6368 | get { return result.HasDummy11; } |
| 6369 | } |
| 6370 | public int Dummy11 { |
| 6371 | get { return result.Dummy11; } |
| 6372 | set { SetDummy11(value); } |
| 6373 | } |
| 6374 | public Builder SetDummy11(int value) { |
| 6375 | result.hasDummy11 = true; |
| 6376 | result.dummy11_ = value; |
| 6377 | return this; |
| 6378 | } |
| 6379 | public Builder ClearDummy11() { |
| 6380 | result.hasDummy11 = false; |
| 6381 | result.dummy11_ = 0; |
| 6382 | return this; |
| 6383 | } |
| 6384 | |
| 6385 | public bool HasDummy12 { |
| 6386 | get { return result.HasDummy12; } |
| 6387 | } |
| 6388 | public int Dummy12 { |
| 6389 | get { return result.Dummy12; } |
| 6390 | set { SetDummy12(value); } |
| 6391 | } |
| 6392 | public Builder SetDummy12(int value) { |
| 6393 | result.hasDummy12 = true; |
| 6394 | result.dummy12_ = value; |
| 6395 | return this; |
| 6396 | } |
| 6397 | public Builder ClearDummy12() { |
| 6398 | result.hasDummy12 = false; |
| 6399 | result.dummy12_ = 0; |
| 6400 | return this; |
| 6401 | } |
| 6402 | |
| 6403 | public bool HasDummy13 { |
| 6404 | get { return result.HasDummy13; } |
| 6405 | } |
| 6406 | public int Dummy13 { |
| 6407 | get { return result.Dummy13; } |
| 6408 | set { SetDummy13(value); } |
| 6409 | } |
| 6410 | public Builder SetDummy13(int value) { |
| 6411 | result.hasDummy13 = true; |
| 6412 | result.dummy13_ = value; |
| 6413 | return this; |
| 6414 | } |
| 6415 | public Builder ClearDummy13() { |
| 6416 | result.hasDummy13 = false; |
| 6417 | result.dummy13_ = 0; |
| 6418 | return this; |
| 6419 | } |
| 6420 | |
| 6421 | public bool HasDummy14 { |
| 6422 | get { return result.HasDummy14; } |
| 6423 | } |
| 6424 | public int Dummy14 { |
| 6425 | get { return result.Dummy14; } |
| 6426 | set { SetDummy14(value); } |
| 6427 | } |
| 6428 | public Builder SetDummy14(int value) { |
| 6429 | result.hasDummy14 = true; |
| 6430 | result.dummy14_ = value; |
| 6431 | return this; |
| 6432 | } |
| 6433 | public Builder ClearDummy14() { |
| 6434 | result.hasDummy14 = false; |
| 6435 | result.dummy14_ = 0; |
| 6436 | return this; |
| 6437 | } |
| 6438 | |
| 6439 | public bool HasDummy15 { |
| 6440 | get { return result.HasDummy15; } |
| 6441 | } |
| 6442 | public int Dummy15 { |
| 6443 | get { return result.Dummy15; } |
| 6444 | set { SetDummy15(value); } |
| 6445 | } |
| 6446 | public Builder SetDummy15(int value) { |
| 6447 | result.hasDummy15 = true; |
| 6448 | result.dummy15_ = value; |
| 6449 | return this; |
| 6450 | } |
| 6451 | public Builder ClearDummy15() { |
| 6452 | result.hasDummy15 = false; |
| 6453 | result.dummy15_ = 0; |
| 6454 | return this; |
| 6455 | } |
| 6456 | |
| 6457 | public bool HasDummy16 { |
| 6458 | get { return result.HasDummy16; } |
| 6459 | } |
| 6460 | public int Dummy16 { |
| 6461 | get { return result.Dummy16; } |
| 6462 | set { SetDummy16(value); } |
| 6463 | } |
| 6464 | public Builder SetDummy16(int value) { |
| 6465 | result.hasDummy16 = true; |
| 6466 | result.dummy16_ = value; |
| 6467 | return this; |
| 6468 | } |
| 6469 | public Builder ClearDummy16() { |
| 6470 | result.hasDummy16 = false; |
| 6471 | result.dummy16_ = 0; |
| 6472 | return this; |
| 6473 | } |
| 6474 | |
| 6475 | public bool HasDummy17 { |
| 6476 | get { return result.HasDummy17; } |
| 6477 | } |
| 6478 | public int Dummy17 { |
| 6479 | get { return result.Dummy17; } |
| 6480 | set { SetDummy17(value); } |
| 6481 | } |
| 6482 | public Builder SetDummy17(int value) { |
| 6483 | result.hasDummy17 = true; |
| 6484 | result.dummy17_ = value; |
| 6485 | return this; |
| 6486 | } |
| 6487 | public Builder ClearDummy17() { |
| 6488 | result.hasDummy17 = false; |
| 6489 | result.dummy17_ = 0; |
| 6490 | return this; |
| 6491 | } |
| 6492 | |
| 6493 | public bool HasDummy18 { |
| 6494 | get { return result.HasDummy18; } |
| 6495 | } |
| 6496 | public int Dummy18 { |
| 6497 | get { return result.Dummy18; } |
| 6498 | set { SetDummy18(value); } |
| 6499 | } |
| 6500 | public Builder SetDummy18(int value) { |
| 6501 | result.hasDummy18 = true; |
| 6502 | result.dummy18_ = value; |
| 6503 | return this; |
| 6504 | } |
| 6505 | public Builder ClearDummy18() { |
| 6506 | result.hasDummy18 = false; |
| 6507 | result.dummy18_ = 0; |
| 6508 | return this; |
| 6509 | } |
| 6510 | |
| 6511 | public bool HasDummy19 { |
| 6512 | get { return result.HasDummy19; } |
| 6513 | } |
| 6514 | public int Dummy19 { |
| 6515 | get { return result.Dummy19; } |
| 6516 | set { SetDummy19(value); } |
| 6517 | } |
| 6518 | public Builder SetDummy19(int value) { |
| 6519 | result.hasDummy19 = true; |
| 6520 | result.dummy19_ = value; |
| 6521 | return this; |
| 6522 | } |
| 6523 | public Builder ClearDummy19() { |
| 6524 | result.hasDummy19 = false; |
| 6525 | result.dummy19_ = 0; |
| 6526 | return this; |
| 6527 | } |
| 6528 | |
| 6529 | public bool HasDummy20 { |
| 6530 | get { return result.HasDummy20; } |
| 6531 | } |
| 6532 | public int Dummy20 { |
| 6533 | get { return result.Dummy20; } |
| 6534 | set { SetDummy20(value); } |
| 6535 | } |
| 6536 | public Builder SetDummy20(int value) { |
| 6537 | result.hasDummy20 = true; |
| 6538 | result.dummy20_ = value; |
| 6539 | return this; |
| 6540 | } |
| 6541 | public Builder ClearDummy20() { |
| 6542 | result.hasDummy20 = false; |
| 6543 | result.dummy20_ = 0; |
| 6544 | return this; |
| 6545 | } |
| 6546 | |
| 6547 | public bool HasDummy21 { |
| 6548 | get { return result.HasDummy21; } |
| 6549 | } |
| 6550 | public int Dummy21 { |
| 6551 | get { return result.Dummy21; } |
| 6552 | set { SetDummy21(value); } |
| 6553 | } |
| 6554 | public Builder SetDummy21(int value) { |
| 6555 | result.hasDummy21 = true; |
| 6556 | result.dummy21_ = value; |
| 6557 | return this; |
| 6558 | } |
| 6559 | public Builder ClearDummy21() { |
| 6560 | result.hasDummy21 = false; |
| 6561 | result.dummy21_ = 0; |
| 6562 | return this; |
| 6563 | } |
| 6564 | |
| 6565 | public bool HasDummy22 { |
| 6566 | get { return result.HasDummy22; } |
| 6567 | } |
| 6568 | public int Dummy22 { |
| 6569 | get { return result.Dummy22; } |
| 6570 | set { SetDummy22(value); } |
| 6571 | } |
| 6572 | public Builder SetDummy22(int value) { |
| 6573 | result.hasDummy22 = true; |
| 6574 | result.dummy22_ = value; |
| 6575 | return this; |
| 6576 | } |
| 6577 | public Builder ClearDummy22() { |
| 6578 | result.hasDummy22 = false; |
| 6579 | result.dummy22_ = 0; |
| 6580 | return this; |
| 6581 | } |
| 6582 | |
| 6583 | public bool HasDummy23 { |
| 6584 | get { return result.HasDummy23; } |
| 6585 | } |
| 6586 | public int Dummy23 { |
| 6587 | get { return result.Dummy23; } |
| 6588 | set { SetDummy23(value); } |
| 6589 | } |
| 6590 | public Builder SetDummy23(int value) { |
| 6591 | result.hasDummy23 = true; |
| 6592 | result.dummy23_ = value; |
| 6593 | return this; |
| 6594 | } |
| 6595 | public Builder ClearDummy23() { |
| 6596 | result.hasDummy23 = false; |
| 6597 | result.dummy23_ = 0; |
| 6598 | return this; |
| 6599 | } |
| 6600 | |
| 6601 | public bool HasDummy24 { |
| 6602 | get { return result.HasDummy24; } |
| 6603 | } |
| 6604 | public int Dummy24 { |
| 6605 | get { return result.Dummy24; } |
| 6606 | set { SetDummy24(value); } |
| 6607 | } |
| 6608 | public Builder SetDummy24(int value) { |
| 6609 | result.hasDummy24 = true; |
| 6610 | result.dummy24_ = value; |
| 6611 | return this; |
| 6612 | } |
| 6613 | public Builder ClearDummy24() { |
| 6614 | result.hasDummy24 = false; |
| 6615 | result.dummy24_ = 0; |
| 6616 | return this; |
| 6617 | } |
| 6618 | |
| 6619 | public bool HasDummy25 { |
| 6620 | get { return result.HasDummy25; } |
| 6621 | } |
| 6622 | public int Dummy25 { |
| 6623 | get { return result.Dummy25; } |
| 6624 | set { SetDummy25(value); } |
| 6625 | } |
| 6626 | public Builder SetDummy25(int value) { |
| 6627 | result.hasDummy25 = true; |
| 6628 | result.dummy25_ = value; |
| 6629 | return this; |
| 6630 | } |
| 6631 | public Builder ClearDummy25() { |
| 6632 | result.hasDummy25 = false; |
| 6633 | result.dummy25_ = 0; |
| 6634 | return this; |
| 6635 | } |
| 6636 | |
| 6637 | public bool HasDummy26 { |
| 6638 | get { return result.HasDummy26; } |
| 6639 | } |
| 6640 | public int Dummy26 { |
| 6641 | get { return result.Dummy26; } |
| 6642 | set { SetDummy26(value); } |
| 6643 | } |
| 6644 | public Builder SetDummy26(int value) { |
| 6645 | result.hasDummy26 = true; |
| 6646 | result.dummy26_ = value; |
| 6647 | return this; |
| 6648 | } |
| 6649 | public Builder ClearDummy26() { |
| 6650 | result.hasDummy26 = false; |
| 6651 | result.dummy26_ = 0; |
| 6652 | return this; |
| 6653 | } |
| 6654 | |
| 6655 | public bool HasDummy27 { |
| 6656 | get { return result.HasDummy27; } |
| 6657 | } |
| 6658 | public int Dummy27 { |
| 6659 | get { return result.Dummy27; } |
| 6660 | set { SetDummy27(value); } |
| 6661 | } |
| 6662 | public Builder SetDummy27(int value) { |
| 6663 | result.hasDummy27 = true; |
| 6664 | result.dummy27_ = value; |
| 6665 | return this; |
| 6666 | } |
| 6667 | public Builder ClearDummy27() { |
| 6668 | result.hasDummy27 = false; |
| 6669 | result.dummy27_ = 0; |
| 6670 | return this; |
| 6671 | } |
| 6672 | |
| 6673 | public bool HasDummy28 { |
| 6674 | get { return result.HasDummy28; } |
| 6675 | } |
| 6676 | public int Dummy28 { |
| 6677 | get { return result.Dummy28; } |
| 6678 | set { SetDummy28(value); } |
| 6679 | } |
| 6680 | public Builder SetDummy28(int value) { |
| 6681 | result.hasDummy28 = true; |
| 6682 | result.dummy28_ = value; |
| 6683 | return this; |
| 6684 | } |
| 6685 | public Builder ClearDummy28() { |
| 6686 | result.hasDummy28 = false; |
| 6687 | result.dummy28_ = 0; |
| 6688 | return this; |
| 6689 | } |
| 6690 | |
| 6691 | public bool HasDummy29 { |
| 6692 | get { return result.HasDummy29; } |
| 6693 | } |
| 6694 | public int Dummy29 { |
| 6695 | get { return result.Dummy29; } |
| 6696 | set { SetDummy29(value); } |
| 6697 | } |
| 6698 | public Builder SetDummy29(int value) { |
| 6699 | result.hasDummy29 = true; |
| 6700 | result.dummy29_ = value; |
| 6701 | return this; |
| 6702 | } |
| 6703 | public Builder ClearDummy29() { |
| 6704 | result.hasDummy29 = false; |
| 6705 | result.dummy29_ = 0; |
| 6706 | return this; |
| 6707 | } |
| 6708 | |
| 6709 | public bool HasDummy30 { |
| 6710 | get { return result.HasDummy30; } |
| 6711 | } |
| 6712 | public int Dummy30 { |
| 6713 | get { return result.Dummy30; } |
| 6714 | set { SetDummy30(value); } |
| 6715 | } |
| 6716 | public Builder SetDummy30(int value) { |
| 6717 | result.hasDummy30 = true; |
| 6718 | result.dummy30_ = value; |
| 6719 | return this; |
| 6720 | } |
| 6721 | public Builder ClearDummy30() { |
| 6722 | result.hasDummy30 = false; |
| 6723 | result.dummy30_ = 0; |
| 6724 | return this; |
| 6725 | } |
| 6726 | |
| 6727 | public bool HasDummy31 { |
| 6728 | get { return result.HasDummy31; } |
| 6729 | } |
| 6730 | public int Dummy31 { |
| 6731 | get { return result.Dummy31; } |
| 6732 | set { SetDummy31(value); } |
| 6733 | } |
| 6734 | public Builder SetDummy31(int value) { |
| 6735 | result.hasDummy31 = true; |
| 6736 | result.dummy31_ = value; |
| 6737 | return this; |
| 6738 | } |
| 6739 | public Builder ClearDummy31() { |
| 6740 | result.hasDummy31 = false; |
| 6741 | result.dummy31_ = 0; |
| 6742 | return this; |
| 6743 | } |
| 6744 | |
| 6745 | public bool HasDummy32 { |
| 6746 | get { return result.HasDummy32; } |
| 6747 | } |
| 6748 | public int Dummy32 { |
| 6749 | get { return result.Dummy32; } |
| 6750 | set { SetDummy32(value); } |
| 6751 | } |
| 6752 | public Builder SetDummy32(int value) { |
| 6753 | result.hasDummy32 = true; |
| 6754 | result.dummy32_ = value; |
| 6755 | return this; |
| 6756 | } |
| 6757 | public Builder ClearDummy32() { |
| 6758 | result.hasDummy32 = false; |
| 6759 | result.dummy32_ = 0; |
| 6760 | return this; |
| 6761 | } |
| 6762 | |
| 6763 | public bool HasC { |
| 6764 | get { return result.HasC; } |
| 6765 | } |
| 6766 | public int C { |
| 6767 | get { return result.C; } |
| 6768 | set { SetC(value); } |
| 6769 | } |
| 6770 | public Builder SetC(int value) { |
| 6771 | result.hasC = true; |
| 6772 | result.c_ = value; |
| 6773 | return this; |
| 6774 | } |
| 6775 | public Builder ClearC() { |
| 6776 | result.hasC = false; |
| 6777 | result.c_ = 0; |
| 6778 | return this; |
| 6779 | } |
| 6780 | } |
| 6781 | } |
| 6782 | |
| 6783 | public sealed partial class TestRequiredForeign : pb::GeneratedMessage<TestRequiredForeign, TestRequiredForeign.Builder> { |
| 6784 | private static readonly TestRequiredForeign defaultInstance = new Builder().BuildPartial(); |
| 6785 | public static TestRequiredForeign DefaultInstance { |
| 6786 | get { return defaultInstance; } |
| 6787 | } |
| 6788 | |
| 6789 | public override TestRequiredForeign DefaultInstanceForType { |
| 6790 | get { return defaultInstance; } |
| 6791 | } |
| 6792 | |
| 6793 | protected override TestRequiredForeign ThisMessage { |
| 6794 | get { return this; } |
| 6795 | } |
| 6796 | |
| 6797 | public static pbd::MessageDescriptor Descriptor { |
| 6798 | get { return global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.internal__static_protobuf_unittest_TestRequiredForeign__Descriptor; } |
| 6799 | } |
| 6800 | |
| 6801 | protected override pb::FieldAccess.FieldAccessorTable<TestRequiredForeign, TestRequiredForeign.Builder> InternalFieldAccessors { |
| 6802 | get { return global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.internal__static_protobuf_unittest_TestRequiredForeign__FieldAccessorTable; } |
| 6803 | } |
| 6804 | |
| 6805 | private bool hasOptionalMessage; |
| 6806 | private global::Google.ProtocolBuffers.TestProtos.TestRequired optionalMessage_ = global::Google.ProtocolBuffers.TestProtos.TestRequired.DefaultInstance; |
| 6807 | public bool HasOptionalMessage { |
| 6808 | get { return hasOptionalMessage; } |
| 6809 | } |
| 6810 | public global::Google.ProtocolBuffers.TestProtos.TestRequired OptionalMessage { |
| 6811 | get { return optionalMessage_; } |
| 6812 | } |
| 6813 | |
| 6814 | private pbc::PopsicleList<global::Google.ProtocolBuffers.TestProtos.TestRequired> repeatedMessage_ = new pbc::PopsicleList<global::Google.ProtocolBuffers.TestProtos.TestRequired>(); |
| 6815 | public scg::IList<global::Google.ProtocolBuffers.TestProtos.TestRequired> RepeatedMessageList { |
| 6816 | get { return repeatedMessage_; } |
| 6817 | } |
| 6818 | public int RepeatedMessageCount { |
| 6819 | get { return repeatedMessage_.Count; } |
| 6820 | } |
| 6821 | public global::Google.ProtocolBuffers.TestProtos.TestRequired GetRepeatedMessage(int index) { |
| 6822 | return repeatedMessage_[index]; |
| 6823 | } |
| 6824 | |
| 6825 | private bool hasDummy; |
| 6826 | private int dummy_ = 0; |
| 6827 | public bool HasDummy { |
| 6828 | get { return hasDummy; } |
| 6829 | } |
| 6830 | public int Dummy { |
| 6831 | get { return dummy_; } |
| 6832 | } |
| 6833 | |
| 6834 | public override bool IsInitialized { |
| 6835 | get { |
| 6836 | if (HasOptionalMessage) { |
| 6837 | if (!OptionalMessage.IsInitialized) return false; |
| 6838 | } |
| 6839 | foreach (global::Google.ProtocolBuffers.TestProtos.TestRequired element in RepeatedMessageList) { |
| 6840 | if (!element.IsInitialized) return false; |
| 6841 | } |
| 6842 | return true; |
| 6843 | } |
| 6844 | } |
| 6845 | |
| 6846 | public override void WriteTo(pb::CodedOutputStream output) { |
| 6847 | if (HasOptionalMessage) { |
| 6848 | output.WriteMessage(1, OptionalMessage); |
| 6849 | } |
| 6850 | foreach (global::Google.ProtocolBuffers.TestProtos.TestRequired element in RepeatedMessageList) { |
| 6851 | output.WriteMessage(2, element); |
| 6852 | } |
| 6853 | if (HasDummy) { |
| 6854 | output.WriteInt32(3, Dummy); |
| 6855 | } |
| 6856 | UnknownFields.WriteTo(output); |
| 6857 | } |
| 6858 | |
| 6859 | private int memoizedSerializedSize = -1; |
| 6860 | public override int SerializedSize { |
| 6861 | get { |
| 6862 | int size = memoizedSerializedSize; |
| 6863 | if (size != -1) return size; |
| 6864 | |
| 6865 | size = 0; |
| 6866 | if (HasOptionalMessage) { |
| 6867 | size += pb::CodedOutputStream.ComputeMessageSize(1, OptionalMessage); |
| 6868 | } |
| 6869 | foreach (global::Google.ProtocolBuffers.TestProtos.TestRequired element in RepeatedMessageList) { |
| 6870 | size += pb::CodedOutputStream.ComputeMessageSize(2, element); |
| 6871 | } |
| 6872 | if (HasDummy) { |
| 6873 | size += pb::CodedOutputStream.ComputeInt32Size(3, Dummy); |
| 6874 | } |
| 6875 | size += UnknownFields.SerializedSize; |
| 6876 | memoizedSerializedSize = size; |
| 6877 | return size; |
| 6878 | } |
| 6879 | } |
| 6880 | |
| 6881 | public static TestRequiredForeign ParseFrom(pb::ByteString data) { |
| 6882 | return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed(); |
| 6883 | } |
| 6884 | public static TestRequiredForeign ParseFrom(pb::ByteString data, pb::ExtensionRegistry extensionRegistry) { |
| 6885 | return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed(); |
| 6886 | } |
| 6887 | public static TestRequiredForeign ParseFrom(byte[] data) { |
| 6888 | return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed(); |
| 6889 | } |
| 6890 | public static TestRequiredForeign ParseFrom(byte[] data, pb::ExtensionRegistry extensionRegistry) { |
| 6891 | return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed(); |
| 6892 | } |
| 6893 | public static TestRequiredForeign ParseFrom(global::System.IO.Stream input) { |
| 6894 | return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed(); |
| 6895 | } |
| 6896 | public static TestRequiredForeign ParseFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) { |
| 6897 | return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed(); |
| 6898 | } |
| 6899 | public static TestRequiredForeign ParseFrom(pb::CodedInputStream input) { |
| 6900 | return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed(); |
| 6901 | } |
| 6902 | public static TestRequiredForeign ParseFrom(pb::CodedInputStream input, pb::ExtensionRegistry extensionRegistry) { |
| 6903 | return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed(); |
| 6904 | } |
| 6905 | public static Builder CreateBuilder() { return new Builder(); } |
| 6906 | public override Builder CreateBuilderForType() { return new Builder(); } |
| 6907 | public static Builder CreateBuilder(TestRequiredForeign prototype) { |
| 6908 | return (Builder) new Builder().MergeFrom(prototype); |
| 6909 | } |
| 6910 | |
| 6911 | public sealed partial class Builder : pb::GeneratedBuilder<TestRequiredForeign, Builder> { |
| 6912 | protected override Builder ThisBuilder { |
| 6913 | get { return this; } |
| 6914 | } |
| 6915 | public Builder() {} |
| 6916 | |
| 6917 | TestRequiredForeign result = new TestRequiredForeign(); |
| 6918 | |
| 6919 | protected override TestRequiredForeign MessageBeingBuilt { |
| 6920 | get { return result; } |
| 6921 | } |
| 6922 | |
| 6923 | public override Builder Clear() { |
| 6924 | result = new TestRequiredForeign(); |
| 6925 | return this; |
| 6926 | } |
| 6927 | |
| 6928 | public override Builder Clone() { |
| 6929 | return new Builder().MergeFrom(result); |
| 6930 | } |
| 6931 | |
| 6932 | public override pbd::MessageDescriptor DescriptorForType { |
| 6933 | get { return TestRequiredForeign.Descriptor; } |
| 6934 | } |
| 6935 | |
| 6936 | public override TestRequiredForeign DefaultInstanceForType { |
| 6937 | get { return TestRequiredForeign.DefaultInstance; } |
| 6938 | } |
| 6939 | |
| 6940 | public override TestRequiredForeign BuildPartial() { |
| 6941 | result.repeatedMessage_.MakeReadOnly(); |
| 6942 | TestRequiredForeign returnMe = result; |
| 6943 | result = null; |
| 6944 | return returnMe; |
| 6945 | } |
| 6946 | |
| 6947 | public override Builder MergeFrom(pb::IMessage other) { |
| 6948 | if (other is TestRequiredForeign) { |
| 6949 | return MergeFrom((TestRequiredForeign) other); |
| 6950 | } else { |
| 6951 | base.MergeFrom(other); |
| 6952 | return this; |
| 6953 | } |
| 6954 | } |
| 6955 | |
| 6956 | public override Builder MergeFrom(TestRequiredForeign other) { |
| 6957 | if (other == TestRequiredForeign.DefaultInstance) return this; |
| 6958 | if (other.HasOptionalMessage) { |
| 6959 | MergeOptionalMessage(other.OptionalMessage); |
| 6960 | } |
| 6961 | if (other.repeatedMessage_.Count != 0) { |
| 6962 | base.AddRange(other.repeatedMessage_, result.repeatedMessage_); |
| 6963 | } |
| 6964 | if (other.HasDummy) { |
| 6965 | Dummy = other.Dummy; |
| 6966 | } |
| 6967 | this.MergeUnknownFields(other.UnknownFields); |
| 6968 | return this; |
| 6969 | } |
| 6970 | |
| 6971 | public override Builder MergeFrom(pb::CodedInputStream input) { |
| 6972 | return MergeFrom(input, pb::ExtensionRegistry.Empty); |
| 6973 | } |
| 6974 | |
| 6975 | public override Builder MergeFrom(pb::CodedInputStream input, pb::ExtensionRegistry extensionRegistry) { |
| 6976 | pb::UnknownFieldSet.Builder unknownFields = pb::UnknownFieldSet.CreateBuilder(this.UnknownFields); |
| 6977 | while (true) { |
| 6978 | uint tag = input.ReadTag(); |
| 6979 | switch (tag) { |
| 6980 | case 0: { |
| 6981 | this.UnknownFields = unknownFields.Build(); |
| 6982 | return this; |
| 6983 | } |
| 6984 | default: { |
| 6985 | if (!ParseUnknownField(input, unknownFields, extensionRegistry, tag)) { |
| 6986 | this.UnknownFields = unknownFields.Build(); |
| 6987 | return this; |
| 6988 | } |
| 6989 | break; |
| 6990 | } |
| 6991 | case 10: { |
| 6992 | global::Google.ProtocolBuffers.TestProtos.TestRequired.Builder subBuilder = global::Google.ProtocolBuffers.TestProtos.TestRequired.CreateBuilder(); |
| 6993 | if (HasOptionalMessage) { |
| 6994 | subBuilder.MergeFrom(OptionalMessage); |
| 6995 | } |
| 6996 | input.ReadMessage(subBuilder, extensionRegistry); |
| 6997 | OptionalMessage = subBuilder.BuildPartial(); |
| 6998 | break; |
| 6999 | } |
| 7000 | case 18: { |
| 7001 | global::Google.ProtocolBuffers.TestProtos.TestRequired.Builder subBuilder = global::Google.ProtocolBuffers.TestProtos.TestRequired.CreateBuilder(); |
| 7002 | input.ReadMessage(subBuilder, extensionRegistry); |
| 7003 | AddRepeatedMessage(subBuilder.BuildPartial()); |
| 7004 | break; |
| 7005 | } |
| 7006 | case 24: { |
| 7007 | Dummy = input.ReadInt32(); |
| 7008 | break; |
| 7009 | } |
| 7010 | } |
| 7011 | } |
| 7012 | } |
| 7013 | |
| 7014 | |
| 7015 | public bool HasOptionalMessage { |
| 7016 | get { return result.HasOptionalMessage; } |
| 7017 | } |
| 7018 | public global::Google.ProtocolBuffers.TestProtos.TestRequired OptionalMessage { |
| 7019 | get { return result.OptionalMessage; } |
| 7020 | set { SetOptionalMessage(value); } |
| 7021 | } |
| 7022 | public Builder SetOptionalMessage(global::Google.ProtocolBuffers.TestProtos.TestRequired value) { |
Jon Skeet | 642a814 | 2009-01-27 12:25:21 +0000 | [diff] [blame] | 7023 | pb::ThrowHelper.ThrowIfNull(value, "value"); |
Jon Skeet | 6803686 | 2008-10-22 13:30:34 +0100 | [diff] [blame] | 7024 | result.hasOptionalMessage = true; |
| 7025 | result.optionalMessage_ = value; |
| 7026 | return this; |
| 7027 | } |
| 7028 | public Builder SetOptionalMessage(global::Google.ProtocolBuffers.TestProtos.TestRequired.Builder builderForValue) { |
Jon Skeet | 642a814 | 2009-01-27 12:25:21 +0000 | [diff] [blame] | 7029 | pb::ThrowHelper.ThrowIfNull(builderForValue, "builderForValue"); |
Jon Skeet | 6803686 | 2008-10-22 13:30:34 +0100 | [diff] [blame] | 7030 | result.hasOptionalMessage = true; |
| 7031 | result.optionalMessage_ = builderForValue.Build(); |
| 7032 | return this; |
| 7033 | } |
| 7034 | public Builder MergeOptionalMessage(global::Google.ProtocolBuffers.TestProtos.TestRequired value) { |
Jon Skeet | 642a814 | 2009-01-27 12:25:21 +0000 | [diff] [blame] | 7035 | pb::ThrowHelper.ThrowIfNull(value, "value"); |
Jon Skeet | 6803686 | 2008-10-22 13:30:34 +0100 | [diff] [blame] | 7036 | if (result.HasOptionalMessage && |
| 7037 | result.optionalMessage_ != global::Google.ProtocolBuffers.TestProtos.TestRequired.DefaultInstance) { |
| 7038 | result.optionalMessage_ = global::Google.ProtocolBuffers.TestProtos.TestRequired.CreateBuilder(result.optionalMessage_).MergeFrom(value).BuildPartial(); |
| 7039 | } else { |
| 7040 | result.optionalMessage_ = value; |
| 7041 | } |
| 7042 | result.hasOptionalMessage = true; |
| 7043 | return this; |
| 7044 | } |
| 7045 | public Builder ClearOptionalMessage() { |
| 7046 | result.hasOptionalMessage = false; |
| 7047 | result.optionalMessage_ = global::Google.ProtocolBuffers.TestProtos.TestRequired.DefaultInstance; |
| 7048 | return this; |
| 7049 | } |
| 7050 | |
| 7051 | public scg::IList<global::Google.ProtocolBuffers.TestProtos.TestRequired> RepeatedMessageList { |
| 7052 | get { return result.repeatedMessage_; } |
| 7053 | } |
| 7054 | public int RepeatedMessageCount { |
| 7055 | get { return result.RepeatedMessageCount; } |
| 7056 | } |
| 7057 | public global::Google.ProtocolBuffers.TestProtos.TestRequired GetRepeatedMessage(int index) { |
| 7058 | return result.GetRepeatedMessage(index); |
| 7059 | } |
| 7060 | public Builder SetRepeatedMessage(int index, global::Google.ProtocolBuffers.TestProtos.TestRequired value) { |
Jon Skeet | 642a814 | 2009-01-27 12:25:21 +0000 | [diff] [blame] | 7061 | pb::ThrowHelper.ThrowIfNull(value, "value"); |
Jon Skeet | 6803686 | 2008-10-22 13:30:34 +0100 | [diff] [blame] | 7062 | result.repeatedMessage_[index] = value; |
| 7063 | return this; |
| 7064 | } |
| 7065 | public Builder SetRepeatedMessage(int index, global::Google.ProtocolBuffers.TestProtos.TestRequired.Builder builderForValue) { |
Jon Skeet | 642a814 | 2009-01-27 12:25:21 +0000 | [diff] [blame] | 7066 | pb::ThrowHelper.ThrowIfNull(builderForValue, "builderForValue"); |
Jon Skeet | 6803686 | 2008-10-22 13:30:34 +0100 | [diff] [blame] | 7067 | result.repeatedMessage_[index] = builderForValue.Build(); |
| 7068 | return this; |
| 7069 | } |
| 7070 | public Builder AddRepeatedMessage(global::Google.ProtocolBuffers.TestProtos.TestRequired value) { |
Jon Skeet | 642a814 | 2009-01-27 12:25:21 +0000 | [diff] [blame] | 7071 | pb::ThrowHelper.ThrowIfNull(value, "value"); |
Jon Skeet | 6803686 | 2008-10-22 13:30:34 +0100 | [diff] [blame] | 7072 | result.repeatedMessage_.Add(value); |
| 7073 | return this; |
| 7074 | } |
| 7075 | public Builder AddRepeatedMessage(global::Google.ProtocolBuffers.TestProtos.TestRequired.Builder builderForValue) { |
Jon Skeet | 642a814 | 2009-01-27 12:25:21 +0000 | [diff] [blame] | 7076 | pb::ThrowHelper.ThrowIfNull(builderForValue, "builderForValue"); |
Jon Skeet | 6803686 | 2008-10-22 13:30:34 +0100 | [diff] [blame] | 7077 | result.repeatedMessage_.Add(builderForValue.Build()); |
| 7078 | return this; |
| 7079 | } |
| 7080 | public Builder AddRangeRepeatedMessage(scg::IEnumerable<global::Google.ProtocolBuffers.TestProtos.TestRequired> values) { |
| 7081 | base.AddRange(values, result.repeatedMessage_); |
| 7082 | return this; |
| 7083 | } |
| 7084 | public Builder ClearRepeatedMessage() { |
| 7085 | result.repeatedMessage_.Clear(); |
| 7086 | return this; |
| 7087 | } |
| 7088 | |
| 7089 | public bool HasDummy { |
| 7090 | get { return result.HasDummy; } |
| 7091 | } |
| 7092 | public int Dummy { |
| 7093 | get { return result.Dummy; } |
| 7094 | set { SetDummy(value); } |
| 7095 | } |
| 7096 | public Builder SetDummy(int value) { |
| 7097 | result.hasDummy = true; |
| 7098 | result.dummy_ = value; |
| 7099 | return this; |
| 7100 | } |
| 7101 | public Builder ClearDummy() { |
| 7102 | result.hasDummy = false; |
| 7103 | result.dummy_ = 0; |
| 7104 | return this; |
| 7105 | } |
| 7106 | } |
| 7107 | } |
| 7108 | |
| 7109 | public sealed partial class TestForeignNested : pb::GeneratedMessage<TestForeignNested, TestForeignNested.Builder> { |
| 7110 | private static readonly TestForeignNested defaultInstance = new Builder().BuildPartial(); |
| 7111 | public static TestForeignNested DefaultInstance { |
| 7112 | get { return defaultInstance; } |
| 7113 | } |
| 7114 | |
| 7115 | public override TestForeignNested DefaultInstanceForType { |
| 7116 | get { return defaultInstance; } |
| 7117 | } |
| 7118 | |
| 7119 | protected override TestForeignNested ThisMessage { |
| 7120 | get { return this; } |
| 7121 | } |
| 7122 | |
| 7123 | public static pbd::MessageDescriptor Descriptor { |
| 7124 | get { return global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.internal__static_protobuf_unittest_TestForeignNested__Descriptor; } |
| 7125 | } |
| 7126 | |
| 7127 | protected override pb::FieldAccess.FieldAccessorTable<TestForeignNested, TestForeignNested.Builder> InternalFieldAccessors { |
| 7128 | get { return global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.internal__static_protobuf_unittest_TestForeignNested__FieldAccessorTable; } |
| 7129 | } |
| 7130 | |
| 7131 | private bool hasForeignNested; |
| 7132 | private global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedMessage foreignNested_ = global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedMessage.DefaultInstance; |
| 7133 | public bool HasForeignNested { |
| 7134 | get { return hasForeignNested; } |
| 7135 | } |
| 7136 | public global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedMessage ForeignNested { |
| 7137 | get { return foreignNested_; } |
| 7138 | } |
| 7139 | |
| 7140 | public override bool IsInitialized { |
| 7141 | get { |
| 7142 | return true; |
| 7143 | } |
| 7144 | } |
| 7145 | |
| 7146 | public override void WriteTo(pb::CodedOutputStream output) { |
| 7147 | if (HasForeignNested) { |
| 7148 | output.WriteMessage(1, ForeignNested); |
| 7149 | } |
| 7150 | UnknownFields.WriteTo(output); |
| 7151 | } |
| 7152 | |
| 7153 | private int memoizedSerializedSize = -1; |
| 7154 | public override int SerializedSize { |
| 7155 | get { |
| 7156 | int size = memoizedSerializedSize; |
| 7157 | if (size != -1) return size; |
| 7158 | |
| 7159 | size = 0; |
| 7160 | if (HasForeignNested) { |
| 7161 | size += pb::CodedOutputStream.ComputeMessageSize(1, ForeignNested); |
| 7162 | } |
| 7163 | size += UnknownFields.SerializedSize; |
| 7164 | memoizedSerializedSize = size; |
| 7165 | return size; |
| 7166 | } |
| 7167 | } |
| 7168 | |
| 7169 | public static TestForeignNested ParseFrom(pb::ByteString data) { |
| 7170 | return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed(); |
| 7171 | } |
| 7172 | public static TestForeignNested ParseFrom(pb::ByteString data, pb::ExtensionRegistry extensionRegistry) { |
| 7173 | return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed(); |
| 7174 | } |
| 7175 | public static TestForeignNested ParseFrom(byte[] data) { |
| 7176 | return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed(); |
| 7177 | } |
| 7178 | public static TestForeignNested ParseFrom(byte[] data, pb::ExtensionRegistry extensionRegistry) { |
| 7179 | return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed(); |
| 7180 | } |
| 7181 | public static TestForeignNested ParseFrom(global::System.IO.Stream input) { |
| 7182 | return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed(); |
| 7183 | } |
| 7184 | public static TestForeignNested ParseFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) { |
| 7185 | return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed(); |
| 7186 | } |
| 7187 | public static TestForeignNested ParseFrom(pb::CodedInputStream input) { |
| 7188 | return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed(); |
| 7189 | } |
| 7190 | public static TestForeignNested ParseFrom(pb::CodedInputStream input, pb::ExtensionRegistry extensionRegistry) { |
| 7191 | return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed(); |
| 7192 | } |
| 7193 | public static Builder CreateBuilder() { return new Builder(); } |
| 7194 | public override Builder CreateBuilderForType() { return new Builder(); } |
| 7195 | public static Builder CreateBuilder(TestForeignNested prototype) { |
| 7196 | return (Builder) new Builder().MergeFrom(prototype); |
| 7197 | } |
| 7198 | |
| 7199 | public sealed partial class Builder : pb::GeneratedBuilder<TestForeignNested, Builder> { |
| 7200 | protected override Builder ThisBuilder { |
| 7201 | get { return this; } |
| 7202 | } |
| 7203 | public Builder() {} |
| 7204 | |
| 7205 | TestForeignNested result = new TestForeignNested(); |
| 7206 | |
| 7207 | protected override TestForeignNested MessageBeingBuilt { |
| 7208 | get { return result; } |
| 7209 | } |
| 7210 | |
| 7211 | public override Builder Clear() { |
| 7212 | result = new TestForeignNested(); |
| 7213 | return this; |
| 7214 | } |
| 7215 | |
| 7216 | public override Builder Clone() { |
| 7217 | return new Builder().MergeFrom(result); |
| 7218 | } |
| 7219 | |
| 7220 | public override pbd::MessageDescriptor DescriptorForType { |
| 7221 | get { return TestForeignNested.Descriptor; } |
| 7222 | } |
| 7223 | |
| 7224 | public override TestForeignNested DefaultInstanceForType { |
| 7225 | get { return TestForeignNested.DefaultInstance; } |
| 7226 | } |
| 7227 | |
| 7228 | public override TestForeignNested BuildPartial() { |
| 7229 | TestForeignNested returnMe = result; |
| 7230 | result = null; |
| 7231 | return returnMe; |
| 7232 | } |
| 7233 | |
| 7234 | public override Builder MergeFrom(pb::IMessage other) { |
| 7235 | if (other is TestForeignNested) { |
| 7236 | return MergeFrom((TestForeignNested) other); |
| 7237 | } else { |
| 7238 | base.MergeFrom(other); |
| 7239 | return this; |
| 7240 | } |
| 7241 | } |
| 7242 | |
| 7243 | public override Builder MergeFrom(TestForeignNested other) { |
| 7244 | if (other == TestForeignNested.DefaultInstance) return this; |
| 7245 | if (other.HasForeignNested) { |
| 7246 | MergeForeignNested(other.ForeignNested); |
| 7247 | } |
| 7248 | this.MergeUnknownFields(other.UnknownFields); |
| 7249 | return this; |
| 7250 | } |
| 7251 | |
| 7252 | public override Builder MergeFrom(pb::CodedInputStream input) { |
| 7253 | return MergeFrom(input, pb::ExtensionRegistry.Empty); |
| 7254 | } |
| 7255 | |
| 7256 | public override Builder MergeFrom(pb::CodedInputStream input, pb::ExtensionRegistry extensionRegistry) { |
| 7257 | pb::UnknownFieldSet.Builder unknownFields = pb::UnknownFieldSet.CreateBuilder(this.UnknownFields); |
| 7258 | while (true) { |
| 7259 | uint tag = input.ReadTag(); |
| 7260 | switch (tag) { |
| 7261 | case 0: { |
| 7262 | this.UnknownFields = unknownFields.Build(); |
| 7263 | return this; |
| 7264 | } |
| 7265 | default: { |
| 7266 | if (!ParseUnknownField(input, unknownFields, extensionRegistry, tag)) { |
| 7267 | this.UnknownFields = unknownFields.Build(); |
| 7268 | return this; |
| 7269 | } |
| 7270 | break; |
| 7271 | } |
| 7272 | case 10: { |
| 7273 | global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedMessage.Builder subBuilder = global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedMessage.CreateBuilder(); |
| 7274 | if (HasForeignNested) { |
| 7275 | subBuilder.MergeFrom(ForeignNested); |
| 7276 | } |
| 7277 | input.ReadMessage(subBuilder, extensionRegistry); |
| 7278 | ForeignNested = subBuilder.BuildPartial(); |
| 7279 | break; |
| 7280 | } |
| 7281 | } |
| 7282 | } |
| 7283 | } |
| 7284 | |
| 7285 | |
| 7286 | public bool HasForeignNested { |
| 7287 | get { return result.HasForeignNested; } |
| 7288 | } |
| 7289 | public global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedMessage ForeignNested { |
| 7290 | get { return result.ForeignNested; } |
| 7291 | set { SetForeignNested(value); } |
| 7292 | } |
| 7293 | public Builder SetForeignNested(global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedMessage value) { |
Jon Skeet | 642a814 | 2009-01-27 12:25:21 +0000 | [diff] [blame] | 7294 | pb::ThrowHelper.ThrowIfNull(value, "value"); |
Jon Skeet | 6803686 | 2008-10-22 13:30:34 +0100 | [diff] [blame] | 7295 | result.hasForeignNested = true; |
| 7296 | result.foreignNested_ = value; |
| 7297 | return this; |
| 7298 | } |
| 7299 | public Builder SetForeignNested(global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedMessage.Builder builderForValue) { |
Jon Skeet | 642a814 | 2009-01-27 12:25:21 +0000 | [diff] [blame] | 7300 | pb::ThrowHelper.ThrowIfNull(builderForValue, "builderForValue"); |
Jon Skeet | 6803686 | 2008-10-22 13:30:34 +0100 | [diff] [blame] | 7301 | result.hasForeignNested = true; |
| 7302 | result.foreignNested_ = builderForValue.Build(); |
| 7303 | return this; |
| 7304 | } |
| 7305 | public Builder MergeForeignNested(global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedMessage value) { |
Jon Skeet | 642a814 | 2009-01-27 12:25:21 +0000 | [diff] [blame] | 7306 | pb::ThrowHelper.ThrowIfNull(value, "value"); |
Jon Skeet | 6803686 | 2008-10-22 13:30:34 +0100 | [diff] [blame] | 7307 | if (result.HasForeignNested && |
| 7308 | result.foreignNested_ != global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedMessage.DefaultInstance) { |
| 7309 | result.foreignNested_ = global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedMessage.CreateBuilder(result.foreignNested_).MergeFrom(value).BuildPartial(); |
| 7310 | } else { |
| 7311 | result.foreignNested_ = value; |
| 7312 | } |
| 7313 | result.hasForeignNested = true; |
| 7314 | return this; |
| 7315 | } |
| 7316 | public Builder ClearForeignNested() { |
| 7317 | result.hasForeignNested = false; |
| 7318 | result.foreignNested_ = global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedMessage.DefaultInstance; |
| 7319 | return this; |
| 7320 | } |
| 7321 | } |
| 7322 | } |
| 7323 | |
| 7324 | public sealed partial class TestEmptyMessage : pb::GeneratedMessage<TestEmptyMessage, TestEmptyMessage.Builder> { |
| 7325 | private static readonly TestEmptyMessage defaultInstance = new Builder().BuildPartial(); |
| 7326 | public static TestEmptyMessage DefaultInstance { |
| 7327 | get { return defaultInstance; } |
| 7328 | } |
| 7329 | |
| 7330 | public override TestEmptyMessage DefaultInstanceForType { |
| 7331 | get { return defaultInstance; } |
| 7332 | } |
| 7333 | |
| 7334 | protected override TestEmptyMessage ThisMessage { |
| 7335 | get { return this; } |
| 7336 | } |
| 7337 | |
| 7338 | public static pbd::MessageDescriptor Descriptor { |
| 7339 | get { return global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.internal__static_protobuf_unittest_TestEmptyMessage__Descriptor; } |
| 7340 | } |
| 7341 | |
| 7342 | protected override pb::FieldAccess.FieldAccessorTable<TestEmptyMessage, TestEmptyMessage.Builder> InternalFieldAccessors { |
| 7343 | get { return global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.internal__static_protobuf_unittest_TestEmptyMessage__FieldAccessorTable; } |
| 7344 | } |
| 7345 | |
| 7346 | public override bool IsInitialized { |
| 7347 | get { |
| 7348 | return true; |
| 7349 | } |
| 7350 | } |
| 7351 | |
| 7352 | public override void WriteTo(pb::CodedOutputStream output) { |
| 7353 | UnknownFields.WriteTo(output); |
| 7354 | } |
| 7355 | |
| 7356 | private int memoizedSerializedSize = -1; |
| 7357 | public override int SerializedSize { |
| 7358 | get { |
| 7359 | int size = memoizedSerializedSize; |
| 7360 | if (size != -1) return size; |
| 7361 | |
| 7362 | size = 0; |
| 7363 | size += UnknownFields.SerializedSize; |
| 7364 | memoizedSerializedSize = size; |
| 7365 | return size; |
| 7366 | } |
| 7367 | } |
| 7368 | |
| 7369 | public static TestEmptyMessage ParseFrom(pb::ByteString data) { |
| 7370 | return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed(); |
| 7371 | } |
| 7372 | public static TestEmptyMessage ParseFrom(pb::ByteString data, pb::ExtensionRegistry extensionRegistry) { |
| 7373 | return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed(); |
| 7374 | } |
| 7375 | public static TestEmptyMessage ParseFrom(byte[] data) { |
| 7376 | return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed(); |
| 7377 | } |
| 7378 | public static TestEmptyMessage ParseFrom(byte[] data, pb::ExtensionRegistry extensionRegistry) { |
| 7379 | return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed(); |
| 7380 | } |
| 7381 | public static TestEmptyMessage ParseFrom(global::System.IO.Stream input) { |
| 7382 | return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed(); |
| 7383 | } |
| 7384 | public static TestEmptyMessage ParseFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) { |
| 7385 | return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed(); |
| 7386 | } |
| 7387 | public static TestEmptyMessage ParseFrom(pb::CodedInputStream input) { |
| 7388 | return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed(); |
| 7389 | } |
| 7390 | public static TestEmptyMessage ParseFrom(pb::CodedInputStream input, pb::ExtensionRegistry extensionRegistry) { |
| 7391 | return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed(); |
| 7392 | } |
| 7393 | public static Builder CreateBuilder() { return new Builder(); } |
| 7394 | public override Builder CreateBuilderForType() { return new Builder(); } |
| 7395 | public static Builder CreateBuilder(TestEmptyMessage prototype) { |
| 7396 | return (Builder) new Builder().MergeFrom(prototype); |
| 7397 | } |
| 7398 | |
| 7399 | public sealed partial class Builder : pb::GeneratedBuilder<TestEmptyMessage, Builder> { |
| 7400 | protected override Builder ThisBuilder { |
| 7401 | get { return this; } |
| 7402 | } |
| 7403 | public Builder() {} |
| 7404 | |
| 7405 | TestEmptyMessage result = new TestEmptyMessage(); |
| 7406 | |
| 7407 | protected override TestEmptyMessage MessageBeingBuilt { |
| 7408 | get { return result; } |
| 7409 | } |
| 7410 | |
| 7411 | public override Builder Clear() { |
| 7412 | result = new TestEmptyMessage(); |
| 7413 | return this; |
| 7414 | } |
| 7415 | |
| 7416 | public override Builder Clone() { |
| 7417 | return new Builder().MergeFrom(result); |
| 7418 | } |
| 7419 | |
| 7420 | public override pbd::MessageDescriptor DescriptorForType { |
| 7421 | get { return TestEmptyMessage.Descriptor; } |
| 7422 | } |
| 7423 | |
| 7424 | public override TestEmptyMessage DefaultInstanceForType { |
| 7425 | get { return TestEmptyMessage.DefaultInstance; } |
| 7426 | } |
| 7427 | |
| 7428 | public override TestEmptyMessage BuildPartial() { |
| 7429 | TestEmptyMessage returnMe = result; |
| 7430 | result = null; |
| 7431 | return returnMe; |
| 7432 | } |
| 7433 | |
| 7434 | public override Builder MergeFrom(pb::IMessage other) { |
| 7435 | if (other is TestEmptyMessage) { |
| 7436 | return MergeFrom((TestEmptyMessage) other); |
| 7437 | } else { |
| 7438 | base.MergeFrom(other); |
| 7439 | return this; |
| 7440 | } |
| 7441 | } |
| 7442 | |
| 7443 | public override Builder MergeFrom(TestEmptyMessage other) { |
| 7444 | if (other == TestEmptyMessage.DefaultInstance) return this; |
| 7445 | this.MergeUnknownFields(other.UnknownFields); |
| 7446 | return this; |
| 7447 | } |
| 7448 | |
| 7449 | public override Builder MergeFrom(pb::CodedInputStream input) { |
| 7450 | return MergeFrom(input, pb::ExtensionRegistry.Empty); |
| 7451 | } |
| 7452 | |
| 7453 | public override Builder MergeFrom(pb::CodedInputStream input, pb::ExtensionRegistry extensionRegistry) { |
| 7454 | pb::UnknownFieldSet.Builder unknownFields = pb::UnknownFieldSet.CreateBuilder(this.UnknownFields); |
| 7455 | while (true) { |
| 7456 | uint tag = input.ReadTag(); |
| 7457 | switch (tag) { |
| 7458 | case 0: { |
| 7459 | this.UnknownFields = unknownFields.Build(); |
| 7460 | return this; |
| 7461 | } |
| 7462 | default: { |
| 7463 | if (!ParseUnknownField(input, unknownFields, extensionRegistry, tag)) { |
| 7464 | this.UnknownFields = unknownFields.Build(); |
| 7465 | return this; |
| 7466 | } |
| 7467 | break; |
| 7468 | } |
| 7469 | } |
| 7470 | } |
| 7471 | } |
| 7472 | |
| 7473 | } |
| 7474 | } |
| 7475 | |
| 7476 | public sealed partial class TestEmptyMessageWithExtensions : pb::ExtendableMessage<TestEmptyMessageWithExtensions, TestEmptyMessageWithExtensions.Builder> { |
| 7477 | private static readonly TestEmptyMessageWithExtensions defaultInstance = new Builder().BuildPartial(); |
| 7478 | public static TestEmptyMessageWithExtensions DefaultInstance { |
| 7479 | get { return defaultInstance; } |
| 7480 | } |
| 7481 | |
| 7482 | public override TestEmptyMessageWithExtensions DefaultInstanceForType { |
| 7483 | get { return defaultInstance; } |
| 7484 | } |
| 7485 | |
| 7486 | protected override TestEmptyMessageWithExtensions ThisMessage { |
| 7487 | get { return this; } |
| 7488 | } |
| 7489 | |
| 7490 | public static pbd::MessageDescriptor Descriptor { |
| 7491 | get { return global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.internal__static_protobuf_unittest_TestEmptyMessageWithExtensions__Descriptor; } |
| 7492 | } |
| 7493 | |
| 7494 | protected override pb::FieldAccess.FieldAccessorTable<TestEmptyMessageWithExtensions, TestEmptyMessageWithExtensions.Builder> InternalFieldAccessors { |
| 7495 | get { return global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.internal__static_protobuf_unittest_TestEmptyMessageWithExtensions__FieldAccessorTable; } |
| 7496 | } |
| 7497 | |
| 7498 | public override bool IsInitialized { |
| 7499 | get { |
| 7500 | if (!ExtensionsAreInitialized) return false; |
| 7501 | return true; |
| 7502 | } |
| 7503 | } |
| 7504 | |
| 7505 | public override void WriteTo(pb::CodedOutputStream output) { |
| 7506 | pb::ExtendableMessage<TestEmptyMessageWithExtensions, TestEmptyMessageWithExtensions.Builder>.ExtensionWriter extensionWriter = CreateExtensionWriter(this); |
| 7507 | extensionWriter.WriteUntil(536870912, output); |
| 7508 | UnknownFields.WriteTo(output); |
| 7509 | } |
| 7510 | |
| 7511 | private int memoizedSerializedSize = -1; |
| 7512 | public override int SerializedSize { |
| 7513 | get { |
| 7514 | int size = memoizedSerializedSize; |
| 7515 | if (size != -1) return size; |
| 7516 | |
| 7517 | size = 0; |
| 7518 | size += ExtensionsSerializedSize; |
| 7519 | size += UnknownFields.SerializedSize; |
| 7520 | memoizedSerializedSize = size; |
| 7521 | return size; |
| 7522 | } |
| 7523 | } |
| 7524 | |
| 7525 | public static TestEmptyMessageWithExtensions ParseFrom(pb::ByteString data) { |
| 7526 | return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed(); |
| 7527 | } |
| 7528 | public static TestEmptyMessageWithExtensions ParseFrom(pb::ByteString data, pb::ExtensionRegistry extensionRegistry) { |
| 7529 | return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed(); |
| 7530 | } |
| 7531 | public static TestEmptyMessageWithExtensions ParseFrom(byte[] data) { |
| 7532 | return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed(); |
| 7533 | } |
| 7534 | public static TestEmptyMessageWithExtensions ParseFrom(byte[] data, pb::ExtensionRegistry extensionRegistry) { |
| 7535 | return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed(); |
| 7536 | } |
| 7537 | public static TestEmptyMessageWithExtensions ParseFrom(global::System.IO.Stream input) { |
| 7538 | return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed(); |
| 7539 | } |
| 7540 | public static TestEmptyMessageWithExtensions ParseFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) { |
| 7541 | return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed(); |
| 7542 | } |
| 7543 | public static TestEmptyMessageWithExtensions ParseFrom(pb::CodedInputStream input) { |
| 7544 | return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed(); |
| 7545 | } |
| 7546 | public static TestEmptyMessageWithExtensions ParseFrom(pb::CodedInputStream input, pb::ExtensionRegistry extensionRegistry) { |
| 7547 | return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed(); |
| 7548 | } |
| 7549 | public static Builder CreateBuilder() { return new Builder(); } |
| 7550 | public override Builder CreateBuilderForType() { return new Builder(); } |
| 7551 | public static Builder CreateBuilder(TestEmptyMessageWithExtensions prototype) { |
| 7552 | return (Builder) new Builder().MergeFrom(prototype); |
| 7553 | } |
| 7554 | |
| 7555 | public sealed partial class Builder : pb::ExtendableBuilder<TestEmptyMessageWithExtensions, Builder> { |
| 7556 | protected override Builder ThisBuilder { |
| 7557 | get { return this; } |
| 7558 | } |
| 7559 | public Builder() {} |
| 7560 | |
| 7561 | TestEmptyMessageWithExtensions result = new TestEmptyMessageWithExtensions(); |
| 7562 | |
| 7563 | protected override TestEmptyMessageWithExtensions MessageBeingBuilt { |
| 7564 | get { return result; } |
| 7565 | } |
| 7566 | |
| 7567 | public override Builder Clear() { |
| 7568 | result = new TestEmptyMessageWithExtensions(); |
| 7569 | return this; |
| 7570 | } |
| 7571 | |
| 7572 | public override Builder Clone() { |
| 7573 | return new Builder().MergeFrom(result); |
| 7574 | } |
| 7575 | |
| 7576 | public override pbd::MessageDescriptor DescriptorForType { |
| 7577 | get { return TestEmptyMessageWithExtensions.Descriptor; } |
| 7578 | } |
| 7579 | |
| 7580 | public override TestEmptyMessageWithExtensions DefaultInstanceForType { |
| 7581 | get { return TestEmptyMessageWithExtensions.DefaultInstance; } |
| 7582 | } |
| 7583 | |
| 7584 | public override TestEmptyMessageWithExtensions BuildPartial() { |
| 7585 | TestEmptyMessageWithExtensions returnMe = result; |
| 7586 | result = null; |
| 7587 | return returnMe; |
| 7588 | } |
| 7589 | |
| 7590 | public override Builder MergeFrom(pb::IMessage other) { |
| 7591 | if (other is TestEmptyMessageWithExtensions) { |
| 7592 | return MergeFrom((TestEmptyMessageWithExtensions) other); |
| 7593 | } else { |
| 7594 | base.MergeFrom(other); |
| 7595 | return this; |
| 7596 | } |
| 7597 | } |
| 7598 | |
| 7599 | public override Builder MergeFrom(TestEmptyMessageWithExtensions other) { |
| 7600 | if (other == TestEmptyMessageWithExtensions.DefaultInstance) return this; |
Jon Skeet | 49fcd4f | 2009-01-27 14:43:10 +0000 | [diff] [blame^] | 7601 | this.MergeExtensionFields(other); |
Jon Skeet | 6803686 | 2008-10-22 13:30:34 +0100 | [diff] [blame] | 7602 | this.MergeUnknownFields(other.UnknownFields); |
| 7603 | return this; |
| 7604 | } |
| 7605 | |
| 7606 | public override Builder MergeFrom(pb::CodedInputStream input) { |
| 7607 | return MergeFrom(input, pb::ExtensionRegistry.Empty); |
| 7608 | } |
| 7609 | |
| 7610 | public override Builder MergeFrom(pb::CodedInputStream input, pb::ExtensionRegistry extensionRegistry) { |
| 7611 | pb::UnknownFieldSet.Builder unknownFields = pb::UnknownFieldSet.CreateBuilder(this.UnknownFields); |
| 7612 | while (true) { |
| 7613 | uint tag = input.ReadTag(); |
| 7614 | switch (tag) { |
| 7615 | case 0: { |
| 7616 | this.UnknownFields = unknownFields.Build(); |
| 7617 | return this; |
| 7618 | } |
| 7619 | default: { |
| 7620 | if (!ParseUnknownField(input, unknownFields, extensionRegistry, tag)) { |
| 7621 | this.UnknownFields = unknownFields.Build(); |
| 7622 | return this; |
| 7623 | } |
| 7624 | break; |
| 7625 | } |
| 7626 | } |
| 7627 | } |
| 7628 | } |
| 7629 | |
| 7630 | } |
| 7631 | } |
| 7632 | |
| 7633 | public sealed partial class TestReallyLargeTagNumber : pb::GeneratedMessage<TestReallyLargeTagNumber, TestReallyLargeTagNumber.Builder> { |
| 7634 | private static readonly TestReallyLargeTagNumber defaultInstance = new Builder().BuildPartial(); |
| 7635 | public static TestReallyLargeTagNumber DefaultInstance { |
| 7636 | get { return defaultInstance; } |
| 7637 | } |
| 7638 | |
| 7639 | public override TestReallyLargeTagNumber DefaultInstanceForType { |
| 7640 | get { return defaultInstance; } |
| 7641 | } |
| 7642 | |
| 7643 | protected override TestReallyLargeTagNumber ThisMessage { |
| 7644 | get { return this; } |
| 7645 | } |
| 7646 | |
| 7647 | public static pbd::MessageDescriptor Descriptor { |
| 7648 | get { return global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.internal__static_protobuf_unittest_TestReallyLargeTagNumber__Descriptor; } |
| 7649 | } |
| 7650 | |
| 7651 | protected override pb::FieldAccess.FieldAccessorTable<TestReallyLargeTagNumber, TestReallyLargeTagNumber.Builder> InternalFieldAccessors { |
| 7652 | get { return global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.internal__static_protobuf_unittest_TestReallyLargeTagNumber__FieldAccessorTable; } |
| 7653 | } |
| 7654 | |
| 7655 | private bool hasA; |
| 7656 | private int a_ = 0; |
| 7657 | public bool HasA { |
| 7658 | get { return hasA; } |
| 7659 | } |
| 7660 | public int A { |
| 7661 | get { return a_; } |
| 7662 | } |
| 7663 | |
| 7664 | private bool hasBb; |
| 7665 | private int bb_ = 0; |
| 7666 | public bool HasBb { |
| 7667 | get { return hasBb; } |
| 7668 | } |
| 7669 | public int Bb { |
| 7670 | get { return bb_; } |
| 7671 | } |
| 7672 | |
| 7673 | public override bool IsInitialized { |
| 7674 | get { |
| 7675 | return true; |
| 7676 | } |
| 7677 | } |
| 7678 | |
| 7679 | public override void WriteTo(pb::CodedOutputStream output) { |
| 7680 | if (HasA) { |
| 7681 | output.WriteInt32(1, A); |
| 7682 | } |
| 7683 | if (HasBb) { |
| 7684 | output.WriteInt32(268435455, Bb); |
| 7685 | } |
| 7686 | UnknownFields.WriteTo(output); |
| 7687 | } |
| 7688 | |
| 7689 | private int memoizedSerializedSize = -1; |
| 7690 | public override int SerializedSize { |
| 7691 | get { |
| 7692 | int size = memoizedSerializedSize; |
| 7693 | if (size != -1) return size; |
| 7694 | |
| 7695 | size = 0; |
| 7696 | if (HasA) { |
| 7697 | size += pb::CodedOutputStream.ComputeInt32Size(1, A); |
| 7698 | } |
| 7699 | if (HasBb) { |
| 7700 | size += pb::CodedOutputStream.ComputeInt32Size(268435455, Bb); |
| 7701 | } |
| 7702 | size += UnknownFields.SerializedSize; |
| 7703 | memoizedSerializedSize = size; |
| 7704 | return size; |
| 7705 | } |
| 7706 | } |
| 7707 | |
| 7708 | public static TestReallyLargeTagNumber ParseFrom(pb::ByteString data) { |
| 7709 | return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed(); |
| 7710 | } |
| 7711 | public static TestReallyLargeTagNumber ParseFrom(pb::ByteString data, pb::ExtensionRegistry extensionRegistry) { |
| 7712 | return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed(); |
| 7713 | } |
| 7714 | public static TestReallyLargeTagNumber ParseFrom(byte[] data) { |
| 7715 | return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed(); |
| 7716 | } |
| 7717 | public static TestReallyLargeTagNumber ParseFrom(byte[] data, pb::ExtensionRegistry extensionRegistry) { |
| 7718 | return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed(); |
| 7719 | } |
| 7720 | public static TestReallyLargeTagNumber ParseFrom(global::System.IO.Stream input) { |
| 7721 | return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed(); |
| 7722 | } |
| 7723 | public static TestReallyLargeTagNumber ParseFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) { |
| 7724 | return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed(); |
| 7725 | } |
| 7726 | public static TestReallyLargeTagNumber ParseFrom(pb::CodedInputStream input) { |
| 7727 | return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed(); |
| 7728 | } |
| 7729 | public static TestReallyLargeTagNumber ParseFrom(pb::CodedInputStream input, pb::ExtensionRegistry extensionRegistry) { |
| 7730 | return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed(); |
| 7731 | } |
| 7732 | public static Builder CreateBuilder() { return new Builder(); } |
| 7733 | public override Builder CreateBuilderForType() { return new Builder(); } |
| 7734 | public static Builder CreateBuilder(TestReallyLargeTagNumber prototype) { |
| 7735 | return (Builder) new Builder().MergeFrom(prototype); |
| 7736 | } |
| 7737 | |
| 7738 | public sealed partial class Builder : pb::GeneratedBuilder<TestReallyLargeTagNumber, Builder> { |
| 7739 | protected override Builder ThisBuilder { |
| 7740 | get { return this; } |
| 7741 | } |
| 7742 | public Builder() {} |
| 7743 | |
| 7744 | TestReallyLargeTagNumber result = new TestReallyLargeTagNumber(); |
| 7745 | |
| 7746 | protected override TestReallyLargeTagNumber MessageBeingBuilt { |
| 7747 | get { return result; } |
| 7748 | } |
| 7749 | |
| 7750 | public override Builder Clear() { |
| 7751 | result = new TestReallyLargeTagNumber(); |
| 7752 | return this; |
| 7753 | } |
| 7754 | |
| 7755 | public override Builder Clone() { |
| 7756 | return new Builder().MergeFrom(result); |
| 7757 | } |
| 7758 | |
| 7759 | public override pbd::MessageDescriptor DescriptorForType { |
| 7760 | get { return TestReallyLargeTagNumber.Descriptor; } |
| 7761 | } |
| 7762 | |
| 7763 | public override TestReallyLargeTagNumber DefaultInstanceForType { |
| 7764 | get { return TestReallyLargeTagNumber.DefaultInstance; } |
| 7765 | } |
| 7766 | |
| 7767 | public override TestReallyLargeTagNumber BuildPartial() { |
| 7768 | TestReallyLargeTagNumber returnMe = result; |
| 7769 | result = null; |
| 7770 | return returnMe; |
| 7771 | } |
| 7772 | |
| 7773 | public override Builder MergeFrom(pb::IMessage other) { |
| 7774 | if (other is TestReallyLargeTagNumber) { |
| 7775 | return MergeFrom((TestReallyLargeTagNumber) other); |
| 7776 | } else { |
| 7777 | base.MergeFrom(other); |
| 7778 | return this; |
| 7779 | } |
| 7780 | } |
| 7781 | |
| 7782 | public override Builder MergeFrom(TestReallyLargeTagNumber other) { |
| 7783 | if (other == TestReallyLargeTagNumber.DefaultInstance) return this; |
| 7784 | if (other.HasA) { |
| 7785 | A = other.A; |
| 7786 | } |
| 7787 | if (other.HasBb) { |
| 7788 | Bb = other.Bb; |
| 7789 | } |
| 7790 | this.MergeUnknownFields(other.UnknownFields); |
| 7791 | return this; |
| 7792 | } |
| 7793 | |
| 7794 | public override Builder MergeFrom(pb::CodedInputStream input) { |
| 7795 | return MergeFrom(input, pb::ExtensionRegistry.Empty); |
| 7796 | } |
| 7797 | |
| 7798 | public override Builder MergeFrom(pb::CodedInputStream input, pb::ExtensionRegistry extensionRegistry) { |
| 7799 | pb::UnknownFieldSet.Builder unknownFields = pb::UnknownFieldSet.CreateBuilder(this.UnknownFields); |
| 7800 | while (true) { |
| 7801 | uint tag = input.ReadTag(); |
| 7802 | switch (tag) { |
| 7803 | case 0: { |
| 7804 | this.UnknownFields = unknownFields.Build(); |
| 7805 | return this; |
| 7806 | } |
| 7807 | default: { |
| 7808 | if (!ParseUnknownField(input, unknownFields, extensionRegistry, tag)) { |
| 7809 | this.UnknownFields = unknownFields.Build(); |
| 7810 | return this; |
| 7811 | } |
| 7812 | break; |
| 7813 | } |
| 7814 | case 8: { |
| 7815 | A = input.ReadInt32(); |
| 7816 | break; |
| 7817 | } |
| 7818 | case 2147483640: { |
| 7819 | Bb = input.ReadInt32(); |
| 7820 | break; |
| 7821 | } |
| 7822 | } |
| 7823 | } |
| 7824 | } |
| 7825 | |
| 7826 | |
| 7827 | public bool HasA { |
| 7828 | get { return result.HasA; } |
| 7829 | } |
| 7830 | public int A { |
| 7831 | get { return result.A; } |
| 7832 | set { SetA(value); } |
| 7833 | } |
| 7834 | public Builder SetA(int value) { |
| 7835 | result.hasA = true; |
| 7836 | result.a_ = value; |
| 7837 | return this; |
| 7838 | } |
| 7839 | public Builder ClearA() { |
| 7840 | result.hasA = false; |
| 7841 | result.a_ = 0; |
| 7842 | return this; |
| 7843 | } |
| 7844 | |
| 7845 | public bool HasBb { |
| 7846 | get { return result.HasBb; } |
| 7847 | } |
| 7848 | public int Bb { |
| 7849 | get { return result.Bb; } |
| 7850 | set { SetBb(value); } |
| 7851 | } |
| 7852 | public Builder SetBb(int value) { |
| 7853 | result.hasBb = true; |
| 7854 | result.bb_ = value; |
| 7855 | return this; |
| 7856 | } |
| 7857 | public Builder ClearBb() { |
| 7858 | result.hasBb = false; |
| 7859 | result.bb_ = 0; |
| 7860 | return this; |
| 7861 | } |
| 7862 | } |
| 7863 | } |
| 7864 | |
| 7865 | public sealed partial class TestRecursiveMessage : pb::GeneratedMessage<TestRecursiveMessage, TestRecursiveMessage.Builder> { |
| 7866 | private static readonly TestRecursiveMessage defaultInstance = new Builder().BuildPartial(); |
| 7867 | public static TestRecursiveMessage DefaultInstance { |
| 7868 | get { return defaultInstance; } |
| 7869 | } |
| 7870 | |
| 7871 | public override TestRecursiveMessage DefaultInstanceForType { |
| 7872 | get { return defaultInstance; } |
| 7873 | } |
| 7874 | |
| 7875 | protected override TestRecursiveMessage ThisMessage { |
| 7876 | get { return this; } |
| 7877 | } |
| 7878 | |
| 7879 | public static pbd::MessageDescriptor Descriptor { |
| 7880 | get { return global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.internal__static_protobuf_unittest_TestRecursiveMessage__Descriptor; } |
| 7881 | } |
| 7882 | |
| 7883 | protected override pb::FieldAccess.FieldAccessorTable<TestRecursiveMessage, TestRecursiveMessage.Builder> InternalFieldAccessors { |
| 7884 | get { return global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.internal__static_protobuf_unittest_TestRecursiveMessage__FieldAccessorTable; } |
| 7885 | } |
| 7886 | |
| 7887 | private bool hasA; |
| 7888 | private global::Google.ProtocolBuffers.TestProtos.TestRecursiveMessage a_ = global::Google.ProtocolBuffers.TestProtos.TestRecursiveMessage.DefaultInstance; |
| 7889 | public bool HasA { |
| 7890 | get { return hasA; } |
| 7891 | } |
| 7892 | public global::Google.ProtocolBuffers.TestProtos.TestRecursiveMessage A { |
| 7893 | get { return a_; } |
| 7894 | } |
| 7895 | |
| 7896 | private bool hasI; |
| 7897 | private int i_ = 0; |
| 7898 | public bool HasI { |
| 7899 | get { return hasI; } |
| 7900 | } |
| 7901 | public int I { |
| 7902 | get { return i_; } |
| 7903 | } |
| 7904 | |
| 7905 | public override bool IsInitialized { |
| 7906 | get { |
| 7907 | return true; |
| 7908 | } |
| 7909 | } |
| 7910 | |
| 7911 | public override void WriteTo(pb::CodedOutputStream output) { |
| 7912 | if (HasA) { |
| 7913 | output.WriteMessage(1, A); |
| 7914 | } |
| 7915 | if (HasI) { |
| 7916 | output.WriteInt32(2, I); |
| 7917 | } |
| 7918 | UnknownFields.WriteTo(output); |
| 7919 | } |
| 7920 | |
| 7921 | private int memoizedSerializedSize = -1; |
| 7922 | public override int SerializedSize { |
| 7923 | get { |
| 7924 | int size = memoizedSerializedSize; |
| 7925 | if (size != -1) return size; |
| 7926 | |
| 7927 | size = 0; |
| 7928 | if (HasA) { |
| 7929 | size += pb::CodedOutputStream.ComputeMessageSize(1, A); |
| 7930 | } |
| 7931 | if (HasI) { |
| 7932 | size += pb::CodedOutputStream.ComputeInt32Size(2, I); |
| 7933 | } |
| 7934 | size += UnknownFields.SerializedSize; |
| 7935 | memoizedSerializedSize = size; |
| 7936 | return size; |
| 7937 | } |
| 7938 | } |
| 7939 | |
| 7940 | public static TestRecursiveMessage ParseFrom(pb::ByteString data) { |
| 7941 | return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed(); |
| 7942 | } |
| 7943 | public static TestRecursiveMessage ParseFrom(pb::ByteString data, pb::ExtensionRegistry extensionRegistry) { |
| 7944 | return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed(); |
| 7945 | } |
| 7946 | public static TestRecursiveMessage ParseFrom(byte[] data) { |
| 7947 | return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed(); |
| 7948 | } |
| 7949 | public static TestRecursiveMessage ParseFrom(byte[] data, pb::ExtensionRegistry extensionRegistry) { |
| 7950 | return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed(); |
| 7951 | } |
| 7952 | public static TestRecursiveMessage ParseFrom(global::System.IO.Stream input) { |
| 7953 | return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed(); |
| 7954 | } |
| 7955 | public static TestRecursiveMessage ParseFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) { |
| 7956 | return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed(); |
| 7957 | } |
| 7958 | public static TestRecursiveMessage ParseFrom(pb::CodedInputStream input) { |
| 7959 | return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed(); |
| 7960 | } |
| 7961 | public static TestRecursiveMessage ParseFrom(pb::CodedInputStream input, pb::ExtensionRegistry extensionRegistry) { |
| 7962 | return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed(); |
| 7963 | } |
| 7964 | public static Builder CreateBuilder() { return new Builder(); } |
| 7965 | public override Builder CreateBuilderForType() { return new Builder(); } |
| 7966 | public static Builder CreateBuilder(TestRecursiveMessage prototype) { |
| 7967 | return (Builder) new Builder().MergeFrom(prototype); |
| 7968 | } |
| 7969 | |
| 7970 | public sealed partial class Builder : pb::GeneratedBuilder<TestRecursiveMessage, Builder> { |
| 7971 | protected override Builder ThisBuilder { |
| 7972 | get { return this; } |
| 7973 | } |
| 7974 | public Builder() {} |
| 7975 | |
| 7976 | TestRecursiveMessage result = new TestRecursiveMessage(); |
| 7977 | |
| 7978 | protected override TestRecursiveMessage MessageBeingBuilt { |
| 7979 | get { return result; } |
| 7980 | } |
| 7981 | |
| 7982 | public override Builder Clear() { |
| 7983 | result = new TestRecursiveMessage(); |
| 7984 | return this; |
| 7985 | } |
| 7986 | |
| 7987 | public override Builder Clone() { |
| 7988 | return new Builder().MergeFrom(result); |
| 7989 | } |
| 7990 | |
| 7991 | public override pbd::MessageDescriptor DescriptorForType { |
| 7992 | get { return TestRecursiveMessage.Descriptor; } |
| 7993 | } |
| 7994 | |
| 7995 | public override TestRecursiveMessage DefaultInstanceForType { |
| 7996 | get { return TestRecursiveMessage.DefaultInstance; } |
| 7997 | } |
| 7998 | |
| 7999 | public override TestRecursiveMessage BuildPartial() { |
| 8000 | TestRecursiveMessage returnMe = result; |
| 8001 | result = null; |
| 8002 | return returnMe; |
| 8003 | } |
| 8004 | |
| 8005 | public override Builder MergeFrom(pb::IMessage other) { |
| 8006 | if (other is TestRecursiveMessage) { |
| 8007 | return MergeFrom((TestRecursiveMessage) other); |
| 8008 | } else { |
| 8009 | base.MergeFrom(other); |
| 8010 | return this; |
| 8011 | } |
| 8012 | } |
| 8013 | |
| 8014 | public override Builder MergeFrom(TestRecursiveMessage other) { |
| 8015 | if (other == TestRecursiveMessage.DefaultInstance) return this; |
| 8016 | if (other.HasA) { |
| 8017 | MergeA(other.A); |
| 8018 | } |
| 8019 | if (other.HasI) { |
| 8020 | I = other.I; |
| 8021 | } |
| 8022 | this.MergeUnknownFields(other.UnknownFields); |
| 8023 | return this; |
| 8024 | } |
| 8025 | |
| 8026 | public override Builder MergeFrom(pb::CodedInputStream input) { |
| 8027 | return MergeFrom(input, pb::ExtensionRegistry.Empty); |
| 8028 | } |
| 8029 | |
| 8030 | public override Builder MergeFrom(pb::CodedInputStream input, pb::ExtensionRegistry extensionRegistry) { |
| 8031 | pb::UnknownFieldSet.Builder unknownFields = pb::UnknownFieldSet.CreateBuilder(this.UnknownFields); |
| 8032 | while (true) { |
| 8033 | uint tag = input.ReadTag(); |
| 8034 | switch (tag) { |
| 8035 | case 0: { |
| 8036 | this.UnknownFields = unknownFields.Build(); |
| 8037 | return this; |
| 8038 | } |
| 8039 | default: { |
| 8040 | if (!ParseUnknownField(input, unknownFields, extensionRegistry, tag)) { |
| 8041 | this.UnknownFields = unknownFields.Build(); |
| 8042 | return this; |
| 8043 | } |
| 8044 | break; |
| 8045 | } |
| 8046 | case 10: { |
| 8047 | global::Google.ProtocolBuffers.TestProtos.TestRecursiveMessage.Builder subBuilder = global::Google.ProtocolBuffers.TestProtos.TestRecursiveMessage.CreateBuilder(); |
| 8048 | if (HasA) { |
| 8049 | subBuilder.MergeFrom(A); |
| 8050 | } |
| 8051 | input.ReadMessage(subBuilder, extensionRegistry); |
| 8052 | A = subBuilder.BuildPartial(); |
| 8053 | break; |
| 8054 | } |
| 8055 | case 16: { |
| 8056 | I = input.ReadInt32(); |
| 8057 | break; |
| 8058 | } |
| 8059 | } |
| 8060 | } |
| 8061 | } |
| 8062 | |
| 8063 | |
| 8064 | public bool HasA { |
| 8065 | get { return result.HasA; } |
| 8066 | } |
| 8067 | public global::Google.ProtocolBuffers.TestProtos.TestRecursiveMessage A { |
| 8068 | get { return result.A; } |
| 8069 | set { SetA(value); } |
| 8070 | } |
| 8071 | public Builder SetA(global::Google.ProtocolBuffers.TestProtos.TestRecursiveMessage value) { |
Jon Skeet | 642a814 | 2009-01-27 12:25:21 +0000 | [diff] [blame] | 8072 | pb::ThrowHelper.ThrowIfNull(value, "value"); |
Jon Skeet | 6803686 | 2008-10-22 13:30:34 +0100 | [diff] [blame] | 8073 | result.hasA = true; |
| 8074 | result.a_ = value; |
| 8075 | return this; |
| 8076 | } |
| 8077 | public Builder SetA(global::Google.ProtocolBuffers.TestProtos.TestRecursiveMessage.Builder builderForValue) { |
Jon Skeet | 642a814 | 2009-01-27 12:25:21 +0000 | [diff] [blame] | 8078 | pb::ThrowHelper.ThrowIfNull(builderForValue, "builderForValue"); |
Jon Skeet | 6803686 | 2008-10-22 13:30:34 +0100 | [diff] [blame] | 8079 | result.hasA = true; |
| 8080 | result.a_ = builderForValue.Build(); |
| 8081 | return this; |
| 8082 | } |
| 8083 | public Builder MergeA(global::Google.ProtocolBuffers.TestProtos.TestRecursiveMessage value) { |
Jon Skeet | 642a814 | 2009-01-27 12:25:21 +0000 | [diff] [blame] | 8084 | pb::ThrowHelper.ThrowIfNull(value, "value"); |
Jon Skeet | 6803686 | 2008-10-22 13:30:34 +0100 | [diff] [blame] | 8085 | if (result.HasA && |
| 8086 | result.a_ != global::Google.ProtocolBuffers.TestProtos.TestRecursiveMessage.DefaultInstance) { |
| 8087 | result.a_ = global::Google.ProtocolBuffers.TestProtos.TestRecursiveMessage.CreateBuilder(result.a_).MergeFrom(value).BuildPartial(); |
| 8088 | } else { |
| 8089 | result.a_ = value; |
| 8090 | } |
| 8091 | result.hasA = true; |
| 8092 | return this; |
| 8093 | } |
| 8094 | public Builder ClearA() { |
| 8095 | result.hasA = false; |
| 8096 | result.a_ = global::Google.ProtocolBuffers.TestProtos.TestRecursiveMessage.DefaultInstance; |
| 8097 | return this; |
| 8098 | } |
| 8099 | |
| 8100 | public bool HasI { |
| 8101 | get { return result.HasI; } |
| 8102 | } |
| 8103 | public int I { |
| 8104 | get { return result.I; } |
| 8105 | set { SetI(value); } |
| 8106 | } |
| 8107 | public Builder SetI(int value) { |
| 8108 | result.hasI = true; |
| 8109 | result.i_ = value; |
| 8110 | return this; |
| 8111 | } |
| 8112 | public Builder ClearI() { |
| 8113 | result.hasI = false; |
| 8114 | result.i_ = 0; |
| 8115 | return this; |
| 8116 | } |
| 8117 | } |
| 8118 | } |
| 8119 | |
| 8120 | public sealed partial class TestMutualRecursionA : pb::GeneratedMessage<TestMutualRecursionA, TestMutualRecursionA.Builder> { |
| 8121 | private static readonly TestMutualRecursionA defaultInstance = new Builder().BuildPartial(); |
| 8122 | public static TestMutualRecursionA DefaultInstance { |
| 8123 | get { return defaultInstance; } |
| 8124 | } |
| 8125 | |
| 8126 | public override TestMutualRecursionA DefaultInstanceForType { |
| 8127 | get { return defaultInstance; } |
| 8128 | } |
| 8129 | |
| 8130 | protected override TestMutualRecursionA ThisMessage { |
| 8131 | get { return this; } |
| 8132 | } |
| 8133 | |
| 8134 | public static pbd::MessageDescriptor Descriptor { |
| 8135 | get { return global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.internal__static_protobuf_unittest_TestMutualRecursionA__Descriptor; } |
| 8136 | } |
| 8137 | |
| 8138 | protected override pb::FieldAccess.FieldAccessorTable<TestMutualRecursionA, TestMutualRecursionA.Builder> InternalFieldAccessors { |
| 8139 | get { return global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.internal__static_protobuf_unittest_TestMutualRecursionA__FieldAccessorTable; } |
| 8140 | } |
| 8141 | |
| 8142 | private bool hasBb; |
| 8143 | private global::Google.ProtocolBuffers.TestProtos.TestMutualRecursionB bb_ = global::Google.ProtocolBuffers.TestProtos.TestMutualRecursionB.DefaultInstance; |
| 8144 | public bool HasBb { |
| 8145 | get { return hasBb; } |
| 8146 | } |
| 8147 | public global::Google.ProtocolBuffers.TestProtos.TestMutualRecursionB Bb { |
| 8148 | get { return bb_; } |
| 8149 | } |
| 8150 | |
| 8151 | public override bool IsInitialized { |
| 8152 | get { |
| 8153 | return true; |
| 8154 | } |
| 8155 | } |
| 8156 | |
| 8157 | public override void WriteTo(pb::CodedOutputStream output) { |
| 8158 | if (HasBb) { |
| 8159 | output.WriteMessage(1, Bb); |
| 8160 | } |
| 8161 | UnknownFields.WriteTo(output); |
| 8162 | } |
| 8163 | |
| 8164 | private int memoizedSerializedSize = -1; |
| 8165 | public override int SerializedSize { |
| 8166 | get { |
| 8167 | int size = memoizedSerializedSize; |
| 8168 | if (size != -1) return size; |
| 8169 | |
| 8170 | size = 0; |
| 8171 | if (HasBb) { |
| 8172 | size += pb::CodedOutputStream.ComputeMessageSize(1, Bb); |
| 8173 | } |
| 8174 | size += UnknownFields.SerializedSize; |
| 8175 | memoizedSerializedSize = size; |
| 8176 | return size; |
| 8177 | } |
| 8178 | } |
| 8179 | |
| 8180 | public static TestMutualRecursionA ParseFrom(pb::ByteString data) { |
| 8181 | return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed(); |
| 8182 | } |
| 8183 | public static TestMutualRecursionA ParseFrom(pb::ByteString data, pb::ExtensionRegistry extensionRegistry) { |
| 8184 | return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed(); |
| 8185 | } |
| 8186 | public static TestMutualRecursionA ParseFrom(byte[] data) { |
| 8187 | return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed(); |
| 8188 | } |
| 8189 | public static TestMutualRecursionA ParseFrom(byte[] data, pb::ExtensionRegistry extensionRegistry) { |
| 8190 | return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed(); |
| 8191 | } |
| 8192 | public static TestMutualRecursionA ParseFrom(global::System.IO.Stream input) { |
| 8193 | return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed(); |
| 8194 | } |
| 8195 | public static TestMutualRecursionA ParseFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) { |
| 8196 | return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed(); |
| 8197 | } |
| 8198 | public static TestMutualRecursionA ParseFrom(pb::CodedInputStream input) { |
| 8199 | return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed(); |
| 8200 | } |
| 8201 | public static TestMutualRecursionA ParseFrom(pb::CodedInputStream input, pb::ExtensionRegistry extensionRegistry) { |
| 8202 | return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed(); |
| 8203 | } |
| 8204 | public static Builder CreateBuilder() { return new Builder(); } |
| 8205 | public override Builder CreateBuilderForType() { return new Builder(); } |
| 8206 | public static Builder CreateBuilder(TestMutualRecursionA prototype) { |
| 8207 | return (Builder) new Builder().MergeFrom(prototype); |
| 8208 | } |
| 8209 | |
| 8210 | public sealed partial class Builder : pb::GeneratedBuilder<TestMutualRecursionA, Builder> { |
| 8211 | protected override Builder ThisBuilder { |
| 8212 | get { return this; } |
| 8213 | } |
| 8214 | public Builder() {} |
| 8215 | |
| 8216 | TestMutualRecursionA result = new TestMutualRecursionA(); |
| 8217 | |
| 8218 | protected override TestMutualRecursionA MessageBeingBuilt { |
| 8219 | get { return result; } |
| 8220 | } |
| 8221 | |
| 8222 | public override Builder Clear() { |
| 8223 | result = new TestMutualRecursionA(); |
| 8224 | return this; |
| 8225 | } |
| 8226 | |
| 8227 | public override Builder Clone() { |
| 8228 | return new Builder().MergeFrom(result); |
| 8229 | } |
| 8230 | |
| 8231 | public override pbd::MessageDescriptor DescriptorForType { |
| 8232 | get { return TestMutualRecursionA.Descriptor; } |
| 8233 | } |
| 8234 | |
| 8235 | public override TestMutualRecursionA DefaultInstanceForType { |
| 8236 | get { return TestMutualRecursionA.DefaultInstance; } |
| 8237 | } |
| 8238 | |
| 8239 | public override TestMutualRecursionA BuildPartial() { |
| 8240 | TestMutualRecursionA returnMe = result; |
| 8241 | result = null; |
| 8242 | return returnMe; |
| 8243 | } |
| 8244 | |
| 8245 | public override Builder MergeFrom(pb::IMessage other) { |
| 8246 | if (other is TestMutualRecursionA) { |
| 8247 | return MergeFrom((TestMutualRecursionA) other); |
| 8248 | } else { |
| 8249 | base.MergeFrom(other); |
| 8250 | return this; |
| 8251 | } |
| 8252 | } |
| 8253 | |
| 8254 | public override Builder MergeFrom(TestMutualRecursionA other) { |
| 8255 | if (other == TestMutualRecursionA.DefaultInstance) return this; |
| 8256 | if (other.HasBb) { |
| 8257 | MergeBb(other.Bb); |
| 8258 | } |
| 8259 | this.MergeUnknownFields(other.UnknownFields); |
| 8260 | return this; |
| 8261 | } |
| 8262 | |
| 8263 | public override Builder MergeFrom(pb::CodedInputStream input) { |
| 8264 | return MergeFrom(input, pb::ExtensionRegistry.Empty); |
| 8265 | } |
| 8266 | |
| 8267 | public override Builder MergeFrom(pb::CodedInputStream input, pb::ExtensionRegistry extensionRegistry) { |
| 8268 | pb::UnknownFieldSet.Builder unknownFields = pb::UnknownFieldSet.CreateBuilder(this.UnknownFields); |
| 8269 | while (true) { |
| 8270 | uint tag = input.ReadTag(); |
| 8271 | switch (tag) { |
| 8272 | case 0: { |
| 8273 | this.UnknownFields = unknownFields.Build(); |
| 8274 | return this; |
| 8275 | } |
| 8276 | default: { |
| 8277 | if (!ParseUnknownField(input, unknownFields, extensionRegistry, tag)) { |
| 8278 | this.UnknownFields = unknownFields.Build(); |
| 8279 | return this; |
| 8280 | } |
| 8281 | break; |
| 8282 | } |
| 8283 | case 10: { |
| 8284 | global::Google.ProtocolBuffers.TestProtos.TestMutualRecursionB.Builder subBuilder = global::Google.ProtocolBuffers.TestProtos.TestMutualRecursionB.CreateBuilder(); |
| 8285 | if (HasBb) { |
| 8286 | subBuilder.MergeFrom(Bb); |
| 8287 | } |
| 8288 | input.ReadMessage(subBuilder, extensionRegistry); |
| 8289 | Bb = subBuilder.BuildPartial(); |
| 8290 | break; |
| 8291 | } |
| 8292 | } |
| 8293 | } |
| 8294 | } |
| 8295 | |
| 8296 | |
| 8297 | public bool HasBb { |
| 8298 | get { return result.HasBb; } |
| 8299 | } |
| 8300 | public global::Google.ProtocolBuffers.TestProtos.TestMutualRecursionB Bb { |
| 8301 | get { return result.Bb; } |
| 8302 | set { SetBb(value); } |
| 8303 | } |
| 8304 | public Builder SetBb(global::Google.ProtocolBuffers.TestProtos.TestMutualRecursionB value) { |
Jon Skeet | 642a814 | 2009-01-27 12:25:21 +0000 | [diff] [blame] | 8305 | pb::ThrowHelper.ThrowIfNull(value, "value"); |
Jon Skeet | 6803686 | 2008-10-22 13:30:34 +0100 | [diff] [blame] | 8306 | result.hasBb = true; |
| 8307 | result.bb_ = value; |
| 8308 | return this; |
| 8309 | } |
| 8310 | public Builder SetBb(global::Google.ProtocolBuffers.TestProtos.TestMutualRecursionB.Builder builderForValue) { |
Jon Skeet | 642a814 | 2009-01-27 12:25:21 +0000 | [diff] [blame] | 8311 | pb::ThrowHelper.ThrowIfNull(builderForValue, "builderForValue"); |
Jon Skeet | 6803686 | 2008-10-22 13:30:34 +0100 | [diff] [blame] | 8312 | result.hasBb = true; |
| 8313 | result.bb_ = builderForValue.Build(); |
| 8314 | return this; |
| 8315 | } |
| 8316 | public Builder MergeBb(global::Google.ProtocolBuffers.TestProtos.TestMutualRecursionB value) { |
Jon Skeet | 642a814 | 2009-01-27 12:25:21 +0000 | [diff] [blame] | 8317 | pb::ThrowHelper.ThrowIfNull(value, "value"); |
Jon Skeet | 6803686 | 2008-10-22 13:30:34 +0100 | [diff] [blame] | 8318 | if (result.HasBb && |
| 8319 | result.bb_ != global::Google.ProtocolBuffers.TestProtos.TestMutualRecursionB.DefaultInstance) { |
| 8320 | result.bb_ = global::Google.ProtocolBuffers.TestProtos.TestMutualRecursionB.CreateBuilder(result.bb_).MergeFrom(value).BuildPartial(); |
| 8321 | } else { |
| 8322 | result.bb_ = value; |
| 8323 | } |
| 8324 | result.hasBb = true; |
| 8325 | return this; |
| 8326 | } |
| 8327 | public Builder ClearBb() { |
| 8328 | result.hasBb = false; |
| 8329 | result.bb_ = global::Google.ProtocolBuffers.TestProtos.TestMutualRecursionB.DefaultInstance; |
| 8330 | return this; |
| 8331 | } |
| 8332 | } |
| 8333 | } |
| 8334 | |
| 8335 | public sealed partial class TestMutualRecursionB : pb::GeneratedMessage<TestMutualRecursionB, TestMutualRecursionB.Builder> { |
| 8336 | private static readonly TestMutualRecursionB defaultInstance = new Builder().BuildPartial(); |
| 8337 | public static TestMutualRecursionB DefaultInstance { |
| 8338 | get { return defaultInstance; } |
| 8339 | } |
| 8340 | |
| 8341 | public override TestMutualRecursionB DefaultInstanceForType { |
| 8342 | get { return defaultInstance; } |
| 8343 | } |
| 8344 | |
| 8345 | protected override TestMutualRecursionB ThisMessage { |
| 8346 | get { return this; } |
| 8347 | } |
| 8348 | |
| 8349 | public static pbd::MessageDescriptor Descriptor { |
| 8350 | get { return global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.internal__static_protobuf_unittest_TestMutualRecursionB__Descriptor; } |
| 8351 | } |
| 8352 | |
| 8353 | protected override pb::FieldAccess.FieldAccessorTable<TestMutualRecursionB, TestMutualRecursionB.Builder> InternalFieldAccessors { |
| 8354 | get { return global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.internal__static_protobuf_unittest_TestMutualRecursionB__FieldAccessorTable; } |
| 8355 | } |
| 8356 | |
| 8357 | private bool hasA; |
| 8358 | private global::Google.ProtocolBuffers.TestProtos.TestMutualRecursionA a_ = global::Google.ProtocolBuffers.TestProtos.TestMutualRecursionA.DefaultInstance; |
| 8359 | public bool HasA { |
| 8360 | get { return hasA; } |
| 8361 | } |
| 8362 | public global::Google.ProtocolBuffers.TestProtos.TestMutualRecursionA A { |
| 8363 | get { return a_; } |
| 8364 | } |
| 8365 | |
| 8366 | private bool hasOptionalInt32; |
| 8367 | private int optionalInt32_ = 0; |
| 8368 | public bool HasOptionalInt32 { |
| 8369 | get { return hasOptionalInt32; } |
| 8370 | } |
| 8371 | public int OptionalInt32 { |
| 8372 | get { return optionalInt32_; } |
| 8373 | } |
| 8374 | |
| 8375 | public override bool IsInitialized { |
| 8376 | get { |
| 8377 | return true; |
| 8378 | } |
| 8379 | } |
| 8380 | |
| 8381 | public override void WriteTo(pb::CodedOutputStream output) { |
| 8382 | if (HasA) { |
| 8383 | output.WriteMessage(1, A); |
| 8384 | } |
| 8385 | if (HasOptionalInt32) { |
| 8386 | output.WriteInt32(2, OptionalInt32); |
| 8387 | } |
| 8388 | UnknownFields.WriteTo(output); |
| 8389 | } |
| 8390 | |
| 8391 | private int memoizedSerializedSize = -1; |
| 8392 | public override int SerializedSize { |
| 8393 | get { |
| 8394 | int size = memoizedSerializedSize; |
| 8395 | if (size != -1) return size; |
| 8396 | |
| 8397 | size = 0; |
| 8398 | if (HasA) { |
| 8399 | size += pb::CodedOutputStream.ComputeMessageSize(1, A); |
| 8400 | } |
| 8401 | if (HasOptionalInt32) { |
| 8402 | size += pb::CodedOutputStream.ComputeInt32Size(2, OptionalInt32); |
| 8403 | } |
| 8404 | size += UnknownFields.SerializedSize; |
| 8405 | memoizedSerializedSize = size; |
| 8406 | return size; |
| 8407 | } |
| 8408 | } |
| 8409 | |
| 8410 | public static TestMutualRecursionB ParseFrom(pb::ByteString data) { |
| 8411 | return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed(); |
| 8412 | } |
| 8413 | public static TestMutualRecursionB ParseFrom(pb::ByteString data, pb::ExtensionRegistry extensionRegistry) { |
| 8414 | return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed(); |
| 8415 | } |
| 8416 | public static TestMutualRecursionB ParseFrom(byte[] data) { |
| 8417 | return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed(); |
| 8418 | } |
| 8419 | public static TestMutualRecursionB ParseFrom(byte[] data, pb::ExtensionRegistry extensionRegistry) { |
| 8420 | return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed(); |
| 8421 | } |
| 8422 | public static TestMutualRecursionB ParseFrom(global::System.IO.Stream input) { |
| 8423 | return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed(); |
| 8424 | } |
| 8425 | public static TestMutualRecursionB ParseFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) { |
| 8426 | return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed(); |
| 8427 | } |
| 8428 | public static TestMutualRecursionB ParseFrom(pb::CodedInputStream input) { |
| 8429 | return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed(); |
| 8430 | } |
| 8431 | public static TestMutualRecursionB ParseFrom(pb::CodedInputStream input, pb::ExtensionRegistry extensionRegistry) { |
| 8432 | return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed(); |
| 8433 | } |
| 8434 | public static Builder CreateBuilder() { return new Builder(); } |
| 8435 | public override Builder CreateBuilderForType() { return new Builder(); } |
| 8436 | public static Builder CreateBuilder(TestMutualRecursionB prototype) { |
| 8437 | return (Builder) new Builder().MergeFrom(prototype); |
| 8438 | } |
| 8439 | |
| 8440 | public sealed partial class Builder : pb::GeneratedBuilder<TestMutualRecursionB, Builder> { |
| 8441 | protected override Builder ThisBuilder { |
| 8442 | get { return this; } |
| 8443 | } |
| 8444 | public Builder() {} |
| 8445 | |
| 8446 | TestMutualRecursionB result = new TestMutualRecursionB(); |
| 8447 | |
| 8448 | protected override TestMutualRecursionB MessageBeingBuilt { |
| 8449 | get { return result; } |
| 8450 | } |
| 8451 | |
| 8452 | public override Builder Clear() { |
| 8453 | result = new TestMutualRecursionB(); |
| 8454 | return this; |
| 8455 | } |
| 8456 | |
| 8457 | public override Builder Clone() { |
| 8458 | return new Builder().MergeFrom(result); |
| 8459 | } |
| 8460 | |
| 8461 | public override pbd::MessageDescriptor DescriptorForType { |
| 8462 | get { return TestMutualRecursionB.Descriptor; } |
| 8463 | } |
| 8464 | |
| 8465 | public override TestMutualRecursionB DefaultInstanceForType { |
| 8466 | get { return TestMutualRecursionB.DefaultInstance; } |
| 8467 | } |
| 8468 | |
| 8469 | public override TestMutualRecursionB BuildPartial() { |
| 8470 | TestMutualRecursionB returnMe = result; |
| 8471 | result = null; |
| 8472 | return returnMe; |
| 8473 | } |
| 8474 | |
| 8475 | public override Builder MergeFrom(pb::IMessage other) { |
| 8476 | if (other is TestMutualRecursionB) { |
| 8477 | return MergeFrom((TestMutualRecursionB) other); |
| 8478 | } else { |
| 8479 | base.MergeFrom(other); |
| 8480 | return this; |
| 8481 | } |
| 8482 | } |
| 8483 | |
| 8484 | public override Builder MergeFrom(TestMutualRecursionB other) { |
| 8485 | if (other == TestMutualRecursionB.DefaultInstance) return this; |
| 8486 | if (other.HasA) { |
| 8487 | MergeA(other.A); |
| 8488 | } |
| 8489 | if (other.HasOptionalInt32) { |
| 8490 | OptionalInt32 = other.OptionalInt32; |
| 8491 | } |
| 8492 | this.MergeUnknownFields(other.UnknownFields); |
| 8493 | return this; |
| 8494 | } |
| 8495 | |
| 8496 | public override Builder MergeFrom(pb::CodedInputStream input) { |
| 8497 | return MergeFrom(input, pb::ExtensionRegistry.Empty); |
| 8498 | } |
| 8499 | |
| 8500 | public override Builder MergeFrom(pb::CodedInputStream input, pb::ExtensionRegistry extensionRegistry) { |
| 8501 | pb::UnknownFieldSet.Builder unknownFields = pb::UnknownFieldSet.CreateBuilder(this.UnknownFields); |
| 8502 | while (true) { |
| 8503 | uint tag = input.ReadTag(); |
| 8504 | switch (tag) { |
| 8505 | case 0: { |
| 8506 | this.UnknownFields = unknownFields.Build(); |
| 8507 | return this; |
| 8508 | } |
| 8509 | default: { |
| 8510 | if (!ParseUnknownField(input, unknownFields, extensionRegistry, tag)) { |
| 8511 | this.UnknownFields = unknownFields.Build(); |
| 8512 | return this; |
| 8513 | } |
| 8514 | break; |
| 8515 | } |
| 8516 | case 10: { |
| 8517 | global::Google.ProtocolBuffers.TestProtos.TestMutualRecursionA.Builder subBuilder = global::Google.ProtocolBuffers.TestProtos.TestMutualRecursionA.CreateBuilder(); |
| 8518 | if (HasA) { |
| 8519 | subBuilder.MergeFrom(A); |
| 8520 | } |
| 8521 | input.ReadMessage(subBuilder, extensionRegistry); |
| 8522 | A = subBuilder.BuildPartial(); |
| 8523 | break; |
| 8524 | } |
| 8525 | case 16: { |
| 8526 | OptionalInt32 = input.ReadInt32(); |
| 8527 | break; |
| 8528 | } |
| 8529 | } |
| 8530 | } |
| 8531 | } |
| 8532 | |
| 8533 | |
| 8534 | public bool HasA { |
| 8535 | get { return result.HasA; } |
| 8536 | } |
| 8537 | public global::Google.ProtocolBuffers.TestProtos.TestMutualRecursionA A { |
| 8538 | get { return result.A; } |
| 8539 | set { SetA(value); } |
| 8540 | } |
| 8541 | public Builder SetA(global::Google.ProtocolBuffers.TestProtos.TestMutualRecursionA value) { |
Jon Skeet | 642a814 | 2009-01-27 12:25:21 +0000 | [diff] [blame] | 8542 | pb::ThrowHelper.ThrowIfNull(value, "value"); |
Jon Skeet | 6803686 | 2008-10-22 13:30:34 +0100 | [diff] [blame] | 8543 | result.hasA = true; |
| 8544 | result.a_ = value; |
| 8545 | return this; |
| 8546 | } |
| 8547 | public Builder SetA(global::Google.ProtocolBuffers.TestProtos.TestMutualRecursionA.Builder builderForValue) { |
Jon Skeet | 642a814 | 2009-01-27 12:25:21 +0000 | [diff] [blame] | 8548 | pb::ThrowHelper.ThrowIfNull(builderForValue, "builderForValue"); |
Jon Skeet | 6803686 | 2008-10-22 13:30:34 +0100 | [diff] [blame] | 8549 | result.hasA = true; |
| 8550 | result.a_ = builderForValue.Build(); |
| 8551 | return this; |
| 8552 | } |
| 8553 | public Builder MergeA(global::Google.ProtocolBuffers.TestProtos.TestMutualRecursionA value) { |
Jon Skeet | 642a814 | 2009-01-27 12:25:21 +0000 | [diff] [blame] | 8554 | pb::ThrowHelper.ThrowIfNull(value, "value"); |
Jon Skeet | 6803686 | 2008-10-22 13:30:34 +0100 | [diff] [blame] | 8555 | if (result.HasA && |
| 8556 | result.a_ != global::Google.ProtocolBuffers.TestProtos.TestMutualRecursionA.DefaultInstance) { |
| 8557 | result.a_ = global::Google.ProtocolBuffers.TestProtos.TestMutualRecursionA.CreateBuilder(result.a_).MergeFrom(value).BuildPartial(); |
| 8558 | } else { |
| 8559 | result.a_ = value; |
| 8560 | } |
| 8561 | result.hasA = true; |
| 8562 | return this; |
| 8563 | } |
| 8564 | public Builder ClearA() { |
| 8565 | result.hasA = false; |
| 8566 | result.a_ = global::Google.ProtocolBuffers.TestProtos.TestMutualRecursionA.DefaultInstance; |
| 8567 | return this; |
| 8568 | } |
| 8569 | |
| 8570 | public bool HasOptionalInt32 { |
| 8571 | get { return result.HasOptionalInt32; } |
| 8572 | } |
| 8573 | public int OptionalInt32 { |
| 8574 | get { return result.OptionalInt32; } |
| 8575 | set { SetOptionalInt32(value); } |
| 8576 | } |
| 8577 | public Builder SetOptionalInt32(int value) { |
| 8578 | result.hasOptionalInt32 = true; |
| 8579 | result.optionalInt32_ = value; |
| 8580 | return this; |
| 8581 | } |
| 8582 | public Builder ClearOptionalInt32() { |
| 8583 | result.hasOptionalInt32 = false; |
| 8584 | result.optionalInt32_ = 0; |
| 8585 | return this; |
| 8586 | } |
| 8587 | } |
| 8588 | } |
| 8589 | |
| 8590 | public sealed partial class TestDupFieldNumber : pb::GeneratedMessage<TestDupFieldNumber, TestDupFieldNumber.Builder> { |
| 8591 | private static readonly TestDupFieldNumber defaultInstance = new Builder().BuildPartial(); |
| 8592 | public static TestDupFieldNumber DefaultInstance { |
| 8593 | get { return defaultInstance; } |
| 8594 | } |
| 8595 | |
| 8596 | public override TestDupFieldNumber DefaultInstanceForType { |
| 8597 | get { return defaultInstance; } |
| 8598 | } |
| 8599 | |
| 8600 | protected override TestDupFieldNumber ThisMessage { |
| 8601 | get { return this; } |
| 8602 | } |
| 8603 | |
| 8604 | public static pbd::MessageDescriptor Descriptor { |
| 8605 | get { return global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.internal__static_protobuf_unittest_TestDupFieldNumber__Descriptor; } |
| 8606 | } |
| 8607 | |
| 8608 | protected override pb::FieldAccess.FieldAccessorTable<TestDupFieldNumber, TestDupFieldNumber.Builder> InternalFieldAccessors { |
| 8609 | get { return global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.internal__static_protobuf_unittest_TestDupFieldNumber__FieldAccessorTable; } |
| 8610 | } |
| 8611 | |
| 8612 | #region Nested types |
| 8613 | public static class Types { |
| 8614 | public sealed partial class Foo : pb::GeneratedMessage<Foo, Foo.Builder> { |
| 8615 | private static readonly Foo defaultInstance = new Builder().BuildPartial(); |
| 8616 | public static Foo DefaultInstance { |
| 8617 | get { return defaultInstance; } |
| 8618 | } |
| 8619 | |
| 8620 | public override Foo DefaultInstanceForType { |
| 8621 | get { return defaultInstance; } |
| 8622 | } |
| 8623 | |
| 8624 | protected override Foo ThisMessage { |
| 8625 | get { return this; } |
| 8626 | } |
| 8627 | |
| 8628 | public static pbd::MessageDescriptor Descriptor { |
| 8629 | get { return global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.internal__static_protobuf_unittest_TestDupFieldNumber_Foo__Descriptor; } |
| 8630 | } |
| 8631 | |
| 8632 | protected override pb::FieldAccess.FieldAccessorTable<Foo, Foo.Builder> InternalFieldAccessors { |
| 8633 | get { return global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.internal__static_protobuf_unittest_TestDupFieldNumber_Foo__FieldAccessorTable; } |
| 8634 | } |
| 8635 | |
| 8636 | private bool hasA; |
| 8637 | private int a_ = 0; |
| 8638 | public bool HasA { |
| 8639 | get { return hasA; } |
| 8640 | } |
| 8641 | public int A { |
| 8642 | get { return a_; } |
| 8643 | } |
| 8644 | |
| 8645 | public override bool IsInitialized { |
| 8646 | get { |
| 8647 | return true; |
| 8648 | } |
| 8649 | } |
| 8650 | |
| 8651 | public override void WriteTo(pb::CodedOutputStream output) { |
| 8652 | if (HasA) { |
| 8653 | output.WriteInt32(1, A); |
| 8654 | } |
| 8655 | UnknownFields.WriteTo(output); |
| 8656 | } |
| 8657 | |
| 8658 | private int memoizedSerializedSize = -1; |
| 8659 | public override int SerializedSize { |
| 8660 | get { |
| 8661 | int size = memoizedSerializedSize; |
| 8662 | if (size != -1) return size; |
| 8663 | |
| 8664 | size = 0; |
| 8665 | if (HasA) { |
| 8666 | size += pb::CodedOutputStream.ComputeInt32Size(1, A); |
| 8667 | } |
| 8668 | size += UnknownFields.SerializedSize; |
| 8669 | memoizedSerializedSize = size; |
| 8670 | return size; |
| 8671 | } |
| 8672 | } |
| 8673 | |
| 8674 | public static Foo ParseFrom(pb::ByteString data) { |
| 8675 | return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed(); |
| 8676 | } |
| 8677 | public static Foo ParseFrom(pb::ByteString data, pb::ExtensionRegistry extensionRegistry) { |
| 8678 | return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed(); |
| 8679 | } |
| 8680 | public static Foo ParseFrom(byte[] data) { |
| 8681 | return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed(); |
| 8682 | } |
| 8683 | public static Foo ParseFrom(byte[] data, pb::ExtensionRegistry extensionRegistry) { |
| 8684 | return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed(); |
| 8685 | } |
| 8686 | public static Foo ParseFrom(global::System.IO.Stream input) { |
| 8687 | return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed(); |
| 8688 | } |
| 8689 | public static Foo ParseFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) { |
| 8690 | return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed(); |
| 8691 | } |
| 8692 | public static Foo ParseFrom(pb::CodedInputStream input) { |
| 8693 | return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed(); |
| 8694 | } |
| 8695 | public static Foo ParseFrom(pb::CodedInputStream input, pb::ExtensionRegistry extensionRegistry) { |
| 8696 | return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed(); |
| 8697 | } |
| 8698 | public static Builder CreateBuilder() { return new Builder(); } |
| 8699 | public override Builder CreateBuilderForType() { return new Builder(); } |
| 8700 | public static Builder CreateBuilder(Foo prototype) { |
| 8701 | return (Builder) new Builder().MergeFrom(prototype); |
| 8702 | } |
| 8703 | |
| 8704 | public sealed partial class Builder : pb::GeneratedBuilder<Foo, Builder> { |
| 8705 | protected override Builder ThisBuilder { |
| 8706 | get { return this; } |
| 8707 | } |
| 8708 | public Builder() {} |
| 8709 | |
| 8710 | Foo result = new Foo(); |
| 8711 | |
| 8712 | protected override Foo MessageBeingBuilt { |
| 8713 | get { return result; } |
| 8714 | } |
| 8715 | |
| 8716 | public override Builder Clear() { |
| 8717 | result = new Foo(); |
| 8718 | return this; |
| 8719 | } |
| 8720 | |
| 8721 | public override Builder Clone() { |
| 8722 | return new Builder().MergeFrom(result); |
| 8723 | } |
| 8724 | |
| 8725 | public override pbd::MessageDescriptor DescriptorForType { |
| 8726 | get { return Foo.Descriptor; } |
| 8727 | } |
| 8728 | |
| 8729 | public override Foo DefaultInstanceForType { |
| 8730 | get { return Foo.DefaultInstance; } |
| 8731 | } |
| 8732 | |
| 8733 | public override Foo BuildPartial() { |
| 8734 | Foo returnMe = result; |
| 8735 | result = null; |
| 8736 | return returnMe; |
| 8737 | } |
| 8738 | |
| 8739 | public override Builder MergeFrom(pb::IMessage other) { |
| 8740 | if (other is Foo) { |
| 8741 | return MergeFrom((Foo) other); |
| 8742 | } else { |
| 8743 | base.MergeFrom(other); |
| 8744 | return this; |
| 8745 | } |
| 8746 | } |
| 8747 | |
| 8748 | public override Builder MergeFrom(Foo other) { |
| 8749 | if (other == Foo.DefaultInstance) return this; |
| 8750 | if (other.HasA) { |
| 8751 | A = other.A; |
| 8752 | } |
| 8753 | this.MergeUnknownFields(other.UnknownFields); |
| 8754 | return this; |
| 8755 | } |
| 8756 | |
| 8757 | public override Builder MergeFrom(pb::CodedInputStream input) { |
| 8758 | return MergeFrom(input, pb::ExtensionRegistry.Empty); |
| 8759 | } |
| 8760 | |
| 8761 | public override Builder MergeFrom(pb::CodedInputStream input, pb::ExtensionRegistry extensionRegistry) { |
| 8762 | pb::UnknownFieldSet.Builder unknownFields = pb::UnknownFieldSet.CreateBuilder(this.UnknownFields); |
| 8763 | while (true) { |
| 8764 | uint tag = input.ReadTag(); |
| 8765 | switch (tag) { |
| 8766 | case 0: { |
| 8767 | this.UnknownFields = unknownFields.Build(); |
| 8768 | return this; |
| 8769 | } |
| 8770 | default: { |
| 8771 | if (!ParseUnknownField(input, unknownFields, extensionRegistry, tag)) { |
| 8772 | this.UnknownFields = unknownFields.Build(); |
| 8773 | return this; |
| 8774 | } |
| 8775 | break; |
| 8776 | } |
| 8777 | case 8: { |
| 8778 | A = input.ReadInt32(); |
| 8779 | break; |
| 8780 | } |
| 8781 | } |
| 8782 | } |
| 8783 | } |
| 8784 | |
| 8785 | |
| 8786 | public bool HasA { |
| 8787 | get { return result.HasA; } |
| 8788 | } |
| 8789 | public int A { |
| 8790 | get { return result.A; } |
| 8791 | set { SetA(value); } |
| 8792 | } |
| 8793 | public Builder SetA(int value) { |
| 8794 | result.hasA = true; |
| 8795 | result.a_ = value; |
| 8796 | return this; |
| 8797 | } |
| 8798 | public Builder ClearA() { |
| 8799 | result.hasA = false; |
| 8800 | result.a_ = 0; |
| 8801 | return this; |
| 8802 | } |
| 8803 | } |
| 8804 | } |
| 8805 | |
| 8806 | public sealed partial class Bar : pb::GeneratedMessage<Bar, Bar.Builder> { |
| 8807 | private static readonly Bar defaultInstance = new Builder().BuildPartial(); |
| 8808 | public static Bar DefaultInstance { |
| 8809 | get { return defaultInstance; } |
| 8810 | } |
| 8811 | |
| 8812 | public override Bar DefaultInstanceForType { |
| 8813 | get { return defaultInstance; } |
| 8814 | } |
| 8815 | |
| 8816 | protected override Bar ThisMessage { |
| 8817 | get { return this; } |
| 8818 | } |
| 8819 | |
| 8820 | public static pbd::MessageDescriptor Descriptor { |
| 8821 | get { return global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.internal__static_protobuf_unittest_TestDupFieldNumber_Bar__Descriptor; } |
| 8822 | } |
| 8823 | |
| 8824 | protected override pb::FieldAccess.FieldAccessorTable<Bar, Bar.Builder> InternalFieldAccessors { |
| 8825 | get { return global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.internal__static_protobuf_unittest_TestDupFieldNumber_Bar__FieldAccessorTable; } |
| 8826 | } |
| 8827 | |
| 8828 | private bool hasA; |
| 8829 | private int a_ = 0; |
| 8830 | public bool HasA { |
| 8831 | get { return hasA; } |
| 8832 | } |
| 8833 | public int A { |
| 8834 | get { return a_; } |
| 8835 | } |
| 8836 | |
| 8837 | public override bool IsInitialized { |
| 8838 | get { |
| 8839 | return true; |
| 8840 | } |
| 8841 | } |
| 8842 | |
| 8843 | public override void WriteTo(pb::CodedOutputStream output) { |
| 8844 | if (HasA) { |
| 8845 | output.WriteInt32(1, A); |
| 8846 | } |
| 8847 | UnknownFields.WriteTo(output); |
| 8848 | } |
| 8849 | |
| 8850 | private int memoizedSerializedSize = -1; |
| 8851 | public override int SerializedSize { |
| 8852 | get { |
| 8853 | int size = memoizedSerializedSize; |
| 8854 | if (size != -1) return size; |
| 8855 | |
| 8856 | size = 0; |
| 8857 | if (HasA) { |
| 8858 | size += pb::CodedOutputStream.ComputeInt32Size(1, A); |
| 8859 | } |
| 8860 | size += UnknownFields.SerializedSize; |
| 8861 | memoizedSerializedSize = size; |
| 8862 | return size; |
| 8863 | } |
| 8864 | } |
| 8865 | |
| 8866 | public static Bar ParseFrom(pb::ByteString data) { |
| 8867 | return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed(); |
| 8868 | } |
| 8869 | public static Bar ParseFrom(pb::ByteString data, pb::ExtensionRegistry extensionRegistry) { |
| 8870 | return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed(); |
| 8871 | } |
| 8872 | public static Bar ParseFrom(byte[] data) { |
| 8873 | return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed(); |
| 8874 | } |
| 8875 | public static Bar ParseFrom(byte[] data, pb::ExtensionRegistry extensionRegistry) { |
| 8876 | return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed(); |
| 8877 | } |
| 8878 | public static Bar ParseFrom(global::System.IO.Stream input) { |
| 8879 | return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed(); |
| 8880 | } |
| 8881 | public static Bar ParseFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) { |
| 8882 | return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed(); |
| 8883 | } |
| 8884 | public static Bar ParseFrom(pb::CodedInputStream input) { |
| 8885 | return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed(); |
| 8886 | } |
| 8887 | public static Bar ParseFrom(pb::CodedInputStream input, pb::ExtensionRegistry extensionRegistry) { |
| 8888 | return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed(); |
| 8889 | } |
| 8890 | public static Builder CreateBuilder() { return new Builder(); } |
| 8891 | public override Builder CreateBuilderForType() { return new Builder(); } |
| 8892 | public static Builder CreateBuilder(Bar prototype) { |
| 8893 | return (Builder) new Builder().MergeFrom(prototype); |
| 8894 | } |
| 8895 | |
| 8896 | public sealed partial class Builder : pb::GeneratedBuilder<Bar, Builder> { |
| 8897 | protected override Builder ThisBuilder { |
| 8898 | get { return this; } |
| 8899 | } |
| 8900 | public Builder() {} |
| 8901 | |
| 8902 | Bar result = new Bar(); |
| 8903 | |
| 8904 | protected override Bar MessageBeingBuilt { |
| 8905 | get { return result; } |
| 8906 | } |
| 8907 | |
| 8908 | public override Builder Clear() { |
| 8909 | result = new Bar(); |
| 8910 | return this; |
| 8911 | } |
| 8912 | |
| 8913 | public override Builder Clone() { |
| 8914 | return new Builder().MergeFrom(result); |
| 8915 | } |
| 8916 | |
| 8917 | public override pbd::MessageDescriptor DescriptorForType { |
| 8918 | get { return Bar.Descriptor; } |
| 8919 | } |
| 8920 | |
| 8921 | public override Bar DefaultInstanceForType { |
| 8922 | get { return Bar.DefaultInstance; } |
| 8923 | } |
| 8924 | |
| 8925 | public override Bar BuildPartial() { |
| 8926 | Bar returnMe = result; |
| 8927 | result = null; |
| 8928 | return returnMe; |
| 8929 | } |
| 8930 | |
| 8931 | public override Builder MergeFrom(pb::IMessage other) { |
| 8932 | if (other is Bar) { |
| 8933 | return MergeFrom((Bar) other); |
| 8934 | } else { |
| 8935 | base.MergeFrom(other); |
| 8936 | return this; |
| 8937 | } |
| 8938 | } |
| 8939 | |
| 8940 | public override Builder MergeFrom(Bar other) { |
| 8941 | if (other == Bar.DefaultInstance) return this; |
| 8942 | if (other.HasA) { |
| 8943 | A = other.A; |
| 8944 | } |
| 8945 | this.MergeUnknownFields(other.UnknownFields); |
| 8946 | return this; |
| 8947 | } |
| 8948 | |
| 8949 | public override Builder MergeFrom(pb::CodedInputStream input) { |
| 8950 | return MergeFrom(input, pb::ExtensionRegistry.Empty); |
| 8951 | } |
| 8952 | |
| 8953 | public override Builder MergeFrom(pb::CodedInputStream input, pb::ExtensionRegistry extensionRegistry) { |
| 8954 | pb::UnknownFieldSet.Builder unknownFields = pb::UnknownFieldSet.CreateBuilder(this.UnknownFields); |
| 8955 | while (true) { |
| 8956 | uint tag = input.ReadTag(); |
| 8957 | switch (tag) { |
| 8958 | case 0: { |
| 8959 | this.UnknownFields = unknownFields.Build(); |
| 8960 | return this; |
| 8961 | } |
| 8962 | default: { |
| 8963 | if (!ParseUnknownField(input, unknownFields, extensionRegistry, tag)) { |
| 8964 | this.UnknownFields = unknownFields.Build(); |
| 8965 | return this; |
| 8966 | } |
| 8967 | break; |
| 8968 | } |
| 8969 | case 8: { |
| 8970 | A = input.ReadInt32(); |
| 8971 | break; |
| 8972 | } |
| 8973 | } |
| 8974 | } |
| 8975 | } |
| 8976 | |
| 8977 | |
| 8978 | public bool HasA { |
| 8979 | get { return result.HasA; } |
| 8980 | } |
| 8981 | public int A { |
| 8982 | get { return result.A; } |
| 8983 | set { SetA(value); } |
| 8984 | } |
| 8985 | public Builder SetA(int value) { |
| 8986 | result.hasA = true; |
| 8987 | result.a_ = value; |
| 8988 | return this; |
| 8989 | } |
| 8990 | public Builder ClearA() { |
| 8991 | result.hasA = false; |
| 8992 | result.a_ = 0; |
| 8993 | return this; |
| 8994 | } |
| 8995 | } |
| 8996 | } |
| 8997 | |
| 8998 | } |
| 8999 | #endregion |
| 9000 | |
| 9001 | private bool hasA; |
| 9002 | private int a_ = 0; |
| 9003 | public bool HasA { |
| 9004 | get { return hasA; } |
| 9005 | } |
| 9006 | public int A { |
| 9007 | get { return a_; } |
| 9008 | } |
| 9009 | |
| 9010 | private bool hasFoo; |
| 9011 | private global::Google.ProtocolBuffers.TestProtos.TestDupFieldNumber.Types.Foo foo_ = global::Google.ProtocolBuffers.TestProtos.TestDupFieldNumber.Types.Foo.DefaultInstance; |
| 9012 | public bool HasFoo { |
| 9013 | get { return hasFoo; } |
| 9014 | } |
| 9015 | public global::Google.ProtocolBuffers.TestProtos.TestDupFieldNumber.Types.Foo Foo { |
| 9016 | get { return foo_; } |
| 9017 | } |
| 9018 | |
| 9019 | private bool hasBar; |
| 9020 | private global::Google.ProtocolBuffers.TestProtos.TestDupFieldNumber.Types.Bar bar_ = global::Google.ProtocolBuffers.TestProtos.TestDupFieldNumber.Types.Bar.DefaultInstance; |
| 9021 | public bool HasBar { |
| 9022 | get { return hasBar; } |
| 9023 | } |
| 9024 | public global::Google.ProtocolBuffers.TestProtos.TestDupFieldNumber.Types.Bar Bar { |
| 9025 | get { return bar_; } |
| 9026 | } |
| 9027 | |
| 9028 | public override bool IsInitialized { |
| 9029 | get { |
| 9030 | return true; |
| 9031 | } |
| 9032 | } |
| 9033 | |
| 9034 | public override void WriteTo(pb::CodedOutputStream output) { |
| 9035 | if (HasA) { |
| 9036 | output.WriteInt32(1, A); |
| 9037 | } |
| 9038 | if (HasFoo) { |
| 9039 | output.WriteGroup(2, Foo); |
| 9040 | } |
| 9041 | if (HasBar) { |
| 9042 | output.WriteGroup(3, Bar); |
| 9043 | } |
| 9044 | UnknownFields.WriteTo(output); |
| 9045 | } |
| 9046 | |
| 9047 | private int memoizedSerializedSize = -1; |
| 9048 | public override int SerializedSize { |
| 9049 | get { |
| 9050 | int size = memoizedSerializedSize; |
| 9051 | if (size != -1) return size; |
| 9052 | |
| 9053 | size = 0; |
| 9054 | if (HasA) { |
| 9055 | size += pb::CodedOutputStream.ComputeInt32Size(1, A); |
| 9056 | } |
| 9057 | if (HasFoo) { |
| 9058 | size += pb::CodedOutputStream.ComputeGroupSize(2, Foo); |
| 9059 | } |
| 9060 | if (HasBar) { |
| 9061 | size += pb::CodedOutputStream.ComputeGroupSize(3, Bar); |
| 9062 | } |
| 9063 | size += UnknownFields.SerializedSize; |
| 9064 | memoizedSerializedSize = size; |
| 9065 | return size; |
| 9066 | } |
| 9067 | } |
| 9068 | |
| 9069 | public static TestDupFieldNumber ParseFrom(pb::ByteString data) { |
| 9070 | return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed(); |
| 9071 | } |
| 9072 | public static TestDupFieldNumber ParseFrom(pb::ByteString data, pb::ExtensionRegistry extensionRegistry) { |
| 9073 | return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed(); |
| 9074 | } |
| 9075 | public static TestDupFieldNumber ParseFrom(byte[] data) { |
| 9076 | return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed(); |
| 9077 | } |
| 9078 | public static TestDupFieldNumber ParseFrom(byte[] data, pb::ExtensionRegistry extensionRegistry) { |
| 9079 | return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed(); |
| 9080 | } |
| 9081 | public static TestDupFieldNumber ParseFrom(global::System.IO.Stream input) { |
| 9082 | return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed(); |
| 9083 | } |
| 9084 | public static TestDupFieldNumber ParseFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) { |
| 9085 | return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed(); |
| 9086 | } |
| 9087 | public static TestDupFieldNumber ParseFrom(pb::CodedInputStream input) { |
| 9088 | return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed(); |
| 9089 | } |
| 9090 | public static TestDupFieldNumber ParseFrom(pb::CodedInputStream input, pb::ExtensionRegistry extensionRegistry) { |
| 9091 | return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed(); |
| 9092 | } |
| 9093 | public static Builder CreateBuilder() { return new Builder(); } |
| 9094 | public override Builder CreateBuilderForType() { return new Builder(); } |
| 9095 | public static Builder CreateBuilder(TestDupFieldNumber prototype) { |
| 9096 | return (Builder) new Builder().MergeFrom(prototype); |
| 9097 | } |
| 9098 | |
| 9099 | public sealed partial class Builder : pb::GeneratedBuilder<TestDupFieldNumber, Builder> { |
| 9100 | protected override Builder ThisBuilder { |
| 9101 | get { return this; } |
| 9102 | } |
| 9103 | public Builder() {} |
| 9104 | |
| 9105 | TestDupFieldNumber result = new TestDupFieldNumber(); |
| 9106 | |
| 9107 | protected override TestDupFieldNumber MessageBeingBuilt { |
| 9108 | get { return result; } |
| 9109 | } |
| 9110 | |
| 9111 | public override Builder Clear() { |
| 9112 | result = new TestDupFieldNumber(); |
| 9113 | return this; |
| 9114 | } |
| 9115 | |
| 9116 | public override Builder Clone() { |
| 9117 | return new Builder().MergeFrom(result); |
| 9118 | } |
| 9119 | |
| 9120 | public override pbd::MessageDescriptor DescriptorForType { |
| 9121 | get { return TestDupFieldNumber.Descriptor; } |
| 9122 | } |
| 9123 | |
| 9124 | public override TestDupFieldNumber DefaultInstanceForType { |
| 9125 | get { return TestDupFieldNumber.DefaultInstance; } |
| 9126 | } |
| 9127 | |
| 9128 | public override TestDupFieldNumber BuildPartial() { |
| 9129 | TestDupFieldNumber returnMe = result; |
| 9130 | result = null; |
| 9131 | return returnMe; |
| 9132 | } |
| 9133 | |
| 9134 | public override Builder MergeFrom(pb::IMessage other) { |
| 9135 | if (other is TestDupFieldNumber) { |
| 9136 | return MergeFrom((TestDupFieldNumber) other); |
| 9137 | } else { |
| 9138 | base.MergeFrom(other); |
| 9139 | return this; |
| 9140 | } |
| 9141 | } |
| 9142 | |
| 9143 | public override Builder MergeFrom(TestDupFieldNumber other) { |
| 9144 | if (other == TestDupFieldNumber.DefaultInstance) return this; |
| 9145 | if (other.HasA) { |
| 9146 | A = other.A; |
| 9147 | } |
| 9148 | if (other.HasFoo) { |
| 9149 | MergeFoo(other.Foo); |
| 9150 | } |
| 9151 | if (other.HasBar) { |
| 9152 | MergeBar(other.Bar); |
| 9153 | } |
| 9154 | this.MergeUnknownFields(other.UnknownFields); |
| 9155 | return this; |
| 9156 | } |
| 9157 | |
| 9158 | public override Builder MergeFrom(pb::CodedInputStream input) { |
| 9159 | return MergeFrom(input, pb::ExtensionRegistry.Empty); |
| 9160 | } |
| 9161 | |
| 9162 | public override Builder MergeFrom(pb::CodedInputStream input, pb::ExtensionRegistry extensionRegistry) { |
| 9163 | pb::UnknownFieldSet.Builder unknownFields = pb::UnknownFieldSet.CreateBuilder(this.UnknownFields); |
| 9164 | while (true) { |
| 9165 | uint tag = input.ReadTag(); |
| 9166 | switch (tag) { |
| 9167 | case 0: { |
| 9168 | this.UnknownFields = unknownFields.Build(); |
| 9169 | return this; |
| 9170 | } |
| 9171 | default: { |
| 9172 | if (!ParseUnknownField(input, unknownFields, extensionRegistry, tag)) { |
| 9173 | this.UnknownFields = unknownFields.Build(); |
| 9174 | return this; |
| 9175 | } |
| 9176 | break; |
| 9177 | } |
| 9178 | case 8: { |
| 9179 | A = input.ReadInt32(); |
| 9180 | break; |
| 9181 | } |
| 9182 | case 19: { |
| 9183 | global::Google.ProtocolBuffers.TestProtos.TestDupFieldNumber.Types.Foo.Builder subBuilder = global::Google.ProtocolBuffers.TestProtos.TestDupFieldNumber.Types.Foo.CreateBuilder(); |
| 9184 | if (HasFoo) { |
| 9185 | subBuilder.MergeFrom(Foo); |
| 9186 | } |
| 9187 | input.ReadGroup(2, subBuilder, extensionRegistry); |
| 9188 | Foo = subBuilder.BuildPartial(); |
| 9189 | break; |
| 9190 | } |
| 9191 | case 27: { |
| 9192 | global::Google.ProtocolBuffers.TestProtos.TestDupFieldNumber.Types.Bar.Builder subBuilder = global::Google.ProtocolBuffers.TestProtos.TestDupFieldNumber.Types.Bar.CreateBuilder(); |
| 9193 | if (HasBar) { |
| 9194 | subBuilder.MergeFrom(Bar); |
| 9195 | } |
| 9196 | input.ReadGroup(3, subBuilder, extensionRegistry); |
| 9197 | Bar = subBuilder.BuildPartial(); |
| 9198 | break; |
| 9199 | } |
| 9200 | } |
| 9201 | } |
| 9202 | } |
| 9203 | |
| 9204 | |
| 9205 | public bool HasA { |
| 9206 | get { return result.HasA; } |
| 9207 | } |
| 9208 | public int A { |
| 9209 | get { return result.A; } |
| 9210 | set { SetA(value); } |
| 9211 | } |
| 9212 | public Builder SetA(int value) { |
| 9213 | result.hasA = true; |
| 9214 | result.a_ = value; |
| 9215 | return this; |
| 9216 | } |
| 9217 | public Builder ClearA() { |
| 9218 | result.hasA = false; |
| 9219 | result.a_ = 0; |
| 9220 | return this; |
| 9221 | } |
| 9222 | |
| 9223 | public bool HasFoo { |
| 9224 | get { return result.HasFoo; } |
| 9225 | } |
| 9226 | public global::Google.ProtocolBuffers.TestProtos.TestDupFieldNumber.Types.Foo Foo { |
| 9227 | get { return result.Foo; } |
| 9228 | set { SetFoo(value); } |
| 9229 | } |
| 9230 | public Builder SetFoo(global::Google.ProtocolBuffers.TestProtos.TestDupFieldNumber.Types.Foo value) { |
Jon Skeet | 642a814 | 2009-01-27 12:25:21 +0000 | [diff] [blame] | 9231 | pb::ThrowHelper.ThrowIfNull(value, "value"); |
Jon Skeet | 6803686 | 2008-10-22 13:30:34 +0100 | [diff] [blame] | 9232 | result.hasFoo = true; |
| 9233 | result.foo_ = value; |
| 9234 | return this; |
| 9235 | } |
| 9236 | public Builder SetFoo(global::Google.ProtocolBuffers.TestProtos.TestDupFieldNumber.Types.Foo.Builder builderForValue) { |
Jon Skeet | 642a814 | 2009-01-27 12:25:21 +0000 | [diff] [blame] | 9237 | pb::ThrowHelper.ThrowIfNull(builderForValue, "builderForValue"); |
Jon Skeet | 6803686 | 2008-10-22 13:30:34 +0100 | [diff] [blame] | 9238 | result.hasFoo = true; |
| 9239 | result.foo_ = builderForValue.Build(); |
| 9240 | return this; |
| 9241 | } |
| 9242 | public Builder MergeFoo(global::Google.ProtocolBuffers.TestProtos.TestDupFieldNumber.Types.Foo value) { |
Jon Skeet | 642a814 | 2009-01-27 12:25:21 +0000 | [diff] [blame] | 9243 | pb::ThrowHelper.ThrowIfNull(value, "value"); |
Jon Skeet | 6803686 | 2008-10-22 13:30:34 +0100 | [diff] [blame] | 9244 | if (result.HasFoo && |
| 9245 | result.foo_ != global::Google.ProtocolBuffers.TestProtos.TestDupFieldNumber.Types.Foo.DefaultInstance) { |
| 9246 | result.foo_ = global::Google.ProtocolBuffers.TestProtos.TestDupFieldNumber.Types.Foo.CreateBuilder(result.foo_).MergeFrom(value).BuildPartial(); |
| 9247 | } else { |
| 9248 | result.foo_ = value; |
| 9249 | } |
| 9250 | result.hasFoo = true; |
| 9251 | return this; |
| 9252 | } |
| 9253 | public Builder ClearFoo() { |
| 9254 | result.hasFoo = false; |
| 9255 | result.foo_ = global::Google.ProtocolBuffers.TestProtos.TestDupFieldNumber.Types.Foo.DefaultInstance; |
| 9256 | return this; |
| 9257 | } |
| 9258 | |
| 9259 | public bool HasBar { |
| 9260 | get { return result.HasBar; } |
| 9261 | } |
| 9262 | public global::Google.ProtocolBuffers.TestProtos.TestDupFieldNumber.Types.Bar Bar { |
| 9263 | get { return result.Bar; } |
| 9264 | set { SetBar(value); } |
| 9265 | } |
| 9266 | public Builder SetBar(global::Google.ProtocolBuffers.TestProtos.TestDupFieldNumber.Types.Bar value) { |
Jon Skeet | 642a814 | 2009-01-27 12:25:21 +0000 | [diff] [blame] | 9267 | pb::ThrowHelper.ThrowIfNull(value, "value"); |
Jon Skeet | 6803686 | 2008-10-22 13:30:34 +0100 | [diff] [blame] | 9268 | result.hasBar = true; |
| 9269 | result.bar_ = value; |
| 9270 | return this; |
| 9271 | } |
| 9272 | public Builder SetBar(global::Google.ProtocolBuffers.TestProtos.TestDupFieldNumber.Types.Bar.Builder builderForValue) { |
Jon Skeet | 642a814 | 2009-01-27 12:25:21 +0000 | [diff] [blame] | 9273 | pb::ThrowHelper.ThrowIfNull(builderForValue, "builderForValue"); |
Jon Skeet | 6803686 | 2008-10-22 13:30:34 +0100 | [diff] [blame] | 9274 | result.hasBar = true; |
| 9275 | result.bar_ = builderForValue.Build(); |
| 9276 | return this; |
| 9277 | } |
| 9278 | public Builder MergeBar(global::Google.ProtocolBuffers.TestProtos.TestDupFieldNumber.Types.Bar value) { |
Jon Skeet | 642a814 | 2009-01-27 12:25:21 +0000 | [diff] [blame] | 9279 | pb::ThrowHelper.ThrowIfNull(value, "value"); |
Jon Skeet | 6803686 | 2008-10-22 13:30:34 +0100 | [diff] [blame] | 9280 | if (result.HasBar && |
| 9281 | result.bar_ != global::Google.ProtocolBuffers.TestProtos.TestDupFieldNumber.Types.Bar.DefaultInstance) { |
| 9282 | result.bar_ = global::Google.ProtocolBuffers.TestProtos.TestDupFieldNumber.Types.Bar.CreateBuilder(result.bar_).MergeFrom(value).BuildPartial(); |
| 9283 | } else { |
| 9284 | result.bar_ = value; |
| 9285 | } |
| 9286 | result.hasBar = true; |
| 9287 | return this; |
| 9288 | } |
| 9289 | public Builder ClearBar() { |
| 9290 | result.hasBar = false; |
| 9291 | result.bar_ = global::Google.ProtocolBuffers.TestProtos.TestDupFieldNumber.Types.Bar.DefaultInstance; |
| 9292 | return this; |
| 9293 | } |
| 9294 | } |
| 9295 | } |
| 9296 | |
| 9297 | public sealed partial class TestNestedMessageHasBits : pb::GeneratedMessage<TestNestedMessageHasBits, TestNestedMessageHasBits.Builder> { |
| 9298 | private static readonly TestNestedMessageHasBits defaultInstance = new Builder().BuildPartial(); |
| 9299 | public static TestNestedMessageHasBits DefaultInstance { |
| 9300 | get { return defaultInstance; } |
| 9301 | } |
| 9302 | |
| 9303 | public override TestNestedMessageHasBits DefaultInstanceForType { |
| 9304 | get { return defaultInstance; } |
| 9305 | } |
| 9306 | |
| 9307 | protected override TestNestedMessageHasBits ThisMessage { |
| 9308 | get { return this; } |
| 9309 | } |
| 9310 | |
| 9311 | public static pbd::MessageDescriptor Descriptor { |
| 9312 | get { return global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.internal__static_protobuf_unittest_TestNestedMessageHasBits__Descriptor; } |
| 9313 | } |
| 9314 | |
| 9315 | protected override pb::FieldAccess.FieldAccessorTable<TestNestedMessageHasBits, TestNestedMessageHasBits.Builder> InternalFieldAccessors { |
| 9316 | get { return global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.internal__static_protobuf_unittest_TestNestedMessageHasBits__FieldAccessorTable; } |
| 9317 | } |
| 9318 | |
| 9319 | #region Nested types |
| 9320 | public static class Types { |
| 9321 | public sealed partial class NestedMessage : pb::GeneratedMessage<NestedMessage, NestedMessage.Builder> { |
| 9322 | private static readonly NestedMessage defaultInstance = new Builder().BuildPartial(); |
| 9323 | public static NestedMessage DefaultInstance { |
| 9324 | get { return defaultInstance; } |
| 9325 | } |
| 9326 | |
| 9327 | public override NestedMessage DefaultInstanceForType { |
| 9328 | get { return defaultInstance; } |
| 9329 | } |
| 9330 | |
| 9331 | protected override NestedMessage ThisMessage { |
| 9332 | get { return this; } |
| 9333 | } |
| 9334 | |
| 9335 | public static pbd::MessageDescriptor Descriptor { |
| 9336 | get { return global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.internal__static_protobuf_unittest_TestNestedMessageHasBits_NestedMessage__Descriptor; } |
| 9337 | } |
| 9338 | |
| 9339 | protected override pb::FieldAccess.FieldAccessorTable<NestedMessage, NestedMessage.Builder> InternalFieldAccessors { |
| 9340 | get { return global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.internal__static_protobuf_unittest_TestNestedMessageHasBits_NestedMessage__FieldAccessorTable; } |
| 9341 | } |
| 9342 | |
| 9343 | private pbc::PopsicleList<int> nestedmessageRepeatedInt32_ = new pbc::PopsicleList<int>(); |
| 9344 | public scg::IList<int> NestedmessageRepeatedInt32List { |
| 9345 | get { return pbc::Lists.AsReadOnly(nestedmessageRepeatedInt32_); } |
| 9346 | } |
| 9347 | public int NestedmessageRepeatedInt32Count { |
| 9348 | get { return nestedmessageRepeatedInt32_.Count; } |
| 9349 | } |
| 9350 | public int GetNestedmessageRepeatedInt32(int index) { |
| 9351 | return nestedmessageRepeatedInt32_[index]; |
| 9352 | } |
| 9353 | |
| 9354 | private pbc::PopsicleList<global::Google.ProtocolBuffers.TestProtos.ForeignMessage> nestedmessageRepeatedForeignmessage_ = new pbc::PopsicleList<global::Google.ProtocolBuffers.TestProtos.ForeignMessage>(); |
| 9355 | public scg::IList<global::Google.ProtocolBuffers.TestProtos.ForeignMessage> NestedmessageRepeatedForeignmessageList { |
| 9356 | get { return nestedmessageRepeatedForeignmessage_; } |
| 9357 | } |
| 9358 | public int NestedmessageRepeatedForeignmessageCount { |
| 9359 | get { return nestedmessageRepeatedForeignmessage_.Count; } |
| 9360 | } |
| 9361 | public global::Google.ProtocolBuffers.TestProtos.ForeignMessage GetNestedmessageRepeatedForeignmessage(int index) { |
| 9362 | return nestedmessageRepeatedForeignmessage_[index]; |
| 9363 | } |
| 9364 | |
| 9365 | public override bool IsInitialized { |
| 9366 | get { |
| 9367 | return true; |
| 9368 | } |
| 9369 | } |
| 9370 | |
| 9371 | public override void WriteTo(pb::CodedOutputStream output) { |
| 9372 | foreach (int element in NestedmessageRepeatedInt32List) { |
| 9373 | output.WriteInt32(1, element); |
| 9374 | } |
| 9375 | foreach (global::Google.ProtocolBuffers.TestProtos.ForeignMessage element in NestedmessageRepeatedForeignmessageList) { |
| 9376 | output.WriteMessage(2, element); |
| 9377 | } |
| 9378 | UnknownFields.WriteTo(output); |
| 9379 | } |
| 9380 | |
| 9381 | private int memoizedSerializedSize = -1; |
| 9382 | public override int SerializedSize { |
| 9383 | get { |
| 9384 | int size = memoizedSerializedSize; |
| 9385 | if (size != -1) return size; |
| 9386 | |
| 9387 | size = 0; |
| 9388 | foreach (int element in NestedmessageRepeatedInt32List) { |
| 9389 | size += pb::CodedOutputStream.ComputeInt32Size(1, element); |
| 9390 | } |
| 9391 | foreach (global::Google.ProtocolBuffers.TestProtos.ForeignMessage element in NestedmessageRepeatedForeignmessageList) { |
| 9392 | size += pb::CodedOutputStream.ComputeMessageSize(2, element); |
| 9393 | } |
| 9394 | size += UnknownFields.SerializedSize; |
| 9395 | memoizedSerializedSize = size; |
| 9396 | return size; |
| 9397 | } |
| 9398 | } |
| 9399 | |
| 9400 | public static NestedMessage ParseFrom(pb::ByteString data) { |
| 9401 | return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed(); |
| 9402 | } |
| 9403 | public static NestedMessage ParseFrom(pb::ByteString data, pb::ExtensionRegistry extensionRegistry) { |
| 9404 | return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed(); |
| 9405 | } |
| 9406 | public static NestedMessage ParseFrom(byte[] data) { |
| 9407 | return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed(); |
| 9408 | } |
| 9409 | public static NestedMessage ParseFrom(byte[] data, pb::ExtensionRegistry extensionRegistry) { |
| 9410 | return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed(); |
| 9411 | } |
| 9412 | public static NestedMessage ParseFrom(global::System.IO.Stream input) { |
| 9413 | return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed(); |
| 9414 | } |
| 9415 | public static NestedMessage ParseFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) { |
| 9416 | return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed(); |
| 9417 | } |
| 9418 | public static NestedMessage ParseFrom(pb::CodedInputStream input) { |
| 9419 | return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed(); |
| 9420 | } |
| 9421 | public static NestedMessage ParseFrom(pb::CodedInputStream input, pb::ExtensionRegistry extensionRegistry) { |
| 9422 | return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed(); |
| 9423 | } |
| 9424 | public static Builder CreateBuilder() { return new Builder(); } |
| 9425 | public override Builder CreateBuilderForType() { return new Builder(); } |
| 9426 | public static Builder CreateBuilder(NestedMessage prototype) { |
| 9427 | return (Builder) new Builder().MergeFrom(prototype); |
| 9428 | } |
| 9429 | |
| 9430 | public sealed partial class Builder : pb::GeneratedBuilder<NestedMessage, Builder> { |
| 9431 | protected override Builder ThisBuilder { |
| 9432 | get { return this; } |
| 9433 | } |
| 9434 | public Builder() {} |
| 9435 | |
| 9436 | NestedMessage result = new NestedMessage(); |
| 9437 | |
| 9438 | protected override NestedMessage MessageBeingBuilt { |
| 9439 | get { return result; } |
| 9440 | } |
| 9441 | |
| 9442 | public override Builder Clear() { |
| 9443 | result = new NestedMessage(); |
| 9444 | return this; |
| 9445 | } |
| 9446 | |
| 9447 | public override Builder Clone() { |
| 9448 | return new Builder().MergeFrom(result); |
| 9449 | } |
| 9450 | |
| 9451 | public override pbd::MessageDescriptor DescriptorForType { |
| 9452 | get { return NestedMessage.Descriptor; } |
| 9453 | } |
| 9454 | |
| 9455 | public override NestedMessage DefaultInstanceForType { |
| 9456 | get { return NestedMessage.DefaultInstance; } |
| 9457 | } |
| 9458 | |
| 9459 | public override NestedMessage BuildPartial() { |
| 9460 | result.nestedmessageRepeatedInt32_.MakeReadOnly(); |
| 9461 | result.nestedmessageRepeatedForeignmessage_.MakeReadOnly(); |
| 9462 | NestedMessage returnMe = result; |
| 9463 | result = null; |
| 9464 | return returnMe; |
| 9465 | } |
| 9466 | |
| 9467 | public override Builder MergeFrom(pb::IMessage other) { |
| 9468 | if (other is NestedMessage) { |
| 9469 | return MergeFrom((NestedMessage) other); |
| 9470 | } else { |
| 9471 | base.MergeFrom(other); |
| 9472 | return this; |
| 9473 | } |
| 9474 | } |
| 9475 | |
| 9476 | public override Builder MergeFrom(NestedMessage other) { |
| 9477 | if (other == NestedMessage.DefaultInstance) return this; |
| 9478 | if (other.nestedmessageRepeatedInt32_.Count != 0) { |
| 9479 | base.AddRange(other.nestedmessageRepeatedInt32_, result.nestedmessageRepeatedInt32_); |
| 9480 | } |
| 9481 | if (other.nestedmessageRepeatedForeignmessage_.Count != 0) { |
| 9482 | base.AddRange(other.nestedmessageRepeatedForeignmessage_, result.nestedmessageRepeatedForeignmessage_); |
| 9483 | } |
| 9484 | this.MergeUnknownFields(other.UnknownFields); |
| 9485 | return this; |
| 9486 | } |
| 9487 | |
| 9488 | public override Builder MergeFrom(pb::CodedInputStream input) { |
| 9489 | return MergeFrom(input, pb::ExtensionRegistry.Empty); |
| 9490 | } |
| 9491 | |
| 9492 | public override Builder MergeFrom(pb::CodedInputStream input, pb::ExtensionRegistry extensionRegistry) { |
| 9493 | pb::UnknownFieldSet.Builder unknownFields = pb::UnknownFieldSet.CreateBuilder(this.UnknownFields); |
| 9494 | while (true) { |
| 9495 | uint tag = input.ReadTag(); |
| 9496 | switch (tag) { |
| 9497 | case 0: { |
| 9498 | this.UnknownFields = unknownFields.Build(); |
| 9499 | return this; |
| 9500 | } |
| 9501 | default: { |
| 9502 | if (!ParseUnknownField(input, unknownFields, extensionRegistry, tag)) { |
| 9503 | this.UnknownFields = unknownFields.Build(); |
| 9504 | return this; |
| 9505 | } |
| 9506 | break; |
| 9507 | } |
| 9508 | case 8: { |
| 9509 | AddNestedmessageRepeatedInt32(input.ReadInt32()); |
| 9510 | break; |
| 9511 | } |
| 9512 | case 18: { |
| 9513 | global::Google.ProtocolBuffers.TestProtos.ForeignMessage.Builder subBuilder = global::Google.ProtocolBuffers.TestProtos.ForeignMessage.CreateBuilder(); |
| 9514 | input.ReadMessage(subBuilder, extensionRegistry); |
| 9515 | AddNestedmessageRepeatedForeignmessage(subBuilder.BuildPartial()); |
| 9516 | break; |
| 9517 | } |
| 9518 | } |
| 9519 | } |
| 9520 | } |
| 9521 | |
| 9522 | |
| 9523 | public scg::IList<int> NestedmessageRepeatedInt32List { |
| 9524 | get { return result.nestedmessageRepeatedInt32_; } |
| 9525 | } |
| 9526 | public int NestedmessageRepeatedInt32Count { |
| 9527 | get { return result.NestedmessageRepeatedInt32Count; } |
| 9528 | } |
| 9529 | public int GetNestedmessageRepeatedInt32(int index) { |
| 9530 | return result.GetNestedmessageRepeatedInt32(index); |
| 9531 | } |
| 9532 | public Builder SetNestedmessageRepeatedInt32(int index, int value) { |
| 9533 | result.nestedmessageRepeatedInt32_[index] = value; |
| 9534 | return this; |
| 9535 | } |
| 9536 | public Builder AddNestedmessageRepeatedInt32(int value) { |
| 9537 | result.nestedmessageRepeatedInt32_.Add(value); |
| 9538 | return this; |
| 9539 | } |
| 9540 | public Builder AddRangeNestedmessageRepeatedInt32(scg::IEnumerable<int> values) { |
| 9541 | base.AddRange(values, result.nestedmessageRepeatedInt32_); |
| 9542 | return this; |
| 9543 | } |
| 9544 | public Builder ClearNestedmessageRepeatedInt32() { |
| 9545 | result.nestedmessageRepeatedInt32_.Clear(); |
| 9546 | return this; |
| 9547 | } |
| 9548 | |
| 9549 | public scg::IList<global::Google.ProtocolBuffers.TestProtos.ForeignMessage> NestedmessageRepeatedForeignmessageList { |
| 9550 | get { return result.nestedmessageRepeatedForeignmessage_; } |
| 9551 | } |
| 9552 | public int NestedmessageRepeatedForeignmessageCount { |
| 9553 | get { return result.NestedmessageRepeatedForeignmessageCount; } |
| 9554 | } |
| 9555 | public global::Google.ProtocolBuffers.TestProtos.ForeignMessage GetNestedmessageRepeatedForeignmessage(int index) { |
| 9556 | return result.GetNestedmessageRepeatedForeignmessage(index); |
| 9557 | } |
| 9558 | public Builder SetNestedmessageRepeatedForeignmessage(int index, global::Google.ProtocolBuffers.TestProtos.ForeignMessage value) { |
Jon Skeet | 642a814 | 2009-01-27 12:25:21 +0000 | [diff] [blame] | 9559 | pb::ThrowHelper.ThrowIfNull(value, "value"); |
Jon Skeet | 6803686 | 2008-10-22 13:30:34 +0100 | [diff] [blame] | 9560 | result.nestedmessageRepeatedForeignmessage_[index] = value; |
| 9561 | return this; |
| 9562 | } |
| 9563 | public Builder SetNestedmessageRepeatedForeignmessage(int index, global::Google.ProtocolBuffers.TestProtos.ForeignMessage.Builder builderForValue) { |
Jon Skeet | 642a814 | 2009-01-27 12:25:21 +0000 | [diff] [blame] | 9564 | pb::ThrowHelper.ThrowIfNull(builderForValue, "builderForValue"); |
Jon Skeet | 6803686 | 2008-10-22 13:30:34 +0100 | [diff] [blame] | 9565 | result.nestedmessageRepeatedForeignmessage_[index] = builderForValue.Build(); |
| 9566 | return this; |
| 9567 | } |
| 9568 | public Builder AddNestedmessageRepeatedForeignmessage(global::Google.ProtocolBuffers.TestProtos.ForeignMessage value) { |
Jon Skeet | 642a814 | 2009-01-27 12:25:21 +0000 | [diff] [blame] | 9569 | pb::ThrowHelper.ThrowIfNull(value, "value"); |
Jon Skeet | 6803686 | 2008-10-22 13:30:34 +0100 | [diff] [blame] | 9570 | result.nestedmessageRepeatedForeignmessage_.Add(value); |
| 9571 | return this; |
| 9572 | } |
| 9573 | public Builder AddNestedmessageRepeatedForeignmessage(global::Google.ProtocolBuffers.TestProtos.ForeignMessage.Builder builderForValue) { |
Jon Skeet | 642a814 | 2009-01-27 12:25:21 +0000 | [diff] [blame] | 9574 | pb::ThrowHelper.ThrowIfNull(builderForValue, "builderForValue"); |
Jon Skeet | 6803686 | 2008-10-22 13:30:34 +0100 | [diff] [blame] | 9575 | result.nestedmessageRepeatedForeignmessage_.Add(builderForValue.Build()); |
| 9576 | return this; |
| 9577 | } |
| 9578 | public Builder AddRangeNestedmessageRepeatedForeignmessage(scg::IEnumerable<global::Google.ProtocolBuffers.TestProtos.ForeignMessage> values) { |
| 9579 | base.AddRange(values, result.nestedmessageRepeatedForeignmessage_); |
| 9580 | return this; |
| 9581 | } |
| 9582 | public Builder ClearNestedmessageRepeatedForeignmessage() { |
| 9583 | result.nestedmessageRepeatedForeignmessage_.Clear(); |
| 9584 | return this; |
| 9585 | } |
| 9586 | } |
| 9587 | } |
| 9588 | |
| 9589 | } |
| 9590 | #endregion |
| 9591 | |
| 9592 | private bool hasOptionalNestedMessage; |
| 9593 | private global::Google.ProtocolBuffers.TestProtos.TestNestedMessageHasBits.Types.NestedMessage optionalNestedMessage_ = global::Google.ProtocolBuffers.TestProtos.TestNestedMessageHasBits.Types.NestedMessage.DefaultInstance; |
| 9594 | public bool HasOptionalNestedMessage { |
| 9595 | get { return hasOptionalNestedMessage; } |
| 9596 | } |
| 9597 | public global::Google.ProtocolBuffers.TestProtos.TestNestedMessageHasBits.Types.NestedMessage OptionalNestedMessage { |
| 9598 | get { return optionalNestedMessage_; } |
| 9599 | } |
| 9600 | |
| 9601 | public override bool IsInitialized { |
| 9602 | get { |
| 9603 | return true; |
| 9604 | } |
| 9605 | } |
| 9606 | |
| 9607 | public override void WriteTo(pb::CodedOutputStream output) { |
| 9608 | if (HasOptionalNestedMessage) { |
| 9609 | output.WriteMessage(1, OptionalNestedMessage); |
| 9610 | } |
| 9611 | UnknownFields.WriteTo(output); |
| 9612 | } |
| 9613 | |
| 9614 | private int memoizedSerializedSize = -1; |
| 9615 | public override int SerializedSize { |
| 9616 | get { |
| 9617 | int size = memoizedSerializedSize; |
| 9618 | if (size != -1) return size; |
| 9619 | |
| 9620 | size = 0; |
| 9621 | if (HasOptionalNestedMessage) { |
| 9622 | size += pb::CodedOutputStream.ComputeMessageSize(1, OptionalNestedMessage); |
| 9623 | } |
| 9624 | size += UnknownFields.SerializedSize; |
| 9625 | memoizedSerializedSize = size; |
| 9626 | return size; |
| 9627 | } |
| 9628 | } |
| 9629 | |
| 9630 | public static TestNestedMessageHasBits ParseFrom(pb::ByteString data) { |
| 9631 | return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed(); |
| 9632 | } |
| 9633 | public static TestNestedMessageHasBits ParseFrom(pb::ByteString data, pb::ExtensionRegistry extensionRegistry) { |
| 9634 | return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed(); |
| 9635 | } |
| 9636 | public static TestNestedMessageHasBits ParseFrom(byte[] data) { |
| 9637 | return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed(); |
| 9638 | } |
| 9639 | public static TestNestedMessageHasBits ParseFrom(byte[] data, pb::ExtensionRegistry extensionRegistry) { |
| 9640 | return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed(); |
| 9641 | } |
| 9642 | public static TestNestedMessageHasBits ParseFrom(global::System.IO.Stream input) { |
| 9643 | return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed(); |
| 9644 | } |
| 9645 | public static TestNestedMessageHasBits ParseFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) { |
| 9646 | return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed(); |
| 9647 | } |
| 9648 | public static TestNestedMessageHasBits ParseFrom(pb::CodedInputStream input) { |
| 9649 | return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed(); |
| 9650 | } |
| 9651 | public static TestNestedMessageHasBits ParseFrom(pb::CodedInputStream input, pb::ExtensionRegistry extensionRegistry) { |
| 9652 | return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed(); |
| 9653 | } |
| 9654 | public static Builder CreateBuilder() { return new Builder(); } |
| 9655 | public override Builder CreateBuilderForType() { return new Builder(); } |
| 9656 | public static Builder CreateBuilder(TestNestedMessageHasBits prototype) { |
| 9657 | return (Builder) new Builder().MergeFrom(prototype); |
| 9658 | } |
| 9659 | |
| 9660 | public sealed partial class Builder : pb::GeneratedBuilder<TestNestedMessageHasBits, Builder> { |
| 9661 | protected override Builder ThisBuilder { |
| 9662 | get { return this; } |
| 9663 | } |
| 9664 | public Builder() {} |
| 9665 | |
| 9666 | TestNestedMessageHasBits result = new TestNestedMessageHasBits(); |
| 9667 | |
| 9668 | protected override TestNestedMessageHasBits MessageBeingBuilt { |
| 9669 | get { return result; } |
| 9670 | } |
| 9671 | |
| 9672 | public override Builder Clear() { |
| 9673 | result = new TestNestedMessageHasBits(); |
| 9674 | return this; |
| 9675 | } |
| 9676 | |
| 9677 | public override Builder Clone() { |
| 9678 | return new Builder().MergeFrom(result); |
| 9679 | } |
| 9680 | |
| 9681 | public override pbd::MessageDescriptor DescriptorForType { |
| 9682 | get { return TestNestedMessageHasBits.Descriptor; } |
| 9683 | } |
| 9684 | |
| 9685 | public override TestNestedMessageHasBits DefaultInstanceForType { |
| 9686 | get { return TestNestedMessageHasBits.DefaultInstance; } |
| 9687 | } |
| 9688 | |
| 9689 | public override TestNestedMessageHasBits BuildPartial() { |
| 9690 | TestNestedMessageHasBits returnMe = result; |
| 9691 | result = null; |
| 9692 | return returnMe; |
| 9693 | } |
| 9694 | |
| 9695 | public override Builder MergeFrom(pb::IMessage other) { |
| 9696 | if (other is TestNestedMessageHasBits) { |
| 9697 | return MergeFrom((TestNestedMessageHasBits) other); |
| 9698 | } else { |
| 9699 | base.MergeFrom(other); |
| 9700 | return this; |
| 9701 | } |
| 9702 | } |
| 9703 | |
| 9704 | public override Builder MergeFrom(TestNestedMessageHasBits other) { |
| 9705 | if (other == TestNestedMessageHasBits.DefaultInstance) return this; |
| 9706 | if (other.HasOptionalNestedMessage) { |
| 9707 | MergeOptionalNestedMessage(other.OptionalNestedMessage); |
| 9708 | } |
| 9709 | this.MergeUnknownFields(other.UnknownFields); |
| 9710 | return this; |
| 9711 | } |
| 9712 | |
| 9713 | public override Builder MergeFrom(pb::CodedInputStream input) { |
| 9714 | return MergeFrom(input, pb::ExtensionRegistry.Empty); |
| 9715 | } |
| 9716 | |
| 9717 | public override Builder MergeFrom(pb::CodedInputStream input, pb::ExtensionRegistry extensionRegistry) { |
| 9718 | pb::UnknownFieldSet.Builder unknownFields = pb::UnknownFieldSet.CreateBuilder(this.UnknownFields); |
| 9719 | while (true) { |
| 9720 | uint tag = input.ReadTag(); |
| 9721 | switch (tag) { |
| 9722 | case 0: { |
| 9723 | this.UnknownFields = unknownFields.Build(); |
| 9724 | return this; |
| 9725 | } |
| 9726 | default: { |
| 9727 | if (!ParseUnknownField(input, unknownFields, extensionRegistry, tag)) { |
| 9728 | this.UnknownFields = unknownFields.Build(); |
| 9729 | return this; |
| 9730 | } |
| 9731 | break; |
| 9732 | } |
| 9733 | case 10: { |
| 9734 | global::Google.ProtocolBuffers.TestProtos.TestNestedMessageHasBits.Types.NestedMessage.Builder subBuilder = global::Google.ProtocolBuffers.TestProtos.TestNestedMessageHasBits.Types.NestedMessage.CreateBuilder(); |
| 9735 | if (HasOptionalNestedMessage) { |
| 9736 | subBuilder.MergeFrom(OptionalNestedMessage); |
| 9737 | } |
| 9738 | input.ReadMessage(subBuilder, extensionRegistry); |
| 9739 | OptionalNestedMessage = subBuilder.BuildPartial(); |
| 9740 | break; |
| 9741 | } |
| 9742 | } |
| 9743 | } |
| 9744 | } |
| 9745 | |
| 9746 | |
| 9747 | public bool HasOptionalNestedMessage { |
| 9748 | get { return result.HasOptionalNestedMessage; } |
| 9749 | } |
| 9750 | public global::Google.ProtocolBuffers.TestProtos.TestNestedMessageHasBits.Types.NestedMessage OptionalNestedMessage { |
| 9751 | get { return result.OptionalNestedMessage; } |
| 9752 | set { SetOptionalNestedMessage(value); } |
| 9753 | } |
| 9754 | public Builder SetOptionalNestedMessage(global::Google.ProtocolBuffers.TestProtos.TestNestedMessageHasBits.Types.NestedMessage value) { |
Jon Skeet | 642a814 | 2009-01-27 12:25:21 +0000 | [diff] [blame] | 9755 | pb::ThrowHelper.ThrowIfNull(value, "value"); |
Jon Skeet | 6803686 | 2008-10-22 13:30:34 +0100 | [diff] [blame] | 9756 | result.hasOptionalNestedMessage = true; |
| 9757 | result.optionalNestedMessage_ = value; |
| 9758 | return this; |
| 9759 | } |
| 9760 | public Builder SetOptionalNestedMessage(global::Google.ProtocolBuffers.TestProtos.TestNestedMessageHasBits.Types.NestedMessage.Builder builderForValue) { |
Jon Skeet | 642a814 | 2009-01-27 12:25:21 +0000 | [diff] [blame] | 9761 | pb::ThrowHelper.ThrowIfNull(builderForValue, "builderForValue"); |
Jon Skeet | 6803686 | 2008-10-22 13:30:34 +0100 | [diff] [blame] | 9762 | result.hasOptionalNestedMessage = true; |
| 9763 | result.optionalNestedMessage_ = builderForValue.Build(); |
| 9764 | return this; |
| 9765 | } |
| 9766 | public Builder MergeOptionalNestedMessage(global::Google.ProtocolBuffers.TestProtos.TestNestedMessageHasBits.Types.NestedMessage value) { |
Jon Skeet | 642a814 | 2009-01-27 12:25:21 +0000 | [diff] [blame] | 9767 | pb::ThrowHelper.ThrowIfNull(value, "value"); |
Jon Skeet | 6803686 | 2008-10-22 13:30:34 +0100 | [diff] [blame] | 9768 | if (result.HasOptionalNestedMessage && |
| 9769 | result.optionalNestedMessage_ != global::Google.ProtocolBuffers.TestProtos.TestNestedMessageHasBits.Types.NestedMessage.DefaultInstance) { |
| 9770 | result.optionalNestedMessage_ = global::Google.ProtocolBuffers.TestProtos.TestNestedMessageHasBits.Types.NestedMessage.CreateBuilder(result.optionalNestedMessage_).MergeFrom(value).BuildPartial(); |
| 9771 | } else { |
| 9772 | result.optionalNestedMessage_ = value; |
| 9773 | } |
| 9774 | result.hasOptionalNestedMessage = true; |
| 9775 | return this; |
| 9776 | } |
| 9777 | public Builder ClearOptionalNestedMessage() { |
| 9778 | result.hasOptionalNestedMessage = false; |
| 9779 | result.optionalNestedMessage_ = global::Google.ProtocolBuffers.TestProtos.TestNestedMessageHasBits.Types.NestedMessage.DefaultInstance; |
| 9780 | return this; |
| 9781 | } |
| 9782 | } |
| 9783 | } |
| 9784 | |
| 9785 | public sealed partial class TestCamelCaseFieldNames : pb::GeneratedMessage<TestCamelCaseFieldNames, TestCamelCaseFieldNames.Builder> { |
| 9786 | private static readonly TestCamelCaseFieldNames defaultInstance = new Builder().BuildPartial(); |
| 9787 | public static TestCamelCaseFieldNames DefaultInstance { |
| 9788 | get { return defaultInstance; } |
| 9789 | } |
| 9790 | |
| 9791 | public override TestCamelCaseFieldNames DefaultInstanceForType { |
| 9792 | get { return defaultInstance; } |
| 9793 | } |
| 9794 | |
| 9795 | protected override TestCamelCaseFieldNames ThisMessage { |
| 9796 | get { return this; } |
| 9797 | } |
| 9798 | |
| 9799 | public static pbd::MessageDescriptor Descriptor { |
| 9800 | get { return global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.internal__static_protobuf_unittest_TestCamelCaseFieldNames__Descriptor; } |
| 9801 | } |
| 9802 | |
| 9803 | protected override pb::FieldAccess.FieldAccessorTable<TestCamelCaseFieldNames, TestCamelCaseFieldNames.Builder> InternalFieldAccessors { |
| 9804 | get { return global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.internal__static_protobuf_unittest_TestCamelCaseFieldNames__FieldAccessorTable; } |
| 9805 | } |
| 9806 | |
| 9807 | private bool hasPrimitiveField; |
| 9808 | private int primitiveField_ = 0; |
| 9809 | public bool HasPrimitiveField { |
| 9810 | get { return hasPrimitiveField; } |
| 9811 | } |
| 9812 | public int PrimitiveField { |
| 9813 | get { return primitiveField_; } |
| 9814 | } |
| 9815 | |
| 9816 | private bool hasStringField; |
| 9817 | private string stringField_ = ""; |
| 9818 | public bool HasStringField { |
| 9819 | get { return hasStringField; } |
| 9820 | } |
| 9821 | public string StringField { |
| 9822 | get { return stringField_; } |
| 9823 | } |
| 9824 | |
| 9825 | private bool hasEnumField; |
| 9826 | private global::Google.ProtocolBuffers.TestProtos.ForeignEnum enumField_ = global::Google.ProtocolBuffers.TestProtos.ForeignEnum.FOREIGN_FOO; |
| 9827 | public bool HasEnumField { |
| 9828 | get { return hasEnumField; } |
| 9829 | } |
| 9830 | public global::Google.ProtocolBuffers.TestProtos.ForeignEnum EnumField { |
| 9831 | get { return enumField_; } |
| 9832 | } |
| 9833 | |
| 9834 | private bool hasMessageField; |
| 9835 | private global::Google.ProtocolBuffers.TestProtos.ForeignMessage messageField_ = global::Google.ProtocolBuffers.TestProtos.ForeignMessage.DefaultInstance; |
| 9836 | public bool HasMessageField { |
| 9837 | get { return hasMessageField; } |
| 9838 | } |
| 9839 | public global::Google.ProtocolBuffers.TestProtos.ForeignMessage MessageField { |
| 9840 | get { return messageField_; } |
| 9841 | } |
| 9842 | |
| 9843 | private bool hasStringPieceField; |
| 9844 | private string stringPieceField_ = ""; |
| 9845 | public bool HasStringPieceField { |
| 9846 | get { return hasStringPieceField; } |
| 9847 | } |
| 9848 | public string StringPieceField { |
| 9849 | get { return stringPieceField_; } |
| 9850 | } |
| 9851 | |
| 9852 | private bool hasCordField; |
| 9853 | private string cordField_ = ""; |
| 9854 | public bool HasCordField { |
| 9855 | get { return hasCordField; } |
| 9856 | } |
| 9857 | public string CordField { |
| 9858 | get { return cordField_; } |
| 9859 | } |
| 9860 | |
| 9861 | private pbc::PopsicleList<int> repeatedPrimitiveField_ = new pbc::PopsicleList<int>(); |
| 9862 | public scg::IList<int> RepeatedPrimitiveFieldList { |
| 9863 | get { return pbc::Lists.AsReadOnly(repeatedPrimitiveField_); } |
| 9864 | } |
| 9865 | public int RepeatedPrimitiveFieldCount { |
| 9866 | get { return repeatedPrimitiveField_.Count; } |
| 9867 | } |
| 9868 | public int GetRepeatedPrimitiveField(int index) { |
| 9869 | return repeatedPrimitiveField_[index]; |
| 9870 | } |
| 9871 | |
| 9872 | private pbc::PopsicleList<string> repeatedStringField_ = new pbc::PopsicleList<string>(); |
| 9873 | public scg::IList<string> RepeatedStringFieldList { |
| 9874 | get { return pbc::Lists.AsReadOnly(repeatedStringField_); } |
| 9875 | } |
| 9876 | public int RepeatedStringFieldCount { |
| 9877 | get { return repeatedStringField_.Count; } |
| 9878 | } |
| 9879 | public string GetRepeatedStringField(int index) { |
| 9880 | return repeatedStringField_[index]; |
| 9881 | } |
| 9882 | |
| 9883 | private pbc::PopsicleList<global::Google.ProtocolBuffers.TestProtos.ForeignEnum> repeatedEnumField_ = new pbc::PopsicleList<global::Google.ProtocolBuffers.TestProtos.ForeignEnum>(); |
| 9884 | public scg::IList<global::Google.ProtocolBuffers.TestProtos.ForeignEnum> RepeatedEnumFieldList { |
| 9885 | get { return pbc::Lists.AsReadOnly(repeatedEnumField_); } |
| 9886 | } |
| 9887 | public int RepeatedEnumFieldCount { |
| 9888 | get { return repeatedEnumField_.Count; } |
| 9889 | } |
| 9890 | public global::Google.ProtocolBuffers.TestProtos.ForeignEnum GetRepeatedEnumField(int index) { |
| 9891 | return repeatedEnumField_[index]; |
| 9892 | } |
| 9893 | |
| 9894 | private pbc::PopsicleList<global::Google.ProtocolBuffers.TestProtos.ForeignMessage> repeatedMessageField_ = new pbc::PopsicleList<global::Google.ProtocolBuffers.TestProtos.ForeignMessage>(); |
| 9895 | public scg::IList<global::Google.ProtocolBuffers.TestProtos.ForeignMessage> RepeatedMessageFieldList { |
| 9896 | get { return repeatedMessageField_; } |
| 9897 | } |
| 9898 | public int RepeatedMessageFieldCount { |
| 9899 | get { return repeatedMessageField_.Count; } |
| 9900 | } |
| 9901 | public global::Google.ProtocolBuffers.TestProtos.ForeignMessage GetRepeatedMessageField(int index) { |
| 9902 | return repeatedMessageField_[index]; |
| 9903 | } |
| 9904 | |
| 9905 | private pbc::PopsicleList<string> repeatedStringPieceField_ = new pbc::PopsicleList<string>(); |
| 9906 | public scg::IList<string> RepeatedStringPieceFieldList { |
| 9907 | get { return pbc::Lists.AsReadOnly(repeatedStringPieceField_); } |
| 9908 | } |
| 9909 | public int RepeatedStringPieceFieldCount { |
| 9910 | get { return repeatedStringPieceField_.Count; } |
| 9911 | } |
| 9912 | public string GetRepeatedStringPieceField(int index) { |
| 9913 | return repeatedStringPieceField_[index]; |
| 9914 | } |
| 9915 | |
| 9916 | private pbc::PopsicleList<string> repeatedCordField_ = new pbc::PopsicleList<string>(); |
| 9917 | public scg::IList<string> RepeatedCordFieldList { |
| 9918 | get { return pbc::Lists.AsReadOnly(repeatedCordField_); } |
| 9919 | } |
| 9920 | public int RepeatedCordFieldCount { |
| 9921 | get { return repeatedCordField_.Count; } |
| 9922 | } |
| 9923 | public string GetRepeatedCordField(int index) { |
| 9924 | return repeatedCordField_[index]; |
| 9925 | } |
| 9926 | |
| 9927 | public override bool IsInitialized { |
| 9928 | get { |
| 9929 | return true; |
| 9930 | } |
| 9931 | } |
| 9932 | |
| 9933 | public override void WriteTo(pb::CodedOutputStream output) { |
| 9934 | if (HasPrimitiveField) { |
| 9935 | output.WriteInt32(1, PrimitiveField); |
| 9936 | } |
| 9937 | if (HasStringField) { |
| 9938 | output.WriteString(2, StringField); |
| 9939 | } |
| 9940 | if (HasEnumField) { |
| 9941 | output.WriteEnum(3, (int) EnumField); |
| 9942 | } |
| 9943 | if (HasMessageField) { |
| 9944 | output.WriteMessage(4, MessageField); |
| 9945 | } |
| 9946 | if (HasStringPieceField) { |
| 9947 | output.WriteString(5, StringPieceField); |
| 9948 | } |
| 9949 | if (HasCordField) { |
| 9950 | output.WriteString(6, CordField); |
| 9951 | } |
| 9952 | foreach (int element in RepeatedPrimitiveFieldList) { |
| 9953 | output.WriteInt32(7, element); |
| 9954 | } |
| 9955 | foreach (string element in RepeatedStringFieldList) { |
| 9956 | output.WriteString(8, element); |
| 9957 | } |
| 9958 | foreach (global::Google.ProtocolBuffers.TestProtos.ForeignEnum element in RepeatedEnumFieldList) { |
| 9959 | output.WriteEnum(9, (int) element); |
| 9960 | } |
| 9961 | foreach (global::Google.ProtocolBuffers.TestProtos.ForeignMessage element in RepeatedMessageFieldList) { |
| 9962 | output.WriteMessage(10, element); |
| 9963 | } |
| 9964 | foreach (string element in RepeatedStringPieceFieldList) { |
| 9965 | output.WriteString(11, element); |
| 9966 | } |
| 9967 | foreach (string element in RepeatedCordFieldList) { |
| 9968 | output.WriteString(12, element); |
| 9969 | } |
| 9970 | UnknownFields.WriteTo(output); |
| 9971 | } |
| 9972 | |
| 9973 | private int memoizedSerializedSize = -1; |
| 9974 | public override int SerializedSize { |
| 9975 | get { |
| 9976 | int size = memoizedSerializedSize; |
| 9977 | if (size != -1) return size; |
| 9978 | |
| 9979 | size = 0; |
| 9980 | if (HasPrimitiveField) { |
| 9981 | size += pb::CodedOutputStream.ComputeInt32Size(1, PrimitiveField); |
| 9982 | } |
| 9983 | if (HasStringField) { |
| 9984 | size += pb::CodedOutputStream.ComputeStringSize(2, StringField); |
| 9985 | } |
| 9986 | if (HasEnumField) { |
| 9987 | size += pb::CodedOutputStream.ComputeEnumSize(3, (int) EnumField); |
| 9988 | } |
| 9989 | if (HasMessageField) { |
| 9990 | size += pb::CodedOutputStream.ComputeMessageSize(4, MessageField); |
| 9991 | } |
| 9992 | if (HasStringPieceField) { |
| 9993 | size += pb::CodedOutputStream.ComputeStringSize(5, StringPieceField); |
| 9994 | } |
| 9995 | if (HasCordField) { |
| 9996 | size += pb::CodedOutputStream.ComputeStringSize(6, CordField); |
| 9997 | } |
| 9998 | foreach (int element in RepeatedPrimitiveFieldList) { |
| 9999 | size += pb::CodedOutputStream.ComputeInt32Size(7, element); |
| 10000 | } |
| 10001 | foreach (string element in RepeatedStringFieldList) { |
| 10002 | size += pb::CodedOutputStream.ComputeStringSize(8, element); |
| 10003 | } |
| 10004 | foreach (global::Google.ProtocolBuffers.TestProtos.ForeignEnum element in RepeatedEnumFieldList) { |
| 10005 | size += pb::CodedOutputStream.ComputeEnumSize(9, (int) element); |
| 10006 | } |
| 10007 | foreach (global::Google.ProtocolBuffers.TestProtos.ForeignMessage element in RepeatedMessageFieldList) { |
| 10008 | size += pb::CodedOutputStream.ComputeMessageSize(10, element); |
| 10009 | } |
| 10010 | foreach (string element in RepeatedStringPieceFieldList) { |
| 10011 | size += pb::CodedOutputStream.ComputeStringSize(11, element); |
| 10012 | } |
| 10013 | foreach (string element in RepeatedCordFieldList) { |
| 10014 | size += pb::CodedOutputStream.ComputeStringSize(12, element); |
| 10015 | } |
| 10016 | size += UnknownFields.SerializedSize; |
| 10017 | memoizedSerializedSize = size; |
| 10018 | return size; |
| 10019 | } |
| 10020 | } |
| 10021 | |
| 10022 | public static TestCamelCaseFieldNames ParseFrom(pb::ByteString data) { |
| 10023 | return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed(); |
| 10024 | } |
| 10025 | public static TestCamelCaseFieldNames ParseFrom(pb::ByteString data, pb::ExtensionRegistry extensionRegistry) { |
| 10026 | return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed(); |
| 10027 | } |
| 10028 | public static TestCamelCaseFieldNames ParseFrom(byte[] data) { |
| 10029 | return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed(); |
| 10030 | } |
| 10031 | public static TestCamelCaseFieldNames ParseFrom(byte[] data, pb::ExtensionRegistry extensionRegistry) { |
| 10032 | return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed(); |
| 10033 | } |
| 10034 | public static TestCamelCaseFieldNames ParseFrom(global::System.IO.Stream input) { |
| 10035 | return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed(); |
| 10036 | } |
| 10037 | public static TestCamelCaseFieldNames ParseFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) { |
| 10038 | return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed(); |
| 10039 | } |
| 10040 | public static TestCamelCaseFieldNames ParseFrom(pb::CodedInputStream input) { |
| 10041 | return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed(); |
| 10042 | } |
| 10043 | public static TestCamelCaseFieldNames ParseFrom(pb::CodedInputStream input, pb::ExtensionRegistry extensionRegistry) { |
| 10044 | return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed(); |
| 10045 | } |
| 10046 | public static Builder CreateBuilder() { return new Builder(); } |
| 10047 | public override Builder CreateBuilderForType() { return new Builder(); } |
| 10048 | public static Builder CreateBuilder(TestCamelCaseFieldNames prototype) { |
| 10049 | return (Builder) new Builder().MergeFrom(prototype); |
| 10050 | } |
| 10051 | |
| 10052 | public sealed partial class Builder : pb::GeneratedBuilder<TestCamelCaseFieldNames, Builder> { |
| 10053 | protected override Builder ThisBuilder { |
| 10054 | get { return this; } |
| 10055 | } |
| 10056 | public Builder() {} |
| 10057 | |
| 10058 | TestCamelCaseFieldNames result = new TestCamelCaseFieldNames(); |
| 10059 | |
| 10060 | protected override TestCamelCaseFieldNames MessageBeingBuilt { |
| 10061 | get { return result; } |
| 10062 | } |
| 10063 | |
| 10064 | public override Builder Clear() { |
| 10065 | result = new TestCamelCaseFieldNames(); |
| 10066 | return this; |
| 10067 | } |
| 10068 | |
| 10069 | public override Builder Clone() { |
| 10070 | return new Builder().MergeFrom(result); |
| 10071 | } |
| 10072 | |
| 10073 | public override pbd::MessageDescriptor DescriptorForType { |
| 10074 | get { return TestCamelCaseFieldNames.Descriptor; } |
| 10075 | } |
| 10076 | |
| 10077 | public override TestCamelCaseFieldNames DefaultInstanceForType { |
| 10078 | get { return TestCamelCaseFieldNames.DefaultInstance; } |
| 10079 | } |
| 10080 | |
| 10081 | public override TestCamelCaseFieldNames BuildPartial() { |
| 10082 | result.repeatedPrimitiveField_.MakeReadOnly(); |
| 10083 | result.repeatedStringField_.MakeReadOnly(); |
| 10084 | result.repeatedEnumField_.MakeReadOnly(); |
| 10085 | result.repeatedMessageField_.MakeReadOnly(); |
| 10086 | result.repeatedStringPieceField_.MakeReadOnly(); |
| 10087 | result.repeatedCordField_.MakeReadOnly(); |
| 10088 | TestCamelCaseFieldNames returnMe = result; |
| 10089 | result = null; |
| 10090 | return returnMe; |
| 10091 | } |
| 10092 | |
| 10093 | public override Builder MergeFrom(pb::IMessage other) { |
| 10094 | if (other is TestCamelCaseFieldNames) { |
| 10095 | return MergeFrom((TestCamelCaseFieldNames) other); |
| 10096 | } else { |
| 10097 | base.MergeFrom(other); |
| 10098 | return this; |
| 10099 | } |
| 10100 | } |
| 10101 | |
| 10102 | public override Builder MergeFrom(TestCamelCaseFieldNames other) { |
| 10103 | if (other == TestCamelCaseFieldNames.DefaultInstance) return this; |
| 10104 | if (other.HasPrimitiveField) { |
| 10105 | PrimitiveField = other.PrimitiveField; |
| 10106 | } |
| 10107 | if (other.HasStringField) { |
| 10108 | StringField = other.StringField; |
| 10109 | } |
| 10110 | if (other.HasEnumField) { |
| 10111 | EnumField = other.EnumField; |
| 10112 | } |
| 10113 | if (other.HasMessageField) { |
| 10114 | MergeMessageField(other.MessageField); |
| 10115 | } |
| 10116 | if (other.HasStringPieceField) { |
| 10117 | StringPieceField = other.StringPieceField; |
| 10118 | } |
| 10119 | if (other.HasCordField) { |
| 10120 | CordField = other.CordField; |
| 10121 | } |
| 10122 | if (other.repeatedPrimitiveField_.Count != 0) { |
| 10123 | base.AddRange(other.repeatedPrimitiveField_, result.repeatedPrimitiveField_); |
| 10124 | } |
| 10125 | if (other.repeatedStringField_.Count != 0) { |
| 10126 | base.AddRange(other.repeatedStringField_, result.repeatedStringField_); |
| 10127 | } |
| 10128 | if (other.repeatedEnumField_.Count != 0) { |
| 10129 | base.AddRange(other.repeatedEnumField_, result.repeatedEnumField_); |
| 10130 | } |
| 10131 | if (other.repeatedMessageField_.Count != 0) { |
| 10132 | base.AddRange(other.repeatedMessageField_, result.repeatedMessageField_); |
| 10133 | } |
| 10134 | if (other.repeatedStringPieceField_.Count != 0) { |
| 10135 | base.AddRange(other.repeatedStringPieceField_, result.repeatedStringPieceField_); |
| 10136 | } |
| 10137 | if (other.repeatedCordField_.Count != 0) { |
| 10138 | base.AddRange(other.repeatedCordField_, result.repeatedCordField_); |
| 10139 | } |
| 10140 | this.MergeUnknownFields(other.UnknownFields); |
| 10141 | return this; |
| 10142 | } |
| 10143 | |
| 10144 | public override Builder MergeFrom(pb::CodedInputStream input) { |
| 10145 | return MergeFrom(input, pb::ExtensionRegistry.Empty); |
| 10146 | } |
| 10147 | |
| 10148 | public override Builder MergeFrom(pb::CodedInputStream input, pb::ExtensionRegistry extensionRegistry) { |
| 10149 | pb::UnknownFieldSet.Builder unknownFields = pb::UnknownFieldSet.CreateBuilder(this.UnknownFields); |
| 10150 | while (true) { |
| 10151 | uint tag = input.ReadTag(); |
| 10152 | switch (tag) { |
| 10153 | case 0: { |
| 10154 | this.UnknownFields = unknownFields.Build(); |
| 10155 | return this; |
| 10156 | } |
| 10157 | default: { |
| 10158 | if (!ParseUnknownField(input, unknownFields, extensionRegistry, tag)) { |
| 10159 | this.UnknownFields = unknownFields.Build(); |
| 10160 | return this; |
| 10161 | } |
| 10162 | break; |
| 10163 | } |
| 10164 | case 8: { |
| 10165 | PrimitiveField = input.ReadInt32(); |
| 10166 | break; |
| 10167 | } |
| 10168 | case 18: { |
| 10169 | StringField = input.ReadString(); |
| 10170 | break; |
| 10171 | } |
| 10172 | case 24: { |
| 10173 | int rawValue = input.ReadEnum(); |
| 10174 | if (!global::System.Enum.IsDefined(typeof(global::Google.ProtocolBuffers.TestProtos.ForeignEnum), rawValue)) { |
| 10175 | unknownFields.MergeVarintField(3, (ulong) rawValue); |
| 10176 | } else { |
| 10177 | EnumField = (global::Google.ProtocolBuffers.TestProtos.ForeignEnum) rawValue; |
| 10178 | } |
| 10179 | break; |
| 10180 | } |
| 10181 | case 34: { |
| 10182 | global::Google.ProtocolBuffers.TestProtos.ForeignMessage.Builder subBuilder = global::Google.ProtocolBuffers.TestProtos.ForeignMessage.CreateBuilder(); |
| 10183 | if (HasMessageField) { |
| 10184 | subBuilder.MergeFrom(MessageField); |
| 10185 | } |
| 10186 | input.ReadMessage(subBuilder, extensionRegistry); |
| 10187 | MessageField = subBuilder.BuildPartial(); |
| 10188 | break; |
| 10189 | } |
| 10190 | case 42: { |
| 10191 | StringPieceField = input.ReadString(); |
| 10192 | break; |
| 10193 | } |
| 10194 | case 50: { |
| 10195 | CordField = input.ReadString(); |
| 10196 | break; |
| 10197 | } |
| 10198 | case 56: { |
| 10199 | AddRepeatedPrimitiveField(input.ReadInt32()); |
| 10200 | break; |
| 10201 | } |
| 10202 | case 66: { |
| 10203 | AddRepeatedStringField(input.ReadString()); |
| 10204 | break; |
| 10205 | } |
| 10206 | case 72: { |
| 10207 | int rawValue = input.ReadEnum(); |
| 10208 | if (!global::System.Enum.IsDefined(typeof(global::Google.ProtocolBuffers.TestProtos.ForeignEnum), rawValue)) { |
| 10209 | unknownFields.MergeVarintField(9, (ulong) rawValue); |
| 10210 | } else { |
| 10211 | AddRepeatedEnumField((global::Google.ProtocolBuffers.TestProtos.ForeignEnum) rawValue); |
| 10212 | } |
| 10213 | break; |
| 10214 | } |
| 10215 | case 82: { |
| 10216 | global::Google.ProtocolBuffers.TestProtos.ForeignMessage.Builder subBuilder = global::Google.ProtocolBuffers.TestProtos.ForeignMessage.CreateBuilder(); |
| 10217 | input.ReadMessage(subBuilder, extensionRegistry); |
| 10218 | AddRepeatedMessageField(subBuilder.BuildPartial()); |
| 10219 | break; |
| 10220 | } |
| 10221 | case 90: { |
| 10222 | AddRepeatedStringPieceField(input.ReadString()); |
| 10223 | break; |
| 10224 | } |
| 10225 | case 98: { |
| 10226 | AddRepeatedCordField(input.ReadString()); |
| 10227 | break; |
| 10228 | } |
| 10229 | } |
| 10230 | } |
| 10231 | } |
| 10232 | |
| 10233 | |
| 10234 | public bool HasPrimitiveField { |
| 10235 | get { return result.HasPrimitiveField; } |
| 10236 | } |
| 10237 | public int PrimitiveField { |
| 10238 | get { return result.PrimitiveField; } |
| 10239 | set { SetPrimitiveField(value); } |
| 10240 | } |
| 10241 | public Builder SetPrimitiveField(int value) { |
| 10242 | result.hasPrimitiveField = true; |
| 10243 | result.primitiveField_ = value; |
| 10244 | return this; |
| 10245 | } |
| 10246 | public Builder ClearPrimitiveField() { |
| 10247 | result.hasPrimitiveField = false; |
| 10248 | result.primitiveField_ = 0; |
| 10249 | return this; |
| 10250 | } |
| 10251 | |
| 10252 | public bool HasStringField { |
| 10253 | get { return result.HasStringField; } |
| 10254 | } |
| 10255 | public string StringField { |
| 10256 | get { return result.StringField; } |
| 10257 | set { SetStringField(value); } |
| 10258 | } |
| 10259 | public Builder SetStringField(string value) { |
Jon Skeet | 642a814 | 2009-01-27 12:25:21 +0000 | [diff] [blame] | 10260 | pb::ThrowHelper.ThrowIfNull(value, "value"); |
Jon Skeet | 6803686 | 2008-10-22 13:30:34 +0100 | [diff] [blame] | 10261 | result.hasStringField = true; |
| 10262 | result.stringField_ = value; |
| 10263 | return this; |
| 10264 | } |
| 10265 | public Builder ClearStringField() { |
| 10266 | result.hasStringField = false; |
| 10267 | result.stringField_ = ""; |
| 10268 | return this; |
| 10269 | } |
| 10270 | |
| 10271 | public bool HasEnumField { |
| 10272 | get { return result.HasEnumField; } |
| 10273 | } |
| 10274 | public global::Google.ProtocolBuffers.TestProtos.ForeignEnum EnumField { |
| 10275 | get { return result.EnumField; } |
| 10276 | set { SetEnumField(value); } |
| 10277 | } |
| 10278 | public Builder SetEnumField(global::Google.ProtocolBuffers.TestProtos.ForeignEnum value) { |
| 10279 | result.hasEnumField = true; |
| 10280 | result.enumField_ = value; |
| 10281 | return this; |
| 10282 | } |
| 10283 | public Builder ClearEnumField() { |
| 10284 | result.hasEnumField = false; |
| 10285 | result.enumField_ = global::Google.ProtocolBuffers.TestProtos.ForeignEnum.FOREIGN_FOO; |
| 10286 | return this; |
| 10287 | } |
| 10288 | |
| 10289 | public bool HasMessageField { |
| 10290 | get { return result.HasMessageField; } |
| 10291 | } |
| 10292 | public global::Google.ProtocolBuffers.TestProtos.ForeignMessage MessageField { |
| 10293 | get { return result.MessageField; } |
| 10294 | set { SetMessageField(value); } |
| 10295 | } |
| 10296 | public Builder SetMessageField(global::Google.ProtocolBuffers.TestProtos.ForeignMessage value) { |
Jon Skeet | 642a814 | 2009-01-27 12:25:21 +0000 | [diff] [blame] | 10297 | pb::ThrowHelper.ThrowIfNull(value, "value"); |
Jon Skeet | 6803686 | 2008-10-22 13:30:34 +0100 | [diff] [blame] | 10298 | result.hasMessageField = true; |
| 10299 | result.messageField_ = value; |
| 10300 | return this; |
| 10301 | } |
| 10302 | public Builder SetMessageField(global::Google.ProtocolBuffers.TestProtos.ForeignMessage.Builder builderForValue) { |
Jon Skeet | 642a814 | 2009-01-27 12:25:21 +0000 | [diff] [blame] | 10303 | pb::ThrowHelper.ThrowIfNull(builderForValue, "builderForValue"); |
Jon Skeet | 6803686 | 2008-10-22 13:30:34 +0100 | [diff] [blame] | 10304 | result.hasMessageField = true; |
| 10305 | result.messageField_ = builderForValue.Build(); |
| 10306 | return this; |
| 10307 | } |
| 10308 | public Builder MergeMessageField(global::Google.ProtocolBuffers.TestProtos.ForeignMessage value) { |
Jon Skeet | 642a814 | 2009-01-27 12:25:21 +0000 | [diff] [blame] | 10309 | pb::ThrowHelper.ThrowIfNull(value, "value"); |
Jon Skeet | 6803686 | 2008-10-22 13:30:34 +0100 | [diff] [blame] | 10310 | if (result.HasMessageField && |
| 10311 | result.messageField_ != global::Google.ProtocolBuffers.TestProtos.ForeignMessage.DefaultInstance) { |
| 10312 | result.messageField_ = global::Google.ProtocolBuffers.TestProtos.ForeignMessage.CreateBuilder(result.messageField_).MergeFrom(value).BuildPartial(); |
| 10313 | } else { |
| 10314 | result.messageField_ = value; |
| 10315 | } |
| 10316 | result.hasMessageField = true; |
| 10317 | return this; |
| 10318 | } |
| 10319 | public Builder ClearMessageField() { |
| 10320 | result.hasMessageField = false; |
| 10321 | result.messageField_ = global::Google.ProtocolBuffers.TestProtos.ForeignMessage.DefaultInstance; |
| 10322 | return this; |
| 10323 | } |
| 10324 | |
| 10325 | public bool HasStringPieceField { |
| 10326 | get { return result.HasStringPieceField; } |
| 10327 | } |
| 10328 | public string StringPieceField { |
| 10329 | get { return result.StringPieceField; } |
| 10330 | set { SetStringPieceField(value); } |
| 10331 | } |
| 10332 | public Builder SetStringPieceField(string value) { |
Jon Skeet | 642a814 | 2009-01-27 12:25:21 +0000 | [diff] [blame] | 10333 | pb::ThrowHelper.ThrowIfNull(value, "value"); |
Jon Skeet | 6803686 | 2008-10-22 13:30:34 +0100 | [diff] [blame] | 10334 | result.hasStringPieceField = true; |
| 10335 | result.stringPieceField_ = value; |
| 10336 | return this; |
| 10337 | } |
| 10338 | public Builder ClearStringPieceField() { |
| 10339 | result.hasStringPieceField = false; |
| 10340 | result.stringPieceField_ = ""; |
| 10341 | return this; |
| 10342 | } |
| 10343 | |
| 10344 | public bool HasCordField { |
| 10345 | get { return result.HasCordField; } |
| 10346 | } |
| 10347 | public string CordField { |
| 10348 | get { return result.CordField; } |
| 10349 | set { SetCordField(value); } |
| 10350 | } |
| 10351 | public Builder SetCordField(string value) { |
Jon Skeet | 642a814 | 2009-01-27 12:25:21 +0000 | [diff] [blame] | 10352 | pb::ThrowHelper.ThrowIfNull(value, "value"); |
Jon Skeet | 6803686 | 2008-10-22 13:30:34 +0100 | [diff] [blame] | 10353 | result.hasCordField = true; |
| 10354 | result.cordField_ = value; |
| 10355 | return this; |
| 10356 | } |
| 10357 | public Builder ClearCordField() { |
| 10358 | result.hasCordField = false; |
| 10359 | result.cordField_ = ""; |
| 10360 | return this; |
| 10361 | } |
| 10362 | |
| 10363 | public scg::IList<int> RepeatedPrimitiveFieldList { |
| 10364 | get { return result.repeatedPrimitiveField_; } |
| 10365 | } |
| 10366 | public int RepeatedPrimitiveFieldCount { |
| 10367 | get { return result.RepeatedPrimitiveFieldCount; } |
| 10368 | } |
| 10369 | public int GetRepeatedPrimitiveField(int index) { |
| 10370 | return result.GetRepeatedPrimitiveField(index); |
| 10371 | } |
| 10372 | public Builder SetRepeatedPrimitiveField(int index, int value) { |
| 10373 | result.repeatedPrimitiveField_[index] = value; |
| 10374 | return this; |
| 10375 | } |
| 10376 | public Builder AddRepeatedPrimitiveField(int value) { |
| 10377 | result.repeatedPrimitiveField_.Add(value); |
| 10378 | return this; |
| 10379 | } |
| 10380 | public Builder AddRangeRepeatedPrimitiveField(scg::IEnumerable<int> values) { |
| 10381 | base.AddRange(values, result.repeatedPrimitiveField_); |
| 10382 | return this; |
| 10383 | } |
| 10384 | public Builder ClearRepeatedPrimitiveField() { |
| 10385 | result.repeatedPrimitiveField_.Clear(); |
| 10386 | return this; |
| 10387 | } |
| 10388 | |
| 10389 | public scg::IList<string> RepeatedStringFieldList { |
| 10390 | get { return result.repeatedStringField_; } |
| 10391 | } |
| 10392 | public int RepeatedStringFieldCount { |
| 10393 | get { return result.RepeatedStringFieldCount; } |
| 10394 | } |
| 10395 | public string GetRepeatedStringField(int index) { |
| 10396 | return result.GetRepeatedStringField(index); |
| 10397 | } |
| 10398 | public Builder SetRepeatedStringField(int index, string value) { |
Jon Skeet | 642a814 | 2009-01-27 12:25:21 +0000 | [diff] [blame] | 10399 | pb::ThrowHelper.ThrowIfNull(value, "value"); |
Jon Skeet | 6803686 | 2008-10-22 13:30:34 +0100 | [diff] [blame] | 10400 | result.repeatedStringField_[index] = value; |
| 10401 | return this; |
| 10402 | } |
| 10403 | public Builder AddRepeatedStringField(string value) { |
Jon Skeet | 642a814 | 2009-01-27 12:25:21 +0000 | [diff] [blame] | 10404 | pb::ThrowHelper.ThrowIfNull(value, "value"); |
Jon Skeet | 6803686 | 2008-10-22 13:30:34 +0100 | [diff] [blame] | 10405 | result.repeatedStringField_.Add(value); |
| 10406 | return this; |
| 10407 | } |
| 10408 | public Builder AddRangeRepeatedStringField(scg::IEnumerable<string> values) { |
| 10409 | base.AddRange(values, result.repeatedStringField_); |
| 10410 | return this; |
| 10411 | } |
| 10412 | public Builder ClearRepeatedStringField() { |
| 10413 | result.repeatedStringField_.Clear(); |
| 10414 | return this; |
| 10415 | } |
| 10416 | |
| 10417 | public scg::IList<global::Google.ProtocolBuffers.TestProtos.ForeignEnum> RepeatedEnumFieldList { |
| 10418 | get { return result.repeatedEnumField_; } |
| 10419 | } |
| 10420 | public int RepeatedEnumFieldCount { |
| 10421 | get { return result.RepeatedEnumFieldCount; } |
| 10422 | } |
| 10423 | public global::Google.ProtocolBuffers.TestProtos.ForeignEnum GetRepeatedEnumField(int index) { |
| 10424 | return result.GetRepeatedEnumField(index); |
| 10425 | } |
| 10426 | public Builder SetRepeatedEnumField(int index, global::Google.ProtocolBuffers.TestProtos.ForeignEnum value) { |
| 10427 | result.repeatedEnumField_[index] = value; |
| 10428 | return this; |
| 10429 | } |
| 10430 | public Builder AddRepeatedEnumField(global::Google.ProtocolBuffers.TestProtos.ForeignEnum value) { |
| 10431 | result.repeatedEnumField_.Add(value); |
| 10432 | return this; |
| 10433 | } |
| 10434 | public Builder AddRangeRepeatedEnumField(scg::IEnumerable<global::Google.ProtocolBuffers.TestProtos.ForeignEnum> values) { |
| 10435 | base.AddRange(values, result.repeatedEnumField_); |
| 10436 | return this; |
| 10437 | } |
| 10438 | public Builder ClearRepeatedEnumField() { |
| 10439 | result.repeatedEnumField_.Clear(); |
| 10440 | return this; |
| 10441 | } |
| 10442 | |
| 10443 | public scg::IList<global::Google.ProtocolBuffers.TestProtos.ForeignMessage> RepeatedMessageFieldList { |
| 10444 | get { return result.repeatedMessageField_; } |
| 10445 | } |
| 10446 | public int RepeatedMessageFieldCount { |
| 10447 | get { return result.RepeatedMessageFieldCount; } |
| 10448 | } |
| 10449 | public global::Google.ProtocolBuffers.TestProtos.ForeignMessage GetRepeatedMessageField(int index) { |
| 10450 | return result.GetRepeatedMessageField(index); |
| 10451 | } |
| 10452 | public Builder SetRepeatedMessageField(int index, global::Google.ProtocolBuffers.TestProtos.ForeignMessage value) { |
Jon Skeet | 642a814 | 2009-01-27 12:25:21 +0000 | [diff] [blame] | 10453 | pb::ThrowHelper.ThrowIfNull(value, "value"); |
Jon Skeet | 6803686 | 2008-10-22 13:30:34 +0100 | [diff] [blame] | 10454 | result.repeatedMessageField_[index] = value; |
| 10455 | return this; |
| 10456 | } |
| 10457 | public Builder SetRepeatedMessageField(int index, global::Google.ProtocolBuffers.TestProtos.ForeignMessage.Builder builderForValue) { |
Jon Skeet | 642a814 | 2009-01-27 12:25:21 +0000 | [diff] [blame] | 10458 | pb::ThrowHelper.ThrowIfNull(builderForValue, "builderForValue"); |
Jon Skeet | 6803686 | 2008-10-22 13:30:34 +0100 | [diff] [blame] | 10459 | result.repeatedMessageField_[index] = builderForValue.Build(); |
| 10460 | return this; |
| 10461 | } |
| 10462 | public Builder AddRepeatedMessageField(global::Google.ProtocolBuffers.TestProtos.ForeignMessage value) { |
Jon Skeet | 642a814 | 2009-01-27 12:25:21 +0000 | [diff] [blame] | 10463 | pb::ThrowHelper.ThrowIfNull(value, "value"); |
Jon Skeet | 6803686 | 2008-10-22 13:30:34 +0100 | [diff] [blame] | 10464 | result.repeatedMessageField_.Add(value); |
| 10465 | return this; |
| 10466 | } |
| 10467 | public Builder AddRepeatedMessageField(global::Google.ProtocolBuffers.TestProtos.ForeignMessage.Builder builderForValue) { |
Jon Skeet | 642a814 | 2009-01-27 12:25:21 +0000 | [diff] [blame] | 10468 | pb::ThrowHelper.ThrowIfNull(builderForValue, "builderForValue"); |
Jon Skeet | 6803686 | 2008-10-22 13:30:34 +0100 | [diff] [blame] | 10469 | result.repeatedMessageField_.Add(builderForValue.Build()); |
| 10470 | return this; |
| 10471 | } |
| 10472 | public Builder AddRangeRepeatedMessageField(scg::IEnumerable<global::Google.ProtocolBuffers.TestProtos.ForeignMessage> values) { |
| 10473 | base.AddRange(values, result.repeatedMessageField_); |
| 10474 | return this; |
| 10475 | } |
| 10476 | public Builder ClearRepeatedMessageField() { |
| 10477 | result.repeatedMessageField_.Clear(); |
| 10478 | return this; |
| 10479 | } |
| 10480 | |
| 10481 | public scg::IList<string> RepeatedStringPieceFieldList { |
| 10482 | get { return result.repeatedStringPieceField_; } |
| 10483 | } |
| 10484 | public int RepeatedStringPieceFieldCount { |
| 10485 | get { return result.RepeatedStringPieceFieldCount; } |
| 10486 | } |
| 10487 | public string GetRepeatedStringPieceField(int index) { |
| 10488 | return result.GetRepeatedStringPieceField(index); |
| 10489 | } |
| 10490 | public Builder SetRepeatedStringPieceField(int index, string value) { |
Jon Skeet | 642a814 | 2009-01-27 12:25:21 +0000 | [diff] [blame] | 10491 | pb::ThrowHelper.ThrowIfNull(value, "value"); |
Jon Skeet | 6803686 | 2008-10-22 13:30:34 +0100 | [diff] [blame] | 10492 | result.repeatedStringPieceField_[index] = value; |
| 10493 | return this; |
| 10494 | } |
| 10495 | public Builder AddRepeatedStringPieceField(string value) { |
Jon Skeet | 642a814 | 2009-01-27 12:25:21 +0000 | [diff] [blame] | 10496 | pb::ThrowHelper.ThrowIfNull(value, "value"); |
Jon Skeet | 6803686 | 2008-10-22 13:30:34 +0100 | [diff] [blame] | 10497 | result.repeatedStringPieceField_.Add(value); |
| 10498 | return this; |
| 10499 | } |
| 10500 | public Builder AddRangeRepeatedStringPieceField(scg::IEnumerable<string> values) { |
| 10501 | base.AddRange(values, result.repeatedStringPieceField_); |
| 10502 | return this; |
| 10503 | } |
| 10504 | public Builder ClearRepeatedStringPieceField() { |
| 10505 | result.repeatedStringPieceField_.Clear(); |
| 10506 | return this; |
| 10507 | } |
| 10508 | |
| 10509 | public scg::IList<string> RepeatedCordFieldList { |
| 10510 | get { return result.repeatedCordField_; } |
| 10511 | } |
| 10512 | public int RepeatedCordFieldCount { |
| 10513 | get { return result.RepeatedCordFieldCount; } |
| 10514 | } |
| 10515 | public string GetRepeatedCordField(int index) { |
| 10516 | return result.GetRepeatedCordField(index); |
| 10517 | } |
| 10518 | public Builder SetRepeatedCordField(int index, string value) { |
Jon Skeet | 642a814 | 2009-01-27 12:25:21 +0000 | [diff] [blame] | 10519 | pb::ThrowHelper.ThrowIfNull(value, "value"); |
Jon Skeet | 6803686 | 2008-10-22 13:30:34 +0100 | [diff] [blame] | 10520 | result.repeatedCordField_[index] = value; |
| 10521 | return this; |
| 10522 | } |
| 10523 | public Builder AddRepeatedCordField(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.repeatedCordField_.Add(value); |
| 10526 | return this; |
| 10527 | } |
| 10528 | public Builder AddRangeRepeatedCordField(scg::IEnumerable<string> values) { |
| 10529 | base.AddRange(values, result.repeatedCordField_); |
| 10530 | return this; |
| 10531 | } |
| 10532 | public Builder ClearRepeatedCordField() { |
| 10533 | result.repeatedCordField_.Clear(); |
| 10534 | return this; |
| 10535 | } |
| 10536 | } |
| 10537 | } |
| 10538 | |
| 10539 | public sealed partial class TestFieldOrderings : pb::ExtendableMessage<TestFieldOrderings, TestFieldOrderings.Builder> { |
| 10540 | private static readonly TestFieldOrderings defaultInstance = new Builder().BuildPartial(); |
| 10541 | public static TestFieldOrderings DefaultInstance { |
| 10542 | get { return defaultInstance; } |
| 10543 | } |
| 10544 | |
| 10545 | public override TestFieldOrderings DefaultInstanceForType { |
| 10546 | get { return defaultInstance; } |
| 10547 | } |
| 10548 | |
| 10549 | protected override TestFieldOrderings ThisMessage { |
| 10550 | get { return this; } |
| 10551 | } |
| 10552 | |
| 10553 | public static pbd::MessageDescriptor Descriptor { |
| 10554 | get { return global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.internal__static_protobuf_unittest_TestFieldOrderings__Descriptor; } |
| 10555 | } |
| 10556 | |
| 10557 | protected override pb::FieldAccess.FieldAccessorTable<TestFieldOrderings, TestFieldOrderings.Builder> InternalFieldAccessors { |
| 10558 | get { return global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.internal__static_protobuf_unittest_TestFieldOrderings__FieldAccessorTable; } |
| 10559 | } |
| 10560 | |
| 10561 | private bool hasMyString; |
| 10562 | private string myString_ = ""; |
| 10563 | public bool HasMyString { |
| 10564 | get { return hasMyString; } |
| 10565 | } |
| 10566 | public string MyString { |
| 10567 | get { return myString_; } |
| 10568 | } |
| 10569 | |
| 10570 | private bool hasMyInt; |
| 10571 | private long myInt_ = 0L; |
| 10572 | public bool HasMyInt { |
| 10573 | get { return hasMyInt; } |
| 10574 | } |
| 10575 | public long MyInt { |
| 10576 | get { return myInt_; } |
| 10577 | } |
| 10578 | |
| 10579 | private bool hasMyFloat; |
| 10580 | private float myFloat_ = 0F; |
| 10581 | public bool HasMyFloat { |
| 10582 | get { return hasMyFloat; } |
| 10583 | } |
| 10584 | public float MyFloat { |
| 10585 | get { return myFloat_; } |
| 10586 | } |
| 10587 | |
| 10588 | public override bool IsInitialized { |
| 10589 | get { |
| 10590 | if (!ExtensionsAreInitialized) return false; |
| 10591 | return true; |
| 10592 | } |
| 10593 | } |
| 10594 | |
| 10595 | public override void WriteTo(pb::CodedOutputStream output) { |
| 10596 | pb::ExtendableMessage<TestFieldOrderings, TestFieldOrderings.Builder>.ExtensionWriter extensionWriter = CreateExtensionWriter(this); |
| 10597 | if (HasMyInt) { |
| 10598 | output.WriteInt64(1, MyInt); |
| 10599 | } |
| 10600 | extensionWriter.WriteUntil(11, output); |
| 10601 | if (HasMyString) { |
| 10602 | output.WriteString(11, MyString); |
| 10603 | } |
| 10604 | extensionWriter.WriteUntil(101, output); |
| 10605 | if (HasMyFloat) { |
| 10606 | output.WriteFloat(101, MyFloat); |
| 10607 | } |
| 10608 | UnknownFields.WriteTo(output); |
| 10609 | } |
| 10610 | |
| 10611 | private int memoizedSerializedSize = -1; |
| 10612 | public override int SerializedSize { |
| 10613 | get { |
| 10614 | int size = memoizedSerializedSize; |
| 10615 | if (size != -1) return size; |
| 10616 | |
| 10617 | size = 0; |
| 10618 | if (HasMyString) { |
| 10619 | size += pb::CodedOutputStream.ComputeStringSize(11, MyString); |
| 10620 | } |
| 10621 | if (HasMyInt) { |
| 10622 | size += pb::CodedOutputStream.ComputeInt64Size(1, MyInt); |
| 10623 | } |
| 10624 | if (HasMyFloat) { |
| 10625 | size += pb::CodedOutputStream.ComputeFloatSize(101, MyFloat); |
| 10626 | } |
| 10627 | size += ExtensionsSerializedSize; |
| 10628 | size += UnknownFields.SerializedSize; |
| 10629 | memoizedSerializedSize = size; |
| 10630 | return size; |
| 10631 | } |
| 10632 | } |
| 10633 | |
| 10634 | public static TestFieldOrderings ParseFrom(pb::ByteString data) { |
| 10635 | return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed(); |
| 10636 | } |
| 10637 | public static TestFieldOrderings ParseFrom(pb::ByteString data, pb::ExtensionRegistry extensionRegistry) { |
| 10638 | return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed(); |
| 10639 | } |
| 10640 | public static TestFieldOrderings ParseFrom(byte[] data) { |
| 10641 | return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed(); |
| 10642 | } |
| 10643 | public static TestFieldOrderings ParseFrom(byte[] data, pb::ExtensionRegistry extensionRegistry) { |
| 10644 | return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed(); |
| 10645 | } |
| 10646 | public static TestFieldOrderings ParseFrom(global::System.IO.Stream input) { |
| 10647 | return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed(); |
| 10648 | } |
| 10649 | public static TestFieldOrderings ParseFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) { |
| 10650 | return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed(); |
| 10651 | } |
| 10652 | public static TestFieldOrderings ParseFrom(pb::CodedInputStream input) { |
| 10653 | return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed(); |
| 10654 | } |
| 10655 | public static TestFieldOrderings ParseFrom(pb::CodedInputStream input, pb::ExtensionRegistry extensionRegistry) { |
| 10656 | return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed(); |
| 10657 | } |
| 10658 | public static Builder CreateBuilder() { return new Builder(); } |
| 10659 | public override Builder CreateBuilderForType() { return new Builder(); } |
| 10660 | public static Builder CreateBuilder(TestFieldOrderings prototype) { |
| 10661 | return (Builder) new Builder().MergeFrom(prototype); |
| 10662 | } |
| 10663 | |
| 10664 | public sealed partial class Builder : pb::ExtendableBuilder<TestFieldOrderings, Builder> { |
| 10665 | protected override Builder ThisBuilder { |
| 10666 | get { return this; } |
| 10667 | } |
| 10668 | public Builder() {} |
| 10669 | |
| 10670 | TestFieldOrderings result = new TestFieldOrderings(); |
| 10671 | |
| 10672 | protected override TestFieldOrderings MessageBeingBuilt { |
| 10673 | get { return result; } |
| 10674 | } |
| 10675 | |
| 10676 | public override Builder Clear() { |
| 10677 | result = new TestFieldOrderings(); |
| 10678 | return this; |
| 10679 | } |
| 10680 | |
| 10681 | public override Builder Clone() { |
| 10682 | return new Builder().MergeFrom(result); |
| 10683 | } |
| 10684 | |
| 10685 | public override pbd::MessageDescriptor DescriptorForType { |
| 10686 | get { return TestFieldOrderings.Descriptor; } |
| 10687 | } |
| 10688 | |
| 10689 | public override TestFieldOrderings DefaultInstanceForType { |
| 10690 | get { return TestFieldOrderings.DefaultInstance; } |
| 10691 | } |
| 10692 | |
| 10693 | public override TestFieldOrderings BuildPartial() { |
| 10694 | TestFieldOrderings returnMe = result; |
| 10695 | result = null; |
| 10696 | return returnMe; |
| 10697 | } |
| 10698 | |
| 10699 | public override Builder MergeFrom(pb::IMessage other) { |
| 10700 | if (other is TestFieldOrderings) { |
| 10701 | return MergeFrom((TestFieldOrderings) other); |
| 10702 | } else { |
| 10703 | base.MergeFrom(other); |
| 10704 | return this; |
| 10705 | } |
| 10706 | } |
| 10707 | |
| 10708 | public override Builder MergeFrom(TestFieldOrderings other) { |
| 10709 | if (other == TestFieldOrderings.DefaultInstance) return this; |
| 10710 | if (other.HasMyString) { |
| 10711 | MyString = other.MyString; |
| 10712 | } |
| 10713 | if (other.HasMyInt) { |
| 10714 | MyInt = other.MyInt; |
| 10715 | } |
| 10716 | if (other.HasMyFloat) { |
| 10717 | MyFloat = other.MyFloat; |
| 10718 | } |
Jon Skeet | 49fcd4f | 2009-01-27 14:43:10 +0000 | [diff] [blame^] | 10719 | this.MergeExtensionFields(other); |
Jon Skeet | 6803686 | 2008-10-22 13:30:34 +0100 | [diff] [blame] | 10720 | this.MergeUnknownFields(other.UnknownFields); |
| 10721 | return this; |
| 10722 | } |
| 10723 | |
| 10724 | public override Builder MergeFrom(pb::CodedInputStream input) { |
| 10725 | return MergeFrom(input, pb::ExtensionRegistry.Empty); |
| 10726 | } |
| 10727 | |
| 10728 | public override Builder MergeFrom(pb::CodedInputStream input, pb::ExtensionRegistry extensionRegistry) { |
| 10729 | pb::UnknownFieldSet.Builder unknownFields = pb::UnknownFieldSet.CreateBuilder(this.UnknownFields); |
| 10730 | while (true) { |
| 10731 | uint tag = input.ReadTag(); |
| 10732 | switch (tag) { |
| 10733 | case 0: { |
| 10734 | this.UnknownFields = unknownFields.Build(); |
| 10735 | return this; |
| 10736 | } |
| 10737 | default: { |
| 10738 | if (!ParseUnknownField(input, unknownFields, extensionRegistry, tag)) { |
| 10739 | this.UnknownFields = unknownFields.Build(); |
| 10740 | return this; |
| 10741 | } |
| 10742 | break; |
| 10743 | } |
| 10744 | case 8: { |
| 10745 | MyInt = input.ReadInt64(); |
| 10746 | break; |
| 10747 | } |
| 10748 | case 90: { |
| 10749 | MyString = input.ReadString(); |
| 10750 | break; |
| 10751 | } |
| 10752 | case 813: { |
| 10753 | MyFloat = input.ReadFloat(); |
| 10754 | break; |
| 10755 | } |
| 10756 | } |
| 10757 | } |
| 10758 | } |
| 10759 | |
| 10760 | |
| 10761 | public bool HasMyString { |
| 10762 | get { return result.HasMyString; } |
| 10763 | } |
| 10764 | public string MyString { |
| 10765 | get { return result.MyString; } |
| 10766 | set { SetMyString(value); } |
| 10767 | } |
| 10768 | public Builder SetMyString(string value) { |
Jon Skeet | 642a814 | 2009-01-27 12:25:21 +0000 | [diff] [blame] | 10769 | pb::ThrowHelper.ThrowIfNull(value, "value"); |
Jon Skeet | 6803686 | 2008-10-22 13:30:34 +0100 | [diff] [blame] | 10770 | result.hasMyString = true; |
| 10771 | result.myString_ = value; |
| 10772 | return this; |
| 10773 | } |
| 10774 | public Builder ClearMyString() { |
| 10775 | result.hasMyString = false; |
| 10776 | result.myString_ = ""; |
| 10777 | return this; |
| 10778 | } |
| 10779 | |
| 10780 | public bool HasMyInt { |
| 10781 | get { return result.HasMyInt; } |
| 10782 | } |
| 10783 | public long MyInt { |
| 10784 | get { return result.MyInt; } |
| 10785 | set { SetMyInt(value); } |
| 10786 | } |
| 10787 | public Builder SetMyInt(long value) { |
| 10788 | result.hasMyInt = true; |
| 10789 | result.myInt_ = value; |
| 10790 | return this; |
| 10791 | } |
| 10792 | public Builder ClearMyInt() { |
| 10793 | result.hasMyInt = false; |
| 10794 | result.myInt_ = 0L; |
| 10795 | return this; |
| 10796 | } |
| 10797 | |
| 10798 | public bool HasMyFloat { |
| 10799 | get { return result.HasMyFloat; } |
| 10800 | } |
| 10801 | public float MyFloat { |
| 10802 | get { return result.MyFloat; } |
| 10803 | set { SetMyFloat(value); } |
| 10804 | } |
| 10805 | public Builder SetMyFloat(float value) { |
| 10806 | result.hasMyFloat = true; |
| 10807 | result.myFloat_ = value; |
| 10808 | return this; |
| 10809 | } |
| 10810 | public Builder ClearMyFloat() { |
| 10811 | result.hasMyFloat = false; |
| 10812 | result.myFloat_ = 0F; |
| 10813 | return this; |
| 10814 | } |
| 10815 | } |
| 10816 | } |
| 10817 | |
| 10818 | public sealed partial class TestExtremeDefaultValues : pb::GeneratedMessage<TestExtremeDefaultValues, TestExtremeDefaultValues.Builder> { |
| 10819 | private static readonly TestExtremeDefaultValues defaultInstance = new Builder().BuildPartial(); |
| 10820 | public static TestExtremeDefaultValues DefaultInstance { |
| 10821 | get { return defaultInstance; } |
| 10822 | } |
| 10823 | |
| 10824 | public override TestExtremeDefaultValues DefaultInstanceForType { |
| 10825 | get { return defaultInstance; } |
| 10826 | } |
| 10827 | |
| 10828 | protected override TestExtremeDefaultValues ThisMessage { |
| 10829 | get { return this; } |
| 10830 | } |
| 10831 | |
| 10832 | public static pbd::MessageDescriptor Descriptor { |
| 10833 | get { return global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.internal__static_protobuf_unittest_TestExtremeDefaultValues__Descriptor; } |
| 10834 | } |
| 10835 | |
| 10836 | protected override pb::FieldAccess.FieldAccessorTable<TestExtremeDefaultValues, TestExtremeDefaultValues.Builder> InternalFieldAccessors { |
| 10837 | get { return global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.internal__static_protobuf_unittest_TestExtremeDefaultValues__FieldAccessorTable; } |
| 10838 | } |
| 10839 | |
| 10840 | private bool hasEscapedBytes; |
| 10841 | private pb::ByteString escapedBytes_ = (pb::ByteString) global::Google.ProtocolBuffers.TestProtos.TestExtremeDefaultValues.Descriptor.Fields[0].DefaultValue; |
| 10842 | public bool HasEscapedBytes { |
| 10843 | get { return hasEscapedBytes; } |
| 10844 | } |
| 10845 | public pb::ByteString EscapedBytes { |
| 10846 | get { return escapedBytes_; } |
| 10847 | } |
| 10848 | |
| 10849 | private bool hasLargeUint32; |
| 10850 | private uint largeUint32_ = 4294967295; |
| 10851 | public bool HasLargeUint32 { |
| 10852 | get { return hasLargeUint32; } |
| 10853 | } |
| 10854 | public uint LargeUint32 { |
| 10855 | get { return largeUint32_; } |
| 10856 | } |
| 10857 | |
| 10858 | private bool hasLargeUint64; |
| 10859 | private ulong largeUint64_ = 18446744073709551615UL; |
| 10860 | public bool HasLargeUint64 { |
| 10861 | get { return hasLargeUint64; } |
| 10862 | } |
| 10863 | public ulong LargeUint64 { |
| 10864 | get { return largeUint64_; } |
| 10865 | } |
| 10866 | |
| 10867 | private bool hasSmallInt32; |
| 10868 | private int smallInt32_ = -2147483647; |
| 10869 | public bool HasSmallInt32 { |
| 10870 | get { return hasSmallInt32; } |
| 10871 | } |
| 10872 | public int SmallInt32 { |
| 10873 | get { return smallInt32_; } |
| 10874 | } |
| 10875 | |
| 10876 | private bool hasSmallInt64; |
| 10877 | private long smallInt64_ = -9223372036854775807L; |
| 10878 | public bool HasSmallInt64 { |
| 10879 | get { return hasSmallInt64; } |
| 10880 | } |
| 10881 | public long SmallInt64 { |
| 10882 | get { return smallInt64_; } |
| 10883 | } |
| 10884 | |
| 10885 | private bool hasUtf8String; |
| 10886 | private string utf8String_ = (string) global::Google.ProtocolBuffers.TestProtos.TestExtremeDefaultValues.Descriptor.Fields[5].DefaultValue; |
| 10887 | public bool HasUtf8String { |
| 10888 | get { return hasUtf8String; } |
| 10889 | } |
| 10890 | public string Utf8String { |
| 10891 | get { return utf8String_; } |
| 10892 | } |
| 10893 | |
| 10894 | public override bool IsInitialized { |
| 10895 | get { |
| 10896 | return true; |
| 10897 | } |
| 10898 | } |
| 10899 | |
| 10900 | public override void WriteTo(pb::CodedOutputStream output) { |
| 10901 | if (HasEscapedBytes) { |
| 10902 | output.WriteBytes(1, EscapedBytes); |
| 10903 | } |
| 10904 | if (HasLargeUint32) { |
| 10905 | output.WriteUInt32(2, LargeUint32); |
| 10906 | } |
| 10907 | if (HasLargeUint64) { |
| 10908 | output.WriteUInt64(3, LargeUint64); |
| 10909 | } |
| 10910 | if (HasSmallInt32) { |
| 10911 | output.WriteInt32(4, SmallInt32); |
| 10912 | } |
| 10913 | if (HasSmallInt64) { |
| 10914 | output.WriteInt64(5, SmallInt64); |
| 10915 | } |
| 10916 | if (HasUtf8String) { |
| 10917 | output.WriteString(6, Utf8String); |
| 10918 | } |
| 10919 | UnknownFields.WriteTo(output); |
| 10920 | } |
| 10921 | |
| 10922 | private int memoizedSerializedSize = -1; |
| 10923 | public override int SerializedSize { |
| 10924 | get { |
| 10925 | int size = memoizedSerializedSize; |
| 10926 | if (size != -1) return size; |
| 10927 | |
| 10928 | size = 0; |
| 10929 | if (HasEscapedBytes) { |
| 10930 | size += pb::CodedOutputStream.ComputeBytesSize(1, EscapedBytes); |
| 10931 | } |
| 10932 | if (HasLargeUint32) { |
| 10933 | size += pb::CodedOutputStream.ComputeUInt32Size(2, LargeUint32); |
| 10934 | } |
| 10935 | if (HasLargeUint64) { |
| 10936 | size += pb::CodedOutputStream.ComputeUInt64Size(3, LargeUint64); |
| 10937 | } |
| 10938 | if (HasSmallInt32) { |
| 10939 | size += pb::CodedOutputStream.ComputeInt32Size(4, SmallInt32); |
| 10940 | } |
| 10941 | if (HasSmallInt64) { |
| 10942 | size += pb::CodedOutputStream.ComputeInt64Size(5, SmallInt64); |
| 10943 | } |
| 10944 | if (HasUtf8String) { |
| 10945 | size += pb::CodedOutputStream.ComputeStringSize(6, Utf8String); |
| 10946 | } |
| 10947 | size += UnknownFields.SerializedSize; |
| 10948 | memoizedSerializedSize = size; |
| 10949 | return size; |
| 10950 | } |
| 10951 | } |
| 10952 | |
| 10953 | public static TestExtremeDefaultValues ParseFrom(pb::ByteString data) { |
| 10954 | return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed(); |
| 10955 | } |
| 10956 | public static TestExtremeDefaultValues ParseFrom(pb::ByteString data, pb::ExtensionRegistry extensionRegistry) { |
| 10957 | return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed(); |
| 10958 | } |
| 10959 | public static TestExtremeDefaultValues ParseFrom(byte[] data) { |
| 10960 | return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed(); |
| 10961 | } |
| 10962 | public static TestExtremeDefaultValues ParseFrom(byte[] data, pb::ExtensionRegistry extensionRegistry) { |
| 10963 | return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed(); |
| 10964 | } |
| 10965 | public static TestExtremeDefaultValues ParseFrom(global::System.IO.Stream input) { |
| 10966 | return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed(); |
| 10967 | } |
| 10968 | public static TestExtremeDefaultValues ParseFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) { |
| 10969 | return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed(); |
| 10970 | } |
| 10971 | public static TestExtremeDefaultValues ParseFrom(pb::CodedInputStream input) { |
| 10972 | return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed(); |
| 10973 | } |
| 10974 | public static TestExtremeDefaultValues ParseFrom(pb::CodedInputStream input, pb::ExtensionRegistry extensionRegistry) { |
| 10975 | return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed(); |
| 10976 | } |
| 10977 | public static Builder CreateBuilder() { return new Builder(); } |
| 10978 | public override Builder CreateBuilderForType() { return new Builder(); } |
| 10979 | public static Builder CreateBuilder(TestExtremeDefaultValues prototype) { |
| 10980 | return (Builder) new Builder().MergeFrom(prototype); |
| 10981 | } |
| 10982 | |
| 10983 | public sealed partial class Builder : pb::GeneratedBuilder<TestExtremeDefaultValues, Builder> { |
| 10984 | protected override Builder ThisBuilder { |
| 10985 | get { return this; } |
| 10986 | } |
| 10987 | public Builder() {} |
| 10988 | |
| 10989 | TestExtremeDefaultValues result = new TestExtremeDefaultValues(); |
| 10990 | |
| 10991 | protected override TestExtremeDefaultValues MessageBeingBuilt { |
| 10992 | get { return result; } |
| 10993 | } |
| 10994 | |
| 10995 | public override Builder Clear() { |
| 10996 | result = new TestExtremeDefaultValues(); |
| 10997 | return this; |
| 10998 | } |
| 10999 | |
| 11000 | public override Builder Clone() { |
| 11001 | return new Builder().MergeFrom(result); |
| 11002 | } |
| 11003 | |
| 11004 | public override pbd::MessageDescriptor DescriptorForType { |
| 11005 | get { return TestExtremeDefaultValues.Descriptor; } |
| 11006 | } |
| 11007 | |
| 11008 | public override TestExtremeDefaultValues DefaultInstanceForType { |
| 11009 | get { return TestExtremeDefaultValues.DefaultInstance; } |
| 11010 | } |
| 11011 | |
| 11012 | public override TestExtremeDefaultValues BuildPartial() { |
| 11013 | TestExtremeDefaultValues returnMe = result; |
| 11014 | result = null; |
| 11015 | return returnMe; |
| 11016 | } |
| 11017 | |
| 11018 | public override Builder MergeFrom(pb::IMessage other) { |
| 11019 | if (other is TestExtremeDefaultValues) { |
| 11020 | return MergeFrom((TestExtremeDefaultValues) other); |
| 11021 | } else { |
| 11022 | base.MergeFrom(other); |
| 11023 | return this; |
| 11024 | } |
| 11025 | } |
| 11026 | |
| 11027 | public override Builder MergeFrom(TestExtremeDefaultValues other) { |
| 11028 | if (other == TestExtremeDefaultValues.DefaultInstance) return this; |
| 11029 | if (other.HasEscapedBytes) { |
| 11030 | EscapedBytes = other.EscapedBytes; |
| 11031 | } |
| 11032 | if (other.HasLargeUint32) { |
| 11033 | LargeUint32 = other.LargeUint32; |
| 11034 | } |
| 11035 | if (other.HasLargeUint64) { |
| 11036 | LargeUint64 = other.LargeUint64; |
| 11037 | } |
| 11038 | if (other.HasSmallInt32) { |
| 11039 | SmallInt32 = other.SmallInt32; |
| 11040 | } |
| 11041 | if (other.HasSmallInt64) { |
| 11042 | SmallInt64 = other.SmallInt64; |
| 11043 | } |
| 11044 | if (other.HasUtf8String) { |
| 11045 | Utf8String = other.Utf8String; |
| 11046 | } |
| 11047 | this.MergeUnknownFields(other.UnknownFields); |
| 11048 | return this; |
| 11049 | } |
| 11050 | |
| 11051 | public override Builder MergeFrom(pb::CodedInputStream input) { |
| 11052 | return MergeFrom(input, pb::ExtensionRegistry.Empty); |
| 11053 | } |
| 11054 | |
| 11055 | public override Builder MergeFrom(pb::CodedInputStream input, pb::ExtensionRegistry extensionRegistry) { |
| 11056 | pb::UnknownFieldSet.Builder unknownFields = pb::UnknownFieldSet.CreateBuilder(this.UnknownFields); |
| 11057 | while (true) { |
| 11058 | uint tag = input.ReadTag(); |
| 11059 | switch (tag) { |
| 11060 | case 0: { |
| 11061 | this.UnknownFields = unknownFields.Build(); |
| 11062 | return this; |
| 11063 | } |
| 11064 | default: { |
| 11065 | if (!ParseUnknownField(input, unknownFields, extensionRegistry, tag)) { |
| 11066 | this.UnknownFields = unknownFields.Build(); |
| 11067 | return this; |
| 11068 | } |
| 11069 | break; |
| 11070 | } |
| 11071 | case 10: { |
| 11072 | EscapedBytes = input.ReadBytes(); |
| 11073 | break; |
| 11074 | } |
| 11075 | case 16: { |
| 11076 | LargeUint32 = input.ReadUInt32(); |
| 11077 | break; |
| 11078 | } |
| 11079 | case 24: { |
| 11080 | LargeUint64 = input.ReadUInt64(); |
| 11081 | break; |
| 11082 | } |
| 11083 | case 32: { |
| 11084 | SmallInt32 = input.ReadInt32(); |
| 11085 | break; |
| 11086 | } |
| 11087 | case 40: { |
| 11088 | SmallInt64 = input.ReadInt64(); |
| 11089 | break; |
| 11090 | } |
| 11091 | case 50: { |
| 11092 | Utf8String = input.ReadString(); |
| 11093 | break; |
| 11094 | } |
| 11095 | } |
| 11096 | } |
| 11097 | } |
| 11098 | |
| 11099 | |
| 11100 | public bool HasEscapedBytes { |
| 11101 | get { return result.HasEscapedBytes; } |
| 11102 | } |
| 11103 | public pb::ByteString EscapedBytes { |
| 11104 | get { return result.EscapedBytes; } |
| 11105 | set { SetEscapedBytes(value); } |
| 11106 | } |
| 11107 | public Builder SetEscapedBytes(pb::ByteString value) { |
Jon Skeet | 642a814 | 2009-01-27 12:25:21 +0000 | [diff] [blame] | 11108 | pb::ThrowHelper.ThrowIfNull(value, "value"); |
Jon Skeet | 6803686 | 2008-10-22 13:30:34 +0100 | [diff] [blame] | 11109 | result.hasEscapedBytes = true; |
| 11110 | result.escapedBytes_ = value; |
| 11111 | return this; |
| 11112 | } |
| 11113 | public Builder ClearEscapedBytes() { |
| 11114 | result.hasEscapedBytes = false; |
| 11115 | result.escapedBytes_ = (pb::ByteString) global::Google.ProtocolBuffers.TestProtos.TestExtremeDefaultValues.Descriptor.Fields[0].DefaultValue; |
| 11116 | return this; |
| 11117 | } |
| 11118 | |
| 11119 | public bool HasLargeUint32 { |
| 11120 | get { return result.HasLargeUint32; } |
| 11121 | } |
| 11122 | public uint LargeUint32 { |
| 11123 | get { return result.LargeUint32; } |
| 11124 | set { SetLargeUint32(value); } |
| 11125 | } |
| 11126 | public Builder SetLargeUint32(uint value) { |
| 11127 | result.hasLargeUint32 = true; |
| 11128 | result.largeUint32_ = value; |
| 11129 | return this; |
| 11130 | } |
| 11131 | public Builder ClearLargeUint32() { |
| 11132 | result.hasLargeUint32 = false; |
| 11133 | result.largeUint32_ = 4294967295; |
| 11134 | return this; |
| 11135 | } |
| 11136 | |
| 11137 | public bool HasLargeUint64 { |
| 11138 | get { return result.HasLargeUint64; } |
| 11139 | } |
| 11140 | public ulong LargeUint64 { |
| 11141 | get { return result.LargeUint64; } |
| 11142 | set { SetLargeUint64(value); } |
| 11143 | } |
| 11144 | public Builder SetLargeUint64(ulong value) { |
| 11145 | result.hasLargeUint64 = true; |
| 11146 | result.largeUint64_ = value; |
| 11147 | return this; |
| 11148 | } |
| 11149 | public Builder ClearLargeUint64() { |
| 11150 | result.hasLargeUint64 = false; |
| 11151 | result.largeUint64_ = 18446744073709551615UL; |
| 11152 | return this; |
| 11153 | } |
| 11154 | |
| 11155 | public bool HasSmallInt32 { |
| 11156 | get { return result.HasSmallInt32; } |
| 11157 | } |
| 11158 | public int SmallInt32 { |
| 11159 | get { return result.SmallInt32; } |
| 11160 | set { SetSmallInt32(value); } |
| 11161 | } |
| 11162 | public Builder SetSmallInt32(int value) { |
| 11163 | result.hasSmallInt32 = true; |
| 11164 | result.smallInt32_ = value; |
| 11165 | return this; |
| 11166 | } |
| 11167 | public Builder ClearSmallInt32() { |
| 11168 | result.hasSmallInt32 = false; |
| 11169 | result.smallInt32_ = -2147483647; |
| 11170 | return this; |
| 11171 | } |
| 11172 | |
| 11173 | public bool HasSmallInt64 { |
| 11174 | get { return result.HasSmallInt64; } |
| 11175 | } |
| 11176 | public long SmallInt64 { |
| 11177 | get { return result.SmallInt64; } |
| 11178 | set { SetSmallInt64(value); } |
| 11179 | } |
| 11180 | public Builder SetSmallInt64(long value) { |
| 11181 | result.hasSmallInt64 = true; |
| 11182 | result.smallInt64_ = value; |
| 11183 | return this; |
| 11184 | } |
| 11185 | public Builder ClearSmallInt64() { |
| 11186 | result.hasSmallInt64 = false; |
| 11187 | result.smallInt64_ = -9223372036854775807L; |
| 11188 | return this; |
| 11189 | } |
| 11190 | |
| 11191 | public bool HasUtf8String { |
| 11192 | get { return result.HasUtf8String; } |
| 11193 | } |
| 11194 | public string Utf8String { |
| 11195 | get { return result.Utf8String; } |
| 11196 | set { SetUtf8String(value); } |
| 11197 | } |
| 11198 | public Builder SetUtf8String(string value) { |
Jon Skeet | 642a814 | 2009-01-27 12:25:21 +0000 | [diff] [blame] | 11199 | pb::ThrowHelper.ThrowIfNull(value, "value"); |
Jon Skeet | 6803686 | 2008-10-22 13:30:34 +0100 | [diff] [blame] | 11200 | result.hasUtf8String = true; |
| 11201 | result.utf8String_ = value; |
| 11202 | return this; |
| 11203 | } |
| 11204 | public Builder ClearUtf8String() { |
| 11205 | result.hasUtf8String = false; |
| 11206 | result.utf8String_ = (string) global::Google.ProtocolBuffers.TestProtos.TestExtremeDefaultValues.Descriptor.Fields[5].DefaultValue; |
| 11207 | return this; |
| 11208 | } |
| 11209 | } |
| 11210 | } |
| 11211 | |
| 11212 | public sealed partial class FooRequest : pb::GeneratedMessage<FooRequest, FooRequest.Builder> { |
| 11213 | private static readonly FooRequest defaultInstance = new Builder().BuildPartial(); |
| 11214 | public static FooRequest DefaultInstance { |
| 11215 | get { return defaultInstance; } |
| 11216 | } |
| 11217 | |
| 11218 | public override FooRequest DefaultInstanceForType { |
| 11219 | get { return defaultInstance; } |
| 11220 | } |
| 11221 | |
| 11222 | protected override FooRequest ThisMessage { |
| 11223 | get { return this; } |
| 11224 | } |
| 11225 | |
| 11226 | public static pbd::MessageDescriptor Descriptor { |
| 11227 | get { return global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.internal__static_protobuf_unittest_FooRequest__Descriptor; } |
| 11228 | } |
| 11229 | |
| 11230 | protected override pb::FieldAccess.FieldAccessorTable<FooRequest, FooRequest.Builder> InternalFieldAccessors { |
| 11231 | get { return global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.internal__static_protobuf_unittest_FooRequest__FieldAccessorTable; } |
| 11232 | } |
| 11233 | |
| 11234 | public override bool IsInitialized { |
| 11235 | get { |
| 11236 | return true; |
| 11237 | } |
| 11238 | } |
| 11239 | |
| 11240 | public override void WriteTo(pb::CodedOutputStream output) { |
| 11241 | UnknownFields.WriteTo(output); |
| 11242 | } |
| 11243 | |
| 11244 | private int memoizedSerializedSize = -1; |
| 11245 | public override int SerializedSize { |
| 11246 | get { |
| 11247 | int size = memoizedSerializedSize; |
| 11248 | if (size != -1) return size; |
| 11249 | |
| 11250 | size = 0; |
| 11251 | size += UnknownFields.SerializedSize; |
| 11252 | memoizedSerializedSize = size; |
| 11253 | return size; |
| 11254 | } |
| 11255 | } |
| 11256 | |
| 11257 | public static FooRequest ParseFrom(pb::ByteString data) { |
| 11258 | return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed(); |
| 11259 | } |
| 11260 | public static FooRequest ParseFrom(pb::ByteString data, pb::ExtensionRegistry extensionRegistry) { |
| 11261 | return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed(); |
| 11262 | } |
| 11263 | public static FooRequest ParseFrom(byte[] data) { |
| 11264 | return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed(); |
| 11265 | } |
| 11266 | public static FooRequest ParseFrom(byte[] data, pb::ExtensionRegistry extensionRegistry) { |
| 11267 | return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed(); |
| 11268 | } |
| 11269 | public static FooRequest ParseFrom(global::System.IO.Stream input) { |
| 11270 | return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed(); |
| 11271 | } |
| 11272 | public static FooRequest ParseFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) { |
| 11273 | return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed(); |
| 11274 | } |
| 11275 | public static FooRequest ParseFrom(pb::CodedInputStream input) { |
| 11276 | return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed(); |
| 11277 | } |
| 11278 | public static FooRequest ParseFrom(pb::CodedInputStream input, pb::ExtensionRegistry extensionRegistry) { |
| 11279 | return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed(); |
| 11280 | } |
| 11281 | public static Builder CreateBuilder() { return new Builder(); } |
| 11282 | public override Builder CreateBuilderForType() { return new Builder(); } |
| 11283 | public static Builder CreateBuilder(FooRequest prototype) { |
| 11284 | return (Builder) new Builder().MergeFrom(prototype); |
| 11285 | } |
| 11286 | |
| 11287 | public sealed partial class Builder : pb::GeneratedBuilder<FooRequest, Builder> { |
| 11288 | protected override Builder ThisBuilder { |
| 11289 | get { return this; } |
| 11290 | } |
| 11291 | public Builder() {} |
| 11292 | |
| 11293 | FooRequest result = new FooRequest(); |
| 11294 | |
| 11295 | protected override FooRequest MessageBeingBuilt { |
| 11296 | get { return result; } |
| 11297 | } |
| 11298 | |
| 11299 | public override Builder Clear() { |
| 11300 | result = new FooRequest(); |
| 11301 | return this; |
| 11302 | } |
| 11303 | |
| 11304 | public override Builder Clone() { |
| 11305 | return new Builder().MergeFrom(result); |
| 11306 | } |
| 11307 | |
| 11308 | public override pbd::MessageDescriptor DescriptorForType { |
| 11309 | get { return FooRequest.Descriptor; } |
| 11310 | } |
| 11311 | |
| 11312 | public override FooRequest DefaultInstanceForType { |
| 11313 | get { return FooRequest.DefaultInstance; } |
| 11314 | } |
| 11315 | |
| 11316 | public override FooRequest BuildPartial() { |
| 11317 | FooRequest returnMe = result; |
| 11318 | result = null; |
| 11319 | return returnMe; |
| 11320 | } |
| 11321 | |
| 11322 | public override Builder MergeFrom(pb::IMessage other) { |
| 11323 | if (other is FooRequest) { |
| 11324 | return MergeFrom((FooRequest) other); |
| 11325 | } else { |
| 11326 | base.MergeFrom(other); |
| 11327 | return this; |
| 11328 | } |
| 11329 | } |
| 11330 | |
| 11331 | public override Builder MergeFrom(FooRequest other) { |
| 11332 | if (other == FooRequest.DefaultInstance) return this; |
| 11333 | this.MergeUnknownFields(other.UnknownFields); |
| 11334 | return this; |
| 11335 | } |
| 11336 | |
| 11337 | public override Builder MergeFrom(pb::CodedInputStream input) { |
| 11338 | return MergeFrom(input, pb::ExtensionRegistry.Empty); |
| 11339 | } |
| 11340 | |
| 11341 | public override Builder MergeFrom(pb::CodedInputStream input, pb::ExtensionRegistry extensionRegistry) { |
| 11342 | pb::UnknownFieldSet.Builder unknownFields = pb::UnknownFieldSet.CreateBuilder(this.UnknownFields); |
| 11343 | while (true) { |
| 11344 | uint tag = input.ReadTag(); |
| 11345 | switch (tag) { |
| 11346 | case 0: { |
| 11347 | this.UnknownFields = unknownFields.Build(); |
| 11348 | return this; |
| 11349 | } |
| 11350 | default: { |
| 11351 | if (!ParseUnknownField(input, unknownFields, extensionRegistry, tag)) { |
| 11352 | this.UnknownFields = unknownFields.Build(); |
| 11353 | return this; |
| 11354 | } |
| 11355 | break; |
| 11356 | } |
| 11357 | } |
| 11358 | } |
| 11359 | } |
| 11360 | |
| 11361 | } |
| 11362 | } |
| 11363 | |
| 11364 | public sealed partial class FooResponse : pb::GeneratedMessage<FooResponse, FooResponse.Builder> { |
| 11365 | private static readonly FooResponse defaultInstance = new Builder().BuildPartial(); |
| 11366 | public static FooResponse DefaultInstance { |
| 11367 | get { return defaultInstance; } |
| 11368 | } |
| 11369 | |
| 11370 | public override FooResponse DefaultInstanceForType { |
| 11371 | get { return defaultInstance; } |
| 11372 | } |
| 11373 | |
| 11374 | protected override FooResponse ThisMessage { |
| 11375 | get { return this; } |
| 11376 | } |
| 11377 | |
| 11378 | public static pbd::MessageDescriptor Descriptor { |
| 11379 | get { return global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.internal__static_protobuf_unittest_FooResponse__Descriptor; } |
| 11380 | } |
| 11381 | |
| 11382 | protected override pb::FieldAccess.FieldAccessorTable<FooResponse, FooResponse.Builder> InternalFieldAccessors { |
| 11383 | get { return global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.internal__static_protobuf_unittest_FooResponse__FieldAccessorTable; } |
| 11384 | } |
| 11385 | |
| 11386 | public override bool IsInitialized { |
| 11387 | get { |
| 11388 | return true; |
| 11389 | } |
| 11390 | } |
| 11391 | |
| 11392 | public override void WriteTo(pb::CodedOutputStream output) { |
| 11393 | UnknownFields.WriteTo(output); |
| 11394 | } |
| 11395 | |
| 11396 | private int memoizedSerializedSize = -1; |
| 11397 | public override int SerializedSize { |
| 11398 | get { |
| 11399 | int size = memoizedSerializedSize; |
| 11400 | if (size != -1) return size; |
| 11401 | |
| 11402 | size = 0; |
| 11403 | size += UnknownFields.SerializedSize; |
| 11404 | memoizedSerializedSize = size; |
| 11405 | return size; |
| 11406 | } |
| 11407 | } |
| 11408 | |
| 11409 | public static FooResponse ParseFrom(pb::ByteString data) { |
| 11410 | return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed(); |
| 11411 | } |
| 11412 | public static FooResponse ParseFrom(pb::ByteString data, pb::ExtensionRegistry extensionRegistry) { |
| 11413 | return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed(); |
| 11414 | } |
| 11415 | public static FooResponse ParseFrom(byte[] data) { |
| 11416 | return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed(); |
| 11417 | } |
| 11418 | public static FooResponse ParseFrom(byte[] data, pb::ExtensionRegistry extensionRegistry) { |
| 11419 | return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed(); |
| 11420 | } |
| 11421 | public static FooResponse ParseFrom(global::System.IO.Stream input) { |
| 11422 | return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed(); |
| 11423 | } |
| 11424 | public static FooResponse ParseFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) { |
| 11425 | return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed(); |
| 11426 | } |
| 11427 | public static FooResponse ParseFrom(pb::CodedInputStream input) { |
| 11428 | return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed(); |
| 11429 | } |
| 11430 | public static FooResponse ParseFrom(pb::CodedInputStream input, pb::ExtensionRegistry extensionRegistry) { |
| 11431 | return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed(); |
| 11432 | } |
| 11433 | public static Builder CreateBuilder() { return new Builder(); } |
| 11434 | public override Builder CreateBuilderForType() { return new Builder(); } |
| 11435 | public static Builder CreateBuilder(FooResponse prototype) { |
| 11436 | return (Builder) new Builder().MergeFrom(prototype); |
| 11437 | } |
| 11438 | |
| 11439 | public sealed partial class Builder : pb::GeneratedBuilder<FooResponse, Builder> { |
| 11440 | protected override Builder ThisBuilder { |
| 11441 | get { return this; } |
| 11442 | } |
| 11443 | public Builder() {} |
| 11444 | |
| 11445 | FooResponse result = new FooResponse(); |
| 11446 | |
| 11447 | protected override FooResponse MessageBeingBuilt { |
| 11448 | get { return result; } |
| 11449 | } |
| 11450 | |
| 11451 | public override Builder Clear() { |
| 11452 | result = new FooResponse(); |
| 11453 | return this; |
| 11454 | } |
| 11455 | |
| 11456 | public override Builder Clone() { |
| 11457 | return new Builder().MergeFrom(result); |
| 11458 | } |
| 11459 | |
| 11460 | public override pbd::MessageDescriptor DescriptorForType { |
| 11461 | get { return FooResponse.Descriptor; } |
| 11462 | } |
| 11463 | |
| 11464 | public override FooResponse DefaultInstanceForType { |
| 11465 | get { return FooResponse.DefaultInstance; } |
| 11466 | } |
| 11467 | |
| 11468 | public override FooResponse BuildPartial() { |
| 11469 | FooResponse returnMe = result; |
| 11470 | result = null; |
| 11471 | return returnMe; |
| 11472 | } |
| 11473 | |
| 11474 | public override Builder MergeFrom(pb::IMessage other) { |
| 11475 | if (other is FooResponse) { |
| 11476 | return MergeFrom((FooResponse) other); |
| 11477 | } else { |
| 11478 | base.MergeFrom(other); |
| 11479 | return this; |
| 11480 | } |
| 11481 | } |
| 11482 | |
| 11483 | public override Builder MergeFrom(FooResponse other) { |
| 11484 | if (other == FooResponse.DefaultInstance) return this; |
| 11485 | this.MergeUnknownFields(other.UnknownFields); |
| 11486 | return this; |
| 11487 | } |
| 11488 | |
| 11489 | public override Builder MergeFrom(pb::CodedInputStream input) { |
| 11490 | return MergeFrom(input, pb::ExtensionRegistry.Empty); |
| 11491 | } |
| 11492 | |
| 11493 | public override Builder MergeFrom(pb::CodedInputStream input, pb::ExtensionRegistry extensionRegistry) { |
| 11494 | pb::UnknownFieldSet.Builder unknownFields = pb::UnknownFieldSet.CreateBuilder(this.UnknownFields); |
| 11495 | while (true) { |
| 11496 | uint tag = input.ReadTag(); |
| 11497 | switch (tag) { |
| 11498 | case 0: { |
| 11499 | this.UnknownFields = unknownFields.Build(); |
| 11500 | return this; |
| 11501 | } |
| 11502 | default: { |
| 11503 | if (!ParseUnknownField(input, unknownFields, extensionRegistry, tag)) { |
| 11504 | this.UnknownFields = unknownFields.Build(); |
| 11505 | return this; |
| 11506 | } |
| 11507 | break; |
| 11508 | } |
| 11509 | } |
| 11510 | } |
| 11511 | } |
| 11512 | |
| 11513 | } |
| 11514 | } |
| 11515 | |
| 11516 | public sealed partial class BarRequest : pb::GeneratedMessage<BarRequest, BarRequest.Builder> { |
| 11517 | private static readonly BarRequest defaultInstance = new Builder().BuildPartial(); |
| 11518 | public static BarRequest DefaultInstance { |
| 11519 | get { return defaultInstance; } |
| 11520 | } |
| 11521 | |
| 11522 | public override BarRequest DefaultInstanceForType { |
| 11523 | get { return defaultInstance; } |
| 11524 | } |
| 11525 | |
| 11526 | protected override BarRequest ThisMessage { |
| 11527 | get { return this; } |
| 11528 | } |
| 11529 | |
| 11530 | public static pbd::MessageDescriptor Descriptor { |
| 11531 | get { return global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.internal__static_protobuf_unittest_BarRequest__Descriptor; } |
| 11532 | } |
| 11533 | |
| 11534 | protected override pb::FieldAccess.FieldAccessorTable<BarRequest, BarRequest.Builder> InternalFieldAccessors { |
| 11535 | get { return global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.internal__static_protobuf_unittest_BarRequest__FieldAccessorTable; } |
| 11536 | } |
| 11537 | |
| 11538 | public override bool IsInitialized { |
| 11539 | get { |
| 11540 | return true; |
| 11541 | } |
| 11542 | } |
| 11543 | |
| 11544 | public override void WriteTo(pb::CodedOutputStream output) { |
| 11545 | UnknownFields.WriteTo(output); |
| 11546 | } |
| 11547 | |
| 11548 | private int memoizedSerializedSize = -1; |
| 11549 | public override int SerializedSize { |
| 11550 | get { |
| 11551 | int size = memoizedSerializedSize; |
| 11552 | if (size != -1) return size; |
| 11553 | |
| 11554 | size = 0; |
| 11555 | size += UnknownFields.SerializedSize; |
| 11556 | memoizedSerializedSize = size; |
| 11557 | return size; |
| 11558 | } |
| 11559 | } |
| 11560 | |
| 11561 | public static BarRequest ParseFrom(pb::ByteString data) { |
| 11562 | return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed(); |
| 11563 | } |
| 11564 | public static BarRequest ParseFrom(pb::ByteString data, pb::ExtensionRegistry extensionRegistry) { |
| 11565 | return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed(); |
| 11566 | } |
| 11567 | public static BarRequest ParseFrom(byte[] data) { |
| 11568 | return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed(); |
| 11569 | } |
| 11570 | public static BarRequest ParseFrom(byte[] data, pb::ExtensionRegistry extensionRegistry) { |
| 11571 | return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed(); |
| 11572 | } |
| 11573 | public static BarRequest ParseFrom(global::System.IO.Stream input) { |
| 11574 | return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed(); |
| 11575 | } |
| 11576 | public static BarRequest ParseFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) { |
| 11577 | return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed(); |
| 11578 | } |
| 11579 | public static BarRequest ParseFrom(pb::CodedInputStream input) { |
| 11580 | return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed(); |
| 11581 | } |
| 11582 | public static BarRequest ParseFrom(pb::CodedInputStream input, pb::ExtensionRegistry extensionRegistry) { |
| 11583 | return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed(); |
| 11584 | } |
| 11585 | public static Builder CreateBuilder() { return new Builder(); } |
| 11586 | public override Builder CreateBuilderForType() { return new Builder(); } |
| 11587 | public static Builder CreateBuilder(BarRequest prototype) { |
| 11588 | return (Builder) new Builder().MergeFrom(prototype); |
| 11589 | } |
| 11590 | |
| 11591 | public sealed partial class Builder : pb::GeneratedBuilder<BarRequest, Builder> { |
| 11592 | protected override Builder ThisBuilder { |
| 11593 | get { return this; } |
| 11594 | } |
| 11595 | public Builder() {} |
| 11596 | |
| 11597 | BarRequest result = new BarRequest(); |
| 11598 | |
| 11599 | protected override BarRequest MessageBeingBuilt { |
| 11600 | get { return result; } |
| 11601 | } |
| 11602 | |
| 11603 | public override Builder Clear() { |
| 11604 | result = new BarRequest(); |
| 11605 | return this; |
| 11606 | } |
| 11607 | |
| 11608 | public override Builder Clone() { |
| 11609 | return new Builder().MergeFrom(result); |
| 11610 | } |
| 11611 | |
| 11612 | public override pbd::MessageDescriptor DescriptorForType { |
| 11613 | get { return BarRequest.Descriptor; } |
| 11614 | } |
| 11615 | |
| 11616 | public override BarRequest DefaultInstanceForType { |
| 11617 | get { return BarRequest.DefaultInstance; } |
| 11618 | } |
| 11619 | |
| 11620 | public override BarRequest BuildPartial() { |
| 11621 | BarRequest returnMe = result; |
| 11622 | result = null; |
| 11623 | return returnMe; |
| 11624 | } |
| 11625 | |
| 11626 | public override Builder MergeFrom(pb::IMessage other) { |
| 11627 | if (other is BarRequest) { |
| 11628 | return MergeFrom((BarRequest) other); |
| 11629 | } else { |
| 11630 | base.MergeFrom(other); |
| 11631 | return this; |
| 11632 | } |
| 11633 | } |
| 11634 | |
| 11635 | public override Builder MergeFrom(BarRequest other) { |
| 11636 | if (other == BarRequest.DefaultInstance) return this; |
| 11637 | this.MergeUnknownFields(other.UnknownFields); |
| 11638 | return this; |
| 11639 | } |
| 11640 | |
| 11641 | public override Builder MergeFrom(pb::CodedInputStream input) { |
| 11642 | return MergeFrom(input, pb::ExtensionRegistry.Empty); |
| 11643 | } |
| 11644 | |
| 11645 | public override Builder MergeFrom(pb::CodedInputStream input, pb::ExtensionRegistry extensionRegistry) { |
| 11646 | pb::UnknownFieldSet.Builder unknownFields = pb::UnknownFieldSet.CreateBuilder(this.UnknownFields); |
| 11647 | while (true) { |
| 11648 | uint tag = input.ReadTag(); |
| 11649 | switch (tag) { |
| 11650 | case 0: { |
| 11651 | this.UnknownFields = unknownFields.Build(); |
| 11652 | return this; |
| 11653 | } |
| 11654 | default: { |
| 11655 | if (!ParseUnknownField(input, unknownFields, extensionRegistry, tag)) { |
| 11656 | this.UnknownFields = unknownFields.Build(); |
| 11657 | return this; |
| 11658 | } |
| 11659 | break; |
| 11660 | } |
| 11661 | } |
| 11662 | } |
| 11663 | } |
| 11664 | |
| 11665 | } |
| 11666 | } |
| 11667 | |
| 11668 | public sealed partial class BarResponse : pb::GeneratedMessage<BarResponse, BarResponse.Builder> { |
| 11669 | private static readonly BarResponse defaultInstance = new Builder().BuildPartial(); |
| 11670 | public static BarResponse DefaultInstance { |
| 11671 | get { return defaultInstance; } |
| 11672 | } |
| 11673 | |
| 11674 | public override BarResponse DefaultInstanceForType { |
| 11675 | get { return defaultInstance; } |
| 11676 | } |
| 11677 | |
| 11678 | protected override BarResponse ThisMessage { |
| 11679 | get { return this; } |
| 11680 | } |
| 11681 | |
| 11682 | public static pbd::MessageDescriptor Descriptor { |
| 11683 | get { return global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.internal__static_protobuf_unittest_BarResponse__Descriptor; } |
| 11684 | } |
| 11685 | |
| 11686 | protected override pb::FieldAccess.FieldAccessorTable<BarResponse, BarResponse.Builder> InternalFieldAccessors { |
| 11687 | get { return global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.internal__static_protobuf_unittest_BarResponse__FieldAccessorTable; } |
| 11688 | } |
| 11689 | |
| 11690 | public override bool IsInitialized { |
| 11691 | get { |
| 11692 | return true; |
| 11693 | } |
| 11694 | } |
| 11695 | |
| 11696 | public override void WriteTo(pb::CodedOutputStream output) { |
| 11697 | UnknownFields.WriteTo(output); |
| 11698 | } |
| 11699 | |
| 11700 | private int memoizedSerializedSize = -1; |
| 11701 | public override int SerializedSize { |
| 11702 | get { |
| 11703 | int size = memoizedSerializedSize; |
| 11704 | if (size != -1) return size; |
| 11705 | |
| 11706 | size = 0; |
| 11707 | size += UnknownFields.SerializedSize; |
| 11708 | memoizedSerializedSize = size; |
| 11709 | return size; |
| 11710 | } |
| 11711 | } |
| 11712 | |
| 11713 | public static BarResponse ParseFrom(pb::ByteString data) { |
| 11714 | return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed(); |
| 11715 | } |
| 11716 | public static BarResponse ParseFrom(pb::ByteString data, pb::ExtensionRegistry extensionRegistry) { |
| 11717 | return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed(); |
| 11718 | } |
| 11719 | public static BarResponse ParseFrom(byte[] data) { |
| 11720 | return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed(); |
| 11721 | } |
| 11722 | public static BarResponse ParseFrom(byte[] data, pb::ExtensionRegistry extensionRegistry) { |
| 11723 | return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed(); |
| 11724 | } |
| 11725 | public static BarResponse ParseFrom(global::System.IO.Stream input) { |
| 11726 | return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed(); |
| 11727 | } |
| 11728 | public static BarResponse ParseFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) { |
| 11729 | return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed(); |
| 11730 | } |
| 11731 | public static BarResponse ParseFrom(pb::CodedInputStream input) { |
| 11732 | return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed(); |
| 11733 | } |
| 11734 | public static BarResponse ParseFrom(pb::CodedInputStream input, pb::ExtensionRegistry extensionRegistry) { |
| 11735 | return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed(); |
| 11736 | } |
| 11737 | public static Builder CreateBuilder() { return new Builder(); } |
| 11738 | public override Builder CreateBuilderForType() { return new Builder(); } |
| 11739 | public static Builder CreateBuilder(BarResponse prototype) { |
| 11740 | return (Builder) new Builder().MergeFrom(prototype); |
| 11741 | } |
| 11742 | |
| 11743 | public sealed partial class Builder : pb::GeneratedBuilder<BarResponse, Builder> { |
| 11744 | protected override Builder ThisBuilder { |
| 11745 | get { return this; } |
| 11746 | } |
| 11747 | public Builder() {} |
| 11748 | |
| 11749 | BarResponse result = new BarResponse(); |
| 11750 | |
| 11751 | protected override BarResponse MessageBeingBuilt { |
| 11752 | get { return result; } |
| 11753 | } |
| 11754 | |
| 11755 | public override Builder Clear() { |
| 11756 | result = new BarResponse(); |
| 11757 | return this; |
| 11758 | } |
| 11759 | |
| 11760 | public override Builder Clone() { |
| 11761 | return new Builder().MergeFrom(result); |
| 11762 | } |
| 11763 | |
| 11764 | public override pbd::MessageDescriptor DescriptorForType { |
| 11765 | get { return BarResponse.Descriptor; } |
| 11766 | } |
| 11767 | |
| 11768 | public override BarResponse DefaultInstanceForType { |
| 11769 | get { return BarResponse.DefaultInstance; } |
| 11770 | } |
| 11771 | |
| 11772 | public override BarResponse BuildPartial() { |
| 11773 | BarResponse returnMe = result; |
| 11774 | result = null; |
| 11775 | return returnMe; |
| 11776 | } |
| 11777 | |
| 11778 | public override Builder MergeFrom(pb::IMessage other) { |
| 11779 | if (other is BarResponse) { |
| 11780 | return MergeFrom((BarResponse) other); |
| 11781 | } else { |
| 11782 | base.MergeFrom(other); |
| 11783 | return this; |
| 11784 | } |
| 11785 | } |
| 11786 | |
| 11787 | public override Builder MergeFrom(BarResponse other) { |
| 11788 | if (other == BarResponse.DefaultInstance) return this; |
| 11789 | this.MergeUnknownFields(other.UnknownFields); |
| 11790 | return this; |
| 11791 | } |
| 11792 | |
| 11793 | public override Builder MergeFrom(pb::CodedInputStream input) { |
| 11794 | return MergeFrom(input, pb::ExtensionRegistry.Empty); |
| 11795 | } |
| 11796 | |
| 11797 | public override Builder MergeFrom(pb::CodedInputStream input, pb::ExtensionRegistry extensionRegistry) { |
| 11798 | pb::UnknownFieldSet.Builder unknownFields = pb::UnknownFieldSet.CreateBuilder(this.UnknownFields); |
| 11799 | while (true) { |
| 11800 | uint tag = input.ReadTag(); |
| 11801 | switch (tag) { |
| 11802 | case 0: { |
| 11803 | this.UnknownFields = unknownFields.Build(); |
| 11804 | return this; |
| 11805 | } |
| 11806 | default: { |
| 11807 | if (!ParseUnknownField(input, unknownFields, extensionRegistry, tag)) { |
| 11808 | this.UnknownFields = unknownFields.Build(); |
| 11809 | return this; |
| 11810 | } |
| 11811 | break; |
| 11812 | } |
| 11813 | } |
| 11814 | } |
| 11815 | } |
| 11816 | |
| 11817 | } |
| 11818 | } |
| 11819 | |
| 11820 | #endregion |
| 11821 | |
| 11822 | #region Services |
| 11823 | public abstract class TestService : pb::IService { |
| 11824 | public abstract void Foo( |
| 11825 | pb::IRpcController controller, |
| 11826 | global::Google.ProtocolBuffers.TestProtos.FooRequest request, |
| 11827 | global::System.Action<global::Google.ProtocolBuffers.TestProtos.FooResponse> done); |
| 11828 | public abstract void Bar( |
| 11829 | pb::IRpcController controller, |
| 11830 | global::Google.ProtocolBuffers.TestProtos.BarRequest request, |
| 11831 | global::System.Action<global::Google.ProtocolBuffers.TestProtos.BarResponse> done); |
| 11832 | |
| 11833 | public static pbd::ServiceDescriptor Descriptor { |
| 11834 | get { return UnitTestProtoFile.Descriptor.Services[0]; } |
| 11835 | } |
| 11836 | public pbd::ServiceDescriptor DescriptorForType { |
| 11837 | get { return Descriptor; } |
| 11838 | } |
| 11839 | |
| 11840 | public void CallMethod( |
| 11841 | pbd::MethodDescriptor method, |
| 11842 | pb::IRpcController controller, |
| 11843 | pb::IMessage request, |
| 11844 | global::System.Action<pb::IMessage> done) { |
| 11845 | if (method.Service != Descriptor) { |
| 11846 | throw new global::System.ArgumentException( |
| 11847 | "Service.CallMethod() given method descriptor for wrong service type."); |
| 11848 | } |
| 11849 | switch(method.Index) { |
| 11850 | case 0: |
| 11851 | this.Foo(controller, (global::Google.ProtocolBuffers.TestProtos.FooRequest) request, |
| 11852 | pb::RpcUtil.SpecializeCallback<global::Google.ProtocolBuffers.TestProtos.FooResponse>( |
| 11853 | done)); |
| 11854 | return; |
| 11855 | case 1: |
| 11856 | this.Bar(controller, (global::Google.ProtocolBuffers.TestProtos.BarRequest) request, |
| 11857 | pb::RpcUtil.SpecializeCallback<global::Google.ProtocolBuffers.TestProtos.BarResponse>( |
| 11858 | done)); |
| 11859 | return; |
| 11860 | default: |
| 11861 | throw new global::System.InvalidOperationException("Can't get here."); |
| 11862 | } |
| 11863 | } |
| 11864 | |
| 11865 | public pb::IMessage GetRequestPrototype(pbd::MethodDescriptor method) { |
| 11866 | if (method.Service != Descriptor) { |
| 11867 | throw new global::System.ArgumentException( |
| 11868 | "Service.GetRequestPrototype() given method descriptor for wrong service type."); |
| 11869 | } |
| 11870 | switch(method.Index) { |
| 11871 | case 0: |
| 11872 | return global::Google.ProtocolBuffers.TestProtos.FooRequest.DefaultInstance; |
| 11873 | case 1: |
| 11874 | return global::Google.ProtocolBuffers.TestProtos.BarRequest.DefaultInstance; |
| 11875 | default: |
| 11876 | throw new global::System.InvalidOperationException("Can't get here."); |
| 11877 | } |
| 11878 | } |
| 11879 | |
| 11880 | public pb::IMessage GetResponsePrototype(pbd::MethodDescriptor method) { |
| 11881 | if (method.Service != Descriptor) { |
| 11882 | throw new global::System.ArgumentException( |
| 11883 | "Service.GetResponsePrototype() given method descriptor for wrong service type."); |
| 11884 | } |
| 11885 | switch(method.Index) { |
| 11886 | case 0: |
| 11887 | return global::Google.ProtocolBuffers.TestProtos.FooResponse.DefaultInstance; |
| 11888 | case 1: |
| 11889 | return global::Google.ProtocolBuffers.TestProtos.BarResponse.DefaultInstance; |
| 11890 | default: |
| 11891 | throw new global::System.InvalidOperationException("Can't get here."); |
| 11892 | } |
| 11893 | } |
| 11894 | |
| 11895 | public static Stub CreateStub(pb::IRpcChannel channel) { |
| 11896 | return new Stub(channel); |
| 11897 | } |
| 11898 | |
| 11899 | public class Stub : global::Google.ProtocolBuffers.TestProtos.TestService { |
| 11900 | internal Stub(pb::IRpcChannel channel) { |
| 11901 | this.channel = channel; |
| 11902 | } |
| 11903 | |
| 11904 | private readonly pb::IRpcChannel channel; |
| 11905 | |
| 11906 | public pb::IRpcChannel Channel { |
| 11907 | get { return channel; } |
| 11908 | } |
| 11909 | |
| 11910 | public override void Foo( |
| 11911 | pb::IRpcController controller, |
| 11912 | global::Google.ProtocolBuffers.TestProtos.FooRequest request, |
| 11913 | global::System.Action<global::Google.ProtocolBuffers.TestProtos.FooResponse> done) { |
| 11914 | channel.CallMethod(Descriptor.Methods[0], |
| 11915 | controller, request, global::Google.ProtocolBuffers.TestProtos.FooResponse.DefaultInstance, |
| 11916 | pb::RpcUtil.GeneralizeCallback<global::Google.ProtocolBuffers.TestProtos.FooResponse, global::Google.ProtocolBuffers.TestProtos.FooResponse.Builder>(done, global::Google.ProtocolBuffers.TestProtos.FooResponse.DefaultInstance)); |
| 11917 | } |
| 11918 | |
| 11919 | public override void Bar( |
| 11920 | pb::IRpcController controller, |
| 11921 | global::Google.ProtocolBuffers.TestProtos.BarRequest request, |
| 11922 | global::System.Action<global::Google.ProtocolBuffers.TestProtos.BarResponse> done) { |
| 11923 | channel.CallMethod(Descriptor.Methods[1], |
| 11924 | controller, request, global::Google.ProtocolBuffers.TestProtos.BarResponse.DefaultInstance, |
| 11925 | pb::RpcUtil.GeneralizeCallback<global::Google.ProtocolBuffers.TestProtos.BarResponse, global::Google.ProtocolBuffers.TestProtos.BarResponse.Builder>(done, global::Google.ProtocolBuffers.TestProtos.BarResponse.DefaultInstance)); |
| 11926 | } |
| 11927 | } |
| 11928 | } |
| 11929 | #endregion |
| 11930 | |
| 11931 | } |