1 // <auto-generated> 2 // Generated by the protocol buffer compiler. DO NOT EDIT! 3 // source: unittest_custom_options_proto3.proto 4 // </auto-generated> 5 #pragma warning disable 1591, 0612, 3021, 8981 6 #region Designer generated code 7 8 using pb = global::Google.Protobuf; 9 using pbc = global::Google.Protobuf.Collections; 10 using pbr = global::Google.Protobuf.Reflection; 11 using scg = global::System.Collections.Generic; 12 namespace UnitTest.Issues.TestProtos { 13 14 /// <summary>Holder for reflection information generated from unittest_custom_options_proto3.proto</summary> 15 public static partial class UnittestCustomOptionsProto3Reflection { 16 17 #region Descriptor 18 /// <summary>File descriptor for unittest_custom_options_proto3.proto</summary> 19 public static pbr::FileDescriptor Descriptor { 20 get { return descriptor; } 21 } 22 private static pbr::FileDescriptor descriptor; 23 UnittestCustomOptionsProto3Reflection()24 static UnittestCustomOptionsProto3Reflection() { 25 byte[] descriptorData = global::System.Convert.FromBase64String( 26 string.Concat( 27 "CiR1bml0dGVzdF9jdXN0b21fb3B0aW9uc19wcm90bzMucHJvdG8SEXByb3Rv", 28 "YnVmX3VuaXR0ZXN0GiBnb29nbGUvcHJvdG9idWYvZGVzY3JpcHRvci5wcm90", 29 "byLXAQocVGVzdE1lc3NhZ2VXaXRoQ3VzdG9tT3B0aW9ucxIeCgZmaWVsZDEY", 30 "ASABKAlCDggBweDDHS3hdQoCAAAAEhUKC29uZW9mX2ZpZWxkGAIgASgFSAAi", 31 "UwoGQW5FbnVtEhYKEkFORU5VTV9VTlNQRUNJRklFRBAAEg8KC0FORU5VTV9W", 32 "QUwxEAESFgoLQU5FTlVNX1ZBTDIQAhoFsIb6BXsaCMX2yR3r/P//OhAIAODp", 33 "wh3I//////////8BQhkKB0FuT25lb2YSDviswx2d//////////8BIhgKFkN1", 34 "c3RvbU9wdGlvbkZvb1JlcXVlc3QiGQoXQ3VzdG9tT3B0aW9uRm9vUmVzcG9u", 35 "c2UiHgocQ3VzdG9tT3B0aW9uRm9vQ2xpZW50TWVzc2FnZSIeChxDdXN0b21P", 36 "cHRpb25Gb29TZXJ2ZXJNZXNzYWdlIo8BChpEdW1teU1lc3NhZ2VDb250YWlu", 37 "aW5nRW51bSJxCgxUZXN0RW51bVR5cGUSIAocVEVTVF9PUFRJT05fRU5VTV9V", 38 "TlNQRUNJRklFRBAAEhoKFlRFU1RfT1BUSU9OX0VOVU1fVFlQRTEQFhIjChZU", 39 "RVNUX09QVElPTl9FTlVNX1RZUEUyEOn//////////wEiIQofRHVtbXlNZXNz", 40 "YWdlSW52YWxpZEFzT3B0aW9uVHlwZSKKAQocQ3VzdG9tT3B0aW9uTWluSW50", 41 "ZWdlclZhbHVlczpq0N6yHQDoxrIdgICAgPj/////AbC8sh2AgICAgICAgIAB", 42 "gJOyHQD49bAdAIDEsB3/////D/iXsB3///////////8BnfWvHQAAAACR7q8d", 43 "AAAAAAAAAACtja8dAAAAgJnWqB0AAAAAAAAAgCKRAQocQ3VzdG9tT3B0aW9u", 44 "TWF4SW50ZWdlclZhbHVlczpx0N6yHQHoxrId/////wewvLId//////////9/", 45 "gJOyHf////8P+PWwHf///////////wGAxLAd/v///w/4l7Ad/v//////////", 46 "AZ31rx3/////ke6vHf//////////rY2vHf///3+Z1qgd/////////38ibgoX", 47 "Q3VzdG9tT3B0aW9uT3RoZXJWYWx1ZXM6U+jGsh2c//////////8B9d+jHeeH", 48 "RUHp3KId+1mMQsrA8z+q3KIdDkhlbGxvLCAiV29ybGQistmiHQtIZWxsbwBX", 49 "b3JsZIjZoh3p//////////8BIjQKHFNldHRpbmdSZWFsc0Zyb21Qb3NpdGl2", 50 "ZUludHM6FPXfox0AAEBB6dyiHQAAAAAAQGNAIjQKHFNldHRpbmdSZWFsc0Zy", 51 "b21OZWdhdGl2ZUludHM6FPXfox0AAEDB6dyiHQAAAAAAQGPAIksKEkNvbXBs", 52 "ZXhPcHRpb25UeXBlMRILCgNmb28YASABKAUSDAoEZm9vMhgCIAEoBRIMCgRm", 53 "b28zGAMgASgFEgwKBGZvbzQYBCADKAUigQMKEkNvbXBsZXhPcHRpb25UeXBl", 54 "MhIyCgNiYXIYASABKAsyJS5wcm90b2J1Zl91bml0dGVzdC5Db21wbGV4T3B0", 55 "aW9uVHlwZTESCwoDYmF6GAIgASgFEkYKBGZyZWQYAyABKAsyOC5wcm90b2J1", 56 "Zl91bml0dGVzdC5Db21wbGV4T3B0aW9uVHlwZTIuQ29tcGxleE9wdGlvblR5", 57 "cGU0EkgKBmJhcm5leRgEIAMoCzI4LnByb3RvYnVmX3VuaXR0ZXN0LkNvbXBs", 58 "ZXhPcHRpb25UeXBlMi5Db21wbGV4T3B0aW9uVHlwZTQalwEKEkNvbXBsZXhP", 59 "cHRpb25UeXBlNBINCgV3YWxkbxgBIAEoBTJyCgxjb21wbGV4X29wdDQSHy5n", 60 "b29nbGUucHJvdG9idWYuTWVzc2FnZU9wdGlvbnMYivXRAyABKAsyOC5wcm90", 61 "b2J1Zl91bml0dGVzdC5Db21wbGV4T3B0aW9uVHlwZTIuQ29tcGxleE9wdGlv", 62 "blR5cGU0IiEKEkNvbXBsZXhPcHRpb25UeXBlMxILCgNxdXgYASABKAUibAoV", 63 "VmFyaW91c0NvbXBsZXhPcHRpb25zOlOi4pUdAggqouKVHQIgY6LilR0CIFiq", 64 "/ZAdAxDbB6r9kB0FCgMI5wXSqI8dAwizD6r9kB0FGgMIwQKq/ZAdBCICCGWq", 65 "/ZAdBSIDCNQB+t6QHQIICSJMCglBZ2dyZWdhdGUSCQoBaRgBIAEoBRIJCgFz", 66 "GAIgASgJEikKA3N1YhgDIAEoCzIcLnByb3RvYnVmX3VuaXR0ZXN0LkFnZ3Jl", 67 "Z2F0ZSJZChBBZ2dyZWdhdGVNZXNzYWdlEikKCWZpZWxkbmFtZRgBIAEoBUIW", 68 "8qGHOxESD0ZpZWxkQW5ub3RhdGlvbjoawtGGOxUIZRIRTWVzc2FnZUFubm90", 69 "YXRpb24ilwEKEE5lc3RlZE9wdGlvblR5cGUaOwoNTmVzdGVkTWVzc2FnZRIi", 70 "CgxuZXN0ZWRfZmllbGQYASABKAVCDMHgwx3qAwAAAAAAADoG4OnCHekHIkYK", 71 "Ck5lc3RlZEVudW0SDwoLVU5TUEVDSUZJRUQQABIdChFORVNURURfRU5VTV9W", 72 "QUxVRRABGgawhvoF7AcaCMX2yR3rAwAAKlIKCk1ldGhvZE9wdDESGgoWTUVU", 73 "SE9ET1BUMV9VTlNQRUNJRklFRBAAEhMKD01FVEhPRE9QVDFfVkFMMRABEhMK", 74 "D01FVEhPRE9QVDFfVkFMMhACKl4KDUFnZ3JlZ2F0ZUVudW0SDwoLVU5TUEVD", 75 "SUZJRUQQABIlCgVWQUxVRRABGhrK/Ik7FRITRW51bVZhbHVlQW5ub3RhdGlv", 76 "bhoVkpWIOxASDkVudW1Bbm5vdGF0aW9uMo4BChxUZXN0U2VydmljZVdpdGhD", 77 "dXN0b21PcHRpb25zEmMKA0ZvbxIpLnByb3RvYnVmX3VuaXR0ZXN0LkN1c3Rv", 78 "bU9wdGlvbkZvb1JlcXVlc3QaKi5wcm90b2J1Zl91bml0dGVzdC5DdXN0b21P", 79 "cHRpb25Gb29SZXNwb25zZSIF4PqMHgIaCZCyix7T24DLSTKZAQoQQWdncmVn", 80 "YXRlU2VydmljZRJrCgZNZXRob2QSIy5wcm90b2J1Zl91bml0dGVzdC5BZ2dy", 81 "ZWdhdGVNZXNzYWdlGiMucHJvdG9idWZfdW5pdHRlc3QuQWdncmVnYXRlTWVz", 82 "c2FnZSIXysiWOxISEE1ldGhvZEFubm90YXRpb24aGMr7jjsTEhFTZXJ2aWNl", 83 "QW5ub3RhdGlvbjoyCglmaWxlX29wdDESHC5nb29nbGUucHJvdG9idWYuRmls", 84 "ZU9wdGlvbnMYjp3YAyABKAQ6OAoMbWVzc2FnZV9vcHQxEh8uZ29vZ2xlLnBy", 85 "b3RvYnVmLk1lc3NhZ2VPcHRpb25zGJyt2AMgASgFOjQKCmZpZWxkX29wdDES", 86 "HS5nb29nbGUucHJvdG9idWYuRmllbGRPcHRpb25zGIi82AMgASgGOjQKCm9u", 87 "ZW9mX29wdDESHS5nb29nbGUucHJvdG9idWYuT25lb2ZPcHRpb25zGM+12AMg", 88 "ASgFOjIKCWVudW1fb3B0MRIcLmdvb2dsZS5wcm90b2J1Zi5FbnVtT3B0aW9u", 89 "cxjontkDIAEoDzo8Cg9lbnVtX3ZhbHVlX29wdDESIS5nb29nbGUucHJvdG9i", 90 "dWYuRW51bVZhbHVlT3B0aW9ucxjmoF8gASgFOjgKDHNlcnZpY2Vfb3B0MRIf", 91 "Lmdvb2dsZS5wcm90b2J1Zi5TZXJ2aWNlT3B0aW9ucxiituEDIAEoEjpVCgtt", 92 "ZXRob2Rfb3B0MRIeLmdvb2dsZS5wcm90b2J1Zi5NZXRob2RPcHRpb25zGKzP", 93 "4QMgASgOMh0ucHJvdG9idWZfdW5pdHRlc3QuTWV0aG9kT3B0MTo0Cghib29s", 94 "X29wdBIfLmdvb2dsZS5wcm90b2J1Zi5NZXNzYWdlT3B0aW9ucxjqq9YDIAEo", 95 "CDo1CglpbnQzMl9vcHQSHy5nb29nbGUucHJvdG9idWYuTWVzc2FnZU9wdGlv", 96 "bnMY7ajWAyABKAU6NQoJaW50NjRfb3B0Eh8uZ29vZ2xlLnByb3RvYnVmLk1l", 97 "c3NhZ2VPcHRpb25zGMan1gMgASgDOjYKCnVpbnQzMl9vcHQSHy5nb29nbGUu", 98 "cHJvdG9idWYuTWVzc2FnZU9wdGlvbnMYsKLWAyABKA06NgoKdWludDY0X29w", 99 "dBIfLmdvb2dsZS5wcm90b2J1Zi5NZXNzYWdlT3B0aW9ucxjfjtYDIAEoBDo2", 100 "CgpzaW50MzJfb3B0Eh8uZ29vZ2xlLnByb3RvYnVmLk1lc3NhZ2VPcHRpb25z", 101 "GMCI1gMgASgROjYKCnNpbnQ2NF9vcHQSHy5nb29nbGUucHJvdG9idWYuTWVz", 102 "c2FnZU9wdGlvbnMY/4LWAyABKBI6NwoLZml4ZWQzMl9vcHQSHy5nb29nbGUu", 103 "cHJvdG9idWYuTWVzc2FnZU9wdGlvbnMY0/7VAyABKAc6NwoLZml4ZWQ2NF9v", 104 "cHQSHy5nb29nbGUucHJvdG9idWYuTWVzc2FnZU9wdGlvbnMY4v3VAyABKAY6", 105 "OAoMc2ZpeGVkMzJfb3B0Eh8uZ29vZ2xlLnByb3RvYnVmLk1lc3NhZ2VPcHRp", 106 "b25zGNXx1QMgASgPOjgKDHNmaXhlZDY0X29wdBIfLmdvb2dsZS5wcm90b2J1", 107 "Zi5NZXNzYWdlT3B0aW9ucxjjitUDIAEoEDo1CglmbG9hdF9vcHQSHy5nb29n", 108 "bGUucHJvdG9idWYuTWVzc2FnZU9wdGlvbnMY/rvUAyABKAI6NgoKZG91Ymxl", 109 "X29wdBIfLmdvb2dsZS5wcm90b2J1Zi5NZXNzYWdlT3B0aW9ucxjNq9QDIAEo", 110 "ATo2CgpzdHJpbmdfb3B0Eh8uZ29vZ2xlLnByb3RvYnVmLk1lc3NhZ2VPcHRp", 111 "b25zGMWr1AMgASgJOjUKCWJ5dGVzX29wdBIfLmdvb2dsZS5wcm90b2J1Zi5N", 112 "ZXNzYWdlT3B0aW9ucxiWq9QDIAEoDDpwCghlbnVtX29wdBIfLmdvb2dsZS5w", 113 "cm90b2J1Zi5NZXNzYWdlT3B0aW9ucxiRq9QDIAEoDjI6LnByb3RvYnVmX3Vu", 114 "aXR0ZXN0LkR1bW15TWVzc2FnZUNvbnRhaW5pbmdFbnVtLlRlc3RFbnVtVHlw", 115 "ZTpwChBtZXNzYWdlX3R5cGVfb3B0Eh8uZ29vZ2xlLnByb3RvYnVmLk1lc3Nh", 116 "Z2VPcHRpb25zGK/y0wMgASgLMjIucHJvdG9idWZfdW5pdHRlc3QuRHVtbXlN", 117 "ZXNzYWdlSW52YWxpZEFzT3B0aW9uVHlwZTpfCgxjb21wbGV4X29wdDESHy5n", 118 "b29nbGUucHJvdG9idWYuTWVzc2FnZU9wdGlvbnMYpNzSAyABKAsyJS5wcm90", 119 "b2J1Zl91bml0dGVzdC5Db21wbGV4T3B0aW9uVHlwZTE6XwoMY29tcGxleF9v", 120 "cHQyEh8uZ29vZ2xlLnByb3RvYnVmLk1lc3NhZ2VPcHRpb25zGNWP0gMgASgL", 121 "MiUucHJvdG9idWZfdW5pdHRlc3QuQ29tcGxleE9wdGlvblR5cGUyOl8KDGNv", 122 "bXBsZXhfb3B0MxIfLmdvb2dsZS5wcm90b2J1Zi5NZXNzYWdlT3B0aW9ucxjv", 123 "i9IDIAEoCzIlLnByb3RvYnVmX3VuaXR0ZXN0LkNvbXBsZXhPcHRpb25UeXBl", 124 "MzpOCgdmaWxlb3B0EhwuZ29vZ2xlLnByb3RvYnVmLkZpbGVPcHRpb25zGM/d", 125 "sAcgASgLMhwucHJvdG9idWZfdW5pdHRlc3QuQWdncmVnYXRlOlAKBm1zZ29w", 126 "dBIfLmdvb2dsZS5wcm90b2J1Zi5NZXNzYWdlT3B0aW9ucxiY6rAHIAEoCzIc", 127 "LnByb3RvYnVmX3VuaXR0ZXN0LkFnZ3JlZ2F0ZTpQCghmaWVsZG9wdBIdLmdv", 128 "b2dsZS5wcm90b2J1Zi5GaWVsZE9wdGlvbnMYnvSwByABKAsyHC5wcm90b2J1", 129 "Zl91bml0dGVzdC5BZ2dyZWdhdGU6TgoHZW51bW9wdBIcLmdvb2dsZS5wcm90", 130 "b2J1Zi5FbnVtT3B0aW9ucxjSgrEHIAEoCzIcLnByb3RvYnVmX3VuaXR0ZXN0", 131 "LkFnZ3JlZ2F0ZTpWCgplbnVtdmFsb3B0EiEuZ29vZ2xlLnByb3RvYnVmLkVu", 132 "dW1WYWx1ZU9wdGlvbnMYyZ+xByABKAsyHC5wcm90b2J1Zl91bml0dGVzdC5B", 133 "Z2dyZWdhdGU6VAoKc2VydmljZW9wdBIfLmdvb2dsZS5wcm90b2J1Zi5TZXJ2", 134 "aWNlT3B0aW9ucxi577EHIAEoCzIcLnByb3RvYnVmX3VuaXR0ZXN0LkFnZ3Jl", 135 "Z2F0ZTpSCgltZXRob2RvcHQSHi5nb29nbGUucHJvdG9idWYuTWV0aG9kT3B0", 136 "aW9ucxiJ6bIHIAEoCzIcLnByb3RvYnVmX3VuaXR0ZXN0LkFnZ3JlZ2F0ZUJV", 137 "qgIaVW5pdFRlc3QuSXNzdWVzLlRlc3RQcm90b3Pw6MEd6q3A5ST67IU7Kghk", 138 "Eg5GaWxlQW5ub3RhdGlvbhoWEhROZXN0ZWRGaWxlQW5ub3RhdGlvbmIGcHJv", 139 "dG8z")); 140 descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, 141 new pbr::FileDescriptor[] { global::Google.Protobuf.Reflection.DescriptorReflection.Descriptor, }, 142 new pbr::GeneratedClrTypeInfo(new[] {typeof(global::UnitTest.Issues.TestProtos.MethodOpt1), typeof(global::UnitTest.Issues.TestProtos.AggregateEnum), }, new pb::Extension[] { UnittestCustomOptionsProto3Extensions.FileOpt1, UnittestCustomOptionsProto3Extensions.MessageOpt1, UnittestCustomOptionsProto3Extensions.FieldOpt1, UnittestCustomOptionsProto3Extensions.OneofOpt1, UnittestCustomOptionsProto3Extensions.EnumOpt1, UnittestCustomOptionsProto3Extensions.EnumValueOpt1, UnittestCustomOptionsProto3Extensions.ServiceOpt1, UnittestCustomOptionsProto3Extensions.MethodOpt1, UnittestCustomOptionsProto3Extensions.BoolOpt, UnittestCustomOptionsProto3Extensions.Int32Opt, UnittestCustomOptionsProto3Extensions.Int64Opt, UnittestCustomOptionsProto3Extensions.Uint32Opt, UnittestCustomOptionsProto3Extensions.Uint64Opt, UnittestCustomOptionsProto3Extensions.Sint32Opt, UnittestCustomOptionsProto3Extensions.Sint64Opt, UnittestCustomOptionsProto3Extensions.Fixed32Opt, UnittestCustomOptionsProto3Extensions.Fixed64Opt, UnittestCustomOptionsProto3Extensions.Sfixed32Opt, UnittestCustomOptionsProto3Extensions.Sfixed64Opt, UnittestCustomOptionsProto3Extensions.FloatOpt, UnittestCustomOptionsProto3Extensions.DoubleOpt, UnittestCustomOptionsProto3Extensions.StringOpt, UnittestCustomOptionsProto3Extensions.BytesOpt, UnittestCustomOptionsProto3Extensions.EnumOpt, UnittestCustomOptionsProto3Extensions.MessageTypeOpt, UnittestCustomOptionsProto3Extensions.ComplexOpt1, UnittestCustomOptionsProto3Extensions.ComplexOpt2, UnittestCustomOptionsProto3Extensions.ComplexOpt3, UnittestCustomOptionsProto3Extensions.Fileopt, UnittestCustomOptionsProto3Extensions.Msgopt, UnittestCustomOptionsProto3Extensions.Fieldopt, UnittestCustomOptionsProto3Extensions.Enumopt, UnittestCustomOptionsProto3Extensions.Enumvalopt, UnittestCustomOptionsProto3Extensions.Serviceopt, UnittestCustomOptionsProto3Extensions.Methodopt }, new pbr::GeneratedClrTypeInfo[] { 143 new pbr::GeneratedClrTypeInfo(typeof(global::UnitTest.Issues.TestProtos.TestMessageWithCustomOptions), global::UnitTest.Issues.TestProtos.TestMessageWithCustomOptions.Parser, new[]{ "Field1", "OneofField" }, new[]{ "AnOneof" }, new[]{ typeof(global::UnitTest.Issues.TestProtos.TestMessageWithCustomOptions.Types.AnEnum) }, null, null), 144 new pbr::GeneratedClrTypeInfo(typeof(global::UnitTest.Issues.TestProtos.CustomOptionFooRequest), global::UnitTest.Issues.TestProtos.CustomOptionFooRequest.Parser, null, null, null, null, null), 145 new pbr::GeneratedClrTypeInfo(typeof(global::UnitTest.Issues.TestProtos.CustomOptionFooResponse), global::UnitTest.Issues.TestProtos.CustomOptionFooResponse.Parser, null, null, null, null, null), 146 new pbr::GeneratedClrTypeInfo(typeof(global::UnitTest.Issues.TestProtos.CustomOptionFooClientMessage), global::UnitTest.Issues.TestProtos.CustomOptionFooClientMessage.Parser, null, null, null, null, null), 147 new pbr::GeneratedClrTypeInfo(typeof(global::UnitTest.Issues.TestProtos.CustomOptionFooServerMessage), global::UnitTest.Issues.TestProtos.CustomOptionFooServerMessage.Parser, null, null, null, null, null), 148 new pbr::GeneratedClrTypeInfo(typeof(global::UnitTest.Issues.TestProtos.DummyMessageContainingEnum), global::UnitTest.Issues.TestProtos.DummyMessageContainingEnum.Parser, null, null, new[]{ typeof(global::UnitTest.Issues.TestProtos.DummyMessageContainingEnum.Types.TestEnumType) }, null, null), 149 new pbr::GeneratedClrTypeInfo(typeof(global::UnitTest.Issues.TestProtos.DummyMessageInvalidAsOptionType), global::UnitTest.Issues.TestProtos.DummyMessageInvalidAsOptionType.Parser, null, null, null, null, null), 150 new pbr::GeneratedClrTypeInfo(typeof(global::UnitTest.Issues.TestProtos.CustomOptionMinIntegerValues), global::UnitTest.Issues.TestProtos.CustomOptionMinIntegerValues.Parser, null, null, null, null, null), 151 new pbr::GeneratedClrTypeInfo(typeof(global::UnitTest.Issues.TestProtos.CustomOptionMaxIntegerValues), global::UnitTest.Issues.TestProtos.CustomOptionMaxIntegerValues.Parser, null, null, null, null, null), 152 new pbr::GeneratedClrTypeInfo(typeof(global::UnitTest.Issues.TestProtos.CustomOptionOtherValues), global::UnitTest.Issues.TestProtos.CustomOptionOtherValues.Parser, null, null, null, null, null), 153 new pbr::GeneratedClrTypeInfo(typeof(global::UnitTest.Issues.TestProtos.SettingRealsFromPositiveInts), global::UnitTest.Issues.TestProtos.SettingRealsFromPositiveInts.Parser, null, null, null, null, null), 154 new pbr::GeneratedClrTypeInfo(typeof(global::UnitTest.Issues.TestProtos.SettingRealsFromNegativeInts), global::UnitTest.Issues.TestProtos.SettingRealsFromNegativeInts.Parser, null, null, null, null, null), 155 new pbr::GeneratedClrTypeInfo(typeof(global::UnitTest.Issues.TestProtos.ComplexOptionType1), global::UnitTest.Issues.TestProtos.ComplexOptionType1.Parser, new[]{ "Foo", "Foo2", "Foo3", "Foo4" }, null, null, null, null), 156 new pbr::GeneratedClrTypeInfo(typeof(global::UnitTest.Issues.TestProtos.ComplexOptionType2), global::UnitTest.Issues.TestProtos.ComplexOptionType2.Parser, new[]{ "Bar", "Baz", "Fred", "Barney" }, null, null, null, new pbr::GeneratedClrTypeInfo[] { new pbr::GeneratedClrTypeInfo(typeof(global::UnitTest.Issues.TestProtos.ComplexOptionType2.Types.ComplexOptionType4), global::UnitTest.Issues.TestProtos.ComplexOptionType2.Types.ComplexOptionType4.Parser, new[]{ "Waldo" }, null, null, new pb::Extension[] { global::UnitTest.Issues.TestProtos.ComplexOptionType2.Types.ComplexOptionType4.Extensions.ComplexOpt4 }, null)}), 157 new pbr::GeneratedClrTypeInfo(typeof(global::UnitTest.Issues.TestProtos.ComplexOptionType3), global::UnitTest.Issues.TestProtos.ComplexOptionType3.Parser, new[]{ "Qux" }, null, null, null, null), 158 new pbr::GeneratedClrTypeInfo(typeof(global::UnitTest.Issues.TestProtos.VariousComplexOptions), global::UnitTest.Issues.TestProtos.VariousComplexOptions.Parser, null, null, null, null, null), 159 new pbr::GeneratedClrTypeInfo(typeof(global::UnitTest.Issues.TestProtos.Aggregate), global::UnitTest.Issues.TestProtos.Aggregate.Parser, new[]{ "I", "S", "Sub" }, null, null, null, null), 160 new pbr::GeneratedClrTypeInfo(typeof(global::UnitTest.Issues.TestProtos.AggregateMessage), global::UnitTest.Issues.TestProtos.AggregateMessage.Parser, new[]{ "Fieldname" }, null, null, null, null), 161 new pbr::GeneratedClrTypeInfo(typeof(global::UnitTest.Issues.TestProtos.NestedOptionType), global::UnitTest.Issues.TestProtos.NestedOptionType.Parser, null, null, new[]{ typeof(global::UnitTest.Issues.TestProtos.NestedOptionType.Types.NestedEnum) }, null, new pbr::GeneratedClrTypeInfo[] { new pbr::GeneratedClrTypeInfo(typeof(global::UnitTest.Issues.TestProtos.NestedOptionType.Types.NestedMessage), global::UnitTest.Issues.TestProtos.NestedOptionType.Types.NestedMessage.Parser, new[]{ "NestedField" }, null, null, null, null)}) 162 })); 163 } 164 #endregion 165 166 } 167 /// <summary>Holder for extension identifiers generated from the top level of unittest_custom_options_proto3.proto</summary> 168 public static partial class UnittestCustomOptionsProto3Extensions { 169 public static readonly pb::Extension<global::Google.Protobuf.Reflection.FileOptions, ulong> FileOpt1 = 170 new pb::Extension<global::Google.Protobuf.Reflection.FileOptions, ulong>(7736974, pb::FieldCodec.ForUInt64(61895792, 0UL)); 171 public static readonly pb::Extension<global::Google.Protobuf.Reflection.MessageOptions, int> MessageOpt1 = 172 new pb::Extension<global::Google.Protobuf.Reflection.MessageOptions, int>(7739036, pb::FieldCodec.ForInt32(61912288, 0)); 173 public static readonly pb::Extension<global::Google.Protobuf.Reflection.FieldOptions, ulong> FieldOpt1 = 174 new pb::Extension<global::Google.Protobuf.Reflection.FieldOptions, ulong>(7740936, pb::FieldCodec.ForFixed64(61927489, 0UL)); 175 public static readonly pb::Extension<global::Google.Protobuf.Reflection.OneofOptions, int> OneofOpt1 = 176 new pb::Extension<global::Google.Protobuf.Reflection.OneofOptions, int>(7740111, pb::FieldCodec.ForInt32(61920888, 0)); 177 public static readonly pb::Extension<global::Google.Protobuf.Reflection.EnumOptions, int> EnumOpt1 = 178 new pb::Extension<global::Google.Protobuf.Reflection.EnumOptions, int>(7753576, pb::FieldCodec.ForSFixed32(62028613, 0)); 179 public static readonly pb::Extension<global::Google.Protobuf.Reflection.EnumValueOptions, int> EnumValueOpt1 = 180 new pb::Extension<global::Google.Protobuf.Reflection.EnumValueOptions, int>(1560678, pb::FieldCodec.ForInt32(12485424, 0)); 181 public static readonly pb::Extension<global::Google.Protobuf.Reflection.ServiceOptions, long> ServiceOpt1 = 182 new pb::Extension<global::Google.Protobuf.Reflection.ServiceOptions, long>(7887650, pb::FieldCodec.ForSInt64(63101200, 0L)); 183 public static readonly pb::Extension<global::Google.Protobuf.Reflection.MethodOptions, global::UnitTest.Issues.TestProtos.MethodOpt1> MethodOpt1 = 184 new pb::Extension<global::Google.Protobuf.Reflection.MethodOptions, global::UnitTest.Issues.TestProtos.MethodOpt1>(7890860, pb::FieldCodec.ForEnum(63126880, x => (int) x, x => (global::UnitTest.Issues.TestProtos.MethodOpt1) x, global::UnitTest.Issues.TestProtos.MethodOpt1.Unspecified)); 185 public static readonly pb::Extension<global::Google.Protobuf.Reflection.MessageOptions, bool> BoolOpt = 186 new pb::Extension<global::Google.Protobuf.Reflection.MessageOptions, bool>(7706090, pb::FieldCodec.ForBool(61648720, false)); 187 public static readonly pb::Extension<global::Google.Protobuf.Reflection.MessageOptions, int> Int32Opt = 188 new pb::Extension<global::Google.Protobuf.Reflection.MessageOptions, int>(7705709, pb::FieldCodec.ForInt32(61645672, 0)); 189 public static readonly pb::Extension<global::Google.Protobuf.Reflection.MessageOptions, long> Int64Opt = 190 new pb::Extension<global::Google.Protobuf.Reflection.MessageOptions, long>(7705542, pb::FieldCodec.ForInt64(61644336, 0L)); 191 public static readonly pb::Extension<global::Google.Protobuf.Reflection.MessageOptions, uint> Uint32Opt = 192 new pb::Extension<global::Google.Protobuf.Reflection.MessageOptions, uint>(7704880, pb::FieldCodec.ForUInt32(61639040, 0)); 193 public static readonly pb::Extension<global::Google.Protobuf.Reflection.MessageOptions, ulong> Uint64Opt = 194 new pb::Extension<global::Google.Protobuf.Reflection.MessageOptions, ulong>(7702367, pb::FieldCodec.ForUInt64(61618936, 0UL)); 195 public static readonly pb::Extension<global::Google.Protobuf.Reflection.MessageOptions, int> Sint32Opt = 196 new pb::Extension<global::Google.Protobuf.Reflection.MessageOptions, int>(7701568, pb::FieldCodec.ForSInt32(61612544, 0)); 197 public static readonly pb::Extension<global::Google.Protobuf.Reflection.MessageOptions, long> Sint64Opt = 198 new pb::Extension<global::Google.Protobuf.Reflection.MessageOptions, long>(7700863, pb::FieldCodec.ForSInt64(61606904, 0L)); 199 public static readonly pb::Extension<global::Google.Protobuf.Reflection.MessageOptions, uint> Fixed32Opt = 200 new pb::Extension<global::Google.Protobuf.Reflection.MessageOptions, uint>(7700307, pb::FieldCodec.ForFixed32(61602461, 0)); 201 public static readonly pb::Extension<global::Google.Protobuf.Reflection.MessageOptions, ulong> Fixed64Opt = 202 new pb::Extension<global::Google.Protobuf.Reflection.MessageOptions, ulong>(7700194, pb::FieldCodec.ForFixed64(61601553, 0UL)); 203 public static readonly pb::Extension<global::Google.Protobuf.Reflection.MessageOptions, int> Sfixed32Opt = 204 new pb::Extension<global::Google.Protobuf.Reflection.MessageOptions, int>(7698645, pb::FieldCodec.ForSFixed32(61589165, 0)); 205 public static readonly pb::Extension<global::Google.Protobuf.Reflection.MessageOptions, long> Sfixed64Opt = 206 new pb::Extension<global::Google.Protobuf.Reflection.MessageOptions, long>(7685475, pb::FieldCodec.ForSFixed64(61483801, 0L)); 207 public static readonly pb::Extension<global::Google.Protobuf.Reflection.MessageOptions, float> FloatOpt = 208 new pb::Extension<global::Google.Protobuf.Reflection.MessageOptions, float>(7675390, pb::FieldCodec.ForFloat(61403125, 0F)); 209 public static readonly pb::Extension<global::Google.Protobuf.Reflection.MessageOptions, double> DoubleOpt = 210 new pb::Extension<global::Google.Protobuf.Reflection.MessageOptions, double>(7673293, pb::FieldCodec.ForDouble(61386345, 0D)); 211 public static readonly pb::Extension<global::Google.Protobuf.Reflection.MessageOptions, string> StringOpt = 212 new pb::Extension<global::Google.Protobuf.Reflection.MessageOptions, string>(7673285, pb::FieldCodec.ForString(61386282, "")); 213 public static readonly pb::Extension<global::Google.Protobuf.Reflection.MessageOptions, pb::ByteString> BytesOpt = 214 new pb::Extension<global::Google.Protobuf.Reflection.MessageOptions, pb::ByteString>(7673238, pb::FieldCodec.ForBytes(61385906, pb::ByteString.Empty)); 215 public static readonly pb::Extension<global::Google.Protobuf.Reflection.MessageOptions, global::UnitTest.Issues.TestProtos.DummyMessageContainingEnum.Types.TestEnumType> EnumOpt = 216 new pb::Extension<global::Google.Protobuf.Reflection.MessageOptions, global::UnitTest.Issues.TestProtos.DummyMessageContainingEnum.Types.TestEnumType>(7673233, pb::FieldCodec.ForEnum(61385864, x => (int) x, x => (global::UnitTest.Issues.TestProtos.DummyMessageContainingEnum.Types.TestEnumType) x, global::UnitTest.Issues.TestProtos.DummyMessageContainingEnum.Types.TestEnumType.TestOptionEnumUnspecified)); 217 public static readonly pb::Extension<global::Google.Protobuf.Reflection.MessageOptions, global::UnitTest.Issues.TestProtos.DummyMessageInvalidAsOptionType> MessageTypeOpt = 218 new pb::Extension<global::Google.Protobuf.Reflection.MessageOptions, global::UnitTest.Issues.TestProtos.DummyMessageInvalidAsOptionType>(7665967, pb::FieldCodec.ForMessage(61327738, global::UnitTest.Issues.TestProtos.DummyMessageInvalidAsOptionType.Parser)); 219 public static readonly pb::Extension<global::Google.Protobuf.Reflection.MessageOptions, global::UnitTest.Issues.TestProtos.ComplexOptionType1> ComplexOpt1 = 220 new pb::Extension<global::Google.Protobuf.Reflection.MessageOptions, global::UnitTest.Issues.TestProtos.ComplexOptionType1>(7646756, pb::FieldCodec.ForMessage(61174050, global::UnitTest.Issues.TestProtos.ComplexOptionType1.Parser)); 221 public static readonly pb::Extension<global::Google.Protobuf.Reflection.MessageOptions, global::UnitTest.Issues.TestProtos.ComplexOptionType2> ComplexOpt2 = 222 new pb::Extension<global::Google.Protobuf.Reflection.MessageOptions, global::UnitTest.Issues.TestProtos.ComplexOptionType2>(7636949, pb::FieldCodec.ForMessage(61095594, global::UnitTest.Issues.TestProtos.ComplexOptionType2.Parser)); 223 public static readonly pb::Extension<global::Google.Protobuf.Reflection.MessageOptions, global::UnitTest.Issues.TestProtos.ComplexOptionType3> ComplexOpt3 = 224 new pb::Extension<global::Google.Protobuf.Reflection.MessageOptions, global::UnitTest.Issues.TestProtos.ComplexOptionType3>(7636463, pb::FieldCodec.ForMessage(61091706, global::UnitTest.Issues.TestProtos.ComplexOptionType3.Parser)); 225 public static readonly pb::Extension<global::Google.Protobuf.Reflection.FileOptions, global::UnitTest.Issues.TestProtos.Aggregate> Fileopt = 226 new pb::Extension<global::Google.Protobuf.Reflection.FileOptions, global::UnitTest.Issues.TestProtos.Aggregate>(15478479, pb::FieldCodec.ForMessage(123827834, global::UnitTest.Issues.TestProtos.Aggregate.Parser)); 227 public static readonly pb::Extension<global::Google.Protobuf.Reflection.MessageOptions, global::UnitTest.Issues.TestProtos.Aggregate> Msgopt = 228 new pb::Extension<global::Google.Protobuf.Reflection.MessageOptions, global::UnitTest.Issues.TestProtos.Aggregate>(15480088, pb::FieldCodec.ForMessage(123840706, global::UnitTest.Issues.TestProtos.Aggregate.Parser)); 229 public static readonly pb::Extension<global::Google.Protobuf.Reflection.FieldOptions, global::UnitTest.Issues.TestProtos.Aggregate> Fieldopt = 230 new pb::Extension<global::Google.Protobuf.Reflection.FieldOptions, global::UnitTest.Issues.TestProtos.Aggregate>(15481374, pb::FieldCodec.ForMessage(123850994, global::UnitTest.Issues.TestProtos.Aggregate.Parser)); 231 public static readonly pb::Extension<global::Google.Protobuf.Reflection.EnumOptions, global::UnitTest.Issues.TestProtos.Aggregate> Enumopt = 232 new pb::Extension<global::Google.Protobuf.Reflection.EnumOptions, global::UnitTest.Issues.TestProtos.Aggregate>(15483218, pb::FieldCodec.ForMessage(123865746, global::UnitTest.Issues.TestProtos.Aggregate.Parser)); 233 public static readonly pb::Extension<global::Google.Protobuf.Reflection.EnumValueOptions, global::UnitTest.Issues.TestProtos.Aggregate> Enumvalopt = 234 new pb::Extension<global::Google.Protobuf.Reflection.EnumValueOptions, global::UnitTest.Issues.TestProtos.Aggregate>(15486921, pb::FieldCodec.ForMessage(123895370, global::UnitTest.Issues.TestProtos.Aggregate.Parser)); 235 public static readonly pb::Extension<global::Google.Protobuf.Reflection.ServiceOptions, global::UnitTest.Issues.TestProtos.Aggregate> Serviceopt = 236 new pb::Extension<global::Google.Protobuf.Reflection.ServiceOptions, global::UnitTest.Issues.TestProtos.Aggregate>(15497145, pb::FieldCodec.ForMessage(123977162, global::UnitTest.Issues.TestProtos.Aggregate.Parser)); 237 public static readonly pb::Extension<global::Google.Protobuf.Reflection.MethodOptions, global::UnitTest.Issues.TestProtos.Aggregate> Methodopt = 238 new pb::Extension<global::Google.Protobuf.Reflection.MethodOptions, global::UnitTest.Issues.TestProtos.Aggregate>(15512713, pb::FieldCodec.ForMessage(124101706, global::UnitTest.Issues.TestProtos.Aggregate.Parser)); 239 } 240 241 #region Enums 242 public enum MethodOpt1 { 243 [pbr::OriginalName("METHODOPT1_UNSPECIFIED")] Unspecified = 0, 244 [pbr::OriginalName("METHODOPT1_VAL1")] Val1 = 1, 245 [pbr::OriginalName("METHODOPT1_VAL2")] Val2 = 2, 246 } 247 248 public enum AggregateEnum { 249 [pbr::OriginalName("UNSPECIFIED")] Unspecified = 0, 250 [pbr::OriginalName("VALUE")] Value = 1, 251 } 252 253 #endregion 254 255 #region Messages 256 /// <summary> 257 /// A test message with custom options at all possible locations (and also some 258 /// regular options, to make sure they interact nicely). 259 /// </summary> 260 public sealed partial class TestMessageWithCustomOptions : pb::IMessage<TestMessageWithCustomOptions> 261 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 262 , pb::IBufferMessage 263 #endif 264 { 265 private static readonly pb::MessageParser<TestMessageWithCustomOptions> _parser = new pb::MessageParser<TestMessageWithCustomOptions>(() => new TestMessageWithCustomOptions()); 266 private pb::UnknownFieldSet _unknownFields; 267 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 268 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 269 public static pb::MessageParser<TestMessageWithCustomOptions> Parser { get { return _parser; } } 270 271 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 272 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 273 public static pbr::MessageDescriptor Descriptor { 274 get { return global::UnitTest.Issues.TestProtos.UnittestCustomOptionsProto3Reflection.Descriptor.MessageTypes[0]; } 275 } 276 277 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 278 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 279 pbr::MessageDescriptor pb::IMessage.Descriptor { 280 get { return Descriptor; } 281 } 282 283 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 284 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] TestMessageWithCustomOptions()285 public TestMessageWithCustomOptions() { 286 OnConstruction(); 287 } 288 OnConstruction()289 partial void OnConstruction(); 290 291 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 292 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] TestMessageWithCustomOptions(TestMessageWithCustomOptions other)293 public TestMessageWithCustomOptions(TestMessageWithCustomOptions other) : this() { 294 field1_ = other.field1_; 295 switch (other.AnOneofCase) { 296 case AnOneofOneofCase.OneofField: 297 OneofField = other.OneofField; 298 break; 299 } 300 301 _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); 302 } 303 304 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 305 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] Clone()306 public TestMessageWithCustomOptions Clone() { 307 return new TestMessageWithCustomOptions(this); 308 } 309 310 /// <summary>Field number for the "field1" field.</summary> 311 public const int Field1FieldNumber = 1; 312 private string field1_ = ""; 313 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 314 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 315 public string Field1 { 316 get { return field1_; } 317 set { 318 field1_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); 319 } 320 } 321 322 /// <summary>Field number for the "oneof_field" field.</summary> 323 public const int OneofFieldFieldNumber = 2; 324 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 325 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 326 public int OneofField { 327 get { return anOneofCase_ == AnOneofOneofCase.OneofField ? (int) anOneof_ : 0; } 328 set { 329 anOneof_ = value; 330 anOneofCase_ = AnOneofOneofCase.OneofField; 331 } 332 } 333 334 private object anOneof_; 335 /// <summary>Enum of possible cases for the "AnOneof" oneof.</summary> 336 public enum AnOneofOneofCase { 337 None = 0, 338 OneofField = 2, 339 } 340 private AnOneofOneofCase anOneofCase_ = AnOneofOneofCase.None; 341 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 342 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 343 public AnOneofOneofCase AnOneofCase { 344 get { return anOneofCase_; } 345 } 346 347 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 348 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] ClearAnOneof()349 public void ClearAnOneof() { 350 anOneofCase_ = AnOneofOneofCase.None; 351 anOneof_ = null; 352 } 353 354 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 355 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] Equals(object other)356 public override bool Equals(object other) { 357 return Equals(other as TestMessageWithCustomOptions); 358 } 359 360 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 361 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] Equals(TestMessageWithCustomOptions other)362 public bool Equals(TestMessageWithCustomOptions other) { 363 if (ReferenceEquals(other, null)) { 364 return false; 365 } 366 if (ReferenceEquals(other, this)) { 367 return true; 368 } 369 if (Field1 != other.Field1) return false; 370 if (OneofField != other.OneofField) return false; 371 if (AnOneofCase != other.AnOneofCase) return false; 372 return Equals(_unknownFields, other._unknownFields); 373 } 374 375 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 376 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] GetHashCode()377 public override int GetHashCode() { 378 int hash = 1; 379 if (Field1.Length != 0) hash ^= Field1.GetHashCode(); 380 if (anOneofCase_ == AnOneofOneofCase.OneofField) hash ^= OneofField.GetHashCode(); 381 hash ^= (int) anOneofCase_; 382 if (_unknownFields != null) { 383 hash ^= _unknownFields.GetHashCode(); 384 } 385 return hash; 386 } 387 388 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 389 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] ToString()390 public override string ToString() { 391 return pb::JsonFormatter.ToDiagnosticString(this); 392 } 393 394 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 395 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] WriteTo(pb::CodedOutputStream output)396 public void WriteTo(pb::CodedOutputStream output) { 397 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 398 output.WriteRawMessage(this); 399 #else 400 if (Field1.Length != 0) { 401 output.WriteRawTag(10); 402 output.WriteString(Field1); 403 } 404 if (anOneofCase_ == AnOneofOneofCase.OneofField) { 405 output.WriteRawTag(16); 406 output.WriteInt32(OneofField); 407 } 408 if (_unknownFields != null) { 409 _unknownFields.WriteTo(output); 410 } 411 #endif 412 } 413 414 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 415 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 416 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] IBufferMessage.InternalWriteTo(ref pb::WriteContext output)417 void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { 418 if (Field1.Length != 0) { 419 output.WriteRawTag(10); 420 output.WriteString(Field1); 421 } 422 if (anOneofCase_ == AnOneofOneofCase.OneofField) { 423 output.WriteRawTag(16); 424 output.WriteInt32(OneofField); 425 } 426 if (_unknownFields != null) { 427 _unknownFields.WriteTo(ref output); 428 } 429 } 430 #endif 431 432 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 433 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] CalculateSize()434 public int CalculateSize() { 435 int size = 0; 436 if (Field1.Length != 0) { 437 size += 1 + pb::CodedOutputStream.ComputeStringSize(Field1); 438 } 439 if (anOneofCase_ == AnOneofOneofCase.OneofField) { 440 size += 1 + pb::CodedOutputStream.ComputeInt32Size(OneofField); 441 } 442 if (_unknownFields != null) { 443 size += _unknownFields.CalculateSize(); 444 } 445 return size; 446 } 447 448 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 449 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] MergeFrom(TestMessageWithCustomOptions other)450 public void MergeFrom(TestMessageWithCustomOptions other) { 451 if (other == null) { 452 return; 453 } 454 if (other.Field1.Length != 0) { 455 Field1 = other.Field1; 456 } 457 switch (other.AnOneofCase) { 458 case AnOneofOneofCase.OneofField: 459 OneofField = other.OneofField; 460 break; 461 } 462 463 _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); 464 } 465 466 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 467 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] MergeFrom(pb::CodedInputStream input)468 public void MergeFrom(pb::CodedInputStream input) { 469 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 470 input.ReadRawMessage(this); 471 #else 472 uint tag; 473 while ((tag = input.ReadTag()) != 0) { 474 switch(tag) { 475 default: 476 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); 477 break; 478 case 10: { 479 Field1 = input.ReadString(); 480 break; 481 } 482 case 16: { 483 OneofField = input.ReadInt32(); 484 break; 485 } 486 } 487 } 488 #endif 489 } 490 491 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 492 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 493 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] IBufferMessage.InternalMergeFrom(ref pb::ParseContext input)494 void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { 495 uint tag; 496 while ((tag = input.ReadTag()) != 0) { 497 switch(tag) { 498 default: 499 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); 500 break; 501 case 10: { 502 Field1 = input.ReadString(); 503 break; 504 } 505 case 16: { 506 OneofField = input.ReadInt32(); 507 break; 508 } 509 } 510 } 511 } 512 #endif 513 514 #region Nested types 515 /// <summary>Container for nested types declared in the TestMessageWithCustomOptions message type.</summary> 516 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 517 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 518 public static partial class Types { 519 public enum AnEnum { 520 [pbr::OriginalName("ANENUM_UNSPECIFIED")] Unspecified = 0, 521 [pbr::OriginalName("ANENUM_VAL1")] Val1 = 1, 522 [pbr::OriginalName("ANENUM_VAL2")] Val2 = 2, 523 } 524 525 } 526 #endregion 527 528 } 529 530 /// <summary> 531 /// A test RPC service with custom options at all possible locations (and also 532 /// some regular options, to make sure they interact nicely). 533 /// </summary> 534 public sealed partial class CustomOptionFooRequest : pb::IMessage<CustomOptionFooRequest> 535 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 536 , pb::IBufferMessage 537 #endif 538 { 539 private static readonly pb::MessageParser<CustomOptionFooRequest> _parser = new pb::MessageParser<CustomOptionFooRequest>(() => new CustomOptionFooRequest()); 540 private pb::UnknownFieldSet _unknownFields; 541 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 542 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 543 public static pb::MessageParser<CustomOptionFooRequest> Parser { get { return _parser; } } 544 545 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 546 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 547 public static pbr::MessageDescriptor Descriptor { 548 get { return global::UnitTest.Issues.TestProtos.UnittestCustomOptionsProto3Reflection.Descriptor.MessageTypes[1]; } 549 } 550 551 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 552 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 553 pbr::MessageDescriptor pb::IMessage.Descriptor { 554 get { return Descriptor; } 555 } 556 557 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 558 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] CustomOptionFooRequest()559 public CustomOptionFooRequest() { 560 OnConstruction(); 561 } 562 OnConstruction()563 partial void OnConstruction(); 564 565 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 566 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] CustomOptionFooRequest(CustomOptionFooRequest other)567 public CustomOptionFooRequest(CustomOptionFooRequest other) : this() { 568 _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); 569 } 570 571 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 572 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] Clone()573 public CustomOptionFooRequest Clone() { 574 return new CustomOptionFooRequest(this); 575 } 576 577 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 578 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] Equals(object other)579 public override bool Equals(object other) { 580 return Equals(other as CustomOptionFooRequest); 581 } 582 583 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 584 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] Equals(CustomOptionFooRequest other)585 public bool Equals(CustomOptionFooRequest other) { 586 if (ReferenceEquals(other, null)) { 587 return false; 588 } 589 if (ReferenceEquals(other, this)) { 590 return true; 591 } 592 return Equals(_unknownFields, other._unknownFields); 593 } 594 595 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 596 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] GetHashCode()597 public override int GetHashCode() { 598 int hash = 1; 599 if (_unknownFields != null) { 600 hash ^= _unknownFields.GetHashCode(); 601 } 602 return hash; 603 } 604 605 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 606 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] ToString()607 public override string ToString() { 608 return pb::JsonFormatter.ToDiagnosticString(this); 609 } 610 611 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 612 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] WriteTo(pb::CodedOutputStream output)613 public void WriteTo(pb::CodedOutputStream output) { 614 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 615 output.WriteRawMessage(this); 616 #else 617 if (_unknownFields != null) { 618 _unknownFields.WriteTo(output); 619 } 620 #endif 621 } 622 623 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 624 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 625 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] IBufferMessage.InternalWriteTo(ref pb::WriteContext output)626 void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { 627 if (_unknownFields != null) { 628 _unknownFields.WriteTo(ref output); 629 } 630 } 631 #endif 632 633 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 634 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] CalculateSize()635 public int CalculateSize() { 636 int size = 0; 637 if (_unknownFields != null) { 638 size += _unknownFields.CalculateSize(); 639 } 640 return size; 641 } 642 643 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 644 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] MergeFrom(CustomOptionFooRequest other)645 public void MergeFrom(CustomOptionFooRequest other) { 646 if (other == null) { 647 return; 648 } 649 _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); 650 } 651 652 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 653 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] MergeFrom(pb::CodedInputStream input)654 public void MergeFrom(pb::CodedInputStream input) { 655 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 656 input.ReadRawMessage(this); 657 #else 658 uint tag; 659 while ((tag = input.ReadTag()) != 0) { 660 switch(tag) { 661 default: 662 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); 663 break; 664 } 665 } 666 #endif 667 } 668 669 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 670 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 671 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] IBufferMessage.InternalMergeFrom(ref pb::ParseContext input)672 void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { 673 uint tag; 674 while ((tag = input.ReadTag()) != 0) { 675 switch(tag) { 676 default: 677 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); 678 break; 679 } 680 } 681 } 682 #endif 683 684 } 685 686 public sealed partial class CustomOptionFooResponse : pb::IMessage<CustomOptionFooResponse> 687 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 688 , pb::IBufferMessage 689 #endif 690 { 691 private static readonly pb::MessageParser<CustomOptionFooResponse> _parser = new pb::MessageParser<CustomOptionFooResponse>(() => new CustomOptionFooResponse()); 692 private pb::UnknownFieldSet _unknownFields; 693 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 694 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 695 public static pb::MessageParser<CustomOptionFooResponse> Parser { get { return _parser; } } 696 697 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 698 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 699 public static pbr::MessageDescriptor Descriptor { 700 get { return global::UnitTest.Issues.TestProtos.UnittestCustomOptionsProto3Reflection.Descriptor.MessageTypes[2]; } 701 } 702 703 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 704 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 705 pbr::MessageDescriptor pb::IMessage.Descriptor { 706 get { return Descriptor; } 707 } 708 709 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 710 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] CustomOptionFooResponse()711 public CustomOptionFooResponse() { 712 OnConstruction(); 713 } 714 OnConstruction()715 partial void OnConstruction(); 716 717 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 718 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] CustomOptionFooResponse(CustomOptionFooResponse other)719 public CustomOptionFooResponse(CustomOptionFooResponse other) : this() { 720 _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); 721 } 722 723 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 724 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] Clone()725 public CustomOptionFooResponse Clone() { 726 return new CustomOptionFooResponse(this); 727 } 728 729 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 730 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] Equals(object other)731 public override bool Equals(object other) { 732 return Equals(other as CustomOptionFooResponse); 733 } 734 735 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 736 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] Equals(CustomOptionFooResponse other)737 public bool Equals(CustomOptionFooResponse other) { 738 if (ReferenceEquals(other, null)) { 739 return false; 740 } 741 if (ReferenceEquals(other, this)) { 742 return true; 743 } 744 return Equals(_unknownFields, other._unknownFields); 745 } 746 747 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 748 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] GetHashCode()749 public override int GetHashCode() { 750 int hash = 1; 751 if (_unknownFields != null) { 752 hash ^= _unknownFields.GetHashCode(); 753 } 754 return hash; 755 } 756 757 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 758 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] ToString()759 public override string ToString() { 760 return pb::JsonFormatter.ToDiagnosticString(this); 761 } 762 763 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 764 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] WriteTo(pb::CodedOutputStream output)765 public void WriteTo(pb::CodedOutputStream output) { 766 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 767 output.WriteRawMessage(this); 768 #else 769 if (_unknownFields != null) { 770 _unknownFields.WriteTo(output); 771 } 772 #endif 773 } 774 775 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 776 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 777 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] IBufferMessage.InternalWriteTo(ref pb::WriteContext output)778 void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { 779 if (_unknownFields != null) { 780 _unknownFields.WriteTo(ref output); 781 } 782 } 783 #endif 784 785 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 786 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] CalculateSize()787 public int CalculateSize() { 788 int size = 0; 789 if (_unknownFields != null) { 790 size += _unknownFields.CalculateSize(); 791 } 792 return size; 793 } 794 795 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 796 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] MergeFrom(CustomOptionFooResponse other)797 public void MergeFrom(CustomOptionFooResponse other) { 798 if (other == null) { 799 return; 800 } 801 _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); 802 } 803 804 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 805 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] MergeFrom(pb::CodedInputStream input)806 public void MergeFrom(pb::CodedInputStream input) { 807 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 808 input.ReadRawMessage(this); 809 #else 810 uint tag; 811 while ((tag = input.ReadTag()) != 0) { 812 switch(tag) { 813 default: 814 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); 815 break; 816 } 817 } 818 #endif 819 } 820 821 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 822 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 823 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] IBufferMessage.InternalMergeFrom(ref pb::ParseContext input)824 void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { 825 uint tag; 826 while ((tag = input.ReadTag()) != 0) { 827 switch(tag) { 828 default: 829 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); 830 break; 831 } 832 } 833 } 834 #endif 835 836 } 837 838 public sealed partial class CustomOptionFooClientMessage : pb::IMessage<CustomOptionFooClientMessage> 839 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 840 , pb::IBufferMessage 841 #endif 842 { 843 private static readonly pb::MessageParser<CustomOptionFooClientMessage> _parser = new pb::MessageParser<CustomOptionFooClientMessage>(() => new CustomOptionFooClientMessage()); 844 private pb::UnknownFieldSet _unknownFields; 845 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 846 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 847 public static pb::MessageParser<CustomOptionFooClientMessage> Parser { get { return _parser; } } 848 849 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 850 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 851 public static pbr::MessageDescriptor Descriptor { 852 get { return global::UnitTest.Issues.TestProtos.UnittestCustomOptionsProto3Reflection.Descriptor.MessageTypes[3]; } 853 } 854 855 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 856 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 857 pbr::MessageDescriptor pb::IMessage.Descriptor { 858 get { return Descriptor; } 859 } 860 861 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 862 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] CustomOptionFooClientMessage()863 public CustomOptionFooClientMessage() { 864 OnConstruction(); 865 } 866 OnConstruction()867 partial void OnConstruction(); 868 869 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 870 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] CustomOptionFooClientMessage(CustomOptionFooClientMessage other)871 public CustomOptionFooClientMessage(CustomOptionFooClientMessage other) : this() { 872 _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); 873 } 874 875 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 876 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] Clone()877 public CustomOptionFooClientMessage Clone() { 878 return new CustomOptionFooClientMessage(this); 879 } 880 881 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 882 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] Equals(object other)883 public override bool Equals(object other) { 884 return Equals(other as CustomOptionFooClientMessage); 885 } 886 887 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 888 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] Equals(CustomOptionFooClientMessage other)889 public bool Equals(CustomOptionFooClientMessage other) { 890 if (ReferenceEquals(other, null)) { 891 return false; 892 } 893 if (ReferenceEquals(other, this)) { 894 return true; 895 } 896 return Equals(_unknownFields, other._unknownFields); 897 } 898 899 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 900 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] GetHashCode()901 public override int GetHashCode() { 902 int hash = 1; 903 if (_unknownFields != null) { 904 hash ^= _unknownFields.GetHashCode(); 905 } 906 return hash; 907 } 908 909 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 910 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] ToString()911 public override string ToString() { 912 return pb::JsonFormatter.ToDiagnosticString(this); 913 } 914 915 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 916 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] WriteTo(pb::CodedOutputStream output)917 public void WriteTo(pb::CodedOutputStream output) { 918 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 919 output.WriteRawMessage(this); 920 #else 921 if (_unknownFields != null) { 922 _unknownFields.WriteTo(output); 923 } 924 #endif 925 } 926 927 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 928 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 929 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] IBufferMessage.InternalWriteTo(ref pb::WriteContext output)930 void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { 931 if (_unknownFields != null) { 932 _unknownFields.WriteTo(ref output); 933 } 934 } 935 #endif 936 937 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 938 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] CalculateSize()939 public int CalculateSize() { 940 int size = 0; 941 if (_unknownFields != null) { 942 size += _unknownFields.CalculateSize(); 943 } 944 return size; 945 } 946 947 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 948 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] MergeFrom(CustomOptionFooClientMessage other)949 public void MergeFrom(CustomOptionFooClientMessage other) { 950 if (other == null) { 951 return; 952 } 953 _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); 954 } 955 956 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 957 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] MergeFrom(pb::CodedInputStream input)958 public void MergeFrom(pb::CodedInputStream input) { 959 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 960 input.ReadRawMessage(this); 961 #else 962 uint tag; 963 while ((tag = input.ReadTag()) != 0) { 964 switch(tag) { 965 default: 966 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); 967 break; 968 } 969 } 970 #endif 971 } 972 973 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 974 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 975 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] IBufferMessage.InternalMergeFrom(ref pb::ParseContext input)976 void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { 977 uint tag; 978 while ((tag = input.ReadTag()) != 0) { 979 switch(tag) { 980 default: 981 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); 982 break; 983 } 984 } 985 } 986 #endif 987 988 } 989 990 public sealed partial class CustomOptionFooServerMessage : pb::IMessage<CustomOptionFooServerMessage> 991 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 992 , pb::IBufferMessage 993 #endif 994 { 995 private static readonly pb::MessageParser<CustomOptionFooServerMessage> _parser = new pb::MessageParser<CustomOptionFooServerMessage>(() => new CustomOptionFooServerMessage()); 996 private pb::UnknownFieldSet _unknownFields; 997 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 998 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 999 public static pb::MessageParser<CustomOptionFooServerMessage> Parser { get { return _parser; } } 1000 1001 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 1002 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 1003 public static pbr::MessageDescriptor Descriptor { 1004 get { return global::UnitTest.Issues.TestProtos.UnittestCustomOptionsProto3Reflection.Descriptor.MessageTypes[4]; } 1005 } 1006 1007 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 1008 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 1009 pbr::MessageDescriptor pb::IMessage.Descriptor { 1010 get { return Descriptor; } 1011 } 1012 1013 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 1014 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] CustomOptionFooServerMessage()1015 public CustomOptionFooServerMessage() { 1016 OnConstruction(); 1017 } 1018 OnConstruction()1019 partial void OnConstruction(); 1020 1021 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 1022 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] CustomOptionFooServerMessage(CustomOptionFooServerMessage other)1023 public CustomOptionFooServerMessage(CustomOptionFooServerMessage other) : this() { 1024 _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); 1025 } 1026 1027 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 1028 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] Clone()1029 public CustomOptionFooServerMessage Clone() { 1030 return new CustomOptionFooServerMessage(this); 1031 } 1032 1033 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 1034 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] Equals(object other)1035 public override bool Equals(object other) { 1036 return Equals(other as CustomOptionFooServerMessage); 1037 } 1038 1039 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 1040 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] Equals(CustomOptionFooServerMessage other)1041 public bool Equals(CustomOptionFooServerMessage other) { 1042 if (ReferenceEquals(other, null)) { 1043 return false; 1044 } 1045 if (ReferenceEquals(other, this)) { 1046 return true; 1047 } 1048 return Equals(_unknownFields, other._unknownFields); 1049 } 1050 1051 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 1052 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] GetHashCode()1053 public override int GetHashCode() { 1054 int hash = 1; 1055 if (_unknownFields != null) { 1056 hash ^= _unknownFields.GetHashCode(); 1057 } 1058 return hash; 1059 } 1060 1061 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 1062 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] ToString()1063 public override string ToString() { 1064 return pb::JsonFormatter.ToDiagnosticString(this); 1065 } 1066 1067 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 1068 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] WriteTo(pb::CodedOutputStream output)1069 public void WriteTo(pb::CodedOutputStream output) { 1070 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 1071 output.WriteRawMessage(this); 1072 #else 1073 if (_unknownFields != null) { 1074 _unknownFields.WriteTo(output); 1075 } 1076 #endif 1077 } 1078 1079 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 1080 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 1081 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] IBufferMessage.InternalWriteTo(ref pb::WriteContext output)1082 void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { 1083 if (_unknownFields != null) { 1084 _unknownFields.WriteTo(ref output); 1085 } 1086 } 1087 #endif 1088 1089 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 1090 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] CalculateSize()1091 public int CalculateSize() { 1092 int size = 0; 1093 if (_unknownFields != null) { 1094 size += _unknownFields.CalculateSize(); 1095 } 1096 return size; 1097 } 1098 1099 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 1100 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] MergeFrom(CustomOptionFooServerMessage other)1101 public void MergeFrom(CustomOptionFooServerMessage other) { 1102 if (other == null) { 1103 return; 1104 } 1105 _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); 1106 } 1107 1108 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 1109 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] MergeFrom(pb::CodedInputStream input)1110 public void MergeFrom(pb::CodedInputStream input) { 1111 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 1112 input.ReadRawMessage(this); 1113 #else 1114 uint tag; 1115 while ((tag = input.ReadTag()) != 0) { 1116 switch(tag) { 1117 default: 1118 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); 1119 break; 1120 } 1121 } 1122 #endif 1123 } 1124 1125 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 1126 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 1127 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] IBufferMessage.InternalMergeFrom(ref pb::ParseContext input)1128 void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { 1129 uint tag; 1130 while ((tag = input.ReadTag()) != 0) { 1131 switch(tag) { 1132 default: 1133 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); 1134 break; 1135 } 1136 } 1137 } 1138 #endif 1139 1140 } 1141 1142 public sealed partial class DummyMessageContainingEnum : pb::IMessage<DummyMessageContainingEnum> 1143 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 1144 , pb::IBufferMessage 1145 #endif 1146 { 1147 private static readonly pb::MessageParser<DummyMessageContainingEnum> _parser = new pb::MessageParser<DummyMessageContainingEnum>(() => new DummyMessageContainingEnum()); 1148 private pb::UnknownFieldSet _unknownFields; 1149 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 1150 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 1151 public static pb::MessageParser<DummyMessageContainingEnum> Parser { get { return _parser; } } 1152 1153 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 1154 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 1155 public static pbr::MessageDescriptor Descriptor { 1156 get { return global::UnitTest.Issues.TestProtos.UnittestCustomOptionsProto3Reflection.Descriptor.MessageTypes[5]; } 1157 } 1158 1159 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 1160 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 1161 pbr::MessageDescriptor pb::IMessage.Descriptor { 1162 get { return Descriptor; } 1163 } 1164 1165 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 1166 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] DummyMessageContainingEnum()1167 public DummyMessageContainingEnum() { 1168 OnConstruction(); 1169 } 1170 OnConstruction()1171 partial void OnConstruction(); 1172 1173 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 1174 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] DummyMessageContainingEnum(DummyMessageContainingEnum other)1175 public DummyMessageContainingEnum(DummyMessageContainingEnum other) : this() { 1176 _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); 1177 } 1178 1179 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 1180 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] Clone()1181 public DummyMessageContainingEnum Clone() { 1182 return new DummyMessageContainingEnum(this); 1183 } 1184 1185 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 1186 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] Equals(object other)1187 public override bool Equals(object other) { 1188 return Equals(other as DummyMessageContainingEnum); 1189 } 1190 1191 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 1192 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] Equals(DummyMessageContainingEnum other)1193 public bool Equals(DummyMessageContainingEnum other) { 1194 if (ReferenceEquals(other, null)) { 1195 return false; 1196 } 1197 if (ReferenceEquals(other, this)) { 1198 return true; 1199 } 1200 return Equals(_unknownFields, other._unknownFields); 1201 } 1202 1203 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 1204 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] GetHashCode()1205 public override int GetHashCode() { 1206 int hash = 1; 1207 if (_unknownFields != null) { 1208 hash ^= _unknownFields.GetHashCode(); 1209 } 1210 return hash; 1211 } 1212 1213 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 1214 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] ToString()1215 public override string ToString() { 1216 return pb::JsonFormatter.ToDiagnosticString(this); 1217 } 1218 1219 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 1220 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] WriteTo(pb::CodedOutputStream output)1221 public void WriteTo(pb::CodedOutputStream output) { 1222 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 1223 output.WriteRawMessage(this); 1224 #else 1225 if (_unknownFields != null) { 1226 _unknownFields.WriteTo(output); 1227 } 1228 #endif 1229 } 1230 1231 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 1232 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 1233 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] IBufferMessage.InternalWriteTo(ref pb::WriteContext output)1234 void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { 1235 if (_unknownFields != null) { 1236 _unknownFields.WriteTo(ref output); 1237 } 1238 } 1239 #endif 1240 1241 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 1242 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] CalculateSize()1243 public int CalculateSize() { 1244 int size = 0; 1245 if (_unknownFields != null) { 1246 size += _unknownFields.CalculateSize(); 1247 } 1248 return size; 1249 } 1250 1251 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 1252 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] MergeFrom(DummyMessageContainingEnum other)1253 public void MergeFrom(DummyMessageContainingEnum other) { 1254 if (other == null) { 1255 return; 1256 } 1257 _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); 1258 } 1259 1260 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 1261 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] MergeFrom(pb::CodedInputStream input)1262 public void MergeFrom(pb::CodedInputStream input) { 1263 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 1264 input.ReadRawMessage(this); 1265 #else 1266 uint tag; 1267 while ((tag = input.ReadTag()) != 0) { 1268 switch(tag) { 1269 default: 1270 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); 1271 break; 1272 } 1273 } 1274 #endif 1275 } 1276 1277 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 1278 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 1279 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] IBufferMessage.InternalMergeFrom(ref pb::ParseContext input)1280 void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { 1281 uint tag; 1282 while ((tag = input.ReadTag()) != 0) { 1283 switch(tag) { 1284 default: 1285 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); 1286 break; 1287 } 1288 } 1289 } 1290 #endif 1291 1292 #region Nested types 1293 /// <summary>Container for nested types declared in the DummyMessageContainingEnum message type.</summary> 1294 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 1295 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 1296 public static partial class Types { 1297 public enum TestEnumType { 1298 [pbr::OriginalName("TEST_OPTION_ENUM_UNSPECIFIED")] TestOptionEnumUnspecified = 0, 1299 [pbr::OriginalName("TEST_OPTION_ENUM_TYPE1")] TestOptionEnumType1 = 22, 1300 [pbr::OriginalName("TEST_OPTION_ENUM_TYPE2")] TestOptionEnumType2 = -23, 1301 } 1302 1303 } 1304 #endregion 1305 1306 } 1307 1308 public sealed partial class DummyMessageInvalidAsOptionType : pb::IMessage<DummyMessageInvalidAsOptionType> 1309 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 1310 , pb::IBufferMessage 1311 #endif 1312 { 1313 private static readonly pb::MessageParser<DummyMessageInvalidAsOptionType> _parser = new pb::MessageParser<DummyMessageInvalidAsOptionType>(() => new DummyMessageInvalidAsOptionType()); 1314 private pb::UnknownFieldSet _unknownFields; 1315 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 1316 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 1317 public static pb::MessageParser<DummyMessageInvalidAsOptionType> Parser { get { return _parser; } } 1318 1319 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 1320 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 1321 public static pbr::MessageDescriptor Descriptor { 1322 get { return global::UnitTest.Issues.TestProtos.UnittestCustomOptionsProto3Reflection.Descriptor.MessageTypes[6]; } 1323 } 1324 1325 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 1326 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 1327 pbr::MessageDescriptor pb::IMessage.Descriptor { 1328 get { return Descriptor; } 1329 } 1330 1331 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 1332 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] DummyMessageInvalidAsOptionType()1333 public DummyMessageInvalidAsOptionType() { 1334 OnConstruction(); 1335 } 1336 OnConstruction()1337 partial void OnConstruction(); 1338 1339 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 1340 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] DummyMessageInvalidAsOptionType(DummyMessageInvalidAsOptionType other)1341 public DummyMessageInvalidAsOptionType(DummyMessageInvalidAsOptionType other) : this() { 1342 _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); 1343 } 1344 1345 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 1346 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] Clone()1347 public DummyMessageInvalidAsOptionType Clone() { 1348 return new DummyMessageInvalidAsOptionType(this); 1349 } 1350 1351 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 1352 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] Equals(object other)1353 public override bool Equals(object other) { 1354 return Equals(other as DummyMessageInvalidAsOptionType); 1355 } 1356 1357 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 1358 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] Equals(DummyMessageInvalidAsOptionType other)1359 public bool Equals(DummyMessageInvalidAsOptionType other) { 1360 if (ReferenceEquals(other, null)) { 1361 return false; 1362 } 1363 if (ReferenceEquals(other, this)) { 1364 return true; 1365 } 1366 return Equals(_unknownFields, other._unknownFields); 1367 } 1368 1369 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 1370 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] GetHashCode()1371 public override int GetHashCode() { 1372 int hash = 1; 1373 if (_unknownFields != null) { 1374 hash ^= _unknownFields.GetHashCode(); 1375 } 1376 return hash; 1377 } 1378 1379 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 1380 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] ToString()1381 public override string ToString() { 1382 return pb::JsonFormatter.ToDiagnosticString(this); 1383 } 1384 1385 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 1386 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] WriteTo(pb::CodedOutputStream output)1387 public void WriteTo(pb::CodedOutputStream output) { 1388 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 1389 output.WriteRawMessage(this); 1390 #else 1391 if (_unknownFields != null) { 1392 _unknownFields.WriteTo(output); 1393 } 1394 #endif 1395 } 1396 1397 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 1398 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 1399 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] IBufferMessage.InternalWriteTo(ref pb::WriteContext output)1400 void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { 1401 if (_unknownFields != null) { 1402 _unknownFields.WriteTo(ref output); 1403 } 1404 } 1405 #endif 1406 1407 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 1408 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] CalculateSize()1409 public int CalculateSize() { 1410 int size = 0; 1411 if (_unknownFields != null) { 1412 size += _unknownFields.CalculateSize(); 1413 } 1414 return size; 1415 } 1416 1417 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 1418 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] MergeFrom(DummyMessageInvalidAsOptionType other)1419 public void MergeFrom(DummyMessageInvalidAsOptionType other) { 1420 if (other == null) { 1421 return; 1422 } 1423 _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); 1424 } 1425 1426 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 1427 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] MergeFrom(pb::CodedInputStream input)1428 public void MergeFrom(pb::CodedInputStream input) { 1429 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 1430 input.ReadRawMessage(this); 1431 #else 1432 uint tag; 1433 while ((tag = input.ReadTag()) != 0) { 1434 switch(tag) { 1435 default: 1436 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); 1437 break; 1438 } 1439 } 1440 #endif 1441 } 1442 1443 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 1444 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 1445 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] IBufferMessage.InternalMergeFrom(ref pb::ParseContext input)1446 void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { 1447 uint tag; 1448 while ((tag = input.ReadTag()) != 0) { 1449 switch(tag) { 1450 default: 1451 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); 1452 break; 1453 } 1454 } 1455 } 1456 #endif 1457 1458 } 1459 1460 public sealed partial class CustomOptionMinIntegerValues : pb::IMessage<CustomOptionMinIntegerValues> 1461 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 1462 , pb::IBufferMessage 1463 #endif 1464 { 1465 private static readonly pb::MessageParser<CustomOptionMinIntegerValues> _parser = new pb::MessageParser<CustomOptionMinIntegerValues>(() => new CustomOptionMinIntegerValues()); 1466 private pb::UnknownFieldSet _unknownFields; 1467 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 1468 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 1469 public static pb::MessageParser<CustomOptionMinIntegerValues> Parser { get { return _parser; } } 1470 1471 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 1472 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 1473 public static pbr::MessageDescriptor Descriptor { 1474 get { return global::UnitTest.Issues.TestProtos.UnittestCustomOptionsProto3Reflection.Descriptor.MessageTypes[7]; } 1475 } 1476 1477 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 1478 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 1479 pbr::MessageDescriptor pb::IMessage.Descriptor { 1480 get { return Descriptor; } 1481 } 1482 1483 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 1484 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] CustomOptionMinIntegerValues()1485 public CustomOptionMinIntegerValues() { 1486 OnConstruction(); 1487 } 1488 OnConstruction()1489 partial void OnConstruction(); 1490 1491 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 1492 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] CustomOptionMinIntegerValues(CustomOptionMinIntegerValues other)1493 public CustomOptionMinIntegerValues(CustomOptionMinIntegerValues other) : this() { 1494 _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); 1495 } 1496 1497 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 1498 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] Clone()1499 public CustomOptionMinIntegerValues Clone() { 1500 return new CustomOptionMinIntegerValues(this); 1501 } 1502 1503 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 1504 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] Equals(object other)1505 public override bool Equals(object other) { 1506 return Equals(other as CustomOptionMinIntegerValues); 1507 } 1508 1509 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 1510 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] Equals(CustomOptionMinIntegerValues other)1511 public bool Equals(CustomOptionMinIntegerValues other) { 1512 if (ReferenceEquals(other, null)) { 1513 return false; 1514 } 1515 if (ReferenceEquals(other, this)) { 1516 return true; 1517 } 1518 return Equals(_unknownFields, other._unknownFields); 1519 } 1520 1521 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 1522 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] GetHashCode()1523 public override int GetHashCode() { 1524 int hash = 1; 1525 if (_unknownFields != null) { 1526 hash ^= _unknownFields.GetHashCode(); 1527 } 1528 return hash; 1529 } 1530 1531 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 1532 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] ToString()1533 public override string ToString() { 1534 return pb::JsonFormatter.ToDiagnosticString(this); 1535 } 1536 1537 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 1538 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] WriteTo(pb::CodedOutputStream output)1539 public void WriteTo(pb::CodedOutputStream output) { 1540 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 1541 output.WriteRawMessage(this); 1542 #else 1543 if (_unknownFields != null) { 1544 _unknownFields.WriteTo(output); 1545 } 1546 #endif 1547 } 1548 1549 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 1550 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 1551 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] IBufferMessage.InternalWriteTo(ref pb::WriteContext output)1552 void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { 1553 if (_unknownFields != null) { 1554 _unknownFields.WriteTo(ref output); 1555 } 1556 } 1557 #endif 1558 1559 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 1560 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] CalculateSize()1561 public int CalculateSize() { 1562 int size = 0; 1563 if (_unknownFields != null) { 1564 size += _unknownFields.CalculateSize(); 1565 } 1566 return size; 1567 } 1568 1569 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 1570 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] MergeFrom(CustomOptionMinIntegerValues other)1571 public void MergeFrom(CustomOptionMinIntegerValues other) { 1572 if (other == null) { 1573 return; 1574 } 1575 _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); 1576 } 1577 1578 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 1579 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] MergeFrom(pb::CodedInputStream input)1580 public void MergeFrom(pb::CodedInputStream input) { 1581 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 1582 input.ReadRawMessage(this); 1583 #else 1584 uint tag; 1585 while ((tag = input.ReadTag()) != 0) { 1586 switch(tag) { 1587 default: 1588 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); 1589 break; 1590 } 1591 } 1592 #endif 1593 } 1594 1595 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 1596 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 1597 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] IBufferMessage.InternalMergeFrom(ref pb::ParseContext input)1598 void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { 1599 uint tag; 1600 while ((tag = input.ReadTag()) != 0) { 1601 switch(tag) { 1602 default: 1603 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); 1604 break; 1605 } 1606 } 1607 } 1608 #endif 1609 1610 } 1611 1612 public sealed partial class CustomOptionMaxIntegerValues : pb::IMessage<CustomOptionMaxIntegerValues> 1613 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 1614 , pb::IBufferMessage 1615 #endif 1616 { 1617 private static readonly pb::MessageParser<CustomOptionMaxIntegerValues> _parser = new pb::MessageParser<CustomOptionMaxIntegerValues>(() => new CustomOptionMaxIntegerValues()); 1618 private pb::UnknownFieldSet _unknownFields; 1619 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 1620 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 1621 public static pb::MessageParser<CustomOptionMaxIntegerValues> Parser { get { return _parser; } } 1622 1623 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 1624 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 1625 public static pbr::MessageDescriptor Descriptor { 1626 get { return global::UnitTest.Issues.TestProtos.UnittestCustomOptionsProto3Reflection.Descriptor.MessageTypes[8]; } 1627 } 1628 1629 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 1630 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 1631 pbr::MessageDescriptor pb::IMessage.Descriptor { 1632 get { return Descriptor; } 1633 } 1634 1635 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 1636 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] CustomOptionMaxIntegerValues()1637 public CustomOptionMaxIntegerValues() { 1638 OnConstruction(); 1639 } 1640 OnConstruction()1641 partial void OnConstruction(); 1642 1643 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 1644 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] CustomOptionMaxIntegerValues(CustomOptionMaxIntegerValues other)1645 public CustomOptionMaxIntegerValues(CustomOptionMaxIntegerValues other) : this() { 1646 _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); 1647 } 1648 1649 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 1650 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] Clone()1651 public CustomOptionMaxIntegerValues Clone() { 1652 return new CustomOptionMaxIntegerValues(this); 1653 } 1654 1655 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 1656 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] Equals(object other)1657 public override bool Equals(object other) { 1658 return Equals(other as CustomOptionMaxIntegerValues); 1659 } 1660 1661 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 1662 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] Equals(CustomOptionMaxIntegerValues other)1663 public bool Equals(CustomOptionMaxIntegerValues other) { 1664 if (ReferenceEquals(other, null)) { 1665 return false; 1666 } 1667 if (ReferenceEquals(other, this)) { 1668 return true; 1669 } 1670 return Equals(_unknownFields, other._unknownFields); 1671 } 1672 1673 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 1674 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] GetHashCode()1675 public override int GetHashCode() { 1676 int hash = 1; 1677 if (_unknownFields != null) { 1678 hash ^= _unknownFields.GetHashCode(); 1679 } 1680 return hash; 1681 } 1682 1683 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 1684 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] ToString()1685 public override string ToString() { 1686 return pb::JsonFormatter.ToDiagnosticString(this); 1687 } 1688 1689 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 1690 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] WriteTo(pb::CodedOutputStream output)1691 public void WriteTo(pb::CodedOutputStream output) { 1692 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 1693 output.WriteRawMessage(this); 1694 #else 1695 if (_unknownFields != null) { 1696 _unknownFields.WriteTo(output); 1697 } 1698 #endif 1699 } 1700 1701 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 1702 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 1703 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] IBufferMessage.InternalWriteTo(ref pb::WriteContext output)1704 void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { 1705 if (_unknownFields != null) { 1706 _unknownFields.WriteTo(ref output); 1707 } 1708 } 1709 #endif 1710 1711 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 1712 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] CalculateSize()1713 public int CalculateSize() { 1714 int size = 0; 1715 if (_unknownFields != null) { 1716 size += _unknownFields.CalculateSize(); 1717 } 1718 return size; 1719 } 1720 1721 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 1722 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] MergeFrom(CustomOptionMaxIntegerValues other)1723 public void MergeFrom(CustomOptionMaxIntegerValues other) { 1724 if (other == null) { 1725 return; 1726 } 1727 _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); 1728 } 1729 1730 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 1731 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] MergeFrom(pb::CodedInputStream input)1732 public void MergeFrom(pb::CodedInputStream input) { 1733 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 1734 input.ReadRawMessage(this); 1735 #else 1736 uint tag; 1737 while ((tag = input.ReadTag()) != 0) { 1738 switch(tag) { 1739 default: 1740 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); 1741 break; 1742 } 1743 } 1744 #endif 1745 } 1746 1747 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 1748 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 1749 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] IBufferMessage.InternalMergeFrom(ref pb::ParseContext input)1750 void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { 1751 uint tag; 1752 while ((tag = input.ReadTag()) != 0) { 1753 switch(tag) { 1754 default: 1755 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); 1756 break; 1757 } 1758 } 1759 } 1760 #endif 1761 1762 } 1763 1764 public sealed partial class CustomOptionOtherValues : pb::IMessage<CustomOptionOtherValues> 1765 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 1766 , pb::IBufferMessage 1767 #endif 1768 { 1769 private static readonly pb::MessageParser<CustomOptionOtherValues> _parser = new pb::MessageParser<CustomOptionOtherValues>(() => new CustomOptionOtherValues()); 1770 private pb::UnknownFieldSet _unknownFields; 1771 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 1772 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 1773 public static pb::MessageParser<CustomOptionOtherValues> Parser { get { return _parser; } } 1774 1775 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 1776 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 1777 public static pbr::MessageDescriptor Descriptor { 1778 get { return global::UnitTest.Issues.TestProtos.UnittestCustomOptionsProto3Reflection.Descriptor.MessageTypes[9]; } 1779 } 1780 1781 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 1782 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 1783 pbr::MessageDescriptor pb::IMessage.Descriptor { 1784 get { return Descriptor; } 1785 } 1786 1787 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 1788 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] CustomOptionOtherValues()1789 public CustomOptionOtherValues() { 1790 OnConstruction(); 1791 } 1792 OnConstruction()1793 partial void OnConstruction(); 1794 1795 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 1796 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] CustomOptionOtherValues(CustomOptionOtherValues other)1797 public CustomOptionOtherValues(CustomOptionOtherValues other) : this() { 1798 _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); 1799 } 1800 1801 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 1802 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] Clone()1803 public CustomOptionOtherValues Clone() { 1804 return new CustomOptionOtherValues(this); 1805 } 1806 1807 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 1808 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] Equals(object other)1809 public override bool Equals(object other) { 1810 return Equals(other as CustomOptionOtherValues); 1811 } 1812 1813 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 1814 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] Equals(CustomOptionOtherValues other)1815 public bool Equals(CustomOptionOtherValues other) { 1816 if (ReferenceEquals(other, null)) { 1817 return false; 1818 } 1819 if (ReferenceEquals(other, this)) { 1820 return true; 1821 } 1822 return Equals(_unknownFields, other._unknownFields); 1823 } 1824 1825 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 1826 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] GetHashCode()1827 public override int GetHashCode() { 1828 int hash = 1; 1829 if (_unknownFields != null) { 1830 hash ^= _unknownFields.GetHashCode(); 1831 } 1832 return hash; 1833 } 1834 1835 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 1836 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] ToString()1837 public override string ToString() { 1838 return pb::JsonFormatter.ToDiagnosticString(this); 1839 } 1840 1841 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 1842 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] WriteTo(pb::CodedOutputStream output)1843 public void WriteTo(pb::CodedOutputStream output) { 1844 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 1845 output.WriteRawMessage(this); 1846 #else 1847 if (_unknownFields != null) { 1848 _unknownFields.WriteTo(output); 1849 } 1850 #endif 1851 } 1852 1853 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 1854 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 1855 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] IBufferMessage.InternalWriteTo(ref pb::WriteContext output)1856 void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { 1857 if (_unknownFields != null) { 1858 _unknownFields.WriteTo(ref output); 1859 } 1860 } 1861 #endif 1862 1863 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 1864 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] CalculateSize()1865 public int CalculateSize() { 1866 int size = 0; 1867 if (_unknownFields != null) { 1868 size += _unknownFields.CalculateSize(); 1869 } 1870 return size; 1871 } 1872 1873 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 1874 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] MergeFrom(CustomOptionOtherValues other)1875 public void MergeFrom(CustomOptionOtherValues other) { 1876 if (other == null) { 1877 return; 1878 } 1879 _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); 1880 } 1881 1882 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 1883 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] MergeFrom(pb::CodedInputStream input)1884 public void MergeFrom(pb::CodedInputStream input) { 1885 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 1886 input.ReadRawMessage(this); 1887 #else 1888 uint tag; 1889 while ((tag = input.ReadTag()) != 0) { 1890 switch(tag) { 1891 default: 1892 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); 1893 break; 1894 } 1895 } 1896 #endif 1897 } 1898 1899 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 1900 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 1901 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] IBufferMessage.InternalMergeFrom(ref pb::ParseContext input)1902 void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { 1903 uint tag; 1904 while ((tag = input.ReadTag()) != 0) { 1905 switch(tag) { 1906 default: 1907 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); 1908 break; 1909 } 1910 } 1911 } 1912 #endif 1913 1914 } 1915 1916 public sealed partial class SettingRealsFromPositiveInts : pb::IMessage<SettingRealsFromPositiveInts> 1917 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 1918 , pb::IBufferMessage 1919 #endif 1920 { 1921 private static readonly pb::MessageParser<SettingRealsFromPositiveInts> _parser = new pb::MessageParser<SettingRealsFromPositiveInts>(() => new SettingRealsFromPositiveInts()); 1922 private pb::UnknownFieldSet _unknownFields; 1923 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 1924 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 1925 public static pb::MessageParser<SettingRealsFromPositiveInts> Parser { get { return _parser; } } 1926 1927 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 1928 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 1929 public static pbr::MessageDescriptor Descriptor { 1930 get { return global::UnitTest.Issues.TestProtos.UnittestCustomOptionsProto3Reflection.Descriptor.MessageTypes[10]; } 1931 } 1932 1933 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 1934 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 1935 pbr::MessageDescriptor pb::IMessage.Descriptor { 1936 get { return Descriptor; } 1937 } 1938 1939 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 1940 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] SettingRealsFromPositiveInts()1941 public SettingRealsFromPositiveInts() { 1942 OnConstruction(); 1943 } 1944 OnConstruction()1945 partial void OnConstruction(); 1946 1947 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 1948 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] SettingRealsFromPositiveInts(SettingRealsFromPositiveInts other)1949 public SettingRealsFromPositiveInts(SettingRealsFromPositiveInts other) : this() { 1950 _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); 1951 } 1952 1953 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 1954 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] Clone()1955 public SettingRealsFromPositiveInts Clone() { 1956 return new SettingRealsFromPositiveInts(this); 1957 } 1958 1959 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 1960 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] Equals(object other)1961 public override bool Equals(object other) { 1962 return Equals(other as SettingRealsFromPositiveInts); 1963 } 1964 1965 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 1966 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] Equals(SettingRealsFromPositiveInts other)1967 public bool Equals(SettingRealsFromPositiveInts other) { 1968 if (ReferenceEquals(other, null)) { 1969 return false; 1970 } 1971 if (ReferenceEquals(other, this)) { 1972 return true; 1973 } 1974 return Equals(_unknownFields, other._unknownFields); 1975 } 1976 1977 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 1978 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] GetHashCode()1979 public override int GetHashCode() { 1980 int hash = 1; 1981 if (_unknownFields != null) { 1982 hash ^= _unknownFields.GetHashCode(); 1983 } 1984 return hash; 1985 } 1986 1987 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 1988 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] ToString()1989 public override string ToString() { 1990 return pb::JsonFormatter.ToDiagnosticString(this); 1991 } 1992 1993 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 1994 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] WriteTo(pb::CodedOutputStream output)1995 public void WriteTo(pb::CodedOutputStream output) { 1996 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 1997 output.WriteRawMessage(this); 1998 #else 1999 if (_unknownFields != null) { 2000 _unknownFields.WriteTo(output); 2001 } 2002 #endif 2003 } 2004 2005 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 2006 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 2007 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] IBufferMessage.InternalWriteTo(ref pb::WriteContext output)2008 void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { 2009 if (_unknownFields != null) { 2010 _unknownFields.WriteTo(ref output); 2011 } 2012 } 2013 #endif 2014 2015 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 2016 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] CalculateSize()2017 public int CalculateSize() { 2018 int size = 0; 2019 if (_unknownFields != null) { 2020 size += _unknownFields.CalculateSize(); 2021 } 2022 return size; 2023 } 2024 2025 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 2026 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] MergeFrom(SettingRealsFromPositiveInts other)2027 public void MergeFrom(SettingRealsFromPositiveInts other) { 2028 if (other == null) { 2029 return; 2030 } 2031 _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); 2032 } 2033 2034 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 2035 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] MergeFrom(pb::CodedInputStream input)2036 public void MergeFrom(pb::CodedInputStream input) { 2037 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 2038 input.ReadRawMessage(this); 2039 #else 2040 uint tag; 2041 while ((tag = input.ReadTag()) != 0) { 2042 switch(tag) { 2043 default: 2044 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); 2045 break; 2046 } 2047 } 2048 #endif 2049 } 2050 2051 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 2052 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 2053 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] IBufferMessage.InternalMergeFrom(ref pb::ParseContext input)2054 void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { 2055 uint tag; 2056 while ((tag = input.ReadTag()) != 0) { 2057 switch(tag) { 2058 default: 2059 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); 2060 break; 2061 } 2062 } 2063 } 2064 #endif 2065 2066 } 2067 2068 public sealed partial class SettingRealsFromNegativeInts : pb::IMessage<SettingRealsFromNegativeInts> 2069 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 2070 , pb::IBufferMessage 2071 #endif 2072 { 2073 private static readonly pb::MessageParser<SettingRealsFromNegativeInts> _parser = new pb::MessageParser<SettingRealsFromNegativeInts>(() => new SettingRealsFromNegativeInts()); 2074 private pb::UnknownFieldSet _unknownFields; 2075 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 2076 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 2077 public static pb::MessageParser<SettingRealsFromNegativeInts> Parser { get { return _parser; } } 2078 2079 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 2080 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 2081 public static pbr::MessageDescriptor Descriptor { 2082 get { return global::UnitTest.Issues.TestProtos.UnittestCustomOptionsProto3Reflection.Descriptor.MessageTypes[11]; } 2083 } 2084 2085 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 2086 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 2087 pbr::MessageDescriptor pb::IMessage.Descriptor { 2088 get { return Descriptor; } 2089 } 2090 2091 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 2092 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] SettingRealsFromNegativeInts()2093 public SettingRealsFromNegativeInts() { 2094 OnConstruction(); 2095 } 2096 OnConstruction()2097 partial void OnConstruction(); 2098 2099 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 2100 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] SettingRealsFromNegativeInts(SettingRealsFromNegativeInts other)2101 public SettingRealsFromNegativeInts(SettingRealsFromNegativeInts other) : this() { 2102 _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); 2103 } 2104 2105 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 2106 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] Clone()2107 public SettingRealsFromNegativeInts Clone() { 2108 return new SettingRealsFromNegativeInts(this); 2109 } 2110 2111 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 2112 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] Equals(object other)2113 public override bool Equals(object other) { 2114 return Equals(other as SettingRealsFromNegativeInts); 2115 } 2116 2117 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 2118 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] Equals(SettingRealsFromNegativeInts other)2119 public bool Equals(SettingRealsFromNegativeInts other) { 2120 if (ReferenceEquals(other, null)) { 2121 return false; 2122 } 2123 if (ReferenceEquals(other, this)) { 2124 return true; 2125 } 2126 return Equals(_unknownFields, other._unknownFields); 2127 } 2128 2129 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 2130 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] GetHashCode()2131 public override int GetHashCode() { 2132 int hash = 1; 2133 if (_unknownFields != null) { 2134 hash ^= _unknownFields.GetHashCode(); 2135 } 2136 return hash; 2137 } 2138 2139 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 2140 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] ToString()2141 public override string ToString() { 2142 return pb::JsonFormatter.ToDiagnosticString(this); 2143 } 2144 2145 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 2146 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] WriteTo(pb::CodedOutputStream output)2147 public void WriteTo(pb::CodedOutputStream output) { 2148 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 2149 output.WriteRawMessage(this); 2150 #else 2151 if (_unknownFields != null) { 2152 _unknownFields.WriteTo(output); 2153 } 2154 #endif 2155 } 2156 2157 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 2158 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 2159 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] IBufferMessage.InternalWriteTo(ref pb::WriteContext output)2160 void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { 2161 if (_unknownFields != null) { 2162 _unknownFields.WriteTo(ref output); 2163 } 2164 } 2165 #endif 2166 2167 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 2168 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] CalculateSize()2169 public int CalculateSize() { 2170 int size = 0; 2171 if (_unknownFields != null) { 2172 size += _unknownFields.CalculateSize(); 2173 } 2174 return size; 2175 } 2176 2177 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 2178 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] MergeFrom(SettingRealsFromNegativeInts other)2179 public void MergeFrom(SettingRealsFromNegativeInts other) { 2180 if (other == null) { 2181 return; 2182 } 2183 _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); 2184 } 2185 2186 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 2187 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] MergeFrom(pb::CodedInputStream input)2188 public void MergeFrom(pb::CodedInputStream input) { 2189 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 2190 input.ReadRawMessage(this); 2191 #else 2192 uint tag; 2193 while ((tag = input.ReadTag()) != 0) { 2194 switch(tag) { 2195 default: 2196 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); 2197 break; 2198 } 2199 } 2200 #endif 2201 } 2202 2203 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 2204 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 2205 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] IBufferMessage.InternalMergeFrom(ref pb::ParseContext input)2206 void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { 2207 uint tag; 2208 while ((tag = input.ReadTag()) != 0) { 2209 switch(tag) { 2210 default: 2211 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); 2212 break; 2213 } 2214 } 2215 } 2216 #endif 2217 2218 } 2219 2220 public sealed partial class ComplexOptionType1 : pb::IMessage<ComplexOptionType1> 2221 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 2222 , pb::IBufferMessage 2223 #endif 2224 { 2225 private static readonly pb::MessageParser<ComplexOptionType1> _parser = new pb::MessageParser<ComplexOptionType1>(() => new ComplexOptionType1()); 2226 private pb::UnknownFieldSet _unknownFields; 2227 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 2228 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 2229 public static pb::MessageParser<ComplexOptionType1> Parser { get { return _parser; } } 2230 2231 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 2232 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 2233 public static pbr::MessageDescriptor Descriptor { 2234 get { return global::UnitTest.Issues.TestProtos.UnittestCustomOptionsProto3Reflection.Descriptor.MessageTypes[12]; } 2235 } 2236 2237 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 2238 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 2239 pbr::MessageDescriptor pb::IMessage.Descriptor { 2240 get { return Descriptor; } 2241 } 2242 2243 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 2244 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] ComplexOptionType1()2245 public ComplexOptionType1() { 2246 OnConstruction(); 2247 } 2248 OnConstruction()2249 partial void OnConstruction(); 2250 2251 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 2252 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] ComplexOptionType1(ComplexOptionType1 other)2253 public ComplexOptionType1(ComplexOptionType1 other) : this() { 2254 foo_ = other.foo_; 2255 foo2_ = other.foo2_; 2256 foo3_ = other.foo3_; 2257 foo4_ = other.foo4_.Clone(); 2258 _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); 2259 } 2260 2261 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 2262 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] Clone()2263 public ComplexOptionType1 Clone() { 2264 return new ComplexOptionType1(this); 2265 } 2266 2267 /// <summary>Field number for the "foo" field.</summary> 2268 public const int FooFieldNumber = 1; 2269 private int foo_; 2270 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 2271 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 2272 public int Foo { 2273 get { return foo_; } 2274 set { 2275 foo_ = value; 2276 } 2277 } 2278 2279 /// <summary>Field number for the "foo2" field.</summary> 2280 public const int Foo2FieldNumber = 2; 2281 private int foo2_; 2282 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 2283 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 2284 public int Foo2 { 2285 get { return foo2_; } 2286 set { 2287 foo2_ = value; 2288 } 2289 } 2290 2291 /// <summary>Field number for the "foo3" field.</summary> 2292 public const int Foo3FieldNumber = 3; 2293 private int foo3_; 2294 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 2295 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 2296 public int Foo3 { 2297 get { return foo3_; } 2298 set { 2299 foo3_ = value; 2300 } 2301 } 2302 2303 /// <summary>Field number for the "foo4" field.</summary> 2304 public const int Foo4FieldNumber = 4; 2305 private static readonly pb::FieldCodec<int> _repeated_foo4_codec 2306 = pb::FieldCodec.ForInt32(34); 2307 private readonly pbc::RepeatedField<int> foo4_ = new pbc::RepeatedField<int>(); 2308 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 2309 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 2310 public pbc::RepeatedField<int> Foo4 { 2311 get { return foo4_; } 2312 } 2313 2314 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 2315 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] Equals(object other)2316 public override bool Equals(object other) { 2317 return Equals(other as ComplexOptionType1); 2318 } 2319 2320 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 2321 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] Equals(ComplexOptionType1 other)2322 public bool Equals(ComplexOptionType1 other) { 2323 if (ReferenceEquals(other, null)) { 2324 return false; 2325 } 2326 if (ReferenceEquals(other, this)) { 2327 return true; 2328 } 2329 if (Foo != other.Foo) return false; 2330 if (Foo2 != other.Foo2) return false; 2331 if (Foo3 != other.Foo3) return false; 2332 if(!foo4_.Equals(other.foo4_)) return false; 2333 return Equals(_unknownFields, other._unknownFields); 2334 } 2335 2336 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 2337 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] GetHashCode()2338 public override int GetHashCode() { 2339 int hash = 1; 2340 if (Foo != 0) hash ^= Foo.GetHashCode(); 2341 if (Foo2 != 0) hash ^= Foo2.GetHashCode(); 2342 if (Foo3 != 0) hash ^= Foo3.GetHashCode(); 2343 hash ^= foo4_.GetHashCode(); 2344 if (_unknownFields != null) { 2345 hash ^= _unknownFields.GetHashCode(); 2346 } 2347 return hash; 2348 } 2349 2350 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 2351 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] ToString()2352 public override string ToString() { 2353 return pb::JsonFormatter.ToDiagnosticString(this); 2354 } 2355 2356 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 2357 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] WriteTo(pb::CodedOutputStream output)2358 public void WriteTo(pb::CodedOutputStream output) { 2359 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 2360 output.WriteRawMessage(this); 2361 #else 2362 if (Foo != 0) { 2363 output.WriteRawTag(8); 2364 output.WriteInt32(Foo); 2365 } 2366 if (Foo2 != 0) { 2367 output.WriteRawTag(16); 2368 output.WriteInt32(Foo2); 2369 } 2370 if (Foo3 != 0) { 2371 output.WriteRawTag(24); 2372 output.WriteInt32(Foo3); 2373 } 2374 foo4_.WriteTo(output, _repeated_foo4_codec); 2375 if (_unknownFields != null) { 2376 _unknownFields.WriteTo(output); 2377 } 2378 #endif 2379 } 2380 2381 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 2382 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 2383 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] IBufferMessage.InternalWriteTo(ref pb::WriteContext output)2384 void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { 2385 if (Foo != 0) { 2386 output.WriteRawTag(8); 2387 output.WriteInt32(Foo); 2388 } 2389 if (Foo2 != 0) { 2390 output.WriteRawTag(16); 2391 output.WriteInt32(Foo2); 2392 } 2393 if (Foo3 != 0) { 2394 output.WriteRawTag(24); 2395 output.WriteInt32(Foo3); 2396 } 2397 foo4_.WriteTo(ref output, _repeated_foo4_codec); 2398 if (_unknownFields != null) { 2399 _unknownFields.WriteTo(ref output); 2400 } 2401 } 2402 #endif 2403 2404 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 2405 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] CalculateSize()2406 public int CalculateSize() { 2407 int size = 0; 2408 if (Foo != 0) { 2409 size += 1 + pb::CodedOutputStream.ComputeInt32Size(Foo); 2410 } 2411 if (Foo2 != 0) { 2412 size += 1 + pb::CodedOutputStream.ComputeInt32Size(Foo2); 2413 } 2414 if (Foo3 != 0) { 2415 size += 1 + pb::CodedOutputStream.ComputeInt32Size(Foo3); 2416 } 2417 size += foo4_.CalculateSize(_repeated_foo4_codec); 2418 if (_unknownFields != null) { 2419 size += _unknownFields.CalculateSize(); 2420 } 2421 return size; 2422 } 2423 2424 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 2425 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] MergeFrom(ComplexOptionType1 other)2426 public void MergeFrom(ComplexOptionType1 other) { 2427 if (other == null) { 2428 return; 2429 } 2430 if (other.Foo != 0) { 2431 Foo = other.Foo; 2432 } 2433 if (other.Foo2 != 0) { 2434 Foo2 = other.Foo2; 2435 } 2436 if (other.Foo3 != 0) { 2437 Foo3 = other.Foo3; 2438 } 2439 foo4_.Add(other.foo4_); 2440 _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); 2441 } 2442 2443 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 2444 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] MergeFrom(pb::CodedInputStream input)2445 public void MergeFrom(pb::CodedInputStream input) { 2446 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 2447 input.ReadRawMessage(this); 2448 #else 2449 uint tag; 2450 while ((tag = input.ReadTag()) != 0) { 2451 switch(tag) { 2452 default: 2453 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); 2454 break; 2455 case 8: { 2456 Foo = input.ReadInt32(); 2457 break; 2458 } 2459 case 16: { 2460 Foo2 = input.ReadInt32(); 2461 break; 2462 } 2463 case 24: { 2464 Foo3 = input.ReadInt32(); 2465 break; 2466 } 2467 case 34: 2468 case 32: { 2469 foo4_.AddEntriesFrom(input, _repeated_foo4_codec); 2470 break; 2471 } 2472 } 2473 } 2474 #endif 2475 } 2476 2477 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 2478 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 2479 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] IBufferMessage.InternalMergeFrom(ref pb::ParseContext input)2480 void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { 2481 uint tag; 2482 while ((tag = input.ReadTag()) != 0) { 2483 switch(tag) { 2484 default: 2485 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); 2486 break; 2487 case 8: { 2488 Foo = input.ReadInt32(); 2489 break; 2490 } 2491 case 16: { 2492 Foo2 = input.ReadInt32(); 2493 break; 2494 } 2495 case 24: { 2496 Foo3 = input.ReadInt32(); 2497 break; 2498 } 2499 case 34: 2500 case 32: { 2501 foo4_.AddEntriesFrom(ref input, _repeated_foo4_codec); 2502 break; 2503 } 2504 } 2505 } 2506 } 2507 #endif 2508 2509 } 2510 2511 public sealed partial class ComplexOptionType2 : pb::IMessage<ComplexOptionType2> 2512 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 2513 , pb::IBufferMessage 2514 #endif 2515 { 2516 private static readonly pb::MessageParser<ComplexOptionType2> _parser = new pb::MessageParser<ComplexOptionType2>(() => new ComplexOptionType2()); 2517 private pb::UnknownFieldSet _unknownFields; 2518 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 2519 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 2520 public static pb::MessageParser<ComplexOptionType2> Parser { get { return _parser; } } 2521 2522 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 2523 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 2524 public static pbr::MessageDescriptor Descriptor { 2525 get { return global::UnitTest.Issues.TestProtos.UnittestCustomOptionsProto3Reflection.Descriptor.MessageTypes[13]; } 2526 } 2527 2528 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 2529 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 2530 pbr::MessageDescriptor pb::IMessage.Descriptor { 2531 get { return Descriptor; } 2532 } 2533 2534 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 2535 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] ComplexOptionType2()2536 public ComplexOptionType2() { 2537 OnConstruction(); 2538 } 2539 OnConstruction()2540 partial void OnConstruction(); 2541 2542 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 2543 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] ComplexOptionType2(ComplexOptionType2 other)2544 public ComplexOptionType2(ComplexOptionType2 other) : this() { 2545 bar_ = other.bar_ != null ? other.bar_.Clone() : null; 2546 baz_ = other.baz_; 2547 fred_ = other.fred_ != null ? other.fred_.Clone() : null; 2548 barney_ = other.barney_.Clone(); 2549 _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); 2550 } 2551 2552 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 2553 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] Clone()2554 public ComplexOptionType2 Clone() { 2555 return new ComplexOptionType2(this); 2556 } 2557 2558 /// <summary>Field number for the "bar" field.</summary> 2559 public const int BarFieldNumber = 1; 2560 private global::UnitTest.Issues.TestProtos.ComplexOptionType1 bar_; 2561 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 2562 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 2563 public global::UnitTest.Issues.TestProtos.ComplexOptionType1 Bar { 2564 get { return bar_; } 2565 set { 2566 bar_ = value; 2567 } 2568 } 2569 2570 /// <summary>Field number for the "baz" field.</summary> 2571 public const int BazFieldNumber = 2; 2572 private int baz_; 2573 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 2574 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 2575 public int Baz { 2576 get { return baz_; } 2577 set { 2578 baz_ = value; 2579 } 2580 } 2581 2582 /// <summary>Field number for the "fred" field.</summary> 2583 public const int FredFieldNumber = 3; 2584 private global::UnitTest.Issues.TestProtos.ComplexOptionType2.Types.ComplexOptionType4 fred_; 2585 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 2586 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 2587 public global::UnitTest.Issues.TestProtos.ComplexOptionType2.Types.ComplexOptionType4 Fred { 2588 get { return fred_; } 2589 set { 2590 fred_ = value; 2591 } 2592 } 2593 2594 /// <summary>Field number for the "barney" field.</summary> 2595 public const int BarneyFieldNumber = 4; 2596 private static readonly pb::FieldCodec<global::UnitTest.Issues.TestProtos.ComplexOptionType2.Types.ComplexOptionType4> _repeated_barney_codec 2597 = pb::FieldCodec.ForMessage(34, global::UnitTest.Issues.TestProtos.ComplexOptionType2.Types.ComplexOptionType4.Parser); 2598 private readonly pbc::RepeatedField<global::UnitTest.Issues.TestProtos.ComplexOptionType2.Types.ComplexOptionType4> barney_ = new pbc::RepeatedField<global::UnitTest.Issues.TestProtos.ComplexOptionType2.Types.ComplexOptionType4>(); 2599 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 2600 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 2601 public pbc::RepeatedField<global::UnitTest.Issues.TestProtos.ComplexOptionType2.Types.ComplexOptionType4> Barney { 2602 get { return barney_; } 2603 } 2604 2605 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 2606 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] Equals(object other)2607 public override bool Equals(object other) { 2608 return Equals(other as ComplexOptionType2); 2609 } 2610 2611 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 2612 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] Equals(ComplexOptionType2 other)2613 public bool Equals(ComplexOptionType2 other) { 2614 if (ReferenceEquals(other, null)) { 2615 return false; 2616 } 2617 if (ReferenceEquals(other, this)) { 2618 return true; 2619 } 2620 if (!object.Equals(Bar, other.Bar)) return false; 2621 if (Baz != other.Baz) return false; 2622 if (!object.Equals(Fred, other.Fred)) return false; 2623 if(!barney_.Equals(other.barney_)) return false; 2624 return Equals(_unknownFields, other._unknownFields); 2625 } 2626 2627 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 2628 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] GetHashCode()2629 public override int GetHashCode() { 2630 int hash = 1; 2631 if (bar_ != null) hash ^= Bar.GetHashCode(); 2632 if (Baz != 0) hash ^= Baz.GetHashCode(); 2633 if (fred_ != null) hash ^= Fred.GetHashCode(); 2634 hash ^= barney_.GetHashCode(); 2635 if (_unknownFields != null) { 2636 hash ^= _unknownFields.GetHashCode(); 2637 } 2638 return hash; 2639 } 2640 2641 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 2642 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] ToString()2643 public override string ToString() { 2644 return pb::JsonFormatter.ToDiagnosticString(this); 2645 } 2646 2647 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 2648 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] WriteTo(pb::CodedOutputStream output)2649 public void WriteTo(pb::CodedOutputStream output) { 2650 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 2651 output.WriteRawMessage(this); 2652 #else 2653 if (bar_ != null) { 2654 output.WriteRawTag(10); 2655 output.WriteMessage(Bar); 2656 } 2657 if (Baz != 0) { 2658 output.WriteRawTag(16); 2659 output.WriteInt32(Baz); 2660 } 2661 if (fred_ != null) { 2662 output.WriteRawTag(26); 2663 output.WriteMessage(Fred); 2664 } 2665 barney_.WriteTo(output, _repeated_barney_codec); 2666 if (_unknownFields != null) { 2667 _unknownFields.WriteTo(output); 2668 } 2669 #endif 2670 } 2671 2672 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 2673 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 2674 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] IBufferMessage.InternalWriteTo(ref pb::WriteContext output)2675 void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { 2676 if (bar_ != null) { 2677 output.WriteRawTag(10); 2678 output.WriteMessage(Bar); 2679 } 2680 if (Baz != 0) { 2681 output.WriteRawTag(16); 2682 output.WriteInt32(Baz); 2683 } 2684 if (fred_ != null) { 2685 output.WriteRawTag(26); 2686 output.WriteMessage(Fred); 2687 } 2688 barney_.WriteTo(ref output, _repeated_barney_codec); 2689 if (_unknownFields != null) { 2690 _unknownFields.WriteTo(ref output); 2691 } 2692 } 2693 #endif 2694 2695 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 2696 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] CalculateSize()2697 public int CalculateSize() { 2698 int size = 0; 2699 if (bar_ != null) { 2700 size += 1 + pb::CodedOutputStream.ComputeMessageSize(Bar); 2701 } 2702 if (Baz != 0) { 2703 size += 1 + pb::CodedOutputStream.ComputeInt32Size(Baz); 2704 } 2705 if (fred_ != null) { 2706 size += 1 + pb::CodedOutputStream.ComputeMessageSize(Fred); 2707 } 2708 size += barney_.CalculateSize(_repeated_barney_codec); 2709 if (_unknownFields != null) { 2710 size += _unknownFields.CalculateSize(); 2711 } 2712 return size; 2713 } 2714 2715 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 2716 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] MergeFrom(ComplexOptionType2 other)2717 public void MergeFrom(ComplexOptionType2 other) { 2718 if (other == null) { 2719 return; 2720 } 2721 if (other.bar_ != null) { 2722 if (bar_ == null) { 2723 Bar = new global::UnitTest.Issues.TestProtos.ComplexOptionType1(); 2724 } 2725 Bar.MergeFrom(other.Bar); 2726 } 2727 if (other.Baz != 0) { 2728 Baz = other.Baz; 2729 } 2730 if (other.fred_ != null) { 2731 if (fred_ == null) { 2732 Fred = new global::UnitTest.Issues.TestProtos.ComplexOptionType2.Types.ComplexOptionType4(); 2733 } 2734 Fred.MergeFrom(other.Fred); 2735 } 2736 barney_.Add(other.barney_); 2737 _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); 2738 } 2739 2740 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 2741 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] MergeFrom(pb::CodedInputStream input)2742 public void MergeFrom(pb::CodedInputStream input) { 2743 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 2744 input.ReadRawMessage(this); 2745 #else 2746 uint tag; 2747 while ((tag = input.ReadTag()) != 0) { 2748 switch(tag) { 2749 default: 2750 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); 2751 break; 2752 case 10: { 2753 if (bar_ == null) { 2754 Bar = new global::UnitTest.Issues.TestProtos.ComplexOptionType1(); 2755 } 2756 input.ReadMessage(Bar); 2757 break; 2758 } 2759 case 16: { 2760 Baz = input.ReadInt32(); 2761 break; 2762 } 2763 case 26: { 2764 if (fred_ == null) { 2765 Fred = new global::UnitTest.Issues.TestProtos.ComplexOptionType2.Types.ComplexOptionType4(); 2766 } 2767 input.ReadMessage(Fred); 2768 break; 2769 } 2770 case 34: { 2771 barney_.AddEntriesFrom(input, _repeated_barney_codec); 2772 break; 2773 } 2774 } 2775 } 2776 #endif 2777 } 2778 2779 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 2780 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 2781 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] IBufferMessage.InternalMergeFrom(ref pb::ParseContext input)2782 void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { 2783 uint tag; 2784 while ((tag = input.ReadTag()) != 0) { 2785 switch(tag) { 2786 default: 2787 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); 2788 break; 2789 case 10: { 2790 if (bar_ == null) { 2791 Bar = new global::UnitTest.Issues.TestProtos.ComplexOptionType1(); 2792 } 2793 input.ReadMessage(Bar); 2794 break; 2795 } 2796 case 16: { 2797 Baz = input.ReadInt32(); 2798 break; 2799 } 2800 case 26: { 2801 if (fred_ == null) { 2802 Fred = new global::UnitTest.Issues.TestProtos.ComplexOptionType2.Types.ComplexOptionType4(); 2803 } 2804 input.ReadMessage(Fred); 2805 break; 2806 } 2807 case 34: { 2808 barney_.AddEntriesFrom(ref input, _repeated_barney_codec); 2809 break; 2810 } 2811 } 2812 } 2813 } 2814 #endif 2815 2816 #region Nested types 2817 /// <summary>Container for nested types declared in the ComplexOptionType2 message type.</summary> 2818 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 2819 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 2820 public static partial class Types { 2821 public sealed partial class ComplexOptionType4 : pb::IMessage<ComplexOptionType4> 2822 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 2823 , pb::IBufferMessage 2824 #endif 2825 { 2826 private static readonly pb::MessageParser<ComplexOptionType4> _parser = new pb::MessageParser<ComplexOptionType4>(() => new ComplexOptionType4()); 2827 private pb::UnknownFieldSet _unknownFields; 2828 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 2829 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 2830 public static pb::MessageParser<ComplexOptionType4> Parser { get { return _parser; } } 2831 2832 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 2833 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 2834 public static pbr::MessageDescriptor Descriptor { 2835 get { return global::UnitTest.Issues.TestProtos.ComplexOptionType2.Descriptor.NestedTypes[0]; } 2836 } 2837 2838 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 2839 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 2840 pbr::MessageDescriptor pb::IMessage.Descriptor { 2841 get { return Descriptor; } 2842 } 2843 2844 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 2845 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] ComplexOptionType4()2846 public ComplexOptionType4() { 2847 OnConstruction(); 2848 } 2849 OnConstruction()2850 partial void OnConstruction(); 2851 2852 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 2853 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] ComplexOptionType4(ComplexOptionType4 other)2854 public ComplexOptionType4(ComplexOptionType4 other) : this() { 2855 waldo_ = other.waldo_; 2856 _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); 2857 } 2858 2859 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 2860 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] Clone()2861 public ComplexOptionType4 Clone() { 2862 return new ComplexOptionType4(this); 2863 } 2864 2865 /// <summary>Field number for the "waldo" field.</summary> 2866 public const int WaldoFieldNumber = 1; 2867 private int waldo_; 2868 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 2869 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 2870 public int Waldo { 2871 get { return waldo_; } 2872 set { 2873 waldo_ = value; 2874 } 2875 } 2876 2877 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 2878 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] Equals(object other)2879 public override bool Equals(object other) { 2880 return Equals(other as ComplexOptionType4); 2881 } 2882 2883 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 2884 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] Equals(ComplexOptionType4 other)2885 public bool Equals(ComplexOptionType4 other) { 2886 if (ReferenceEquals(other, null)) { 2887 return false; 2888 } 2889 if (ReferenceEquals(other, this)) { 2890 return true; 2891 } 2892 if (Waldo != other.Waldo) return false; 2893 return Equals(_unknownFields, other._unknownFields); 2894 } 2895 2896 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 2897 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] GetHashCode()2898 public override int GetHashCode() { 2899 int hash = 1; 2900 if (Waldo != 0) hash ^= Waldo.GetHashCode(); 2901 if (_unknownFields != null) { 2902 hash ^= _unknownFields.GetHashCode(); 2903 } 2904 return hash; 2905 } 2906 2907 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 2908 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] ToString()2909 public override string ToString() { 2910 return pb::JsonFormatter.ToDiagnosticString(this); 2911 } 2912 2913 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 2914 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] WriteTo(pb::CodedOutputStream output)2915 public void WriteTo(pb::CodedOutputStream output) { 2916 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 2917 output.WriteRawMessage(this); 2918 #else 2919 if (Waldo != 0) { 2920 output.WriteRawTag(8); 2921 output.WriteInt32(Waldo); 2922 } 2923 if (_unknownFields != null) { 2924 _unknownFields.WriteTo(output); 2925 } 2926 #endif 2927 } 2928 2929 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 2930 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 2931 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] IBufferMessage.InternalWriteTo(ref pb::WriteContext output)2932 void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { 2933 if (Waldo != 0) { 2934 output.WriteRawTag(8); 2935 output.WriteInt32(Waldo); 2936 } 2937 if (_unknownFields != null) { 2938 _unknownFields.WriteTo(ref output); 2939 } 2940 } 2941 #endif 2942 2943 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 2944 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] CalculateSize()2945 public int CalculateSize() { 2946 int size = 0; 2947 if (Waldo != 0) { 2948 size += 1 + pb::CodedOutputStream.ComputeInt32Size(Waldo); 2949 } 2950 if (_unknownFields != null) { 2951 size += _unknownFields.CalculateSize(); 2952 } 2953 return size; 2954 } 2955 2956 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 2957 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] MergeFrom(ComplexOptionType4 other)2958 public void MergeFrom(ComplexOptionType4 other) { 2959 if (other == null) { 2960 return; 2961 } 2962 if (other.Waldo != 0) { 2963 Waldo = other.Waldo; 2964 } 2965 _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); 2966 } 2967 2968 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 2969 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] MergeFrom(pb::CodedInputStream input)2970 public void MergeFrom(pb::CodedInputStream input) { 2971 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 2972 input.ReadRawMessage(this); 2973 #else 2974 uint tag; 2975 while ((tag = input.ReadTag()) != 0) { 2976 switch(tag) { 2977 default: 2978 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); 2979 break; 2980 case 8: { 2981 Waldo = input.ReadInt32(); 2982 break; 2983 } 2984 } 2985 } 2986 #endif 2987 } 2988 2989 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 2990 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 2991 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] IBufferMessage.InternalMergeFrom(ref pb::ParseContext input)2992 void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { 2993 uint tag; 2994 while ((tag = input.ReadTag()) != 0) { 2995 switch(tag) { 2996 default: 2997 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); 2998 break; 2999 case 8: { 3000 Waldo = input.ReadInt32(); 3001 break; 3002 } 3003 } 3004 } 3005 } 3006 #endif 3007 3008 #region Extensions 3009 /// <summary>Container for extensions for other messages declared in the ComplexOptionType4 message type.</summary> 3010 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 3011 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 3012 public static partial class Extensions { 3013 public static readonly pb::Extension<global::Google.Protobuf.Reflection.MessageOptions, global::UnitTest.Issues.TestProtos.ComplexOptionType2.Types.ComplexOptionType4> ComplexOpt4 = 3014 new pb::Extension<global::Google.Protobuf.Reflection.MessageOptions, global::UnitTest.Issues.TestProtos.ComplexOptionType2.Types.ComplexOptionType4>(7633546, pb::FieldCodec.ForMessage(61068370, global::UnitTest.Issues.TestProtos.ComplexOptionType2.Types.ComplexOptionType4.Parser)); 3015 } 3016 #endregion 3017 3018 } 3019 3020 } 3021 #endregion 3022 3023 } 3024 3025 public sealed partial class ComplexOptionType3 : pb::IMessage<ComplexOptionType3> 3026 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 3027 , pb::IBufferMessage 3028 #endif 3029 { 3030 private static readonly pb::MessageParser<ComplexOptionType3> _parser = new pb::MessageParser<ComplexOptionType3>(() => new ComplexOptionType3()); 3031 private pb::UnknownFieldSet _unknownFields; 3032 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 3033 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 3034 public static pb::MessageParser<ComplexOptionType3> Parser { get { return _parser; } } 3035 3036 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 3037 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 3038 public static pbr::MessageDescriptor Descriptor { 3039 get { return global::UnitTest.Issues.TestProtos.UnittestCustomOptionsProto3Reflection.Descriptor.MessageTypes[14]; } 3040 } 3041 3042 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 3043 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 3044 pbr::MessageDescriptor pb::IMessage.Descriptor { 3045 get { return Descriptor; } 3046 } 3047 3048 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 3049 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] ComplexOptionType3()3050 public ComplexOptionType3() { 3051 OnConstruction(); 3052 } 3053 OnConstruction()3054 partial void OnConstruction(); 3055 3056 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 3057 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] ComplexOptionType3(ComplexOptionType3 other)3058 public ComplexOptionType3(ComplexOptionType3 other) : this() { 3059 qux_ = other.qux_; 3060 _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); 3061 } 3062 3063 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 3064 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] Clone()3065 public ComplexOptionType3 Clone() { 3066 return new ComplexOptionType3(this); 3067 } 3068 3069 /// <summary>Field number for the "qux" field.</summary> 3070 public const int QuxFieldNumber = 1; 3071 private int qux_; 3072 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 3073 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 3074 public int Qux { 3075 get { return qux_; } 3076 set { 3077 qux_ = value; 3078 } 3079 } 3080 3081 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 3082 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] Equals(object other)3083 public override bool Equals(object other) { 3084 return Equals(other as ComplexOptionType3); 3085 } 3086 3087 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 3088 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] Equals(ComplexOptionType3 other)3089 public bool Equals(ComplexOptionType3 other) { 3090 if (ReferenceEquals(other, null)) { 3091 return false; 3092 } 3093 if (ReferenceEquals(other, this)) { 3094 return true; 3095 } 3096 if (Qux != other.Qux) return false; 3097 return Equals(_unknownFields, other._unknownFields); 3098 } 3099 3100 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 3101 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] GetHashCode()3102 public override int GetHashCode() { 3103 int hash = 1; 3104 if (Qux != 0) hash ^= Qux.GetHashCode(); 3105 if (_unknownFields != null) { 3106 hash ^= _unknownFields.GetHashCode(); 3107 } 3108 return hash; 3109 } 3110 3111 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 3112 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] ToString()3113 public override string ToString() { 3114 return pb::JsonFormatter.ToDiagnosticString(this); 3115 } 3116 3117 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 3118 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] WriteTo(pb::CodedOutputStream output)3119 public void WriteTo(pb::CodedOutputStream output) { 3120 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 3121 output.WriteRawMessage(this); 3122 #else 3123 if (Qux != 0) { 3124 output.WriteRawTag(8); 3125 output.WriteInt32(Qux); 3126 } 3127 if (_unknownFields != null) { 3128 _unknownFields.WriteTo(output); 3129 } 3130 #endif 3131 } 3132 3133 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 3134 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 3135 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] IBufferMessage.InternalWriteTo(ref pb::WriteContext output)3136 void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { 3137 if (Qux != 0) { 3138 output.WriteRawTag(8); 3139 output.WriteInt32(Qux); 3140 } 3141 if (_unknownFields != null) { 3142 _unknownFields.WriteTo(ref output); 3143 } 3144 } 3145 #endif 3146 3147 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 3148 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] CalculateSize()3149 public int CalculateSize() { 3150 int size = 0; 3151 if (Qux != 0) { 3152 size += 1 + pb::CodedOutputStream.ComputeInt32Size(Qux); 3153 } 3154 if (_unknownFields != null) { 3155 size += _unknownFields.CalculateSize(); 3156 } 3157 return size; 3158 } 3159 3160 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 3161 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] MergeFrom(ComplexOptionType3 other)3162 public void MergeFrom(ComplexOptionType3 other) { 3163 if (other == null) { 3164 return; 3165 } 3166 if (other.Qux != 0) { 3167 Qux = other.Qux; 3168 } 3169 _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); 3170 } 3171 3172 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 3173 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] MergeFrom(pb::CodedInputStream input)3174 public void MergeFrom(pb::CodedInputStream input) { 3175 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 3176 input.ReadRawMessage(this); 3177 #else 3178 uint tag; 3179 while ((tag = input.ReadTag()) != 0) { 3180 switch(tag) { 3181 default: 3182 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); 3183 break; 3184 case 8: { 3185 Qux = input.ReadInt32(); 3186 break; 3187 } 3188 } 3189 } 3190 #endif 3191 } 3192 3193 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 3194 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 3195 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] IBufferMessage.InternalMergeFrom(ref pb::ParseContext input)3196 void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { 3197 uint tag; 3198 while ((tag = input.ReadTag()) != 0) { 3199 switch(tag) { 3200 default: 3201 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); 3202 break; 3203 case 8: { 3204 Qux = input.ReadInt32(); 3205 break; 3206 } 3207 } 3208 } 3209 } 3210 #endif 3211 3212 } 3213 3214 /// <summary> 3215 /// Note that we try various different ways of naming the same extension. 3216 /// </summary> 3217 public sealed partial class VariousComplexOptions : pb::IMessage<VariousComplexOptions> 3218 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 3219 , pb::IBufferMessage 3220 #endif 3221 { 3222 private static readonly pb::MessageParser<VariousComplexOptions> _parser = new pb::MessageParser<VariousComplexOptions>(() => new VariousComplexOptions()); 3223 private pb::UnknownFieldSet _unknownFields; 3224 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 3225 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 3226 public static pb::MessageParser<VariousComplexOptions> Parser { get { return _parser; } } 3227 3228 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 3229 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 3230 public static pbr::MessageDescriptor Descriptor { 3231 get { return global::UnitTest.Issues.TestProtos.UnittestCustomOptionsProto3Reflection.Descriptor.MessageTypes[15]; } 3232 } 3233 3234 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 3235 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 3236 pbr::MessageDescriptor pb::IMessage.Descriptor { 3237 get { return Descriptor; } 3238 } 3239 3240 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 3241 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] VariousComplexOptions()3242 public VariousComplexOptions() { 3243 OnConstruction(); 3244 } 3245 OnConstruction()3246 partial void OnConstruction(); 3247 3248 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 3249 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] VariousComplexOptions(VariousComplexOptions other)3250 public VariousComplexOptions(VariousComplexOptions other) : this() { 3251 _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); 3252 } 3253 3254 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 3255 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] Clone()3256 public VariousComplexOptions Clone() { 3257 return new VariousComplexOptions(this); 3258 } 3259 3260 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 3261 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] Equals(object other)3262 public override bool Equals(object other) { 3263 return Equals(other as VariousComplexOptions); 3264 } 3265 3266 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 3267 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] Equals(VariousComplexOptions other)3268 public bool Equals(VariousComplexOptions other) { 3269 if (ReferenceEquals(other, null)) { 3270 return false; 3271 } 3272 if (ReferenceEquals(other, this)) { 3273 return true; 3274 } 3275 return Equals(_unknownFields, other._unknownFields); 3276 } 3277 3278 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 3279 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] GetHashCode()3280 public override int GetHashCode() { 3281 int hash = 1; 3282 if (_unknownFields != null) { 3283 hash ^= _unknownFields.GetHashCode(); 3284 } 3285 return hash; 3286 } 3287 3288 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 3289 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] ToString()3290 public override string ToString() { 3291 return pb::JsonFormatter.ToDiagnosticString(this); 3292 } 3293 3294 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 3295 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] WriteTo(pb::CodedOutputStream output)3296 public void WriteTo(pb::CodedOutputStream output) { 3297 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 3298 output.WriteRawMessage(this); 3299 #else 3300 if (_unknownFields != null) { 3301 _unknownFields.WriteTo(output); 3302 } 3303 #endif 3304 } 3305 3306 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 3307 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 3308 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] IBufferMessage.InternalWriteTo(ref pb::WriteContext output)3309 void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { 3310 if (_unknownFields != null) { 3311 _unknownFields.WriteTo(ref output); 3312 } 3313 } 3314 #endif 3315 3316 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 3317 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] CalculateSize()3318 public int CalculateSize() { 3319 int size = 0; 3320 if (_unknownFields != null) { 3321 size += _unknownFields.CalculateSize(); 3322 } 3323 return size; 3324 } 3325 3326 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 3327 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] MergeFrom(VariousComplexOptions other)3328 public void MergeFrom(VariousComplexOptions other) { 3329 if (other == null) { 3330 return; 3331 } 3332 _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); 3333 } 3334 3335 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 3336 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] MergeFrom(pb::CodedInputStream input)3337 public void MergeFrom(pb::CodedInputStream input) { 3338 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 3339 input.ReadRawMessage(this); 3340 #else 3341 uint tag; 3342 while ((tag = input.ReadTag()) != 0) { 3343 switch(tag) { 3344 default: 3345 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); 3346 break; 3347 } 3348 } 3349 #endif 3350 } 3351 3352 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 3353 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 3354 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] IBufferMessage.InternalMergeFrom(ref pb::ParseContext input)3355 void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { 3356 uint tag; 3357 while ((tag = input.ReadTag()) != 0) { 3358 switch(tag) { 3359 default: 3360 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); 3361 break; 3362 } 3363 } 3364 } 3365 #endif 3366 3367 } 3368 3369 /// <summary> 3370 /// A helper type used to test aggregate option parsing 3371 /// </summary> 3372 public sealed partial class Aggregate : pb::IMessage<Aggregate> 3373 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 3374 , pb::IBufferMessage 3375 #endif 3376 { 3377 private static readonly pb::MessageParser<Aggregate> _parser = new pb::MessageParser<Aggregate>(() => new Aggregate()); 3378 private pb::UnknownFieldSet _unknownFields; 3379 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 3380 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 3381 public static pb::MessageParser<Aggregate> Parser { get { return _parser; } } 3382 3383 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 3384 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 3385 public static pbr::MessageDescriptor Descriptor { 3386 get { return global::UnitTest.Issues.TestProtos.UnittestCustomOptionsProto3Reflection.Descriptor.MessageTypes[16]; } 3387 } 3388 3389 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 3390 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 3391 pbr::MessageDescriptor pb::IMessage.Descriptor { 3392 get { return Descriptor; } 3393 } 3394 3395 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 3396 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] Aggregate()3397 public Aggregate() { 3398 OnConstruction(); 3399 } 3400 OnConstruction()3401 partial void OnConstruction(); 3402 3403 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 3404 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] Aggregate(Aggregate other)3405 public Aggregate(Aggregate other) : this() { 3406 i_ = other.i_; 3407 s_ = other.s_; 3408 sub_ = other.sub_ != null ? other.sub_.Clone() : null; 3409 _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); 3410 } 3411 3412 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 3413 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] Clone()3414 public Aggregate Clone() { 3415 return new Aggregate(this); 3416 } 3417 3418 /// <summary>Field number for the "i" field.</summary> 3419 public const int IFieldNumber = 1; 3420 private int i_; 3421 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 3422 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 3423 public int I { 3424 get { return i_; } 3425 set { 3426 i_ = value; 3427 } 3428 } 3429 3430 /// <summary>Field number for the "s" field.</summary> 3431 public const int SFieldNumber = 2; 3432 private string s_ = ""; 3433 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 3434 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 3435 public string S { 3436 get { return s_; } 3437 set { 3438 s_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); 3439 } 3440 } 3441 3442 /// <summary>Field number for the "sub" field.</summary> 3443 public const int SubFieldNumber = 3; 3444 private global::UnitTest.Issues.TestProtos.Aggregate sub_; 3445 /// <summary> 3446 /// A nested object 3447 /// </summary> 3448 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 3449 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 3450 public global::UnitTest.Issues.TestProtos.Aggregate Sub { 3451 get { return sub_; } 3452 set { 3453 sub_ = value; 3454 } 3455 } 3456 3457 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 3458 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] Equals(object other)3459 public override bool Equals(object other) { 3460 return Equals(other as Aggregate); 3461 } 3462 3463 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 3464 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] Equals(Aggregate other)3465 public bool Equals(Aggregate other) { 3466 if (ReferenceEquals(other, null)) { 3467 return false; 3468 } 3469 if (ReferenceEquals(other, this)) { 3470 return true; 3471 } 3472 if (I != other.I) return false; 3473 if (S != other.S) return false; 3474 if (!object.Equals(Sub, other.Sub)) return false; 3475 return Equals(_unknownFields, other._unknownFields); 3476 } 3477 3478 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 3479 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] GetHashCode()3480 public override int GetHashCode() { 3481 int hash = 1; 3482 if (I != 0) hash ^= I.GetHashCode(); 3483 if (S.Length != 0) hash ^= S.GetHashCode(); 3484 if (sub_ != null) hash ^= Sub.GetHashCode(); 3485 if (_unknownFields != null) { 3486 hash ^= _unknownFields.GetHashCode(); 3487 } 3488 return hash; 3489 } 3490 3491 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 3492 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] ToString()3493 public override string ToString() { 3494 return pb::JsonFormatter.ToDiagnosticString(this); 3495 } 3496 3497 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 3498 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] WriteTo(pb::CodedOutputStream output)3499 public void WriteTo(pb::CodedOutputStream output) { 3500 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 3501 output.WriteRawMessage(this); 3502 #else 3503 if (I != 0) { 3504 output.WriteRawTag(8); 3505 output.WriteInt32(I); 3506 } 3507 if (S.Length != 0) { 3508 output.WriteRawTag(18); 3509 output.WriteString(S); 3510 } 3511 if (sub_ != null) { 3512 output.WriteRawTag(26); 3513 output.WriteMessage(Sub); 3514 } 3515 if (_unknownFields != null) { 3516 _unknownFields.WriteTo(output); 3517 } 3518 #endif 3519 } 3520 3521 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 3522 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 3523 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] IBufferMessage.InternalWriteTo(ref pb::WriteContext output)3524 void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { 3525 if (I != 0) { 3526 output.WriteRawTag(8); 3527 output.WriteInt32(I); 3528 } 3529 if (S.Length != 0) { 3530 output.WriteRawTag(18); 3531 output.WriteString(S); 3532 } 3533 if (sub_ != null) { 3534 output.WriteRawTag(26); 3535 output.WriteMessage(Sub); 3536 } 3537 if (_unknownFields != null) { 3538 _unknownFields.WriteTo(ref output); 3539 } 3540 } 3541 #endif 3542 3543 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 3544 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] CalculateSize()3545 public int CalculateSize() { 3546 int size = 0; 3547 if (I != 0) { 3548 size += 1 + pb::CodedOutputStream.ComputeInt32Size(I); 3549 } 3550 if (S.Length != 0) { 3551 size += 1 + pb::CodedOutputStream.ComputeStringSize(S); 3552 } 3553 if (sub_ != null) { 3554 size += 1 + pb::CodedOutputStream.ComputeMessageSize(Sub); 3555 } 3556 if (_unknownFields != null) { 3557 size += _unknownFields.CalculateSize(); 3558 } 3559 return size; 3560 } 3561 3562 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 3563 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] MergeFrom(Aggregate other)3564 public void MergeFrom(Aggregate other) { 3565 if (other == null) { 3566 return; 3567 } 3568 if (other.I != 0) { 3569 I = other.I; 3570 } 3571 if (other.S.Length != 0) { 3572 S = other.S; 3573 } 3574 if (other.sub_ != null) { 3575 if (sub_ == null) { 3576 Sub = new global::UnitTest.Issues.TestProtos.Aggregate(); 3577 } 3578 Sub.MergeFrom(other.Sub); 3579 } 3580 _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); 3581 } 3582 3583 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 3584 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] MergeFrom(pb::CodedInputStream input)3585 public void MergeFrom(pb::CodedInputStream input) { 3586 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 3587 input.ReadRawMessage(this); 3588 #else 3589 uint tag; 3590 while ((tag = input.ReadTag()) != 0) { 3591 switch(tag) { 3592 default: 3593 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); 3594 break; 3595 case 8: { 3596 I = input.ReadInt32(); 3597 break; 3598 } 3599 case 18: { 3600 S = input.ReadString(); 3601 break; 3602 } 3603 case 26: { 3604 if (sub_ == null) { 3605 Sub = new global::UnitTest.Issues.TestProtos.Aggregate(); 3606 } 3607 input.ReadMessage(Sub); 3608 break; 3609 } 3610 } 3611 } 3612 #endif 3613 } 3614 3615 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 3616 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 3617 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] IBufferMessage.InternalMergeFrom(ref pb::ParseContext input)3618 void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { 3619 uint tag; 3620 while ((tag = input.ReadTag()) != 0) { 3621 switch(tag) { 3622 default: 3623 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); 3624 break; 3625 case 8: { 3626 I = input.ReadInt32(); 3627 break; 3628 } 3629 case 18: { 3630 S = input.ReadString(); 3631 break; 3632 } 3633 case 26: { 3634 if (sub_ == null) { 3635 Sub = new global::UnitTest.Issues.TestProtos.Aggregate(); 3636 } 3637 input.ReadMessage(Sub); 3638 break; 3639 } 3640 } 3641 } 3642 } 3643 #endif 3644 3645 } 3646 3647 public sealed partial class AggregateMessage : pb::IMessage<AggregateMessage> 3648 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 3649 , pb::IBufferMessage 3650 #endif 3651 { 3652 private static readonly pb::MessageParser<AggregateMessage> _parser = new pb::MessageParser<AggregateMessage>(() => new AggregateMessage()); 3653 private pb::UnknownFieldSet _unknownFields; 3654 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 3655 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 3656 public static pb::MessageParser<AggregateMessage> Parser { get { return _parser; } } 3657 3658 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 3659 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 3660 public static pbr::MessageDescriptor Descriptor { 3661 get { return global::UnitTest.Issues.TestProtos.UnittestCustomOptionsProto3Reflection.Descriptor.MessageTypes[17]; } 3662 } 3663 3664 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 3665 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 3666 pbr::MessageDescriptor pb::IMessage.Descriptor { 3667 get { return Descriptor; } 3668 } 3669 3670 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 3671 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] AggregateMessage()3672 public AggregateMessage() { 3673 OnConstruction(); 3674 } 3675 OnConstruction()3676 partial void OnConstruction(); 3677 3678 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 3679 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] AggregateMessage(AggregateMessage other)3680 public AggregateMessage(AggregateMessage other) : this() { 3681 fieldname_ = other.fieldname_; 3682 _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); 3683 } 3684 3685 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 3686 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] Clone()3687 public AggregateMessage Clone() { 3688 return new AggregateMessage(this); 3689 } 3690 3691 /// <summary>Field number for the "fieldname" field.</summary> 3692 public const int FieldnameFieldNumber = 1; 3693 private int fieldname_; 3694 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 3695 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 3696 public int Fieldname { 3697 get { return fieldname_; } 3698 set { 3699 fieldname_ = value; 3700 } 3701 } 3702 3703 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 3704 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] Equals(object other)3705 public override bool Equals(object other) { 3706 return Equals(other as AggregateMessage); 3707 } 3708 3709 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 3710 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] Equals(AggregateMessage other)3711 public bool Equals(AggregateMessage other) { 3712 if (ReferenceEquals(other, null)) { 3713 return false; 3714 } 3715 if (ReferenceEquals(other, this)) { 3716 return true; 3717 } 3718 if (Fieldname != other.Fieldname) return false; 3719 return Equals(_unknownFields, other._unknownFields); 3720 } 3721 3722 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 3723 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] GetHashCode()3724 public override int GetHashCode() { 3725 int hash = 1; 3726 if (Fieldname != 0) hash ^= Fieldname.GetHashCode(); 3727 if (_unknownFields != null) { 3728 hash ^= _unknownFields.GetHashCode(); 3729 } 3730 return hash; 3731 } 3732 3733 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 3734 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] ToString()3735 public override string ToString() { 3736 return pb::JsonFormatter.ToDiagnosticString(this); 3737 } 3738 3739 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 3740 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] WriteTo(pb::CodedOutputStream output)3741 public void WriteTo(pb::CodedOutputStream output) { 3742 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 3743 output.WriteRawMessage(this); 3744 #else 3745 if (Fieldname != 0) { 3746 output.WriteRawTag(8); 3747 output.WriteInt32(Fieldname); 3748 } 3749 if (_unknownFields != null) { 3750 _unknownFields.WriteTo(output); 3751 } 3752 #endif 3753 } 3754 3755 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 3756 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 3757 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] IBufferMessage.InternalWriteTo(ref pb::WriteContext output)3758 void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { 3759 if (Fieldname != 0) { 3760 output.WriteRawTag(8); 3761 output.WriteInt32(Fieldname); 3762 } 3763 if (_unknownFields != null) { 3764 _unknownFields.WriteTo(ref output); 3765 } 3766 } 3767 #endif 3768 3769 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 3770 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] CalculateSize()3771 public int CalculateSize() { 3772 int size = 0; 3773 if (Fieldname != 0) { 3774 size += 1 + pb::CodedOutputStream.ComputeInt32Size(Fieldname); 3775 } 3776 if (_unknownFields != null) { 3777 size += _unknownFields.CalculateSize(); 3778 } 3779 return size; 3780 } 3781 3782 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 3783 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] MergeFrom(AggregateMessage other)3784 public void MergeFrom(AggregateMessage other) { 3785 if (other == null) { 3786 return; 3787 } 3788 if (other.Fieldname != 0) { 3789 Fieldname = other.Fieldname; 3790 } 3791 _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); 3792 } 3793 3794 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 3795 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] MergeFrom(pb::CodedInputStream input)3796 public void MergeFrom(pb::CodedInputStream input) { 3797 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 3798 input.ReadRawMessage(this); 3799 #else 3800 uint tag; 3801 while ((tag = input.ReadTag()) != 0) { 3802 switch(tag) { 3803 default: 3804 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); 3805 break; 3806 case 8: { 3807 Fieldname = input.ReadInt32(); 3808 break; 3809 } 3810 } 3811 } 3812 #endif 3813 } 3814 3815 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 3816 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 3817 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] IBufferMessage.InternalMergeFrom(ref pb::ParseContext input)3818 void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { 3819 uint tag; 3820 while ((tag = input.ReadTag()) != 0) { 3821 switch(tag) { 3822 default: 3823 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); 3824 break; 3825 case 8: { 3826 Fieldname = input.ReadInt32(); 3827 break; 3828 } 3829 } 3830 } 3831 } 3832 #endif 3833 3834 } 3835 3836 /// <summary> 3837 /// Test custom options for nested type. 3838 /// </summary> 3839 public sealed partial class NestedOptionType : pb::IMessage<NestedOptionType> 3840 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 3841 , pb::IBufferMessage 3842 #endif 3843 { 3844 private static readonly pb::MessageParser<NestedOptionType> _parser = new pb::MessageParser<NestedOptionType>(() => new NestedOptionType()); 3845 private pb::UnknownFieldSet _unknownFields; 3846 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 3847 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 3848 public static pb::MessageParser<NestedOptionType> Parser { get { return _parser; } } 3849 3850 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 3851 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 3852 public static pbr::MessageDescriptor Descriptor { 3853 get { return global::UnitTest.Issues.TestProtos.UnittestCustomOptionsProto3Reflection.Descriptor.MessageTypes[18]; } 3854 } 3855 3856 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 3857 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 3858 pbr::MessageDescriptor pb::IMessage.Descriptor { 3859 get { return Descriptor; } 3860 } 3861 3862 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 3863 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] NestedOptionType()3864 public NestedOptionType() { 3865 OnConstruction(); 3866 } 3867 OnConstruction()3868 partial void OnConstruction(); 3869 3870 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 3871 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] NestedOptionType(NestedOptionType other)3872 public NestedOptionType(NestedOptionType other) : this() { 3873 _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); 3874 } 3875 3876 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 3877 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] Clone()3878 public NestedOptionType Clone() { 3879 return new NestedOptionType(this); 3880 } 3881 3882 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 3883 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] Equals(object other)3884 public override bool Equals(object other) { 3885 return Equals(other as NestedOptionType); 3886 } 3887 3888 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 3889 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] Equals(NestedOptionType other)3890 public bool Equals(NestedOptionType other) { 3891 if (ReferenceEquals(other, null)) { 3892 return false; 3893 } 3894 if (ReferenceEquals(other, this)) { 3895 return true; 3896 } 3897 return Equals(_unknownFields, other._unknownFields); 3898 } 3899 3900 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 3901 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] GetHashCode()3902 public override int GetHashCode() { 3903 int hash = 1; 3904 if (_unknownFields != null) { 3905 hash ^= _unknownFields.GetHashCode(); 3906 } 3907 return hash; 3908 } 3909 3910 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 3911 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] ToString()3912 public override string ToString() { 3913 return pb::JsonFormatter.ToDiagnosticString(this); 3914 } 3915 3916 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 3917 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] WriteTo(pb::CodedOutputStream output)3918 public void WriteTo(pb::CodedOutputStream output) { 3919 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 3920 output.WriteRawMessage(this); 3921 #else 3922 if (_unknownFields != null) { 3923 _unknownFields.WriteTo(output); 3924 } 3925 #endif 3926 } 3927 3928 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 3929 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 3930 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] IBufferMessage.InternalWriteTo(ref pb::WriteContext output)3931 void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { 3932 if (_unknownFields != null) { 3933 _unknownFields.WriteTo(ref output); 3934 } 3935 } 3936 #endif 3937 3938 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 3939 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] CalculateSize()3940 public int CalculateSize() { 3941 int size = 0; 3942 if (_unknownFields != null) { 3943 size += _unknownFields.CalculateSize(); 3944 } 3945 return size; 3946 } 3947 3948 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 3949 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] MergeFrom(NestedOptionType other)3950 public void MergeFrom(NestedOptionType other) { 3951 if (other == null) { 3952 return; 3953 } 3954 _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); 3955 } 3956 3957 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 3958 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] MergeFrom(pb::CodedInputStream input)3959 public void MergeFrom(pb::CodedInputStream input) { 3960 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 3961 input.ReadRawMessage(this); 3962 #else 3963 uint tag; 3964 while ((tag = input.ReadTag()) != 0) { 3965 switch(tag) { 3966 default: 3967 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); 3968 break; 3969 } 3970 } 3971 #endif 3972 } 3973 3974 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 3975 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 3976 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] IBufferMessage.InternalMergeFrom(ref pb::ParseContext input)3977 void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { 3978 uint tag; 3979 while ((tag = input.ReadTag()) != 0) { 3980 switch(tag) { 3981 default: 3982 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); 3983 break; 3984 } 3985 } 3986 } 3987 #endif 3988 3989 #region Nested types 3990 /// <summary>Container for nested types declared in the NestedOptionType message type.</summary> 3991 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 3992 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 3993 public static partial class Types { 3994 public enum NestedEnum { 3995 [pbr::OriginalName("UNSPECIFIED")] Unspecified = 0, 3996 [pbr::OriginalName("NESTED_ENUM_VALUE")] Value = 1, 3997 } 3998 3999 public sealed partial class NestedMessage : pb::IMessage<NestedMessage> 4000 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 4001 , pb::IBufferMessage 4002 #endif 4003 { 4004 private static readonly pb::MessageParser<NestedMessage> _parser = new pb::MessageParser<NestedMessage>(() => new NestedMessage()); 4005 private pb::UnknownFieldSet _unknownFields; 4006 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 4007 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 4008 public static pb::MessageParser<NestedMessage> Parser { get { return _parser; } } 4009 4010 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 4011 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 4012 public static pbr::MessageDescriptor Descriptor { 4013 get { return global::UnitTest.Issues.TestProtos.NestedOptionType.Descriptor.NestedTypes[0]; } 4014 } 4015 4016 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 4017 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 4018 pbr::MessageDescriptor pb::IMessage.Descriptor { 4019 get { return Descriptor; } 4020 } 4021 4022 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 4023 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] NestedMessage()4024 public NestedMessage() { 4025 OnConstruction(); 4026 } 4027 OnConstruction()4028 partial void OnConstruction(); 4029 4030 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 4031 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] NestedMessage(NestedMessage other)4032 public NestedMessage(NestedMessage other) : this() { 4033 nestedField_ = other.nestedField_; 4034 _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); 4035 } 4036 4037 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 4038 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] Clone()4039 public NestedMessage Clone() { 4040 return new NestedMessage(this); 4041 } 4042 4043 /// <summary>Field number for the "nested_field" field.</summary> 4044 public const int NestedFieldFieldNumber = 1; 4045 private int nestedField_; 4046 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 4047 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 4048 public int NestedField { 4049 get { return nestedField_; } 4050 set { 4051 nestedField_ = value; 4052 } 4053 } 4054 4055 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 4056 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] Equals(object other)4057 public override bool Equals(object other) { 4058 return Equals(other as NestedMessage); 4059 } 4060 4061 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 4062 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] Equals(NestedMessage other)4063 public bool Equals(NestedMessage other) { 4064 if (ReferenceEquals(other, null)) { 4065 return false; 4066 } 4067 if (ReferenceEquals(other, this)) { 4068 return true; 4069 } 4070 if (NestedField != other.NestedField) return false; 4071 return Equals(_unknownFields, other._unknownFields); 4072 } 4073 4074 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 4075 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] GetHashCode()4076 public override int GetHashCode() { 4077 int hash = 1; 4078 if (NestedField != 0) hash ^= NestedField.GetHashCode(); 4079 if (_unknownFields != null) { 4080 hash ^= _unknownFields.GetHashCode(); 4081 } 4082 return hash; 4083 } 4084 4085 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 4086 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] ToString()4087 public override string ToString() { 4088 return pb::JsonFormatter.ToDiagnosticString(this); 4089 } 4090 4091 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 4092 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] WriteTo(pb::CodedOutputStream output)4093 public void WriteTo(pb::CodedOutputStream output) { 4094 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 4095 output.WriteRawMessage(this); 4096 #else 4097 if (NestedField != 0) { 4098 output.WriteRawTag(8); 4099 output.WriteInt32(NestedField); 4100 } 4101 if (_unknownFields != null) { 4102 _unknownFields.WriteTo(output); 4103 } 4104 #endif 4105 } 4106 4107 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 4108 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 4109 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] IBufferMessage.InternalWriteTo(ref pb::WriteContext output)4110 void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { 4111 if (NestedField != 0) { 4112 output.WriteRawTag(8); 4113 output.WriteInt32(NestedField); 4114 } 4115 if (_unknownFields != null) { 4116 _unknownFields.WriteTo(ref output); 4117 } 4118 } 4119 #endif 4120 4121 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 4122 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] CalculateSize()4123 public int CalculateSize() { 4124 int size = 0; 4125 if (NestedField != 0) { 4126 size += 1 + pb::CodedOutputStream.ComputeInt32Size(NestedField); 4127 } 4128 if (_unknownFields != null) { 4129 size += _unknownFields.CalculateSize(); 4130 } 4131 return size; 4132 } 4133 4134 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 4135 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] MergeFrom(NestedMessage other)4136 public void MergeFrom(NestedMessage other) { 4137 if (other == null) { 4138 return; 4139 } 4140 if (other.NestedField != 0) { 4141 NestedField = other.NestedField; 4142 } 4143 _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); 4144 } 4145 4146 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 4147 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] MergeFrom(pb::CodedInputStream input)4148 public void MergeFrom(pb::CodedInputStream input) { 4149 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 4150 input.ReadRawMessage(this); 4151 #else 4152 uint tag; 4153 while ((tag = input.ReadTag()) != 0) { 4154 switch(tag) { 4155 default: 4156 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); 4157 break; 4158 case 8: { 4159 NestedField = input.ReadInt32(); 4160 break; 4161 } 4162 } 4163 } 4164 #endif 4165 } 4166 4167 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 4168 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 4169 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] IBufferMessage.InternalMergeFrom(ref pb::ParseContext input)4170 void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { 4171 uint tag; 4172 while ((tag = input.ReadTag()) != 0) { 4173 switch(tag) { 4174 default: 4175 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); 4176 break; 4177 case 8: { 4178 NestedField = input.ReadInt32(); 4179 break; 4180 } 4181 } 4182 } 4183 } 4184 #endif 4185 4186 } 4187 4188 } 4189 #endregion 4190 4191 } 4192 4193 #endregion 4194 4195 } 4196 4197 #endregion Designer generated code 4198