summaryrefslogtreecommitdiff
path: root/csharp/src/Google.Protobuf.Test/TestProtos
diff options
context:
space:
mode:
Diffstat (limited to 'csharp/src/Google.Protobuf.Test/TestProtos')
-rw-r--r--csharp/src/Google.Protobuf.Test/TestProtos/ForeignMessagePartial.cs45
-rw-r--r--csharp/src/Google.Protobuf.Test/TestProtos/MapUnittestProto3.cs1599
-rw-r--r--csharp/src/Google.Protobuf.Test/TestProtos/UnittestImportProto3.cs174
-rw-r--r--csharp/src/Google.Protobuf.Test/TestProtos/UnittestImportPublicProto3.cs160
-rw-r--r--csharp/src/Google.Protobuf.Test/TestProtos/UnittestIssues.cs1736
-rw-r--r--csharp/src/Google.Protobuf.Test/TestProtos/UnittestProto3.cs6646
-rw-r--r--csharp/src/Google.Protobuf.Test/TestProtos/UnittestWellKnownTypes.cs2539
7 files changed, 0 insertions, 12899 deletions
diff --git a/csharp/src/Google.Protobuf.Test/TestProtos/ForeignMessagePartial.cs b/csharp/src/Google.Protobuf.Test/TestProtos/ForeignMessagePartial.cs
deleted file mode 100644
index 5663a699..00000000
--- a/csharp/src/Google.Protobuf.Test/TestProtos/ForeignMessagePartial.cs
+++ /dev/null
@@ -1,45 +0,0 @@
-#region Copyright notice and license
-// Protocol Buffers - Google's data interchange format
-// Copyright 2016 Google Inc. All rights reserved.
-// https://developers.google.com/protocol-buffers/
-//
-// Redistribution and use in source and binary forms, with or without
-// modification, are permitted provided that the following conditions are
-// met:
-//
-// * Redistributions of source code must retain the above copyright
-// notice, this list of conditions and the following disclaimer.
-// * Redistributions in binary form must reproduce the above
-// copyright notice, this list of conditions and the following disclaimer
-// in the documentation and/or other materials provided with the
-// distribution.
-// * Neither the name of Google Inc. nor the names of its
-// contributors may be used to endorse or promote products derived from
-// this software without specific prior written permission.
-//
-// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-// OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-#endregion
-
-namespace Google.Protobuf.TestProtos
-{
- /// <summary>
- /// A message with custom diagnostics (to test that they work).
- /// </summary>
- public partial class ForeignMessage : ICustomDiagnosticMessage
- {
- public string ToDiagnosticString()
- {
- return $"{{ \"c\": {C}, \"@cInHex\": \"{C:x}\" }}";
- }
- }
-}
diff --git a/csharp/src/Google.Protobuf.Test/TestProtos/MapUnittestProto3.cs b/csharp/src/Google.Protobuf.Test/TestProtos/MapUnittestProto3.cs
deleted file mode 100644
index 0a299fd7..00000000
--- a/csharp/src/Google.Protobuf.Test/TestProtos/MapUnittestProto3.cs
+++ /dev/null
@@ -1,1599 +0,0 @@
-// Generated by the protocol buffer compiler. DO NOT EDIT!
-// source: google/protobuf/map_unittest_proto3.proto
-#pragma warning disable 1591, 0612, 3021
-#region Designer generated code
-
-using pb = global::Google.Protobuf;
-using pbc = global::Google.Protobuf.Collections;
-using pbr = global::Google.Protobuf.Reflection;
-using scg = global::System.Collections.Generic;
-namespace Google.Protobuf.TestProtos {
-
- /// <summary>Holder for reflection information generated from google/protobuf/map_unittest_proto3.proto</summary>
- public static partial class MapUnittestProto3Reflection {
-
- #region Descriptor
- /// <summary>File descriptor for google/protobuf/map_unittest_proto3.proto</summary>
- public static pbr::FileDescriptor Descriptor {
- get { return descriptor; }
- }
- private static pbr::FileDescriptor descriptor;
-
- static MapUnittestProto3Reflection() {
- byte[] descriptorData = global::System.Convert.FromBase64String(
- string.Concat(
- "Cilnb29nbGUvcHJvdG9idWYvbWFwX3VuaXR0ZXN0X3Byb3RvMy5wcm90bxIR",
- "cHJvdG9idWZfdW5pdHRlc3QaJWdvb2dsZS9wcm90b2J1Zi91bml0dGVzdF9w",
- "cm90bzMucHJvdG8ilhIKB1Rlc3RNYXASRgoPbWFwX2ludDMyX2ludDMyGAEg",
- "AygLMi0ucHJvdG9idWZfdW5pdHRlc3QuVGVzdE1hcC5NYXBJbnQzMkludDMy",
- "RW50cnkSRgoPbWFwX2ludDY0X2ludDY0GAIgAygLMi0ucHJvdG9idWZfdW5p",
- "dHRlc3QuVGVzdE1hcC5NYXBJbnQ2NEludDY0RW50cnkSSgoRbWFwX3VpbnQz",
- "Ml91aW50MzIYAyADKAsyLy5wcm90b2J1Zl91bml0dGVzdC5UZXN0TWFwLk1h",
- "cFVpbnQzMlVpbnQzMkVudHJ5EkoKEW1hcF91aW50NjRfdWludDY0GAQgAygL",
- "Mi8ucHJvdG9idWZfdW5pdHRlc3QuVGVzdE1hcC5NYXBVaW50NjRVaW50NjRF",
- "bnRyeRJKChFtYXBfc2ludDMyX3NpbnQzMhgFIAMoCzIvLnByb3RvYnVmX3Vu",
- "aXR0ZXN0LlRlc3RNYXAuTWFwU2ludDMyU2ludDMyRW50cnkSSgoRbWFwX3Np",
- "bnQ2NF9zaW50NjQYBiADKAsyLy5wcm90b2J1Zl91bml0dGVzdC5UZXN0TWFw",
- "Lk1hcFNpbnQ2NFNpbnQ2NEVudHJ5Ek4KE21hcF9maXhlZDMyX2ZpeGVkMzIY",
- "ByADKAsyMS5wcm90b2J1Zl91bml0dGVzdC5UZXN0TWFwLk1hcEZpeGVkMzJG",
- "aXhlZDMyRW50cnkSTgoTbWFwX2ZpeGVkNjRfZml4ZWQ2NBgIIAMoCzIxLnBy",
- "b3RvYnVmX3VuaXR0ZXN0LlRlc3RNYXAuTWFwRml4ZWQ2NEZpeGVkNjRFbnRy",
- "eRJSChVtYXBfc2ZpeGVkMzJfc2ZpeGVkMzIYCSADKAsyMy5wcm90b2J1Zl91",
- "bml0dGVzdC5UZXN0TWFwLk1hcFNmaXhlZDMyU2ZpeGVkMzJFbnRyeRJSChVt",
- "YXBfc2ZpeGVkNjRfc2ZpeGVkNjQYCiADKAsyMy5wcm90b2J1Zl91bml0dGVz",
- "dC5UZXN0TWFwLk1hcFNmaXhlZDY0U2ZpeGVkNjRFbnRyeRJGCg9tYXBfaW50",
- "MzJfZmxvYXQYCyADKAsyLS5wcm90b2J1Zl91bml0dGVzdC5UZXN0TWFwLk1h",
- "cEludDMyRmxvYXRFbnRyeRJIChBtYXBfaW50MzJfZG91YmxlGAwgAygLMi4u",
- "cHJvdG9idWZfdW5pdHRlc3QuVGVzdE1hcC5NYXBJbnQzMkRvdWJsZUVudHJ5",
- "EkIKDW1hcF9ib29sX2Jvb2wYDSADKAsyKy5wcm90b2J1Zl91bml0dGVzdC5U",
- "ZXN0TWFwLk1hcEJvb2xCb29sRW50cnkSSgoRbWFwX3N0cmluZ19zdHJpbmcY",
- "DiADKAsyLy5wcm90b2J1Zl91bml0dGVzdC5UZXN0TWFwLk1hcFN0cmluZ1N0",
- "cmluZ0VudHJ5EkYKD21hcF9pbnQzMl9ieXRlcxgPIAMoCzItLnByb3RvYnVm",
- "X3VuaXR0ZXN0LlRlc3RNYXAuTWFwSW50MzJCeXRlc0VudHJ5EkQKDm1hcF9p",
- "bnQzMl9lbnVtGBAgAygLMiwucHJvdG9idWZfdW5pdHRlc3QuVGVzdE1hcC5N",
- "YXBJbnQzMkVudW1FbnRyeRJZChltYXBfaW50MzJfZm9yZWlnbl9tZXNzYWdl",
- "GBEgAygLMjYucHJvdG9idWZfdW5pdHRlc3QuVGVzdE1hcC5NYXBJbnQzMkZv",
- "cmVpZ25NZXNzYWdlRW50cnkaNAoSTWFwSW50MzJJbnQzMkVudHJ5EgsKA2tl",
- "eRgBIAEoBRINCgV2YWx1ZRgCIAEoBToCOAEaNAoSTWFwSW50NjRJbnQ2NEVu",
- "dHJ5EgsKA2tleRgBIAEoAxINCgV2YWx1ZRgCIAEoAzoCOAEaNgoUTWFwVWlu",
- "dDMyVWludDMyRW50cnkSCwoDa2V5GAEgASgNEg0KBXZhbHVlGAIgASgNOgI4",
- "ARo2ChRNYXBVaW50NjRVaW50NjRFbnRyeRILCgNrZXkYASABKAQSDQoFdmFs",
- "dWUYAiABKAQ6AjgBGjYKFE1hcFNpbnQzMlNpbnQzMkVudHJ5EgsKA2tleRgB",
- "IAEoERINCgV2YWx1ZRgCIAEoEToCOAEaNgoUTWFwU2ludDY0U2ludDY0RW50",
- "cnkSCwoDa2V5GAEgASgSEg0KBXZhbHVlGAIgASgSOgI4ARo4ChZNYXBGaXhl",
- "ZDMyRml4ZWQzMkVudHJ5EgsKA2tleRgBIAEoBxINCgV2YWx1ZRgCIAEoBzoC",
- "OAEaOAoWTWFwRml4ZWQ2NEZpeGVkNjRFbnRyeRILCgNrZXkYASABKAYSDQoF",
- "dmFsdWUYAiABKAY6AjgBGjoKGE1hcFNmaXhlZDMyU2ZpeGVkMzJFbnRyeRIL",
- "CgNrZXkYASABKA8SDQoFdmFsdWUYAiABKA86AjgBGjoKGE1hcFNmaXhlZDY0",
- "U2ZpeGVkNjRFbnRyeRILCgNrZXkYASABKBASDQoFdmFsdWUYAiABKBA6AjgB",
- "GjQKEk1hcEludDMyRmxvYXRFbnRyeRILCgNrZXkYASABKAUSDQoFdmFsdWUY",
- "AiABKAI6AjgBGjUKE01hcEludDMyRG91YmxlRW50cnkSCwoDa2V5GAEgASgF",
- "Eg0KBXZhbHVlGAIgASgBOgI4ARoyChBNYXBCb29sQm9vbEVudHJ5EgsKA2tl",
- "eRgBIAEoCBINCgV2YWx1ZRgCIAEoCDoCOAEaNgoUTWFwU3RyaW5nU3RyaW5n",
- "RW50cnkSCwoDa2V5GAEgASgJEg0KBXZhbHVlGAIgASgJOgI4ARo0ChJNYXBJ",
- "bnQzMkJ5dGVzRW50cnkSCwoDa2V5GAEgASgFEg0KBXZhbHVlGAIgASgMOgI4",
- "ARpPChFNYXBJbnQzMkVudW1FbnRyeRILCgNrZXkYASABKAUSKQoFdmFsdWUY",
- "AiABKA4yGi5wcm90b2J1Zl91bml0dGVzdC5NYXBFbnVtOgI4ARpgChtNYXBJ",
- "bnQzMkZvcmVpZ25NZXNzYWdlRW50cnkSCwoDa2V5GAEgASgFEjAKBXZhbHVl",
- "GAIgASgLMiEucHJvdG9idWZfdW5pdHRlc3QuRm9yZWlnbk1lc3NhZ2U6AjgB",
- "IkEKEVRlc3RNYXBTdWJtZXNzYWdlEiwKCHRlc3RfbWFwGAEgASgLMhoucHJv",
- "dG9idWZfdW5pdHRlc3QuVGVzdE1hcCK8AQoOVGVzdE1lc3NhZ2VNYXASUQoR",
- "bWFwX2ludDMyX21lc3NhZ2UYASADKAsyNi5wcm90b2J1Zl91bml0dGVzdC5U",
- "ZXN0TWVzc2FnZU1hcC5NYXBJbnQzMk1lc3NhZ2VFbnRyeRpXChRNYXBJbnQz",
- "Mk1lc3NhZ2VFbnRyeRILCgNrZXkYASABKAUSLgoFdmFsdWUYAiABKAsyHy5w",
- "cm90b2J1Zl91bml0dGVzdC5UZXN0QWxsVHlwZXM6AjgBIuMBCg9UZXN0U2Ft",
- "ZVR5cGVNYXASOgoEbWFwMRgBIAMoCzIsLnByb3RvYnVmX3VuaXR0ZXN0LlRl",
- "c3RTYW1lVHlwZU1hcC5NYXAxRW50cnkSOgoEbWFwMhgCIAMoCzIsLnByb3Rv",
- "YnVmX3VuaXR0ZXN0LlRlc3RTYW1lVHlwZU1hcC5NYXAyRW50cnkaKwoJTWFw",
- "MUVudHJ5EgsKA2tleRgBIAEoBRINCgV2YWx1ZRgCIAEoBToCOAEaKwoJTWFw",
- "MkVudHJ5EgsKA2tleRgBIAEoBRINCgV2YWx1ZRgCIAEoBToCOAEi5BAKDFRl",
- "c3RBcmVuYU1hcBJLCg9tYXBfaW50MzJfaW50MzIYASADKAsyMi5wcm90b2J1",
- "Zl91bml0dGVzdC5UZXN0QXJlbmFNYXAuTWFwSW50MzJJbnQzMkVudHJ5EksK",
- "D21hcF9pbnQ2NF9pbnQ2NBgCIAMoCzIyLnByb3RvYnVmX3VuaXR0ZXN0LlRl",
- "c3RBcmVuYU1hcC5NYXBJbnQ2NEludDY0RW50cnkSTwoRbWFwX3VpbnQzMl91",
- "aW50MzIYAyADKAsyNC5wcm90b2J1Zl91bml0dGVzdC5UZXN0QXJlbmFNYXAu",
- "TWFwVWludDMyVWludDMyRW50cnkSTwoRbWFwX3VpbnQ2NF91aW50NjQYBCAD",
- "KAsyNC5wcm90b2J1Zl91bml0dGVzdC5UZXN0QXJlbmFNYXAuTWFwVWludDY0",
- "VWludDY0RW50cnkSTwoRbWFwX3NpbnQzMl9zaW50MzIYBSADKAsyNC5wcm90",
- "b2J1Zl91bml0dGVzdC5UZXN0QXJlbmFNYXAuTWFwU2ludDMyU2ludDMyRW50",
- "cnkSTwoRbWFwX3NpbnQ2NF9zaW50NjQYBiADKAsyNC5wcm90b2J1Zl91bml0",
- "dGVzdC5UZXN0QXJlbmFNYXAuTWFwU2ludDY0U2ludDY0RW50cnkSUwoTbWFw",
- "X2ZpeGVkMzJfZml4ZWQzMhgHIAMoCzI2LnByb3RvYnVmX3VuaXR0ZXN0LlRl",
- "c3RBcmVuYU1hcC5NYXBGaXhlZDMyRml4ZWQzMkVudHJ5ElMKE21hcF9maXhl",
- "ZDY0X2ZpeGVkNjQYCCADKAsyNi5wcm90b2J1Zl91bml0dGVzdC5UZXN0QXJl",
- "bmFNYXAuTWFwRml4ZWQ2NEZpeGVkNjRFbnRyeRJXChVtYXBfc2ZpeGVkMzJf",
- "c2ZpeGVkMzIYCSADKAsyOC5wcm90b2J1Zl91bml0dGVzdC5UZXN0QXJlbmFN",
- "YXAuTWFwU2ZpeGVkMzJTZml4ZWQzMkVudHJ5ElcKFW1hcF9zZml4ZWQ2NF9z",
- "Zml4ZWQ2NBgKIAMoCzI4LnByb3RvYnVmX3VuaXR0ZXN0LlRlc3RBcmVuYU1h",
- "cC5NYXBTZml4ZWQ2NFNmaXhlZDY0RW50cnkSSwoPbWFwX2ludDMyX2Zsb2F0",
- "GAsgAygLMjIucHJvdG9idWZfdW5pdHRlc3QuVGVzdEFyZW5hTWFwLk1hcElu",
- "dDMyRmxvYXRFbnRyeRJNChBtYXBfaW50MzJfZG91YmxlGAwgAygLMjMucHJv",
- "dG9idWZfdW5pdHRlc3QuVGVzdEFyZW5hTWFwLk1hcEludDMyRG91YmxlRW50",
- "cnkSRwoNbWFwX2Jvb2xfYm9vbBgNIAMoCzIwLnByb3RvYnVmX3VuaXR0ZXN0",
- "LlRlc3RBcmVuYU1hcC5NYXBCb29sQm9vbEVudHJ5EkkKDm1hcF9pbnQzMl9l",
- "bnVtGA4gAygLMjEucHJvdG9idWZfdW5pdHRlc3QuVGVzdEFyZW5hTWFwLk1h",
- "cEludDMyRW51bUVudHJ5El4KGW1hcF9pbnQzMl9mb3JlaWduX21lc3NhZ2UY",
- "DyADKAsyOy5wcm90b2J1Zl91bml0dGVzdC5UZXN0QXJlbmFNYXAuTWFwSW50",
- "MzJGb3JlaWduTWVzc2FnZUVudHJ5GjQKEk1hcEludDMySW50MzJFbnRyeRIL",
- "CgNrZXkYASABKAUSDQoFdmFsdWUYAiABKAU6AjgBGjQKEk1hcEludDY0SW50",
- "NjRFbnRyeRILCgNrZXkYASABKAMSDQoFdmFsdWUYAiABKAM6AjgBGjYKFE1h",
- "cFVpbnQzMlVpbnQzMkVudHJ5EgsKA2tleRgBIAEoDRINCgV2YWx1ZRgCIAEo",
- "DToCOAEaNgoUTWFwVWludDY0VWludDY0RW50cnkSCwoDa2V5GAEgASgEEg0K",
- "BXZhbHVlGAIgASgEOgI4ARo2ChRNYXBTaW50MzJTaW50MzJFbnRyeRILCgNr",
- "ZXkYASABKBESDQoFdmFsdWUYAiABKBE6AjgBGjYKFE1hcFNpbnQ2NFNpbnQ2",
- "NEVudHJ5EgsKA2tleRgBIAEoEhINCgV2YWx1ZRgCIAEoEjoCOAEaOAoWTWFw",
- "Rml4ZWQzMkZpeGVkMzJFbnRyeRILCgNrZXkYASABKAcSDQoFdmFsdWUYAiAB",
- "KAc6AjgBGjgKFk1hcEZpeGVkNjRGaXhlZDY0RW50cnkSCwoDa2V5GAEgASgG",
- "Eg0KBXZhbHVlGAIgASgGOgI4ARo6ChhNYXBTZml4ZWQzMlNmaXhlZDMyRW50",
- "cnkSCwoDa2V5GAEgASgPEg0KBXZhbHVlGAIgASgPOgI4ARo6ChhNYXBTZml4",
- "ZWQ2NFNmaXhlZDY0RW50cnkSCwoDa2V5GAEgASgQEg0KBXZhbHVlGAIgASgQ",
- "OgI4ARo0ChJNYXBJbnQzMkZsb2F0RW50cnkSCwoDa2V5GAEgASgFEg0KBXZh",
- "bHVlGAIgASgCOgI4ARo1ChNNYXBJbnQzMkRvdWJsZUVudHJ5EgsKA2tleRgB",
- "IAEoBRINCgV2YWx1ZRgCIAEoAToCOAEaMgoQTWFwQm9vbEJvb2xFbnRyeRIL",
- "CgNrZXkYASABKAgSDQoFdmFsdWUYAiABKAg6AjgBGk8KEU1hcEludDMyRW51",
- "bUVudHJ5EgsKA2tleRgBIAEoBRIpCgV2YWx1ZRgCIAEoDjIaLnByb3RvYnVm",
- "X3VuaXR0ZXN0Lk1hcEVudW06AjgBGmAKG01hcEludDMyRm9yZWlnbk1lc3Nh",
- "Z2VFbnRyeRILCgNrZXkYASABKAUSMAoFdmFsdWUYAiABKAsyIS5wcm90b2J1",
- "Zl91bml0dGVzdC5Gb3JlaWduTWVzc2FnZToCOAEi5AEKH01lc3NhZ2VDb250",
- "YWluaW5nRW51bUNhbGxlZFR5cGUSSgoEdHlwZRgBIAMoCzI8LnByb3RvYnVm",
- "X3VuaXR0ZXN0Lk1lc3NhZ2VDb250YWluaW5nRW51bUNhbGxlZFR5cGUuVHlw",
- "ZUVudHJ5Gl8KCVR5cGVFbnRyeRILCgNrZXkYASABKAUSQQoFdmFsdWUYAiAB",
- "KAsyMi5wcm90b2J1Zl91bml0dGVzdC5NZXNzYWdlQ29udGFpbmluZ0VudW1D",
- "YWxsZWRUeXBlOgI4ASIUCgRUeXBlEgwKCFRZUEVfRk9PEAAinQEKH01lc3Nh",
- "Z2VDb250YWluaW5nTWFwQ2FsbGVkRW50cnkSTAoFZW50cnkYASADKAsyPS5w",
- "cm90b2J1Zl91bml0dGVzdC5NZXNzYWdlQ29udGFpbmluZ01hcENhbGxlZEVu",
- "dHJ5LkVudHJ5RW50cnkaLAoKRW50cnlFbnRyeRILCgNrZXkYASABKAUSDQoF",
- "dmFsdWUYAiABKAU6AjgBKj8KB01hcEVudW0SEAoMTUFQX0VOVU1fRk9PEAAS",
- "EAoMTUFQX0VOVU1fQkFSEAESEAoMTUFQX0VOVU1fQkFaEAJCIPgBAaoCGkdv",
- "b2dsZS5Qcm90b2J1Zi5UZXN0UHJvdG9zYgZwcm90bzM="));
- descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData,
- new pbr::FileDescriptor[] { global::Google.Protobuf.TestProtos.UnittestProto3Reflection.Descriptor, },
- new pbr::GeneratedClrTypeInfo(new[] {typeof(global::Google.Protobuf.TestProtos.MapEnum), }, new pbr::GeneratedClrTypeInfo[] {
- new pbr::GeneratedClrTypeInfo(typeof(global::Google.Protobuf.TestProtos.TestMap), global::Google.Protobuf.TestProtos.TestMap.Parser, new[]{ "MapInt32Int32", "MapInt64Int64", "MapUint32Uint32", "MapUint64Uint64", "MapSint32Sint32", "MapSint64Sint64", "MapFixed32Fixed32", "MapFixed64Fixed64", "MapSfixed32Sfixed32", "MapSfixed64Sfixed64", "MapInt32Float", "MapInt32Double", "MapBoolBool", "MapStringString", "MapInt32Bytes", "MapInt32Enum", "MapInt32ForeignMessage" }, null, null, new pbr::GeneratedClrTypeInfo[] { null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, }),
- new pbr::GeneratedClrTypeInfo(typeof(global::Google.Protobuf.TestProtos.TestMapSubmessage), global::Google.Protobuf.TestProtos.TestMapSubmessage.Parser, new[]{ "TestMap" }, null, null, null),
- new pbr::GeneratedClrTypeInfo(typeof(global::Google.Protobuf.TestProtos.TestMessageMap), global::Google.Protobuf.TestProtos.TestMessageMap.Parser, new[]{ "MapInt32Message" }, null, null, new pbr::GeneratedClrTypeInfo[] { null, }),
- new pbr::GeneratedClrTypeInfo(typeof(global::Google.Protobuf.TestProtos.TestSameTypeMap), global::Google.Protobuf.TestProtos.TestSameTypeMap.Parser, new[]{ "Map1", "Map2" }, null, null, new pbr::GeneratedClrTypeInfo[] { null, null, }),
- new pbr::GeneratedClrTypeInfo(typeof(global::Google.Protobuf.TestProtos.TestArenaMap), global::Google.Protobuf.TestProtos.TestArenaMap.Parser, new[]{ "MapInt32Int32", "MapInt64Int64", "MapUint32Uint32", "MapUint64Uint64", "MapSint32Sint32", "MapSint64Sint64", "MapFixed32Fixed32", "MapFixed64Fixed64", "MapSfixed32Sfixed32", "MapSfixed64Sfixed64", "MapInt32Float", "MapInt32Double", "MapBoolBool", "MapInt32Enum", "MapInt32ForeignMessage" }, null, null, new pbr::GeneratedClrTypeInfo[] { null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, }),
- new pbr::GeneratedClrTypeInfo(typeof(global::Google.Protobuf.TestProtos.MessageContainingEnumCalledType), global::Google.Protobuf.TestProtos.MessageContainingEnumCalledType.Parser, new[]{ "Type" }, null, new[]{ typeof(global::Google.Protobuf.TestProtos.MessageContainingEnumCalledType.Types.Type) }, new pbr::GeneratedClrTypeInfo[] { null, }),
- new pbr::GeneratedClrTypeInfo(typeof(global::Google.Protobuf.TestProtos.MessageContainingMapCalledEntry), global::Google.Protobuf.TestProtos.MessageContainingMapCalledEntry.Parser, new[]{ "Entry" }, null, null, new pbr::GeneratedClrTypeInfo[] { null, })
- }));
- }
- #endregion
-
- }
- #region Enums
- public enum MapEnum {
- [pbr::OriginalName("MAP_ENUM_FOO")] Foo = 0,
- [pbr::OriginalName("MAP_ENUM_BAR")] Bar = 1,
- [pbr::OriginalName("MAP_ENUM_BAZ")] Baz = 2,
- }
-
- #endregion
-
- #region Messages
- /// <summary>
- /// Tests maps.
- /// </summary>
- public sealed partial class TestMap : pb::IMessage<TestMap> {
- private static readonly pb::MessageParser<TestMap> _parser = new pb::MessageParser<TestMap>(() => new TestMap());
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public static pb::MessageParser<TestMap> Parser { get { return _parser; } }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public static pbr::MessageDescriptor Descriptor {
- get { return global::Google.Protobuf.TestProtos.MapUnittestProto3Reflection.Descriptor.MessageTypes[0]; }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- pbr::MessageDescriptor pb::IMessage.Descriptor {
- get { return Descriptor; }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public TestMap() {
- OnConstruction();
- }
-
- partial void OnConstruction();
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public TestMap(TestMap other) : this() {
- mapInt32Int32_ = other.mapInt32Int32_.Clone();
- mapInt64Int64_ = other.mapInt64Int64_.Clone();
- mapUint32Uint32_ = other.mapUint32Uint32_.Clone();
- mapUint64Uint64_ = other.mapUint64Uint64_.Clone();
- mapSint32Sint32_ = other.mapSint32Sint32_.Clone();
- mapSint64Sint64_ = other.mapSint64Sint64_.Clone();
- mapFixed32Fixed32_ = other.mapFixed32Fixed32_.Clone();
- mapFixed64Fixed64_ = other.mapFixed64Fixed64_.Clone();
- mapSfixed32Sfixed32_ = other.mapSfixed32Sfixed32_.Clone();
- mapSfixed64Sfixed64_ = other.mapSfixed64Sfixed64_.Clone();
- mapInt32Float_ = other.mapInt32Float_.Clone();
- mapInt32Double_ = other.mapInt32Double_.Clone();
- mapBoolBool_ = other.mapBoolBool_.Clone();
- mapStringString_ = other.mapStringString_.Clone();
- mapInt32Bytes_ = other.mapInt32Bytes_.Clone();
- mapInt32Enum_ = other.mapInt32Enum_.Clone();
- mapInt32ForeignMessage_ = other.mapInt32ForeignMessage_.Clone();
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public TestMap Clone() {
- return new TestMap(this);
- }
-
- /// <summary>Field number for the "map_int32_int32" field.</summary>
- public const int MapInt32Int32FieldNumber = 1;
- private static readonly pbc::MapField<int, int>.Codec _map_mapInt32Int32_codec
- = new pbc::MapField<int, int>.Codec(pb::FieldCodec.ForInt32(8), pb::FieldCodec.ForInt32(16), 10);
- private readonly pbc::MapField<int, int> mapInt32Int32_ = new pbc::MapField<int, int>();
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public pbc::MapField<int, int> MapInt32Int32 {
- get { return mapInt32Int32_; }
- }
-
- /// <summary>Field number for the "map_int64_int64" field.</summary>
- public const int MapInt64Int64FieldNumber = 2;
- private static readonly pbc::MapField<long, long>.Codec _map_mapInt64Int64_codec
- = new pbc::MapField<long, long>.Codec(pb::FieldCodec.ForInt64(8), pb::FieldCodec.ForInt64(16), 18);
- private readonly pbc::MapField<long, long> mapInt64Int64_ = new pbc::MapField<long, long>();
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public pbc::MapField<long, long> MapInt64Int64 {
- get { return mapInt64Int64_; }
- }
-
- /// <summary>Field number for the "map_uint32_uint32" field.</summary>
- public const int MapUint32Uint32FieldNumber = 3;
- private static readonly pbc::MapField<uint, uint>.Codec _map_mapUint32Uint32_codec
- = new pbc::MapField<uint, uint>.Codec(pb::FieldCodec.ForUInt32(8), pb::FieldCodec.ForUInt32(16), 26);
- private readonly pbc::MapField<uint, uint> mapUint32Uint32_ = new pbc::MapField<uint, uint>();
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public pbc::MapField<uint, uint> MapUint32Uint32 {
- get { return mapUint32Uint32_; }
- }
-
- /// <summary>Field number for the "map_uint64_uint64" field.</summary>
- public const int MapUint64Uint64FieldNumber = 4;
- private static readonly pbc::MapField<ulong, ulong>.Codec _map_mapUint64Uint64_codec
- = new pbc::MapField<ulong, ulong>.Codec(pb::FieldCodec.ForUInt64(8), pb::FieldCodec.ForUInt64(16), 34);
- private readonly pbc::MapField<ulong, ulong> mapUint64Uint64_ = new pbc::MapField<ulong, ulong>();
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public pbc::MapField<ulong, ulong> MapUint64Uint64 {
- get { return mapUint64Uint64_; }
- }
-
- /// <summary>Field number for the "map_sint32_sint32" field.</summary>
- public const int MapSint32Sint32FieldNumber = 5;
- private static readonly pbc::MapField<int, int>.Codec _map_mapSint32Sint32_codec
- = new pbc::MapField<int, int>.Codec(pb::FieldCodec.ForSInt32(8), pb::FieldCodec.ForSInt32(16), 42);
- private readonly pbc::MapField<int, int> mapSint32Sint32_ = new pbc::MapField<int, int>();
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public pbc::MapField<int, int> MapSint32Sint32 {
- get { return mapSint32Sint32_; }
- }
-
- /// <summary>Field number for the "map_sint64_sint64" field.</summary>
- public const int MapSint64Sint64FieldNumber = 6;
- private static readonly pbc::MapField<long, long>.Codec _map_mapSint64Sint64_codec
- = new pbc::MapField<long, long>.Codec(pb::FieldCodec.ForSInt64(8), pb::FieldCodec.ForSInt64(16), 50);
- private readonly pbc::MapField<long, long> mapSint64Sint64_ = new pbc::MapField<long, long>();
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public pbc::MapField<long, long> MapSint64Sint64 {
- get { return mapSint64Sint64_; }
- }
-
- /// <summary>Field number for the "map_fixed32_fixed32" field.</summary>
- public const int MapFixed32Fixed32FieldNumber = 7;
- private static readonly pbc::MapField<uint, uint>.Codec _map_mapFixed32Fixed32_codec
- = new pbc::MapField<uint, uint>.Codec(pb::FieldCodec.ForFixed32(13), pb::FieldCodec.ForFixed32(21), 58);
- private readonly pbc::MapField<uint, uint> mapFixed32Fixed32_ = new pbc::MapField<uint, uint>();
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public pbc::MapField<uint, uint> MapFixed32Fixed32 {
- get { return mapFixed32Fixed32_; }
- }
-
- /// <summary>Field number for the "map_fixed64_fixed64" field.</summary>
- public const int MapFixed64Fixed64FieldNumber = 8;
- private static readonly pbc::MapField<ulong, ulong>.Codec _map_mapFixed64Fixed64_codec
- = new pbc::MapField<ulong, ulong>.Codec(pb::FieldCodec.ForFixed64(9), pb::FieldCodec.ForFixed64(17), 66);
- private readonly pbc::MapField<ulong, ulong> mapFixed64Fixed64_ = new pbc::MapField<ulong, ulong>();
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public pbc::MapField<ulong, ulong> MapFixed64Fixed64 {
- get { return mapFixed64Fixed64_; }
- }
-
- /// <summary>Field number for the "map_sfixed32_sfixed32" field.</summary>
- public const int MapSfixed32Sfixed32FieldNumber = 9;
- private static readonly pbc::MapField<int, int>.Codec _map_mapSfixed32Sfixed32_codec
- = new pbc::MapField<int, int>.Codec(pb::FieldCodec.ForSFixed32(13), pb::FieldCodec.ForSFixed32(21), 74);
- private readonly pbc::MapField<int, int> mapSfixed32Sfixed32_ = new pbc::MapField<int, int>();
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public pbc::MapField<int, int> MapSfixed32Sfixed32 {
- get { return mapSfixed32Sfixed32_; }
- }
-
- /// <summary>Field number for the "map_sfixed64_sfixed64" field.</summary>
- public const int MapSfixed64Sfixed64FieldNumber = 10;
- private static readonly pbc::MapField<long, long>.Codec _map_mapSfixed64Sfixed64_codec
- = new pbc::MapField<long, long>.Codec(pb::FieldCodec.ForSFixed64(9), pb::FieldCodec.ForSFixed64(17), 82);
- private readonly pbc::MapField<long, long> mapSfixed64Sfixed64_ = new pbc::MapField<long, long>();
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public pbc::MapField<long, long> MapSfixed64Sfixed64 {
- get { return mapSfixed64Sfixed64_; }
- }
-
- /// <summary>Field number for the "map_int32_float" field.</summary>
- public const int MapInt32FloatFieldNumber = 11;
- private static readonly pbc::MapField<int, float>.Codec _map_mapInt32Float_codec
- = new pbc::MapField<int, float>.Codec(pb::FieldCodec.ForInt32(8), pb::FieldCodec.ForFloat(21), 90);
- private readonly pbc::MapField<int, float> mapInt32Float_ = new pbc::MapField<int, float>();
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public pbc::MapField<int, float> MapInt32Float {
- get { return mapInt32Float_; }
- }
-
- /// <summary>Field number for the "map_int32_double" field.</summary>
- public const int MapInt32DoubleFieldNumber = 12;
- private static readonly pbc::MapField<int, double>.Codec _map_mapInt32Double_codec
- = new pbc::MapField<int, double>.Codec(pb::FieldCodec.ForInt32(8), pb::FieldCodec.ForDouble(17), 98);
- private readonly pbc::MapField<int, double> mapInt32Double_ = new pbc::MapField<int, double>();
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public pbc::MapField<int, double> MapInt32Double {
- get { return mapInt32Double_; }
- }
-
- /// <summary>Field number for the "map_bool_bool" field.</summary>
- public const int MapBoolBoolFieldNumber = 13;
- private static readonly pbc::MapField<bool, bool>.Codec _map_mapBoolBool_codec
- = new pbc::MapField<bool, bool>.Codec(pb::FieldCodec.ForBool(8), pb::FieldCodec.ForBool(16), 106);
- private readonly pbc::MapField<bool, bool> mapBoolBool_ = new pbc::MapField<bool, bool>();
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public pbc::MapField<bool, bool> MapBoolBool {
- get { return mapBoolBool_; }
- }
-
- /// <summary>Field number for the "map_string_string" field.</summary>
- public const int MapStringStringFieldNumber = 14;
- private static readonly pbc::MapField<string, string>.Codec _map_mapStringString_codec
- = new pbc::MapField<string, string>.Codec(pb::FieldCodec.ForString(10), pb::FieldCodec.ForString(18), 114);
- private readonly pbc::MapField<string, string> mapStringString_ = new pbc::MapField<string, string>();
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public pbc::MapField<string, string> MapStringString {
- get { return mapStringString_; }
- }
-
- /// <summary>Field number for the "map_int32_bytes" field.</summary>
- public const int MapInt32BytesFieldNumber = 15;
- private static readonly pbc::MapField<int, pb::ByteString>.Codec _map_mapInt32Bytes_codec
- = new pbc::MapField<int, pb::ByteString>.Codec(pb::FieldCodec.ForInt32(8), pb::FieldCodec.ForBytes(18), 122);
- private readonly pbc::MapField<int, pb::ByteString> mapInt32Bytes_ = new pbc::MapField<int, pb::ByteString>();
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public pbc::MapField<int, pb::ByteString> MapInt32Bytes {
- get { return mapInt32Bytes_; }
- }
-
- /// <summary>Field number for the "map_int32_enum" field.</summary>
- public const int MapInt32EnumFieldNumber = 16;
- private static readonly pbc::MapField<int, global::Google.Protobuf.TestProtos.MapEnum>.Codec _map_mapInt32Enum_codec
- = new pbc::MapField<int, global::Google.Protobuf.TestProtos.MapEnum>.Codec(pb::FieldCodec.ForInt32(8), pb::FieldCodec.ForEnum(16, x => (int) x, x => (global::Google.Protobuf.TestProtos.MapEnum) x), 130);
- private readonly pbc::MapField<int, global::Google.Protobuf.TestProtos.MapEnum> mapInt32Enum_ = new pbc::MapField<int, global::Google.Protobuf.TestProtos.MapEnum>();
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public pbc::MapField<int, global::Google.Protobuf.TestProtos.MapEnum> MapInt32Enum {
- get { return mapInt32Enum_; }
- }
-
- /// <summary>Field number for the "map_int32_foreign_message" field.</summary>
- public const int MapInt32ForeignMessageFieldNumber = 17;
- private static readonly pbc::MapField<int, global::Google.Protobuf.TestProtos.ForeignMessage>.Codec _map_mapInt32ForeignMessage_codec
- = new pbc::MapField<int, global::Google.Protobuf.TestProtos.ForeignMessage>.Codec(pb::FieldCodec.ForInt32(8), pb::FieldCodec.ForMessage(18, global::Google.Protobuf.TestProtos.ForeignMessage.Parser), 138);
- private readonly pbc::MapField<int, global::Google.Protobuf.TestProtos.ForeignMessage> mapInt32ForeignMessage_ = new pbc::MapField<int, global::Google.Protobuf.TestProtos.ForeignMessage>();
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public pbc::MapField<int, global::Google.Protobuf.TestProtos.ForeignMessage> MapInt32ForeignMessage {
- get { return mapInt32ForeignMessage_; }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public override bool Equals(object other) {
- return Equals(other as TestMap);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public bool Equals(TestMap other) {
- if (ReferenceEquals(other, null)) {
- return false;
- }
- if (ReferenceEquals(other, this)) {
- return true;
- }
- if (!MapInt32Int32.Equals(other.MapInt32Int32)) return false;
- if (!MapInt64Int64.Equals(other.MapInt64Int64)) return false;
- if (!MapUint32Uint32.Equals(other.MapUint32Uint32)) return false;
- if (!MapUint64Uint64.Equals(other.MapUint64Uint64)) return false;
- if (!MapSint32Sint32.Equals(other.MapSint32Sint32)) return false;
- if (!MapSint64Sint64.Equals(other.MapSint64Sint64)) return false;
- if (!MapFixed32Fixed32.Equals(other.MapFixed32Fixed32)) return false;
- if (!MapFixed64Fixed64.Equals(other.MapFixed64Fixed64)) return false;
- if (!MapSfixed32Sfixed32.Equals(other.MapSfixed32Sfixed32)) return false;
- if (!MapSfixed64Sfixed64.Equals(other.MapSfixed64Sfixed64)) return false;
- if (!MapInt32Float.Equals(other.MapInt32Float)) return false;
- if (!MapInt32Double.Equals(other.MapInt32Double)) return false;
- if (!MapBoolBool.Equals(other.MapBoolBool)) return false;
- if (!MapStringString.Equals(other.MapStringString)) return false;
- if (!MapInt32Bytes.Equals(other.MapInt32Bytes)) return false;
- if (!MapInt32Enum.Equals(other.MapInt32Enum)) return false;
- if (!MapInt32ForeignMessage.Equals(other.MapInt32ForeignMessage)) return false;
- return true;
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public override int GetHashCode() {
- int hash = 1;
- hash ^= MapInt32Int32.GetHashCode();
- hash ^= MapInt64Int64.GetHashCode();
- hash ^= MapUint32Uint32.GetHashCode();
- hash ^= MapUint64Uint64.GetHashCode();
- hash ^= MapSint32Sint32.GetHashCode();
- hash ^= MapSint64Sint64.GetHashCode();
- hash ^= MapFixed32Fixed32.GetHashCode();
- hash ^= MapFixed64Fixed64.GetHashCode();
- hash ^= MapSfixed32Sfixed32.GetHashCode();
- hash ^= MapSfixed64Sfixed64.GetHashCode();
- hash ^= MapInt32Float.GetHashCode();
- hash ^= MapInt32Double.GetHashCode();
- hash ^= MapBoolBool.GetHashCode();
- hash ^= MapStringString.GetHashCode();
- hash ^= MapInt32Bytes.GetHashCode();
- hash ^= MapInt32Enum.GetHashCode();
- hash ^= MapInt32ForeignMessage.GetHashCode();
- return hash;
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public override string ToString() {
- return pb::JsonFormatter.ToDiagnosticString(this);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void WriteTo(pb::CodedOutputStream output) {
- mapInt32Int32_.WriteTo(output, _map_mapInt32Int32_codec);
- mapInt64Int64_.WriteTo(output, _map_mapInt64Int64_codec);
- mapUint32Uint32_.WriteTo(output, _map_mapUint32Uint32_codec);
- mapUint64Uint64_.WriteTo(output, _map_mapUint64Uint64_codec);
- mapSint32Sint32_.WriteTo(output, _map_mapSint32Sint32_codec);
- mapSint64Sint64_.WriteTo(output, _map_mapSint64Sint64_codec);
- mapFixed32Fixed32_.WriteTo(output, _map_mapFixed32Fixed32_codec);
- mapFixed64Fixed64_.WriteTo(output, _map_mapFixed64Fixed64_codec);
- mapSfixed32Sfixed32_.WriteTo(output, _map_mapSfixed32Sfixed32_codec);
- mapSfixed64Sfixed64_.WriteTo(output, _map_mapSfixed64Sfixed64_codec);
- mapInt32Float_.WriteTo(output, _map_mapInt32Float_codec);
- mapInt32Double_.WriteTo(output, _map_mapInt32Double_codec);
- mapBoolBool_.WriteTo(output, _map_mapBoolBool_codec);
- mapStringString_.WriteTo(output, _map_mapStringString_codec);
- mapInt32Bytes_.WriteTo(output, _map_mapInt32Bytes_codec);
- mapInt32Enum_.WriteTo(output, _map_mapInt32Enum_codec);
- mapInt32ForeignMessage_.WriteTo(output, _map_mapInt32ForeignMessage_codec);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public int CalculateSize() {
- int size = 0;
- size += mapInt32Int32_.CalculateSize(_map_mapInt32Int32_codec);
- size += mapInt64Int64_.CalculateSize(_map_mapInt64Int64_codec);
- size += mapUint32Uint32_.CalculateSize(_map_mapUint32Uint32_codec);
- size += mapUint64Uint64_.CalculateSize(_map_mapUint64Uint64_codec);
- size += mapSint32Sint32_.CalculateSize(_map_mapSint32Sint32_codec);
- size += mapSint64Sint64_.CalculateSize(_map_mapSint64Sint64_codec);
- size += mapFixed32Fixed32_.CalculateSize(_map_mapFixed32Fixed32_codec);
- size += mapFixed64Fixed64_.CalculateSize(_map_mapFixed64Fixed64_codec);
- size += mapSfixed32Sfixed32_.CalculateSize(_map_mapSfixed32Sfixed32_codec);
- size += mapSfixed64Sfixed64_.CalculateSize(_map_mapSfixed64Sfixed64_codec);
- size += mapInt32Float_.CalculateSize(_map_mapInt32Float_codec);
- size += mapInt32Double_.CalculateSize(_map_mapInt32Double_codec);
- size += mapBoolBool_.CalculateSize(_map_mapBoolBool_codec);
- size += mapStringString_.CalculateSize(_map_mapStringString_codec);
- size += mapInt32Bytes_.CalculateSize(_map_mapInt32Bytes_codec);
- size += mapInt32Enum_.CalculateSize(_map_mapInt32Enum_codec);
- size += mapInt32ForeignMessage_.CalculateSize(_map_mapInt32ForeignMessage_codec);
- return size;
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void MergeFrom(TestMap other) {
- if (other == null) {
- return;
- }
- mapInt32Int32_.Add(other.mapInt32Int32_);
- mapInt64Int64_.Add(other.mapInt64Int64_);
- mapUint32Uint32_.Add(other.mapUint32Uint32_);
- mapUint64Uint64_.Add(other.mapUint64Uint64_);
- mapSint32Sint32_.Add(other.mapSint32Sint32_);
- mapSint64Sint64_.Add(other.mapSint64Sint64_);
- mapFixed32Fixed32_.Add(other.mapFixed32Fixed32_);
- mapFixed64Fixed64_.Add(other.mapFixed64Fixed64_);
- mapSfixed32Sfixed32_.Add(other.mapSfixed32Sfixed32_);
- mapSfixed64Sfixed64_.Add(other.mapSfixed64Sfixed64_);
- mapInt32Float_.Add(other.mapInt32Float_);
- mapInt32Double_.Add(other.mapInt32Double_);
- mapBoolBool_.Add(other.mapBoolBool_);
- mapStringString_.Add(other.mapStringString_);
- mapInt32Bytes_.Add(other.mapInt32Bytes_);
- mapInt32Enum_.Add(other.mapInt32Enum_);
- mapInt32ForeignMessage_.Add(other.mapInt32ForeignMessage_);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void MergeFrom(pb::CodedInputStream input) {
- uint tag;
- while ((tag = input.ReadTag()) != 0) {
- switch(tag) {
- default:
- input.SkipLastField();
- break;
- case 10: {
- mapInt32Int32_.AddEntriesFrom(input, _map_mapInt32Int32_codec);
- break;
- }
- case 18: {
- mapInt64Int64_.AddEntriesFrom(input, _map_mapInt64Int64_codec);
- break;
- }
- case 26: {
- mapUint32Uint32_.AddEntriesFrom(input, _map_mapUint32Uint32_codec);
- break;
- }
- case 34: {
- mapUint64Uint64_.AddEntriesFrom(input, _map_mapUint64Uint64_codec);
- break;
- }
- case 42: {
- mapSint32Sint32_.AddEntriesFrom(input, _map_mapSint32Sint32_codec);
- break;
- }
- case 50: {
- mapSint64Sint64_.AddEntriesFrom(input, _map_mapSint64Sint64_codec);
- break;
- }
- case 58: {
- mapFixed32Fixed32_.AddEntriesFrom(input, _map_mapFixed32Fixed32_codec);
- break;
- }
- case 66: {
- mapFixed64Fixed64_.AddEntriesFrom(input, _map_mapFixed64Fixed64_codec);
- break;
- }
- case 74: {
- mapSfixed32Sfixed32_.AddEntriesFrom(input, _map_mapSfixed32Sfixed32_codec);
- break;
- }
- case 82: {
- mapSfixed64Sfixed64_.AddEntriesFrom(input, _map_mapSfixed64Sfixed64_codec);
- break;
- }
- case 90: {
- mapInt32Float_.AddEntriesFrom(input, _map_mapInt32Float_codec);
- break;
- }
- case 98: {
- mapInt32Double_.AddEntriesFrom(input, _map_mapInt32Double_codec);
- break;
- }
- case 106: {
- mapBoolBool_.AddEntriesFrom(input, _map_mapBoolBool_codec);
- break;
- }
- case 114: {
- mapStringString_.AddEntriesFrom(input, _map_mapStringString_codec);
- break;
- }
- case 122: {
- mapInt32Bytes_.AddEntriesFrom(input, _map_mapInt32Bytes_codec);
- break;
- }
- case 130: {
- mapInt32Enum_.AddEntriesFrom(input, _map_mapInt32Enum_codec);
- break;
- }
- case 138: {
- mapInt32ForeignMessage_.AddEntriesFrom(input, _map_mapInt32ForeignMessage_codec);
- break;
- }
- }
- }
- }
-
- }
-
- public sealed partial class TestMapSubmessage : pb::IMessage<TestMapSubmessage> {
- private static readonly pb::MessageParser<TestMapSubmessage> _parser = new pb::MessageParser<TestMapSubmessage>(() => new TestMapSubmessage());
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public static pb::MessageParser<TestMapSubmessage> Parser { get { return _parser; } }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public static pbr::MessageDescriptor Descriptor {
- get { return global::Google.Protobuf.TestProtos.MapUnittestProto3Reflection.Descriptor.MessageTypes[1]; }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- pbr::MessageDescriptor pb::IMessage.Descriptor {
- get { return Descriptor; }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public TestMapSubmessage() {
- OnConstruction();
- }
-
- partial void OnConstruction();
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public TestMapSubmessage(TestMapSubmessage other) : this() {
- TestMap = other.testMap_ != null ? other.TestMap.Clone() : null;
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public TestMapSubmessage Clone() {
- return new TestMapSubmessage(this);
- }
-
- /// <summary>Field number for the "test_map" field.</summary>
- public const int TestMapFieldNumber = 1;
- private global::Google.Protobuf.TestProtos.TestMap testMap_;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public global::Google.Protobuf.TestProtos.TestMap TestMap {
- get { return testMap_; }
- set {
- testMap_ = value;
- }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public override bool Equals(object other) {
- return Equals(other as TestMapSubmessage);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public bool Equals(TestMapSubmessage other) {
- if (ReferenceEquals(other, null)) {
- return false;
- }
- if (ReferenceEquals(other, this)) {
- return true;
- }
- if (!object.Equals(TestMap, other.TestMap)) return false;
- return true;
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public override int GetHashCode() {
- int hash = 1;
- if (testMap_ != null) hash ^= TestMap.GetHashCode();
- return hash;
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public override string ToString() {
- return pb::JsonFormatter.ToDiagnosticString(this);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void WriteTo(pb::CodedOutputStream output) {
- if (testMap_ != null) {
- output.WriteRawTag(10);
- output.WriteMessage(TestMap);
- }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public int CalculateSize() {
- int size = 0;
- if (testMap_ != null) {
- size += 1 + pb::CodedOutputStream.ComputeMessageSize(TestMap);
- }
- return size;
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void MergeFrom(TestMapSubmessage other) {
- if (other == null) {
- return;
- }
- if (other.testMap_ != null) {
- if (testMap_ == null) {
- testMap_ = new global::Google.Protobuf.TestProtos.TestMap();
- }
- TestMap.MergeFrom(other.TestMap);
- }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void MergeFrom(pb::CodedInputStream input) {
- uint tag;
- while ((tag = input.ReadTag()) != 0) {
- switch(tag) {
- default:
- input.SkipLastField();
- break;
- case 10: {
- if (testMap_ == null) {
- testMap_ = new global::Google.Protobuf.TestProtos.TestMap();
- }
- input.ReadMessage(testMap_);
- break;
- }
- }
- }
- }
-
- }
-
- public sealed partial class TestMessageMap : pb::IMessage<TestMessageMap> {
- private static readonly pb::MessageParser<TestMessageMap> _parser = new pb::MessageParser<TestMessageMap>(() => new TestMessageMap());
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public static pb::MessageParser<TestMessageMap> Parser { get { return _parser; } }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public static pbr::MessageDescriptor Descriptor {
- get { return global::Google.Protobuf.TestProtos.MapUnittestProto3Reflection.Descriptor.MessageTypes[2]; }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- pbr::MessageDescriptor pb::IMessage.Descriptor {
- get { return Descriptor; }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public TestMessageMap() {
- OnConstruction();
- }
-
- partial void OnConstruction();
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public TestMessageMap(TestMessageMap other) : this() {
- mapInt32Message_ = other.mapInt32Message_.Clone();
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public TestMessageMap Clone() {
- return new TestMessageMap(this);
- }
-
- /// <summary>Field number for the "map_int32_message" field.</summary>
- public const int MapInt32MessageFieldNumber = 1;
- private static readonly pbc::MapField<int, global::Google.Protobuf.TestProtos.TestAllTypes>.Codec _map_mapInt32Message_codec
- = new pbc::MapField<int, global::Google.Protobuf.TestProtos.TestAllTypes>.Codec(pb::FieldCodec.ForInt32(8), pb::FieldCodec.ForMessage(18, global::Google.Protobuf.TestProtos.TestAllTypes.Parser), 10);
- private readonly pbc::MapField<int, global::Google.Protobuf.TestProtos.TestAllTypes> mapInt32Message_ = new pbc::MapField<int, global::Google.Protobuf.TestProtos.TestAllTypes>();
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public pbc::MapField<int, global::Google.Protobuf.TestProtos.TestAllTypes> MapInt32Message {
- get { return mapInt32Message_; }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public override bool Equals(object other) {
- return Equals(other as TestMessageMap);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public bool Equals(TestMessageMap other) {
- if (ReferenceEquals(other, null)) {
- return false;
- }
- if (ReferenceEquals(other, this)) {
- return true;
- }
- if (!MapInt32Message.Equals(other.MapInt32Message)) return false;
- return true;
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public override int GetHashCode() {
- int hash = 1;
- hash ^= MapInt32Message.GetHashCode();
- return hash;
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public override string ToString() {
- return pb::JsonFormatter.ToDiagnosticString(this);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void WriteTo(pb::CodedOutputStream output) {
- mapInt32Message_.WriteTo(output, _map_mapInt32Message_codec);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public int CalculateSize() {
- int size = 0;
- size += mapInt32Message_.CalculateSize(_map_mapInt32Message_codec);
- return size;
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void MergeFrom(TestMessageMap other) {
- if (other == null) {
- return;
- }
- mapInt32Message_.Add(other.mapInt32Message_);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void MergeFrom(pb::CodedInputStream input) {
- uint tag;
- while ((tag = input.ReadTag()) != 0) {
- switch(tag) {
- default:
- input.SkipLastField();
- break;
- case 10: {
- mapInt32Message_.AddEntriesFrom(input, _map_mapInt32Message_codec);
- break;
- }
- }
- }
- }
-
- }
-
- /// <summary>
- /// Two map fields share the same entry default instance.
- /// </summary>
- public sealed partial class TestSameTypeMap : pb::IMessage<TestSameTypeMap> {
- private static readonly pb::MessageParser<TestSameTypeMap> _parser = new pb::MessageParser<TestSameTypeMap>(() => new TestSameTypeMap());
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public static pb::MessageParser<TestSameTypeMap> Parser { get { return _parser; } }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public static pbr::MessageDescriptor Descriptor {
- get { return global::Google.Protobuf.TestProtos.MapUnittestProto3Reflection.Descriptor.MessageTypes[3]; }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- pbr::MessageDescriptor pb::IMessage.Descriptor {
- get { return Descriptor; }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public TestSameTypeMap() {
- OnConstruction();
- }
-
- partial void OnConstruction();
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public TestSameTypeMap(TestSameTypeMap other) : this() {
- map1_ = other.map1_.Clone();
- map2_ = other.map2_.Clone();
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public TestSameTypeMap Clone() {
- return new TestSameTypeMap(this);
- }
-
- /// <summary>Field number for the "map1" field.</summary>
- public const int Map1FieldNumber = 1;
- private static readonly pbc::MapField<int, int>.Codec _map_map1_codec
- = new pbc::MapField<int, int>.Codec(pb::FieldCodec.ForInt32(8), pb::FieldCodec.ForInt32(16), 10);
- private readonly pbc::MapField<int, int> map1_ = new pbc::MapField<int, int>();
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public pbc::MapField<int, int> Map1 {
- get { return map1_; }
- }
-
- /// <summary>Field number for the "map2" field.</summary>
- public const int Map2FieldNumber = 2;
- private static readonly pbc::MapField<int, int>.Codec _map_map2_codec
- = new pbc::MapField<int, int>.Codec(pb::FieldCodec.ForInt32(8), pb::FieldCodec.ForInt32(16), 18);
- private readonly pbc::MapField<int, int> map2_ = new pbc::MapField<int, int>();
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public pbc::MapField<int, int> Map2 {
- get { return map2_; }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public override bool Equals(object other) {
- return Equals(other as TestSameTypeMap);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public bool Equals(TestSameTypeMap other) {
- if (ReferenceEquals(other, null)) {
- return false;
- }
- if (ReferenceEquals(other, this)) {
- return true;
- }
- if (!Map1.Equals(other.Map1)) return false;
- if (!Map2.Equals(other.Map2)) return false;
- return true;
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public override int GetHashCode() {
- int hash = 1;
- hash ^= Map1.GetHashCode();
- hash ^= Map2.GetHashCode();
- return hash;
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public override string ToString() {
- return pb::JsonFormatter.ToDiagnosticString(this);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void WriteTo(pb::CodedOutputStream output) {
- map1_.WriteTo(output, _map_map1_codec);
- map2_.WriteTo(output, _map_map2_codec);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public int CalculateSize() {
- int size = 0;
- size += map1_.CalculateSize(_map_map1_codec);
- size += map2_.CalculateSize(_map_map2_codec);
- return size;
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void MergeFrom(TestSameTypeMap other) {
- if (other == null) {
- return;
- }
- map1_.Add(other.map1_);
- map2_.Add(other.map2_);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void MergeFrom(pb::CodedInputStream input) {
- uint tag;
- while ((tag = input.ReadTag()) != 0) {
- switch(tag) {
- default:
- input.SkipLastField();
- break;
- case 10: {
- map1_.AddEntriesFrom(input, _map_map1_codec);
- break;
- }
- case 18: {
- map2_.AddEntriesFrom(input, _map_map2_codec);
- break;
- }
- }
- }
- }
-
- }
-
- public sealed partial class TestArenaMap : pb::IMessage<TestArenaMap> {
- private static readonly pb::MessageParser<TestArenaMap> _parser = new pb::MessageParser<TestArenaMap>(() => new TestArenaMap());
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public static pb::MessageParser<TestArenaMap> Parser { get { return _parser; } }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public static pbr::MessageDescriptor Descriptor {
- get { return global::Google.Protobuf.TestProtos.MapUnittestProto3Reflection.Descriptor.MessageTypes[4]; }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- pbr::MessageDescriptor pb::IMessage.Descriptor {
- get { return Descriptor; }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public TestArenaMap() {
- OnConstruction();
- }
-
- partial void OnConstruction();
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public TestArenaMap(TestArenaMap other) : this() {
- mapInt32Int32_ = other.mapInt32Int32_.Clone();
- mapInt64Int64_ = other.mapInt64Int64_.Clone();
- mapUint32Uint32_ = other.mapUint32Uint32_.Clone();
- mapUint64Uint64_ = other.mapUint64Uint64_.Clone();
- mapSint32Sint32_ = other.mapSint32Sint32_.Clone();
- mapSint64Sint64_ = other.mapSint64Sint64_.Clone();
- mapFixed32Fixed32_ = other.mapFixed32Fixed32_.Clone();
- mapFixed64Fixed64_ = other.mapFixed64Fixed64_.Clone();
- mapSfixed32Sfixed32_ = other.mapSfixed32Sfixed32_.Clone();
- mapSfixed64Sfixed64_ = other.mapSfixed64Sfixed64_.Clone();
- mapInt32Float_ = other.mapInt32Float_.Clone();
- mapInt32Double_ = other.mapInt32Double_.Clone();
- mapBoolBool_ = other.mapBoolBool_.Clone();
- mapInt32Enum_ = other.mapInt32Enum_.Clone();
- mapInt32ForeignMessage_ = other.mapInt32ForeignMessage_.Clone();
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public TestArenaMap Clone() {
- return new TestArenaMap(this);
- }
-
- /// <summary>Field number for the "map_int32_int32" field.</summary>
- public const int MapInt32Int32FieldNumber = 1;
- private static readonly pbc::MapField<int, int>.Codec _map_mapInt32Int32_codec
- = new pbc::MapField<int, int>.Codec(pb::FieldCodec.ForInt32(8), pb::FieldCodec.ForInt32(16), 10);
- private readonly pbc::MapField<int, int> mapInt32Int32_ = new pbc::MapField<int, int>();
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public pbc::MapField<int, int> MapInt32Int32 {
- get { return mapInt32Int32_; }
- }
-
- /// <summary>Field number for the "map_int64_int64" field.</summary>
- public const int MapInt64Int64FieldNumber = 2;
- private static readonly pbc::MapField<long, long>.Codec _map_mapInt64Int64_codec
- = new pbc::MapField<long, long>.Codec(pb::FieldCodec.ForInt64(8), pb::FieldCodec.ForInt64(16), 18);
- private readonly pbc::MapField<long, long> mapInt64Int64_ = new pbc::MapField<long, long>();
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public pbc::MapField<long, long> MapInt64Int64 {
- get { return mapInt64Int64_; }
- }
-
- /// <summary>Field number for the "map_uint32_uint32" field.</summary>
- public const int MapUint32Uint32FieldNumber = 3;
- private static readonly pbc::MapField<uint, uint>.Codec _map_mapUint32Uint32_codec
- = new pbc::MapField<uint, uint>.Codec(pb::FieldCodec.ForUInt32(8), pb::FieldCodec.ForUInt32(16), 26);
- private readonly pbc::MapField<uint, uint> mapUint32Uint32_ = new pbc::MapField<uint, uint>();
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public pbc::MapField<uint, uint> MapUint32Uint32 {
- get { return mapUint32Uint32_; }
- }
-
- /// <summary>Field number for the "map_uint64_uint64" field.</summary>
- public const int MapUint64Uint64FieldNumber = 4;
- private static readonly pbc::MapField<ulong, ulong>.Codec _map_mapUint64Uint64_codec
- = new pbc::MapField<ulong, ulong>.Codec(pb::FieldCodec.ForUInt64(8), pb::FieldCodec.ForUInt64(16), 34);
- private readonly pbc::MapField<ulong, ulong> mapUint64Uint64_ = new pbc::MapField<ulong, ulong>();
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public pbc::MapField<ulong, ulong> MapUint64Uint64 {
- get { return mapUint64Uint64_; }
- }
-
- /// <summary>Field number for the "map_sint32_sint32" field.</summary>
- public const int MapSint32Sint32FieldNumber = 5;
- private static readonly pbc::MapField<int, int>.Codec _map_mapSint32Sint32_codec
- = new pbc::MapField<int, int>.Codec(pb::FieldCodec.ForSInt32(8), pb::FieldCodec.ForSInt32(16), 42);
- private readonly pbc::MapField<int, int> mapSint32Sint32_ = new pbc::MapField<int, int>();
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public pbc::MapField<int, int> MapSint32Sint32 {
- get { return mapSint32Sint32_; }
- }
-
- /// <summary>Field number for the "map_sint64_sint64" field.</summary>
- public const int MapSint64Sint64FieldNumber = 6;
- private static readonly pbc::MapField<long, long>.Codec _map_mapSint64Sint64_codec
- = new pbc::MapField<long, long>.Codec(pb::FieldCodec.ForSInt64(8), pb::FieldCodec.ForSInt64(16), 50);
- private readonly pbc::MapField<long, long> mapSint64Sint64_ = new pbc::MapField<long, long>();
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public pbc::MapField<long, long> MapSint64Sint64 {
- get { return mapSint64Sint64_; }
- }
-
- /// <summary>Field number for the "map_fixed32_fixed32" field.</summary>
- public const int MapFixed32Fixed32FieldNumber = 7;
- private static readonly pbc::MapField<uint, uint>.Codec _map_mapFixed32Fixed32_codec
- = new pbc::MapField<uint, uint>.Codec(pb::FieldCodec.ForFixed32(13), pb::FieldCodec.ForFixed32(21), 58);
- private readonly pbc::MapField<uint, uint> mapFixed32Fixed32_ = new pbc::MapField<uint, uint>();
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public pbc::MapField<uint, uint> MapFixed32Fixed32 {
- get { return mapFixed32Fixed32_; }
- }
-
- /// <summary>Field number for the "map_fixed64_fixed64" field.</summary>
- public const int MapFixed64Fixed64FieldNumber = 8;
- private static readonly pbc::MapField<ulong, ulong>.Codec _map_mapFixed64Fixed64_codec
- = new pbc::MapField<ulong, ulong>.Codec(pb::FieldCodec.ForFixed64(9), pb::FieldCodec.ForFixed64(17), 66);
- private readonly pbc::MapField<ulong, ulong> mapFixed64Fixed64_ = new pbc::MapField<ulong, ulong>();
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public pbc::MapField<ulong, ulong> MapFixed64Fixed64 {
- get { return mapFixed64Fixed64_; }
- }
-
- /// <summary>Field number for the "map_sfixed32_sfixed32" field.</summary>
- public const int MapSfixed32Sfixed32FieldNumber = 9;
- private static readonly pbc::MapField<int, int>.Codec _map_mapSfixed32Sfixed32_codec
- = new pbc::MapField<int, int>.Codec(pb::FieldCodec.ForSFixed32(13), pb::FieldCodec.ForSFixed32(21), 74);
- private readonly pbc::MapField<int, int> mapSfixed32Sfixed32_ = new pbc::MapField<int, int>();
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public pbc::MapField<int, int> MapSfixed32Sfixed32 {
- get { return mapSfixed32Sfixed32_; }
- }
-
- /// <summary>Field number for the "map_sfixed64_sfixed64" field.</summary>
- public const int MapSfixed64Sfixed64FieldNumber = 10;
- private static readonly pbc::MapField<long, long>.Codec _map_mapSfixed64Sfixed64_codec
- = new pbc::MapField<long, long>.Codec(pb::FieldCodec.ForSFixed64(9), pb::FieldCodec.ForSFixed64(17), 82);
- private readonly pbc::MapField<long, long> mapSfixed64Sfixed64_ = new pbc::MapField<long, long>();
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public pbc::MapField<long, long> MapSfixed64Sfixed64 {
- get { return mapSfixed64Sfixed64_; }
- }
-
- /// <summary>Field number for the "map_int32_float" field.</summary>
- public const int MapInt32FloatFieldNumber = 11;
- private static readonly pbc::MapField<int, float>.Codec _map_mapInt32Float_codec
- = new pbc::MapField<int, float>.Codec(pb::FieldCodec.ForInt32(8), pb::FieldCodec.ForFloat(21), 90);
- private readonly pbc::MapField<int, float> mapInt32Float_ = new pbc::MapField<int, float>();
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public pbc::MapField<int, float> MapInt32Float {
- get { return mapInt32Float_; }
- }
-
- /// <summary>Field number for the "map_int32_double" field.</summary>
- public const int MapInt32DoubleFieldNumber = 12;
- private static readonly pbc::MapField<int, double>.Codec _map_mapInt32Double_codec
- = new pbc::MapField<int, double>.Codec(pb::FieldCodec.ForInt32(8), pb::FieldCodec.ForDouble(17), 98);
- private readonly pbc::MapField<int, double> mapInt32Double_ = new pbc::MapField<int, double>();
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public pbc::MapField<int, double> MapInt32Double {
- get { return mapInt32Double_; }
- }
-
- /// <summary>Field number for the "map_bool_bool" field.</summary>
- public const int MapBoolBoolFieldNumber = 13;
- private static readonly pbc::MapField<bool, bool>.Codec _map_mapBoolBool_codec
- = new pbc::MapField<bool, bool>.Codec(pb::FieldCodec.ForBool(8), pb::FieldCodec.ForBool(16), 106);
- private readonly pbc::MapField<bool, bool> mapBoolBool_ = new pbc::MapField<bool, bool>();
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public pbc::MapField<bool, bool> MapBoolBool {
- get { return mapBoolBool_; }
- }
-
- /// <summary>Field number for the "map_int32_enum" field.</summary>
- public const int MapInt32EnumFieldNumber = 14;
- private static readonly pbc::MapField<int, global::Google.Protobuf.TestProtos.MapEnum>.Codec _map_mapInt32Enum_codec
- = new pbc::MapField<int, global::Google.Protobuf.TestProtos.MapEnum>.Codec(pb::FieldCodec.ForInt32(8), pb::FieldCodec.ForEnum(16, x => (int) x, x => (global::Google.Protobuf.TestProtos.MapEnum) x), 114);
- private readonly pbc::MapField<int, global::Google.Protobuf.TestProtos.MapEnum> mapInt32Enum_ = new pbc::MapField<int, global::Google.Protobuf.TestProtos.MapEnum>();
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public pbc::MapField<int, global::Google.Protobuf.TestProtos.MapEnum> MapInt32Enum {
- get { return mapInt32Enum_; }
- }
-
- /// <summary>Field number for the "map_int32_foreign_message" field.</summary>
- public const int MapInt32ForeignMessageFieldNumber = 15;
- private static readonly pbc::MapField<int, global::Google.Protobuf.TestProtos.ForeignMessage>.Codec _map_mapInt32ForeignMessage_codec
- = new pbc::MapField<int, global::Google.Protobuf.TestProtos.ForeignMessage>.Codec(pb::FieldCodec.ForInt32(8), pb::FieldCodec.ForMessage(18, global::Google.Protobuf.TestProtos.ForeignMessage.Parser), 122);
- private readonly pbc::MapField<int, global::Google.Protobuf.TestProtos.ForeignMessage> mapInt32ForeignMessage_ = new pbc::MapField<int, global::Google.Protobuf.TestProtos.ForeignMessage>();
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public pbc::MapField<int, global::Google.Protobuf.TestProtos.ForeignMessage> MapInt32ForeignMessage {
- get { return mapInt32ForeignMessage_; }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public override bool Equals(object other) {
- return Equals(other as TestArenaMap);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public bool Equals(TestArenaMap other) {
- if (ReferenceEquals(other, null)) {
- return false;
- }
- if (ReferenceEquals(other, this)) {
- return true;
- }
- if (!MapInt32Int32.Equals(other.MapInt32Int32)) return false;
- if (!MapInt64Int64.Equals(other.MapInt64Int64)) return false;
- if (!MapUint32Uint32.Equals(other.MapUint32Uint32)) return false;
- if (!MapUint64Uint64.Equals(other.MapUint64Uint64)) return false;
- if (!MapSint32Sint32.Equals(other.MapSint32Sint32)) return false;
- if (!MapSint64Sint64.Equals(other.MapSint64Sint64)) return false;
- if (!MapFixed32Fixed32.Equals(other.MapFixed32Fixed32)) return false;
- if (!MapFixed64Fixed64.Equals(other.MapFixed64Fixed64)) return false;
- if (!MapSfixed32Sfixed32.Equals(other.MapSfixed32Sfixed32)) return false;
- if (!MapSfixed64Sfixed64.Equals(other.MapSfixed64Sfixed64)) return false;
- if (!MapInt32Float.Equals(other.MapInt32Float)) return false;
- if (!MapInt32Double.Equals(other.MapInt32Double)) return false;
- if (!MapBoolBool.Equals(other.MapBoolBool)) return false;
- if (!MapInt32Enum.Equals(other.MapInt32Enum)) return false;
- if (!MapInt32ForeignMessage.Equals(other.MapInt32ForeignMessage)) return false;
- return true;
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public override int GetHashCode() {
- int hash = 1;
- hash ^= MapInt32Int32.GetHashCode();
- hash ^= MapInt64Int64.GetHashCode();
- hash ^= MapUint32Uint32.GetHashCode();
- hash ^= MapUint64Uint64.GetHashCode();
- hash ^= MapSint32Sint32.GetHashCode();
- hash ^= MapSint64Sint64.GetHashCode();
- hash ^= MapFixed32Fixed32.GetHashCode();
- hash ^= MapFixed64Fixed64.GetHashCode();
- hash ^= MapSfixed32Sfixed32.GetHashCode();
- hash ^= MapSfixed64Sfixed64.GetHashCode();
- hash ^= MapInt32Float.GetHashCode();
- hash ^= MapInt32Double.GetHashCode();
- hash ^= MapBoolBool.GetHashCode();
- hash ^= MapInt32Enum.GetHashCode();
- hash ^= MapInt32ForeignMessage.GetHashCode();
- return hash;
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public override string ToString() {
- return pb::JsonFormatter.ToDiagnosticString(this);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void WriteTo(pb::CodedOutputStream output) {
- mapInt32Int32_.WriteTo(output, _map_mapInt32Int32_codec);
- mapInt64Int64_.WriteTo(output, _map_mapInt64Int64_codec);
- mapUint32Uint32_.WriteTo(output, _map_mapUint32Uint32_codec);
- mapUint64Uint64_.WriteTo(output, _map_mapUint64Uint64_codec);
- mapSint32Sint32_.WriteTo(output, _map_mapSint32Sint32_codec);
- mapSint64Sint64_.WriteTo(output, _map_mapSint64Sint64_codec);
- mapFixed32Fixed32_.WriteTo(output, _map_mapFixed32Fixed32_codec);
- mapFixed64Fixed64_.WriteTo(output, _map_mapFixed64Fixed64_codec);
- mapSfixed32Sfixed32_.WriteTo(output, _map_mapSfixed32Sfixed32_codec);
- mapSfixed64Sfixed64_.WriteTo(output, _map_mapSfixed64Sfixed64_codec);
- mapInt32Float_.WriteTo(output, _map_mapInt32Float_codec);
- mapInt32Double_.WriteTo(output, _map_mapInt32Double_codec);
- mapBoolBool_.WriteTo(output, _map_mapBoolBool_codec);
- mapInt32Enum_.WriteTo(output, _map_mapInt32Enum_codec);
- mapInt32ForeignMessage_.WriteTo(output, _map_mapInt32ForeignMessage_codec);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public int CalculateSize() {
- int size = 0;
- size += mapInt32Int32_.CalculateSize(_map_mapInt32Int32_codec);
- size += mapInt64Int64_.CalculateSize(_map_mapInt64Int64_codec);
- size += mapUint32Uint32_.CalculateSize(_map_mapUint32Uint32_codec);
- size += mapUint64Uint64_.CalculateSize(_map_mapUint64Uint64_codec);
- size += mapSint32Sint32_.CalculateSize(_map_mapSint32Sint32_codec);
- size += mapSint64Sint64_.CalculateSize(_map_mapSint64Sint64_codec);
- size += mapFixed32Fixed32_.CalculateSize(_map_mapFixed32Fixed32_codec);
- size += mapFixed64Fixed64_.CalculateSize(_map_mapFixed64Fixed64_codec);
- size += mapSfixed32Sfixed32_.CalculateSize(_map_mapSfixed32Sfixed32_codec);
- size += mapSfixed64Sfixed64_.CalculateSize(_map_mapSfixed64Sfixed64_codec);
- size += mapInt32Float_.CalculateSize(_map_mapInt32Float_codec);
- size += mapInt32Double_.CalculateSize(_map_mapInt32Double_codec);
- size += mapBoolBool_.CalculateSize(_map_mapBoolBool_codec);
- size += mapInt32Enum_.CalculateSize(_map_mapInt32Enum_codec);
- size += mapInt32ForeignMessage_.CalculateSize(_map_mapInt32ForeignMessage_codec);
- return size;
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void MergeFrom(TestArenaMap other) {
- if (other == null) {
- return;
- }
- mapInt32Int32_.Add(other.mapInt32Int32_);
- mapInt64Int64_.Add(other.mapInt64Int64_);
- mapUint32Uint32_.Add(other.mapUint32Uint32_);
- mapUint64Uint64_.Add(other.mapUint64Uint64_);
- mapSint32Sint32_.Add(other.mapSint32Sint32_);
- mapSint64Sint64_.Add(other.mapSint64Sint64_);
- mapFixed32Fixed32_.Add(other.mapFixed32Fixed32_);
- mapFixed64Fixed64_.Add(other.mapFixed64Fixed64_);
- mapSfixed32Sfixed32_.Add(other.mapSfixed32Sfixed32_);
- mapSfixed64Sfixed64_.Add(other.mapSfixed64Sfixed64_);
- mapInt32Float_.Add(other.mapInt32Float_);
- mapInt32Double_.Add(other.mapInt32Double_);
- mapBoolBool_.Add(other.mapBoolBool_);
- mapInt32Enum_.Add(other.mapInt32Enum_);
- mapInt32ForeignMessage_.Add(other.mapInt32ForeignMessage_);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void MergeFrom(pb::CodedInputStream input) {
- uint tag;
- while ((tag = input.ReadTag()) != 0) {
- switch(tag) {
- default:
- input.SkipLastField();
- break;
- case 10: {
- mapInt32Int32_.AddEntriesFrom(input, _map_mapInt32Int32_codec);
- break;
- }
- case 18: {
- mapInt64Int64_.AddEntriesFrom(input, _map_mapInt64Int64_codec);
- break;
- }
- case 26: {
- mapUint32Uint32_.AddEntriesFrom(input, _map_mapUint32Uint32_codec);
- break;
- }
- case 34: {
- mapUint64Uint64_.AddEntriesFrom(input, _map_mapUint64Uint64_codec);
- break;
- }
- case 42: {
- mapSint32Sint32_.AddEntriesFrom(input, _map_mapSint32Sint32_codec);
- break;
- }
- case 50: {
- mapSint64Sint64_.AddEntriesFrom(input, _map_mapSint64Sint64_codec);
- break;
- }
- case 58: {
- mapFixed32Fixed32_.AddEntriesFrom(input, _map_mapFixed32Fixed32_codec);
- break;
- }
- case 66: {
- mapFixed64Fixed64_.AddEntriesFrom(input, _map_mapFixed64Fixed64_codec);
- break;
- }
- case 74: {
- mapSfixed32Sfixed32_.AddEntriesFrom(input, _map_mapSfixed32Sfixed32_codec);
- break;
- }
- case 82: {
- mapSfixed64Sfixed64_.AddEntriesFrom(input, _map_mapSfixed64Sfixed64_codec);
- break;
- }
- case 90: {
- mapInt32Float_.AddEntriesFrom(input, _map_mapInt32Float_codec);
- break;
- }
- case 98: {
- mapInt32Double_.AddEntriesFrom(input, _map_mapInt32Double_codec);
- break;
- }
- case 106: {
- mapBoolBool_.AddEntriesFrom(input, _map_mapBoolBool_codec);
- break;
- }
- case 114: {
- mapInt32Enum_.AddEntriesFrom(input, _map_mapInt32Enum_codec);
- break;
- }
- case 122: {
- mapInt32ForeignMessage_.AddEntriesFrom(input, _map_mapInt32ForeignMessage_codec);
- break;
- }
- }
- }
- }
-
- }
-
- /// <summary>
- /// Previously, message containing enum called Type cannot be used as value of
- /// map field.
- /// </summary>
- public sealed partial class MessageContainingEnumCalledType : pb::IMessage<MessageContainingEnumCalledType> {
- private static readonly pb::MessageParser<MessageContainingEnumCalledType> _parser = new pb::MessageParser<MessageContainingEnumCalledType>(() => new MessageContainingEnumCalledType());
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public static pb::MessageParser<MessageContainingEnumCalledType> Parser { get { return _parser; } }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public static pbr::MessageDescriptor Descriptor {
- get { return global::Google.Protobuf.TestProtos.MapUnittestProto3Reflection.Descriptor.MessageTypes[5]; }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- pbr::MessageDescriptor pb::IMessage.Descriptor {
- get { return Descriptor; }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public MessageContainingEnumCalledType() {
- OnConstruction();
- }
-
- partial void OnConstruction();
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public MessageContainingEnumCalledType(MessageContainingEnumCalledType other) : this() {
- type_ = other.type_.Clone();
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public MessageContainingEnumCalledType Clone() {
- return new MessageContainingEnumCalledType(this);
- }
-
- /// <summary>Field number for the "type" field.</summary>
- public const int TypeFieldNumber = 1;
- private static readonly pbc::MapField<int, global::Google.Protobuf.TestProtos.MessageContainingEnumCalledType>.Codec _map_type_codec
- = new pbc::MapField<int, global::Google.Protobuf.TestProtos.MessageContainingEnumCalledType>.Codec(pb::FieldCodec.ForInt32(8), pb::FieldCodec.ForMessage(18, global::Google.Protobuf.TestProtos.MessageContainingEnumCalledType.Parser), 10);
- private readonly pbc::MapField<int, global::Google.Protobuf.TestProtos.MessageContainingEnumCalledType> type_ = new pbc::MapField<int, global::Google.Protobuf.TestProtos.MessageContainingEnumCalledType>();
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public pbc::MapField<int, global::Google.Protobuf.TestProtos.MessageContainingEnumCalledType> Type {
- get { return type_; }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public override bool Equals(object other) {
- return Equals(other as MessageContainingEnumCalledType);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public bool Equals(MessageContainingEnumCalledType other) {
- if (ReferenceEquals(other, null)) {
- return false;
- }
- if (ReferenceEquals(other, this)) {
- return true;
- }
- if (!Type.Equals(other.Type)) return false;
- return true;
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public override int GetHashCode() {
- int hash = 1;
- hash ^= Type.GetHashCode();
- return hash;
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public override string ToString() {
- return pb::JsonFormatter.ToDiagnosticString(this);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void WriteTo(pb::CodedOutputStream output) {
- type_.WriteTo(output, _map_type_codec);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public int CalculateSize() {
- int size = 0;
- size += type_.CalculateSize(_map_type_codec);
- return size;
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void MergeFrom(MessageContainingEnumCalledType other) {
- if (other == null) {
- return;
- }
- type_.Add(other.type_);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void MergeFrom(pb::CodedInputStream input) {
- uint tag;
- while ((tag = input.ReadTag()) != 0) {
- switch(tag) {
- default:
- input.SkipLastField();
- break;
- case 10: {
- type_.AddEntriesFrom(input, _map_type_codec);
- break;
- }
- }
- }
- }
-
- #region Nested types
- /// <summary>Container for nested types declared in the MessageContainingEnumCalledType message type.</summary>
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public static partial class Types {
- public enum Type {
- [pbr::OriginalName("TYPE_FOO")] Foo = 0,
- }
-
- }
- #endregion
-
- }
-
- /// <summary>
- /// Previously, message cannot contain map field called "entry".
- /// </summary>
- public sealed partial class MessageContainingMapCalledEntry : pb::IMessage<MessageContainingMapCalledEntry> {
- private static readonly pb::MessageParser<MessageContainingMapCalledEntry> _parser = new pb::MessageParser<MessageContainingMapCalledEntry>(() => new MessageContainingMapCalledEntry());
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public static pb::MessageParser<MessageContainingMapCalledEntry> Parser { get { return _parser; } }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public static pbr::MessageDescriptor Descriptor {
- get { return global::Google.Protobuf.TestProtos.MapUnittestProto3Reflection.Descriptor.MessageTypes[6]; }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- pbr::MessageDescriptor pb::IMessage.Descriptor {
- get { return Descriptor; }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public MessageContainingMapCalledEntry() {
- OnConstruction();
- }
-
- partial void OnConstruction();
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public MessageContainingMapCalledEntry(MessageContainingMapCalledEntry other) : this() {
- entry_ = other.entry_.Clone();
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public MessageContainingMapCalledEntry Clone() {
- return new MessageContainingMapCalledEntry(this);
- }
-
- /// <summary>Field number for the "entry" field.</summary>
- public const int EntryFieldNumber = 1;
- private static readonly pbc::MapField<int, int>.Codec _map_entry_codec
- = new pbc::MapField<int, int>.Codec(pb::FieldCodec.ForInt32(8), pb::FieldCodec.ForInt32(16), 10);
- private readonly pbc::MapField<int, int> entry_ = new pbc::MapField<int, int>();
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public pbc::MapField<int, int> Entry {
- get { return entry_; }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public override bool Equals(object other) {
- return Equals(other as MessageContainingMapCalledEntry);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public bool Equals(MessageContainingMapCalledEntry other) {
- if (ReferenceEquals(other, null)) {
- return false;
- }
- if (ReferenceEquals(other, this)) {
- return true;
- }
- if (!Entry.Equals(other.Entry)) return false;
- return true;
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public override int GetHashCode() {
- int hash = 1;
- hash ^= Entry.GetHashCode();
- return hash;
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public override string ToString() {
- return pb::JsonFormatter.ToDiagnosticString(this);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void WriteTo(pb::CodedOutputStream output) {
- entry_.WriteTo(output, _map_entry_codec);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public int CalculateSize() {
- int size = 0;
- size += entry_.CalculateSize(_map_entry_codec);
- return size;
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void MergeFrom(MessageContainingMapCalledEntry other) {
- if (other == null) {
- return;
- }
- entry_.Add(other.entry_);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void MergeFrom(pb::CodedInputStream input) {
- uint tag;
- while ((tag = input.ReadTag()) != 0) {
- switch(tag) {
- default:
- input.SkipLastField();
- break;
- case 10: {
- entry_.AddEntriesFrom(input, _map_entry_codec);
- break;
- }
- }
- }
- }
-
- }
-
- #endregion
-
-}
-
-#endregion Designer generated code
diff --git a/csharp/src/Google.Protobuf.Test/TestProtos/UnittestImportProto3.cs b/csharp/src/Google.Protobuf.Test/TestProtos/UnittestImportProto3.cs
deleted file mode 100644
index f6df4e87..00000000
--- a/csharp/src/Google.Protobuf.Test/TestProtos/UnittestImportProto3.cs
+++ /dev/null
@@ -1,174 +0,0 @@
-// Generated by the protocol buffer compiler. DO NOT EDIT!
-// source: google/protobuf/unittest_import_proto3.proto
-#pragma warning disable 1591, 0612, 3021
-#region Designer generated code
-
-using pb = global::Google.Protobuf;
-using pbc = global::Google.Protobuf.Collections;
-using pbr = global::Google.Protobuf.Reflection;
-using scg = global::System.Collections.Generic;
-namespace Google.Protobuf.TestProtos {
-
- /// <summary>Holder for reflection information generated from google/protobuf/unittest_import_proto3.proto</summary>
- public static partial class UnittestImportProto3Reflection {
-
- #region Descriptor
- /// <summary>File descriptor for google/protobuf/unittest_import_proto3.proto</summary>
- public static pbr::FileDescriptor Descriptor {
- get { return descriptor; }
- }
- private static pbr::FileDescriptor descriptor;
-
- static UnittestImportProto3Reflection() {
- byte[] descriptorData = global::System.Convert.FromBase64String(
- string.Concat(
- "Cixnb29nbGUvcHJvdG9idWYvdW5pdHRlc3RfaW1wb3J0X3Byb3RvMy5wcm90",
- "bxIYcHJvdG9idWZfdW5pdHRlc3RfaW1wb3J0GjNnb29nbGUvcHJvdG9idWYv",
- "dW5pdHRlc3RfaW1wb3J0X3B1YmxpY19wcm90bzMucHJvdG8iGgoNSW1wb3J0",
- "TWVzc2FnZRIJCgFkGAEgASgFKlkKCkltcG9ydEVudW0SGwoXSU1QT1JUX0VO",
- "VU1fVU5TUEVDSUZJRUQQABIOCgpJTVBPUlRfRk9PEAcSDgoKSU1QT1JUX0JB",
- "UhAIEg4KCklNUE9SVF9CQVoQCUI8Chhjb20uZ29vZ2xlLnByb3RvYnVmLnRl",
- "c3RIAfgBAaoCGkdvb2dsZS5Qcm90b2J1Zi5UZXN0UHJvdG9zUABiBnByb3Rv",
- "Mw=="));
- descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData,
- new pbr::FileDescriptor[] { global::Google.Protobuf.TestProtos.UnittestImportPublicProto3Reflection.Descriptor, },
- new pbr::GeneratedClrTypeInfo(new[] {typeof(global::Google.Protobuf.TestProtos.ImportEnum), }, new pbr::GeneratedClrTypeInfo[] {
- new pbr::GeneratedClrTypeInfo(typeof(global::Google.Protobuf.TestProtos.ImportMessage), global::Google.Protobuf.TestProtos.ImportMessage.Parser, new[]{ "D" }, null, null, null)
- }));
- }
- #endregion
-
- }
- #region Enums
- public enum ImportEnum {
- [pbr::OriginalName("IMPORT_ENUM_UNSPECIFIED")] Unspecified = 0,
- [pbr::OriginalName("IMPORT_FOO")] ImportFoo = 7,
- [pbr::OriginalName("IMPORT_BAR")] ImportBar = 8,
- [pbr::OriginalName("IMPORT_BAZ")] ImportBaz = 9,
- }
-
- #endregion
-
- #region Messages
- public sealed partial class ImportMessage : pb::IMessage<ImportMessage> {
- private static readonly pb::MessageParser<ImportMessage> _parser = new pb::MessageParser<ImportMessage>(() => new ImportMessage());
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public static pb::MessageParser<ImportMessage> Parser { get { return _parser; } }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public static pbr::MessageDescriptor Descriptor {
- get { return global::Google.Protobuf.TestProtos.UnittestImportProto3Reflection.Descriptor.MessageTypes[0]; }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- pbr::MessageDescriptor pb::IMessage.Descriptor {
- get { return Descriptor; }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public ImportMessage() {
- OnConstruction();
- }
-
- partial void OnConstruction();
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public ImportMessage(ImportMessage other) : this() {
- d_ = other.d_;
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public ImportMessage Clone() {
- return new ImportMessage(this);
- }
-
- /// <summary>Field number for the "d" field.</summary>
- public const int DFieldNumber = 1;
- private int d_;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public int D {
- get { return d_; }
- set {
- d_ = value;
- }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public override bool Equals(object other) {
- return Equals(other as ImportMessage);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public bool Equals(ImportMessage other) {
- if (ReferenceEquals(other, null)) {
- return false;
- }
- if (ReferenceEquals(other, this)) {
- return true;
- }
- if (D != other.D) return false;
- return true;
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public override int GetHashCode() {
- int hash = 1;
- if (D != 0) hash ^= D.GetHashCode();
- return hash;
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public override string ToString() {
- return pb::JsonFormatter.ToDiagnosticString(this);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void WriteTo(pb::CodedOutputStream output) {
- if (D != 0) {
- output.WriteRawTag(8);
- output.WriteInt32(D);
- }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public int CalculateSize() {
- int size = 0;
- if (D != 0) {
- size += 1 + pb::CodedOutputStream.ComputeInt32Size(D);
- }
- return size;
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void MergeFrom(ImportMessage other) {
- if (other == null) {
- return;
- }
- if (other.D != 0) {
- D = other.D;
- }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void MergeFrom(pb::CodedInputStream input) {
- uint tag;
- while ((tag = input.ReadTag()) != 0) {
- switch(tag) {
- default:
- input.SkipLastField();
- break;
- case 8: {
- D = input.ReadInt32();
- break;
- }
- }
- }
- }
-
- }
-
- #endregion
-
-}
-
-#endregion Designer generated code
diff --git a/csharp/src/Google.Protobuf.Test/TestProtos/UnittestImportPublicProto3.cs b/csharp/src/Google.Protobuf.Test/TestProtos/UnittestImportPublicProto3.cs
deleted file mode 100644
index 67b8edf4..00000000
--- a/csharp/src/Google.Protobuf.Test/TestProtos/UnittestImportPublicProto3.cs
+++ /dev/null
@@ -1,160 +0,0 @@
-// Generated by the protocol buffer compiler. DO NOT EDIT!
-// source: google/protobuf/unittest_import_public_proto3.proto
-#pragma warning disable 1591, 0612, 3021
-#region Designer generated code
-
-using pb = global::Google.Protobuf;
-using pbc = global::Google.Protobuf.Collections;
-using pbr = global::Google.Protobuf.Reflection;
-using scg = global::System.Collections.Generic;
-namespace Google.Protobuf.TestProtos {
-
- /// <summary>Holder for reflection information generated from google/protobuf/unittest_import_public_proto3.proto</summary>
- public static partial class UnittestImportPublicProto3Reflection {
-
- #region Descriptor
- /// <summary>File descriptor for google/protobuf/unittest_import_public_proto3.proto</summary>
- public static pbr::FileDescriptor Descriptor {
- get { return descriptor; }
- }
- private static pbr::FileDescriptor descriptor;
-
- static UnittestImportPublicProto3Reflection() {
- byte[] descriptorData = global::System.Convert.FromBase64String(
- string.Concat(
- "CjNnb29nbGUvcHJvdG9idWYvdW5pdHRlc3RfaW1wb3J0X3B1YmxpY19wcm90",
- "bzMucHJvdG8SGHByb3RvYnVmX3VuaXR0ZXN0X2ltcG9ydCIgChNQdWJsaWNJ",
- "bXBvcnRNZXNzYWdlEgkKAWUYASABKAVCNwoYY29tLmdvb2dsZS5wcm90b2J1",
- "Zi50ZXN0qgIaR29vZ2xlLlByb3RvYnVmLlRlc3RQcm90b3NiBnByb3RvMw=="));
- descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData,
- new pbr::FileDescriptor[] { },
- new pbr::GeneratedClrTypeInfo(null, new pbr::GeneratedClrTypeInfo[] {
- new pbr::GeneratedClrTypeInfo(typeof(global::Google.Protobuf.TestProtos.PublicImportMessage), global::Google.Protobuf.TestProtos.PublicImportMessage.Parser, new[]{ "E" }, null, null, null)
- }));
- }
- #endregion
-
- }
- #region Messages
- public sealed partial class PublicImportMessage : pb::IMessage<PublicImportMessage> {
- private static readonly pb::MessageParser<PublicImportMessage> _parser = new pb::MessageParser<PublicImportMessage>(() => new PublicImportMessage());
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public static pb::MessageParser<PublicImportMessage> Parser { get { return _parser; } }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public static pbr::MessageDescriptor Descriptor {
- get { return global::Google.Protobuf.TestProtos.UnittestImportPublicProto3Reflection.Descriptor.MessageTypes[0]; }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- pbr::MessageDescriptor pb::IMessage.Descriptor {
- get { return Descriptor; }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public PublicImportMessage() {
- OnConstruction();
- }
-
- partial void OnConstruction();
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public PublicImportMessage(PublicImportMessage other) : this() {
- e_ = other.e_;
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public PublicImportMessage Clone() {
- return new PublicImportMessage(this);
- }
-
- /// <summary>Field number for the "e" field.</summary>
- public const int EFieldNumber = 1;
- private int e_;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public int E {
- get { return e_; }
- set {
- e_ = value;
- }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public override bool Equals(object other) {
- return Equals(other as PublicImportMessage);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public bool Equals(PublicImportMessage other) {
- if (ReferenceEquals(other, null)) {
- return false;
- }
- if (ReferenceEquals(other, this)) {
- return true;
- }
- if (E != other.E) return false;
- return true;
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public override int GetHashCode() {
- int hash = 1;
- if (E != 0) hash ^= E.GetHashCode();
- return hash;
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public override string ToString() {
- return pb::JsonFormatter.ToDiagnosticString(this);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void WriteTo(pb::CodedOutputStream output) {
- if (E != 0) {
- output.WriteRawTag(8);
- output.WriteInt32(E);
- }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public int CalculateSize() {
- int size = 0;
- if (E != 0) {
- size += 1 + pb::CodedOutputStream.ComputeInt32Size(E);
- }
- return size;
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void MergeFrom(PublicImportMessage other) {
- if (other == null) {
- return;
- }
- if (other.E != 0) {
- E = other.E;
- }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void MergeFrom(pb::CodedInputStream input) {
- uint tag;
- while ((tag = input.ReadTag()) != 0) {
- switch(tag) {
- default:
- input.SkipLastField();
- break;
- case 8: {
- E = input.ReadInt32();
- break;
- }
- }
- }
- }
-
- }
-
- #endregion
-
-}
-
-#endregion Designer generated code
diff --git a/csharp/src/Google.Protobuf.Test/TestProtos/UnittestIssues.cs b/csharp/src/Google.Protobuf.Test/TestProtos/UnittestIssues.cs
deleted file mode 100644
index f2db6b4e..00000000
--- a/csharp/src/Google.Protobuf.Test/TestProtos/UnittestIssues.cs
+++ /dev/null
@@ -1,1736 +0,0 @@
-// Generated by the protocol buffer compiler. DO NOT EDIT!
-// source: unittest_issues.proto
-#pragma warning disable 1591, 0612, 3021
-#region Designer generated code
-
-using pb = global::Google.Protobuf;
-using pbc = global::Google.Protobuf.Collections;
-using pbr = global::Google.Protobuf.Reflection;
-using scg = global::System.Collections.Generic;
-namespace UnitTest.Issues.TestProtos {
-
- /// <summary>Holder for reflection information generated from unittest_issues.proto</summary>
- public static partial class UnittestIssuesReflection {
-
- #region Descriptor
- /// <summary>File descriptor for unittest_issues.proto</summary>
- public static pbr::FileDescriptor Descriptor {
- get { return descriptor; }
- }
- private static pbr::FileDescriptor descriptor;
-
- static UnittestIssuesReflection() {
- byte[] descriptorData = global::System.Convert.FromBase64String(
- string.Concat(
- "ChV1bml0dGVzdF9pc3N1ZXMucHJvdG8SD3VuaXR0ZXN0X2lzc3VlcyInCghJ",
- "c3N1ZTMwNxobCgpOZXN0ZWRPbmNlGg0KC05lc3RlZFR3aWNlIrABChNOZWdh",
- "dGl2ZUVudW1NZXNzYWdlEiwKBXZhbHVlGAEgASgOMh0udW5pdHRlc3RfaXNz",
- "dWVzLk5lZ2F0aXZlRW51bRIxCgZ2YWx1ZXMYAiADKA4yHS51bml0dGVzdF9p",
- "c3N1ZXMuTmVnYXRpdmVFbnVtQgIQABI4Cg1wYWNrZWRfdmFsdWVzGAMgAygO",
- "Mh0udW5pdHRlc3RfaXNzdWVzLk5lZ2F0aXZlRW51bUICEAEiEQoPRGVwcmVj",
- "YXRlZENoaWxkIrkCChdEZXByZWNhdGVkRmllbGRzTWVzc2FnZRIaCg5Qcmlt",
- "aXRpdmVWYWx1ZRgBIAEoBUICGAESGgoOUHJpbWl0aXZlQXJyYXkYAiADKAVC",
- "AhgBEjoKDE1lc3NhZ2VWYWx1ZRgDIAEoCzIgLnVuaXR0ZXN0X2lzc3Vlcy5E",
- "ZXByZWNhdGVkQ2hpbGRCAhgBEjoKDE1lc3NhZ2VBcnJheRgEIAMoCzIgLnVu",
- "aXR0ZXN0X2lzc3Vlcy5EZXByZWNhdGVkQ2hpbGRCAhgBEjYKCUVudW1WYWx1",
- "ZRgFIAEoDjIfLnVuaXR0ZXN0X2lzc3Vlcy5EZXByZWNhdGVkRW51bUICGAES",
- "NgoJRW51bUFycmF5GAYgAygOMh8udW5pdHRlc3RfaXNzdWVzLkRlcHJlY2F0",
- "ZWRFbnVtQgIYASIZCglJdGVtRmllbGQSDAoEaXRlbRgBIAEoBSJECg1SZXNl",
- "cnZlZE5hbWVzEg0KBXR5cGVzGAEgASgFEhIKCmRlc2NyaXB0b3IYAiABKAUa",
- "EAoOU29tZU5lc3RlZFR5cGUioAEKFVRlc3RKc29uRmllbGRPcmRlcmluZxIT",
- "CgtwbGFpbl9pbnQzMhgEIAEoBRITCglvMV9zdHJpbmcYAiABKAlIABISCghv",
- "MV9pbnQzMhgFIAEoBUgAEhQKDHBsYWluX3N0cmluZxgBIAEoCRISCghvMl9p",
- "bnQzMhgGIAEoBUgBEhMKCW8yX3N0cmluZxgDIAEoCUgBQgQKAm8xQgQKAm8y",
- "IksKDFRlc3RKc29uTmFtZRIMCgRuYW1lGAEgASgJEhkKC2Rlc2NyaXB0aW9u",
- "GAIgASgJUgRkZXNjEhIKBGd1aWQYAyABKAlSBGV4aWQqVQoMTmVnYXRpdmVF",
- "bnVtEhYKEk5FR0FUSVZFX0VOVU1fWkVSTxAAEhYKCUZpdmVCZWxvdxD7////",
- "//////8BEhUKCE1pbnVzT25lEP///////////wEqLgoORGVwcmVjYXRlZEVu",
- "dW0SEwoPREVQUkVDQVRFRF9aRVJPEAASBwoDb25lEAFCH0gBqgIaVW5pdFRl",
- "c3QuSXNzdWVzLlRlc3RQcm90b3NiBnByb3RvMw=="));
- descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData,
- new pbr::FileDescriptor[] { },
- new pbr::GeneratedClrTypeInfo(new[] {typeof(global::UnitTest.Issues.TestProtos.NegativeEnum), typeof(global::UnitTest.Issues.TestProtos.DeprecatedEnum), }, new pbr::GeneratedClrTypeInfo[] {
- new pbr::GeneratedClrTypeInfo(typeof(global::UnitTest.Issues.TestProtos.Issue307), global::UnitTest.Issues.TestProtos.Issue307.Parser, null, null, null, new pbr::GeneratedClrTypeInfo[] { new pbr::GeneratedClrTypeInfo(typeof(global::UnitTest.Issues.TestProtos.Issue307.Types.NestedOnce), global::UnitTest.Issues.TestProtos.Issue307.Types.NestedOnce.Parser, null, null, null, new pbr::GeneratedClrTypeInfo[] { new pbr::GeneratedClrTypeInfo(typeof(global::UnitTest.Issues.TestProtos.Issue307.Types.NestedOnce.Types.NestedTwice), global::UnitTest.Issues.TestProtos.Issue307.Types.NestedOnce.Types.NestedTwice.Parser, null, null, null, null)})}),
- new pbr::GeneratedClrTypeInfo(typeof(global::UnitTest.Issues.TestProtos.NegativeEnumMessage), global::UnitTest.Issues.TestProtos.NegativeEnumMessage.Parser, new[]{ "Value", "Values", "PackedValues" }, null, null, null),
- new pbr::GeneratedClrTypeInfo(typeof(global::UnitTest.Issues.TestProtos.DeprecatedChild), global::UnitTest.Issues.TestProtos.DeprecatedChild.Parser, null, null, null, null),
- new pbr::GeneratedClrTypeInfo(typeof(global::UnitTest.Issues.TestProtos.DeprecatedFieldsMessage), global::UnitTest.Issues.TestProtos.DeprecatedFieldsMessage.Parser, new[]{ "PrimitiveValue", "PrimitiveArray", "MessageValue", "MessageArray", "EnumValue", "EnumArray" }, null, null, null),
- new pbr::GeneratedClrTypeInfo(typeof(global::UnitTest.Issues.TestProtos.ItemField), global::UnitTest.Issues.TestProtos.ItemField.Parser, new[]{ "Item" }, null, null, null),
- new pbr::GeneratedClrTypeInfo(typeof(global::UnitTest.Issues.TestProtos.ReservedNames), global::UnitTest.Issues.TestProtos.ReservedNames.Parser, new[]{ "Types_", "Descriptor_" }, null, null, new pbr::GeneratedClrTypeInfo[] { new pbr::GeneratedClrTypeInfo(typeof(global::UnitTest.Issues.TestProtos.ReservedNames.Types.SomeNestedType), global::UnitTest.Issues.TestProtos.ReservedNames.Types.SomeNestedType.Parser, null, null, null, null)}),
- new pbr::GeneratedClrTypeInfo(typeof(global::UnitTest.Issues.TestProtos.TestJsonFieldOrdering), global::UnitTest.Issues.TestProtos.TestJsonFieldOrdering.Parser, new[]{ "PlainInt32", "O1String", "O1Int32", "PlainString", "O2Int32", "O2String" }, new[]{ "O1", "O2" }, null, null),
- new pbr::GeneratedClrTypeInfo(typeof(global::UnitTest.Issues.TestProtos.TestJsonName), global::UnitTest.Issues.TestProtos.TestJsonName.Parser, new[]{ "Name", "Description", "Guid" }, null, null, null)
- }));
- }
- #endregion
-
- }
- #region Enums
- public enum NegativeEnum {
- [pbr::OriginalName("NEGATIVE_ENUM_ZERO")] Zero = 0,
- [pbr::OriginalName("FiveBelow")] FiveBelow = -5,
- [pbr::OriginalName("MinusOne")] MinusOne = -1,
- }
-
- public enum DeprecatedEnum {
- [pbr::OriginalName("DEPRECATED_ZERO")] DeprecatedZero = 0,
- [pbr::OriginalName("one")] One = 1,
- }
-
- #endregion
-
- #region Messages
- /// <summary>
- /// Issue 307: when generating doubly-nested types, any references
- /// should be of the form A.Types.B.Types.C.
- /// </summary>
- public sealed partial class Issue307 : pb::IMessage<Issue307> {
- private static readonly pb::MessageParser<Issue307> _parser = new pb::MessageParser<Issue307>(() => new Issue307());
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public static pb::MessageParser<Issue307> Parser { get { return _parser; } }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public static pbr::MessageDescriptor Descriptor {
- get { return global::UnitTest.Issues.TestProtos.UnittestIssuesReflection.Descriptor.MessageTypes[0]; }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- pbr::MessageDescriptor pb::IMessage.Descriptor {
- get { return Descriptor; }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public Issue307() {
- OnConstruction();
- }
-
- partial void OnConstruction();
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public Issue307(Issue307 other) : this() {
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public Issue307 Clone() {
- return new Issue307(this);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public override bool Equals(object other) {
- return Equals(other as Issue307);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public bool Equals(Issue307 other) {
- if (ReferenceEquals(other, null)) {
- return false;
- }
- if (ReferenceEquals(other, this)) {
- return true;
- }
- return true;
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public override int GetHashCode() {
- int hash = 1;
- return hash;
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public override string ToString() {
- return pb::JsonFormatter.ToDiagnosticString(this);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void WriteTo(pb::CodedOutputStream output) {
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public int CalculateSize() {
- int size = 0;
- return size;
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void MergeFrom(Issue307 other) {
- if (other == null) {
- return;
- }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void MergeFrom(pb::CodedInputStream input) {
- uint tag;
- while ((tag = input.ReadTag()) != 0) {
- switch(tag) {
- default:
- input.SkipLastField();
- break;
- }
- }
- }
-
- #region Nested types
- /// <summary>Container for nested types declared in the Issue307 message type.</summary>
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public static partial class Types {
- public sealed partial class NestedOnce : pb::IMessage<NestedOnce> {
- private static readonly pb::MessageParser<NestedOnce> _parser = new pb::MessageParser<NestedOnce>(() => new NestedOnce());
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public static pb::MessageParser<NestedOnce> Parser { get { return _parser; } }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public static pbr::MessageDescriptor Descriptor {
- get { return global::UnitTest.Issues.TestProtos.Issue307.Descriptor.NestedTypes[0]; }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- pbr::MessageDescriptor pb::IMessage.Descriptor {
- get { return Descriptor; }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public NestedOnce() {
- OnConstruction();
- }
-
- partial void OnConstruction();
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public NestedOnce(NestedOnce other) : this() {
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public NestedOnce Clone() {
- return new NestedOnce(this);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public override bool Equals(object other) {
- return Equals(other as NestedOnce);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public bool Equals(NestedOnce other) {
- if (ReferenceEquals(other, null)) {
- return false;
- }
- if (ReferenceEquals(other, this)) {
- return true;
- }
- return true;
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public override int GetHashCode() {
- int hash = 1;
- return hash;
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public override string ToString() {
- return pb::JsonFormatter.ToDiagnosticString(this);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void WriteTo(pb::CodedOutputStream output) {
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public int CalculateSize() {
- int size = 0;
- return size;
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void MergeFrom(NestedOnce other) {
- if (other == null) {
- return;
- }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void MergeFrom(pb::CodedInputStream input) {
- uint tag;
- while ((tag = input.ReadTag()) != 0) {
- switch(tag) {
- default:
- input.SkipLastField();
- break;
- }
- }
- }
-
- #region Nested types
- /// <summary>Container for nested types declared in the NestedOnce message type.</summary>
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public static partial class Types {
- public sealed partial class NestedTwice : pb::IMessage<NestedTwice> {
- private static readonly pb::MessageParser<NestedTwice> _parser = new pb::MessageParser<NestedTwice>(() => new NestedTwice());
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public static pb::MessageParser<NestedTwice> Parser { get { return _parser; } }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public static pbr::MessageDescriptor Descriptor {
- get { return global::UnitTest.Issues.TestProtos.Issue307.Types.NestedOnce.Descriptor.NestedTypes[0]; }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- pbr::MessageDescriptor pb::IMessage.Descriptor {
- get { return Descriptor; }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public NestedTwice() {
- OnConstruction();
- }
-
- partial void OnConstruction();
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public NestedTwice(NestedTwice other) : this() {
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public NestedTwice Clone() {
- return new NestedTwice(this);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public override bool Equals(object other) {
- return Equals(other as NestedTwice);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public bool Equals(NestedTwice other) {
- if (ReferenceEquals(other, null)) {
- return false;
- }
- if (ReferenceEquals(other, this)) {
- return true;
- }
- return true;
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public override int GetHashCode() {
- int hash = 1;
- return hash;
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public override string ToString() {
- return pb::JsonFormatter.ToDiagnosticString(this);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void WriteTo(pb::CodedOutputStream output) {
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public int CalculateSize() {
- int size = 0;
- return size;
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void MergeFrom(NestedTwice other) {
- if (other == null) {
- return;
- }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void MergeFrom(pb::CodedInputStream input) {
- uint tag;
- while ((tag = input.ReadTag()) != 0) {
- switch(tag) {
- default:
- input.SkipLastField();
- break;
- }
- }
- }
-
- }
-
- }
- #endregion
-
- }
-
- }
- #endregion
-
- }
-
- public sealed partial class NegativeEnumMessage : pb::IMessage<NegativeEnumMessage> {
- private static readonly pb::MessageParser<NegativeEnumMessage> _parser = new pb::MessageParser<NegativeEnumMessage>(() => new NegativeEnumMessage());
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public static pb::MessageParser<NegativeEnumMessage> Parser { get { return _parser; } }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public static pbr::MessageDescriptor Descriptor {
- get { return global::UnitTest.Issues.TestProtos.UnittestIssuesReflection.Descriptor.MessageTypes[1]; }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- pbr::MessageDescriptor pb::IMessage.Descriptor {
- get { return Descriptor; }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public NegativeEnumMessage() {
- OnConstruction();
- }
-
- partial void OnConstruction();
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public NegativeEnumMessage(NegativeEnumMessage other) : this() {
- value_ = other.value_;
- values_ = other.values_.Clone();
- packedValues_ = other.packedValues_.Clone();
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public NegativeEnumMessage Clone() {
- return new NegativeEnumMessage(this);
- }
-
- /// <summary>Field number for the "value" field.</summary>
- public const int ValueFieldNumber = 1;
- private global::UnitTest.Issues.TestProtos.NegativeEnum value_ = 0;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public global::UnitTest.Issues.TestProtos.NegativeEnum Value {
- get { return value_; }
- set {
- value_ = value;
- }
- }
-
- /// <summary>Field number for the "values" field.</summary>
- public const int ValuesFieldNumber = 2;
- private static readonly pb::FieldCodec<global::UnitTest.Issues.TestProtos.NegativeEnum> _repeated_values_codec
- = pb::FieldCodec.ForEnum(16, x => (int) x, x => (global::UnitTest.Issues.TestProtos.NegativeEnum) x);
- private readonly pbc::RepeatedField<global::UnitTest.Issues.TestProtos.NegativeEnum> values_ = new pbc::RepeatedField<global::UnitTest.Issues.TestProtos.NegativeEnum>();
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public pbc::RepeatedField<global::UnitTest.Issues.TestProtos.NegativeEnum> Values {
- get { return values_; }
- }
-
- /// <summary>Field number for the "packed_values" field.</summary>
- public const int PackedValuesFieldNumber = 3;
- private static readonly pb::FieldCodec<global::UnitTest.Issues.TestProtos.NegativeEnum> _repeated_packedValues_codec
- = pb::FieldCodec.ForEnum(26, x => (int) x, x => (global::UnitTest.Issues.TestProtos.NegativeEnum) x);
- private readonly pbc::RepeatedField<global::UnitTest.Issues.TestProtos.NegativeEnum> packedValues_ = new pbc::RepeatedField<global::UnitTest.Issues.TestProtos.NegativeEnum>();
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public pbc::RepeatedField<global::UnitTest.Issues.TestProtos.NegativeEnum> PackedValues {
- get { return packedValues_; }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public override bool Equals(object other) {
- return Equals(other as NegativeEnumMessage);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public bool Equals(NegativeEnumMessage other) {
- if (ReferenceEquals(other, null)) {
- return false;
- }
- if (ReferenceEquals(other, this)) {
- return true;
- }
- if (Value != other.Value) return false;
- if(!values_.Equals(other.values_)) return false;
- if(!packedValues_.Equals(other.packedValues_)) return false;
- return true;
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public override int GetHashCode() {
- int hash = 1;
- if (Value != 0) hash ^= Value.GetHashCode();
- hash ^= values_.GetHashCode();
- hash ^= packedValues_.GetHashCode();
- return hash;
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public override string ToString() {
- return pb::JsonFormatter.ToDiagnosticString(this);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void WriteTo(pb::CodedOutputStream output) {
- if (Value != 0) {
- output.WriteRawTag(8);
- output.WriteEnum((int) Value);
- }
- values_.WriteTo(output, _repeated_values_codec);
- packedValues_.WriteTo(output, _repeated_packedValues_codec);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public int CalculateSize() {
- int size = 0;
- if (Value != 0) {
- size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) Value);
- }
- size += values_.CalculateSize(_repeated_values_codec);
- size += packedValues_.CalculateSize(_repeated_packedValues_codec);
- return size;
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void MergeFrom(NegativeEnumMessage other) {
- if (other == null) {
- return;
- }
- if (other.Value != 0) {
- Value = other.Value;
- }
- values_.Add(other.values_);
- packedValues_.Add(other.packedValues_);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void MergeFrom(pb::CodedInputStream input) {
- uint tag;
- while ((tag = input.ReadTag()) != 0) {
- switch(tag) {
- default:
- input.SkipLastField();
- break;
- case 8: {
- value_ = (global::UnitTest.Issues.TestProtos.NegativeEnum) input.ReadEnum();
- break;
- }
- case 18:
- case 16: {
- values_.AddEntriesFrom(input, _repeated_values_codec);
- break;
- }
- case 26:
- case 24: {
- packedValues_.AddEntriesFrom(input, _repeated_packedValues_codec);
- break;
- }
- }
- }
- }
-
- }
-
- public sealed partial class DeprecatedChild : pb::IMessage<DeprecatedChild> {
- private static readonly pb::MessageParser<DeprecatedChild> _parser = new pb::MessageParser<DeprecatedChild>(() => new DeprecatedChild());
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public static pb::MessageParser<DeprecatedChild> Parser { get { return _parser; } }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public static pbr::MessageDescriptor Descriptor {
- get { return global::UnitTest.Issues.TestProtos.UnittestIssuesReflection.Descriptor.MessageTypes[2]; }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- pbr::MessageDescriptor pb::IMessage.Descriptor {
- get { return Descriptor; }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public DeprecatedChild() {
- OnConstruction();
- }
-
- partial void OnConstruction();
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public DeprecatedChild(DeprecatedChild other) : this() {
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public DeprecatedChild Clone() {
- return new DeprecatedChild(this);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public override bool Equals(object other) {
- return Equals(other as DeprecatedChild);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public bool Equals(DeprecatedChild other) {
- if (ReferenceEquals(other, null)) {
- return false;
- }
- if (ReferenceEquals(other, this)) {
- return true;
- }
- return true;
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public override int GetHashCode() {
- int hash = 1;
- return hash;
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public override string ToString() {
- return pb::JsonFormatter.ToDiagnosticString(this);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void WriteTo(pb::CodedOutputStream output) {
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public int CalculateSize() {
- int size = 0;
- return size;
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void MergeFrom(DeprecatedChild other) {
- if (other == null) {
- return;
- }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void MergeFrom(pb::CodedInputStream input) {
- uint tag;
- while ((tag = input.ReadTag()) != 0) {
- switch(tag) {
- default:
- input.SkipLastField();
- break;
- }
- }
- }
-
- }
-
- public sealed partial class DeprecatedFieldsMessage : pb::IMessage<DeprecatedFieldsMessage> {
- private static readonly pb::MessageParser<DeprecatedFieldsMessage> _parser = new pb::MessageParser<DeprecatedFieldsMessage>(() => new DeprecatedFieldsMessage());
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public static pb::MessageParser<DeprecatedFieldsMessage> Parser { get { return _parser; } }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public static pbr::MessageDescriptor Descriptor {
- get { return global::UnitTest.Issues.TestProtos.UnittestIssuesReflection.Descriptor.MessageTypes[3]; }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- pbr::MessageDescriptor pb::IMessage.Descriptor {
- get { return Descriptor; }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public DeprecatedFieldsMessage() {
- OnConstruction();
- }
-
- partial void OnConstruction();
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public DeprecatedFieldsMessage(DeprecatedFieldsMessage other) : this() {
- primitiveValue_ = other.primitiveValue_;
- primitiveArray_ = other.primitiveArray_.Clone();
- MessageValue = other.messageValue_ != null ? other.MessageValue.Clone() : null;
- messageArray_ = other.messageArray_.Clone();
- enumValue_ = other.enumValue_;
- enumArray_ = other.enumArray_.Clone();
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public DeprecatedFieldsMessage Clone() {
- return new DeprecatedFieldsMessage(this);
- }
-
- /// <summary>Field number for the "PrimitiveValue" field.</summary>
- public const int PrimitiveValueFieldNumber = 1;
- private int primitiveValue_;
- [global::System.ObsoleteAttribute]
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public int PrimitiveValue {
- get { return primitiveValue_; }
- set {
- primitiveValue_ = value;
- }
- }
-
- /// <summary>Field number for the "PrimitiveArray" field.</summary>
- public const int PrimitiveArrayFieldNumber = 2;
- private static readonly pb::FieldCodec<int> _repeated_primitiveArray_codec
- = pb::FieldCodec.ForInt32(18);
- private readonly pbc::RepeatedField<int> primitiveArray_ = new pbc::RepeatedField<int>();
- [global::System.ObsoleteAttribute]
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public pbc::RepeatedField<int> PrimitiveArray {
- get { return primitiveArray_; }
- }
-
- /// <summary>Field number for the "MessageValue" field.</summary>
- public const int MessageValueFieldNumber = 3;
- private global::UnitTest.Issues.TestProtos.DeprecatedChild messageValue_;
- [global::System.ObsoleteAttribute]
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public global::UnitTest.Issues.TestProtos.DeprecatedChild MessageValue {
- get { return messageValue_; }
- set {
- messageValue_ = value;
- }
- }
-
- /// <summary>Field number for the "MessageArray" field.</summary>
- public const int MessageArrayFieldNumber = 4;
- private static readonly pb::FieldCodec<global::UnitTest.Issues.TestProtos.DeprecatedChild> _repeated_messageArray_codec
- = pb::FieldCodec.ForMessage(34, global::UnitTest.Issues.TestProtos.DeprecatedChild.Parser);
- private readonly pbc::RepeatedField<global::UnitTest.Issues.TestProtos.DeprecatedChild> messageArray_ = new pbc::RepeatedField<global::UnitTest.Issues.TestProtos.DeprecatedChild>();
- [global::System.ObsoleteAttribute]
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public pbc::RepeatedField<global::UnitTest.Issues.TestProtos.DeprecatedChild> MessageArray {
- get { return messageArray_; }
- }
-
- /// <summary>Field number for the "EnumValue" field.</summary>
- public const int EnumValueFieldNumber = 5;
- private global::UnitTest.Issues.TestProtos.DeprecatedEnum enumValue_ = 0;
- [global::System.ObsoleteAttribute]
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public global::UnitTest.Issues.TestProtos.DeprecatedEnum EnumValue {
- get { return enumValue_; }
- set {
- enumValue_ = value;
- }
- }
-
- /// <summary>Field number for the "EnumArray" field.</summary>
- public const int EnumArrayFieldNumber = 6;
- private static readonly pb::FieldCodec<global::UnitTest.Issues.TestProtos.DeprecatedEnum> _repeated_enumArray_codec
- = pb::FieldCodec.ForEnum(50, x => (int) x, x => (global::UnitTest.Issues.TestProtos.DeprecatedEnum) x);
- private readonly pbc::RepeatedField<global::UnitTest.Issues.TestProtos.DeprecatedEnum> enumArray_ = new pbc::RepeatedField<global::UnitTest.Issues.TestProtos.DeprecatedEnum>();
- [global::System.ObsoleteAttribute]
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public pbc::RepeatedField<global::UnitTest.Issues.TestProtos.DeprecatedEnum> EnumArray {
- get { return enumArray_; }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public override bool Equals(object other) {
- return Equals(other as DeprecatedFieldsMessage);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public bool Equals(DeprecatedFieldsMessage other) {
- if (ReferenceEquals(other, null)) {
- return false;
- }
- if (ReferenceEquals(other, this)) {
- return true;
- }
- if (PrimitiveValue != other.PrimitiveValue) return false;
- if(!primitiveArray_.Equals(other.primitiveArray_)) return false;
- if (!object.Equals(MessageValue, other.MessageValue)) return false;
- if(!messageArray_.Equals(other.messageArray_)) return false;
- if (EnumValue != other.EnumValue) return false;
- if(!enumArray_.Equals(other.enumArray_)) return false;
- return true;
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public override int GetHashCode() {
- int hash = 1;
- if (PrimitiveValue != 0) hash ^= PrimitiveValue.GetHashCode();
- hash ^= primitiveArray_.GetHashCode();
- if (messageValue_ != null) hash ^= MessageValue.GetHashCode();
- hash ^= messageArray_.GetHashCode();
- if (EnumValue != 0) hash ^= EnumValue.GetHashCode();
- hash ^= enumArray_.GetHashCode();
- return hash;
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public override string ToString() {
- return pb::JsonFormatter.ToDiagnosticString(this);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void WriteTo(pb::CodedOutputStream output) {
- if (PrimitiveValue != 0) {
- output.WriteRawTag(8);
- output.WriteInt32(PrimitiveValue);
- }
- primitiveArray_.WriteTo(output, _repeated_primitiveArray_codec);
- if (messageValue_ != null) {
- output.WriteRawTag(26);
- output.WriteMessage(MessageValue);
- }
- messageArray_.WriteTo(output, _repeated_messageArray_codec);
- if (EnumValue != 0) {
- output.WriteRawTag(40);
- output.WriteEnum((int) EnumValue);
- }
- enumArray_.WriteTo(output, _repeated_enumArray_codec);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public int CalculateSize() {
- int size = 0;
- if (PrimitiveValue != 0) {
- size += 1 + pb::CodedOutputStream.ComputeInt32Size(PrimitiveValue);
- }
- size += primitiveArray_.CalculateSize(_repeated_primitiveArray_codec);
- if (messageValue_ != null) {
- size += 1 + pb::CodedOutputStream.ComputeMessageSize(MessageValue);
- }
- size += messageArray_.CalculateSize(_repeated_messageArray_codec);
- if (EnumValue != 0) {
- size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) EnumValue);
- }
- size += enumArray_.CalculateSize(_repeated_enumArray_codec);
- return size;
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void MergeFrom(DeprecatedFieldsMessage other) {
- if (other == null) {
- return;
- }
- if (other.PrimitiveValue != 0) {
- PrimitiveValue = other.PrimitiveValue;
- }
- primitiveArray_.Add(other.primitiveArray_);
- if (other.messageValue_ != null) {
- if (messageValue_ == null) {
- messageValue_ = new global::UnitTest.Issues.TestProtos.DeprecatedChild();
- }
- MessageValue.MergeFrom(other.MessageValue);
- }
- messageArray_.Add(other.messageArray_);
- if (other.EnumValue != 0) {
- EnumValue = other.EnumValue;
- }
- enumArray_.Add(other.enumArray_);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void MergeFrom(pb::CodedInputStream input) {
- uint tag;
- while ((tag = input.ReadTag()) != 0) {
- switch(tag) {
- default:
- input.SkipLastField();
- break;
- case 8: {
- PrimitiveValue = input.ReadInt32();
- break;
- }
- case 18:
- case 16: {
- primitiveArray_.AddEntriesFrom(input, _repeated_primitiveArray_codec);
- break;
- }
- case 26: {
- if (messageValue_ == null) {
- messageValue_ = new global::UnitTest.Issues.TestProtos.DeprecatedChild();
- }
- input.ReadMessage(messageValue_);
- break;
- }
- case 34: {
- messageArray_.AddEntriesFrom(input, _repeated_messageArray_codec);
- break;
- }
- case 40: {
- enumValue_ = (global::UnitTest.Issues.TestProtos.DeprecatedEnum) input.ReadEnum();
- break;
- }
- case 50:
- case 48: {
- enumArray_.AddEntriesFrom(input, _repeated_enumArray_codec);
- break;
- }
- }
- }
- }
-
- }
-
- /// <summary>
- /// Issue 45: http://code.google.com/p/protobuf-csharp-port/issues/detail?id=45
- /// </summary>
- public sealed partial class ItemField : pb::IMessage<ItemField> {
- private static readonly pb::MessageParser<ItemField> _parser = new pb::MessageParser<ItemField>(() => new ItemField());
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public static pb::MessageParser<ItemField> Parser { get { return _parser; } }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public static pbr::MessageDescriptor Descriptor {
- get { return global::UnitTest.Issues.TestProtos.UnittestIssuesReflection.Descriptor.MessageTypes[4]; }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- pbr::MessageDescriptor pb::IMessage.Descriptor {
- get { return Descriptor; }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public ItemField() {
- OnConstruction();
- }
-
- partial void OnConstruction();
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public ItemField(ItemField other) : this() {
- item_ = other.item_;
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public ItemField Clone() {
- return new ItemField(this);
- }
-
- /// <summary>Field number for the "item" field.</summary>
- public const int ItemFieldNumber = 1;
- private int item_;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public int Item {
- get { return item_; }
- set {
- item_ = value;
- }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public override bool Equals(object other) {
- return Equals(other as ItemField);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public bool Equals(ItemField other) {
- if (ReferenceEquals(other, null)) {
- return false;
- }
- if (ReferenceEquals(other, this)) {
- return true;
- }
- if (Item != other.Item) return false;
- return true;
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public override int GetHashCode() {
- int hash = 1;
- if (Item != 0) hash ^= Item.GetHashCode();
- return hash;
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public override string ToString() {
- return pb::JsonFormatter.ToDiagnosticString(this);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void WriteTo(pb::CodedOutputStream output) {
- if (Item != 0) {
- output.WriteRawTag(8);
- output.WriteInt32(Item);
- }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public int CalculateSize() {
- int size = 0;
- if (Item != 0) {
- size += 1 + pb::CodedOutputStream.ComputeInt32Size(Item);
- }
- return size;
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void MergeFrom(ItemField other) {
- if (other == null) {
- return;
- }
- if (other.Item != 0) {
- Item = other.Item;
- }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void MergeFrom(pb::CodedInputStream input) {
- uint tag;
- while ((tag = input.ReadTag()) != 0) {
- switch(tag) {
- default:
- input.SkipLastField();
- break;
- case 8: {
- Item = input.ReadInt32();
- break;
- }
- }
- }
- }
-
- }
-
- public sealed partial class ReservedNames : pb::IMessage<ReservedNames> {
- private static readonly pb::MessageParser<ReservedNames> _parser = new pb::MessageParser<ReservedNames>(() => new ReservedNames());
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public static pb::MessageParser<ReservedNames> Parser { get { return _parser; } }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public static pbr::MessageDescriptor Descriptor {
- get { return global::UnitTest.Issues.TestProtos.UnittestIssuesReflection.Descriptor.MessageTypes[5]; }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- pbr::MessageDescriptor pb::IMessage.Descriptor {
- get { return Descriptor; }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public ReservedNames() {
- OnConstruction();
- }
-
- partial void OnConstruction();
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public ReservedNames(ReservedNames other) : this() {
- types_ = other.types_;
- descriptor_ = other.descriptor_;
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public ReservedNames Clone() {
- return new ReservedNames(this);
- }
-
- /// <summary>Field number for the "types" field.</summary>
- public const int Types_FieldNumber = 1;
- private int types_;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public int Types_ {
- get { return types_; }
- set {
- types_ = value;
- }
- }
-
- /// <summary>Field number for the "descriptor" field.</summary>
- public const int Descriptor_FieldNumber = 2;
- private int descriptor_;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public int Descriptor_ {
- get { return descriptor_; }
- set {
- descriptor_ = value;
- }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public override bool Equals(object other) {
- return Equals(other as ReservedNames);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public bool Equals(ReservedNames other) {
- if (ReferenceEquals(other, null)) {
- return false;
- }
- if (ReferenceEquals(other, this)) {
- return true;
- }
- if (Types_ != other.Types_) return false;
- if (Descriptor_ != other.Descriptor_) return false;
- return true;
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public override int GetHashCode() {
- int hash = 1;
- if (Types_ != 0) hash ^= Types_.GetHashCode();
- if (Descriptor_ != 0) hash ^= Descriptor_.GetHashCode();
- return hash;
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public override string ToString() {
- return pb::JsonFormatter.ToDiagnosticString(this);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void WriteTo(pb::CodedOutputStream output) {
- if (Types_ != 0) {
- output.WriteRawTag(8);
- output.WriteInt32(Types_);
- }
- if (Descriptor_ != 0) {
- output.WriteRawTag(16);
- output.WriteInt32(Descriptor_);
- }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public int CalculateSize() {
- int size = 0;
- if (Types_ != 0) {
- size += 1 + pb::CodedOutputStream.ComputeInt32Size(Types_);
- }
- if (Descriptor_ != 0) {
- size += 1 + pb::CodedOutputStream.ComputeInt32Size(Descriptor_);
- }
- return size;
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void MergeFrom(ReservedNames other) {
- if (other == null) {
- return;
- }
- if (other.Types_ != 0) {
- Types_ = other.Types_;
- }
- if (other.Descriptor_ != 0) {
- Descriptor_ = other.Descriptor_;
- }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void MergeFrom(pb::CodedInputStream input) {
- uint tag;
- while ((tag = input.ReadTag()) != 0) {
- switch(tag) {
- default:
- input.SkipLastField();
- break;
- case 8: {
- Types_ = input.ReadInt32();
- break;
- }
- case 16: {
- Descriptor_ = input.ReadInt32();
- break;
- }
- }
- }
- }
-
- #region Nested types
- /// <summary>Container for nested types declared in the ReservedNames message type.</summary>
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public static partial class Types {
- /// <summary>
- /// Force a nested type called Types
- /// </summary>
- public sealed partial class SomeNestedType : pb::IMessage<SomeNestedType> {
- private static readonly pb::MessageParser<SomeNestedType> _parser = new pb::MessageParser<SomeNestedType>(() => new SomeNestedType());
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public static pb::MessageParser<SomeNestedType> Parser { get { return _parser; } }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public static pbr::MessageDescriptor Descriptor {
- get { return global::UnitTest.Issues.TestProtos.ReservedNames.Descriptor.NestedTypes[0]; }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- pbr::MessageDescriptor pb::IMessage.Descriptor {
- get { return Descriptor; }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public SomeNestedType() {
- OnConstruction();
- }
-
- partial void OnConstruction();
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public SomeNestedType(SomeNestedType other) : this() {
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public SomeNestedType Clone() {
- return new SomeNestedType(this);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public override bool Equals(object other) {
- return Equals(other as SomeNestedType);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public bool Equals(SomeNestedType other) {
- if (ReferenceEquals(other, null)) {
- return false;
- }
- if (ReferenceEquals(other, this)) {
- return true;
- }
- return true;
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public override int GetHashCode() {
- int hash = 1;
- return hash;
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public override string ToString() {
- return pb::JsonFormatter.ToDiagnosticString(this);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void WriteTo(pb::CodedOutputStream output) {
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public int CalculateSize() {
- int size = 0;
- return size;
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void MergeFrom(SomeNestedType other) {
- if (other == null) {
- return;
- }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void MergeFrom(pb::CodedInputStream input) {
- uint tag;
- while ((tag = input.ReadTag()) != 0) {
- switch(tag) {
- default:
- input.SkipLastField();
- break;
- }
- }
- }
-
- }
-
- }
- #endregion
-
- }
-
- /// <summary>
- /// These fields are deliberately not declared in numeric
- /// order, and the oneof fields aren't contiguous either.
- /// This allows for reasonably robust tests of JSON output
- /// ordering.
- /// TestFieldOrderings in unittest_proto3.proto is similar,
- /// but doesn't include oneofs.
- /// TODO: Consider adding oneofs to TestFieldOrderings, although
- /// that will require fixing other tests in multiple platforms.
- /// Alternatively, consider just adding this to
- /// unittest_proto3.proto if multiple platforms want it.
- /// </summary>
- public sealed partial class TestJsonFieldOrdering : pb::IMessage<TestJsonFieldOrdering> {
- private static readonly pb::MessageParser<TestJsonFieldOrdering> _parser = new pb::MessageParser<TestJsonFieldOrdering>(() => new TestJsonFieldOrdering());
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public static pb::MessageParser<TestJsonFieldOrdering> Parser { get { return _parser; } }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public static pbr::MessageDescriptor Descriptor {
- get { return global::UnitTest.Issues.TestProtos.UnittestIssuesReflection.Descriptor.MessageTypes[6]; }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- pbr::MessageDescriptor pb::IMessage.Descriptor {
- get { return Descriptor; }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public TestJsonFieldOrdering() {
- OnConstruction();
- }
-
- partial void OnConstruction();
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public TestJsonFieldOrdering(TestJsonFieldOrdering other) : this() {
- plainInt32_ = other.plainInt32_;
- plainString_ = other.plainString_;
- switch (other.O1Case) {
- case O1OneofCase.O1String:
- O1String = other.O1String;
- break;
- case O1OneofCase.O1Int32:
- O1Int32 = other.O1Int32;
- break;
- }
-
- switch (other.O2Case) {
- case O2OneofCase.O2Int32:
- O2Int32 = other.O2Int32;
- break;
- case O2OneofCase.O2String:
- O2String = other.O2String;
- break;
- }
-
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public TestJsonFieldOrdering Clone() {
- return new TestJsonFieldOrdering(this);
- }
-
- /// <summary>Field number for the "plain_int32" field.</summary>
- public const int PlainInt32FieldNumber = 4;
- private int plainInt32_;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public int PlainInt32 {
- get { return plainInt32_; }
- set {
- plainInt32_ = value;
- }
- }
-
- /// <summary>Field number for the "o1_string" field.</summary>
- public const int O1StringFieldNumber = 2;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public string O1String {
- get { return o1Case_ == O1OneofCase.O1String ? (string) o1_ : ""; }
- set {
- o1_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
- o1Case_ = O1OneofCase.O1String;
- }
- }
-
- /// <summary>Field number for the "o1_int32" field.</summary>
- public const int O1Int32FieldNumber = 5;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public int O1Int32 {
- get { return o1Case_ == O1OneofCase.O1Int32 ? (int) o1_ : 0; }
- set {
- o1_ = value;
- o1Case_ = O1OneofCase.O1Int32;
- }
- }
-
- /// <summary>Field number for the "plain_string" field.</summary>
- public const int PlainStringFieldNumber = 1;
- private string plainString_ = "";
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public string PlainString {
- get { return plainString_; }
- set {
- plainString_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
- }
- }
-
- /// <summary>Field number for the "o2_int32" field.</summary>
- public const int O2Int32FieldNumber = 6;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public int O2Int32 {
- get { return o2Case_ == O2OneofCase.O2Int32 ? (int) o2_ : 0; }
- set {
- o2_ = value;
- o2Case_ = O2OneofCase.O2Int32;
- }
- }
-
- /// <summary>Field number for the "o2_string" field.</summary>
- public const int O2StringFieldNumber = 3;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public string O2String {
- get { return o2Case_ == O2OneofCase.O2String ? (string) o2_ : ""; }
- set {
- o2_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
- o2Case_ = O2OneofCase.O2String;
- }
- }
-
- private object o1_;
- /// <summary>Enum of possible cases for the "o1" oneof.</summary>
- public enum O1OneofCase {
- None = 0,
- O1String = 2,
- O1Int32 = 5,
- }
- private O1OneofCase o1Case_ = O1OneofCase.None;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public O1OneofCase O1Case {
- get { return o1Case_; }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void ClearO1() {
- o1Case_ = O1OneofCase.None;
- o1_ = null;
- }
-
- private object o2_;
- /// <summary>Enum of possible cases for the "o2" oneof.</summary>
- public enum O2OneofCase {
- None = 0,
- O2Int32 = 6,
- O2String = 3,
- }
- private O2OneofCase o2Case_ = O2OneofCase.None;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public O2OneofCase O2Case {
- get { return o2Case_; }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void ClearO2() {
- o2Case_ = O2OneofCase.None;
- o2_ = null;
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public override bool Equals(object other) {
- return Equals(other as TestJsonFieldOrdering);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public bool Equals(TestJsonFieldOrdering other) {
- if (ReferenceEquals(other, null)) {
- return false;
- }
- if (ReferenceEquals(other, this)) {
- return true;
- }
- if (PlainInt32 != other.PlainInt32) return false;
- if (O1String != other.O1String) return false;
- if (O1Int32 != other.O1Int32) return false;
- if (PlainString != other.PlainString) return false;
- if (O2Int32 != other.O2Int32) return false;
- if (O2String != other.O2String) return false;
- if (O1Case != other.O1Case) return false;
- if (O2Case != other.O2Case) return false;
- return true;
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public override int GetHashCode() {
- int hash = 1;
- if (PlainInt32 != 0) hash ^= PlainInt32.GetHashCode();
- if (o1Case_ == O1OneofCase.O1String) hash ^= O1String.GetHashCode();
- if (o1Case_ == O1OneofCase.O1Int32) hash ^= O1Int32.GetHashCode();
- if (PlainString.Length != 0) hash ^= PlainString.GetHashCode();
- if (o2Case_ == O2OneofCase.O2Int32) hash ^= O2Int32.GetHashCode();
- if (o2Case_ == O2OneofCase.O2String) hash ^= O2String.GetHashCode();
- hash ^= (int) o1Case_;
- hash ^= (int) o2Case_;
- return hash;
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public override string ToString() {
- return pb::JsonFormatter.ToDiagnosticString(this);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void WriteTo(pb::CodedOutputStream output) {
- if (PlainString.Length != 0) {
- output.WriteRawTag(10);
- output.WriteString(PlainString);
- }
- if (o1Case_ == O1OneofCase.O1String) {
- output.WriteRawTag(18);
- output.WriteString(O1String);
- }
- if (o2Case_ == O2OneofCase.O2String) {
- output.WriteRawTag(26);
- output.WriteString(O2String);
- }
- if (PlainInt32 != 0) {
- output.WriteRawTag(32);
- output.WriteInt32(PlainInt32);
- }
- if (o1Case_ == O1OneofCase.O1Int32) {
- output.WriteRawTag(40);
- output.WriteInt32(O1Int32);
- }
- if (o2Case_ == O2OneofCase.O2Int32) {
- output.WriteRawTag(48);
- output.WriteInt32(O2Int32);
- }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public int CalculateSize() {
- int size = 0;
- if (PlainInt32 != 0) {
- size += 1 + pb::CodedOutputStream.ComputeInt32Size(PlainInt32);
- }
- if (o1Case_ == O1OneofCase.O1String) {
- size += 1 + pb::CodedOutputStream.ComputeStringSize(O1String);
- }
- if (o1Case_ == O1OneofCase.O1Int32) {
- size += 1 + pb::CodedOutputStream.ComputeInt32Size(O1Int32);
- }
- if (PlainString.Length != 0) {
- size += 1 + pb::CodedOutputStream.ComputeStringSize(PlainString);
- }
- if (o2Case_ == O2OneofCase.O2Int32) {
- size += 1 + pb::CodedOutputStream.ComputeInt32Size(O2Int32);
- }
- if (o2Case_ == O2OneofCase.O2String) {
- size += 1 + pb::CodedOutputStream.ComputeStringSize(O2String);
- }
- return size;
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void MergeFrom(TestJsonFieldOrdering other) {
- if (other == null) {
- return;
- }
- if (other.PlainInt32 != 0) {
- PlainInt32 = other.PlainInt32;
- }
- if (other.PlainString.Length != 0) {
- PlainString = other.PlainString;
- }
- switch (other.O1Case) {
- case O1OneofCase.O1String:
- O1String = other.O1String;
- break;
- case O1OneofCase.O1Int32:
- O1Int32 = other.O1Int32;
- break;
- }
-
- switch (other.O2Case) {
- case O2OneofCase.O2Int32:
- O2Int32 = other.O2Int32;
- break;
- case O2OneofCase.O2String:
- O2String = other.O2String;
- break;
- }
-
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void MergeFrom(pb::CodedInputStream input) {
- uint tag;
- while ((tag = input.ReadTag()) != 0) {
- switch(tag) {
- default:
- input.SkipLastField();
- break;
- case 10: {
- PlainString = input.ReadString();
- break;
- }
- case 18: {
- O1String = input.ReadString();
- break;
- }
- case 26: {
- O2String = input.ReadString();
- break;
- }
- case 32: {
- PlainInt32 = input.ReadInt32();
- break;
- }
- case 40: {
- O1Int32 = input.ReadInt32();
- break;
- }
- case 48: {
- O2Int32 = input.ReadInt32();
- break;
- }
- }
- }
- }
-
- }
-
- public sealed partial class TestJsonName : pb::IMessage<TestJsonName> {
- private static readonly pb::MessageParser<TestJsonName> _parser = new pb::MessageParser<TestJsonName>(() => new TestJsonName());
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public static pb::MessageParser<TestJsonName> Parser { get { return _parser; } }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public static pbr::MessageDescriptor Descriptor {
- get { return global::UnitTest.Issues.TestProtos.UnittestIssuesReflection.Descriptor.MessageTypes[7]; }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- pbr::MessageDescriptor pb::IMessage.Descriptor {
- get { return Descriptor; }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public TestJsonName() {
- OnConstruction();
- }
-
- partial void OnConstruction();
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public TestJsonName(TestJsonName other) : this() {
- name_ = other.name_;
- description_ = other.description_;
- guid_ = other.guid_;
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public TestJsonName Clone() {
- return new TestJsonName(this);
- }
-
- /// <summary>Field number for the "name" field.</summary>
- public const int NameFieldNumber = 1;
- private string name_ = "";
- /// <summary>
- /// Message for testing the effects for of the json_name option
- /// </summary>
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public string Name {
- get { return name_; }
- set {
- name_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
- }
- }
-
- /// <summary>Field number for the "description" field.</summary>
- public const int DescriptionFieldNumber = 2;
- private string description_ = "";
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public string Description {
- get { return description_; }
- set {
- description_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
- }
- }
-
- /// <summary>Field number for the "guid" field.</summary>
- public const int GuidFieldNumber = 3;
- private string guid_ = "";
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public string Guid {
- get { return guid_; }
- set {
- guid_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
- }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public override bool Equals(object other) {
- return Equals(other as TestJsonName);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public bool Equals(TestJsonName other) {
- if (ReferenceEquals(other, null)) {
- return false;
- }
- if (ReferenceEquals(other, this)) {
- return true;
- }
- if (Name != other.Name) return false;
- if (Description != other.Description) return false;
- if (Guid != other.Guid) return false;
- return true;
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public override int GetHashCode() {
- int hash = 1;
- if (Name.Length != 0) hash ^= Name.GetHashCode();
- if (Description.Length != 0) hash ^= Description.GetHashCode();
- if (Guid.Length != 0) hash ^= Guid.GetHashCode();
- return hash;
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public override string ToString() {
- return pb::JsonFormatter.ToDiagnosticString(this);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void WriteTo(pb::CodedOutputStream output) {
- if (Name.Length != 0) {
- output.WriteRawTag(10);
- output.WriteString(Name);
- }
- if (Description.Length != 0) {
- output.WriteRawTag(18);
- output.WriteString(Description);
- }
- if (Guid.Length != 0) {
- output.WriteRawTag(26);
- output.WriteString(Guid);
- }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public int CalculateSize() {
- int size = 0;
- if (Name.Length != 0) {
- size += 1 + pb::CodedOutputStream.ComputeStringSize(Name);
- }
- if (Description.Length != 0) {
- size += 1 + pb::CodedOutputStream.ComputeStringSize(Description);
- }
- if (Guid.Length != 0) {
- size += 1 + pb::CodedOutputStream.ComputeStringSize(Guid);
- }
- return size;
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void MergeFrom(TestJsonName other) {
- if (other == null) {
- return;
- }
- if (other.Name.Length != 0) {
- Name = other.Name;
- }
- if (other.Description.Length != 0) {
- Description = other.Description;
- }
- if (other.Guid.Length != 0) {
- Guid = other.Guid;
- }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void MergeFrom(pb::CodedInputStream input) {
- uint tag;
- while ((tag = input.ReadTag()) != 0) {
- switch(tag) {
- default:
- input.SkipLastField();
- break;
- case 10: {
- Name = input.ReadString();
- break;
- }
- case 18: {
- Description = input.ReadString();
- break;
- }
- case 26: {
- Guid = input.ReadString();
- break;
- }
- }
- }
- }
-
- }
-
- #endregion
-
-}
-
-#endregion Designer generated code
diff --git a/csharp/src/Google.Protobuf.Test/TestProtos/UnittestProto3.cs b/csharp/src/Google.Protobuf.Test/TestProtos/UnittestProto3.cs
deleted file mode 100644
index 7e71f94d..00000000
--- a/csharp/src/Google.Protobuf.Test/TestProtos/UnittestProto3.cs
+++ /dev/null
@@ -1,6646 +0,0 @@
-// Generated by the protocol buffer compiler. DO NOT EDIT!
-// source: google/protobuf/unittest_proto3.proto
-#pragma warning disable 1591, 0612, 3021
-#region Designer generated code
-
-using pb = global::Google.Protobuf;
-using pbc = global::Google.Protobuf.Collections;
-using pbr = global::Google.Protobuf.Reflection;
-using scg = global::System.Collections.Generic;
-namespace Google.Protobuf.TestProtos {
-
- /// <summary>Holder for reflection information generated from google/protobuf/unittest_proto3.proto</summary>
- public static partial class UnittestProto3Reflection {
-
- #region Descriptor
- /// <summary>File descriptor for google/protobuf/unittest_proto3.proto</summary>
- public static pbr::FileDescriptor Descriptor {
- get { return descriptor; }
- }
- private static pbr::FileDescriptor descriptor;
-
- static UnittestProto3Reflection() {
- byte[] descriptorData = global::System.Convert.FromBase64String(
- string.Concat(
- "CiVnb29nbGUvcHJvdG9idWYvdW5pdHRlc3RfcHJvdG8zLnByb3RvEhFwcm90",
- "b2J1Zl91bml0dGVzdBosZ29vZ2xlL3Byb3RvYnVmL3VuaXR0ZXN0X2ltcG9y",
- "dF9wcm90bzMucHJvdG8i8A8KDFRlc3RBbGxUeXBlcxIUCgxzaW5nbGVfaW50",
- "MzIYASABKAUSFAoMc2luZ2xlX2ludDY0GAIgASgDEhUKDXNpbmdsZV91aW50",
- "MzIYAyABKA0SFQoNc2luZ2xlX3VpbnQ2NBgEIAEoBBIVCg1zaW5nbGVfc2lu",
- "dDMyGAUgASgREhUKDXNpbmdsZV9zaW50NjQYBiABKBISFgoOc2luZ2xlX2Zp",
- "eGVkMzIYByABKAcSFgoOc2luZ2xlX2ZpeGVkNjQYCCABKAYSFwoPc2luZ2xl",
- "X3NmaXhlZDMyGAkgASgPEhcKD3NpbmdsZV9zZml4ZWQ2NBgKIAEoEBIUCgxz",
- "aW5nbGVfZmxvYXQYCyABKAISFQoNc2luZ2xlX2RvdWJsZRgMIAEoARITCgtz",
- "aW5nbGVfYm9vbBgNIAEoCBIVCg1zaW5nbGVfc3RyaW5nGA4gASgJEhQKDHNp",
- "bmdsZV9ieXRlcxgPIAEoDBJMChVzaW5nbGVfbmVzdGVkX21lc3NhZ2UYEiAB",
- "KAsyLS5wcm90b2J1Zl91bml0dGVzdC5UZXN0QWxsVHlwZXMuTmVzdGVkTWVz",
- "c2FnZRJBChZzaW5nbGVfZm9yZWlnbl9tZXNzYWdlGBMgASgLMiEucHJvdG9i",
- "dWZfdW5pdHRlc3QuRm9yZWlnbk1lc3NhZ2USRgoVc2luZ2xlX2ltcG9ydF9t",
- "ZXNzYWdlGBQgASgLMicucHJvdG9idWZfdW5pdHRlc3RfaW1wb3J0LkltcG9y",
- "dE1lc3NhZ2USRgoSc2luZ2xlX25lc3RlZF9lbnVtGBUgASgOMioucHJvdG9i",
- "dWZfdW5pdHRlc3QuVGVzdEFsbFR5cGVzLk5lc3RlZEVudW0SOwoTc2luZ2xl",
- "X2ZvcmVpZ25fZW51bRgWIAEoDjIeLnByb3RvYnVmX3VuaXR0ZXN0LkZvcmVp",
- "Z25FbnVtEkAKEnNpbmdsZV9pbXBvcnRfZW51bRgXIAEoDjIkLnByb3RvYnVm",
- "X3VuaXR0ZXN0X2ltcG9ydC5JbXBvcnRFbnVtElMKHHNpbmdsZV9wdWJsaWNf",
- "aW1wb3J0X21lc3NhZ2UYGiABKAsyLS5wcm90b2J1Zl91bml0dGVzdF9pbXBv",
- "cnQuUHVibGljSW1wb3J0TWVzc2FnZRIWCg5yZXBlYXRlZF9pbnQzMhgfIAMo",
- "BRIWCg5yZXBlYXRlZF9pbnQ2NBggIAMoAxIXCg9yZXBlYXRlZF91aW50MzIY",
- "ISADKA0SFwoPcmVwZWF0ZWRfdWludDY0GCIgAygEEhcKD3JlcGVhdGVkX3Np",
- "bnQzMhgjIAMoERIXCg9yZXBlYXRlZF9zaW50NjQYJCADKBISGAoQcmVwZWF0",
- "ZWRfZml4ZWQzMhglIAMoBxIYChByZXBlYXRlZF9maXhlZDY0GCYgAygGEhkK",
- "EXJlcGVhdGVkX3NmaXhlZDMyGCcgAygPEhkKEXJlcGVhdGVkX3NmaXhlZDY0",
- "GCggAygQEhYKDnJlcGVhdGVkX2Zsb2F0GCkgAygCEhcKD3JlcGVhdGVkX2Rv",
- "dWJsZRgqIAMoARIVCg1yZXBlYXRlZF9ib29sGCsgAygIEhcKD3JlcGVhdGVk",
- "X3N0cmluZxgsIAMoCRIWCg5yZXBlYXRlZF9ieXRlcxgtIAMoDBJOChdyZXBl",
- "YXRlZF9uZXN0ZWRfbWVzc2FnZRgwIAMoCzItLnByb3RvYnVmX3VuaXR0ZXN0",
- "LlRlc3RBbGxUeXBlcy5OZXN0ZWRNZXNzYWdlEkMKGHJlcGVhdGVkX2ZvcmVp",
- "Z25fbWVzc2FnZRgxIAMoCzIhLnByb3RvYnVmX3VuaXR0ZXN0LkZvcmVpZ25N",
- "ZXNzYWdlEkgKF3JlcGVhdGVkX2ltcG9ydF9tZXNzYWdlGDIgAygLMicucHJv",
- "dG9idWZfdW5pdHRlc3RfaW1wb3J0LkltcG9ydE1lc3NhZ2USSAoUcmVwZWF0",
- "ZWRfbmVzdGVkX2VudW0YMyADKA4yKi5wcm90b2J1Zl91bml0dGVzdC5UZXN0",
- "QWxsVHlwZXMuTmVzdGVkRW51bRI9ChVyZXBlYXRlZF9mb3JlaWduX2VudW0Y",
- "NCADKA4yHi5wcm90b2J1Zl91bml0dGVzdC5Gb3JlaWduRW51bRJCChRyZXBl",
- "YXRlZF9pbXBvcnRfZW51bRg1IAMoDjIkLnByb3RvYnVmX3VuaXR0ZXN0X2lt",
- "cG9ydC5JbXBvcnRFbnVtElUKHnJlcGVhdGVkX3B1YmxpY19pbXBvcnRfbWVz",
- "c2FnZRg2IAMoCzItLnByb3RvYnVmX3VuaXR0ZXN0X2ltcG9ydC5QdWJsaWNJ",
- "bXBvcnRNZXNzYWdlEhYKDG9uZW9mX3VpbnQzMhhvIAEoDUgAEk0KFG9uZW9m",
- "X25lc3RlZF9tZXNzYWdlGHAgASgLMi0ucHJvdG9idWZfdW5pdHRlc3QuVGVz",
- "dEFsbFR5cGVzLk5lc3RlZE1lc3NhZ2VIABIWCgxvbmVvZl9zdHJpbmcYcSAB",
- "KAlIABIVCgtvbmVvZl9ieXRlcxhyIAEoDEgAGhsKDU5lc3RlZE1lc3NhZ2US",
- "CgoCYmIYASABKAUiVgoKTmVzdGVkRW51bRIbChdORVNURURfRU5VTV9VTlNQ",
- "RUNJRklFRBAAEgcKA0ZPTxABEgcKA0JBUhACEgcKA0JBWhADEhAKA05FRxD/",
- "//////////8BQg0KC29uZW9mX2ZpZWxkIrsBChJOZXN0ZWRUZXN0QWxsVHlw",
- "ZXMSNAoFY2hpbGQYASABKAsyJS5wcm90b2J1Zl91bml0dGVzdC5OZXN0ZWRU",
- "ZXN0QWxsVHlwZXMSMAoHcGF5bG9hZBgCIAEoCzIfLnByb3RvYnVmX3VuaXR0",
- "ZXN0LlRlc3RBbGxUeXBlcxI9Cg5yZXBlYXRlZF9jaGlsZBgDIAMoCzIlLnBy",
- "b3RvYnVmX3VuaXR0ZXN0Lk5lc3RlZFRlc3RBbGxUeXBlcyI0ChRUZXN0RGVw",
- "cmVjYXRlZEZpZWxkcxIcChBkZXByZWNhdGVkX2ludDMyGAEgASgFQgIYASIb",
- "Cg5Gb3JlaWduTWVzc2FnZRIJCgFjGAEgASgFIjAKElRlc3RSZXNlcnZlZEZp",
- "ZWxkc0oECAIQA0oECA8QEEoECAkQDFIDYmFyUgNiYXoiWgoRVGVzdEZvcmVp",
- "Z25OZXN0ZWQSRQoOZm9yZWlnbl9uZXN0ZWQYASABKAsyLS5wcm90b2J1Zl91",
- "bml0dGVzdC5UZXN0QWxsVHlwZXMuTmVzdGVkTWVzc2FnZSI0ChhUZXN0UmVh",
- "bGx5TGFyZ2VUYWdOdW1iZXISCQoBYRgBIAEoBRINCgJiYhj///9/IAEoBSJV",
- "ChRUZXN0UmVjdXJzaXZlTWVzc2FnZRIyCgFhGAEgASgLMicucHJvdG9idWZf",
- "dW5pdHRlc3QuVGVzdFJlY3Vyc2l2ZU1lc3NhZ2USCQoBaRgCIAEoBSJLChRU",
- "ZXN0TXV0dWFsUmVjdXJzaW9uQRIzCgJiYhgBIAEoCzInLnByb3RvYnVmX3Vu",
- "aXR0ZXN0LlRlc3RNdXR1YWxSZWN1cnNpb25CImIKFFRlc3RNdXR1YWxSZWN1",
- "cnNpb25CEjIKAWEYASABKAsyJy5wcm90b2J1Zl91bml0dGVzdC5UZXN0TXV0",
- "dWFsUmVjdXJzaW9uQRIWCg5vcHRpb25hbF9pbnQzMhgCIAEoBSLrAgoXVGVz",
- "dENhbWVsQ2FzZUZpZWxkTmFtZXMSFgoOUHJpbWl0aXZlRmllbGQYASABKAUS",
- "EwoLU3RyaW5nRmllbGQYAiABKAkSMQoJRW51bUZpZWxkGAMgASgOMh4ucHJv",
- "dG9idWZfdW5pdHRlc3QuRm9yZWlnbkVudW0SNwoMTWVzc2FnZUZpZWxkGAQg",
- "ASgLMiEucHJvdG9idWZfdW5pdHRlc3QuRm9yZWlnbk1lc3NhZ2USHgoWUmVw",
- "ZWF0ZWRQcmltaXRpdmVGaWVsZBgHIAMoBRIbChNSZXBlYXRlZFN0cmluZ0Zp",
- "ZWxkGAggAygJEjkKEVJlcGVhdGVkRW51bUZpZWxkGAkgAygOMh4ucHJvdG9i",
- "dWZfdW5pdHRlc3QuRm9yZWlnbkVudW0SPwoUUmVwZWF0ZWRNZXNzYWdlRmll",
- "bGQYCiADKAsyIS5wcm90b2J1Zl91bml0dGVzdC5Gb3JlaWduTWVzc2FnZSLH",
- "AQoSVGVzdEZpZWxkT3JkZXJpbmdzEhEKCW15X3N0cmluZxgLIAEoCRIOCgZt",
- "eV9pbnQYASABKAMSEAoIbXlfZmxvYXQYZSABKAISUwoVc2luZ2xlX25lc3Rl",
- "ZF9tZXNzYWdlGMgBIAEoCzIzLnByb3RvYnVmX3VuaXR0ZXN0LlRlc3RGaWVs",
- "ZE9yZGVyaW5ncy5OZXN0ZWRNZXNzYWdlGicKDU5lc3RlZE1lc3NhZ2USCgoC",
- "b28YAiABKAMSCgoCYmIYASABKAUiSwoRU3BhcnNlRW51bU1lc3NhZ2USNgoL",
- "c3BhcnNlX2VudW0YASABKA4yIS5wcm90b2J1Zl91bml0dGVzdC5UZXN0U3Bh",
- "cnNlRW51bSIZCglPbmVTdHJpbmcSDAoEZGF0YRgBIAEoCSIaCgpNb3JlU3Ry",
- "aW5nEgwKBGRhdGEYASADKAkiGAoIT25lQnl0ZXMSDAoEZGF0YRgBIAEoDCIZ",
- "CglNb3JlQnl0ZXMSDAoEZGF0YRgBIAEoDCIcCgxJbnQzMk1lc3NhZ2USDAoE",
- "ZGF0YRgBIAEoBSIdCg1VaW50MzJNZXNzYWdlEgwKBGRhdGEYASABKA0iHAoM",
- "SW50NjRNZXNzYWdlEgwKBGRhdGEYASABKAMiHQoNVWludDY0TWVzc2FnZRIM",
- "CgRkYXRhGAEgASgEIhsKC0Jvb2xNZXNzYWdlEgwKBGRhdGEYASABKAgicwoJ",
- "VGVzdE9uZW9mEhEKB2Zvb19pbnQYASABKAVIABIUCgpmb29fc3RyaW5nGAIg",
- "ASgJSAASNgoLZm9vX21lc3NhZ2UYAyABKAsyHy5wcm90b2J1Zl91bml0dGVz",
- "dC5UZXN0QWxsVHlwZXNIAEIFCgNmb28iqgMKD1Rlc3RQYWNrZWRUeXBlcxIY",
- "CgxwYWNrZWRfaW50MzIYWiADKAVCAhABEhgKDHBhY2tlZF9pbnQ2NBhbIAMo",
- "A0ICEAESGQoNcGFja2VkX3VpbnQzMhhcIAMoDUICEAESGQoNcGFja2VkX3Vp",
- "bnQ2NBhdIAMoBEICEAESGQoNcGFja2VkX3NpbnQzMhheIAMoEUICEAESGQoN",
- "cGFja2VkX3NpbnQ2NBhfIAMoEkICEAESGgoOcGFja2VkX2ZpeGVkMzIYYCAD",
- "KAdCAhABEhoKDnBhY2tlZF9maXhlZDY0GGEgAygGQgIQARIbCg9wYWNrZWRf",
- "c2ZpeGVkMzIYYiADKA9CAhABEhsKD3BhY2tlZF9zZml4ZWQ2NBhjIAMoEEIC",
- "EAESGAoMcGFja2VkX2Zsb2F0GGQgAygCQgIQARIZCg1wYWNrZWRfZG91Ymxl",
- "GGUgAygBQgIQARIXCgtwYWNrZWRfYm9vbBhmIAMoCEICEAESNwoLcGFja2Vk",
- "X2VudW0YZyADKA4yHi5wcm90b2J1Zl91bml0dGVzdC5Gb3JlaWduRW51bUIC",
- "EAEiyAMKEVRlc3RVbnBhY2tlZFR5cGVzEhoKDnVucGFja2VkX2ludDMyGFog",
- "AygFQgIQABIaCg51bnBhY2tlZF9pbnQ2NBhbIAMoA0ICEAASGwoPdW5wYWNr",
- "ZWRfdWludDMyGFwgAygNQgIQABIbCg91bnBhY2tlZF91aW50NjQYXSADKARC",
- "AhAAEhsKD3VucGFja2VkX3NpbnQzMhheIAMoEUICEAASGwoPdW5wYWNrZWRf",
- "c2ludDY0GF8gAygSQgIQABIcChB1bnBhY2tlZF9maXhlZDMyGGAgAygHQgIQ",
- "ABIcChB1bnBhY2tlZF9maXhlZDY0GGEgAygGQgIQABIdChF1bnBhY2tlZF9z",
- "Zml4ZWQzMhhiIAMoD0ICEAASHQoRdW5wYWNrZWRfc2ZpeGVkNjQYYyADKBBC",
- "AhAAEhoKDnVucGFja2VkX2Zsb2F0GGQgAygCQgIQABIbCg91bnBhY2tlZF9k",
- "b3VibGUYZSADKAFCAhAAEhkKDXVucGFja2VkX2Jvb2wYZiADKAhCAhAAEjkK",
- "DXVucGFja2VkX2VudW0YZyADKA4yHi5wcm90b2J1Zl91bml0dGVzdC5Gb3Jl",
- "aWduRW51bUICEAAiwAEKI1Rlc3RSZXBlYXRlZFNjYWxhckRpZmZlcmVudFRh",
- "Z1NpemVzEhgKEHJlcGVhdGVkX2ZpeGVkMzIYDCADKAcSFgoOcmVwZWF0ZWRf",
- "aW50MzIYDSADKAUSGQoQcmVwZWF0ZWRfZml4ZWQ2NBj+DyADKAYSFwoOcmVw",
- "ZWF0ZWRfaW50NjQY/w8gAygDEhgKDnJlcGVhdGVkX2Zsb2F0GP7/DyADKAIS",
- "GQoPcmVwZWF0ZWRfdWludDY0GP//DyADKAQiKAobVGVzdENvbW1lbnRJbmpl",
- "Y3Rpb25NZXNzYWdlEgkKAWEYASABKAkiDAoKRm9vUmVxdWVzdCINCgtGb29S",
- "ZXNwb25zZSISChBGb29DbGllbnRNZXNzYWdlIhIKEEZvb1NlcnZlck1lc3Nh",
- "Z2UiDAoKQmFyUmVxdWVzdCINCgtCYXJSZXNwb25zZSpZCgtGb3JlaWduRW51",
- "bRIXChNGT1JFSUdOX1VOU1BFQ0lGSUVEEAASDwoLRk9SRUlHTl9GT08QBBIP",
- "CgtGT1JFSUdOX0JBUhAFEg8KC0ZPUkVJR05fQkFaEAYqdQoUVGVzdEVudW1X",
- "aXRoRHVwVmFsdWUSKAokVEVTVF9FTlVNX1dJVEhfRFVQX1ZBTFVFX1VOU1BF",
- "Q0lGSUVEEAASCAoERk9PMRABEggKBEJBUjEQAhIHCgNCQVoQAxIICgRGT08y",
- "EAESCAoEQkFSMhACGgIQASqdAQoOVGVzdFNwYXJzZUVudW0SIAocVEVTVF9T",
- "UEFSU0VfRU5VTV9VTlNQRUNJRklFRBAAEgwKCFNQQVJTRV9BEHsSDgoIU1BB",
- "UlNFX0IQpucDEg8KCFNQQVJTRV9DELKxgAYSFQoIU1BBUlNFX0QQ8f//////",
- "////ARIVCghTUEFSU0VfRRC03vz///////8BEgwKCFNQQVJTRV9HEAIymQEK",
- "C1Rlc3RTZXJ2aWNlEkQKA0ZvbxIdLnByb3RvYnVmX3VuaXR0ZXN0LkZvb1Jl",
- "cXVlc3QaHi5wcm90b2J1Zl91bml0dGVzdC5Gb29SZXNwb25zZRJECgNCYXIS",
- "HS5wcm90b2J1Zl91bml0dGVzdC5CYXJSZXF1ZXN0Gh4ucHJvdG9idWZfdW5p",
- "dHRlc3QuQmFyUmVzcG9uc2VCOkINVW5pdHRlc3RQcm90b0gBgAEBiAEBkAEB",
- "+AEBqgIaR29vZ2xlLlByb3RvYnVmLlRlc3RQcm90b3NiBnByb3RvMw=="));
- descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData,
- new pbr::FileDescriptor[] { global::Google.Protobuf.TestProtos.UnittestImportProto3Reflection.Descriptor, },
- new pbr::GeneratedClrTypeInfo(new[] {typeof(global::Google.Protobuf.TestProtos.ForeignEnum), typeof(global::Google.Protobuf.TestProtos.TestEnumWithDupValue), typeof(global::Google.Protobuf.TestProtos.TestSparseEnum), }, new pbr::GeneratedClrTypeInfo[] {
- new pbr::GeneratedClrTypeInfo(typeof(global::Google.Protobuf.TestProtos.TestAllTypes), global::Google.Protobuf.TestProtos.TestAllTypes.Parser, new[]{ "SingleInt32", "SingleInt64", "SingleUint32", "SingleUint64", "SingleSint32", "SingleSint64", "SingleFixed32", "SingleFixed64", "SingleSfixed32", "SingleSfixed64", "SingleFloat", "SingleDouble", "SingleBool", "SingleString", "SingleBytes", "SingleNestedMessage", "SingleForeignMessage", "SingleImportMessage", "SingleNestedEnum", "SingleForeignEnum", "SingleImportEnum", "SinglePublicImportMessage", "RepeatedInt32", "RepeatedInt64", "RepeatedUint32", "RepeatedUint64", "RepeatedSint32", "RepeatedSint64", "RepeatedFixed32", "RepeatedFixed64", "RepeatedSfixed32", "RepeatedSfixed64", "RepeatedFloat", "RepeatedDouble", "RepeatedBool", "RepeatedString", "RepeatedBytes", "RepeatedNestedMessage", "RepeatedForeignMessage", "RepeatedImportMessage", "RepeatedNestedEnum", "RepeatedForeignEnum", "RepeatedImportEnum", "RepeatedPublicImportMessage", "OneofUint32", "OneofNestedMessage", "OneofString", "OneofBytes" }, new[]{ "OneofField" }, new[]{ typeof(global::Google.Protobuf.TestProtos.TestAllTypes.Types.NestedEnum) }, new pbr::GeneratedClrTypeInfo[] { new pbr::GeneratedClrTypeInfo(typeof(global::Google.Protobuf.TestProtos.TestAllTypes.Types.NestedMessage), global::Google.Protobuf.TestProtos.TestAllTypes.Types.NestedMessage.Parser, new[]{ "Bb" }, null, null, null)}),
- new pbr::GeneratedClrTypeInfo(typeof(global::Google.Protobuf.TestProtos.NestedTestAllTypes), global::Google.Protobuf.TestProtos.NestedTestAllTypes.Parser, new[]{ "Child", "Payload", "RepeatedChild" }, null, null, null),
- new pbr::GeneratedClrTypeInfo(typeof(global::Google.Protobuf.TestProtos.TestDeprecatedFields), global::Google.Protobuf.TestProtos.TestDeprecatedFields.Parser, new[]{ "DeprecatedInt32" }, null, null, null),
- new pbr::GeneratedClrTypeInfo(typeof(global::Google.Protobuf.TestProtos.ForeignMessage), global::Google.Protobuf.TestProtos.ForeignMessage.Parser, new[]{ "C" }, null, null, null),
- new pbr::GeneratedClrTypeInfo(typeof(global::Google.Protobuf.TestProtos.TestReservedFields), global::Google.Protobuf.TestProtos.TestReservedFields.Parser, null, null, null, null),
- new pbr::GeneratedClrTypeInfo(typeof(global::Google.Protobuf.TestProtos.TestForeignNested), global::Google.Protobuf.TestProtos.TestForeignNested.Parser, new[]{ "ForeignNested" }, null, null, null),
- new pbr::GeneratedClrTypeInfo(typeof(global::Google.Protobuf.TestProtos.TestReallyLargeTagNumber), global::Google.Protobuf.TestProtos.TestReallyLargeTagNumber.Parser, new[]{ "A", "Bb" }, null, null, null),
- new pbr::GeneratedClrTypeInfo(typeof(global::Google.Protobuf.TestProtos.TestRecursiveMessage), global::Google.Protobuf.TestProtos.TestRecursiveMessage.Parser, new[]{ "A", "I" }, null, null, null),
- new pbr::GeneratedClrTypeInfo(typeof(global::Google.Protobuf.TestProtos.TestMutualRecursionA), global::Google.Protobuf.TestProtos.TestMutualRecursionA.Parser, new[]{ "Bb" }, null, null, null),
- new pbr::GeneratedClrTypeInfo(typeof(global::Google.Protobuf.TestProtos.TestMutualRecursionB), global::Google.Protobuf.TestProtos.TestMutualRecursionB.Parser, new[]{ "A", "OptionalInt32" }, null, null, null),
- new pbr::GeneratedClrTypeInfo(typeof(global::Google.Protobuf.TestProtos.TestCamelCaseFieldNames), global::Google.Protobuf.TestProtos.TestCamelCaseFieldNames.Parser, new[]{ "PrimitiveField", "StringField", "EnumField", "MessageField", "RepeatedPrimitiveField", "RepeatedStringField", "RepeatedEnumField", "RepeatedMessageField" }, null, null, null),
- new pbr::GeneratedClrTypeInfo(typeof(global::Google.Protobuf.TestProtos.TestFieldOrderings), global::Google.Protobuf.TestProtos.TestFieldOrderings.Parser, new[]{ "MyString", "MyInt", "MyFloat", "SingleNestedMessage" }, null, null, new pbr::GeneratedClrTypeInfo[] { new pbr::GeneratedClrTypeInfo(typeof(global::Google.Protobuf.TestProtos.TestFieldOrderings.Types.NestedMessage), global::Google.Protobuf.TestProtos.TestFieldOrderings.Types.NestedMessage.Parser, new[]{ "Oo", "Bb" }, null, null, null)}),
- new pbr::GeneratedClrTypeInfo(typeof(global::Google.Protobuf.TestProtos.SparseEnumMessage), global::Google.Protobuf.TestProtos.SparseEnumMessage.Parser, new[]{ "SparseEnum" }, null, null, null),
- new pbr::GeneratedClrTypeInfo(typeof(global::Google.Protobuf.TestProtos.OneString), global::Google.Protobuf.TestProtos.OneString.Parser, new[]{ "Data" }, null, null, null),
- new pbr::GeneratedClrTypeInfo(typeof(global::Google.Protobuf.TestProtos.MoreString), global::Google.Protobuf.TestProtos.MoreString.Parser, new[]{ "Data" }, null, null, null),
- new pbr::GeneratedClrTypeInfo(typeof(global::Google.Protobuf.TestProtos.OneBytes), global::Google.Protobuf.TestProtos.OneBytes.Parser, new[]{ "Data" }, null, null, null),
- new pbr::GeneratedClrTypeInfo(typeof(global::Google.Protobuf.TestProtos.MoreBytes), global::Google.Protobuf.TestProtos.MoreBytes.Parser, new[]{ "Data" }, null, null, null),
- new pbr::GeneratedClrTypeInfo(typeof(global::Google.Protobuf.TestProtos.Int32Message), global::Google.Protobuf.TestProtos.Int32Message.Parser, new[]{ "Data" }, null, null, null),
- new pbr::GeneratedClrTypeInfo(typeof(global::Google.Protobuf.TestProtos.Uint32Message), global::Google.Protobuf.TestProtos.Uint32Message.Parser, new[]{ "Data" }, null, null, null),
- new pbr::GeneratedClrTypeInfo(typeof(global::Google.Protobuf.TestProtos.Int64Message), global::Google.Protobuf.TestProtos.Int64Message.Parser, new[]{ "Data" }, null, null, null),
- new pbr::GeneratedClrTypeInfo(typeof(global::Google.Protobuf.TestProtos.Uint64Message), global::Google.Protobuf.TestProtos.Uint64Message.Parser, new[]{ "Data" }, null, null, null),
- new pbr::GeneratedClrTypeInfo(typeof(global::Google.Protobuf.TestProtos.BoolMessage), global::Google.Protobuf.TestProtos.BoolMessage.Parser, new[]{ "Data" }, null, null, null),
- new pbr::GeneratedClrTypeInfo(typeof(global::Google.Protobuf.TestProtos.TestOneof), global::Google.Protobuf.TestProtos.TestOneof.Parser, new[]{ "FooInt", "FooString", "FooMessage" }, new[]{ "Foo" }, null, null),
- new pbr::GeneratedClrTypeInfo(typeof(global::Google.Protobuf.TestProtos.TestPackedTypes), global::Google.Protobuf.TestProtos.TestPackedTypes.Parser, new[]{ "PackedInt32", "PackedInt64", "PackedUint32", "PackedUint64", "PackedSint32", "PackedSint64", "PackedFixed32", "PackedFixed64", "PackedSfixed32", "PackedSfixed64", "PackedFloat", "PackedDouble", "PackedBool", "PackedEnum" }, null, null, null),
- new pbr::GeneratedClrTypeInfo(typeof(global::Google.Protobuf.TestProtos.TestUnpackedTypes), global::Google.Protobuf.TestProtos.TestUnpackedTypes.Parser, new[]{ "UnpackedInt32", "UnpackedInt64", "UnpackedUint32", "UnpackedUint64", "UnpackedSint32", "UnpackedSint64", "UnpackedFixed32", "UnpackedFixed64", "UnpackedSfixed32", "UnpackedSfixed64", "UnpackedFloat", "UnpackedDouble", "UnpackedBool", "UnpackedEnum" }, null, null, null),
- new pbr::GeneratedClrTypeInfo(typeof(global::Google.Protobuf.TestProtos.TestRepeatedScalarDifferentTagSizes), global::Google.Protobuf.TestProtos.TestRepeatedScalarDifferentTagSizes.Parser, new[]{ "RepeatedFixed32", "RepeatedInt32", "RepeatedFixed64", "RepeatedInt64", "RepeatedFloat", "RepeatedUint64" }, null, null, null),
- new pbr::GeneratedClrTypeInfo(typeof(global::Google.Protobuf.TestProtos.TestCommentInjectionMessage), global::Google.Protobuf.TestProtos.TestCommentInjectionMessage.Parser, new[]{ "A" }, null, null, null),
- new pbr::GeneratedClrTypeInfo(typeof(global::Google.Protobuf.TestProtos.FooRequest), global::Google.Protobuf.TestProtos.FooRequest.Parser, null, null, null, null),
- new pbr::GeneratedClrTypeInfo(typeof(global::Google.Protobuf.TestProtos.FooResponse), global::Google.Protobuf.TestProtos.FooResponse.Parser, null, null, null, null),
- new pbr::GeneratedClrTypeInfo(typeof(global::Google.Protobuf.TestProtos.FooClientMessage), global::Google.Protobuf.TestProtos.FooClientMessage.Parser, null, null, null, null),
- new pbr::GeneratedClrTypeInfo(typeof(global::Google.Protobuf.TestProtos.FooServerMessage), global::Google.Protobuf.TestProtos.FooServerMessage.Parser, null, null, null, null),
- new pbr::GeneratedClrTypeInfo(typeof(global::Google.Protobuf.TestProtos.BarRequest), global::Google.Protobuf.TestProtos.BarRequest.Parser, null, null, null, null),
- new pbr::GeneratedClrTypeInfo(typeof(global::Google.Protobuf.TestProtos.BarResponse), global::Google.Protobuf.TestProtos.BarResponse.Parser, null, null, null, null)
- }));
- }
- #endregion
-
- }
- #region Enums
- public enum ForeignEnum {
- [pbr::OriginalName("FOREIGN_UNSPECIFIED")] ForeignUnspecified = 0,
- [pbr::OriginalName("FOREIGN_FOO")] ForeignFoo = 4,
- [pbr::OriginalName("FOREIGN_BAR")] ForeignBar = 5,
- [pbr::OriginalName("FOREIGN_BAZ")] ForeignBaz = 6,
- }
-
- /// <summary>
- /// Test an enum that has multiple values with the same number.
- /// </summary>
- public enum TestEnumWithDupValue {
- [pbr::OriginalName("TEST_ENUM_WITH_DUP_VALUE_UNSPECIFIED")] Unspecified = 0,
- [pbr::OriginalName("FOO1")] Foo1 = 1,
- [pbr::OriginalName("BAR1")] Bar1 = 2,
- [pbr::OriginalName("BAZ")] Baz = 3,
- [pbr::OriginalName("FOO2")] Foo2 = 1,
- [pbr::OriginalName("BAR2")] Bar2 = 2,
- }
-
- /// <summary>
- /// Test an enum with large, unordered values.
- /// </summary>
- public enum TestSparseEnum {
- [pbr::OriginalName("TEST_SPARSE_ENUM_UNSPECIFIED")] Unspecified = 0,
- [pbr::OriginalName("SPARSE_A")] SparseA = 123,
- [pbr::OriginalName("SPARSE_B")] SparseB = 62374,
- [pbr::OriginalName("SPARSE_C")] SparseC = 12589234,
- [pbr::OriginalName("SPARSE_D")] SparseD = -15,
- [pbr::OriginalName("SPARSE_E")] SparseE = -53452,
- /// <summary>
- /// In proto3, value 0 must be the first one specified
- /// SPARSE_F = 0;
- /// </summary>
- [pbr::OriginalName("SPARSE_G")] SparseG = 2,
- }
-
- #endregion
-
- #region Messages
- /// <summary>
- /// This proto includes every type of field in both singular and repeated
- /// forms.
- /// </summary>
- public sealed partial class TestAllTypes : pb::IMessage<TestAllTypes> {
- private static readonly pb::MessageParser<TestAllTypes> _parser = new pb::MessageParser<TestAllTypes>(() => new TestAllTypes());
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public static pb::MessageParser<TestAllTypes> Parser { get { return _parser; } }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public static pbr::MessageDescriptor Descriptor {
- get { return global::Google.Protobuf.TestProtos.UnittestProto3Reflection.Descriptor.MessageTypes[0]; }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- pbr::MessageDescriptor pb::IMessage.Descriptor {
- get { return Descriptor; }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public TestAllTypes() {
- OnConstruction();
- }
-
- partial void OnConstruction();
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public TestAllTypes(TestAllTypes other) : this() {
- singleInt32_ = other.singleInt32_;
- singleInt64_ = other.singleInt64_;
- singleUint32_ = other.singleUint32_;
- singleUint64_ = other.singleUint64_;
- singleSint32_ = other.singleSint32_;
- singleSint64_ = other.singleSint64_;
- singleFixed32_ = other.singleFixed32_;
- singleFixed64_ = other.singleFixed64_;
- singleSfixed32_ = other.singleSfixed32_;
- singleSfixed64_ = other.singleSfixed64_;
- singleFloat_ = other.singleFloat_;
- singleDouble_ = other.singleDouble_;
- singleBool_ = other.singleBool_;
- singleString_ = other.singleString_;
- singleBytes_ = other.singleBytes_;
- SingleNestedMessage = other.singleNestedMessage_ != null ? other.SingleNestedMessage.Clone() : null;
- SingleForeignMessage = other.singleForeignMessage_ != null ? other.SingleForeignMessage.Clone() : null;
- SingleImportMessage = other.singleImportMessage_ != null ? other.SingleImportMessage.Clone() : null;
- singleNestedEnum_ = other.singleNestedEnum_;
- singleForeignEnum_ = other.singleForeignEnum_;
- singleImportEnum_ = other.singleImportEnum_;
- SinglePublicImportMessage = other.singlePublicImportMessage_ != null ? other.SinglePublicImportMessage.Clone() : null;
- repeatedInt32_ = other.repeatedInt32_.Clone();
- repeatedInt64_ = other.repeatedInt64_.Clone();
- repeatedUint32_ = other.repeatedUint32_.Clone();
- repeatedUint64_ = other.repeatedUint64_.Clone();
- repeatedSint32_ = other.repeatedSint32_.Clone();
- repeatedSint64_ = other.repeatedSint64_.Clone();
- repeatedFixed32_ = other.repeatedFixed32_.Clone();
- repeatedFixed64_ = other.repeatedFixed64_.Clone();
- repeatedSfixed32_ = other.repeatedSfixed32_.Clone();
- repeatedSfixed64_ = other.repeatedSfixed64_.Clone();
- repeatedFloat_ = other.repeatedFloat_.Clone();
- repeatedDouble_ = other.repeatedDouble_.Clone();
- repeatedBool_ = other.repeatedBool_.Clone();
- repeatedString_ = other.repeatedString_.Clone();
- repeatedBytes_ = other.repeatedBytes_.Clone();
- repeatedNestedMessage_ = other.repeatedNestedMessage_.Clone();
- repeatedForeignMessage_ = other.repeatedForeignMessage_.Clone();
- repeatedImportMessage_ = other.repeatedImportMessage_.Clone();
- repeatedNestedEnum_ = other.repeatedNestedEnum_.Clone();
- repeatedForeignEnum_ = other.repeatedForeignEnum_.Clone();
- repeatedImportEnum_ = other.repeatedImportEnum_.Clone();
- repeatedPublicImportMessage_ = other.repeatedPublicImportMessage_.Clone();
- switch (other.OneofFieldCase) {
- case OneofFieldOneofCase.OneofUint32:
- OneofUint32 = other.OneofUint32;
- break;
- case OneofFieldOneofCase.OneofNestedMessage:
- OneofNestedMessage = other.OneofNestedMessage.Clone();
- break;
- case OneofFieldOneofCase.OneofString:
- OneofString = other.OneofString;
- break;
- case OneofFieldOneofCase.OneofBytes:
- OneofBytes = other.OneofBytes;
- break;
- }
-
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public TestAllTypes Clone() {
- return new TestAllTypes(this);
- }
-
- /// <summary>Field number for the "single_int32" field.</summary>
- public const int SingleInt32FieldNumber = 1;
- private int singleInt32_;
- /// <summary>
- /// Singular
- /// </summary>
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public int SingleInt32 {
- get { return singleInt32_; }
- set {
- singleInt32_ = value;
- }
- }
-
- /// <summary>Field number for the "single_int64" field.</summary>
- public const int SingleInt64FieldNumber = 2;
- private long singleInt64_;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public long SingleInt64 {
- get { return singleInt64_; }
- set {
- singleInt64_ = value;
- }
- }
-
- /// <summary>Field number for the "single_uint32" field.</summary>
- public const int SingleUint32FieldNumber = 3;
- private uint singleUint32_;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public uint SingleUint32 {
- get { return singleUint32_; }
- set {
- singleUint32_ = value;
- }
- }
-
- /// <summary>Field number for the "single_uint64" field.</summary>
- public const int SingleUint64FieldNumber = 4;
- private ulong singleUint64_;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public ulong SingleUint64 {
- get { return singleUint64_; }
- set {
- singleUint64_ = value;
- }
- }
-
- /// <summary>Field number for the "single_sint32" field.</summary>
- public const int SingleSint32FieldNumber = 5;
- private int singleSint32_;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public int SingleSint32 {
- get { return singleSint32_; }
- set {
- singleSint32_ = value;
- }
- }
-
- /// <summary>Field number for the "single_sint64" field.</summary>
- public const int SingleSint64FieldNumber = 6;
- private long singleSint64_;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public long SingleSint64 {
- get { return singleSint64_; }
- set {
- singleSint64_ = value;
- }
- }
-
- /// <summary>Field number for the "single_fixed32" field.</summary>
- public const int SingleFixed32FieldNumber = 7;
- private uint singleFixed32_;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public uint SingleFixed32 {
- get { return singleFixed32_; }
- set {
- singleFixed32_ = value;
- }
- }
-
- /// <summary>Field number for the "single_fixed64" field.</summary>
- public const int SingleFixed64FieldNumber = 8;
- private ulong singleFixed64_;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public ulong SingleFixed64 {
- get { return singleFixed64_; }
- set {
- singleFixed64_ = value;
- }
- }
-
- /// <summary>Field number for the "single_sfixed32" field.</summary>
- public const int SingleSfixed32FieldNumber = 9;
- private int singleSfixed32_;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public int SingleSfixed32 {
- get { return singleSfixed32_; }
- set {
- singleSfixed32_ = value;
- }
- }
-
- /// <summary>Field number for the "single_sfixed64" field.</summary>
- public const int SingleSfixed64FieldNumber = 10;
- private long singleSfixed64_;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public long SingleSfixed64 {
- get { return singleSfixed64_; }
- set {
- singleSfixed64_ = value;
- }
- }
-
- /// <summary>Field number for the "single_float" field.</summary>
- public const int SingleFloatFieldNumber = 11;
- private float singleFloat_;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public float SingleFloat {
- get { return singleFloat_; }
- set {
- singleFloat_ = value;
- }
- }
-
- /// <summary>Field number for the "single_double" field.</summary>
- public const int SingleDoubleFieldNumber = 12;
- private double singleDouble_;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public double SingleDouble {
- get { return singleDouble_; }
- set {
- singleDouble_ = value;
- }
- }
-
- /// <summary>Field number for the "single_bool" field.</summary>
- public const int SingleBoolFieldNumber = 13;
- private bool singleBool_;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public bool SingleBool {
- get { return singleBool_; }
- set {
- singleBool_ = value;
- }
- }
-
- /// <summary>Field number for the "single_string" field.</summary>
- public const int SingleStringFieldNumber = 14;
- private string singleString_ = "";
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public string SingleString {
- get { return singleString_; }
- set {
- singleString_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
- }
- }
-
- /// <summary>Field number for the "single_bytes" field.</summary>
- public const int SingleBytesFieldNumber = 15;
- private pb::ByteString singleBytes_ = pb::ByteString.Empty;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public pb::ByteString SingleBytes {
- get { return singleBytes_; }
- set {
- singleBytes_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
- }
- }
-
- /// <summary>Field number for the "single_nested_message" field.</summary>
- public const int SingleNestedMessageFieldNumber = 18;
- private global::Google.Protobuf.TestProtos.TestAllTypes.Types.NestedMessage singleNestedMessage_;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public global::Google.Protobuf.TestProtos.TestAllTypes.Types.NestedMessage SingleNestedMessage {
- get { return singleNestedMessage_; }
- set {
- singleNestedMessage_ = value;
- }
- }
-
- /// <summary>Field number for the "single_foreign_message" field.</summary>
- public const int SingleForeignMessageFieldNumber = 19;
- private global::Google.Protobuf.TestProtos.ForeignMessage singleForeignMessage_;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public global::Google.Protobuf.TestProtos.ForeignMessage SingleForeignMessage {
- get { return singleForeignMessage_; }
- set {
- singleForeignMessage_ = value;
- }
- }
-
- /// <summary>Field number for the "single_import_message" field.</summary>
- public const int SingleImportMessageFieldNumber = 20;
- private global::Google.Protobuf.TestProtos.ImportMessage singleImportMessage_;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public global::Google.Protobuf.TestProtos.ImportMessage SingleImportMessage {
- get { return singleImportMessage_; }
- set {
- singleImportMessage_ = value;
- }
- }
-
- /// <summary>Field number for the "single_nested_enum" field.</summary>
- public const int SingleNestedEnumFieldNumber = 21;
- private global::Google.Protobuf.TestProtos.TestAllTypes.Types.NestedEnum singleNestedEnum_ = 0;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public global::Google.Protobuf.TestProtos.TestAllTypes.Types.NestedEnum SingleNestedEnum {
- get { return singleNestedEnum_; }
- set {
- singleNestedEnum_ = value;
- }
- }
-
- /// <summary>Field number for the "single_foreign_enum" field.</summary>
- public const int SingleForeignEnumFieldNumber = 22;
- private global::Google.Protobuf.TestProtos.ForeignEnum singleForeignEnum_ = 0;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public global::Google.Protobuf.TestProtos.ForeignEnum SingleForeignEnum {
- get { return singleForeignEnum_; }
- set {
- singleForeignEnum_ = value;
- }
- }
-
- /// <summary>Field number for the "single_import_enum" field.</summary>
- public const int SingleImportEnumFieldNumber = 23;
- private global::Google.Protobuf.TestProtos.ImportEnum singleImportEnum_ = 0;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public global::Google.Protobuf.TestProtos.ImportEnum SingleImportEnum {
- get { return singleImportEnum_; }
- set {
- singleImportEnum_ = value;
- }
- }
-
- /// <summary>Field number for the "single_public_import_message" field.</summary>
- public const int SinglePublicImportMessageFieldNumber = 26;
- private global::Google.Protobuf.TestProtos.PublicImportMessage singlePublicImportMessage_;
- /// <summary>
- /// Defined in unittest_import_public.proto
- /// </summary>
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public global::Google.Protobuf.TestProtos.PublicImportMessage SinglePublicImportMessage {
- get { return singlePublicImportMessage_; }
- set {
- singlePublicImportMessage_ = value;
- }
- }
-
- /// <summary>Field number for the "repeated_int32" field.</summary>
- public const int RepeatedInt32FieldNumber = 31;
- private static readonly pb::FieldCodec<int> _repeated_repeatedInt32_codec
- = pb::FieldCodec.ForInt32(250);
- private readonly pbc::RepeatedField<int> repeatedInt32_ = new pbc::RepeatedField<int>();
- /// <summary>
- /// Repeated
- /// </summary>
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public pbc::RepeatedField<int> RepeatedInt32 {
- get { return repeatedInt32_; }
- }
-
- /// <summary>Field number for the "repeated_int64" field.</summary>
- public const int RepeatedInt64FieldNumber = 32;
- private static readonly pb::FieldCodec<long> _repeated_repeatedInt64_codec
- = pb::FieldCodec.ForInt64(258);
- private readonly pbc::RepeatedField<long> repeatedInt64_ = new pbc::RepeatedField<long>();
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public pbc::RepeatedField<long> RepeatedInt64 {
- get { return repeatedInt64_; }
- }
-
- /// <summary>Field number for the "repeated_uint32" field.</summary>
- public const int RepeatedUint32FieldNumber = 33;
- private static readonly pb::FieldCodec<uint> _repeated_repeatedUint32_codec
- = pb::FieldCodec.ForUInt32(266);
- private readonly pbc::RepeatedField<uint> repeatedUint32_ = new pbc::RepeatedField<uint>();
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public pbc::RepeatedField<uint> RepeatedUint32 {
- get { return repeatedUint32_; }
- }
-
- /// <summary>Field number for the "repeated_uint64" field.</summary>
- public const int RepeatedUint64FieldNumber = 34;
- private static readonly pb::FieldCodec<ulong> _repeated_repeatedUint64_codec
- = pb::FieldCodec.ForUInt64(274);
- private readonly pbc::RepeatedField<ulong> repeatedUint64_ = new pbc::RepeatedField<ulong>();
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public pbc::RepeatedField<ulong> RepeatedUint64 {
- get { return repeatedUint64_; }
- }
-
- /// <summary>Field number for the "repeated_sint32" field.</summary>
- public const int RepeatedSint32FieldNumber = 35;
- private static readonly pb::FieldCodec<int> _repeated_repeatedSint32_codec
- = pb::FieldCodec.ForSInt32(282);
- private readonly pbc::RepeatedField<int> repeatedSint32_ = new pbc::RepeatedField<int>();
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public pbc::RepeatedField<int> RepeatedSint32 {
- get { return repeatedSint32_; }
- }
-
- /// <summary>Field number for the "repeated_sint64" field.</summary>
- public const int RepeatedSint64FieldNumber = 36;
- private static readonly pb::FieldCodec<long> _repeated_repeatedSint64_codec
- = pb::FieldCodec.ForSInt64(290);
- private readonly pbc::RepeatedField<long> repeatedSint64_ = new pbc::RepeatedField<long>();
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public pbc::RepeatedField<long> RepeatedSint64 {
- get { return repeatedSint64_; }
- }
-
- /// <summary>Field number for the "repeated_fixed32" field.</summary>
- public const int RepeatedFixed32FieldNumber = 37;
- private static readonly pb::FieldCodec<uint> _repeated_repeatedFixed32_codec
- = pb::FieldCodec.ForFixed32(298);
- private readonly pbc::RepeatedField<uint> repeatedFixed32_ = new pbc::RepeatedField<uint>();
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public pbc::RepeatedField<uint> RepeatedFixed32 {
- get { return repeatedFixed32_; }
- }
-
- /// <summary>Field number for the "repeated_fixed64" field.</summary>
- public const int RepeatedFixed64FieldNumber = 38;
- private static readonly pb::FieldCodec<ulong> _repeated_repeatedFixed64_codec
- = pb::FieldCodec.ForFixed64(306);
- private readonly pbc::RepeatedField<ulong> repeatedFixed64_ = new pbc::RepeatedField<ulong>();
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public pbc::RepeatedField<ulong> RepeatedFixed64 {
- get { return repeatedFixed64_; }
- }
-
- /// <summary>Field number for the "repeated_sfixed32" field.</summary>
- public const int RepeatedSfixed32FieldNumber = 39;
- private static readonly pb::FieldCodec<int> _repeated_repeatedSfixed32_codec
- = pb::FieldCodec.ForSFixed32(314);
- private readonly pbc::RepeatedField<int> repeatedSfixed32_ = new pbc::RepeatedField<int>();
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public pbc::RepeatedField<int> RepeatedSfixed32 {
- get { return repeatedSfixed32_; }
- }
-
- /// <summary>Field number for the "repeated_sfixed64" field.</summary>
- public const int RepeatedSfixed64FieldNumber = 40;
- private static readonly pb::FieldCodec<long> _repeated_repeatedSfixed64_codec
- = pb::FieldCodec.ForSFixed64(322);
- private readonly pbc::RepeatedField<long> repeatedSfixed64_ = new pbc::RepeatedField<long>();
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public pbc::RepeatedField<long> RepeatedSfixed64 {
- get { return repeatedSfixed64_; }
- }
-
- /// <summary>Field number for the "repeated_float" field.</summary>
- public const int RepeatedFloatFieldNumber = 41;
- private static readonly pb::FieldCodec<float> _repeated_repeatedFloat_codec
- = pb::FieldCodec.ForFloat(330);
- private readonly pbc::RepeatedField<float> repeatedFloat_ = new pbc::RepeatedField<float>();
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public pbc::RepeatedField<float> RepeatedFloat {
- get { return repeatedFloat_; }
- }
-
- /// <summary>Field number for the "repeated_double" field.</summary>
- public const int RepeatedDoubleFieldNumber = 42;
- private static readonly pb::FieldCodec<double> _repeated_repeatedDouble_codec
- = pb::FieldCodec.ForDouble(338);
- private readonly pbc::RepeatedField<double> repeatedDouble_ = new pbc::RepeatedField<double>();
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public pbc::RepeatedField<double> RepeatedDouble {
- get { return repeatedDouble_; }
- }
-
- /// <summary>Field number for the "repeated_bool" field.</summary>
- public const int RepeatedBoolFieldNumber = 43;
- private static readonly pb::FieldCodec<bool> _repeated_repeatedBool_codec
- = pb::FieldCodec.ForBool(346);
- private readonly pbc::RepeatedField<bool> repeatedBool_ = new pbc::RepeatedField<bool>();
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public pbc::RepeatedField<bool> RepeatedBool {
- get { return repeatedBool_; }
- }
-
- /// <summary>Field number for the "repeated_string" field.</summary>
- public const int RepeatedStringFieldNumber = 44;
- private static readonly pb::FieldCodec<string> _repeated_repeatedString_codec
- = pb::FieldCodec.ForString(354);
- private readonly pbc::RepeatedField<string> repeatedString_ = new pbc::RepeatedField<string>();
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public pbc::RepeatedField<string> RepeatedString {
- get { return repeatedString_; }
- }
-
- /// <summary>Field number for the "repeated_bytes" field.</summary>
- public const int RepeatedBytesFieldNumber = 45;
- private static readonly pb::FieldCodec<pb::ByteString> _repeated_repeatedBytes_codec
- = pb::FieldCodec.ForBytes(362);
- private readonly pbc::RepeatedField<pb::ByteString> repeatedBytes_ = new pbc::RepeatedField<pb::ByteString>();
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public pbc::RepeatedField<pb::ByteString> RepeatedBytes {
- get { return repeatedBytes_; }
- }
-
- /// <summary>Field number for the "repeated_nested_message" field.</summary>
- public const int RepeatedNestedMessageFieldNumber = 48;
- private static readonly pb::FieldCodec<global::Google.Protobuf.TestProtos.TestAllTypes.Types.NestedMessage> _repeated_repeatedNestedMessage_codec
- = pb::FieldCodec.ForMessage(386, global::Google.Protobuf.TestProtos.TestAllTypes.Types.NestedMessage.Parser);
- private readonly pbc::RepeatedField<global::Google.Protobuf.TestProtos.TestAllTypes.Types.NestedMessage> repeatedNestedMessage_ = new pbc::RepeatedField<global::Google.Protobuf.TestProtos.TestAllTypes.Types.NestedMessage>();
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public pbc::RepeatedField<global::Google.Protobuf.TestProtos.TestAllTypes.Types.NestedMessage> RepeatedNestedMessage {
- get { return repeatedNestedMessage_; }
- }
-
- /// <summary>Field number for the "repeated_foreign_message" field.</summary>
- public const int RepeatedForeignMessageFieldNumber = 49;
- private static readonly pb::FieldCodec<global::Google.Protobuf.TestProtos.ForeignMessage> _repeated_repeatedForeignMessage_codec
- = pb::FieldCodec.ForMessage(394, global::Google.Protobuf.TestProtos.ForeignMessage.Parser);
- private readonly pbc::RepeatedField<global::Google.Protobuf.TestProtos.ForeignMessage> repeatedForeignMessage_ = new pbc::RepeatedField<global::Google.Protobuf.TestProtos.ForeignMessage>();
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public pbc::RepeatedField<global::Google.Protobuf.TestProtos.ForeignMessage> RepeatedForeignMessage {
- get { return repeatedForeignMessage_; }
- }
-
- /// <summary>Field number for the "repeated_import_message" field.</summary>
- public const int RepeatedImportMessageFieldNumber = 50;
- private static readonly pb::FieldCodec<global::Google.Protobuf.TestProtos.ImportMessage> _repeated_repeatedImportMessage_codec
- = pb::FieldCodec.ForMessage(402, global::Google.Protobuf.TestProtos.ImportMessage.Parser);
- private readonly pbc::RepeatedField<global::Google.Protobuf.TestProtos.ImportMessage> repeatedImportMessage_ = new pbc::RepeatedField<global::Google.Protobuf.TestProtos.ImportMessage>();
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public pbc::RepeatedField<global::Google.Protobuf.TestProtos.ImportMessage> RepeatedImportMessage {
- get { return repeatedImportMessage_; }
- }
-
- /// <summary>Field number for the "repeated_nested_enum" field.</summary>
- public const int RepeatedNestedEnumFieldNumber = 51;
- private static readonly pb::FieldCodec<global::Google.Protobuf.TestProtos.TestAllTypes.Types.NestedEnum> _repeated_repeatedNestedEnum_codec
- = pb::FieldCodec.ForEnum(410, x => (int) x, x => (global::Google.Protobuf.TestProtos.TestAllTypes.Types.NestedEnum) x);
- private readonly pbc::RepeatedField<global::Google.Protobuf.TestProtos.TestAllTypes.Types.NestedEnum> repeatedNestedEnum_ = new pbc::RepeatedField<global::Google.Protobuf.TestProtos.TestAllTypes.Types.NestedEnum>();
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public pbc::RepeatedField<global::Google.Protobuf.TestProtos.TestAllTypes.Types.NestedEnum> RepeatedNestedEnum {
- get { return repeatedNestedEnum_; }
- }
-
- /// <summary>Field number for the "repeated_foreign_enum" field.</summary>
- public const int RepeatedForeignEnumFieldNumber = 52;
- private static readonly pb::FieldCodec<global::Google.Protobuf.TestProtos.ForeignEnum> _repeated_repeatedForeignEnum_codec
- = pb::FieldCodec.ForEnum(418, x => (int) x, x => (global::Google.Protobuf.TestProtos.ForeignEnum) x);
- private readonly pbc::RepeatedField<global::Google.Protobuf.TestProtos.ForeignEnum> repeatedForeignEnum_ = new pbc::RepeatedField<global::Google.Protobuf.TestProtos.ForeignEnum>();
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public pbc::RepeatedField<global::Google.Protobuf.TestProtos.ForeignEnum> RepeatedForeignEnum {
- get { return repeatedForeignEnum_; }
- }
-
- /// <summary>Field number for the "repeated_import_enum" field.</summary>
- public const int RepeatedImportEnumFieldNumber = 53;
- private static readonly pb::FieldCodec<global::Google.Protobuf.TestProtos.ImportEnum> _repeated_repeatedImportEnum_codec
- = pb::FieldCodec.ForEnum(426, x => (int) x, x => (global::Google.Protobuf.TestProtos.ImportEnum) x);
- private readonly pbc::RepeatedField<global::Google.Protobuf.TestProtos.ImportEnum> repeatedImportEnum_ = new pbc::RepeatedField<global::Google.Protobuf.TestProtos.ImportEnum>();
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public pbc::RepeatedField<global::Google.Protobuf.TestProtos.ImportEnum> RepeatedImportEnum {
- get { return repeatedImportEnum_; }
- }
-
- /// <summary>Field number for the "repeated_public_import_message" field.</summary>
- public const int RepeatedPublicImportMessageFieldNumber = 54;
- private static readonly pb::FieldCodec<global::Google.Protobuf.TestProtos.PublicImportMessage> _repeated_repeatedPublicImportMessage_codec
- = pb::FieldCodec.ForMessage(434, global::Google.Protobuf.TestProtos.PublicImportMessage.Parser);
- private readonly pbc::RepeatedField<global::Google.Protobuf.TestProtos.PublicImportMessage> repeatedPublicImportMessage_ = new pbc::RepeatedField<global::Google.Protobuf.TestProtos.PublicImportMessage>();
- /// <summary>
- /// Defined in unittest_import_public.proto
- /// </summary>
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public pbc::RepeatedField<global::Google.Protobuf.TestProtos.PublicImportMessage> RepeatedPublicImportMessage {
- get { return repeatedPublicImportMessage_; }
- }
-
- /// <summary>Field number for the "oneof_uint32" field.</summary>
- public const int OneofUint32FieldNumber = 111;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public uint OneofUint32 {
- get { return oneofFieldCase_ == OneofFieldOneofCase.OneofUint32 ? (uint) oneofField_ : 0; }
- set {
- oneofField_ = value;
- oneofFieldCase_ = OneofFieldOneofCase.OneofUint32;
- }
- }
-
- /// <summary>Field number for the "oneof_nested_message" field.</summary>
- public const int OneofNestedMessageFieldNumber = 112;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public global::Google.Protobuf.TestProtos.TestAllTypes.Types.NestedMessage OneofNestedMessage {
- get { return oneofFieldCase_ == OneofFieldOneofCase.OneofNestedMessage ? (global::Google.Protobuf.TestProtos.TestAllTypes.Types.NestedMessage) oneofField_ : null; }
- set {
- oneofField_ = value;
- oneofFieldCase_ = value == null ? OneofFieldOneofCase.None : OneofFieldOneofCase.OneofNestedMessage;
- }
- }
-
- /// <summary>Field number for the "oneof_string" field.</summary>
- public const int OneofStringFieldNumber = 113;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public string OneofString {
- get { return oneofFieldCase_ == OneofFieldOneofCase.OneofString ? (string) oneofField_ : ""; }
- set {
- oneofField_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
- oneofFieldCase_ = OneofFieldOneofCase.OneofString;
- }
- }
-
- /// <summary>Field number for the "oneof_bytes" field.</summary>
- public const int OneofBytesFieldNumber = 114;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public pb::ByteString OneofBytes {
- get { return oneofFieldCase_ == OneofFieldOneofCase.OneofBytes ? (pb::ByteString) oneofField_ : pb::ByteString.Empty; }
- set {
- oneofField_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
- oneofFieldCase_ = OneofFieldOneofCase.OneofBytes;
- }
- }
-
- private object oneofField_;
- /// <summary>Enum of possible cases for the "oneof_field" oneof.</summary>
- public enum OneofFieldOneofCase {
- None = 0,
- OneofUint32 = 111,
- OneofNestedMessage = 112,
- OneofString = 113,
- OneofBytes = 114,
- }
- private OneofFieldOneofCase oneofFieldCase_ = OneofFieldOneofCase.None;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public OneofFieldOneofCase OneofFieldCase {
- get { return oneofFieldCase_; }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void ClearOneofField() {
- oneofFieldCase_ = OneofFieldOneofCase.None;
- oneofField_ = null;
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public override bool Equals(object other) {
- return Equals(other as TestAllTypes);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public bool Equals(TestAllTypes other) {
- if (ReferenceEquals(other, null)) {
- return false;
- }
- if (ReferenceEquals(other, this)) {
- return true;
- }
- if (SingleInt32 != other.SingleInt32) return false;
- if (SingleInt64 != other.SingleInt64) return false;
- if (SingleUint32 != other.SingleUint32) return false;
- if (SingleUint64 != other.SingleUint64) return false;
- if (SingleSint32 != other.SingleSint32) return false;
- if (SingleSint64 != other.SingleSint64) return false;
- if (SingleFixed32 != other.SingleFixed32) return false;
- if (SingleFixed64 != other.SingleFixed64) return false;
- if (SingleSfixed32 != other.SingleSfixed32) return false;
- if (SingleSfixed64 != other.SingleSfixed64) return false;
- if (SingleFloat != other.SingleFloat) return false;
- if (SingleDouble != other.SingleDouble) return false;
- if (SingleBool != other.SingleBool) return false;
- if (SingleString != other.SingleString) return false;
- if (SingleBytes != other.SingleBytes) return false;
- if (!object.Equals(SingleNestedMessage, other.SingleNestedMessage)) return false;
- if (!object.Equals(SingleForeignMessage, other.SingleForeignMessage)) return false;
- if (!object.Equals(SingleImportMessage, other.SingleImportMessage)) return false;
- if (SingleNestedEnum != other.SingleNestedEnum) return false;
- if (SingleForeignEnum != other.SingleForeignEnum) return false;
- if (SingleImportEnum != other.SingleImportEnum) return false;
- if (!object.Equals(SinglePublicImportMessage, other.SinglePublicImportMessage)) return false;
- if(!repeatedInt32_.Equals(other.repeatedInt32_)) return false;
- if(!repeatedInt64_.Equals(other.repeatedInt64_)) return false;
- if(!repeatedUint32_.Equals(other.repeatedUint32_)) return false;
- if(!repeatedUint64_.Equals(other.repeatedUint64_)) return false;
- if(!repeatedSint32_.Equals(other.repeatedSint32_)) return false;
- if(!repeatedSint64_.Equals(other.repeatedSint64_)) return false;
- if(!repeatedFixed32_.Equals(other.repeatedFixed32_)) return false;
- if(!repeatedFixed64_.Equals(other.repeatedFixed64_)) return false;
- if(!repeatedSfixed32_.Equals(other.repeatedSfixed32_)) return false;
- if(!repeatedSfixed64_.Equals(other.repeatedSfixed64_)) return false;
- if(!repeatedFloat_.Equals(other.repeatedFloat_)) return false;
- if(!repeatedDouble_.Equals(other.repeatedDouble_)) return false;
- if(!repeatedBool_.Equals(other.repeatedBool_)) return false;
- if(!repeatedString_.Equals(other.repeatedString_)) return false;
- if(!repeatedBytes_.Equals(other.repeatedBytes_)) return false;
- if(!repeatedNestedMessage_.Equals(other.repeatedNestedMessage_)) return false;
- if(!repeatedForeignMessage_.Equals(other.repeatedForeignMessage_)) return false;
- if(!repeatedImportMessage_.Equals(other.repeatedImportMessage_)) return false;
- if(!repeatedNestedEnum_.Equals(other.repeatedNestedEnum_)) return false;
- if(!repeatedForeignEnum_.Equals(other.repeatedForeignEnum_)) return false;
- if(!repeatedImportEnum_.Equals(other.repeatedImportEnum_)) return false;
- if(!repeatedPublicImportMessage_.Equals(other.repeatedPublicImportMessage_)) return false;
- if (OneofUint32 != other.OneofUint32) return false;
- if (!object.Equals(OneofNestedMessage, other.OneofNestedMessage)) return false;
- if (OneofString != other.OneofString) return false;
- if (OneofBytes != other.OneofBytes) return false;
- if (OneofFieldCase != other.OneofFieldCase) return false;
- return true;
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public override int GetHashCode() {
- int hash = 1;
- if (SingleInt32 != 0) hash ^= SingleInt32.GetHashCode();
- if (SingleInt64 != 0L) hash ^= SingleInt64.GetHashCode();
- if (SingleUint32 != 0) hash ^= SingleUint32.GetHashCode();
- if (SingleUint64 != 0UL) hash ^= SingleUint64.GetHashCode();
- if (SingleSint32 != 0) hash ^= SingleSint32.GetHashCode();
- if (SingleSint64 != 0L) hash ^= SingleSint64.GetHashCode();
- if (SingleFixed32 != 0) hash ^= SingleFixed32.GetHashCode();
- if (SingleFixed64 != 0UL) hash ^= SingleFixed64.GetHashCode();
- if (SingleSfixed32 != 0) hash ^= SingleSfixed32.GetHashCode();
- if (SingleSfixed64 != 0L) hash ^= SingleSfixed64.GetHashCode();
- if (SingleFloat != 0F) hash ^= SingleFloat.GetHashCode();
- if (SingleDouble != 0D) hash ^= SingleDouble.GetHashCode();
- if (SingleBool != false) hash ^= SingleBool.GetHashCode();
- if (SingleString.Length != 0) hash ^= SingleString.GetHashCode();
- if (SingleBytes.Length != 0) hash ^= SingleBytes.GetHashCode();
- if (singleNestedMessage_ != null) hash ^= SingleNestedMessage.GetHashCode();
- if (singleForeignMessage_ != null) hash ^= SingleForeignMessage.GetHashCode();
- if (singleImportMessage_ != null) hash ^= SingleImportMessage.GetHashCode();
- if (SingleNestedEnum != 0) hash ^= SingleNestedEnum.GetHashCode();
- if (SingleForeignEnum != 0) hash ^= SingleForeignEnum.GetHashCode();
- if (SingleImportEnum != 0) hash ^= SingleImportEnum.GetHashCode();
- if (singlePublicImportMessage_ != null) hash ^= SinglePublicImportMessage.GetHashCode();
- hash ^= repeatedInt32_.GetHashCode();
- hash ^= repeatedInt64_.GetHashCode();
- hash ^= repeatedUint32_.GetHashCode();
- hash ^= repeatedUint64_.GetHashCode();
- hash ^= repeatedSint32_.GetHashCode();
- hash ^= repeatedSint64_.GetHashCode();
- hash ^= repeatedFixed32_.GetHashCode();
- hash ^= repeatedFixed64_.GetHashCode();
- hash ^= repeatedSfixed32_.GetHashCode();
- hash ^= repeatedSfixed64_.GetHashCode();
- hash ^= repeatedFloat_.GetHashCode();
- hash ^= repeatedDouble_.GetHashCode();
- hash ^= repeatedBool_.GetHashCode();
- hash ^= repeatedString_.GetHashCode();
- hash ^= repeatedBytes_.GetHashCode();
- hash ^= repeatedNestedMessage_.GetHashCode();
- hash ^= repeatedForeignMessage_.GetHashCode();
- hash ^= repeatedImportMessage_.GetHashCode();
- hash ^= repeatedNestedEnum_.GetHashCode();
- hash ^= repeatedForeignEnum_.GetHashCode();
- hash ^= repeatedImportEnum_.GetHashCode();
- hash ^= repeatedPublicImportMessage_.GetHashCode();
- if (oneofFieldCase_ == OneofFieldOneofCase.OneofUint32) hash ^= OneofUint32.GetHashCode();
- if (oneofFieldCase_ == OneofFieldOneofCase.OneofNestedMessage) hash ^= OneofNestedMessage.GetHashCode();
- if (oneofFieldCase_ == OneofFieldOneofCase.OneofString) hash ^= OneofString.GetHashCode();
- if (oneofFieldCase_ == OneofFieldOneofCase.OneofBytes) hash ^= OneofBytes.GetHashCode();
- hash ^= (int) oneofFieldCase_;
- return hash;
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public override string ToString() {
- return pb::JsonFormatter.ToDiagnosticString(this);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void WriteTo(pb::CodedOutputStream output) {
- if (SingleInt32 != 0) {
- output.WriteRawTag(8);
- output.WriteInt32(SingleInt32);
- }
- if (SingleInt64 != 0L) {
- output.WriteRawTag(16);
- output.WriteInt64(SingleInt64);
- }
- if (SingleUint32 != 0) {
- output.WriteRawTag(24);
- output.WriteUInt32(SingleUint32);
- }
- if (SingleUint64 != 0UL) {
- output.WriteRawTag(32);
- output.WriteUInt64(SingleUint64);
- }
- if (SingleSint32 != 0) {
- output.WriteRawTag(40);
- output.WriteSInt32(SingleSint32);
- }
- if (SingleSint64 != 0L) {
- output.WriteRawTag(48);
- output.WriteSInt64(SingleSint64);
- }
- if (SingleFixed32 != 0) {
- output.WriteRawTag(61);
- output.WriteFixed32(SingleFixed32);
- }
- if (SingleFixed64 != 0UL) {
- output.WriteRawTag(65);
- output.WriteFixed64(SingleFixed64);
- }
- if (SingleSfixed32 != 0) {
- output.WriteRawTag(77);
- output.WriteSFixed32(SingleSfixed32);
- }
- if (SingleSfixed64 != 0L) {
- output.WriteRawTag(81);
- output.WriteSFixed64(SingleSfixed64);
- }
- if (SingleFloat != 0F) {
- output.WriteRawTag(93);
- output.WriteFloat(SingleFloat);
- }
- if (SingleDouble != 0D) {
- output.WriteRawTag(97);
- output.WriteDouble(SingleDouble);
- }
- if (SingleBool != false) {
- output.WriteRawTag(104);
- output.WriteBool(SingleBool);
- }
- if (SingleString.Length != 0) {
- output.WriteRawTag(114);
- output.WriteString(SingleString);
- }
- if (SingleBytes.Length != 0) {
- output.WriteRawTag(122);
- output.WriteBytes(SingleBytes);
- }
- if (singleNestedMessage_ != null) {
- output.WriteRawTag(146, 1);
- output.WriteMessage(SingleNestedMessage);
- }
- if (singleForeignMessage_ != null) {
- output.WriteRawTag(154, 1);
- output.WriteMessage(SingleForeignMessage);
- }
- if (singleImportMessage_ != null) {
- output.WriteRawTag(162, 1);
- output.WriteMessage(SingleImportMessage);
- }
- if (SingleNestedEnum != 0) {
- output.WriteRawTag(168, 1);
- output.WriteEnum((int) SingleNestedEnum);
- }
- if (SingleForeignEnum != 0) {
- output.WriteRawTag(176, 1);
- output.WriteEnum((int) SingleForeignEnum);
- }
- if (SingleImportEnum != 0) {
- output.WriteRawTag(184, 1);
- output.WriteEnum((int) SingleImportEnum);
- }
- if (singlePublicImportMessage_ != null) {
- output.WriteRawTag(210, 1);
- output.WriteMessage(SinglePublicImportMessage);
- }
- repeatedInt32_.WriteTo(output, _repeated_repeatedInt32_codec);
- repeatedInt64_.WriteTo(output, _repeated_repeatedInt64_codec);
- repeatedUint32_.WriteTo(output, _repeated_repeatedUint32_codec);
- repeatedUint64_.WriteTo(output, _repeated_repeatedUint64_codec);
- repeatedSint32_.WriteTo(output, _repeated_repeatedSint32_codec);
- repeatedSint64_.WriteTo(output, _repeated_repeatedSint64_codec);
- repeatedFixed32_.WriteTo(output, _repeated_repeatedFixed32_codec);
- repeatedFixed64_.WriteTo(output, _repeated_repeatedFixed64_codec);
- repeatedSfixed32_.WriteTo(output, _repeated_repeatedSfixed32_codec);
- repeatedSfixed64_.WriteTo(output, _repeated_repeatedSfixed64_codec);
- repeatedFloat_.WriteTo(output, _repeated_repeatedFloat_codec);
- repeatedDouble_.WriteTo(output, _repeated_repeatedDouble_codec);
- repeatedBool_.WriteTo(output, _repeated_repeatedBool_codec);
- repeatedString_.WriteTo(output, _repeated_repeatedString_codec);
- repeatedBytes_.WriteTo(output, _repeated_repeatedBytes_codec);
- repeatedNestedMessage_.WriteTo(output, _repeated_repeatedNestedMessage_codec);
- repeatedForeignMessage_.WriteTo(output, _repeated_repeatedForeignMessage_codec);
- repeatedImportMessage_.WriteTo(output, _repeated_repeatedImportMessage_codec);
- repeatedNestedEnum_.WriteTo(output, _repeated_repeatedNestedEnum_codec);
- repeatedForeignEnum_.WriteTo(output, _repeated_repeatedForeignEnum_codec);
- repeatedImportEnum_.WriteTo(output, _repeated_repeatedImportEnum_codec);
- repeatedPublicImportMessage_.WriteTo(output, _repeated_repeatedPublicImportMessage_codec);
- if (oneofFieldCase_ == OneofFieldOneofCase.OneofUint32) {
- output.WriteRawTag(248, 6);
- output.WriteUInt32(OneofUint32);
- }
- if (oneofFieldCase_ == OneofFieldOneofCase.OneofNestedMessage) {
- output.WriteRawTag(130, 7);
- output.WriteMessage(OneofNestedMessage);
- }
- if (oneofFieldCase_ == OneofFieldOneofCase.OneofString) {
- output.WriteRawTag(138, 7);
- output.WriteString(OneofString);
- }
- if (oneofFieldCase_ == OneofFieldOneofCase.OneofBytes) {
- output.WriteRawTag(146, 7);
- output.WriteBytes(OneofBytes);
- }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public int CalculateSize() {
- int size = 0;
- if (SingleInt32 != 0) {
- size += 1 + pb::CodedOutputStream.ComputeInt32Size(SingleInt32);
- }
- if (SingleInt64 != 0L) {
- size += 1 + pb::CodedOutputStream.ComputeInt64Size(SingleInt64);
- }
- if (SingleUint32 != 0) {
- size += 1 + pb::CodedOutputStream.ComputeUInt32Size(SingleUint32);
- }
- if (SingleUint64 != 0UL) {
- size += 1 + pb::CodedOutputStream.ComputeUInt64Size(SingleUint64);
- }
- if (SingleSint32 != 0) {
- size += 1 + pb::CodedOutputStream.ComputeSInt32Size(SingleSint32);
- }
- if (SingleSint64 != 0L) {
- size += 1 + pb::CodedOutputStream.ComputeSInt64Size(SingleSint64);
- }
- if (SingleFixed32 != 0) {
- size += 1 + 4;
- }
- if (SingleFixed64 != 0UL) {
- size += 1 + 8;
- }
- if (SingleSfixed32 != 0) {
- size += 1 + 4;
- }
- if (SingleSfixed64 != 0L) {
- size += 1 + 8;
- }
- if (SingleFloat != 0F) {
- size += 1 + 4;
- }
- if (SingleDouble != 0D) {
- size += 1 + 8;
- }
- if (SingleBool != false) {
- size += 1 + 1;
- }
- if (SingleString.Length != 0) {
- size += 1 + pb::CodedOutputStream.ComputeStringSize(SingleString);
- }
- if (SingleBytes.Length != 0) {
- size += 1 + pb::CodedOutputStream.ComputeBytesSize(SingleBytes);
- }
- if (singleNestedMessage_ != null) {
- size += 2 + pb::CodedOutputStream.ComputeMessageSize(SingleNestedMessage);
- }
- if (singleForeignMessage_ != null) {
- size += 2 + pb::CodedOutputStream.ComputeMessageSize(SingleForeignMessage);
- }
- if (singleImportMessage_ != null) {
- size += 2 + pb::CodedOutputStream.ComputeMessageSize(SingleImportMessage);
- }
- if (SingleNestedEnum != 0) {
- size += 2 + pb::CodedOutputStream.ComputeEnumSize((int) SingleNestedEnum);
- }
- if (SingleForeignEnum != 0) {
- size += 2 + pb::CodedOutputStream.ComputeEnumSize((int) SingleForeignEnum);
- }
- if (SingleImportEnum != 0) {
- size += 2 + pb::CodedOutputStream.ComputeEnumSize((int) SingleImportEnum);
- }
- if (singlePublicImportMessage_ != null) {
- size += 2 + pb::CodedOutputStream.ComputeMessageSize(SinglePublicImportMessage);
- }
- size += repeatedInt32_.CalculateSize(_repeated_repeatedInt32_codec);
- size += repeatedInt64_.CalculateSize(_repeated_repeatedInt64_codec);
- size += repeatedUint32_.CalculateSize(_repeated_repeatedUint32_codec);
- size += repeatedUint64_.CalculateSize(_repeated_repeatedUint64_codec);
- size += repeatedSint32_.CalculateSize(_repeated_repeatedSint32_codec);
- size += repeatedSint64_.CalculateSize(_repeated_repeatedSint64_codec);
- size += repeatedFixed32_.CalculateSize(_repeated_repeatedFixed32_codec);
- size += repeatedFixed64_.CalculateSize(_repeated_repeatedFixed64_codec);
- size += repeatedSfixed32_.CalculateSize(_repeated_repeatedSfixed32_codec);
- size += repeatedSfixed64_.CalculateSize(_repeated_repeatedSfixed64_codec);
- size += repeatedFloat_.CalculateSize(_repeated_repeatedFloat_codec);
- size += repeatedDouble_.CalculateSize(_repeated_repeatedDouble_codec);
- size += repeatedBool_.CalculateSize(_repeated_repeatedBool_codec);
- size += repeatedString_.CalculateSize(_repeated_repeatedString_codec);
- size += repeatedBytes_.CalculateSize(_repeated_repeatedBytes_codec);
- size += repeatedNestedMessage_.CalculateSize(_repeated_repeatedNestedMessage_codec);
- size += repeatedForeignMessage_.CalculateSize(_repeated_repeatedForeignMessage_codec);
- size += repeatedImportMessage_.CalculateSize(_repeated_repeatedImportMessage_codec);
- size += repeatedNestedEnum_.CalculateSize(_repeated_repeatedNestedEnum_codec);
- size += repeatedForeignEnum_.CalculateSize(_repeated_repeatedForeignEnum_codec);
- size += repeatedImportEnum_.CalculateSize(_repeated_repeatedImportEnum_codec);
- size += repeatedPublicImportMessage_.CalculateSize(_repeated_repeatedPublicImportMessage_codec);
- if (oneofFieldCase_ == OneofFieldOneofCase.OneofUint32) {
- size += 2 + pb::CodedOutputStream.ComputeUInt32Size(OneofUint32);
- }
- if (oneofFieldCase_ == OneofFieldOneofCase.OneofNestedMessage) {
- size += 2 + pb::CodedOutputStream.ComputeMessageSize(OneofNestedMessage);
- }
- if (oneofFieldCase_ == OneofFieldOneofCase.OneofString) {
- size += 2 + pb::CodedOutputStream.ComputeStringSize(OneofString);
- }
- if (oneofFieldCase_ == OneofFieldOneofCase.OneofBytes) {
- size += 2 + pb::CodedOutputStream.ComputeBytesSize(OneofBytes);
- }
- return size;
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void MergeFrom(TestAllTypes other) {
- if (other == null) {
- return;
- }
- if (other.SingleInt32 != 0) {
- SingleInt32 = other.SingleInt32;
- }
- if (other.SingleInt64 != 0L) {
- SingleInt64 = other.SingleInt64;
- }
- if (other.SingleUint32 != 0) {
- SingleUint32 = other.SingleUint32;
- }
- if (other.SingleUint64 != 0UL) {
- SingleUint64 = other.SingleUint64;
- }
- if (other.SingleSint32 != 0) {
- SingleSint32 = other.SingleSint32;
- }
- if (other.SingleSint64 != 0L) {
- SingleSint64 = other.SingleSint64;
- }
- if (other.SingleFixed32 != 0) {
- SingleFixed32 = other.SingleFixed32;
- }
- if (other.SingleFixed64 != 0UL) {
- SingleFixed64 = other.SingleFixed64;
- }
- if (other.SingleSfixed32 != 0) {
- SingleSfixed32 = other.SingleSfixed32;
- }
- if (other.SingleSfixed64 != 0L) {
- SingleSfixed64 = other.SingleSfixed64;
- }
- if (other.SingleFloat != 0F) {
- SingleFloat = other.SingleFloat;
- }
- if (other.SingleDouble != 0D) {
- SingleDouble = other.SingleDouble;
- }
- if (other.SingleBool != false) {
- SingleBool = other.SingleBool;
- }
- if (other.SingleString.Length != 0) {
- SingleString = other.SingleString;
- }
- if (other.SingleBytes.Length != 0) {
- SingleBytes = other.SingleBytes;
- }
- if (other.singleNestedMessage_ != null) {
- if (singleNestedMessage_ == null) {
- singleNestedMessage_ = new global::Google.Protobuf.TestProtos.TestAllTypes.Types.NestedMessage();
- }
- SingleNestedMessage.MergeFrom(other.SingleNestedMessage);
- }
- if (other.singleForeignMessage_ != null) {
- if (singleForeignMessage_ == null) {
- singleForeignMessage_ = new global::Google.Protobuf.TestProtos.ForeignMessage();
- }
- SingleForeignMessage.MergeFrom(other.SingleForeignMessage);
- }
- if (other.singleImportMessage_ != null) {
- if (singleImportMessage_ == null) {
- singleImportMessage_ = new global::Google.Protobuf.TestProtos.ImportMessage();
- }
- SingleImportMessage.MergeFrom(other.SingleImportMessage);
- }
- if (other.SingleNestedEnum != 0) {
- SingleNestedEnum = other.SingleNestedEnum;
- }
- if (other.SingleForeignEnum != 0) {
- SingleForeignEnum = other.SingleForeignEnum;
- }
- if (other.SingleImportEnum != 0) {
- SingleImportEnum = other.SingleImportEnum;
- }
- if (other.singlePublicImportMessage_ != null) {
- if (singlePublicImportMessage_ == null) {
- singlePublicImportMessage_ = new global::Google.Protobuf.TestProtos.PublicImportMessage();
- }
- SinglePublicImportMessage.MergeFrom(other.SinglePublicImportMessage);
- }
- repeatedInt32_.Add(other.repeatedInt32_);
- repeatedInt64_.Add(other.repeatedInt64_);
- repeatedUint32_.Add(other.repeatedUint32_);
- repeatedUint64_.Add(other.repeatedUint64_);
- repeatedSint32_.Add(other.repeatedSint32_);
- repeatedSint64_.Add(other.repeatedSint64_);
- repeatedFixed32_.Add(other.repeatedFixed32_);
- repeatedFixed64_.Add(other.repeatedFixed64_);
- repeatedSfixed32_.Add(other.repeatedSfixed32_);
- repeatedSfixed64_.Add(other.repeatedSfixed64_);
- repeatedFloat_.Add(other.repeatedFloat_);
- repeatedDouble_.Add(other.repeatedDouble_);
- repeatedBool_.Add(other.repeatedBool_);
- repeatedString_.Add(other.repeatedString_);
- repeatedBytes_.Add(other.repeatedBytes_);
- repeatedNestedMessage_.Add(other.repeatedNestedMessage_);
- repeatedForeignMessage_.Add(other.repeatedForeignMessage_);
- repeatedImportMessage_.Add(other.repeatedImportMessage_);
- repeatedNestedEnum_.Add(other.repeatedNestedEnum_);
- repeatedForeignEnum_.Add(other.repeatedForeignEnum_);
- repeatedImportEnum_.Add(other.repeatedImportEnum_);
- repeatedPublicImportMessage_.Add(other.repeatedPublicImportMessage_);
- switch (other.OneofFieldCase) {
- case OneofFieldOneofCase.OneofUint32:
- OneofUint32 = other.OneofUint32;
- break;
- case OneofFieldOneofCase.OneofNestedMessage:
- OneofNestedMessage = other.OneofNestedMessage;
- break;
- case OneofFieldOneofCase.OneofString:
- OneofString = other.OneofString;
- break;
- case OneofFieldOneofCase.OneofBytes:
- OneofBytes = other.OneofBytes;
- break;
- }
-
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void MergeFrom(pb::CodedInputStream input) {
- uint tag;
- while ((tag = input.ReadTag()) != 0) {
- switch(tag) {
- default:
- input.SkipLastField();
- break;
- case 8: {
- SingleInt32 = input.ReadInt32();
- break;
- }
- case 16: {
- SingleInt64 = input.ReadInt64();
- break;
- }
- case 24: {
- SingleUint32 = input.ReadUInt32();
- break;
- }
- case 32: {
- SingleUint64 = input.ReadUInt64();
- break;
- }
- case 40: {
- SingleSint32 = input.ReadSInt32();
- break;
- }
- case 48: {
- SingleSint64 = input.ReadSInt64();
- break;
- }
- case 61: {
- SingleFixed32 = input.ReadFixed32();
- break;
- }
- case 65: {
- SingleFixed64 = input.ReadFixed64();
- break;
- }
- case 77: {
- SingleSfixed32 = input.ReadSFixed32();
- break;
- }
- case 81: {
- SingleSfixed64 = input.ReadSFixed64();
- break;
- }
- case 93: {
- SingleFloat = input.ReadFloat();
- break;
- }
- case 97: {
- SingleDouble = input.ReadDouble();
- break;
- }
- case 104: {
- SingleBool = input.ReadBool();
- break;
- }
- case 114: {
- SingleString = input.ReadString();
- break;
- }
- case 122: {
- SingleBytes = input.ReadBytes();
- break;
- }
- case 146: {
- if (singleNestedMessage_ == null) {
- singleNestedMessage_ = new global::Google.Protobuf.TestProtos.TestAllTypes.Types.NestedMessage();
- }
- input.ReadMessage(singleNestedMessage_);
- break;
- }
- case 154: {
- if (singleForeignMessage_ == null) {
- singleForeignMessage_ = new global::Google.Protobuf.TestProtos.ForeignMessage();
- }
- input.ReadMessage(singleForeignMessage_);
- break;
- }
- case 162: {
- if (singleImportMessage_ == null) {
- singleImportMessage_ = new global::Google.Protobuf.TestProtos.ImportMessage();
- }
- input.ReadMessage(singleImportMessage_);
- break;
- }
- case 168: {
- singleNestedEnum_ = (global::Google.Protobuf.TestProtos.TestAllTypes.Types.NestedEnum) input.ReadEnum();
- break;
- }
- case 176: {
- singleForeignEnum_ = (global::Google.Protobuf.TestProtos.ForeignEnum) input.ReadEnum();
- break;
- }
- case 184: {
- singleImportEnum_ = (global::Google.Protobuf.TestProtos.ImportEnum) input.ReadEnum();
- break;
- }
- case 210: {
- if (singlePublicImportMessage_ == null) {
- singlePublicImportMessage_ = new global::Google.Protobuf.TestProtos.PublicImportMessage();
- }
- input.ReadMessage(singlePublicImportMessage_);
- break;
- }
- case 250:
- case 248: {
- repeatedInt32_.AddEntriesFrom(input, _repeated_repeatedInt32_codec);
- break;
- }
- case 258:
- case 256: {
- repeatedInt64_.AddEntriesFrom(input, _repeated_repeatedInt64_codec);
- break;
- }
- case 266:
- case 264: {
- repeatedUint32_.AddEntriesFrom(input, _repeated_repeatedUint32_codec);
- break;
- }
- case 274:
- case 272: {
- repeatedUint64_.AddEntriesFrom(input, _repeated_repeatedUint64_codec);
- break;
- }
- case 282:
- case 280: {
- repeatedSint32_.AddEntriesFrom(input, _repeated_repeatedSint32_codec);
- break;
- }
- case 290:
- case 288: {
- repeatedSint64_.AddEntriesFrom(input, _repeated_repeatedSint64_codec);
- break;
- }
- case 298:
- case 301: {
- repeatedFixed32_.AddEntriesFrom(input, _repeated_repeatedFixed32_codec);
- break;
- }
- case 306:
- case 305: {
- repeatedFixed64_.AddEntriesFrom(input, _repeated_repeatedFixed64_codec);
- break;
- }
- case 314:
- case 317: {
- repeatedSfixed32_.AddEntriesFrom(input, _repeated_repeatedSfixed32_codec);
- break;
- }
- case 322:
- case 321: {
- repeatedSfixed64_.AddEntriesFrom(input, _repeated_repeatedSfixed64_codec);
- break;
- }
- case 330:
- case 333: {
- repeatedFloat_.AddEntriesFrom(input, _repeated_repeatedFloat_codec);
- break;
- }
- case 338:
- case 337: {
- repeatedDouble_.AddEntriesFrom(input, _repeated_repeatedDouble_codec);
- break;
- }
- case 346:
- case 344: {
- repeatedBool_.AddEntriesFrom(input, _repeated_repeatedBool_codec);
- break;
- }
- case 354: {
- repeatedString_.AddEntriesFrom(input, _repeated_repeatedString_codec);
- break;
- }
- case 362: {
- repeatedBytes_.AddEntriesFrom(input, _repeated_repeatedBytes_codec);
- break;
- }
- case 386: {
- repeatedNestedMessage_.AddEntriesFrom(input, _repeated_repeatedNestedMessage_codec);
- break;
- }
- case 394: {
- repeatedForeignMessage_.AddEntriesFrom(input, _repeated_repeatedForeignMessage_codec);
- break;
- }
- case 402: {
- repeatedImportMessage_.AddEntriesFrom(input, _repeated_repeatedImportMessage_codec);
- break;
- }
- case 410:
- case 408: {
- repeatedNestedEnum_.AddEntriesFrom(input, _repeated_repeatedNestedEnum_codec);
- break;
- }
- case 418:
- case 416: {
- repeatedForeignEnum_.AddEntriesFrom(input, _repeated_repeatedForeignEnum_codec);
- break;
- }
- case 426:
- case 424: {
- repeatedImportEnum_.AddEntriesFrom(input, _repeated_repeatedImportEnum_codec);
- break;
- }
- case 434: {
- repeatedPublicImportMessage_.AddEntriesFrom(input, _repeated_repeatedPublicImportMessage_codec);
- break;
- }
- case 888: {
- OneofUint32 = input.ReadUInt32();
- break;
- }
- case 898: {
- global::Google.Protobuf.TestProtos.TestAllTypes.Types.NestedMessage subBuilder = new global::Google.Protobuf.TestProtos.TestAllTypes.Types.NestedMessage();
- if (oneofFieldCase_ == OneofFieldOneofCase.OneofNestedMessage) {
- subBuilder.MergeFrom(OneofNestedMessage);
- }
- input.ReadMessage(subBuilder);
- OneofNestedMessage = subBuilder;
- break;
- }
- case 906: {
- OneofString = input.ReadString();
- break;
- }
- case 914: {
- OneofBytes = input.ReadBytes();
- break;
- }
- }
- }
- }
-
- #region Nested types
- /// <summary>Container for nested types declared in the TestAllTypes message type.</summary>
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public static partial class Types {
- public enum NestedEnum {
- [pbr::OriginalName("NESTED_ENUM_UNSPECIFIED")] Unspecified = 0,
- [pbr::OriginalName("FOO")] Foo = 1,
- [pbr::OriginalName("BAR")] Bar = 2,
- [pbr::OriginalName("BAZ")] Baz = 3,
- /// <summary>
- /// Intentionally negative.
- /// </summary>
- [pbr::OriginalName("NEG")] Neg = -1,
- }
-
- public sealed partial class NestedMessage : pb::IMessage<NestedMessage> {
- private static readonly pb::MessageParser<NestedMessage> _parser = new pb::MessageParser<NestedMessage>(() => new NestedMessage());
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public static pb::MessageParser<NestedMessage> Parser { get { return _parser; } }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public static pbr::MessageDescriptor Descriptor {
- get { return global::Google.Protobuf.TestProtos.TestAllTypes.Descriptor.NestedTypes[0]; }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- pbr::MessageDescriptor pb::IMessage.Descriptor {
- get { return Descriptor; }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public NestedMessage() {
- OnConstruction();
- }
-
- partial void OnConstruction();
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public NestedMessage(NestedMessage other) : this() {
- bb_ = other.bb_;
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public NestedMessage Clone() {
- return new NestedMessage(this);
- }
-
- /// <summary>Field number for the "bb" field.</summary>
- public const int BbFieldNumber = 1;
- private int bb_;
- /// <summary>
- /// The field name "b" fails to compile in proto1 because it conflicts with
- /// a local variable named "b" in one of the generated methods. Doh.
- /// This file needs to compile in proto1 to test backwards-compatibility.
- /// </summary>
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public int Bb {
- get { return bb_; }
- set {
- bb_ = value;
- }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public override bool Equals(object other) {
- return Equals(other as NestedMessage);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public bool Equals(NestedMessage other) {
- if (ReferenceEquals(other, null)) {
- return false;
- }
- if (ReferenceEquals(other, this)) {
- return true;
- }
- if (Bb != other.Bb) return false;
- return true;
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public override int GetHashCode() {
- int hash = 1;
- if (Bb != 0) hash ^= Bb.GetHashCode();
- return hash;
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public override string ToString() {
- return pb::JsonFormatter.ToDiagnosticString(this);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void WriteTo(pb::CodedOutputStream output) {
- if (Bb != 0) {
- output.WriteRawTag(8);
- output.WriteInt32(Bb);
- }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public int CalculateSize() {
- int size = 0;
- if (Bb != 0) {
- size += 1 + pb::CodedOutputStream.ComputeInt32Size(Bb);
- }
- return size;
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void MergeFrom(NestedMessage other) {
- if (other == null) {
- return;
- }
- if (other.Bb != 0) {
- Bb = other.Bb;
- }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void MergeFrom(pb::CodedInputStream input) {
- uint tag;
- while ((tag = input.ReadTag()) != 0) {
- switch(tag) {
- default:
- input.SkipLastField();
- break;
- case 8: {
- Bb = input.ReadInt32();
- break;
- }
- }
- }
- }
-
- }
-
- }
- #endregion
-
- }
-
- /// <summary>
- /// This proto includes a recusively nested message.
- /// </summary>
- public sealed partial class NestedTestAllTypes : pb::IMessage<NestedTestAllTypes> {
- private static readonly pb::MessageParser<NestedTestAllTypes> _parser = new pb::MessageParser<NestedTestAllTypes>(() => new NestedTestAllTypes());
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public static pb::MessageParser<NestedTestAllTypes> Parser { get { return _parser; } }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public static pbr::MessageDescriptor Descriptor {
- get { return global::Google.Protobuf.TestProtos.UnittestProto3Reflection.Descriptor.MessageTypes[1]; }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- pbr::MessageDescriptor pb::IMessage.Descriptor {
- get { return Descriptor; }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public NestedTestAllTypes() {
- OnConstruction();
- }
-
- partial void OnConstruction();
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public NestedTestAllTypes(NestedTestAllTypes other) : this() {
- Child = other.child_ != null ? other.Child.Clone() : null;
- Payload = other.payload_ != null ? other.Payload.Clone() : null;
- repeatedChild_ = other.repeatedChild_.Clone();
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public NestedTestAllTypes Clone() {
- return new NestedTestAllTypes(this);
- }
-
- /// <summary>Field number for the "child" field.</summary>
- public const int ChildFieldNumber = 1;
- private global::Google.Protobuf.TestProtos.NestedTestAllTypes child_;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public global::Google.Protobuf.TestProtos.NestedTestAllTypes Child {
- get { return child_; }
- set {
- child_ = value;
- }
- }
-
- /// <summary>Field number for the "payload" field.</summary>
- public const int PayloadFieldNumber = 2;
- private global::Google.Protobuf.TestProtos.TestAllTypes payload_;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public global::Google.Protobuf.TestProtos.TestAllTypes Payload {
- get { return payload_; }
- set {
- payload_ = value;
- }
- }
-
- /// <summary>Field number for the "repeated_child" field.</summary>
- public const int RepeatedChildFieldNumber = 3;
- private static readonly pb::FieldCodec<global::Google.Protobuf.TestProtos.NestedTestAllTypes> _repeated_repeatedChild_codec
- = pb::FieldCodec.ForMessage(26, global::Google.Protobuf.TestProtos.NestedTestAllTypes.Parser);
- private readonly pbc::RepeatedField<global::Google.Protobuf.TestProtos.NestedTestAllTypes> repeatedChild_ = new pbc::RepeatedField<global::Google.Protobuf.TestProtos.NestedTestAllTypes>();
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public pbc::RepeatedField<global::Google.Protobuf.TestProtos.NestedTestAllTypes> RepeatedChild {
- get { return repeatedChild_; }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public override bool Equals(object other) {
- return Equals(other as NestedTestAllTypes);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public bool Equals(NestedTestAllTypes other) {
- if (ReferenceEquals(other, null)) {
- return false;
- }
- if (ReferenceEquals(other, this)) {
- return true;
- }
- if (!object.Equals(Child, other.Child)) return false;
- if (!object.Equals(Payload, other.Payload)) return false;
- if(!repeatedChild_.Equals(other.repeatedChild_)) return false;
- return true;
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public override int GetHashCode() {
- int hash = 1;
- if (child_ != null) hash ^= Child.GetHashCode();
- if (payload_ != null) hash ^= Payload.GetHashCode();
- hash ^= repeatedChild_.GetHashCode();
- return hash;
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public override string ToString() {
- return pb::JsonFormatter.ToDiagnosticString(this);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void WriteTo(pb::CodedOutputStream output) {
- if (child_ != null) {
- output.WriteRawTag(10);
- output.WriteMessage(Child);
- }
- if (payload_ != null) {
- output.WriteRawTag(18);
- output.WriteMessage(Payload);
- }
- repeatedChild_.WriteTo(output, _repeated_repeatedChild_codec);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public int CalculateSize() {
- int size = 0;
- if (child_ != null) {
- size += 1 + pb::CodedOutputStream.ComputeMessageSize(Child);
- }
- if (payload_ != null) {
- size += 1 + pb::CodedOutputStream.ComputeMessageSize(Payload);
- }
- size += repeatedChild_.CalculateSize(_repeated_repeatedChild_codec);
- return size;
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void MergeFrom(NestedTestAllTypes other) {
- if (other == null) {
- return;
- }
- if (other.child_ != null) {
- if (child_ == null) {
- child_ = new global::Google.Protobuf.TestProtos.NestedTestAllTypes();
- }
- Child.MergeFrom(other.Child);
- }
- if (other.payload_ != null) {
- if (payload_ == null) {
- payload_ = new global::Google.Protobuf.TestProtos.TestAllTypes();
- }
- Payload.MergeFrom(other.Payload);
- }
- repeatedChild_.Add(other.repeatedChild_);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void MergeFrom(pb::CodedInputStream input) {
- uint tag;
- while ((tag = input.ReadTag()) != 0) {
- switch(tag) {
- default:
- input.SkipLastField();
- break;
- case 10: {
- if (child_ == null) {
- child_ = new global::Google.Protobuf.TestProtos.NestedTestAllTypes();
- }
- input.ReadMessage(child_);
- break;
- }
- case 18: {
- if (payload_ == null) {
- payload_ = new global::Google.Protobuf.TestProtos.TestAllTypes();
- }
- input.ReadMessage(payload_);
- break;
- }
- case 26: {
- repeatedChild_.AddEntriesFrom(input, _repeated_repeatedChild_codec);
- break;
- }
- }
- }
- }
-
- }
-
- public sealed partial class TestDeprecatedFields : pb::IMessage<TestDeprecatedFields> {
- private static readonly pb::MessageParser<TestDeprecatedFields> _parser = new pb::MessageParser<TestDeprecatedFields>(() => new TestDeprecatedFields());
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public static pb::MessageParser<TestDeprecatedFields> Parser { get { return _parser; } }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public static pbr::MessageDescriptor Descriptor {
- get { return global::Google.Protobuf.TestProtos.UnittestProto3Reflection.Descriptor.MessageTypes[2]; }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- pbr::MessageDescriptor pb::IMessage.Descriptor {
- get { return Descriptor; }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public TestDeprecatedFields() {
- OnConstruction();
- }
-
- partial void OnConstruction();
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public TestDeprecatedFields(TestDeprecatedFields other) : this() {
- deprecatedInt32_ = other.deprecatedInt32_;
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public TestDeprecatedFields Clone() {
- return new TestDeprecatedFields(this);
- }
-
- /// <summary>Field number for the "deprecated_int32" field.</summary>
- public const int DeprecatedInt32FieldNumber = 1;
- private int deprecatedInt32_;
- [global::System.ObsoleteAttribute]
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public int DeprecatedInt32 {
- get { return deprecatedInt32_; }
- set {
- deprecatedInt32_ = value;
- }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public override bool Equals(object other) {
- return Equals(other as TestDeprecatedFields);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public bool Equals(TestDeprecatedFields other) {
- if (ReferenceEquals(other, null)) {
- return false;
- }
- if (ReferenceEquals(other, this)) {
- return true;
- }
- if (DeprecatedInt32 != other.DeprecatedInt32) return false;
- return true;
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public override int GetHashCode() {
- int hash = 1;
- if (DeprecatedInt32 != 0) hash ^= DeprecatedInt32.GetHashCode();
- return hash;
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public override string ToString() {
- return pb::JsonFormatter.ToDiagnosticString(this);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void WriteTo(pb::CodedOutputStream output) {
- if (DeprecatedInt32 != 0) {
- output.WriteRawTag(8);
- output.WriteInt32(DeprecatedInt32);
- }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public int CalculateSize() {
- int size = 0;
- if (DeprecatedInt32 != 0) {
- size += 1 + pb::CodedOutputStream.ComputeInt32Size(DeprecatedInt32);
- }
- return size;
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void MergeFrom(TestDeprecatedFields other) {
- if (other == null) {
- return;
- }
- if (other.DeprecatedInt32 != 0) {
- DeprecatedInt32 = other.DeprecatedInt32;
- }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void MergeFrom(pb::CodedInputStream input) {
- uint tag;
- while ((tag = input.ReadTag()) != 0) {
- switch(tag) {
- default:
- input.SkipLastField();
- break;
- case 8: {
- DeprecatedInt32 = input.ReadInt32();
- break;
- }
- }
- }
- }
-
- }
-
- /// <summary>
- /// Define these after TestAllTypes to make sure the compiler can handle
- /// that.
- /// </summary>
- public sealed partial class ForeignMessage : pb::IMessage<ForeignMessage> {
- private static readonly pb::MessageParser<ForeignMessage> _parser = new pb::MessageParser<ForeignMessage>(() => new ForeignMessage());
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public static pb::MessageParser<ForeignMessage> Parser { get { return _parser; } }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public static pbr::MessageDescriptor Descriptor {
- get { return global::Google.Protobuf.TestProtos.UnittestProto3Reflection.Descriptor.MessageTypes[3]; }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- pbr::MessageDescriptor pb::IMessage.Descriptor {
- get { return Descriptor; }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public ForeignMessage() {
- OnConstruction();
- }
-
- partial void OnConstruction();
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public ForeignMessage(ForeignMessage other) : this() {
- c_ = other.c_;
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public ForeignMessage Clone() {
- return new ForeignMessage(this);
- }
-
- /// <summary>Field number for the "c" field.</summary>
- public const int CFieldNumber = 1;
- private int c_;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public int C {
- get { return c_; }
- set {
- c_ = value;
- }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public override bool Equals(object other) {
- return Equals(other as ForeignMessage);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public bool Equals(ForeignMessage other) {
- if (ReferenceEquals(other, null)) {
- return false;
- }
- if (ReferenceEquals(other, this)) {
- return true;
- }
- if (C != other.C) return false;
- return true;
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public override int GetHashCode() {
- int hash = 1;
- if (C != 0) hash ^= C.GetHashCode();
- return hash;
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public override string ToString() {
- return pb::JsonFormatter.ToDiagnosticString(this);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void WriteTo(pb::CodedOutputStream output) {
- if (C != 0) {
- output.WriteRawTag(8);
- output.WriteInt32(C);
- }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public int CalculateSize() {
- int size = 0;
- if (C != 0) {
- size += 1 + pb::CodedOutputStream.ComputeInt32Size(C);
- }
- return size;
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void MergeFrom(ForeignMessage other) {
- if (other == null) {
- return;
- }
- if (other.C != 0) {
- C = other.C;
- }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void MergeFrom(pb::CodedInputStream input) {
- uint tag;
- while ((tag = input.ReadTag()) != 0) {
- switch(tag) {
- default:
- input.SkipLastField();
- break;
- case 8: {
- C = input.ReadInt32();
- break;
- }
- }
- }
- }
-
- }
-
- public sealed partial class TestReservedFields : pb::IMessage<TestReservedFields> {
- private static readonly pb::MessageParser<TestReservedFields> _parser = new pb::MessageParser<TestReservedFields>(() => new TestReservedFields());
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public static pb::MessageParser<TestReservedFields> Parser { get { return _parser; } }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public static pbr::MessageDescriptor Descriptor {
- get { return global::Google.Protobuf.TestProtos.UnittestProto3Reflection.Descriptor.MessageTypes[4]; }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- pbr::MessageDescriptor pb::IMessage.Descriptor {
- get { return Descriptor; }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public TestReservedFields() {
- OnConstruction();
- }
-
- partial void OnConstruction();
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public TestReservedFields(TestReservedFields other) : this() {
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public TestReservedFields Clone() {
- return new TestReservedFields(this);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public override bool Equals(object other) {
- return Equals(other as TestReservedFields);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public bool Equals(TestReservedFields other) {
- if (ReferenceEquals(other, null)) {
- return false;
- }
- if (ReferenceEquals(other, this)) {
- return true;
- }
- return true;
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public override int GetHashCode() {
- int hash = 1;
- return hash;
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public override string ToString() {
- return pb::JsonFormatter.ToDiagnosticString(this);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void WriteTo(pb::CodedOutputStream output) {
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public int CalculateSize() {
- int size = 0;
- return size;
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void MergeFrom(TestReservedFields other) {
- if (other == null) {
- return;
- }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void MergeFrom(pb::CodedInputStream input) {
- uint tag;
- while ((tag = input.ReadTag()) != 0) {
- switch(tag) {
- default:
- input.SkipLastField();
- break;
- }
- }
- }
-
- }
-
- /// <summary>
- /// Test that we can use NestedMessage from outside TestAllTypes.
- /// </summary>
- public sealed partial class TestForeignNested : pb::IMessage<TestForeignNested> {
- private static readonly pb::MessageParser<TestForeignNested> _parser = new pb::MessageParser<TestForeignNested>(() => new TestForeignNested());
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public static pb::MessageParser<TestForeignNested> Parser { get { return _parser; } }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public static pbr::MessageDescriptor Descriptor {
- get { return global::Google.Protobuf.TestProtos.UnittestProto3Reflection.Descriptor.MessageTypes[5]; }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- pbr::MessageDescriptor pb::IMessage.Descriptor {
- get { return Descriptor; }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public TestForeignNested() {
- OnConstruction();
- }
-
- partial void OnConstruction();
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public TestForeignNested(TestForeignNested other) : this() {
- ForeignNested = other.foreignNested_ != null ? other.ForeignNested.Clone() : null;
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public TestForeignNested Clone() {
- return new TestForeignNested(this);
- }
-
- /// <summary>Field number for the "foreign_nested" field.</summary>
- public const int ForeignNestedFieldNumber = 1;
- private global::Google.Protobuf.TestProtos.TestAllTypes.Types.NestedMessage foreignNested_;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public global::Google.Protobuf.TestProtos.TestAllTypes.Types.NestedMessage ForeignNested {
- get { return foreignNested_; }
- set {
- foreignNested_ = value;
- }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public override bool Equals(object other) {
- return Equals(other as TestForeignNested);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public bool Equals(TestForeignNested other) {
- if (ReferenceEquals(other, null)) {
- return false;
- }
- if (ReferenceEquals(other, this)) {
- return true;
- }
- if (!object.Equals(ForeignNested, other.ForeignNested)) return false;
- return true;
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public override int GetHashCode() {
- int hash = 1;
- if (foreignNested_ != null) hash ^= ForeignNested.GetHashCode();
- return hash;
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public override string ToString() {
- return pb::JsonFormatter.ToDiagnosticString(this);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void WriteTo(pb::CodedOutputStream output) {
- if (foreignNested_ != null) {
- output.WriteRawTag(10);
- output.WriteMessage(ForeignNested);
- }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public int CalculateSize() {
- int size = 0;
- if (foreignNested_ != null) {
- size += 1 + pb::CodedOutputStream.ComputeMessageSize(ForeignNested);
- }
- return size;
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void MergeFrom(TestForeignNested other) {
- if (other == null) {
- return;
- }
- if (other.foreignNested_ != null) {
- if (foreignNested_ == null) {
- foreignNested_ = new global::Google.Protobuf.TestProtos.TestAllTypes.Types.NestedMessage();
- }
- ForeignNested.MergeFrom(other.ForeignNested);
- }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void MergeFrom(pb::CodedInputStream input) {
- uint tag;
- while ((tag = input.ReadTag()) != 0) {
- switch(tag) {
- default:
- input.SkipLastField();
- break;
- case 10: {
- if (foreignNested_ == null) {
- foreignNested_ = new global::Google.Protobuf.TestProtos.TestAllTypes.Types.NestedMessage();
- }
- input.ReadMessage(foreignNested_);
- break;
- }
- }
- }
- }
-
- }
-
- /// <summary>
- /// Test that really large tag numbers don't break anything.
- /// </summary>
- public sealed partial class TestReallyLargeTagNumber : pb::IMessage<TestReallyLargeTagNumber> {
- private static readonly pb::MessageParser<TestReallyLargeTagNumber> _parser = new pb::MessageParser<TestReallyLargeTagNumber>(() => new TestReallyLargeTagNumber());
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public static pb::MessageParser<TestReallyLargeTagNumber> Parser { get { return _parser; } }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public static pbr::MessageDescriptor Descriptor {
- get { return global::Google.Protobuf.TestProtos.UnittestProto3Reflection.Descriptor.MessageTypes[6]; }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- pbr::MessageDescriptor pb::IMessage.Descriptor {
- get { return Descriptor; }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public TestReallyLargeTagNumber() {
- OnConstruction();
- }
-
- partial void OnConstruction();
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public TestReallyLargeTagNumber(TestReallyLargeTagNumber other) : this() {
- a_ = other.a_;
- bb_ = other.bb_;
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public TestReallyLargeTagNumber Clone() {
- return new TestReallyLargeTagNumber(this);
- }
-
- /// <summary>Field number for the "a" field.</summary>
- public const int AFieldNumber = 1;
- private int a_;
- /// <summary>
- /// The largest possible tag number is 2^28 - 1, since the wire format uses
- /// three bits to communicate wire type.
- /// </summary>
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public int A {
- get { return a_; }
- set {
- a_ = value;
- }
- }
-
- /// <summary>Field number for the "bb" field.</summary>
- public const int BbFieldNumber = 268435455;
- private int bb_;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public int Bb {
- get { return bb_; }
- set {
- bb_ = value;
- }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public override bool Equals(object other) {
- return Equals(other as TestReallyLargeTagNumber);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public bool Equals(TestReallyLargeTagNumber other) {
- if (ReferenceEquals(other, null)) {
- return false;
- }
- if (ReferenceEquals(other, this)) {
- return true;
- }
- if (A != other.A) return false;
- if (Bb != other.Bb) return false;
- return true;
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public override int GetHashCode() {
- int hash = 1;
- if (A != 0) hash ^= A.GetHashCode();
- if (Bb != 0) hash ^= Bb.GetHashCode();
- return hash;
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public override string ToString() {
- return pb::JsonFormatter.ToDiagnosticString(this);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void WriteTo(pb::CodedOutputStream output) {
- if (A != 0) {
- output.WriteRawTag(8);
- output.WriteInt32(A);
- }
- if (Bb != 0) {
- output.WriteRawTag(248, 255, 255, 255, 7);
- output.WriteInt32(Bb);
- }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public int CalculateSize() {
- int size = 0;
- if (A != 0) {
- size += 1 + pb::CodedOutputStream.ComputeInt32Size(A);
- }
- if (Bb != 0) {
- size += 5 + pb::CodedOutputStream.ComputeInt32Size(Bb);
- }
- return size;
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void MergeFrom(TestReallyLargeTagNumber other) {
- if (other == null) {
- return;
- }
- if (other.A != 0) {
- A = other.A;
- }
- if (other.Bb != 0) {
- Bb = other.Bb;
- }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void MergeFrom(pb::CodedInputStream input) {
- uint tag;
- while ((tag = input.ReadTag()) != 0) {
- switch(tag) {
- default:
- input.SkipLastField();
- break;
- case 8: {
- A = input.ReadInt32();
- break;
- }
- case 2147483640: {
- Bb = input.ReadInt32();
- break;
- }
- }
- }
- }
-
- }
-
- public sealed partial class TestRecursiveMessage : pb::IMessage<TestRecursiveMessage> {
- private static readonly pb::MessageParser<TestRecursiveMessage> _parser = new pb::MessageParser<TestRecursiveMessage>(() => new TestRecursiveMessage());
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public static pb::MessageParser<TestRecursiveMessage> Parser { get { return _parser; } }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public static pbr::MessageDescriptor Descriptor {
- get { return global::Google.Protobuf.TestProtos.UnittestProto3Reflection.Descriptor.MessageTypes[7]; }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- pbr::MessageDescriptor pb::IMessage.Descriptor {
- get { return Descriptor; }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public TestRecursiveMessage() {
- OnConstruction();
- }
-
- partial void OnConstruction();
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public TestRecursiveMessage(TestRecursiveMessage other) : this() {
- A = other.a_ != null ? other.A.Clone() : null;
- i_ = other.i_;
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public TestRecursiveMessage Clone() {
- return new TestRecursiveMessage(this);
- }
-
- /// <summary>Field number for the "a" field.</summary>
- public const int AFieldNumber = 1;
- private global::Google.Protobuf.TestProtos.TestRecursiveMessage a_;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public global::Google.Protobuf.TestProtos.TestRecursiveMessage A {
- get { return a_; }
- set {
- a_ = value;
- }
- }
-
- /// <summary>Field number for the "i" field.</summary>
- public const int IFieldNumber = 2;
- private int i_;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public int I {
- get { return i_; }
- set {
- i_ = value;
- }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public override bool Equals(object other) {
- return Equals(other as TestRecursiveMessage);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public bool Equals(TestRecursiveMessage other) {
- if (ReferenceEquals(other, null)) {
- return false;
- }
- if (ReferenceEquals(other, this)) {
- return true;
- }
- if (!object.Equals(A, other.A)) return false;
- if (I != other.I) return false;
- return true;
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public override int GetHashCode() {
- int hash = 1;
- if (a_ != null) hash ^= A.GetHashCode();
- if (I != 0) hash ^= I.GetHashCode();
- return hash;
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public override string ToString() {
- return pb::JsonFormatter.ToDiagnosticString(this);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void WriteTo(pb::CodedOutputStream output) {
- if (a_ != null) {
- output.WriteRawTag(10);
- output.WriteMessage(A);
- }
- if (I != 0) {
- output.WriteRawTag(16);
- output.WriteInt32(I);
- }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public int CalculateSize() {
- int size = 0;
- if (a_ != null) {
- size += 1 + pb::CodedOutputStream.ComputeMessageSize(A);
- }
- if (I != 0) {
- size += 1 + pb::CodedOutputStream.ComputeInt32Size(I);
- }
- return size;
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void MergeFrom(TestRecursiveMessage other) {
- if (other == null) {
- return;
- }
- if (other.a_ != null) {
- if (a_ == null) {
- a_ = new global::Google.Protobuf.TestProtos.TestRecursiveMessage();
- }
- A.MergeFrom(other.A);
- }
- if (other.I != 0) {
- I = other.I;
- }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void MergeFrom(pb::CodedInputStream input) {
- uint tag;
- while ((tag = input.ReadTag()) != 0) {
- switch(tag) {
- default:
- input.SkipLastField();
- break;
- case 10: {
- if (a_ == null) {
- a_ = new global::Google.Protobuf.TestProtos.TestRecursiveMessage();
- }
- input.ReadMessage(a_);
- break;
- }
- case 16: {
- I = input.ReadInt32();
- break;
- }
- }
- }
- }
-
- }
-
- /// <summary>
- /// Test that mutual recursion works.
- /// </summary>
- public sealed partial class TestMutualRecursionA : pb::IMessage<TestMutualRecursionA> {
- private static readonly pb::MessageParser<TestMutualRecursionA> _parser = new pb::MessageParser<TestMutualRecursionA>(() => new TestMutualRecursionA());
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public static pb::MessageParser<TestMutualRecursionA> Parser { get { return _parser; } }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public static pbr::MessageDescriptor Descriptor {
- get { return global::Google.Protobuf.TestProtos.UnittestProto3Reflection.Descriptor.MessageTypes[8]; }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- pbr::MessageDescriptor pb::IMessage.Descriptor {
- get { return Descriptor; }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public TestMutualRecursionA() {
- OnConstruction();
- }
-
- partial void OnConstruction();
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public TestMutualRecursionA(TestMutualRecursionA other) : this() {
- Bb = other.bb_ != null ? other.Bb.Clone() : null;
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public TestMutualRecursionA Clone() {
- return new TestMutualRecursionA(this);
- }
-
- /// <summary>Field number for the "bb" field.</summary>
- public const int BbFieldNumber = 1;
- private global::Google.Protobuf.TestProtos.TestMutualRecursionB bb_;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public global::Google.Protobuf.TestProtos.TestMutualRecursionB Bb {
- get { return bb_; }
- set {
- bb_ = value;
- }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public override bool Equals(object other) {
- return Equals(other as TestMutualRecursionA);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public bool Equals(TestMutualRecursionA other) {
- if (ReferenceEquals(other, null)) {
- return false;
- }
- if (ReferenceEquals(other, this)) {
- return true;
- }
- if (!object.Equals(Bb, other.Bb)) return false;
- return true;
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public override int GetHashCode() {
- int hash = 1;
- if (bb_ != null) hash ^= Bb.GetHashCode();
- return hash;
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public override string ToString() {
- return pb::JsonFormatter.ToDiagnosticString(this);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void WriteTo(pb::CodedOutputStream output) {
- if (bb_ != null) {
- output.WriteRawTag(10);
- output.WriteMessage(Bb);
- }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public int CalculateSize() {
- int size = 0;
- if (bb_ != null) {
- size += 1 + pb::CodedOutputStream.ComputeMessageSize(Bb);
- }
- return size;
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void MergeFrom(TestMutualRecursionA other) {
- if (other == null) {
- return;
- }
- if (other.bb_ != null) {
- if (bb_ == null) {
- bb_ = new global::Google.Protobuf.TestProtos.TestMutualRecursionB();
- }
- Bb.MergeFrom(other.Bb);
- }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void MergeFrom(pb::CodedInputStream input) {
- uint tag;
- while ((tag = input.ReadTag()) != 0) {
- switch(tag) {
- default:
- input.SkipLastField();
- break;
- case 10: {
- if (bb_ == null) {
- bb_ = new global::Google.Protobuf.TestProtos.TestMutualRecursionB();
- }
- input.ReadMessage(bb_);
- break;
- }
- }
- }
- }
-
- }
-
- public sealed partial class TestMutualRecursionB : pb::IMessage<TestMutualRecursionB> {
- private static readonly pb::MessageParser<TestMutualRecursionB> _parser = new pb::MessageParser<TestMutualRecursionB>(() => new TestMutualRecursionB());
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public static pb::MessageParser<TestMutualRecursionB> Parser { get { return _parser; } }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public static pbr::MessageDescriptor Descriptor {
- get { return global::Google.Protobuf.TestProtos.UnittestProto3Reflection.Descriptor.MessageTypes[9]; }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- pbr::MessageDescriptor pb::IMessage.Descriptor {
- get { return Descriptor; }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public TestMutualRecursionB() {
- OnConstruction();
- }
-
- partial void OnConstruction();
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public TestMutualRecursionB(TestMutualRecursionB other) : this() {
- A = other.a_ != null ? other.A.Clone() : null;
- optionalInt32_ = other.optionalInt32_;
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public TestMutualRecursionB Clone() {
- return new TestMutualRecursionB(this);
- }
-
- /// <summary>Field number for the "a" field.</summary>
- public const int AFieldNumber = 1;
- private global::Google.Protobuf.TestProtos.TestMutualRecursionA a_;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public global::Google.Protobuf.TestProtos.TestMutualRecursionA A {
- get { return a_; }
- set {
- a_ = value;
- }
- }
-
- /// <summary>Field number for the "optional_int32" field.</summary>
- public const int OptionalInt32FieldNumber = 2;
- private int optionalInt32_;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public int OptionalInt32 {
- get { return optionalInt32_; }
- set {
- optionalInt32_ = value;
- }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public override bool Equals(object other) {
- return Equals(other as TestMutualRecursionB);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public bool Equals(TestMutualRecursionB other) {
- if (ReferenceEquals(other, null)) {
- return false;
- }
- if (ReferenceEquals(other, this)) {
- return true;
- }
- if (!object.Equals(A, other.A)) return false;
- if (OptionalInt32 != other.OptionalInt32) return false;
- return true;
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public override int GetHashCode() {
- int hash = 1;
- if (a_ != null) hash ^= A.GetHashCode();
- if (OptionalInt32 != 0) hash ^= OptionalInt32.GetHashCode();
- return hash;
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public override string ToString() {
- return pb::JsonFormatter.ToDiagnosticString(this);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void WriteTo(pb::CodedOutputStream output) {
- if (a_ != null) {
- output.WriteRawTag(10);
- output.WriteMessage(A);
- }
- if (OptionalInt32 != 0) {
- output.WriteRawTag(16);
- output.WriteInt32(OptionalInt32);
- }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public int CalculateSize() {
- int size = 0;
- if (a_ != null) {
- size += 1 + pb::CodedOutputStream.ComputeMessageSize(A);
- }
- if (OptionalInt32 != 0) {
- size += 1 + pb::CodedOutputStream.ComputeInt32Size(OptionalInt32);
- }
- return size;
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void MergeFrom(TestMutualRecursionB other) {
- if (other == null) {
- return;
- }
- if (other.a_ != null) {
- if (a_ == null) {
- a_ = new global::Google.Protobuf.TestProtos.TestMutualRecursionA();
- }
- A.MergeFrom(other.A);
- }
- if (other.OptionalInt32 != 0) {
- OptionalInt32 = other.OptionalInt32;
- }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void MergeFrom(pb::CodedInputStream input) {
- uint tag;
- while ((tag = input.ReadTag()) != 0) {
- switch(tag) {
- default:
- input.SkipLastField();
- break;
- case 10: {
- if (a_ == null) {
- a_ = new global::Google.Protobuf.TestProtos.TestMutualRecursionA();
- }
- input.ReadMessage(a_);
- break;
- }
- case 16: {
- OptionalInt32 = input.ReadInt32();
- break;
- }
- }
- }
- }
-
- }
-
- /// <summary>
- /// Test message with CamelCase field names. This violates Protocol Buffer
- /// standard style.
- /// </summary>
- public sealed partial class TestCamelCaseFieldNames : pb::IMessage<TestCamelCaseFieldNames> {
- private static readonly pb::MessageParser<TestCamelCaseFieldNames> _parser = new pb::MessageParser<TestCamelCaseFieldNames>(() => new TestCamelCaseFieldNames());
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public static pb::MessageParser<TestCamelCaseFieldNames> Parser { get { return _parser; } }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public static pbr::MessageDescriptor Descriptor {
- get { return global::Google.Protobuf.TestProtos.UnittestProto3Reflection.Descriptor.MessageTypes[10]; }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- pbr::MessageDescriptor pb::IMessage.Descriptor {
- get { return Descriptor; }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public TestCamelCaseFieldNames() {
- OnConstruction();
- }
-
- partial void OnConstruction();
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public TestCamelCaseFieldNames(TestCamelCaseFieldNames other) : this() {
- primitiveField_ = other.primitiveField_;
- stringField_ = other.stringField_;
- enumField_ = other.enumField_;
- MessageField = other.messageField_ != null ? other.MessageField.Clone() : null;
- repeatedPrimitiveField_ = other.repeatedPrimitiveField_.Clone();
- repeatedStringField_ = other.repeatedStringField_.Clone();
- repeatedEnumField_ = other.repeatedEnumField_.Clone();
- repeatedMessageField_ = other.repeatedMessageField_.Clone();
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public TestCamelCaseFieldNames Clone() {
- return new TestCamelCaseFieldNames(this);
- }
-
- /// <summary>Field number for the "PrimitiveField" field.</summary>
- public const int PrimitiveFieldFieldNumber = 1;
- private int primitiveField_;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public int PrimitiveField {
- get { return primitiveField_; }
- set {
- primitiveField_ = value;
- }
- }
-
- /// <summary>Field number for the "StringField" field.</summary>
- public const int StringFieldFieldNumber = 2;
- private string stringField_ = "";
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public string StringField {
- get { return stringField_; }
- set {
- stringField_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
- }
- }
-
- /// <summary>Field number for the "EnumField" field.</summary>
- public const int EnumFieldFieldNumber = 3;
- private global::Google.Protobuf.TestProtos.ForeignEnum enumField_ = 0;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public global::Google.Protobuf.TestProtos.ForeignEnum EnumField {
- get { return enumField_; }
- set {
- enumField_ = value;
- }
- }
-
- /// <summary>Field number for the "MessageField" field.</summary>
- public const int MessageFieldFieldNumber = 4;
- private global::Google.Protobuf.TestProtos.ForeignMessage messageField_;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public global::Google.Protobuf.TestProtos.ForeignMessage MessageField {
- get { return messageField_; }
- set {
- messageField_ = value;
- }
- }
-
- /// <summary>Field number for the "RepeatedPrimitiveField" field.</summary>
- public const int RepeatedPrimitiveFieldFieldNumber = 7;
- private static readonly pb::FieldCodec<int> _repeated_repeatedPrimitiveField_codec
- = pb::FieldCodec.ForInt32(58);
- private readonly pbc::RepeatedField<int> repeatedPrimitiveField_ = new pbc::RepeatedField<int>();
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public pbc::RepeatedField<int> RepeatedPrimitiveField {
- get { return repeatedPrimitiveField_; }
- }
-
- /// <summary>Field number for the "RepeatedStringField" field.</summary>
- public const int RepeatedStringFieldFieldNumber = 8;
- private static readonly pb::FieldCodec<string> _repeated_repeatedStringField_codec
- = pb::FieldCodec.ForString(66);
- private readonly pbc::RepeatedField<string> repeatedStringField_ = new pbc::RepeatedField<string>();
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public pbc::RepeatedField<string> RepeatedStringField {
- get { return repeatedStringField_; }
- }
-
- /// <summary>Field number for the "RepeatedEnumField" field.</summary>
- public const int RepeatedEnumFieldFieldNumber = 9;
- private static readonly pb::FieldCodec<global::Google.Protobuf.TestProtos.ForeignEnum> _repeated_repeatedEnumField_codec
- = pb::FieldCodec.ForEnum(74, x => (int) x, x => (global::Google.Protobuf.TestProtos.ForeignEnum) x);
- private readonly pbc::RepeatedField<global::Google.Protobuf.TestProtos.ForeignEnum> repeatedEnumField_ = new pbc::RepeatedField<global::Google.Protobuf.TestProtos.ForeignEnum>();
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public pbc::RepeatedField<global::Google.Protobuf.TestProtos.ForeignEnum> RepeatedEnumField {
- get { return repeatedEnumField_; }
- }
-
- /// <summary>Field number for the "RepeatedMessageField" field.</summary>
- public const int RepeatedMessageFieldFieldNumber = 10;
- private static readonly pb::FieldCodec<global::Google.Protobuf.TestProtos.ForeignMessage> _repeated_repeatedMessageField_codec
- = pb::FieldCodec.ForMessage(82, global::Google.Protobuf.TestProtos.ForeignMessage.Parser);
- private readonly pbc::RepeatedField<global::Google.Protobuf.TestProtos.ForeignMessage> repeatedMessageField_ = new pbc::RepeatedField<global::Google.Protobuf.TestProtos.ForeignMessage>();
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public pbc::RepeatedField<global::Google.Protobuf.TestProtos.ForeignMessage> RepeatedMessageField {
- get { return repeatedMessageField_; }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public override bool Equals(object other) {
- return Equals(other as TestCamelCaseFieldNames);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public bool Equals(TestCamelCaseFieldNames other) {
- if (ReferenceEquals(other, null)) {
- return false;
- }
- if (ReferenceEquals(other, this)) {
- return true;
- }
- if (PrimitiveField != other.PrimitiveField) return false;
- if (StringField != other.StringField) return false;
- if (EnumField != other.EnumField) return false;
- if (!object.Equals(MessageField, other.MessageField)) return false;
- if(!repeatedPrimitiveField_.Equals(other.repeatedPrimitiveField_)) return false;
- if(!repeatedStringField_.Equals(other.repeatedStringField_)) return false;
- if(!repeatedEnumField_.Equals(other.repeatedEnumField_)) return false;
- if(!repeatedMessageField_.Equals(other.repeatedMessageField_)) return false;
- return true;
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public override int GetHashCode() {
- int hash = 1;
- if (PrimitiveField != 0) hash ^= PrimitiveField.GetHashCode();
- if (StringField.Length != 0) hash ^= StringField.GetHashCode();
- if (EnumField != 0) hash ^= EnumField.GetHashCode();
- if (messageField_ != null) hash ^= MessageField.GetHashCode();
- hash ^= repeatedPrimitiveField_.GetHashCode();
- hash ^= repeatedStringField_.GetHashCode();
- hash ^= repeatedEnumField_.GetHashCode();
- hash ^= repeatedMessageField_.GetHashCode();
- return hash;
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public override string ToString() {
- return pb::JsonFormatter.ToDiagnosticString(this);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void WriteTo(pb::CodedOutputStream output) {
- if (PrimitiveField != 0) {
- output.WriteRawTag(8);
- output.WriteInt32(PrimitiveField);
- }
- if (StringField.Length != 0) {
- output.WriteRawTag(18);
- output.WriteString(StringField);
- }
- if (EnumField != 0) {
- output.WriteRawTag(24);
- output.WriteEnum((int) EnumField);
- }
- if (messageField_ != null) {
- output.WriteRawTag(34);
- output.WriteMessage(MessageField);
- }
- repeatedPrimitiveField_.WriteTo(output, _repeated_repeatedPrimitiveField_codec);
- repeatedStringField_.WriteTo(output, _repeated_repeatedStringField_codec);
- repeatedEnumField_.WriteTo(output, _repeated_repeatedEnumField_codec);
- repeatedMessageField_.WriteTo(output, _repeated_repeatedMessageField_codec);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public int CalculateSize() {
- int size = 0;
- if (PrimitiveField != 0) {
- size += 1 + pb::CodedOutputStream.ComputeInt32Size(PrimitiveField);
- }
- if (StringField.Length != 0) {
- size += 1 + pb::CodedOutputStream.ComputeStringSize(StringField);
- }
- if (EnumField != 0) {
- size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) EnumField);
- }
- if (messageField_ != null) {
- size += 1 + pb::CodedOutputStream.ComputeMessageSize(MessageField);
- }
- size += repeatedPrimitiveField_.CalculateSize(_repeated_repeatedPrimitiveField_codec);
- size += repeatedStringField_.CalculateSize(_repeated_repeatedStringField_codec);
- size += repeatedEnumField_.CalculateSize(_repeated_repeatedEnumField_codec);
- size += repeatedMessageField_.CalculateSize(_repeated_repeatedMessageField_codec);
- return size;
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void MergeFrom(TestCamelCaseFieldNames other) {
- if (other == null) {
- return;
- }
- if (other.PrimitiveField != 0) {
- PrimitiveField = other.PrimitiveField;
- }
- if (other.StringField.Length != 0) {
- StringField = other.StringField;
- }
- if (other.EnumField != 0) {
- EnumField = other.EnumField;
- }
- if (other.messageField_ != null) {
- if (messageField_ == null) {
- messageField_ = new global::Google.Protobuf.TestProtos.ForeignMessage();
- }
- MessageField.MergeFrom(other.MessageField);
- }
- repeatedPrimitiveField_.Add(other.repeatedPrimitiveField_);
- repeatedStringField_.Add(other.repeatedStringField_);
- repeatedEnumField_.Add(other.repeatedEnumField_);
- repeatedMessageField_.Add(other.repeatedMessageField_);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void MergeFrom(pb::CodedInputStream input) {
- uint tag;
- while ((tag = input.ReadTag()) != 0) {
- switch(tag) {
- default:
- input.SkipLastField();
- break;
- case 8: {
- PrimitiveField = input.ReadInt32();
- break;
- }
- case 18: {
- StringField = input.ReadString();
- break;
- }
- case 24: {
- enumField_ = (global::Google.Protobuf.TestProtos.ForeignEnum) input.ReadEnum();
- break;
- }
- case 34: {
- if (messageField_ == null) {
- messageField_ = new global::Google.Protobuf.TestProtos.ForeignMessage();
- }
- input.ReadMessage(messageField_);
- break;
- }
- case 58:
- case 56: {
- repeatedPrimitiveField_.AddEntriesFrom(input, _repeated_repeatedPrimitiveField_codec);
- break;
- }
- case 66: {
- repeatedStringField_.AddEntriesFrom(input, _repeated_repeatedStringField_codec);
- break;
- }
- case 74:
- case 72: {
- repeatedEnumField_.AddEntriesFrom(input, _repeated_repeatedEnumField_codec);
- break;
- }
- case 82: {
- repeatedMessageField_.AddEntriesFrom(input, _repeated_repeatedMessageField_codec);
- break;
- }
- }
- }
- }
-
- }
-
- /// <summary>
- /// We list fields out of order, to ensure that we're using field number and not
- /// field index to determine serialization order.
- /// </summary>
- public sealed partial class TestFieldOrderings : pb::IMessage<TestFieldOrderings> {
- private static readonly pb::MessageParser<TestFieldOrderings> _parser = new pb::MessageParser<TestFieldOrderings>(() => new TestFieldOrderings());
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public static pb::MessageParser<TestFieldOrderings> Parser { get { return _parser; } }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public static pbr::MessageDescriptor Descriptor {
- get { return global::Google.Protobuf.TestProtos.UnittestProto3Reflection.Descriptor.MessageTypes[11]; }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- pbr::MessageDescriptor pb::IMessage.Descriptor {
- get { return Descriptor; }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public TestFieldOrderings() {
- OnConstruction();
- }
-
- partial void OnConstruction();
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public TestFieldOrderings(TestFieldOrderings other) : this() {
- myString_ = other.myString_;
- myInt_ = other.myInt_;
- myFloat_ = other.myFloat_;
- SingleNestedMessage = other.singleNestedMessage_ != null ? other.SingleNestedMessage.Clone() : null;
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public TestFieldOrderings Clone() {
- return new TestFieldOrderings(this);
- }
-
- /// <summary>Field number for the "my_string" field.</summary>
- public const int MyStringFieldNumber = 11;
- private string myString_ = "";
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public string MyString {
- get { return myString_; }
- set {
- myString_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
- }
- }
-
- /// <summary>Field number for the "my_int" field.</summary>
- public const int MyIntFieldNumber = 1;
- private long myInt_;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public long MyInt {
- get { return myInt_; }
- set {
- myInt_ = value;
- }
- }
-
- /// <summary>Field number for the "my_float" field.</summary>
- public const int MyFloatFieldNumber = 101;
- private float myFloat_;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public float MyFloat {
- get { return myFloat_; }
- set {
- myFloat_ = value;
- }
- }
-
- /// <summary>Field number for the "single_nested_message" field.</summary>
- public const int SingleNestedMessageFieldNumber = 200;
- private global::Google.Protobuf.TestProtos.TestFieldOrderings.Types.NestedMessage singleNestedMessage_;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public global::Google.Protobuf.TestProtos.TestFieldOrderings.Types.NestedMessage SingleNestedMessage {
- get { return singleNestedMessage_; }
- set {
- singleNestedMessage_ = value;
- }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public override bool Equals(object other) {
- return Equals(other as TestFieldOrderings);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public bool Equals(TestFieldOrderings other) {
- if (ReferenceEquals(other, null)) {
- return false;
- }
- if (ReferenceEquals(other, this)) {
- return true;
- }
- if (MyString != other.MyString) return false;
- if (MyInt != other.MyInt) return false;
- if (MyFloat != other.MyFloat) return false;
- if (!object.Equals(SingleNestedMessage, other.SingleNestedMessage)) return false;
- return true;
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public override int GetHashCode() {
- int hash = 1;
- if (MyString.Length != 0) hash ^= MyString.GetHashCode();
- if (MyInt != 0L) hash ^= MyInt.GetHashCode();
- if (MyFloat != 0F) hash ^= MyFloat.GetHashCode();
- if (singleNestedMessage_ != null) hash ^= SingleNestedMessage.GetHashCode();
- return hash;
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public override string ToString() {
- return pb::JsonFormatter.ToDiagnosticString(this);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void WriteTo(pb::CodedOutputStream output) {
- if (MyInt != 0L) {
- output.WriteRawTag(8);
- output.WriteInt64(MyInt);
- }
- if (MyString.Length != 0) {
- output.WriteRawTag(90);
- output.WriteString(MyString);
- }
- if (MyFloat != 0F) {
- output.WriteRawTag(173, 6);
- output.WriteFloat(MyFloat);
- }
- if (singleNestedMessage_ != null) {
- output.WriteRawTag(194, 12);
- output.WriteMessage(SingleNestedMessage);
- }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public int CalculateSize() {
- int size = 0;
- if (MyString.Length != 0) {
- size += 1 + pb::CodedOutputStream.ComputeStringSize(MyString);
- }
- if (MyInt != 0L) {
- size += 1 + pb::CodedOutputStream.ComputeInt64Size(MyInt);
- }
- if (MyFloat != 0F) {
- size += 2 + 4;
- }
- if (singleNestedMessage_ != null) {
- size += 2 + pb::CodedOutputStream.ComputeMessageSize(SingleNestedMessage);
- }
- return size;
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void MergeFrom(TestFieldOrderings other) {
- if (other == null) {
- return;
- }
- if (other.MyString.Length != 0) {
- MyString = other.MyString;
- }
- if (other.MyInt != 0L) {
- MyInt = other.MyInt;
- }
- if (other.MyFloat != 0F) {
- MyFloat = other.MyFloat;
- }
- if (other.singleNestedMessage_ != null) {
- if (singleNestedMessage_ == null) {
- singleNestedMessage_ = new global::Google.Protobuf.TestProtos.TestFieldOrderings.Types.NestedMessage();
- }
- SingleNestedMessage.MergeFrom(other.SingleNestedMessage);
- }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void MergeFrom(pb::CodedInputStream input) {
- uint tag;
- while ((tag = input.ReadTag()) != 0) {
- switch(tag) {
- default:
- input.SkipLastField();
- break;
- case 8: {
- MyInt = input.ReadInt64();
- break;
- }
- case 90: {
- MyString = input.ReadString();
- break;
- }
- case 813: {
- MyFloat = input.ReadFloat();
- break;
- }
- case 1602: {
- if (singleNestedMessage_ == null) {
- singleNestedMessage_ = new global::Google.Protobuf.TestProtos.TestFieldOrderings.Types.NestedMessage();
- }
- input.ReadMessage(singleNestedMessage_);
- break;
- }
- }
- }
- }
-
- #region Nested types
- /// <summary>Container for nested types declared in the TestFieldOrderings message type.</summary>
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public static partial class Types {
- public sealed partial class NestedMessage : pb::IMessage<NestedMessage> {
- private static readonly pb::MessageParser<NestedMessage> _parser = new pb::MessageParser<NestedMessage>(() => new NestedMessage());
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public static pb::MessageParser<NestedMessage> Parser { get { return _parser; } }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public static pbr::MessageDescriptor Descriptor {
- get { return global::Google.Protobuf.TestProtos.TestFieldOrderings.Descriptor.NestedTypes[0]; }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- pbr::MessageDescriptor pb::IMessage.Descriptor {
- get { return Descriptor; }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public NestedMessage() {
- OnConstruction();
- }
-
- partial void OnConstruction();
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public NestedMessage(NestedMessage other) : this() {
- oo_ = other.oo_;
- bb_ = other.bb_;
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public NestedMessage Clone() {
- return new NestedMessage(this);
- }
-
- /// <summary>Field number for the "oo" field.</summary>
- public const int OoFieldNumber = 2;
- private long oo_;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public long Oo {
- get { return oo_; }
- set {
- oo_ = value;
- }
- }
-
- /// <summary>Field number for the "bb" field.</summary>
- public const int BbFieldNumber = 1;
- private int bb_;
- /// <summary>
- /// The field name "b" fails to compile in proto1 because it conflicts with
- /// a local variable named "b" in one of the generated methods. Doh.
- /// This file needs to compile in proto1 to test backwards-compatibility.
- /// </summary>
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public int Bb {
- get { return bb_; }
- set {
- bb_ = value;
- }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public override bool Equals(object other) {
- return Equals(other as NestedMessage);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public bool Equals(NestedMessage other) {
- if (ReferenceEquals(other, null)) {
- return false;
- }
- if (ReferenceEquals(other, this)) {
- return true;
- }
- if (Oo != other.Oo) return false;
- if (Bb != other.Bb) return false;
- return true;
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public override int GetHashCode() {
- int hash = 1;
- if (Oo != 0L) hash ^= Oo.GetHashCode();
- if (Bb != 0) hash ^= Bb.GetHashCode();
- return hash;
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public override string ToString() {
- return pb::JsonFormatter.ToDiagnosticString(this);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void WriteTo(pb::CodedOutputStream output) {
- if (Bb != 0) {
- output.WriteRawTag(8);
- output.WriteInt32(Bb);
- }
- if (Oo != 0L) {
- output.WriteRawTag(16);
- output.WriteInt64(Oo);
- }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public int CalculateSize() {
- int size = 0;
- if (Oo != 0L) {
- size += 1 + pb::CodedOutputStream.ComputeInt64Size(Oo);
- }
- if (Bb != 0) {
- size += 1 + pb::CodedOutputStream.ComputeInt32Size(Bb);
- }
- return size;
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void MergeFrom(NestedMessage other) {
- if (other == null) {
- return;
- }
- if (other.Oo != 0L) {
- Oo = other.Oo;
- }
- if (other.Bb != 0) {
- Bb = other.Bb;
- }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void MergeFrom(pb::CodedInputStream input) {
- uint tag;
- while ((tag = input.ReadTag()) != 0) {
- switch(tag) {
- default:
- input.SkipLastField();
- break;
- case 8: {
- Bb = input.ReadInt32();
- break;
- }
- case 16: {
- Oo = input.ReadInt64();
- break;
- }
- }
- }
- }
-
- }
-
- }
- #endregion
-
- }
-
- public sealed partial class SparseEnumMessage : pb::IMessage<SparseEnumMessage> {
- private static readonly pb::MessageParser<SparseEnumMessage> _parser = new pb::MessageParser<SparseEnumMessage>(() => new SparseEnumMessage());
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public static pb::MessageParser<SparseEnumMessage> Parser { get { return _parser; } }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public static pbr::MessageDescriptor Descriptor {
- get { return global::Google.Protobuf.TestProtos.UnittestProto3Reflection.Descriptor.MessageTypes[12]; }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- pbr::MessageDescriptor pb::IMessage.Descriptor {
- get { return Descriptor; }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public SparseEnumMessage() {
- OnConstruction();
- }
-
- partial void OnConstruction();
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public SparseEnumMessage(SparseEnumMessage other) : this() {
- sparseEnum_ = other.sparseEnum_;
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public SparseEnumMessage Clone() {
- return new SparseEnumMessage(this);
- }
-
- /// <summary>Field number for the "sparse_enum" field.</summary>
- public const int SparseEnumFieldNumber = 1;
- private global::Google.Protobuf.TestProtos.TestSparseEnum sparseEnum_ = 0;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public global::Google.Protobuf.TestProtos.TestSparseEnum SparseEnum {
- get { return sparseEnum_; }
- set {
- sparseEnum_ = value;
- }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public override bool Equals(object other) {
- return Equals(other as SparseEnumMessage);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public bool Equals(SparseEnumMessage other) {
- if (ReferenceEquals(other, null)) {
- return false;
- }
- if (ReferenceEquals(other, this)) {
- return true;
- }
- if (SparseEnum != other.SparseEnum) return false;
- return true;
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public override int GetHashCode() {
- int hash = 1;
- if (SparseEnum != 0) hash ^= SparseEnum.GetHashCode();
- return hash;
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public override string ToString() {
- return pb::JsonFormatter.ToDiagnosticString(this);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void WriteTo(pb::CodedOutputStream output) {
- if (SparseEnum != 0) {
- output.WriteRawTag(8);
- output.WriteEnum((int) SparseEnum);
- }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public int CalculateSize() {
- int size = 0;
- if (SparseEnum != 0) {
- size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) SparseEnum);
- }
- return size;
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void MergeFrom(SparseEnumMessage other) {
- if (other == null) {
- return;
- }
- if (other.SparseEnum != 0) {
- SparseEnum = other.SparseEnum;
- }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void MergeFrom(pb::CodedInputStream input) {
- uint tag;
- while ((tag = input.ReadTag()) != 0) {
- switch(tag) {
- default:
- input.SkipLastField();
- break;
- case 8: {
- sparseEnum_ = (global::Google.Protobuf.TestProtos.TestSparseEnum) input.ReadEnum();
- break;
- }
- }
- }
- }
-
- }
-
- /// <summary>
- /// Test String and Bytes: string is for valid UTF-8 strings
- /// </summary>
- public sealed partial class OneString : pb::IMessage<OneString> {
- private static readonly pb::MessageParser<OneString> _parser = new pb::MessageParser<OneString>(() => new OneString());
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public static pb::MessageParser<OneString> Parser { get { return _parser; } }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public static pbr::MessageDescriptor Descriptor {
- get { return global::Google.Protobuf.TestProtos.UnittestProto3Reflection.Descriptor.MessageTypes[13]; }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- pbr::MessageDescriptor pb::IMessage.Descriptor {
- get { return Descriptor; }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public OneString() {
- OnConstruction();
- }
-
- partial void OnConstruction();
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public OneString(OneString other) : this() {
- data_ = other.data_;
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public OneString Clone() {
- return new OneString(this);
- }
-
- /// <summary>Field number for the "data" field.</summary>
- public const int DataFieldNumber = 1;
- private string data_ = "";
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public string Data {
- get { return data_; }
- set {
- data_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
- }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public override bool Equals(object other) {
- return Equals(other as OneString);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public bool Equals(OneString other) {
- if (ReferenceEquals(other, null)) {
- return false;
- }
- if (ReferenceEquals(other, this)) {
- return true;
- }
- if (Data != other.Data) return false;
- return true;
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public override int GetHashCode() {
- int hash = 1;
- if (Data.Length != 0) hash ^= Data.GetHashCode();
- return hash;
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public override string ToString() {
- return pb::JsonFormatter.ToDiagnosticString(this);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void WriteTo(pb::CodedOutputStream output) {
- if (Data.Length != 0) {
- output.WriteRawTag(10);
- output.WriteString(Data);
- }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public int CalculateSize() {
- int size = 0;
- if (Data.Length != 0) {
- size += 1 + pb::CodedOutputStream.ComputeStringSize(Data);
- }
- return size;
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void MergeFrom(OneString other) {
- if (other == null) {
- return;
- }
- if (other.Data.Length != 0) {
- Data = other.Data;
- }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void MergeFrom(pb::CodedInputStream input) {
- uint tag;
- while ((tag = input.ReadTag()) != 0) {
- switch(tag) {
- default:
- input.SkipLastField();
- break;
- case 10: {
- Data = input.ReadString();
- break;
- }
- }
- }
- }
-
- }
-
- public sealed partial class MoreString : pb::IMessage<MoreString> {
- private static readonly pb::MessageParser<MoreString> _parser = new pb::MessageParser<MoreString>(() => new MoreString());
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public static pb::MessageParser<MoreString> Parser { get { return _parser; } }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public static pbr::MessageDescriptor Descriptor {
- get { return global::Google.Protobuf.TestProtos.UnittestProto3Reflection.Descriptor.MessageTypes[14]; }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- pbr::MessageDescriptor pb::IMessage.Descriptor {
- get { return Descriptor; }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public MoreString() {
- OnConstruction();
- }
-
- partial void OnConstruction();
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public MoreString(MoreString other) : this() {
- data_ = other.data_.Clone();
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public MoreString Clone() {
- return new MoreString(this);
- }
-
- /// <summary>Field number for the "data" field.</summary>
- public const int DataFieldNumber = 1;
- private static readonly pb::FieldCodec<string> _repeated_data_codec
- = pb::FieldCodec.ForString(10);
- private readonly pbc::RepeatedField<string> data_ = new pbc::RepeatedField<string>();
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public pbc::RepeatedField<string> Data {
- get { return data_; }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public override bool Equals(object other) {
- return Equals(other as MoreString);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public bool Equals(MoreString other) {
- if (ReferenceEquals(other, null)) {
- return false;
- }
- if (ReferenceEquals(other, this)) {
- return true;
- }
- if(!data_.Equals(other.data_)) return false;
- return true;
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public override int GetHashCode() {
- int hash = 1;
- hash ^= data_.GetHashCode();
- return hash;
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public override string ToString() {
- return pb::JsonFormatter.ToDiagnosticString(this);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void WriteTo(pb::CodedOutputStream output) {
- data_.WriteTo(output, _repeated_data_codec);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public int CalculateSize() {
- int size = 0;
- size += data_.CalculateSize(_repeated_data_codec);
- return size;
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void MergeFrom(MoreString other) {
- if (other == null) {
- return;
- }
- data_.Add(other.data_);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void MergeFrom(pb::CodedInputStream input) {
- uint tag;
- while ((tag = input.ReadTag()) != 0) {
- switch(tag) {
- default:
- input.SkipLastField();
- break;
- case 10: {
- data_.AddEntriesFrom(input, _repeated_data_codec);
- break;
- }
- }
- }
- }
-
- }
-
- public sealed partial class OneBytes : pb::IMessage<OneBytes> {
- private static readonly pb::MessageParser<OneBytes> _parser = new pb::MessageParser<OneBytes>(() => new OneBytes());
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public static pb::MessageParser<OneBytes> Parser { get { return _parser; } }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public static pbr::MessageDescriptor Descriptor {
- get { return global::Google.Protobuf.TestProtos.UnittestProto3Reflection.Descriptor.MessageTypes[15]; }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- pbr::MessageDescriptor pb::IMessage.Descriptor {
- get { return Descriptor; }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public OneBytes() {
- OnConstruction();
- }
-
- partial void OnConstruction();
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public OneBytes(OneBytes other) : this() {
- data_ = other.data_;
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public OneBytes Clone() {
- return new OneBytes(this);
- }
-
- /// <summary>Field number for the "data" field.</summary>
- public const int DataFieldNumber = 1;
- private pb::ByteString data_ = pb::ByteString.Empty;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public pb::ByteString Data {
- get { return data_; }
- set {
- data_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
- }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public override bool Equals(object other) {
- return Equals(other as OneBytes);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public bool Equals(OneBytes other) {
- if (ReferenceEquals(other, null)) {
- return false;
- }
- if (ReferenceEquals(other, this)) {
- return true;
- }
- if (Data != other.Data) return false;
- return true;
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public override int GetHashCode() {
- int hash = 1;
- if (Data.Length != 0) hash ^= Data.GetHashCode();
- return hash;
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public override string ToString() {
- return pb::JsonFormatter.ToDiagnosticString(this);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void WriteTo(pb::CodedOutputStream output) {
- if (Data.Length != 0) {
- output.WriteRawTag(10);
- output.WriteBytes(Data);
- }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public int CalculateSize() {
- int size = 0;
- if (Data.Length != 0) {
- size += 1 + pb::CodedOutputStream.ComputeBytesSize(Data);
- }
- return size;
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void MergeFrom(OneBytes other) {
- if (other == null) {
- return;
- }
- if (other.Data.Length != 0) {
- Data = other.Data;
- }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void MergeFrom(pb::CodedInputStream input) {
- uint tag;
- while ((tag = input.ReadTag()) != 0) {
- switch(tag) {
- default:
- input.SkipLastField();
- break;
- case 10: {
- Data = input.ReadBytes();
- break;
- }
- }
- }
- }
-
- }
-
- public sealed partial class MoreBytes : pb::IMessage<MoreBytes> {
- private static readonly pb::MessageParser<MoreBytes> _parser = new pb::MessageParser<MoreBytes>(() => new MoreBytes());
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public static pb::MessageParser<MoreBytes> Parser { get { return _parser; } }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public static pbr::MessageDescriptor Descriptor {
- get { return global::Google.Protobuf.TestProtos.UnittestProto3Reflection.Descriptor.MessageTypes[16]; }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- pbr::MessageDescriptor pb::IMessage.Descriptor {
- get { return Descriptor; }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public MoreBytes() {
- OnConstruction();
- }
-
- partial void OnConstruction();
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public MoreBytes(MoreBytes other) : this() {
- data_ = other.data_;
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public MoreBytes Clone() {
- return new MoreBytes(this);
- }
-
- /// <summary>Field number for the "data" field.</summary>
- public const int DataFieldNumber = 1;
- private pb::ByteString data_ = pb::ByteString.Empty;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public pb::ByteString Data {
- get { return data_; }
- set {
- data_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
- }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public override bool Equals(object other) {
- return Equals(other as MoreBytes);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public bool Equals(MoreBytes other) {
- if (ReferenceEquals(other, null)) {
- return false;
- }
- if (ReferenceEquals(other, this)) {
- return true;
- }
- if (Data != other.Data) return false;
- return true;
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public override int GetHashCode() {
- int hash = 1;
- if (Data.Length != 0) hash ^= Data.GetHashCode();
- return hash;
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public override string ToString() {
- return pb::JsonFormatter.ToDiagnosticString(this);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void WriteTo(pb::CodedOutputStream output) {
- if (Data.Length != 0) {
- output.WriteRawTag(10);
- output.WriteBytes(Data);
- }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public int CalculateSize() {
- int size = 0;
- if (Data.Length != 0) {
- size += 1 + pb::CodedOutputStream.ComputeBytesSize(Data);
- }
- return size;
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void MergeFrom(MoreBytes other) {
- if (other == null) {
- return;
- }
- if (other.Data.Length != 0) {
- Data = other.Data;
- }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void MergeFrom(pb::CodedInputStream input) {
- uint tag;
- while ((tag = input.ReadTag()) != 0) {
- switch(tag) {
- default:
- input.SkipLastField();
- break;
- case 10: {
- Data = input.ReadBytes();
- break;
- }
- }
- }
- }
-
- }
-
- /// <summary>
- /// Test int32, uint32, int64, uint64, and bool are all compatible
- /// </summary>
- public sealed partial class Int32Message : pb::IMessage<Int32Message> {
- private static readonly pb::MessageParser<Int32Message> _parser = new pb::MessageParser<Int32Message>(() => new Int32Message());
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public static pb::MessageParser<Int32Message> Parser { get { return _parser; } }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public static pbr::MessageDescriptor Descriptor {
- get { return global::Google.Protobuf.TestProtos.UnittestProto3Reflection.Descriptor.MessageTypes[17]; }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- pbr::MessageDescriptor pb::IMessage.Descriptor {
- get { return Descriptor; }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public Int32Message() {
- OnConstruction();
- }
-
- partial void OnConstruction();
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public Int32Message(Int32Message other) : this() {
- data_ = other.data_;
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public Int32Message Clone() {
- return new Int32Message(this);
- }
-
- /// <summary>Field number for the "data" field.</summary>
- public const int DataFieldNumber = 1;
- private int data_;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public int Data {
- get { return data_; }
- set {
- data_ = value;
- }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public override bool Equals(object other) {
- return Equals(other as Int32Message);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public bool Equals(Int32Message other) {
- if (ReferenceEquals(other, null)) {
- return false;
- }
- if (ReferenceEquals(other, this)) {
- return true;
- }
- if (Data != other.Data) return false;
- return true;
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public override int GetHashCode() {
- int hash = 1;
- if (Data != 0) hash ^= Data.GetHashCode();
- return hash;
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public override string ToString() {
- return pb::JsonFormatter.ToDiagnosticString(this);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void WriteTo(pb::CodedOutputStream output) {
- if (Data != 0) {
- output.WriteRawTag(8);
- output.WriteInt32(Data);
- }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public int CalculateSize() {
- int size = 0;
- if (Data != 0) {
- size += 1 + pb::CodedOutputStream.ComputeInt32Size(Data);
- }
- return size;
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void MergeFrom(Int32Message other) {
- if (other == null) {
- return;
- }
- if (other.Data != 0) {
- Data = other.Data;
- }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void MergeFrom(pb::CodedInputStream input) {
- uint tag;
- while ((tag = input.ReadTag()) != 0) {
- switch(tag) {
- default:
- input.SkipLastField();
- break;
- case 8: {
- Data = input.ReadInt32();
- break;
- }
- }
- }
- }
-
- }
-
- public sealed partial class Uint32Message : pb::IMessage<Uint32Message> {
- private static readonly pb::MessageParser<Uint32Message> _parser = new pb::MessageParser<Uint32Message>(() => new Uint32Message());
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public static pb::MessageParser<Uint32Message> Parser { get { return _parser; } }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public static pbr::MessageDescriptor Descriptor {
- get { return global::Google.Protobuf.TestProtos.UnittestProto3Reflection.Descriptor.MessageTypes[18]; }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- pbr::MessageDescriptor pb::IMessage.Descriptor {
- get { return Descriptor; }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public Uint32Message() {
- OnConstruction();
- }
-
- partial void OnConstruction();
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public Uint32Message(Uint32Message other) : this() {
- data_ = other.data_;
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public Uint32Message Clone() {
- return new Uint32Message(this);
- }
-
- /// <summary>Field number for the "data" field.</summary>
- public const int DataFieldNumber = 1;
- private uint data_;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public uint Data {
- get { return data_; }
- set {
- data_ = value;
- }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public override bool Equals(object other) {
- return Equals(other as Uint32Message);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public bool Equals(Uint32Message other) {
- if (ReferenceEquals(other, null)) {
- return false;
- }
- if (ReferenceEquals(other, this)) {
- return true;
- }
- if (Data != other.Data) return false;
- return true;
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public override int GetHashCode() {
- int hash = 1;
- if (Data != 0) hash ^= Data.GetHashCode();
- return hash;
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public override string ToString() {
- return pb::JsonFormatter.ToDiagnosticString(this);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void WriteTo(pb::CodedOutputStream output) {
- if (Data != 0) {
- output.WriteRawTag(8);
- output.WriteUInt32(Data);
- }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public int CalculateSize() {
- int size = 0;
- if (Data != 0) {
- size += 1 + pb::CodedOutputStream.ComputeUInt32Size(Data);
- }
- return size;
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void MergeFrom(Uint32Message other) {
- if (other == null) {
- return;
- }
- if (other.Data != 0) {
- Data = other.Data;
- }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void MergeFrom(pb::CodedInputStream input) {
- uint tag;
- while ((tag = input.ReadTag()) != 0) {
- switch(tag) {
- default:
- input.SkipLastField();
- break;
- case 8: {
- Data = input.ReadUInt32();
- break;
- }
- }
- }
- }
-
- }
-
- public sealed partial class Int64Message : pb::IMessage<Int64Message> {
- private static readonly pb::MessageParser<Int64Message> _parser = new pb::MessageParser<Int64Message>(() => new Int64Message());
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public static pb::MessageParser<Int64Message> Parser { get { return _parser; } }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public static pbr::MessageDescriptor Descriptor {
- get { return global::Google.Protobuf.TestProtos.UnittestProto3Reflection.Descriptor.MessageTypes[19]; }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- pbr::MessageDescriptor pb::IMessage.Descriptor {
- get { return Descriptor; }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public Int64Message() {
- OnConstruction();
- }
-
- partial void OnConstruction();
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public Int64Message(Int64Message other) : this() {
- data_ = other.data_;
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public Int64Message Clone() {
- return new Int64Message(this);
- }
-
- /// <summary>Field number for the "data" field.</summary>
- public const int DataFieldNumber = 1;
- private long data_;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public long Data {
- get { return data_; }
- set {
- data_ = value;
- }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public override bool Equals(object other) {
- return Equals(other as Int64Message);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public bool Equals(Int64Message other) {
- if (ReferenceEquals(other, null)) {
- return false;
- }
- if (ReferenceEquals(other, this)) {
- return true;
- }
- if (Data != other.Data) return false;
- return true;
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public override int GetHashCode() {
- int hash = 1;
- if (Data != 0L) hash ^= Data.GetHashCode();
- return hash;
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public override string ToString() {
- return pb::JsonFormatter.ToDiagnosticString(this);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void WriteTo(pb::CodedOutputStream output) {
- if (Data != 0L) {
- output.WriteRawTag(8);
- output.WriteInt64(Data);
- }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public int CalculateSize() {
- int size = 0;
- if (Data != 0L) {
- size += 1 + pb::CodedOutputStream.ComputeInt64Size(Data);
- }
- return size;
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void MergeFrom(Int64Message other) {
- if (other == null) {
- return;
- }
- if (other.Data != 0L) {
- Data = other.Data;
- }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void MergeFrom(pb::CodedInputStream input) {
- uint tag;
- while ((tag = input.ReadTag()) != 0) {
- switch(tag) {
- default:
- input.SkipLastField();
- break;
- case 8: {
- Data = input.ReadInt64();
- break;
- }
- }
- }
- }
-
- }
-
- public sealed partial class Uint64Message : pb::IMessage<Uint64Message> {
- private static readonly pb::MessageParser<Uint64Message> _parser = new pb::MessageParser<Uint64Message>(() => new Uint64Message());
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public static pb::MessageParser<Uint64Message> Parser { get { return _parser; } }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public static pbr::MessageDescriptor Descriptor {
- get { return global::Google.Protobuf.TestProtos.UnittestProto3Reflection.Descriptor.MessageTypes[20]; }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- pbr::MessageDescriptor pb::IMessage.Descriptor {
- get { return Descriptor; }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public Uint64Message() {
- OnConstruction();
- }
-
- partial void OnConstruction();
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public Uint64Message(Uint64Message other) : this() {
- data_ = other.data_;
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public Uint64Message Clone() {
- return new Uint64Message(this);
- }
-
- /// <summary>Field number for the "data" field.</summary>
- public const int DataFieldNumber = 1;
- private ulong data_;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public ulong Data {
- get { return data_; }
- set {
- data_ = value;
- }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public override bool Equals(object other) {
- return Equals(other as Uint64Message);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public bool Equals(Uint64Message other) {
- if (ReferenceEquals(other, null)) {
- return false;
- }
- if (ReferenceEquals(other, this)) {
- return true;
- }
- if (Data != other.Data) return false;
- return true;
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public override int GetHashCode() {
- int hash = 1;
- if (Data != 0UL) hash ^= Data.GetHashCode();
- return hash;
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public override string ToString() {
- return pb::JsonFormatter.ToDiagnosticString(this);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void WriteTo(pb::CodedOutputStream output) {
- if (Data != 0UL) {
- output.WriteRawTag(8);
- output.WriteUInt64(Data);
- }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public int CalculateSize() {
- int size = 0;
- if (Data != 0UL) {
- size += 1 + pb::CodedOutputStream.ComputeUInt64Size(Data);
- }
- return size;
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void MergeFrom(Uint64Message other) {
- if (other == null) {
- return;
- }
- if (other.Data != 0UL) {
- Data = other.Data;
- }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void MergeFrom(pb::CodedInputStream input) {
- uint tag;
- while ((tag = input.ReadTag()) != 0) {
- switch(tag) {
- default:
- input.SkipLastField();
- break;
- case 8: {
- Data = input.ReadUInt64();
- break;
- }
- }
- }
- }
-
- }
-
- public sealed partial class BoolMessage : pb::IMessage<BoolMessage> {
- private static readonly pb::MessageParser<BoolMessage> _parser = new pb::MessageParser<BoolMessage>(() => new BoolMessage());
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public static pb::MessageParser<BoolMessage> Parser { get { return _parser; } }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public static pbr::MessageDescriptor Descriptor {
- get { return global::Google.Protobuf.TestProtos.UnittestProto3Reflection.Descriptor.MessageTypes[21]; }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- pbr::MessageDescriptor pb::IMessage.Descriptor {
- get { return Descriptor; }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public BoolMessage() {
- OnConstruction();
- }
-
- partial void OnConstruction();
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public BoolMessage(BoolMessage other) : this() {
- data_ = other.data_;
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public BoolMessage Clone() {
- return new BoolMessage(this);
- }
-
- /// <summary>Field number for the "data" field.</summary>
- public const int DataFieldNumber = 1;
- private bool data_;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public bool Data {
- get { return data_; }
- set {
- data_ = value;
- }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public override bool Equals(object other) {
- return Equals(other as BoolMessage);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public bool Equals(BoolMessage other) {
- if (ReferenceEquals(other, null)) {
- return false;
- }
- if (ReferenceEquals(other, this)) {
- return true;
- }
- if (Data != other.Data) return false;
- return true;
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public override int GetHashCode() {
- int hash = 1;
- if (Data != false) hash ^= Data.GetHashCode();
- return hash;
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public override string ToString() {
- return pb::JsonFormatter.ToDiagnosticString(this);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void WriteTo(pb::CodedOutputStream output) {
- if (Data != false) {
- output.WriteRawTag(8);
- output.WriteBool(Data);
- }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public int CalculateSize() {
- int size = 0;
- if (Data != false) {
- size += 1 + 1;
- }
- return size;
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void MergeFrom(BoolMessage other) {
- if (other == null) {
- return;
- }
- if (other.Data != false) {
- Data = other.Data;
- }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void MergeFrom(pb::CodedInputStream input) {
- uint tag;
- while ((tag = input.ReadTag()) != 0) {
- switch(tag) {
- default:
- input.SkipLastField();
- break;
- case 8: {
- Data = input.ReadBool();
- break;
- }
- }
- }
- }
-
- }
-
- /// <summary>
- /// Test oneofs.
- /// </summary>
- public sealed partial class TestOneof : pb::IMessage<TestOneof> {
- private static readonly pb::MessageParser<TestOneof> _parser = new pb::MessageParser<TestOneof>(() => new TestOneof());
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public static pb::MessageParser<TestOneof> Parser { get { return _parser; } }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public static pbr::MessageDescriptor Descriptor {
- get { return global::Google.Protobuf.TestProtos.UnittestProto3Reflection.Descriptor.MessageTypes[22]; }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- pbr::MessageDescriptor pb::IMessage.Descriptor {
- get { return Descriptor; }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public TestOneof() {
- OnConstruction();
- }
-
- partial void OnConstruction();
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public TestOneof(TestOneof other) : this() {
- switch (other.FooCase) {
- case FooOneofCase.FooInt:
- FooInt = other.FooInt;
- break;
- case FooOneofCase.FooString:
- FooString = other.FooString;
- break;
- case FooOneofCase.FooMessage:
- FooMessage = other.FooMessage.Clone();
- break;
- }
-
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public TestOneof Clone() {
- return new TestOneof(this);
- }
-
- /// <summary>Field number for the "foo_int" field.</summary>
- public const int FooIntFieldNumber = 1;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public int FooInt {
- get { return fooCase_ == FooOneofCase.FooInt ? (int) foo_ : 0; }
- set {
- foo_ = value;
- fooCase_ = FooOneofCase.FooInt;
- }
- }
-
- /// <summary>Field number for the "foo_string" field.</summary>
- public const int FooStringFieldNumber = 2;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public string FooString {
- get { return fooCase_ == FooOneofCase.FooString ? (string) foo_ : ""; }
- set {
- foo_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
- fooCase_ = FooOneofCase.FooString;
- }
- }
-
- /// <summary>Field number for the "foo_message" field.</summary>
- public const int FooMessageFieldNumber = 3;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public global::Google.Protobuf.TestProtos.TestAllTypes FooMessage {
- get { return fooCase_ == FooOneofCase.FooMessage ? (global::Google.Protobuf.TestProtos.TestAllTypes) foo_ : null; }
- set {
- foo_ = value;
- fooCase_ = value == null ? FooOneofCase.None : FooOneofCase.FooMessage;
- }
- }
-
- private object foo_;
- /// <summary>Enum of possible cases for the "foo" oneof.</summary>
- public enum FooOneofCase {
- None = 0,
- FooInt = 1,
- FooString = 2,
- FooMessage = 3,
- }
- private FooOneofCase fooCase_ = FooOneofCase.None;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public FooOneofCase FooCase {
- get { return fooCase_; }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void ClearFoo() {
- fooCase_ = FooOneofCase.None;
- foo_ = null;
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public override bool Equals(object other) {
- return Equals(other as TestOneof);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public bool Equals(TestOneof other) {
- if (ReferenceEquals(other, null)) {
- return false;
- }
- if (ReferenceEquals(other, this)) {
- return true;
- }
- if (FooInt != other.FooInt) return false;
- if (FooString != other.FooString) return false;
- if (!object.Equals(FooMessage, other.FooMessage)) return false;
- if (FooCase != other.FooCase) return false;
- return true;
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public override int GetHashCode() {
- int hash = 1;
- if (fooCase_ == FooOneofCase.FooInt) hash ^= FooInt.GetHashCode();
- if (fooCase_ == FooOneofCase.FooString) hash ^= FooString.GetHashCode();
- if (fooCase_ == FooOneofCase.FooMessage) hash ^= FooMessage.GetHashCode();
- hash ^= (int) fooCase_;
- return hash;
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public override string ToString() {
- return pb::JsonFormatter.ToDiagnosticString(this);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void WriteTo(pb::CodedOutputStream output) {
- if (fooCase_ == FooOneofCase.FooInt) {
- output.WriteRawTag(8);
- output.WriteInt32(FooInt);
- }
- if (fooCase_ == FooOneofCase.FooString) {
- output.WriteRawTag(18);
- output.WriteString(FooString);
- }
- if (fooCase_ == FooOneofCase.FooMessage) {
- output.WriteRawTag(26);
- output.WriteMessage(FooMessage);
- }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public int CalculateSize() {
- int size = 0;
- if (fooCase_ == FooOneofCase.FooInt) {
- size += 1 + pb::CodedOutputStream.ComputeInt32Size(FooInt);
- }
- if (fooCase_ == FooOneofCase.FooString) {
- size += 1 + pb::CodedOutputStream.ComputeStringSize(FooString);
- }
- if (fooCase_ == FooOneofCase.FooMessage) {
- size += 1 + pb::CodedOutputStream.ComputeMessageSize(FooMessage);
- }
- return size;
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void MergeFrom(TestOneof other) {
- if (other == null) {
- return;
- }
- switch (other.FooCase) {
- case FooOneofCase.FooInt:
- FooInt = other.FooInt;
- break;
- case FooOneofCase.FooString:
- FooString = other.FooString;
- break;
- case FooOneofCase.FooMessage:
- FooMessage = other.FooMessage;
- break;
- }
-
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void MergeFrom(pb::CodedInputStream input) {
- uint tag;
- while ((tag = input.ReadTag()) != 0) {
- switch(tag) {
- default:
- input.SkipLastField();
- break;
- case 8: {
- FooInt = input.ReadInt32();
- break;
- }
- case 18: {
- FooString = input.ReadString();
- break;
- }
- case 26: {
- global::Google.Protobuf.TestProtos.TestAllTypes subBuilder = new global::Google.Protobuf.TestProtos.TestAllTypes();
- if (fooCase_ == FooOneofCase.FooMessage) {
- subBuilder.MergeFrom(FooMessage);
- }
- input.ReadMessage(subBuilder);
- FooMessage = subBuilder;
- break;
- }
- }
- }
- }
-
- }
-
- public sealed partial class TestPackedTypes : pb::IMessage<TestPackedTypes> {
- private static readonly pb::MessageParser<TestPackedTypes> _parser = new pb::MessageParser<TestPackedTypes>(() => new TestPackedTypes());
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public static pb::MessageParser<TestPackedTypes> Parser { get { return _parser; } }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public static pbr::MessageDescriptor Descriptor {
- get { return global::Google.Protobuf.TestProtos.UnittestProto3Reflection.Descriptor.MessageTypes[23]; }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- pbr::MessageDescriptor pb::IMessage.Descriptor {
- get { return Descriptor; }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public TestPackedTypes() {
- OnConstruction();
- }
-
- partial void OnConstruction();
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public TestPackedTypes(TestPackedTypes other) : this() {
- packedInt32_ = other.packedInt32_.Clone();
- packedInt64_ = other.packedInt64_.Clone();
- packedUint32_ = other.packedUint32_.Clone();
- packedUint64_ = other.packedUint64_.Clone();
- packedSint32_ = other.packedSint32_.Clone();
- packedSint64_ = other.packedSint64_.Clone();
- packedFixed32_ = other.packedFixed32_.Clone();
- packedFixed64_ = other.packedFixed64_.Clone();
- packedSfixed32_ = other.packedSfixed32_.Clone();
- packedSfixed64_ = other.packedSfixed64_.Clone();
- packedFloat_ = other.packedFloat_.Clone();
- packedDouble_ = other.packedDouble_.Clone();
- packedBool_ = other.packedBool_.Clone();
- packedEnum_ = other.packedEnum_.Clone();
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public TestPackedTypes Clone() {
- return new TestPackedTypes(this);
- }
-
- /// <summary>Field number for the "packed_int32" field.</summary>
- public const int PackedInt32FieldNumber = 90;
- private static readonly pb::FieldCodec<int> _repeated_packedInt32_codec
- = pb::FieldCodec.ForInt32(722);
- private readonly pbc::RepeatedField<int> packedInt32_ = new pbc::RepeatedField<int>();
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public pbc::RepeatedField<int> PackedInt32 {
- get { return packedInt32_; }
- }
-
- /// <summary>Field number for the "packed_int64" field.</summary>
- public const int PackedInt64FieldNumber = 91;
- private static readonly pb::FieldCodec<long> _repeated_packedInt64_codec
- = pb::FieldCodec.ForInt64(730);
- private readonly pbc::RepeatedField<long> packedInt64_ = new pbc::RepeatedField<long>();
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public pbc::RepeatedField<long> PackedInt64 {
- get { return packedInt64_; }
- }
-
- /// <summary>Field number for the "packed_uint32" field.</summary>
- public const int PackedUint32FieldNumber = 92;
- private static readonly pb::FieldCodec<uint> _repeated_packedUint32_codec
- = pb::FieldCodec.ForUInt32(738);
- private readonly pbc::RepeatedField<uint> packedUint32_ = new pbc::RepeatedField<uint>();
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public pbc::RepeatedField<uint> PackedUint32 {
- get { return packedUint32_; }
- }
-
- /// <summary>Field number for the "packed_uint64" field.</summary>
- public const int PackedUint64FieldNumber = 93;
- private static readonly pb::FieldCodec<ulong> _repeated_packedUint64_codec
- = pb::FieldCodec.ForUInt64(746);
- private readonly pbc::RepeatedField<ulong> packedUint64_ = new pbc::RepeatedField<ulong>();
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public pbc::RepeatedField<ulong> PackedUint64 {
- get { return packedUint64_; }
- }
-
- /// <summary>Field number for the "packed_sint32" field.</summary>
- public const int PackedSint32FieldNumber = 94;
- private static readonly pb::FieldCodec<int> _repeated_packedSint32_codec
- = pb::FieldCodec.ForSInt32(754);
- private readonly pbc::RepeatedField<int> packedSint32_ = new pbc::RepeatedField<int>();
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public pbc::RepeatedField<int> PackedSint32 {
- get { return packedSint32_; }
- }
-
- /// <summary>Field number for the "packed_sint64" field.</summary>
- public const int PackedSint64FieldNumber = 95;
- private static readonly pb::FieldCodec<long> _repeated_packedSint64_codec
- = pb::FieldCodec.ForSInt64(762);
- private readonly pbc::RepeatedField<long> packedSint64_ = new pbc::RepeatedField<long>();
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public pbc::RepeatedField<long> PackedSint64 {
- get { return packedSint64_; }
- }
-
- /// <summary>Field number for the "packed_fixed32" field.</summary>
- public const int PackedFixed32FieldNumber = 96;
- private static readonly pb::FieldCodec<uint> _repeated_packedFixed32_codec
- = pb::FieldCodec.ForFixed32(770);
- private readonly pbc::RepeatedField<uint> packedFixed32_ = new pbc::RepeatedField<uint>();
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public pbc::RepeatedField<uint> PackedFixed32 {
- get { return packedFixed32_; }
- }
-
- /// <summary>Field number for the "packed_fixed64" field.</summary>
- public const int PackedFixed64FieldNumber = 97;
- private static readonly pb::FieldCodec<ulong> _repeated_packedFixed64_codec
- = pb::FieldCodec.ForFixed64(778);
- private readonly pbc::RepeatedField<ulong> packedFixed64_ = new pbc::RepeatedField<ulong>();
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public pbc::RepeatedField<ulong> PackedFixed64 {
- get { return packedFixed64_; }
- }
-
- /// <summary>Field number for the "packed_sfixed32" field.</summary>
- public const int PackedSfixed32FieldNumber = 98;
- private static readonly pb::FieldCodec<int> _repeated_packedSfixed32_codec
- = pb::FieldCodec.ForSFixed32(786);
- private readonly pbc::RepeatedField<int> packedSfixed32_ = new pbc::RepeatedField<int>();
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public pbc::RepeatedField<int> PackedSfixed32 {
- get { return packedSfixed32_; }
- }
-
- /// <summary>Field number for the "packed_sfixed64" field.</summary>
- public const int PackedSfixed64FieldNumber = 99;
- private static readonly pb::FieldCodec<long> _repeated_packedSfixed64_codec
- = pb::FieldCodec.ForSFixed64(794);
- private readonly pbc::RepeatedField<long> packedSfixed64_ = new pbc::RepeatedField<long>();
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public pbc::RepeatedField<long> PackedSfixed64 {
- get { return packedSfixed64_; }
- }
-
- /// <summary>Field number for the "packed_float" field.</summary>
- public const int PackedFloatFieldNumber = 100;
- private static readonly pb::FieldCodec<float> _repeated_packedFloat_codec
- = pb::FieldCodec.ForFloat(802);
- private readonly pbc::RepeatedField<float> packedFloat_ = new pbc::RepeatedField<float>();
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public pbc::RepeatedField<float> PackedFloat {
- get { return packedFloat_; }
- }
-
- /// <summary>Field number for the "packed_double" field.</summary>
- public const int PackedDoubleFieldNumber = 101;
- private static readonly pb::FieldCodec<double> _repeated_packedDouble_codec
- = pb::FieldCodec.ForDouble(810);
- private readonly pbc::RepeatedField<double> packedDouble_ = new pbc::RepeatedField<double>();
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public pbc::RepeatedField<double> PackedDouble {
- get { return packedDouble_; }
- }
-
- /// <summary>Field number for the "packed_bool" field.</summary>
- public const int PackedBoolFieldNumber = 102;
- private static readonly pb::FieldCodec<bool> _repeated_packedBool_codec
- = pb::FieldCodec.ForBool(818);
- private readonly pbc::RepeatedField<bool> packedBool_ = new pbc::RepeatedField<bool>();
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public pbc::RepeatedField<bool> PackedBool {
- get { return packedBool_; }
- }
-
- /// <summary>Field number for the "packed_enum" field.</summary>
- public const int PackedEnumFieldNumber = 103;
- private static readonly pb::FieldCodec<global::Google.Protobuf.TestProtos.ForeignEnum> _repeated_packedEnum_codec
- = pb::FieldCodec.ForEnum(826, x => (int) x, x => (global::Google.Protobuf.TestProtos.ForeignEnum) x);
- private readonly pbc::RepeatedField<global::Google.Protobuf.TestProtos.ForeignEnum> packedEnum_ = new pbc::RepeatedField<global::Google.Protobuf.TestProtos.ForeignEnum>();
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public pbc::RepeatedField<global::Google.Protobuf.TestProtos.ForeignEnum> PackedEnum {
- get { return packedEnum_; }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public override bool Equals(object other) {
- return Equals(other as TestPackedTypes);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public bool Equals(TestPackedTypes other) {
- if (ReferenceEquals(other, null)) {
- return false;
- }
- if (ReferenceEquals(other, this)) {
- return true;
- }
- if(!packedInt32_.Equals(other.packedInt32_)) return false;
- if(!packedInt64_.Equals(other.packedInt64_)) return false;
- if(!packedUint32_.Equals(other.packedUint32_)) return false;
- if(!packedUint64_.Equals(other.packedUint64_)) return false;
- if(!packedSint32_.Equals(other.packedSint32_)) return false;
- if(!packedSint64_.Equals(other.packedSint64_)) return false;
- if(!packedFixed32_.Equals(other.packedFixed32_)) return false;
- if(!packedFixed64_.Equals(other.packedFixed64_)) return false;
- if(!packedSfixed32_.Equals(other.packedSfixed32_)) return false;
- if(!packedSfixed64_.Equals(other.packedSfixed64_)) return false;
- if(!packedFloat_.Equals(other.packedFloat_)) return false;
- if(!packedDouble_.Equals(other.packedDouble_)) return false;
- if(!packedBool_.Equals(other.packedBool_)) return false;
- if(!packedEnum_.Equals(other.packedEnum_)) return false;
- return true;
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public override int GetHashCode() {
- int hash = 1;
- hash ^= packedInt32_.GetHashCode();
- hash ^= packedInt64_.GetHashCode();
- hash ^= packedUint32_.GetHashCode();
- hash ^= packedUint64_.GetHashCode();
- hash ^= packedSint32_.GetHashCode();
- hash ^= packedSint64_.GetHashCode();
- hash ^= packedFixed32_.GetHashCode();
- hash ^= packedFixed64_.GetHashCode();
- hash ^= packedSfixed32_.GetHashCode();
- hash ^= packedSfixed64_.GetHashCode();
- hash ^= packedFloat_.GetHashCode();
- hash ^= packedDouble_.GetHashCode();
- hash ^= packedBool_.GetHashCode();
- hash ^= packedEnum_.GetHashCode();
- return hash;
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public override string ToString() {
- return pb::JsonFormatter.ToDiagnosticString(this);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void WriteTo(pb::CodedOutputStream output) {
- packedInt32_.WriteTo(output, _repeated_packedInt32_codec);
- packedInt64_.WriteTo(output, _repeated_packedInt64_codec);
- packedUint32_.WriteTo(output, _repeated_packedUint32_codec);
- packedUint64_.WriteTo(output, _repeated_packedUint64_codec);
- packedSint32_.WriteTo(output, _repeated_packedSint32_codec);
- packedSint64_.WriteTo(output, _repeated_packedSint64_codec);
- packedFixed32_.WriteTo(output, _repeated_packedFixed32_codec);
- packedFixed64_.WriteTo(output, _repeated_packedFixed64_codec);
- packedSfixed32_.WriteTo(output, _repeated_packedSfixed32_codec);
- packedSfixed64_.WriteTo(output, _repeated_packedSfixed64_codec);
- packedFloat_.WriteTo(output, _repeated_packedFloat_codec);
- packedDouble_.WriteTo(output, _repeated_packedDouble_codec);
- packedBool_.WriteTo(output, _repeated_packedBool_codec);
- packedEnum_.WriteTo(output, _repeated_packedEnum_codec);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public int CalculateSize() {
- int size = 0;
- size += packedInt32_.CalculateSize(_repeated_packedInt32_codec);
- size += packedInt64_.CalculateSize(_repeated_packedInt64_codec);
- size += packedUint32_.CalculateSize(_repeated_packedUint32_codec);
- size += packedUint64_.CalculateSize(_repeated_packedUint64_codec);
- size += packedSint32_.CalculateSize(_repeated_packedSint32_codec);
- size += packedSint64_.CalculateSize(_repeated_packedSint64_codec);
- size += packedFixed32_.CalculateSize(_repeated_packedFixed32_codec);
- size += packedFixed64_.CalculateSize(_repeated_packedFixed64_codec);
- size += packedSfixed32_.CalculateSize(_repeated_packedSfixed32_codec);
- size += packedSfixed64_.CalculateSize(_repeated_packedSfixed64_codec);
- size += packedFloat_.CalculateSize(_repeated_packedFloat_codec);
- size += packedDouble_.CalculateSize(_repeated_packedDouble_codec);
- size += packedBool_.CalculateSize(_repeated_packedBool_codec);
- size += packedEnum_.CalculateSize(_repeated_packedEnum_codec);
- return size;
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void MergeFrom(TestPackedTypes other) {
- if (other == null) {
- return;
- }
- packedInt32_.Add(other.packedInt32_);
- packedInt64_.Add(other.packedInt64_);
- packedUint32_.Add(other.packedUint32_);
- packedUint64_.Add(other.packedUint64_);
- packedSint32_.Add(other.packedSint32_);
- packedSint64_.Add(other.packedSint64_);
- packedFixed32_.Add(other.packedFixed32_);
- packedFixed64_.Add(other.packedFixed64_);
- packedSfixed32_.Add(other.packedSfixed32_);
- packedSfixed64_.Add(other.packedSfixed64_);
- packedFloat_.Add(other.packedFloat_);
- packedDouble_.Add(other.packedDouble_);
- packedBool_.Add(other.packedBool_);
- packedEnum_.Add(other.packedEnum_);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void MergeFrom(pb::CodedInputStream input) {
- uint tag;
- while ((tag = input.ReadTag()) != 0) {
- switch(tag) {
- default:
- input.SkipLastField();
- break;
- case 722:
- case 720: {
- packedInt32_.AddEntriesFrom(input, _repeated_packedInt32_codec);
- break;
- }
- case 730:
- case 728: {
- packedInt64_.AddEntriesFrom(input, _repeated_packedInt64_codec);
- break;
- }
- case 738:
- case 736: {
- packedUint32_.AddEntriesFrom(input, _repeated_packedUint32_codec);
- break;
- }
- case 746:
- case 744: {
- packedUint64_.AddEntriesFrom(input, _repeated_packedUint64_codec);
- break;
- }
- case 754:
- case 752: {
- packedSint32_.AddEntriesFrom(input, _repeated_packedSint32_codec);
- break;
- }
- case 762:
- case 760: {
- packedSint64_.AddEntriesFrom(input, _repeated_packedSint64_codec);
- break;
- }
- case 770:
- case 773: {
- packedFixed32_.AddEntriesFrom(input, _repeated_packedFixed32_codec);
- break;
- }
- case 778:
- case 777: {
- packedFixed64_.AddEntriesFrom(input, _repeated_packedFixed64_codec);
- break;
- }
- case 786:
- case 789: {
- packedSfixed32_.AddEntriesFrom(input, _repeated_packedSfixed32_codec);
- break;
- }
- case 794:
- case 793: {
- packedSfixed64_.AddEntriesFrom(input, _repeated_packedSfixed64_codec);
- break;
- }
- case 802:
- case 805: {
- packedFloat_.AddEntriesFrom(input, _repeated_packedFloat_codec);
- break;
- }
- case 810:
- case 809: {
- packedDouble_.AddEntriesFrom(input, _repeated_packedDouble_codec);
- break;
- }
- case 818:
- case 816: {
- packedBool_.AddEntriesFrom(input, _repeated_packedBool_codec);
- break;
- }
- case 826:
- case 824: {
- packedEnum_.AddEntriesFrom(input, _repeated_packedEnum_codec);
- break;
- }
- }
- }
- }
-
- }
-
- /// <summary>
- /// A message with the same fields as TestPackedTypes, but without packing. Used
- /// to test packed &lt;-> unpacked wire compatibility.
- /// </summary>
- public sealed partial class TestUnpackedTypes : pb::IMessage<TestUnpackedTypes> {
- private static readonly pb::MessageParser<TestUnpackedTypes> _parser = new pb::MessageParser<TestUnpackedTypes>(() => new TestUnpackedTypes());
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public static pb::MessageParser<TestUnpackedTypes> Parser { get { return _parser; } }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public static pbr::MessageDescriptor Descriptor {
- get { return global::Google.Protobuf.TestProtos.UnittestProto3Reflection.Descriptor.MessageTypes[24]; }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- pbr::MessageDescriptor pb::IMessage.Descriptor {
- get { return Descriptor; }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public TestUnpackedTypes() {
- OnConstruction();
- }
-
- partial void OnConstruction();
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public TestUnpackedTypes(TestUnpackedTypes other) : this() {
- unpackedInt32_ = other.unpackedInt32_.Clone();
- unpackedInt64_ = other.unpackedInt64_.Clone();
- unpackedUint32_ = other.unpackedUint32_.Clone();
- unpackedUint64_ = other.unpackedUint64_.Clone();
- unpackedSint32_ = other.unpackedSint32_.Clone();
- unpackedSint64_ = other.unpackedSint64_.Clone();
- unpackedFixed32_ = other.unpackedFixed32_.Clone();
- unpackedFixed64_ = other.unpackedFixed64_.Clone();
- unpackedSfixed32_ = other.unpackedSfixed32_.Clone();
- unpackedSfixed64_ = other.unpackedSfixed64_.Clone();
- unpackedFloat_ = other.unpackedFloat_.Clone();
- unpackedDouble_ = other.unpackedDouble_.Clone();
- unpackedBool_ = other.unpackedBool_.Clone();
- unpackedEnum_ = other.unpackedEnum_.Clone();
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public TestUnpackedTypes Clone() {
- return new TestUnpackedTypes(this);
- }
-
- /// <summary>Field number for the "unpacked_int32" field.</summary>
- public const int UnpackedInt32FieldNumber = 90;
- private static readonly pb::FieldCodec<int> _repeated_unpackedInt32_codec
- = pb::FieldCodec.ForInt32(720);
- private readonly pbc::RepeatedField<int> unpackedInt32_ = new pbc::RepeatedField<int>();
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public pbc::RepeatedField<int> UnpackedInt32 {
- get { return unpackedInt32_; }
- }
-
- /// <summary>Field number for the "unpacked_int64" field.</summary>
- public const int UnpackedInt64FieldNumber = 91;
- private static readonly pb::FieldCodec<long> _repeated_unpackedInt64_codec
- = pb::FieldCodec.ForInt64(728);
- private readonly pbc::RepeatedField<long> unpackedInt64_ = new pbc::RepeatedField<long>();
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public pbc::RepeatedField<long> UnpackedInt64 {
- get { return unpackedInt64_; }
- }
-
- /// <summary>Field number for the "unpacked_uint32" field.</summary>
- public const int UnpackedUint32FieldNumber = 92;
- private static readonly pb::FieldCodec<uint> _repeated_unpackedUint32_codec
- = pb::FieldCodec.ForUInt32(736);
- private readonly pbc::RepeatedField<uint> unpackedUint32_ = new pbc::RepeatedField<uint>();
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public pbc::RepeatedField<uint> UnpackedUint32 {
- get { return unpackedUint32_; }
- }
-
- /// <summary>Field number for the "unpacked_uint64" field.</summary>
- public const int UnpackedUint64FieldNumber = 93;
- private static readonly pb::FieldCodec<ulong> _repeated_unpackedUint64_codec
- = pb::FieldCodec.ForUInt64(744);
- private readonly pbc::RepeatedField<ulong> unpackedUint64_ = new pbc::RepeatedField<ulong>();
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public pbc::RepeatedField<ulong> UnpackedUint64 {
- get { return unpackedUint64_; }
- }
-
- /// <summary>Field number for the "unpacked_sint32" field.</summary>
- public const int UnpackedSint32FieldNumber = 94;
- private static readonly pb::FieldCodec<int> _repeated_unpackedSint32_codec
- = pb::FieldCodec.ForSInt32(752);
- private readonly pbc::RepeatedField<int> unpackedSint32_ = new pbc::RepeatedField<int>();
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public pbc::RepeatedField<int> UnpackedSint32 {
- get { return unpackedSint32_; }
- }
-
- /// <summary>Field number for the "unpacked_sint64" field.</summary>
- public const int UnpackedSint64FieldNumber = 95;
- private static readonly pb::FieldCodec<long> _repeated_unpackedSint64_codec
- = pb::FieldCodec.ForSInt64(760);
- private readonly pbc::RepeatedField<long> unpackedSint64_ = new pbc::RepeatedField<long>();
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public pbc::RepeatedField<long> UnpackedSint64 {
- get { return unpackedSint64_; }
- }
-
- /// <summary>Field number for the "unpacked_fixed32" field.</summary>
- public const int UnpackedFixed32FieldNumber = 96;
- private static readonly pb::FieldCodec<uint> _repeated_unpackedFixed32_codec
- = pb::FieldCodec.ForFixed32(773);
- private readonly pbc::RepeatedField<uint> unpackedFixed32_ = new pbc::RepeatedField<uint>();
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public pbc::RepeatedField<uint> UnpackedFixed32 {
- get { return unpackedFixed32_; }
- }
-
- /// <summary>Field number for the "unpacked_fixed64" field.</summary>
- public const int UnpackedFixed64FieldNumber = 97;
- private static readonly pb::FieldCodec<ulong> _repeated_unpackedFixed64_codec
- = pb::FieldCodec.ForFixed64(777);
- private readonly pbc::RepeatedField<ulong> unpackedFixed64_ = new pbc::RepeatedField<ulong>();
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public pbc::RepeatedField<ulong> UnpackedFixed64 {
- get { return unpackedFixed64_; }
- }
-
- /// <summary>Field number for the "unpacked_sfixed32" field.</summary>
- public const int UnpackedSfixed32FieldNumber = 98;
- private static readonly pb::FieldCodec<int> _repeated_unpackedSfixed32_codec
- = pb::FieldCodec.ForSFixed32(789);
- private readonly pbc::RepeatedField<int> unpackedSfixed32_ = new pbc::RepeatedField<int>();
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public pbc::RepeatedField<int> UnpackedSfixed32 {
- get { return unpackedSfixed32_; }
- }
-
- /// <summary>Field number for the "unpacked_sfixed64" field.</summary>
- public const int UnpackedSfixed64FieldNumber = 99;
- private static readonly pb::FieldCodec<long> _repeated_unpackedSfixed64_codec
- = pb::FieldCodec.ForSFixed64(793);
- private readonly pbc::RepeatedField<long> unpackedSfixed64_ = new pbc::RepeatedField<long>();
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public pbc::RepeatedField<long> UnpackedSfixed64 {
- get { return unpackedSfixed64_; }
- }
-
- /// <summary>Field number for the "unpacked_float" field.</summary>
- public const int UnpackedFloatFieldNumber = 100;
- private static readonly pb::FieldCodec<float> _repeated_unpackedFloat_codec
- = pb::FieldCodec.ForFloat(805);
- private readonly pbc::RepeatedField<float> unpackedFloat_ = new pbc::RepeatedField<float>();
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public pbc::RepeatedField<float> UnpackedFloat {
- get { return unpackedFloat_; }
- }
-
- /// <summary>Field number for the "unpacked_double" field.</summary>
- public const int UnpackedDoubleFieldNumber = 101;
- private static readonly pb::FieldCodec<double> _repeated_unpackedDouble_codec
- = pb::FieldCodec.ForDouble(809);
- private readonly pbc::RepeatedField<double> unpackedDouble_ = new pbc::RepeatedField<double>();
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public pbc::RepeatedField<double> UnpackedDouble {
- get { return unpackedDouble_; }
- }
-
- /// <summary>Field number for the "unpacked_bool" field.</summary>
- public const int UnpackedBoolFieldNumber = 102;
- private static readonly pb::FieldCodec<bool> _repeated_unpackedBool_codec
- = pb::FieldCodec.ForBool(816);
- private readonly pbc::RepeatedField<bool> unpackedBool_ = new pbc::RepeatedField<bool>();
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public pbc::RepeatedField<bool> UnpackedBool {
- get { return unpackedBool_; }
- }
-
- /// <summary>Field number for the "unpacked_enum" field.</summary>
- public const int UnpackedEnumFieldNumber = 103;
- private static readonly pb::FieldCodec<global::Google.Protobuf.TestProtos.ForeignEnum> _repeated_unpackedEnum_codec
- = pb::FieldCodec.ForEnum(824, x => (int) x, x => (global::Google.Protobuf.TestProtos.ForeignEnum) x);
- private readonly pbc::RepeatedField<global::Google.Protobuf.TestProtos.ForeignEnum> unpackedEnum_ = new pbc::RepeatedField<global::Google.Protobuf.TestProtos.ForeignEnum>();
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public pbc::RepeatedField<global::Google.Protobuf.TestProtos.ForeignEnum> UnpackedEnum {
- get { return unpackedEnum_; }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public override bool Equals(object other) {
- return Equals(other as TestUnpackedTypes);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public bool Equals(TestUnpackedTypes other) {
- if (ReferenceEquals(other, null)) {
- return false;
- }
- if (ReferenceEquals(other, this)) {
- return true;
- }
- if(!unpackedInt32_.Equals(other.unpackedInt32_)) return false;
- if(!unpackedInt64_.Equals(other.unpackedInt64_)) return false;
- if(!unpackedUint32_.Equals(other.unpackedUint32_)) return false;
- if(!unpackedUint64_.Equals(other.unpackedUint64_)) return false;
- if(!unpackedSint32_.Equals(other.unpackedSint32_)) return false;
- if(!unpackedSint64_.Equals(other.unpackedSint64_)) return false;
- if(!unpackedFixed32_.Equals(other.unpackedFixed32_)) return false;
- if(!unpackedFixed64_.Equals(other.unpackedFixed64_)) return false;
- if(!unpackedSfixed32_.Equals(other.unpackedSfixed32_)) return false;
- if(!unpackedSfixed64_.Equals(other.unpackedSfixed64_)) return false;
- if(!unpackedFloat_.Equals(other.unpackedFloat_)) return false;
- if(!unpackedDouble_.Equals(other.unpackedDouble_)) return false;
- if(!unpackedBool_.Equals(other.unpackedBool_)) return false;
- if(!unpackedEnum_.Equals(other.unpackedEnum_)) return false;
- return true;
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public override int GetHashCode() {
- int hash = 1;
- hash ^= unpackedInt32_.GetHashCode();
- hash ^= unpackedInt64_.GetHashCode();
- hash ^= unpackedUint32_.GetHashCode();
- hash ^= unpackedUint64_.GetHashCode();
- hash ^= unpackedSint32_.GetHashCode();
- hash ^= unpackedSint64_.GetHashCode();
- hash ^= unpackedFixed32_.GetHashCode();
- hash ^= unpackedFixed64_.GetHashCode();
- hash ^= unpackedSfixed32_.GetHashCode();
- hash ^= unpackedSfixed64_.GetHashCode();
- hash ^= unpackedFloat_.GetHashCode();
- hash ^= unpackedDouble_.GetHashCode();
- hash ^= unpackedBool_.GetHashCode();
- hash ^= unpackedEnum_.GetHashCode();
- return hash;
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public override string ToString() {
- return pb::JsonFormatter.ToDiagnosticString(this);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void WriteTo(pb::CodedOutputStream output) {
- unpackedInt32_.WriteTo(output, _repeated_unpackedInt32_codec);
- unpackedInt64_.WriteTo(output, _repeated_unpackedInt64_codec);
- unpackedUint32_.WriteTo(output, _repeated_unpackedUint32_codec);
- unpackedUint64_.WriteTo(output, _repeated_unpackedUint64_codec);
- unpackedSint32_.WriteTo(output, _repeated_unpackedSint32_codec);
- unpackedSint64_.WriteTo(output, _repeated_unpackedSint64_codec);
- unpackedFixed32_.WriteTo(output, _repeated_unpackedFixed32_codec);
- unpackedFixed64_.WriteTo(output, _repeated_unpackedFixed64_codec);
- unpackedSfixed32_.WriteTo(output, _repeated_unpackedSfixed32_codec);
- unpackedSfixed64_.WriteTo(output, _repeated_unpackedSfixed64_codec);
- unpackedFloat_.WriteTo(output, _repeated_unpackedFloat_codec);
- unpackedDouble_.WriteTo(output, _repeated_unpackedDouble_codec);
- unpackedBool_.WriteTo(output, _repeated_unpackedBool_codec);
- unpackedEnum_.WriteTo(output, _repeated_unpackedEnum_codec);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public int CalculateSize() {
- int size = 0;
- size += unpackedInt32_.CalculateSize(_repeated_unpackedInt32_codec);
- size += unpackedInt64_.CalculateSize(_repeated_unpackedInt64_codec);
- size += unpackedUint32_.CalculateSize(_repeated_unpackedUint32_codec);
- size += unpackedUint64_.CalculateSize(_repeated_unpackedUint64_codec);
- size += unpackedSint32_.CalculateSize(_repeated_unpackedSint32_codec);
- size += unpackedSint64_.CalculateSize(_repeated_unpackedSint64_codec);
- size += unpackedFixed32_.CalculateSize(_repeated_unpackedFixed32_codec);
- size += unpackedFixed64_.CalculateSize(_repeated_unpackedFixed64_codec);
- size += unpackedSfixed32_.CalculateSize(_repeated_unpackedSfixed32_codec);
- size += unpackedSfixed64_.CalculateSize(_repeated_unpackedSfixed64_codec);
- size += unpackedFloat_.CalculateSize(_repeated_unpackedFloat_codec);
- size += unpackedDouble_.CalculateSize(_repeated_unpackedDouble_codec);
- size += unpackedBool_.CalculateSize(_repeated_unpackedBool_codec);
- size += unpackedEnum_.CalculateSize(_repeated_unpackedEnum_codec);
- return size;
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void MergeFrom(TestUnpackedTypes other) {
- if (other == null) {
- return;
- }
- unpackedInt32_.Add(other.unpackedInt32_);
- unpackedInt64_.Add(other.unpackedInt64_);
- unpackedUint32_.Add(other.unpackedUint32_);
- unpackedUint64_.Add(other.unpackedUint64_);
- unpackedSint32_.Add(other.unpackedSint32_);
- unpackedSint64_.Add(other.unpackedSint64_);
- unpackedFixed32_.Add(other.unpackedFixed32_);
- unpackedFixed64_.Add(other.unpackedFixed64_);
- unpackedSfixed32_.Add(other.unpackedSfixed32_);
- unpackedSfixed64_.Add(other.unpackedSfixed64_);
- unpackedFloat_.Add(other.unpackedFloat_);
- unpackedDouble_.Add(other.unpackedDouble_);
- unpackedBool_.Add(other.unpackedBool_);
- unpackedEnum_.Add(other.unpackedEnum_);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void MergeFrom(pb::CodedInputStream input) {
- uint tag;
- while ((tag = input.ReadTag()) != 0) {
- switch(tag) {
- default:
- input.SkipLastField();
- break;
- case 722:
- case 720: {
- unpackedInt32_.AddEntriesFrom(input, _repeated_unpackedInt32_codec);
- break;
- }
- case 730:
- case 728: {
- unpackedInt64_.AddEntriesFrom(input, _repeated_unpackedInt64_codec);
- break;
- }
- case 738:
- case 736: {
- unpackedUint32_.AddEntriesFrom(input, _repeated_unpackedUint32_codec);
- break;
- }
- case 746:
- case 744: {
- unpackedUint64_.AddEntriesFrom(input, _repeated_unpackedUint64_codec);
- break;
- }
- case 754:
- case 752: {
- unpackedSint32_.AddEntriesFrom(input, _repeated_unpackedSint32_codec);
- break;
- }
- case 762:
- case 760: {
- unpackedSint64_.AddEntriesFrom(input, _repeated_unpackedSint64_codec);
- break;
- }
- case 770:
- case 773: {
- unpackedFixed32_.AddEntriesFrom(input, _repeated_unpackedFixed32_codec);
- break;
- }
- case 778:
- case 777: {
- unpackedFixed64_.AddEntriesFrom(input, _repeated_unpackedFixed64_codec);
- break;
- }
- case 786:
- case 789: {
- unpackedSfixed32_.AddEntriesFrom(input, _repeated_unpackedSfixed32_codec);
- break;
- }
- case 794:
- case 793: {
- unpackedSfixed64_.AddEntriesFrom(input, _repeated_unpackedSfixed64_codec);
- break;
- }
- case 802:
- case 805: {
- unpackedFloat_.AddEntriesFrom(input, _repeated_unpackedFloat_codec);
- break;
- }
- case 810:
- case 809: {
- unpackedDouble_.AddEntriesFrom(input, _repeated_unpackedDouble_codec);
- break;
- }
- case 818:
- case 816: {
- unpackedBool_.AddEntriesFrom(input, _repeated_unpackedBool_codec);
- break;
- }
- case 826:
- case 824: {
- unpackedEnum_.AddEntriesFrom(input, _repeated_unpackedEnum_codec);
- break;
- }
- }
- }
- }
-
- }
-
- public sealed partial class TestRepeatedScalarDifferentTagSizes : pb::IMessage<TestRepeatedScalarDifferentTagSizes> {
- private static readonly pb::MessageParser<TestRepeatedScalarDifferentTagSizes> _parser = new pb::MessageParser<TestRepeatedScalarDifferentTagSizes>(() => new TestRepeatedScalarDifferentTagSizes());
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public static pb::MessageParser<TestRepeatedScalarDifferentTagSizes> Parser { get { return _parser; } }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public static pbr::MessageDescriptor Descriptor {
- get { return global::Google.Protobuf.TestProtos.UnittestProto3Reflection.Descriptor.MessageTypes[25]; }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- pbr::MessageDescriptor pb::IMessage.Descriptor {
- get { return Descriptor; }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public TestRepeatedScalarDifferentTagSizes() {
- OnConstruction();
- }
-
- partial void OnConstruction();
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public TestRepeatedScalarDifferentTagSizes(TestRepeatedScalarDifferentTagSizes other) : this() {
- repeatedFixed32_ = other.repeatedFixed32_.Clone();
- repeatedInt32_ = other.repeatedInt32_.Clone();
- repeatedFixed64_ = other.repeatedFixed64_.Clone();
- repeatedInt64_ = other.repeatedInt64_.Clone();
- repeatedFloat_ = other.repeatedFloat_.Clone();
- repeatedUint64_ = other.repeatedUint64_.Clone();
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public TestRepeatedScalarDifferentTagSizes Clone() {
- return new TestRepeatedScalarDifferentTagSizes(this);
- }
-
- /// <summary>Field number for the "repeated_fixed32" field.</summary>
- public const int RepeatedFixed32FieldNumber = 12;
- private static readonly pb::FieldCodec<uint> _repeated_repeatedFixed32_codec
- = pb::FieldCodec.ForFixed32(98);
- private readonly pbc::RepeatedField<uint> repeatedFixed32_ = new pbc::RepeatedField<uint>();
- /// <summary>
- /// Parsing repeated fixed size values used to fail. This message needs to be
- /// used in order to get a tag of the right size; all of the repeated fields
- /// in TestAllTypes didn't trigger the check.
- /// </summary>
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public pbc::RepeatedField<uint> RepeatedFixed32 {
- get { return repeatedFixed32_; }
- }
-
- /// <summary>Field number for the "repeated_int32" field.</summary>
- public const int RepeatedInt32FieldNumber = 13;
- private static readonly pb::FieldCodec<int> _repeated_repeatedInt32_codec
- = pb::FieldCodec.ForInt32(106);
- private readonly pbc::RepeatedField<int> repeatedInt32_ = new pbc::RepeatedField<int>();
- /// <summary>
- /// Check for a varint type, just for good measure.
- /// </summary>
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public pbc::RepeatedField<int> RepeatedInt32 {
- get { return repeatedInt32_; }
- }
-
- /// <summary>Field number for the "repeated_fixed64" field.</summary>
- public const int RepeatedFixed64FieldNumber = 2046;
- private static readonly pb::FieldCodec<ulong> _repeated_repeatedFixed64_codec
- = pb::FieldCodec.ForFixed64(16370);
- private readonly pbc::RepeatedField<ulong> repeatedFixed64_ = new pbc::RepeatedField<ulong>();
- /// <summary>
- /// These have two-byte tags.
- /// </summary>
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public pbc::RepeatedField<ulong> RepeatedFixed64 {
- get { return repeatedFixed64_; }
- }
-
- /// <summary>Field number for the "repeated_int64" field.</summary>
- public const int RepeatedInt64FieldNumber = 2047;
- private static readonly pb::FieldCodec<long> _repeated_repeatedInt64_codec
- = pb::FieldCodec.ForInt64(16378);
- private readonly pbc::RepeatedField<long> repeatedInt64_ = new pbc::RepeatedField<long>();
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public pbc::RepeatedField<long> RepeatedInt64 {
- get { return repeatedInt64_; }
- }
-
- /// <summary>Field number for the "repeated_float" field.</summary>
- public const int RepeatedFloatFieldNumber = 262142;
- private static readonly pb::FieldCodec<float> _repeated_repeatedFloat_codec
- = pb::FieldCodec.ForFloat(2097138);
- private readonly pbc::RepeatedField<float> repeatedFloat_ = new pbc::RepeatedField<float>();
- /// <summary>
- /// Three byte tags.
- /// </summary>
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public pbc::RepeatedField<float> RepeatedFloat {
- get { return repeatedFloat_; }
- }
-
- /// <summary>Field number for the "repeated_uint64" field.</summary>
- public const int RepeatedUint64FieldNumber = 262143;
- private static readonly pb::FieldCodec<ulong> _repeated_repeatedUint64_codec
- = pb::FieldCodec.ForUInt64(2097146);
- private readonly pbc::RepeatedField<ulong> repeatedUint64_ = new pbc::RepeatedField<ulong>();
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public pbc::RepeatedField<ulong> RepeatedUint64 {
- get { return repeatedUint64_; }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public override bool Equals(object other) {
- return Equals(other as TestRepeatedScalarDifferentTagSizes);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public bool Equals(TestRepeatedScalarDifferentTagSizes other) {
- if (ReferenceEquals(other, null)) {
- return false;
- }
- if (ReferenceEquals(other, this)) {
- return true;
- }
- if(!repeatedFixed32_.Equals(other.repeatedFixed32_)) return false;
- if(!repeatedInt32_.Equals(other.repeatedInt32_)) return false;
- if(!repeatedFixed64_.Equals(other.repeatedFixed64_)) return false;
- if(!repeatedInt64_.Equals(other.repeatedInt64_)) return false;
- if(!repeatedFloat_.Equals(other.repeatedFloat_)) return false;
- if(!repeatedUint64_.Equals(other.repeatedUint64_)) return false;
- return true;
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public override int GetHashCode() {
- int hash = 1;
- hash ^= repeatedFixed32_.GetHashCode();
- hash ^= repeatedInt32_.GetHashCode();
- hash ^= repeatedFixed64_.GetHashCode();
- hash ^= repeatedInt64_.GetHashCode();
- hash ^= repeatedFloat_.GetHashCode();
- hash ^= repeatedUint64_.GetHashCode();
- return hash;
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public override string ToString() {
- return pb::JsonFormatter.ToDiagnosticString(this);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void WriteTo(pb::CodedOutputStream output) {
- repeatedFixed32_.WriteTo(output, _repeated_repeatedFixed32_codec);
- repeatedInt32_.WriteTo(output, _repeated_repeatedInt32_codec);
- repeatedFixed64_.WriteTo(output, _repeated_repeatedFixed64_codec);
- repeatedInt64_.WriteTo(output, _repeated_repeatedInt64_codec);
- repeatedFloat_.WriteTo(output, _repeated_repeatedFloat_codec);
- repeatedUint64_.WriteTo(output, _repeated_repeatedUint64_codec);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public int CalculateSize() {
- int size = 0;
- size += repeatedFixed32_.CalculateSize(_repeated_repeatedFixed32_codec);
- size += repeatedInt32_.CalculateSize(_repeated_repeatedInt32_codec);
- size += repeatedFixed64_.CalculateSize(_repeated_repeatedFixed64_codec);
- size += repeatedInt64_.CalculateSize(_repeated_repeatedInt64_codec);
- size += repeatedFloat_.CalculateSize(_repeated_repeatedFloat_codec);
- size += repeatedUint64_.CalculateSize(_repeated_repeatedUint64_codec);
- return size;
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void MergeFrom(TestRepeatedScalarDifferentTagSizes other) {
- if (other == null) {
- return;
- }
- repeatedFixed32_.Add(other.repeatedFixed32_);
- repeatedInt32_.Add(other.repeatedInt32_);
- repeatedFixed64_.Add(other.repeatedFixed64_);
- repeatedInt64_.Add(other.repeatedInt64_);
- repeatedFloat_.Add(other.repeatedFloat_);
- repeatedUint64_.Add(other.repeatedUint64_);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void MergeFrom(pb::CodedInputStream input) {
- uint tag;
- while ((tag = input.ReadTag()) != 0) {
- switch(tag) {
- default:
- input.SkipLastField();
- break;
- case 98:
- case 101: {
- repeatedFixed32_.AddEntriesFrom(input, _repeated_repeatedFixed32_codec);
- break;
- }
- case 106:
- case 104: {
- repeatedInt32_.AddEntriesFrom(input, _repeated_repeatedInt32_codec);
- break;
- }
- case 16370:
- case 16369: {
- repeatedFixed64_.AddEntriesFrom(input, _repeated_repeatedFixed64_codec);
- break;
- }
- case 16378:
- case 16376: {
- repeatedInt64_.AddEntriesFrom(input, _repeated_repeatedInt64_codec);
- break;
- }
- case 2097138:
- case 2097141: {
- repeatedFloat_.AddEntriesFrom(input, _repeated_repeatedFloat_codec);
- break;
- }
- case 2097146:
- case 2097144: {
- repeatedUint64_.AddEntriesFrom(input, _repeated_repeatedUint64_codec);
- break;
- }
- }
- }
- }
-
- }
-
- public sealed partial class TestCommentInjectionMessage : pb::IMessage<TestCommentInjectionMessage> {
- private static readonly pb::MessageParser<TestCommentInjectionMessage> _parser = new pb::MessageParser<TestCommentInjectionMessage>(() => new TestCommentInjectionMessage());
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public static pb::MessageParser<TestCommentInjectionMessage> Parser { get { return _parser; } }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public static pbr::MessageDescriptor Descriptor {
- get { return global::Google.Protobuf.TestProtos.UnittestProto3Reflection.Descriptor.MessageTypes[26]; }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- pbr::MessageDescriptor pb::IMessage.Descriptor {
- get { return Descriptor; }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public TestCommentInjectionMessage() {
- OnConstruction();
- }
-
- partial void OnConstruction();
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public TestCommentInjectionMessage(TestCommentInjectionMessage other) : this() {
- a_ = other.a_;
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public TestCommentInjectionMessage Clone() {
- return new TestCommentInjectionMessage(this);
- }
-
- /// <summary>Field number for the "a" field.</summary>
- public const int AFieldNumber = 1;
- private string a_ = "";
- /// <summary>
- /// */ &lt;- This should not close the generated doc comment
- /// </summary>
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public string A {
- get { return a_; }
- set {
- a_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
- }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public override bool Equals(object other) {
- return Equals(other as TestCommentInjectionMessage);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public bool Equals(TestCommentInjectionMessage other) {
- if (ReferenceEquals(other, null)) {
- return false;
- }
- if (ReferenceEquals(other, this)) {
- return true;
- }
- if (A != other.A) return false;
- return true;
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public override int GetHashCode() {
- int hash = 1;
- if (A.Length != 0) hash ^= A.GetHashCode();
- return hash;
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public override string ToString() {
- return pb::JsonFormatter.ToDiagnosticString(this);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void WriteTo(pb::CodedOutputStream output) {
- if (A.Length != 0) {
- output.WriteRawTag(10);
- output.WriteString(A);
- }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public int CalculateSize() {
- int size = 0;
- if (A.Length != 0) {
- size += 1 + pb::CodedOutputStream.ComputeStringSize(A);
- }
- return size;
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void MergeFrom(TestCommentInjectionMessage other) {
- if (other == null) {
- return;
- }
- if (other.A.Length != 0) {
- A = other.A;
- }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void MergeFrom(pb::CodedInputStream input) {
- uint tag;
- while ((tag = input.ReadTag()) != 0) {
- switch(tag) {
- default:
- input.SkipLastField();
- break;
- case 10: {
- A = input.ReadString();
- break;
- }
- }
- }
- }
-
- }
-
- /// <summary>
- /// Test that RPC services work.
- /// </summary>
- public sealed partial class FooRequest : pb::IMessage<FooRequest> {
- private static readonly pb::MessageParser<FooRequest> _parser = new pb::MessageParser<FooRequest>(() => new FooRequest());
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public static pb::MessageParser<FooRequest> Parser { get { return _parser; } }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public static pbr::MessageDescriptor Descriptor {
- get { return global::Google.Protobuf.TestProtos.UnittestProto3Reflection.Descriptor.MessageTypes[27]; }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- pbr::MessageDescriptor pb::IMessage.Descriptor {
- get { return Descriptor; }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public FooRequest() {
- OnConstruction();
- }
-
- partial void OnConstruction();
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public FooRequest(FooRequest other) : this() {
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public FooRequest Clone() {
- return new FooRequest(this);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public override bool Equals(object other) {
- return Equals(other as FooRequest);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public bool Equals(FooRequest other) {
- if (ReferenceEquals(other, null)) {
- return false;
- }
- if (ReferenceEquals(other, this)) {
- return true;
- }
- return true;
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public override int GetHashCode() {
- int hash = 1;
- return hash;
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public override string ToString() {
- return pb::JsonFormatter.ToDiagnosticString(this);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void WriteTo(pb::CodedOutputStream output) {
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public int CalculateSize() {
- int size = 0;
- return size;
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void MergeFrom(FooRequest other) {
- if (other == null) {
- return;
- }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void MergeFrom(pb::CodedInputStream input) {
- uint tag;
- while ((tag = input.ReadTag()) != 0) {
- switch(tag) {
- default:
- input.SkipLastField();
- break;
- }
- }
- }
-
- }
-
- public sealed partial class FooResponse : pb::IMessage<FooResponse> {
- private static readonly pb::MessageParser<FooResponse> _parser = new pb::MessageParser<FooResponse>(() => new FooResponse());
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public static pb::MessageParser<FooResponse> Parser { get { return _parser; } }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public static pbr::MessageDescriptor Descriptor {
- get { return global::Google.Protobuf.TestProtos.UnittestProto3Reflection.Descriptor.MessageTypes[28]; }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- pbr::MessageDescriptor pb::IMessage.Descriptor {
- get { return Descriptor; }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public FooResponse() {
- OnConstruction();
- }
-
- partial void OnConstruction();
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public FooResponse(FooResponse other) : this() {
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public FooResponse Clone() {
- return new FooResponse(this);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public override bool Equals(object other) {
- return Equals(other as FooResponse);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public bool Equals(FooResponse other) {
- if (ReferenceEquals(other, null)) {
- return false;
- }
- if (ReferenceEquals(other, this)) {
- return true;
- }
- return true;
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public override int GetHashCode() {
- int hash = 1;
- return hash;
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public override string ToString() {
- return pb::JsonFormatter.ToDiagnosticString(this);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void WriteTo(pb::CodedOutputStream output) {
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public int CalculateSize() {
- int size = 0;
- return size;
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void MergeFrom(FooResponse other) {
- if (other == null) {
- return;
- }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void MergeFrom(pb::CodedInputStream input) {
- uint tag;
- while ((tag = input.ReadTag()) != 0) {
- switch(tag) {
- default:
- input.SkipLastField();
- break;
- }
- }
- }
-
- }
-
- public sealed partial class FooClientMessage : pb::IMessage<FooClientMessage> {
- private static readonly pb::MessageParser<FooClientMessage> _parser = new pb::MessageParser<FooClientMessage>(() => new FooClientMessage());
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public static pb::MessageParser<FooClientMessage> Parser { get { return _parser; } }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public static pbr::MessageDescriptor Descriptor {
- get { return global::Google.Protobuf.TestProtos.UnittestProto3Reflection.Descriptor.MessageTypes[29]; }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- pbr::MessageDescriptor pb::IMessage.Descriptor {
- get { return Descriptor; }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public FooClientMessage() {
- OnConstruction();
- }
-
- partial void OnConstruction();
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public FooClientMessage(FooClientMessage other) : this() {
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public FooClientMessage Clone() {
- return new FooClientMessage(this);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public override bool Equals(object other) {
- return Equals(other as FooClientMessage);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public bool Equals(FooClientMessage other) {
- if (ReferenceEquals(other, null)) {
- return false;
- }
- if (ReferenceEquals(other, this)) {
- return true;
- }
- return true;
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public override int GetHashCode() {
- int hash = 1;
- return hash;
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public override string ToString() {
- return pb::JsonFormatter.ToDiagnosticString(this);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void WriteTo(pb::CodedOutputStream output) {
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public int CalculateSize() {
- int size = 0;
- return size;
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void MergeFrom(FooClientMessage other) {
- if (other == null) {
- return;
- }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void MergeFrom(pb::CodedInputStream input) {
- uint tag;
- while ((tag = input.ReadTag()) != 0) {
- switch(tag) {
- default:
- input.SkipLastField();
- break;
- }
- }
- }
-
- }
-
- public sealed partial class FooServerMessage : pb::IMessage<FooServerMessage> {
- private static readonly pb::MessageParser<FooServerMessage> _parser = new pb::MessageParser<FooServerMessage>(() => new FooServerMessage());
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public static pb::MessageParser<FooServerMessage> Parser { get { return _parser; } }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public static pbr::MessageDescriptor Descriptor {
- get { return global::Google.Protobuf.TestProtos.UnittestProto3Reflection.Descriptor.MessageTypes[30]; }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- pbr::MessageDescriptor pb::IMessage.Descriptor {
- get { return Descriptor; }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public FooServerMessage() {
- OnConstruction();
- }
-
- partial void OnConstruction();
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public FooServerMessage(FooServerMessage other) : this() {
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public FooServerMessage Clone() {
- return new FooServerMessage(this);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public override bool Equals(object other) {
- return Equals(other as FooServerMessage);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public bool Equals(FooServerMessage other) {
- if (ReferenceEquals(other, null)) {
- return false;
- }
- if (ReferenceEquals(other, this)) {
- return true;
- }
- return true;
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public override int GetHashCode() {
- int hash = 1;
- return hash;
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public override string ToString() {
- return pb::JsonFormatter.ToDiagnosticString(this);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void WriteTo(pb::CodedOutputStream output) {
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public int CalculateSize() {
- int size = 0;
- return size;
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void MergeFrom(FooServerMessage other) {
- if (other == null) {
- return;
- }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void MergeFrom(pb::CodedInputStream input) {
- uint tag;
- while ((tag = input.ReadTag()) != 0) {
- switch(tag) {
- default:
- input.SkipLastField();
- break;
- }
- }
- }
-
- }
-
- public sealed partial class BarRequest : pb::IMessage<BarRequest> {
- private static readonly pb::MessageParser<BarRequest> _parser = new pb::MessageParser<BarRequest>(() => new BarRequest());
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public static pb::MessageParser<BarRequest> Parser { get { return _parser; } }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public static pbr::MessageDescriptor Descriptor {
- get { return global::Google.Protobuf.TestProtos.UnittestProto3Reflection.Descriptor.MessageTypes[31]; }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- pbr::MessageDescriptor pb::IMessage.Descriptor {
- get { return Descriptor; }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public BarRequest() {
- OnConstruction();
- }
-
- partial void OnConstruction();
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public BarRequest(BarRequest other) : this() {
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public BarRequest Clone() {
- return new BarRequest(this);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public override bool Equals(object other) {
- return Equals(other as BarRequest);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public bool Equals(BarRequest other) {
- if (ReferenceEquals(other, null)) {
- return false;
- }
- if (ReferenceEquals(other, this)) {
- return true;
- }
- return true;
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public override int GetHashCode() {
- int hash = 1;
- return hash;
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public override string ToString() {
- return pb::JsonFormatter.ToDiagnosticString(this);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void WriteTo(pb::CodedOutputStream output) {
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public int CalculateSize() {
- int size = 0;
- return size;
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void MergeFrom(BarRequest other) {
- if (other == null) {
- return;
- }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void MergeFrom(pb::CodedInputStream input) {
- uint tag;
- while ((tag = input.ReadTag()) != 0) {
- switch(tag) {
- default:
- input.SkipLastField();
- break;
- }
- }
- }
-
- }
-
- public sealed partial class BarResponse : pb::IMessage<BarResponse> {
- private static readonly pb::MessageParser<BarResponse> _parser = new pb::MessageParser<BarResponse>(() => new BarResponse());
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public static pb::MessageParser<BarResponse> Parser { get { return _parser; } }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public static pbr::MessageDescriptor Descriptor {
- get { return global::Google.Protobuf.TestProtos.UnittestProto3Reflection.Descriptor.MessageTypes[32]; }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- pbr::MessageDescriptor pb::IMessage.Descriptor {
- get { return Descriptor; }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public BarResponse() {
- OnConstruction();
- }
-
- partial void OnConstruction();
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public BarResponse(BarResponse other) : this() {
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public BarResponse Clone() {
- return new BarResponse(this);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public override bool Equals(object other) {
- return Equals(other as BarResponse);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public bool Equals(BarResponse other) {
- if (ReferenceEquals(other, null)) {
- return false;
- }
- if (ReferenceEquals(other, this)) {
- return true;
- }
- return true;
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public override int GetHashCode() {
- int hash = 1;
- return hash;
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public override string ToString() {
- return pb::JsonFormatter.ToDiagnosticString(this);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void WriteTo(pb::CodedOutputStream output) {
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public int CalculateSize() {
- int size = 0;
- return size;
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void MergeFrom(BarResponse other) {
- if (other == null) {
- return;
- }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void MergeFrom(pb::CodedInputStream input) {
- uint tag;
- while ((tag = input.ReadTag()) != 0) {
- switch(tag) {
- default:
- input.SkipLastField();
- break;
- }
- }
- }
-
- }
-
- #endregion
-
-}
-
-#endregion Designer generated code
diff --git a/csharp/src/Google.Protobuf.Test/TestProtos/UnittestWellKnownTypes.cs b/csharp/src/Google.Protobuf.Test/TestProtos/UnittestWellKnownTypes.cs
deleted file mode 100644
index 6e87fb5d..00000000
--- a/csharp/src/Google.Protobuf.Test/TestProtos/UnittestWellKnownTypes.cs
+++ /dev/null
@@ -1,2539 +0,0 @@
-// Generated by the protocol buffer compiler. DO NOT EDIT!
-// source: google/protobuf/unittest_well_known_types.proto
-#pragma warning disable 1591, 0612, 3021
-#region Designer generated code
-
-using pb = global::Google.Protobuf;
-using pbc = global::Google.Protobuf.Collections;
-using pbr = global::Google.Protobuf.Reflection;
-using scg = global::System.Collections.Generic;
-namespace Google.Protobuf.TestProtos {
-
- /// <summary>Holder for reflection information generated from google/protobuf/unittest_well_known_types.proto</summary>
- public static partial class UnittestWellKnownTypesReflection {
-
- #region Descriptor
- /// <summary>File descriptor for google/protobuf/unittest_well_known_types.proto</summary>
- public static pbr::FileDescriptor Descriptor {
- get { return descriptor; }
- }
- private static pbr::FileDescriptor descriptor;
-
- static UnittestWellKnownTypesReflection() {
- byte[] descriptorData = global::System.Convert.FromBase64String(
- string.Concat(
- "Ci9nb29nbGUvcHJvdG9idWYvdW5pdHRlc3Rfd2VsbF9rbm93bl90eXBlcy5w",
- "cm90bxIRcHJvdG9idWZfdW5pdHRlc3QaGWdvb2dsZS9wcm90b2J1Zi9hbnku",
- "cHJvdG8aGWdvb2dsZS9wcm90b2J1Zi9hcGkucHJvdG8aHmdvb2dsZS9wcm90",
- "b2J1Zi9kdXJhdGlvbi5wcm90bxobZ29vZ2xlL3Byb3RvYnVmL2VtcHR5LnBy",
- "b3RvGiBnb29nbGUvcHJvdG9idWYvZmllbGRfbWFzay5wcm90bxokZ29vZ2xl",
- "L3Byb3RvYnVmL3NvdXJjZV9jb250ZXh0LnByb3RvGhxnb29nbGUvcHJvdG9i",
- "dWYvc3RydWN0LnByb3RvGh9nb29nbGUvcHJvdG9idWYvdGltZXN0YW1wLnBy",
- "b3RvGhpnb29nbGUvcHJvdG9idWYvdHlwZS5wcm90bxoeZ29vZ2xlL3Byb3Rv",
- "YnVmL3dyYXBwZXJzLnByb3RvIr4HChJUZXN0V2VsbEtub3duVHlwZXMSJwoJ",
- "YW55X2ZpZWxkGAEgASgLMhQuZ29vZ2xlLnByb3RvYnVmLkFueRInCglhcGlf",
- "ZmllbGQYAiABKAsyFC5nb29nbGUucHJvdG9idWYuQXBpEjEKDmR1cmF0aW9u",
- "X2ZpZWxkGAMgASgLMhkuZ29vZ2xlLnByb3RvYnVmLkR1cmF0aW9uEisKC2Vt",
- "cHR5X2ZpZWxkGAQgASgLMhYuZ29vZ2xlLnByb3RvYnVmLkVtcHR5EjQKEGZp",
- "ZWxkX21hc2tfZmllbGQYBSABKAsyGi5nb29nbGUucHJvdG9idWYuRmllbGRN",
- "YXNrEjwKFHNvdXJjZV9jb250ZXh0X2ZpZWxkGAYgASgLMh4uZ29vZ2xlLnBy",
- "b3RvYnVmLlNvdXJjZUNvbnRleHQSLQoMc3RydWN0X2ZpZWxkGAcgASgLMhcu",
- "Z29vZ2xlLnByb3RvYnVmLlN0cnVjdBIzCg90aW1lc3RhbXBfZmllbGQYCCAB",
- "KAsyGi5nb29nbGUucHJvdG9idWYuVGltZXN0YW1wEikKCnR5cGVfZmllbGQY",
- "CSABKAsyFS5nb29nbGUucHJvdG9idWYuVHlwZRIyCgxkb3VibGVfZmllbGQY",
- "CiABKAsyHC5nb29nbGUucHJvdG9idWYuRG91YmxlVmFsdWUSMAoLZmxvYXRf",
- "ZmllbGQYCyABKAsyGy5nb29nbGUucHJvdG9idWYuRmxvYXRWYWx1ZRIwCgtp",
- "bnQ2NF9maWVsZBgMIAEoCzIbLmdvb2dsZS5wcm90b2J1Zi5JbnQ2NFZhbHVl",
- "EjIKDHVpbnQ2NF9maWVsZBgNIAEoCzIcLmdvb2dsZS5wcm90b2J1Zi5VSW50",
- "NjRWYWx1ZRIwCgtpbnQzMl9maWVsZBgOIAEoCzIbLmdvb2dsZS5wcm90b2J1",
- "Zi5JbnQzMlZhbHVlEjIKDHVpbnQzMl9maWVsZBgPIAEoCzIcLmdvb2dsZS5w",
- "cm90b2J1Zi5VSW50MzJWYWx1ZRIuCgpib29sX2ZpZWxkGBAgASgLMhouZ29v",
- "Z2xlLnByb3RvYnVmLkJvb2xWYWx1ZRIyCgxzdHJpbmdfZmllbGQYESABKAsy",
- "HC5nb29nbGUucHJvdG9idWYuU3RyaW5nVmFsdWUSMAoLYnl0ZXNfZmllbGQY",
- "EiABKAsyGy5nb29nbGUucHJvdG9idWYuQnl0ZXNWYWx1ZRIrCgt2YWx1ZV9m",
- "aWVsZBgTIAEoCzIWLmdvb2dsZS5wcm90b2J1Zi5WYWx1ZSKVBwoWUmVwZWF0",
- "ZWRXZWxsS25vd25UeXBlcxInCglhbnlfZmllbGQYASADKAsyFC5nb29nbGUu",
- "cHJvdG9idWYuQW55EicKCWFwaV9maWVsZBgCIAMoCzIULmdvb2dsZS5wcm90",
- "b2J1Zi5BcGkSMQoOZHVyYXRpb25fZmllbGQYAyADKAsyGS5nb29nbGUucHJv",
- "dG9idWYuRHVyYXRpb24SKwoLZW1wdHlfZmllbGQYBCADKAsyFi5nb29nbGUu",
- "cHJvdG9idWYuRW1wdHkSNAoQZmllbGRfbWFza19maWVsZBgFIAMoCzIaLmdv",
- "b2dsZS5wcm90b2J1Zi5GaWVsZE1hc2sSPAoUc291cmNlX2NvbnRleHRfZmll",
- "bGQYBiADKAsyHi5nb29nbGUucHJvdG9idWYuU291cmNlQ29udGV4dBItCgxz",
- "dHJ1Y3RfZmllbGQYByADKAsyFy5nb29nbGUucHJvdG9idWYuU3RydWN0EjMK",
- "D3RpbWVzdGFtcF9maWVsZBgIIAMoCzIaLmdvb2dsZS5wcm90b2J1Zi5UaW1l",
- "c3RhbXASKQoKdHlwZV9maWVsZBgJIAMoCzIVLmdvb2dsZS5wcm90b2J1Zi5U",
- "eXBlEjIKDGRvdWJsZV9maWVsZBgKIAMoCzIcLmdvb2dsZS5wcm90b2J1Zi5E",
- "b3VibGVWYWx1ZRIwCgtmbG9hdF9maWVsZBgLIAMoCzIbLmdvb2dsZS5wcm90",
- "b2J1Zi5GbG9hdFZhbHVlEjAKC2ludDY0X2ZpZWxkGAwgAygLMhsuZ29vZ2xl",
- "LnByb3RvYnVmLkludDY0VmFsdWUSMgoMdWludDY0X2ZpZWxkGA0gAygLMhwu",
- "Z29vZ2xlLnByb3RvYnVmLlVJbnQ2NFZhbHVlEjAKC2ludDMyX2ZpZWxkGA4g",
- "AygLMhsuZ29vZ2xlLnByb3RvYnVmLkludDMyVmFsdWUSMgoMdWludDMyX2Zp",
- "ZWxkGA8gAygLMhwuZ29vZ2xlLnByb3RvYnVmLlVJbnQzMlZhbHVlEi4KCmJv",
- "b2xfZmllbGQYECADKAsyGi5nb29nbGUucHJvdG9idWYuQm9vbFZhbHVlEjIK",
- "DHN0cmluZ19maWVsZBgRIAMoCzIcLmdvb2dsZS5wcm90b2J1Zi5TdHJpbmdW",
- "YWx1ZRIwCgtieXRlc19maWVsZBgSIAMoCzIbLmdvb2dsZS5wcm90b2J1Zi5C",
- "eXRlc1ZhbHVlIsUHChNPbmVvZldlbGxLbm93blR5cGVzEikKCWFueV9maWVs",
- "ZBgBIAEoCzIULmdvb2dsZS5wcm90b2J1Zi5BbnlIABIpCglhcGlfZmllbGQY",
- "AiABKAsyFC5nb29nbGUucHJvdG9idWYuQXBpSAASMwoOZHVyYXRpb25fZmll",
- "bGQYAyABKAsyGS5nb29nbGUucHJvdG9idWYuRHVyYXRpb25IABItCgtlbXB0",
- "eV9maWVsZBgEIAEoCzIWLmdvb2dsZS5wcm90b2J1Zi5FbXB0eUgAEjYKEGZp",
- "ZWxkX21hc2tfZmllbGQYBSABKAsyGi5nb29nbGUucHJvdG9idWYuRmllbGRN",
- "YXNrSAASPgoUc291cmNlX2NvbnRleHRfZmllbGQYBiABKAsyHi5nb29nbGUu",
- "cHJvdG9idWYuU291cmNlQ29udGV4dEgAEi8KDHN0cnVjdF9maWVsZBgHIAEo",
- "CzIXLmdvb2dsZS5wcm90b2J1Zi5TdHJ1Y3RIABI1Cg90aW1lc3RhbXBfZmll",
- "bGQYCCABKAsyGi5nb29nbGUucHJvdG9idWYuVGltZXN0YW1wSAASKwoKdHlw",
- "ZV9maWVsZBgJIAEoCzIVLmdvb2dsZS5wcm90b2J1Zi5UeXBlSAASNAoMZG91",
- "YmxlX2ZpZWxkGAogASgLMhwuZ29vZ2xlLnByb3RvYnVmLkRvdWJsZVZhbHVl",
- "SAASMgoLZmxvYXRfZmllbGQYCyABKAsyGy5nb29nbGUucHJvdG9idWYuRmxv",
- "YXRWYWx1ZUgAEjIKC2ludDY0X2ZpZWxkGAwgASgLMhsuZ29vZ2xlLnByb3Rv",
- "YnVmLkludDY0VmFsdWVIABI0Cgx1aW50NjRfZmllbGQYDSABKAsyHC5nb29n",
- "bGUucHJvdG9idWYuVUludDY0VmFsdWVIABIyCgtpbnQzMl9maWVsZBgOIAEo",
- "CzIbLmdvb2dsZS5wcm90b2J1Zi5JbnQzMlZhbHVlSAASNAoMdWludDMyX2Zp",
- "ZWxkGA8gASgLMhwuZ29vZ2xlLnByb3RvYnVmLlVJbnQzMlZhbHVlSAASMAoK",
- "Ym9vbF9maWVsZBgQIAEoCzIaLmdvb2dsZS5wcm90b2J1Zi5Cb29sVmFsdWVI",
- "ABI0CgxzdHJpbmdfZmllbGQYESABKAsyHC5nb29nbGUucHJvdG9idWYuU3Ry",
- "aW5nVmFsdWVIABIyCgtieXRlc19maWVsZBgSIAEoCzIbLmdvb2dsZS5wcm90",
- "b2J1Zi5CeXRlc1ZhbHVlSABCDQoLb25lb2ZfZmllbGQilhYKEU1hcFdlbGxL",
- "bm93blR5cGVzEkUKCWFueV9maWVsZBgBIAMoCzIyLnByb3RvYnVmX3VuaXR0",
- "ZXN0Lk1hcFdlbGxLbm93blR5cGVzLkFueUZpZWxkRW50cnkSRQoJYXBpX2Zp",
- "ZWxkGAIgAygLMjIucHJvdG9idWZfdW5pdHRlc3QuTWFwV2VsbEtub3duVHlw",
- "ZXMuQXBpRmllbGRFbnRyeRJPCg5kdXJhdGlvbl9maWVsZBgDIAMoCzI3LnBy",
- "b3RvYnVmX3VuaXR0ZXN0Lk1hcFdlbGxLbm93blR5cGVzLkR1cmF0aW9uRmll",
- "bGRFbnRyeRJJCgtlbXB0eV9maWVsZBgEIAMoCzI0LnByb3RvYnVmX3VuaXR0",
- "ZXN0Lk1hcFdlbGxLbm93blR5cGVzLkVtcHR5RmllbGRFbnRyeRJSChBmaWVs",
- "ZF9tYXNrX2ZpZWxkGAUgAygLMjgucHJvdG9idWZfdW5pdHRlc3QuTWFwV2Vs",
- "bEtub3duVHlwZXMuRmllbGRNYXNrRmllbGRFbnRyeRJaChRzb3VyY2VfY29u",
- "dGV4dF9maWVsZBgGIAMoCzI8LnByb3RvYnVmX3VuaXR0ZXN0Lk1hcFdlbGxL",
- "bm93blR5cGVzLlNvdXJjZUNvbnRleHRGaWVsZEVudHJ5EksKDHN0cnVjdF9m",
- "aWVsZBgHIAMoCzI1LnByb3RvYnVmX3VuaXR0ZXN0Lk1hcFdlbGxLbm93blR5",
- "cGVzLlN0cnVjdEZpZWxkRW50cnkSUQoPdGltZXN0YW1wX2ZpZWxkGAggAygL",
- "MjgucHJvdG9idWZfdW5pdHRlc3QuTWFwV2VsbEtub3duVHlwZXMuVGltZXN0",
- "YW1wRmllbGRFbnRyeRJHCgp0eXBlX2ZpZWxkGAkgAygLMjMucHJvdG9idWZf",
- "dW5pdHRlc3QuTWFwV2VsbEtub3duVHlwZXMuVHlwZUZpZWxkRW50cnkSSwoM",
- "ZG91YmxlX2ZpZWxkGAogAygLMjUucHJvdG9idWZfdW5pdHRlc3QuTWFwV2Vs",
- "bEtub3duVHlwZXMuRG91YmxlRmllbGRFbnRyeRJJCgtmbG9hdF9maWVsZBgL",
- "IAMoCzI0LnByb3RvYnVmX3VuaXR0ZXN0Lk1hcFdlbGxLbm93blR5cGVzLkZs",
- "b2F0RmllbGRFbnRyeRJJCgtpbnQ2NF9maWVsZBgMIAMoCzI0LnByb3RvYnVm",
- "X3VuaXR0ZXN0Lk1hcFdlbGxLbm93blR5cGVzLkludDY0RmllbGRFbnRyeRJL",
- "Cgx1aW50NjRfZmllbGQYDSADKAsyNS5wcm90b2J1Zl91bml0dGVzdC5NYXBX",
- "ZWxsS25vd25UeXBlcy5VaW50NjRGaWVsZEVudHJ5EkkKC2ludDMyX2ZpZWxk",
- "GA4gAygLMjQucHJvdG9idWZfdW5pdHRlc3QuTWFwV2VsbEtub3duVHlwZXMu",
- "SW50MzJGaWVsZEVudHJ5EksKDHVpbnQzMl9maWVsZBgPIAMoCzI1LnByb3Rv",
- "YnVmX3VuaXR0ZXN0Lk1hcFdlbGxLbm93blR5cGVzLlVpbnQzMkZpZWxkRW50",
- "cnkSRwoKYm9vbF9maWVsZBgQIAMoCzIzLnByb3RvYnVmX3VuaXR0ZXN0Lk1h",
- "cFdlbGxLbm93blR5cGVzLkJvb2xGaWVsZEVudHJ5EksKDHN0cmluZ19maWVs",
- "ZBgRIAMoCzI1LnByb3RvYnVmX3VuaXR0ZXN0Lk1hcFdlbGxLbm93blR5cGVz",
- "LlN0cmluZ0ZpZWxkRW50cnkSSQoLYnl0ZXNfZmllbGQYEiADKAsyNC5wcm90",
- "b2J1Zl91bml0dGVzdC5NYXBXZWxsS25vd25UeXBlcy5CeXRlc0ZpZWxkRW50",
- "cnkaRQoNQW55RmllbGRFbnRyeRILCgNrZXkYASABKAUSIwoFdmFsdWUYAiAB",
- "KAsyFC5nb29nbGUucHJvdG9idWYuQW55OgI4ARpFCg1BcGlGaWVsZEVudHJ5",
- "EgsKA2tleRgBIAEoBRIjCgV2YWx1ZRgCIAEoCzIULmdvb2dsZS5wcm90b2J1",
- "Zi5BcGk6AjgBGk8KEkR1cmF0aW9uRmllbGRFbnRyeRILCgNrZXkYASABKAUS",
- "KAoFdmFsdWUYAiABKAsyGS5nb29nbGUucHJvdG9idWYuRHVyYXRpb246AjgB",
- "GkkKD0VtcHR5RmllbGRFbnRyeRILCgNrZXkYASABKAUSJQoFdmFsdWUYAiAB",
- "KAsyFi5nb29nbGUucHJvdG9idWYuRW1wdHk6AjgBGlEKE0ZpZWxkTWFza0Zp",
- "ZWxkRW50cnkSCwoDa2V5GAEgASgFEikKBXZhbHVlGAIgASgLMhouZ29vZ2xl",
- "LnByb3RvYnVmLkZpZWxkTWFzazoCOAEaWQoXU291cmNlQ29udGV4dEZpZWxk",
- "RW50cnkSCwoDa2V5GAEgASgFEi0KBXZhbHVlGAIgASgLMh4uZ29vZ2xlLnBy",
- "b3RvYnVmLlNvdXJjZUNvbnRleHQ6AjgBGksKEFN0cnVjdEZpZWxkRW50cnkS",
- "CwoDa2V5GAEgASgFEiYKBXZhbHVlGAIgASgLMhcuZ29vZ2xlLnByb3RvYnVm",
- "LlN0cnVjdDoCOAEaUQoTVGltZXN0YW1wRmllbGRFbnRyeRILCgNrZXkYASAB",
- "KAUSKQoFdmFsdWUYAiABKAsyGi5nb29nbGUucHJvdG9idWYuVGltZXN0YW1w",
- "OgI4ARpHCg5UeXBlRmllbGRFbnRyeRILCgNrZXkYASABKAUSJAoFdmFsdWUY",
- "AiABKAsyFS5nb29nbGUucHJvdG9idWYuVHlwZToCOAEaUAoQRG91YmxlRmll",
- "bGRFbnRyeRILCgNrZXkYASABKAUSKwoFdmFsdWUYAiABKAsyHC5nb29nbGUu",
- "cHJvdG9idWYuRG91YmxlVmFsdWU6AjgBGk4KD0Zsb2F0RmllbGRFbnRyeRIL",
- "CgNrZXkYASABKAUSKgoFdmFsdWUYAiABKAsyGy5nb29nbGUucHJvdG9idWYu",
- "RmxvYXRWYWx1ZToCOAEaTgoPSW50NjRGaWVsZEVudHJ5EgsKA2tleRgBIAEo",
- "BRIqCgV2YWx1ZRgCIAEoCzIbLmdvb2dsZS5wcm90b2J1Zi5JbnQ2NFZhbHVl",
- "OgI4ARpQChBVaW50NjRGaWVsZEVudHJ5EgsKA2tleRgBIAEoBRIrCgV2YWx1",
- "ZRgCIAEoCzIcLmdvb2dsZS5wcm90b2J1Zi5VSW50NjRWYWx1ZToCOAEaTgoP",
- "SW50MzJGaWVsZEVudHJ5EgsKA2tleRgBIAEoBRIqCgV2YWx1ZRgCIAEoCzIb",
- "Lmdvb2dsZS5wcm90b2J1Zi5JbnQzMlZhbHVlOgI4ARpQChBVaW50MzJGaWVs",
- "ZEVudHJ5EgsKA2tleRgBIAEoBRIrCgV2YWx1ZRgCIAEoCzIcLmdvb2dsZS5w",
- "cm90b2J1Zi5VSW50MzJWYWx1ZToCOAEaTAoOQm9vbEZpZWxkRW50cnkSCwoD",
- "a2V5GAEgASgFEikKBXZhbHVlGAIgASgLMhouZ29vZ2xlLnByb3RvYnVmLkJv",
- "b2xWYWx1ZToCOAEaUAoQU3RyaW5nRmllbGRFbnRyeRILCgNrZXkYASABKAUS",
- "KwoFdmFsdWUYAiABKAsyHC5nb29nbGUucHJvdG9idWYuU3RyaW5nVmFsdWU6",
- "AjgBGk4KD0J5dGVzRmllbGRFbnRyeRILCgNrZXkYASABKAUSKgoFdmFsdWUY",
- "AiABKAsyGy5nb29nbGUucHJvdG9idWYuQnl0ZXNWYWx1ZToCOAFCOQoYY29t",
- "Lmdvb2dsZS5wcm90b2J1Zi50ZXN0UAGqAhpHb29nbGUuUHJvdG9idWYuVGVz",
- "dFByb3Rvc2IGcHJvdG8z"));
- descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData,
- new pbr::FileDescriptor[] { global::Google.Protobuf.WellKnownTypes.AnyReflection.Descriptor, global::Google.Protobuf.WellKnownTypes.ApiReflection.Descriptor, global::Google.Protobuf.WellKnownTypes.DurationReflection.Descriptor, global::Google.Protobuf.WellKnownTypes.EmptyReflection.Descriptor, global::Google.Protobuf.WellKnownTypes.FieldMaskReflection.Descriptor, global::Google.Protobuf.WellKnownTypes.SourceContextReflection.Descriptor, global::Google.Protobuf.WellKnownTypes.StructReflection.Descriptor, global::Google.Protobuf.WellKnownTypes.TimestampReflection.Descriptor, global::Google.Protobuf.WellKnownTypes.TypeReflection.Descriptor, global::Google.Protobuf.WellKnownTypes.WrappersReflection.Descriptor, },
- new pbr::GeneratedClrTypeInfo(null, new pbr::GeneratedClrTypeInfo[] {
- new pbr::GeneratedClrTypeInfo(typeof(global::Google.Protobuf.TestProtos.TestWellKnownTypes), global::Google.Protobuf.TestProtos.TestWellKnownTypes.Parser, new[]{ "AnyField", "ApiField", "DurationField", "EmptyField", "FieldMaskField", "SourceContextField", "StructField", "TimestampField", "TypeField", "DoubleField", "FloatField", "Int64Field", "Uint64Field", "Int32Field", "Uint32Field", "BoolField", "StringField", "BytesField", "ValueField" }, null, null, null),
- new pbr::GeneratedClrTypeInfo(typeof(global::Google.Protobuf.TestProtos.RepeatedWellKnownTypes), global::Google.Protobuf.TestProtos.RepeatedWellKnownTypes.Parser, new[]{ "AnyField", "ApiField", "DurationField", "EmptyField", "FieldMaskField", "SourceContextField", "StructField", "TimestampField", "TypeField", "DoubleField", "FloatField", "Int64Field", "Uint64Field", "Int32Field", "Uint32Field", "BoolField", "StringField", "BytesField" }, null, null, null),
- new pbr::GeneratedClrTypeInfo(typeof(global::Google.Protobuf.TestProtos.OneofWellKnownTypes), global::Google.Protobuf.TestProtos.OneofWellKnownTypes.Parser, new[]{ "AnyField", "ApiField", "DurationField", "EmptyField", "FieldMaskField", "SourceContextField", "StructField", "TimestampField", "TypeField", "DoubleField", "FloatField", "Int64Field", "Uint64Field", "Int32Field", "Uint32Field", "BoolField", "StringField", "BytesField" }, new[]{ "OneofField" }, null, null),
- new pbr::GeneratedClrTypeInfo(typeof(global::Google.Protobuf.TestProtos.MapWellKnownTypes), global::Google.Protobuf.TestProtos.MapWellKnownTypes.Parser, new[]{ "AnyField", "ApiField", "DurationField", "EmptyField", "FieldMaskField", "SourceContextField", "StructField", "TimestampField", "TypeField", "DoubleField", "FloatField", "Int64Field", "Uint64Field", "Int32Field", "Uint32Field", "BoolField", "StringField", "BytesField" }, null, null, new pbr::GeneratedClrTypeInfo[] { null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, })
- }));
- }
- #endregion
-
- }
- #region Messages
- /// <summary>
- /// Test that we can include all well-known types.
- /// Each wrapper type is included separately, as languages
- /// map handle different wrappers in different ways.
- /// </summary>
- public sealed partial class TestWellKnownTypes : pb::IMessage<TestWellKnownTypes> {
- private static readonly pb::MessageParser<TestWellKnownTypes> _parser = new pb::MessageParser<TestWellKnownTypes>(() => new TestWellKnownTypes());
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public static pb::MessageParser<TestWellKnownTypes> Parser { get { return _parser; } }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public static pbr::MessageDescriptor Descriptor {
- get { return global::Google.Protobuf.TestProtos.UnittestWellKnownTypesReflection.Descriptor.MessageTypes[0]; }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- pbr::MessageDescriptor pb::IMessage.Descriptor {
- get { return Descriptor; }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public TestWellKnownTypes() {
- OnConstruction();
- }
-
- partial void OnConstruction();
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public TestWellKnownTypes(TestWellKnownTypes other) : this() {
- AnyField = other.anyField_ != null ? other.AnyField.Clone() : null;
- ApiField = other.apiField_ != null ? other.ApiField.Clone() : null;
- DurationField = other.durationField_ != null ? other.DurationField.Clone() : null;
- EmptyField = other.emptyField_ != null ? other.EmptyField.Clone() : null;
- FieldMaskField = other.fieldMaskField_ != null ? other.FieldMaskField.Clone() : null;
- SourceContextField = other.sourceContextField_ != null ? other.SourceContextField.Clone() : null;
- StructField = other.structField_ != null ? other.StructField.Clone() : null;
- TimestampField = other.timestampField_ != null ? other.TimestampField.Clone() : null;
- TypeField = other.typeField_ != null ? other.TypeField.Clone() : null;
- DoubleField = other.DoubleField;
- FloatField = other.FloatField;
- Int64Field = other.Int64Field;
- Uint64Field = other.Uint64Field;
- Int32Field = other.Int32Field;
- Uint32Field = other.Uint32Field;
- BoolField = other.BoolField;
- StringField = other.StringField;
- BytesField = other.BytesField;
- ValueField = other.valueField_ != null ? other.ValueField.Clone() : null;
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public TestWellKnownTypes Clone() {
- return new TestWellKnownTypes(this);
- }
-
- /// <summary>Field number for the "any_field" field.</summary>
- public const int AnyFieldFieldNumber = 1;
- private global::Google.Protobuf.WellKnownTypes.Any anyField_;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public global::Google.Protobuf.WellKnownTypes.Any AnyField {
- get { return anyField_; }
- set {
- anyField_ = value;
- }
- }
-
- /// <summary>Field number for the "api_field" field.</summary>
- public const int ApiFieldFieldNumber = 2;
- private global::Google.Protobuf.WellKnownTypes.Api apiField_;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public global::Google.Protobuf.WellKnownTypes.Api ApiField {
- get { return apiField_; }
- set {
- apiField_ = value;
- }
- }
-
- /// <summary>Field number for the "duration_field" field.</summary>
- public const int DurationFieldFieldNumber = 3;
- private global::Google.Protobuf.WellKnownTypes.Duration durationField_;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public global::Google.Protobuf.WellKnownTypes.Duration DurationField {
- get { return durationField_; }
- set {
- durationField_ = value;
- }
- }
-
- /// <summary>Field number for the "empty_field" field.</summary>
- public const int EmptyFieldFieldNumber = 4;
- private global::Google.Protobuf.WellKnownTypes.Empty emptyField_;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public global::Google.Protobuf.WellKnownTypes.Empty EmptyField {
- get { return emptyField_; }
- set {
- emptyField_ = value;
- }
- }
-
- /// <summary>Field number for the "field_mask_field" field.</summary>
- public const int FieldMaskFieldFieldNumber = 5;
- private global::Google.Protobuf.WellKnownTypes.FieldMask fieldMaskField_;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public global::Google.Protobuf.WellKnownTypes.FieldMask FieldMaskField {
- get { return fieldMaskField_; }
- set {
- fieldMaskField_ = value;
- }
- }
-
- /// <summary>Field number for the "source_context_field" field.</summary>
- public const int SourceContextFieldFieldNumber = 6;
- private global::Google.Protobuf.WellKnownTypes.SourceContext sourceContextField_;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public global::Google.Protobuf.WellKnownTypes.SourceContext SourceContextField {
- get { return sourceContextField_; }
- set {
- sourceContextField_ = value;
- }
- }
-
- /// <summary>Field number for the "struct_field" field.</summary>
- public const int StructFieldFieldNumber = 7;
- private global::Google.Protobuf.WellKnownTypes.Struct structField_;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public global::Google.Protobuf.WellKnownTypes.Struct StructField {
- get { return structField_; }
- set {
- structField_ = value;
- }
- }
-
- /// <summary>Field number for the "timestamp_field" field.</summary>
- public const int TimestampFieldFieldNumber = 8;
- private global::Google.Protobuf.WellKnownTypes.Timestamp timestampField_;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public global::Google.Protobuf.WellKnownTypes.Timestamp TimestampField {
- get { return timestampField_; }
- set {
- timestampField_ = value;
- }
- }
-
- /// <summary>Field number for the "type_field" field.</summary>
- public const int TypeFieldFieldNumber = 9;
- private global::Google.Protobuf.WellKnownTypes.Type typeField_;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public global::Google.Protobuf.WellKnownTypes.Type TypeField {
- get { return typeField_; }
- set {
- typeField_ = value;
- }
- }
-
- /// <summary>Field number for the "double_field" field.</summary>
- public const int DoubleFieldFieldNumber = 10;
- private static readonly pb::FieldCodec<double?> _single_doubleField_codec = pb::FieldCodec.ForStructWrapper<double>(82);
- private double? doubleField_;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public double? DoubleField {
- get { return doubleField_; }
- set {
- doubleField_ = value;
- }
- }
-
- /// <summary>Field number for the "float_field" field.</summary>
- public const int FloatFieldFieldNumber = 11;
- private static readonly pb::FieldCodec<float?> _single_floatField_codec = pb::FieldCodec.ForStructWrapper<float>(90);
- private float? floatField_;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public float? FloatField {
- get { return floatField_; }
- set {
- floatField_ = value;
- }
- }
-
- /// <summary>Field number for the "int64_field" field.</summary>
- public const int Int64FieldFieldNumber = 12;
- private static readonly pb::FieldCodec<long?> _single_int64Field_codec = pb::FieldCodec.ForStructWrapper<long>(98);
- private long? int64Field_;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public long? Int64Field {
- get { return int64Field_; }
- set {
- int64Field_ = value;
- }
- }
-
- /// <summary>Field number for the "uint64_field" field.</summary>
- public const int Uint64FieldFieldNumber = 13;
- private static readonly pb::FieldCodec<ulong?> _single_uint64Field_codec = pb::FieldCodec.ForStructWrapper<ulong>(106);
- private ulong? uint64Field_;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public ulong? Uint64Field {
- get { return uint64Field_; }
- set {
- uint64Field_ = value;
- }
- }
-
- /// <summary>Field number for the "int32_field" field.</summary>
- public const int Int32FieldFieldNumber = 14;
- private static readonly pb::FieldCodec<int?> _single_int32Field_codec = pb::FieldCodec.ForStructWrapper<int>(114);
- private int? int32Field_;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public int? Int32Field {
- get { return int32Field_; }
- set {
- int32Field_ = value;
- }
- }
-
- /// <summary>Field number for the "uint32_field" field.</summary>
- public const int Uint32FieldFieldNumber = 15;
- private static readonly pb::FieldCodec<uint?> _single_uint32Field_codec = pb::FieldCodec.ForStructWrapper<uint>(122);
- private uint? uint32Field_;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public uint? Uint32Field {
- get { return uint32Field_; }
- set {
- uint32Field_ = value;
- }
- }
-
- /// <summary>Field number for the "bool_field" field.</summary>
- public const int BoolFieldFieldNumber = 16;
- private static readonly pb::FieldCodec<bool?> _single_boolField_codec = pb::FieldCodec.ForStructWrapper<bool>(130);
- private bool? boolField_;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public bool? BoolField {
- get { return boolField_; }
- set {
- boolField_ = value;
- }
- }
-
- /// <summary>Field number for the "string_field" field.</summary>
- public const int StringFieldFieldNumber = 17;
- private static readonly pb::FieldCodec<string> _single_stringField_codec = pb::FieldCodec.ForClassWrapper<string>(138);
- private string stringField_;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public string StringField {
- get { return stringField_; }
- set {
- stringField_ = value;
- }
- }
-
- /// <summary>Field number for the "bytes_field" field.</summary>
- public const int BytesFieldFieldNumber = 18;
- private static readonly pb::FieldCodec<pb::ByteString> _single_bytesField_codec = pb::FieldCodec.ForClassWrapper<pb::ByteString>(146);
- private pb::ByteString bytesField_;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public pb::ByteString BytesField {
- get { return bytesField_; }
- set {
- bytesField_ = value;
- }
- }
-
- /// <summary>Field number for the "value_field" field.</summary>
- public const int ValueFieldFieldNumber = 19;
- private global::Google.Protobuf.WellKnownTypes.Value valueField_;
- /// <summary>
- /// Part of struct, but useful to be able to test separately
- /// </summary>
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public global::Google.Protobuf.WellKnownTypes.Value ValueField {
- get { return valueField_; }
- set {
- valueField_ = value;
- }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public override bool Equals(object other) {
- return Equals(other as TestWellKnownTypes);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public bool Equals(TestWellKnownTypes other) {
- if (ReferenceEquals(other, null)) {
- return false;
- }
- if (ReferenceEquals(other, this)) {
- return true;
- }
- if (!object.Equals(AnyField, other.AnyField)) return false;
- if (!object.Equals(ApiField, other.ApiField)) return false;
- if (!object.Equals(DurationField, other.DurationField)) return false;
- if (!object.Equals(EmptyField, other.EmptyField)) return false;
- if (!object.Equals(FieldMaskField, other.FieldMaskField)) return false;
- if (!object.Equals(SourceContextField, other.SourceContextField)) return false;
- if (!object.Equals(StructField, other.StructField)) return false;
- if (!object.Equals(TimestampField, other.TimestampField)) return false;
- if (!object.Equals(TypeField, other.TypeField)) return false;
- if (DoubleField != other.DoubleField) return false;
- if (FloatField != other.FloatField) return false;
- if (Int64Field != other.Int64Field) return false;
- if (Uint64Field != other.Uint64Field) return false;
- if (Int32Field != other.Int32Field) return false;
- if (Uint32Field != other.Uint32Field) return false;
- if (BoolField != other.BoolField) return false;
- if (StringField != other.StringField) return false;
- if (BytesField != other.BytesField) return false;
- if (!object.Equals(ValueField, other.ValueField)) return false;
- return true;
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public override int GetHashCode() {
- int hash = 1;
- if (anyField_ != null) hash ^= AnyField.GetHashCode();
- if (apiField_ != null) hash ^= ApiField.GetHashCode();
- if (durationField_ != null) hash ^= DurationField.GetHashCode();
- if (emptyField_ != null) hash ^= EmptyField.GetHashCode();
- if (fieldMaskField_ != null) hash ^= FieldMaskField.GetHashCode();
- if (sourceContextField_ != null) hash ^= SourceContextField.GetHashCode();
- if (structField_ != null) hash ^= StructField.GetHashCode();
- if (timestampField_ != null) hash ^= TimestampField.GetHashCode();
- if (typeField_ != null) hash ^= TypeField.GetHashCode();
- if (doubleField_ != null) hash ^= DoubleField.GetHashCode();
- if (floatField_ != null) hash ^= FloatField.GetHashCode();
- if (int64Field_ != null) hash ^= Int64Field.GetHashCode();
- if (uint64Field_ != null) hash ^= Uint64Field.GetHashCode();
- if (int32Field_ != null) hash ^= Int32Field.GetHashCode();
- if (uint32Field_ != null) hash ^= Uint32Field.GetHashCode();
- if (boolField_ != null) hash ^= BoolField.GetHashCode();
- if (stringField_ != null) hash ^= StringField.GetHashCode();
- if (bytesField_ != null) hash ^= BytesField.GetHashCode();
- if (valueField_ != null) hash ^= ValueField.GetHashCode();
- return hash;
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public override string ToString() {
- return pb::JsonFormatter.ToDiagnosticString(this);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void WriteTo(pb::CodedOutputStream output) {
- if (anyField_ != null) {
- output.WriteRawTag(10);
- output.WriteMessage(AnyField);
- }
- if (apiField_ != null) {
- output.WriteRawTag(18);
- output.WriteMessage(ApiField);
- }
- if (durationField_ != null) {
- output.WriteRawTag(26);
- output.WriteMessage(DurationField);
- }
- if (emptyField_ != null) {
- output.WriteRawTag(34);
- output.WriteMessage(EmptyField);
- }
- if (fieldMaskField_ != null) {
- output.WriteRawTag(42);
- output.WriteMessage(FieldMaskField);
- }
- if (sourceContextField_ != null) {
- output.WriteRawTag(50);
- output.WriteMessage(SourceContextField);
- }
- if (structField_ != null) {
- output.WriteRawTag(58);
- output.WriteMessage(StructField);
- }
- if (timestampField_ != null) {
- output.WriteRawTag(66);
- output.WriteMessage(TimestampField);
- }
- if (typeField_ != null) {
- output.WriteRawTag(74);
- output.WriteMessage(TypeField);
- }
- if (doubleField_ != null) {
- _single_doubleField_codec.WriteTagAndValue(output, DoubleField);
- }
- if (floatField_ != null) {
- _single_floatField_codec.WriteTagAndValue(output, FloatField);
- }
- if (int64Field_ != null) {
- _single_int64Field_codec.WriteTagAndValue(output, Int64Field);
- }
- if (uint64Field_ != null) {
- _single_uint64Field_codec.WriteTagAndValue(output, Uint64Field);
- }
- if (int32Field_ != null) {
- _single_int32Field_codec.WriteTagAndValue(output, Int32Field);
- }
- if (uint32Field_ != null) {
- _single_uint32Field_codec.WriteTagAndValue(output, Uint32Field);
- }
- if (boolField_ != null) {
- _single_boolField_codec.WriteTagAndValue(output, BoolField);
- }
- if (stringField_ != null) {
- _single_stringField_codec.WriteTagAndValue(output, StringField);
- }
- if (bytesField_ != null) {
- _single_bytesField_codec.WriteTagAndValue(output, BytesField);
- }
- if (valueField_ != null) {
- output.WriteRawTag(154, 1);
- output.WriteMessage(ValueField);
- }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public int CalculateSize() {
- int size = 0;
- if (anyField_ != null) {
- size += 1 + pb::CodedOutputStream.ComputeMessageSize(AnyField);
- }
- if (apiField_ != null) {
- size += 1 + pb::CodedOutputStream.ComputeMessageSize(ApiField);
- }
- if (durationField_ != null) {
- size += 1 + pb::CodedOutputStream.ComputeMessageSize(DurationField);
- }
- if (emptyField_ != null) {
- size += 1 + pb::CodedOutputStream.ComputeMessageSize(EmptyField);
- }
- if (fieldMaskField_ != null) {
- size += 1 + pb::CodedOutputStream.ComputeMessageSize(FieldMaskField);
- }
- if (sourceContextField_ != null) {
- size += 1 + pb::CodedOutputStream.ComputeMessageSize(SourceContextField);
- }
- if (structField_ != null) {
- size += 1 + pb::CodedOutputStream.ComputeMessageSize(StructField);
- }
- if (timestampField_ != null) {
- size += 1 + pb::CodedOutputStream.ComputeMessageSize(TimestampField);
- }
- if (typeField_ != null) {
- size += 1 + pb::CodedOutputStream.ComputeMessageSize(TypeField);
- }
- if (doubleField_ != null) {
- size += _single_doubleField_codec.CalculateSizeWithTag(DoubleField);
- }
- if (floatField_ != null) {
- size += _single_floatField_codec.CalculateSizeWithTag(FloatField);
- }
- if (int64Field_ != null) {
- size += _single_int64Field_codec.CalculateSizeWithTag(Int64Field);
- }
- if (uint64Field_ != null) {
- size += _single_uint64Field_codec.CalculateSizeWithTag(Uint64Field);
- }
- if (int32Field_ != null) {
- size += _single_int32Field_codec.CalculateSizeWithTag(Int32Field);
- }
- if (uint32Field_ != null) {
- size += _single_uint32Field_codec.CalculateSizeWithTag(Uint32Field);
- }
- if (boolField_ != null) {
- size += _single_boolField_codec.CalculateSizeWithTag(BoolField);
- }
- if (stringField_ != null) {
- size += _single_stringField_codec.CalculateSizeWithTag(StringField);
- }
- if (bytesField_ != null) {
- size += _single_bytesField_codec.CalculateSizeWithTag(BytesField);
- }
- if (valueField_ != null) {
- size += 2 + pb::CodedOutputStream.ComputeMessageSize(ValueField);
- }
- return size;
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void MergeFrom(TestWellKnownTypes other) {
- if (other == null) {
- return;
- }
- if (other.anyField_ != null) {
- if (anyField_ == null) {
- anyField_ = new global::Google.Protobuf.WellKnownTypes.Any();
- }
- AnyField.MergeFrom(other.AnyField);
- }
- if (other.apiField_ != null) {
- if (apiField_ == null) {
- apiField_ = new global::Google.Protobuf.WellKnownTypes.Api();
- }
- ApiField.MergeFrom(other.ApiField);
- }
- if (other.durationField_ != null) {
- if (durationField_ == null) {
- durationField_ = new global::Google.Protobuf.WellKnownTypes.Duration();
- }
- DurationField.MergeFrom(other.DurationField);
- }
- if (other.emptyField_ != null) {
- if (emptyField_ == null) {
- emptyField_ = new global::Google.Protobuf.WellKnownTypes.Empty();
- }
- EmptyField.MergeFrom(other.EmptyField);
- }
- if (other.fieldMaskField_ != null) {
- if (fieldMaskField_ == null) {
- fieldMaskField_ = new global::Google.Protobuf.WellKnownTypes.FieldMask();
- }
- FieldMaskField.MergeFrom(other.FieldMaskField);
- }
- if (other.sourceContextField_ != null) {
- if (sourceContextField_ == null) {
- sourceContextField_ = new global::Google.Protobuf.WellKnownTypes.SourceContext();
- }
- SourceContextField.MergeFrom(other.SourceContextField);
- }
- if (other.structField_ != null) {
- if (structField_ == null) {
- structField_ = new global::Google.Protobuf.WellKnownTypes.Struct();
- }
- StructField.MergeFrom(other.StructField);
- }
- if (other.timestampField_ != null) {
- if (timestampField_ == null) {
- timestampField_ = new global::Google.Protobuf.WellKnownTypes.Timestamp();
- }
- TimestampField.MergeFrom(other.TimestampField);
- }
- if (other.typeField_ != null) {
- if (typeField_ == null) {
- typeField_ = new global::Google.Protobuf.WellKnownTypes.Type();
- }
- TypeField.MergeFrom(other.TypeField);
- }
- if (other.doubleField_ != null) {
- if (doubleField_ == null || other.DoubleField != 0D) {
- DoubleField = other.DoubleField;
- }
- }
- if (other.floatField_ != null) {
- if (floatField_ == null || other.FloatField != 0F) {
- FloatField = other.FloatField;
- }
- }
- if (other.int64Field_ != null) {
- if (int64Field_ == null || other.Int64Field != 0L) {
- Int64Field = other.Int64Field;
- }
- }
- if (other.uint64Field_ != null) {
- if (uint64Field_ == null || other.Uint64Field != 0UL) {
- Uint64Field = other.Uint64Field;
- }
- }
- if (other.int32Field_ != null) {
- if (int32Field_ == null || other.Int32Field != 0) {
- Int32Field = other.Int32Field;
- }
- }
- if (other.uint32Field_ != null) {
- if (uint32Field_ == null || other.Uint32Field != 0) {
- Uint32Field = other.Uint32Field;
- }
- }
- if (other.boolField_ != null) {
- if (boolField_ == null || other.BoolField != false) {
- BoolField = other.BoolField;
- }
- }
- if (other.stringField_ != null) {
- if (stringField_ == null || other.StringField != "") {
- StringField = other.StringField;
- }
- }
- if (other.bytesField_ != null) {
- if (bytesField_ == null || other.BytesField != pb::ByteString.Empty) {
- BytesField = other.BytesField;
- }
- }
- if (other.valueField_ != null) {
- if (valueField_ == null) {
- valueField_ = new global::Google.Protobuf.WellKnownTypes.Value();
- }
- ValueField.MergeFrom(other.ValueField);
- }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void MergeFrom(pb::CodedInputStream input) {
- uint tag;
- while ((tag = input.ReadTag()) != 0) {
- switch(tag) {
- default:
- input.SkipLastField();
- break;
- case 10: {
- if (anyField_ == null) {
- anyField_ = new global::Google.Protobuf.WellKnownTypes.Any();
- }
- input.ReadMessage(anyField_);
- break;
- }
- case 18: {
- if (apiField_ == null) {
- apiField_ = new global::Google.Protobuf.WellKnownTypes.Api();
- }
- input.ReadMessage(apiField_);
- break;
- }
- case 26: {
- if (durationField_ == null) {
- durationField_ = new global::Google.Protobuf.WellKnownTypes.Duration();
- }
- input.ReadMessage(durationField_);
- break;
- }
- case 34: {
- if (emptyField_ == null) {
- emptyField_ = new global::Google.Protobuf.WellKnownTypes.Empty();
- }
- input.ReadMessage(emptyField_);
- break;
- }
- case 42: {
- if (fieldMaskField_ == null) {
- fieldMaskField_ = new global::Google.Protobuf.WellKnownTypes.FieldMask();
- }
- input.ReadMessage(fieldMaskField_);
- break;
- }
- case 50: {
- if (sourceContextField_ == null) {
- sourceContextField_ = new global::Google.Protobuf.WellKnownTypes.SourceContext();
- }
- input.ReadMessage(sourceContextField_);
- break;
- }
- case 58: {
- if (structField_ == null) {
- structField_ = new global::Google.Protobuf.WellKnownTypes.Struct();
- }
- input.ReadMessage(structField_);
- break;
- }
- case 66: {
- if (timestampField_ == null) {
- timestampField_ = new global::Google.Protobuf.WellKnownTypes.Timestamp();
- }
- input.ReadMessage(timestampField_);
- break;
- }
- case 74: {
- if (typeField_ == null) {
- typeField_ = new global::Google.Protobuf.WellKnownTypes.Type();
- }
- input.ReadMessage(typeField_);
- break;
- }
- case 82: {
- double? value = _single_doubleField_codec.Read(input);
- if (doubleField_ == null || value != 0D) {
- DoubleField = value;
- }
- break;
- }
- case 90: {
- float? value = _single_floatField_codec.Read(input);
- if (floatField_ == null || value != 0F) {
- FloatField = value;
- }
- break;
- }
- case 98: {
- long? value = _single_int64Field_codec.Read(input);
- if (int64Field_ == null || value != 0L) {
- Int64Field = value;
- }
- break;
- }
- case 106: {
- ulong? value = _single_uint64Field_codec.Read(input);
- if (uint64Field_ == null || value != 0UL) {
- Uint64Field = value;
- }
- break;
- }
- case 114: {
- int? value = _single_int32Field_codec.Read(input);
- if (int32Field_ == null || value != 0) {
- Int32Field = value;
- }
- break;
- }
- case 122: {
- uint? value = _single_uint32Field_codec.Read(input);
- if (uint32Field_ == null || value != 0) {
- Uint32Field = value;
- }
- break;
- }
- case 130: {
- bool? value = _single_boolField_codec.Read(input);
- if (boolField_ == null || value != false) {
- BoolField = value;
- }
- break;
- }
- case 138: {
- string value = _single_stringField_codec.Read(input);
- if (stringField_ == null || value != "") {
- StringField = value;
- }
- break;
- }
- case 146: {
- pb::ByteString value = _single_bytesField_codec.Read(input);
- if (bytesField_ == null || value != pb::ByteString.Empty) {
- BytesField = value;
- }
- break;
- }
- case 154: {
- if (valueField_ == null) {
- valueField_ = new global::Google.Protobuf.WellKnownTypes.Value();
- }
- input.ReadMessage(valueField_);
- break;
- }
- }
- }
- }
-
- }
-
- /// <summary>
- /// A repeated field for each well-known type.
- /// </summary>
- public sealed partial class RepeatedWellKnownTypes : pb::IMessage<RepeatedWellKnownTypes> {
- private static readonly pb::MessageParser<RepeatedWellKnownTypes> _parser = new pb::MessageParser<RepeatedWellKnownTypes>(() => new RepeatedWellKnownTypes());
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public static pb::MessageParser<RepeatedWellKnownTypes> Parser { get { return _parser; } }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public static pbr::MessageDescriptor Descriptor {
- get { return global::Google.Protobuf.TestProtos.UnittestWellKnownTypesReflection.Descriptor.MessageTypes[1]; }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- pbr::MessageDescriptor pb::IMessage.Descriptor {
- get { return Descriptor; }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public RepeatedWellKnownTypes() {
- OnConstruction();
- }
-
- partial void OnConstruction();
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public RepeatedWellKnownTypes(RepeatedWellKnownTypes other) : this() {
- anyField_ = other.anyField_.Clone();
- apiField_ = other.apiField_.Clone();
- durationField_ = other.durationField_.Clone();
- emptyField_ = other.emptyField_.Clone();
- fieldMaskField_ = other.fieldMaskField_.Clone();
- sourceContextField_ = other.sourceContextField_.Clone();
- structField_ = other.structField_.Clone();
- timestampField_ = other.timestampField_.Clone();
- typeField_ = other.typeField_.Clone();
- doubleField_ = other.doubleField_.Clone();
- floatField_ = other.floatField_.Clone();
- int64Field_ = other.int64Field_.Clone();
- uint64Field_ = other.uint64Field_.Clone();
- int32Field_ = other.int32Field_.Clone();
- uint32Field_ = other.uint32Field_.Clone();
- boolField_ = other.boolField_.Clone();
- stringField_ = other.stringField_.Clone();
- bytesField_ = other.bytesField_.Clone();
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public RepeatedWellKnownTypes Clone() {
- return new RepeatedWellKnownTypes(this);
- }
-
- /// <summary>Field number for the "any_field" field.</summary>
- public const int AnyFieldFieldNumber = 1;
- private static readonly pb::FieldCodec<global::Google.Protobuf.WellKnownTypes.Any> _repeated_anyField_codec
- = pb::FieldCodec.ForMessage(10, global::Google.Protobuf.WellKnownTypes.Any.Parser);
- private readonly pbc::RepeatedField<global::Google.Protobuf.WellKnownTypes.Any> anyField_ = new pbc::RepeatedField<global::Google.Protobuf.WellKnownTypes.Any>();
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public pbc::RepeatedField<global::Google.Protobuf.WellKnownTypes.Any> AnyField {
- get { return anyField_; }
- }
-
- /// <summary>Field number for the "api_field" field.</summary>
- public const int ApiFieldFieldNumber = 2;
- private static readonly pb::FieldCodec<global::Google.Protobuf.WellKnownTypes.Api> _repeated_apiField_codec
- = pb::FieldCodec.ForMessage(18, global::Google.Protobuf.WellKnownTypes.Api.Parser);
- private readonly pbc::RepeatedField<global::Google.Protobuf.WellKnownTypes.Api> apiField_ = new pbc::RepeatedField<global::Google.Protobuf.WellKnownTypes.Api>();
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public pbc::RepeatedField<global::Google.Protobuf.WellKnownTypes.Api> ApiField {
- get { return apiField_; }
- }
-
- /// <summary>Field number for the "duration_field" field.</summary>
- public const int DurationFieldFieldNumber = 3;
- private static readonly pb::FieldCodec<global::Google.Protobuf.WellKnownTypes.Duration> _repeated_durationField_codec
- = pb::FieldCodec.ForMessage(26, global::Google.Protobuf.WellKnownTypes.Duration.Parser);
- private readonly pbc::RepeatedField<global::Google.Protobuf.WellKnownTypes.Duration> durationField_ = new pbc::RepeatedField<global::Google.Protobuf.WellKnownTypes.Duration>();
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public pbc::RepeatedField<global::Google.Protobuf.WellKnownTypes.Duration> DurationField {
- get { return durationField_; }
- }
-
- /// <summary>Field number for the "empty_field" field.</summary>
- public const int EmptyFieldFieldNumber = 4;
- private static readonly pb::FieldCodec<global::Google.Protobuf.WellKnownTypes.Empty> _repeated_emptyField_codec
- = pb::FieldCodec.ForMessage(34, global::Google.Protobuf.WellKnownTypes.Empty.Parser);
- private readonly pbc::RepeatedField<global::Google.Protobuf.WellKnownTypes.Empty> emptyField_ = new pbc::RepeatedField<global::Google.Protobuf.WellKnownTypes.Empty>();
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public pbc::RepeatedField<global::Google.Protobuf.WellKnownTypes.Empty> EmptyField {
- get { return emptyField_; }
- }
-
- /// <summary>Field number for the "field_mask_field" field.</summary>
- public const int FieldMaskFieldFieldNumber = 5;
- private static readonly pb::FieldCodec<global::Google.Protobuf.WellKnownTypes.FieldMask> _repeated_fieldMaskField_codec
- = pb::FieldCodec.ForMessage(42, global::Google.Protobuf.WellKnownTypes.FieldMask.Parser);
- private readonly pbc::RepeatedField<global::Google.Protobuf.WellKnownTypes.FieldMask> fieldMaskField_ = new pbc::RepeatedField<global::Google.Protobuf.WellKnownTypes.FieldMask>();
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public pbc::RepeatedField<global::Google.Protobuf.WellKnownTypes.FieldMask> FieldMaskField {
- get { return fieldMaskField_; }
- }
-
- /// <summary>Field number for the "source_context_field" field.</summary>
- public const int SourceContextFieldFieldNumber = 6;
- private static readonly pb::FieldCodec<global::Google.Protobuf.WellKnownTypes.SourceContext> _repeated_sourceContextField_codec
- = pb::FieldCodec.ForMessage(50, global::Google.Protobuf.WellKnownTypes.SourceContext.Parser);
- private readonly pbc::RepeatedField<global::Google.Protobuf.WellKnownTypes.SourceContext> sourceContextField_ = new pbc::RepeatedField<global::Google.Protobuf.WellKnownTypes.SourceContext>();
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public pbc::RepeatedField<global::Google.Protobuf.WellKnownTypes.SourceContext> SourceContextField {
- get { return sourceContextField_; }
- }
-
- /// <summary>Field number for the "struct_field" field.</summary>
- public const int StructFieldFieldNumber = 7;
- private static readonly pb::FieldCodec<global::Google.Protobuf.WellKnownTypes.Struct> _repeated_structField_codec
- = pb::FieldCodec.ForMessage(58, global::Google.Protobuf.WellKnownTypes.Struct.Parser);
- private readonly pbc::RepeatedField<global::Google.Protobuf.WellKnownTypes.Struct> structField_ = new pbc::RepeatedField<global::Google.Protobuf.WellKnownTypes.Struct>();
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public pbc::RepeatedField<global::Google.Protobuf.WellKnownTypes.Struct> StructField {
- get { return structField_; }
- }
-
- /// <summary>Field number for the "timestamp_field" field.</summary>
- public const int TimestampFieldFieldNumber = 8;
- private static readonly pb::FieldCodec<global::Google.Protobuf.WellKnownTypes.Timestamp> _repeated_timestampField_codec
- = pb::FieldCodec.ForMessage(66, global::Google.Protobuf.WellKnownTypes.Timestamp.Parser);
- private readonly pbc::RepeatedField<global::Google.Protobuf.WellKnownTypes.Timestamp> timestampField_ = new pbc::RepeatedField<global::Google.Protobuf.WellKnownTypes.Timestamp>();
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public pbc::RepeatedField<global::Google.Protobuf.WellKnownTypes.Timestamp> TimestampField {
- get { return timestampField_; }
- }
-
- /// <summary>Field number for the "type_field" field.</summary>
- public const int TypeFieldFieldNumber = 9;
- private static readonly pb::FieldCodec<global::Google.Protobuf.WellKnownTypes.Type> _repeated_typeField_codec
- = pb::FieldCodec.ForMessage(74, global::Google.Protobuf.WellKnownTypes.Type.Parser);
- private readonly pbc::RepeatedField<global::Google.Protobuf.WellKnownTypes.Type> typeField_ = new pbc::RepeatedField<global::Google.Protobuf.WellKnownTypes.Type>();
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public pbc::RepeatedField<global::Google.Protobuf.WellKnownTypes.Type> TypeField {
- get { return typeField_; }
- }
-
- /// <summary>Field number for the "double_field" field.</summary>
- public const int DoubleFieldFieldNumber = 10;
- private static readonly pb::FieldCodec<double?> _repeated_doubleField_codec
- = pb::FieldCodec.ForStructWrapper<double>(82);
- private readonly pbc::RepeatedField<double?> doubleField_ = new pbc::RepeatedField<double?>();
- /// <summary>
- /// These don't actually make a lot of sense, but they're not prohibited...
- /// </summary>
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public pbc::RepeatedField<double?> DoubleField {
- get { return doubleField_; }
- }
-
- /// <summary>Field number for the "float_field" field.</summary>
- public const int FloatFieldFieldNumber = 11;
- private static readonly pb::FieldCodec<float?> _repeated_floatField_codec
- = pb::FieldCodec.ForStructWrapper<float>(90);
- private readonly pbc::RepeatedField<float?> floatField_ = new pbc::RepeatedField<float?>();
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public pbc::RepeatedField<float?> FloatField {
- get { return floatField_; }
- }
-
- /// <summary>Field number for the "int64_field" field.</summary>
- public const int Int64FieldFieldNumber = 12;
- private static readonly pb::FieldCodec<long?> _repeated_int64Field_codec
- = pb::FieldCodec.ForStructWrapper<long>(98);
- private readonly pbc::RepeatedField<long?> int64Field_ = new pbc::RepeatedField<long?>();
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public pbc::RepeatedField<long?> Int64Field {
- get { return int64Field_; }
- }
-
- /// <summary>Field number for the "uint64_field" field.</summary>
- public const int Uint64FieldFieldNumber = 13;
- private static readonly pb::FieldCodec<ulong?> _repeated_uint64Field_codec
- = pb::FieldCodec.ForStructWrapper<ulong>(106);
- private readonly pbc::RepeatedField<ulong?> uint64Field_ = new pbc::RepeatedField<ulong?>();
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public pbc::RepeatedField<ulong?> Uint64Field {
- get { return uint64Field_; }
- }
-
- /// <summary>Field number for the "int32_field" field.</summary>
- public const int Int32FieldFieldNumber = 14;
- private static readonly pb::FieldCodec<int?> _repeated_int32Field_codec
- = pb::FieldCodec.ForStructWrapper<int>(114);
- private readonly pbc::RepeatedField<int?> int32Field_ = new pbc::RepeatedField<int?>();
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public pbc::RepeatedField<int?> Int32Field {
- get { return int32Field_; }
- }
-
- /// <summary>Field number for the "uint32_field" field.</summary>
- public const int Uint32FieldFieldNumber = 15;
- private static readonly pb::FieldCodec<uint?> _repeated_uint32Field_codec
- = pb::FieldCodec.ForStructWrapper<uint>(122);
- private readonly pbc::RepeatedField<uint?> uint32Field_ = new pbc::RepeatedField<uint?>();
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public pbc::RepeatedField<uint?> Uint32Field {
- get { return uint32Field_; }
- }
-
- /// <summary>Field number for the "bool_field" field.</summary>
- public const int BoolFieldFieldNumber = 16;
- private static readonly pb::FieldCodec<bool?> _repeated_boolField_codec
- = pb::FieldCodec.ForStructWrapper<bool>(130);
- private readonly pbc::RepeatedField<bool?> boolField_ = new pbc::RepeatedField<bool?>();
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public pbc::RepeatedField<bool?> BoolField {
- get { return boolField_; }
- }
-
- /// <summary>Field number for the "string_field" field.</summary>
- public const int StringFieldFieldNumber = 17;
- private static readonly pb::FieldCodec<string> _repeated_stringField_codec
- = pb::FieldCodec.ForClassWrapper<string>(138);
- private readonly pbc::RepeatedField<string> stringField_ = new pbc::RepeatedField<string>();
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public pbc::RepeatedField<string> StringField {
- get { return stringField_; }
- }
-
- /// <summary>Field number for the "bytes_field" field.</summary>
- public const int BytesFieldFieldNumber = 18;
- private static readonly pb::FieldCodec<pb::ByteString> _repeated_bytesField_codec
- = pb::FieldCodec.ForClassWrapper<pb::ByteString>(146);
- private readonly pbc::RepeatedField<pb::ByteString> bytesField_ = new pbc::RepeatedField<pb::ByteString>();
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public pbc::RepeatedField<pb::ByteString> BytesField {
- get { return bytesField_; }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public override bool Equals(object other) {
- return Equals(other as RepeatedWellKnownTypes);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public bool Equals(RepeatedWellKnownTypes other) {
- if (ReferenceEquals(other, null)) {
- return false;
- }
- if (ReferenceEquals(other, this)) {
- return true;
- }
- if(!anyField_.Equals(other.anyField_)) return false;
- if(!apiField_.Equals(other.apiField_)) return false;
- if(!durationField_.Equals(other.durationField_)) return false;
- if(!emptyField_.Equals(other.emptyField_)) return false;
- if(!fieldMaskField_.Equals(other.fieldMaskField_)) return false;
- if(!sourceContextField_.Equals(other.sourceContextField_)) return false;
- if(!structField_.Equals(other.structField_)) return false;
- if(!timestampField_.Equals(other.timestampField_)) return false;
- if(!typeField_.Equals(other.typeField_)) return false;
- if(!doubleField_.Equals(other.doubleField_)) return false;
- if(!floatField_.Equals(other.floatField_)) return false;
- if(!int64Field_.Equals(other.int64Field_)) return false;
- if(!uint64Field_.Equals(other.uint64Field_)) return false;
- if(!int32Field_.Equals(other.int32Field_)) return false;
- if(!uint32Field_.Equals(other.uint32Field_)) return false;
- if(!boolField_.Equals(other.boolField_)) return false;
- if(!stringField_.Equals(other.stringField_)) return false;
- if(!bytesField_.Equals(other.bytesField_)) return false;
- return true;
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public override int GetHashCode() {
- int hash = 1;
- hash ^= anyField_.GetHashCode();
- hash ^= apiField_.GetHashCode();
- hash ^= durationField_.GetHashCode();
- hash ^= emptyField_.GetHashCode();
- hash ^= fieldMaskField_.GetHashCode();
- hash ^= sourceContextField_.GetHashCode();
- hash ^= structField_.GetHashCode();
- hash ^= timestampField_.GetHashCode();
- hash ^= typeField_.GetHashCode();
- hash ^= doubleField_.GetHashCode();
- hash ^= floatField_.GetHashCode();
- hash ^= int64Field_.GetHashCode();
- hash ^= uint64Field_.GetHashCode();
- hash ^= int32Field_.GetHashCode();
- hash ^= uint32Field_.GetHashCode();
- hash ^= boolField_.GetHashCode();
- hash ^= stringField_.GetHashCode();
- hash ^= bytesField_.GetHashCode();
- return hash;
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public override string ToString() {
- return pb::JsonFormatter.ToDiagnosticString(this);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void WriteTo(pb::CodedOutputStream output) {
- anyField_.WriteTo(output, _repeated_anyField_codec);
- apiField_.WriteTo(output, _repeated_apiField_codec);
- durationField_.WriteTo(output, _repeated_durationField_codec);
- emptyField_.WriteTo(output, _repeated_emptyField_codec);
- fieldMaskField_.WriteTo(output, _repeated_fieldMaskField_codec);
- sourceContextField_.WriteTo(output, _repeated_sourceContextField_codec);
- structField_.WriteTo(output, _repeated_structField_codec);
- timestampField_.WriteTo(output, _repeated_timestampField_codec);
- typeField_.WriteTo(output, _repeated_typeField_codec);
- doubleField_.WriteTo(output, _repeated_doubleField_codec);
- floatField_.WriteTo(output, _repeated_floatField_codec);
- int64Field_.WriteTo(output, _repeated_int64Field_codec);
- uint64Field_.WriteTo(output, _repeated_uint64Field_codec);
- int32Field_.WriteTo(output, _repeated_int32Field_codec);
- uint32Field_.WriteTo(output, _repeated_uint32Field_codec);
- boolField_.WriteTo(output, _repeated_boolField_codec);
- stringField_.WriteTo(output, _repeated_stringField_codec);
- bytesField_.WriteTo(output, _repeated_bytesField_codec);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public int CalculateSize() {
- int size = 0;
- size += anyField_.CalculateSize(_repeated_anyField_codec);
- size += apiField_.CalculateSize(_repeated_apiField_codec);
- size += durationField_.CalculateSize(_repeated_durationField_codec);
- size += emptyField_.CalculateSize(_repeated_emptyField_codec);
- size += fieldMaskField_.CalculateSize(_repeated_fieldMaskField_codec);
- size += sourceContextField_.CalculateSize(_repeated_sourceContextField_codec);
- size += structField_.CalculateSize(_repeated_structField_codec);
- size += timestampField_.CalculateSize(_repeated_timestampField_codec);
- size += typeField_.CalculateSize(_repeated_typeField_codec);
- size += doubleField_.CalculateSize(_repeated_doubleField_codec);
- size += floatField_.CalculateSize(_repeated_floatField_codec);
- size += int64Field_.CalculateSize(_repeated_int64Field_codec);
- size += uint64Field_.CalculateSize(_repeated_uint64Field_codec);
- size += int32Field_.CalculateSize(_repeated_int32Field_codec);
- size += uint32Field_.CalculateSize(_repeated_uint32Field_codec);
- size += boolField_.CalculateSize(_repeated_boolField_codec);
- size += stringField_.CalculateSize(_repeated_stringField_codec);
- size += bytesField_.CalculateSize(_repeated_bytesField_codec);
- return size;
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void MergeFrom(RepeatedWellKnownTypes other) {
- if (other == null) {
- return;
- }
- anyField_.Add(other.anyField_);
- apiField_.Add(other.apiField_);
- durationField_.Add(other.durationField_);
- emptyField_.Add(other.emptyField_);
- fieldMaskField_.Add(other.fieldMaskField_);
- sourceContextField_.Add(other.sourceContextField_);
- structField_.Add(other.structField_);
- timestampField_.Add(other.timestampField_);
- typeField_.Add(other.typeField_);
- doubleField_.Add(other.doubleField_);
- floatField_.Add(other.floatField_);
- int64Field_.Add(other.int64Field_);
- uint64Field_.Add(other.uint64Field_);
- int32Field_.Add(other.int32Field_);
- uint32Field_.Add(other.uint32Field_);
- boolField_.Add(other.boolField_);
- stringField_.Add(other.stringField_);
- bytesField_.Add(other.bytesField_);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void MergeFrom(pb::CodedInputStream input) {
- uint tag;
- while ((tag = input.ReadTag()) != 0) {
- switch(tag) {
- default:
- input.SkipLastField();
- break;
- case 10: {
- anyField_.AddEntriesFrom(input, _repeated_anyField_codec);
- break;
- }
- case 18: {
- apiField_.AddEntriesFrom(input, _repeated_apiField_codec);
- break;
- }
- case 26: {
- durationField_.AddEntriesFrom(input, _repeated_durationField_codec);
- break;
- }
- case 34: {
- emptyField_.AddEntriesFrom(input, _repeated_emptyField_codec);
- break;
- }
- case 42: {
- fieldMaskField_.AddEntriesFrom(input, _repeated_fieldMaskField_codec);
- break;
- }
- case 50: {
- sourceContextField_.AddEntriesFrom(input, _repeated_sourceContextField_codec);
- break;
- }
- case 58: {
- structField_.AddEntriesFrom(input, _repeated_structField_codec);
- break;
- }
- case 66: {
- timestampField_.AddEntriesFrom(input, _repeated_timestampField_codec);
- break;
- }
- case 74: {
- typeField_.AddEntriesFrom(input, _repeated_typeField_codec);
- break;
- }
- case 82: {
- doubleField_.AddEntriesFrom(input, _repeated_doubleField_codec);
- break;
- }
- case 90: {
- floatField_.AddEntriesFrom(input, _repeated_floatField_codec);
- break;
- }
- case 98: {
- int64Field_.AddEntriesFrom(input, _repeated_int64Field_codec);
- break;
- }
- case 106: {
- uint64Field_.AddEntriesFrom(input, _repeated_uint64Field_codec);
- break;
- }
- case 114: {
- int32Field_.AddEntriesFrom(input, _repeated_int32Field_codec);
- break;
- }
- case 122: {
- uint32Field_.AddEntriesFrom(input, _repeated_uint32Field_codec);
- break;
- }
- case 130: {
- boolField_.AddEntriesFrom(input, _repeated_boolField_codec);
- break;
- }
- case 138: {
- stringField_.AddEntriesFrom(input, _repeated_stringField_codec);
- break;
- }
- case 146: {
- bytesField_.AddEntriesFrom(input, _repeated_bytesField_codec);
- break;
- }
- }
- }
- }
-
- }
-
- public sealed partial class OneofWellKnownTypes : pb::IMessage<OneofWellKnownTypes> {
- private static readonly pb::MessageParser<OneofWellKnownTypes> _parser = new pb::MessageParser<OneofWellKnownTypes>(() => new OneofWellKnownTypes());
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public static pb::MessageParser<OneofWellKnownTypes> Parser { get { return _parser; } }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public static pbr::MessageDescriptor Descriptor {
- get { return global::Google.Protobuf.TestProtos.UnittestWellKnownTypesReflection.Descriptor.MessageTypes[2]; }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- pbr::MessageDescriptor pb::IMessage.Descriptor {
- get { return Descriptor; }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public OneofWellKnownTypes() {
- OnConstruction();
- }
-
- partial void OnConstruction();
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public OneofWellKnownTypes(OneofWellKnownTypes other) : this() {
- switch (other.OneofFieldCase) {
- case OneofFieldOneofCase.AnyField:
- AnyField = other.AnyField.Clone();
- break;
- case OneofFieldOneofCase.ApiField:
- ApiField = other.ApiField.Clone();
- break;
- case OneofFieldOneofCase.DurationField:
- DurationField = other.DurationField.Clone();
- break;
- case OneofFieldOneofCase.EmptyField:
- EmptyField = other.EmptyField.Clone();
- break;
- case OneofFieldOneofCase.FieldMaskField:
- FieldMaskField = other.FieldMaskField.Clone();
- break;
- case OneofFieldOneofCase.SourceContextField:
- SourceContextField = other.SourceContextField.Clone();
- break;
- case OneofFieldOneofCase.StructField:
- StructField = other.StructField.Clone();
- break;
- case OneofFieldOneofCase.TimestampField:
- TimestampField = other.TimestampField.Clone();
- break;
- case OneofFieldOneofCase.TypeField:
- TypeField = other.TypeField.Clone();
- break;
- case OneofFieldOneofCase.DoubleField:
- DoubleField = other.DoubleField;
- break;
- case OneofFieldOneofCase.FloatField:
- FloatField = other.FloatField;
- break;
- case OneofFieldOneofCase.Int64Field:
- Int64Field = other.Int64Field;
- break;
- case OneofFieldOneofCase.Uint64Field:
- Uint64Field = other.Uint64Field;
- break;
- case OneofFieldOneofCase.Int32Field:
- Int32Field = other.Int32Field;
- break;
- case OneofFieldOneofCase.Uint32Field:
- Uint32Field = other.Uint32Field;
- break;
- case OneofFieldOneofCase.BoolField:
- BoolField = other.BoolField;
- break;
- case OneofFieldOneofCase.StringField:
- StringField = other.StringField;
- break;
- case OneofFieldOneofCase.BytesField:
- BytesField = other.BytesField;
- break;
- }
-
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public OneofWellKnownTypes Clone() {
- return new OneofWellKnownTypes(this);
- }
-
- /// <summary>Field number for the "any_field" field.</summary>
- public const int AnyFieldFieldNumber = 1;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public global::Google.Protobuf.WellKnownTypes.Any AnyField {
- get { return oneofFieldCase_ == OneofFieldOneofCase.AnyField ? (global::Google.Protobuf.WellKnownTypes.Any) oneofField_ : null; }
- set {
- oneofField_ = value;
- oneofFieldCase_ = value == null ? OneofFieldOneofCase.None : OneofFieldOneofCase.AnyField;
- }
- }
-
- /// <summary>Field number for the "api_field" field.</summary>
- public const int ApiFieldFieldNumber = 2;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public global::Google.Protobuf.WellKnownTypes.Api ApiField {
- get { return oneofFieldCase_ == OneofFieldOneofCase.ApiField ? (global::Google.Protobuf.WellKnownTypes.Api) oneofField_ : null; }
- set {
- oneofField_ = value;
- oneofFieldCase_ = value == null ? OneofFieldOneofCase.None : OneofFieldOneofCase.ApiField;
- }
- }
-
- /// <summary>Field number for the "duration_field" field.</summary>
- public const int DurationFieldFieldNumber = 3;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public global::Google.Protobuf.WellKnownTypes.Duration DurationField {
- get { return oneofFieldCase_ == OneofFieldOneofCase.DurationField ? (global::Google.Protobuf.WellKnownTypes.Duration) oneofField_ : null; }
- set {
- oneofField_ = value;
- oneofFieldCase_ = value == null ? OneofFieldOneofCase.None : OneofFieldOneofCase.DurationField;
- }
- }
-
- /// <summary>Field number for the "empty_field" field.</summary>
- public const int EmptyFieldFieldNumber = 4;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public global::Google.Protobuf.WellKnownTypes.Empty EmptyField {
- get { return oneofFieldCase_ == OneofFieldOneofCase.EmptyField ? (global::Google.Protobuf.WellKnownTypes.Empty) oneofField_ : null; }
- set {
- oneofField_ = value;
- oneofFieldCase_ = value == null ? OneofFieldOneofCase.None : OneofFieldOneofCase.EmptyField;
- }
- }
-
- /// <summary>Field number for the "field_mask_field" field.</summary>
- public const int FieldMaskFieldFieldNumber = 5;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public global::Google.Protobuf.WellKnownTypes.FieldMask FieldMaskField {
- get { return oneofFieldCase_ == OneofFieldOneofCase.FieldMaskField ? (global::Google.Protobuf.WellKnownTypes.FieldMask) oneofField_ : null; }
- set {
- oneofField_ = value;
- oneofFieldCase_ = value == null ? OneofFieldOneofCase.None : OneofFieldOneofCase.FieldMaskField;
- }
- }
-
- /// <summary>Field number for the "source_context_field" field.</summary>
- public const int SourceContextFieldFieldNumber = 6;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public global::Google.Protobuf.WellKnownTypes.SourceContext SourceContextField {
- get { return oneofFieldCase_ == OneofFieldOneofCase.SourceContextField ? (global::Google.Protobuf.WellKnownTypes.SourceContext) oneofField_ : null; }
- set {
- oneofField_ = value;
- oneofFieldCase_ = value == null ? OneofFieldOneofCase.None : OneofFieldOneofCase.SourceContextField;
- }
- }
-
- /// <summary>Field number for the "struct_field" field.</summary>
- public const int StructFieldFieldNumber = 7;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public global::Google.Protobuf.WellKnownTypes.Struct StructField {
- get { return oneofFieldCase_ == OneofFieldOneofCase.StructField ? (global::Google.Protobuf.WellKnownTypes.Struct) oneofField_ : null; }
- set {
- oneofField_ = value;
- oneofFieldCase_ = value == null ? OneofFieldOneofCase.None : OneofFieldOneofCase.StructField;
- }
- }
-
- /// <summary>Field number for the "timestamp_field" field.</summary>
- public const int TimestampFieldFieldNumber = 8;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public global::Google.Protobuf.WellKnownTypes.Timestamp TimestampField {
- get { return oneofFieldCase_ == OneofFieldOneofCase.TimestampField ? (global::Google.Protobuf.WellKnownTypes.Timestamp) oneofField_ : null; }
- set {
- oneofField_ = value;
- oneofFieldCase_ = value == null ? OneofFieldOneofCase.None : OneofFieldOneofCase.TimestampField;
- }
- }
-
- /// <summary>Field number for the "type_field" field.</summary>
- public const int TypeFieldFieldNumber = 9;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public global::Google.Protobuf.WellKnownTypes.Type TypeField {
- get { return oneofFieldCase_ == OneofFieldOneofCase.TypeField ? (global::Google.Protobuf.WellKnownTypes.Type) oneofField_ : null; }
- set {
- oneofField_ = value;
- oneofFieldCase_ = value == null ? OneofFieldOneofCase.None : OneofFieldOneofCase.TypeField;
- }
- }
-
- /// <summary>Field number for the "double_field" field.</summary>
- public const int DoubleFieldFieldNumber = 10;
- private static readonly pb::FieldCodec<double?> _oneof_doubleField_codec = pb::FieldCodec.ForStructWrapper<double>(82);
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public double? DoubleField {
- get { return oneofFieldCase_ == OneofFieldOneofCase.DoubleField ? (double?) oneofField_ : (double?) null; }
- set {
- oneofField_ = value;
- oneofFieldCase_ = value == null ? OneofFieldOneofCase.None : OneofFieldOneofCase.DoubleField;
- }
- }
-
- /// <summary>Field number for the "float_field" field.</summary>
- public const int FloatFieldFieldNumber = 11;
- private static readonly pb::FieldCodec<float?> _oneof_floatField_codec = pb::FieldCodec.ForStructWrapper<float>(90);
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public float? FloatField {
- get { return oneofFieldCase_ == OneofFieldOneofCase.FloatField ? (float?) oneofField_ : (float?) null; }
- set {
- oneofField_ = value;
- oneofFieldCase_ = value == null ? OneofFieldOneofCase.None : OneofFieldOneofCase.FloatField;
- }
- }
-
- /// <summary>Field number for the "int64_field" field.</summary>
- public const int Int64FieldFieldNumber = 12;
- private static readonly pb::FieldCodec<long?> _oneof_int64Field_codec = pb::FieldCodec.ForStructWrapper<long>(98);
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public long? Int64Field {
- get { return oneofFieldCase_ == OneofFieldOneofCase.Int64Field ? (long?) oneofField_ : (long?) null; }
- set {
- oneofField_ = value;
- oneofFieldCase_ = value == null ? OneofFieldOneofCase.None : OneofFieldOneofCase.Int64Field;
- }
- }
-
- /// <summary>Field number for the "uint64_field" field.</summary>
- public const int Uint64FieldFieldNumber = 13;
- private static readonly pb::FieldCodec<ulong?> _oneof_uint64Field_codec = pb::FieldCodec.ForStructWrapper<ulong>(106);
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public ulong? Uint64Field {
- get { return oneofFieldCase_ == OneofFieldOneofCase.Uint64Field ? (ulong?) oneofField_ : (ulong?) null; }
- set {
- oneofField_ = value;
- oneofFieldCase_ = value == null ? OneofFieldOneofCase.None : OneofFieldOneofCase.Uint64Field;
- }
- }
-
- /// <summary>Field number for the "int32_field" field.</summary>
- public const int Int32FieldFieldNumber = 14;
- private static readonly pb::FieldCodec<int?> _oneof_int32Field_codec = pb::FieldCodec.ForStructWrapper<int>(114);
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public int? Int32Field {
- get { return oneofFieldCase_ == OneofFieldOneofCase.Int32Field ? (int?) oneofField_ : (int?) null; }
- set {
- oneofField_ = value;
- oneofFieldCase_ = value == null ? OneofFieldOneofCase.None : OneofFieldOneofCase.Int32Field;
- }
- }
-
- /// <summary>Field number for the "uint32_field" field.</summary>
- public const int Uint32FieldFieldNumber = 15;
- private static readonly pb::FieldCodec<uint?> _oneof_uint32Field_codec = pb::FieldCodec.ForStructWrapper<uint>(122);
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public uint? Uint32Field {
- get { return oneofFieldCase_ == OneofFieldOneofCase.Uint32Field ? (uint?) oneofField_ : (uint?) null; }
- set {
- oneofField_ = value;
- oneofFieldCase_ = value == null ? OneofFieldOneofCase.None : OneofFieldOneofCase.Uint32Field;
- }
- }
-
- /// <summary>Field number for the "bool_field" field.</summary>
- public const int BoolFieldFieldNumber = 16;
- private static readonly pb::FieldCodec<bool?> _oneof_boolField_codec = pb::FieldCodec.ForStructWrapper<bool>(130);
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public bool? BoolField {
- get { return oneofFieldCase_ == OneofFieldOneofCase.BoolField ? (bool?) oneofField_ : (bool?) null; }
- set {
- oneofField_ = value;
- oneofFieldCase_ = value == null ? OneofFieldOneofCase.None : OneofFieldOneofCase.BoolField;
- }
- }
-
- /// <summary>Field number for the "string_field" field.</summary>
- public const int StringFieldFieldNumber = 17;
- private static readonly pb::FieldCodec<string> _oneof_stringField_codec = pb::FieldCodec.ForClassWrapper<string>(138);
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public string StringField {
- get { return oneofFieldCase_ == OneofFieldOneofCase.StringField ? (string) oneofField_ : (string) null; }
- set {
- oneofField_ = value;
- oneofFieldCase_ = value == null ? OneofFieldOneofCase.None : OneofFieldOneofCase.StringField;
- }
- }
-
- /// <summary>Field number for the "bytes_field" field.</summary>
- public const int BytesFieldFieldNumber = 18;
- private static readonly pb::FieldCodec<pb::ByteString> _oneof_bytesField_codec = pb::FieldCodec.ForClassWrapper<pb::ByteString>(146);
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public pb::ByteString BytesField {
- get { return oneofFieldCase_ == OneofFieldOneofCase.BytesField ? (pb::ByteString) oneofField_ : (pb::ByteString) null; }
- set {
- oneofField_ = value;
- oneofFieldCase_ = value == null ? OneofFieldOneofCase.None : OneofFieldOneofCase.BytesField;
- }
- }
-
- private object oneofField_;
- /// <summary>Enum of possible cases for the "oneof_field" oneof.</summary>
- public enum OneofFieldOneofCase {
- None = 0,
- AnyField = 1,
- ApiField = 2,
- DurationField = 3,
- EmptyField = 4,
- FieldMaskField = 5,
- SourceContextField = 6,
- StructField = 7,
- TimestampField = 8,
- TypeField = 9,
- DoubleField = 10,
- FloatField = 11,
- Int64Field = 12,
- Uint64Field = 13,
- Int32Field = 14,
- Uint32Field = 15,
- BoolField = 16,
- StringField = 17,
- BytesField = 18,
- }
- private OneofFieldOneofCase oneofFieldCase_ = OneofFieldOneofCase.None;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public OneofFieldOneofCase OneofFieldCase {
- get { return oneofFieldCase_; }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void ClearOneofField() {
- oneofFieldCase_ = OneofFieldOneofCase.None;
- oneofField_ = null;
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public override bool Equals(object other) {
- return Equals(other as OneofWellKnownTypes);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public bool Equals(OneofWellKnownTypes other) {
- if (ReferenceEquals(other, null)) {
- return false;
- }
- if (ReferenceEquals(other, this)) {
- return true;
- }
- if (!object.Equals(AnyField, other.AnyField)) return false;
- if (!object.Equals(ApiField, other.ApiField)) return false;
- if (!object.Equals(DurationField, other.DurationField)) return false;
- if (!object.Equals(EmptyField, other.EmptyField)) return false;
- if (!object.Equals(FieldMaskField, other.FieldMaskField)) return false;
- if (!object.Equals(SourceContextField, other.SourceContextField)) return false;
- if (!object.Equals(StructField, other.StructField)) return false;
- if (!object.Equals(TimestampField, other.TimestampField)) return false;
- if (!object.Equals(TypeField, other.TypeField)) return false;
- if (DoubleField != other.DoubleField) return false;
- if (FloatField != other.FloatField) return false;
- if (Int64Field != other.Int64Field) return false;
- if (Uint64Field != other.Uint64Field) return false;
- if (Int32Field != other.Int32Field) return false;
- if (Uint32Field != other.Uint32Field) return false;
- if (BoolField != other.BoolField) return false;
- if (StringField != other.StringField) return false;
- if (BytesField != other.BytesField) return false;
- if (OneofFieldCase != other.OneofFieldCase) return false;
- return true;
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public override int GetHashCode() {
- int hash = 1;
- if (oneofFieldCase_ == OneofFieldOneofCase.AnyField) hash ^= AnyField.GetHashCode();
- if (oneofFieldCase_ == OneofFieldOneofCase.ApiField) hash ^= ApiField.GetHashCode();
- if (oneofFieldCase_ == OneofFieldOneofCase.DurationField) hash ^= DurationField.GetHashCode();
- if (oneofFieldCase_ == OneofFieldOneofCase.EmptyField) hash ^= EmptyField.GetHashCode();
- if (oneofFieldCase_ == OneofFieldOneofCase.FieldMaskField) hash ^= FieldMaskField.GetHashCode();
- if (oneofFieldCase_ == OneofFieldOneofCase.SourceContextField) hash ^= SourceContextField.GetHashCode();
- if (oneofFieldCase_ == OneofFieldOneofCase.StructField) hash ^= StructField.GetHashCode();
- if (oneofFieldCase_ == OneofFieldOneofCase.TimestampField) hash ^= TimestampField.GetHashCode();
- if (oneofFieldCase_ == OneofFieldOneofCase.TypeField) hash ^= TypeField.GetHashCode();
- if (oneofFieldCase_ == OneofFieldOneofCase.DoubleField) hash ^= DoubleField.GetHashCode();
- if (oneofFieldCase_ == OneofFieldOneofCase.FloatField) hash ^= FloatField.GetHashCode();
- if (oneofFieldCase_ == OneofFieldOneofCase.Int64Field) hash ^= Int64Field.GetHashCode();
- if (oneofFieldCase_ == OneofFieldOneofCase.Uint64Field) hash ^= Uint64Field.GetHashCode();
- if (oneofFieldCase_ == OneofFieldOneofCase.Int32Field) hash ^= Int32Field.GetHashCode();
- if (oneofFieldCase_ == OneofFieldOneofCase.Uint32Field) hash ^= Uint32Field.GetHashCode();
- if (oneofFieldCase_ == OneofFieldOneofCase.BoolField) hash ^= BoolField.GetHashCode();
- if (oneofFieldCase_ == OneofFieldOneofCase.StringField) hash ^= StringField.GetHashCode();
- if (oneofFieldCase_ == OneofFieldOneofCase.BytesField) hash ^= BytesField.GetHashCode();
- hash ^= (int) oneofFieldCase_;
- return hash;
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public override string ToString() {
- return pb::JsonFormatter.ToDiagnosticString(this);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void WriteTo(pb::CodedOutputStream output) {
- if (oneofFieldCase_ == OneofFieldOneofCase.AnyField) {
- output.WriteRawTag(10);
- output.WriteMessage(AnyField);
- }
- if (oneofFieldCase_ == OneofFieldOneofCase.ApiField) {
- output.WriteRawTag(18);
- output.WriteMessage(ApiField);
- }
- if (oneofFieldCase_ == OneofFieldOneofCase.DurationField) {
- output.WriteRawTag(26);
- output.WriteMessage(DurationField);
- }
- if (oneofFieldCase_ == OneofFieldOneofCase.EmptyField) {
- output.WriteRawTag(34);
- output.WriteMessage(EmptyField);
- }
- if (oneofFieldCase_ == OneofFieldOneofCase.FieldMaskField) {
- output.WriteRawTag(42);
- output.WriteMessage(FieldMaskField);
- }
- if (oneofFieldCase_ == OneofFieldOneofCase.SourceContextField) {
- output.WriteRawTag(50);
- output.WriteMessage(SourceContextField);
- }
- if (oneofFieldCase_ == OneofFieldOneofCase.StructField) {
- output.WriteRawTag(58);
- output.WriteMessage(StructField);
- }
- if (oneofFieldCase_ == OneofFieldOneofCase.TimestampField) {
- output.WriteRawTag(66);
- output.WriteMessage(TimestampField);
- }
- if (oneofFieldCase_ == OneofFieldOneofCase.TypeField) {
- output.WriteRawTag(74);
- output.WriteMessage(TypeField);
- }
- if (oneofFieldCase_ == OneofFieldOneofCase.DoubleField) {
- _oneof_doubleField_codec.WriteTagAndValue(output, (double?) oneofField_);
- }
- if (oneofFieldCase_ == OneofFieldOneofCase.FloatField) {
- _oneof_floatField_codec.WriteTagAndValue(output, (float?) oneofField_);
- }
- if (oneofFieldCase_ == OneofFieldOneofCase.Int64Field) {
- _oneof_int64Field_codec.WriteTagAndValue(output, (long?) oneofField_);
- }
- if (oneofFieldCase_ == OneofFieldOneofCase.Uint64Field) {
- _oneof_uint64Field_codec.WriteTagAndValue(output, (ulong?) oneofField_);
- }
- if (oneofFieldCase_ == OneofFieldOneofCase.Int32Field) {
- _oneof_int32Field_codec.WriteTagAndValue(output, (int?) oneofField_);
- }
- if (oneofFieldCase_ == OneofFieldOneofCase.Uint32Field) {
- _oneof_uint32Field_codec.WriteTagAndValue(output, (uint?) oneofField_);
- }
- if (oneofFieldCase_ == OneofFieldOneofCase.BoolField) {
- _oneof_boolField_codec.WriteTagAndValue(output, (bool?) oneofField_);
- }
- if (oneofFieldCase_ == OneofFieldOneofCase.StringField) {
- _oneof_stringField_codec.WriteTagAndValue(output, (string) oneofField_);
- }
- if (oneofFieldCase_ == OneofFieldOneofCase.BytesField) {
- _oneof_bytesField_codec.WriteTagAndValue(output, (pb::ByteString) oneofField_);
- }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public int CalculateSize() {
- int size = 0;
- if (oneofFieldCase_ == OneofFieldOneofCase.AnyField) {
- size += 1 + pb::CodedOutputStream.ComputeMessageSize(AnyField);
- }
- if (oneofFieldCase_ == OneofFieldOneofCase.ApiField) {
- size += 1 + pb::CodedOutputStream.ComputeMessageSize(ApiField);
- }
- if (oneofFieldCase_ == OneofFieldOneofCase.DurationField) {
- size += 1 + pb::CodedOutputStream.ComputeMessageSize(DurationField);
- }
- if (oneofFieldCase_ == OneofFieldOneofCase.EmptyField) {
- size += 1 + pb::CodedOutputStream.ComputeMessageSize(EmptyField);
- }
- if (oneofFieldCase_ == OneofFieldOneofCase.FieldMaskField) {
- size += 1 + pb::CodedOutputStream.ComputeMessageSize(FieldMaskField);
- }
- if (oneofFieldCase_ == OneofFieldOneofCase.SourceContextField) {
- size += 1 + pb::CodedOutputStream.ComputeMessageSize(SourceContextField);
- }
- if (oneofFieldCase_ == OneofFieldOneofCase.StructField) {
- size += 1 + pb::CodedOutputStream.ComputeMessageSize(StructField);
- }
- if (oneofFieldCase_ == OneofFieldOneofCase.TimestampField) {
- size += 1 + pb::CodedOutputStream.ComputeMessageSize(TimestampField);
- }
- if (oneofFieldCase_ == OneofFieldOneofCase.TypeField) {
- size += 1 + pb::CodedOutputStream.ComputeMessageSize(TypeField);
- }
- if (oneofFieldCase_ == OneofFieldOneofCase.DoubleField) {
- size += _oneof_doubleField_codec.CalculateSizeWithTag(DoubleField);
- }
- if (oneofFieldCase_ == OneofFieldOneofCase.FloatField) {
- size += _oneof_floatField_codec.CalculateSizeWithTag(FloatField);
- }
- if (oneofFieldCase_ == OneofFieldOneofCase.Int64Field) {
- size += _oneof_int64Field_codec.CalculateSizeWithTag(Int64Field);
- }
- if (oneofFieldCase_ == OneofFieldOneofCase.Uint64Field) {
- size += _oneof_uint64Field_codec.CalculateSizeWithTag(Uint64Field);
- }
- if (oneofFieldCase_ == OneofFieldOneofCase.Int32Field) {
- size += _oneof_int32Field_codec.CalculateSizeWithTag(Int32Field);
- }
- if (oneofFieldCase_ == OneofFieldOneofCase.Uint32Field) {
- size += _oneof_uint32Field_codec.CalculateSizeWithTag(Uint32Field);
- }
- if (oneofFieldCase_ == OneofFieldOneofCase.BoolField) {
- size += _oneof_boolField_codec.CalculateSizeWithTag(BoolField);
- }
- if (oneofFieldCase_ == OneofFieldOneofCase.StringField) {
- size += _oneof_stringField_codec.CalculateSizeWithTag(StringField);
- }
- if (oneofFieldCase_ == OneofFieldOneofCase.BytesField) {
- size += _oneof_bytesField_codec.CalculateSizeWithTag(BytesField);
- }
- return size;
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void MergeFrom(OneofWellKnownTypes other) {
- if (other == null) {
- return;
- }
- switch (other.OneofFieldCase) {
- case OneofFieldOneofCase.AnyField:
- AnyField = other.AnyField;
- break;
- case OneofFieldOneofCase.ApiField:
- ApiField = other.ApiField;
- break;
- case OneofFieldOneofCase.DurationField:
- DurationField = other.DurationField;
- break;
- case OneofFieldOneofCase.EmptyField:
- EmptyField = other.EmptyField;
- break;
- case OneofFieldOneofCase.FieldMaskField:
- FieldMaskField = other.FieldMaskField;
- break;
- case OneofFieldOneofCase.SourceContextField:
- SourceContextField = other.SourceContextField;
- break;
- case OneofFieldOneofCase.StructField:
- StructField = other.StructField;
- break;
- case OneofFieldOneofCase.TimestampField:
- TimestampField = other.TimestampField;
- break;
- case OneofFieldOneofCase.TypeField:
- TypeField = other.TypeField;
- break;
- case OneofFieldOneofCase.DoubleField:
- DoubleField = other.DoubleField;
- break;
- case OneofFieldOneofCase.FloatField:
- FloatField = other.FloatField;
- break;
- case OneofFieldOneofCase.Int64Field:
- Int64Field = other.Int64Field;
- break;
- case OneofFieldOneofCase.Uint64Field:
- Uint64Field = other.Uint64Field;
- break;
- case OneofFieldOneofCase.Int32Field:
- Int32Field = other.Int32Field;
- break;
- case OneofFieldOneofCase.Uint32Field:
- Uint32Field = other.Uint32Field;
- break;
- case OneofFieldOneofCase.BoolField:
- BoolField = other.BoolField;
- break;
- case OneofFieldOneofCase.StringField:
- StringField = other.StringField;
- break;
- case OneofFieldOneofCase.BytesField:
- BytesField = other.BytesField;
- break;
- }
-
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void MergeFrom(pb::CodedInputStream input) {
- uint tag;
- while ((tag = input.ReadTag()) != 0) {
- switch(tag) {
- default:
- input.SkipLastField();
- break;
- case 10: {
- global::Google.Protobuf.WellKnownTypes.Any subBuilder = new global::Google.Protobuf.WellKnownTypes.Any();
- if (oneofFieldCase_ == OneofFieldOneofCase.AnyField) {
- subBuilder.MergeFrom(AnyField);
- }
- input.ReadMessage(subBuilder);
- AnyField = subBuilder;
- break;
- }
- case 18: {
- global::Google.Protobuf.WellKnownTypes.Api subBuilder = new global::Google.Protobuf.WellKnownTypes.Api();
- if (oneofFieldCase_ == OneofFieldOneofCase.ApiField) {
- subBuilder.MergeFrom(ApiField);
- }
- input.ReadMessage(subBuilder);
- ApiField = subBuilder;
- break;
- }
- case 26: {
- global::Google.Protobuf.WellKnownTypes.Duration subBuilder = new global::Google.Protobuf.WellKnownTypes.Duration();
- if (oneofFieldCase_ == OneofFieldOneofCase.DurationField) {
- subBuilder.MergeFrom(DurationField);
- }
- input.ReadMessage(subBuilder);
- DurationField = subBuilder;
- break;
- }
- case 34: {
- global::Google.Protobuf.WellKnownTypes.Empty subBuilder = new global::Google.Protobuf.WellKnownTypes.Empty();
- if (oneofFieldCase_ == OneofFieldOneofCase.EmptyField) {
- subBuilder.MergeFrom(EmptyField);
- }
- input.ReadMessage(subBuilder);
- EmptyField = subBuilder;
- break;
- }
- case 42: {
- global::Google.Protobuf.WellKnownTypes.FieldMask subBuilder = new global::Google.Protobuf.WellKnownTypes.FieldMask();
- if (oneofFieldCase_ == OneofFieldOneofCase.FieldMaskField) {
- subBuilder.MergeFrom(FieldMaskField);
- }
- input.ReadMessage(subBuilder);
- FieldMaskField = subBuilder;
- break;
- }
- case 50: {
- global::Google.Protobuf.WellKnownTypes.SourceContext subBuilder = new global::Google.Protobuf.WellKnownTypes.SourceContext();
- if (oneofFieldCase_ == OneofFieldOneofCase.SourceContextField) {
- subBuilder.MergeFrom(SourceContextField);
- }
- input.ReadMessage(subBuilder);
- SourceContextField = subBuilder;
- break;
- }
- case 58: {
- global::Google.Protobuf.WellKnownTypes.Struct subBuilder = new global::Google.Protobuf.WellKnownTypes.Struct();
- if (oneofFieldCase_ == OneofFieldOneofCase.StructField) {
- subBuilder.MergeFrom(StructField);
- }
- input.ReadMessage(subBuilder);
- StructField = subBuilder;
- break;
- }
- case 66: {
- global::Google.Protobuf.WellKnownTypes.Timestamp subBuilder = new global::Google.Protobuf.WellKnownTypes.Timestamp();
- if (oneofFieldCase_ == OneofFieldOneofCase.TimestampField) {
- subBuilder.MergeFrom(TimestampField);
- }
- input.ReadMessage(subBuilder);
- TimestampField = subBuilder;
- break;
- }
- case 74: {
- global::Google.Protobuf.WellKnownTypes.Type subBuilder = new global::Google.Protobuf.WellKnownTypes.Type();
- if (oneofFieldCase_ == OneofFieldOneofCase.TypeField) {
- subBuilder.MergeFrom(TypeField);
- }
- input.ReadMessage(subBuilder);
- TypeField = subBuilder;
- break;
- }
- case 82: {
- DoubleField = _oneof_doubleField_codec.Read(input);
- break;
- }
- case 90: {
- FloatField = _oneof_floatField_codec.Read(input);
- break;
- }
- case 98: {
- Int64Field = _oneof_int64Field_codec.Read(input);
- break;
- }
- case 106: {
- Uint64Field = _oneof_uint64Field_codec.Read(input);
- break;
- }
- case 114: {
- Int32Field = _oneof_int32Field_codec.Read(input);
- break;
- }
- case 122: {
- Uint32Field = _oneof_uint32Field_codec.Read(input);
- break;
- }
- case 130: {
- BoolField = _oneof_boolField_codec.Read(input);
- break;
- }
- case 138: {
- StringField = _oneof_stringField_codec.Read(input);
- break;
- }
- case 146: {
- BytesField = _oneof_bytesField_codec.Read(input);
- break;
- }
- }
- }
- }
-
- }
-
- /// <summary>
- /// A map field for each well-known type. We only
- /// need to worry about the value part of the map being the
- /// well-known types, as messages can't be map keys.
- /// </summary>
- public sealed partial class MapWellKnownTypes : pb::IMessage<MapWellKnownTypes> {
- private static readonly pb::MessageParser<MapWellKnownTypes> _parser = new pb::MessageParser<MapWellKnownTypes>(() => new MapWellKnownTypes());
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public static pb::MessageParser<MapWellKnownTypes> Parser { get { return _parser; } }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public static pbr::MessageDescriptor Descriptor {
- get { return global::Google.Protobuf.TestProtos.UnittestWellKnownTypesReflection.Descriptor.MessageTypes[3]; }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- pbr::MessageDescriptor pb::IMessage.Descriptor {
- get { return Descriptor; }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public MapWellKnownTypes() {
- OnConstruction();
- }
-
- partial void OnConstruction();
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public MapWellKnownTypes(MapWellKnownTypes other) : this() {
- anyField_ = other.anyField_.Clone();
- apiField_ = other.apiField_.Clone();
- durationField_ = other.durationField_.Clone();
- emptyField_ = other.emptyField_.Clone();
- fieldMaskField_ = other.fieldMaskField_.Clone();
- sourceContextField_ = other.sourceContextField_.Clone();
- structField_ = other.structField_.Clone();
- timestampField_ = other.timestampField_.Clone();
- typeField_ = other.typeField_.Clone();
- doubleField_ = other.doubleField_.Clone();
- floatField_ = other.floatField_.Clone();
- int64Field_ = other.int64Field_.Clone();
- uint64Field_ = other.uint64Field_.Clone();
- int32Field_ = other.int32Field_.Clone();
- uint32Field_ = other.uint32Field_.Clone();
- boolField_ = other.boolField_.Clone();
- stringField_ = other.stringField_.Clone();
- bytesField_ = other.bytesField_.Clone();
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public MapWellKnownTypes Clone() {
- return new MapWellKnownTypes(this);
- }
-
- /// <summary>Field number for the "any_field" field.</summary>
- public const int AnyFieldFieldNumber = 1;
- private static readonly pbc::MapField<int, global::Google.Protobuf.WellKnownTypes.Any>.Codec _map_anyField_codec
- = new pbc::MapField<int, global::Google.Protobuf.WellKnownTypes.Any>.Codec(pb::FieldCodec.ForInt32(8), pb::FieldCodec.ForMessage(18, global::Google.Protobuf.WellKnownTypes.Any.Parser), 10);
- private readonly pbc::MapField<int, global::Google.Protobuf.WellKnownTypes.Any> anyField_ = new pbc::MapField<int, global::Google.Protobuf.WellKnownTypes.Any>();
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public pbc::MapField<int, global::Google.Protobuf.WellKnownTypes.Any> AnyField {
- get { return anyField_; }
- }
-
- /// <summary>Field number for the "api_field" field.</summary>
- public const int ApiFieldFieldNumber = 2;
- private static readonly pbc::MapField<int, global::Google.Protobuf.WellKnownTypes.Api>.Codec _map_apiField_codec
- = new pbc::MapField<int, global::Google.Protobuf.WellKnownTypes.Api>.Codec(pb::FieldCodec.ForInt32(8), pb::FieldCodec.ForMessage(18, global::Google.Protobuf.WellKnownTypes.Api.Parser), 18);
- private readonly pbc::MapField<int, global::Google.Protobuf.WellKnownTypes.Api> apiField_ = new pbc::MapField<int, global::Google.Protobuf.WellKnownTypes.Api>();
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public pbc::MapField<int, global::Google.Protobuf.WellKnownTypes.Api> ApiField {
- get { return apiField_; }
- }
-
- /// <summary>Field number for the "duration_field" field.</summary>
- public const int DurationFieldFieldNumber = 3;
- private static readonly pbc::MapField<int, global::Google.Protobuf.WellKnownTypes.Duration>.Codec _map_durationField_codec
- = new pbc::MapField<int, global::Google.Protobuf.WellKnownTypes.Duration>.Codec(pb::FieldCodec.ForInt32(8), pb::FieldCodec.ForMessage(18, global::Google.Protobuf.WellKnownTypes.Duration.Parser), 26);
- private readonly pbc::MapField<int, global::Google.Protobuf.WellKnownTypes.Duration> durationField_ = new pbc::MapField<int, global::Google.Protobuf.WellKnownTypes.Duration>();
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public pbc::MapField<int, global::Google.Protobuf.WellKnownTypes.Duration> DurationField {
- get { return durationField_; }
- }
-
- /// <summary>Field number for the "empty_field" field.</summary>
- public const int EmptyFieldFieldNumber = 4;
- private static readonly pbc::MapField<int, global::Google.Protobuf.WellKnownTypes.Empty>.Codec _map_emptyField_codec
- = new pbc::MapField<int, global::Google.Protobuf.WellKnownTypes.Empty>.Codec(pb::FieldCodec.ForInt32(8), pb::FieldCodec.ForMessage(18, global::Google.Protobuf.WellKnownTypes.Empty.Parser), 34);
- private readonly pbc::MapField<int, global::Google.Protobuf.WellKnownTypes.Empty> emptyField_ = new pbc::MapField<int, global::Google.Protobuf.WellKnownTypes.Empty>();
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public pbc::MapField<int, global::Google.Protobuf.WellKnownTypes.Empty> EmptyField {
- get { return emptyField_; }
- }
-
- /// <summary>Field number for the "field_mask_field" field.</summary>
- public const int FieldMaskFieldFieldNumber = 5;
- private static readonly pbc::MapField<int, global::Google.Protobuf.WellKnownTypes.FieldMask>.Codec _map_fieldMaskField_codec
- = new pbc::MapField<int, global::Google.Protobuf.WellKnownTypes.FieldMask>.Codec(pb::FieldCodec.ForInt32(8), pb::FieldCodec.ForMessage(18, global::Google.Protobuf.WellKnownTypes.FieldMask.Parser), 42);
- private readonly pbc::MapField<int, global::Google.Protobuf.WellKnownTypes.FieldMask> fieldMaskField_ = new pbc::MapField<int, global::Google.Protobuf.WellKnownTypes.FieldMask>();
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public pbc::MapField<int, global::Google.Protobuf.WellKnownTypes.FieldMask> FieldMaskField {
- get { return fieldMaskField_; }
- }
-
- /// <summary>Field number for the "source_context_field" field.</summary>
- public const int SourceContextFieldFieldNumber = 6;
- private static readonly pbc::MapField<int, global::Google.Protobuf.WellKnownTypes.SourceContext>.Codec _map_sourceContextField_codec
- = new pbc::MapField<int, global::Google.Protobuf.WellKnownTypes.SourceContext>.Codec(pb::FieldCodec.ForInt32(8), pb::FieldCodec.ForMessage(18, global::Google.Protobuf.WellKnownTypes.SourceContext.Parser), 50);
- private readonly pbc::MapField<int, global::Google.Protobuf.WellKnownTypes.SourceContext> sourceContextField_ = new pbc::MapField<int, global::Google.Protobuf.WellKnownTypes.SourceContext>();
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public pbc::MapField<int, global::Google.Protobuf.WellKnownTypes.SourceContext> SourceContextField {
- get { return sourceContextField_; }
- }
-
- /// <summary>Field number for the "struct_field" field.</summary>
- public const int StructFieldFieldNumber = 7;
- private static readonly pbc::MapField<int, global::Google.Protobuf.WellKnownTypes.Struct>.Codec _map_structField_codec
- = new pbc::MapField<int, global::Google.Protobuf.WellKnownTypes.Struct>.Codec(pb::FieldCodec.ForInt32(8), pb::FieldCodec.ForMessage(18, global::Google.Protobuf.WellKnownTypes.Struct.Parser), 58);
- private readonly pbc::MapField<int, global::Google.Protobuf.WellKnownTypes.Struct> structField_ = new pbc::MapField<int, global::Google.Protobuf.WellKnownTypes.Struct>();
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public pbc::MapField<int, global::Google.Protobuf.WellKnownTypes.Struct> StructField {
- get { return structField_; }
- }
-
- /// <summary>Field number for the "timestamp_field" field.</summary>
- public const int TimestampFieldFieldNumber = 8;
- private static readonly pbc::MapField<int, global::Google.Protobuf.WellKnownTypes.Timestamp>.Codec _map_timestampField_codec
- = new pbc::MapField<int, global::Google.Protobuf.WellKnownTypes.Timestamp>.Codec(pb::FieldCodec.ForInt32(8), pb::FieldCodec.ForMessage(18, global::Google.Protobuf.WellKnownTypes.Timestamp.Parser), 66);
- private readonly pbc::MapField<int, global::Google.Protobuf.WellKnownTypes.Timestamp> timestampField_ = new pbc::MapField<int, global::Google.Protobuf.WellKnownTypes.Timestamp>();
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public pbc::MapField<int, global::Google.Protobuf.WellKnownTypes.Timestamp> TimestampField {
- get { return timestampField_; }
- }
-
- /// <summary>Field number for the "type_field" field.</summary>
- public const int TypeFieldFieldNumber = 9;
- private static readonly pbc::MapField<int, global::Google.Protobuf.WellKnownTypes.Type>.Codec _map_typeField_codec
- = new pbc::MapField<int, global::Google.Protobuf.WellKnownTypes.Type>.Codec(pb::FieldCodec.ForInt32(8), pb::FieldCodec.ForMessage(18, global::Google.Protobuf.WellKnownTypes.Type.Parser), 74);
- private readonly pbc::MapField<int, global::Google.Protobuf.WellKnownTypes.Type> typeField_ = new pbc::MapField<int, global::Google.Protobuf.WellKnownTypes.Type>();
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public pbc::MapField<int, global::Google.Protobuf.WellKnownTypes.Type> TypeField {
- get { return typeField_; }
- }
-
- /// <summary>Field number for the "double_field" field.</summary>
- public const int DoubleFieldFieldNumber = 10;
- private static readonly pbc::MapField<int, double?>.Codec _map_doubleField_codec
- = new pbc::MapField<int, double?>.Codec(pb::FieldCodec.ForInt32(8), pb::FieldCodec.ForStructWrapper<double>(18), 82);
- private readonly pbc::MapField<int, double?> doubleField_ = new pbc::MapField<int, double?>();
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public pbc::MapField<int, double?> DoubleField {
- get { return doubleField_; }
- }
-
- /// <summary>Field number for the "float_field" field.</summary>
- public const int FloatFieldFieldNumber = 11;
- private static readonly pbc::MapField<int, float?>.Codec _map_floatField_codec
- = new pbc::MapField<int, float?>.Codec(pb::FieldCodec.ForInt32(8), pb::FieldCodec.ForStructWrapper<float>(18), 90);
- private readonly pbc::MapField<int, float?> floatField_ = new pbc::MapField<int, float?>();
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public pbc::MapField<int, float?> FloatField {
- get { return floatField_; }
- }
-
- /// <summary>Field number for the "int64_field" field.</summary>
- public const int Int64FieldFieldNumber = 12;
- private static readonly pbc::MapField<int, long?>.Codec _map_int64Field_codec
- = new pbc::MapField<int, long?>.Codec(pb::FieldCodec.ForInt32(8), pb::FieldCodec.ForStructWrapper<long>(18), 98);
- private readonly pbc::MapField<int, long?> int64Field_ = new pbc::MapField<int, long?>();
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public pbc::MapField<int, long?> Int64Field {
- get { return int64Field_; }
- }
-
- /// <summary>Field number for the "uint64_field" field.</summary>
- public const int Uint64FieldFieldNumber = 13;
- private static readonly pbc::MapField<int, ulong?>.Codec _map_uint64Field_codec
- = new pbc::MapField<int, ulong?>.Codec(pb::FieldCodec.ForInt32(8), pb::FieldCodec.ForStructWrapper<ulong>(18), 106);
- private readonly pbc::MapField<int, ulong?> uint64Field_ = new pbc::MapField<int, ulong?>();
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public pbc::MapField<int, ulong?> Uint64Field {
- get { return uint64Field_; }
- }
-
- /// <summary>Field number for the "int32_field" field.</summary>
- public const int Int32FieldFieldNumber = 14;
- private static readonly pbc::MapField<int, int?>.Codec _map_int32Field_codec
- = new pbc::MapField<int, int?>.Codec(pb::FieldCodec.ForInt32(8), pb::FieldCodec.ForStructWrapper<int>(18), 114);
- private readonly pbc::MapField<int, int?> int32Field_ = new pbc::MapField<int, int?>();
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public pbc::MapField<int, int?> Int32Field {
- get { return int32Field_; }
- }
-
- /// <summary>Field number for the "uint32_field" field.</summary>
- public const int Uint32FieldFieldNumber = 15;
- private static readonly pbc::MapField<int, uint?>.Codec _map_uint32Field_codec
- = new pbc::MapField<int, uint?>.Codec(pb::FieldCodec.ForInt32(8), pb::FieldCodec.ForStructWrapper<uint>(18), 122);
- private readonly pbc::MapField<int, uint?> uint32Field_ = new pbc::MapField<int, uint?>();
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public pbc::MapField<int, uint?> Uint32Field {
- get { return uint32Field_; }
- }
-
- /// <summary>Field number for the "bool_field" field.</summary>
- public const int BoolFieldFieldNumber = 16;
- private static readonly pbc::MapField<int, bool?>.Codec _map_boolField_codec
- = new pbc::MapField<int, bool?>.Codec(pb::FieldCodec.ForInt32(8), pb::FieldCodec.ForStructWrapper<bool>(18), 130);
- private readonly pbc::MapField<int, bool?> boolField_ = new pbc::MapField<int, bool?>();
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public pbc::MapField<int, bool?> BoolField {
- get { return boolField_; }
- }
-
- /// <summary>Field number for the "string_field" field.</summary>
- public const int StringFieldFieldNumber = 17;
- private static readonly pbc::MapField<int, string>.Codec _map_stringField_codec
- = new pbc::MapField<int, string>.Codec(pb::FieldCodec.ForInt32(8), pb::FieldCodec.ForClassWrapper<string>(18), 138);
- private readonly pbc::MapField<int, string> stringField_ = new pbc::MapField<int, string>();
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public pbc::MapField<int, string> StringField {
- get { return stringField_; }
- }
-
- /// <summary>Field number for the "bytes_field" field.</summary>
- public const int BytesFieldFieldNumber = 18;
- private static readonly pbc::MapField<int, pb::ByteString>.Codec _map_bytesField_codec
- = new pbc::MapField<int, pb::ByteString>.Codec(pb::FieldCodec.ForInt32(8), pb::FieldCodec.ForClassWrapper<pb::ByteString>(18), 146);
- private readonly pbc::MapField<int, pb::ByteString> bytesField_ = new pbc::MapField<int, pb::ByteString>();
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public pbc::MapField<int, pb::ByteString> BytesField {
- get { return bytesField_; }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public override bool Equals(object other) {
- return Equals(other as MapWellKnownTypes);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public bool Equals(MapWellKnownTypes other) {
- if (ReferenceEquals(other, null)) {
- return false;
- }
- if (ReferenceEquals(other, this)) {
- return true;
- }
- if (!AnyField.Equals(other.AnyField)) return false;
- if (!ApiField.Equals(other.ApiField)) return false;
- if (!DurationField.Equals(other.DurationField)) return false;
- if (!EmptyField.Equals(other.EmptyField)) return false;
- if (!FieldMaskField.Equals(other.FieldMaskField)) return false;
- if (!SourceContextField.Equals(other.SourceContextField)) return false;
- if (!StructField.Equals(other.StructField)) return false;
- if (!TimestampField.Equals(other.TimestampField)) return false;
- if (!TypeField.Equals(other.TypeField)) return false;
- if (!DoubleField.Equals(other.DoubleField)) return false;
- if (!FloatField.Equals(other.FloatField)) return false;
- if (!Int64Field.Equals(other.Int64Field)) return false;
- if (!Uint64Field.Equals(other.Uint64Field)) return false;
- if (!Int32Field.Equals(other.Int32Field)) return false;
- if (!Uint32Field.Equals(other.Uint32Field)) return false;
- if (!BoolField.Equals(other.BoolField)) return false;
- if (!StringField.Equals(other.StringField)) return false;
- if (!BytesField.Equals(other.BytesField)) return false;
- return true;
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public override int GetHashCode() {
- int hash = 1;
- hash ^= AnyField.GetHashCode();
- hash ^= ApiField.GetHashCode();
- hash ^= DurationField.GetHashCode();
- hash ^= EmptyField.GetHashCode();
- hash ^= FieldMaskField.GetHashCode();
- hash ^= SourceContextField.GetHashCode();
- hash ^= StructField.GetHashCode();
- hash ^= TimestampField.GetHashCode();
- hash ^= TypeField.GetHashCode();
- hash ^= DoubleField.GetHashCode();
- hash ^= FloatField.GetHashCode();
- hash ^= Int64Field.GetHashCode();
- hash ^= Uint64Field.GetHashCode();
- hash ^= Int32Field.GetHashCode();
- hash ^= Uint32Field.GetHashCode();
- hash ^= BoolField.GetHashCode();
- hash ^= StringField.GetHashCode();
- hash ^= BytesField.GetHashCode();
- return hash;
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public override string ToString() {
- return pb::JsonFormatter.ToDiagnosticString(this);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void WriteTo(pb::CodedOutputStream output) {
- anyField_.WriteTo(output, _map_anyField_codec);
- apiField_.WriteTo(output, _map_apiField_codec);
- durationField_.WriteTo(output, _map_durationField_codec);
- emptyField_.WriteTo(output, _map_emptyField_codec);
- fieldMaskField_.WriteTo(output, _map_fieldMaskField_codec);
- sourceContextField_.WriteTo(output, _map_sourceContextField_codec);
- structField_.WriteTo(output, _map_structField_codec);
- timestampField_.WriteTo(output, _map_timestampField_codec);
- typeField_.WriteTo(output, _map_typeField_codec);
- doubleField_.WriteTo(output, _map_doubleField_codec);
- floatField_.WriteTo(output, _map_floatField_codec);
- int64Field_.WriteTo(output, _map_int64Field_codec);
- uint64Field_.WriteTo(output, _map_uint64Field_codec);
- int32Field_.WriteTo(output, _map_int32Field_codec);
- uint32Field_.WriteTo(output, _map_uint32Field_codec);
- boolField_.WriteTo(output, _map_boolField_codec);
- stringField_.WriteTo(output, _map_stringField_codec);
- bytesField_.WriteTo(output, _map_bytesField_codec);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public int CalculateSize() {
- int size = 0;
- size += anyField_.CalculateSize(_map_anyField_codec);
- size += apiField_.CalculateSize(_map_apiField_codec);
- size += durationField_.CalculateSize(_map_durationField_codec);
- size += emptyField_.CalculateSize(_map_emptyField_codec);
- size += fieldMaskField_.CalculateSize(_map_fieldMaskField_codec);
- size += sourceContextField_.CalculateSize(_map_sourceContextField_codec);
- size += structField_.CalculateSize(_map_structField_codec);
- size += timestampField_.CalculateSize(_map_timestampField_codec);
- size += typeField_.CalculateSize(_map_typeField_codec);
- size += doubleField_.CalculateSize(_map_doubleField_codec);
- size += floatField_.CalculateSize(_map_floatField_codec);
- size += int64Field_.CalculateSize(_map_int64Field_codec);
- size += uint64Field_.CalculateSize(_map_uint64Field_codec);
- size += int32Field_.CalculateSize(_map_int32Field_codec);
- size += uint32Field_.CalculateSize(_map_uint32Field_codec);
- size += boolField_.CalculateSize(_map_boolField_codec);
- size += stringField_.CalculateSize(_map_stringField_codec);
- size += bytesField_.CalculateSize(_map_bytesField_codec);
- return size;
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void MergeFrom(MapWellKnownTypes other) {
- if (other == null) {
- return;
- }
- anyField_.Add(other.anyField_);
- apiField_.Add(other.apiField_);
- durationField_.Add(other.durationField_);
- emptyField_.Add(other.emptyField_);
- fieldMaskField_.Add(other.fieldMaskField_);
- sourceContextField_.Add(other.sourceContextField_);
- structField_.Add(other.structField_);
- timestampField_.Add(other.timestampField_);
- typeField_.Add(other.typeField_);
- doubleField_.Add(other.doubleField_);
- floatField_.Add(other.floatField_);
- int64Field_.Add(other.int64Field_);
- uint64Field_.Add(other.uint64Field_);
- int32Field_.Add(other.int32Field_);
- uint32Field_.Add(other.uint32Field_);
- boolField_.Add(other.boolField_);
- stringField_.Add(other.stringField_);
- bytesField_.Add(other.bytesField_);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void MergeFrom(pb::CodedInputStream input) {
- uint tag;
- while ((tag = input.ReadTag()) != 0) {
- switch(tag) {
- default:
- input.SkipLastField();
- break;
- case 10: {
- anyField_.AddEntriesFrom(input, _map_anyField_codec);
- break;
- }
- case 18: {
- apiField_.AddEntriesFrom(input, _map_apiField_codec);
- break;
- }
- case 26: {
- durationField_.AddEntriesFrom(input, _map_durationField_codec);
- break;
- }
- case 34: {
- emptyField_.AddEntriesFrom(input, _map_emptyField_codec);
- break;
- }
- case 42: {
- fieldMaskField_.AddEntriesFrom(input, _map_fieldMaskField_codec);
- break;
- }
- case 50: {
- sourceContextField_.AddEntriesFrom(input, _map_sourceContextField_codec);
- break;
- }
- case 58: {
- structField_.AddEntriesFrom(input, _map_structField_codec);
- break;
- }
- case 66: {
- timestampField_.AddEntriesFrom(input, _map_timestampField_codec);
- break;
- }
- case 74: {
- typeField_.AddEntriesFrom(input, _map_typeField_codec);
- break;
- }
- case 82: {
- doubleField_.AddEntriesFrom(input, _map_doubleField_codec);
- break;
- }
- case 90: {
- floatField_.AddEntriesFrom(input, _map_floatField_codec);
- break;
- }
- case 98: {
- int64Field_.AddEntriesFrom(input, _map_int64Field_codec);
- break;
- }
- case 106: {
- uint64Field_.AddEntriesFrom(input, _map_uint64Field_codec);
- break;
- }
- case 114: {
- int32Field_.AddEntriesFrom(input, _map_int32Field_codec);
- break;
- }
- case 122: {
- uint32Field_.AddEntriesFrom(input, _map_uint32Field_codec);
- break;
- }
- case 130: {
- boolField_.AddEntriesFrom(input, _map_boolField_codec);
- break;
- }
- case 138: {
- stringField_.AddEntriesFrom(input, _map_stringField_codec);
- break;
- }
- case 146: {
- bytesField_.AddEntriesFrom(input, _map_bytesField_codec);
- break;
- }
- }
- }
- }
-
- }
-
- #endregion
-
-}
-
-#endregion Designer generated code