1 // <auto-generated> 2 // Generated by the protocol buffer compiler. DO NOT EDIT! 3 // source: google/protobuf/test_messages_proto2.proto 4 // </auto-generated> 5 #pragma warning disable 1591, 0612, 3021, 8981 6 #region Designer generated code 7 8 using pb = global::Google.Protobuf; 9 using pbc = global::Google.Protobuf.Collections; 10 using pbr = global::Google.Protobuf.Reflection; 11 using scg = global::System.Collections.Generic; 12 namespace ProtobufTestMessages.Proto2 { 13 14 /// <summary>Holder for reflection information generated from google/protobuf/test_messages_proto2.proto</summary> 15 public static partial class TestMessagesProto2Reflection { 16 17 #region Descriptor 18 /// <summary>File descriptor for google/protobuf/test_messages_proto2.proto</summary> 19 public static pbr::FileDescriptor Descriptor { 20 get { return descriptor; } 21 } 22 private static pbr::FileDescriptor descriptor; 23 TestMessagesProto2Reflection()24 static TestMessagesProto2Reflection() { 25 byte[] descriptorData = global::System.Convert.FromBase64String( 26 string.Concat( 27 "Cipnb29nbGUvcHJvdG9idWYvdGVzdF9tZXNzYWdlc19wcm90bzIucHJvdG8S", 28 "HXByb3RvYnVmX3Rlc3RfbWVzc2FnZXMucHJvdG8yIu0/ChJUZXN0QWxsVHlw", 29 "ZXNQcm90bzISFgoOb3B0aW9uYWxfaW50MzIYASABKAUSFgoOb3B0aW9uYWxf", 30 "aW50NjQYAiABKAMSFwoPb3B0aW9uYWxfdWludDMyGAMgASgNEhcKD29wdGlv", 31 "bmFsX3VpbnQ2NBgEIAEoBBIXCg9vcHRpb25hbF9zaW50MzIYBSABKBESFwoP", 32 "b3B0aW9uYWxfc2ludDY0GAYgASgSEhgKEG9wdGlvbmFsX2ZpeGVkMzIYByAB", 33 "KAcSGAoQb3B0aW9uYWxfZml4ZWQ2NBgIIAEoBhIZChFvcHRpb25hbF9zZml4", 34 "ZWQzMhgJIAEoDxIZChFvcHRpb25hbF9zZml4ZWQ2NBgKIAEoEBIWCg5vcHRp", 35 "b25hbF9mbG9hdBgLIAEoAhIXCg9vcHRpb25hbF9kb3VibGUYDCABKAESFQoN", 36 "b3B0aW9uYWxfYm9vbBgNIAEoCBIXCg9vcHRpb25hbF9zdHJpbmcYDiABKAkS", 37 "FgoOb3B0aW9uYWxfYnl0ZXMYDyABKAwSYAoXb3B0aW9uYWxfbmVzdGVkX21l", 38 "c3NhZ2UYEiABKAsyPy5wcm90b2J1Zl90ZXN0X21lc3NhZ2VzLnByb3RvMi5U", 39 "ZXN0QWxsVHlwZXNQcm90bzIuTmVzdGVkTWVzc2FnZRJVChhvcHRpb25hbF9m", 40 "b3JlaWduX21lc3NhZ2UYEyABKAsyMy5wcm90b2J1Zl90ZXN0X21lc3NhZ2Vz", 41 "LnByb3RvMi5Gb3JlaWduTWVzc2FnZVByb3RvMhJaChRvcHRpb25hbF9uZXN0", 42 "ZWRfZW51bRgVIAEoDjI8LnByb3RvYnVmX3Rlc3RfbWVzc2FnZXMucHJvdG8y", 43 "LlRlc3RBbGxUeXBlc1Byb3RvMi5OZXN0ZWRFbnVtEk8KFW9wdGlvbmFsX2Zv", 44 "cmVpZ25fZW51bRgWIAEoDjIwLnByb3RvYnVmX3Rlc3RfbWVzc2FnZXMucHJv", 45 "dG8yLkZvcmVpZ25FbnVtUHJvdG8yEiEKFW9wdGlvbmFsX3N0cmluZ19waWVj", 46 "ZRgYIAEoCUICCAISGQoNb3B0aW9uYWxfY29yZBgZIAEoCUICCAESTAoRcmVj", 47 "dXJzaXZlX21lc3NhZ2UYGyABKAsyMS5wcm90b2J1Zl90ZXN0X21lc3NhZ2Vz", 48 "LnByb3RvMi5UZXN0QWxsVHlwZXNQcm90bzISFgoOcmVwZWF0ZWRfaW50MzIY", 49 "HyADKAUSFgoOcmVwZWF0ZWRfaW50NjQYICADKAMSFwoPcmVwZWF0ZWRfdWlu", 50 "dDMyGCEgAygNEhcKD3JlcGVhdGVkX3VpbnQ2NBgiIAMoBBIXCg9yZXBlYXRl", 51 "ZF9zaW50MzIYIyADKBESFwoPcmVwZWF0ZWRfc2ludDY0GCQgAygSEhgKEHJl", 52 "cGVhdGVkX2ZpeGVkMzIYJSADKAcSGAoQcmVwZWF0ZWRfZml4ZWQ2NBgmIAMo", 53 "BhIZChFyZXBlYXRlZF9zZml4ZWQzMhgnIAMoDxIZChFyZXBlYXRlZF9zZml4", 54 "ZWQ2NBgoIAMoEBIWCg5yZXBlYXRlZF9mbG9hdBgpIAMoAhIXCg9yZXBlYXRl", 55 "ZF9kb3VibGUYKiADKAESFQoNcmVwZWF0ZWRfYm9vbBgrIAMoCBIXCg9yZXBl", 56 "YXRlZF9zdHJpbmcYLCADKAkSFgoOcmVwZWF0ZWRfYnl0ZXMYLSADKAwSYAoX", 57 "cmVwZWF0ZWRfbmVzdGVkX21lc3NhZ2UYMCADKAsyPy5wcm90b2J1Zl90ZXN0", 58 "X21lc3NhZ2VzLnByb3RvMi5UZXN0QWxsVHlwZXNQcm90bzIuTmVzdGVkTWVz", 59 "c2FnZRJVChhyZXBlYXRlZF9mb3JlaWduX21lc3NhZ2UYMSADKAsyMy5wcm90", 60 "b2J1Zl90ZXN0X21lc3NhZ2VzLnByb3RvMi5Gb3JlaWduTWVzc2FnZVByb3Rv", 61 "MhJaChRyZXBlYXRlZF9uZXN0ZWRfZW51bRgzIAMoDjI8LnByb3RvYnVmX3Rl", 62 "c3RfbWVzc2FnZXMucHJvdG8yLlRlc3RBbGxUeXBlc1Byb3RvMi5OZXN0ZWRF", 63 "bnVtEk8KFXJlcGVhdGVkX2ZvcmVpZ25fZW51bRg0IAMoDjIwLnByb3RvYnVm", 64 "X3Rlc3RfbWVzc2FnZXMucHJvdG8yLkZvcmVpZ25FbnVtUHJvdG8yEiEKFXJl", 65 "cGVhdGVkX3N0cmluZ19waWVjZRg2IAMoCUICCAISGQoNcmVwZWF0ZWRfY29y", 66 "ZBg3IAMoCUICCAESGAoMcGFja2VkX2ludDMyGEsgAygFQgIQARIYCgxwYWNr", 67 "ZWRfaW50NjQYTCADKANCAhABEhkKDXBhY2tlZF91aW50MzIYTSADKA1CAhAB", 68 "EhkKDXBhY2tlZF91aW50NjQYTiADKARCAhABEhkKDXBhY2tlZF9zaW50MzIY", 69 "TyADKBFCAhABEhkKDXBhY2tlZF9zaW50NjQYUCADKBJCAhABEhoKDnBhY2tl", 70 "ZF9maXhlZDMyGFEgAygHQgIQARIaCg5wYWNrZWRfZml4ZWQ2NBhSIAMoBkIC", 71 "EAESGwoPcGFja2VkX3NmaXhlZDMyGFMgAygPQgIQARIbCg9wYWNrZWRfc2Zp", 72 "eGVkNjQYVCADKBBCAhABEhgKDHBhY2tlZF9mbG9hdBhVIAMoAkICEAESGQoN", 73 "cGFja2VkX2RvdWJsZRhWIAMoAUICEAESFwoLcGFja2VkX2Jvb2wYVyADKAhC", 74 "AhABElwKEnBhY2tlZF9uZXN0ZWRfZW51bRhYIAMoDjI8LnByb3RvYnVmX3Rl", 75 "c3RfbWVzc2FnZXMucHJvdG8yLlRlc3RBbGxUeXBlc1Byb3RvMi5OZXN0ZWRF", 76 "bnVtQgIQARIaCg51bnBhY2tlZF9pbnQzMhhZIAMoBUICEAASGgoOdW5wYWNr", 77 "ZWRfaW50NjQYWiADKANCAhAAEhsKD3VucGFja2VkX3VpbnQzMhhbIAMoDUIC", 78 "EAASGwoPdW5wYWNrZWRfdWludDY0GFwgAygEQgIQABIbCg91bnBhY2tlZF9z", 79 "aW50MzIYXSADKBFCAhAAEhsKD3VucGFja2VkX3NpbnQ2NBheIAMoEkICEAAS", 80 "HAoQdW5wYWNrZWRfZml4ZWQzMhhfIAMoB0ICEAASHAoQdW5wYWNrZWRfZml4", 81 "ZWQ2NBhgIAMoBkICEAASHQoRdW5wYWNrZWRfc2ZpeGVkMzIYYSADKA9CAhAA", 82 "Eh0KEXVucGFja2VkX3NmaXhlZDY0GGIgAygQQgIQABIaCg51bnBhY2tlZF9m", 83 "bG9hdBhjIAMoAkICEAASGwoPdW5wYWNrZWRfZG91YmxlGGQgAygBQgIQABIZ", 84 "Cg11bnBhY2tlZF9ib29sGGUgAygIQgIQABJeChR1bnBhY2tlZF9uZXN0ZWRf", 85 "ZW51bRhmIAMoDjI8LnByb3RvYnVmX3Rlc3RfbWVzc2FnZXMucHJvdG8yLlRl", 86 "c3RBbGxUeXBlc1Byb3RvMi5OZXN0ZWRFbnVtQgIQABJdCg9tYXBfaW50MzJf", 87 "aW50MzIYOCADKAsyRC5wcm90b2J1Zl90ZXN0X21lc3NhZ2VzLnByb3RvMi5U", 88 "ZXN0QWxsVHlwZXNQcm90bzIuTWFwSW50MzJJbnQzMkVudHJ5El0KD21hcF9p", 89 "bnQ2NF9pbnQ2NBg5IAMoCzJELnByb3RvYnVmX3Rlc3RfbWVzc2FnZXMucHJv", 90 "dG8yLlRlc3RBbGxUeXBlc1Byb3RvMi5NYXBJbnQ2NEludDY0RW50cnkSYQoR", 91 "bWFwX3VpbnQzMl91aW50MzIYOiADKAsyRi5wcm90b2J1Zl90ZXN0X21lc3Nh", 92 "Z2VzLnByb3RvMi5UZXN0QWxsVHlwZXNQcm90bzIuTWFwVWludDMyVWludDMy", 93 "RW50cnkSYQoRbWFwX3VpbnQ2NF91aW50NjQYOyADKAsyRi5wcm90b2J1Zl90", 94 "ZXN0X21lc3NhZ2VzLnByb3RvMi5UZXN0QWxsVHlwZXNQcm90bzIuTWFwVWlu", 95 "dDY0VWludDY0RW50cnkSYQoRbWFwX3NpbnQzMl9zaW50MzIYPCADKAsyRi5w", 96 "cm90b2J1Zl90ZXN0X21lc3NhZ2VzLnByb3RvMi5UZXN0QWxsVHlwZXNQcm90", 97 "bzIuTWFwU2ludDMyU2ludDMyRW50cnkSYQoRbWFwX3NpbnQ2NF9zaW50NjQY", 98 "PSADKAsyRi5wcm90b2J1Zl90ZXN0X21lc3NhZ2VzLnByb3RvMi5UZXN0QWxs", 99 "VHlwZXNQcm90bzIuTWFwU2ludDY0U2ludDY0RW50cnkSZQoTbWFwX2ZpeGVk", 100 "MzJfZml4ZWQzMhg+IAMoCzJILnByb3RvYnVmX3Rlc3RfbWVzc2FnZXMucHJv", 101 "dG8yLlRlc3RBbGxUeXBlc1Byb3RvMi5NYXBGaXhlZDMyRml4ZWQzMkVudHJ5", 102 "EmUKE21hcF9maXhlZDY0X2ZpeGVkNjQYPyADKAsySC5wcm90b2J1Zl90ZXN0", 103 "X21lc3NhZ2VzLnByb3RvMi5UZXN0QWxsVHlwZXNQcm90bzIuTWFwRml4ZWQ2", 104 "NEZpeGVkNjRFbnRyeRJpChVtYXBfc2ZpeGVkMzJfc2ZpeGVkMzIYQCADKAsy", 105 "Si5wcm90b2J1Zl90ZXN0X21lc3NhZ2VzLnByb3RvMi5UZXN0QWxsVHlwZXNQ", 106 "cm90bzIuTWFwU2ZpeGVkMzJTZml4ZWQzMkVudHJ5EmkKFW1hcF9zZml4ZWQ2", 107 "NF9zZml4ZWQ2NBhBIAMoCzJKLnByb3RvYnVmX3Rlc3RfbWVzc2FnZXMucHJv", 108 "dG8yLlRlc3RBbGxUeXBlc1Byb3RvMi5NYXBTZml4ZWQ2NFNmaXhlZDY0RW50", 109 "cnkSXQoPbWFwX2ludDMyX2Zsb2F0GEIgAygLMkQucHJvdG9idWZfdGVzdF9t", 110 "ZXNzYWdlcy5wcm90bzIuVGVzdEFsbFR5cGVzUHJvdG8yLk1hcEludDMyRmxv", 111 "YXRFbnRyeRJfChBtYXBfaW50MzJfZG91YmxlGEMgAygLMkUucHJvdG9idWZf", 112 "dGVzdF9tZXNzYWdlcy5wcm90bzIuVGVzdEFsbFR5cGVzUHJvdG8yLk1hcElu", 113 "dDMyRG91YmxlRW50cnkSWQoNbWFwX2Jvb2xfYm9vbBhEIAMoCzJCLnByb3Rv", 114 "YnVmX3Rlc3RfbWVzc2FnZXMucHJvdG8yLlRlc3RBbGxUeXBlc1Byb3RvMi5N", 115 "YXBCb29sQm9vbEVudHJ5EmEKEW1hcF9zdHJpbmdfc3RyaW5nGEUgAygLMkYu", 116 "cHJvdG9idWZfdGVzdF9tZXNzYWdlcy5wcm90bzIuVGVzdEFsbFR5cGVzUHJv", 117 "dG8yLk1hcFN0cmluZ1N0cmluZ0VudHJ5El8KEG1hcF9zdHJpbmdfYnl0ZXMY", 118 "RiADKAsyRS5wcm90b2J1Zl90ZXN0X21lc3NhZ2VzLnByb3RvMi5UZXN0QWxs", 119 "VHlwZXNQcm90bzIuTWFwU3RyaW5nQnl0ZXNFbnRyeRJwChltYXBfc3RyaW5n", 120 "X25lc3RlZF9tZXNzYWdlGEcgAygLMk0ucHJvdG9idWZfdGVzdF9tZXNzYWdl", 121 "cy5wcm90bzIuVGVzdEFsbFR5cGVzUHJvdG8yLk1hcFN0cmluZ05lc3RlZE1l", 122 "c3NhZ2VFbnRyeRJyChptYXBfc3RyaW5nX2ZvcmVpZ25fbWVzc2FnZRhIIAMo", 123 "CzJOLnByb3RvYnVmX3Rlc3RfbWVzc2FnZXMucHJvdG8yLlRlc3RBbGxUeXBl", 124 "c1Byb3RvMi5NYXBTdHJpbmdGb3JlaWduTWVzc2FnZUVudHJ5EmoKFm1hcF9z", 125 "dHJpbmdfbmVzdGVkX2VudW0YSSADKAsySi5wcm90b2J1Zl90ZXN0X21lc3Nh", 126 "Z2VzLnByb3RvMi5UZXN0QWxsVHlwZXNQcm90bzIuTWFwU3RyaW5nTmVzdGVk", 127 "RW51bUVudHJ5EmwKF21hcF9zdHJpbmdfZm9yZWlnbl9lbnVtGEogAygLMksu", 128 "cHJvdG9idWZfdGVzdF9tZXNzYWdlcy5wcm90bzIuVGVzdEFsbFR5cGVzUHJv", 129 "dG8yLk1hcFN0cmluZ0ZvcmVpZ25FbnVtRW50cnkSFgoMb25lb2ZfdWludDMy", 130 "GG8gASgNSAASXwoUb25lb2ZfbmVzdGVkX21lc3NhZ2UYcCABKAsyPy5wcm90", 131 "b2J1Zl90ZXN0X21lc3NhZ2VzLnByb3RvMi5UZXN0QWxsVHlwZXNQcm90bzIu", 132 "TmVzdGVkTWVzc2FnZUgAEhYKDG9uZW9mX3N0cmluZxhxIAEoCUgAEhUKC29u", 133 "ZW9mX2J5dGVzGHIgASgMSAASFAoKb25lb2ZfYm9vbBhzIAEoCEgAEhYKDG9u", 134 "ZW9mX3VpbnQ2NBh0IAEoBEgAEhUKC29uZW9mX2Zsb2F0GHUgASgCSAASFgoM", 135 "b25lb2ZfZG91YmxlGHYgASgBSAASUgoKb25lb2ZfZW51bRh3IAEoDjI8LnBy", 136 "b3RvYnVmX3Rlc3RfbWVzc2FnZXMucHJvdG8yLlRlc3RBbGxUeXBlc1Byb3Rv", 137 "Mi5OZXN0ZWRFbnVtSAASRQoEZGF0YRjJASABKAoyNi5wcm90b2J1Zl90ZXN0", 138 "X21lc3NhZ2VzLnByb3RvMi5UZXN0QWxsVHlwZXNQcm90bzIuRGF0YRJjChNt", 139 "dWx0aXdvcmRncm91cGZpZWxkGMwBIAEoCjJFLnByb3RvYnVmX3Rlc3RfbWVz", 140 "c2FnZXMucHJvdG8yLlRlc3RBbGxUeXBlc1Byb3RvMi5NdWx0aVdvcmRHcm91", 141 "cEZpZWxkEiIKDWRlZmF1bHRfaW50MzIY8QEgASgFOgotMTIzNDU2Nzg5EiwK", 142 "DWRlZmF1bHRfaW50NjQY8gEgASgDOhQtOTEyMzQ1Njc4OTEyMzQ1Njc4ORIj", 143 "Cg5kZWZhdWx0X3VpbnQzMhjzASABKA06CjIxMjM0NTY3ODkSLQoOZGVmYXVs", 144 "dF91aW50NjQY9AEgASgEOhQxMDEyMzQ1Njc4OTEyMzQ1Njc4ORIjCg5kZWZh", 145 "dWx0X3NpbnQzMhj1ASABKBE6Ci0xMjM0NTY3ODkSLQoOZGVmYXVsdF9zaW50", 146 "NjQY9gEgASgSOhQtOTEyMzQ1Njc4OTEyMzQ1Njc4ORIkCg9kZWZhdWx0X2Zp", 147 "eGVkMzIY9wEgASgHOgoyMTIzNDU2Nzg5Ei4KD2RlZmF1bHRfZml4ZWQ2NBj4", 148 "ASABKAY6FDEwMTIzNDU2Nzg5MTIzNDU2Nzg5EiUKEGRlZmF1bHRfc2ZpeGVk", 149 "MzIY+QEgASgPOgotMTIzNDU2Nzg5Ei8KEGRlZmF1bHRfc2ZpeGVkNjQY+gEg", 150 "ASgQOhQtOTEyMzQ1Njc4OTEyMzQ1Njc4ORIdCg1kZWZhdWx0X2Zsb2F0GPsB", 151 "IAEoAjoFOWUrMDkSHgoOZGVmYXVsdF9kb3VibGUY/AEgASgBOgU3ZSsyMhIb", 152 "CgxkZWZhdWx0X2Jvb2wY/QEgASgIOgR0cnVlEiAKDmRlZmF1bHRfc3RyaW5n", 153 "GP4BIAEoCToHUm9zZWJ1ZBIeCg1kZWZhdWx0X2J5dGVzGP8BIAEoDDoGam9z", 154 "aHVhEhMKCmZpZWxkbmFtZTEYkQMgASgFEhQKC2ZpZWxkX25hbWUyGJIDIAEo", 155 "BRIVCgxfZmllbGRfbmFtZTMYkwMgASgFEhYKDWZpZWxkX19uYW1lNF8YlAMg", 156 "ASgFEhQKC2ZpZWxkMG5hbWU1GJUDIAEoBRIWCg1maWVsZF8wX25hbWU2GJYD", 157 "IAEoBRITCgpmaWVsZE5hbWU3GJcDIAEoBRITCgpGaWVsZE5hbWU4GJgDIAEo", 158 "BRIUCgtmaWVsZF9OYW1lORiZAyABKAUSFQoMRmllbGRfTmFtZTEwGJoDIAEo", 159 "BRIVCgxGSUVMRF9OQU1FMTEYmwMgASgFEhUKDEZJRUxEX25hbWUxMhicAyAB", 160 "KAUSFwoOX19maWVsZF9uYW1lMTMYnQMgASgFEhcKDl9fRmllbGRfbmFtZTE0", 161 "GJ4DIAEoBRIWCg1maWVsZF9fbmFtZTE1GJ8DIAEoBRIWCg1maWVsZF9fTmFt", 162 "ZTE2GKADIAEoBRIXCg5maWVsZF9uYW1lMTdfXxihAyABKAUSFwoORmllbGRf", 163 "bmFtZTE4X18YogMgASgFGmIKDU5lc3RlZE1lc3NhZ2USCQoBYRgBIAEoBRJG", 164 "Cgtjb3JlY3Vyc2l2ZRgCIAEoCzIxLnByb3RvYnVmX3Rlc3RfbWVzc2FnZXMu", 165 "cHJvdG8yLlRlc3RBbGxUeXBlc1Byb3RvMho0ChJNYXBJbnQzMkludDMyRW50", 166 "cnkSCwoDa2V5GAEgASgFEg0KBXZhbHVlGAIgASgFOgI4ARo0ChJNYXBJbnQ2", 167 "NEludDY0RW50cnkSCwoDa2V5GAEgASgDEg0KBXZhbHVlGAIgASgDOgI4ARo2", 168 "ChRNYXBVaW50MzJVaW50MzJFbnRyeRILCgNrZXkYASABKA0SDQoFdmFsdWUY", 169 "AiABKA06AjgBGjYKFE1hcFVpbnQ2NFVpbnQ2NEVudHJ5EgsKA2tleRgBIAEo", 170 "BBINCgV2YWx1ZRgCIAEoBDoCOAEaNgoUTWFwU2ludDMyU2ludDMyRW50cnkS", 171 "CwoDa2V5GAEgASgREg0KBXZhbHVlGAIgASgROgI4ARo2ChRNYXBTaW50NjRT", 172 "aW50NjRFbnRyeRILCgNrZXkYASABKBISDQoFdmFsdWUYAiABKBI6AjgBGjgK", 173 "Fk1hcEZpeGVkMzJGaXhlZDMyRW50cnkSCwoDa2V5GAEgASgHEg0KBXZhbHVl", 174 "GAIgASgHOgI4ARo4ChZNYXBGaXhlZDY0Rml4ZWQ2NEVudHJ5EgsKA2tleRgB", 175 "IAEoBhINCgV2YWx1ZRgCIAEoBjoCOAEaOgoYTWFwU2ZpeGVkMzJTZml4ZWQz", 176 "MkVudHJ5EgsKA2tleRgBIAEoDxINCgV2YWx1ZRgCIAEoDzoCOAEaOgoYTWFw", 177 "U2ZpeGVkNjRTZml4ZWQ2NEVudHJ5EgsKA2tleRgBIAEoEBINCgV2YWx1ZRgC", 178 "IAEoEDoCOAEaNAoSTWFwSW50MzJGbG9hdEVudHJ5EgsKA2tleRgBIAEoBRIN", 179 "CgV2YWx1ZRgCIAEoAjoCOAEaNQoTTWFwSW50MzJEb3VibGVFbnRyeRILCgNr", 180 "ZXkYASABKAUSDQoFdmFsdWUYAiABKAE6AjgBGjIKEE1hcEJvb2xCb29sRW50", 181 "cnkSCwoDa2V5GAEgASgIEg0KBXZhbHVlGAIgASgIOgI4ARo2ChRNYXBTdHJp", 182 "bmdTdHJpbmdFbnRyeRILCgNrZXkYASABKAkSDQoFdmFsdWUYAiABKAk6AjgB", 183 "GjUKE01hcFN0cmluZ0J5dGVzRW50cnkSCwoDa2V5GAEgASgJEg0KBXZhbHVl", 184 "GAIgASgMOgI4ARp+ChtNYXBTdHJpbmdOZXN0ZWRNZXNzYWdlRW50cnkSCwoD", 185 "a2V5GAEgASgJEk4KBXZhbHVlGAIgASgLMj8ucHJvdG9idWZfdGVzdF9tZXNz", 186 "YWdlcy5wcm90bzIuVGVzdEFsbFR5cGVzUHJvdG8yLk5lc3RlZE1lc3NhZ2U6", 187 "AjgBGnMKHE1hcFN0cmluZ0ZvcmVpZ25NZXNzYWdlRW50cnkSCwoDa2V5GAEg", 188 "ASgJEkIKBXZhbHVlGAIgASgLMjMucHJvdG9idWZfdGVzdF9tZXNzYWdlcy5w", 189 "cm90bzIuRm9yZWlnbk1lc3NhZ2VQcm90bzI6AjgBGngKGE1hcFN0cmluZ05l", 190 "c3RlZEVudW1FbnRyeRILCgNrZXkYASABKAkSSwoFdmFsdWUYAiABKA4yPC5w", 191 "cm90b2J1Zl90ZXN0X21lc3NhZ2VzLnByb3RvMi5UZXN0QWxsVHlwZXNQcm90", 192 "bzIuTmVzdGVkRW51bToCOAEabQoZTWFwU3RyaW5nRm9yZWlnbkVudW1FbnRy", 193 "eRILCgNrZXkYASABKAkSPwoFdmFsdWUYAiABKA4yMC5wcm90b2J1Zl90ZXN0", 194 "X21lc3NhZ2VzLnByb3RvMi5Gb3JlaWduRW51bVByb3RvMjoCOAEaMwoERGF0", 195 "YRIUCgtncm91cF9pbnQzMhjKASABKAUSFQoMZ3JvdXBfdWludDMyGMsBIAEo", 196 "DRpCChNNdWx0aVdvcmRHcm91cEZpZWxkEhQKC2dyb3VwX2ludDMyGM0BIAEo", 197 "BRIVCgxncm91cF91aW50MzIYzgEgASgNGiEKEU1lc3NhZ2VTZXRDb3JyZWN0", 198 "KggIBBD/////BzoCCAEa4AEKG01lc3NhZ2VTZXRDb3JyZWN0RXh0ZW5zaW9u", 199 "MRILCgNzdHIYGSABKAkyswEKFW1lc3NhZ2Vfc2V0X2V4dGVuc2lvbhJDLnBy", 200 "b3RvYnVmX3Rlc3RfbWVzc2FnZXMucHJvdG8yLlRlc3RBbGxUeXBlc1Byb3Rv", 201 "Mi5NZXNzYWdlU2V0Q29ycmVjdBj5u14gASgLMk0ucHJvdG9idWZfdGVzdF9t", 202 "ZXNzYWdlcy5wcm90bzIuVGVzdEFsbFR5cGVzUHJvdG8yLk1lc3NhZ2VTZXRD", 203 "b3JyZWN0RXh0ZW5zaW9uMRrfAQobTWVzc2FnZVNldENvcnJlY3RFeHRlbnNp", 204 "b24yEgkKAWkYCSABKAUytAEKFW1lc3NhZ2Vfc2V0X2V4dGVuc2lvbhJDLnBy", 205 "b3RvYnVmX3Rlc3RfbWVzc2FnZXMucHJvdG8yLlRlc3RBbGxUeXBlc1Byb3Rv", 206 "Mi5NZXNzYWdlU2V0Q29ycmVjdBiQs/wBIAEoCzJNLnByb3RvYnVmX3Rlc3Rf", 207 "bWVzc2FnZXMucHJvdG8yLlRlc3RBbGxUeXBlc1Byb3RvMi5NZXNzYWdlU2V0", 208 "Q29ycmVjdEV4dGVuc2lvbjIiOQoKTmVzdGVkRW51bRIHCgNGT08QABIHCgNC", 209 "QVIQARIHCgNCQVoQAhIQCgNORUcQ////////////ASoFCHgQyQFCDQoLb25l", 210 "b2ZfZmllbGRKBgjoBxCQTiIhChRGb3JlaWduTWVzc2FnZVByb3RvMhIJCgFj", 211 "GAEgASgFIjcKCkdyb3VwRmllbGQSEwoLZ3JvdXBfaW50MzIYeiABKAUSFAoM", 212 "Z3JvdXBfdWludDMyGHsgASgNIsECChVVbmtub3duVG9UZXN0QWxsVHlwZXMS", 213 "FwoOb3B0aW9uYWxfaW50MzIY6QcgASgFEhgKD29wdGlvbmFsX3N0cmluZxjq", 214 "ByABKAkSTAoObmVzdGVkX21lc3NhZ2UY6wcgASgLMjMucHJvdG9idWZfdGVz", 215 "dF9tZXNzYWdlcy5wcm90bzIuRm9yZWlnbk1lc3NhZ2VQcm90bzISWgoNb3B0", 216 "aW9uYWxncm91cBjsByABKAoyQi5wcm90b2J1Zl90ZXN0X21lc3NhZ2VzLnBy", 217 "b3RvMi5Vbmtub3duVG9UZXN0QWxsVHlwZXMuT3B0aW9uYWxHcm91cBIWCg1v", 218 "cHRpb25hbF9ib29sGO4HIAEoCBIXCg5yZXBlYXRlZF9pbnQzMhjzByADKAUa", 219 "GgoNT3B0aW9uYWxHcm91cBIJCgFhGAEgASgFIhYKFE51bGxIeXBvdGhlc2lz", 220 "UHJvdG8yIi8KDkVudW1Pbmx5UHJvdG8yIh0KBEJvb2wSCgoGa0ZhbHNlEAAS", 221 "CQoFa1RydWUQASIfCg9PbmVTdHJpbmdQcm90bzISDAoEZGF0YRgBIAEoCSJG", 222 "ChFQcm90b1dpdGhLZXl3b3JkcxIOCgZpbmxpbmUYASABKAUSDwoHY29uY2Vw", 223 "dBgCIAEoCRIQCghyZXF1aXJlcxgDIAMoCSLeEwoaVGVzdEFsbFJlcXVpcmVk", 224 "VHlwZXNQcm90bzISFgoOcmVxdWlyZWRfaW50MzIYASACKAUSFgoOcmVxdWly", 225 "ZWRfaW50NjQYAiACKAMSFwoPcmVxdWlyZWRfdWludDMyGAMgAigNEhcKD3Jl", 226 "cXVpcmVkX3VpbnQ2NBgEIAIoBBIXCg9yZXF1aXJlZF9zaW50MzIYBSACKBES", 227 "FwoPcmVxdWlyZWRfc2ludDY0GAYgAigSEhgKEHJlcXVpcmVkX2ZpeGVkMzIY", 228 "ByACKAcSGAoQcmVxdWlyZWRfZml4ZWQ2NBgIIAIoBhIZChFyZXF1aXJlZF9z", 229 "Zml4ZWQzMhgJIAIoDxIZChFyZXF1aXJlZF9zZml4ZWQ2NBgKIAIoEBIWCg5y", 230 "ZXF1aXJlZF9mbG9hdBgLIAIoAhIXCg9yZXF1aXJlZF9kb3VibGUYDCACKAES", 231 "FQoNcmVxdWlyZWRfYm9vbBgNIAIoCBIXCg9yZXF1aXJlZF9zdHJpbmcYDiAC", 232 "KAkSFgoOcmVxdWlyZWRfYnl0ZXMYDyACKAwSaAoXcmVxdWlyZWRfbmVzdGVk", 233 "X21lc3NhZ2UYEiACKAsyRy5wcm90b2J1Zl90ZXN0X21lc3NhZ2VzLnByb3Rv", 234 "Mi5UZXN0QWxsUmVxdWlyZWRUeXBlc1Byb3RvMi5OZXN0ZWRNZXNzYWdlElUK", 235 "GHJlcXVpcmVkX2ZvcmVpZ25fbWVzc2FnZRgTIAIoCzIzLnByb3RvYnVmX3Rl", 236 "c3RfbWVzc2FnZXMucHJvdG8yLkZvcmVpZ25NZXNzYWdlUHJvdG8yEmIKFHJl", 237 "cXVpcmVkX25lc3RlZF9lbnVtGBUgAigOMkQucHJvdG9idWZfdGVzdF9tZXNz", 238 "YWdlcy5wcm90bzIuVGVzdEFsbFJlcXVpcmVkVHlwZXNQcm90bzIuTmVzdGVk", 239 "RW51bRJPChVyZXF1aXJlZF9mb3JlaWduX2VudW0YFiACKA4yMC5wcm90b2J1", 240 "Zl90ZXN0X21lc3NhZ2VzLnByb3RvMi5Gb3JlaWduRW51bVByb3RvMhIhChVy", 241 "ZXF1aXJlZF9zdHJpbmdfcGllY2UYGCACKAlCAggCEhkKDXJlcXVpcmVkX2Nv", 242 "cmQYGSACKAlCAggBElQKEXJlY3Vyc2l2ZV9tZXNzYWdlGBsgAigLMjkucHJv", 243 "dG9idWZfdGVzdF9tZXNzYWdlcy5wcm90bzIuVGVzdEFsbFJlcXVpcmVkVHlw", 244 "ZXNQcm90bzISXQoab3B0aW9uYWxfcmVjdXJzaXZlX21lc3NhZ2UYHCABKAsy", 245 "OS5wcm90b2J1Zl90ZXN0X21lc3NhZ2VzLnByb3RvMi5UZXN0QWxsUmVxdWly", 246 "ZWRUeXBlc1Byb3RvMhJNCgRkYXRhGMkBIAIoCjI+LnByb3RvYnVmX3Rlc3Rf", 247 "bWVzc2FnZXMucHJvdG8yLlRlc3RBbGxSZXF1aXJlZFR5cGVzUHJvdG8yLkRh", 248 "dGESIgoNZGVmYXVsdF9pbnQzMhjxASACKAU6Ci0xMjM0NTY3ODkSLAoNZGVm", 249 "YXVsdF9pbnQ2NBjyASACKAM6FC05MTIzNDU2Nzg5MTIzNDU2Nzg5EiMKDmRl", 250 "ZmF1bHRfdWludDMyGPMBIAIoDToKMjEyMzQ1Njc4ORItCg5kZWZhdWx0X3Vp", 251 "bnQ2NBj0ASACKAQ6FDEwMTIzNDU2Nzg5MTIzNDU2Nzg5EiMKDmRlZmF1bHRf", 252 "c2ludDMyGPUBIAIoEToKLTEyMzQ1Njc4ORItCg5kZWZhdWx0X3NpbnQ2NBj2", 253 "ASACKBI6FC05MTIzNDU2Nzg5MTIzNDU2Nzg5EiQKD2RlZmF1bHRfZml4ZWQz", 254 "Mhj3ASACKAc6CjIxMjM0NTY3ODkSLgoPZGVmYXVsdF9maXhlZDY0GPgBIAIo", 255 "BjoUMTAxMjM0NTY3ODkxMjM0NTY3ODkSJQoQZGVmYXVsdF9zZml4ZWQzMhj5", 256 "ASACKA86Ci0xMjM0NTY3ODkSLwoQZGVmYXVsdF9zZml4ZWQ2NBj6ASACKBA6", 257 "FC05MTIzNDU2Nzg5MTIzNDU2Nzg5Eh0KDWRlZmF1bHRfZmxvYXQY+wEgAigC", 258 "OgU5ZSswORIeCg5kZWZhdWx0X2RvdWJsZRj8ASACKAE6BTdlKzIyEhsKDGRl", 259 "ZmF1bHRfYm9vbBj9ASACKAg6BHRydWUSIAoOZGVmYXVsdF9zdHJpbmcY/gEg", 260 "AigJOgdSb3NlYnVkEh4KDWRlZmF1bHRfYnl0ZXMY/wEgAigMOgZqb3NodWEa", 261 "wwEKDU5lc3RlZE1lc3NhZ2USCQoBYRgBIAIoBRJOCgtjb3JlY3Vyc2l2ZRgC", 262 "IAIoCzI5LnByb3RvYnVmX3Rlc3RfbWVzc2FnZXMucHJvdG8yLlRlc3RBbGxS", 263 "ZXF1aXJlZFR5cGVzUHJvdG8yElcKFG9wdGlvbmFsX2NvcmVjdXJzaXZlGAMg", 264 "ASgLMjkucHJvdG9idWZfdGVzdF9tZXNzYWdlcy5wcm90bzIuVGVzdEFsbFJl", 265 "cXVpcmVkVHlwZXNQcm90bzIaMwoERGF0YRIUCgtncm91cF9pbnQzMhjKASAC", 266 "KAUSFQoMZ3JvdXBfdWludDMyGMsBIAIoDRohChFNZXNzYWdlU2V0Q29ycmVj", 267 "dCoICAQQ/////wc6AggBGvABChtNZXNzYWdlU2V0Q29ycmVjdEV4dGVuc2lv", 268 "bjESCwoDc3RyGBkgAigJMsMBChVtZXNzYWdlX3NldF9leHRlbnNpb24SSy5w", 269 "cm90b2J1Zl90ZXN0X21lc3NhZ2VzLnByb3RvMi5UZXN0QWxsUmVxdWlyZWRU", 270 "eXBlc1Byb3RvMi5NZXNzYWdlU2V0Q29ycmVjdBj5u14gASgLMlUucHJvdG9i", 271 "dWZfdGVzdF9tZXNzYWdlcy5wcm90bzIuVGVzdEFsbFJlcXVpcmVkVHlwZXNQ", 272 "cm90bzIuTWVzc2FnZVNldENvcnJlY3RFeHRlbnNpb24xGu8BChtNZXNzYWdl", 273 "U2V0Q29ycmVjdEV4dGVuc2lvbjISCQoBaRgJIAIoBTLEAQoVbWVzc2FnZV9z", 274 "ZXRfZXh0ZW5zaW9uEksucHJvdG9idWZfdGVzdF9tZXNzYWdlcy5wcm90bzIu", 275 "VGVzdEFsbFJlcXVpcmVkVHlwZXNQcm90bzIuTWVzc2FnZVNldENvcnJlY3QY", 276 "kLP8ASABKAsyVS5wcm90b2J1Zl90ZXN0X21lc3NhZ2VzLnByb3RvMi5UZXN0", 277 "QWxsUmVxdWlyZWRUeXBlc1Byb3RvMi5NZXNzYWdlU2V0Q29ycmVjdEV4dGVu", 278 "c2lvbjIiOQoKTmVzdGVkRW51bRIHCgNGT08QABIHCgNCQVIQARIHCgNCQVoQ", 279 "AhIQCgNORUcQ////////////ASoFCHgQyQFKBgjoBxCQTipGChFGb3JlaWdu", 280 "RW51bVByb3RvMhIPCgtGT1JFSUdOX0ZPTxAAEg8KC0ZPUkVJR05fQkFSEAES", 281 "DwoLRk9SRUlHTl9CQVoQAjpKCg9leHRlbnNpb25faW50MzISMS5wcm90b2J1", 282 "Zl90ZXN0X21lc3NhZ2VzLnByb3RvMi5UZXN0QWxsVHlwZXNQcm90bzIYeCAB", 283 "KAU6cAoKZ3JvdXBmaWVsZBIxLnByb3RvYnVmX3Rlc3RfbWVzc2FnZXMucHJv", 284 "dG8yLlRlc3RBbGxUeXBlc1Byb3RvMhh5IAEoCjIpLnByb3RvYnVmX3Rlc3Rf", 285 "bWVzc2FnZXMucHJvdG8yLkdyb3VwRmllbGRCOAooY29tLmdvb2dsZS5wcm90", 286 "b2J1Zl90ZXN0X21lc3NhZ2VzLnByb3RvMkgB+AEBogIGUHJvdG8y")); 287 descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, 288 new pbr::FileDescriptor[] { }, 289 new pbr::GeneratedClrTypeInfo(new[] {typeof(global::ProtobufTestMessages.Proto2.ForeignEnumProto2), }, new pb::Extension[] { TestMessagesProto2Extensions.ExtensionInt32, TestMessagesProto2Extensions.GroupField }, new pbr::GeneratedClrTypeInfo[] { 290 new pbr::GeneratedClrTypeInfo(typeof(global::ProtobufTestMessages.Proto2.TestAllTypesProto2), global::ProtobufTestMessages.Proto2.TestAllTypesProto2.Parser, new[]{ "OptionalInt32", "OptionalInt64", "OptionalUint32", "OptionalUint64", "OptionalSint32", "OptionalSint64", "OptionalFixed32", "OptionalFixed64", "OptionalSfixed32", "OptionalSfixed64", "OptionalFloat", "OptionalDouble", "OptionalBool", "OptionalString", "OptionalBytes", "OptionalNestedMessage", "OptionalForeignMessage", "OptionalNestedEnum", "OptionalForeignEnum", "OptionalStringPiece", "OptionalCord", "RecursiveMessage", "RepeatedInt32", "RepeatedInt64", "RepeatedUint32", "RepeatedUint64", "RepeatedSint32", "RepeatedSint64", "RepeatedFixed32", "RepeatedFixed64", "RepeatedSfixed32", "RepeatedSfixed64", "RepeatedFloat", "RepeatedDouble", "RepeatedBool", "RepeatedString", "RepeatedBytes", "RepeatedNestedMessage", "RepeatedForeignMessage", "RepeatedNestedEnum", "RepeatedForeignEnum", "RepeatedStringPiece", "RepeatedCord", "PackedInt32", "PackedInt64", "PackedUint32", "PackedUint64", "PackedSint32", "PackedSint64", "PackedFixed32", "PackedFixed64", "PackedSfixed32", "PackedSfixed64", "PackedFloat", "PackedDouble", "PackedBool", "PackedNestedEnum", "UnpackedInt32", "UnpackedInt64", "UnpackedUint32", "UnpackedUint64", "UnpackedSint32", "UnpackedSint64", "UnpackedFixed32", "UnpackedFixed64", "UnpackedSfixed32", "UnpackedSfixed64", "UnpackedFloat", "UnpackedDouble", "UnpackedBool", "UnpackedNestedEnum", "MapInt32Int32", "MapInt64Int64", "MapUint32Uint32", "MapUint64Uint64", "MapSint32Sint32", "MapSint64Sint64", "MapFixed32Fixed32", "MapFixed64Fixed64", "MapSfixed32Sfixed32", "MapSfixed64Sfixed64", "MapInt32Float", "MapInt32Double", "MapBoolBool", "MapStringString", "MapStringBytes", "MapStringNestedMessage", "MapStringForeignMessage", "MapStringNestedEnum", "MapStringForeignEnum", "OneofUint32", "OneofNestedMessage", "OneofString", "OneofBytes", "OneofBool", "OneofUint64", "OneofFloat", "OneofDouble", "OneofEnum", "Data", "MultiWordGroupField", "DefaultInt32", "DefaultInt64", "DefaultUint32", "DefaultUint64", "DefaultSint32", "DefaultSint64", "DefaultFixed32", "DefaultFixed64", "DefaultSfixed32", "DefaultSfixed64", "DefaultFloat", "DefaultDouble", "DefaultBool", "DefaultString", "DefaultBytes", "Fieldname1", "FieldName2", "FieldName3", "FieldName4", "Field0Name5", "Field0Name6", "FieldName7", "FieldName8", "FieldName9", "FieldName10", "FIELDNAME11", "FIELDName12", "FieldName13", "FieldName14", "FieldName15", "FieldName16", "FieldName17", "FieldName18" }, new[]{ "OneofField" }, new[]{ typeof(global::ProtobufTestMessages.Proto2.TestAllTypesProto2.Types.NestedEnum) }, null, new pbr::GeneratedClrTypeInfo[] { new pbr::GeneratedClrTypeInfo(typeof(global::ProtobufTestMessages.Proto2.TestAllTypesProto2.Types.NestedMessage), global::ProtobufTestMessages.Proto2.TestAllTypesProto2.Types.NestedMessage.Parser, new[]{ "A", "Corecursive" }, null, null, null, null), 291 null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, new pbr::GeneratedClrTypeInfo(typeof(global::ProtobufTestMessages.Proto2.TestAllTypesProto2.Types.Data), global::ProtobufTestMessages.Proto2.TestAllTypesProto2.Types.Data.Parser, new[]{ "GroupInt32", "GroupUint32" }, null, null, null, null), 292 new pbr::GeneratedClrTypeInfo(typeof(global::ProtobufTestMessages.Proto2.TestAllTypesProto2.Types.MultiWordGroupField), global::ProtobufTestMessages.Proto2.TestAllTypesProto2.Types.MultiWordGroupField.Parser, new[]{ "GroupInt32", "GroupUint32" }, null, null, null, null), 293 new pbr::GeneratedClrTypeInfo(typeof(global::ProtobufTestMessages.Proto2.TestAllTypesProto2.Types.MessageSetCorrect), global::ProtobufTestMessages.Proto2.TestAllTypesProto2.Types.MessageSetCorrect.Parser, null, null, null, null, null), 294 new pbr::GeneratedClrTypeInfo(typeof(global::ProtobufTestMessages.Proto2.TestAllTypesProto2.Types.MessageSetCorrectExtension1), global::ProtobufTestMessages.Proto2.TestAllTypesProto2.Types.MessageSetCorrectExtension1.Parser, new[]{ "Str" }, null, null, new pb::Extension[] { global::ProtobufTestMessages.Proto2.TestAllTypesProto2.Types.MessageSetCorrectExtension1.Extensions.MessageSetExtension }, null), 295 new pbr::GeneratedClrTypeInfo(typeof(global::ProtobufTestMessages.Proto2.TestAllTypesProto2.Types.MessageSetCorrectExtension2), global::ProtobufTestMessages.Proto2.TestAllTypesProto2.Types.MessageSetCorrectExtension2.Parser, new[]{ "I" }, null, null, new pb::Extension[] { global::ProtobufTestMessages.Proto2.TestAllTypesProto2.Types.MessageSetCorrectExtension2.Extensions.MessageSetExtension }, null)}), 296 new pbr::GeneratedClrTypeInfo(typeof(global::ProtobufTestMessages.Proto2.ForeignMessageProto2), global::ProtobufTestMessages.Proto2.ForeignMessageProto2.Parser, new[]{ "C" }, null, null, null, null), 297 new pbr::GeneratedClrTypeInfo(typeof(global::ProtobufTestMessages.Proto2.GroupField), global::ProtobufTestMessages.Proto2.GroupField.Parser, new[]{ "GroupInt32", "GroupUint32" }, null, null, null, null), 298 new pbr::GeneratedClrTypeInfo(typeof(global::ProtobufTestMessages.Proto2.UnknownToTestAllTypes), global::ProtobufTestMessages.Proto2.UnknownToTestAllTypes.Parser, new[]{ "OptionalInt32", "OptionalString", "NestedMessage", "OptionalGroup", "OptionalBool", "RepeatedInt32" }, null, null, null, new pbr::GeneratedClrTypeInfo[] { new pbr::GeneratedClrTypeInfo(typeof(global::ProtobufTestMessages.Proto2.UnknownToTestAllTypes.Types.OptionalGroup), global::ProtobufTestMessages.Proto2.UnknownToTestAllTypes.Types.OptionalGroup.Parser, new[]{ "A" }, null, null, null, null)}), 299 new pbr::GeneratedClrTypeInfo(typeof(global::ProtobufTestMessages.Proto2.NullHypothesisProto2), global::ProtobufTestMessages.Proto2.NullHypothesisProto2.Parser, null, null, null, null, null), 300 new pbr::GeneratedClrTypeInfo(typeof(global::ProtobufTestMessages.Proto2.EnumOnlyProto2), global::ProtobufTestMessages.Proto2.EnumOnlyProto2.Parser, null, null, new[]{ typeof(global::ProtobufTestMessages.Proto2.EnumOnlyProto2.Types.Bool) }, null, null), 301 new pbr::GeneratedClrTypeInfo(typeof(global::ProtobufTestMessages.Proto2.OneStringProto2), global::ProtobufTestMessages.Proto2.OneStringProto2.Parser, new[]{ "Data" }, null, null, null, null), 302 new pbr::GeneratedClrTypeInfo(typeof(global::ProtobufTestMessages.Proto2.ProtoWithKeywords), global::ProtobufTestMessages.Proto2.ProtoWithKeywords.Parser, new[]{ "Inline", "Concept", "Requires" }, null, null, null, null), 303 new pbr::GeneratedClrTypeInfo(typeof(global::ProtobufTestMessages.Proto2.TestAllRequiredTypesProto2), global::ProtobufTestMessages.Proto2.TestAllRequiredTypesProto2.Parser, new[]{ "RequiredInt32", "RequiredInt64", "RequiredUint32", "RequiredUint64", "RequiredSint32", "RequiredSint64", "RequiredFixed32", "RequiredFixed64", "RequiredSfixed32", "RequiredSfixed64", "RequiredFloat", "RequiredDouble", "RequiredBool", "RequiredString", "RequiredBytes", "RequiredNestedMessage", "RequiredForeignMessage", "RequiredNestedEnum", "RequiredForeignEnum", "RequiredStringPiece", "RequiredCord", "RecursiveMessage", "OptionalRecursiveMessage", "Data", "DefaultInt32", "DefaultInt64", "DefaultUint32", "DefaultUint64", "DefaultSint32", "DefaultSint64", "DefaultFixed32", "DefaultFixed64", "DefaultSfixed32", "DefaultSfixed64", "DefaultFloat", "DefaultDouble", "DefaultBool", "DefaultString", "DefaultBytes" }, null, new[]{ typeof(global::ProtobufTestMessages.Proto2.TestAllRequiredTypesProto2.Types.NestedEnum) }, null, new pbr::GeneratedClrTypeInfo[] { new pbr::GeneratedClrTypeInfo(typeof(global::ProtobufTestMessages.Proto2.TestAllRequiredTypesProto2.Types.NestedMessage), global::ProtobufTestMessages.Proto2.TestAllRequiredTypesProto2.Types.NestedMessage.Parser, new[]{ "A", "Corecursive", "OptionalCorecursive" }, null, null, null, null), 304 new pbr::GeneratedClrTypeInfo(typeof(global::ProtobufTestMessages.Proto2.TestAllRequiredTypesProto2.Types.Data), global::ProtobufTestMessages.Proto2.TestAllRequiredTypesProto2.Types.Data.Parser, new[]{ "GroupInt32", "GroupUint32" }, null, null, null, null), 305 new pbr::GeneratedClrTypeInfo(typeof(global::ProtobufTestMessages.Proto2.TestAllRequiredTypesProto2.Types.MessageSetCorrect), global::ProtobufTestMessages.Proto2.TestAllRequiredTypesProto2.Types.MessageSetCorrect.Parser, null, null, null, null, null), 306 new pbr::GeneratedClrTypeInfo(typeof(global::ProtobufTestMessages.Proto2.TestAllRequiredTypesProto2.Types.MessageSetCorrectExtension1), global::ProtobufTestMessages.Proto2.TestAllRequiredTypesProto2.Types.MessageSetCorrectExtension1.Parser, new[]{ "Str" }, null, null, new pb::Extension[] { global::ProtobufTestMessages.Proto2.TestAllRequiredTypesProto2.Types.MessageSetCorrectExtension1.Extensions.MessageSetExtension }, null), 307 new pbr::GeneratedClrTypeInfo(typeof(global::ProtobufTestMessages.Proto2.TestAllRequiredTypesProto2.Types.MessageSetCorrectExtension2), global::ProtobufTestMessages.Proto2.TestAllRequiredTypesProto2.Types.MessageSetCorrectExtension2.Parser, new[]{ "I" }, null, null, new pb::Extension[] { global::ProtobufTestMessages.Proto2.TestAllRequiredTypesProto2.Types.MessageSetCorrectExtension2.Extensions.MessageSetExtension }, null)}) 308 })); 309 } 310 #endregion 311 312 } 313 /// <summary>Holder for extension identifiers generated from the top level of google/protobuf/test_messages_proto2.proto</summary> 314 public static partial class TestMessagesProto2Extensions { 315 public static readonly pb::Extension<global::ProtobufTestMessages.Proto2.TestAllTypesProto2, int> ExtensionInt32 = 316 new pb::Extension<global::ProtobufTestMessages.Proto2.TestAllTypesProto2, int>(120, pb::FieldCodec.ForInt32(960, 0)); 317 public static readonly pb::Extension<global::ProtobufTestMessages.Proto2.TestAllTypesProto2, global::ProtobufTestMessages.Proto2.GroupField> GroupField = 318 new pb::Extension<global::ProtobufTestMessages.Proto2.TestAllTypesProto2, global::ProtobufTestMessages.Proto2.GroupField>(121, pb::FieldCodec.ForGroup(971, 972, global::ProtobufTestMessages.Proto2.GroupField.Parser)); 319 } 320 321 #region Enums 322 public enum ForeignEnumProto2 { 323 [pbr::OriginalName("FOREIGN_FOO")] ForeignFoo = 0, 324 [pbr::OriginalName("FOREIGN_BAR")] ForeignBar = 1, 325 [pbr::OriginalName("FOREIGN_BAZ")] ForeignBaz = 2, 326 } 327 328 #endregion 329 330 #region Messages 331 /// <summary> 332 /// This proto includes every type of field in both singular and repeated 333 /// forms. 334 /// 335 /// Also, crucially, all messages and enums in this file are eventually 336 /// submessages of this message. So for example, a fuzz test of TestAllTypes 337 /// could trigger bugs that occur in any message type in this file. We verify 338 /// this stays true in a unit test. 339 /// </summary> 340 [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] 341 public sealed partial class TestAllTypesProto2 : pb::IExtendableMessage<TestAllTypesProto2> 342 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 343 , pb::IBufferMessage 344 #endif 345 { 346 private static readonly pb::MessageParser<TestAllTypesProto2> _parser = new pb::MessageParser<TestAllTypesProto2>(() => new TestAllTypesProto2()); 347 private pb::UnknownFieldSet _unknownFields; 348 private pb::ExtensionSet<TestAllTypesProto2> _extensions; 349 private pb::ExtensionSet<TestAllTypesProto2> _Extensions { get { return _extensions; } } 350 private int _hasBits0; 351 private int _hasBits1; 352 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 353 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 354 public static pb::MessageParser<TestAllTypesProto2> Parser { get { return _parser; } } 355 356 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 357 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 358 public static pbr::MessageDescriptor Descriptor { 359 get { return global::ProtobufTestMessages.Proto2.TestMessagesProto2Reflection.Descriptor.MessageTypes[0]; } 360 } 361 362 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 363 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 364 pbr::MessageDescriptor pb::IMessage.Descriptor { 365 get { return Descriptor; } 366 } 367 368 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 369 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] TestAllTypesProto2()370 public TestAllTypesProto2() { 371 OnConstruction(); 372 } 373 OnConstruction()374 partial void OnConstruction(); 375 376 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 377 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] TestAllTypesProto2(TestAllTypesProto2 other)378 public TestAllTypesProto2(TestAllTypesProto2 other) : this() { 379 _hasBits0 = other._hasBits0; 380 _hasBits1 = other._hasBits1; 381 optionalInt32_ = other.optionalInt32_; 382 optionalInt64_ = other.optionalInt64_; 383 optionalUint32_ = other.optionalUint32_; 384 optionalUint64_ = other.optionalUint64_; 385 optionalSint32_ = other.optionalSint32_; 386 optionalSint64_ = other.optionalSint64_; 387 optionalFixed32_ = other.optionalFixed32_; 388 optionalFixed64_ = other.optionalFixed64_; 389 optionalSfixed32_ = other.optionalSfixed32_; 390 optionalSfixed64_ = other.optionalSfixed64_; 391 optionalFloat_ = other.optionalFloat_; 392 optionalDouble_ = other.optionalDouble_; 393 optionalBool_ = other.optionalBool_; 394 optionalString_ = other.optionalString_; 395 optionalBytes_ = other.optionalBytes_; 396 optionalNestedMessage_ = other.optionalNestedMessage_ != null ? other.optionalNestedMessage_.Clone() : null; 397 optionalForeignMessage_ = other.optionalForeignMessage_ != null ? other.optionalForeignMessage_.Clone() : null; 398 optionalNestedEnum_ = other.optionalNestedEnum_; 399 optionalForeignEnum_ = other.optionalForeignEnum_; 400 optionalStringPiece_ = other.optionalStringPiece_; 401 optionalCord_ = other.optionalCord_; 402 recursiveMessage_ = other.recursiveMessage_ != null ? other.recursiveMessage_.Clone() : null; 403 repeatedInt32_ = other.repeatedInt32_.Clone(); 404 repeatedInt64_ = other.repeatedInt64_.Clone(); 405 repeatedUint32_ = other.repeatedUint32_.Clone(); 406 repeatedUint64_ = other.repeatedUint64_.Clone(); 407 repeatedSint32_ = other.repeatedSint32_.Clone(); 408 repeatedSint64_ = other.repeatedSint64_.Clone(); 409 repeatedFixed32_ = other.repeatedFixed32_.Clone(); 410 repeatedFixed64_ = other.repeatedFixed64_.Clone(); 411 repeatedSfixed32_ = other.repeatedSfixed32_.Clone(); 412 repeatedSfixed64_ = other.repeatedSfixed64_.Clone(); 413 repeatedFloat_ = other.repeatedFloat_.Clone(); 414 repeatedDouble_ = other.repeatedDouble_.Clone(); 415 repeatedBool_ = other.repeatedBool_.Clone(); 416 repeatedString_ = other.repeatedString_.Clone(); 417 repeatedBytes_ = other.repeatedBytes_.Clone(); 418 repeatedNestedMessage_ = other.repeatedNestedMessage_.Clone(); 419 repeatedForeignMessage_ = other.repeatedForeignMessage_.Clone(); 420 repeatedNestedEnum_ = other.repeatedNestedEnum_.Clone(); 421 repeatedForeignEnum_ = other.repeatedForeignEnum_.Clone(); 422 repeatedStringPiece_ = other.repeatedStringPiece_.Clone(); 423 repeatedCord_ = other.repeatedCord_.Clone(); 424 packedInt32_ = other.packedInt32_.Clone(); 425 packedInt64_ = other.packedInt64_.Clone(); 426 packedUint32_ = other.packedUint32_.Clone(); 427 packedUint64_ = other.packedUint64_.Clone(); 428 packedSint32_ = other.packedSint32_.Clone(); 429 packedSint64_ = other.packedSint64_.Clone(); 430 packedFixed32_ = other.packedFixed32_.Clone(); 431 packedFixed64_ = other.packedFixed64_.Clone(); 432 packedSfixed32_ = other.packedSfixed32_.Clone(); 433 packedSfixed64_ = other.packedSfixed64_.Clone(); 434 packedFloat_ = other.packedFloat_.Clone(); 435 packedDouble_ = other.packedDouble_.Clone(); 436 packedBool_ = other.packedBool_.Clone(); 437 packedNestedEnum_ = other.packedNestedEnum_.Clone(); 438 unpackedInt32_ = other.unpackedInt32_.Clone(); 439 unpackedInt64_ = other.unpackedInt64_.Clone(); 440 unpackedUint32_ = other.unpackedUint32_.Clone(); 441 unpackedUint64_ = other.unpackedUint64_.Clone(); 442 unpackedSint32_ = other.unpackedSint32_.Clone(); 443 unpackedSint64_ = other.unpackedSint64_.Clone(); 444 unpackedFixed32_ = other.unpackedFixed32_.Clone(); 445 unpackedFixed64_ = other.unpackedFixed64_.Clone(); 446 unpackedSfixed32_ = other.unpackedSfixed32_.Clone(); 447 unpackedSfixed64_ = other.unpackedSfixed64_.Clone(); 448 unpackedFloat_ = other.unpackedFloat_.Clone(); 449 unpackedDouble_ = other.unpackedDouble_.Clone(); 450 unpackedBool_ = other.unpackedBool_.Clone(); 451 unpackedNestedEnum_ = other.unpackedNestedEnum_.Clone(); 452 mapInt32Int32_ = other.mapInt32Int32_.Clone(); 453 mapInt64Int64_ = other.mapInt64Int64_.Clone(); 454 mapUint32Uint32_ = other.mapUint32Uint32_.Clone(); 455 mapUint64Uint64_ = other.mapUint64Uint64_.Clone(); 456 mapSint32Sint32_ = other.mapSint32Sint32_.Clone(); 457 mapSint64Sint64_ = other.mapSint64Sint64_.Clone(); 458 mapFixed32Fixed32_ = other.mapFixed32Fixed32_.Clone(); 459 mapFixed64Fixed64_ = other.mapFixed64Fixed64_.Clone(); 460 mapSfixed32Sfixed32_ = other.mapSfixed32Sfixed32_.Clone(); 461 mapSfixed64Sfixed64_ = other.mapSfixed64Sfixed64_.Clone(); 462 mapInt32Float_ = other.mapInt32Float_.Clone(); 463 mapInt32Double_ = other.mapInt32Double_.Clone(); 464 mapBoolBool_ = other.mapBoolBool_.Clone(); 465 mapStringString_ = other.mapStringString_.Clone(); 466 mapStringBytes_ = other.mapStringBytes_.Clone(); 467 mapStringNestedMessage_ = other.mapStringNestedMessage_.Clone(); 468 mapStringForeignMessage_ = other.mapStringForeignMessage_.Clone(); 469 mapStringNestedEnum_ = other.mapStringNestedEnum_.Clone(); 470 mapStringForeignEnum_ = other.mapStringForeignEnum_.Clone(); 471 data_ = other.HasData ? other.data_.Clone() : null; 472 multiWordGroupField_ = other.HasMultiWordGroupField ? other.multiWordGroupField_.Clone() : null; 473 defaultInt32_ = other.defaultInt32_; 474 defaultInt64_ = other.defaultInt64_; 475 defaultUint32_ = other.defaultUint32_; 476 defaultUint64_ = other.defaultUint64_; 477 defaultSint32_ = other.defaultSint32_; 478 defaultSint64_ = other.defaultSint64_; 479 defaultFixed32_ = other.defaultFixed32_; 480 defaultFixed64_ = other.defaultFixed64_; 481 defaultSfixed32_ = other.defaultSfixed32_; 482 defaultSfixed64_ = other.defaultSfixed64_; 483 defaultFloat_ = other.defaultFloat_; 484 defaultDouble_ = other.defaultDouble_; 485 defaultBool_ = other.defaultBool_; 486 defaultString_ = other.defaultString_; 487 defaultBytes_ = other.defaultBytes_; 488 fieldname1_ = other.fieldname1_; 489 fieldName2_ = other.fieldName2_; 490 FieldName3_ = other.FieldName3_; 491 fieldName4_ = other.fieldName4_; 492 field0Name5_ = other.field0Name5_; 493 field0Name6_ = other.field0Name6_; 494 fieldName7_ = other.fieldName7_; 495 fieldName8_ = other.fieldName8_; 496 fieldName9_ = other.fieldName9_; 497 fieldName10_ = other.fieldName10_; 498 fIELDNAME11_ = other.fIELDNAME11_; 499 fIELDName12_ = other.fIELDName12_; 500 FieldName13_ = other.FieldName13_; 501 FieldName14_ = other.FieldName14_; 502 fieldName15_ = other.fieldName15_; 503 fieldName16_ = other.fieldName16_; 504 fieldName17_ = other.fieldName17_; 505 fieldName18_ = other.fieldName18_; 506 switch (other.OneofFieldCase) { 507 case OneofFieldOneofCase.OneofUint32: 508 OneofUint32 = other.OneofUint32; 509 break; 510 case OneofFieldOneofCase.OneofNestedMessage: 511 OneofNestedMessage = other.OneofNestedMessage.Clone(); 512 break; 513 case OneofFieldOneofCase.OneofString: 514 OneofString = other.OneofString; 515 break; 516 case OneofFieldOneofCase.OneofBytes: 517 OneofBytes = other.OneofBytes; 518 break; 519 case OneofFieldOneofCase.OneofBool: 520 OneofBool = other.OneofBool; 521 break; 522 case OneofFieldOneofCase.OneofUint64: 523 OneofUint64 = other.OneofUint64; 524 break; 525 case OneofFieldOneofCase.OneofFloat: 526 OneofFloat = other.OneofFloat; 527 break; 528 case OneofFieldOneofCase.OneofDouble: 529 OneofDouble = other.OneofDouble; 530 break; 531 case OneofFieldOneofCase.OneofEnum: 532 OneofEnum = other.OneofEnum; 533 break; 534 } 535 536 _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); 537 _extensions = pb::ExtensionSet.Clone(other._extensions); 538 } 539 540 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 541 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] Clone()542 public TestAllTypesProto2 Clone() { 543 return new TestAllTypesProto2(this); 544 } 545 546 /// <summary>Field number for the "optional_int32" field.</summary> 547 public const int OptionalInt32FieldNumber = 1; 548 private readonly static int OptionalInt32DefaultValue = 0; 549 550 private int optionalInt32_; 551 /// <summary> 552 /// Singular 553 /// </summary> 554 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 555 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 556 public int OptionalInt32 { 557 get { if ((_hasBits0 & 1) != 0) { return optionalInt32_; } else { return OptionalInt32DefaultValue; } } 558 set { 559 _hasBits0 |= 1; 560 optionalInt32_ = value; 561 } 562 } 563 /// <summary>Gets whether the "optional_int32" field is set</summary> 564 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 565 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 566 public bool HasOptionalInt32 { 567 get { return (_hasBits0 & 1) != 0; } 568 } 569 /// <summary>Clears the value of the "optional_int32" field</summary> 570 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 571 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] ClearOptionalInt32()572 public void ClearOptionalInt32() { 573 _hasBits0 &= ~1; 574 } 575 576 /// <summary>Field number for the "optional_int64" field.</summary> 577 public const int OptionalInt64FieldNumber = 2; 578 private readonly static long OptionalInt64DefaultValue = 0L; 579 580 private long optionalInt64_; 581 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 582 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 583 public long OptionalInt64 { 584 get { if ((_hasBits0 & 2) != 0) { return optionalInt64_; } else { return OptionalInt64DefaultValue; } } 585 set { 586 _hasBits0 |= 2; 587 optionalInt64_ = value; 588 } 589 } 590 /// <summary>Gets whether the "optional_int64" field is set</summary> 591 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 592 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 593 public bool HasOptionalInt64 { 594 get { return (_hasBits0 & 2) != 0; } 595 } 596 /// <summary>Clears the value of the "optional_int64" field</summary> 597 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 598 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] ClearOptionalInt64()599 public void ClearOptionalInt64() { 600 _hasBits0 &= ~2; 601 } 602 603 /// <summary>Field number for the "optional_uint32" field.</summary> 604 public const int OptionalUint32FieldNumber = 3; 605 private readonly static uint OptionalUint32DefaultValue = 0; 606 607 private uint optionalUint32_; 608 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 609 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 610 public uint OptionalUint32 { 611 get { if ((_hasBits0 & 4) != 0) { return optionalUint32_; } else { return OptionalUint32DefaultValue; } } 612 set { 613 _hasBits0 |= 4; 614 optionalUint32_ = value; 615 } 616 } 617 /// <summary>Gets whether the "optional_uint32" field is set</summary> 618 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 619 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 620 public bool HasOptionalUint32 { 621 get { return (_hasBits0 & 4) != 0; } 622 } 623 /// <summary>Clears the value of the "optional_uint32" field</summary> 624 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 625 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] ClearOptionalUint32()626 public void ClearOptionalUint32() { 627 _hasBits0 &= ~4; 628 } 629 630 /// <summary>Field number for the "optional_uint64" field.</summary> 631 public const int OptionalUint64FieldNumber = 4; 632 private readonly static ulong OptionalUint64DefaultValue = 0UL; 633 634 private ulong optionalUint64_; 635 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 636 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 637 public ulong OptionalUint64 { 638 get { if ((_hasBits0 & 8) != 0) { return optionalUint64_; } else { return OptionalUint64DefaultValue; } } 639 set { 640 _hasBits0 |= 8; 641 optionalUint64_ = value; 642 } 643 } 644 /// <summary>Gets whether the "optional_uint64" field is set</summary> 645 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 646 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 647 public bool HasOptionalUint64 { 648 get { return (_hasBits0 & 8) != 0; } 649 } 650 /// <summary>Clears the value of the "optional_uint64" field</summary> 651 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 652 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] ClearOptionalUint64()653 public void ClearOptionalUint64() { 654 _hasBits0 &= ~8; 655 } 656 657 /// <summary>Field number for the "optional_sint32" field.</summary> 658 public const int OptionalSint32FieldNumber = 5; 659 private readonly static int OptionalSint32DefaultValue = 0; 660 661 private int optionalSint32_; 662 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 663 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 664 public int OptionalSint32 { 665 get { if ((_hasBits0 & 16) != 0) { return optionalSint32_; } else { return OptionalSint32DefaultValue; } } 666 set { 667 _hasBits0 |= 16; 668 optionalSint32_ = value; 669 } 670 } 671 /// <summary>Gets whether the "optional_sint32" field is set</summary> 672 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 673 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 674 public bool HasOptionalSint32 { 675 get { return (_hasBits0 & 16) != 0; } 676 } 677 /// <summary>Clears the value of the "optional_sint32" field</summary> 678 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 679 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] ClearOptionalSint32()680 public void ClearOptionalSint32() { 681 _hasBits0 &= ~16; 682 } 683 684 /// <summary>Field number for the "optional_sint64" field.</summary> 685 public const int OptionalSint64FieldNumber = 6; 686 private readonly static long OptionalSint64DefaultValue = 0L; 687 688 private long optionalSint64_; 689 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 690 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 691 public long OptionalSint64 { 692 get { if ((_hasBits0 & 32) != 0) { return optionalSint64_; } else { return OptionalSint64DefaultValue; } } 693 set { 694 _hasBits0 |= 32; 695 optionalSint64_ = value; 696 } 697 } 698 /// <summary>Gets whether the "optional_sint64" field is set</summary> 699 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 700 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 701 public bool HasOptionalSint64 { 702 get { return (_hasBits0 & 32) != 0; } 703 } 704 /// <summary>Clears the value of the "optional_sint64" field</summary> 705 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 706 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] ClearOptionalSint64()707 public void ClearOptionalSint64() { 708 _hasBits0 &= ~32; 709 } 710 711 /// <summary>Field number for the "optional_fixed32" field.</summary> 712 public const int OptionalFixed32FieldNumber = 7; 713 private readonly static uint OptionalFixed32DefaultValue = 0; 714 715 private uint optionalFixed32_; 716 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 717 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 718 public uint OptionalFixed32 { 719 get { if ((_hasBits0 & 64) != 0) { return optionalFixed32_; } else { return OptionalFixed32DefaultValue; } } 720 set { 721 _hasBits0 |= 64; 722 optionalFixed32_ = value; 723 } 724 } 725 /// <summary>Gets whether the "optional_fixed32" field is set</summary> 726 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 727 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 728 public bool HasOptionalFixed32 { 729 get { return (_hasBits0 & 64) != 0; } 730 } 731 /// <summary>Clears the value of the "optional_fixed32" field</summary> 732 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 733 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] ClearOptionalFixed32()734 public void ClearOptionalFixed32() { 735 _hasBits0 &= ~64; 736 } 737 738 /// <summary>Field number for the "optional_fixed64" field.</summary> 739 public const int OptionalFixed64FieldNumber = 8; 740 private readonly static ulong OptionalFixed64DefaultValue = 0UL; 741 742 private ulong optionalFixed64_; 743 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 744 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 745 public ulong OptionalFixed64 { 746 get { if ((_hasBits0 & 128) != 0) { return optionalFixed64_; } else { return OptionalFixed64DefaultValue; } } 747 set { 748 _hasBits0 |= 128; 749 optionalFixed64_ = value; 750 } 751 } 752 /// <summary>Gets whether the "optional_fixed64" field is set</summary> 753 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 754 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 755 public bool HasOptionalFixed64 { 756 get { return (_hasBits0 & 128) != 0; } 757 } 758 /// <summary>Clears the value of the "optional_fixed64" field</summary> 759 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 760 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] ClearOptionalFixed64()761 public void ClearOptionalFixed64() { 762 _hasBits0 &= ~128; 763 } 764 765 /// <summary>Field number for the "optional_sfixed32" field.</summary> 766 public const int OptionalSfixed32FieldNumber = 9; 767 private readonly static int OptionalSfixed32DefaultValue = 0; 768 769 private int optionalSfixed32_; 770 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 771 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 772 public int OptionalSfixed32 { 773 get { if ((_hasBits0 & 256) != 0) { return optionalSfixed32_; } else { return OptionalSfixed32DefaultValue; } } 774 set { 775 _hasBits0 |= 256; 776 optionalSfixed32_ = value; 777 } 778 } 779 /// <summary>Gets whether the "optional_sfixed32" field is set</summary> 780 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 781 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 782 public bool HasOptionalSfixed32 { 783 get { return (_hasBits0 & 256) != 0; } 784 } 785 /// <summary>Clears the value of the "optional_sfixed32" field</summary> 786 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 787 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] ClearOptionalSfixed32()788 public void ClearOptionalSfixed32() { 789 _hasBits0 &= ~256; 790 } 791 792 /// <summary>Field number for the "optional_sfixed64" field.</summary> 793 public const int OptionalSfixed64FieldNumber = 10; 794 private readonly static long OptionalSfixed64DefaultValue = 0L; 795 796 private long optionalSfixed64_; 797 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 798 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 799 public long OptionalSfixed64 { 800 get { if ((_hasBits0 & 512) != 0) { return optionalSfixed64_; } else { return OptionalSfixed64DefaultValue; } } 801 set { 802 _hasBits0 |= 512; 803 optionalSfixed64_ = value; 804 } 805 } 806 /// <summary>Gets whether the "optional_sfixed64" field is set</summary> 807 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 808 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 809 public bool HasOptionalSfixed64 { 810 get { return (_hasBits0 & 512) != 0; } 811 } 812 /// <summary>Clears the value of the "optional_sfixed64" field</summary> 813 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 814 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] ClearOptionalSfixed64()815 public void ClearOptionalSfixed64() { 816 _hasBits0 &= ~512; 817 } 818 819 /// <summary>Field number for the "optional_float" field.</summary> 820 public const int OptionalFloatFieldNumber = 11; 821 private readonly static float OptionalFloatDefaultValue = 0F; 822 823 private float optionalFloat_; 824 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 825 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 826 public float OptionalFloat { 827 get { if ((_hasBits0 & 1024) != 0) { return optionalFloat_; } else { return OptionalFloatDefaultValue; } } 828 set { 829 _hasBits0 |= 1024; 830 optionalFloat_ = value; 831 } 832 } 833 /// <summary>Gets whether the "optional_float" field is set</summary> 834 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 835 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 836 public bool HasOptionalFloat { 837 get { return (_hasBits0 & 1024) != 0; } 838 } 839 /// <summary>Clears the value of the "optional_float" field</summary> 840 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 841 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] ClearOptionalFloat()842 public void ClearOptionalFloat() { 843 _hasBits0 &= ~1024; 844 } 845 846 /// <summary>Field number for the "optional_double" field.</summary> 847 public const int OptionalDoubleFieldNumber = 12; 848 private readonly static double OptionalDoubleDefaultValue = 0D; 849 850 private double optionalDouble_; 851 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 852 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 853 public double OptionalDouble { 854 get { if ((_hasBits0 & 2048) != 0) { return optionalDouble_; } else { return OptionalDoubleDefaultValue; } } 855 set { 856 _hasBits0 |= 2048; 857 optionalDouble_ = value; 858 } 859 } 860 /// <summary>Gets whether the "optional_double" field is set</summary> 861 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 862 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 863 public bool HasOptionalDouble { 864 get { return (_hasBits0 & 2048) != 0; } 865 } 866 /// <summary>Clears the value of the "optional_double" field</summary> 867 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 868 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] ClearOptionalDouble()869 public void ClearOptionalDouble() { 870 _hasBits0 &= ~2048; 871 } 872 873 /// <summary>Field number for the "optional_bool" field.</summary> 874 public const int OptionalBoolFieldNumber = 13; 875 private readonly static bool OptionalBoolDefaultValue = false; 876 877 private bool optionalBool_; 878 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 879 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 880 public bool OptionalBool { 881 get { if ((_hasBits0 & 4096) != 0) { return optionalBool_; } else { return OptionalBoolDefaultValue; } } 882 set { 883 _hasBits0 |= 4096; 884 optionalBool_ = value; 885 } 886 } 887 /// <summary>Gets whether the "optional_bool" field is set</summary> 888 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 889 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 890 public bool HasOptionalBool { 891 get { return (_hasBits0 & 4096) != 0; } 892 } 893 /// <summary>Clears the value of the "optional_bool" field</summary> 894 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 895 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] ClearOptionalBool()896 public void ClearOptionalBool() { 897 _hasBits0 &= ~4096; 898 } 899 900 /// <summary>Field number for the "optional_string" field.</summary> 901 public const int OptionalStringFieldNumber = 14; 902 private readonly static string OptionalStringDefaultValue = ""; 903 904 private string optionalString_; 905 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 906 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 907 public string OptionalString { 908 get { return optionalString_ ?? OptionalStringDefaultValue; } 909 set { 910 optionalString_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); 911 } 912 } 913 /// <summary>Gets whether the "optional_string" field is set</summary> 914 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 915 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 916 public bool HasOptionalString { 917 get { return optionalString_ != null; } 918 } 919 /// <summary>Clears the value of the "optional_string" field</summary> 920 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 921 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] ClearOptionalString()922 public void ClearOptionalString() { 923 optionalString_ = null; 924 } 925 926 /// <summary>Field number for the "optional_bytes" field.</summary> 927 public const int OptionalBytesFieldNumber = 15; 928 private readonly static pb::ByteString OptionalBytesDefaultValue = pb::ByteString.Empty; 929 930 private pb::ByteString optionalBytes_; 931 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 932 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 933 public pb::ByteString OptionalBytes { 934 get { return optionalBytes_ ?? OptionalBytesDefaultValue; } 935 set { 936 optionalBytes_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); 937 } 938 } 939 /// <summary>Gets whether the "optional_bytes" field is set</summary> 940 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 941 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 942 public bool HasOptionalBytes { 943 get { return optionalBytes_ != null; } 944 } 945 /// <summary>Clears the value of the "optional_bytes" field</summary> 946 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 947 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] ClearOptionalBytes()948 public void ClearOptionalBytes() { 949 optionalBytes_ = null; 950 } 951 952 /// <summary>Field number for the "optional_nested_message" field.</summary> 953 public const int OptionalNestedMessageFieldNumber = 18; 954 private global::ProtobufTestMessages.Proto2.TestAllTypesProto2.Types.NestedMessage optionalNestedMessage_; 955 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 956 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 957 public global::ProtobufTestMessages.Proto2.TestAllTypesProto2.Types.NestedMessage OptionalNestedMessage { 958 get { return optionalNestedMessage_; } 959 set { 960 optionalNestedMessage_ = value; 961 } 962 } 963 964 /// <summary>Field number for the "optional_foreign_message" field.</summary> 965 public const int OptionalForeignMessageFieldNumber = 19; 966 private global::ProtobufTestMessages.Proto2.ForeignMessageProto2 optionalForeignMessage_; 967 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 968 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 969 public global::ProtobufTestMessages.Proto2.ForeignMessageProto2 OptionalForeignMessage { 970 get { return optionalForeignMessage_; } 971 set { 972 optionalForeignMessage_ = value; 973 } 974 } 975 976 /// <summary>Field number for the "optional_nested_enum" field.</summary> 977 public const int OptionalNestedEnumFieldNumber = 21; 978 private readonly static global::ProtobufTestMessages.Proto2.TestAllTypesProto2.Types.NestedEnum OptionalNestedEnumDefaultValue = global::ProtobufTestMessages.Proto2.TestAllTypesProto2.Types.NestedEnum.Foo; 979 980 private global::ProtobufTestMessages.Proto2.TestAllTypesProto2.Types.NestedEnum optionalNestedEnum_; 981 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 982 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 983 public global::ProtobufTestMessages.Proto2.TestAllTypesProto2.Types.NestedEnum OptionalNestedEnum { 984 get { if ((_hasBits0 & 8192) != 0) { return optionalNestedEnum_; } else { return OptionalNestedEnumDefaultValue; } } 985 set { 986 _hasBits0 |= 8192; 987 optionalNestedEnum_ = value; 988 } 989 } 990 /// <summary>Gets whether the "optional_nested_enum" field is set</summary> 991 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 992 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 993 public bool HasOptionalNestedEnum { 994 get { return (_hasBits0 & 8192) != 0; } 995 } 996 /// <summary>Clears the value of the "optional_nested_enum" field</summary> 997 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 998 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] ClearOptionalNestedEnum()999 public void ClearOptionalNestedEnum() { 1000 _hasBits0 &= ~8192; 1001 } 1002 1003 /// <summary>Field number for the "optional_foreign_enum" field.</summary> 1004 public const int OptionalForeignEnumFieldNumber = 22; 1005 private readonly static global::ProtobufTestMessages.Proto2.ForeignEnumProto2 OptionalForeignEnumDefaultValue = global::ProtobufTestMessages.Proto2.ForeignEnumProto2.ForeignFoo; 1006 1007 private global::ProtobufTestMessages.Proto2.ForeignEnumProto2 optionalForeignEnum_; 1008 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 1009 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 1010 public global::ProtobufTestMessages.Proto2.ForeignEnumProto2 OptionalForeignEnum { 1011 get { if ((_hasBits0 & 16384) != 0) { return optionalForeignEnum_; } else { return OptionalForeignEnumDefaultValue; } } 1012 set { 1013 _hasBits0 |= 16384; 1014 optionalForeignEnum_ = value; 1015 } 1016 } 1017 /// <summary>Gets whether the "optional_foreign_enum" field is set</summary> 1018 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 1019 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 1020 public bool HasOptionalForeignEnum { 1021 get { return (_hasBits0 & 16384) != 0; } 1022 } 1023 /// <summary>Clears the value of the "optional_foreign_enum" field</summary> 1024 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 1025 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] ClearOptionalForeignEnum()1026 public void ClearOptionalForeignEnum() { 1027 _hasBits0 &= ~16384; 1028 } 1029 1030 /// <summary>Field number for the "optional_string_piece" field.</summary> 1031 public const int OptionalStringPieceFieldNumber = 24; 1032 private readonly static string OptionalStringPieceDefaultValue = ""; 1033 1034 private string optionalStringPiece_; 1035 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 1036 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 1037 public string OptionalStringPiece { 1038 get { return optionalStringPiece_ ?? OptionalStringPieceDefaultValue; } 1039 set { 1040 optionalStringPiece_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); 1041 } 1042 } 1043 /// <summary>Gets whether the "optional_string_piece" field is set</summary> 1044 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 1045 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 1046 public bool HasOptionalStringPiece { 1047 get { return optionalStringPiece_ != null; } 1048 } 1049 /// <summary>Clears the value of the "optional_string_piece" field</summary> 1050 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 1051 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] ClearOptionalStringPiece()1052 public void ClearOptionalStringPiece() { 1053 optionalStringPiece_ = null; 1054 } 1055 1056 /// <summary>Field number for the "optional_cord" field.</summary> 1057 public const int OptionalCordFieldNumber = 25; 1058 private readonly static string OptionalCordDefaultValue = ""; 1059 1060 private string optionalCord_; 1061 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 1062 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 1063 public string OptionalCord { 1064 get { return optionalCord_ ?? OptionalCordDefaultValue; } 1065 set { 1066 optionalCord_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); 1067 } 1068 } 1069 /// <summary>Gets whether the "optional_cord" field is set</summary> 1070 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 1071 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 1072 public bool HasOptionalCord { 1073 get { return optionalCord_ != null; } 1074 } 1075 /// <summary>Clears the value of the "optional_cord" field</summary> 1076 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 1077 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] ClearOptionalCord()1078 public void ClearOptionalCord() { 1079 optionalCord_ = null; 1080 } 1081 1082 /// <summary>Field number for the "recursive_message" field.</summary> 1083 public const int RecursiveMessageFieldNumber = 27; 1084 private global::ProtobufTestMessages.Proto2.TestAllTypesProto2 recursiveMessage_; 1085 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 1086 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 1087 public global::ProtobufTestMessages.Proto2.TestAllTypesProto2 RecursiveMessage { 1088 get { return recursiveMessage_; } 1089 set { 1090 recursiveMessage_ = value; 1091 } 1092 } 1093 1094 /// <summary>Field number for the "repeated_int32" field.</summary> 1095 public const int RepeatedInt32FieldNumber = 31; 1096 private static readonly pb::FieldCodec<int> _repeated_repeatedInt32_codec 1097 = pb::FieldCodec.ForInt32(248); 1098 private readonly pbc::RepeatedField<int> repeatedInt32_ = new pbc::RepeatedField<int>(); 1099 /// <summary> 1100 /// Repeated 1101 /// </summary> 1102 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 1103 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 1104 public pbc::RepeatedField<int> RepeatedInt32 { 1105 get { return repeatedInt32_; } 1106 } 1107 1108 /// <summary>Field number for the "repeated_int64" field.</summary> 1109 public const int RepeatedInt64FieldNumber = 32; 1110 private static readonly pb::FieldCodec<long> _repeated_repeatedInt64_codec 1111 = pb::FieldCodec.ForInt64(256); 1112 private readonly pbc::RepeatedField<long> repeatedInt64_ = new pbc::RepeatedField<long>(); 1113 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 1114 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 1115 public pbc::RepeatedField<long> RepeatedInt64 { 1116 get { return repeatedInt64_; } 1117 } 1118 1119 /// <summary>Field number for the "repeated_uint32" field.</summary> 1120 public const int RepeatedUint32FieldNumber = 33; 1121 private static readonly pb::FieldCodec<uint> _repeated_repeatedUint32_codec 1122 = pb::FieldCodec.ForUInt32(264); 1123 private readonly pbc::RepeatedField<uint> repeatedUint32_ = new pbc::RepeatedField<uint>(); 1124 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 1125 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 1126 public pbc::RepeatedField<uint> RepeatedUint32 { 1127 get { return repeatedUint32_; } 1128 } 1129 1130 /// <summary>Field number for the "repeated_uint64" field.</summary> 1131 public const int RepeatedUint64FieldNumber = 34; 1132 private static readonly pb::FieldCodec<ulong> _repeated_repeatedUint64_codec 1133 = pb::FieldCodec.ForUInt64(272); 1134 private readonly pbc::RepeatedField<ulong> repeatedUint64_ = new pbc::RepeatedField<ulong>(); 1135 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 1136 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 1137 public pbc::RepeatedField<ulong> RepeatedUint64 { 1138 get { return repeatedUint64_; } 1139 } 1140 1141 /// <summary>Field number for the "repeated_sint32" field.</summary> 1142 public const int RepeatedSint32FieldNumber = 35; 1143 private static readonly pb::FieldCodec<int> _repeated_repeatedSint32_codec 1144 = pb::FieldCodec.ForSInt32(280); 1145 private readonly pbc::RepeatedField<int> repeatedSint32_ = new pbc::RepeatedField<int>(); 1146 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 1147 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 1148 public pbc::RepeatedField<int> RepeatedSint32 { 1149 get { return repeatedSint32_; } 1150 } 1151 1152 /// <summary>Field number for the "repeated_sint64" field.</summary> 1153 public const int RepeatedSint64FieldNumber = 36; 1154 private static readonly pb::FieldCodec<long> _repeated_repeatedSint64_codec 1155 = pb::FieldCodec.ForSInt64(288); 1156 private readonly pbc::RepeatedField<long> repeatedSint64_ = new pbc::RepeatedField<long>(); 1157 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 1158 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 1159 public pbc::RepeatedField<long> RepeatedSint64 { 1160 get { return repeatedSint64_; } 1161 } 1162 1163 /// <summary>Field number for the "repeated_fixed32" field.</summary> 1164 public const int RepeatedFixed32FieldNumber = 37; 1165 private static readonly pb::FieldCodec<uint> _repeated_repeatedFixed32_codec 1166 = pb::FieldCodec.ForFixed32(301); 1167 private readonly pbc::RepeatedField<uint> repeatedFixed32_ = new pbc::RepeatedField<uint>(); 1168 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 1169 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 1170 public pbc::RepeatedField<uint> RepeatedFixed32 { 1171 get { return repeatedFixed32_; } 1172 } 1173 1174 /// <summary>Field number for the "repeated_fixed64" field.</summary> 1175 public const int RepeatedFixed64FieldNumber = 38; 1176 private static readonly pb::FieldCodec<ulong> _repeated_repeatedFixed64_codec 1177 = pb::FieldCodec.ForFixed64(305); 1178 private readonly pbc::RepeatedField<ulong> repeatedFixed64_ = new pbc::RepeatedField<ulong>(); 1179 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 1180 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 1181 public pbc::RepeatedField<ulong> RepeatedFixed64 { 1182 get { return repeatedFixed64_; } 1183 } 1184 1185 /// <summary>Field number for the "repeated_sfixed32" field.</summary> 1186 public const int RepeatedSfixed32FieldNumber = 39; 1187 private static readonly pb::FieldCodec<int> _repeated_repeatedSfixed32_codec 1188 = pb::FieldCodec.ForSFixed32(317); 1189 private readonly pbc::RepeatedField<int> repeatedSfixed32_ = new pbc::RepeatedField<int>(); 1190 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 1191 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 1192 public pbc::RepeatedField<int> RepeatedSfixed32 { 1193 get { return repeatedSfixed32_; } 1194 } 1195 1196 /// <summary>Field number for the "repeated_sfixed64" field.</summary> 1197 public const int RepeatedSfixed64FieldNumber = 40; 1198 private static readonly pb::FieldCodec<long> _repeated_repeatedSfixed64_codec 1199 = pb::FieldCodec.ForSFixed64(321); 1200 private readonly pbc::RepeatedField<long> repeatedSfixed64_ = new pbc::RepeatedField<long>(); 1201 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 1202 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 1203 public pbc::RepeatedField<long> RepeatedSfixed64 { 1204 get { return repeatedSfixed64_; } 1205 } 1206 1207 /// <summary>Field number for the "repeated_float" field.</summary> 1208 public const int RepeatedFloatFieldNumber = 41; 1209 private static readonly pb::FieldCodec<float> _repeated_repeatedFloat_codec 1210 = pb::FieldCodec.ForFloat(333); 1211 private readonly pbc::RepeatedField<float> repeatedFloat_ = new pbc::RepeatedField<float>(); 1212 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 1213 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 1214 public pbc::RepeatedField<float> RepeatedFloat { 1215 get { return repeatedFloat_; } 1216 } 1217 1218 /// <summary>Field number for the "repeated_double" field.</summary> 1219 public const int RepeatedDoubleFieldNumber = 42; 1220 private static readonly pb::FieldCodec<double> _repeated_repeatedDouble_codec 1221 = pb::FieldCodec.ForDouble(337); 1222 private readonly pbc::RepeatedField<double> repeatedDouble_ = new pbc::RepeatedField<double>(); 1223 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 1224 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 1225 public pbc::RepeatedField<double> RepeatedDouble { 1226 get { return repeatedDouble_; } 1227 } 1228 1229 /// <summary>Field number for the "repeated_bool" field.</summary> 1230 public const int RepeatedBoolFieldNumber = 43; 1231 private static readonly pb::FieldCodec<bool> _repeated_repeatedBool_codec 1232 = pb::FieldCodec.ForBool(344); 1233 private readonly pbc::RepeatedField<bool> repeatedBool_ = new pbc::RepeatedField<bool>(); 1234 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 1235 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 1236 public pbc::RepeatedField<bool> RepeatedBool { 1237 get { return repeatedBool_; } 1238 } 1239 1240 /// <summary>Field number for the "repeated_string" field.</summary> 1241 public const int RepeatedStringFieldNumber = 44; 1242 private static readonly pb::FieldCodec<string> _repeated_repeatedString_codec 1243 = pb::FieldCodec.ForString(354); 1244 private readonly pbc::RepeatedField<string> repeatedString_ = new pbc::RepeatedField<string>(); 1245 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 1246 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 1247 public pbc::RepeatedField<string> RepeatedString { 1248 get { return repeatedString_; } 1249 } 1250 1251 /// <summary>Field number for the "repeated_bytes" field.</summary> 1252 public const int RepeatedBytesFieldNumber = 45; 1253 private static readonly pb::FieldCodec<pb::ByteString> _repeated_repeatedBytes_codec 1254 = pb::FieldCodec.ForBytes(362); 1255 private readonly pbc::RepeatedField<pb::ByteString> repeatedBytes_ = new pbc::RepeatedField<pb::ByteString>(); 1256 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 1257 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 1258 public pbc::RepeatedField<pb::ByteString> RepeatedBytes { 1259 get { return repeatedBytes_; } 1260 } 1261 1262 /// <summary>Field number for the "repeated_nested_message" field.</summary> 1263 public const int RepeatedNestedMessageFieldNumber = 48; 1264 private static readonly pb::FieldCodec<global::ProtobufTestMessages.Proto2.TestAllTypesProto2.Types.NestedMessage> _repeated_repeatedNestedMessage_codec 1265 = pb::FieldCodec.ForMessage(386, global::ProtobufTestMessages.Proto2.TestAllTypesProto2.Types.NestedMessage.Parser); 1266 private readonly pbc::RepeatedField<global::ProtobufTestMessages.Proto2.TestAllTypesProto2.Types.NestedMessage> repeatedNestedMessage_ = new pbc::RepeatedField<global::ProtobufTestMessages.Proto2.TestAllTypesProto2.Types.NestedMessage>(); 1267 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 1268 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 1269 public pbc::RepeatedField<global::ProtobufTestMessages.Proto2.TestAllTypesProto2.Types.NestedMessage> RepeatedNestedMessage { 1270 get { return repeatedNestedMessage_; } 1271 } 1272 1273 /// <summary>Field number for the "repeated_foreign_message" field.</summary> 1274 public const int RepeatedForeignMessageFieldNumber = 49; 1275 private static readonly pb::FieldCodec<global::ProtobufTestMessages.Proto2.ForeignMessageProto2> _repeated_repeatedForeignMessage_codec 1276 = pb::FieldCodec.ForMessage(394, global::ProtobufTestMessages.Proto2.ForeignMessageProto2.Parser); 1277 private readonly pbc::RepeatedField<global::ProtobufTestMessages.Proto2.ForeignMessageProto2> repeatedForeignMessage_ = new pbc::RepeatedField<global::ProtobufTestMessages.Proto2.ForeignMessageProto2>(); 1278 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 1279 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 1280 public pbc::RepeatedField<global::ProtobufTestMessages.Proto2.ForeignMessageProto2> RepeatedForeignMessage { 1281 get { return repeatedForeignMessage_; } 1282 } 1283 1284 /// <summary>Field number for the "repeated_nested_enum" field.</summary> 1285 public const int RepeatedNestedEnumFieldNumber = 51; 1286 private static readonly pb::FieldCodec<global::ProtobufTestMessages.Proto2.TestAllTypesProto2.Types.NestedEnum> _repeated_repeatedNestedEnum_codec 1287 = pb::FieldCodec.ForEnum(408, x => (int) x, x => (global::ProtobufTestMessages.Proto2.TestAllTypesProto2.Types.NestedEnum) x); 1288 private readonly pbc::RepeatedField<global::ProtobufTestMessages.Proto2.TestAllTypesProto2.Types.NestedEnum> repeatedNestedEnum_ = new pbc::RepeatedField<global::ProtobufTestMessages.Proto2.TestAllTypesProto2.Types.NestedEnum>(); 1289 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 1290 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 1291 public pbc::RepeatedField<global::ProtobufTestMessages.Proto2.TestAllTypesProto2.Types.NestedEnum> RepeatedNestedEnum { 1292 get { return repeatedNestedEnum_; } 1293 } 1294 1295 /// <summary>Field number for the "repeated_foreign_enum" field.</summary> 1296 public const int RepeatedForeignEnumFieldNumber = 52; 1297 private static readonly pb::FieldCodec<global::ProtobufTestMessages.Proto2.ForeignEnumProto2> _repeated_repeatedForeignEnum_codec 1298 = pb::FieldCodec.ForEnum(416, x => (int) x, x => (global::ProtobufTestMessages.Proto2.ForeignEnumProto2) x); 1299 private readonly pbc::RepeatedField<global::ProtobufTestMessages.Proto2.ForeignEnumProto2> repeatedForeignEnum_ = new pbc::RepeatedField<global::ProtobufTestMessages.Proto2.ForeignEnumProto2>(); 1300 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 1301 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 1302 public pbc::RepeatedField<global::ProtobufTestMessages.Proto2.ForeignEnumProto2> RepeatedForeignEnum { 1303 get { return repeatedForeignEnum_; } 1304 } 1305 1306 /// <summary>Field number for the "repeated_string_piece" field.</summary> 1307 public const int RepeatedStringPieceFieldNumber = 54; 1308 private static readonly pb::FieldCodec<string> _repeated_repeatedStringPiece_codec 1309 = pb::FieldCodec.ForString(434); 1310 private readonly pbc::RepeatedField<string> repeatedStringPiece_ = new pbc::RepeatedField<string>(); 1311 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 1312 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 1313 public pbc::RepeatedField<string> RepeatedStringPiece { 1314 get { return repeatedStringPiece_; } 1315 } 1316 1317 /// <summary>Field number for the "repeated_cord" field.</summary> 1318 public const int RepeatedCordFieldNumber = 55; 1319 private static readonly pb::FieldCodec<string> _repeated_repeatedCord_codec 1320 = pb::FieldCodec.ForString(442); 1321 private readonly pbc::RepeatedField<string> repeatedCord_ = new pbc::RepeatedField<string>(); 1322 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 1323 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 1324 public pbc::RepeatedField<string> RepeatedCord { 1325 get { return repeatedCord_; } 1326 } 1327 1328 /// <summary>Field number for the "packed_int32" field.</summary> 1329 public const int PackedInt32FieldNumber = 75; 1330 private static readonly pb::FieldCodec<int> _repeated_packedInt32_codec 1331 = pb::FieldCodec.ForInt32(602); 1332 private readonly pbc::RepeatedField<int> packedInt32_ = new pbc::RepeatedField<int>(); 1333 /// <summary> 1334 /// Packed 1335 /// </summary> 1336 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 1337 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 1338 public pbc::RepeatedField<int> PackedInt32 { 1339 get { return packedInt32_; } 1340 } 1341 1342 /// <summary>Field number for the "packed_int64" field.</summary> 1343 public const int PackedInt64FieldNumber = 76; 1344 private static readonly pb::FieldCodec<long> _repeated_packedInt64_codec 1345 = pb::FieldCodec.ForInt64(610); 1346 private readonly pbc::RepeatedField<long> packedInt64_ = new pbc::RepeatedField<long>(); 1347 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 1348 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 1349 public pbc::RepeatedField<long> PackedInt64 { 1350 get { return packedInt64_; } 1351 } 1352 1353 /// <summary>Field number for the "packed_uint32" field.</summary> 1354 public const int PackedUint32FieldNumber = 77; 1355 private static readonly pb::FieldCodec<uint> _repeated_packedUint32_codec 1356 = pb::FieldCodec.ForUInt32(618); 1357 private readonly pbc::RepeatedField<uint> packedUint32_ = new pbc::RepeatedField<uint>(); 1358 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 1359 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 1360 public pbc::RepeatedField<uint> PackedUint32 { 1361 get { return packedUint32_; } 1362 } 1363 1364 /// <summary>Field number for the "packed_uint64" field.</summary> 1365 public const int PackedUint64FieldNumber = 78; 1366 private static readonly pb::FieldCodec<ulong> _repeated_packedUint64_codec 1367 = pb::FieldCodec.ForUInt64(626); 1368 private readonly pbc::RepeatedField<ulong> packedUint64_ = new pbc::RepeatedField<ulong>(); 1369 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 1370 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 1371 public pbc::RepeatedField<ulong> PackedUint64 { 1372 get { return packedUint64_; } 1373 } 1374 1375 /// <summary>Field number for the "packed_sint32" field.</summary> 1376 public const int PackedSint32FieldNumber = 79; 1377 private static readonly pb::FieldCodec<int> _repeated_packedSint32_codec 1378 = pb::FieldCodec.ForSInt32(634); 1379 private readonly pbc::RepeatedField<int> packedSint32_ = new pbc::RepeatedField<int>(); 1380 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 1381 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 1382 public pbc::RepeatedField<int> PackedSint32 { 1383 get { return packedSint32_; } 1384 } 1385 1386 /// <summary>Field number for the "packed_sint64" field.</summary> 1387 public const int PackedSint64FieldNumber = 80; 1388 private static readonly pb::FieldCodec<long> _repeated_packedSint64_codec 1389 = pb::FieldCodec.ForSInt64(642); 1390 private readonly pbc::RepeatedField<long> packedSint64_ = new pbc::RepeatedField<long>(); 1391 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 1392 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 1393 public pbc::RepeatedField<long> PackedSint64 { 1394 get { return packedSint64_; } 1395 } 1396 1397 /// <summary>Field number for the "packed_fixed32" field.</summary> 1398 public const int PackedFixed32FieldNumber = 81; 1399 private static readonly pb::FieldCodec<uint> _repeated_packedFixed32_codec 1400 = pb::FieldCodec.ForFixed32(650); 1401 private readonly pbc::RepeatedField<uint> packedFixed32_ = new pbc::RepeatedField<uint>(); 1402 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 1403 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 1404 public pbc::RepeatedField<uint> PackedFixed32 { 1405 get { return packedFixed32_; } 1406 } 1407 1408 /// <summary>Field number for the "packed_fixed64" field.</summary> 1409 public const int PackedFixed64FieldNumber = 82; 1410 private static readonly pb::FieldCodec<ulong> _repeated_packedFixed64_codec 1411 = pb::FieldCodec.ForFixed64(658); 1412 private readonly pbc::RepeatedField<ulong> packedFixed64_ = new pbc::RepeatedField<ulong>(); 1413 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 1414 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 1415 public pbc::RepeatedField<ulong> PackedFixed64 { 1416 get { return packedFixed64_; } 1417 } 1418 1419 /// <summary>Field number for the "packed_sfixed32" field.</summary> 1420 public const int PackedSfixed32FieldNumber = 83; 1421 private static readonly pb::FieldCodec<int> _repeated_packedSfixed32_codec 1422 = pb::FieldCodec.ForSFixed32(666); 1423 private readonly pbc::RepeatedField<int> packedSfixed32_ = new pbc::RepeatedField<int>(); 1424 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 1425 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 1426 public pbc::RepeatedField<int> PackedSfixed32 { 1427 get { return packedSfixed32_; } 1428 } 1429 1430 /// <summary>Field number for the "packed_sfixed64" field.</summary> 1431 public const int PackedSfixed64FieldNumber = 84; 1432 private static readonly pb::FieldCodec<long> _repeated_packedSfixed64_codec 1433 = pb::FieldCodec.ForSFixed64(674); 1434 private readonly pbc::RepeatedField<long> packedSfixed64_ = new pbc::RepeatedField<long>(); 1435 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 1436 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 1437 public pbc::RepeatedField<long> PackedSfixed64 { 1438 get { return packedSfixed64_; } 1439 } 1440 1441 /// <summary>Field number for the "packed_float" field.</summary> 1442 public const int PackedFloatFieldNumber = 85; 1443 private static readonly pb::FieldCodec<float> _repeated_packedFloat_codec 1444 = pb::FieldCodec.ForFloat(682); 1445 private readonly pbc::RepeatedField<float> packedFloat_ = new pbc::RepeatedField<float>(); 1446 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 1447 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 1448 public pbc::RepeatedField<float> PackedFloat { 1449 get { return packedFloat_; } 1450 } 1451 1452 /// <summary>Field number for the "packed_double" field.</summary> 1453 public const int PackedDoubleFieldNumber = 86; 1454 private static readonly pb::FieldCodec<double> _repeated_packedDouble_codec 1455 = pb::FieldCodec.ForDouble(690); 1456 private readonly pbc::RepeatedField<double> packedDouble_ = new pbc::RepeatedField<double>(); 1457 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 1458 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 1459 public pbc::RepeatedField<double> PackedDouble { 1460 get { return packedDouble_; } 1461 } 1462 1463 /// <summary>Field number for the "packed_bool" field.</summary> 1464 public const int PackedBoolFieldNumber = 87; 1465 private static readonly pb::FieldCodec<bool> _repeated_packedBool_codec 1466 = pb::FieldCodec.ForBool(698); 1467 private readonly pbc::RepeatedField<bool> packedBool_ = new pbc::RepeatedField<bool>(); 1468 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 1469 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 1470 public pbc::RepeatedField<bool> PackedBool { 1471 get { return packedBool_; } 1472 } 1473 1474 /// <summary>Field number for the "packed_nested_enum" field.</summary> 1475 public const int PackedNestedEnumFieldNumber = 88; 1476 private static readonly pb::FieldCodec<global::ProtobufTestMessages.Proto2.TestAllTypesProto2.Types.NestedEnum> _repeated_packedNestedEnum_codec 1477 = pb::FieldCodec.ForEnum(706, x => (int) x, x => (global::ProtobufTestMessages.Proto2.TestAllTypesProto2.Types.NestedEnum) x); 1478 private readonly pbc::RepeatedField<global::ProtobufTestMessages.Proto2.TestAllTypesProto2.Types.NestedEnum> packedNestedEnum_ = new pbc::RepeatedField<global::ProtobufTestMessages.Proto2.TestAllTypesProto2.Types.NestedEnum>(); 1479 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 1480 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 1481 public pbc::RepeatedField<global::ProtobufTestMessages.Proto2.TestAllTypesProto2.Types.NestedEnum> PackedNestedEnum { 1482 get { return packedNestedEnum_; } 1483 } 1484 1485 /// <summary>Field number for the "unpacked_int32" field.</summary> 1486 public const int UnpackedInt32FieldNumber = 89; 1487 private static readonly pb::FieldCodec<int> _repeated_unpackedInt32_codec 1488 = pb::FieldCodec.ForInt32(712); 1489 private readonly pbc::RepeatedField<int> unpackedInt32_ = new pbc::RepeatedField<int>(); 1490 /// <summary> 1491 /// Unpacked 1492 /// </summary> 1493 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 1494 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 1495 public pbc::RepeatedField<int> UnpackedInt32 { 1496 get { return unpackedInt32_; } 1497 } 1498 1499 /// <summary>Field number for the "unpacked_int64" field.</summary> 1500 public const int UnpackedInt64FieldNumber = 90; 1501 private static readonly pb::FieldCodec<long> _repeated_unpackedInt64_codec 1502 = pb::FieldCodec.ForInt64(720); 1503 private readonly pbc::RepeatedField<long> unpackedInt64_ = new pbc::RepeatedField<long>(); 1504 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 1505 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 1506 public pbc::RepeatedField<long> UnpackedInt64 { 1507 get { return unpackedInt64_; } 1508 } 1509 1510 /// <summary>Field number for the "unpacked_uint32" field.</summary> 1511 public const int UnpackedUint32FieldNumber = 91; 1512 private static readonly pb::FieldCodec<uint> _repeated_unpackedUint32_codec 1513 = pb::FieldCodec.ForUInt32(728); 1514 private readonly pbc::RepeatedField<uint> unpackedUint32_ = new pbc::RepeatedField<uint>(); 1515 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 1516 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 1517 public pbc::RepeatedField<uint> UnpackedUint32 { 1518 get { return unpackedUint32_; } 1519 } 1520 1521 /// <summary>Field number for the "unpacked_uint64" field.</summary> 1522 public const int UnpackedUint64FieldNumber = 92; 1523 private static readonly pb::FieldCodec<ulong> _repeated_unpackedUint64_codec 1524 = pb::FieldCodec.ForUInt64(736); 1525 private readonly pbc::RepeatedField<ulong> unpackedUint64_ = new pbc::RepeatedField<ulong>(); 1526 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 1527 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 1528 public pbc::RepeatedField<ulong> UnpackedUint64 { 1529 get { return unpackedUint64_; } 1530 } 1531 1532 /// <summary>Field number for the "unpacked_sint32" field.</summary> 1533 public const int UnpackedSint32FieldNumber = 93; 1534 private static readonly pb::FieldCodec<int> _repeated_unpackedSint32_codec 1535 = pb::FieldCodec.ForSInt32(744); 1536 private readonly pbc::RepeatedField<int> unpackedSint32_ = new pbc::RepeatedField<int>(); 1537 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 1538 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 1539 public pbc::RepeatedField<int> UnpackedSint32 { 1540 get { return unpackedSint32_; } 1541 } 1542 1543 /// <summary>Field number for the "unpacked_sint64" field.</summary> 1544 public const int UnpackedSint64FieldNumber = 94; 1545 private static readonly pb::FieldCodec<long> _repeated_unpackedSint64_codec 1546 = pb::FieldCodec.ForSInt64(752); 1547 private readonly pbc::RepeatedField<long> unpackedSint64_ = new pbc::RepeatedField<long>(); 1548 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 1549 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 1550 public pbc::RepeatedField<long> UnpackedSint64 { 1551 get { return unpackedSint64_; } 1552 } 1553 1554 /// <summary>Field number for the "unpacked_fixed32" field.</summary> 1555 public const int UnpackedFixed32FieldNumber = 95; 1556 private static readonly pb::FieldCodec<uint> _repeated_unpackedFixed32_codec 1557 = pb::FieldCodec.ForFixed32(765); 1558 private readonly pbc::RepeatedField<uint> unpackedFixed32_ = new pbc::RepeatedField<uint>(); 1559 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 1560 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 1561 public pbc::RepeatedField<uint> UnpackedFixed32 { 1562 get { return unpackedFixed32_; } 1563 } 1564 1565 /// <summary>Field number for the "unpacked_fixed64" field.</summary> 1566 public const int UnpackedFixed64FieldNumber = 96; 1567 private static readonly pb::FieldCodec<ulong> _repeated_unpackedFixed64_codec 1568 = pb::FieldCodec.ForFixed64(769); 1569 private readonly pbc::RepeatedField<ulong> unpackedFixed64_ = new pbc::RepeatedField<ulong>(); 1570 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 1571 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 1572 public pbc::RepeatedField<ulong> UnpackedFixed64 { 1573 get { return unpackedFixed64_; } 1574 } 1575 1576 /// <summary>Field number for the "unpacked_sfixed32" field.</summary> 1577 public const int UnpackedSfixed32FieldNumber = 97; 1578 private static readonly pb::FieldCodec<int> _repeated_unpackedSfixed32_codec 1579 = pb::FieldCodec.ForSFixed32(781); 1580 private readonly pbc::RepeatedField<int> unpackedSfixed32_ = new pbc::RepeatedField<int>(); 1581 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 1582 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 1583 public pbc::RepeatedField<int> UnpackedSfixed32 { 1584 get { return unpackedSfixed32_; } 1585 } 1586 1587 /// <summary>Field number for the "unpacked_sfixed64" field.</summary> 1588 public const int UnpackedSfixed64FieldNumber = 98; 1589 private static readonly pb::FieldCodec<long> _repeated_unpackedSfixed64_codec 1590 = pb::FieldCodec.ForSFixed64(785); 1591 private readonly pbc::RepeatedField<long> unpackedSfixed64_ = new pbc::RepeatedField<long>(); 1592 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 1593 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 1594 public pbc::RepeatedField<long> UnpackedSfixed64 { 1595 get { return unpackedSfixed64_; } 1596 } 1597 1598 /// <summary>Field number for the "unpacked_float" field.</summary> 1599 public const int UnpackedFloatFieldNumber = 99; 1600 private static readonly pb::FieldCodec<float> _repeated_unpackedFloat_codec 1601 = pb::FieldCodec.ForFloat(797); 1602 private readonly pbc::RepeatedField<float> unpackedFloat_ = new pbc::RepeatedField<float>(); 1603 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 1604 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 1605 public pbc::RepeatedField<float> UnpackedFloat { 1606 get { return unpackedFloat_; } 1607 } 1608 1609 /// <summary>Field number for the "unpacked_double" field.</summary> 1610 public const int UnpackedDoubleFieldNumber = 100; 1611 private static readonly pb::FieldCodec<double> _repeated_unpackedDouble_codec 1612 = pb::FieldCodec.ForDouble(801); 1613 private readonly pbc::RepeatedField<double> unpackedDouble_ = new pbc::RepeatedField<double>(); 1614 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 1615 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 1616 public pbc::RepeatedField<double> UnpackedDouble { 1617 get { return unpackedDouble_; } 1618 } 1619 1620 /// <summary>Field number for the "unpacked_bool" field.</summary> 1621 public const int UnpackedBoolFieldNumber = 101; 1622 private static readonly pb::FieldCodec<bool> _repeated_unpackedBool_codec 1623 = pb::FieldCodec.ForBool(808); 1624 private readonly pbc::RepeatedField<bool> unpackedBool_ = new pbc::RepeatedField<bool>(); 1625 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 1626 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 1627 public pbc::RepeatedField<bool> UnpackedBool { 1628 get { return unpackedBool_; } 1629 } 1630 1631 /// <summary>Field number for the "unpacked_nested_enum" field.</summary> 1632 public const int UnpackedNestedEnumFieldNumber = 102; 1633 private static readonly pb::FieldCodec<global::ProtobufTestMessages.Proto2.TestAllTypesProto2.Types.NestedEnum> _repeated_unpackedNestedEnum_codec 1634 = pb::FieldCodec.ForEnum(816, x => (int) x, x => (global::ProtobufTestMessages.Proto2.TestAllTypesProto2.Types.NestedEnum) x); 1635 private readonly pbc::RepeatedField<global::ProtobufTestMessages.Proto2.TestAllTypesProto2.Types.NestedEnum> unpackedNestedEnum_ = new pbc::RepeatedField<global::ProtobufTestMessages.Proto2.TestAllTypesProto2.Types.NestedEnum>(); 1636 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 1637 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 1638 public pbc::RepeatedField<global::ProtobufTestMessages.Proto2.TestAllTypesProto2.Types.NestedEnum> UnpackedNestedEnum { 1639 get { return unpackedNestedEnum_; } 1640 } 1641 1642 /// <summary>Field number for the "map_int32_int32" field.</summary> 1643 public const int MapInt32Int32FieldNumber = 56; 1644 private static readonly pbc::MapField<int, int>.Codec _map_mapInt32Int32_codec 1645 = new pbc::MapField<int, int>.Codec(pb::FieldCodec.ForInt32(8, 0), pb::FieldCodec.ForInt32(16, 0), 450); 1646 private readonly pbc::MapField<int, int> mapInt32Int32_ = new pbc::MapField<int, int>(); 1647 /// <summary> 1648 /// Map 1649 /// </summary> 1650 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 1651 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 1652 public pbc::MapField<int, int> MapInt32Int32 { 1653 get { return mapInt32Int32_; } 1654 } 1655 1656 /// <summary>Field number for the "map_int64_int64" field.</summary> 1657 public const int MapInt64Int64FieldNumber = 57; 1658 private static readonly pbc::MapField<long, long>.Codec _map_mapInt64Int64_codec 1659 = new pbc::MapField<long, long>.Codec(pb::FieldCodec.ForInt64(8, 0L), pb::FieldCodec.ForInt64(16, 0L), 458); 1660 private readonly pbc::MapField<long, long> mapInt64Int64_ = new pbc::MapField<long, long>(); 1661 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 1662 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 1663 public pbc::MapField<long, long> MapInt64Int64 { 1664 get { return mapInt64Int64_; } 1665 } 1666 1667 /// <summary>Field number for the "map_uint32_uint32" field.</summary> 1668 public const int MapUint32Uint32FieldNumber = 58; 1669 private static readonly pbc::MapField<uint, uint>.Codec _map_mapUint32Uint32_codec 1670 = new pbc::MapField<uint, uint>.Codec(pb::FieldCodec.ForUInt32(8, 0), pb::FieldCodec.ForUInt32(16, 0), 466); 1671 private readonly pbc::MapField<uint, uint> mapUint32Uint32_ = new pbc::MapField<uint, uint>(); 1672 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 1673 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 1674 public pbc::MapField<uint, uint> MapUint32Uint32 { 1675 get { return mapUint32Uint32_; } 1676 } 1677 1678 /// <summary>Field number for the "map_uint64_uint64" field.</summary> 1679 public const int MapUint64Uint64FieldNumber = 59; 1680 private static readonly pbc::MapField<ulong, ulong>.Codec _map_mapUint64Uint64_codec 1681 = new pbc::MapField<ulong, ulong>.Codec(pb::FieldCodec.ForUInt64(8, 0UL), pb::FieldCodec.ForUInt64(16, 0UL), 474); 1682 private readonly pbc::MapField<ulong, ulong> mapUint64Uint64_ = new pbc::MapField<ulong, ulong>(); 1683 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 1684 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 1685 public pbc::MapField<ulong, ulong> MapUint64Uint64 { 1686 get { return mapUint64Uint64_; } 1687 } 1688 1689 /// <summary>Field number for the "map_sint32_sint32" field.</summary> 1690 public const int MapSint32Sint32FieldNumber = 60; 1691 private static readonly pbc::MapField<int, int>.Codec _map_mapSint32Sint32_codec 1692 = new pbc::MapField<int, int>.Codec(pb::FieldCodec.ForSInt32(8, 0), pb::FieldCodec.ForSInt32(16, 0), 482); 1693 private readonly pbc::MapField<int, int> mapSint32Sint32_ = new pbc::MapField<int, int>(); 1694 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 1695 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 1696 public pbc::MapField<int, int> MapSint32Sint32 { 1697 get { return mapSint32Sint32_; } 1698 } 1699 1700 /// <summary>Field number for the "map_sint64_sint64" field.</summary> 1701 public const int MapSint64Sint64FieldNumber = 61; 1702 private static readonly pbc::MapField<long, long>.Codec _map_mapSint64Sint64_codec 1703 = new pbc::MapField<long, long>.Codec(pb::FieldCodec.ForSInt64(8, 0L), pb::FieldCodec.ForSInt64(16, 0L), 490); 1704 private readonly pbc::MapField<long, long> mapSint64Sint64_ = new pbc::MapField<long, long>(); 1705 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 1706 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 1707 public pbc::MapField<long, long> MapSint64Sint64 { 1708 get { return mapSint64Sint64_; } 1709 } 1710 1711 /// <summary>Field number for the "map_fixed32_fixed32" field.</summary> 1712 public const int MapFixed32Fixed32FieldNumber = 62; 1713 private static readonly pbc::MapField<uint, uint>.Codec _map_mapFixed32Fixed32_codec 1714 = new pbc::MapField<uint, uint>.Codec(pb::FieldCodec.ForFixed32(13, 0), pb::FieldCodec.ForFixed32(21, 0), 498); 1715 private readonly pbc::MapField<uint, uint> mapFixed32Fixed32_ = new pbc::MapField<uint, uint>(); 1716 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 1717 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 1718 public pbc::MapField<uint, uint> MapFixed32Fixed32 { 1719 get { return mapFixed32Fixed32_; } 1720 } 1721 1722 /// <summary>Field number for the "map_fixed64_fixed64" field.</summary> 1723 public const int MapFixed64Fixed64FieldNumber = 63; 1724 private static readonly pbc::MapField<ulong, ulong>.Codec _map_mapFixed64Fixed64_codec 1725 = new pbc::MapField<ulong, ulong>.Codec(pb::FieldCodec.ForFixed64(9, 0UL), pb::FieldCodec.ForFixed64(17, 0UL), 506); 1726 private readonly pbc::MapField<ulong, ulong> mapFixed64Fixed64_ = new pbc::MapField<ulong, ulong>(); 1727 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 1728 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 1729 public pbc::MapField<ulong, ulong> MapFixed64Fixed64 { 1730 get { return mapFixed64Fixed64_; } 1731 } 1732 1733 /// <summary>Field number for the "map_sfixed32_sfixed32" field.</summary> 1734 public const int MapSfixed32Sfixed32FieldNumber = 64; 1735 private static readonly pbc::MapField<int, int>.Codec _map_mapSfixed32Sfixed32_codec 1736 = new pbc::MapField<int, int>.Codec(pb::FieldCodec.ForSFixed32(13, 0), pb::FieldCodec.ForSFixed32(21, 0), 514); 1737 private readonly pbc::MapField<int, int> mapSfixed32Sfixed32_ = new pbc::MapField<int, int>(); 1738 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 1739 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 1740 public pbc::MapField<int, int> MapSfixed32Sfixed32 { 1741 get { return mapSfixed32Sfixed32_; } 1742 } 1743 1744 /// <summary>Field number for the "map_sfixed64_sfixed64" field.</summary> 1745 public const int MapSfixed64Sfixed64FieldNumber = 65; 1746 private static readonly pbc::MapField<long, long>.Codec _map_mapSfixed64Sfixed64_codec 1747 = new pbc::MapField<long, long>.Codec(pb::FieldCodec.ForSFixed64(9, 0L), pb::FieldCodec.ForSFixed64(17, 0L), 522); 1748 private readonly pbc::MapField<long, long> mapSfixed64Sfixed64_ = new pbc::MapField<long, long>(); 1749 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 1750 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 1751 public pbc::MapField<long, long> MapSfixed64Sfixed64 { 1752 get { return mapSfixed64Sfixed64_; } 1753 } 1754 1755 /// <summary>Field number for the "map_int32_float" field.</summary> 1756 public const int MapInt32FloatFieldNumber = 66; 1757 private static readonly pbc::MapField<int, float>.Codec _map_mapInt32Float_codec 1758 = new pbc::MapField<int, float>.Codec(pb::FieldCodec.ForInt32(8, 0), pb::FieldCodec.ForFloat(21, 0F), 530); 1759 private readonly pbc::MapField<int, float> mapInt32Float_ = new pbc::MapField<int, float>(); 1760 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 1761 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 1762 public pbc::MapField<int, float> MapInt32Float { 1763 get { return mapInt32Float_; } 1764 } 1765 1766 /// <summary>Field number for the "map_int32_double" field.</summary> 1767 public const int MapInt32DoubleFieldNumber = 67; 1768 private static readonly pbc::MapField<int, double>.Codec _map_mapInt32Double_codec 1769 = new pbc::MapField<int, double>.Codec(pb::FieldCodec.ForInt32(8, 0), pb::FieldCodec.ForDouble(17, 0D), 538); 1770 private readonly pbc::MapField<int, double> mapInt32Double_ = new pbc::MapField<int, double>(); 1771 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 1772 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 1773 public pbc::MapField<int, double> MapInt32Double { 1774 get { return mapInt32Double_; } 1775 } 1776 1777 /// <summary>Field number for the "map_bool_bool" field.</summary> 1778 public const int MapBoolBoolFieldNumber = 68; 1779 private static readonly pbc::MapField<bool, bool>.Codec _map_mapBoolBool_codec 1780 = new pbc::MapField<bool, bool>.Codec(pb::FieldCodec.ForBool(8, false), pb::FieldCodec.ForBool(16, false), 546); 1781 private readonly pbc::MapField<bool, bool> mapBoolBool_ = new pbc::MapField<bool, bool>(); 1782 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 1783 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 1784 public pbc::MapField<bool, bool> MapBoolBool { 1785 get { return mapBoolBool_; } 1786 } 1787 1788 /// <summary>Field number for the "map_string_string" field.</summary> 1789 public const int MapStringStringFieldNumber = 69; 1790 private static readonly pbc::MapField<string, string>.Codec _map_mapStringString_codec 1791 = new pbc::MapField<string, string>.Codec(pb::FieldCodec.ForString(10, ""), pb::FieldCodec.ForString(18, ""), 554); 1792 private readonly pbc::MapField<string, string> mapStringString_ = new pbc::MapField<string, string>(); 1793 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 1794 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 1795 public pbc::MapField<string, string> MapStringString { 1796 get { return mapStringString_; } 1797 } 1798 1799 /// <summary>Field number for the "map_string_bytes" field.</summary> 1800 public const int MapStringBytesFieldNumber = 70; 1801 private static readonly pbc::MapField<string, pb::ByteString>.Codec _map_mapStringBytes_codec 1802 = new pbc::MapField<string, pb::ByteString>.Codec(pb::FieldCodec.ForString(10, ""), pb::FieldCodec.ForBytes(18, pb::ByteString.Empty), 562); 1803 private readonly pbc::MapField<string, pb::ByteString> mapStringBytes_ = new pbc::MapField<string, pb::ByteString>(); 1804 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 1805 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 1806 public pbc::MapField<string, pb::ByteString> MapStringBytes { 1807 get { return mapStringBytes_; } 1808 } 1809 1810 /// <summary>Field number for the "map_string_nested_message" field.</summary> 1811 public const int MapStringNestedMessageFieldNumber = 71; 1812 private static readonly pbc::MapField<string, global::ProtobufTestMessages.Proto2.TestAllTypesProto2.Types.NestedMessage>.Codec _map_mapStringNestedMessage_codec 1813 = new pbc::MapField<string, global::ProtobufTestMessages.Proto2.TestAllTypesProto2.Types.NestedMessage>.Codec(pb::FieldCodec.ForString(10, ""), pb::FieldCodec.ForMessage(18, global::ProtobufTestMessages.Proto2.TestAllTypesProto2.Types.NestedMessage.Parser), 570); 1814 private readonly pbc::MapField<string, global::ProtobufTestMessages.Proto2.TestAllTypesProto2.Types.NestedMessage> mapStringNestedMessage_ = new pbc::MapField<string, global::ProtobufTestMessages.Proto2.TestAllTypesProto2.Types.NestedMessage>(); 1815 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 1816 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 1817 public pbc::MapField<string, global::ProtobufTestMessages.Proto2.TestAllTypesProto2.Types.NestedMessage> MapStringNestedMessage { 1818 get { return mapStringNestedMessage_; } 1819 } 1820 1821 /// <summary>Field number for the "map_string_foreign_message" field.</summary> 1822 public const int MapStringForeignMessageFieldNumber = 72; 1823 private static readonly pbc::MapField<string, global::ProtobufTestMessages.Proto2.ForeignMessageProto2>.Codec _map_mapStringForeignMessage_codec 1824 = new pbc::MapField<string, global::ProtobufTestMessages.Proto2.ForeignMessageProto2>.Codec(pb::FieldCodec.ForString(10, ""), pb::FieldCodec.ForMessage(18, global::ProtobufTestMessages.Proto2.ForeignMessageProto2.Parser), 578); 1825 private readonly pbc::MapField<string, global::ProtobufTestMessages.Proto2.ForeignMessageProto2> mapStringForeignMessage_ = new pbc::MapField<string, global::ProtobufTestMessages.Proto2.ForeignMessageProto2>(); 1826 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 1827 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 1828 public pbc::MapField<string, global::ProtobufTestMessages.Proto2.ForeignMessageProto2> MapStringForeignMessage { 1829 get { return mapStringForeignMessage_; } 1830 } 1831 1832 /// <summary>Field number for the "map_string_nested_enum" field.</summary> 1833 public const int MapStringNestedEnumFieldNumber = 73; 1834 private static readonly pbc::MapField<string, global::ProtobufTestMessages.Proto2.TestAllTypesProto2.Types.NestedEnum>.Codec _map_mapStringNestedEnum_codec 1835 = new pbc::MapField<string, global::ProtobufTestMessages.Proto2.TestAllTypesProto2.Types.NestedEnum>.Codec(pb::FieldCodec.ForString(10, ""), pb::FieldCodec.ForEnum(16, x => (int) x, x => (global::ProtobufTestMessages.Proto2.TestAllTypesProto2.Types.NestedEnum) x, global::ProtobufTestMessages.Proto2.TestAllTypesProto2.Types.NestedEnum.Foo), 586); 1836 private readonly pbc::MapField<string, global::ProtobufTestMessages.Proto2.TestAllTypesProto2.Types.NestedEnum> mapStringNestedEnum_ = new pbc::MapField<string, global::ProtobufTestMessages.Proto2.TestAllTypesProto2.Types.NestedEnum>(); 1837 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 1838 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 1839 public pbc::MapField<string, global::ProtobufTestMessages.Proto2.TestAllTypesProto2.Types.NestedEnum> MapStringNestedEnum { 1840 get { return mapStringNestedEnum_; } 1841 } 1842 1843 /// <summary>Field number for the "map_string_foreign_enum" field.</summary> 1844 public const int MapStringForeignEnumFieldNumber = 74; 1845 private static readonly pbc::MapField<string, global::ProtobufTestMessages.Proto2.ForeignEnumProto2>.Codec _map_mapStringForeignEnum_codec 1846 = new pbc::MapField<string, global::ProtobufTestMessages.Proto2.ForeignEnumProto2>.Codec(pb::FieldCodec.ForString(10, ""), pb::FieldCodec.ForEnum(16, x => (int) x, x => (global::ProtobufTestMessages.Proto2.ForeignEnumProto2) x, global::ProtobufTestMessages.Proto2.ForeignEnumProto2.ForeignFoo), 594); 1847 private readonly pbc::MapField<string, global::ProtobufTestMessages.Proto2.ForeignEnumProto2> mapStringForeignEnum_ = new pbc::MapField<string, global::ProtobufTestMessages.Proto2.ForeignEnumProto2>(); 1848 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 1849 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 1850 public pbc::MapField<string, global::ProtobufTestMessages.Proto2.ForeignEnumProto2> MapStringForeignEnum { 1851 get { return mapStringForeignEnum_; } 1852 } 1853 1854 /// <summary>Field number for the "oneof_uint32" field.</summary> 1855 public const int OneofUint32FieldNumber = 111; 1856 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 1857 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 1858 public uint OneofUint32 { 1859 get { return HasOneofUint32 ? (uint) oneofField_ : 0; } 1860 set { 1861 oneofField_ = value; 1862 oneofFieldCase_ = OneofFieldOneofCase.OneofUint32; 1863 } 1864 } 1865 /// <summary>Gets whether the "oneof_uint32" field is set</summary> 1866 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 1867 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 1868 public bool HasOneofUint32 { 1869 get { return oneofFieldCase_ == OneofFieldOneofCase.OneofUint32; } 1870 } 1871 /// <summary> Clears the value of the oneof if it's currently set to "oneof_uint32" </summary> 1872 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 1873 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] ClearOneofUint32()1874 public void ClearOneofUint32() { 1875 if (HasOneofUint32) { 1876 ClearOneofField(); 1877 } 1878 } 1879 1880 /// <summary>Field number for the "oneof_nested_message" field.</summary> 1881 public const int OneofNestedMessageFieldNumber = 112; 1882 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 1883 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 1884 public global::ProtobufTestMessages.Proto2.TestAllTypesProto2.Types.NestedMessage OneofNestedMessage { 1885 get { return oneofFieldCase_ == OneofFieldOneofCase.OneofNestedMessage ? (global::ProtobufTestMessages.Proto2.TestAllTypesProto2.Types.NestedMessage) oneofField_ : null; } 1886 set { 1887 oneofField_ = value; 1888 oneofFieldCase_ = value == null ? OneofFieldOneofCase.None : OneofFieldOneofCase.OneofNestedMessage; 1889 } 1890 } 1891 1892 /// <summary>Field number for the "oneof_string" field.</summary> 1893 public const int OneofStringFieldNumber = 113; 1894 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 1895 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 1896 public string OneofString { 1897 get { return HasOneofString ? (string) oneofField_ : ""; } 1898 set { 1899 oneofField_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); 1900 oneofFieldCase_ = OneofFieldOneofCase.OneofString; 1901 } 1902 } 1903 /// <summary>Gets whether the "oneof_string" field is set</summary> 1904 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 1905 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 1906 public bool HasOneofString { 1907 get { return oneofFieldCase_ == OneofFieldOneofCase.OneofString; } 1908 } 1909 /// <summary> Clears the value of the oneof if it's currently set to "oneof_string" </summary> 1910 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 1911 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] ClearOneofString()1912 public void ClearOneofString() { 1913 if (HasOneofString) { 1914 ClearOneofField(); 1915 } 1916 } 1917 1918 /// <summary>Field number for the "oneof_bytes" field.</summary> 1919 public const int OneofBytesFieldNumber = 114; 1920 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 1921 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 1922 public pb::ByteString OneofBytes { 1923 get { return HasOneofBytes ? (pb::ByteString) oneofField_ : pb::ByteString.Empty; } 1924 set { 1925 oneofField_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); 1926 oneofFieldCase_ = OneofFieldOneofCase.OneofBytes; 1927 } 1928 } 1929 /// <summary>Gets whether the "oneof_bytes" field is set</summary> 1930 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 1931 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 1932 public bool HasOneofBytes { 1933 get { return oneofFieldCase_ == OneofFieldOneofCase.OneofBytes; } 1934 } 1935 /// <summary> Clears the value of the oneof if it's currently set to "oneof_bytes" </summary> 1936 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 1937 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] ClearOneofBytes()1938 public void ClearOneofBytes() { 1939 if (HasOneofBytes) { 1940 ClearOneofField(); 1941 } 1942 } 1943 1944 /// <summary>Field number for the "oneof_bool" field.</summary> 1945 public const int OneofBoolFieldNumber = 115; 1946 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 1947 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 1948 public bool OneofBool { 1949 get { return HasOneofBool ? (bool) oneofField_ : false; } 1950 set { 1951 oneofField_ = value; 1952 oneofFieldCase_ = OneofFieldOneofCase.OneofBool; 1953 } 1954 } 1955 /// <summary>Gets whether the "oneof_bool" field is set</summary> 1956 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 1957 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 1958 public bool HasOneofBool { 1959 get { return oneofFieldCase_ == OneofFieldOneofCase.OneofBool; } 1960 } 1961 /// <summary> Clears the value of the oneof if it's currently set to "oneof_bool" </summary> 1962 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 1963 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] ClearOneofBool()1964 public void ClearOneofBool() { 1965 if (HasOneofBool) { 1966 ClearOneofField(); 1967 } 1968 } 1969 1970 /// <summary>Field number for the "oneof_uint64" field.</summary> 1971 public const int OneofUint64FieldNumber = 116; 1972 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 1973 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 1974 public ulong OneofUint64 { 1975 get { return HasOneofUint64 ? (ulong) oneofField_ : 0UL; } 1976 set { 1977 oneofField_ = value; 1978 oneofFieldCase_ = OneofFieldOneofCase.OneofUint64; 1979 } 1980 } 1981 /// <summary>Gets whether the "oneof_uint64" field is set</summary> 1982 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 1983 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 1984 public bool HasOneofUint64 { 1985 get { return oneofFieldCase_ == OneofFieldOneofCase.OneofUint64; } 1986 } 1987 /// <summary> Clears the value of the oneof if it's currently set to "oneof_uint64" </summary> 1988 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 1989 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] ClearOneofUint64()1990 public void ClearOneofUint64() { 1991 if (HasOneofUint64) { 1992 ClearOneofField(); 1993 } 1994 } 1995 1996 /// <summary>Field number for the "oneof_float" field.</summary> 1997 public const int OneofFloatFieldNumber = 117; 1998 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 1999 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 2000 public float OneofFloat { 2001 get { return HasOneofFloat ? (float) oneofField_ : 0F; } 2002 set { 2003 oneofField_ = value; 2004 oneofFieldCase_ = OneofFieldOneofCase.OneofFloat; 2005 } 2006 } 2007 /// <summary>Gets whether the "oneof_float" field is set</summary> 2008 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 2009 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 2010 public bool HasOneofFloat { 2011 get { return oneofFieldCase_ == OneofFieldOneofCase.OneofFloat; } 2012 } 2013 /// <summary> Clears the value of the oneof if it's currently set to "oneof_float" </summary> 2014 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 2015 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] ClearOneofFloat()2016 public void ClearOneofFloat() { 2017 if (HasOneofFloat) { 2018 ClearOneofField(); 2019 } 2020 } 2021 2022 /// <summary>Field number for the "oneof_double" field.</summary> 2023 public const int OneofDoubleFieldNumber = 118; 2024 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 2025 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 2026 public double OneofDouble { 2027 get { return HasOneofDouble ? (double) oneofField_ : 0D; } 2028 set { 2029 oneofField_ = value; 2030 oneofFieldCase_ = OneofFieldOneofCase.OneofDouble; 2031 } 2032 } 2033 /// <summary>Gets whether the "oneof_double" field is set</summary> 2034 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 2035 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 2036 public bool HasOneofDouble { 2037 get { return oneofFieldCase_ == OneofFieldOneofCase.OneofDouble; } 2038 } 2039 /// <summary> Clears the value of the oneof if it's currently set to "oneof_double" </summary> 2040 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 2041 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] ClearOneofDouble()2042 public void ClearOneofDouble() { 2043 if (HasOneofDouble) { 2044 ClearOneofField(); 2045 } 2046 } 2047 2048 /// <summary>Field number for the "oneof_enum" field.</summary> 2049 public const int OneofEnumFieldNumber = 119; 2050 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 2051 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 2052 public global::ProtobufTestMessages.Proto2.TestAllTypesProto2.Types.NestedEnum OneofEnum { 2053 get { return HasOneofEnum ? (global::ProtobufTestMessages.Proto2.TestAllTypesProto2.Types.NestedEnum) oneofField_ : global::ProtobufTestMessages.Proto2.TestAllTypesProto2.Types.NestedEnum.Foo; } 2054 set { 2055 oneofField_ = value; 2056 oneofFieldCase_ = OneofFieldOneofCase.OneofEnum; 2057 } 2058 } 2059 /// <summary>Gets whether the "oneof_enum" field is set</summary> 2060 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 2061 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 2062 public bool HasOneofEnum { 2063 get { return oneofFieldCase_ == OneofFieldOneofCase.OneofEnum; } 2064 } 2065 /// <summary> Clears the value of the oneof if it's currently set to "oneof_enum" </summary> 2066 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 2067 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] ClearOneofEnum()2068 public void ClearOneofEnum() { 2069 if (HasOneofEnum) { 2070 ClearOneofField(); 2071 } 2072 } 2073 2074 /// <summary>Field number for the "data" field.</summary> 2075 public const int DataFieldNumber = 201; 2076 private global::ProtobufTestMessages.Proto2.TestAllTypesProto2.Types.Data data_; 2077 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 2078 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 2079 public global::ProtobufTestMessages.Proto2.TestAllTypesProto2.Types.Data Data { 2080 get { return data_; } 2081 set { 2082 data_ = value; 2083 } 2084 } 2085 /// <summary>Gets whether the data field is set</summary> 2086 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 2087 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 2088 public bool HasData { 2089 get { return data_ != null; } 2090 } 2091 /// <summary>Clears the value of the data field</summary> 2092 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 2093 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] ClearData()2094 public void ClearData() { 2095 data_ = null; 2096 } 2097 2098 /// <summary>Field number for the "multiwordgroupfield" field.</summary> 2099 public const int MultiWordGroupFieldFieldNumber = 204; 2100 private global::ProtobufTestMessages.Proto2.TestAllTypesProto2.Types.MultiWordGroupField multiWordGroupField_; 2101 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 2102 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 2103 public global::ProtobufTestMessages.Proto2.TestAllTypesProto2.Types.MultiWordGroupField MultiWordGroupField { 2104 get { return multiWordGroupField_; } 2105 set { 2106 multiWordGroupField_ = value; 2107 } 2108 } 2109 /// <summary>Gets whether the multiwordgroupfield field is set</summary> 2110 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 2111 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 2112 public bool HasMultiWordGroupField { 2113 get { return multiWordGroupField_ != null; } 2114 } 2115 /// <summary>Clears the value of the multiwordgroupfield field</summary> 2116 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 2117 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] ClearMultiWordGroupField()2118 public void ClearMultiWordGroupField() { 2119 multiWordGroupField_ = null; 2120 } 2121 2122 /// <summary>Field number for the "default_int32" field.</summary> 2123 public const int DefaultInt32FieldNumber = 241; 2124 private readonly static int DefaultInt32DefaultValue = -123456789; 2125 2126 private int defaultInt32_; 2127 /// <summary> 2128 /// default values 2129 /// </summary> 2130 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 2131 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 2132 public int DefaultInt32 { 2133 get { if ((_hasBits0 & 32768) != 0) { return defaultInt32_; } else { return DefaultInt32DefaultValue; } } 2134 set { 2135 _hasBits0 |= 32768; 2136 defaultInt32_ = value; 2137 } 2138 } 2139 /// <summary>Gets whether the "default_int32" field is set</summary> 2140 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 2141 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 2142 public bool HasDefaultInt32 { 2143 get { return (_hasBits0 & 32768) != 0; } 2144 } 2145 /// <summary>Clears the value of the "default_int32" field</summary> 2146 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 2147 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] ClearDefaultInt32()2148 public void ClearDefaultInt32() { 2149 _hasBits0 &= ~32768; 2150 } 2151 2152 /// <summary>Field number for the "default_int64" field.</summary> 2153 public const int DefaultInt64FieldNumber = 242; 2154 private readonly static long DefaultInt64DefaultValue = -9123456789123456789L; 2155 2156 private long defaultInt64_; 2157 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 2158 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 2159 public long DefaultInt64 { 2160 get { if ((_hasBits0 & 65536) != 0) { return defaultInt64_; } else { return DefaultInt64DefaultValue; } } 2161 set { 2162 _hasBits0 |= 65536; 2163 defaultInt64_ = value; 2164 } 2165 } 2166 /// <summary>Gets whether the "default_int64" field is set</summary> 2167 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 2168 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 2169 public bool HasDefaultInt64 { 2170 get { return (_hasBits0 & 65536) != 0; } 2171 } 2172 /// <summary>Clears the value of the "default_int64" field</summary> 2173 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 2174 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] ClearDefaultInt64()2175 public void ClearDefaultInt64() { 2176 _hasBits0 &= ~65536; 2177 } 2178 2179 /// <summary>Field number for the "default_uint32" field.</summary> 2180 public const int DefaultUint32FieldNumber = 243; 2181 private readonly static uint DefaultUint32DefaultValue = 2123456789; 2182 2183 private uint defaultUint32_; 2184 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 2185 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 2186 public uint DefaultUint32 { 2187 get { if ((_hasBits0 & 131072) != 0) { return defaultUint32_; } else { return DefaultUint32DefaultValue; } } 2188 set { 2189 _hasBits0 |= 131072; 2190 defaultUint32_ = value; 2191 } 2192 } 2193 /// <summary>Gets whether the "default_uint32" field is set</summary> 2194 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 2195 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 2196 public bool HasDefaultUint32 { 2197 get { return (_hasBits0 & 131072) != 0; } 2198 } 2199 /// <summary>Clears the value of the "default_uint32" field</summary> 2200 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 2201 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] ClearDefaultUint32()2202 public void ClearDefaultUint32() { 2203 _hasBits0 &= ~131072; 2204 } 2205 2206 /// <summary>Field number for the "default_uint64" field.</summary> 2207 public const int DefaultUint64FieldNumber = 244; 2208 private readonly static ulong DefaultUint64DefaultValue = 10123456789123456789UL; 2209 2210 private ulong defaultUint64_; 2211 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 2212 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 2213 public ulong DefaultUint64 { 2214 get { if ((_hasBits0 & 262144) != 0) { return defaultUint64_; } else { return DefaultUint64DefaultValue; } } 2215 set { 2216 _hasBits0 |= 262144; 2217 defaultUint64_ = value; 2218 } 2219 } 2220 /// <summary>Gets whether the "default_uint64" field is set</summary> 2221 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 2222 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 2223 public bool HasDefaultUint64 { 2224 get { return (_hasBits0 & 262144) != 0; } 2225 } 2226 /// <summary>Clears the value of the "default_uint64" field</summary> 2227 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 2228 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] ClearDefaultUint64()2229 public void ClearDefaultUint64() { 2230 _hasBits0 &= ~262144; 2231 } 2232 2233 /// <summary>Field number for the "default_sint32" field.</summary> 2234 public const int DefaultSint32FieldNumber = 245; 2235 private readonly static int DefaultSint32DefaultValue = -123456789; 2236 2237 private int defaultSint32_; 2238 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 2239 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 2240 public int DefaultSint32 { 2241 get { if ((_hasBits0 & 524288) != 0) { return defaultSint32_; } else { return DefaultSint32DefaultValue; } } 2242 set { 2243 _hasBits0 |= 524288; 2244 defaultSint32_ = value; 2245 } 2246 } 2247 /// <summary>Gets whether the "default_sint32" field is set</summary> 2248 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 2249 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 2250 public bool HasDefaultSint32 { 2251 get { return (_hasBits0 & 524288) != 0; } 2252 } 2253 /// <summary>Clears the value of the "default_sint32" field</summary> 2254 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 2255 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] ClearDefaultSint32()2256 public void ClearDefaultSint32() { 2257 _hasBits0 &= ~524288; 2258 } 2259 2260 /// <summary>Field number for the "default_sint64" field.</summary> 2261 public const int DefaultSint64FieldNumber = 246; 2262 private readonly static long DefaultSint64DefaultValue = -9123456789123456789L; 2263 2264 private long defaultSint64_; 2265 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 2266 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 2267 public long DefaultSint64 { 2268 get { if ((_hasBits0 & 1048576) != 0) { return defaultSint64_; } else { return DefaultSint64DefaultValue; } } 2269 set { 2270 _hasBits0 |= 1048576; 2271 defaultSint64_ = value; 2272 } 2273 } 2274 /// <summary>Gets whether the "default_sint64" field is set</summary> 2275 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 2276 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 2277 public bool HasDefaultSint64 { 2278 get { return (_hasBits0 & 1048576) != 0; } 2279 } 2280 /// <summary>Clears the value of the "default_sint64" field</summary> 2281 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 2282 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] ClearDefaultSint64()2283 public void ClearDefaultSint64() { 2284 _hasBits0 &= ~1048576; 2285 } 2286 2287 /// <summary>Field number for the "default_fixed32" field.</summary> 2288 public const int DefaultFixed32FieldNumber = 247; 2289 private readonly static uint DefaultFixed32DefaultValue = 2123456789; 2290 2291 private uint defaultFixed32_; 2292 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 2293 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 2294 public uint DefaultFixed32 { 2295 get { if ((_hasBits0 & 2097152) != 0) { return defaultFixed32_; } else { return DefaultFixed32DefaultValue; } } 2296 set { 2297 _hasBits0 |= 2097152; 2298 defaultFixed32_ = value; 2299 } 2300 } 2301 /// <summary>Gets whether the "default_fixed32" field is set</summary> 2302 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 2303 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 2304 public bool HasDefaultFixed32 { 2305 get { return (_hasBits0 & 2097152) != 0; } 2306 } 2307 /// <summary>Clears the value of the "default_fixed32" field</summary> 2308 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 2309 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] ClearDefaultFixed32()2310 public void ClearDefaultFixed32() { 2311 _hasBits0 &= ~2097152; 2312 } 2313 2314 /// <summary>Field number for the "default_fixed64" field.</summary> 2315 public const int DefaultFixed64FieldNumber = 248; 2316 private readonly static ulong DefaultFixed64DefaultValue = 10123456789123456789UL; 2317 2318 private ulong defaultFixed64_; 2319 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 2320 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 2321 public ulong DefaultFixed64 { 2322 get { if ((_hasBits0 & 4194304) != 0) { return defaultFixed64_; } else { return DefaultFixed64DefaultValue; } } 2323 set { 2324 _hasBits0 |= 4194304; 2325 defaultFixed64_ = value; 2326 } 2327 } 2328 /// <summary>Gets whether the "default_fixed64" field is set</summary> 2329 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 2330 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 2331 public bool HasDefaultFixed64 { 2332 get { return (_hasBits0 & 4194304) != 0; } 2333 } 2334 /// <summary>Clears the value of the "default_fixed64" field</summary> 2335 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 2336 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] ClearDefaultFixed64()2337 public void ClearDefaultFixed64() { 2338 _hasBits0 &= ~4194304; 2339 } 2340 2341 /// <summary>Field number for the "default_sfixed32" field.</summary> 2342 public const int DefaultSfixed32FieldNumber = 249; 2343 private readonly static int DefaultSfixed32DefaultValue = -123456789; 2344 2345 private int defaultSfixed32_; 2346 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 2347 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 2348 public int DefaultSfixed32 { 2349 get { if ((_hasBits0 & 8388608) != 0) { return defaultSfixed32_; } else { return DefaultSfixed32DefaultValue; } } 2350 set { 2351 _hasBits0 |= 8388608; 2352 defaultSfixed32_ = value; 2353 } 2354 } 2355 /// <summary>Gets whether the "default_sfixed32" field is set</summary> 2356 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 2357 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 2358 public bool HasDefaultSfixed32 { 2359 get { return (_hasBits0 & 8388608) != 0; } 2360 } 2361 /// <summary>Clears the value of the "default_sfixed32" field</summary> 2362 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 2363 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] ClearDefaultSfixed32()2364 public void ClearDefaultSfixed32() { 2365 _hasBits0 &= ~8388608; 2366 } 2367 2368 /// <summary>Field number for the "default_sfixed64" field.</summary> 2369 public const int DefaultSfixed64FieldNumber = 250; 2370 private readonly static long DefaultSfixed64DefaultValue = -9123456789123456789L; 2371 2372 private long defaultSfixed64_; 2373 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 2374 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 2375 public long DefaultSfixed64 { 2376 get { if ((_hasBits0 & 16777216) != 0) { return defaultSfixed64_; } else { return DefaultSfixed64DefaultValue; } } 2377 set { 2378 _hasBits0 |= 16777216; 2379 defaultSfixed64_ = value; 2380 } 2381 } 2382 /// <summary>Gets whether the "default_sfixed64" field is set</summary> 2383 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 2384 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 2385 public bool HasDefaultSfixed64 { 2386 get { return (_hasBits0 & 16777216) != 0; } 2387 } 2388 /// <summary>Clears the value of the "default_sfixed64" field</summary> 2389 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 2390 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] ClearDefaultSfixed64()2391 public void ClearDefaultSfixed64() { 2392 _hasBits0 &= ~16777216; 2393 } 2394 2395 /// <summary>Field number for the "default_float" field.</summary> 2396 public const int DefaultFloatFieldNumber = 251; 2397 private readonly static float DefaultFloatDefaultValue = 9e+09F; 2398 2399 private float defaultFloat_; 2400 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 2401 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 2402 public float DefaultFloat { 2403 get { if ((_hasBits0 & 33554432) != 0) { return defaultFloat_; } else { return DefaultFloatDefaultValue; } } 2404 set { 2405 _hasBits0 |= 33554432; 2406 defaultFloat_ = value; 2407 } 2408 } 2409 /// <summary>Gets whether the "default_float" field is set</summary> 2410 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 2411 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 2412 public bool HasDefaultFloat { 2413 get { return (_hasBits0 & 33554432) != 0; } 2414 } 2415 /// <summary>Clears the value of the "default_float" field</summary> 2416 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 2417 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] ClearDefaultFloat()2418 public void ClearDefaultFloat() { 2419 _hasBits0 &= ~33554432; 2420 } 2421 2422 /// <summary>Field number for the "default_double" field.</summary> 2423 public const int DefaultDoubleFieldNumber = 252; 2424 private readonly static double DefaultDoubleDefaultValue = 7e+22D; 2425 2426 private double defaultDouble_; 2427 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 2428 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 2429 public double DefaultDouble { 2430 get { if ((_hasBits0 & 67108864) != 0) { return defaultDouble_; } else { return DefaultDoubleDefaultValue; } } 2431 set { 2432 _hasBits0 |= 67108864; 2433 defaultDouble_ = value; 2434 } 2435 } 2436 /// <summary>Gets whether the "default_double" field is set</summary> 2437 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 2438 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 2439 public bool HasDefaultDouble { 2440 get { return (_hasBits0 & 67108864) != 0; } 2441 } 2442 /// <summary>Clears the value of the "default_double" field</summary> 2443 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 2444 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] ClearDefaultDouble()2445 public void ClearDefaultDouble() { 2446 _hasBits0 &= ~67108864; 2447 } 2448 2449 /// <summary>Field number for the "default_bool" field.</summary> 2450 public const int DefaultBoolFieldNumber = 253; 2451 private readonly static bool DefaultBoolDefaultValue = true; 2452 2453 private bool defaultBool_; 2454 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 2455 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 2456 public bool DefaultBool { 2457 get { if ((_hasBits0 & 134217728) != 0) { return defaultBool_; } else { return DefaultBoolDefaultValue; } } 2458 set { 2459 _hasBits0 |= 134217728; 2460 defaultBool_ = value; 2461 } 2462 } 2463 /// <summary>Gets whether the "default_bool" field is set</summary> 2464 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 2465 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 2466 public bool HasDefaultBool { 2467 get { return (_hasBits0 & 134217728) != 0; } 2468 } 2469 /// <summary>Clears the value of the "default_bool" field</summary> 2470 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 2471 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] ClearDefaultBool()2472 public void ClearDefaultBool() { 2473 _hasBits0 &= ~134217728; 2474 } 2475 2476 /// <summary>Field number for the "default_string" field.</summary> 2477 public const int DefaultStringFieldNumber = 254; 2478 private readonly static string DefaultStringDefaultValue = global::System.Text.Encoding.UTF8.GetString(global::System.Convert.FromBase64String("Um9zZWJ1ZA=="), 0, 7); 2479 2480 private string defaultString_; 2481 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 2482 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 2483 public string DefaultString { 2484 get { return defaultString_ ?? DefaultStringDefaultValue; } 2485 set { 2486 defaultString_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); 2487 } 2488 } 2489 /// <summary>Gets whether the "default_string" field is set</summary> 2490 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 2491 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 2492 public bool HasDefaultString { 2493 get { return defaultString_ != null; } 2494 } 2495 /// <summary>Clears the value of the "default_string" field</summary> 2496 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 2497 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] ClearDefaultString()2498 public void ClearDefaultString() { 2499 defaultString_ = null; 2500 } 2501 2502 /// <summary>Field number for the "default_bytes" field.</summary> 2503 public const int DefaultBytesFieldNumber = 255; 2504 private readonly static pb::ByteString DefaultBytesDefaultValue = pb::ByteString.FromBase64("am9zaHVh"); 2505 2506 private pb::ByteString defaultBytes_; 2507 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 2508 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 2509 public pb::ByteString DefaultBytes { 2510 get { return defaultBytes_ ?? DefaultBytesDefaultValue; } 2511 set { 2512 defaultBytes_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); 2513 } 2514 } 2515 /// <summary>Gets whether the "default_bytes" field is set</summary> 2516 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 2517 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 2518 public bool HasDefaultBytes { 2519 get { return defaultBytes_ != null; } 2520 } 2521 /// <summary>Clears the value of the "default_bytes" field</summary> 2522 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 2523 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] ClearDefaultBytes()2524 public void ClearDefaultBytes() { 2525 defaultBytes_ = null; 2526 } 2527 2528 /// <summary>Field number for the "fieldname1" field.</summary> 2529 public const int Fieldname1FieldNumber = 401; 2530 private readonly static int Fieldname1DefaultValue = 0; 2531 2532 private int fieldname1_; 2533 /// <summary> 2534 /// Test field-name-to-JSON-name convention. 2535 /// (protobuf says names can be any valid C/C++ identifier.) 2536 /// </summary> 2537 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 2538 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 2539 public int Fieldname1 { 2540 get { if ((_hasBits0 & 268435456) != 0) { return fieldname1_; } else { return Fieldname1DefaultValue; } } 2541 set { 2542 _hasBits0 |= 268435456; 2543 fieldname1_ = value; 2544 } 2545 } 2546 /// <summary>Gets whether the "fieldname1" field is set</summary> 2547 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 2548 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 2549 public bool HasFieldname1 { 2550 get { return (_hasBits0 & 268435456) != 0; } 2551 } 2552 /// <summary>Clears the value of the "fieldname1" field</summary> 2553 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 2554 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] ClearFieldname1()2555 public void ClearFieldname1() { 2556 _hasBits0 &= ~268435456; 2557 } 2558 2559 /// <summary>Field number for the "field_name2" field.</summary> 2560 public const int FieldName2FieldNumber = 402; 2561 private readonly static int FieldName2DefaultValue = 0; 2562 2563 private int fieldName2_; 2564 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 2565 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 2566 public int FieldName2 { 2567 get { if ((_hasBits0 & 536870912) != 0) { return fieldName2_; } else { return FieldName2DefaultValue; } } 2568 set { 2569 _hasBits0 |= 536870912; 2570 fieldName2_ = value; 2571 } 2572 } 2573 /// <summary>Gets whether the "field_name2" field is set</summary> 2574 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 2575 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 2576 public bool HasFieldName2 { 2577 get { return (_hasBits0 & 536870912) != 0; } 2578 } 2579 /// <summary>Clears the value of the "field_name2" field</summary> 2580 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 2581 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] ClearFieldName2()2582 public void ClearFieldName2() { 2583 _hasBits0 &= ~536870912; 2584 } 2585 2586 /// <summary>Field number for the "_field_name3" field.</summary> 2587 public const int FieldName3FieldNumber = 403; 2588 private readonly static int FieldName3DefaultValue = 0; 2589 2590 private int FieldName3_; 2591 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 2592 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 2593 public int FieldName3 { 2594 get { if ((_hasBits0 & 1073741824) != 0) { return FieldName3_; } else { return FieldName3DefaultValue; } } 2595 set { 2596 _hasBits0 |= 1073741824; 2597 FieldName3_ = value; 2598 } 2599 } 2600 /// <summary>Gets whether the "_field_name3" field is set</summary> 2601 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 2602 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 2603 public bool HasFieldName3 { 2604 get { return (_hasBits0 & 1073741824) != 0; } 2605 } 2606 /// <summary>Clears the value of the "_field_name3" field</summary> 2607 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 2608 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] ClearFieldName3()2609 public void ClearFieldName3() { 2610 _hasBits0 &= ~1073741824; 2611 } 2612 2613 /// <summary>Field number for the "field__name4_" field.</summary> 2614 public const int FieldName4FieldNumber = 404; 2615 private readonly static int FieldName4DefaultValue = 0; 2616 2617 private int fieldName4_; 2618 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 2619 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 2620 public int FieldName4 { 2621 get { if ((_hasBits0 & -2147483648) != 0) { return fieldName4_; } else { return FieldName4DefaultValue; } } 2622 set { 2623 _hasBits0 |= -2147483648; 2624 fieldName4_ = value; 2625 } 2626 } 2627 /// <summary>Gets whether the "field__name4_" field is set</summary> 2628 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 2629 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 2630 public bool HasFieldName4 { 2631 get { return (_hasBits0 & -2147483648) != 0; } 2632 } 2633 /// <summary>Clears the value of the "field__name4_" field</summary> 2634 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 2635 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] ClearFieldName4()2636 public void ClearFieldName4() { 2637 _hasBits0 &= ~-2147483648; 2638 } 2639 2640 /// <summary>Field number for the "field0name5" field.</summary> 2641 public const int Field0Name5FieldNumber = 405; 2642 private readonly static int Field0Name5DefaultValue = 0; 2643 2644 private int field0Name5_; 2645 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 2646 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 2647 public int Field0Name5 { 2648 get { if ((_hasBits1 & 1) != 0) { return field0Name5_; } else { return Field0Name5DefaultValue; } } 2649 set { 2650 _hasBits1 |= 1; 2651 field0Name5_ = value; 2652 } 2653 } 2654 /// <summary>Gets whether the "field0name5" field is set</summary> 2655 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 2656 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 2657 public bool HasField0Name5 { 2658 get { return (_hasBits1 & 1) != 0; } 2659 } 2660 /// <summary>Clears the value of the "field0name5" field</summary> 2661 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 2662 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] ClearField0Name5()2663 public void ClearField0Name5() { 2664 _hasBits1 &= ~1; 2665 } 2666 2667 /// <summary>Field number for the "field_0_name6" field.</summary> 2668 public const int Field0Name6FieldNumber = 406; 2669 private readonly static int Field0Name6DefaultValue = 0; 2670 2671 private int field0Name6_; 2672 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 2673 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 2674 public int Field0Name6 { 2675 get { if ((_hasBits1 & 2) != 0) { return field0Name6_; } else { return Field0Name6DefaultValue; } } 2676 set { 2677 _hasBits1 |= 2; 2678 field0Name6_ = value; 2679 } 2680 } 2681 /// <summary>Gets whether the "field_0_name6" field is set</summary> 2682 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 2683 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 2684 public bool HasField0Name6 { 2685 get { return (_hasBits1 & 2) != 0; } 2686 } 2687 /// <summary>Clears the value of the "field_0_name6" field</summary> 2688 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 2689 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] ClearField0Name6()2690 public void ClearField0Name6() { 2691 _hasBits1 &= ~2; 2692 } 2693 2694 /// <summary>Field number for the "fieldName7" field.</summary> 2695 public const int FieldName7FieldNumber = 407; 2696 private readonly static int FieldName7DefaultValue = 0; 2697 2698 private int fieldName7_; 2699 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 2700 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 2701 public int FieldName7 { 2702 get { if ((_hasBits1 & 4) != 0) { return fieldName7_; } else { return FieldName7DefaultValue; } } 2703 set { 2704 _hasBits1 |= 4; 2705 fieldName7_ = value; 2706 } 2707 } 2708 /// <summary>Gets whether the "fieldName7" field is set</summary> 2709 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 2710 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 2711 public bool HasFieldName7 { 2712 get { return (_hasBits1 & 4) != 0; } 2713 } 2714 /// <summary>Clears the value of the "fieldName7" field</summary> 2715 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 2716 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] ClearFieldName7()2717 public void ClearFieldName7() { 2718 _hasBits1 &= ~4; 2719 } 2720 2721 /// <summary>Field number for the "FieldName8" field.</summary> 2722 public const int FieldName8FieldNumber = 408; 2723 private readonly static int FieldName8DefaultValue = 0; 2724 2725 private int fieldName8_; 2726 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 2727 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 2728 public int FieldName8 { 2729 get { if ((_hasBits1 & 8) != 0) { return fieldName8_; } else { return FieldName8DefaultValue; } } 2730 set { 2731 _hasBits1 |= 8; 2732 fieldName8_ = value; 2733 } 2734 } 2735 /// <summary>Gets whether the "FieldName8" field is set</summary> 2736 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 2737 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 2738 public bool HasFieldName8 { 2739 get { return (_hasBits1 & 8) != 0; } 2740 } 2741 /// <summary>Clears the value of the "FieldName8" field</summary> 2742 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 2743 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] ClearFieldName8()2744 public void ClearFieldName8() { 2745 _hasBits1 &= ~8; 2746 } 2747 2748 /// <summary>Field number for the "field_Name9" field.</summary> 2749 public const int FieldName9FieldNumber = 409; 2750 private readonly static int FieldName9DefaultValue = 0; 2751 2752 private int fieldName9_; 2753 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 2754 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 2755 public int FieldName9 { 2756 get { if ((_hasBits1 & 16) != 0) { return fieldName9_; } else { return FieldName9DefaultValue; } } 2757 set { 2758 _hasBits1 |= 16; 2759 fieldName9_ = value; 2760 } 2761 } 2762 /// <summary>Gets whether the "field_Name9" field is set</summary> 2763 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 2764 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 2765 public bool HasFieldName9 { 2766 get { return (_hasBits1 & 16) != 0; } 2767 } 2768 /// <summary>Clears the value of the "field_Name9" field</summary> 2769 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 2770 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] ClearFieldName9()2771 public void ClearFieldName9() { 2772 _hasBits1 &= ~16; 2773 } 2774 2775 /// <summary>Field number for the "Field_Name10" field.</summary> 2776 public const int FieldName10FieldNumber = 410; 2777 private readonly static int FieldName10DefaultValue = 0; 2778 2779 private int fieldName10_; 2780 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 2781 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 2782 public int FieldName10 { 2783 get { if ((_hasBits1 & 32) != 0) { return fieldName10_; } else { return FieldName10DefaultValue; } } 2784 set { 2785 _hasBits1 |= 32; 2786 fieldName10_ = value; 2787 } 2788 } 2789 /// <summary>Gets whether the "Field_Name10" field is set</summary> 2790 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 2791 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 2792 public bool HasFieldName10 { 2793 get { return (_hasBits1 & 32) != 0; } 2794 } 2795 /// <summary>Clears the value of the "Field_Name10" field</summary> 2796 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 2797 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] ClearFieldName10()2798 public void ClearFieldName10() { 2799 _hasBits1 &= ~32; 2800 } 2801 2802 /// <summary>Field number for the "FIELD_NAME11" field.</summary> 2803 public const int FIELDNAME11FieldNumber = 411; 2804 private readonly static int FIELDNAME11DefaultValue = 0; 2805 2806 private int fIELDNAME11_; 2807 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 2808 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 2809 public int FIELDNAME11 { 2810 get { if ((_hasBits1 & 64) != 0) { return fIELDNAME11_; } else { return FIELDNAME11DefaultValue; } } 2811 set { 2812 _hasBits1 |= 64; 2813 fIELDNAME11_ = value; 2814 } 2815 } 2816 /// <summary>Gets whether the "FIELD_NAME11" field is set</summary> 2817 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 2818 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 2819 public bool HasFIELDNAME11 { 2820 get { return (_hasBits1 & 64) != 0; } 2821 } 2822 /// <summary>Clears the value of the "FIELD_NAME11" field</summary> 2823 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 2824 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] ClearFIELDNAME11()2825 public void ClearFIELDNAME11() { 2826 _hasBits1 &= ~64; 2827 } 2828 2829 /// <summary>Field number for the "FIELD_name12" field.</summary> 2830 public const int FIELDName12FieldNumber = 412; 2831 private readonly static int FIELDName12DefaultValue = 0; 2832 2833 private int fIELDName12_; 2834 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 2835 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 2836 public int FIELDName12 { 2837 get { if ((_hasBits1 & 128) != 0) { return fIELDName12_; } else { return FIELDName12DefaultValue; } } 2838 set { 2839 _hasBits1 |= 128; 2840 fIELDName12_ = value; 2841 } 2842 } 2843 /// <summary>Gets whether the "FIELD_name12" field is set</summary> 2844 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 2845 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 2846 public bool HasFIELDName12 { 2847 get { return (_hasBits1 & 128) != 0; } 2848 } 2849 /// <summary>Clears the value of the "FIELD_name12" field</summary> 2850 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 2851 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] ClearFIELDName12()2852 public void ClearFIELDName12() { 2853 _hasBits1 &= ~128; 2854 } 2855 2856 /// <summary>Field number for the "__field_name13" field.</summary> 2857 public const int FieldName13FieldNumber = 413; 2858 private readonly static int FieldName13DefaultValue = 0; 2859 2860 private int FieldName13_; 2861 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 2862 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 2863 public int FieldName13 { 2864 get { if ((_hasBits1 & 256) != 0) { return FieldName13_; } else { return FieldName13DefaultValue; } } 2865 set { 2866 _hasBits1 |= 256; 2867 FieldName13_ = value; 2868 } 2869 } 2870 /// <summary>Gets whether the "__field_name13" field is set</summary> 2871 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 2872 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 2873 public bool HasFieldName13 { 2874 get { return (_hasBits1 & 256) != 0; } 2875 } 2876 /// <summary>Clears the value of the "__field_name13" field</summary> 2877 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 2878 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] ClearFieldName13()2879 public void ClearFieldName13() { 2880 _hasBits1 &= ~256; 2881 } 2882 2883 /// <summary>Field number for the "__Field_name14" field.</summary> 2884 public const int FieldName14FieldNumber = 414; 2885 private readonly static int FieldName14DefaultValue = 0; 2886 2887 private int FieldName14_; 2888 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 2889 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 2890 public int FieldName14 { 2891 get { if ((_hasBits1 & 512) != 0) { return FieldName14_; } else { return FieldName14DefaultValue; } } 2892 set { 2893 _hasBits1 |= 512; 2894 FieldName14_ = value; 2895 } 2896 } 2897 /// <summary>Gets whether the "__Field_name14" field is set</summary> 2898 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 2899 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 2900 public bool HasFieldName14 { 2901 get { return (_hasBits1 & 512) != 0; } 2902 } 2903 /// <summary>Clears the value of the "__Field_name14" field</summary> 2904 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 2905 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] ClearFieldName14()2906 public void ClearFieldName14() { 2907 _hasBits1 &= ~512; 2908 } 2909 2910 /// <summary>Field number for the "field__name15" field.</summary> 2911 public const int FieldName15FieldNumber = 415; 2912 private readonly static int FieldName15DefaultValue = 0; 2913 2914 private int fieldName15_; 2915 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 2916 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 2917 public int FieldName15 { 2918 get { if ((_hasBits1 & 1024) != 0) { return fieldName15_; } else { return FieldName15DefaultValue; } } 2919 set { 2920 _hasBits1 |= 1024; 2921 fieldName15_ = value; 2922 } 2923 } 2924 /// <summary>Gets whether the "field__name15" field is set</summary> 2925 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 2926 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 2927 public bool HasFieldName15 { 2928 get { return (_hasBits1 & 1024) != 0; } 2929 } 2930 /// <summary>Clears the value of the "field__name15" field</summary> 2931 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 2932 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] ClearFieldName15()2933 public void ClearFieldName15() { 2934 _hasBits1 &= ~1024; 2935 } 2936 2937 /// <summary>Field number for the "field__Name16" field.</summary> 2938 public const int FieldName16FieldNumber = 416; 2939 private readonly static int FieldName16DefaultValue = 0; 2940 2941 private int fieldName16_; 2942 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 2943 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 2944 public int FieldName16 { 2945 get { if ((_hasBits1 & 2048) != 0) { return fieldName16_; } else { return FieldName16DefaultValue; } } 2946 set { 2947 _hasBits1 |= 2048; 2948 fieldName16_ = value; 2949 } 2950 } 2951 /// <summary>Gets whether the "field__Name16" field is set</summary> 2952 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 2953 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 2954 public bool HasFieldName16 { 2955 get { return (_hasBits1 & 2048) != 0; } 2956 } 2957 /// <summary>Clears the value of the "field__Name16" field</summary> 2958 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 2959 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] ClearFieldName16()2960 public void ClearFieldName16() { 2961 _hasBits1 &= ~2048; 2962 } 2963 2964 /// <summary>Field number for the "field_name17__" field.</summary> 2965 public const int FieldName17FieldNumber = 417; 2966 private readonly static int FieldName17DefaultValue = 0; 2967 2968 private int fieldName17_; 2969 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 2970 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 2971 public int FieldName17 { 2972 get { if ((_hasBits1 & 4096) != 0) { return fieldName17_; } else { return FieldName17DefaultValue; } } 2973 set { 2974 _hasBits1 |= 4096; 2975 fieldName17_ = value; 2976 } 2977 } 2978 /// <summary>Gets whether the "field_name17__" field is set</summary> 2979 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 2980 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 2981 public bool HasFieldName17 { 2982 get { return (_hasBits1 & 4096) != 0; } 2983 } 2984 /// <summary>Clears the value of the "field_name17__" field</summary> 2985 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 2986 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] ClearFieldName17()2987 public void ClearFieldName17() { 2988 _hasBits1 &= ~4096; 2989 } 2990 2991 /// <summary>Field number for the "Field_name18__" field.</summary> 2992 public const int FieldName18FieldNumber = 418; 2993 private readonly static int FieldName18DefaultValue = 0; 2994 2995 private int fieldName18_; 2996 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 2997 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 2998 public int FieldName18 { 2999 get { if ((_hasBits1 & 8192) != 0) { return fieldName18_; } else { return FieldName18DefaultValue; } } 3000 set { 3001 _hasBits1 |= 8192; 3002 fieldName18_ = value; 3003 } 3004 } 3005 /// <summary>Gets whether the "Field_name18__" field is set</summary> 3006 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 3007 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 3008 public bool HasFieldName18 { 3009 get { return (_hasBits1 & 8192) != 0; } 3010 } 3011 /// <summary>Clears the value of the "Field_name18__" field</summary> 3012 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 3013 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] ClearFieldName18()3014 public void ClearFieldName18() { 3015 _hasBits1 &= ~8192; 3016 } 3017 3018 private object oneofField_; 3019 /// <summary>Enum of possible cases for the "oneof_field" oneof.</summary> 3020 public enum OneofFieldOneofCase { 3021 None = 0, 3022 OneofUint32 = 111, 3023 OneofNestedMessage = 112, 3024 OneofString = 113, 3025 OneofBytes = 114, 3026 OneofBool = 115, 3027 OneofUint64 = 116, 3028 OneofFloat = 117, 3029 OneofDouble = 118, 3030 OneofEnum = 119, 3031 } 3032 private OneofFieldOneofCase oneofFieldCase_ = OneofFieldOneofCase.None; 3033 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 3034 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 3035 public OneofFieldOneofCase OneofFieldCase { 3036 get { return oneofFieldCase_; } 3037 } 3038 3039 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 3040 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] ClearOneofField()3041 public void ClearOneofField() { 3042 oneofFieldCase_ = OneofFieldOneofCase.None; 3043 oneofField_ = null; 3044 } 3045 3046 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 3047 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] Equals(object other)3048 public override bool Equals(object other) { 3049 return Equals(other as TestAllTypesProto2); 3050 } 3051 3052 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 3053 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] Equals(TestAllTypesProto2 other)3054 public bool Equals(TestAllTypesProto2 other) { 3055 if (ReferenceEquals(other, null)) { 3056 return false; 3057 } 3058 if (ReferenceEquals(other, this)) { 3059 return true; 3060 } 3061 if (OptionalInt32 != other.OptionalInt32) return false; 3062 if (OptionalInt64 != other.OptionalInt64) return false; 3063 if (OptionalUint32 != other.OptionalUint32) return false; 3064 if (OptionalUint64 != other.OptionalUint64) return false; 3065 if (OptionalSint32 != other.OptionalSint32) return false; 3066 if (OptionalSint64 != other.OptionalSint64) return false; 3067 if (OptionalFixed32 != other.OptionalFixed32) return false; 3068 if (OptionalFixed64 != other.OptionalFixed64) return false; 3069 if (OptionalSfixed32 != other.OptionalSfixed32) return false; 3070 if (OptionalSfixed64 != other.OptionalSfixed64) return false; 3071 if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(OptionalFloat, other.OptionalFloat)) return false; 3072 if (!pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.Equals(OptionalDouble, other.OptionalDouble)) return false; 3073 if (OptionalBool != other.OptionalBool) return false; 3074 if (OptionalString != other.OptionalString) return false; 3075 if (OptionalBytes != other.OptionalBytes) return false; 3076 if (!object.Equals(OptionalNestedMessage, other.OptionalNestedMessage)) return false; 3077 if (!object.Equals(OptionalForeignMessage, other.OptionalForeignMessage)) return false; 3078 if (OptionalNestedEnum != other.OptionalNestedEnum) return false; 3079 if (OptionalForeignEnum != other.OptionalForeignEnum) return false; 3080 if (OptionalStringPiece != other.OptionalStringPiece) return false; 3081 if (OptionalCord != other.OptionalCord) return false; 3082 if (!object.Equals(RecursiveMessage, other.RecursiveMessage)) return false; 3083 if(!repeatedInt32_.Equals(other.repeatedInt32_)) return false; 3084 if(!repeatedInt64_.Equals(other.repeatedInt64_)) return false; 3085 if(!repeatedUint32_.Equals(other.repeatedUint32_)) return false; 3086 if(!repeatedUint64_.Equals(other.repeatedUint64_)) return false; 3087 if(!repeatedSint32_.Equals(other.repeatedSint32_)) return false; 3088 if(!repeatedSint64_.Equals(other.repeatedSint64_)) return false; 3089 if(!repeatedFixed32_.Equals(other.repeatedFixed32_)) return false; 3090 if(!repeatedFixed64_.Equals(other.repeatedFixed64_)) return false; 3091 if(!repeatedSfixed32_.Equals(other.repeatedSfixed32_)) return false; 3092 if(!repeatedSfixed64_.Equals(other.repeatedSfixed64_)) return false; 3093 if(!repeatedFloat_.Equals(other.repeatedFloat_)) return false; 3094 if(!repeatedDouble_.Equals(other.repeatedDouble_)) return false; 3095 if(!repeatedBool_.Equals(other.repeatedBool_)) return false; 3096 if(!repeatedString_.Equals(other.repeatedString_)) return false; 3097 if(!repeatedBytes_.Equals(other.repeatedBytes_)) return false; 3098 if(!repeatedNestedMessage_.Equals(other.repeatedNestedMessage_)) return false; 3099 if(!repeatedForeignMessage_.Equals(other.repeatedForeignMessage_)) return false; 3100 if(!repeatedNestedEnum_.Equals(other.repeatedNestedEnum_)) return false; 3101 if(!repeatedForeignEnum_.Equals(other.repeatedForeignEnum_)) return false; 3102 if(!repeatedStringPiece_.Equals(other.repeatedStringPiece_)) return false; 3103 if(!repeatedCord_.Equals(other.repeatedCord_)) return false; 3104 if(!packedInt32_.Equals(other.packedInt32_)) return false; 3105 if(!packedInt64_.Equals(other.packedInt64_)) return false; 3106 if(!packedUint32_.Equals(other.packedUint32_)) return false; 3107 if(!packedUint64_.Equals(other.packedUint64_)) return false; 3108 if(!packedSint32_.Equals(other.packedSint32_)) return false; 3109 if(!packedSint64_.Equals(other.packedSint64_)) return false; 3110 if(!packedFixed32_.Equals(other.packedFixed32_)) return false; 3111 if(!packedFixed64_.Equals(other.packedFixed64_)) return false; 3112 if(!packedSfixed32_.Equals(other.packedSfixed32_)) return false; 3113 if(!packedSfixed64_.Equals(other.packedSfixed64_)) return false; 3114 if(!packedFloat_.Equals(other.packedFloat_)) return false; 3115 if(!packedDouble_.Equals(other.packedDouble_)) return false; 3116 if(!packedBool_.Equals(other.packedBool_)) return false; 3117 if(!packedNestedEnum_.Equals(other.packedNestedEnum_)) return false; 3118 if(!unpackedInt32_.Equals(other.unpackedInt32_)) return false; 3119 if(!unpackedInt64_.Equals(other.unpackedInt64_)) return false; 3120 if(!unpackedUint32_.Equals(other.unpackedUint32_)) return false; 3121 if(!unpackedUint64_.Equals(other.unpackedUint64_)) return false; 3122 if(!unpackedSint32_.Equals(other.unpackedSint32_)) return false; 3123 if(!unpackedSint64_.Equals(other.unpackedSint64_)) return false; 3124 if(!unpackedFixed32_.Equals(other.unpackedFixed32_)) return false; 3125 if(!unpackedFixed64_.Equals(other.unpackedFixed64_)) return false; 3126 if(!unpackedSfixed32_.Equals(other.unpackedSfixed32_)) return false; 3127 if(!unpackedSfixed64_.Equals(other.unpackedSfixed64_)) return false; 3128 if(!unpackedFloat_.Equals(other.unpackedFloat_)) return false; 3129 if(!unpackedDouble_.Equals(other.unpackedDouble_)) return false; 3130 if(!unpackedBool_.Equals(other.unpackedBool_)) return false; 3131 if(!unpackedNestedEnum_.Equals(other.unpackedNestedEnum_)) return false; 3132 if (!MapInt32Int32.Equals(other.MapInt32Int32)) return false; 3133 if (!MapInt64Int64.Equals(other.MapInt64Int64)) return false; 3134 if (!MapUint32Uint32.Equals(other.MapUint32Uint32)) return false; 3135 if (!MapUint64Uint64.Equals(other.MapUint64Uint64)) return false; 3136 if (!MapSint32Sint32.Equals(other.MapSint32Sint32)) return false; 3137 if (!MapSint64Sint64.Equals(other.MapSint64Sint64)) return false; 3138 if (!MapFixed32Fixed32.Equals(other.MapFixed32Fixed32)) return false; 3139 if (!MapFixed64Fixed64.Equals(other.MapFixed64Fixed64)) return false; 3140 if (!MapSfixed32Sfixed32.Equals(other.MapSfixed32Sfixed32)) return false; 3141 if (!MapSfixed64Sfixed64.Equals(other.MapSfixed64Sfixed64)) return false; 3142 if (!MapInt32Float.Equals(other.MapInt32Float)) return false; 3143 if (!MapInt32Double.Equals(other.MapInt32Double)) return false; 3144 if (!MapBoolBool.Equals(other.MapBoolBool)) return false; 3145 if (!MapStringString.Equals(other.MapStringString)) return false; 3146 if (!MapStringBytes.Equals(other.MapStringBytes)) return false; 3147 if (!MapStringNestedMessage.Equals(other.MapStringNestedMessage)) return false; 3148 if (!MapStringForeignMessage.Equals(other.MapStringForeignMessage)) return false; 3149 if (!MapStringNestedEnum.Equals(other.MapStringNestedEnum)) return false; 3150 if (!MapStringForeignEnum.Equals(other.MapStringForeignEnum)) return false; 3151 if (OneofUint32 != other.OneofUint32) return false; 3152 if (!object.Equals(OneofNestedMessage, other.OneofNestedMessage)) return false; 3153 if (OneofString != other.OneofString) return false; 3154 if (OneofBytes != other.OneofBytes) return false; 3155 if (OneofBool != other.OneofBool) return false; 3156 if (OneofUint64 != other.OneofUint64) return false; 3157 if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(OneofFloat, other.OneofFloat)) return false; 3158 if (!pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.Equals(OneofDouble, other.OneofDouble)) return false; 3159 if (OneofEnum != other.OneofEnum) return false; 3160 if (!object.Equals(Data, other.Data)) return false; 3161 if (!object.Equals(MultiWordGroupField, other.MultiWordGroupField)) return false; 3162 if (DefaultInt32 != other.DefaultInt32) return false; 3163 if (DefaultInt64 != other.DefaultInt64) return false; 3164 if (DefaultUint32 != other.DefaultUint32) return false; 3165 if (DefaultUint64 != other.DefaultUint64) return false; 3166 if (DefaultSint32 != other.DefaultSint32) return false; 3167 if (DefaultSint64 != other.DefaultSint64) return false; 3168 if (DefaultFixed32 != other.DefaultFixed32) return false; 3169 if (DefaultFixed64 != other.DefaultFixed64) return false; 3170 if (DefaultSfixed32 != other.DefaultSfixed32) return false; 3171 if (DefaultSfixed64 != other.DefaultSfixed64) return false; 3172 if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(DefaultFloat, other.DefaultFloat)) return false; 3173 if (!pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.Equals(DefaultDouble, other.DefaultDouble)) return false; 3174 if (DefaultBool != other.DefaultBool) return false; 3175 if (DefaultString != other.DefaultString) return false; 3176 if (DefaultBytes != other.DefaultBytes) return false; 3177 if (Fieldname1 != other.Fieldname1) return false; 3178 if (FieldName2 != other.FieldName2) return false; 3179 if (FieldName3 != other.FieldName3) return false; 3180 if (FieldName4 != other.FieldName4) return false; 3181 if (Field0Name5 != other.Field0Name5) return false; 3182 if (Field0Name6 != other.Field0Name6) return false; 3183 if (FieldName7 != other.FieldName7) return false; 3184 if (FieldName8 != other.FieldName8) return false; 3185 if (FieldName9 != other.FieldName9) return false; 3186 if (FieldName10 != other.FieldName10) return false; 3187 if (FIELDNAME11 != other.FIELDNAME11) return false; 3188 if (FIELDName12 != other.FIELDName12) return false; 3189 if (FieldName13 != other.FieldName13) return false; 3190 if (FieldName14 != other.FieldName14) return false; 3191 if (FieldName15 != other.FieldName15) return false; 3192 if (FieldName16 != other.FieldName16) return false; 3193 if (FieldName17 != other.FieldName17) return false; 3194 if (FieldName18 != other.FieldName18) return false; 3195 if (OneofFieldCase != other.OneofFieldCase) return false; 3196 if (!Equals(_extensions, other._extensions)) { 3197 return false; 3198 } 3199 return Equals(_unknownFields, other._unknownFields); 3200 } 3201 3202 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 3203 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] GetHashCode()3204 public override int GetHashCode() { 3205 int hash = 1; 3206 if (HasOptionalInt32) hash ^= OptionalInt32.GetHashCode(); 3207 if (HasOptionalInt64) hash ^= OptionalInt64.GetHashCode(); 3208 if (HasOptionalUint32) hash ^= OptionalUint32.GetHashCode(); 3209 if (HasOptionalUint64) hash ^= OptionalUint64.GetHashCode(); 3210 if (HasOptionalSint32) hash ^= OptionalSint32.GetHashCode(); 3211 if (HasOptionalSint64) hash ^= OptionalSint64.GetHashCode(); 3212 if (HasOptionalFixed32) hash ^= OptionalFixed32.GetHashCode(); 3213 if (HasOptionalFixed64) hash ^= OptionalFixed64.GetHashCode(); 3214 if (HasOptionalSfixed32) hash ^= OptionalSfixed32.GetHashCode(); 3215 if (HasOptionalSfixed64) hash ^= OptionalSfixed64.GetHashCode(); 3216 if (HasOptionalFloat) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(OptionalFloat); 3217 if (HasOptionalDouble) hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(OptionalDouble); 3218 if (HasOptionalBool) hash ^= OptionalBool.GetHashCode(); 3219 if (HasOptionalString) hash ^= OptionalString.GetHashCode(); 3220 if (HasOptionalBytes) hash ^= OptionalBytes.GetHashCode(); 3221 if (optionalNestedMessage_ != null) hash ^= OptionalNestedMessage.GetHashCode(); 3222 if (optionalForeignMessage_ != null) hash ^= OptionalForeignMessage.GetHashCode(); 3223 if (HasOptionalNestedEnum) hash ^= OptionalNestedEnum.GetHashCode(); 3224 if (HasOptionalForeignEnum) hash ^= OptionalForeignEnum.GetHashCode(); 3225 if (HasOptionalStringPiece) hash ^= OptionalStringPiece.GetHashCode(); 3226 if (HasOptionalCord) hash ^= OptionalCord.GetHashCode(); 3227 if (recursiveMessage_ != null) hash ^= RecursiveMessage.GetHashCode(); 3228 hash ^= repeatedInt32_.GetHashCode(); 3229 hash ^= repeatedInt64_.GetHashCode(); 3230 hash ^= repeatedUint32_.GetHashCode(); 3231 hash ^= repeatedUint64_.GetHashCode(); 3232 hash ^= repeatedSint32_.GetHashCode(); 3233 hash ^= repeatedSint64_.GetHashCode(); 3234 hash ^= repeatedFixed32_.GetHashCode(); 3235 hash ^= repeatedFixed64_.GetHashCode(); 3236 hash ^= repeatedSfixed32_.GetHashCode(); 3237 hash ^= repeatedSfixed64_.GetHashCode(); 3238 hash ^= repeatedFloat_.GetHashCode(); 3239 hash ^= repeatedDouble_.GetHashCode(); 3240 hash ^= repeatedBool_.GetHashCode(); 3241 hash ^= repeatedString_.GetHashCode(); 3242 hash ^= repeatedBytes_.GetHashCode(); 3243 hash ^= repeatedNestedMessage_.GetHashCode(); 3244 hash ^= repeatedForeignMessage_.GetHashCode(); 3245 hash ^= repeatedNestedEnum_.GetHashCode(); 3246 hash ^= repeatedForeignEnum_.GetHashCode(); 3247 hash ^= repeatedStringPiece_.GetHashCode(); 3248 hash ^= repeatedCord_.GetHashCode(); 3249 hash ^= packedInt32_.GetHashCode(); 3250 hash ^= packedInt64_.GetHashCode(); 3251 hash ^= packedUint32_.GetHashCode(); 3252 hash ^= packedUint64_.GetHashCode(); 3253 hash ^= packedSint32_.GetHashCode(); 3254 hash ^= packedSint64_.GetHashCode(); 3255 hash ^= packedFixed32_.GetHashCode(); 3256 hash ^= packedFixed64_.GetHashCode(); 3257 hash ^= packedSfixed32_.GetHashCode(); 3258 hash ^= packedSfixed64_.GetHashCode(); 3259 hash ^= packedFloat_.GetHashCode(); 3260 hash ^= packedDouble_.GetHashCode(); 3261 hash ^= packedBool_.GetHashCode(); 3262 hash ^= packedNestedEnum_.GetHashCode(); 3263 hash ^= unpackedInt32_.GetHashCode(); 3264 hash ^= unpackedInt64_.GetHashCode(); 3265 hash ^= unpackedUint32_.GetHashCode(); 3266 hash ^= unpackedUint64_.GetHashCode(); 3267 hash ^= unpackedSint32_.GetHashCode(); 3268 hash ^= unpackedSint64_.GetHashCode(); 3269 hash ^= unpackedFixed32_.GetHashCode(); 3270 hash ^= unpackedFixed64_.GetHashCode(); 3271 hash ^= unpackedSfixed32_.GetHashCode(); 3272 hash ^= unpackedSfixed64_.GetHashCode(); 3273 hash ^= unpackedFloat_.GetHashCode(); 3274 hash ^= unpackedDouble_.GetHashCode(); 3275 hash ^= unpackedBool_.GetHashCode(); 3276 hash ^= unpackedNestedEnum_.GetHashCode(); 3277 hash ^= MapInt32Int32.GetHashCode(); 3278 hash ^= MapInt64Int64.GetHashCode(); 3279 hash ^= MapUint32Uint32.GetHashCode(); 3280 hash ^= MapUint64Uint64.GetHashCode(); 3281 hash ^= MapSint32Sint32.GetHashCode(); 3282 hash ^= MapSint64Sint64.GetHashCode(); 3283 hash ^= MapFixed32Fixed32.GetHashCode(); 3284 hash ^= MapFixed64Fixed64.GetHashCode(); 3285 hash ^= MapSfixed32Sfixed32.GetHashCode(); 3286 hash ^= MapSfixed64Sfixed64.GetHashCode(); 3287 hash ^= MapInt32Float.GetHashCode(); 3288 hash ^= MapInt32Double.GetHashCode(); 3289 hash ^= MapBoolBool.GetHashCode(); 3290 hash ^= MapStringString.GetHashCode(); 3291 hash ^= MapStringBytes.GetHashCode(); 3292 hash ^= MapStringNestedMessage.GetHashCode(); 3293 hash ^= MapStringForeignMessage.GetHashCode(); 3294 hash ^= MapStringNestedEnum.GetHashCode(); 3295 hash ^= MapStringForeignEnum.GetHashCode(); 3296 if (HasOneofUint32) hash ^= OneofUint32.GetHashCode(); 3297 if (oneofFieldCase_ == OneofFieldOneofCase.OneofNestedMessage) hash ^= OneofNestedMessage.GetHashCode(); 3298 if (HasOneofString) hash ^= OneofString.GetHashCode(); 3299 if (HasOneofBytes) hash ^= OneofBytes.GetHashCode(); 3300 if (HasOneofBool) hash ^= OneofBool.GetHashCode(); 3301 if (HasOneofUint64) hash ^= OneofUint64.GetHashCode(); 3302 if (HasOneofFloat) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(OneofFloat); 3303 if (HasOneofDouble) hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(OneofDouble); 3304 if (HasOneofEnum) hash ^= OneofEnum.GetHashCode(); 3305 if (HasData) hash ^= Data.GetHashCode(); 3306 if (HasMultiWordGroupField) hash ^= MultiWordGroupField.GetHashCode(); 3307 if (HasDefaultInt32) hash ^= DefaultInt32.GetHashCode(); 3308 if (HasDefaultInt64) hash ^= DefaultInt64.GetHashCode(); 3309 if (HasDefaultUint32) hash ^= DefaultUint32.GetHashCode(); 3310 if (HasDefaultUint64) hash ^= DefaultUint64.GetHashCode(); 3311 if (HasDefaultSint32) hash ^= DefaultSint32.GetHashCode(); 3312 if (HasDefaultSint64) hash ^= DefaultSint64.GetHashCode(); 3313 if (HasDefaultFixed32) hash ^= DefaultFixed32.GetHashCode(); 3314 if (HasDefaultFixed64) hash ^= DefaultFixed64.GetHashCode(); 3315 if (HasDefaultSfixed32) hash ^= DefaultSfixed32.GetHashCode(); 3316 if (HasDefaultSfixed64) hash ^= DefaultSfixed64.GetHashCode(); 3317 if (HasDefaultFloat) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(DefaultFloat); 3318 if (HasDefaultDouble) hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(DefaultDouble); 3319 if (HasDefaultBool) hash ^= DefaultBool.GetHashCode(); 3320 if (HasDefaultString) hash ^= DefaultString.GetHashCode(); 3321 if (HasDefaultBytes) hash ^= DefaultBytes.GetHashCode(); 3322 if (HasFieldname1) hash ^= Fieldname1.GetHashCode(); 3323 if (HasFieldName2) hash ^= FieldName2.GetHashCode(); 3324 if (HasFieldName3) hash ^= FieldName3.GetHashCode(); 3325 if (HasFieldName4) hash ^= FieldName4.GetHashCode(); 3326 if (HasField0Name5) hash ^= Field0Name5.GetHashCode(); 3327 if (HasField0Name6) hash ^= Field0Name6.GetHashCode(); 3328 if (HasFieldName7) hash ^= FieldName7.GetHashCode(); 3329 if (HasFieldName8) hash ^= FieldName8.GetHashCode(); 3330 if (HasFieldName9) hash ^= FieldName9.GetHashCode(); 3331 if (HasFieldName10) hash ^= FieldName10.GetHashCode(); 3332 if (HasFIELDNAME11) hash ^= FIELDNAME11.GetHashCode(); 3333 if (HasFIELDName12) hash ^= FIELDName12.GetHashCode(); 3334 if (HasFieldName13) hash ^= FieldName13.GetHashCode(); 3335 if (HasFieldName14) hash ^= FieldName14.GetHashCode(); 3336 if (HasFieldName15) hash ^= FieldName15.GetHashCode(); 3337 if (HasFieldName16) hash ^= FieldName16.GetHashCode(); 3338 if (HasFieldName17) hash ^= FieldName17.GetHashCode(); 3339 if (HasFieldName18) hash ^= FieldName18.GetHashCode(); 3340 hash ^= (int) oneofFieldCase_; 3341 if (_extensions != null) { 3342 hash ^= _extensions.GetHashCode(); 3343 } 3344 if (_unknownFields != null) { 3345 hash ^= _unknownFields.GetHashCode(); 3346 } 3347 return hash; 3348 } 3349 3350 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 3351 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] ToString()3352 public override string ToString() { 3353 return pb::JsonFormatter.ToDiagnosticString(this); 3354 } 3355 3356 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 3357 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] WriteTo(pb::CodedOutputStream output)3358 public void WriteTo(pb::CodedOutputStream output) { 3359 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 3360 output.WriteRawMessage(this); 3361 #else 3362 if (HasOptionalInt32) { 3363 output.WriteRawTag(8); 3364 output.WriteInt32(OptionalInt32); 3365 } 3366 if (HasOptionalInt64) { 3367 output.WriteRawTag(16); 3368 output.WriteInt64(OptionalInt64); 3369 } 3370 if (HasOptionalUint32) { 3371 output.WriteRawTag(24); 3372 output.WriteUInt32(OptionalUint32); 3373 } 3374 if (HasOptionalUint64) { 3375 output.WriteRawTag(32); 3376 output.WriteUInt64(OptionalUint64); 3377 } 3378 if (HasOptionalSint32) { 3379 output.WriteRawTag(40); 3380 output.WriteSInt32(OptionalSint32); 3381 } 3382 if (HasOptionalSint64) { 3383 output.WriteRawTag(48); 3384 output.WriteSInt64(OptionalSint64); 3385 } 3386 if (HasOptionalFixed32) { 3387 output.WriteRawTag(61); 3388 output.WriteFixed32(OptionalFixed32); 3389 } 3390 if (HasOptionalFixed64) { 3391 output.WriteRawTag(65); 3392 output.WriteFixed64(OptionalFixed64); 3393 } 3394 if (HasOptionalSfixed32) { 3395 output.WriteRawTag(77); 3396 output.WriteSFixed32(OptionalSfixed32); 3397 } 3398 if (HasOptionalSfixed64) { 3399 output.WriteRawTag(81); 3400 output.WriteSFixed64(OptionalSfixed64); 3401 } 3402 if (HasOptionalFloat) { 3403 output.WriteRawTag(93); 3404 output.WriteFloat(OptionalFloat); 3405 } 3406 if (HasOptionalDouble) { 3407 output.WriteRawTag(97); 3408 output.WriteDouble(OptionalDouble); 3409 } 3410 if (HasOptionalBool) { 3411 output.WriteRawTag(104); 3412 output.WriteBool(OptionalBool); 3413 } 3414 if (HasOptionalString) { 3415 output.WriteRawTag(114); 3416 output.WriteString(OptionalString); 3417 } 3418 if (HasOptionalBytes) { 3419 output.WriteRawTag(122); 3420 output.WriteBytes(OptionalBytes); 3421 } 3422 if (optionalNestedMessage_ != null) { 3423 output.WriteRawTag(146, 1); 3424 output.WriteMessage(OptionalNestedMessage); 3425 } 3426 if (optionalForeignMessage_ != null) { 3427 output.WriteRawTag(154, 1); 3428 output.WriteMessage(OptionalForeignMessage); 3429 } 3430 if (HasOptionalNestedEnum) { 3431 output.WriteRawTag(168, 1); 3432 output.WriteEnum((int) OptionalNestedEnum); 3433 } 3434 if (HasOptionalForeignEnum) { 3435 output.WriteRawTag(176, 1); 3436 output.WriteEnum((int) OptionalForeignEnum); 3437 } 3438 if (HasOptionalStringPiece) { 3439 output.WriteRawTag(194, 1); 3440 output.WriteString(OptionalStringPiece); 3441 } 3442 if (HasOptionalCord) { 3443 output.WriteRawTag(202, 1); 3444 output.WriteString(OptionalCord); 3445 } 3446 if (recursiveMessage_ != null) { 3447 output.WriteRawTag(218, 1); 3448 output.WriteMessage(RecursiveMessage); 3449 } 3450 repeatedInt32_.WriteTo(output, _repeated_repeatedInt32_codec); 3451 repeatedInt64_.WriteTo(output, _repeated_repeatedInt64_codec); 3452 repeatedUint32_.WriteTo(output, _repeated_repeatedUint32_codec); 3453 repeatedUint64_.WriteTo(output, _repeated_repeatedUint64_codec); 3454 repeatedSint32_.WriteTo(output, _repeated_repeatedSint32_codec); 3455 repeatedSint64_.WriteTo(output, _repeated_repeatedSint64_codec); 3456 repeatedFixed32_.WriteTo(output, _repeated_repeatedFixed32_codec); 3457 repeatedFixed64_.WriteTo(output, _repeated_repeatedFixed64_codec); 3458 repeatedSfixed32_.WriteTo(output, _repeated_repeatedSfixed32_codec); 3459 repeatedSfixed64_.WriteTo(output, _repeated_repeatedSfixed64_codec); 3460 repeatedFloat_.WriteTo(output, _repeated_repeatedFloat_codec); 3461 repeatedDouble_.WriteTo(output, _repeated_repeatedDouble_codec); 3462 repeatedBool_.WriteTo(output, _repeated_repeatedBool_codec); 3463 repeatedString_.WriteTo(output, _repeated_repeatedString_codec); 3464 repeatedBytes_.WriteTo(output, _repeated_repeatedBytes_codec); 3465 repeatedNestedMessage_.WriteTo(output, _repeated_repeatedNestedMessage_codec); 3466 repeatedForeignMessage_.WriteTo(output, _repeated_repeatedForeignMessage_codec); 3467 repeatedNestedEnum_.WriteTo(output, _repeated_repeatedNestedEnum_codec); 3468 repeatedForeignEnum_.WriteTo(output, _repeated_repeatedForeignEnum_codec); 3469 repeatedStringPiece_.WriteTo(output, _repeated_repeatedStringPiece_codec); 3470 repeatedCord_.WriteTo(output, _repeated_repeatedCord_codec); 3471 mapInt32Int32_.WriteTo(output, _map_mapInt32Int32_codec); 3472 mapInt64Int64_.WriteTo(output, _map_mapInt64Int64_codec); 3473 mapUint32Uint32_.WriteTo(output, _map_mapUint32Uint32_codec); 3474 mapUint64Uint64_.WriteTo(output, _map_mapUint64Uint64_codec); 3475 mapSint32Sint32_.WriteTo(output, _map_mapSint32Sint32_codec); 3476 mapSint64Sint64_.WriteTo(output, _map_mapSint64Sint64_codec); 3477 mapFixed32Fixed32_.WriteTo(output, _map_mapFixed32Fixed32_codec); 3478 mapFixed64Fixed64_.WriteTo(output, _map_mapFixed64Fixed64_codec); 3479 mapSfixed32Sfixed32_.WriteTo(output, _map_mapSfixed32Sfixed32_codec); 3480 mapSfixed64Sfixed64_.WriteTo(output, _map_mapSfixed64Sfixed64_codec); 3481 mapInt32Float_.WriteTo(output, _map_mapInt32Float_codec); 3482 mapInt32Double_.WriteTo(output, _map_mapInt32Double_codec); 3483 mapBoolBool_.WriteTo(output, _map_mapBoolBool_codec); 3484 mapStringString_.WriteTo(output, _map_mapStringString_codec); 3485 mapStringBytes_.WriteTo(output, _map_mapStringBytes_codec); 3486 mapStringNestedMessage_.WriteTo(output, _map_mapStringNestedMessage_codec); 3487 mapStringForeignMessage_.WriteTo(output, _map_mapStringForeignMessage_codec); 3488 mapStringNestedEnum_.WriteTo(output, _map_mapStringNestedEnum_codec); 3489 mapStringForeignEnum_.WriteTo(output, _map_mapStringForeignEnum_codec); 3490 packedInt32_.WriteTo(output, _repeated_packedInt32_codec); 3491 packedInt64_.WriteTo(output, _repeated_packedInt64_codec); 3492 packedUint32_.WriteTo(output, _repeated_packedUint32_codec); 3493 packedUint64_.WriteTo(output, _repeated_packedUint64_codec); 3494 packedSint32_.WriteTo(output, _repeated_packedSint32_codec); 3495 packedSint64_.WriteTo(output, _repeated_packedSint64_codec); 3496 packedFixed32_.WriteTo(output, _repeated_packedFixed32_codec); 3497 packedFixed64_.WriteTo(output, _repeated_packedFixed64_codec); 3498 packedSfixed32_.WriteTo(output, _repeated_packedSfixed32_codec); 3499 packedSfixed64_.WriteTo(output, _repeated_packedSfixed64_codec); 3500 packedFloat_.WriteTo(output, _repeated_packedFloat_codec); 3501 packedDouble_.WriteTo(output, _repeated_packedDouble_codec); 3502 packedBool_.WriteTo(output, _repeated_packedBool_codec); 3503 packedNestedEnum_.WriteTo(output, _repeated_packedNestedEnum_codec); 3504 unpackedInt32_.WriteTo(output, _repeated_unpackedInt32_codec); 3505 unpackedInt64_.WriteTo(output, _repeated_unpackedInt64_codec); 3506 unpackedUint32_.WriteTo(output, _repeated_unpackedUint32_codec); 3507 unpackedUint64_.WriteTo(output, _repeated_unpackedUint64_codec); 3508 unpackedSint32_.WriteTo(output, _repeated_unpackedSint32_codec); 3509 unpackedSint64_.WriteTo(output, _repeated_unpackedSint64_codec); 3510 unpackedFixed32_.WriteTo(output, _repeated_unpackedFixed32_codec); 3511 unpackedFixed64_.WriteTo(output, _repeated_unpackedFixed64_codec); 3512 unpackedSfixed32_.WriteTo(output, _repeated_unpackedSfixed32_codec); 3513 unpackedSfixed64_.WriteTo(output, _repeated_unpackedSfixed64_codec); 3514 unpackedFloat_.WriteTo(output, _repeated_unpackedFloat_codec); 3515 unpackedDouble_.WriteTo(output, _repeated_unpackedDouble_codec); 3516 unpackedBool_.WriteTo(output, _repeated_unpackedBool_codec); 3517 unpackedNestedEnum_.WriteTo(output, _repeated_unpackedNestedEnum_codec); 3518 if (HasOneofUint32) { 3519 output.WriteRawTag(248, 6); 3520 output.WriteUInt32(OneofUint32); 3521 } 3522 if (oneofFieldCase_ == OneofFieldOneofCase.OneofNestedMessage) { 3523 output.WriteRawTag(130, 7); 3524 output.WriteMessage(OneofNestedMessage); 3525 } 3526 if (HasOneofString) { 3527 output.WriteRawTag(138, 7); 3528 output.WriteString(OneofString); 3529 } 3530 if (HasOneofBytes) { 3531 output.WriteRawTag(146, 7); 3532 output.WriteBytes(OneofBytes); 3533 } 3534 if (HasOneofBool) { 3535 output.WriteRawTag(152, 7); 3536 output.WriteBool(OneofBool); 3537 } 3538 if (HasOneofUint64) { 3539 output.WriteRawTag(160, 7); 3540 output.WriteUInt64(OneofUint64); 3541 } 3542 if (HasOneofFloat) { 3543 output.WriteRawTag(173, 7); 3544 output.WriteFloat(OneofFloat); 3545 } 3546 if (HasOneofDouble) { 3547 output.WriteRawTag(177, 7); 3548 output.WriteDouble(OneofDouble); 3549 } 3550 if (HasOneofEnum) { 3551 output.WriteRawTag(184, 7); 3552 output.WriteEnum((int) OneofEnum); 3553 } 3554 if (HasData) { 3555 output.WriteRawTag(203, 12); 3556 output.WriteGroup(Data); 3557 output.WriteRawTag(204, 12); 3558 } 3559 if (HasMultiWordGroupField) { 3560 output.WriteRawTag(227, 12); 3561 output.WriteGroup(MultiWordGroupField); 3562 output.WriteRawTag(228, 12); 3563 } 3564 if (HasDefaultInt32) { 3565 output.WriteRawTag(136, 15); 3566 output.WriteInt32(DefaultInt32); 3567 } 3568 if (HasDefaultInt64) { 3569 output.WriteRawTag(144, 15); 3570 output.WriteInt64(DefaultInt64); 3571 } 3572 if (HasDefaultUint32) { 3573 output.WriteRawTag(152, 15); 3574 output.WriteUInt32(DefaultUint32); 3575 } 3576 if (HasDefaultUint64) { 3577 output.WriteRawTag(160, 15); 3578 output.WriteUInt64(DefaultUint64); 3579 } 3580 if (HasDefaultSint32) { 3581 output.WriteRawTag(168, 15); 3582 output.WriteSInt32(DefaultSint32); 3583 } 3584 if (HasDefaultSint64) { 3585 output.WriteRawTag(176, 15); 3586 output.WriteSInt64(DefaultSint64); 3587 } 3588 if (HasDefaultFixed32) { 3589 output.WriteRawTag(189, 15); 3590 output.WriteFixed32(DefaultFixed32); 3591 } 3592 if (HasDefaultFixed64) { 3593 output.WriteRawTag(193, 15); 3594 output.WriteFixed64(DefaultFixed64); 3595 } 3596 if (HasDefaultSfixed32) { 3597 output.WriteRawTag(205, 15); 3598 output.WriteSFixed32(DefaultSfixed32); 3599 } 3600 if (HasDefaultSfixed64) { 3601 output.WriteRawTag(209, 15); 3602 output.WriteSFixed64(DefaultSfixed64); 3603 } 3604 if (HasDefaultFloat) { 3605 output.WriteRawTag(221, 15); 3606 output.WriteFloat(DefaultFloat); 3607 } 3608 if (HasDefaultDouble) { 3609 output.WriteRawTag(225, 15); 3610 output.WriteDouble(DefaultDouble); 3611 } 3612 if (HasDefaultBool) { 3613 output.WriteRawTag(232, 15); 3614 output.WriteBool(DefaultBool); 3615 } 3616 if (HasDefaultString) { 3617 output.WriteRawTag(242, 15); 3618 output.WriteString(DefaultString); 3619 } 3620 if (HasDefaultBytes) { 3621 output.WriteRawTag(250, 15); 3622 output.WriteBytes(DefaultBytes); 3623 } 3624 if (HasFieldname1) { 3625 output.WriteRawTag(136, 25); 3626 output.WriteInt32(Fieldname1); 3627 } 3628 if (HasFieldName2) { 3629 output.WriteRawTag(144, 25); 3630 output.WriteInt32(FieldName2); 3631 } 3632 if (HasFieldName3) { 3633 output.WriteRawTag(152, 25); 3634 output.WriteInt32(FieldName3); 3635 } 3636 if (HasFieldName4) { 3637 output.WriteRawTag(160, 25); 3638 output.WriteInt32(FieldName4); 3639 } 3640 if (HasField0Name5) { 3641 output.WriteRawTag(168, 25); 3642 output.WriteInt32(Field0Name5); 3643 } 3644 if (HasField0Name6) { 3645 output.WriteRawTag(176, 25); 3646 output.WriteInt32(Field0Name6); 3647 } 3648 if (HasFieldName7) { 3649 output.WriteRawTag(184, 25); 3650 output.WriteInt32(FieldName7); 3651 } 3652 if (HasFieldName8) { 3653 output.WriteRawTag(192, 25); 3654 output.WriteInt32(FieldName8); 3655 } 3656 if (HasFieldName9) { 3657 output.WriteRawTag(200, 25); 3658 output.WriteInt32(FieldName9); 3659 } 3660 if (HasFieldName10) { 3661 output.WriteRawTag(208, 25); 3662 output.WriteInt32(FieldName10); 3663 } 3664 if (HasFIELDNAME11) { 3665 output.WriteRawTag(216, 25); 3666 output.WriteInt32(FIELDNAME11); 3667 } 3668 if (HasFIELDName12) { 3669 output.WriteRawTag(224, 25); 3670 output.WriteInt32(FIELDName12); 3671 } 3672 if (HasFieldName13) { 3673 output.WriteRawTag(232, 25); 3674 output.WriteInt32(FieldName13); 3675 } 3676 if (HasFieldName14) { 3677 output.WriteRawTag(240, 25); 3678 output.WriteInt32(FieldName14); 3679 } 3680 if (HasFieldName15) { 3681 output.WriteRawTag(248, 25); 3682 output.WriteInt32(FieldName15); 3683 } 3684 if (HasFieldName16) { 3685 output.WriteRawTag(128, 26); 3686 output.WriteInt32(FieldName16); 3687 } 3688 if (HasFieldName17) { 3689 output.WriteRawTag(136, 26); 3690 output.WriteInt32(FieldName17); 3691 } 3692 if (HasFieldName18) { 3693 output.WriteRawTag(144, 26); 3694 output.WriteInt32(FieldName18); 3695 } 3696 if (_extensions != null) { 3697 _extensions.WriteTo(output); 3698 } 3699 if (_unknownFields != null) { 3700 _unknownFields.WriteTo(output); 3701 } 3702 #endif 3703 } 3704 3705 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 3706 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 3707 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] IBufferMessage.InternalWriteTo(ref pb::WriteContext output)3708 void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { 3709 if (HasOptionalInt32) { 3710 output.WriteRawTag(8); 3711 output.WriteInt32(OptionalInt32); 3712 } 3713 if (HasOptionalInt64) { 3714 output.WriteRawTag(16); 3715 output.WriteInt64(OptionalInt64); 3716 } 3717 if (HasOptionalUint32) { 3718 output.WriteRawTag(24); 3719 output.WriteUInt32(OptionalUint32); 3720 } 3721 if (HasOptionalUint64) { 3722 output.WriteRawTag(32); 3723 output.WriteUInt64(OptionalUint64); 3724 } 3725 if (HasOptionalSint32) { 3726 output.WriteRawTag(40); 3727 output.WriteSInt32(OptionalSint32); 3728 } 3729 if (HasOptionalSint64) { 3730 output.WriteRawTag(48); 3731 output.WriteSInt64(OptionalSint64); 3732 } 3733 if (HasOptionalFixed32) { 3734 output.WriteRawTag(61); 3735 output.WriteFixed32(OptionalFixed32); 3736 } 3737 if (HasOptionalFixed64) { 3738 output.WriteRawTag(65); 3739 output.WriteFixed64(OptionalFixed64); 3740 } 3741 if (HasOptionalSfixed32) { 3742 output.WriteRawTag(77); 3743 output.WriteSFixed32(OptionalSfixed32); 3744 } 3745 if (HasOptionalSfixed64) { 3746 output.WriteRawTag(81); 3747 output.WriteSFixed64(OptionalSfixed64); 3748 } 3749 if (HasOptionalFloat) { 3750 output.WriteRawTag(93); 3751 output.WriteFloat(OptionalFloat); 3752 } 3753 if (HasOptionalDouble) { 3754 output.WriteRawTag(97); 3755 output.WriteDouble(OptionalDouble); 3756 } 3757 if (HasOptionalBool) { 3758 output.WriteRawTag(104); 3759 output.WriteBool(OptionalBool); 3760 } 3761 if (HasOptionalString) { 3762 output.WriteRawTag(114); 3763 output.WriteString(OptionalString); 3764 } 3765 if (HasOptionalBytes) { 3766 output.WriteRawTag(122); 3767 output.WriteBytes(OptionalBytes); 3768 } 3769 if (optionalNestedMessage_ != null) { 3770 output.WriteRawTag(146, 1); 3771 output.WriteMessage(OptionalNestedMessage); 3772 } 3773 if (optionalForeignMessage_ != null) { 3774 output.WriteRawTag(154, 1); 3775 output.WriteMessage(OptionalForeignMessage); 3776 } 3777 if (HasOptionalNestedEnum) { 3778 output.WriteRawTag(168, 1); 3779 output.WriteEnum((int) OptionalNestedEnum); 3780 } 3781 if (HasOptionalForeignEnum) { 3782 output.WriteRawTag(176, 1); 3783 output.WriteEnum((int) OptionalForeignEnum); 3784 } 3785 if (HasOptionalStringPiece) { 3786 output.WriteRawTag(194, 1); 3787 output.WriteString(OptionalStringPiece); 3788 } 3789 if (HasOptionalCord) { 3790 output.WriteRawTag(202, 1); 3791 output.WriteString(OptionalCord); 3792 } 3793 if (recursiveMessage_ != null) { 3794 output.WriteRawTag(218, 1); 3795 output.WriteMessage(RecursiveMessage); 3796 } 3797 repeatedInt32_.WriteTo(ref output, _repeated_repeatedInt32_codec); 3798 repeatedInt64_.WriteTo(ref output, _repeated_repeatedInt64_codec); 3799 repeatedUint32_.WriteTo(ref output, _repeated_repeatedUint32_codec); 3800 repeatedUint64_.WriteTo(ref output, _repeated_repeatedUint64_codec); 3801 repeatedSint32_.WriteTo(ref output, _repeated_repeatedSint32_codec); 3802 repeatedSint64_.WriteTo(ref output, _repeated_repeatedSint64_codec); 3803 repeatedFixed32_.WriteTo(ref output, _repeated_repeatedFixed32_codec); 3804 repeatedFixed64_.WriteTo(ref output, _repeated_repeatedFixed64_codec); 3805 repeatedSfixed32_.WriteTo(ref output, _repeated_repeatedSfixed32_codec); 3806 repeatedSfixed64_.WriteTo(ref output, _repeated_repeatedSfixed64_codec); 3807 repeatedFloat_.WriteTo(ref output, _repeated_repeatedFloat_codec); 3808 repeatedDouble_.WriteTo(ref output, _repeated_repeatedDouble_codec); 3809 repeatedBool_.WriteTo(ref output, _repeated_repeatedBool_codec); 3810 repeatedString_.WriteTo(ref output, _repeated_repeatedString_codec); 3811 repeatedBytes_.WriteTo(ref output, _repeated_repeatedBytes_codec); 3812 repeatedNestedMessage_.WriteTo(ref output, _repeated_repeatedNestedMessage_codec); 3813 repeatedForeignMessage_.WriteTo(ref output, _repeated_repeatedForeignMessage_codec); 3814 repeatedNestedEnum_.WriteTo(ref output, _repeated_repeatedNestedEnum_codec); 3815 repeatedForeignEnum_.WriteTo(ref output, _repeated_repeatedForeignEnum_codec); 3816 repeatedStringPiece_.WriteTo(ref output, _repeated_repeatedStringPiece_codec); 3817 repeatedCord_.WriteTo(ref output, _repeated_repeatedCord_codec); 3818 mapInt32Int32_.WriteTo(ref output, _map_mapInt32Int32_codec); 3819 mapInt64Int64_.WriteTo(ref output, _map_mapInt64Int64_codec); 3820 mapUint32Uint32_.WriteTo(ref output, _map_mapUint32Uint32_codec); 3821 mapUint64Uint64_.WriteTo(ref output, _map_mapUint64Uint64_codec); 3822 mapSint32Sint32_.WriteTo(ref output, _map_mapSint32Sint32_codec); 3823 mapSint64Sint64_.WriteTo(ref output, _map_mapSint64Sint64_codec); 3824 mapFixed32Fixed32_.WriteTo(ref output, _map_mapFixed32Fixed32_codec); 3825 mapFixed64Fixed64_.WriteTo(ref output, _map_mapFixed64Fixed64_codec); 3826 mapSfixed32Sfixed32_.WriteTo(ref output, _map_mapSfixed32Sfixed32_codec); 3827 mapSfixed64Sfixed64_.WriteTo(ref output, _map_mapSfixed64Sfixed64_codec); 3828 mapInt32Float_.WriteTo(ref output, _map_mapInt32Float_codec); 3829 mapInt32Double_.WriteTo(ref output, _map_mapInt32Double_codec); 3830 mapBoolBool_.WriteTo(ref output, _map_mapBoolBool_codec); 3831 mapStringString_.WriteTo(ref output, _map_mapStringString_codec); 3832 mapStringBytes_.WriteTo(ref output, _map_mapStringBytes_codec); 3833 mapStringNestedMessage_.WriteTo(ref output, _map_mapStringNestedMessage_codec); 3834 mapStringForeignMessage_.WriteTo(ref output, _map_mapStringForeignMessage_codec); 3835 mapStringNestedEnum_.WriteTo(ref output, _map_mapStringNestedEnum_codec); 3836 mapStringForeignEnum_.WriteTo(ref output, _map_mapStringForeignEnum_codec); 3837 packedInt32_.WriteTo(ref output, _repeated_packedInt32_codec); 3838 packedInt64_.WriteTo(ref output, _repeated_packedInt64_codec); 3839 packedUint32_.WriteTo(ref output, _repeated_packedUint32_codec); 3840 packedUint64_.WriteTo(ref output, _repeated_packedUint64_codec); 3841 packedSint32_.WriteTo(ref output, _repeated_packedSint32_codec); 3842 packedSint64_.WriteTo(ref output, _repeated_packedSint64_codec); 3843 packedFixed32_.WriteTo(ref output, _repeated_packedFixed32_codec); 3844 packedFixed64_.WriteTo(ref output, _repeated_packedFixed64_codec); 3845 packedSfixed32_.WriteTo(ref output, _repeated_packedSfixed32_codec); 3846 packedSfixed64_.WriteTo(ref output, _repeated_packedSfixed64_codec); 3847 packedFloat_.WriteTo(ref output, _repeated_packedFloat_codec); 3848 packedDouble_.WriteTo(ref output, _repeated_packedDouble_codec); 3849 packedBool_.WriteTo(ref output, _repeated_packedBool_codec); 3850 packedNestedEnum_.WriteTo(ref output, _repeated_packedNestedEnum_codec); 3851 unpackedInt32_.WriteTo(ref output, _repeated_unpackedInt32_codec); 3852 unpackedInt64_.WriteTo(ref output, _repeated_unpackedInt64_codec); 3853 unpackedUint32_.WriteTo(ref output, _repeated_unpackedUint32_codec); 3854 unpackedUint64_.WriteTo(ref output, _repeated_unpackedUint64_codec); 3855 unpackedSint32_.WriteTo(ref output, _repeated_unpackedSint32_codec); 3856 unpackedSint64_.WriteTo(ref output, _repeated_unpackedSint64_codec); 3857 unpackedFixed32_.WriteTo(ref output, _repeated_unpackedFixed32_codec); 3858 unpackedFixed64_.WriteTo(ref output, _repeated_unpackedFixed64_codec); 3859 unpackedSfixed32_.WriteTo(ref output, _repeated_unpackedSfixed32_codec); 3860 unpackedSfixed64_.WriteTo(ref output, _repeated_unpackedSfixed64_codec); 3861 unpackedFloat_.WriteTo(ref output, _repeated_unpackedFloat_codec); 3862 unpackedDouble_.WriteTo(ref output, _repeated_unpackedDouble_codec); 3863 unpackedBool_.WriteTo(ref output, _repeated_unpackedBool_codec); 3864 unpackedNestedEnum_.WriteTo(ref output, _repeated_unpackedNestedEnum_codec); 3865 if (HasOneofUint32) { 3866 output.WriteRawTag(248, 6); 3867 output.WriteUInt32(OneofUint32); 3868 } 3869 if (oneofFieldCase_ == OneofFieldOneofCase.OneofNestedMessage) { 3870 output.WriteRawTag(130, 7); 3871 output.WriteMessage(OneofNestedMessage); 3872 } 3873 if (HasOneofString) { 3874 output.WriteRawTag(138, 7); 3875 output.WriteString(OneofString); 3876 } 3877 if (HasOneofBytes) { 3878 output.WriteRawTag(146, 7); 3879 output.WriteBytes(OneofBytes); 3880 } 3881 if (HasOneofBool) { 3882 output.WriteRawTag(152, 7); 3883 output.WriteBool(OneofBool); 3884 } 3885 if (HasOneofUint64) { 3886 output.WriteRawTag(160, 7); 3887 output.WriteUInt64(OneofUint64); 3888 } 3889 if (HasOneofFloat) { 3890 output.WriteRawTag(173, 7); 3891 output.WriteFloat(OneofFloat); 3892 } 3893 if (HasOneofDouble) { 3894 output.WriteRawTag(177, 7); 3895 output.WriteDouble(OneofDouble); 3896 } 3897 if (HasOneofEnum) { 3898 output.WriteRawTag(184, 7); 3899 output.WriteEnum((int) OneofEnum); 3900 } 3901 if (HasData) { 3902 output.WriteRawTag(203, 12); 3903 output.WriteGroup(Data); 3904 output.WriteRawTag(204, 12); 3905 } 3906 if (HasMultiWordGroupField) { 3907 output.WriteRawTag(227, 12); 3908 output.WriteGroup(MultiWordGroupField); 3909 output.WriteRawTag(228, 12); 3910 } 3911 if (HasDefaultInt32) { 3912 output.WriteRawTag(136, 15); 3913 output.WriteInt32(DefaultInt32); 3914 } 3915 if (HasDefaultInt64) { 3916 output.WriteRawTag(144, 15); 3917 output.WriteInt64(DefaultInt64); 3918 } 3919 if (HasDefaultUint32) { 3920 output.WriteRawTag(152, 15); 3921 output.WriteUInt32(DefaultUint32); 3922 } 3923 if (HasDefaultUint64) { 3924 output.WriteRawTag(160, 15); 3925 output.WriteUInt64(DefaultUint64); 3926 } 3927 if (HasDefaultSint32) { 3928 output.WriteRawTag(168, 15); 3929 output.WriteSInt32(DefaultSint32); 3930 } 3931 if (HasDefaultSint64) { 3932 output.WriteRawTag(176, 15); 3933 output.WriteSInt64(DefaultSint64); 3934 } 3935 if (HasDefaultFixed32) { 3936 output.WriteRawTag(189, 15); 3937 output.WriteFixed32(DefaultFixed32); 3938 } 3939 if (HasDefaultFixed64) { 3940 output.WriteRawTag(193, 15); 3941 output.WriteFixed64(DefaultFixed64); 3942 } 3943 if (HasDefaultSfixed32) { 3944 output.WriteRawTag(205, 15); 3945 output.WriteSFixed32(DefaultSfixed32); 3946 } 3947 if (HasDefaultSfixed64) { 3948 output.WriteRawTag(209, 15); 3949 output.WriteSFixed64(DefaultSfixed64); 3950 } 3951 if (HasDefaultFloat) { 3952 output.WriteRawTag(221, 15); 3953 output.WriteFloat(DefaultFloat); 3954 } 3955 if (HasDefaultDouble) { 3956 output.WriteRawTag(225, 15); 3957 output.WriteDouble(DefaultDouble); 3958 } 3959 if (HasDefaultBool) { 3960 output.WriteRawTag(232, 15); 3961 output.WriteBool(DefaultBool); 3962 } 3963 if (HasDefaultString) { 3964 output.WriteRawTag(242, 15); 3965 output.WriteString(DefaultString); 3966 } 3967 if (HasDefaultBytes) { 3968 output.WriteRawTag(250, 15); 3969 output.WriteBytes(DefaultBytes); 3970 } 3971 if (HasFieldname1) { 3972 output.WriteRawTag(136, 25); 3973 output.WriteInt32(Fieldname1); 3974 } 3975 if (HasFieldName2) { 3976 output.WriteRawTag(144, 25); 3977 output.WriteInt32(FieldName2); 3978 } 3979 if (HasFieldName3) { 3980 output.WriteRawTag(152, 25); 3981 output.WriteInt32(FieldName3); 3982 } 3983 if (HasFieldName4) { 3984 output.WriteRawTag(160, 25); 3985 output.WriteInt32(FieldName4); 3986 } 3987 if (HasField0Name5) { 3988 output.WriteRawTag(168, 25); 3989 output.WriteInt32(Field0Name5); 3990 } 3991 if (HasField0Name6) { 3992 output.WriteRawTag(176, 25); 3993 output.WriteInt32(Field0Name6); 3994 } 3995 if (HasFieldName7) { 3996 output.WriteRawTag(184, 25); 3997 output.WriteInt32(FieldName7); 3998 } 3999 if (HasFieldName8) { 4000 output.WriteRawTag(192, 25); 4001 output.WriteInt32(FieldName8); 4002 } 4003 if (HasFieldName9) { 4004 output.WriteRawTag(200, 25); 4005 output.WriteInt32(FieldName9); 4006 } 4007 if (HasFieldName10) { 4008 output.WriteRawTag(208, 25); 4009 output.WriteInt32(FieldName10); 4010 } 4011 if (HasFIELDNAME11) { 4012 output.WriteRawTag(216, 25); 4013 output.WriteInt32(FIELDNAME11); 4014 } 4015 if (HasFIELDName12) { 4016 output.WriteRawTag(224, 25); 4017 output.WriteInt32(FIELDName12); 4018 } 4019 if (HasFieldName13) { 4020 output.WriteRawTag(232, 25); 4021 output.WriteInt32(FieldName13); 4022 } 4023 if (HasFieldName14) { 4024 output.WriteRawTag(240, 25); 4025 output.WriteInt32(FieldName14); 4026 } 4027 if (HasFieldName15) { 4028 output.WriteRawTag(248, 25); 4029 output.WriteInt32(FieldName15); 4030 } 4031 if (HasFieldName16) { 4032 output.WriteRawTag(128, 26); 4033 output.WriteInt32(FieldName16); 4034 } 4035 if (HasFieldName17) { 4036 output.WriteRawTag(136, 26); 4037 output.WriteInt32(FieldName17); 4038 } 4039 if (HasFieldName18) { 4040 output.WriteRawTag(144, 26); 4041 output.WriteInt32(FieldName18); 4042 } 4043 if (_extensions != null) { 4044 _extensions.WriteTo(ref output); 4045 } 4046 if (_unknownFields != null) { 4047 _unknownFields.WriteTo(ref output); 4048 } 4049 } 4050 #endif 4051 4052 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 4053 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] CalculateSize()4054 public int CalculateSize() { 4055 int size = 0; 4056 if (HasOptionalInt32) { 4057 size += 1 + pb::CodedOutputStream.ComputeInt32Size(OptionalInt32); 4058 } 4059 if (HasOptionalInt64) { 4060 size += 1 + pb::CodedOutputStream.ComputeInt64Size(OptionalInt64); 4061 } 4062 if (HasOptionalUint32) { 4063 size += 1 + pb::CodedOutputStream.ComputeUInt32Size(OptionalUint32); 4064 } 4065 if (HasOptionalUint64) { 4066 size += 1 + pb::CodedOutputStream.ComputeUInt64Size(OptionalUint64); 4067 } 4068 if (HasOptionalSint32) { 4069 size += 1 + pb::CodedOutputStream.ComputeSInt32Size(OptionalSint32); 4070 } 4071 if (HasOptionalSint64) { 4072 size += 1 + pb::CodedOutputStream.ComputeSInt64Size(OptionalSint64); 4073 } 4074 if (HasOptionalFixed32) { 4075 size += 1 + 4; 4076 } 4077 if (HasOptionalFixed64) { 4078 size += 1 + 8; 4079 } 4080 if (HasOptionalSfixed32) { 4081 size += 1 + 4; 4082 } 4083 if (HasOptionalSfixed64) { 4084 size += 1 + 8; 4085 } 4086 if (HasOptionalFloat) { 4087 size += 1 + 4; 4088 } 4089 if (HasOptionalDouble) { 4090 size += 1 + 8; 4091 } 4092 if (HasOptionalBool) { 4093 size += 1 + 1; 4094 } 4095 if (HasOptionalString) { 4096 size += 1 + pb::CodedOutputStream.ComputeStringSize(OptionalString); 4097 } 4098 if (HasOptionalBytes) { 4099 size += 1 + pb::CodedOutputStream.ComputeBytesSize(OptionalBytes); 4100 } 4101 if (optionalNestedMessage_ != null) { 4102 size += 2 + pb::CodedOutputStream.ComputeMessageSize(OptionalNestedMessage); 4103 } 4104 if (optionalForeignMessage_ != null) { 4105 size += 2 + pb::CodedOutputStream.ComputeMessageSize(OptionalForeignMessage); 4106 } 4107 if (HasOptionalNestedEnum) { 4108 size += 2 + pb::CodedOutputStream.ComputeEnumSize((int) OptionalNestedEnum); 4109 } 4110 if (HasOptionalForeignEnum) { 4111 size += 2 + pb::CodedOutputStream.ComputeEnumSize((int) OptionalForeignEnum); 4112 } 4113 if (HasOptionalStringPiece) { 4114 size += 2 + pb::CodedOutputStream.ComputeStringSize(OptionalStringPiece); 4115 } 4116 if (HasOptionalCord) { 4117 size += 2 + pb::CodedOutputStream.ComputeStringSize(OptionalCord); 4118 } 4119 if (recursiveMessage_ != null) { 4120 size += 2 + pb::CodedOutputStream.ComputeMessageSize(RecursiveMessage); 4121 } 4122 size += repeatedInt32_.CalculateSize(_repeated_repeatedInt32_codec); 4123 size += repeatedInt64_.CalculateSize(_repeated_repeatedInt64_codec); 4124 size += repeatedUint32_.CalculateSize(_repeated_repeatedUint32_codec); 4125 size += repeatedUint64_.CalculateSize(_repeated_repeatedUint64_codec); 4126 size += repeatedSint32_.CalculateSize(_repeated_repeatedSint32_codec); 4127 size += repeatedSint64_.CalculateSize(_repeated_repeatedSint64_codec); 4128 size += repeatedFixed32_.CalculateSize(_repeated_repeatedFixed32_codec); 4129 size += repeatedFixed64_.CalculateSize(_repeated_repeatedFixed64_codec); 4130 size += repeatedSfixed32_.CalculateSize(_repeated_repeatedSfixed32_codec); 4131 size += repeatedSfixed64_.CalculateSize(_repeated_repeatedSfixed64_codec); 4132 size += repeatedFloat_.CalculateSize(_repeated_repeatedFloat_codec); 4133 size += repeatedDouble_.CalculateSize(_repeated_repeatedDouble_codec); 4134 size += repeatedBool_.CalculateSize(_repeated_repeatedBool_codec); 4135 size += repeatedString_.CalculateSize(_repeated_repeatedString_codec); 4136 size += repeatedBytes_.CalculateSize(_repeated_repeatedBytes_codec); 4137 size += repeatedNestedMessage_.CalculateSize(_repeated_repeatedNestedMessage_codec); 4138 size += repeatedForeignMessage_.CalculateSize(_repeated_repeatedForeignMessage_codec); 4139 size += repeatedNestedEnum_.CalculateSize(_repeated_repeatedNestedEnum_codec); 4140 size += repeatedForeignEnum_.CalculateSize(_repeated_repeatedForeignEnum_codec); 4141 size += repeatedStringPiece_.CalculateSize(_repeated_repeatedStringPiece_codec); 4142 size += repeatedCord_.CalculateSize(_repeated_repeatedCord_codec); 4143 size += packedInt32_.CalculateSize(_repeated_packedInt32_codec); 4144 size += packedInt64_.CalculateSize(_repeated_packedInt64_codec); 4145 size += packedUint32_.CalculateSize(_repeated_packedUint32_codec); 4146 size += packedUint64_.CalculateSize(_repeated_packedUint64_codec); 4147 size += packedSint32_.CalculateSize(_repeated_packedSint32_codec); 4148 size += packedSint64_.CalculateSize(_repeated_packedSint64_codec); 4149 size += packedFixed32_.CalculateSize(_repeated_packedFixed32_codec); 4150 size += packedFixed64_.CalculateSize(_repeated_packedFixed64_codec); 4151 size += packedSfixed32_.CalculateSize(_repeated_packedSfixed32_codec); 4152 size += packedSfixed64_.CalculateSize(_repeated_packedSfixed64_codec); 4153 size += packedFloat_.CalculateSize(_repeated_packedFloat_codec); 4154 size += packedDouble_.CalculateSize(_repeated_packedDouble_codec); 4155 size += packedBool_.CalculateSize(_repeated_packedBool_codec); 4156 size += packedNestedEnum_.CalculateSize(_repeated_packedNestedEnum_codec); 4157 size += unpackedInt32_.CalculateSize(_repeated_unpackedInt32_codec); 4158 size += unpackedInt64_.CalculateSize(_repeated_unpackedInt64_codec); 4159 size += unpackedUint32_.CalculateSize(_repeated_unpackedUint32_codec); 4160 size += unpackedUint64_.CalculateSize(_repeated_unpackedUint64_codec); 4161 size += unpackedSint32_.CalculateSize(_repeated_unpackedSint32_codec); 4162 size += unpackedSint64_.CalculateSize(_repeated_unpackedSint64_codec); 4163 size += unpackedFixed32_.CalculateSize(_repeated_unpackedFixed32_codec); 4164 size += unpackedFixed64_.CalculateSize(_repeated_unpackedFixed64_codec); 4165 size += unpackedSfixed32_.CalculateSize(_repeated_unpackedSfixed32_codec); 4166 size += unpackedSfixed64_.CalculateSize(_repeated_unpackedSfixed64_codec); 4167 size += unpackedFloat_.CalculateSize(_repeated_unpackedFloat_codec); 4168 size += unpackedDouble_.CalculateSize(_repeated_unpackedDouble_codec); 4169 size += unpackedBool_.CalculateSize(_repeated_unpackedBool_codec); 4170 size += unpackedNestedEnum_.CalculateSize(_repeated_unpackedNestedEnum_codec); 4171 size += mapInt32Int32_.CalculateSize(_map_mapInt32Int32_codec); 4172 size += mapInt64Int64_.CalculateSize(_map_mapInt64Int64_codec); 4173 size += mapUint32Uint32_.CalculateSize(_map_mapUint32Uint32_codec); 4174 size += mapUint64Uint64_.CalculateSize(_map_mapUint64Uint64_codec); 4175 size += mapSint32Sint32_.CalculateSize(_map_mapSint32Sint32_codec); 4176 size += mapSint64Sint64_.CalculateSize(_map_mapSint64Sint64_codec); 4177 size += mapFixed32Fixed32_.CalculateSize(_map_mapFixed32Fixed32_codec); 4178 size += mapFixed64Fixed64_.CalculateSize(_map_mapFixed64Fixed64_codec); 4179 size += mapSfixed32Sfixed32_.CalculateSize(_map_mapSfixed32Sfixed32_codec); 4180 size += mapSfixed64Sfixed64_.CalculateSize(_map_mapSfixed64Sfixed64_codec); 4181 size += mapInt32Float_.CalculateSize(_map_mapInt32Float_codec); 4182 size += mapInt32Double_.CalculateSize(_map_mapInt32Double_codec); 4183 size += mapBoolBool_.CalculateSize(_map_mapBoolBool_codec); 4184 size += mapStringString_.CalculateSize(_map_mapStringString_codec); 4185 size += mapStringBytes_.CalculateSize(_map_mapStringBytes_codec); 4186 size += mapStringNestedMessage_.CalculateSize(_map_mapStringNestedMessage_codec); 4187 size += mapStringForeignMessage_.CalculateSize(_map_mapStringForeignMessage_codec); 4188 size += mapStringNestedEnum_.CalculateSize(_map_mapStringNestedEnum_codec); 4189 size += mapStringForeignEnum_.CalculateSize(_map_mapStringForeignEnum_codec); 4190 if (HasOneofUint32) { 4191 size += 2 + pb::CodedOutputStream.ComputeUInt32Size(OneofUint32); 4192 } 4193 if (oneofFieldCase_ == OneofFieldOneofCase.OneofNestedMessage) { 4194 size += 2 + pb::CodedOutputStream.ComputeMessageSize(OneofNestedMessage); 4195 } 4196 if (HasOneofString) { 4197 size += 2 + pb::CodedOutputStream.ComputeStringSize(OneofString); 4198 } 4199 if (HasOneofBytes) { 4200 size += 2 + pb::CodedOutputStream.ComputeBytesSize(OneofBytes); 4201 } 4202 if (HasOneofBool) { 4203 size += 2 + 1; 4204 } 4205 if (HasOneofUint64) { 4206 size += 2 + pb::CodedOutputStream.ComputeUInt64Size(OneofUint64); 4207 } 4208 if (HasOneofFloat) { 4209 size += 2 + 4; 4210 } 4211 if (HasOneofDouble) { 4212 size += 2 + 8; 4213 } 4214 if (HasOneofEnum) { 4215 size += 2 + pb::CodedOutputStream.ComputeEnumSize((int) OneofEnum); 4216 } 4217 if (HasData) { 4218 size += 4 + pb::CodedOutputStream.ComputeGroupSize(Data); 4219 } 4220 if (HasMultiWordGroupField) { 4221 size += 4 + pb::CodedOutputStream.ComputeGroupSize(MultiWordGroupField); 4222 } 4223 if (HasDefaultInt32) { 4224 size += 2 + pb::CodedOutputStream.ComputeInt32Size(DefaultInt32); 4225 } 4226 if (HasDefaultInt64) { 4227 size += 2 + pb::CodedOutputStream.ComputeInt64Size(DefaultInt64); 4228 } 4229 if (HasDefaultUint32) { 4230 size += 2 + pb::CodedOutputStream.ComputeUInt32Size(DefaultUint32); 4231 } 4232 if (HasDefaultUint64) { 4233 size += 2 + pb::CodedOutputStream.ComputeUInt64Size(DefaultUint64); 4234 } 4235 if (HasDefaultSint32) { 4236 size += 2 + pb::CodedOutputStream.ComputeSInt32Size(DefaultSint32); 4237 } 4238 if (HasDefaultSint64) { 4239 size += 2 + pb::CodedOutputStream.ComputeSInt64Size(DefaultSint64); 4240 } 4241 if (HasDefaultFixed32) { 4242 size += 2 + 4; 4243 } 4244 if (HasDefaultFixed64) { 4245 size += 2 + 8; 4246 } 4247 if (HasDefaultSfixed32) { 4248 size += 2 + 4; 4249 } 4250 if (HasDefaultSfixed64) { 4251 size += 2 + 8; 4252 } 4253 if (HasDefaultFloat) { 4254 size += 2 + 4; 4255 } 4256 if (HasDefaultDouble) { 4257 size += 2 + 8; 4258 } 4259 if (HasDefaultBool) { 4260 size += 2 + 1; 4261 } 4262 if (HasDefaultString) { 4263 size += 2 + pb::CodedOutputStream.ComputeStringSize(DefaultString); 4264 } 4265 if (HasDefaultBytes) { 4266 size += 2 + pb::CodedOutputStream.ComputeBytesSize(DefaultBytes); 4267 } 4268 if (HasFieldname1) { 4269 size += 2 + pb::CodedOutputStream.ComputeInt32Size(Fieldname1); 4270 } 4271 if (HasFieldName2) { 4272 size += 2 + pb::CodedOutputStream.ComputeInt32Size(FieldName2); 4273 } 4274 if (HasFieldName3) { 4275 size += 2 + pb::CodedOutputStream.ComputeInt32Size(FieldName3); 4276 } 4277 if (HasFieldName4) { 4278 size += 2 + pb::CodedOutputStream.ComputeInt32Size(FieldName4); 4279 } 4280 if (HasField0Name5) { 4281 size += 2 + pb::CodedOutputStream.ComputeInt32Size(Field0Name5); 4282 } 4283 if (HasField0Name6) { 4284 size += 2 + pb::CodedOutputStream.ComputeInt32Size(Field0Name6); 4285 } 4286 if (HasFieldName7) { 4287 size += 2 + pb::CodedOutputStream.ComputeInt32Size(FieldName7); 4288 } 4289 if (HasFieldName8) { 4290 size += 2 + pb::CodedOutputStream.ComputeInt32Size(FieldName8); 4291 } 4292 if (HasFieldName9) { 4293 size += 2 + pb::CodedOutputStream.ComputeInt32Size(FieldName9); 4294 } 4295 if (HasFieldName10) { 4296 size += 2 + pb::CodedOutputStream.ComputeInt32Size(FieldName10); 4297 } 4298 if (HasFIELDNAME11) { 4299 size += 2 + pb::CodedOutputStream.ComputeInt32Size(FIELDNAME11); 4300 } 4301 if (HasFIELDName12) { 4302 size += 2 + pb::CodedOutputStream.ComputeInt32Size(FIELDName12); 4303 } 4304 if (HasFieldName13) { 4305 size += 2 + pb::CodedOutputStream.ComputeInt32Size(FieldName13); 4306 } 4307 if (HasFieldName14) { 4308 size += 2 + pb::CodedOutputStream.ComputeInt32Size(FieldName14); 4309 } 4310 if (HasFieldName15) { 4311 size += 2 + pb::CodedOutputStream.ComputeInt32Size(FieldName15); 4312 } 4313 if (HasFieldName16) { 4314 size += 2 + pb::CodedOutputStream.ComputeInt32Size(FieldName16); 4315 } 4316 if (HasFieldName17) { 4317 size += 2 + pb::CodedOutputStream.ComputeInt32Size(FieldName17); 4318 } 4319 if (HasFieldName18) { 4320 size += 2 + pb::CodedOutputStream.ComputeInt32Size(FieldName18); 4321 } 4322 if (_extensions != null) { 4323 size += _extensions.CalculateSize(); 4324 } 4325 if (_unknownFields != null) { 4326 size += _unknownFields.CalculateSize(); 4327 } 4328 return size; 4329 } 4330 4331 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 4332 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] MergeFrom(TestAllTypesProto2 other)4333 public void MergeFrom(TestAllTypesProto2 other) { 4334 if (other == null) { 4335 return; 4336 } 4337 if (other.HasOptionalInt32) { 4338 OptionalInt32 = other.OptionalInt32; 4339 } 4340 if (other.HasOptionalInt64) { 4341 OptionalInt64 = other.OptionalInt64; 4342 } 4343 if (other.HasOptionalUint32) { 4344 OptionalUint32 = other.OptionalUint32; 4345 } 4346 if (other.HasOptionalUint64) { 4347 OptionalUint64 = other.OptionalUint64; 4348 } 4349 if (other.HasOptionalSint32) { 4350 OptionalSint32 = other.OptionalSint32; 4351 } 4352 if (other.HasOptionalSint64) { 4353 OptionalSint64 = other.OptionalSint64; 4354 } 4355 if (other.HasOptionalFixed32) { 4356 OptionalFixed32 = other.OptionalFixed32; 4357 } 4358 if (other.HasOptionalFixed64) { 4359 OptionalFixed64 = other.OptionalFixed64; 4360 } 4361 if (other.HasOptionalSfixed32) { 4362 OptionalSfixed32 = other.OptionalSfixed32; 4363 } 4364 if (other.HasOptionalSfixed64) { 4365 OptionalSfixed64 = other.OptionalSfixed64; 4366 } 4367 if (other.HasOptionalFloat) { 4368 OptionalFloat = other.OptionalFloat; 4369 } 4370 if (other.HasOptionalDouble) { 4371 OptionalDouble = other.OptionalDouble; 4372 } 4373 if (other.HasOptionalBool) { 4374 OptionalBool = other.OptionalBool; 4375 } 4376 if (other.HasOptionalString) { 4377 OptionalString = other.OptionalString; 4378 } 4379 if (other.HasOptionalBytes) { 4380 OptionalBytes = other.OptionalBytes; 4381 } 4382 if (other.optionalNestedMessage_ != null) { 4383 if (optionalNestedMessage_ == null) { 4384 OptionalNestedMessage = new global::ProtobufTestMessages.Proto2.TestAllTypesProto2.Types.NestedMessage(); 4385 } 4386 OptionalNestedMessage.MergeFrom(other.OptionalNestedMessage); 4387 } 4388 if (other.optionalForeignMessage_ != null) { 4389 if (optionalForeignMessage_ == null) { 4390 OptionalForeignMessage = new global::ProtobufTestMessages.Proto2.ForeignMessageProto2(); 4391 } 4392 OptionalForeignMessage.MergeFrom(other.OptionalForeignMessage); 4393 } 4394 if (other.HasOptionalNestedEnum) { 4395 OptionalNestedEnum = other.OptionalNestedEnum; 4396 } 4397 if (other.HasOptionalForeignEnum) { 4398 OptionalForeignEnum = other.OptionalForeignEnum; 4399 } 4400 if (other.HasOptionalStringPiece) { 4401 OptionalStringPiece = other.OptionalStringPiece; 4402 } 4403 if (other.HasOptionalCord) { 4404 OptionalCord = other.OptionalCord; 4405 } 4406 if (other.recursiveMessage_ != null) { 4407 if (recursiveMessage_ == null) { 4408 RecursiveMessage = new global::ProtobufTestMessages.Proto2.TestAllTypesProto2(); 4409 } 4410 RecursiveMessage.MergeFrom(other.RecursiveMessage); 4411 } 4412 repeatedInt32_.Add(other.repeatedInt32_); 4413 repeatedInt64_.Add(other.repeatedInt64_); 4414 repeatedUint32_.Add(other.repeatedUint32_); 4415 repeatedUint64_.Add(other.repeatedUint64_); 4416 repeatedSint32_.Add(other.repeatedSint32_); 4417 repeatedSint64_.Add(other.repeatedSint64_); 4418 repeatedFixed32_.Add(other.repeatedFixed32_); 4419 repeatedFixed64_.Add(other.repeatedFixed64_); 4420 repeatedSfixed32_.Add(other.repeatedSfixed32_); 4421 repeatedSfixed64_.Add(other.repeatedSfixed64_); 4422 repeatedFloat_.Add(other.repeatedFloat_); 4423 repeatedDouble_.Add(other.repeatedDouble_); 4424 repeatedBool_.Add(other.repeatedBool_); 4425 repeatedString_.Add(other.repeatedString_); 4426 repeatedBytes_.Add(other.repeatedBytes_); 4427 repeatedNestedMessage_.Add(other.repeatedNestedMessage_); 4428 repeatedForeignMessage_.Add(other.repeatedForeignMessage_); 4429 repeatedNestedEnum_.Add(other.repeatedNestedEnum_); 4430 repeatedForeignEnum_.Add(other.repeatedForeignEnum_); 4431 repeatedStringPiece_.Add(other.repeatedStringPiece_); 4432 repeatedCord_.Add(other.repeatedCord_); 4433 packedInt32_.Add(other.packedInt32_); 4434 packedInt64_.Add(other.packedInt64_); 4435 packedUint32_.Add(other.packedUint32_); 4436 packedUint64_.Add(other.packedUint64_); 4437 packedSint32_.Add(other.packedSint32_); 4438 packedSint64_.Add(other.packedSint64_); 4439 packedFixed32_.Add(other.packedFixed32_); 4440 packedFixed64_.Add(other.packedFixed64_); 4441 packedSfixed32_.Add(other.packedSfixed32_); 4442 packedSfixed64_.Add(other.packedSfixed64_); 4443 packedFloat_.Add(other.packedFloat_); 4444 packedDouble_.Add(other.packedDouble_); 4445 packedBool_.Add(other.packedBool_); 4446 packedNestedEnum_.Add(other.packedNestedEnum_); 4447 unpackedInt32_.Add(other.unpackedInt32_); 4448 unpackedInt64_.Add(other.unpackedInt64_); 4449 unpackedUint32_.Add(other.unpackedUint32_); 4450 unpackedUint64_.Add(other.unpackedUint64_); 4451 unpackedSint32_.Add(other.unpackedSint32_); 4452 unpackedSint64_.Add(other.unpackedSint64_); 4453 unpackedFixed32_.Add(other.unpackedFixed32_); 4454 unpackedFixed64_.Add(other.unpackedFixed64_); 4455 unpackedSfixed32_.Add(other.unpackedSfixed32_); 4456 unpackedSfixed64_.Add(other.unpackedSfixed64_); 4457 unpackedFloat_.Add(other.unpackedFloat_); 4458 unpackedDouble_.Add(other.unpackedDouble_); 4459 unpackedBool_.Add(other.unpackedBool_); 4460 unpackedNestedEnum_.Add(other.unpackedNestedEnum_); 4461 mapInt32Int32_.MergeFrom(other.mapInt32Int32_); 4462 mapInt64Int64_.MergeFrom(other.mapInt64Int64_); 4463 mapUint32Uint32_.MergeFrom(other.mapUint32Uint32_); 4464 mapUint64Uint64_.MergeFrom(other.mapUint64Uint64_); 4465 mapSint32Sint32_.MergeFrom(other.mapSint32Sint32_); 4466 mapSint64Sint64_.MergeFrom(other.mapSint64Sint64_); 4467 mapFixed32Fixed32_.MergeFrom(other.mapFixed32Fixed32_); 4468 mapFixed64Fixed64_.MergeFrom(other.mapFixed64Fixed64_); 4469 mapSfixed32Sfixed32_.MergeFrom(other.mapSfixed32Sfixed32_); 4470 mapSfixed64Sfixed64_.MergeFrom(other.mapSfixed64Sfixed64_); 4471 mapInt32Float_.MergeFrom(other.mapInt32Float_); 4472 mapInt32Double_.MergeFrom(other.mapInt32Double_); 4473 mapBoolBool_.MergeFrom(other.mapBoolBool_); 4474 mapStringString_.MergeFrom(other.mapStringString_); 4475 mapStringBytes_.MergeFrom(other.mapStringBytes_); 4476 mapStringNestedMessage_.MergeFrom(other.mapStringNestedMessage_); 4477 mapStringForeignMessage_.MergeFrom(other.mapStringForeignMessage_); 4478 mapStringNestedEnum_.MergeFrom(other.mapStringNestedEnum_); 4479 mapStringForeignEnum_.MergeFrom(other.mapStringForeignEnum_); 4480 if (other.HasData) { 4481 if (!HasData) { 4482 Data = new global::ProtobufTestMessages.Proto2.TestAllTypesProto2.Types.Data(); 4483 } 4484 Data.MergeFrom(other.Data); 4485 } 4486 if (other.HasMultiWordGroupField) { 4487 if (!HasMultiWordGroupField) { 4488 MultiWordGroupField = new global::ProtobufTestMessages.Proto2.TestAllTypesProto2.Types.MultiWordGroupField(); 4489 } 4490 MultiWordGroupField.MergeFrom(other.MultiWordGroupField); 4491 } 4492 if (other.HasDefaultInt32) { 4493 DefaultInt32 = other.DefaultInt32; 4494 } 4495 if (other.HasDefaultInt64) { 4496 DefaultInt64 = other.DefaultInt64; 4497 } 4498 if (other.HasDefaultUint32) { 4499 DefaultUint32 = other.DefaultUint32; 4500 } 4501 if (other.HasDefaultUint64) { 4502 DefaultUint64 = other.DefaultUint64; 4503 } 4504 if (other.HasDefaultSint32) { 4505 DefaultSint32 = other.DefaultSint32; 4506 } 4507 if (other.HasDefaultSint64) { 4508 DefaultSint64 = other.DefaultSint64; 4509 } 4510 if (other.HasDefaultFixed32) { 4511 DefaultFixed32 = other.DefaultFixed32; 4512 } 4513 if (other.HasDefaultFixed64) { 4514 DefaultFixed64 = other.DefaultFixed64; 4515 } 4516 if (other.HasDefaultSfixed32) { 4517 DefaultSfixed32 = other.DefaultSfixed32; 4518 } 4519 if (other.HasDefaultSfixed64) { 4520 DefaultSfixed64 = other.DefaultSfixed64; 4521 } 4522 if (other.HasDefaultFloat) { 4523 DefaultFloat = other.DefaultFloat; 4524 } 4525 if (other.HasDefaultDouble) { 4526 DefaultDouble = other.DefaultDouble; 4527 } 4528 if (other.HasDefaultBool) { 4529 DefaultBool = other.DefaultBool; 4530 } 4531 if (other.HasDefaultString) { 4532 DefaultString = other.DefaultString; 4533 } 4534 if (other.HasDefaultBytes) { 4535 DefaultBytes = other.DefaultBytes; 4536 } 4537 if (other.HasFieldname1) { 4538 Fieldname1 = other.Fieldname1; 4539 } 4540 if (other.HasFieldName2) { 4541 FieldName2 = other.FieldName2; 4542 } 4543 if (other.HasFieldName3) { 4544 FieldName3 = other.FieldName3; 4545 } 4546 if (other.HasFieldName4) { 4547 FieldName4 = other.FieldName4; 4548 } 4549 if (other.HasField0Name5) { 4550 Field0Name5 = other.Field0Name5; 4551 } 4552 if (other.HasField0Name6) { 4553 Field0Name6 = other.Field0Name6; 4554 } 4555 if (other.HasFieldName7) { 4556 FieldName7 = other.FieldName7; 4557 } 4558 if (other.HasFieldName8) { 4559 FieldName8 = other.FieldName8; 4560 } 4561 if (other.HasFieldName9) { 4562 FieldName9 = other.FieldName9; 4563 } 4564 if (other.HasFieldName10) { 4565 FieldName10 = other.FieldName10; 4566 } 4567 if (other.HasFIELDNAME11) { 4568 FIELDNAME11 = other.FIELDNAME11; 4569 } 4570 if (other.HasFIELDName12) { 4571 FIELDName12 = other.FIELDName12; 4572 } 4573 if (other.HasFieldName13) { 4574 FieldName13 = other.FieldName13; 4575 } 4576 if (other.HasFieldName14) { 4577 FieldName14 = other.FieldName14; 4578 } 4579 if (other.HasFieldName15) { 4580 FieldName15 = other.FieldName15; 4581 } 4582 if (other.HasFieldName16) { 4583 FieldName16 = other.FieldName16; 4584 } 4585 if (other.HasFieldName17) { 4586 FieldName17 = other.FieldName17; 4587 } 4588 if (other.HasFieldName18) { 4589 FieldName18 = other.FieldName18; 4590 } 4591 switch (other.OneofFieldCase) { 4592 case OneofFieldOneofCase.OneofUint32: 4593 OneofUint32 = other.OneofUint32; 4594 break; 4595 case OneofFieldOneofCase.OneofNestedMessage: 4596 if (OneofNestedMessage == null) { 4597 OneofNestedMessage = new global::ProtobufTestMessages.Proto2.TestAllTypesProto2.Types.NestedMessage(); 4598 } 4599 OneofNestedMessage.MergeFrom(other.OneofNestedMessage); 4600 break; 4601 case OneofFieldOneofCase.OneofString: 4602 OneofString = other.OneofString; 4603 break; 4604 case OneofFieldOneofCase.OneofBytes: 4605 OneofBytes = other.OneofBytes; 4606 break; 4607 case OneofFieldOneofCase.OneofBool: 4608 OneofBool = other.OneofBool; 4609 break; 4610 case OneofFieldOneofCase.OneofUint64: 4611 OneofUint64 = other.OneofUint64; 4612 break; 4613 case OneofFieldOneofCase.OneofFloat: 4614 OneofFloat = other.OneofFloat; 4615 break; 4616 case OneofFieldOneofCase.OneofDouble: 4617 OneofDouble = other.OneofDouble; 4618 break; 4619 case OneofFieldOneofCase.OneofEnum: 4620 OneofEnum = other.OneofEnum; 4621 break; 4622 } 4623 4624 pb::ExtensionSet.MergeFrom(ref _extensions, other._extensions); 4625 _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); 4626 } 4627 4628 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 4629 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] MergeFrom(pb::CodedInputStream input)4630 public void MergeFrom(pb::CodedInputStream input) { 4631 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 4632 input.ReadRawMessage(this); 4633 #else 4634 uint tag; 4635 while ((tag = input.ReadTag()) != 0) { 4636 if ((tag & 7) == 4) { 4637 // Abort on any end group tag. 4638 return; 4639 } 4640 switch(tag) { 4641 default: 4642 if (!pb::ExtensionSet.TryMergeFieldFrom(ref _extensions, input)) { 4643 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); 4644 } 4645 break; 4646 case 8: { 4647 OptionalInt32 = input.ReadInt32(); 4648 break; 4649 } 4650 case 16: { 4651 OptionalInt64 = input.ReadInt64(); 4652 break; 4653 } 4654 case 24: { 4655 OptionalUint32 = input.ReadUInt32(); 4656 break; 4657 } 4658 case 32: { 4659 OptionalUint64 = input.ReadUInt64(); 4660 break; 4661 } 4662 case 40: { 4663 OptionalSint32 = input.ReadSInt32(); 4664 break; 4665 } 4666 case 48: { 4667 OptionalSint64 = input.ReadSInt64(); 4668 break; 4669 } 4670 case 61: { 4671 OptionalFixed32 = input.ReadFixed32(); 4672 break; 4673 } 4674 case 65: { 4675 OptionalFixed64 = input.ReadFixed64(); 4676 break; 4677 } 4678 case 77: { 4679 OptionalSfixed32 = input.ReadSFixed32(); 4680 break; 4681 } 4682 case 81: { 4683 OptionalSfixed64 = input.ReadSFixed64(); 4684 break; 4685 } 4686 case 93: { 4687 OptionalFloat = input.ReadFloat(); 4688 break; 4689 } 4690 case 97: { 4691 OptionalDouble = input.ReadDouble(); 4692 break; 4693 } 4694 case 104: { 4695 OptionalBool = input.ReadBool(); 4696 break; 4697 } 4698 case 114: { 4699 OptionalString = input.ReadString(); 4700 break; 4701 } 4702 case 122: { 4703 OptionalBytes = input.ReadBytes(); 4704 break; 4705 } 4706 case 146: { 4707 if (optionalNestedMessage_ == null) { 4708 OptionalNestedMessage = new global::ProtobufTestMessages.Proto2.TestAllTypesProto2.Types.NestedMessage(); 4709 } 4710 input.ReadMessage(OptionalNestedMessage); 4711 break; 4712 } 4713 case 154: { 4714 if (optionalForeignMessage_ == null) { 4715 OptionalForeignMessage = new global::ProtobufTestMessages.Proto2.ForeignMessageProto2(); 4716 } 4717 input.ReadMessage(OptionalForeignMessage); 4718 break; 4719 } 4720 case 168: { 4721 OptionalNestedEnum = (global::ProtobufTestMessages.Proto2.TestAllTypesProto2.Types.NestedEnum) input.ReadEnum(); 4722 break; 4723 } 4724 case 176: { 4725 OptionalForeignEnum = (global::ProtobufTestMessages.Proto2.ForeignEnumProto2) input.ReadEnum(); 4726 break; 4727 } 4728 case 194: { 4729 OptionalStringPiece = input.ReadString(); 4730 break; 4731 } 4732 case 202: { 4733 OptionalCord = input.ReadString(); 4734 break; 4735 } 4736 case 218: { 4737 if (recursiveMessage_ == null) { 4738 RecursiveMessage = new global::ProtobufTestMessages.Proto2.TestAllTypesProto2(); 4739 } 4740 input.ReadMessage(RecursiveMessage); 4741 break; 4742 } 4743 case 250: 4744 case 248: { 4745 repeatedInt32_.AddEntriesFrom(input, _repeated_repeatedInt32_codec); 4746 break; 4747 } 4748 case 258: 4749 case 256: { 4750 repeatedInt64_.AddEntriesFrom(input, _repeated_repeatedInt64_codec); 4751 break; 4752 } 4753 case 266: 4754 case 264: { 4755 repeatedUint32_.AddEntriesFrom(input, _repeated_repeatedUint32_codec); 4756 break; 4757 } 4758 case 274: 4759 case 272: { 4760 repeatedUint64_.AddEntriesFrom(input, _repeated_repeatedUint64_codec); 4761 break; 4762 } 4763 case 282: 4764 case 280: { 4765 repeatedSint32_.AddEntriesFrom(input, _repeated_repeatedSint32_codec); 4766 break; 4767 } 4768 case 290: 4769 case 288: { 4770 repeatedSint64_.AddEntriesFrom(input, _repeated_repeatedSint64_codec); 4771 break; 4772 } 4773 case 298: 4774 case 301: { 4775 repeatedFixed32_.AddEntriesFrom(input, _repeated_repeatedFixed32_codec); 4776 break; 4777 } 4778 case 306: 4779 case 305: { 4780 repeatedFixed64_.AddEntriesFrom(input, _repeated_repeatedFixed64_codec); 4781 break; 4782 } 4783 case 314: 4784 case 317: { 4785 repeatedSfixed32_.AddEntriesFrom(input, _repeated_repeatedSfixed32_codec); 4786 break; 4787 } 4788 case 322: 4789 case 321: { 4790 repeatedSfixed64_.AddEntriesFrom(input, _repeated_repeatedSfixed64_codec); 4791 break; 4792 } 4793 case 330: 4794 case 333: { 4795 repeatedFloat_.AddEntriesFrom(input, _repeated_repeatedFloat_codec); 4796 break; 4797 } 4798 case 338: 4799 case 337: { 4800 repeatedDouble_.AddEntriesFrom(input, _repeated_repeatedDouble_codec); 4801 break; 4802 } 4803 case 346: 4804 case 344: { 4805 repeatedBool_.AddEntriesFrom(input, _repeated_repeatedBool_codec); 4806 break; 4807 } 4808 case 354: { 4809 repeatedString_.AddEntriesFrom(input, _repeated_repeatedString_codec); 4810 break; 4811 } 4812 case 362: { 4813 repeatedBytes_.AddEntriesFrom(input, _repeated_repeatedBytes_codec); 4814 break; 4815 } 4816 case 386: { 4817 repeatedNestedMessage_.AddEntriesFrom(input, _repeated_repeatedNestedMessage_codec); 4818 break; 4819 } 4820 case 394: { 4821 repeatedForeignMessage_.AddEntriesFrom(input, _repeated_repeatedForeignMessage_codec); 4822 break; 4823 } 4824 case 410: 4825 case 408: { 4826 repeatedNestedEnum_.AddEntriesFrom(input, _repeated_repeatedNestedEnum_codec); 4827 break; 4828 } 4829 case 418: 4830 case 416: { 4831 repeatedForeignEnum_.AddEntriesFrom(input, _repeated_repeatedForeignEnum_codec); 4832 break; 4833 } 4834 case 434: { 4835 repeatedStringPiece_.AddEntriesFrom(input, _repeated_repeatedStringPiece_codec); 4836 break; 4837 } 4838 case 442: { 4839 repeatedCord_.AddEntriesFrom(input, _repeated_repeatedCord_codec); 4840 break; 4841 } 4842 case 450: { 4843 mapInt32Int32_.AddEntriesFrom(input, _map_mapInt32Int32_codec); 4844 break; 4845 } 4846 case 458: { 4847 mapInt64Int64_.AddEntriesFrom(input, _map_mapInt64Int64_codec); 4848 break; 4849 } 4850 case 466: { 4851 mapUint32Uint32_.AddEntriesFrom(input, _map_mapUint32Uint32_codec); 4852 break; 4853 } 4854 case 474: { 4855 mapUint64Uint64_.AddEntriesFrom(input, _map_mapUint64Uint64_codec); 4856 break; 4857 } 4858 case 482: { 4859 mapSint32Sint32_.AddEntriesFrom(input, _map_mapSint32Sint32_codec); 4860 break; 4861 } 4862 case 490: { 4863 mapSint64Sint64_.AddEntriesFrom(input, _map_mapSint64Sint64_codec); 4864 break; 4865 } 4866 case 498: { 4867 mapFixed32Fixed32_.AddEntriesFrom(input, _map_mapFixed32Fixed32_codec); 4868 break; 4869 } 4870 case 506: { 4871 mapFixed64Fixed64_.AddEntriesFrom(input, _map_mapFixed64Fixed64_codec); 4872 break; 4873 } 4874 case 514: { 4875 mapSfixed32Sfixed32_.AddEntriesFrom(input, _map_mapSfixed32Sfixed32_codec); 4876 break; 4877 } 4878 case 522: { 4879 mapSfixed64Sfixed64_.AddEntriesFrom(input, _map_mapSfixed64Sfixed64_codec); 4880 break; 4881 } 4882 case 530: { 4883 mapInt32Float_.AddEntriesFrom(input, _map_mapInt32Float_codec); 4884 break; 4885 } 4886 case 538: { 4887 mapInt32Double_.AddEntriesFrom(input, _map_mapInt32Double_codec); 4888 break; 4889 } 4890 case 546: { 4891 mapBoolBool_.AddEntriesFrom(input, _map_mapBoolBool_codec); 4892 break; 4893 } 4894 case 554: { 4895 mapStringString_.AddEntriesFrom(input, _map_mapStringString_codec); 4896 break; 4897 } 4898 case 562: { 4899 mapStringBytes_.AddEntriesFrom(input, _map_mapStringBytes_codec); 4900 break; 4901 } 4902 case 570: { 4903 mapStringNestedMessage_.AddEntriesFrom(input, _map_mapStringNestedMessage_codec); 4904 break; 4905 } 4906 case 578: { 4907 mapStringForeignMessage_.AddEntriesFrom(input, _map_mapStringForeignMessage_codec); 4908 break; 4909 } 4910 case 586: { 4911 mapStringNestedEnum_.AddEntriesFrom(input, _map_mapStringNestedEnum_codec); 4912 break; 4913 } 4914 case 594: { 4915 mapStringForeignEnum_.AddEntriesFrom(input, _map_mapStringForeignEnum_codec); 4916 break; 4917 } 4918 case 602: 4919 case 600: { 4920 packedInt32_.AddEntriesFrom(input, _repeated_packedInt32_codec); 4921 break; 4922 } 4923 case 610: 4924 case 608: { 4925 packedInt64_.AddEntriesFrom(input, _repeated_packedInt64_codec); 4926 break; 4927 } 4928 case 618: 4929 case 616: { 4930 packedUint32_.AddEntriesFrom(input, _repeated_packedUint32_codec); 4931 break; 4932 } 4933 case 626: 4934 case 624: { 4935 packedUint64_.AddEntriesFrom(input, _repeated_packedUint64_codec); 4936 break; 4937 } 4938 case 634: 4939 case 632: { 4940 packedSint32_.AddEntriesFrom(input, _repeated_packedSint32_codec); 4941 break; 4942 } 4943 case 642: 4944 case 640: { 4945 packedSint64_.AddEntriesFrom(input, _repeated_packedSint64_codec); 4946 break; 4947 } 4948 case 650: 4949 case 653: { 4950 packedFixed32_.AddEntriesFrom(input, _repeated_packedFixed32_codec); 4951 break; 4952 } 4953 case 658: 4954 case 657: { 4955 packedFixed64_.AddEntriesFrom(input, _repeated_packedFixed64_codec); 4956 break; 4957 } 4958 case 666: 4959 case 669: { 4960 packedSfixed32_.AddEntriesFrom(input, _repeated_packedSfixed32_codec); 4961 break; 4962 } 4963 case 674: 4964 case 673: { 4965 packedSfixed64_.AddEntriesFrom(input, _repeated_packedSfixed64_codec); 4966 break; 4967 } 4968 case 682: 4969 case 685: { 4970 packedFloat_.AddEntriesFrom(input, _repeated_packedFloat_codec); 4971 break; 4972 } 4973 case 690: 4974 case 689: { 4975 packedDouble_.AddEntriesFrom(input, _repeated_packedDouble_codec); 4976 break; 4977 } 4978 case 698: 4979 case 696: { 4980 packedBool_.AddEntriesFrom(input, _repeated_packedBool_codec); 4981 break; 4982 } 4983 case 706: 4984 case 704: { 4985 packedNestedEnum_.AddEntriesFrom(input, _repeated_packedNestedEnum_codec); 4986 break; 4987 } 4988 case 714: 4989 case 712: { 4990 unpackedInt32_.AddEntriesFrom(input, _repeated_unpackedInt32_codec); 4991 break; 4992 } 4993 case 722: 4994 case 720: { 4995 unpackedInt64_.AddEntriesFrom(input, _repeated_unpackedInt64_codec); 4996 break; 4997 } 4998 case 730: 4999 case 728: { 5000 unpackedUint32_.AddEntriesFrom(input, _repeated_unpackedUint32_codec); 5001 break; 5002 } 5003 case 738: 5004 case 736: { 5005 unpackedUint64_.AddEntriesFrom(input, _repeated_unpackedUint64_codec); 5006 break; 5007 } 5008 case 746: 5009 case 744: { 5010 unpackedSint32_.AddEntriesFrom(input, _repeated_unpackedSint32_codec); 5011 break; 5012 } 5013 case 754: 5014 case 752: { 5015 unpackedSint64_.AddEntriesFrom(input, _repeated_unpackedSint64_codec); 5016 break; 5017 } 5018 case 762: 5019 case 765: { 5020 unpackedFixed32_.AddEntriesFrom(input, _repeated_unpackedFixed32_codec); 5021 break; 5022 } 5023 case 770: 5024 case 769: { 5025 unpackedFixed64_.AddEntriesFrom(input, _repeated_unpackedFixed64_codec); 5026 break; 5027 } 5028 case 778: 5029 case 781: { 5030 unpackedSfixed32_.AddEntriesFrom(input, _repeated_unpackedSfixed32_codec); 5031 break; 5032 } 5033 case 786: 5034 case 785: { 5035 unpackedSfixed64_.AddEntriesFrom(input, _repeated_unpackedSfixed64_codec); 5036 break; 5037 } 5038 case 794: 5039 case 797: { 5040 unpackedFloat_.AddEntriesFrom(input, _repeated_unpackedFloat_codec); 5041 break; 5042 } 5043 case 802: 5044 case 801: { 5045 unpackedDouble_.AddEntriesFrom(input, _repeated_unpackedDouble_codec); 5046 break; 5047 } 5048 case 810: 5049 case 808: { 5050 unpackedBool_.AddEntriesFrom(input, _repeated_unpackedBool_codec); 5051 break; 5052 } 5053 case 818: 5054 case 816: { 5055 unpackedNestedEnum_.AddEntriesFrom(input, _repeated_unpackedNestedEnum_codec); 5056 break; 5057 } 5058 case 888: { 5059 OneofUint32 = input.ReadUInt32(); 5060 break; 5061 } 5062 case 898: { 5063 global::ProtobufTestMessages.Proto2.TestAllTypesProto2.Types.NestedMessage subBuilder = new global::ProtobufTestMessages.Proto2.TestAllTypesProto2.Types.NestedMessage(); 5064 if (oneofFieldCase_ == OneofFieldOneofCase.OneofNestedMessage) { 5065 subBuilder.MergeFrom(OneofNestedMessage); 5066 } 5067 input.ReadMessage(subBuilder); 5068 OneofNestedMessage = subBuilder; 5069 break; 5070 } 5071 case 906: { 5072 OneofString = input.ReadString(); 5073 break; 5074 } 5075 case 914: { 5076 OneofBytes = input.ReadBytes(); 5077 break; 5078 } 5079 case 920: { 5080 OneofBool = input.ReadBool(); 5081 break; 5082 } 5083 case 928: { 5084 OneofUint64 = input.ReadUInt64(); 5085 break; 5086 } 5087 case 941: { 5088 OneofFloat = input.ReadFloat(); 5089 break; 5090 } 5091 case 945: { 5092 OneofDouble = input.ReadDouble(); 5093 break; 5094 } 5095 case 952: { 5096 oneofField_ = input.ReadEnum(); 5097 oneofFieldCase_ = OneofFieldOneofCase.OneofEnum; 5098 break; 5099 } 5100 case 1611: { 5101 if (!HasData) { 5102 Data = new global::ProtobufTestMessages.Proto2.TestAllTypesProto2.Types.Data(); 5103 } 5104 input.ReadGroup(Data); 5105 break; 5106 } 5107 case 1635: { 5108 if (!HasMultiWordGroupField) { 5109 MultiWordGroupField = new global::ProtobufTestMessages.Proto2.TestAllTypesProto2.Types.MultiWordGroupField(); 5110 } 5111 input.ReadGroup(MultiWordGroupField); 5112 break; 5113 } 5114 case 1928: { 5115 DefaultInt32 = input.ReadInt32(); 5116 break; 5117 } 5118 case 1936: { 5119 DefaultInt64 = input.ReadInt64(); 5120 break; 5121 } 5122 case 1944: { 5123 DefaultUint32 = input.ReadUInt32(); 5124 break; 5125 } 5126 case 1952: { 5127 DefaultUint64 = input.ReadUInt64(); 5128 break; 5129 } 5130 case 1960: { 5131 DefaultSint32 = input.ReadSInt32(); 5132 break; 5133 } 5134 case 1968: { 5135 DefaultSint64 = input.ReadSInt64(); 5136 break; 5137 } 5138 case 1981: { 5139 DefaultFixed32 = input.ReadFixed32(); 5140 break; 5141 } 5142 case 1985: { 5143 DefaultFixed64 = input.ReadFixed64(); 5144 break; 5145 } 5146 case 1997: { 5147 DefaultSfixed32 = input.ReadSFixed32(); 5148 break; 5149 } 5150 case 2001: { 5151 DefaultSfixed64 = input.ReadSFixed64(); 5152 break; 5153 } 5154 case 2013: { 5155 DefaultFloat = input.ReadFloat(); 5156 break; 5157 } 5158 case 2017: { 5159 DefaultDouble = input.ReadDouble(); 5160 break; 5161 } 5162 case 2024: { 5163 DefaultBool = input.ReadBool(); 5164 break; 5165 } 5166 case 2034: { 5167 DefaultString = input.ReadString(); 5168 break; 5169 } 5170 case 2042: { 5171 DefaultBytes = input.ReadBytes(); 5172 break; 5173 } 5174 case 3208: { 5175 Fieldname1 = input.ReadInt32(); 5176 break; 5177 } 5178 case 3216: { 5179 FieldName2 = input.ReadInt32(); 5180 break; 5181 } 5182 case 3224: { 5183 FieldName3 = input.ReadInt32(); 5184 break; 5185 } 5186 case 3232: { 5187 FieldName4 = input.ReadInt32(); 5188 break; 5189 } 5190 case 3240: { 5191 Field0Name5 = input.ReadInt32(); 5192 break; 5193 } 5194 case 3248: { 5195 Field0Name6 = input.ReadInt32(); 5196 break; 5197 } 5198 case 3256: { 5199 FieldName7 = input.ReadInt32(); 5200 break; 5201 } 5202 case 3264: { 5203 FieldName8 = input.ReadInt32(); 5204 break; 5205 } 5206 case 3272: { 5207 FieldName9 = input.ReadInt32(); 5208 break; 5209 } 5210 case 3280: { 5211 FieldName10 = input.ReadInt32(); 5212 break; 5213 } 5214 case 3288: { 5215 FIELDNAME11 = input.ReadInt32(); 5216 break; 5217 } 5218 case 3296: { 5219 FIELDName12 = input.ReadInt32(); 5220 break; 5221 } 5222 case 3304: { 5223 FieldName13 = input.ReadInt32(); 5224 break; 5225 } 5226 case 3312: { 5227 FieldName14 = input.ReadInt32(); 5228 break; 5229 } 5230 case 3320: { 5231 FieldName15 = input.ReadInt32(); 5232 break; 5233 } 5234 case 3328: { 5235 FieldName16 = input.ReadInt32(); 5236 break; 5237 } 5238 case 3336: { 5239 FieldName17 = input.ReadInt32(); 5240 break; 5241 } 5242 case 3344: { 5243 FieldName18 = input.ReadInt32(); 5244 break; 5245 } 5246 } 5247 } 5248 #endif 5249 } 5250 5251 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 5252 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 5253 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] IBufferMessage.InternalMergeFrom(ref pb::ParseContext input)5254 void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { 5255 uint tag; 5256 while ((tag = input.ReadTag()) != 0) { 5257 if ((tag & 7) == 4) { 5258 // Abort on any end group tag. 5259 return; 5260 } 5261 switch(tag) { 5262 default: 5263 if (!pb::ExtensionSet.TryMergeFieldFrom(ref _extensions, ref input)) { 5264 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); 5265 } 5266 break; 5267 case 8: { 5268 OptionalInt32 = input.ReadInt32(); 5269 break; 5270 } 5271 case 16: { 5272 OptionalInt64 = input.ReadInt64(); 5273 break; 5274 } 5275 case 24: { 5276 OptionalUint32 = input.ReadUInt32(); 5277 break; 5278 } 5279 case 32: { 5280 OptionalUint64 = input.ReadUInt64(); 5281 break; 5282 } 5283 case 40: { 5284 OptionalSint32 = input.ReadSInt32(); 5285 break; 5286 } 5287 case 48: { 5288 OptionalSint64 = input.ReadSInt64(); 5289 break; 5290 } 5291 case 61: { 5292 OptionalFixed32 = input.ReadFixed32(); 5293 break; 5294 } 5295 case 65: { 5296 OptionalFixed64 = input.ReadFixed64(); 5297 break; 5298 } 5299 case 77: { 5300 OptionalSfixed32 = input.ReadSFixed32(); 5301 break; 5302 } 5303 case 81: { 5304 OptionalSfixed64 = input.ReadSFixed64(); 5305 break; 5306 } 5307 case 93: { 5308 OptionalFloat = input.ReadFloat(); 5309 break; 5310 } 5311 case 97: { 5312 OptionalDouble = input.ReadDouble(); 5313 break; 5314 } 5315 case 104: { 5316 OptionalBool = input.ReadBool(); 5317 break; 5318 } 5319 case 114: { 5320 OptionalString = input.ReadString(); 5321 break; 5322 } 5323 case 122: { 5324 OptionalBytes = input.ReadBytes(); 5325 break; 5326 } 5327 case 146: { 5328 if (optionalNestedMessage_ == null) { 5329 OptionalNestedMessage = new global::ProtobufTestMessages.Proto2.TestAllTypesProto2.Types.NestedMessage(); 5330 } 5331 input.ReadMessage(OptionalNestedMessage); 5332 break; 5333 } 5334 case 154: { 5335 if (optionalForeignMessage_ == null) { 5336 OptionalForeignMessage = new global::ProtobufTestMessages.Proto2.ForeignMessageProto2(); 5337 } 5338 input.ReadMessage(OptionalForeignMessage); 5339 break; 5340 } 5341 case 168: { 5342 OptionalNestedEnum = (global::ProtobufTestMessages.Proto2.TestAllTypesProto2.Types.NestedEnum) input.ReadEnum(); 5343 break; 5344 } 5345 case 176: { 5346 OptionalForeignEnum = (global::ProtobufTestMessages.Proto2.ForeignEnumProto2) input.ReadEnum(); 5347 break; 5348 } 5349 case 194: { 5350 OptionalStringPiece = input.ReadString(); 5351 break; 5352 } 5353 case 202: { 5354 OptionalCord = input.ReadString(); 5355 break; 5356 } 5357 case 218: { 5358 if (recursiveMessage_ == null) { 5359 RecursiveMessage = new global::ProtobufTestMessages.Proto2.TestAllTypesProto2(); 5360 } 5361 input.ReadMessage(RecursiveMessage); 5362 break; 5363 } 5364 case 250: 5365 case 248: { 5366 repeatedInt32_.AddEntriesFrom(ref input, _repeated_repeatedInt32_codec); 5367 break; 5368 } 5369 case 258: 5370 case 256: { 5371 repeatedInt64_.AddEntriesFrom(ref input, _repeated_repeatedInt64_codec); 5372 break; 5373 } 5374 case 266: 5375 case 264: { 5376 repeatedUint32_.AddEntriesFrom(ref input, _repeated_repeatedUint32_codec); 5377 break; 5378 } 5379 case 274: 5380 case 272: { 5381 repeatedUint64_.AddEntriesFrom(ref input, _repeated_repeatedUint64_codec); 5382 break; 5383 } 5384 case 282: 5385 case 280: { 5386 repeatedSint32_.AddEntriesFrom(ref input, _repeated_repeatedSint32_codec); 5387 break; 5388 } 5389 case 290: 5390 case 288: { 5391 repeatedSint64_.AddEntriesFrom(ref input, _repeated_repeatedSint64_codec); 5392 break; 5393 } 5394 case 298: 5395 case 301: { 5396 repeatedFixed32_.AddEntriesFrom(ref input, _repeated_repeatedFixed32_codec); 5397 break; 5398 } 5399 case 306: 5400 case 305: { 5401 repeatedFixed64_.AddEntriesFrom(ref input, _repeated_repeatedFixed64_codec); 5402 break; 5403 } 5404 case 314: 5405 case 317: { 5406 repeatedSfixed32_.AddEntriesFrom(ref input, _repeated_repeatedSfixed32_codec); 5407 break; 5408 } 5409 case 322: 5410 case 321: { 5411 repeatedSfixed64_.AddEntriesFrom(ref input, _repeated_repeatedSfixed64_codec); 5412 break; 5413 } 5414 case 330: 5415 case 333: { 5416 repeatedFloat_.AddEntriesFrom(ref input, _repeated_repeatedFloat_codec); 5417 break; 5418 } 5419 case 338: 5420 case 337: { 5421 repeatedDouble_.AddEntriesFrom(ref input, _repeated_repeatedDouble_codec); 5422 break; 5423 } 5424 case 346: 5425 case 344: { 5426 repeatedBool_.AddEntriesFrom(ref input, _repeated_repeatedBool_codec); 5427 break; 5428 } 5429 case 354: { 5430 repeatedString_.AddEntriesFrom(ref input, _repeated_repeatedString_codec); 5431 break; 5432 } 5433 case 362: { 5434 repeatedBytes_.AddEntriesFrom(ref input, _repeated_repeatedBytes_codec); 5435 break; 5436 } 5437 case 386: { 5438 repeatedNestedMessage_.AddEntriesFrom(ref input, _repeated_repeatedNestedMessage_codec); 5439 break; 5440 } 5441 case 394: { 5442 repeatedForeignMessage_.AddEntriesFrom(ref input, _repeated_repeatedForeignMessage_codec); 5443 break; 5444 } 5445 case 410: 5446 case 408: { 5447 repeatedNestedEnum_.AddEntriesFrom(ref input, _repeated_repeatedNestedEnum_codec); 5448 break; 5449 } 5450 case 418: 5451 case 416: { 5452 repeatedForeignEnum_.AddEntriesFrom(ref input, _repeated_repeatedForeignEnum_codec); 5453 break; 5454 } 5455 case 434: { 5456 repeatedStringPiece_.AddEntriesFrom(ref input, _repeated_repeatedStringPiece_codec); 5457 break; 5458 } 5459 case 442: { 5460 repeatedCord_.AddEntriesFrom(ref input, _repeated_repeatedCord_codec); 5461 break; 5462 } 5463 case 450: { 5464 mapInt32Int32_.AddEntriesFrom(ref input, _map_mapInt32Int32_codec); 5465 break; 5466 } 5467 case 458: { 5468 mapInt64Int64_.AddEntriesFrom(ref input, _map_mapInt64Int64_codec); 5469 break; 5470 } 5471 case 466: { 5472 mapUint32Uint32_.AddEntriesFrom(ref input, _map_mapUint32Uint32_codec); 5473 break; 5474 } 5475 case 474: { 5476 mapUint64Uint64_.AddEntriesFrom(ref input, _map_mapUint64Uint64_codec); 5477 break; 5478 } 5479 case 482: { 5480 mapSint32Sint32_.AddEntriesFrom(ref input, _map_mapSint32Sint32_codec); 5481 break; 5482 } 5483 case 490: { 5484 mapSint64Sint64_.AddEntriesFrom(ref input, _map_mapSint64Sint64_codec); 5485 break; 5486 } 5487 case 498: { 5488 mapFixed32Fixed32_.AddEntriesFrom(ref input, _map_mapFixed32Fixed32_codec); 5489 break; 5490 } 5491 case 506: { 5492 mapFixed64Fixed64_.AddEntriesFrom(ref input, _map_mapFixed64Fixed64_codec); 5493 break; 5494 } 5495 case 514: { 5496 mapSfixed32Sfixed32_.AddEntriesFrom(ref input, _map_mapSfixed32Sfixed32_codec); 5497 break; 5498 } 5499 case 522: { 5500 mapSfixed64Sfixed64_.AddEntriesFrom(ref input, _map_mapSfixed64Sfixed64_codec); 5501 break; 5502 } 5503 case 530: { 5504 mapInt32Float_.AddEntriesFrom(ref input, _map_mapInt32Float_codec); 5505 break; 5506 } 5507 case 538: { 5508 mapInt32Double_.AddEntriesFrom(ref input, _map_mapInt32Double_codec); 5509 break; 5510 } 5511 case 546: { 5512 mapBoolBool_.AddEntriesFrom(ref input, _map_mapBoolBool_codec); 5513 break; 5514 } 5515 case 554: { 5516 mapStringString_.AddEntriesFrom(ref input, _map_mapStringString_codec); 5517 break; 5518 } 5519 case 562: { 5520 mapStringBytes_.AddEntriesFrom(ref input, _map_mapStringBytes_codec); 5521 break; 5522 } 5523 case 570: { 5524 mapStringNestedMessage_.AddEntriesFrom(ref input, _map_mapStringNestedMessage_codec); 5525 break; 5526 } 5527 case 578: { 5528 mapStringForeignMessage_.AddEntriesFrom(ref input, _map_mapStringForeignMessage_codec); 5529 break; 5530 } 5531 case 586: { 5532 mapStringNestedEnum_.AddEntriesFrom(ref input, _map_mapStringNestedEnum_codec); 5533 break; 5534 } 5535 case 594: { 5536 mapStringForeignEnum_.AddEntriesFrom(ref input, _map_mapStringForeignEnum_codec); 5537 break; 5538 } 5539 case 602: 5540 case 600: { 5541 packedInt32_.AddEntriesFrom(ref input, _repeated_packedInt32_codec); 5542 break; 5543 } 5544 case 610: 5545 case 608: { 5546 packedInt64_.AddEntriesFrom(ref input, _repeated_packedInt64_codec); 5547 break; 5548 } 5549 case 618: 5550 case 616: { 5551 packedUint32_.AddEntriesFrom(ref input, _repeated_packedUint32_codec); 5552 break; 5553 } 5554 case 626: 5555 case 624: { 5556 packedUint64_.AddEntriesFrom(ref input, _repeated_packedUint64_codec); 5557 break; 5558 } 5559 case 634: 5560 case 632: { 5561 packedSint32_.AddEntriesFrom(ref input, _repeated_packedSint32_codec); 5562 break; 5563 } 5564 case 642: 5565 case 640: { 5566 packedSint64_.AddEntriesFrom(ref input, _repeated_packedSint64_codec); 5567 break; 5568 } 5569 case 650: 5570 case 653: { 5571 packedFixed32_.AddEntriesFrom(ref input, _repeated_packedFixed32_codec); 5572 break; 5573 } 5574 case 658: 5575 case 657: { 5576 packedFixed64_.AddEntriesFrom(ref input, _repeated_packedFixed64_codec); 5577 break; 5578 } 5579 case 666: 5580 case 669: { 5581 packedSfixed32_.AddEntriesFrom(ref input, _repeated_packedSfixed32_codec); 5582 break; 5583 } 5584 case 674: 5585 case 673: { 5586 packedSfixed64_.AddEntriesFrom(ref input, _repeated_packedSfixed64_codec); 5587 break; 5588 } 5589 case 682: 5590 case 685: { 5591 packedFloat_.AddEntriesFrom(ref input, _repeated_packedFloat_codec); 5592 break; 5593 } 5594 case 690: 5595 case 689: { 5596 packedDouble_.AddEntriesFrom(ref input, _repeated_packedDouble_codec); 5597 break; 5598 } 5599 case 698: 5600 case 696: { 5601 packedBool_.AddEntriesFrom(ref input, _repeated_packedBool_codec); 5602 break; 5603 } 5604 case 706: 5605 case 704: { 5606 packedNestedEnum_.AddEntriesFrom(ref input, _repeated_packedNestedEnum_codec); 5607 break; 5608 } 5609 case 714: 5610 case 712: { 5611 unpackedInt32_.AddEntriesFrom(ref input, _repeated_unpackedInt32_codec); 5612 break; 5613 } 5614 case 722: 5615 case 720: { 5616 unpackedInt64_.AddEntriesFrom(ref input, _repeated_unpackedInt64_codec); 5617 break; 5618 } 5619 case 730: 5620 case 728: { 5621 unpackedUint32_.AddEntriesFrom(ref input, _repeated_unpackedUint32_codec); 5622 break; 5623 } 5624 case 738: 5625 case 736: { 5626 unpackedUint64_.AddEntriesFrom(ref input, _repeated_unpackedUint64_codec); 5627 break; 5628 } 5629 case 746: 5630 case 744: { 5631 unpackedSint32_.AddEntriesFrom(ref input, _repeated_unpackedSint32_codec); 5632 break; 5633 } 5634 case 754: 5635 case 752: { 5636 unpackedSint64_.AddEntriesFrom(ref input, _repeated_unpackedSint64_codec); 5637 break; 5638 } 5639 case 762: 5640 case 765: { 5641 unpackedFixed32_.AddEntriesFrom(ref input, _repeated_unpackedFixed32_codec); 5642 break; 5643 } 5644 case 770: 5645 case 769: { 5646 unpackedFixed64_.AddEntriesFrom(ref input, _repeated_unpackedFixed64_codec); 5647 break; 5648 } 5649 case 778: 5650 case 781: { 5651 unpackedSfixed32_.AddEntriesFrom(ref input, _repeated_unpackedSfixed32_codec); 5652 break; 5653 } 5654 case 786: 5655 case 785: { 5656 unpackedSfixed64_.AddEntriesFrom(ref input, _repeated_unpackedSfixed64_codec); 5657 break; 5658 } 5659 case 794: 5660 case 797: { 5661 unpackedFloat_.AddEntriesFrom(ref input, _repeated_unpackedFloat_codec); 5662 break; 5663 } 5664 case 802: 5665 case 801: { 5666 unpackedDouble_.AddEntriesFrom(ref input, _repeated_unpackedDouble_codec); 5667 break; 5668 } 5669 case 810: 5670 case 808: { 5671 unpackedBool_.AddEntriesFrom(ref input, _repeated_unpackedBool_codec); 5672 break; 5673 } 5674 case 818: 5675 case 816: { 5676 unpackedNestedEnum_.AddEntriesFrom(ref input, _repeated_unpackedNestedEnum_codec); 5677 break; 5678 } 5679 case 888: { 5680 OneofUint32 = input.ReadUInt32(); 5681 break; 5682 } 5683 case 898: { 5684 global::ProtobufTestMessages.Proto2.TestAllTypesProto2.Types.NestedMessage subBuilder = new global::ProtobufTestMessages.Proto2.TestAllTypesProto2.Types.NestedMessage(); 5685 if (oneofFieldCase_ == OneofFieldOneofCase.OneofNestedMessage) { 5686 subBuilder.MergeFrom(OneofNestedMessage); 5687 } 5688 input.ReadMessage(subBuilder); 5689 OneofNestedMessage = subBuilder; 5690 break; 5691 } 5692 case 906: { 5693 OneofString = input.ReadString(); 5694 break; 5695 } 5696 case 914: { 5697 OneofBytes = input.ReadBytes(); 5698 break; 5699 } 5700 case 920: { 5701 OneofBool = input.ReadBool(); 5702 break; 5703 } 5704 case 928: { 5705 OneofUint64 = input.ReadUInt64(); 5706 break; 5707 } 5708 case 941: { 5709 OneofFloat = input.ReadFloat(); 5710 break; 5711 } 5712 case 945: { 5713 OneofDouble = input.ReadDouble(); 5714 break; 5715 } 5716 case 952: { 5717 oneofField_ = input.ReadEnum(); 5718 oneofFieldCase_ = OneofFieldOneofCase.OneofEnum; 5719 break; 5720 } 5721 case 1611: { 5722 if (!HasData) { 5723 Data = new global::ProtobufTestMessages.Proto2.TestAllTypesProto2.Types.Data(); 5724 } 5725 input.ReadGroup(Data); 5726 break; 5727 } 5728 case 1635: { 5729 if (!HasMultiWordGroupField) { 5730 MultiWordGroupField = new global::ProtobufTestMessages.Proto2.TestAllTypesProto2.Types.MultiWordGroupField(); 5731 } 5732 input.ReadGroup(MultiWordGroupField); 5733 break; 5734 } 5735 case 1928: { 5736 DefaultInt32 = input.ReadInt32(); 5737 break; 5738 } 5739 case 1936: { 5740 DefaultInt64 = input.ReadInt64(); 5741 break; 5742 } 5743 case 1944: { 5744 DefaultUint32 = input.ReadUInt32(); 5745 break; 5746 } 5747 case 1952: { 5748 DefaultUint64 = input.ReadUInt64(); 5749 break; 5750 } 5751 case 1960: { 5752 DefaultSint32 = input.ReadSInt32(); 5753 break; 5754 } 5755 case 1968: { 5756 DefaultSint64 = input.ReadSInt64(); 5757 break; 5758 } 5759 case 1981: { 5760 DefaultFixed32 = input.ReadFixed32(); 5761 break; 5762 } 5763 case 1985: { 5764 DefaultFixed64 = input.ReadFixed64(); 5765 break; 5766 } 5767 case 1997: { 5768 DefaultSfixed32 = input.ReadSFixed32(); 5769 break; 5770 } 5771 case 2001: { 5772 DefaultSfixed64 = input.ReadSFixed64(); 5773 break; 5774 } 5775 case 2013: { 5776 DefaultFloat = input.ReadFloat(); 5777 break; 5778 } 5779 case 2017: { 5780 DefaultDouble = input.ReadDouble(); 5781 break; 5782 } 5783 case 2024: { 5784 DefaultBool = input.ReadBool(); 5785 break; 5786 } 5787 case 2034: { 5788 DefaultString = input.ReadString(); 5789 break; 5790 } 5791 case 2042: { 5792 DefaultBytes = input.ReadBytes(); 5793 break; 5794 } 5795 case 3208: { 5796 Fieldname1 = input.ReadInt32(); 5797 break; 5798 } 5799 case 3216: { 5800 FieldName2 = input.ReadInt32(); 5801 break; 5802 } 5803 case 3224: { 5804 FieldName3 = input.ReadInt32(); 5805 break; 5806 } 5807 case 3232: { 5808 FieldName4 = input.ReadInt32(); 5809 break; 5810 } 5811 case 3240: { 5812 Field0Name5 = input.ReadInt32(); 5813 break; 5814 } 5815 case 3248: { 5816 Field0Name6 = input.ReadInt32(); 5817 break; 5818 } 5819 case 3256: { 5820 FieldName7 = input.ReadInt32(); 5821 break; 5822 } 5823 case 3264: { 5824 FieldName8 = input.ReadInt32(); 5825 break; 5826 } 5827 case 3272: { 5828 FieldName9 = input.ReadInt32(); 5829 break; 5830 } 5831 case 3280: { 5832 FieldName10 = input.ReadInt32(); 5833 break; 5834 } 5835 case 3288: { 5836 FIELDNAME11 = input.ReadInt32(); 5837 break; 5838 } 5839 case 3296: { 5840 FIELDName12 = input.ReadInt32(); 5841 break; 5842 } 5843 case 3304: { 5844 FieldName13 = input.ReadInt32(); 5845 break; 5846 } 5847 case 3312: { 5848 FieldName14 = input.ReadInt32(); 5849 break; 5850 } 5851 case 3320: { 5852 FieldName15 = input.ReadInt32(); 5853 break; 5854 } 5855 case 3328: { 5856 FieldName16 = input.ReadInt32(); 5857 break; 5858 } 5859 case 3336: { 5860 FieldName17 = input.ReadInt32(); 5861 break; 5862 } 5863 case 3344: { 5864 FieldName18 = input.ReadInt32(); 5865 break; 5866 } 5867 } 5868 } 5869 } 5870 #endif 5871 GetExtension(pb::Extension<TestAllTypesProto2, TValue> extension)5872 public TValue GetExtension<TValue>(pb::Extension<TestAllTypesProto2, TValue> extension) { 5873 return pb::ExtensionSet.Get(ref _extensions, extension); 5874 } GetExtension(pb::RepeatedExtension<TestAllTypesProto2, TValue> extension)5875 public pbc::RepeatedField<TValue> GetExtension<TValue>(pb::RepeatedExtension<TestAllTypesProto2, TValue> extension) { 5876 return pb::ExtensionSet.Get(ref _extensions, extension); 5877 } GetOrInitializeExtension(pb::RepeatedExtension<TestAllTypesProto2, TValue> extension)5878 public pbc::RepeatedField<TValue> GetOrInitializeExtension<TValue>(pb::RepeatedExtension<TestAllTypesProto2, TValue> extension) { 5879 return pb::ExtensionSet.GetOrInitialize(ref _extensions, extension); 5880 } SetExtension(pb::Extension<TestAllTypesProto2, TValue> extension, TValue value)5881 public void SetExtension<TValue>(pb::Extension<TestAllTypesProto2, TValue> extension, TValue value) { 5882 pb::ExtensionSet.Set(ref _extensions, extension, value); 5883 } HasExtension(pb::Extension<TestAllTypesProto2, TValue> extension)5884 public bool HasExtension<TValue>(pb::Extension<TestAllTypesProto2, TValue> extension) { 5885 return pb::ExtensionSet.Has(ref _extensions, extension); 5886 } ClearExtension(pb::Extension<TestAllTypesProto2, TValue> extension)5887 public void ClearExtension<TValue>(pb::Extension<TestAllTypesProto2, TValue> extension) { 5888 pb::ExtensionSet.Clear(ref _extensions, extension); 5889 } ClearExtension(pb::RepeatedExtension<TestAllTypesProto2, TValue> extension)5890 public void ClearExtension<TValue>(pb::RepeatedExtension<TestAllTypesProto2, TValue> extension) { 5891 pb::ExtensionSet.Clear(ref _extensions, extension); 5892 } 5893 5894 #region Nested types 5895 /// <summary>Container for nested types declared in the TestAllTypesProto2 message type.</summary> 5896 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 5897 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 5898 public static partial class Types { 5899 public enum NestedEnum { 5900 [pbr::OriginalName("FOO")] Foo = 0, 5901 [pbr::OriginalName("BAR")] Bar = 1, 5902 [pbr::OriginalName("BAZ")] Baz = 2, 5903 /// <summary> 5904 /// Intentionally negative. 5905 /// </summary> 5906 [pbr::OriginalName("NEG")] Neg = -1, 5907 } 5908 5909 [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] 5910 public sealed partial class NestedMessage : pb::IMessage<NestedMessage> 5911 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 5912 , pb::IBufferMessage 5913 #endif 5914 { 5915 private static readonly pb::MessageParser<NestedMessage> _parser = new pb::MessageParser<NestedMessage>(() => new NestedMessage()); 5916 private pb::UnknownFieldSet _unknownFields; 5917 private int _hasBits0; 5918 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 5919 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 5920 public static pb::MessageParser<NestedMessage> Parser { get { return _parser; } } 5921 5922 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 5923 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 5924 public static pbr::MessageDescriptor Descriptor { 5925 get { return global::ProtobufTestMessages.Proto2.TestAllTypesProto2.Descriptor.NestedTypes[0]; } 5926 } 5927 5928 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 5929 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 5930 pbr::MessageDescriptor pb::IMessage.Descriptor { 5931 get { return Descriptor; } 5932 } 5933 5934 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 5935 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] NestedMessage()5936 public NestedMessage() { 5937 OnConstruction(); 5938 } 5939 OnConstruction()5940 partial void OnConstruction(); 5941 5942 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 5943 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] NestedMessage(NestedMessage other)5944 public NestedMessage(NestedMessage other) : this() { 5945 _hasBits0 = other._hasBits0; 5946 a_ = other.a_; 5947 corecursive_ = other.corecursive_ != null ? other.corecursive_.Clone() : null; 5948 _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); 5949 } 5950 5951 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 5952 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] Clone()5953 public NestedMessage Clone() { 5954 return new NestedMessage(this); 5955 } 5956 5957 /// <summary>Field number for the "a" field.</summary> 5958 public const int AFieldNumber = 1; 5959 private readonly static int ADefaultValue = 0; 5960 5961 private int a_; 5962 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 5963 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 5964 public int A { 5965 get { if ((_hasBits0 & 1) != 0) { return a_; } else { return ADefaultValue; } } 5966 set { 5967 _hasBits0 |= 1; 5968 a_ = value; 5969 } 5970 } 5971 /// <summary>Gets whether the "a" field is set</summary> 5972 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 5973 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 5974 public bool HasA { 5975 get { return (_hasBits0 & 1) != 0; } 5976 } 5977 /// <summary>Clears the value of the "a" field</summary> 5978 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 5979 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] ClearA()5980 public void ClearA() { 5981 _hasBits0 &= ~1; 5982 } 5983 5984 /// <summary>Field number for the "corecursive" field.</summary> 5985 public const int CorecursiveFieldNumber = 2; 5986 private global::ProtobufTestMessages.Proto2.TestAllTypesProto2 corecursive_; 5987 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 5988 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 5989 public global::ProtobufTestMessages.Proto2.TestAllTypesProto2 Corecursive { 5990 get { return corecursive_; } 5991 set { 5992 corecursive_ = value; 5993 } 5994 } 5995 5996 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 5997 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] Equals(object other)5998 public override bool Equals(object other) { 5999 return Equals(other as NestedMessage); 6000 } 6001 6002 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 6003 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] Equals(NestedMessage other)6004 public bool Equals(NestedMessage other) { 6005 if (ReferenceEquals(other, null)) { 6006 return false; 6007 } 6008 if (ReferenceEquals(other, this)) { 6009 return true; 6010 } 6011 if (A != other.A) return false; 6012 if (!object.Equals(Corecursive, other.Corecursive)) return false; 6013 return Equals(_unknownFields, other._unknownFields); 6014 } 6015 6016 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 6017 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] GetHashCode()6018 public override int GetHashCode() { 6019 int hash = 1; 6020 if (HasA) hash ^= A.GetHashCode(); 6021 if (corecursive_ != null) hash ^= Corecursive.GetHashCode(); 6022 if (_unknownFields != null) { 6023 hash ^= _unknownFields.GetHashCode(); 6024 } 6025 return hash; 6026 } 6027 6028 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 6029 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] ToString()6030 public override string ToString() { 6031 return pb::JsonFormatter.ToDiagnosticString(this); 6032 } 6033 6034 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 6035 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] WriteTo(pb::CodedOutputStream output)6036 public void WriteTo(pb::CodedOutputStream output) { 6037 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 6038 output.WriteRawMessage(this); 6039 #else 6040 if (HasA) { 6041 output.WriteRawTag(8); 6042 output.WriteInt32(A); 6043 } 6044 if (corecursive_ != null) { 6045 output.WriteRawTag(18); 6046 output.WriteMessage(Corecursive); 6047 } 6048 if (_unknownFields != null) { 6049 _unknownFields.WriteTo(output); 6050 } 6051 #endif 6052 } 6053 6054 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 6055 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 6056 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] IBufferMessage.InternalWriteTo(ref pb::WriteContext output)6057 void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { 6058 if (HasA) { 6059 output.WriteRawTag(8); 6060 output.WriteInt32(A); 6061 } 6062 if (corecursive_ != null) { 6063 output.WriteRawTag(18); 6064 output.WriteMessage(Corecursive); 6065 } 6066 if (_unknownFields != null) { 6067 _unknownFields.WriteTo(ref output); 6068 } 6069 } 6070 #endif 6071 6072 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 6073 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] CalculateSize()6074 public int CalculateSize() { 6075 int size = 0; 6076 if (HasA) { 6077 size += 1 + pb::CodedOutputStream.ComputeInt32Size(A); 6078 } 6079 if (corecursive_ != null) { 6080 size += 1 + pb::CodedOutputStream.ComputeMessageSize(Corecursive); 6081 } 6082 if (_unknownFields != null) { 6083 size += _unknownFields.CalculateSize(); 6084 } 6085 return size; 6086 } 6087 6088 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 6089 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] MergeFrom(NestedMessage other)6090 public void MergeFrom(NestedMessage other) { 6091 if (other == null) { 6092 return; 6093 } 6094 if (other.HasA) { 6095 A = other.A; 6096 } 6097 if (other.corecursive_ != null) { 6098 if (corecursive_ == null) { 6099 Corecursive = new global::ProtobufTestMessages.Proto2.TestAllTypesProto2(); 6100 } 6101 Corecursive.MergeFrom(other.Corecursive); 6102 } 6103 _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); 6104 } 6105 6106 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 6107 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] MergeFrom(pb::CodedInputStream input)6108 public void MergeFrom(pb::CodedInputStream input) { 6109 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 6110 input.ReadRawMessage(this); 6111 #else 6112 uint tag; 6113 while ((tag = input.ReadTag()) != 0) { 6114 if ((tag & 7) == 4) { 6115 // Abort on any end group tag. 6116 return; 6117 } 6118 switch(tag) { 6119 default: 6120 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); 6121 break; 6122 case 8: { 6123 A = input.ReadInt32(); 6124 break; 6125 } 6126 case 18: { 6127 if (corecursive_ == null) { 6128 Corecursive = new global::ProtobufTestMessages.Proto2.TestAllTypesProto2(); 6129 } 6130 input.ReadMessage(Corecursive); 6131 break; 6132 } 6133 } 6134 } 6135 #endif 6136 } 6137 6138 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 6139 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 6140 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] IBufferMessage.InternalMergeFrom(ref pb::ParseContext input)6141 void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { 6142 uint tag; 6143 while ((tag = input.ReadTag()) != 0) { 6144 if ((tag & 7) == 4) { 6145 // Abort on any end group tag. 6146 return; 6147 } 6148 switch(tag) { 6149 default: 6150 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); 6151 break; 6152 case 8: { 6153 A = input.ReadInt32(); 6154 break; 6155 } 6156 case 18: { 6157 if (corecursive_ == null) { 6158 Corecursive = new global::ProtobufTestMessages.Proto2.TestAllTypesProto2(); 6159 } 6160 input.ReadMessage(Corecursive); 6161 break; 6162 } 6163 } 6164 } 6165 } 6166 #endif 6167 6168 } 6169 6170 /// <summary> 6171 /// groups 6172 /// </summary> 6173 [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] 6174 public sealed partial class Data : pb::IMessage<Data> 6175 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 6176 , pb::IBufferMessage 6177 #endif 6178 { 6179 private static readonly pb::MessageParser<Data> _parser = new pb::MessageParser<Data>(() => new Data()); 6180 private pb::UnknownFieldSet _unknownFields; 6181 private int _hasBits0; 6182 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 6183 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 6184 public static pb::MessageParser<Data> Parser { get { return _parser; } } 6185 6186 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 6187 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 6188 public static pbr::MessageDescriptor Descriptor { 6189 get { return global::ProtobufTestMessages.Proto2.TestAllTypesProto2.Descriptor.NestedTypes[20]; } 6190 } 6191 6192 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 6193 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 6194 pbr::MessageDescriptor pb::IMessage.Descriptor { 6195 get { return Descriptor; } 6196 } 6197 6198 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 6199 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] Data()6200 public Data() { 6201 OnConstruction(); 6202 } 6203 OnConstruction()6204 partial void OnConstruction(); 6205 6206 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 6207 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] Data(Data other)6208 public Data(Data other) : this() { 6209 _hasBits0 = other._hasBits0; 6210 groupInt32_ = other.groupInt32_; 6211 groupUint32_ = other.groupUint32_; 6212 _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); 6213 } 6214 6215 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 6216 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] Clone()6217 public Data Clone() { 6218 return new Data(this); 6219 } 6220 6221 /// <summary>Field number for the "group_int32" field.</summary> 6222 public const int GroupInt32FieldNumber = 202; 6223 private readonly static int GroupInt32DefaultValue = 0; 6224 6225 private int groupInt32_; 6226 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 6227 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 6228 public int GroupInt32 { 6229 get { if ((_hasBits0 & 1) != 0) { return groupInt32_; } else { return GroupInt32DefaultValue; } } 6230 set { 6231 _hasBits0 |= 1; 6232 groupInt32_ = value; 6233 } 6234 } 6235 /// <summary>Gets whether the "group_int32" field is set</summary> 6236 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 6237 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 6238 public bool HasGroupInt32 { 6239 get { return (_hasBits0 & 1) != 0; } 6240 } 6241 /// <summary>Clears the value of the "group_int32" field</summary> 6242 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 6243 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] ClearGroupInt32()6244 public void ClearGroupInt32() { 6245 _hasBits0 &= ~1; 6246 } 6247 6248 /// <summary>Field number for the "group_uint32" field.</summary> 6249 public const int GroupUint32FieldNumber = 203; 6250 private readonly static uint GroupUint32DefaultValue = 0; 6251 6252 private uint groupUint32_; 6253 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 6254 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 6255 public uint GroupUint32 { 6256 get { if ((_hasBits0 & 2) != 0) { return groupUint32_; } else { return GroupUint32DefaultValue; } } 6257 set { 6258 _hasBits0 |= 2; 6259 groupUint32_ = value; 6260 } 6261 } 6262 /// <summary>Gets whether the "group_uint32" field is set</summary> 6263 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 6264 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 6265 public bool HasGroupUint32 { 6266 get { return (_hasBits0 & 2) != 0; } 6267 } 6268 /// <summary>Clears the value of the "group_uint32" field</summary> 6269 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 6270 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] ClearGroupUint32()6271 public void ClearGroupUint32() { 6272 _hasBits0 &= ~2; 6273 } 6274 6275 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 6276 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] Equals(object other)6277 public override bool Equals(object other) { 6278 return Equals(other as Data); 6279 } 6280 6281 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 6282 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] Equals(Data other)6283 public bool Equals(Data other) { 6284 if (ReferenceEquals(other, null)) { 6285 return false; 6286 } 6287 if (ReferenceEquals(other, this)) { 6288 return true; 6289 } 6290 if (GroupInt32 != other.GroupInt32) return false; 6291 if (GroupUint32 != other.GroupUint32) return false; 6292 return Equals(_unknownFields, other._unknownFields); 6293 } 6294 6295 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 6296 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] GetHashCode()6297 public override int GetHashCode() { 6298 int hash = 1; 6299 if (HasGroupInt32) hash ^= GroupInt32.GetHashCode(); 6300 if (HasGroupUint32) hash ^= GroupUint32.GetHashCode(); 6301 if (_unknownFields != null) { 6302 hash ^= _unknownFields.GetHashCode(); 6303 } 6304 return hash; 6305 } 6306 6307 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 6308 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] ToString()6309 public override string ToString() { 6310 return pb::JsonFormatter.ToDiagnosticString(this); 6311 } 6312 6313 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 6314 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] WriteTo(pb::CodedOutputStream output)6315 public void WriteTo(pb::CodedOutputStream output) { 6316 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 6317 output.WriteRawMessage(this); 6318 #else 6319 if (HasGroupInt32) { 6320 output.WriteRawTag(208, 12); 6321 output.WriteInt32(GroupInt32); 6322 } 6323 if (HasGroupUint32) { 6324 output.WriteRawTag(216, 12); 6325 output.WriteUInt32(GroupUint32); 6326 } 6327 if (_unknownFields != null) { 6328 _unknownFields.WriteTo(output); 6329 } 6330 #endif 6331 } 6332 6333 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 6334 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 6335 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] IBufferMessage.InternalWriteTo(ref pb::WriteContext output)6336 void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { 6337 if (HasGroupInt32) { 6338 output.WriteRawTag(208, 12); 6339 output.WriteInt32(GroupInt32); 6340 } 6341 if (HasGroupUint32) { 6342 output.WriteRawTag(216, 12); 6343 output.WriteUInt32(GroupUint32); 6344 } 6345 if (_unknownFields != null) { 6346 _unknownFields.WriteTo(ref output); 6347 } 6348 } 6349 #endif 6350 6351 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 6352 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] CalculateSize()6353 public int CalculateSize() { 6354 int size = 0; 6355 if (HasGroupInt32) { 6356 size += 2 + pb::CodedOutputStream.ComputeInt32Size(GroupInt32); 6357 } 6358 if (HasGroupUint32) { 6359 size += 2 + pb::CodedOutputStream.ComputeUInt32Size(GroupUint32); 6360 } 6361 if (_unknownFields != null) { 6362 size += _unknownFields.CalculateSize(); 6363 } 6364 return size; 6365 } 6366 6367 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 6368 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] MergeFrom(Data other)6369 public void MergeFrom(Data other) { 6370 if (other == null) { 6371 return; 6372 } 6373 if (other.HasGroupInt32) { 6374 GroupInt32 = other.GroupInt32; 6375 } 6376 if (other.HasGroupUint32) { 6377 GroupUint32 = other.GroupUint32; 6378 } 6379 _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); 6380 } 6381 6382 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 6383 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] MergeFrom(pb::CodedInputStream input)6384 public void MergeFrom(pb::CodedInputStream input) { 6385 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 6386 input.ReadRawMessage(this); 6387 #else 6388 uint tag; 6389 while ((tag = input.ReadTag()) != 0) { 6390 if ((tag & 7) == 4) { 6391 // Abort on any end group tag. 6392 return; 6393 } 6394 switch(tag) { 6395 default: 6396 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); 6397 break; 6398 case 1616: { 6399 GroupInt32 = input.ReadInt32(); 6400 break; 6401 } 6402 case 1624: { 6403 GroupUint32 = input.ReadUInt32(); 6404 break; 6405 } 6406 } 6407 } 6408 #endif 6409 } 6410 6411 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 6412 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 6413 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] IBufferMessage.InternalMergeFrom(ref pb::ParseContext input)6414 void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { 6415 uint tag; 6416 while ((tag = input.ReadTag()) != 0) { 6417 if ((tag & 7) == 4) { 6418 // Abort on any end group tag. 6419 return; 6420 } 6421 switch(tag) { 6422 default: 6423 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); 6424 break; 6425 case 1616: { 6426 GroupInt32 = input.ReadInt32(); 6427 break; 6428 } 6429 case 1624: { 6430 GroupUint32 = input.ReadUInt32(); 6431 break; 6432 } 6433 } 6434 } 6435 } 6436 #endif 6437 6438 } 6439 6440 [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] 6441 public sealed partial class MultiWordGroupField : pb::IMessage<MultiWordGroupField> 6442 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 6443 , pb::IBufferMessage 6444 #endif 6445 { 6446 private static readonly pb::MessageParser<MultiWordGroupField> _parser = new pb::MessageParser<MultiWordGroupField>(() => new MultiWordGroupField()); 6447 private pb::UnknownFieldSet _unknownFields; 6448 private int _hasBits0; 6449 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 6450 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 6451 public static pb::MessageParser<MultiWordGroupField> Parser { get { return _parser; } } 6452 6453 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 6454 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 6455 public static pbr::MessageDescriptor Descriptor { 6456 get { return global::ProtobufTestMessages.Proto2.TestAllTypesProto2.Descriptor.NestedTypes[21]; } 6457 } 6458 6459 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 6460 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 6461 pbr::MessageDescriptor pb::IMessage.Descriptor { 6462 get { return Descriptor; } 6463 } 6464 6465 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 6466 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] MultiWordGroupField()6467 public MultiWordGroupField() { 6468 OnConstruction(); 6469 } 6470 OnConstruction()6471 partial void OnConstruction(); 6472 6473 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 6474 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] MultiWordGroupField(MultiWordGroupField other)6475 public MultiWordGroupField(MultiWordGroupField other) : this() { 6476 _hasBits0 = other._hasBits0; 6477 groupInt32_ = other.groupInt32_; 6478 groupUint32_ = other.groupUint32_; 6479 _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); 6480 } 6481 6482 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 6483 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] Clone()6484 public MultiWordGroupField Clone() { 6485 return new MultiWordGroupField(this); 6486 } 6487 6488 /// <summary>Field number for the "group_int32" field.</summary> 6489 public const int GroupInt32FieldNumber = 205; 6490 private readonly static int GroupInt32DefaultValue = 0; 6491 6492 private int groupInt32_; 6493 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 6494 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 6495 public int GroupInt32 { 6496 get { if ((_hasBits0 & 1) != 0) { return groupInt32_; } else { return GroupInt32DefaultValue; } } 6497 set { 6498 _hasBits0 |= 1; 6499 groupInt32_ = value; 6500 } 6501 } 6502 /// <summary>Gets whether the "group_int32" field is set</summary> 6503 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 6504 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 6505 public bool HasGroupInt32 { 6506 get { return (_hasBits0 & 1) != 0; } 6507 } 6508 /// <summary>Clears the value of the "group_int32" field</summary> 6509 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 6510 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] ClearGroupInt32()6511 public void ClearGroupInt32() { 6512 _hasBits0 &= ~1; 6513 } 6514 6515 /// <summary>Field number for the "group_uint32" field.</summary> 6516 public const int GroupUint32FieldNumber = 206; 6517 private readonly static uint GroupUint32DefaultValue = 0; 6518 6519 private uint groupUint32_; 6520 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 6521 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 6522 public uint GroupUint32 { 6523 get { if ((_hasBits0 & 2) != 0) { return groupUint32_; } else { return GroupUint32DefaultValue; } } 6524 set { 6525 _hasBits0 |= 2; 6526 groupUint32_ = value; 6527 } 6528 } 6529 /// <summary>Gets whether the "group_uint32" field is set</summary> 6530 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 6531 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 6532 public bool HasGroupUint32 { 6533 get { return (_hasBits0 & 2) != 0; } 6534 } 6535 /// <summary>Clears the value of the "group_uint32" field</summary> 6536 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 6537 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] ClearGroupUint32()6538 public void ClearGroupUint32() { 6539 _hasBits0 &= ~2; 6540 } 6541 6542 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 6543 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] Equals(object other)6544 public override bool Equals(object other) { 6545 return Equals(other as MultiWordGroupField); 6546 } 6547 6548 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 6549 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] Equals(MultiWordGroupField other)6550 public bool Equals(MultiWordGroupField other) { 6551 if (ReferenceEquals(other, null)) { 6552 return false; 6553 } 6554 if (ReferenceEquals(other, this)) { 6555 return true; 6556 } 6557 if (GroupInt32 != other.GroupInt32) return false; 6558 if (GroupUint32 != other.GroupUint32) return false; 6559 return Equals(_unknownFields, other._unknownFields); 6560 } 6561 6562 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 6563 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] GetHashCode()6564 public override int GetHashCode() { 6565 int hash = 1; 6566 if (HasGroupInt32) hash ^= GroupInt32.GetHashCode(); 6567 if (HasGroupUint32) hash ^= GroupUint32.GetHashCode(); 6568 if (_unknownFields != null) { 6569 hash ^= _unknownFields.GetHashCode(); 6570 } 6571 return hash; 6572 } 6573 6574 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 6575 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] ToString()6576 public override string ToString() { 6577 return pb::JsonFormatter.ToDiagnosticString(this); 6578 } 6579 6580 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 6581 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] WriteTo(pb::CodedOutputStream output)6582 public void WriteTo(pb::CodedOutputStream output) { 6583 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 6584 output.WriteRawMessage(this); 6585 #else 6586 if (HasGroupInt32) { 6587 output.WriteRawTag(232, 12); 6588 output.WriteInt32(GroupInt32); 6589 } 6590 if (HasGroupUint32) { 6591 output.WriteRawTag(240, 12); 6592 output.WriteUInt32(GroupUint32); 6593 } 6594 if (_unknownFields != null) { 6595 _unknownFields.WriteTo(output); 6596 } 6597 #endif 6598 } 6599 6600 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 6601 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 6602 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] IBufferMessage.InternalWriteTo(ref pb::WriteContext output)6603 void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { 6604 if (HasGroupInt32) { 6605 output.WriteRawTag(232, 12); 6606 output.WriteInt32(GroupInt32); 6607 } 6608 if (HasGroupUint32) { 6609 output.WriteRawTag(240, 12); 6610 output.WriteUInt32(GroupUint32); 6611 } 6612 if (_unknownFields != null) { 6613 _unknownFields.WriteTo(ref output); 6614 } 6615 } 6616 #endif 6617 6618 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 6619 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] CalculateSize()6620 public int CalculateSize() { 6621 int size = 0; 6622 if (HasGroupInt32) { 6623 size += 2 + pb::CodedOutputStream.ComputeInt32Size(GroupInt32); 6624 } 6625 if (HasGroupUint32) { 6626 size += 2 + pb::CodedOutputStream.ComputeUInt32Size(GroupUint32); 6627 } 6628 if (_unknownFields != null) { 6629 size += _unknownFields.CalculateSize(); 6630 } 6631 return size; 6632 } 6633 6634 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 6635 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] MergeFrom(MultiWordGroupField other)6636 public void MergeFrom(MultiWordGroupField other) { 6637 if (other == null) { 6638 return; 6639 } 6640 if (other.HasGroupInt32) { 6641 GroupInt32 = other.GroupInt32; 6642 } 6643 if (other.HasGroupUint32) { 6644 GroupUint32 = other.GroupUint32; 6645 } 6646 _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); 6647 } 6648 6649 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 6650 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] MergeFrom(pb::CodedInputStream input)6651 public void MergeFrom(pb::CodedInputStream input) { 6652 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 6653 input.ReadRawMessage(this); 6654 #else 6655 uint tag; 6656 while ((tag = input.ReadTag()) != 0) { 6657 if ((tag & 7) == 4) { 6658 // Abort on any end group tag. 6659 return; 6660 } 6661 switch(tag) { 6662 default: 6663 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); 6664 break; 6665 case 1640: { 6666 GroupInt32 = input.ReadInt32(); 6667 break; 6668 } 6669 case 1648: { 6670 GroupUint32 = input.ReadUInt32(); 6671 break; 6672 } 6673 } 6674 } 6675 #endif 6676 } 6677 6678 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 6679 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 6680 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] IBufferMessage.InternalMergeFrom(ref pb::ParseContext input)6681 void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { 6682 uint tag; 6683 while ((tag = input.ReadTag()) != 0) { 6684 if ((tag & 7) == 4) { 6685 // Abort on any end group tag. 6686 return; 6687 } 6688 switch(tag) { 6689 default: 6690 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); 6691 break; 6692 case 1640: { 6693 GroupInt32 = input.ReadInt32(); 6694 break; 6695 } 6696 case 1648: { 6697 GroupUint32 = input.ReadUInt32(); 6698 break; 6699 } 6700 } 6701 } 6702 } 6703 #endif 6704 6705 } 6706 6707 /// <summary> 6708 /// message_set test case. 6709 /// </summary> 6710 [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] 6711 public sealed partial class MessageSetCorrect : pb::IExtendableMessage<MessageSetCorrect> 6712 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 6713 , pb::IBufferMessage 6714 #endif 6715 { 6716 private static readonly pb::MessageParser<MessageSetCorrect> _parser = new pb::MessageParser<MessageSetCorrect>(() => new MessageSetCorrect()); 6717 private pb::UnknownFieldSet _unknownFields; 6718 private pb::ExtensionSet<MessageSetCorrect> _extensions; 6719 private pb::ExtensionSet<MessageSetCorrect> _Extensions { get { return _extensions; } } 6720 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 6721 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 6722 public static pb::MessageParser<MessageSetCorrect> Parser { get { return _parser; } } 6723 6724 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 6725 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 6726 public static pbr::MessageDescriptor Descriptor { 6727 get { return global::ProtobufTestMessages.Proto2.TestAllTypesProto2.Descriptor.NestedTypes[22]; } 6728 } 6729 6730 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 6731 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 6732 pbr::MessageDescriptor pb::IMessage.Descriptor { 6733 get { return Descriptor; } 6734 } 6735 6736 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 6737 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] MessageSetCorrect()6738 public MessageSetCorrect() { 6739 OnConstruction(); 6740 } 6741 OnConstruction()6742 partial void OnConstruction(); 6743 6744 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 6745 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] MessageSetCorrect(MessageSetCorrect other)6746 public MessageSetCorrect(MessageSetCorrect other) : this() { 6747 _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); 6748 _extensions = pb::ExtensionSet.Clone(other._extensions); 6749 } 6750 6751 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 6752 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] Clone()6753 public MessageSetCorrect Clone() { 6754 return new MessageSetCorrect(this); 6755 } 6756 6757 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 6758 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] Equals(object other)6759 public override bool Equals(object other) { 6760 return Equals(other as MessageSetCorrect); 6761 } 6762 6763 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 6764 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] Equals(MessageSetCorrect other)6765 public bool Equals(MessageSetCorrect other) { 6766 if (ReferenceEquals(other, null)) { 6767 return false; 6768 } 6769 if (ReferenceEquals(other, this)) { 6770 return true; 6771 } 6772 if (!Equals(_extensions, other._extensions)) { 6773 return false; 6774 } 6775 return Equals(_unknownFields, other._unknownFields); 6776 } 6777 6778 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 6779 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] GetHashCode()6780 public override int GetHashCode() { 6781 int hash = 1; 6782 if (_extensions != null) { 6783 hash ^= _extensions.GetHashCode(); 6784 } 6785 if (_unknownFields != null) { 6786 hash ^= _unknownFields.GetHashCode(); 6787 } 6788 return hash; 6789 } 6790 6791 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 6792 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] ToString()6793 public override string ToString() { 6794 return pb::JsonFormatter.ToDiagnosticString(this); 6795 } 6796 6797 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 6798 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] WriteTo(pb::CodedOutputStream output)6799 public void WriteTo(pb::CodedOutputStream output) { 6800 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 6801 output.WriteRawMessage(this); 6802 #else 6803 if (_extensions != null) { 6804 _extensions.WriteTo(output); 6805 } 6806 if (_unknownFields != null) { 6807 _unknownFields.WriteTo(output); 6808 } 6809 #endif 6810 } 6811 6812 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 6813 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 6814 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] IBufferMessage.InternalWriteTo(ref pb::WriteContext output)6815 void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { 6816 if (_extensions != null) { 6817 _extensions.WriteTo(ref output); 6818 } 6819 if (_unknownFields != null) { 6820 _unknownFields.WriteTo(ref output); 6821 } 6822 } 6823 #endif 6824 6825 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 6826 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] CalculateSize()6827 public int CalculateSize() { 6828 int size = 0; 6829 if (_extensions != null) { 6830 size += _extensions.CalculateSize(); 6831 } 6832 if (_unknownFields != null) { 6833 size += _unknownFields.CalculateSize(); 6834 } 6835 return size; 6836 } 6837 6838 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 6839 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] MergeFrom(MessageSetCorrect other)6840 public void MergeFrom(MessageSetCorrect other) { 6841 if (other == null) { 6842 return; 6843 } 6844 pb::ExtensionSet.MergeFrom(ref _extensions, other._extensions); 6845 _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); 6846 } 6847 6848 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 6849 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] MergeFrom(pb::CodedInputStream input)6850 public void MergeFrom(pb::CodedInputStream input) { 6851 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 6852 input.ReadRawMessage(this); 6853 #else 6854 uint tag; 6855 while ((tag = input.ReadTag()) != 0) { 6856 if ((tag & 7) == 4) { 6857 // Abort on any end group tag. 6858 return; 6859 } 6860 switch(tag) { 6861 default: 6862 if (!pb::ExtensionSet.TryMergeFieldFrom(ref _extensions, input)) { 6863 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); 6864 } 6865 break; 6866 } 6867 } 6868 #endif 6869 } 6870 6871 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 6872 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 6873 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] IBufferMessage.InternalMergeFrom(ref pb::ParseContext input)6874 void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { 6875 uint tag; 6876 while ((tag = input.ReadTag()) != 0) { 6877 if ((tag & 7) == 4) { 6878 // Abort on any end group tag. 6879 return; 6880 } 6881 switch(tag) { 6882 default: 6883 if (!pb::ExtensionSet.TryMergeFieldFrom(ref _extensions, ref input)) { 6884 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); 6885 } 6886 break; 6887 } 6888 } 6889 } 6890 #endif 6891 GetExtension(pb::Extension<MessageSetCorrect, TValue> extension)6892 public TValue GetExtension<TValue>(pb::Extension<MessageSetCorrect, TValue> extension) { 6893 return pb::ExtensionSet.Get(ref _extensions, extension); 6894 } GetExtension(pb::RepeatedExtension<MessageSetCorrect, TValue> extension)6895 public pbc::RepeatedField<TValue> GetExtension<TValue>(pb::RepeatedExtension<MessageSetCorrect, TValue> extension) { 6896 return pb::ExtensionSet.Get(ref _extensions, extension); 6897 } GetOrInitializeExtension(pb::RepeatedExtension<MessageSetCorrect, TValue> extension)6898 public pbc::RepeatedField<TValue> GetOrInitializeExtension<TValue>(pb::RepeatedExtension<MessageSetCorrect, TValue> extension) { 6899 return pb::ExtensionSet.GetOrInitialize(ref _extensions, extension); 6900 } SetExtension(pb::Extension<MessageSetCorrect, TValue> extension, TValue value)6901 public void SetExtension<TValue>(pb::Extension<MessageSetCorrect, TValue> extension, TValue value) { 6902 pb::ExtensionSet.Set(ref _extensions, extension, value); 6903 } HasExtension(pb::Extension<MessageSetCorrect, TValue> extension)6904 public bool HasExtension<TValue>(pb::Extension<MessageSetCorrect, TValue> extension) { 6905 return pb::ExtensionSet.Has(ref _extensions, extension); 6906 } ClearExtension(pb::Extension<MessageSetCorrect, TValue> extension)6907 public void ClearExtension<TValue>(pb::Extension<MessageSetCorrect, TValue> extension) { 6908 pb::ExtensionSet.Clear(ref _extensions, extension); 6909 } ClearExtension(pb::RepeatedExtension<MessageSetCorrect, TValue> extension)6910 public void ClearExtension<TValue>(pb::RepeatedExtension<MessageSetCorrect, TValue> extension) { 6911 pb::ExtensionSet.Clear(ref _extensions, extension); 6912 } 6913 6914 } 6915 6916 [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] 6917 public sealed partial class MessageSetCorrectExtension1 : pb::IMessage<MessageSetCorrectExtension1> 6918 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 6919 , pb::IBufferMessage 6920 #endif 6921 { 6922 private static readonly pb::MessageParser<MessageSetCorrectExtension1> _parser = new pb::MessageParser<MessageSetCorrectExtension1>(() => new MessageSetCorrectExtension1()); 6923 private pb::UnknownFieldSet _unknownFields; 6924 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 6925 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 6926 public static pb::MessageParser<MessageSetCorrectExtension1> Parser { get { return _parser; } } 6927 6928 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 6929 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 6930 public static pbr::MessageDescriptor Descriptor { 6931 get { return global::ProtobufTestMessages.Proto2.TestAllTypesProto2.Descriptor.NestedTypes[23]; } 6932 } 6933 6934 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 6935 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 6936 pbr::MessageDescriptor pb::IMessage.Descriptor { 6937 get { return Descriptor; } 6938 } 6939 6940 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 6941 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] MessageSetCorrectExtension1()6942 public MessageSetCorrectExtension1() { 6943 OnConstruction(); 6944 } 6945 OnConstruction()6946 partial void OnConstruction(); 6947 6948 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 6949 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] MessageSetCorrectExtension1(MessageSetCorrectExtension1 other)6950 public MessageSetCorrectExtension1(MessageSetCorrectExtension1 other) : this() { 6951 str_ = other.str_; 6952 _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); 6953 } 6954 6955 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 6956 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] Clone()6957 public MessageSetCorrectExtension1 Clone() { 6958 return new MessageSetCorrectExtension1(this); 6959 } 6960 6961 /// <summary>Field number for the "str" field.</summary> 6962 public const int StrFieldNumber = 25; 6963 private readonly static string StrDefaultValue = ""; 6964 6965 private string str_; 6966 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 6967 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 6968 public string Str { 6969 get { return str_ ?? StrDefaultValue; } 6970 set { 6971 str_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); 6972 } 6973 } 6974 /// <summary>Gets whether the "str" field is set</summary> 6975 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 6976 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 6977 public bool HasStr { 6978 get { return str_ != null; } 6979 } 6980 /// <summary>Clears the value of the "str" field</summary> 6981 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 6982 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] ClearStr()6983 public void ClearStr() { 6984 str_ = null; 6985 } 6986 6987 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 6988 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] Equals(object other)6989 public override bool Equals(object other) { 6990 return Equals(other as MessageSetCorrectExtension1); 6991 } 6992 6993 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 6994 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] Equals(MessageSetCorrectExtension1 other)6995 public bool Equals(MessageSetCorrectExtension1 other) { 6996 if (ReferenceEquals(other, null)) { 6997 return false; 6998 } 6999 if (ReferenceEquals(other, this)) { 7000 return true; 7001 } 7002 if (Str != other.Str) return false; 7003 return Equals(_unknownFields, other._unknownFields); 7004 } 7005 7006 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 7007 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] GetHashCode()7008 public override int GetHashCode() { 7009 int hash = 1; 7010 if (HasStr) hash ^= Str.GetHashCode(); 7011 if (_unknownFields != null) { 7012 hash ^= _unknownFields.GetHashCode(); 7013 } 7014 return hash; 7015 } 7016 7017 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 7018 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] ToString()7019 public override string ToString() { 7020 return pb::JsonFormatter.ToDiagnosticString(this); 7021 } 7022 7023 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 7024 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] WriteTo(pb::CodedOutputStream output)7025 public void WriteTo(pb::CodedOutputStream output) { 7026 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 7027 output.WriteRawMessage(this); 7028 #else 7029 if (HasStr) { 7030 output.WriteRawTag(202, 1); 7031 output.WriteString(Str); 7032 } 7033 if (_unknownFields != null) { 7034 _unknownFields.WriteTo(output); 7035 } 7036 #endif 7037 } 7038 7039 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 7040 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 7041 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] IBufferMessage.InternalWriteTo(ref pb::WriteContext output)7042 void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { 7043 if (HasStr) { 7044 output.WriteRawTag(202, 1); 7045 output.WriteString(Str); 7046 } 7047 if (_unknownFields != null) { 7048 _unknownFields.WriteTo(ref output); 7049 } 7050 } 7051 #endif 7052 7053 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 7054 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] CalculateSize()7055 public int CalculateSize() { 7056 int size = 0; 7057 if (HasStr) { 7058 size += 2 + pb::CodedOutputStream.ComputeStringSize(Str); 7059 } 7060 if (_unknownFields != null) { 7061 size += _unknownFields.CalculateSize(); 7062 } 7063 return size; 7064 } 7065 7066 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 7067 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] MergeFrom(MessageSetCorrectExtension1 other)7068 public void MergeFrom(MessageSetCorrectExtension1 other) { 7069 if (other == null) { 7070 return; 7071 } 7072 if (other.HasStr) { 7073 Str = other.Str; 7074 } 7075 _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); 7076 } 7077 7078 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 7079 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] MergeFrom(pb::CodedInputStream input)7080 public void MergeFrom(pb::CodedInputStream input) { 7081 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 7082 input.ReadRawMessage(this); 7083 #else 7084 uint tag; 7085 while ((tag = input.ReadTag()) != 0) { 7086 if ((tag & 7) == 4) { 7087 // Abort on any end group tag. 7088 return; 7089 } 7090 switch(tag) { 7091 default: 7092 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); 7093 break; 7094 case 202: { 7095 Str = input.ReadString(); 7096 break; 7097 } 7098 } 7099 } 7100 #endif 7101 } 7102 7103 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 7104 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 7105 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] IBufferMessage.InternalMergeFrom(ref pb::ParseContext input)7106 void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { 7107 uint tag; 7108 while ((tag = input.ReadTag()) != 0) { 7109 if ((tag & 7) == 4) { 7110 // Abort on any end group tag. 7111 return; 7112 } 7113 switch(tag) { 7114 default: 7115 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); 7116 break; 7117 case 202: { 7118 Str = input.ReadString(); 7119 break; 7120 } 7121 } 7122 } 7123 } 7124 #endif 7125 7126 #region Extensions 7127 /// <summary>Container for extensions for other messages declared in the MessageSetCorrectExtension1 message type.</summary> 7128 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 7129 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 7130 public static partial class Extensions { 7131 public static readonly pb::Extension<global::ProtobufTestMessages.Proto2.TestAllTypesProto2.Types.MessageSetCorrect, global::ProtobufTestMessages.Proto2.TestAllTypesProto2.Types.MessageSetCorrectExtension1> MessageSetExtension = 7132 new pb::Extension<global::ProtobufTestMessages.Proto2.TestAllTypesProto2.Types.MessageSetCorrect, global::ProtobufTestMessages.Proto2.TestAllTypesProto2.Types.MessageSetCorrectExtension1>(1547769, pb::FieldCodec.ForMessage(12382154, global::ProtobufTestMessages.Proto2.TestAllTypesProto2.Types.MessageSetCorrectExtension1.Parser)); 7133 } 7134 #endregion 7135 7136 } 7137 7138 [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] 7139 public sealed partial class MessageSetCorrectExtension2 : pb::IMessage<MessageSetCorrectExtension2> 7140 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 7141 , pb::IBufferMessage 7142 #endif 7143 { 7144 private static readonly pb::MessageParser<MessageSetCorrectExtension2> _parser = new pb::MessageParser<MessageSetCorrectExtension2>(() => new MessageSetCorrectExtension2()); 7145 private pb::UnknownFieldSet _unknownFields; 7146 private int _hasBits0; 7147 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 7148 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 7149 public static pb::MessageParser<MessageSetCorrectExtension2> Parser { get { return _parser; } } 7150 7151 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 7152 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 7153 public static pbr::MessageDescriptor Descriptor { 7154 get { return global::ProtobufTestMessages.Proto2.TestAllTypesProto2.Descriptor.NestedTypes[24]; } 7155 } 7156 7157 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 7158 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 7159 pbr::MessageDescriptor pb::IMessage.Descriptor { 7160 get { return Descriptor; } 7161 } 7162 7163 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 7164 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] MessageSetCorrectExtension2()7165 public MessageSetCorrectExtension2() { 7166 OnConstruction(); 7167 } 7168 OnConstruction()7169 partial void OnConstruction(); 7170 7171 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 7172 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] MessageSetCorrectExtension2(MessageSetCorrectExtension2 other)7173 public MessageSetCorrectExtension2(MessageSetCorrectExtension2 other) : this() { 7174 _hasBits0 = other._hasBits0; 7175 i_ = other.i_; 7176 _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); 7177 } 7178 7179 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 7180 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] Clone()7181 public MessageSetCorrectExtension2 Clone() { 7182 return new MessageSetCorrectExtension2(this); 7183 } 7184 7185 /// <summary>Field number for the "i" field.</summary> 7186 public const int IFieldNumber = 9; 7187 private readonly static int IDefaultValue = 0; 7188 7189 private int i_; 7190 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 7191 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 7192 public int I { 7193 get { if ((_hasBits0 & 1) != 0) { return i_; } else { return IDefaultValue; } } 7194 set { 7195 _hasBits0 |= 1; 7196 i_ = value; 7197 } 7198 } 7199 /// <summary>Gets whether the "i" field is set</summary> 7200 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 7201 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 7202 public bool HasI { 7203 get { return (_hasBits0 & 1) != 0; } 7204 } 7205 /// <summary>Clears the value of the "i" field</summary> 7206 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 7207 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] ClearI()7208 public void ClearI() { 7209 _hasBits0 &= ~1; 7210 } 7211 7212 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 7213 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] Equals(object other)7214 public override bool Equals(object other) { 7215 return Equals(other as MessageSetCorrectExtension2); 7216 } 7217 7218 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 7219 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] Equals(MessageSetCorrectExtension2 other)7220 public bool Equals(MessageSetCorrectExtension2 other) { 7221 if (ReferenceEquals(other, null)) { 7222 return false; 7223 } 7224 if (ReferenceEquals(other, this)) { 7225 return true; 7226 } 7227 if (I != other.I) return false; 7228 return Equals(_unknownFields, other._unknownFields); 7229 } 7230 7231 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 7232 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] GetHashCode()7233 public override int GetHashCode() { 7234 int hash = 1; 7235 if (HasI) hash ^= I.GetHashCode(); 7236 if (_unknownFields != null) { 7237 hash ^= _unknownFields.GetHashCode(); 7238 } 7239 return hash; 7240 } 7241 7242 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 7243 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] ToString()7244 public override string ToString() { 7245 return pb::JsonFormatter.ToDiagnosticString(this); 7246 } 7247 7248 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 7249 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] WriteTo(pb::CodedOutputStream output)7250 public void WriteTo(pb::CodedOutputStream output) { 7251 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 7252 output.WriteRawMessage(this); 7253 #else 7254 if (HasI) { 7255 output.WriteRawTag(72); 7256 output.WriteInt32(I); 7257 } 7258 if (_unknownFields != null) { 7259 _unknownFields.WriteTo(output); 7260 } 7261 #endif 7262 } 7263 7264 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 7265 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 7266 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] IBufferMessage.InternalWriteTo(ref pb::WriteContext output)7267 void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { 7268 if (HasI) { 7269 output.WriteRawTag(72); 7270 output.WriteInt32(I); 7271 } 7272 if (_unknownFields != null) { 7273 _unknownFields.WriteTo(ref output); 7274 } 7275 } 7276 #endif 7277 7278 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 7279 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] CalculateSize()7280 public int CalculateSize() { 7281 int size = 0; 7282 if (HasI) { 7283 size += 1 + pb::CodedOutputStream.ComputeInt32Size(I); 7284 } 7285 if (_unknownFields != null) { 7286 size += _unknownFields.CalculateSize(); 7287 } 7288 return size; 7289 } 7290 7291 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 7292 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] MergeFrom(MessageSetCorrectExtension2 other)7293 public void MergeFrom(MessageSetCorrectExtension2 other) { 7294 if (other == null) { 7295 return; 7296 } 7297 if (other.HasI) { 7298 I = other.I; 7299 } 7300 _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); 7301 } 7302 7303 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 7304 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] MergeFrom(pb::CodedInputStream input)7305 public void MergeFrom(pb::CodedInputStream input) { 7306 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 7307 input.ReadRawMessage(this); 7308 #else 7309 uint tag; 7310 while ((tag = input.ReadTag()) != 0) { 7311 if ((tag & 7) == 4) { 7312 // Abort on any end group tag. 7313 return; 7314 } 7315 switch(tag) { 7316 default: 7317 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); 7318 break; 7319 case 72: { 7320 I = input.ReadInt32(); 7321 break; 7322 } 7323 } 7324 } 7325 #endif 7326 } 7327 7328 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 7329 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 7330 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] IBufferMessage.InternalMergeFrom(ref pb::ParseContext input)7331 void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { 7332 uint tag; 7333 while ((tag = input.ReadTag()) != 0) { 7334 if ((tag & 7) == 4) { 7335 // Abort on any end group tag. 7336 return; 7337 } 7338 switch(tag) { 7339 default: 7340 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); 7341 break; 7342 case 72: { 7343 I = input.ReadInt32(); 7344 break; 7345 } 7346 } 7347 } 7348 } 7349 #endif 7350 7351 #region Extensions 7352 /// <summary>Container for extensions for other messages declared in the MessageSetCorrectExtension2 message type.</summary> 7353 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 7354 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 7355 public static partial class Extensions { 7356 public static readonly pb::Extension<global::ProtobufTestMessages.Proto2.TestAllTypesProto2.Types.MessageSetCorrect, global::ProtobufTestMessages.Proto2.TestAllTypesProto2.Types.MessageSetCorrectExtension2> MessageSetExtension = 7357 new pb::Extension<global::ProtobufTestMessages.Proto2.TestAllTypesProto2.Types.MessageSetCorrect, global::ProtobufTestMessages.Proto2.TestAllTypesProto2.Types.MessageSetCorrectExtension2>(4135312, pb::FieldCodec.ForMessage(33082498, global::ProtobufTestMessages.Proto2.TestAllTypesProto2.Types.MessageSetCorrectExtension2.Parser)); 7358 } 7359 #endregion 7360 7361 } 7362 7363 } 7364 #endregion 7365 7366 } 7367 7368 [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] 7369 public sealed partial class ForeignMessageProto2 : pb::IMessage<ForeignMessageProto2> 7370 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 7371 , pb::IBufferMessage 7372 #endif 7373 { 7374 private static readonly pb::MessageParser<ForeignMessageProto2> _parser = new pb::MessageParser<ForeignMessageProto2>(() => new ForeignMessageProto2()); 7375 private pb::UnknownFieldSet _unknownFields; 7376 private int _hasBits0; 7377 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 7378 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 7379 public static pb::MessageParser<ForeignMessageProto2> Parser { get { return _parser; } } 7380 7381 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 7382 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 7383 public static pbr::MessageDescriptor Descriptor { 7384 get { return global::ProtobufTestMessages.Proto2.TestMessagesProto2Reflection.Descriptor.MessageTypes[1]; } 7385 } 7386 7387 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 7388 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 7389 pbr::MessageDescriptor pb::IMessage.Descriptor { 7390 get { return Descriptor; } 7391 } 7392 7393 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 7394 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] ForeignMessageProto2()7395 public ForeignMessageProto2() { 7396 OnConstruction(); 7397 } 7398 OnConstruction()7399 partial void OnConstruction(); 7400 7401 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 7402 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] ForeignMessageProto2(ForeignMessageProto2 other)7403 public ForeignMessageProto2(ForeignMessageProto2 other) : this() { 7404 _hasBits0 = other._hasBits0; 7405 c_ = other.c_; 7406 _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); 7407 } 7408 7409 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 7410 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] Clone()7411 public ForeignMessageProto2 Clone() { 7412 return new ForeignMessageProto2(this); 7413 } 7414 7415 /// <summary>Field number for the "c" field.</summary> 7416 public const int CFieldNumber = 1; 7417 private readonly static int CDefaultValue = 0; 7418 7419 private int c_; 7420 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 7421 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 7422 public int C { 7423 get { if ((_hasBits0 & 1) != 0) { return c_; } else { return CDefaultValue; } } 7424 set { 7425 _hasBits0 |= 1; 7426 c_ = value; 7427 } 7428 } 7429 /// <summary>Gets whether the "c" field is set</summary> 7430 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 7431 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 7432 public bool HasC { 7433 get { return (_hasBits0 & 1) != 0; } 7434 } 7435 /// <summary>Clears the value of the "c" field</summary> 7436 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 7437 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] ClearC()7438 public void ClearC() { 7439 _hasBits0 &= ~1; 7440 } 7441 7442 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 7443 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] Equals(object other)7444 public override bool Equals(object other) { 7445 return Equals(other as ForeignMessageProto2); 7446 } 7447 7448 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 7449 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] Equals(ForeignMessageProto2 other)7450 public bool Equals(ForeignMessageProto2 other) { 7451 if (ReferenceEquals(other, null)) { 7452 return false; 7453 } 7454 if (ReferenceEquals(other, this)) { 7455 return true; 7456 } 7457 if (C != other.C) return false; 7458 return Equals(_unknownFields, other._unknownFields); 7459 } 7460 7461 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 7462 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] GetHashCode()7463 public override int GetHashCode() { 7464 int hash = 1; 7465 if (HasC) hash ^= C.GetHashCode(); 7466 if (_unknownFields != null) { 7467 hash ^= _unknownFields.GetHashCode(); 7468 } 7469 return hash; 7470 } 7471 7472 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 7473 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] ToString()7474 public override string ToString() { 7475 return pb::JsonFormatter.ToDiagnosticString(this); 7476 } 7477 7478 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 7479 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] WriteTo(pb::CodedOutputStream output)7480 public void WriteTo(pb::CodedOutputStream output) { 7481 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 7482 output.WriteRawMessage(this); 7483 #else 7484 if (HasC) { 7485 output.WriteRawTag(8); 7486 output.WriteInt32(C); 7487 } 7488 if (_unknownFields != null) { 7489 _unknownFields.WriteTo(output); 7490 } 7491 #endif 7492 } 7493 7494 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 7495 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 7496 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] IBufferMessage.InternalWriteTo(ref pb::WriteContext output)7497 void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { 7498 if (HasC) { 7499 output.WriteRawTag(8); 7500 output.WriteInt32(C); 7501 } 7502 if (_unknownFields != null) { 7503 _unknownFields.WriteTo(ref output); 7504 } 7505 } 7506 #endif 7507 7508 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 7509 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] CalculateSize()7510 public int CalculateSize() { 7511 int size = 0; 7512 if (HasC) { 7513 size += 1 + pb::CodedOutputStream.ComputeInt32Size(C); 7514 } 7515 if (_unknownFields != null) { 7516 size += _unknownFields.CalculateSize(); 7517 } 7518 return size; 7519 } 7520 7521 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 7522 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] MergeFrom(ForeignMessageProto2 other)7523 public void MergeFrom(ForeignMessageProto2 other) { 7524 if (other == null) { 7525 return; 7526 } 7527 if (other.HasC) { 7528 C = other.C; 7529 } 7530 _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); 7531 } 7532 7533 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 7534 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] MergeFrom(pb::CodedInputStream input)7535 public void MergeFrom(pb::CodedInputStream input) { 7536 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 7537 input.ReadRawMessage(this); 7538 #else 7539 uint tag; 7540 while ((tag = input.ReadTag()) != 0) { 7541 if ((tag & 7) == 4) { 7542 // Abort on any end group tag. 7543 return; 7544 } 7545 switch(tag) { 7546 default: 7547 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); 7548 break; 7549 case 8: { 7550 C = input.ReadInt32(); 7551 break; 7552 } 7553 } 7554 } 7555 #endif 7556 } 7557 7558 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 7559 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 7560 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] IBufferMessage.InternalMergeFrom(ref pb::ParseContext input)7561 void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { 7562 uint tag; 7563 while ((tag = input.ReadTag()) != 0) { 7564 if ((tag & 7) == 4) { 7565 // Abort on any end group tag. 7566 return; 7567 } 7568 switch(tag) { 7569 default: 7570 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); 7571 break; 7572 case 8: { 7573 C = input.ReadInt32(); 7574 break; 7575 } 7576 } 7577 } 7578 } 7579 #endif 7580 7581 } 7582 7583 [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] 7584 public sealed partial class GroupField : pb::IMessage<GroupField> 7585 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 7586 , pb::IBufferMessage 7587 #endif 7588 { 7589 private static readonly pb::MessageParser<GroupField> _parser = new pb::MessageParser<GroupField>(() => new GroupField()); 7590 private pb::UnknownFieldSet _unknownFields; 7591 private int _hasBits0; 7592 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 7593 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 7594 public static pb::MessageParser<GroupField> Parser { get { return _parser; } } 7595 7596 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 7597 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 7598 public static pbr::MessageDescriptor Descriptor { 7599 get { return global::ProtobufTestMessages.Proto2.TestMessagesProto2Reflection.Descriptor.MessageTypes[2]; } 7600 } 7601 7602 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 7603 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 7604 pbr::MessageDescriptor pb::IMessage.Descriptor { 7605 get { return Descriptor; } 7606 } 7607 7608 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 7609 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] GroupField()7610 public GroupField() { 7611 OnConstruction(); 7612 } 7613 OnConstruction()7614 partial void OnConstruction(); 7615 7616 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 7617 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] GroupField(GroupField other)7618 public GroupField(GroupField other) : this() { 7619 _hasBits0 = other._hasBits0; 7620 groupInt32_ = other.groupInt32_; 7621 groupUint32_ = other.groupUint32_; 7622 _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); 7623 } 7624 7625 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 7626 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] Clone()7627 public GroupField Clone() { 7628 return new GroupField(this); 7629 } 7630 7631 /// <summary>Field number for the "group_int32" field.</summary> 7632 public const int GroupInt32FieldNumber = 122; 7633 private readonly static int GroupInt32DefaultValue = 0; 7634 7635 private int groupInt32_; 7636 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 7637 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 7638 public int GroupInt32 { 7639 get { if ((_hasBits0 & 1) != 0) { return groupInt32_; } else { return GroupInt32DefaultValue; } } 7640 set { 7641 _hasBits0 |= 1; 7642 groupInt32_ = value; 7643 } 7644 } 7645 /// <summary>Gets whether the "group_int32" field is set</summary> 7646 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 7647 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 7648 public bool HasGroupInt32 { 7649 get { return (_hasBits0 & 1) != 0; } 7650 } 7651 /// <summary>Clears the value of the "group_int32" field</summary> 7652 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 7653 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] ClearGroupInt32()7654 public void ClearGroupInt32() { 7655 _hasBits0 &= ~1; 7656 } 7657 7658 /// <summary>Field number for the "group_uint32" field.</summary> 7659 public const int GroupUint32FieldNumber = 123; 7660 private readonly static uint GroupUint32DefaultValue = 0; 7661 7662 private uint groupUint32_; 7663 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 7664 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 7665 public uint GroupUint32 { 7666 get { if ((_hasBits0 & 2) != 0) { return groupUint32_; } else { return GroupUint32DefaultValue; } } 7667 set { 7668 _hasBits0 |= 2; 7669 groupUint32_ = value; 7670 } 7671 } 7672 /// <summary>Gets whether the "group_uint32" field is set</summary> 7673 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 7674 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 7675 public bool HasGroupUint32 { 7676 get { return (_hasBits0 & 2) != 0; } 7677 } 7678 /// <summary>Clears the value of the "group_uint32" field</summary> 7679 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 7680 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] ClearGroupUint32()7681 public void ClearGroupUint32() { 7682 _hasBits0 &= ~2; 7683 } 7684 7685 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 7686 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] Equals(object other)7687 public override bool Equals(object other) { 7688 return Equals(other as GroupField); 7689 } 7690 7691 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 7692 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] Equals(GroupField other)7693 public bool Equals(GroupField other) { 7694 if (ReferenceEquals(other, null)) { 7695 return false; 7696 } 7697 if (ReferenceEquals(other, this)) { 7698 return true; 7699 } 7700 if (GroupInt32 != other.GroupInt32) return false; 7701 if (GroupUint32 != other.GroupUint32) return false; 7702 return Equals(_unknownFields, other._unknownFields); 7703 } 7704 7705 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 7706 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] GetHashCode()7707 public override int GetHashCode() { 7708 int hash = 1; 7709 if (HasGroupInt32) hash ^= GroupInt32.GetHashCode(); 7710 if (HasGroupUint32) hash ^= GroupUint32.GetHashCode(); 7711 if (_unknownFields != null) { 7712 hash ^= _unknownFields.GetHashCode(); 7713 } 7714 return hash; 7715 } 7716 7717 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 7718 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] ToString()7719 public override string ToString() { 7720 return pb::JsonFormatter.ToDiagnosticString(this); 7721 } 7722 7723 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 7724 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] WriteTo(pb::CodedOutputStream output)7725 public void WriteTo(pb::CodedOutputStream output) { 7726 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 7727 output.WriteRawMessage(this); 7728 #else 7729 if (HasGroupInt32) { 7730 output.WriteRawTag(208, 7); 7731 output.WriteInt32(GroupInt32); 7732 } 7733 if (HasGroupUint32) { 7734 output.WriteRawTag(216, 7); 7735 output.WriteUInt32(GroupUint32); 7736 } 7737 if (_unknownFields != null) { 7738 _unknownFields.WriteTo(output); 7739 } 7740 #endif 7741 } 7742 7743 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 7744 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 7745 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] IBufferMessage.InternalWriteTo(ref pb::WriteContext output)7746 void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { 7747 if (HasGroupInt32) { 7748 output.WriteRawTag(208, 7); 7749 output.WriteInt32(GroupInt32); 7750 } 7751 if (HasGroupUint32) { 7752 output.WriteRawTag(216, 7); 7753 output.WriteUInt32(GroupUint32); 7754 } 7755 if (_unknownFields != null) { 7756 _unknownFields.WriteTo(ref output); 7757 } 7758 } 7759 #endif 7760 7761 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 7762 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] CalculateSize()7763 public int CalculateSize() { 7764 int size = 0; 7765 if (HasGroupInt32) { 7766 size += 2 + pb::CodedOutputStream.ComputeInt32Size(GroupInt32); 7767 } 7768 if (HasGroupUint32) { 7769 size += 2 + pb::CodedOutputStream.ComputeUInt32Size(GroupUint32); 7770 } 7771 if (_unknownFields != null) { 7772 size += _unknownFields.CalculateSize(); 7773 } 7774 return size; 7775 } 7776 7777 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 7778 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] MergeFrom(GroupField other)7779 public void MergeFrom(GroupField other) { 7780 if (other == null) { 7781 return; 7782 } 7783 if (other.HasGroupInt32) { 7784 GroupInt32 = other.GroupInt32; 7785 } 7786 if (other.HasGroupUint32) { 7787 GroupUint32 = other.GroupUint32; 7788 } 7789 _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); 7790 } 7791 7792 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 7793 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] MergeFrom(pb::CodedInputStream input)7794 public void MergeFrom(pb::CodedInputStream input) { 7795 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 7796 input.ReadRawMessage(this); 7797 #else 7798 uint tag; 7799 while ((tag = input.ReadTag()) != 0) { 7800 if ((tag & 7) == 4) { 7801 // Abort on any end group tag. 7802 return; 7803 } 7804 switch(tag) { 7805 default: 7806 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); 7807 break; 7808 case 976: { 7809 GroupInt32 = input.ReadInt32(); 7810 break; 7811 } 7812 case 984: { 7813 GroupUint32 = input.ReadUInt32(); 7814 break; 7815 } 7816 } 7817 } 7818 #endif 7819 } 7820 7821 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 7822 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 7823 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] IBufferMessage.InternalMergeFrom(ref pb::ParseContext input)7824 void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { 7825 uint tag; 7826 while ((tag = input.ReadTag()) != 0) { 7827 if ((tag & 7) == 4) { 7828 // Abort on any end group tag. 7829 return; 7830 } 7831 switch(tag) { 7832 default: 7833 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); 7834 break; 7835 case 976: { 7836 GroupInt32 = input.ReadInt32(); 7837 break; 7838 } 7839 case 984: { 7840 GroupUint32 = input.ReadUInt32(); 7841 break; 7842 } 7843 } 7844 } 7845 } 7846 #endif 7847 7848 } 7849 7850 [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] 7851 public sealed partial class UnknownToTestAllTypes : pb::IMessage<UnknownToTestAllTypes> 7852 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 7853 , pb::IBufferMessage 7854 #endif 7855 { 7856 private static readonly pb::MessageParser<UnknownToTestAllTypes> _parser = new pb::MessageParser<UnknownToTestAllTypes>(() => new UnknownToTestAllTypes()); 7857 private pb::UnknownFieldSet _unknownFields; 7858 private int _hasBits0; 7859 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 7860 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 7861 public static pb::MessageParser<UnknownToTestAllTypes> Parser { get { return _parser; } } 7862 7863 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 7864 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 7865 public static pbr::MessageDescriptor Descriptor { 7866 get { return global::ProtobufTestMessages.Proto2.TestMessagesProto2Reflection.Descriptor.MessageTypes[3]; } 7867 } 7868 7869 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 7870 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 7871 pbr::MessageDescriptor pb::IMessage.Descriptor { 7872 get { return Descriptor; } 7873 } 7874 7875 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 7876 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] UnknownToTestAllTypes()7877 public UnknownToTestAllTypes() { 7878 OnConstruction(); 7879 } 7880 OnConstruction()7881 partial void OnConstruction(); 7882 7883 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 7884 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] UnknownToTestAllTypes(UnknownToTestAllTypes other)7885 public UnknownToTestAllTypes(UnknownToTestAllTypes other) : this() { 7886 _hasBits0 = other._hasBits0; 7887 optionalInt32_ = other.optionalInt32_; 7888 optionalString_ = other.optionalString_; 7889 nestedMessage_ = other.nestedMessage_ != null ? other.nestedMessage_.Clone() : null; 7890 optionalGroup_ = other.HasOptionalGroup ? other.optionalGroup_.Clone() : null; 7891 optionalBool_ = other.optionalBool_; 7892 repeatedInt32_ = other.repeatedInt32_.Clone(); 7893 _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); 7894 } 7895 7896 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 7897 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] Clone()7898 public UnknownToTestAllTypes Clone() { 7899 return new UnknownToTestAllTypes(this); 7900 } 7901 7902 /// <summary>Field number for the "optional_int32" field.</summary> 7903 public const int OptionalInt32FieldNumber = 1001; 7904 private readonly static int OptionalInt32DefaultValue = 0; 7905 7906 private int optionalInt32_; 7907 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 7908 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 7909 public int OptionalInt32 { 7910 get { if ((_hasBits0 & 1) != 0) { return optionalInt32_; } else { return OptionalInt32DefaultValue; } } 7911 set { 7912 _hasBits0 |= 1; 7913 optionalInt32_ = value; 7914 } 7915 } 7916 /// <summary>Gets whether the "optional_int32" field is set</summary> 7917 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 7918 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 7919 public bool HasOptionalInt32 { 7920 get { return (_hasBits0 & 1) != 0; } 7921 } 7922 /// <summary>Clears the value of the "optional_int32" field</summary> 7923 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 7924 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] ClearOptionalInt32()7925 public void ClearOptionalInt32() { 7926 _hasBits0 &= ~1; 7927 } 7928 7929 /// <summary>Field number for the "optional_string" field.</summary> 7930 public const int OptionalStringFieldNumber = 1002; 7931 private readonly static string OptionalStringDefaultValue = ""; 7932 7933 private string optionalString_; 7934 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 7935 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 7936 public string OptionalString { 7937 get { return optionalString_ ?? OptionalStringDefaultValue; } 7938 set { 7939 optionalString_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); 7940 } 7941 } 7942 /// <summary>Gets whether the "optional_string" field is set</summary> 7943 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 7944 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 7945 public bool HasOptionalString { 7946 get { return optionalString_ != null; } 7947 } 7948 /// <summary>Clears the value of the "optional_string" field</summary> 7949 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 7950 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] ClearOptionalString()7951 public void ClearOptionalString() { 7952 optionalString_ = null; 7953 } 7954 7955 /// <summary>Field number for the "nested_message" field.</summary> 7956 public const int NestedMessageFieldNumber = 1003; 7957 private global::ProtobufTestMessages.Proto2.ForeignMessageProto2 nestedMessage_; 7958 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 7959 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 7960 public global::ProtobufTestMessages.Proto2.ForeignMessageProto2 NestedMessage { 7961 get { return nestedMessage_; } 7962 set { 7963 nestedMessage_ = value; 7964 } 7965 } 7966 7967 /// <summary>Field number for the "optionalgroup" field.</summary> 7968 public const int OptionalGroupFieldNumber = 1004; 7969 private global::ProtobufTestMessages.Proto2.UnknownToTestAllTypes.Types.OptionalGroup optionalGroup_; 7970 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 7971 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 7972 public global::ProtobufTestMessages.Proto2.UnknownToTestAllTypes.Types.OptionalGroup OptionalGroup { 7973 get { return optionalGroup_; } 7974 set { 7975 optionalGroup_ = value; 7976 } 7977 } 7978 /// <summary>Gets whether the optionalgroup field is set</summary> 7979 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 7980 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 7981 public bool HasOptionalGroup { 7982 get { return optionalGroup_ != null; } 7983 } 7984 /// <summary>Clears the value of the optionalgroup field</summary> 7985 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 7986 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] ClearOptionalGroup()7987 public void ClearOptionalGroup() { 7988 optionalGroup_ = null; 7989 } 7990 7991 /// <summary>Field number for the "optional_bool" field.</summary> 7992 public const int OptionalBoolFieldNumber = 1006; 7993 private readonly static bool OptionalBoolDefaultValue = false; 7994 7995 private bool optionalBool_; 7996 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 7997 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 7998 public bool OptionalBool { 7999 get { if ((_hasBits0 & 2) != 0) { return optionalBool_; } else { return OptionalBoolDefaultValue; } } 8000 set { 8001 _hasBits0 |= 2; 8002 optionalBool_ = value; 8003 } 8004 } 8005 /// <summary>Gets whether the "optional_bool" field is set</summary> 8006 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 8007 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 8008 public bool HasOptionalBool { 8009 get { return (_hasBits0 & 2) != 0; } 8010 } 8011 /// <summary>Clears the value of the "optional_bool" field</summary> 8012 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 8013 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] ClearOptionalBool()8014 public void ClearOptionalBool() { 8015 _hasBits0 &= ~2; 8016 } 8017 8018 /// <summary>Field number for the "repeated_int32" field.</summary> 8019 public const int RepeatedInt32FieldNumber = 1011; 8020 private static readonly pb::FieldCodec<int> _repeated_repeatedInt32_codec 8021 = pb::FieldCodec.ForInt32(8088); 8022 private readonly pbc::RepeatedField<int> repeatedInt32_ = new pbc::RepeatedField<int>(); 8023 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 8024 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 8025 public pbc::RepeatedField<int> RepeatedInt32 { 8026 get { return repeatedInt32_; } 8027 } 8028 8029 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 8030 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] Equals(object other)8031 public override bool Equals(object other) { 8032 return Equals(other as UnknownToTestAllTypes); 8033 } 8034 8035 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 8036 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] Equals(UnknownToTestAllTypes other)8037 public bool Equals(UnknownToTestAllTypes other) { 8038 if (ReferenceEquals(other, null)) { 8039 return false; 8040 } 8041 if (ReferenceEquals(other, this)) { 8042 return true; 8043 } 8044 if (OptionalInt32 != other.OptionalInt32) return false; 8045 if (OptionalString != other.OptionalString) return false; 8046 if (!object.Equals(NestedMessage, other.NestedMessage)) return false; 8047 if (!object.Equals(OptionalGroup, other.OptionalGroup)) return false; 8048 if (OptionalBool != other.OptionalBool) return false; 8049 if(!repeatedInt32_.Equals(other.repeatedInt32_)) return false; 8050 return Equals(_unknownFields, other._unknownFields); 8051 } 8052 8053 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 8054 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] GetHashCode()8055 public override int GetHashCode() { 8056 int hash = 1; 8057 if (HasOptionalInt32) hash ^= OptionalInt32.GetHashCode(); 8058 if (HasOptionalString) hash ^= OptionalString.GetHashCode(); 8059 if (nestedMessage_ != null) hash ^= NestedMessage.GetHashCode(); 8060 if (HasOptionalGroup) hash ^= OptionalGroup.GetHashCode(); 8061 if (HasOptionalBool) hash ^= OptionalBool.GetHashCode(); 8062 hash ^= repeatedInt32_.GetHashCode(); 8063 if (_unknownFields != null) { 8064 hash ^= _unknownFields.GetHashCode(); 8065 } 8066 return hash; 8067 } 8068 8069 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 8070 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] ToString()8071 public override string ToString() { 8072 return pb::JsonFormatter.ToDiagnosticString(this); 8073 } 8074 8075 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 8076 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] WriteTo(pb::CodedOutputStream output)8077 public void WriteTo(pb::CodedOutputStream output) { 8078 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 8079 output.WriteRawMessage(this); 8080 #else 8081 if (HasOptionalInt32) { 8082 output.WriteRawTag(200, 62); 8083 output.WriteInt32(OptionalInt32); 8084 } 8085 if (HasOptionalString) { 8086 output.WriteRawTag(210, 62); 8087 output.WriteString(OptionalString); 8088 } 8089 if (nestedMessage_ != null) { 8090 output.WriteRawTag(218, 62); 8091 output.WriteMessage(NestedMessage); 8092 } 8093 if (HasOptionalGroup) { 8094 output.WriteRawTag(227, 62); 8095 output.WriteGroup(OptionalGroup); 8096 output.WriteRawTag(228, 62); 8097 } 8098 if (HasOptionalBool) { 8099 output.WriteRawTag(240, 62); 8100 output.WriteBool(OptionalBool); 8101 } 8102 repeatedInt32_.WriteTo(output, _repeated_repeatedInt32_codec); 8103 if (_unknownFields != null) { 8104 _unknownFields.WriteTo(output); 8105 } 8106 #endif 8107 } 8108 8109 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 8110 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 8111 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] IBufferMessage.InternalWriteTo(ref pb::WriteContext output)8112 void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { 8113 if (HasOptionalInt32) { 8114 output.WriteRawTag(200, 62); 8115 output.WriteInt32(OptionalInt32); 8116 } 8117 if (HasOptionalString) { 8118 output.WriteRawTag(210, 62); 8119 output.WriteString(OptionalString); 8120 } 8121 if (nestedMessage_ != null) { 8122 output.WriteRawTag(218, 62); 8123 output.WriteMessage(NestedMessage); 8124 } 8125 if (HasOptionalGroup) { 8126 output.WriteRawTag(227, 62); 8127 output.WriteGroup(OptionalGroup); 8128 output.WriteRawTag(228, 62); 8129 } 8130 if (HasOptionalBool) { 8131 output.WriteRawTag(240, 62); 8132 output.WriteBool(OptionalBool); 8133 } 8134 repeatedInt32_.WriteTo(ref output, _repeated_repeatedInt32_codec); 8135 if (_unknownFields != null) { 8136 _unknownFields.WriteTo(ref output); 8137 } 8138 } 8139 #endif 8140 8141 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 8142 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] CalculateSize()8143 public int CalculateSize() { 8144 int size = 0; 8145 if (HasOptionalInt32) { 8146 size += 2 + pb::CodedOutputStream.ComputeInt32Size(OptionalInt32); 8147 } 8148 if (HasOptionalString) { 8149 size += 2 + pb::CodedOutputStream.ComputeStringSize(OptionalString); 8150 } 8151 if (nestedMessage_ != null) { 8152 size += 2 + pb::CodedOutputStream.ComputeMessageSize(NestedMessage); 8153 } 8154 if (HasOptionalGroup) { 8155 size += 4 + pb::CodedOutputStream.ComputeGroupSize(OptionalGroup); 8156 } 8157 if (HasOptionalBool) { 8158 size += 2 + 1; 8159 } 8160 size += repeatedInt32_.CalculateSize(_repeated_repeatedInt32_codec); 8161 if (_unknownFields != null) { 8162 size += _unknownFields.CalculateSize(); 8163 } 8164 return size; 8165 } 8166 8167 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 8168 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] MergeFrom(UnknownToTestAllTypes other)8169 public void MergeFrom(UnknownToTestAllTypes other) { 8170 if (other == null) { 8171 return; 8172 } 8173 if (other.HasOptionalInt32) { 8174 OptionalInt32 = other.OptionalInt32; 8175 } 8176 if (other.HasOptionalString) { 8177 OptionalString = other.OptionalString; 8178 } 8179 if (other.nestedMessage_ != null) { 8180 if (nestedMessage_ == null) { 8181 NestedMessage = new global::ProtobufTestMessages.Proto2.ForeignMessageProto2(); 8182 } 8183 NestedMessage.MergeFrom(other.NestedMessage); 8184 } 8185 if (other.HasOptionalGroup) { 8186 if (!HasOptionalGroup) { 8187 OptionalGroup = new global::ProtobufTestMessages.Proto2.UnknownToTestAllTypes.Types.OptionalGroup(); 8188 } 8189 OptionalGroup.MergeFrom(other.OptionalGroup); 8190 } 8191 if (other.HasOptionalBool) { 8192 OptionalBool = other.OptionalBool; 8193 } 8194 repeatedInt32_.Add(other.repeatedInt32_); 8195 _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); 8196 } 8197 8198 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 8199 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] MergeFrom(pb::CodedInputStream input)8200 public void MergeFrom(pb::CodedInputStream input) { 8201 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 8202 input.ReadRawMessage(this); 8203 #else 8204 uint tag; 8205 while ((tag = input.ReadTag()) != 0) { 8206 if ((tag & 7) == 4) { 8207 // Abort on any end group tag. 8208 return; 8209 } 8210 switch(tag) { 8211 default: 8212 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); 8213 break; 8214 case 8008: { 8215 OptionalInt32 = input.ReadInt32(); 8216 break; 8217 } 8218 case 8018: { 8219 OptionalString = input.ReadString(); 8220 break; 8221 } 8222 case 8026: { 8223 if (nestedMessage_ == null) { 8224 NestedMessage = new global::ProtobufTestMessages.Proto2.ForeignMessageProto2(); 8225 } 8226 input.ReadMessage(NestedMessage); 8227 break; 8228 } 8229 case 8035: { 8230 if (!HasOptionalGroup) { 8231 OptionalGroup = new global::ProtobufTestMessages.Proto2.UnknownToTestAllTypes.Types.OptionalGroup(); 8232 } 8233 input.ReadGroup(OptionalGroup); 8234 break; 8235 } 8236 case 8048: { 8237 OptionalBool = input.ReadBool(); 8238 break; 8239 } 8240 case 8090: 8241 case 8088: { 8242 repeatedInt32_.AddEntriesFrom(input, _repeated_repeatedInt32_codec); 8243 break; 8244 } 8245 } 8246 } 8247 #endif 8248 } 8249 8250 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 8251 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 8252 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] IBufferMessage.InternalMergeFrom(ref pb::ParseContext input)8253 void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { 8254 uint tag; 8255 while ((tag = input.ReadTag()) != 0) { 8256 if ((tag & 7) == 4) { 8257 // Abort on any end group tag. 8258 return; 8259 } 8260 switch(tag) { 8261 default: 8262 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); 8263 break; 8264 case 8008: { 8265 OptionalInt32 = input.ReadInt32(); 8266 break; 8267 } 8268 case 8018: { 8269 OptionalString = input.ReadString(); 8270 break; 8271 } 8272 case 8026: { 8273 if (nestedMessage_ == null) { 8274 NestedMessage = new global::ProtobufTestMessages.Proto2.ForeignMessageProto2(); 8275 } 8276 input.ReadMessage(NestedMessage); 8277 break; 8278 } 8279 case 8035: { 8280 if (!HasOptionalGroup) { 8281 OptionalGroup = new global::ProtobufTestMessages.Proto2.UnknownToTestAllTypes.Types.OptionalGroup(); 8282 } 8283 input.ReadGroup(OptionalGroup); 8284 break; 8285 } 8286 case 8048: { 8287 OptionalBool = input.ReadBool(); 8288 break; 8289 } 8290 case 8090: 8291 case 8088: { 8292 repeatedInt32_.AddEntriesFrom(ref input, _repeated_repeatedInt32_codec); 8293 break; 8294 } 8295 } 8296 } 8297 } 8298 #endif 8299 8300 #region Nested types 8301 /// <summary>Container for nested types declared in the UnknownToTestAllTypes message type.</summary> 8302 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 8303 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 8304 public static partial class Types { 8305 [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] 8306 public sealed partial class OptionalGroup : pb::IMessage<OptionalGroup> 8307 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 8308 , pb::IBufferMessage 8309 #endif 8310 { 8311 private static readonly pb::MessageParser<OptionalGroup> _parser = new pb::MessageParser<OptionalGroup>(() => new OptionalGroup()); 8312 private pb::UnknownFieldSet _unknownFields; 8313 private int _hasBits0; 8314 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 8315 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 8316 public static pb::MessageParser<OptionalGroup> Parser { get { return _parser; } } 8317 8318 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 8319 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 8320 public static pbr::MessageDescriptor Descriptor { 8321 get { return global::ProtobufTestMessages.Proto2.UnknownToTestAllTypes.Descriptor.NestedTypes[0]; } 8322 } 8323 8324 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 8325 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 8326 pbr::MessageDescriptor pb::IMessage.Descriptor { 8327 get { return Descriptor; } 8328 } 8329 8330 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 8331 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] OptionalGroup()8332 public OptionalGroup() { 8333 OnConstruction(); 8334 } 8335 OnConstruction()8336 partial void OnConstruction(); 8337 8338 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 8339 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] OptionalGroup(OptionalGroup other)8340 public OptionalGroup(OptionalGroup other) : this() { 8341 _hasBits0 = other._hasBits0; 8342 a_ = other.a_; 8343 _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); 8344 } 8345 8346 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 8347 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] Clone()8348 public OptionalGroup Clone() { 8349 return new OptionalGroup(this); 8350 } 8351 8352 /// <summary>Field number for the "a" field.</summary> 8353 public const int AFieldNumber = 1; 8354 private readonly static int ADefaultValue = 0; 8355 8356 private int a_; 8357 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 8358 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 8359 public int A { 8360 get { if ((_hasBits0 & 1) != 0) { return a_; } else { return ADefaultValue; } } 8361 set { 8362 _hasBits0 |= 1; 8363 a_ = value; 8364 } 8365 } 8366 /// <summary>Gets whether the "a" field is set</summary> 8367 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 8368 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 8369 public bool HasA { 8370 get { return (_hasBits0 & 1) != 0; } 8371 } 8372 /// <summary>Clears the value of the "a" field</summary> 8373 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 8374 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] ClearA()8375 public void ClearA() { 8376 _hasBits0 &= ~1; 8377 } 8378 8379 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 8380 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] Equals(object other)8381 public override bool Equals(object other) { 8382 return Equals(other as OptionalGroup); 8383 } 8384 8385 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 8386 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] Equals(OptionalGroup other)8387 public bool Equals(OptionalGroup other) { 8388 if (ReferenceEquals(other, null)) { 8389 return false; 8390 } 8391 if (ReferenceEquals(other, this)) { 8392 return true; 8393 } 8394 if (A != other.A) return false; 8395 return Equals(_unknownFields, other._unknownFields); 8396 } 8397 8398 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 8399 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] GetHashCode()8400 public override int GetHashCode() { 8401 int hash = 1; 8402 if (HasA) hash ^= A.GetHashCode(); 8403 if (_unknownFields != null) { 8404 hash ^= _unknownFields.GetHashCode(); 8405 } 8406 return hash; 8407 } 8408 8409 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 8410 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] ToString()8411 public override string ToString() { 8412 return pb::JsonFormatter.ToDiagnosticString(this); 8413 } 8414 8415 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 8416 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] WriteTo(pb::CodedOutputStream output)8417 public void WriteTo(pb::CodedOutputStream output) { 8418 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 8419 output.WriteRawMessage(this); 8420 #else 8421 if (HasA) { 8422 output.WriteRawTag(8); 8423 output.WriteInt32(A); 8424 } 8425 if (_unknownFields != null) { 8426 _unknownFields.WriteTo(output); 8427 } 8428 #endif 8429 } 8430 8431 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 8432 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 8433 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] IBufferMessage.InternalWriteTo(ref pb::WriteContext output)8434 void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { 8435 if (HasA) { 8436 output.WriteRawTag(8); 8437 output.WriteInt32(A); 8438 } 8439 if (_unknownFields != null) { 8440 _unknownFields.WriteTo(ref output); 8441 } 8442 } 8443 #endif 8444 8445 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 8446 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] CalculateSize()8447 public int CalculateSize() { 8448 int size = 0; 8449 if (HasA) { 8450 size += 1 + pb::CodedOutputStream.ComputeInt32Size(A); 8451 } 8452 if (_unknownFields != null) { 8453 size += _unknownFields.CalculateSize(); 8454 } 8455 return size; 8456 } 8457 8458 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 8459 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] MergeFrom(OptionalGroup other)8460 public void MergeFrom(OptionalGroup other) { 8461 if (other == null) { 8462 return; 8463 } 8464 if (other.HasA) { 8465 A = other.A; 8466 } 8467 _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); 8468 } 8469 8470 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 8471 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] MergeFrom(pb::CodedInputStream input)8472 public void MergeFrom(pb::CodedInputStream input) { 8473 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 8474 input.ReadRawMessage(this); 8475 #else 8476 uint tag; 8477 while ((tag = input.ReadTag()) != 0) { 8478 if ((tag & 7) == 4) { 8479 // Abort on any end group tag. 8480 return; 8481 } 8482 switch(tag) { 8483 default: 8484 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); 8485 break; 8486 case 8: { 8487 A = input.ReadInt32(); 8488 break; 8489 } 8490 } 8491 } 8492 #endif 8493 } 8494 8495 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 8496 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 8497 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] IBufferMessage.InternalMergeFrom(ref pb::ParseContext input)8498 void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { 8499 uint tag; 8500 while ((tag = input.ReadTag()) != 0) { 8501 if ((tag & 7) == 4) { 8502 // Abort on any end group tag. 8503 return; 8504 } 8505 switch(tag) { 8506 default: 8507 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); 8508 break; 8509 case 8: { 8510 A = input.ReadInt32(); 8511 break; 8512 } 8513 } 8514 } 8515 } 8516 #endif 8517 8518 } 8519 8520 } 8521 #endregion 8522 8523 } 8524 8525 [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] 8526 public sealed partial class NullHypothesisProto2 : pb::IMessage<NullHypothesisProto2> 8527 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 8528 , pb::IBufferMessage 8529 #endif 8530 { 8531 private static readonly pb::MessageParser<NullHypothesisProto2> _parser = new pb::MessageParser<NullHypothesisProto2>(() => new NullHypothesisProto2()); 8532 private pb::UnknownFieldSet _unknownFields; 8533 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 8534 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 8535 public static pb::MessageParser<NullHypothesisProto2> Parser { get { return _parser; } } 8536 8537 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 8538 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 8539 public static pbr::MessageDescriptor Descriptor { 8540 get { return global::ProtobufTestMessages.Proto2.TestMessagesProto2Reflection.Descriptor.MessageTypes[4]; } 8541 } 8542 8543 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 8544 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 8545 pbr::MessageDescriptor pb::IMessage.Descriptor { 8546 get { return Descriptor; } 8547 } 8548 8549 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 8550 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] NullHypothesisProto2()8551 public NullHypothesisProto2() { 8552 OnConstruction(); 8553 } 8554 OnConstruction()8555 partial void OnConstruction(); 8556 8557 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 8558 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] NullHypothesisProto2(NullHypothesisProto2 other)8559 public NullHypothesisProto2(NullHypothesisProto2 other) : this() { 8560 _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); 8561 } 8562 8563 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 8564 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] Clone()8565 public NullHypothesisProto2 Clone() { 8566 return new NullHypothesisProto2(this); 8567 } 8568 8569 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 8570 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] Equals(object other)8571 public override bool Equals(object other) { 8572 return Equals(other as NullHypothesisProto2); 8573 } 8574 8575 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 8576 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] Equals(NullHypothesisProto2 other)8577 public bool Equals(NullHypothesisProto2 other) { 8578 if (ReferenceEquals(other, null)) { 8579 return false; 8580 } 8581 if (ReferenceEquals(other, this)) { 8582 return true; 8583 } 8584 return Equals(_unknownFields, other._unknownFields); 8585 } 8586 8587 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 8588 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] GetHashCode()8589 public override int GetHashCode() { 8590 int hash = 1; 8591 if (_unknownFields != null) { 8592 hash ^= _unknownFields.GetHashCode(); 8593 } 8594 return hash; 8595 } 8596 8597 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 8598 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] ToString()8599 public override string ToString() { 8600 return pb::JsonFormatter.ToDiagnosticString(this); 8601 } 8602 8603 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 8604 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] WriteTo(pb::CodedOutputStream output)8605 public void WriteTo(pb::CodedOutputStream output) { 8606 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 8607 output.WriteRawMessage(this); 8608 #else 8609 if (_unknownFields != null) { 8610 _unknownFields.WriteTo(output); 8611 } 8612 #endif 8613 } 8614 8615 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 8616 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 8617 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] IBufferMessage.InternalWriteTo(ref pb::WriteContext output)8618 void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { 8619 if (_unknownFields != null) { 8620 _unknownFields.WriteTo(ref output); 8621 } 8622 } 8623 #endif 8624 8625 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 8626 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] CalculateSize()8627 public int CalculateSize() { 8628 int size = 0; 8629 if (_unknownFields != null) { 8630 size += _unknownFields.CalculateSize(); 8631 } 8632 return size; 8633 } 8634 8635 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 8636 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] MergeFrom(NullHypothesisProto2 other)8637 public void MergeFrom(NullHypothesisProto2 other) { 8638 if (other == null) { 8639 return; 8640 } 8641 _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); 8642 } 8643 8644 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 8645 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] MergeFrom(pb::CodedInputStream input)8646 public void MergeFrom(pb::CodedInputStream input) { 8647 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 8648 input.ReadRawMessage(this); 8649 #else 8650 uint tag; 8651 while ((tag = input.ReadTag()) != 0) { 8652 if ((tag & 7) == 4) { 8653 // Abort on any end group tag. 8654 return; 8655 } 8656 switch(tag) { 8657 default: 8658 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); 8659 break; 8660 } 8661 } 8662 #endif 8663 } 8664 8665 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 8666 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 8667 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] IBufferMessage.InternalMergeFrom(ref pb::ParseContext input)8668 void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { 8669 uint tag; 8670 while ((tag = input.ReadTag()) != 0) { 8671 if ((tag & 7) == 4) { 8672 // Abort on any end group tag. 8673 return; 8674 } 8675 switch(tag) { 8676 default: 8677 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); 8678 break; 8679 } 8680 } 8681 } 8682 #endif 8683 8684 } 8685 8686 [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] 8687 public sealed partial class EnumOnlyProto2 : pb::IMessage<EnumOnlyProto2> 8688 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 8689 , pb::IBufferMessage 8690 #endif 8691 { 8692 private static readonly pb::MessageParser<EnumOnlyProto2> _parser = new pb::MessageParser<EnumOnlyProto2>(() => new EnumOnlyProto2()); 8693 private pb::UnknownFieldSet _unknownFields; 8694 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 8695 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 8696 public static pb::MessageParser<EnumOnlyProto2> Parser { get { return _parser; } } 8697 8698 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 8699 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 8700 public static pbr::MessageDescriptor Descriptor { 8701 get { return global::ProtobufTestMessages.Proto2.TestMessagesProto2Reflection.Descriptor.MessageTypes[5]; } 8702 } 8703 8704 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 8705 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 8706 pbr::MessageDescriptor pb::IMessage.Descriptor { 8707 get { return Descriptor; } 8708 } 8709 8710 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 8711 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] EnumOnlyProto2()8712 public EnumOnlyProto2() { 8713 OnConstruction(); 8714 } 8715 OnConstruction()8716 partial void OnConstruction(); 8717 8718 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 8719 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] EnumOnlyProto2(EnumOnlyProto2 other)8720 public EnumOnlyProto2(EnumOnlyProto2 other) : this() { 8721 _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); 8722 } 8723 8724 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 8725 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] Clone()8726 public EnumOnlyProto2 Clone() { 8727 return new EnumOnlyProto2(this); 8728 } 8729 8730 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 8731 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] Equals(object other)8732 public override bool Equals(object other) { 8733 return Equals(other as EnumOnlyProto2); 8734 } 8735 8736 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 8737 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] Equals(EnumOnlyProto2 other)8738 public bool Equals(EnumOnlyProto2 other) { 8739 if (ReferenceEquals(other, null)) { 8740 return false; 8741 } 8742 if (ReferenceEquals(other, this)) { 8743 return true; 8744 } 8745 return Equals(_unknownFields, other._unknownFields); 8746 } 8747 8748 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 8749 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] GetHashCode()8750 public override int GetHashCode() { 8751 int hash = 1; 8752 if (_unknownFields != null) { 8753 hash ^= _unknownFields.GetHashCode(); 8754 } 8755 return hash; 8756 } 8757 8758 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 8759 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] ToString()8760 public override string ToString() { 8761 return pb::JsonFormatter.ToDiagnosticString(this); 8762 } 8763 8764 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 8765 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] WriteTo(pb::CodedOutputStream output)8766 public void WriteTo(pb::CodedOutputStream output) { 8767 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 8768 output.WriteRawMessage(this); 8769 #else 8770 if (_unknownFields != null) { 8771 _unknownFields.WriteTo(output); 8772 } 8773 #endif 8774 } 8775 8776 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 8777 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 8778 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] IBufferMessage.InternalWriteTo(ref pb::WriteContext output)8779 void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { 8780 if (_unknownFields != null) { 8781 _unknownFields.WriteTo(ref output); 8782 } 8783 } 8784 #endif 8785 8786 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 8787 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] CalculateSize()8788 public int CalculateSize() { 8789 int size = 0; 8790 if (_unknownFields != null) { 8791 size += _unknownFields.CalculateSize(); 8792 } 8793 return size; 8794 } 8795 8796 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 8797 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] MergeFrom(EnumOnlyProto2 other)8798 public void MergeFrom(EnumOnlyProto2 other) { 8799 if (other == null) { 8800 return; 8801 } 8802 _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); 8803 } 8804 8805 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 8806 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] MergeFrom(pb::CodedInputStream input)8807 public void MergeFrom(pb::CodedInputStream input) { 8808 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 8809 input.ReadRawMessage(this); 8810 #else 8811 uint tag; 8812 while ((tag = input.ReadTag()) != 0) { 8813 if ((tag & 7) == 4) { 8814 // Abort on any end group tag. 8815 return; 8816 } 8817 switch(tag) { 8818 default: 8819 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); 8820 break; 8821 } 8822 } 8823 #endif 8824 } 8825 8826 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 8827 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 8828 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] IBufferMessage.InternalMergeFrom(ref pb::ParseContext input)8829 void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { 8830 uint tag; 8831 while ((tag = input.ReadTag()) != 0) { 8832 if ((tag & 7) == 4) { 8833 // Abort on any end group tag. 8834 return; 8835 } 8836 switch(tag) { 8837 default: 8838 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); 8839 break; 8840 } 8841 } 8842 } 8843 #endif 8844 8845 #region Nested types 8846 /// <summary>Container for nested types declared in the EnumOnlyProto2 message type.</summary> 8847 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 8848 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 8849 public static partial class Types { 8850 public enum Bool { 8851 [pbr::OriginalName("kFalse")] KFalse = 0, 8852 [pbr::OriginalName("kTrue")] KTrue = 1, 8853 } 8854 8855 } 8856 #endregion 8857 8858 } 8859 8860 [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] 8861 public sealed partial class OneStringProto2 : pb::IMessage<OneStringProto2> 8862 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 8863 , pb::IBufferMessage 8864 #endif 8865 { 8866 private static readonly pb::MessageParser<OneStringProto2> _parser = new pb::MessageParser<OneStringProto2>(() => new OneStringProto2()); 8867 private pb::UnknownFieldSet _unknownFields; 8868 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 8869 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 8870 public static pb::MessageParser<OneStringProto2> Parser { get { return _parser; } } 8871 8872 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 8873 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 8874 public static pbr::MessageDescriptor Descriptor { 8875 get { return global::ProtobufTestMessages.Proto2.TestMessagesProto2Reflection.Descriptor.MessageTypes[6]; } 8876 } 8877 8878 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 8879 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 8880 pbr::MessageDescriptor pb::IMessage.Descriptor { 8881 get { return Descriptor; } 8882 } 8883 8884 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 8885 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] OneStringProto2()8886 public OneStringProto2() { 8887 OnConstruction(); 8888 } 8889 OnConstruction()8890 partial void OnConstruction(); 8891 8892 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 8893 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] OneStringProto2(OneStringProto2 other)8894 public OneStringProto2(OneStringProto2 other) : this() { 8895 data_ = other.data_; 8896 _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); 8897 } 8898 8899 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 8900 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] Clone()8901 public OneStringProto2 Clone() { 8902 return new OneStringProto2(this); 8903 } 8904 8905 /// <summary>Field number for the "data" field.</summary> 8906 public const int DataFieldNumber = 1; 8907 private readonly static string DataDefaultValue = ""; 8908 8909 private string data_; 8910 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 8911 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 8912 public string Data { 8913 get { return data_ ?? DataDefaultValue; } 8914 set { 8915 data_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); 8916 } 8917 } 8918 /// <summary>Gets whether the "data" field is set</summary> 8919 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 8920 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 8921 public bool HasData { 8922 get { return data_ != null; } 8923 } 8924 /// <summary>Clears the value of the "data" field</summary> 8925 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 8926 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] ClearData()8927 public void ClearData() { 8928 data_ = null; 8929 } 8930 8931 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 8932 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] Equals(object other)8933 public override bool Equals(object other) { 8934 return Equals(other as OneStringProto2); 8935 } 8936 8937 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 8938 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] Equals(OneStringProto2 other)8939 public bool Equals(OneStringProto2 other) { 8940 if (ReferenceEquals(other, null)) { 8941 return false; 8942 } 8943 if (ReferenceEquals(other, this)) { 8944 return true; 8945 } 8946 if (Data != other.Data) return false; 8947 return Equals(_unknownFields, other._unknownFields); 8948 } 8949 8950 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 8951 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] GetHashCode()8952 public override int GetHashCode() { 8953 int hash = 1; 8954 if (HasData) hash ^= Data.GetHashCode(); 8955 if (_unknownFields != null) { 8956 hash ^= _unknownFields.GetHashCode(); 8957 } 8958 return hash; 8959 } 8960 8961 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 8962 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] ToString()8963 public override string ToString() { 8964 return pb::JsonFormatter.ToDiagnosticString(this); 8965 } 8966 8967 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 8968 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] WriteTo(pb::CodedOutputStream output)8969 public void WriteTo(pb::CodedOutputStream output) { 8970 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 8971 output.WriteRawMessage(this); 8972 #else 8973 if (HasData) { 8974 output.WriteRawTag(10); 8975 output.WriteString(Data); 8976 } 8977 if (_unknownFields != null) { 8978 _unknownFields.WriteTo(output); 8979 } 8980 #endif 8981 } 8982 8983 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 8984 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 8985 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] IBufferMessage.InternalWriteTo(ref pb::WriteContext output)8986 void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { 8987 if (HasData) { 8988 output.WriteRawTag(10); 8989 output.WriteString(Data); 8990 } 8991 if (_unknownFields != null) { 8992 _unknownFields.WriteTo(ref output); 8993 } 8994 } 8995 #endif 8996 8997 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 8998 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] CalculateSize()8999 public int CalculateSize() { 9000 int size = 0; 9001 if (HasData) { 9002 size += 1 + pb::CodedOutputStream.ComputeStringSize(Data); 9003 } 9004 if (_unknownFields != null) { 9005 size += _unknownFields.CalculateSize(); 9006 } 9007 return size; 9008 } 9009 9010 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 9011 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] MergeFrom(OneStringProto2 other)9012 public void MergeFrom(OneStringProto2 other) { 9013 if (other == null) { 9014 return; 9015 } 9016 if (other.HasData) { 9017 Data = other.Data; 9018 } 9019 _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); 9020 } 9021 9022 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 9023 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] MergeFrom(pb::CodedInputStream input)9024 public void MergeFrom(pb::CodedInputStream input) { 9025 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 9026 input.ReadRawMessage(this); 9027 #else 9028 uint tag; 9029 while ((tag = input.ReadTag()) != 0) { 9030 if ((tag & 7) == 4) { 9031 // Abort on any end group tag. 9032 return; 9033 } 9034 switch(tag) { 9035 default: 9036 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); 9037 break; 9038 case 10: { 9039 Data = input.ReadString(); 9040 break; 9041 } 9042 } 9043 } 9044 #endif 9045 } 9046 9047 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 9048 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 9049 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] IBufferMessage.InternalMergeFrom(ref pb::ParseContext input)9050 void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { 9051 uint tag; 9052 while ((tag = input.ReadTag()) != 0) { 9053 if ((tag & 7) == 4) { 9054 // Abort on any end group tag. 9055 return; 9056 } 9057 switch(tag) { 9058 default: 9059 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); 9060 break; 9061 case 10: { 9062 Data = input.ReadString(); 9063 break; 9064 } 9065 } 9066 } 9067 } 9068 #endif 9069 9070 } 9071 9072 [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] 9073 public sealed partial class ProtoWithKeywords : pb::IMessage<ProtoWithKeywords> 9074 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 9075 , pb::IBufferMessage 9076 #endif 9077 { 9078 private static readonly pb::MessageParser<ProtoWithKeywords> _parser = new pb::MessageParser<ProtoWithKeywords>(() => new ProtoWithKeywords()); 9079 private pb::UnknownFieldSet _unknownFields; 9080 private int _hasBits0; 9081 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 9082 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 9083 public static pb::MessageParser<ProtoWithKeywords> Parser { get { return _parser; } } 9084 9085 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 9086 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 9087 public static pbr::MessageDescriptor Descriptor { 9088 get { return global::ProtobufTestMessages.Proto2.TestMessagesProto2Reflection.Descriptor.MessageTypes[7]; } 9089 } 9090 9091 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 9092 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 9093 pbr::MessageDescriptor pb::IMessage.Descriptor { 9094 get { return Descriptor; } 9095 } 9096 9097 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 9098 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] ProtoWithKeywords()9099 public ProtoWithKeywords() { 9100 OnConstruction(); 9101 } 9102 OnConstruction()9103 partial void OnConstruction(); 9104 9105 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 9106 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] ProtoWithKeywords(ProtoWithKeywords other)9107 public ProtoWithKeywords(ProtoWithKeywords other) : this() { 9108 _hasBits0 = other._hasBits0; 9109 inline_ = other.inline_; 9110 concept_ = other.concept_; 9111 requires_ = other.requires_.Clone(); 9112 _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); 9113 } 9114 9115 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 9116 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] Clone()9117 public ProtoWithKeywords Clone() { 9118 return new ProtoWithKeywords(this); 9119 } 9120 9121 /// <summary>Field number for the "inline" field.</summary> 9122 public const int InlineFieldNumber = 1; 9123 private readonly static int InlineDefaultValue = 0; 9124 9125 private int inline_; 9126 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 9127 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 9128 public int Inline { 9129 get { if ((_hasBits0 & 1) != 0) { return inline_; } else { return InlineDefaultValue; } } 9130 set { 9131 _hasBits0 |= 1; 9132 inline_ = value; 9133 } 9134 } 9135 /// <summary>Gets whether the "inline" field is set</summary> 9136 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 9137 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 9138 public bool HasInline { 9139 get { return (_hasBits0 & 1) != 0; } 9140 } 9141 /// <summary>Clears the value of the "inline" field</summary> 9142 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 9143 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] ClearInline()9144 public void ClearInline() { 9145 _hasBits0 &= ~1; 9146 } 9147 9148 /// <summary>Field number for the "concept" field.</summary> 9149 public const int ConceptFieldNumber = 2; 9150 private readonly static string ConceptDefaultValue = ""; 9151 9152 private string concept_; 9153 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 9154 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 9155 public string Concept { 9156 get { return concept_ ?? ConceptDefaultValue; } 9157 set { 9158 concept_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); 9159 } 9160 } 9161 /// <summary>Gets whether the "concept" field is set</summary> 9162 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 9163 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 9164 public bool HasConcept { 9165 get { return concept_ != null; } 9166 } 9167 /// <summary>Clears the value of the "concept" field</summary> 9168 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 9169 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] ClearConcept()9170 public void ClearConcept() { 9171 concept_ = null; 9172 } 9173 9174 /// <summary>Field number for the "requires" field.</summary> 9175 public const int RequiresFieldNumber = 3; 9176 private static readonly pb::FieldCodec<string> _repeated_requires_codec 9177 = pb::FieldCodec.ForString(26); 9178 private readonly pbc::RepeatedField<string> requires_ = new pbc::RepeatedField<string>(); 9179 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 9180 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 9181 public pbc::RepeatedField<string> Requires { 9182 get { return requires_; } 9183 } 9184 9185 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 9186 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] Equals(object other)9187 public override bool Equals(object other) { 9188 return Equals(other as ProtoWithKeywords); 9189 } 9190 9191 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 9192 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] Equals(ProtoWithKeywords other)9193 public bool Equals(ProtoWithKeywords other) { 9194 if (ReferenceEquals(other, null)) { 9195 return false; 9196 } 9197 if (ReferenceEquals(other, this)) { 9198 return true; 9199 } 9200 if (Inline != other.Inline) return false; 9201 if (Concept != other.Concept) return false; 9202 if(!requires_.Equals(other.requires_)) return false; 9203 return Equals(_unknownFields, other._unknownFields); 9204 } 9205 9206 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 9207 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] GetHashCode()9208 public override int GetHashCode() { 9209 int hash = 1; 9210 if (HasInline) hash ^= Inline.GetHashCode(); 9211 if (HasConcept) hash ^= Concept.GetHashCode(); 9212 hash ^= requires_.GetHashCode(); 9213 if (_unknownFields != null) { 9214 hash ^= _unknownFields.GetHashCode(); 9215 } 9216 return hash; 9217 } 9218 9219 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 9220 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] ToString()9221 public override string ToString() { 9222 return pb::JsonFormatter.ToDiagnosticString(this); 9223 } 9224 9225 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 9226 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] WriteTo(pb::CodedOutputStream output)9227 public void WriteTo(pb::CodedOutputStream output) { 9228 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 9229 output.WriteRawMessage(this); 9230 #else 9231 if (HasInline) { 9232 output.WriteRawTag(8); 9233 output.WriteInt32(Inline); 9234 } 9235 if (HasConcept) { 9236 output.WriteRawTag(18); 9237 output.WriteString(Concept); 9238 } 9239 requires_.WriteTo(output, _repeated_requires_codec); 9240 if (_unknownFields != null) { 9241 _unknownFields.WriteTo(output); 9242 } 9243 #endif 9244 } 9245 9246 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 9247 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 9248 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] IBufferMessage.InternalWriteTo(ref pb::WriteContext output)9249 void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { 9250 if (HasInline) { 9251 output.WriteRawTag(8); 9252 output.WriteInt32(Inline); 9253 } 9254 if (HasConcept) { 9255 output.WriteRawTag(18); 9256 output.WriteString(Concept); 9257 } 9258 requires_.WriteTo(ref output, _repeated_requires_codec); 9259 if (_unknownFields != null) { 9260 _unknownFields.WriteTo(ref output); 9261 } 9262 } 9263 #endif 9264 9265 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 9266 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] CalculateSize()9267 public int CalculateSize() { 9268 int size = 0; 9269 if (HasInline) { 9270 size += 1 + pb::CodedOutputStream.ComputeInt32Size(Inline); 9271 } 9272 if (HasConcept) { 9273 size += 1 + pb::CodedOutputStream.ComputeStringSize(Concept); 9274 } 9275 size += requires_.CalculateSize(_repeated_requires_codec); 9276 if (_unknownFields != null) { 9277 size += _unknownFields.CalculateSize(); 9278 } 9279 return size; 9280 } 9281 9282 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 9283 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] MergeFrom(ProtoWithKeywords other)9284 public void MergeFrom(ProtoWithKeywords other) { 9285 if (other == null) { 9286 return; 9287 } 9288 if (other.HasInline) { 9289 Inline = other.Inline; 9290 } 9291 if (other.HasConcept) { 9292 Concept = other.Concept; 9293 } 9294 requires_.Add(other.requires_); 9295 _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); 9296 } 9297 9298 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 9299 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] MergeFrom(pb::CodedInputStream input)9300 public void MergeFrom(pb::CodedInputStream input) { 9301 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 9302 input.ReadRawMessage(this); 9303 #else 9304 uint tag; 9305 while ((tag = input.ReadTag()) != 0) { 9306 if ((tag & 7) == 4) { 9307 // Abort on any end group tag. 9308 return; 9309 } 9310 switch(tag) { 9311 default: 9312 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); 9313 break; 9314 case 8: { 9315 Inline = input.ReadInt32(); 9316 break; 9317 } 9318 case 18: { 9319 Concept = input.ReadString(); 9320 break; 9321 } 9322 case 26: { 9323 requires_.AddEntriesFrom(input, _repeated_requires_codec); 9324 break; 9325 } 9326 } 9327 } 9328 #endif 9329 } 9330 9331 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 9332 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 9333 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] IBufferMessage.InternalMergeFrom(ref pb::ParseContext input)9334 void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { 9335 uint tag; 9336 while ((tag = input.ReadTag()) != 0) { 9337 if ((tag & 7) == 4) { 9338 // Abort on any end group tag. 9339 return; 9340 } 9341 switch(tag) { 9342 default: 9343 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); 9344 break; 9345 case 8: { 9346 Inline = input.ReadInt32(); 9347 break; 9348 } 9349 case 18: { 9350 Concept = input.ReadString(); 9351 break; 9352 } 9353 case 26: { 9354 requires_.AddEntriesFrom(ref input, _repeated_requires_codec); 9355 break; 9356 } 9357 } 9358 } 9359 } 9360 #endif 9361 9362 } 9363 9364 [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] 9365 public sealed partial class TestAllRequiredTypesProto2 : pb::IExtendableMessage<TestAllRequiredTypesProto2> 9366 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 9367 , pb::IBufferMessage 9368 #endif 9369 { 9370 private static readonly pb::MessageParser<TestAllRequiredTypesProto2> _parser = new pb::MessageParser<TestAllRequiredTypesProto2>(() => new TestAllRequiredTypesProto2()); 9371 private pb::UnknownFieldSet _unknownFields; 9372 private pb::ExtensionSet<TestAllRequiredTypesProto2> _extensions; 9373 private pb::ExtensionSet<TestAllRequiredTypesProto2> _Extensions { get { return _extensions; } } 9374 private int _hasBits0; 9375 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 9376 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 9377 public static pb::MessageParser<TestAllRequiredTypesProto2> Parser { get { return _parser; } } 9378 9379 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 9380 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 9381 public static pbr::MessageDescriptor Descriptor { 9382 get { return global::ProtobufTestMessages.Proto2.TestMessagesProto2Reflection.Descriptor.MessageTypes[8]; } 9383 } 9384 9385 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 9386 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 9387 pbr::MessageDescriptor pb::IMessage.Descriptor { 9388 get { return Descriptor; } 9389 } 9390 9391 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 9392 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] TestAllRequiredTypesProto2()9393 public TestAllRequiredTypesProto2() { 9394 OnConstruction(); 9395 } 9396 OnConstruction()9397 partial void OnConstruction(); 9398 9399 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 9400 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] TestAllRequiredTypesProto2(TestAllRequiredTypesProto2 other)9401 public TestAllRequiredTypesProto2(TestAllRequiredTypesProto2 other) : this() { 9402 _hasBits0 = other._hasBits0; 9403 requiredInt32_ = other.requiredInt32_; 9404 requiredInt64_ = other.requiredInt64_; 9405 requiredUint32_ = other.requiredUint32_; 9406 requiredUint64_ = other.requiredUint64_; 9407 requiredSint32_ = other.requiredSint32_; 9408 requiredSint64_ = other.requiredSint64_; 9409 requiredFixed32_ = other.requiredFixed32_; 9410 requiredFixed64_ = other.requiredFixed64_; 9411 requiredSfixed32_ = other.requiredSfixed32_; 9412 requiredSfixed64_ = other.requiredSfixed64_; 9413 requiredFloat_ = other.requiredFloat_; 9414 requiredDouble_ = other.requiredDouble_; 9415 requiredBool_ = other.requiredBool_; 9416 requiredString_ = other.requiredString_; 9417 requiredBytes_ = other.requiredBytes_; 9418 requiredNestedMessage_ = other.requiredNestedMessage_ != null ? other.requiredNestedMessage_.Clone() : null; 9419 requiredForeignMessage_ = other.requiredForeignMessage_ != null ? other.requiredForeignMessage_.Clone() : null; 9420 requiredNestedEnum_ = other.requiredNestedEnum_; 9421 requiredForeignEnum_ = other.requiredForeignEnum_; 9422 requiredStringPiece_ = other.requiredStringPiece_; 9423 requiredCord_ = other.requiredCord_; 9424 recursiveMessage_ = other.recursiveMessage_ != null ? other.recursiveMessage_.Clone() : null; 9425 optionalRecursiveMessage_ = other.optionalRecursiveMessage_ != null ? other.optionalRecursiveMessage_.Clone() : null; 9426 data_ = other.HasData ? other.data_.Clone() : null; 9427 defaultInt32_ = other.defaultInt32_; 9428 defaultInt64_ = other.defaultInt64_; 9429 defaultUint32_ = other.defaultUint32_; 9430 defaultUint64_ = other.defaultUint64_; 9431 defaultSint32_ = other.defaultSint32_; 9432 defaultSint64_ = other.defaultSint64_; 9433 defaultFixed32_ = other.defaultFixed32_; 9434 defaultFixed64_ = other.defaultFixed64_; 9435 defaultSfixed32_ = other.defaultSfixed32_; 9436 defaultSfixed64_ = other.defaultSfixed64_; 9437 defaultFloat_ = other.defaultFloat_; 9438 defaultDouble_ = other.defaultDouble_; 9439 defaultBool_ = other.defaultBool_; 9440 defaultString_ = other.defaultString_; 9441 defaultBytes_ = other.defaultBytes_; 9442 _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); 9443 _extensions = pb::ExtensionSet.Clone(other._extensions); 9444 } 9445 9446 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 9447 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] Clone()9448 public TestAllRequiredTypesProto2 Clone() { 9449 return new TestAllRequiredTypesProto2(this); 9450 } 9451 9452 /// <summary>Field number for the "required_int32" field.</summary> 9453 public const int RequiredInt32FieldNumber = 1; 9454 private readonly static int RequiredInt32DefaultValue = 0; 9455 9456 private int requiredInt32_; 9457 /// <summary> 9458 /// Singular 9459 /// </summary> 9460 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 9461 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 9462 public int RequiredInt32 { 9463 get { if ((_hasBits0 & 1) != 0) { return requiredInt32_; } else { return RequiredInt32DefaultValue; } } 9464 set { 9465 _hasBits0 |= 1; 9466 requiredInt32_ = value; 9467 } 9468 } 9469 /// <summary>Gets whether the "required_int32" field is set</summary> 9470 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 9471 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 9472 public bool HasRequiredInt32 { 9473 get { return (_hasBits0 & 1) != 0; } 9474 } 9475 /// <summary>Clears the value of the "required_int32" field</summary> 9476 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 9477 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] ClearRequiredInt32()9478 public void ClearRequiredInt32() { 9479 _hasBits0 &= ~1; 9480 } 9481 9482 /// <summary>Field number for the "required_int64" field.</summary> 9483 public const int RequiredInt64FieldNumber = 2; 9484 private readonly static long RequiredInt64DefaultValue = 0L; 9485 9486 private long requiredInt64_; 9487 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 9488 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 9489 public long RequiredInt64 { 9490 get { if ((_hasBits0 & 2) != 0) { return requiredInt64_; } else { return RequiredInt64DefaultValue; } } 9491 set { 9492 _hasBits0 |= 2; 9493 requiredInt64_ = value; 9494 } 9495 } 9496 /// <summary>Gets whether the "required_int64" field is set</summary> 9497 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 9498 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 9499 public bool HasRequiredInt64 { 9500 get { return (_hasBits0 & 2) != 0; } 9501 } 9502 /// <summary>Clears the value of the "required_int64" field</summary> 9503 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 9504 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] ClearRequiredInt64()9505 public void ClearRequiredInt64() { 9506 _hasBits0 &= ~2; 9507 } 9508 9509 /// <summary>Field number for the "required_uint32" field.</summary> 9510 public const int RequiredUint32FieldNumber = 3; 9511 private readonly static uint RequiredUint32DefaultValue = 0; 9512 9513 private uint requiredUint32_; 9514 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 9515 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 9516 public uint RequiredUint32 { 9517 get { if ((_hasBits0 & 4) != 0) { return requiredUint32_; } else { return RequiredUint32DefaultValue; } } 9518 set { 9519 _hasBits0 |= 4; 9520 requiredUint32_ = value; 9521 } 9522 } 9523 /// <summary>Gets whether the "required_uint32" field is set</summary> 9524 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 9525 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 9526 public bool HasRequiredUint32 { 9527 get { return (_hasBits0 & 4) != 0; } 9528 } 9529 /// <summary>Clears the value of the "required_uint32" field</summary> 9530 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 9531 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] ClearRequiredUint32()9532 public void ClearRequiredUint32() { 9533 _hasBits0 &= ~4; 9534 } 9535 9536 /// <summary>Field number for the "required_uint64" field.</summary> 9537 public const int RequiredUint64FieldNumber = 4; 9538 private readonly static ulong RequiredUint64DefaultValue = 0UL; 9539 9540 private ulong requiredUint64_; 9541 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 9542 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 9543 public ulong RequiredUint64 { 9544 get { if ((_hasBits0 & 8) != 0) { return requiredUint64_; } else { return RequiredUint64DefaultValue; } } 9545 set { 9546 _hasBits0 |= 8; 9547 requiredUint64_ = value; 9548 } 9549 } 9550 /// <summary>Gets whether the "required_uint64" field is set</summary> 9551 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 9552 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 9553 public bool HasRequiredUint64 { 9554 get { return (_hasBits0 & 8) != 0; } 9555 } 9556 /// <summary>Clears the value of the "required_uint64" field</summary> 9557 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 9558 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] ClearRequiredUint64()9559 public void ClearRequiredUint64() { 9560 _hasBits0 &= ~8; 9561 } 9562 9563 /// <summary>Field number for the "required_sint32" field.</summary> 9564 public const int RequiredSint32FieldNumber = 5; 9565 private readonly static int RequiredSint32DefaultValue = 0; 9566 9567 private int requiredSint32_; 9568 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 9569 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 9570 public int RequiredSint32 { 9571 get { if ((_hasBits0 & 16) != 0) { return requiredSint32_; } else { return RequiredSint32DefaultValue; } } 9572 set { 9573 _hasBits0 |= 16; 9574 requiredSint32_ = value; 9575 } 9576 } 9577 /// <summary>Gets whether the "required_sint32" field is set</summary> 9578 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 9579 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 9580 public bool HasRequiredSint32 { 9581 get { return (_hasBits0 & 16) != 0; } 9582 } 9583 /// <summary>Clears the value of the "required_sint32" field</summary> 9584 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 9585 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] ClearRequiredSint32()9586 public void ClearRequiredSint32() { 9587 _hasBits0 &= ~16; 9588 } 9589 9590 /// <summary>Field number for the "required_sint64" field.</summary> 9591 public const int RequiredSint64FieldNumber = 6; 9592 private readonly static long RequiredSint64DefaultValue = 0L; 9593 9594 private long requiredSint64_; 9595 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 9596 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 9597 public long RequiredSint64 { 9598 get { if ((_hasBits0 & 32) != 0) { return requiredSint64_; } else { return RequiredSint64DefaultValue; } } 9599 set { 9600 _hasBits0 |= 32; 9601 requiredSint64_ = value; 9602 } 9603 } 9604 /// <summary>Gets whether the "required_sint64" field is set</summary> 9605 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 9606 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 9607 public bool HasRequiredSint64 { 9608 get { return (_hasBits0 & 32) != 0; } 9609 } 9610 /// <summary>Clears the value of the "required_sint64" field</summary> 9611 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 9612 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] ClearRequiredSint64()9613 public void ClearRequiredSint64() { 9614 _hasBits0 &= ~32; 9615 } 9616 9617 /// <summary>Field number for the "required_fixed32" field.</summary> 9618 public const int RequiredFixed32FieldNumber = 7; 9619 private readonly static uint RequiredFixed32DefaultValue = 0; 9620 9621 private uint requiredFixed32_; 9622 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 9623 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 9624 public uint RequiredFixed32 { 9625 get { if ((_hasBits0 & 64) != 0) { return requiredFixed32_; } else { return RequiredFixed32DefaultValue; } } 9626 set { 9627 _hasBits0 |= 64; 9628 requiredFixed32_ = value; 9629 } 9630 } 9631 /// <summary>Gets whether the "required_fixed32" field is set</summary> 9632 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 9633 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 9634 public bool HasRequiredFixed32 { 9635 get { return (_hasBits0 & 64) != 0; } 9636 } 9637 /// <summary>Clears the value of the "required_fixed32" field</summary> 9638 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 9639 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] ClearRequiredFixed32()9640 public void ClearRequiredFixed32() { 9641 _hasBits0 &= ~64; 9642 } 9643 9644 /// <summary>Field number for the "required_fixed64" field.</summary> 9645 public const int RequiredFixed64FieldNumber = 8; 9646 private readonly static ulong RequiredFixed64DefaultValue = 0UL; 9647 9648 private ulong requiredFixed64_; 9649 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 9650 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 9651 public ulong RequiredFixed64 { 9652 get { if ((_hasBits0 & 128) != 0) { return requiredFixed64_; } else { return RequiredFixed64DefaultValue; } } 9653 set { 9654 _hasBits0 |= 128; 9655 requiredFixed64_ = value; 9656 } 9657 } 9658 /// <summary>Gets whether the "required_fixed64" field is set</summary> 9659 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 9660 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 9661 public bool HasRequiredFixed64 { 9662 get { return (_hasBits0 & 128) != 0; } 9663 } 9664 /// <summary>Clears the value of the "required_fixed64" field</summary> 9665 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 9666 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] ClearRequiredFixed64()9667 public void ClearRequiredFixed64() { 9668 _hasBits0 &= ~128; 9669 } 9670 9671 /// <summary>Field number for the "required_sfixed32" field.</summary> 9672 public const int RequiredSfixed32FieldNumber = 9; 9673 private readonly static int RequiredSfixed32DefaultValue = 0; 9674 9675 private int requiredSfixed32_; 9676 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 9677 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 9678 public int RequiredSfixed32 { 9679 get { if ((_hasBits0 & 256) != 0) { return requiredSfixed32_; } else { return RequiredSfixed32DefaultValue; } } 9680 set { 9681 _hasBits0 |= 256; 9682 requiredSfixed32_ = value; 9683 } 9684 } 9685 /// <summary>Gets whether the "required_sfixed32" field is set</summary> 9686 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 9687 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 9688 public bool HasRequiredSfixed32 { 9689 get { return (_hasBits0 & 256) != 0; } 9690 } 9691 /// <summary>Clears the value of the "required_sfixed32" field</summary> 9692 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 9693 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] ClearRequiredSfixed32()9694 public void ClearRequiredSfixed32() { 9695 _hasBits0 &= ~256; 9696 } 9697 9698 /// <summary>Field number for the "required_sfixed64" field.</summary> 9699 public const int RequiredSfixed64FieldNumber = 10; 9700 private readonly static long RequiredSfixed64DefaultValue = 0L; 9701 9702 private long requiredSfixed64_; 9703 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 9704 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 9705 public long RequiredSfixed64 { 9706 get { if ((_hasBits0 & 512) != 0) { return requiredSfixed64_; } else { return RequiredSfixed64DefaultValue; } } 9707 set { 9708 _hasBits0 |= 512; 9709 requiredSfixed64_ = value; 9710 } 9711 } 9712 /// <summary>Gets whether the "required_sfixed64" field is set</summary> 9713 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 9714 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 9715 public bool HasRequiredSfixed64 { 9716 get { return (_hasBits0 & 512) != 0; } 9717 } 9718 /// <summary>Clears the value of the "required_sfixed64" field</summary> 9719 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 9720 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] ClearRequiredSfixed64()9721 public void ClearRequiredSfixed64() { 9722 _hasBits0 &= ~512; 9723 } 9724 9725 /// <summary>Field number for the "required_float" field.</summary> 9726 public const int RequiredFloatFieldNumber = 11; 9727 private readonly static float RequiredFloatDefaultValue = 0F; 9728 9729 private float requiredFloat_; 9730 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 9731 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 9732 public float RequiredFloat { 9733 get { if ((_hasBits0 & 1024) != 0) { return requiredFloat_; } else { return RequiredFloatDefaultValue; } } 9734 set { 9735 _hasBits0 |= 1024; 9736 requiredFloat_ = value; 9737 } 9738 } 9739 /// <summary>Gets whether the "required_float" field is set</summary> 9740 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 9741 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 9742 public bool HasRequiredFloat { 9743 get { return (_hasBits0 & 1024) != 0; } 9744 } 9745 /// <summary>Clears the value of the "required_float" field</summary> 9746 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 9747 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] ClearRequiredFloat()9748 public void ClearRequiredFloat() { 9749 _hasBits0 &= ~1024; 9750 } 9751 9752 /// <summary>Field number for the "required_double" field.</summary> 9753 public const int RequiredDoubleFieldNumber = 12; 9754 private readonly static double RequiredDoubleDefaultValue = 0D; 9755 9756 private double requiredDouble_; 9757 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 9758 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 9759 public double RequiredDouble { 9760 get { if ((_hasBits0 & 2048) != 0) { return requiredDouble_; } else { return RequiredDoubleDefaultValue; } } 9761 set { 9762 _hasBits0 |= 2048; 9763 requiredDouble_ = value; 9764 } 9765 } 9766 /// <summary>Gets whether the "required_double" field is set</summary> 9767 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 9768 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 9769 public bool HasRequiredDouble { 9770 get { return (_hasBits0 & 2048) != 0; } 9771 } 9772 /// <summary>Clears the value of the "required_double" field</summary> 9773 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 9774 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] ClearRequiredDouble()9775 public void ClearRequiredDouble() { 9776 _hasBits0 &= ~2048; 9777 } 9778 9779 /// <summary>Field number for the "required_bool" field.</summary> 9780 public const int RequiredBoolFieldNumber = 13; 9781 private readonly static bool RequiredBoolDefaultValue = false; 9782 9783 private bool requiredBool_; 9784 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 9785 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 9786 public bool RequiredBool { 9787 get { if ((_hasBits0 & 4096) != 0) { return requiredBool_; } else { return RequiredBoolDefaultValue; } } 9788 set { 9789 _hasBits0 |= 4096; 9790 requiredBool_ = value; 9791 } 9792 } 9793 /// <summary>Gets whether the "required_bool" field is set</summary> 9794 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 9795 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 9796 public bool HasRequiredBool { 9797 get { return (_hasBits0 & 4096) != 0; } 9798 } 9799 /// <summary>Clears the value of the "required_bool" field</summary> 9800 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 9801 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] ClearRequiredBool()9802 public void ClearRequiredBool() { 9803 _hasBits0 &= ~4096; 9804 } 9805 9806 /// <summary>Field number for the "required_string" field.</summary> 9807 public const int RequiredStringFieldNumber = 14; 9808 private readonly static string RequiredStringDefaultValue = ""; 9809 9810 private string requiredString_; 9811 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 9812 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 9813 public string RequiredString { 9814 get { return requiredString_ ?? RequiredStringDefaultValue; } 9815 set { 9816 requiredString_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); 9817 } 9818 } 9819 /// <summary>Gets whether the "required_string" field is set</summary> 9820 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 9821 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 9822 public bool HasRequiredString { 9823 get { return requiredString_ != null; } 9824 } 9825 /// <summary>Clears the value of the "required_string" field</summary> 9826 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 9827 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] ClearRequiredString()9828 public void ClearRequiredString() { 9829 requiredString_ = null; 9830 } 9831 9832 /// <summary>Field number for the "required_bytes" field.</summary> 9833 public const int RequiredBytesFieldNumber = 15; 9834 private readonly static pb::ByteString RequiredBytesDefaultValue = pb::ByteString.Empty; 9835 9836 private pb::ByteString requiredBytes_; 9837 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 9838 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 9839 public pb::ByteString RequiredBytes { 9840 get { return requiredBytes_ ?? RequiredBytesDefaultValue; } 9841 set { 9842 requiredBytes_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); 9843 } 9844 } 9845 /// <summary>Gets whether the "required_bytes" field is set</summary> 9846 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 9847 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 9848 public bool HasRequiredBytes { 9849 get { return requiredBytes_ != null; } 9850 } 9851 /// <summary>Clears the value of the "required_bytes" field</summary> 9852 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 9853 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] ClearRequiredBytes()9854 public void ClearRequiredBytes() { 9855 requiredBytes_ = null; 9856 } 9857 9858 /// <summary>Field number for the "required_nested_message" field.</summary> 9859 public const int RequiredNestedMessageFieldNumber = 18; 9860 private global::ProtobufTestMessages.Proto2.TestAllRequiredTypesProto2.Types.NestedMessage requiredNestedMessage_; 9861 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 9862 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 9863 public global::ProtobufTestMessages.Proto2.TestAllRequiredTypesProto2.Types.NestedMessage RequiredNestedMessage { 9864 get { return requiredNestedMessage_; } 9865 set { 9866 requiredNestedMessage_ = value; 9867 } 9868 } 9869 9870 /// <summary>Field number for the "required_foreign_message" field.</summary> 9871 public const int RequiredForeignMessageFieldNumber = 19; 9872 private global::ProtobufTestMessages.Proto2.ForeignMessageProto2 requiredForeignMessage_; 9873 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 9874 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 9875 public global::ProtobufTestMessages.Proto2.ForeignMessageProto2 RequiredForeignMessage { 9876 get { return requiredForeignMessage_; } 9877 set { 9878 requiredForeignMessage_ = value; 9879 } 9880 } 9881 9882 /// <summary>Field number for the "required_nested_enum" field.</summary> 9883 public const int RequiredNestedEnumFieldNumber = 21; 9884 private readonly static global::ProtobufTestMessages.Proto2.TestAllRequiredTypesProto2.Types.NestedEnum RequiredNestedEnumDefaultValue = global::ProtobufTestMessages.Proto2.TestAllRequiredTypesProto2.Types.NestedEnum.Foo; 9885 9886 private global::ProtobufTestMessages.Proto2.TestAllRequiredTypesProto2.Types.NestedEnum requiredNestedEnum_; 9887 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 9888 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 9889 public global::ProtobufTestMessages.Proto2.TestAllRequiredTypesProto2.Types.NestedEnum RequiredNestedEnum { 9890 get { if ((_hasBits0 & 8192) != 0) { return requiredNestedEnum_; } else { return RequiredNestedEnumDefaultValue; } } 9891 set { 9892 _hasBits0 |= 8192; 9893 requiredNestedEnum_ = value; 9894 } 9895 } 9896 /// <summary>Gets whether the "required_nested_enum" field is set</summary> 9897 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 9898 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 9899 public bool HasRequiredNestedEnum { 9900 get { return (_hasBits0 & 8192) != 0; } 9901 } 9902 /// <summary>Clears the value of the "required_nested_enum" field</summary> 9903 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 9904 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] ClearRequiredNestedEnum()9905 public void ClearRequiredNestedEnum() { 9906 _hasBits0 &= ~8192; 9907 } 9908 9909 /// <summary>Field number for the "required_foreign_enum" field.</summary> 9910 public const int RequiredForeignEnumFieldNumber = 22; 9911 private readonly static global::ProtobufTestMessages.Proto2.ForeignEnumProto2 RequiredForeignEnumDefaultValue = global::ProtobufTestMessages.Proto2.ForeignEnumProto2.ForeignFoo; 9912 9913 private global::ProtobufTestMessages.Proto2.ForeignEnumProto2 requiredForeignEnum_; 9914 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 9915 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 9916 public global::ProtobufTestMessages.Proto2.ForeignEnumProto2 RequiredForeignEnum { 9917 get { if ((_hasBits0 & 16384) != 0) { return requiredForeignEnum_; } else { return RequiredForeignEnumDefaultValue; } } 9918 set { 9919 _hasBits0 |= 16384; 9920 requiredForeignEnum_ = value; 9921 } 9922 } 9923 /// <summary>Gets whether the "required_foreign_enum" field is set</summary> 9924 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 9925 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 9926 public bool HasRequiredForeignEnum { 9927 get { return (_hasBits0 & 16384) != 0; } 9928 } 9929 /// <summary>Clears the value of the "required_foreign_enum" field</summary> 9930 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 9931 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] ClearRequiredForeignEnum()9932 public void ClearRequiredForeignEnum() { 9933 _hasBits0 &= ~16384; 9934 } 9935 9936 /// <summary>Field number for the "required_string_piece" field.</summary> 9937 public const int RequiredStringPieceFieldNumber = 24; 9938 private readonly static string RequiredStringPieceDefaultValue = ""; 9939 9940 private string requiredStringPiece_; 9941 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 9942 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 9943 public string RequiredStringPiece { 9944 get { return requiredStringPiece_ ?? RequiredStringPieceDefaultValue; } 9945 set { 9946 requiredStringPiece_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); 9947 } 9948 } 9949 /// <summary>Gets whether the "required_string_piece" field is set</summary> 9950 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 9951 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 9952 public bool HasRequiredStringPiece { 9953 get { return requiredStringPiece_ != null; } 9954 } 9955 /// <summary>Clears the value of the "required_string_piece" field</summary> 9956 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 9957 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] ClearRequiredStringPiece()9958 public void ClearRequiredStringPiece() { 9959 requiredStringPiece_ = null; 9960 } 9961 9962 /// <summary>Field number for the "required_cord" field.</summary> 9963 public const int RequiredCordFieldNumber = 25; 9964 private readonly static string RequiredCordDefaultValue = ""; 9965 9966 private string requiredCord_; 9967 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 9968 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 9969 public string RequiredCord { 9970 get { return requiredCord_ ?? RequiredCordDefaultValue; } 9971 set { 9972 requiredCord_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); 9973 } 9974 } 9975 /// <summary>Gets whether the "required_cord" field is set</summary> 9976 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 9977 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 9978 public bool HasRequiredCord { 9979 get { return requiredCord_ != null; } 9980 } 9981 /// <summary>Clears the value of the "required_cord" field</summary> 9982 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 9983 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] ClearRequiredCord()9984 public void ClearRequiredCord() { 9985 requiredCord_ = null; 9986 } 9987 9988 /// <summary>Field number for the "recursive_message" field.</summary> 9989 public const int RecursiveMessageFieldNumber = 27; 9990 private global::ProtobufTestMessages.Proto2.TestAllRequiredTypesProto2 recursiveMessage_; 9991 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 9992 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 9993 public global::ProtobufTestMessages.Proto2.TestAllRequiredTypesProto2 RecursiveMessage { 9994 get { return recursiveMessage_; } 9995 set { 9996 recursiveMessage_ = value; 9997 } 9998 } 9999 10000 /// <summary>Field number for the "optional_recursive_message" field.</summary> 10001 public const int OptionalRecursiveMessageFieldNumber = 28; 10002 private global::ProtobufTestMessages.Proto2.TestAllRequiredTypesProto2 optionalRecursiveMessage_; 10003 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 10004 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 10005 public global::ProtobufTestMessages.Proto2.TestAllRequiredTypesProto2 OptionalRecursiveMessage { 10006 get { return optionalRecursiveMessage_; } 10007 set { 10008 optionalRecursiveMessage_ = value; 10009 } 10010 } 10011 10012 /// <summary>Field number for the "data" field.</summary> 10013 public const int DataFieldNumber = 201; 10014 private global::ProtobufTestMessages.Proto2.TestAllRequiredTypesProto2.Types.Data data_; 10015 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 10016 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 10017 public global::ProtobufTestMessages.Proto2.TestAllRequiredTypesProto2.Types.Data Data { 10018 get { return data_; } 10019 set { 10020 data_ = value; 10021 } 10022 } 10023 /// <summary>Gets whether the data field is set</summary> 10024 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 10025 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 10026 public bool HasData { 10027 get { return data_ != null; } 10028 } 10029 /// <summary>Clears the value of the data field</summary> 10030 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 10031 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] ClearData()10032 public void ClearData() { 10033 data_ = null; 10034 } 10035 10036 /// <summary>Field number for the "default_int32" field.</summary> 10037 public const int DefaultInt32FieldNumber = 241; 10038 private readonly static int DefaultInt32DefaultValue = -123456789; 10039 10040 private int defaultInt32_; 10041 /// <summary> 10042 /// default values 10043 /// </summary> 10044 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 10045 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 10046 public int DefaultInt32 { 10047 get { if ((_hasBits0 & 32768) != 0) { return defaultInt32_; } else { return DefaultInt32DefaultValue; } } 10048 set { 10049 _hasBits0 |= 32768; 10050 defaultInt32_ = value; 10051 } 10052 } 10053 /// <summary>Gets whether the "default_int32" field is set</summary> 10054 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 10055 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 10056 public bool HasDefaultInt32 { 10057 get { return (_hasBits0 & 32768) != 0; } 10058 } 10059 /// <summary>Clears the value of the "default_int32" field</summary> 10060 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 10061 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] ClearDefaultInt32()10062 public void ClearDefaultInt32() { 10063 _hasBits0 &= ~32768; 10064 } 10065 10066 /// <summary>Field number for the "default_int64" field.</summary> 10067 public const int DefaultInt64FieldNumber = 242; 10068 private readonly static long DefaultInt64DefaultValue = -9123456789123456789L; 10069 10070 private long defaultInt64_; 10071 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 10072 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 10073 public long DefaultInt64 { 10074 get { if ((_hasBits0 & 65536) != 0) { return defaultInt64_; } else { return DefaultInt64DefaultValue; } } 10075 set { 10076 _hasBits0 |= 65536; 10077 defaultInt64_ = value; 10078 } 10079 } 10080 /// <summary>Gets whether the "default_int64" field is set</summary> 10081 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 10082 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 10083 public bool HasDefaultInt64 { 10084 get { return (_hasBits0 & 65536) != 0; } 10085 } 10086 /// <summary>Clears the value of the "default_int64" field</summary> 10087 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 10088 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] ClearDefaultInt64()10089 public void ClearDefaultInt64() { 10090 _hasBits0 &= ~65536; 10091 } 10092 10093 /// <summary>Field number for the "default_uint32" field.</summary> 10094 public const int DefaultUint32FieldNumber = 243; 10095 private readonly static uint DefaultUint32DefaultValue = 2123456789; 10096 10097 private uint defaultUint32_; 10098 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 10099 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 10100 public uint DefaultUint32 { 10101 get { if ((_hasBits0 & 131072) != 0) { return defaultUint32_; } else { return DefaultUint32DefaultValue; } } 10102 set { 10103 _hasBits0 |= 131072; 10104 defaultUint32_ = value; 10105 } 10106 } 10107 /// <summary>Gets whether the "default_uint32" field is set</summary> 10108 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 10109 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 10110 public bool HasDefaultUint32 { 10111 get { return (_hasBits0 & 131072) != 0; } 10112 } 10113 /// <summary>Clears the value of the "default_uint32" field</summary> 10114 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 10115 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] ClearDefaultUint32()10116 public void ClearDefaultUint32() { 10117 _hasBits0 &= ~131072; 10118 } 10119 10120 /// <summary>Field number for the "default_uint64" field.</summary> 10121 public const int DefaultUint64FieldNumber = 244; 10122 private readonly static ulong DefaultUint64DefaultValue = 10123456789123456789UL; 10123 10124 private ulong defaultUint64_; 10125 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 10126 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 10127 public ulong DefaultUint64 { 10128 get { if ((_hasBits0 & 262144) != 0) { return defaultUint64_; } else { return DefaultUint64DefaultValue; } } 10129 set { 10130 _hasBits0 |= 262144; 10131 defaultUint64_ = value; 10132 } 10133 } 10134 /// <summary>Gets whether the "default_uint64" field is set</summary> 10135 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 10136 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 10137 public bool HasDefaultUint64 { 10138 get { return (_hasBits0 & 262144) != 0; } 10139 } 10140 /// <summary>Clears the value of the "default_uint64" field</summary> 10141 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 10142 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] ClearDefaultUint64()10143 public void ClearDefaultUint64() { 10144 _hasBits0 &= ~262144; 10145 } 10146 10147 /// <summary>Field number for the "default_sint32" field.</summary> 10148 public const int DefaultSint32FieldNumber = 245; 10149 private readonly static int DefaultSint32DefaultValue = -123456789; 10150 10151 private int defaultSint32_; 10152 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 10153 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 10154 public int DefaultSint32 { 10155 get { if ((_hasBits0 & 524288) != 0) { return defaultSint32_; } else { return DefaultSint32DefaultValue; } } 10156 set { 10157 _hasBits0 |= 524288; 10158 defaultSint32_ = value; 10159 } 10160 } 10161 /// <summary>Gets whether the "default_sint32" field is set</summary> 10162 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 10163 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 10164 public bool HasDefaultSint32 { 10165 get { return (_hasBits0 & 524288) != 0; } 10166 } 10167 /// <summary>Clears the value of the "default_sint32" field</summary> 10168 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 10169 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] ClearDefaultSint32()10170 public void ClearDefaultSint32() { 10171 _hasBits0 &= ~524288; 10172 } 10173 10174 /// <summary>Field number for the "default_sint64" field.</summary> 10175 public const int DefaultSint64FieldNumber = 246; 10176 private readonly static long DefaultSint64DefaultValue = -9123456789123456789L; 10177 10178 private long defaultSint64_; 10179 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 10180 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 10181 public long DefaultSint64 { 10182 get { if ((_hasBits0 & 1048576) != 0) { return defaultSint64_; } else { return DefaultSint64DefaultValue; } } 10183 set { 10184 _hasBits0 |= 1048576; 10185 defaultSint64_ = value; 10186 } 10187 } 10188 /// <summary>Gets whether the "default_sint64" field is set</summary> 10189 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 10190 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 10191 public bool HasDefaultSint64 { 10192 get { return (_hasBits0 & 1048576) != 0; } 10193 } 10194 /// <summary>Clears the value of the "default_sint64" field</summary> 10195 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 10196 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] ClearDefaultSint64()10197 public void ClearDefaultSint64() { 10198 _hasBits0 &= ~1048576; 10199 } 10200 10201 /// <summary>Field number for the "default_fixed32" field.</summary> 10202 public const int DefaultFixed32FieldNumber = 247; 10203 private readonly static uint DefaultFixed32DefaultValue = 2123456789; 10204 10205 private uint defaultFixed32_; 10206 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 10207 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 10208 public uint DefaultFixed32 { 10209 get { if ((_hasBits0 & 2097152) != 0) { return defaultFixed32_; } else { return DefaultFixed32DefaultValue; } } 10210 set { 10211 _hasBits0 |= 2097152; 10212 defaultFixed32_ = value; 10213 } 10214 } 10215 /// <summary>Gets whether the "default_fixed32" field is set</summary> 10216 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 10217 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 10218 public bool HasDefaultFixed32 { 10219 get { return (_hasBits0 & 2097152) != 0; } 10220 } 10221 /// <summary>Clears the value of the "default_fixed32" field</summary> 10222 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 10223 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] ClearDefaultFixed32()10224 public void ClearDefaultFixed32() { 10225 _hasBits0 &= ~2097152; 10226 } 10227 10228 /// <summary>Field number for the "default_fixed64" field.</summary> 10229 public const int DefaultFixed64FieldNumber = 248; 10230 private readonly static ulong DefaultFixed64DefaultValue = 10123456789123456789UL; 10231 10232 private ulong defaultFixed64_; 10233 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 10234 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 10235 public ulong DefaultFixed64 { 10236 get { if ((_hasBits0 & 4194304) != 0) { return defaultFixed64_; } else { return DefaultFixed64DefaultValue; } } 10237 set { 10238 _hasBits0 |= 4194304; 10239 defaultFixed64_ = value; 10240 } 10241 } 10242 /// <summary>Gets whether the "default_fixed64" field is set</summary> 10243 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 10244 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 10245 public bool HasDefaultFixed64 { 10246 get { return (_hasBits0 & 4194304) != 0; } 10247 } 10248 /// <summary>Clears the value of the "default_fixed64" field</summary> 10249 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 10250 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] ClearDefaultFixed64()10251 public void ClearDefaultFixed64() { 10252 _hasBits0 &= ~4194304; 10253 } 10254 10255 /// <summary>Field number for the "default_sfixed32" field.</summary> 10256 public const int DefaultSfixed32FieldNumber = 249; 10257 private readonly static int DefaultSfixed32DefaultValue = -123456789; 10258 10259 private int defaultSfixed32_; 10260 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 10261 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 10262 public int DefaultSfixed32 { 10263 get { if ((_hasBits0 & 8388608) != 0) { return defaultSfixed32_; } else { return DefaultSfixed32DefaultValue; } } 10264 set { 10265 _hasBits0 |= 8388608; 10266 defaultSfixed32_ = value; 10267 } 10268 } 10269 /// <summary>Gets whether the "default_sfixed32" field is set</summary> 10270 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 10271 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 10272 public bool HasDefaultSfixed32 { 10273 get { return (_hasBits0 & 8388608) != 0; } 10274 } 10275 /// <summary>Clears the value of the "default_sfixed32" field</summary> 10276 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 10277 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] ClearDefaultSfixed32()10278 public void ClearDefaultSfixed32() { 10279 _hasBits0 &= ~8388608; 10280 } 10281 10282 /// <summary>Field number for the "default_sfixed64" field.</summary> 10283 public const int DefaultSfixed64FieldNumber = 250; 10284 private readonly static long DefaultSfixed64DefaultValue = -9123456789123456789L; 10285 10286 private long defaultSfixed64_; 10287 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 10288 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 10289 public long DefaultSfixed64 { 10290 get { if ((_hasBits0 & 16777216) != 0) { return defaultSfixed64_; } else { return DefaultSfixed64DefaultValue; } } 10291 set { 10292 _hasBits0 |= 16777216; 10293 defaultSfixed64_ = value; 10294 } 10295 } 10296 /// <summary>Gets whether the "default_sfixed64" field is set</summary> 10297 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 10298 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 10299 public bool HasDefaultSfixed64 { 10300 get { return (_hasBits0 & 16777216) != 0; } 10301 } 10302 /// <summary>Clears the value of the "default_sfixed64" field</summary> 10303 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 10304 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] ClearDefaultSfixed64()10305 public void ClearDefaultSfixed64() { 10306 _hasBits0 &= ~16777216; 10307 } 10308 10309 /// <summary>Field number for the "default_float" field.</summary> 10310 public const int DefaultFloatFieldNumber = 251; 10311 private readonly static float DefaultFloatDefaultValue = 9e+09F; 10312 10313 private float defaultFloat_; 10314 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 10315 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 10316 public float DefaultFloat { 10317 get { if ((_hasBits0 & 33554432) != 0) { return defaultFloat_; } else { return DefaultFloatDefaultValue; } } 10318 set { 10319 _hasBits0 |= 33554432; 10320 defaultFloat_ = value; 10321 } 10322 } 10323 /// <summary>Gets whether the "default_float" field is set</summary> 10324 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 10325 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 10326 public bool HasDefaultFloat { 10327 get { return (_hasBits0 & 33554432) != 0; } 10328 } 10329 /// <summary>Clears the value of the "default_float" field</summary> 10330 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 10331 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] ClearDefaultFloat()10332 public void ClearDefaultFloat() { 10333 _hasBits0 &= ~33554432; 10334 } 10335 10336 /// <summary>Field number for the "default_double" field.</summary> 10337 public const int DefaultDoubleFieldNumber = 252; 10338 private readonly static double DefaultDoubleDefaultValue = 7e+22D; 10339 10340 private double defaultDouble_; 10341 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 10342 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 10343 public double DefaultDouble { 10344 get { if ((_hasBits0 & 67108864) != 0) { return defaultDouble_; } else { return DefaultDoubleDefaultValue; } } 10345 set { 10346 _hasBits0 |= 67108864; 10347 defaultDouble_ = value; 10348 } 10349 } 10350 /// <summary>Gets whether the "default_double" field is set</summary> 10351 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 10352 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 10353 public bool HasDefaultDouble { 10354 get { return (_hasBits0 & 67108864) != 0; } 10355 } 10356 /// <summary>Clears the value of the "default_double" field</summary> 10357 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 10358 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] ClearDefaultDouble()10359 public void ClearDefaultDouble() { 10360 _hasBits0 &= ~67108864; 10361 } 10362 10363 /// <summary>Field number for the "default_bool" field.</summary> 10364 public const int DefaultBoolFieldNumber = 253; 10365 private readonly static bool DefaultBoolDefaultValue = true; 10366 10367 private bool defaultBool_; 10368 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 10369 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 10370 public bool DefaultBool { 10371 get { if ((_hasBits0 & 134217728) != 0) { return defaultBool_; } else { return DefaultBoolDefaultValue; } } 10372 set { 10373 _hasBits0 |= 134217728; 10374 defaultBool_ = value; 10375 } 10376 } 10377 /// <summary>Gets whether the "default_bool" field is set</summary> 10378 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 10379 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 10380 public bool HasDefaultBool { 10381 get { return (_hasBits0 & 134217728) != 0; } 10382 } 10383 /// <summary>Clears the value of the "default_bool" field</summary> 10384 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 10385 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] ClearDefaultBool()10386 public void ClearDefaultBool() { 10387 _hasBits0 &= ~134217728; 10388 } 10389 10390 /// <summary>Field number for the "default_string" field.</summary> 10391 public const int DefaultStringFieldNumber = 254; 10392 private readonly static string DefaultStringDefaultValue = global::System.Text.Encoding.UTF8.GetString(global::System.Convert.FromBase64String("Um9zZWJ1ZA=="), 0, 7); 10393 10394 private string defaultString_; 10395 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 10396 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 10397 public string DefaultString { 10398 get { return defaultString_ ?? DefaultStringDefaultValue; } 10399 set { 10400 defaultString_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); 10401 } 10402 } 10403 /// <summary>Gets whether the "default_string" field is set</summary> 10404 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 10405 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 10406 public bool HasDefaultString { 10407 get { return defaultString_ != null; } 10408 } 10409 /// <summary>Clears the value of the "default_string" field</summary> 10410 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 10411 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] ClearDefaultString()10412 public void ClearDefaultString() { 10413 defaultString_ = null; 10414 } 10415 10416 /// <summary>Field number for the "default_bytes" field.</summary> 10417 public const int DefaultBytesFieldNumber = 255; 10418 private readonly static pb::ByteString DefaultBytesDefaultValue = pb::ByteString.FromBase64("am9zaHVh"); 10419 10420 private pb::ByteString defaultBytes_; 10421 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 10422 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 10423 public pb::ByteString DefaultBytes { 10424 get { return defaultBytes_ ?? DefaultBytesDefaultValue; } 10425 set { 10426 defaultBytes_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); 10427 } 10428 } 10429 /// <summary>Gets whether the "default_bytes" field is set</summary> 10430 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 10431 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 10432 public bool HasDefaultBytes { 10433 get { return defaultBytes_ != null; } 10434 } 10435 /// <summary>Clears the value of the "default_bytes" field</summary> 10436 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 10437 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] ClearDefaultBytes()10438 public void ClearDefaultBytes() { 10439 defaultBytes_ = null; 10440 } 10441 10442 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 10443 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] Equals(object other)10444 public override bool Equals(object other) { 10445 return Equals(other as TestAllRequiredTypesProto2); 10446 } 10447 10448 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 10449 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] Equals(TestAllRequiredTypesProto2 other)10450 public bool Equals(TestAllRequiredTypesProto2 other) { 10451 if (ReferenceEquals(other, null)) { 10452 return false; 10453 } 10454 if (ReferenceEquals(other, this)) { 10455 return true; 10456 } 10457 if (RequiredInt32 != other.RequiredInt32) return false; 10458 if (RequiredInt64 != other.RequiredInt64) return false; 10459 if (RequiredUint32 != other.RequiredUint32) return false; 10460 if (RequiredUint64 != other.RequiredUint64) return false; 10461 if (RequiredSint32 != other.RequiredSint32) return false; 10462 if (RequiredSint64 != other.RequiredSint64) return false; 10463 if (RequiredFixed32 != other.RequiredFixed32) return false; 10464 if (RequiredFixed64 != other.RequiredFixed64) return false; 10465 if (RequiredSfixed32 != other.RequiredSfixed32) return false; 10466 if (RequiredSfixed64 != other.RequiredSfixed64) return false; 10467 if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(RequiredFloat, other.RequiredFloat)) return false; 10468 if (!pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.Equals(RequiredDouble, other.RequiredDouble)) return false; 10469 if (RequiredBool != other.RequiredBool) return false; 10470 if (RequiredString != other.RequiredString) return false; 10471 if (RequiredBytes != other.RequiredBytes) return false; 10472 if (!object.Equals(RequiredNestedMessage, other.RequiredNestedMessage)) return false; 10473 if (!object.Equals(RequiredForeignMessage, other.RequiredForeignMessage)) return false; 10474 if (RequiredNestedEnum != other.RequiredNestedEnum) return false; 10475 if (RequiredForeignEnum != other.RequiredForeignEnum) return false; 10476 if (RequiredStringPiece != other.RequiredStringPiece) return false; 10477 if (RequiredCord != other.RequiredCord) return false; 10478 if (!object.Equals(RecursiveMessage, other.RecursiveMessage)) return false; 10479 if (!object.Equals(OptionalRecursiveMessage, other.OptionalRecursiveMessage)) return false; 10480 if (!object.Equals(Data, other.Data)) return false; 10481 if (DefaultInt32 != other.DefaultInt32) return false; 10482 if (DefaultInt64 != other.DefaultInt64) return false; 10483 if (DefaultUint32 != other.DefaultUint32) return false; 10484 if (DefaultUint64 != other.DefaultUint64) return false; 10485 if (DefaultSint32 != other.DefaultSint32) return false; 10486 if (DefaultSint64 != other.DefaultSint64) return false; 10487 if (DefaultFixed32 != other.DefaultFixed32) return false; 10488 if (DefaultFixed64 != other.DefaultFixed64) return false; 10489 if (DefaultSfixed32 != other.DefaultSfixed32) return false; 10490 if (DefaultSfixed64 != other.DefaultSfixed64) return false; 10491 if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(DefaultFloat, other.DefaultFloat)) return false; 10492 if (!pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.Equals(DefaultDouble, other.DefaultDouble)) return false; 10493 if (DefaultBool != other.DefaultBool) return false; 10494 if (DefaultString != other.DefaultString) return false; 10495 if (DefaultBytes != other.DefaultBytes) return false; 10496 if (!Equals(_extensions, other._extensions)) { 10497 return false; 10498 } 10499 return Equals(_unknownFields, other._unknownFields); 10500 } 10501 10502 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 10503 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] GetHashCode()10504 public override int GetHashCode() { 10505 int hash = 1; 10506 if (HasRequiredInt32) hash ^= RequiredInt32.GetHashCode(); 10507 if (HasRequiredInt64) hash ^= RequiredInt64.GetHashCode(); 10508 if (HasRequiredUint32) hash ^= RequiredUint32.GetHashCode(); 10509 if (HasRequiredUint64) hash ^= RequiredUint64.GetHashCode(); 10510 if (HasRequiredSint32) hash ^= RequiredSint32.GetHashCode(); 10511 if (HasRequiredSint64) hash ^= RequiredSint64.GetHashCode(); 10512 if (HasRequiredFixed32) hash ^= RequiredFixed32.GetHashCode(); 10513 if (HasRequiredFixed64) hash ^= RequiredFixed64.GetHashCode(); 10514 if (HasRequiredSfixed32) hash ^= RequiredSfixed32.GetHashCode(); 10515 if (HasRequiredSfixed64) hash ^= RequiredSfixed64.GetHashCode(); 10516 if (HasRequiredFloat) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(RequiredFloat); 10517 if (HasRequiredDouble) hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(RequiredDouble); 10518 if (HasRequiredBool) hash ^= RequiredBool.GetHashCode(); 10519 if (HasRequiredString) hash ^= RequiredString.GetHashCode(); 10520 if (HasRequiredBytes) hash ^= RequiredBytes.GetHashCode(); 10521 if (requiredNestedMessage_ != null) hash ^= RequiredNestedMessage.GetHashCode(); 10522 if (requiredForeignMessage_ != null) hash ^= RequiredForeignMessage.GetHashCode(); 10523 if (HasRequiredNestedEnum) hash ^= RequiredNestedEnum.GetHashCode(); 10524 if (HasRequiredForeignEnum) hash ^= RequiredForeignEnum.GetHashCode(); 10525 if (HasRequiredStringPiece) hash ^= RequiredStringPiece.GetHashCode(); 10526 if (HasRequiredCord) hash ^= RequiredCord.GetHashCode(); 10527 if (recursiveMessage_ != null) hash ^= RecursiveMessage.GetHashCode(); 10528 if (optionalRecursiveMessage_ != null) hash ^= OptionalRecursiveMessage.GetHashCode(); 10529 if (HasData) hash ^= Data.GetHashCode(); 10530 if (HasDefaultInt32) hash ^= DefaultInt32.GetHashCode(); 10531 if (HasDefaultInt64) hash ^= DefaultInt64.GetHashCode(); 10532 if (HasDefaultUint32) hash ^= DefaultUint32.GetHashCode(); 10533 if (HasDefaultUint64) hash ^= DefaultUint64.GetHashCode(); 10534 if (HasDefaultSint32) hash ^= DefaultSint32.GetHashCode(); 10535 if (HasDefaultSint64) hash ^= DefaultSint64.GetHashCode(); 10536 if (HasDefaultFixed32) hash ^= DefaultFixed32.GetHashCode(); 10537 if (HasDefaultFixed64) hash ^= DefaultFixed64.GetHashCode(); 10538 if (HasDefaultSfixed32) hash ^= DefaultSfixed32.GetHashCode(); 10539 if (HasDefaultSfixed64) hash ^= DefaultSfixed64.GetHashCode(); 10540 if (HasDefaultFloat) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(DefaultFloat); 10541 if (HasDefaultDouble) hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(DefaultDouble); 10542 if (HasDefaultBool) hash ^= DefaultBool.GetHashCode(); 10543 if (HasDefaultString) hash ^= DefaultString.GetHashCode(); 10544 if (HasDefaultBytes) hash ^= DefaultBytes.GetHashCode(); 10545 if (_extensions != null) { 10546 hash ^= _extensions.GetHashCode(); 10547 } 10548 if (_unknownFields != null) { 10549 hash ^= _unknownFields.GetHashCode(); 10550 } 10551 return hash; 10552 } 10553 10554 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 10555 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] ToString()10556 public override string ToString() { 10557 return pb::JsonFormatter.ToDiagnosticString(this); 10558 } 10559 10560 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 10561 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] WriteTo(pb::CodedOutputStream output)10562 public void WriteTo(pb::CodedOutputStream output) { 10563 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 10564 output.WriteRawMessage(this); 10565 #else 10566 if (HasRequiredInt32) { 10567 output.WriteRawTag(8); 10568 output.WriteInt32(RequiredInt32); 10569 } 10570 if (HasRequiredInt64) { 10571 output.WriteRawTag(16); 10572 output.WriteInt64(RequiredInt64); 10573 } 10574 if (HasRequiredUint32) { 10575 output.WriteRawTag(24); 10576 output.WriteUInt32(RequiredUint32); 10577 } 10578 if (HasRequiredUint64) { 10579 output.WriteRawTag(32); 10580 output.WriteUInt64(RequiredUint64); 10581 } 10582 if (HasRequiredSint32) { 10583 output.WriteRawTag(40); 10584 output.WriteSInt32(RequiredSint32); 10585 } 10586 if (HasRequiredSint64) { 10587 output.WriteRawTag(48); 10588 output.WriteSInt64(RequiredSint64); 10589 } 10590 if (HasRequiredFixed32) { 10591 output.WriteRawTag(61); 10592 output.WriteFixed32(RequiredFixed32); 10593 } 10594 if (HasRequiredFixed64) { 10595 output.WriteRawTag(65); 10596 output.WriteFixed64(RequiredFixed64); 10597 } 10598 if (HasRequiredSfixed32) { 10599 output.WriteRawTag(77); 10600 output.WriteSFixed32(RequiredSfixed32); 10601 } 10602 if (HasRequiredSfixed64) { 10603 output.WriteRawTag(81); 10604 output.WriteSFixed64(RequiredSfixed64); 10605 } 10606 if (HasRequiredFloat) { 10607 output.WriteRawTag(93); 10608 output.WriteFloat(RequiredFloat); 10609 } 10610 if (HasRequiredDouble) { 10611 output.WriteRawTag(97); 10612 output.WriteDouble(RequiredDouble); 10613 } 10614 if (HasRequiredBool) { 10615 output.WriteRawTag(104); 10616 output.WriteBool(RequiredBool); 10617 } 10618 if (HasRequiredString) { 10619 output.WriteRawTag(114); 10620 output.WriteString(RequiredString); 10621 } 10622 if (HasRequiredBytes) { 10623 output.WriteRawTag(122); 10624 output.WriteBytes(RequiredBytes); 10625 } 10626 if (requiredNestedMessage_ != null) { 10627 output.WriteRawTag(146, 1); 10628 output.WriteMessage(RequiredNestedMessage); 10629 } 10630 if (requiredForeignMessage_ != null) { 10631 output.WriteRawTag(154, 1); 10632 output.WriteMessage(RequiredForeignMessage); 10633 } 10634 if (HasRequiredNestedEnum) { 10635 output.WriteRawTag(168, 1); 10636 output.WriteEnum((int) RequiredNestedEnum); 10637 } 10638 if (HasRequiredForeignEnum) { 10639 output.WriteRawTag(176, 1); 10640 output.WriteEnum((int) RequiredForeignEnum); 10641 } 10642 if (HasRequiredStringPiece) { 10643 output.WriteRawTag(194, 1); 10644 output.WriteString(RequiredStringPiece); 10645 } 10646 if (HasRequiredCord) { 10647 output.WriteRawTag(202, 1); 10648 output.WriteString(RequiredCord); 10649 } 10650 if (recursiveMessage_ != null) { 10651 output.WriteRawTag(218, 1); 10652 output.WriteMessage(RecursiveMessage); 10653 } 10654 if (optionalRecursiveMessage_ != null) { 10655 output.WriteRawTag(226, 1); 10656 output.WriteMessage(OptionalRecursiveMessage); 10657 } 10658 if (HasData) { 10659 output.WriteRawTag(203, 12); 10660 output.WriteGroup(Data); 10661 output.WriteRawTag(204, 12); 10662 } 10663 if (HasDefaultInt32) { 10664 output.WriteRawTag(136, 15); 10665 output.WriteInt32(DefaultInt32); 10666 } 10667 if (HasDefaultInt64) { 10668 output.WriteRawTag(144, 15); 10669 output.WriteInt64(DefaultInt64); 10670 } 10671 if (HasDefaultUint32) { 10672 output.WriteRawTag(152, 15); 10673 output.WriteUInt32(DefaultUint32); 10674 } 10675 if (HasDefaultUint64) { 10676 output.WriteRawTag(160, 15); 10677 output.WriteUInt64(DefaultUint64); 10678 } 10679 if (HasDefaultSint32) { 10680 output.WriteRawTag(168, 15); 10681 output.WriteSInt32(DefaultSint32); 10682 } 10683 if (HasDefaultSint64) { 10684 output.WriteRawTag(176, 15); 10685 output.WriteSInt64(DefaultSint64); 10686 } 10687 if (HasDefaultFixed32) { 10688 output.WriteRawTag(189, 15); 10689 output.WriteFixed32(DefaultFixed32); 10690 } 10691 if (HasDefaultFixed64) { 10692 output.WriteRawTag(193, 15); 10693 output.WriteFixed64(DefaultFixed64); 10694 } 10695 if (HasDefaultSfixed32) { 10696 output.WriteRawTag(205, 15); 10697 output.WriteSFixed32(DefaultSfixed32); 10698 } 10699 if (HasDefaultSfixed64) { 10700 output.WriteRawTag(209, 15); 10701 output.WriteSFixed64(DefaultSfixed64); 10702 } 10703 if (HasDefaultFloat) { 10704 output.WriteRawTag(221, 15); 10705 output.WriteFloat(DefaultFloat); 10706 } 10707 if (HasDefaultDouble) { 10708 output.WriteRawTag(225, 15); 10709 output.WriteDouble(DefaultDouble); 10710 } 10711 if (HasDefaultBool) { 10712 output.WriteRawTag(232, 15); 10713 output.WriteBool(DefaultBool); 10714 } 10715 if (HasDefaultString) { 10716 output.WriteRawTag(242, 15); 10717 output.WriteString(DefaultString); 10718 } 10719 if (HasDefaultBytes) { 10720 output.WriteRawTag(250, 15); 10721 output.WriteBytes(DefaultBytes); 10722 } 10723 if (_extensions != null) { 10724 _extensions.WriteTo(output); 10725 } 10726 if (_unknownFields != null) { 10727 _unknownFields.WriteTo(output); 10728 } 10729 #endif 10730 } 10731 10732 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 10733 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 10734 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] IBufferMessage.InternalWriteTo(ref pb::WriteContext output)10735 void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { 10736 if (HasRequiredInt32) { 10737 output.WriteRawTag(8); 10738 output.WriteInt32(RequiredInt32); 10739 } 10740 if (HasRequiredInt64) { 10741 output.WriteRawTag(16); 10742 output.WriteInt64(RequiredInt64); 10743 } 10744 if (HasRequiredUint32) { 10745 output.WriteRawTag(24); 10746 output.WriteUInt32(RequiredUint32); 10747 } 10748 if (HasRequiredUint64) { 10749 output.WriteRawTag(32); 10750 output.WriteUInt64(RequiredUint64); 10751 } 10752 if (HasRequiredSint32) { 10753 output.WriteRawTag(40); 10754 output.WriteSInt32(RequiredSint32); 10755 } 10756 if (HasRequiredSint64) { 10757 output.WriteRawTag(48); 10758 output.WriteSInt64(RequiredSint64); 10759 } 10760 if (HasRequiredFixed32) { 10761 output.WriteRawTag(61); 10762 output.WriteFixed32(RequiredFixed32); 10763 } 10764 if (HasRequiredFixed64) { 10765 output.WriteRawTag(65); 10766 output.WriteFixed64(RequiredFixed64); 10767 } 10768 if (HasRequiredSfixed32) { 10769 output.WriteRawTag(77); 10770 output.WriteSFixed32(RequiredSfixed32); 10771 } 10772 if (HasRequiredSfixed64) { 10773 output.WriteRawTag(81); 10774 output.WriteSFixed64(RequiredSfixed64); 10775 } 10776 if (HasRequiredFloat) { 10777 output.WriteRawTag(93); 10778 output.WriteFloat(RequiredFloat); 10779 } 10780 if (HasRequiredDouble) { 10781 output.WriteRawTag(97); 10782 output.WriteDouble(RequiredDouble); 10783 } 10784 if (HasRequiredBool) { 10785 output.WriteRawTag(104); 10786 output.WriteBool(RequiredBool); 10787 } 10788 if (HasRequiredString) { 10789 output.WriteRawTag(114); 10790 output.WriteString(RequiredString); 10791 } 10792 if (HasRequiredBytes) { 10793 output.WriteRawTag(122); 10794 output.WriteBytes(RequiredBytes); 10795 } 10796 if (requiredNestedMessage_ != null) { 10797 output.WriteRawTag(146, 1); 10798 output.WriteMessage(RequiredNestedMessage); 10799 } 10800 if (requiredForeignMessage_ != null) { 10801 output.WriteRawTag(154, 1); 10802 output.WriteMessage(RequiredForeignMessage); 10803 } 10804 if (HasRequiredNestedEnum) { 10805 output.WriteRawTag(168, 1); 10806 output.WriteEnum((int) RequiredNestedEnum); 10807 } 10808 if (HasRequiredForeignEnum) { 10809 output.WriteRawTag(176, 1); 10810 output.WriteEnum((int) RequiredForeignEnum); 10811 } 10812 if (HasRequiredStringPiece) { 10813 output.WriteRawTag(194, 1); 10814 output.WriteString(RequiredStringPiece); 10815 } 10816 if (HasRequiredCord) { 10817 output.WriteRawTag(202, 1); 10818 output.WriteString(RequiredCord); 10819 } 10820 if (recursiveMessage_ != null) { 10821 output.WriteRawTag(218, 1); 10822 output.WriteMessage(RecursiveMessage); 10823 } 10824 if (optionalRecursiveMessage_ != null) { 10825 output.WriteRawTag(226, 1); 10826 output.WriteMessage(OptionalRecursiveMessage); 10827 } 10828 if (HasData) { 10829 output.WriteRawTag(203, 12); 10830 output.WriteGroup(Data); 10831 output.WriteRawTag(204, 12); 10832 } 10833 if (HasDefaultInt32) { 10834 output.WriteRawTag(136, 15); 10835 output.WriteInt32(DefaultInt32); 10836 } 10837 if (HasDefaultInt64) { 10838 output.WriteRawTag(144, 15); 10839 output.WriteInt64(DefaultInt64); 10840 } 10841 if (HasDefaultUint32) { 10842 output.WriteRawTag(152, 15); 10843 output.WriteUInt32(DefaultUint32); 10844 } 10845 if (HasDefaultUint64) { 10846 output.WriteRawTag(160, 15); 10847 output.WriteUInt64(DefaultUint64); 10848 } 10849 if (HasDefaultSint32) { 10850 output.WriteRawTag(168, 15); 10851 output.WriteSInt32(DefaultSint32); 10852 } 10853 if (HasDefaultSint64) { 10854 output.WriteRawTag(176, 15); 10855 output.WriteSInt64(DefaultSint64); 10856 } 10857 if (HasDefaultFixed32) { 10858 output.WriteRawTag(189, 15); 10859 output.WriteFixed32(DefaultFixed32); 10860 } 10861 if (HasDefaultFixed64) { 10862 output.WriteRawTag(193, 15); 10863 output.WriteFixed64(DefaultFixed64); 10864 } 10865 if (HasDefaultSfixed32) { 10866 output.WriteRawTag(205, 15); 10867 output.WriteSFixed32(DefaultSfixed32); 10868 } 10869 if (HasDefaultSfixed64) { 10870 output.WriteRawTag(209, 15); 10871 output.WriteSFixed64(DefaultSfixed64); 10872 } 10873 if (HasDefaultFloat) { 10874 output.WriteRawTag(221, 15); 10875 output.WriteFloat(DefaultFloat); 10876 } 10877 if (HasDefaultDouble) { 10878 output.WriteRawTag(225, 15); 10879 output.WriteDouble(DefaultDouble); 10880 } 10881 if (HasDefaultBool) { 10882 output.WriteRawTag(232, 15); 10883 output.WriteBool(DefaultBool); 10884 } 10885 if (HasDefaultString) { 10886 output.WriteRawTag(242, 15); 10887 output.WriteString(DefaultString); 10888 } 10889 if (HasDefaultBytes) { 10890 output.WriteRawTag(250, 15); 10891 output.WriteBytes(DefaultBytes); 10892 } 10893 if (_extensions != null) { 10894 _extensions.WriteTo(ref output); 10895 } 10896 if (_unknownFields != null) { 10897 _unknownFields.WriteTo(ref output); 10898 } 10899 } 10900 #endif 10901 10902 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 10903 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] CalculateSize()10904 public int CalculateSize() { 10905 int size = 0; 10906 if (HasRequiredInt32) { 10907 size += 1 + pb::CodedOutputStream.ComputeInt32Size(RequiredInt32); 10908 } 10909 if (HasRequiredInt64) { 10910 size += 1 + pb::CodedOutputStream.ComputeInt64Size(RequiredInt64); 10911 } 10912 if (HasRequiredUint32) { 10913 size += 1 + pb::CodedOutputStream.ComputeUInt32Size(RequiredUint32); 10914 } 10915 if (HasRequiredUint64) { 10916 size += 1 + pb::CodedOutputStream.ComputeUInt64Size(RequiredUint64); 10917 } 10918 if (HasRequiredSint32) { 10919 size += 1 + pb::CodedOutputStream.ComputeSInt32Size(RequiredSint32); 10920 } 10921 if (HasRequiredSint64) { 10922 size += 1 + pb::CodedOutputStream.ComputeSInt64Size(RequiredSint64); 10923 } 10924 if (HasRequiredFixed32) { 10925 size += 1 + 4; 10926 } 10927 if (HasRequiredFixed64) { 10928 size += 1 + 8; 10929 } 10930 if (HasRequiredSfixed32) { 10931 size += 1 + 4; 10932 } 10933 if (HasRequiredSfixed64) { 10934 size += 1 + 8; 10935 } 10936 if (HasRequiredFloat) { 10937 size += 1 + 4; 10938 } 10939 if (HasRequiredDouble) { 10940 size += 1 + 8; 10941 } 10942 if (HasRequiredBool) { 10943 size += 1 + 1; 10944 } 10945 if (HasRequiredString) { 10946 size += 1 + pb::CodedOutputStream.ComputeStringSize(RequiredString); 10947 } 10948 if (HasRequiredBytes) { 10949 size += 1 + pb::CodedOutputStream.ComputeBytesSize(RequiredBytes); 10950 } 10951 if (requiredNestedMessage_ != null) { 10952 size += 2 + pb::CodedOutputStream.ComputeMessageSize(RequiredNestedMessage); 10953 } 10954 if (requiredForeignMessage_ != null) { 10955 size += 2 + pb::CodedOutputStream.ComputeMessageSize(RequiredForeignMessage); 10956 } 10957 if (HasRequiredNestedEnum) { 10958 size += 2 + pb::CodedOutputStream.ComputeEnumSize((int) RequiredNestedEnum); 10959 } 10960 if (HasRequiredForeignEnum) { 10961 size += 2 + pb::CodedOutputStream.ComputeEnumSize((int) RequiredForeignEnum); 10962 } 10963 if (HasRequiredStringPiece) { 10964 size += 2 + pb::CodedOutputStream.ComputeStringSize(RequiredStringPiece); 10965 } 10966 if (HasRequiredCord) { 10967 size += 2 + pb::CodedOutputStream.ComputeStringSize(RequiredCord); 10968 } 10969 if (recursiveMessage_ != null) { 10970 size += 2 + pb::CodedOutputStream.ComputeMessageSize(RecursiveMessage); 10971 } 10972 if (optionalRecursiveMessage_ != null) { 10973 size += 2 + pb::CodedOutputStream.ComputeMessageSize(OptionalRecursiveMessage); 10974 } 10975 if (HasData) { 10976 size += 4 + pb::CodedOutputStream.ComputeGroupSize(Data); 10977 } 10978 if (HasDefaultInt32) { 10979 size += 2 + pb::CodedOutputStream.ComputeInt32Size(DefaultInt32); 10980 } 10981 if (HasDefaultInt64) { 10982 size += 2 + pb::CodedOutputStream.ComputeInt64Size(DefaultInt64); 10983 } 10984 if (HasDefaultUint32) { 10985 size += 2 + pb::CodedOutputStream.ComputeUInt32Size(DefaultUint32); 10986 } 10987 if (HasDefaultUint64) { 10988 size += 2 + pb::CodedOutputStream.ComputeUInt64Size(DefaultUint64); 10989 } 10990 if (HasDefaultSint32) { 10991 size += 2 + pb::CodedOutputStream.ComputeSInt32Size(DefaultSint32); 10992 } 10993 if (HasDefaultSint64) { 10994 size += 2 + pb::CodedOutputStream.ComputeSInt64Size(DefaultSint64); 10995 } 10996 if (HasDefaultFixed32) { 10997 size += 2 + 4; 10998 } 10999 if (HasDefaultFixed64) { 11000 size += 2 + 8; 11001 } 11002 if (HasDefaultSfixed32) { 11003 size += 2 + 4; 11004 } 11005 if (HasDefaultSfixed64) { 11006 size += 2 + 8; 11007 } 11008 if (HasDefaultFloat) { 11009 size += 2 + 4; 11010 } 11011 if (HasDefaultDouble) { 11012 size += 2 + 8; 11013 } 11014 if (HasDefaultBool) { 11015 size += 2 + 1; 11016 } 11017 if (HasDefaultString) { 11018 size += 2 + pb::CodedOutputStream.ComputeStringSize(DefaultString); 11019 } 11020 if (HasDefaultBytes) { 11021 size += 2 + pb::CodedOutputStream.ComputeBytesSize(DefaultBytes); 11022 } 11023 if (_extensions != null) { 11024 size += _extensions.CalculateSize(); 11025 } 11026 if (_unknownFields != null) { 11027 size += _unknownFields.CalculateSize(); 11028 } 11029 return size; 11030 } 11031 11032 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 11033 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] MergeFrom(TestAllRequiredTypesProto2 other)11034 public void MergeFrom(TestAllRequiredTypesProto2 other) { 11035 if (other == null) { 11036 return; 11037 } 11038 if (other.HasRequiredInt32) { 11039 RequiredInt32 = other.RequiredInt32; 11040 } 11041 if (other.HasRequiredInt64) { 11042 RequiredInt64 = other.RequiredInt64; 11043 } 11044 if (other.HasRequiredUint32) { 11045 RequiredUint32 = other.RequiredUint32; 11046 } 11047 if (other.HasRequiredUint64) { 11048 RequiredUint64 = other.RequiredUint64; 11049 } 11050 if (other.HasRequiredSint32) { 11051 RequiredSint32 = other.RequiredSint32; 11052 } 11053 if (other.HasRequiredSint64) { 11054 RequiredSint64 = other.RequiredSint64; 11055 } 11056 if (other.HasRequiredFixed32) { 11057 RequiredFixed32 = other.RequiredFixed32; 11058 } 11059 if (other.HasRequiredFixed64) { 11060 RequiredFixed64 = other.RequiredFixed64; 11061 } 11062 if (other.HasRequiredSfixed32) { 11063 RequiredSfixed32 = other.RequiredSfixed32; 11064 } 11065 if (other.HasRequiredSfixed64) { 11066 RequiredSfixed64 = other.RequiredSfixed64; 11067 } 11068 if (other.HasRequiredFloat) { 11069 RequiredFloat = other.RequiredFloat; 11070 } 11071 if (other.HasRequiredDouble) { 11072 RequiredDouble = other.RequiredDouble; 11073 } 11074 if (other.HasRequiredBool) { 11075 RequiredBool = other.RequiredBool; 11076 } 11077 if (other.HasRequiredString) { 11078 RequiredString = other.RequiredString; 11079 } 11080 if (other.HasRequiredBytes) { 11081 RequiredBytes = other.RequiredBytes; 11082 } 11083 if (other.requiredNestedMessage_ != null) { 11084 if (requiredNestedMessage_ == null) { 11085 RequiredNestedMessage = new global::ProtobufTestMessages.Proto2.TestAllRequiredTypesProto2.Types.NestedMessage(); 11086 } 11087 RequiredNestedMessage.MergeFrom(other.RequiredNestedMessage); 11088 } 11089 if (other.requiredForeignMessage_ != null) { 11090 if (requiredForeignMessage_ == null) { 11091 RequiredForeignMessage = new global::ProtobufTestMessages.Proto2.ForeignMessageProto2(); 11092 } 11093 RequiredForeignMessage.MergeFrom(other.RequiredForeignMessage); 11094 } 11095 if (other.HasRequiredNestedEnum) { 11096 RequiredNestedEnum = other.RequiredNestedEnum; 11097 } 11098 if (other.HasRequiredForeignEnum) { 11099 RequiredForeignEnum = other.RequiredForeignEnum; 11100 } 11101 if (other.HasRequiredStringPiece) { 11102 RequiredStringPiece = other.RequiredStringPiece; 11103 } 11104 if (other.HasRequiredCord) { 11105 RequiredCord = other.RequiredCord; 11106 } 11107 if (other.recursiveMessage_ != null) { 11108 if (recursiveMessage_ == null) { 11109 RecursiveMessage = new global::ProtobufTestMessages.Proto2.TestAllRequiredTypesProto2(); 11110 } 11111 RecursiveMessage.MergeFrom(other.RecursiveMessage); 11112 } 11113 if (other.optionalRecursiveMessage_ != null) { 11114 if (optionalRecursiveMessage_ == null) { 11115 OptionalRecursiveMessage = new global::ProtobufTestMessages.Proto2.TestAllRequiredTypesProto2(); 11116 } 11117 OptionalRecursiveMessage.MergeFrom(other.OptionalRecursiveMessage); 11118 } 11119 if (other.HasData) { 11120 if (!HasData) { 11121 Data = new global::ProtobufTestMessages.Proto2.TestAllRequiredTypesProto2.Types.Data(); 11122 } 11123 Data.MergeFrom(other.Data); 11124 } 11125 if (other.HasDefaultInt32) { 11126 DefaultInt32 = other.DefaultInt32; 11127 } 11128 if (other.HasDefaultInt64) { 11129 DefaultInt64 = other.DefaultInt64; 11130 } 11131 if (other.HasDefaultUint32) { 11132 DefaultUint32 = other.DefaultUint32; 11133 } 11134 if (other.HasDefaultUint64) { 11135 DefaultUint64 = other.DefaultUint64; 11136 } 11137 if (other.HasDefaultSint32) { 11138 DefaultSint32 = other.DefaultSint32; 11139 } 11140 if (other.HasDefaultSint64) { 11141 DefaultSint64 = other.DefaultSint64; 11142 } 11143 if (other.HasDefaultFixed32) { 11144 DefaultFixed32 = other.DefaultFixed32; 11145 } 11146 if (other.HasDefaultFixed64) { 11147 DefaultFixed64 = other.DefaultFixed64; 11148 } 11149 if (other.HasDefaultSfixed32) { 11150 DefaultSfixed32 = other.DefaultSfixed32; 11151 } 11152 if (other.HasDefaultSfixed64) { 11153 DefaultSfixed64 = other.DefaultSfixed64; 11154 } 11155 if (other.HasDefaultFloat) { 11156 DefaultFloat = other.DefaultFloat; 11157 } 11158 if (other.HasDefaultDouble) { 11159 DefaultDouble = other.DefaultDouble; 11160 } 11161 if (other.HasDefaultBool) { 11162 DefaultBool = other.DefaultBool; 11163 } 11164 if (other.HasDefaultString) { 11165 DefaultString = other.DefaultString; 11166 } 11167 if (other.HasDefaultBytes) { 11168 DefaultBytes = other.DefaultBytes; 11169 } 11170 pb::ExtensionSet.MergeFrom(ref _extensions, other._extensions); 11171 _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); 11172 } 11173 11174 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 11175 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] MergeFrom(pb::CodedInputStream input)11176 public void MergeFrom(pb::CodedInputStream input) { 11177 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 11178 input.ReadRawMessage(this); 11179 #else 11180 uint tag; 11181 while ((tag = input.ReadTag()) != 0) { 11182 if ((tag & 7) == 4) { 11183 // Abort on any end group tag. 11184 return; 11185 } 11186 switch(tag) { 11187 default: 11188 if (!pb::ExtensionSet.TryMergeFieldFrom(ref _extensions, input)) { 11189 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); 11190 } 11191 break; 11192 case 8: { 11193 RequiredInt32 = input.ReadInt32(); 11194 break; 11195 } 11196 case 16: { 11197 RequiredInt64 = input.ReadInt64(); 11198 break; 11199 } 11200 case 24: { 11201 RequiredUint32 = input.ReadUInt32(); 11202 break; 11203 } 11204 case 32: { 11205 RequiredUint64 = input.ReadUInt64(); 11206 break; 11207 } 11208 case 40: { 11209 RequiredSint32 = input.ReadSInt32(); 11210 break; 11211 } 11212 case 48: { 11213 RequiredSint64 = input.ReadSInt64(); 11214 break; 11215 } 11216 case 61: { 11217 RequiredFixed32 = input.ReadFixed32(); 11218 break; 11219 } 11220 case 65: { 11221 RequiredFixed64 = input.ReadFixed64(); 11222 break; 11223 } 11224 case 77: { 11225 RequiredSfixed32 = input.ReadSFixed32(); 11226 break; 11227 } 11228 case 81: { 11229 RequiredSfixed64 = input.ReadSFixed64(); 11230 break; 11231 } 11232 case 93: { 11233 RequiredFloat = input.ReadFloat(); 11234 break; 11235 } 11236 case 97: { 11237 RequiredDouble = input.ReadDouble(); 11238 break; 11239 } 11240 case 104: { 11241 RequiredBool = input.ReadBool(); 11242 break; 11243 } 11244 case 114: { 11245 RequiredString = input.ReadString(); 11246 break; 11247 } 11248 case 122: { 11249 RequiredBytes = input.ReadBytes(); 11250 break; 11251 } 11252 case 146: { 11253 if (requiredNestedMessage_ == null) { 11254 RequiredNestedMessage = new global::ProtobufTestMessages.Proto2.TestAllRequiredTypesProto2.Types.NestedMessage(); 11255 } 11256 input.ReadMessage(RequiredNestedMessage); 11257 break; 11258 } 11259 case 154: { 11260 if (requiredForeignMessage_ == null) { 11261 RequiredForeignMessage = new global::ProtobufTestMessages.Proto2.ForeignMessageProto2(); 11262 } 11263 input.ReadMessage(RequiredForeignMessage); 11264 break; 11265 } 11266 case 168: { 11267 RequiredNestedEnum = (global::ProtobufTestMessages.Proto2.TestAllRequiredTypesProto2.Types.NestedEnum) input.ReadEnum(); 11268 break; 11269 } 11270 case 176: { 11271 RequiredForeignEnum = (global::ProtobufTestMessages.Proto2.ForeignEnumProto2) input.ReadEnum(); 11272 break; 11273 } 11274 case 194: { 11275 RequiredStringPiece = input.ReadString(); 11276 break; 11277 } 11278 case 202: { 11279 RequiredCord = input.ReadString(); 11280 break; 11281 } 11282 case 218: { 11283 if (recursiveMessage_ == null) { 11284 RecursiveMessage = new global::ProtobufTestMessages.Proto2.TestAllRequiredTypesProto2(); 11285 } 11286 input.ReadMessage(RecursiveMessage); 11287 break; 11288 } 11289 case 226: { 11290 if (optionalRecursiveMessage_ == null) { 11291 OptionalRecursiveMessage = new global::ProtobufTestMessages.Proto2.TestAllRequiredTypesProto2(); 11292 } 11293 input.ReadMessage(OptionalRecursiveMessage); 11294 break; 11295 } 11296 case 1611: { 11297 if (!HasData) { 11298 Data = new global::ProtobufTestMessages.Proto2.TestAllRequiredTypesProto2.Types.Data(); 11299 } 11300 input.ReadGroup(Data); 11301 break; 11302 } 11303 case 1928: { 11304 DefaultInt32 = input.ReadInt32(); 11305 break; 11306 } 11307 case 1936: { 11308 DefaultInt64 = input.ReadInt64(); 11309 break; 11310 } 11311 case 1944: { 11312 DefaultUint32 = input.ReadUInt32(); 11313 break; 11314 } 11315 case 1952: { 11316 DefaultUint64 = input.ReadUInt64(); 11317 break; 11318 } 11319 case 1960: { 11320 DefaultSint32 = input.ReadSInt32(); 11321 break; 11322 } 11323 case 1968: { 11324 DefaultSint64 = input.ReadSInt64(); 11325 break; 11326 } 11327 case 1981: { 11328 DefaultFixed32 = input.ReadFixed32(); 11329 break; 11330 } 11331 case 1985: { 11332 DefaultFixed64 = input.ReadFixed64(); 11333 break; 11334 } 11335 case 1997: { 11336 DefaultSfixed32 = input.ReadSFixed32(); 11337 break; 11338 } 11339 case 2001: { 11340 DefaultSfixed64 = input.ReadSFixed64(); 11341 break; 11342 } 11343 case 2013: { 11344 DefaultFloat = input.ReadFloat(); 11345 break; 11346 } 11347 case 2017: { 11348 DefaultDouble = input.ReadDouble(); 11349 break; 11350 } 11351 case 2024: { 11352 DefaultBool = input.ReadBool(); 11353 break; 11354 } 11355 case 2034: { 11356 DefaultString = input.ReadString(); 11357 break; 11358 } 11359 case 2042: { 11360 DefaultBytes = input.ReadBytes(); 11361 break; 11362 } 11363 } 11364 } 11365 #endif 11366 } 11367 11368 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 11369 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 11370 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] IBufferMessage.InternalMergeFrom(ref pb::ParseContext input)11371 void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { 11372 uint tag; 11373 while ((tag = input.ReadTag()) != 0) { 11374 if ((tag & 7) == 4) { 11375 // Abort on any end group tag. 11376 return; 11377 } 11378 switch(tag) { 11379 default: 11380 if (!pb::ExtensionSet.TryMergeFieldFrom(ref _extensions, ref input)) { 11381 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); 11382 } 11383 break; 11384 case 8: { 11385 RequiredInt32 = input.ReadInt32(); 11386 break; 11387 } 11388 case 16: { 11389 RequiredInt64 = input.ReadInt64(); 11390 break; 11391 } 11392 case 24: { 11393 RequiredUint32 = input.ReadUInt32(); 11394 break; 11395 } 11396 case 32: { 11397 RequiredUint64 = input.ReadUInt64(); 11398 break; 11399 } 11400 case 40: { 11401 RequiredSint32 = input.ReadSInt32(); 11402 break; 11403 } 11404 case 48: { 11405 RequiredSint64 = input.ReadSInt64(); 11406 break; 11407 } 11408 case 61: { 11409 RequiredFixed32 = input.ReadFixed32(); 11410 break; 11411 } 11412 case 65: { 11413 RequiredFixed64 = input.ReadFixed64(); 11414 break; 11415 } 11416 case 77: { 11417 RequiredSfixed32 = input.ReadSFixed32(); 11418 break; 11419 } 11420 case 81: { 11421 RequiredSfixed64 = input.ReadSFixed64(); 11422 break; 11423 } 11424 case 93: { 11425 RequiredFloat = input.ReadFloat(); 11426 break; 11427 } 11428 case 97: { 11429 RequiredDouble = input.ReadDouble(); 11430 break; 11431 } 11432 case 104: { 11433 RequiredBool = input.ReadBool(); 11434 break; 11435 } 11436 case 114: { 11437 RequiredString = input.ReadString(); 11438 break; 11439 } 11440 case 122: { 11441 RequiredBytes = input.ReadBytes(); 11442 break; 11443 } 11444 case 146: { 11445 if (requiredNestedMessage_ == null) { 11446 RequiredNestedMessage = new global::ProtobufTestMessages.Proto2.TestAllRequiredTypesProto2.Types.NestedMessage(); 11447 } 11448 input.ReadMessage(RequiredNestedMessage); 11449 break; 11450 } 11451 case 154: { 11452 if (requiredForeignMessage_ == null) { 11453 RequiredForeignMessage = new global::ProtobufTestMessages.Proto2.ForeignMessageProto2(); 11454 } 11455 input.ReadMessage(RequiredForeignMessage); 11456 break; 11457 } 11458 case 168: { 11459 RequiredNestedEnum = (global::ProtobufTestMessages.Proto2.TestAllRequiredTypesProto2.Types.NestedEnum) input.ReadEnum(); 11460 break; 11461 } 11462 case 176: { 11463 RequiredForeignEnum = (global::ProtobufTestMessages.Proto2.ForeignEnumProto2) input.ReadEnum(); 11464 break; 11465 } 11466 case 194: { 11467 RequiredStringPiece = input.ReadString(); 11468 break; 11469 } 11470 case 202: { 11471 RequiredCord = input.ReadString(); 11472 break; 11473 } 11474 case 218: { 11475 if (recursiveMessage_ == null) { 11476 RecursiveMessage = new global::ProtobufTestMessages.Proto2.TestAllRequiredTypesProto2(); 11477 } 11478 input.ReadMessage(RecursiveMessage); 11479 break; 11480 } 11481 case 226: { 11482 if (optionalRecursiveMessage_ == null) { 11483 OptionalRecursiveMessage = new global::ProtobufTestMessages.Proto2.TestAllRequiredTypesProto2(); 11484 } 11485 input.ReadMessage(OptionalRecursiveMessage); 11486 break; 11487 } 11488 case 1611: { 11489 if (!HasData) { 11490 Data = new global::ProtobufTestMessages.Proto2.TestAllRequiredTypesProto2.Types.Data(); 11491 } 11492 input.ReadGroup(Data); 11493 break; 11494 } 11495 case 1928: { 11496 DefaultInt32 = input.ReadInt32(); 11497 break; 11498 } 11499 case 1936: { 11500 DefaultInt64 = input.ReadInt64(); 11501 break; 11502 } 11503 case 1944: { 11504 DefaultUint32 = input.ReadUInt32(); 11505 break; 11506 } 11507 case 1952: { 11508 DefaultUint64 = input.ReadUInt64(); 11509 break; 11510 } 11511 case 1960: { 11512 DefaultSint32 = input.ReadSInt32(); 11513 break; 11514 } 11515 case 1968: { 11516 DefaultSint64 = input.ReadSInt64(); 11517 break; 11518 } 11519 case 1981: { 11520 DefaultFixed32 = input.ReadFixed32(); 11521 break; 11522 } 11523 case 1985: { 11524 DefaultFixed64 = input.ReadFixed64(); 11525 break; 11526 } 11527 case 1997: { 11528 DefaultSfixed32 = input.ReadSFixed32(); 11529 break; 11530 } 11531 case 2001: { 11532 DefaultSfixed64 = input.ReadSFixed64(); 11533 break; 11534 } 11535 case 2013: { 11536 DefaultFloat = input.ReadFloat(); 11537 break; 11538 } 11539 case 2017: { 11540 DefaultDouble = input.ReadDouble(); 11541 break; 11542 } 11543 case 2024: { 11544 DefaultBool = input.ReadBool(); 11545 break; 11546 } 11547 case 2034: { 11548 DefaultString = input.ReadString(); 11549 break; 11550 } 11551 case 2042: { 11552 DefaultBytes = input.ReadBytes(); 11553 break; 11554 } 11555 } 11556 } 11557 } 11558 #endif 11559 GetExtension(pb::Extension<TestAllRequiredTypesProto2, TValue> extension)11560 public TValue GetExtension<TValue>(pb::Extension<TestAllRequiredTypesProto2, TValue> extension) { 11561 return pb::ExtensionSet.Get(ref _extensions, extension); 11562 } GetExtension(pb::RepeatedExtension<TestAllRequiredTypesProto2, TValue> extension)11563 public pbc::RepeatedField<TValue> GetExtension<TValue>(pb::RepeatedExtension<TestAllRequiredTypesProto2, TValue> extension) { 11564 return pb::ExtensionSet.Get(ref _extensions, extension); 11565 } GetOrInitializeExtension(pb::RepeatedExtension<TestAllRequiredTypesProto2, TValue> extension)11566 public pbc::RepeatedField<TValue> GetOrInitializeExtension<TValue>(pb::RepeatedExtension<TestAllRequiredTypesProto2, TValue> extension) { 11567 return pb::ExtensionSet.GetOrInitialize(ref _extensions, extension); 11568 } SetExtension(pb::Extension<TestAllRequiredTypesProto2, TValue> extension, TValue value)11569 public void SetExtension<TValue>(pb::Extension<TestAllRequiredTypesProto2, TValue> extension, TValue value) { 11570 pb::ExtensionSet.Set(ref _extensions, extension, value); 11571 } HasExtension(pb::Extension<TestAllRequiredTypesProto2, TValue> extension)11572 public bool HasExtension<TValue>(pb::Extension<TestAllRequiredTypesProto2, TValue> extension) { 11573 return pb::ExtensionSet.Has(ref _extensions, extension); 11574 } ClearExtension(pb::Extension<TestAllRequiredTypesProto2, TValue> extension)11575 public void ClearExtension<TValue>(pb::Extension<TestAllRequiredTypesProto2, TValue> extension) { 11576 pb::ExtensionSet.Clear(ref _extensions, extension); 11577 } ClearExtension(pb::RepeatedExtension<TestAllRequiredTypesProto2, TValue> extension)11578 public void ClearExtension<TValue>(pb::RepeatedExtension<TestAllRequiredTypesProto2, TValue> extension) { 11579 pb::ExtensionSet.Clear(ref _extensions, extension); 11580 } 11581 11582 #region Nested types 11583 /// <summary>Container for nested types declared in the TestAllRequiredTypesProto2 message type.</summary> 11584 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 11585 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 11586 public static partial class Types { 11587 public enum NestedEnum { 11588 [pbr::OriginalName("FOO")] Foo = 0, 11589 [pbr::OriginalName("BAR")] Bar = 1, 11590 [pbr::OriginalName("BAZ")] Baz = 2, 11591 /// <summary> 11592 /// Intentionally negative. 11593 /// </summary> 11594 [pbr::OriginalName("NEG")] Neg = -1, 11595 } 11596 11597 [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] 11598 public sealed partial class NestedMessage : pb::IMessage<NestedMessage> 11599 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 11600 , pb::IBufferMessage 11601 #endif 11602 { 11603 private static readonly pb::MessageParser<NestedMessage> _parser = new pb::MessageParser<NestedMessage>(() => new NestedMessage()); 11604 private pb::UnknownFieldSet _unknownFields; 11605 private int _hasBits0; 11606 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 11607 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 11608 public static pb::MessageParser<NestedMessage> Parser { get { return _parser; } } 11609 11610 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 11611 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 11612 public static pbr::MessageDescriptor Descriptor { 11613 get { return global::ProtobufTestMessages.Proto2.TestAllRequiredTypesProto2.Descriptor.NestedTypes[0]; } 11614 } 11615 11616 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 11617 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 11618 pbr::MessageDescriptor pb::IMessage.Descriptor { 11619 get { return Descriptor; } 11620 } 11621 11622 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 11623 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] NestedMessage()11624 public NestedMessage() { 11625 OnConstruction(); 11626 } 11627 OnConstruction()11628 partial void OnConstruction(); 11629 11630 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 11631 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] NestedMessage(NestedMessage other)11632 public NestedMessage(NestedMessage other) : this() { 11633 _hasBits0 = other._hasBits0; 11634 a_ = other.a_; 11635 corecursive_ = other.corecursive_ != null ? other.corecursive_.Clone() : null; 11636 optionalCorecursive_ = other.optionalCorecursive_ != null ? other.optionalCorecursive_.Clone() : null; 11637 _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); 11638 } 11639 11640 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 11641 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] Clone()11642 public NestedMessage Clone() { 11643 return new NestedMessage(this); 11644 } 11645 11646 /// <summary>Field number for the "a" field.</summary> 11647 public const int AFieldNumber = 1; 11648 private readonly static int ADefaultValue = 0; 11649 11650 private int a_; 11651 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 11652 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 11653 public int A { 11654 get { if ((_hasBits0 & 1) != 0) { return a_; } else { return ADefaultValue; } } 11655 set { 11656 _hasBits0 |= 1; 11657 a_ = value; 11658 } 11659 } 11660 /// <summary>Gets whether the "a" field is set</summary> 11661 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 11662 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 11663 public bool HasA { 11664 get { return (_hasBits0 & 1) != 0; } 11665 } 11666 /// <summary>Clears the value of the "a" field</summary> 11667 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 11668 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] ClearA()11669 public void ClearA() { 11670 _hasBits0 &= ~1; 11671 } 11672 11673 /// <summary>Field number for the "corecursive" field.</summary> 11674 public const int CorecursiveFieldNumber = 2; 11675 private global::ProtobufTestMessages.Proto2.TestAllRequiredTypesProto2 corecursive_; 11676 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 11677 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 11678 public global::ProtobufTestMessages.Proto2.TestAllRequiredTypesProto2 Corecursive { 11679 get { return corecursive_; } 11680 set { 11681 corecursive_ = value; 11682 } 11683 } 11684 11685 /// <summary>Field number for the "optional_corecursive" field.</summary> 11686 public const int OptionalCorecursiveFieldNumber = 3; 11687 private global::ProtobufTestMessages.Proto2.TestAllRequiredTypesProto2 optionalCorecursive_; 11688 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 11689 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 11690 public global::ProtobufTestMessages.Proto2.TestAllRequiredTypesProto2 OptionalCorecursive { 11691 get { return optionalCorecursive_; } 11692 set { 11693 optionalCorecursive_ = value; 11694 } 11695 } 11696 11697 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 11698 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] Equals(object other)11699 public override bool Equals(object other) { 11700 return Equals(other as NestedMessage); 11701 } 11702 11703 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 11704 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] Equals(NestedMessage other)11705 public bool Equals(NestedMessage other) { 11706 if (ReferenceEquals(other, null)) { 11707 return false; 11708 } 11709 if (ReferenceEquals(other, this)) { 11710 return true; 11711 } 11712 if (A != other.A) return false; 11713 if (!object.Equals(Corecursive, other.Corecursive)) return false; 11714 if (!object.Equals(OptionalCorecursive, other.OptionalCorecursive)) return false; 11715 return Equals(_unknownFields, other._unknownFields); 11716 } 11717 11718 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 11719 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] GetHashCode()11720 public override int GetHashCode() { 11721 int hash = 1; 11722 if (HasA) hash ^= A.GetHashCode(); 11723 if (corecursive_ != null) hash ^= Corecursive.GetHashCode(); 11724 if (optionalCorecursive_ != null) hash ^= OptionalCorecursive.GetHashCode(); 11725 if (_unknownFields != null) { 11726 hash ^= _unknownFields.GetHashCode(); 11727 } 11728 return hash; 11729 } 11730 11731 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 11732 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] ToString()11733 public override string ToString() { 11734 return pb::JsonFormatter.ToDiagnosticString(this); 11735 } 11736 11737 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 11738 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] WriteTo(pb::CodedOutputStream output)11739 public void WriteTo(pb::CodedOutputStream output) { 11740 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 11741 output.WriteRawMessage(this); 11742 #else 11743 if (HasA) { 11744 output.WriteRawTag(8); 11745 output.WriteInt32(A); 11746 } 11747 if (corecursive_ != null) { 11748 output.WriteRawTag(18); 11749 output.WriteMessage(Corecursive); 11750 } 11751 if (optionalCorecursive_ != null) { 11752 output.WriteRawTag(26); 11753 output.WriteMessage(OptionalCorecursive); 11754 } 11755 if (_unknownFields != null) { 11756 _unknownFields.WriteTo(output); 11757 } 11758 #endif 11759 } 11760 11761 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 11762 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 11763 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] IBufferMessage.InternalWriteTo(ref pb::WriteContext output)11764 void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { 11765 if (HasA) { 11766 output.WriteRawTag(8); 11767 output.WriteInt32(A); 11768 } 11769 if (corecursive_ != null) { 11770 output.WriteRawTag(18); 11771 output.WriteMessage(Corecursive); 11772 } 11773 if (optionalCorecursive_ != null) { 11774 output.WriteRawTag(26); 11775 output.WriteMessage(OptionalCorecursive); 11776 } 11777 if (_unknownFields != null) { 11778 _unknownFields.WriteTo(ref output); 11779 } 11780 } 11781 #endif 11782 11783 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 11784 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] CalculateSize()11785 public int CalculateSize() { 11786 int size = 0; 11787 if (HasA) { 11788 size += 1 + pb::CodedOutputStream.ComputeInt32Size(A); 11789 } 11790 if (corecursive_ != null) { 11791 size += 1 + pb::CodedOutputStream.ComputeMessageSize(Corecursive); 11792 } 11793 if (optionalCorecursive_ != null) { 11794 size += 1 + pb::CodedOutputStream.ComputeMessageSize(OptionalCorecursive); 11795 } 11796 if (_unknownFields != null) { 11797 size += _unknownFields.CalculateSize(); 11798 } 11799 return size; 11800 } 11801 11802 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 11803 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] MergeFrom(NestedMessage other)11804 public void MergeFrom(NestedMessage other) { 11805 if (other == null) { 11806 return; 11807 } 11808 if (other.HasA) { 11809 A = other.A; 11810 } 11811 if (other.corecursive_ != null) { 11812 if (corecursive_ == null) { 11813 Corecursive = new global::ProtobufTestMessages.Proto2.TestAllRequiredTypesProto2(); 11814 } 11815 Corecursive.MergeFrom(other.Corecursive); 11816 } 11817 if (other.optionalCorecursive_ != null) { 11818 if (optionalCorecursive_ == null) { 11819 OptionalCorecursive = new global::ProtobufTestMessages.Proto2.TestAllRequiredTypesProto2(); 11820 } 11821 OptionalCorecursive.MergeFrom(other.OptionalCorecursive); 11822 } 11823 _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); 11824 } 11825 11826 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 11827 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] MergeFrom(pb::CodedInputStream input)11828 public void MergeFrom(pb::CodedInputStream input) { 11829 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 11830 input.ReadRawMessage(this); 11831 #else 11832 uint tag; 11833 while ((tag = input.ReadTag()) != 0) { 11834 if ((tag & 7) == 4) { 11835 // Abort on any end group tag. 11836 return; 11837 } 11838 switch(tag) { 11839 default: 11840 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); 11841 break; 11842 case 8: { 11843 A = input.ReadInt32(); 11844 break; 11845 } 11846 case 18: { 11847 if (corecursive_ == null) { 11848 Corecursive = new global::ProtobufTestMessages.Proto2.TestAllRequiredTypesProto2(); 11849 } 11850 input.ReadMessage(Corecursive); 11851 break; 11852 } 11853 case 26: { 11854 if (optionalCorecursive_ == null) { 11855 OptionalCorecursive = new global::ProtobufTestMessages.Proto2.TestAllRequiredTypesProto2(); 11856 } 11857 input.ReadMessage(OptionalCorecursive); 11858 break; 11859 } 11860 } 11861 } 11862 #endif 11863 } 11864 11865 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 11866 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 11867 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] IBufferMessage.InternalMergeFrom(ref pb::ParseContext input)11868 void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { 11869 uint tag; 11870 while ((tag = input.ReadTag()) != 0) { 11871 if ((tag & 7) == 4) { 11872 // Abort on any end group tag. 11873 return; 11874 } 11875 switch(tag) { 11876 default: 11877 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); 11878 break; 11879 case 8: { 11880 A = input.ReadInt32(); 11881 break; 11882 } 11883 case 18: { 11884 if (corecursive_ == null) { 11885 Corecursive = new global::ProtobufTestMessages.Proto2.TestAllRequiredTypesProto2(); 11886 } 11887 input.ReadMessage(Corecursive); 11888 break; 11889 } 11890 case 26: { 11891 if (optionalCorecursive_ == null) { 11892 OptionalCorecursive = new global::ProtobufTestMessages.Proto2.TestAllRequiredTypesProto2(); 11893 } 11894 input.ReadMessage(OptionalCorecursive); 11895 break; 11896 } 11897 } 11898 } 11899 } 11900 #endif 11901 11902 } 11903 11904 /// <summary> 11905 /// groups 11906 /// </summary> 11907 [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] 11908 public sealed partial class Data : pb::IMessage<Data> 11909 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 11910 , pb::IBufferMessage 11911 #endif 11912 { 11913 private static readonly pb::MessageParser<Data> _parser = new pb::MessageParser<Data>(() => new Data()); 11914 private pb::UnknownFieldSet _unknownFields; 11915 private int _hasBits0; 11916 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 11917 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 11918 public static pb::MessageParser<Data> Parser { get { return _parser; } } 11919 11920 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 11921 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 11922 public static pbr::MessageDescriptor Descriptor { 11923 get { return global::ProtobufTestMessages.Proto2.TestAllRequiredTypesProto2.Descriptor.NestedTypes[1]; } 11924 } 11925 11926 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 11927 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 11928 pbr::MessageDescriptor pb::IMessage.Descriptor { 11929 get { return Descriptor; } 11930 } 11931 11932 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 11933 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] Data()11934 public Data() { 11935 OnConstruction(); 11936 } 11937 OnConstruction()11938 partial void OnConstruction(); 11939 11940 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 11941 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] Data(Data other)11942 public Data(Data other) : this() { 11943 _hasBits0 = other._hasBits0; 11944 groupInt32_ = other.groupInt32_; 11945 groupUint32_ = other.groupUint32_; 11946 _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); 11947 } 11948 11949 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 11950 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] Clone()11951 public Data Clone() { 11952 return new Data(this); 11953 } 11954 11955 /// <summary>Field number for the "group_int32" field.</summary> 11956 public const int GroupInt32FieldNumber = 202; 11957 private readonly static int GroupInt32DefaultValue = 0; 11958 11959 private int groupInt32_; 11960 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 11961 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 11962 public int GroupInt32 { 11963 get { if ((_hasBits0 & 1) != 0) { return groupInt32_; } else { return GroupInt32DefaultValue; } } 11964 set { 11965 _hasBits0 |= 1; 11966 groupInt32_ = value; 11967 } 11968 } 11969 /// <summary>Gets whether the "group_int32" field is set</summary> 11970 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 11971 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 11972 public bool HasGroupInt32 { 11973 get { return (_hasBits0 & 1) != 0; } 11974 } 11975 /// <summary>Clears the value of the "group_int32" field</summary> 11976 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 11977 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] ClearGroupInt32()11978 public void ClearGroupInt32() { 11979 _hasBits0 &= ~1; 11980 } 11981 11982 /// <summary>Field number for the "group_uint32" field.</summary> 11983 public const int GroupUint32FieldNumber = 203; 11984 private readonly static uint GroupUint32DefaultValue = 0; 11985 11986 private uint groupUint32_; 11987 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 11988 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 11989 public uint GroupUint32 { 11990 get { if ((_hasBits0 & 2) != 0) { return groupUint32_; } else { return GroupUint32DefaultValue; } } 11991 set { 11992 _hasBits0 |= 2; 11993 groupUint32_ = value; 11994 } 11995 } 11996 /// <summary>Gets whether the "group_uint32" field is set</summary> 11997 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 11998 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 11999 public bool HasGroupUint32 { 12000 get { return (_hasBits0 & 2) != 0; } 12001 } 12002 /// <summary>Clears the value of the "group_uint32" field</summary> 12003 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 12004 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] ClearGroupUint32()12005 public void ClearGroupUint32() { 12006 _hasBits0 &= ~2; 12007 } 12008 12009 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 12010 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] Equals(object other)12011 public override bool Equals(object other) { 12012 return Equals(other as Data); 12013 } 12014 12015 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 12016 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] Equals(Data other)12017 public bool Equals(Data other) { 12018 if (ReferenceEquals(other, null)) { 12019 return false; 12020 } 12021 if (ReferenceEquals(other, this)) { 12022 return true; 12023 } 12024 if (GroupInt32 != other.GroupInt32) return false; 12025 if (GroupUint32 != other.GroupUint32) return false; 12026 return Equals(_unknownFields, other._unknownFields); 12027 } 12028 12029 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 12030 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] GetHashCode()12031 public override int GetHashCode() { 12032 int hash = 1; 12033 if (HasGroupInt32) hash ^= GroupInt32.GetHashCode(); 12034 if (HasGroupUint32) hash ^= GroupUint32.GetHashCode(); 12035 if (_unknownFields != null) { 12036 hash ^= _unknownFields.GetHashCode(); 12037 } 12038 return hash; 12039 } 12040 12041 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 12042 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] ToString()12043 public override string ToString() { 12044 return pb::JsonFormatter.ToDiagnosticString(this); 12045 } 12046 12047 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 12048 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] WriteTo(pb::CodedOutputStream output)12049 public void WriteTo(pb::CodedOutputStream output) { 12050 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 12051 output.WriteRawMessage(this); 12052 #else 12053 if (HasGroupInt32) { 12054 output.WriteRawTag(208, 12); 12055 output.WriteInt32(GroupInt32); 12056 } 12057 if (HasGroupUint32) { 12058 output.WriteRawTag(216, 12); 12059 output.WriteUInt32(GroupUint32); 12060 } 12061 if (_unknownFields != null) { 12062 _unknownFields.WriteTo(output); 12063 } 12064 #endif 12065 } 12066 12067 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 12068 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 12069 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] IBufferMessage.InternalWriteTo(ref pb::WriteContext output)12070 void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { 12071 if (HasGroupInt32) { 12072 output.WriteRawTag(208, 12); 12073 output.WriteInt32(GroupInt32); 12074 } 12075 if (HasGroupUint32) { 12076 output.WriteRawTag(216, 12); 12077 output.WriteUInt32(GroupUint32); 12078 } 12079 if (_unknownFields != null) { 12080 _unknownFields.WriteTo(ref output); 12081 } 12082 } 12083 #endif 12084 12085 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 12086 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] CalculateSize()12087 public int CalculateSize() { 12088 int size = 0; 12089 if (HasGroupInt32) { 12090 size += 2 + pb::CodedOutputStream.ComputeInt32Size(GroupInt32); 12091 } 12092 if (HasGroupUint32) { 12093 size += 2 + pb::CodedOutputStream.ComputeUInt32Size(GroupUint32); 12094 } 12095 if (_unknownFields != null) { 12096 size += _unknownFields.CalculateSize(); 12097 } 12098 return size; 12099 } 12100 12101 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 12102 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] MergeFrom(Data other)12103 public void MergeFrom(Data other) { 12104 if (other == null) { 12105 return; 12106 } 12107 if (other.HasGroupInt32) { 12108 GroupInt32 = other.GroupInt32; 12109 } 12110 if (other.HasGroupUint32) { 12111 GroupUint32 = other.GroupUint32; 12112 } 12113 _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); 12114 } 12115 12116 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 12117 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] MergeFrom(pb::CodedInputStream input)12118 public void MergeFrom(pb::CodedInputStream input) { 12119 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 12120 input.ReadRawMessage(this); 12121 #else 12122 uint tag; 12123 while ((tag = input.ReadTag()) != 0) { 12124 if ((tag & 7) == 4) { 12125 // Abort on any end group tag. 12126 return; 12127 } 12128 switch(tag) { 12129 default: 12130 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); 12131 break; 12132 case 1616: { 12133 GroupInt32 = input.ReadInt32(); 12134 break; 12135 } 12136 case 1624: { 12137 GroupUint32 = input.ReadUInt32(); 12138 break; 12139 } 12140 } 12141 } 12142 #endif 12143 } 12144 12145 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 12146 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 12147 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] IBufferMessage.InternalMergeFrom(ref pb::ParseContext input)12148 void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { 12149 uint tag; 12150 while ((tag = input.ReadTag()) != 0) { 12151 if ((tag & 7) == 4) { 12152 // Abort on any end group tag. 12153 return; 12154 } 12155 switch(tag) { 12156 default: 12157 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); 12158 break; 12159 case 1616: { 12160 GroupInt32 = input.ReadInt32(); 12161 break; 12162 } 12163 case 1624: { 12164 GroupUint32 = input.ReadUInt32(); 12165 break; 12166 } 12167 } 12168 } 12169 } 12170 #endif 12171 12172 } 12173 12174 /// <summary> 12175 /// message_set test case. 12176 /// </summary> 12177 [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] 12178 public sealed partial class MessageSetCorrect : pb::IExtendableMessage<MessageSetCorrect> 12179 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 12180 , pb::IBufferMessage 12181 #endif 12182 { 12183 private static readonly pb::MessageParser<MessageSetCorrect> _parser = new pb::MessageParser<MessageSetCorrect>(() => new MessageSetCorrect()); 12184 private pb::UnknownFieldSet _unknownFields; 12185 private pb::ExtensionSet<MessageSetCorrect> _extensions; 12186 private pb::ExtensionSet<MessageSetCorrect> _Extensions { get { return _extensions; } } 12187 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 12188 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 12189 public static pb::MessageParser<MessageSetCorrect> Parser { get { return _parser; } } 12190 12191 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 12192 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 12193 public static pbr::MessageDescriptor Descriptor { 12194 get { return global::ProtobufTestMessages.Proto2.TestAllRequiredTypesProto2.Descriptor.NestedTypes[2]; } 12195 } 12196 12197 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 12198 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 12199 pbr::MessageDescriptor pb::IMessage.Descriptor { 12200 get { return Descriptor; } 12201 } 12202 12203 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 12204 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] MessageSetCorrect()12205 public MessageSetCorrect() { 12206 OnConstruction(); 12207 } 12208 OnConstruction()12209 partial void OnConstruction(); 12210 12211 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 12212 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] MessageSetCorrect(MessageSetCorrect other)12213 public MessageSetCorrect(MessageSetCorrect other) : this() { 12214 _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); 12215 _extensions = pb::ExtensionSet.Clone(other._extensions); 12216 } 12217 12218 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 12219 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] Clone()12220 public MessageSetCorrect Clone() { 12221 return new MessageSetCorrect(this); 12222 } 12223 12224 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 12225 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] Equals(object other)12226 public override bool Equals(object other) { 12227 return Equals(other as MessageSetCorrect); 12228 } 12229 12230 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 12231 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] Equals(MessageSetCorrect other)12232 public bool Equals(MessageSetCorrect other) { 12233 if (ReferenceEquals(other, null)) { 12234 return false; 12235 } 12236 if (ReferenceEquals(other, this)) { 12237 return true; 12238 } 12239 if (!Equals(_extensions, other._extensions)) { 12240 return false; 12241 } 12242 return Equals(_unknownFields, other._unknownFields); 12243 } 12244 12245 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 12246 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] GetHashCode()12247 public override int GetHashCode() { 12248 int hash = 1; 12249 if (_extensions != null) { 12250 hash ^= _extensions.GetHashCode(); 12251 } 12252 if (_unknownFields != null) { 12253 hash ^= _unknownFields.GetHashCode(); 12254 } 12255 return hash; 12256 } 12257 12258 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 12259 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] ToString()12260 public override string ToString() { 12261 return pb::JsonFormatter.ToDiagnosticString(this); 12262 } 12263 12264 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 12265 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] WriteTo(pb::CodedOutputStream output)12266 public void WriteTo(pb::CodedOutputStream output) { 12267 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 12268 output.WriteRawMessage(this); 12269 #else 12270 if (_extensions != null) { 12271 _extensions.WriteTo(output); 12272 } 12273 if (_unknownFields != null) { 12274 _unknownFields.WriteTo(output); 12275 } 12276 #endif 12277 } 12278 12279 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 12280 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 12281 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] IBufferMessage.InternalWriteTo(ref pb::WriteContext output)12282 void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { 12283 if (_extensions != null) { 12284 _extensions.WriteTo(ref output); 12285 } 12286 if (_unknownFields != null) { 12287 _unknownFields.WriteTo(ref output); 12288 } 12289 } 12290 #endif 12291 12292 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 12293 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] CalculateSize()12294 public int CalculateSize() { 12295 int size = 0; 12296 if (_extensions != null) { 12297 size += _extensions.CalculateSize(); 12298 } 12299 if (_unknownFields != null) { 12300 size += _unknownFields.CalculateSize(); 12301 } 12302 return size; 12303 } 12304 12305 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 12306 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] MergeFrom(MessageSetCorrect other)12307 public void MergeFrom(MessageSetCorrect other) { 12308 if (other == null) { 12309 return; 12310 } 12311 pb::ExtensionSet.MergeFrom(ref _extensions, other._extensions); 12312 _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); 12313 } 12314 12315 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 12316 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] MergeFrom(pb::CodedInputStream input)12317 public void MergeFrom(pb::CodedInputStream input) { 12318 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 12319 input.ReadRawMessage(this); 12320 #else 12321 uint tag; 12322 while ((tag = input.ReadTag()) != 0) { 12323 if ((tag & 7) == 4) { 12324 // Abort on any end group tag. 12325 return; 12326 } 12327 switch(tag) { 12328 default: 12329 if (!pb::ExtensionSet.TryMergeFieldFrom(ref _extensions, input)) { 12330 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); 12331 } 12332 break; 12333 } 12334 } 12335 #endif 12336 } 12337 12338 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 12339 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 12340 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] IBufferMessage.InternalMergeFrom(ref pb::ParseContext input)12341 void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { 12342 uint tag; 12343 while ((tag = input.ReadTag()) != 0) { 12344 if ((tag & 7) == 4) { 12345 // Abort on any end group tag. 12346 return; 12347 } 12348 switch(tag) { 12349 default: 12350 if (!pb::ExtensionSet.TryMergeFieldFrom(ref _extensions, ref input)) { 12351 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); 12352 } 12353 break; 12354 } 12355 } 12356 } 12357 #endif 12358 GetExtension(pb::Extension<MessageSetCorrect, TValue> extension)12359 public TValue GetExtension<TValue>(pb::Extension<MessageSetCorrect, TValue> extension) { 12360 return pb::ExtensionSet.Get(ref _extensions, extension); 12361 } GetExtension(pb::RepeatedExtension<MessageSetCorrect, TValue> extension)12362 public pbc::RepeatedField<TValue> GetExtension<TValue>(pb::RepeatedExtension<MessageSetCorrect, TValue> extension) { 12363 return pb::ExtensionSet.Get(ref _extensions, extension); 12364 } GetOrInitializeExtension(pb::RepeatedExtension<MessageSetCorrect, TValue> extension)12365 public pbc::RepeatedField<TValue> GetOrInitializeExtension<TValue>(pb::RepeatedExtension<MessageSetCorrect, TValue> extension) { 12366 return pb::ExtensionSet.GetOrInitialize(ref _extensions, extension); 12367 } SetExtension(pb::Extension<MessageSetCorrect, TValue> extension, TValue value)12368 public void SetExtension<TValue>(pb::Extension<MessageSetCorrect, TValue> extension, TValue value) { 12369 pb::ExtensionSet.Set(ref _extensions, extension, value); 12370 } HasExtension(pb::Extension<MessageSetCorrect, TValue> extension)12371 public bool HasExtension<TValue>(pb::Extension<MessageSetCorrect, TValue> extension) { 12372 return pb::ExtensionSet.Has(ref _extensions, extension); 12373 } ClearExtension(pb::Extension<MessageSetCorrect, TValue> extension)12374 public void ClearExtension<TValue>(pb::Extension<MessageSetCorrect, TValue> extension) { 12375 pb::ExtensionSet.Clear(ref _extensions, extension); 12376 } ClearExtension(pb::RepeatedExtension<MessageSetCorrect, TValue> extension)12377 public void ClearExtension<TValue>(pb::RepeatedExtension<MessageSetCorrect, TValue> extension) { 12378 pb::ExtensionSet.Clear(ref _extensions, extension); 12379 } 12380 12381 } 12382 12383 [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] 12384 public sealed partial class MessageSetCorrectExtension1 : pb::IMessage<MessageSetCorrectExtension1> 12385 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 12386 , pb::IBufferMessage 12387 #endif 12388 { 12389 private static readonly pb::MessageParser<MessageSetCorrectExtension1> _parser = new pb::MessageParser<MessageSetCorrectExtension1>(() => new MessageSetCorrectExtension1()); 12390 private pb::UnknownFieldSet _unknownFields; 12391 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 12392 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 12393 public static pb::MessageParser<MessageSetCorrectExtension1> Parser { get { return _parser; } } 12394 12395 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 12396 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 12397 public static pbr::MessageDescriptor Descriptor { 12398 get { return global::ProtobufTestMessages.Proto2.TestAllRequiredTypesProto2.Descriptor.NestedTypes[3]; } 12399 } 12400 12401 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 12402 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 12403 pbr::MessageDescriptor pb::IMessage.Descriptor { 12404 get { return Descriptor; } 12405 } 12406 12407 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 12408 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] MessageSetCorrectExtension1()12409 public MessageSetCorrectExtension1() { 12410 OnConstruction(); 12411 } 12412 OnConstruction()12413 partial void OnConstruction(); 12414 12415 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 12416 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] MessageSetCorrectExtension1(MessageSetCorrectExtension1 other)12417 public MessageSetCorrectExtension1(MessageSetCorrectExtension1 other) : this() { 12418 str_ = other.str_; 12419 _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); 12420 } 12421 12422 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 12423 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] Clone()12424 public MessageSetCorrectExtension1 Clone() { 12425 return new MessageSetCorrectExtension1(this); 12426 } 12427 12428 /// <summary>Field number for the "str" field.</summary> 12429 public const int StrFieldNumber = 25; 12430 private readonly static string StrDefaultValue = ""; 12431 12432 private string str_; 12433 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 12434 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 12435 public string Str { 12436 get { return str_ ?? StrDefaultValue; } 12437 set { 12438 str_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); 12439 } 12440 } 12441 /// <summary>Gets whether the "str" field is set</summary> 12442 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 12443 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 12444 public bool HasStr { 12445 get { return str_ != null; } 12446 } 12447 /// <summary>Clears the value of the "str" field</summary> 12448 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 12449 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] ClearStr()12450 public void ClearStr() { 12451 str_ = null; 12452 } 12453 12454 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 12455 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] Equals(object other)12456 public override bool Equals(object other) { 12457 return Equals(other as MessageSetCorrectExtension1); 12458 } 12459 12460 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 12461 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] Equals(MessageSetCorrectExtension1 other)12462 public bool Equals(MessageSetCorrectExtension1 other) { 12463 if (ReferenceEquals(other, null)) { 12464 return false; 12465 } 12466 if (ReferenceEquals(other, this)) { 12467 return true; 12468 } 12469 if (Str != other.Str) return false; 12470 return Equals(_unknownFields, other._unknownFields); 12471 } 12472 12473 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 12474 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] GetHashCode()12475 public override int GetHashCode() { 12476 int hash = 1; 12477 if (HasStr) hash ^= Str.GetHashCode(); 12478 if (_unknownFields != null) { 12479 hash ^= _unknownFields.GetHashCode(); 12480 } 12481 return hash; 12482 } 12483 12484 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 12485 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] ToString()12486 public override string ToString() { 12487 return pb::JsonFormatter.ToDiagnosticString(this); 12488 } 12489 12490 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 12491 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] WriteTo(pb::CodedOutputStream output)12492 public void WriteTo(pb::CodedOutputStream output) { 12493 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 12494 output.WriteRawMessage(this); 12495 #else 12496 if (HasStr) { 12497 output.WriteRawTag(202, 1); 12498 output.WriteString(Str); 12499 } 12500 if (_unknownFields != null) { 12501 _unknownFields.WriteTo(output); 12502 } 12503 #endif 12504 } 12505 12506 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 12507 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 12508 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] IBufferMessage.InternalWriteTo(ref pb::WriteContext output)12509 void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { 12510 if (HasStr) { 12511 output.WriteRawTag(202, 1); 12512 output.WriteString(Str); 12513 } 12514 if (_unknownFields != null) { 12515 _unknownFields.WriteTo(ref output); 12516 } 12517 } 12518 #endif 12519 12520 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 12521 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] CalculateSize()12522 public int CalculateSize() { 12523 int size = 0; 12524 if (HasStr) { 12525 size += 2 + pb::CodedOutputStream.ComputeStringSize(Str); 12526 } 12527 if (_unknownFields != null) { 12528 size += _unknownFields.CalculateSize(); 12529 } 12530 return size; 12531 } 12532 12533 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 12534 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] MergeFrom(MessageSetCorrectExtension1 other)12535 public void MergeFrom(MessageSetCorrectExtension1 other) { 12536 if (other == null) { 12537 return; 12538 } 12539 if (other.HasStr) { 12540 Str = other.Str; 12541 } 12542 _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); 12543 } 12544 12545 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 12546 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] MergeFrom(pb::CodedInputStream input)12547 public void MergeFrom(pb::CodedInputStream input) { 12548 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 12549 input.ReadRawMessage(this); 12550 #else 12551 uint tag; 12552 while ((tag = input.ReadTag()) != 0) { 12553 if ((tag & 7) == 4) { 12554 // Abort on any end group tag. 12555 return; 12556 } 12557 switch(tag) { 12558 default: 12559 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); 12560 break; 12561 case 202: { 12562 Str = input.ReadString(); 12563 break; 12564 } 12565 } 12566 } 12567 #endif 12568 } 12569 12570 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 12571 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 12572 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] IBufferMessage.InternalMergeFrom(ref pb::ParseContext input)12573 void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { 12574 uint tag; 12575 while ((tag = input.ReadTag()) != 0) { 12576 if ((tag & 7) == 4) { 12577 // Abort on any end group tag. 12578 return; 12579 } 12580 switch(tag) { 12581 default: 12582 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); 12583 break; 12584 case 202: { 12585 Str = input.ReadString(); 12586 break; 12587 } 12588 } 12589 } 12590 } 12591 #endif 12592 12593 #region Extensions 12594 /// <summary>Container for extensions for other messages declared in the MessageSetCorrectExtension1 message type.</summary> 12595 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 12596 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 12597 public static partial class Extensions { 12598 public static readonly pb::Extension<global::ProtobufTestMessages.Proto2.TestAllRequiredTypesProto2.Types.MessageSetCorrect, global::ProtobufTestMessages.Proto2.TestAllRequiredTypesProto2.Types.MessageSetCorrectExtension1> MessageSetExtension = 12599 new pb::Extension<global::ProtobufTestMessages.Proto2.TestAllRequiredTypesProto2.Types.MessageSetCorrect, global::ProtobufTestMessages.Proto2.TestAllRequiredTypesProto2.Types.MessageSetCorrectExtension1>(1547769, pb::FieldCodec.ForMessage(12382154, global::ProtobufTestMessages.Proto2.TestAllRequiredTypesProto2.Types.MessageSetCorrectExtension1.Parser)); 12600 } 12601 #endregion 12602 12603 } 12604 12605 [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] 12606 public sealed partial class MessageSetCorrectExtension2 : pb::IMessage<MessageSetCorrectExtension2> 12607 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 12608 , pb::IBufferMessage 12609 #endif 12610 { 12611 private static readonly pb::MessageParser<MessageSetCorrectExtension2> _parser = new pb::MessageParser<MessageSetCorrectExtension2>(() => new MessageSetCorrectExtension2()); 12612 private pb::UnknownFieldSet _unknownFields; 12613 private int _hasBits0; 12614 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 12615 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 12616 public static pb::MessageParser<MessageSetCorrectExtension2> Parser { get { return _parser; } } 12617 12618 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 12619 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 12620 public static pbr::MessageDescriptor Descriptor { 12621 get { return global::ProtobufTestMessages.Proto2.TestAllRequiredTypesProto2.Descriptor.NestedTypes[4]; } 12622 } 12623 12624 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 12625 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 12626 pbr::MessageDescriptor pb::IMessage.Descriptor { 12627 get { return Descriptor; } 12628 } 12629 12630 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 12631 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] MessageSetCorrectExtension2()12632 public MessageSetCorrectExtension2() { 12633 OnConstruction(); 12634 } 12635 OnConstruction()12636 partial void OnConstruction(); 12637 12638 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 12639 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] MessageSetCorrectExtension2(MessageSetCorrectExtension2 other)12640 public MessageSetCorrectExtension2(MessageSetCorrectExtension2 other) : this() { 12641 _hasBits0 = other._hasBits0; 12642 i_ = other.i_; 12643 _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); 12644 } 12645 12646 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 12647 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] Clone()12648 public MessageSetCorrectExtension2 Clone() { 12649 return new MessageSetCorrectExtension2(this); 12650 } 12651 12652 /// <summary>Field number for the "i" field.</summary> 12653 public const int IFieldNumber = 9; 12654 private readonly static int IDefaultValue = 0; 12655 12656 private int i_; 12657 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 12658 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 12659 public int I { 12660 get { if ((_hasBits0 & 1) != 0) { return i_; } else { return IDefaultValue; } } 12661 set { 12662 _hasBits0 |= 1; 12663 i_ = value; 12664 } 12665 } 12666 /// <summary>Gets whether the "i" field is set</summary> 12667 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 12668 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 12669 public bool HasI { 12670 get { return (_hasBits0 & 1) != 0; } 12671 } 12672 /// <summary>Clears the value of the "i" field</summary> 12673 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 12674 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] ClearI()12675 public void ClearI() { 12676 _hasBits0 &= ~1; 12677 } 12678 12679 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 12680 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] Equals(object other)12681 public override bool Equals(object other) { 12682 return Equals(other as MessageSetCorrectExtension2); 12683 } 12684 12685 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 12686 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] Equals(MessageSetCorrectExtension2 other)12687 public bool Equals(MessageSetCorrectExtension2 other) { 12688 if (ReferenceEquals(other, null)) { 12689 return false; 12690 } 12691 if (ReferenceEquals(other, this)) { 12692 return true; 12693 } 12694 if (I != other.I) return false; 12695 return Equals(_unknownFields, other._unknownFields); 12696 } 12697 12698 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 12699 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] GetHashCode()12700 public override int GetHashCode() { 12701 int hash = 1; 12702 if (HasI) hash ^= I.GetHashCode(); 12703 if (_unknownFields != null) { 12704 hash ^= _unknownFields.GetHashCode(); 12705 } 12706 return hash; 12707 } 12708 12709 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 12710 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] ToString()12711 public override string ToString() { 12712 return pb::JsonFormatter.ToDiagnosticString(this); 12713 } 12714 12715 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 12716 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] WriteTo(pb::CodedOutputStream output)12717 public void WriteTo(pb::CodedOutputStream output) { 12718 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 12719 output.WriteRawMessage(this); 12720 #else 12721 if (HasI) { 12722 output.WriteRawTag(72); 12723 output.WriteInt32(I); 12724 } 12725 if (_unknownFields != null) { 12726 _unknownFields.WriteTo(output); 12727 } 12728 #endif 12729 } 12730 12731 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 12732 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 12733 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] IBufferMessage.InternalWriteTo(ref pb::WriteContext output)12734 void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { 12735 if (HasI) { 12736 output.WriteRawTag(72); 12737 output.WriteInt32(I); 12738 } 12739 if (_unknownFields != null) { 12740 _unknownFields.WriteTo(ref output); 12741 } 12742 } 12743 #endif 12744 12745 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 12746 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] CalculateSize()12747 public int CalculateSize() { 12748 int size = 0; 12749 if (HasI) { 12750 size += 1 + pb::CodedOutputStream.ComputeInt32Size(I); 12751 } 12752 if (_unknownFields != null) { 12753 size += _unknownFields.CalculateSize(); 12754 } 12755 return size; 12756 } 12757 12758 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 12759 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] MergeFrom(MessageSetCorrectExtension2 other)12760 public void MergeFrom(MessageSetCorrectExtension2 other) { 12761 if (other == null) { 12762 return; 12763 } 12764 if (other.HasI) { 12765 I = other.I; 12766 } 12767 _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); 12768 } 12769 12770 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 12771 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] MergeFrom(pb::CodedInputStream input)12772 public void MergeFrom(pb::CodedInputStream input) { 12773 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 12774 input.ReadRawMessage(this); 12775 #else 12776 uint tag; 12777 while ((tag = input.ReadTag()) != 0) { 12778 if ((tag & 7) == 4) { 12779 // Abort on any end group tag. 12780 return; 12781 } 12782 switch(tag) { 12783 default: 12784 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); 12785 break; 12786 case 72: { 12787 I = input.ReadInt32(); 12788 break; 12789 } 12790 } 12791 } 12792 #endif 12793 } 12794 12795 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 12796 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 12797 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] IBufferMessage.InternalMergeFrom(ref pb::ParseContext input)12798 void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { 12799 uint tag; 12800 while ((tag = input.ReadTag()) != 0) { 12801 if ((tag & 7) == 4) { 12802 // Abort on any end group tag. 12803 return; 12804 } 12805 switch(tag) { 12806 default: 12807 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); 12808 break; 12809 case 72: { 12810 I = input.ReadInt32(); 12811 break; 12812 } 12813 } 12814 } 12815 } 12816 #endif 12817 12818 #region Extensions 12819 /// <summary>Container for extensions for other messages declared in the MessageSetCorrectExtension2 message type.</summary> 12820 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 12821 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 12822 public static partial class Extensions { 12823 public static readonly pb::Extension<global::ProtobufTestMessages.Proto2.TestAllRequiredTypesProto2.Types.MessageSetCorrect, global::ProtobufTestMessages.Proto2.TestAllRequiredTypesProto2.Types.MessageSetCorrectExtension2> MessageSetExtension = 12824 new pb::Extension<global::ProtobufTestMessages.Proto2.TestAllRequiredTypesProto2.Types.MessageSetCorrect, global::ProtobufTestMessages.Proto2.TestAllRequiredTypesProto2.Types.MessageSetCorrectExtension2>(4135312, pb::FieldCodec.ForMessage(33082498, global::ProtobufTestMessages.Proto2.TestAllRequiredTypesProto2.Types.MessageSetCorrectExtension2.Parser)); 12825 } 12826 #endregion 12827 12828 } 12829 12830 } 12831 #endregion 12832 12833 } 12834 12835 #endregion 12836 12837 } 12838 12839 #endregion Designer generated code 12840