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 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 internal 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 private static readonly pb::MessageParser<TestMessageWithCustomOptions> _parser = new pb::MessageParser<TestMessageWithCustomOptions>(() => new TestMessageWithCustomOptions()); 262 private pb::UnknownFieldSet _unknownFields; 263 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 264 public static pb::MessageParser<TestMessageWithCustomOptions> Parser { get { return _parser; } } 265 266 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 267 public static pbr::MessageDescriptor Descriptor { 268 get { return global::UnitTest.Issues.TestProtos.UnittestCustomOptionsProto3Reflection.Descriptor.MessageTypes[0]; } 269 } 270 271 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 272 pbr::MessageDescriptor pb::IMessage.Descriptor { 273 get { return Descriptor; } 274 } 275 276 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] TestMessageWithCustomOptions()277 public TestMessageWithCustomOptions() { 278 OnConstruction(); 279 } 280 OnConstruction()281 partial void OnConstruction(); 282 283 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] TestMessageWithCustomOptions(TestMessageWithCustomOptions other)284 public TestMessageWithCustomOptions(TestMessageWithCustomOptions other) : this() { 285 field1_ = other.field1_; 286 switch (other.AnOneofCase) { 287 case AnOneofOneofCase.OneofField: 288 OneofField = other.OneofField; 289 break; 290 } 291 292 _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); 293 } 294 295 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] Clone()296 public TestMessageWithCustomOptions Clone() { 297 return new TestMessageWithCustomOptions(this); 298 } 299 300 /// <summary>Field number for the "field1" field.</summary> 301 public const int Field1FieldNumber = 1; 302 private string field1_ = ""; 303 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 304 public string Field1 { 305 get { return field1_; } 306 set { 307 field1_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); 308 } 309 } 310 311 /// <summary>Field number for the "oneof_field" field.</summary> 312 public const int OneofFieldFieldNumber = 2; 313 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 314 public int OneofField { 315 get { return anOneofCase_ == AnOneofOneofCase.OneofField ? (int) anOneof_ : 0; } 316 set { 317 anOneof_ = value; 318 anOneofCase_ = AnOneofOneofCase.OneofField; 319 } 320 } 321 322 private object anOneof_; 323 /// <summary>Enum of possible cases for the "AnOneof" oneof.</summary> 324 public enum AnOneofOneofCase { 325 None = 0, 326 OneofField = 2, 327 } 328 private AnOneofOneofCase anOneofCase_ = AnOneofOneofCase.None; 329 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 330 public AnOneofOneofCase AnOneofCase { 331 get { return anOneofCase_; } 332 } 333 334 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] ClearAnOneof()335 public void ClearAnOneof() { 336 anOneofCase_ = AnOneofOneofCase.None; 337 anOneof_ = null; 338 } 339 340 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] Equals(object other)341 public override bool Equals(object other) { 342 return Equals(other as TestMessageWithCustomOptions); 343 } 344 345 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] Equals(TestMessageWithCustomOptions other)346 public bool Equals(TestMessageWithCustomOptions other) { 347 if (ReferenceEquals(other, null)) { 348 return false; 349 } 350 if (ReferenceEquals(other, this)) { 351 return true; 352 } 353 if (Field1 != other.Field1) return false; 354 if (OneofField != other.OneofField) return false; 355 if (AnOneofCase != other.AnOneofCase) return false; 356 return Equals(_unknownFields, other._unknownFields); 357 } 358 359 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] GetHashCode()360 public override int GetHashCode() { 361 int hash = 1; 362 if (Field1.Length != 0) hash ^= Field1.GetHashCode(); 363 if (anOneofCase_ == AnOneofOneofCase.OneofField) hash ^= OneofField.GetHashCode(); 364 hash ^= (int) anOneofCase_; 365 if (_unknownFields != null) { 366 hash ^= _unknownFields.GetHashCode(); 367 } 368 return hash; 369 } 370 371 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] ToString()372 public override string ToString() { 373 return pb::JsonFormatter.ToDiagnosticString(this); 374 } 375 376 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] WriteTo(pb::CodedOutputStream output)377 public void WriteTo(pb::CodedOutputStream output) { 378 if (Field1.Length != 0) { 379 output.WriteRawTag(10); 380 output.WriteString(Field1); 381 } 382 if (anOneofCase_ == AnOneofOneofCase.OneofField) { 383 output.WriteRawTag(16); 384 output.WriteInt32(OneofField); 385 } 386 if (_unknownFields != null) { 387 _unknownFields.WriteTo(output); 388 } 389 } 390 391 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] CalculateSize()392 public int CalculateSize() { 393 int size = 0; 394 if (Field1.Length != 0) { 395 size += 1 + pb::CodedOutputStream.ComputeStringSize(Field1); 396 } 397 if (anOneofCase_ == AnOneofOneofCase.OneofField) { 398 size += 1 + pb::CodedOutputStream.ComputeInt32Size(OneofField); 399 } 400 if (_unknownFields != null) { 401 size += _unknownFields.CalculateSize(); 402 } 403 return size; 404 } 405 406 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] MergeFrom(TestMessageWithCustomOptions other)407 public void MergeFrom(TestMessageWithCustomOptions other) { 408 if (other == null) { 409 return; 410 } 411 if (other.Field1.Length != 0) { 412 Field1 = other.Field1; 413 } 414 switch (other.AnOneofCase) { 415 case AnOneofOneofCase.OneofField: 416 OneofField = other.OneofField; 417 break; 418 } 419 420 _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); 421 } 422 423 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] MergeFrom(pb::CodedInputStream input)424 public void MergeFrom(pb::CodedInputStream input) { 425 uint tag; 426 while ((tag = input.ReadTag()) != 0) { 427 switch(tag) { 428 default: 429 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); 430 break; 431 case 10: { 432 Field1 = input.ReadString(); 433 break; 434 } 435 case 16: { 436 OneofField = input.ReadInt32(); 437 break; 438 } 439 } 440 } 441 } 442 443 #region Nested types 444 /// <summary>Container for nested types declared in the TestMessageWithCustomOptions message type.</summary> 445 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 446 public static partial class Types { 447 public enum AnEnum { 448 [pbr::OriginalName("ANENUM_UNSPECIFIED")] Unspecified = 0, 449 [pbr::OriginalName("ANENUM_VAL1")] Val1 = 1, 450 [pbr::OriginalName("ANENUM_VAL2")] Val2 = 2, 451 } 452 453 } 454 #endregion 455 456 } 457 458 /// <summary> 459 /// A test RPC service with custom options at all possible locations (and also 460 /// some regular options, to make sure they interact nicely). 461 /// </summary> 462 public sealed partial class CustomOptionFooRequest : pb::IMessage<CustomOptionFooRequest> { 463 private static readonly pb::MessageParser<CustomOptionFooRequest> _parser = new pb::MessageParser<CustomOptionFooRequest>(() => new CustomOptionFooRequest()); 464 private pb::UnknownFieldSet _unknownFields; 465 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 466 public static pb::MessageParser<CustomOptionFooRequest> Parser { get { return _parser; } } 467 468 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 469 public static pbr::MessageDescriptor Descriptor { 470 get { return global::UnitTest.Issues.TestProtos.UnittestCustomOptionsProto3Reflection.Descriptor.MessageTypes[1]; } 471 } 472 473 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 474 pbr::MessageDescriptor pb::IMessage.Descriptor { 475 get { return Descriptor; } 476 } 477 478 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] CustomOptionFooRequest()479 public CustomOptionFooRequest() { 480 OnConstruction(); 481 } 482 OnConstruction()483 partial void OnConstruction(); 484 485 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] CustomOptionFooRequest(CustomOptionFooRequest other)486 public CustomOptionFooRequest(CustomOptionFooRequest other) : this() { 487 _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); 488 } 489 490 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] Clone()491 public CustomOptionFooRequest Clone() { 492 return new CustomOptionFooRequest(this); 493 } 494 495 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] Equals(object other)496 public override bool Equals(object other) { 497 return Equals(other as CustomOptionFooRequest); 498 } 499 500 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] Equals(CustomOptionFooRequest other)501 public bool Equals(CustomOptionFooRequest other) { 502 if (ReferenceEquals(other, null)) { 503 return false; 504 } 505 if (ReferenceEquals(other, this)) { 506 return true; 507 } 508 return Equals(_unknownFields, other._unknownFields); 509 } 510 511 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] GetHashCode()512 public override int GetHashCode() { 513 int hash = 1; 514 if (_unknownFields != null) { 515 hash ^= _unknownFields.GetHashCode(); 516 } 517 return hash; 518 } 519 520 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] ToString()521 public override string ToString() { 522 return pb::JsonFormatter.ToDiagnosticString(this); 523 } 524 525 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] WriteTo(pb::CodedOutputStream output)526 public void WriteTo(pb::CodedOutputStream output) { 527 if (_unknownFields != null) { 528 _unknownFields.WriteTo(output); 529 } 530 } 531 532 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] CalculateSize()533 public int CalculateSize() { 534 int size = 0; 535 if (_unknownFields != null) { 536 size += _unknownFields.CalculateSize(); 537 } 538 return size; 539 } 540 541 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] MergeFrom(CustomOptionFooRequest other)542 public void MergeFrom(CustomOptionFooRequest other) { 543 if (other == null) { 544 return; 545 } 546 _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); 547 } 548 549 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] MergeFrom(pb::CodedInputStream input)550 public void MergeFrom(pb::CodedInputStream input) { 551 uint tag; 552 while ((tag = input.ReadTag()) != 0) { 553 switch(tag) { 554 default: 555 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); 556 break; 557 } 558 } 559 } 560 561 } 562 563 public sealed partial class CustomOptionFooResponse : pb::IMessage<CustomOptionFooResponse> { 564 private static readonly pb::MessageParser<CustomOptionFooResponse> _parser = new pb::MessageParser<CustomOptionFooResponse>(() => new CustomOptionFooResponse()); 565 private pb::UnknownFieldSet _unknownFields; 566 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 567 public static pb::MessageParser<CustomOptionFooResponse> Parser { get { return _parser; } } 568 569 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 570 public static pbr::MessageDescriptor Descriptor { 571 get { return global::UnitTest.Issues.TestProtos.UnittestCustomOptionsProto3Reflection.Descriptor.MessageTypes[2]; } 572 } 573 574 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 575 pbr::MessageDescriptor pb::IMessage.Descriptor { 576 get { return Descriptor; } 577 } 578 579 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] CustomOptionFooResponse()580 public CustomOptionFooResponse() { 581 OnConstruction(); 582 } 583 OnConstruction()584 partial void OnConstruction(); 585 586 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] CustomOptionFooResponse(CustomOptionFooResponse other)587 public CustomOptionFooResponse(CustomOptionFooResponse other) : this() { 588 _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); 589 } 590 591 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] Clone()592 public CustomOptionFooResponse Clone() { 593 return new CustomOptionFooResponse(this); 594 } 595 596 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] Equals(object other)597 public override bool Equals(object other) { 598 return Equals(other as CustomOptionFooResponse); 599 } 600 601 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] Equals(CustomOptionFooResponse other)602 public bool Equals(CustomOptionFooResponse other) { 603 if (ReferenceEquals(other, null)) { 604 return false; 605 } 606 if (ReferenceEquals(other, this)) { 607 return true; 608 } 609 return Equals(_unknownFields, other._unknownFields); 610 } 611 612 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] GetHashCode()613 public override int GetHashCode() { 614 int hash = 1; 615 if (_unknownFields != null) { 616 hash ^= _unknownFields.GetHashCode(); 617 } 618 return hash; 619 } 620 621 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] ToString()622 public override string ToString() { 623 return pb::JsonFormatter.ToDiagnosticString(this); 624 } 625 626 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] WriteTo(pb::CodedOutputStream output)627 public void WriteTo(pb::CodedOutputStream output) { 628 if (_unknownFields != null) { 629 _unknownFields.WriteTo(output); 630 } 631 } 632 633 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] CalculateSize()634 public int CalculateSize() { 635 int size = 0; 636 if (_unknownFields != null) { 637 size += _unknownFields.CalculateSize(); 638 } 639 return size; 640 } 641 642 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] MergeFrom(CustomOptionFooResponse other)643 public void MergeFrom(CustomOptionFooResponse other) { 644 if (other == null) { 645 return; 646 } 647 _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); 648 } 649 650 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] MergeFrom(pb::CodedInputStream input)651 public void MergeFrom(pb::CodedInputStream input) { 652 uint tag; 653 while ((tag = input.ReadTag()) != 0) { 654 switch(tag) { 655 default: 656 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); 657 break; 658 } 659 } 660 } 661 662 } 663 664 public sealed partial class CustomOptionFooClientMessage : pb::IMessage<CustomOptionFooClientMessage> { 665 private static readonly pb::MessageParser<CustomOptionFooClientMessage> _parser = new pb::MessageParser<CustomOptionFooClientMessage>(() => new CustomOptionFooClientMessage()); 666 private pb::UnknownFieldSet _unknownFields; 667 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 668 public static pb::MessageParser<CustomOptionFooClientMessage> Parser { get { return _parser; } } 669 670 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 671 public static pbr::MessageDescriptor Descriptor { 672 get { return global::UnitTest.Issues.TestProtos.UnittestCustomOptionsProto3Reflection.Descriptor.MessageTypes[3]; } 673 } 674 675 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 676 pbr::MessageDescriptor pb::IMessage.Descriptor { 677 get { return Descriptor; } 678 } 679 680 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] CustomOptionFooClientMessage()681 public CustomOptionFooClientMessage() { 682 OnConstruction(); 683 } 684 OnConstruction()685 partial void OnConstruction(); 686 687 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] CustomOptionFooClientMessage(CustomOptionFooClientMessage other)688 public CustomOptionFooClientMessage(CustomOptionFooClientMessage other) : this() { 689 _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); 690 } 691 692 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] Clone()693 public CustomOptionFooClientMessage Clone() { 694 return new CustomOptionFooClientMessage(this); 695 } 696 697 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] Equals(object other)698 public override bool Equals(object other) { 699 return Equals(other as CustomOptionFooClientMessage); 700 } 701 702 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] Equals(CustomOptionFooClientMessage other)703 public bool Equals(CustomOptionFooClientMessage other) { 704 if (ReferenceEquals(other, null)) { 705 return false; 706 } 707 if (ReferenceEquals(other, this)) { 708 return true; 709 } 710 return Equals(_unknownFields, other._unknownFields); 711 } 712 713 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] GetHashCode()714 public override int GetHashCode() { 715 int hash = 1; 716 if (_unknownFields != null) { 717 hash ^= _unknownFields.GetHashCode(); 718 } 719 return hash; 720 } 721 722 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] ToString()723 public override string ToString() { 724 return pb::JsonFormatter.ToDiagnosticString(this); 725 } 726 727 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] WriteTo(pb::CodedOutputStream output)728 public void WriteTo(pb::CodedOutputStream output) { 729 if (_unknownFields != null) { 730 _unknownFields.WriteTo(output); 731 } 732 } 733 734 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] CalculateSize()735 public int CalculateSize() { 736 int size = 0; 737 if (_unknownFields != null) { 738 size += _unknownFields.CalculateSize(); 739 } 740 return size; 741 } 742 743 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] MergeFrom(CustomOptionFooClientMessage other)744 public void MergeFrom(CustomOptionFooClientMessage other) { 745 if (other == null) { 746 return; 747 } 748 _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); 749 } 750 751 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] MergeFrom(pb::CodedInputStream input)752 public void MergeFrom(pb::CodedInputStream input) { 753 uint tag; 754 while ((tag = input.ReadTag()) != 0) { 755 switch(tag) { 756 default: 757 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); 758 break; 759 } 760 } 761 } 762 763 } 764 765 public sealed partial class CustomOptionFooServerMessage : pb::IMessage<CustomOptionFooServerMessage> { 766 private static readonly pb::MessageParser<CustomOptionFooServerMessage> _parser = new pb::MessageParser<CustomOptionFooServerMessage>(() => new CustomOptionFooServerMessage()); 767 private pb::UnknownFieldSet _unknownFields; 768 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 769 public static pb::MessageParser<CustomOptionFooServerMessage> Parser { get { return _parser; } } 770 771 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 772 public static pbr::MessageDescriptor Descriptor { 773 get { return global::UnitTest.Issues.TestProtos.UnittestCustomOptionsProto3Reflection.Descriptor.MessageTypes[4]; } 774 } 775 776 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 777 pbr::MessageDescriptor pb::IMessage.Descriptor { 778 get { return Descriptor; } 779 } 780 781 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] CustomOptionFooServerMessage()782 public CustomOptionFooServerMessage() { 783 OnConstruction(); 784 } 785 OnConstruction()786 partial void OnConstruction(); 787 788 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] CustomOptionFooServerMessage(CustomOptionFooServerMessage other)789 public CustomOptionFooServerMessage(CustomOptionFooServerMessage other) : this() { 790 _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); 791 } 792 793 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] Clone()794 public CustomOptionFooServerMessage Clone() { 795 return new CustomOptionFooServerMessage(this); 796 } 797 798 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] Equals(object other)799 public override bool Equals(object other) { 800 return Equals(other as CustomOptionFooServerMessage); 801 } 802 803 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] Equals(CustomOptionFooServerMessage other)804 public bool Equals(CustomOptionFooServerMessage other) { 805 if (ReferenceEquals(other, null)) { 806 return false; 807 } 808 if (ReferenceEquals(other, this)) { 809 return true; 810 } 811 return Equals(_unknownFields, other._unknownFields); 812 } 813 814 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] GetHashCode()815 public override int GetHashCode() { 816 int hash = 1; 817 if (_unknownFields != null) { 818 hash ^= _unknownFields.GetHashCode(); 819 } 820 return hash; 821 } 822 823 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] ToString()824 public override string ToString() { 825 return pb::JsonFormatter.ToDiagnosticString(this); 826 } 827 828 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] WriteTo(pb::CodedOutputStream output)829 public void WriteTo(pb::CodedOutputStream output) { 830 if (_unknownFields != null) { 831 _unknownFields.WriteTo(output); 832 } 833 } 834 835 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] CalculateSize()836 public int CalculateSize() { 837 int size = 0; 838 if (_unknownFields != null) { 839 size += _unknownFields.CalculateSize(); 840 } 841 return size; 842 } 843 844 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] MergeFrom(CustomOptionFooServerMessage other)845 public void MergeFrom(CustomOptionFooServerMessage other) { 846 if (other == null) { 847 return; 848 } 849 _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); 850 } 851 852 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] MergeFrom(pb::CodedInputStream input)853 public void MergeFrom(pb::CodedInputStream input) { 854 uint tag; 855 while ((tag = input.ReadTag()) != 0) { 856 switch(tag) { 857 default: 858 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); 859 break; 860 } 861 } 862 } 863 864 } 865 866 public sealed partial class DummyMessageContainingEnum : pb::IMessage<DummyMessageContainingEnum> { 867 private static readonly pb::MessageParser<DummyMessageContainingEnum> _parser = new pb::MessageParser<DummyMessageContainingEnum>(() => new DummyMessageContainingEnum()); 868 private pb::UnknownFieldSet _unknownFields; 869 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 870 public static pb::MessageParser<DummyMessageContainingEnum> Parser { get { return _parser; } } 871 872 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 873 public static pbr::MessageDescriptor Descriptor { 874 get { return global::UnitTest.Issues.TestProtos.UnittestCustomOptionsProto3Reflection.Descriptor.MessageTypes[5]; } 875 } 876 877 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 878 pbr::MessageDescriptor pb::IMessage.Descriptor { 879 get { return Descriptor; } 880 } 881 882 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] DummyMessageContainingEnum()883 public DummyMessageContainingEnum() { 884 OnConstruction(); 885 } 886 OnConstruction()887 partial void OnConstruction(); 888 889 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] DummyMessageContainingEnum(DummyMessageContainingEnum other)890 public DummyMessageContainingEnum(DummyMessageContainingEnum other) : this() { 891 _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); 892 } 893 894 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] Clone()895 public DummyMessageContainingEnum Clone() { 896 return new DummyMessageContainingEnum(this); 897 } 898 899 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] Equals(object other)900 public override bool Equals(object other) { 901 return Equals(other as DummyMessageContainingEnum); 902 } 903 904 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] Equals(DummyMessageContainingEnum other)905 public bool Equals(DummyMessageContainingEnum other) { 906 if (ReferenceEquals(other, null)) { 907 return false; 908 } 909 if (ReferenceEquals(other, this)) { 910 return true; 911 } 912 return Equals(_unknownFields, other._unknownFields); 913 } 914 915 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] GetHashCode()916 public override int GetHashCode() { 917 int hash = 1; 918 if (_unknownFields != null) { 919 hash ^= _unknownFields.GetHashCode(); 920 } 921 return hash; 922 } 923 924 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] ToString()925 public override string ToString() { 926 return pb::JsonFormatter.ToDiagnosticString(this); 927 } 928 929 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] WriteTo(pb::CodedOutputStream output)930 public void WriteTo(pb::CodedOutputStream output) { 931 if (_unknownFields != null) { 932 _unknownFields.WriteTo(output); 933 } 934 } 935 936 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] CalculateSize()937 public int CalculateSize() { 938 int size = 0; 939 if (_unknownFields != null) { 940 size += _unknownFields.CalculateSize(); 941 } 942 return size; 943 } 944 945 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] MergeFrom(DummyMessageContainingEnum other)946 public void MergeFrom(DummyMessageContainingEnum other) { 947 if (other == null) { 948 return; 949 } 950 _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); 951 } 952 953 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] MergeFrom(pb::CodedInputStream input)954 public void MergeFrom(pb::CodedInputStream input) { 955 uint tag; 956 while ((tag = input.ReadTag()) != 0) { 957 switch(tag) { 958 default: 959 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); 960 break; 961 } 962 } 963 } 964 965 #region Nested types 966 /// <summary>Container for nested types declared in the DummyMessageContainingEnum message type.</summary> 967 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 968 public static partial class Types { 969 public enum TestEnumType { 970 [pbr::OriginalName("TEST_OPTION_ENUM_UNSPECIFIED")] TestOptionEnumUnspecified = 0, 971 [pbr::OriginalName("TEST_OPTION_ENUM_TYPE1")] TestOptionEnumType1 = 22, 972 [pbr::OriginalName("TEST_OPTION_ENUM_TYPE2")] TestOptionEnumType2 = -23, 973 } 974 975 } 976 #endregion 977 978 } 979 980 public sealed partial class DummyMessageInvalidAsOptionType : pb::IMessage<DummyMessageInvalidAsOptionType> { 981 private static readonly pb::MessageParser<DummyMessageInvalidAsOptionType> _parser = new pb::MessageParser<DummyMessageInvalidAsOptionType>(() => new DummyMessageInvalidAsOptionType()); 982 private pb::UnknownFieldSet _unknownFields; 983 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 984 public static pb::MessageParser<DummyMessageInvalidAsOptionType> Parser { get { return _parser; } } 985 986 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 987 public static pbr::MessageDescriptor Descriptor { 988 get { return global::UnitTest.Issues.TestProtos.UnittestCustomOptionsProto3Reflection.Descriptor.MessageTypes[6]; } 989 } 990 991 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 992 pbr::MessageDescriptor pb::IMessage.Descriptor { 993 get { return Descriptor; } 994 } 995 996 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] DummyMessageInvalidAsOptionType()997 public DummyMessageInvalidAsOptionType() { 998 OnConstruction(); 999 } 1000 OnConstruction()1001 partial void OnConstruction(); 1002 1003 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] DummyMessageInvalidAsOptionType(DummyMessageInvalidAsOptionType other)1004 public DummyMessageInvalidAsOptionType(DummyMessageInvalidAsOptionType other) : this() { 1005 _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); 1006 } 1007 1008 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] Clone()1009 public DummyMessageInvalidAsOptionType Clone() { 1010 return new DummyMessageInvalidAsOptionType(this); 1011 } 1012 1013 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] Equals(object other)1014 public override bool Equals(object other) { 1015 return Equals(other as DummyMessageInvalidAsOptionType); 1016 } 1017 1018 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] Equals(DummyMessageInvalidAsOptionType other)1019 public bool Equals(DummyMessageInvalidAsOptionType other) { 1020 if (ReferenceEquals(other, null)) { 1021 return false; 1022 } 1023 if (ReferenceEquals(other, this)) { 1024 return true; 1025 } 1026 return Equals(_unknownFields, other._unknownFields); 1027 } 1028 1029 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] GetHashCode()1030 public override int GetHashCode() { 1031 int hash = 1; 1032 if (_unknownFields != null) { 1033 hash ^= _unknownFields.GetHashCode(); 1034 } 1035 return hash; 1036 } 1037 1038 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] ToString()1039 public override string ToString() { 1040 return pb::JsonFormatter.ToDiagnosticString(this); 1041 } 1042 1043 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] WriteTo(pb::CodedOutputStream output)1044 public void WriteTo(pb::CodedOutputStream output) { 1045 if (_unknownFields != null) { 1046 _unknownFields.WriteTo(output); 1047 } 1048 } 1049 1050 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] CalculateSize()1051 public int CalculateSize() { 1052 int size = 0; 1053 if (_unknownFields != null) { 1054 size += _unknownFields.CalculateSize(); 1055 } 1056 return size; 1057 } 1058 1059 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] MergeFrom(DummyMessageInvalidAsOptionType other)1060 public void MergeFrom(DummyMessageInvalidAsOptionType other) { 1061 if (other == null) { 1062 return; 1063 } 1064 _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); 1065 } 1066 1067 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] MergeFrom(pb::CodedInputStream input)1068 public void MergeFrom(pb::CodedInputStream input) { 1069 uint tag; 1070 while ((tag = input.ReadTag()) != 0) { 1071 switch(tag) { 1072 default: 1073 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); 1074 break; 1075 } 1076 } 1077 } 1078 1079 } 1080 1081 public sealed partial class CustomOptionMinIntegerValues : pb::IMessage<CustomOptionMinIntegerValues> { 1082 private static readonly pb::MessageParser<CustomOptionMinIntegerValues> _parser = new pb::MessageParser<CustomOptionMinIntegerValues>(() => new CustomOptionMinIntegerValues()); 1083 private pb::UnknownFieldSet _unknownFields; 1084 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 1085 public static pb::MessageParser<CustomOptionMinIntegerValues> Parser { get { return _parser; } } 1086 1087 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 1088 public static pbr::MessageDescriptor Descriptor { 1089 get { return global::UnitTest.Issues.TestProtos.UnittestCustomOptionsProto3Reflection.Descriptor.MessageTypes[7]; } 1090 } 1091 1092 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 1093 pbr::MessageDescriptor pb::IMessage.Descriptor { 1094 get { return Descriptor; } 1095 } 1096 1097 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] CustomOptionMinIntegerValues()1098 public CustomOptionMinIntegerValues() { 1099 OnConstruction(); 1100 } 1101 OnConstruction()1102 partial void OnConstruction(); 1103 1104 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] CustomOptionMinIntegerValues(CustomOptionMinIntegerValues other)1105 public CustomOptionMinIntegerValues(CustomOptionMinIntegerValues other) : this() { 1106 _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); 1107 } 1108 1109 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] Clone()1110 public CustomOptionMinIntegerValues Clone() { 1111 return new CustomOptionMinIntegerValues(this); 1112 } 1113 1114 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] Equals(object other)1115 public override bool Equals(object other) { 1116 return Equals(other as CustomOptionMinIntegerValues); 1117 } 1118 1119 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] Equals(CustomOptionMinIntegerValues other)1120 public bool Equals(CustomOptionMinIntegerValues other) { 1121 if (ReferenceEquals(other, null)) { 1122 return false; 1123 } 1124 if (ReferenceEquals(other, this)) { 1125 return true; 1126 } 1127 return Equals(_unknownFields, other._unknownFields); 1128 } 1129 1130 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] GetHashCode()1131 public override int GetHashCode() { 1132 int hash = 1; 1133 if (_unknownFields != null) { 1134 hash ^= _unknownFields.GetHashCode(); 1135 } 1136 return hash; 1137 } 1138 1139 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] ToString()1140 public override string ToString() { 1141 return pb::JsonFormatter.ToDiagnosticString(this); 1142 } 1143 1144 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] WriteTo(pb::CodedOutputStream output)1145 public void WriteTo(pb::CodedOutputStream output) { 1146 if (_unknownFields != null) { 1147 _unknownFields.WriteTo(output); 1148 } 1149 } 1150 1151 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] CalculateSize()1152 public int CalculateSize() { 1153 int size = 0; 1154 if (_unknownFields != null) { 1155 size += _unknownFields.CalculateSize(); 1156 } 1157 return size; 1158 } 1159 1160 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] MergeFrom(CustomOptionMinIntegerValues other)1161 public void MergeFrom(CustomOptionMinIntegerValues other) { 1162 if (other == null) { 1163 return; 1164 } 1165 _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); 1166 } 1167 1168 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] MergeFrom(pb::CodedInputStream input)1169 public void MergeFrom(pb::CodedInputStream input) { 1170 uint tag; 1171 while ((tag = input.ReadTag()) != 0) { 1172 switch(tag) { 1173 default: 1174 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); 1175 break; 1176 } 1177 } 1178 } 1179 1180 } 1181 1182 public sealed partial class CustomOptionMaxIntegerValues : pb::IMessage<CustomOptionMaxIntegerValues> { 1183 private static readonly pb::MessageParser<CustomOptionMaxIntegerValues> _parser = new pb::MessageParser<CustomOptionMaxIntegerValues>(() => new CustomOptionMaxIntegerValues()); 1184 private pb::UnknownFieldSet _unknownFields; 1185 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 1186 public static pb::MessageParser<CustomOptionMaxIntegerValues> Parser { get { return _parser; } } 1187 1188 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 1189 public static pbr::MessageDescriptor Descriptor { 1190 get { return global::UnitTest.Issues.TestProtos.UnittestCustomOptionsProto3Reflection.Descriptor.MessageTypes[8]; } 1191 } 1192 1193 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 1194 pbr::MessageDescriptor pb::IMessage.Descriptor { 1195 get { return Descriptor; } 1196 } 1197 1198 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] CustomOptionMaxIntegerValues()1199 public CustomOptionMaxIntegerValues() { 1200 OnConstruction(); 1201 } 1202 OnConstruction()1203 partial void OnConstruction(); 1204 1205 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] CustomOptionMaxIntegerValues(CustomOptionMaxIntegerValues other)1206 public CustomOptionMaxIntegerValues(CustomOptionMaxIntegerValues other) : this() { 1207 _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); 1208 } 1209 1210 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] Clone()1211 public CustomOptionMaxIntegerValues Clone() { 1212 return new CustomOptionMaxIntegerValues(this); 1213 } 1214 1215 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] Equals(object other)1216 public override bool Equals(object other) { 1217 return Equals(other as CustomOptionMaxIntegerValues); 1218 } 1219 1220 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] Equals(CustomOptionMaxIntegerValues other)1221 public bool Equals(CustomOptionMaxIntegerValues other) { 1222 if (ReferenceEquals(other, null)) { 1223 return false; 1224 } 1225 if (ReferenceEquals(other, this)) { 1226 return true; 1227 } 1228 return Equals(_unknownFields, other._unknownFields); 1229 } 1230 1231 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] GetHashCode()1232 public override int GetHashCode() { 1233 int hash = 1; 1234 if (_unknownFields != null) { 1235 hash ^= _unknownFields.GetHashCode(); 1236 } 1237 return hash; 1238 } 1239 1240 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] ToString()1241 public override string ToString() { 1242 return pb::JsonFormatter.ToDiagnosticString(this); 1243 } 1244 1245 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] WriteTo(pb::CodedOutputStream output)1246 public void WriteTo(pb::CodedOutputStream output) { 1247 if (_unknownFields != null) { 1248 _unknownFields.WriteTo(output); 1249 } 1250 } 1251 1252 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] CalculateSize()1253 public int CalculateSize() { 1254 int size = 0; 1255 if (_unknownFields != null) { 1256 size += _unknownFields.CalculateSize(); 1257 } 1258 return size; 1259 } 1260 1261 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] MergeFrom(CustomOptionMaxIntegerValues other)1262 public void MergeFrom(CustomOptionMaxIntegerValues other) { 1263 if (other == null) { 1264 return; 1265 } 1266 _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); 1267 } 1268 1269 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] MergeFrom(pb::CodedInputStream input)1270 public void MergeFrom(pb::CodedInputStream input) { 1271 uint tag; 1272 while ((tag = input.ReadTag()) != 0) { 1273 switch(tag) { 1274 default: 1275 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); 1276 break; 1277 } 1278 } 1279 } 1280 1281 } 1282 1283 public sealed partial class CustomOptionOtherValues : pb::IMessage<CustomOptionOtherValues> { 1284 private static readonly pb::MessageParser<CustomOptionOtherValues> _parser = new pb::MessageParser<CustomOptionOtherValues>(() => new CustomOptionOtherValues()); 1285 private pb::UnknownFieldSet _unknownFields; 1286 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 1287 public static pb::MessageParser<CustomOptionOtherValues> Parser { get { return _parser; } } 1288 1289 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 1290 public static pbr::MessageDescriptor Descriptor { 1291 get { return global::UnitTest.Issues.TestProtos.UnittestCustomOptionsProto3Reflection.Descriptor.MessageTypes[9]; } 1292 } 1293 1294 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 1295 pbr::MessageDescriptor pb::IMessage.Descriptor { 1296 get { return Descriptor; } 1297 } 1298 1299 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] CustomOptionOtherValues()1300 public CustomOptionOtherValues() { 1301 OnConstruction(); 1302 } 1303 OnConstruction()1304 partial void OnConstruction(); 1305 1306 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] CustomOptionOtherValues(CustomOptionOtherValues other)1307 public CustomOptionOtherValues(CustomOptionOtherValues other) : this() { 1308 _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); 1309 } 1310 1311 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] Clone()1312 public CustomOptionOtherValues Clone() { 1313 return new CustomOptionOtherValues(this); 1314 } 1315 1316 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] Equals(object other)1317 public override bool Equals(object other) { 1318 return Equals(other as CustomOptionOtherValues); 1319 } 1320 1321 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] Equals(CustomOptionOtherValues other)1322 public bool Equals(CustomOptionOtherValues other) { 1323 if (ReferenceEquals(other, null)) { 1324 return false; 1325 } 1326 if (ReferenceEquals(other, this)) { 1327 return true; 1328 } 1329 return Equals(_unknownFields, other._unknownFields); 1330 } 1331 1332 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] GetHashCode()1333 public override int GetHashCode() { 1334 int hash = 1; 1335 if (_unknownFields != null) { 1336 hash ^= _unknownFields.GetHashCode(); 1337 } 1338 return hash; 1339 } 1340 1341 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] ToString()1342 public override string ToString() { 1343 return pb::JsonFormatter.ToDiagnosticString(this); 1344 } 1345 1346 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] WriteTo(pb::CodedOutputStream output)1347 public void WriteTo(pb::CodedOutputStream output) { 1348 if (_unknownFields != null) { 1349 _unknownFields.WriteTo(output); 1350 } 1351 } 1352 1353 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] CalculateSize()1354 public int CalculateSize() { 1355 int size = 0; 1356 if (_unknownFields != null) { 1357 size += _unknownFields.CalculateSize(); 1358 } 1359 return size; 1360 } 1361 1362 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] MergeFrom(CustomOptionOtherValues other)1363 public void MergeFrom(CustomOptionOtherValues other) { 1364 if (other == null) { 1365 return; 1366 } 1367 _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); 1368 } 1369 1370 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] MergeFrom(pb::CodedInputStream input)1371 public void MergeFrom(pb::CodedInputStream input) { 1372 uint tag; 1373 while ((tag = input.ReadTag()) != 0) { 1374 switch(tag) { 1375 default: 1376 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); 1377 break; 1378 } 1379 } 1380 } 1381 1382 } 1383 1384 public sealed partial class SettingRealsFromPositiveInts : pb::IMessage<SettingRealsFromPositiveInts> { 1385 private static readonly pb::MessageParser<SettingRealsFromPositiveInts> _parser = new pb::MessageParser<SettingRealsFromPositiveInts>(() => new SettingRealsFromPositiveInts()); 1386 private pb::UnknownFieldSet _unknownFields; 1387 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 1388 public static pb::MessageParser<SettingRealsFromPositiveInts> Parser { get { return _parser; } } 1389 1390 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 1391 public static pbr::MessageDescriptor Descriptor { 1392 get { return global::UnitTest.Issues.TestProtos.UnittestCustomOptionsProto3Reflection.Descriptor.MessageTypes[10]; } 1393 } 1394 1395 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 1396 pbr::MessageDescriptor pb::IMessage.Descriptor { 1397 get { return Descriptor; } 1398 } 1399 1400 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] SettingRealsFromPositiveInts()1401 public SettingRealsFromPositiveInts() { 1402 OnConstruction(); 1403 } 1404 OnConstruction()1405 partial void OnConstruction(); 1406 1407 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] SettingRealsFromPositiveInts(SettingRealsFromPositiveInts other)1408 public SettingRealsFromPositiveInts(SettingRealsFromPositiveInts other) : this() { 1409 _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); 1410 } 1411 1412 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] Clone()1413 public SettingRealsFromPositiveInts Clone() { 1414 return new SettingRealsFromPositiveInts(this); 1415 } 1416 1417 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] Equals(object other)1418 public override bool Equals(object other) { 1419 return Equals(other as SettingRealsFromPositiveInts); 1420 } 1421 1422 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] Equals(SettingRealsFromPositiveInts other)1423 public bool Equals(SettingRealsFromPositiveInts other) { 1424 if (ReferenceEquals(other, null)) { 1425 return false; 1426 } 1427 if (ReferenceEquals(other, this)) { 1428 return true; 1429 } 1430 return Equals(_unknownFields, other._unknownFields); 1431 } 1432 1433 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] GetHashCode()1434 public override int GetHashCode() { 1435 int hash = 1; 1436 if (_unknownFields != null) { 1437 hash ^= _unknownFields.GetHashCode(); 1438 } 1439 return hash; 1440 } 1441 1442 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] ToString()1443 public override string ToString() { 1444 return pb::JsonFormatter.ToDiagnosticString(this); 1445 } 1446 1447 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] WriteTo(pb::CodedOutputStream output)1448 public void WriteTo(pb::CodedOutputStream output) { 1449 if (_unknownFields != null) { 1450 _unknownFields.WriteTo(output); 1451 } 1452 } 1453 1454 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] CalculateSize()1455 public int CalculateSize() { 1456 int size = 0; 1457 if (_unknownFields != null) { 1458 size += _unknownFields.CalculateSize(); 1459 } 1460 return size; 1461 } 1462 1463 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] MergeFrom(SettingRealsFromPositiveInts other)1464 public void MergeFrom(SettingRealsFromPositiveInts other) { 1465 if (other == null) { 1466 return; 1467 } 1468 _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); 1469 } 1470 1471 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] MergeFrom(pb::CodedInputStream input)1472 public void MergeFrom(pb::CodedInputStream input) { 1473 uint tag; 1474 while ((tag = input.ReadTag()) != 0) { 1475 switch(tag) { 1476 default: 1477 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); 1478 break; 1479 } 1480 } 1481 } 1482 1483 } 1484 1485 public sealed partial class SettingRealsFromNegativeInts : pb::IMessage<SettingRealsFromNegativeInts> { 1486 private static readonly pb::MessageParser<SettingRealsFromNegativeInts> _parser = new pb::MessageParser<SettingRealsFromNegativeInts>(() => new SettingRealsFromNegativeInts()); 1487 private pb::UnknownFieldSet _unknownFields; 1488 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 1489 public static pb::MessageParser<SettingRealsFromNegativeInts> Parser { get { return _parser; } } 1490 1491 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 1492 public static pbr::MessageDescriptor Descriptor { 1493 get { return global::UnitTest.Issues.TestProtos.UnittestCustomOptionsProto3Reflection.Descriptor.MessageTypes[11]; } 1494 } 1495 1496 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 1497 pbr::MessageDescriptor pb::IMessage.Descriptor { 1498 get { return Descriptor; } 1499 } 1500 1501 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] SettingRealsFromNegativeInts()1502 public SettingRealsFromNegativeInts() { 1503 OnConstruction(); 1504 } 1505 OnConstruction()1506 partial void OnConstruction(); 1507 1508 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] SettingRealsFromNegativeInts(SettingRealsFromNegativeInts other)1509 public SettingRealsFromNegativeInts(SettingRealsFromNegativeInts other) : this() { 1510 _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); 1511 } 1512 1513 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] Clone()1514 public SettingRealsFromNegativeInts Clone() { 1515 return new SettingRealsFromNegativeInts(this); 1516 } 1517 1518 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] Equals(object other)1519 public override bool Equals(object other) { 1520 return Equals(other as SettingRealsFromNegativeInts); 1521 } 1522 1523 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] Equals(SettingRealsFromNegativeInts other)1524 public bool Equals(SettingRealsFromNegativeInts other) { 1525 if (ReferenceEquals(other, null)) { 1526 return false; 1527 } 1528 if (ReferenceEquals(other, this)) { 1529 return true; 1530 } 1531 return Equals(_unknownFields, other._unknownFields); 1532 } 1533 1534 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] GetHashCode()1535 public override int GetHashCode() { 1536 int hash = 1; 1537 if (_unknownFields != null) { 1538 hash ^= _unknownFields.GetHashCode(); 1539 } 1540 return hash; 1541 } 1542 1543 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] ToString()1544 public override string ToString() { 1545 return pb::JsonFormatter.ToDiagnosticString(this); 1546 } 1547 1548 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] WriteTo(pb::CodedOutputStream output)1549 public void WriteTo(pb::CodedOutputStream output) { 1550 if (_unknownFields != null) { 1551 _unknownFields.WriteTo(output); 1552 } 1553 } 1554 1555 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] CalculateSize()1556 public int CalculateSize() { 1557 int size = 0; 1558 if (_unknownFields != null) { 1559 size += _unknownFields.CalculateSize(); 1560 } 1561 return size; 1562 } 1563 1564 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] MergeFrom(SettingRealsFromNegativeInts other)1565 public void MergeFrom(SettingRealsFromNegativeInts other) { 1566 if (other == null) { 1567 return; 1568 } 1569 _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); 1570 } 1571 1572 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] MergeFrom(pb::CodedInputStream input)1573 public void MergeFrom(pb::CodedInputStream input) { 1574 uint tag; 1575 while ((tag = input.ReadTag()) != 0) { 1576 switch(tag) { 1577 default: 1578 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); 1579 break; 1580 } 1581 } 1582 } 1583 1584 } 1585 1586 public sealed partial class ComplexOptionType1 : pb::IMessage<ComplexOptionType1> { 1587 private static readonly pb::MessageParser<ComplexOptionType1> _parser = new pb::MessageParser<ComplexOptionType1>(() => new ComplexOptionType1()); 1588 private pb::UnknownFieldSet _unknownFields; 1589 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 1590 public static pb::MessageParser<ComplexOptionType1> Parser { get { return _parser; } } 1591 1592 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 1593 public static pbr::MessageDescriptor Descriptor { 1594 get { return global::UnitTest.Issues.TestProtos.UnittestCustomOptionsProto3Reflection.Descriptor.MessageTypes[12]; } 1595 } 1596 1597 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 1598 pbr::MessageDescriptor pb::IMessage.Descriptor { 1599 get { return Descriptor; } 1600 } 1601 1602 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] ComplexOptionType1()1603 public ComplexOptionType1() { 1604 OnConstruction(); 1605 } 1606 OnConstruction()1607 partial void OnConstruction(); 1608 1609 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] ComplexOptionType1(ComplexOptionType1 other)1610 public ComplexOptionType1(ComplexOptionType1 other) : this() { 1611 foo_ = other.foo_; 1612 foo2_ = other.foo2_; 1613 foo3_ = other.foo3_; 1614 foo4_ = other.foo4_.Clone(); 1615 _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); 1616 } 1617 1618 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] Clone()1619 public ComplexOptionType1 Clone() { 1620 return new ComplexOptionType1(this); 1621 } 1622 1623 /// <summary>Field number for the "foo" field.</summary> 1624 public const int FooFieldNumber = 1; 1625 private int foo_; 1626 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 1627 public int Foo { 1628 get { return foo_; } 1629 set { 1630 foo_ = value; 1631 } 1632 } 1633 1634 /// <summary>Field number for the "foo2" field.</summary> 1635 public const int Foo2FieldNumber = 2; 1636 private int foo2_; 1637 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 1638 public int Foo2 { 1639 get { return foo2_; } 1640 set { 1641 foo2_ = value; 1642 } 1643 } 1644 1645 /// <summary>Field number for the "foo3" field.</summary> 1646 public const int Foo3FieldNumber = 3; 1647 private int foo3_; 1648 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 1649 public int Foo3 { 1650 get { return foo3_; } 1651 set { 1652 foo3_ = value; 1653 } 1654 } 1655 1656 /// <summary>Field number for the "foo4" field.</summary> 1657 public const int Foo4FieldNumber = 4; 1658 private static readonly pb::FieldCodec<int> _repeated_foo4_codec 1659 = pb::FieldCodec.ForInt32(34); 1660 private readonly pbc::RepeatedField<int> foo4_ = new pbc::RepeatedField<int>(); 1661 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 1662 public pbc::RepeatedField<int> Foo4 { 1663 get { return foo4_; } 1664 } 1665 1666 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] Equals(object other)1667 public override bool Equals(object other) { 1668 return Equals(other as ComplexOptionType1); 1669 } 1670 1671 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] Equals(ComplexOptionType1 other)1672 public bool Equals(ComplexOptionType1 other) { 1673 if (ReferenceEquals(other, null)) { 1674 return false; 1675 } 1676 if (ReferenceEquals(other, this)) { 1677 return true; 1678 } 1679 if (Foo != other.Foo) return false; 1680 if (Foo2 != other.Foo2) return false; 1681 if (Foo3 != other.Foo3) return false; 1682 if(!foo4_.Equals(other.foo4_)) return false; 1683 return Equals(_unknownFields, other._unknownFields); 1684 } 1685 1686 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] GetHashCode()1687 public override int GetHashCode() { 1688 int hash = 1; 1689 if (Foo != 0) hash ^= Foo.GetHashCode(); 1690 if (Foo2 != 0) hash ^= Foo2.GetHashCode(); 1691 if (Foo3 != 0) hash ^= Foo3.GetHashCode(); 1692 hash ^= foo4_.GetHashCode(); 1693 if (_unknownFields != null) { 1694 hash ^= _unknownFields.GetHashCode(); 1695 } 1696 return hash; 1697 } 1698 1699 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] ToString()1700 public override string ToString() { 1701 return pb::JsonFormatter.ToDiagnosticString(this); 1702 } 1703 1704 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] WriteTo(pb::CodedOutputStream output)1705 public void WriteTo(pb::CodedOutputStream output) { 1706 if (Foo != 0) { 1707 output.WriteRawTag(8); 1708 output.WriteInt32(Foo); 1709 } 1710 if (Foo2 != 0) { 1711 output.WriteRawTag(16); 1712 output.WriteInt32(Foo2); 1713 } 1714 if (Foo3 != 0) { 1715 output.WriteRawTag(24); 1716 output.WriteInt32(Foo3); 1717 } 1718 foo4_.WriteTo(output, _repeated_foo4_codec); 1719 if (_unknownFields != null) { 1720 _unknownFields.WriteTo(output); 1721 } 1722 } 1723 1724 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] CalculateSize()1725 public int CalculateSize() { 1726 int size = 0; 1727 if (Foo != 0) { 1728 size += 1 + pb::CodedOutputStream.ComputeInt32Size(Foo); 1729 } 1730 if (Foo2 != 0) { 1731 size += 1 + pb::CodedOutputStream.ComputeInt32Size(Foo2); 1732 } 1733 if (Foo3 != 0) { 1734 size += 1 + pb::CodedOutputStream.ComputeInt32Size(Foo3); 1735 } 1736 size += foo4_.CalculateSize(_repeated_foo4_codec); 1737 if (_unknownFields != null) { 1738 size += _unknownFields.CalculateSize(); 1739 } 1740 return size; 1741 } 1742 1743 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] MergeFrom(ComplexOptionType1 other)1744 public void MergeFrom(ComplexOptionType1 other) { 1745 if (other == null) { 1746 return; 1747 } 1748 if (other.Foo != 0) { 1749 Foo = other.Foo; 1750 } 1751 if (other.Foo2 != 0) { 1752 Foo2 = other.Foo2; 1753 } 1754 if (other.Foo3 != 0) { 1755 Foo3 = other.Foo3; 1756 } 1757 foo4_.Add(other.foo4_); 1758 _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); 1759 } 1760 1761 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] MergeFrom(pb::CodedInputStream input)1762 public void MergeFrom(pb::CodedInputStream input) { 1763 uint tag; 1764 while ((tag = input.ReadTag()) != 0) { 1765 switch(tag) { 1766 default: 1767 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); 1768 break; 1769 case 8: { 1770 Foo = input.ReadInt32(); 1771 break; 1772 } 1773 case 16: { 1774 Foo2 = input.ReadInt32(); 1775 break; 1776 } 1777 case 24: { 1778 Foo3 = input.ReadInt32(); 1779 break; 1780 } 1781 case 34: 1782 case 32: { 1783 foo4_.AddEntriesFrom(input, _repeated_foo4_codec); 1784 break; 1785 } 1786 } 1787 } 1788 } 1789 1790 } 1791 1792 public sealed partial class ComplexOptionType2 : pb::IMessage<ComplexOptionType2> { 1793 private static readonly pb::MessageParser<ComplexOptionType2> _parser = new pb::MessageParser<ComplexOptionType2>(() => new ComplexOptionType2()); 1794 private pb::UnknownFieldSet _unknownFields; 1795 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 1796 public static pb::MessageParser<ComplexOptionType2> Parser { get { return _parser; } } 1797 1798 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 1799 public static pbr::MessageDescriptor Descriptor { 1800 get { return global::UnitTest.Issues.TestProtos.UnittestCustomOptionsProto3Reflection.Descriptor.MessageTypes[13]; } 1801 } 1802 1803 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 1804 pbr::MessageDescriptor pb::IMessage.Descriptor { 1805 get { return Descriptor; } 1806 } 1807 1808 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] ComplexOptionType2()1809 public ComplexOptionType2() { 1810 OnConstruction(); 1811 } 1812 OnConstruction()1813 partial void OnConstruction(); 1814 1815 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] ComplexOptionType2(ComplexOptionType2 other)1816 public ComplexOptionType2(ComplexOptionType2 other) : this() { 1817 bar_ = other.bar_ != null ? other.bar_.Clone() : null; 1818 baz_ = other.baz_; 1819 fred_ = other.fred_ != null ? other.fred_.Clone() : null; 1820 barney_ = other.barney_.Clone(); 1821 _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); 1822 } 1823 1824 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] Clone()1825 public ComplexOptionType2 Clone() { 1826 return new ComplexOptionType2(this); 1827 } 1828 1829 /// <summary>Field number for the "bar" field.</summary> 1830 public const int BarFieldNumber = 1; 1831 private global::UnitTest.Issues.TestProtos.ComplexOptionType1 bar_; 1832 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 1833 public global::UnitTest.Issues.TestProtos.ComplexOptionType1 Bar { 1834 get { return bar_; } 1835 set { 1836 bar_ = value; 1837 } 1838 } 1839 1840 /// <summary>Field number for the "baz" field.</summary> 1841 public const int BazFieldNumber = 2; 1842 private int baz_; 1843 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 1844 public int Baz { 1845 get { return baz_; } 1846 set { 1847 baz_ = value; 1848 } 1849 } 1850 1851 /// <summary>Field number for the "fred" field.</summary> 1852 public const int FredFieldNumber = 3; 1853 private global::UnitTest.Issues.TestProtos.ComplexOptionType2.Types.ComplexOptionType4 fred_; 1854 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 1855 public global::UnitTest.Issues.TestProtos.ComplexOptionType2.Types.ComplexOptionType4 Fred { 1856 get { return fred_; } 1857 set { 1858 fred_ = value; 1859 } 1860 } 1861 1862 /// <summary>Field number for the "barney" field.</summary> 1863 public const int BarneyFieldNumber = 4; 1864 private static readonly pb::FieldCodec<global::UnitTest.Issues.TestProtos.ComplexOptionType2.Types.ComplexOptionType4> _repeated_barney_codec 1865 = pb::FieldCodec.ForMessage(34, global::UnitTest.Issues.TestProtos.ComplexOptionType2.Types.ComplexOptionType4.Parser); 1866 private readonly pbc::RepeatedField<global::UnitTest.Issues.TestProtos.ComplexOptionType2.Types.ComplexOptionType4> barney_ = new pbc::RepeatedField<global::UnitTest.Issues.TestProtos.ComplexOptionType2.Types.ComplexOptionType4>(); 1867 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 1868 public pbc::RepeatedField<global::UnitTest.Issues.TestProtos.ComplexOptionType2.Types.ComplexOptionType4> Barney { 1869 get { return barney_; } 1870 } 1871 1872 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] Equals(object other)1873 public override bool Equals(object other) { 1874 return Equals(other as ComplexOptionType2); 1875 } 1876 1877 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] Equals(ComplexOptionType2 other)1878 public bool Equals(ComplexOptionType2 other) { 1879 if (ReferenceEquals(other, null)) { 1880 return false; 1881 } 1882 if (ReferenceEquals(other, this)) { 1883 return true; 1884 } 1885 if (!object.Equals(Bar, other.Bar)) return false; 1886 if (Baz != other.Baz) return false; 1887 if (!object.Equals(Fred, other.Fred)) return false; 1888 if(!barney_.Equals(other.barney_)) return false; 1889 return Equals(_unknownFields, other._unknownFields); 1890 } 1891 1892 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] GetHashCode()1893 public override int GetHashCode() { 1894 int hash = 1; 1895 if (bar_ != null) hash ^= Bar.GetHashCode(); 1896 if (Baz != 0) hash ^= Baz.GetHashCode(); 1897 if (fred_ != null) hash ^= Fred.GetHashCode(); 1898 hash ^= barney_.GetHashCode(); 1899 if (_unknownFields != null) { 1900 hash ^= _unknownFields.GetHashCode(); 1901 } 1902 return hash; 1903 } 1904 1905 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] ToString()1906 public override string ToString() { 1907 return pb::JsonFormatter.ToDiagnosticString(this); 1908 } 1909 1910 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] WriteTo(pb::CodedOutputStream output)1911 public void WriteTo(pb::CodedOutputStream output) { 1912 if (bar_ != null) { 1913 output.WriteRawTag(10); 1914 output.WriteMessage(Bar); 1915 } 1916 if (Baz != 0) { 1917 output.WriteRawTag(16); 1918 output.WriteInt32(Baz); 1919 } 1920 if (fred_ != null) { 1921 output.WriteRawTag(26); 1922 output.WriteMessage(Fred); 1923 } 1924 barney_.WriteTo(output, _repeated_barney_codec); 1925 if (_unknownFields != null) { 1926 _unknownFields.WriteTo(output); 1927 } 1928 } 1929 1930 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] CalculateSize()1931 public int CalculateSize() { 1932 int size = 0; 1933 if (bar_ != null) { 1934 size += 1 + pb::CodedOutputStream.ComputeMessageSize(Bar); 1935 } 1936 if (Baz != 0) { 1937 size += 1 + pb::CodedOutputStream.ComputeInt32Size(Baz); 1938 } 1939 if (fred_ != null) { 1940 size += 1 + pb::CodedOutputStream.ComputeMessageSize(Fred); 1941 } 1942 size += barney_.CalculateSize(_repeated_barney_codec); 1943 if (_unknownFields != null) { 1944 size += _unknownFields.CalculateSize(); 1945 } 1946 return size; 1947 } 1948 1949 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] MergeFrom(ComplexOptionType2 other)1950 public void MergeFrom(ComplexOptionType2 other) { 1951 if (other == null) { 1952 return; 1953 } 1954 if (other.bar_ != null) { 1955 if (bar_ == null) { 1956 Bar = new global::UnitTest.Issues.TestProtos.ComplexOptionType1(); 1957 } 1958 Bar.MergeFrom(other.Bar); 1959 } 1960 if (other.Baz != 0) { 1961 Baz = other.Baz; 1962 } 1963 if (other.fred_ != null) { 1964 if (fred_ == null) { 1965 Fred = new global::UnitTest.Issues.TestProtos.ComplexOptionType2.Types.ComplexOptionType4(); 1966 } 1967 Fred.MergeFrom(other.Fred); 1968 } 1969 barney_.Add(other.barney_); 1970 _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); 1971 } 1972 1973 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] MergeFrom(pb::CodedInputStream input)1974 public void MergeFrom(pb::CodedInputStream input) { 1975 uint tag; 1976 while ((tag = input.ReadTag()) != 0) { 1977 switch(tag) { 1978 default: 1979 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); 1980 break; 1981 case 10: { 1982 if (bar_ == null) { 1983 Bar = new global::UnitTest.Issues.TestProtos.ComplexOptionType1(); 1984 } 1985 input.ReadMessage(Bar); 1986 break; 1987 } 1988 case 16: { 1989 Baz = input.ReadInt32(); 1990 break; 1991 } 1992 case 26: { 1993 if (fred_ == null) { 1994 Fred = new global::UnitTest.Issues.TestProtos.ComplexOptionType2.Types.ComplexOptionType4(); 1995 } 1996 input.ReadMessage(Fred); 1997 break; 1998 } 1999 case 34: { 2000 barney_.AddEntriesFrom(input, _repeated_barney_codec); 2001 break; 2002 } 2003 } 2004 } 2005 } 2006 2007 #region Nested types 2008 /// <summary>Container for nested types declared in the ComplexOptionType2 message type.</summary> 2009 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 2010 public static partial class Types { 2011 public sealed partial class ComplexOptionType4 : pb::IMessage<ComplexOptionType4> { 2012 private static readonly pb::MessageParser<ComplexOptionType4> _parser = new pb::MessageParser<ComplexOptionType4>(() => new ComplexOptionType4()); 2013 private pb::UnknownFieldSet _unknownFields; 2014 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 2015 public static pb::MessageParser<ComplexOptionType4> Parser { get { return _parser; } } 2016 2017 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 2018 public static pbr::MessageDescriptor Descriptor { 2019 get { return global::UnitTest.Issues.TestProtos.ComplexOptionType2.Descriptor.NestedTypes[0]; } 2020 } 2021 2022 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 2023 pbr::MessageDescriptor pb::IMessage.Descriptor { 2024 get { return Descriptor; } 2025 } 2026 2027 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] ComplexOptionType4()2028 public ComplexOptionType4() { 2029 OnConstruction(); 2030 } 2031 OnConstruction()2032 partial void OnConstruction(); 2033 2034 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] ComplexOptionType4(ComplexOptionType4 other)2035 public ComplexOptionType4(ComplexOptionType4 other) : this() { 2036 waldo_ = other.waldo_; 2037 _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); 2038 } 2039 2040 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] Clone()2041 public ComplexOptionType4 Clone() { 2042 return new ComplexOptionType4(this); 2043 } 2044 2045 /// <summary>Field number for the "waldo" field.</summary> 2046 public const int WaldoFieldNumber = 1; 2047 private int waldo_; 2048 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 2049 public int Waldo { 2050 get { return waldo_; } 2051 set { 2052 waldo_ = value; 2053 } 2054 } 2055 2056 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] Equals(object other)2057 public override bool Equals(object other) { 2058 return Equals(other as ComplexOptionType4); 2059 } 2060 2061 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] Equals(ComplexOptionType4 other)2062 public bool Equals(ComplexOptionType4 other) { 2063 if (ReferenceEquals(other, null)) { 2064 return false; 2065 } 2066 if (ReferenceEquals(other, this)) { 2067 return true; 2068 } 2069 if (Waldo != other.Waldo) return false; 2070 return Equals(_unknownFields, other._unknownFields); 2071 } 2072 2073 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] GetHashCode()2074 public override int GetHashCode() { 2075 int hash = 1; 2076 if (Waldo != 0) hash ^= Waldo.GetHashCode(); 2077 if (_unknownFields != null) { 2078 hash ^= _unknownFields.GetHashCode(); 2079 } 2080 return hash; 2081 } 2082 2083 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] ToString()2084 public override string ToString() { 2085 return pb::JsonFormatter.ToDiagnosticString(this); 2086 } 2087 2088 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] WriteTo(pb::CodedOutputStream output)2089 public void WriteTo(pb::CodedOutputStream output) { 2090 if (Waldo != 0) { 2091 output.WriteRawTag(8); 2092 output.WriteInt32(Waldo); 2093 } 2094 if (_unknownFields != null) { 2095 _unknownFields.WriteTo(output); 2096 } 2097 } 2098 2099 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] CalculateSize()2100 public int CalculateSize() { 2101 int size = 0; 2102 if (Waldo != 0) { 2103 size += 1 + pb::CodedOutputStream.ComputeInt32Size(Waldo); 2104 } 2105 if (_unknownFields != null) { 2106 size += _unknownFields.CalculateSize(); 2107 } 2108 return size; 2109 } 2110 2111 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] MergeFrom(ComplexOptionType4 other)2112 public void MergeFrom(ComplexOptionType4 other) { 2113 if (other == null) { 2114 return; 2115 } 2116 if (other.Waldo != 0) { 2117 Waldo = other.Waldo; 2118 } 2119 _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); 2120 } 2121 2122 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] MergeFrom(pb::CodedInputStream input)2123 public void MergeFrom(pb::CodedInputStream input) { 2124 uint tag; 2125 while ((tag = input.ReadTag()) != 0) { 2126 switch(tag) { 2127 default: 2128 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); 2129 break; 2130 case 8: { 2131 Waldo = input.ReadInt32(); 2132 break; 2133 } 2134 } 2135 } 2136 } 2137 2138 #region Extensions 2139 /// <summary>Container for extensions for other messages declared in the ComplexOptionType4 message type.</summary> 2140 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 2141 internal static partial class Extensions { 2142 public static readonly pb::Extension<global::Google.Protobuf.Reflection.MessageOptions, global::UnitTest.Issues.TestProtos.ComplexOptionType2.Types.ComplexOptionType4> ComplexOpt4 = 2143 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)); 2144 } 2145 #endregion 2146 2147 } 2148 2149 } 2150 #endregion 2151 2152 } 2153 2154 public sealed partial class ComplexOptionType3 : pb::IMessage<ComplexOptionType3> { 2155 private static readonly pb::MessageParser<ComplexOptionType3> _parser = new pb::MessageParser<ComplexOptionType3>(() => new ComplexOptionType3()); 2156 private pb::UnknownFieldSet _unknownFields; 2157 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 2158 public static pb::MessageParser<ComplexOptionType3> Parser { get { return _parser; } } 2159 2160 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 2161 public static pbr::MessageDescriptor Descriptor { 2162 get { return global::UnitTest.Issues.TestProtos.UnittestCustomOptionsProto3Reflection.Descriptor.MessageTypes[14]; } 2163 } 2164 2165 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 2166 pbr::MessageDescriptor pb::IMessage.Descriptor { 2167 get { return Descriptor; } 2168 } 2169 2170 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] ComplexOptionType3()2171 public ComplexOptionType3() { 2172 OnConstruction(); 2173 } 2174 OnConstruction()2175 partial void OnConstruction(); 2176 2177 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] ComplexOptionType3(ComplexOptionType3 other)2178 public ComplexOptionType3(ComplexOptionType3 other) : this() { 2179 qux_ = other.qux_; 2180 _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); 2181 } 2182 2183 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] Clone()2184 public ComplexOptionType3 Clone() { 2185 return new ComplexOptionType3(this); 2186 } 2187 2188 /// <summary>Field number for the "qux" field.</summary> 2189 public const int QuxFieldNumber = 1; 2190 private int qux_; 2191 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 2192 public int Qux { 2193 get { return qux_; } 2194 set { 2195 qux_ = value; 2196 } 2197 } 2198 2199 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] Equals(object other)2200 public override bool Equals(object other) { 2201 return Equals(other as ComplexOptionType3); 2202 } 2203 2204 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] Equals(ComplexOptionType3 other)2205 public bool Equals(ComplexOptionType3 other) { 2206 if (ReferenceEquals(other, null)) { 2207 return false; 2208 } 2209 if (ReferenceEquals(other, this)) { 2210 return true; 2211 } 2212 if (Qux != other.Qux) return false; 2213 return Equals(_unknownFields, other._unknownFields); 2214 } 2215 2216 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] GetHashCode()2217 public override int GetHashCode() { 2218 int hash = 1; 2219 if (Qux != 0) hash ^= Qux.GetHashCode(); 2220 if (_unknownFields != null) { 2221 hash ^= _unknownFields.GetHashCode(); 2222 } 2223 return hash; 2224 } 2225 2226 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] ToString()2227 public override string ToString() { 2228 return pb::JsonFormatter.ToDiagnosticString(this); 2229 } 2230 2231 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] WriteTo(pb::CodedOutputStream output)2232 public void WriteTo(pb::CodedOutputStream output) { 2233 if (Qux != 0) { 2234 output.WriteRawTag(8); 2235 output.WriteInt32(Qux); 2236 } 2237 if (_unknownFields != null) { 2238 _unknownFields.WriteTo(output); 2239 } 2240 } 2241 2242 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] CalculateSize()2243 public int CalculateSize() { 2244 int size = 0; 2245 if (Qux != 0) { 2246 size += 1 + pb::CodedOutputStream.ComputeInt32Size(Qux); 2247 } 2248 if (_unknownFields != null) { 2249 size += _unknownFields.CalculateSize(); 2250 } 2251 return size; 2252 } 2253 2254 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] MergeFrom(ComplexOptionType3 other)2255 public void MergeFrom(ComplexOptionType3 other) { 2256 if (other == null) { 2257 return; 2258 } 2259 if (other.Qux != 0) { 2260 Qux = other.Qux; 2261 } 2262 _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); 2263 } 2264 2265 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] MergeFrom(pb::CodedInputStream input)2266 public void MergeFrom(pb::CodedInputStream input) { 2267 uint tag; 2268 while ((tag = input.ReadTag()) != 0) { 2269 switch(tag) { 2270 default: 2271 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); 2272 break; 2273 case 8: { 2274 Qux = input.ReadInt32(); 2275 break; 2276 } 2277 } 2278 } 2279 } 2280 2281 } 2282 2283 /// <summary> 2284 /// Note that we try various different ways of naming the same extension. 2285 /// </summary> 2286 public sealed partial class VariousComplexOptions : pb::IMessage<VariousComplexOptions> { 2287 private static readonly pb::MessageParser<VariousComplexOptions> _parser = new pb::MessageParser<VariousComplexOptions>(() => new VariousComplexOptions()); 2288 private pb::UnknownFieldSet _unknownFields; 2289 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 2290 public static pb::MessageParser<VariousComplexOptions> Parser { get { return _parser; } } 2291 2292 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 2293 public static pbr::MessageDescriptor Descriptor { 2294 get { return global::UnitTest.Issues.TestProtos.UnittestCustomOptionsProto3Reflection.Descriptor.MessageTypes[15]; } 2295 } 2296 2297 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 2298 pbr::MessageDescriptor pb::IMessage.Descriptor { 2299 get { return Descriptor; } 2300 } 2301 2302 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] VariousComplexOptions()2303 public VariousComplexOptions() { 2304 OnConstruction(); 2305 } 2306 OnConstruction()2307 partial void OnConstruction(); 2308 2309 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] VariousComplexOptions(VariousComplexOptions other)2310 public VariousComplexOptions(VariousComplexOptions other) : this() { 2311 _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); 2312 } 2313 2314 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] Clone()2315 public VariousComplexOptions Clone() { 2316 return new VariousComplexOptions(this); 2317 } 2318 2319 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] Equals(object other)2320 public override bool Equals(object other) { 2321 return Equals(other as VariousComplexOptions); 2322 } 2323 2324 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] Equals(VariousComplexOptions other)2325 public bool Equals(VariousComplexOptions other) { 2326 if (ReferenceEquals(other, null)) { 2327 return false; 2328 } 2329 if (ReferenceEquals(other, this)) { 2330 return true; 2331 } 2332 return Equals(_unknownFields, other._unknownFields); 2333 } 2334 2335 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] GetHashCode()2336 public override int GetHashCode() { 2337 int hash = 1; 2338 if (_unknownFields != null) { 2339 hash ^= _unknownFields.GetHashCode(); 2340 } 2341 return hash; 2342 } 2343 2344 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] ToString()2345 public override string ToString() { 2346 return pb::JsonFormatter.ToDiagnosticString(this); 2347 } 2348 2349 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] WriteTo(pb::CodedOutputStream output)2350 public void WriteTo(pb::CodedOutputStream output) { 2351 if (_unknownFields != null) { 2352 _unknownFields.WriteTo(output); 2353 } 2354 } 2355 2356 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] CalculateSize()2357 public int CalculateSize() { 2358 int size = 0; 2359 if (_unknownFields != null) { 2360 size += _unknownFields.CalculateSize(); 2361 } 2362 return size; 2363 } 2364 2365 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] MergeFrom(VariousComplexOptions other)2366 public void MergeFrom(VariousComplexOptions other) { 2367 if (other == null) { 2368 return; 2369 } 2370 _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); 2371 } 2372 2373 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] MergeFrom(pb::CodedInputStream input)2374 public void MergeFrom(pb::CodedInputStream input) { 2375 uint tag; 2376 while ((tag = input.ReadTag()) != 0) { 2377 switch(tag) { 2378 default: 2379 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); 2380 break; 2381 } 2382 } 2383 } 2384 2385 } 2386 2387 /// <summary> 2388 /// A helper type used to test aggregate option parsing 2389 /// </summary> 2390 public sealed partial class Aggregate : pb::IMessage<Aggregate> { 2391 private static readonly pb::MessageParser<Aggregate> _parser = new pb::MessageParser<Aggregate>(() => new Aggregate()); 2392 private pb::UnknownFieldSet _unknownFields; 2393 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 2394 public static pb::MessageParser<Aggregate> Parser { get { return _parser; } } 2395 2396 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 2397 public static pbr::MessageDescriptor Descriptor { 2398 get { return global::UnitTest.Issues.TestProtos.UnittestCustomOptionsProto3Reflection.Descriptor.MessageTypes[16]; } 2399 } 2400 2401 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 2402 pbr::MessageDescriptor pb::IMessage.Descriptor { 2403 get { return Descriptor; } 2404 } 2405 2406 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] Aggregate()2407 public Aggregate() { 2408 OnConstruction(); 2409 } 2410 OnConstruction()2411 partial void OnConstruction(); 2412 2413 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] Aggregate(Aggregate other)2414 public Aggregate(Aggregate other) : this() { 2415 i_ = other.i_; 2416 s_ = other.s_; 2417 sub_ = other.sub_ != null ? other.sub_.Clone() : null; 2418 _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); 2419 } 2420 2421 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] Clone()2422 public Aggregate Clone() { 2423 return new Aggregate(this); 2424 } 2425 2426 /// <summary>Field number for the "i" field.</summary> 2427 public const int IFieldNumber = 1; 2428 private int i_; 2429 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 2430 public int I { 2431 get { return i_; } 2432 set { 2433 i_ = value; 2434 } 2435 } 2436 2437 /// <summary>Field number for the "s" field.</summary> 2438 public const int SFieldNumber = 2; 2439 private string s_ = ""; 2440 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 2441 public string S { 2442 get { return s_; } 2443 set { 2444 s_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); 2445 } 2446 } 2447 2448 /// <summary>Field number for the "sub" field.</summary> 2449 public const int SubFieldNumber = 3; 2450 private global::UnitTest.Issues.TestProtos.Aggregate sub_; 2451 /// <summary> 2452 /// A nested object 2453 /// </summary> 2454 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 2455 public global::UnitTest.Issues.TestProtos.Aggregate Sub { 2456 get { return sub_; } 2457 set { 2458 sub_ = value; 2459 } 2460 } 2461 2462 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] Equals(object other)2463 public override bool Equals(object other) { 2464 return Equals(other as Aggregate); 2465 } 2466 2467 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] Equals(Aggregate other)2468 public bool Equals(Aggregate other) { 2469 if (ReferenceEquals(other, null)) { 2470 return false; 2471 } 2472 if (ReferenceEquals(other, this)) { 2473 return true; 2474 } 2475 if (I != other.I) return false; 2476 if (S != other.S) return false; 2477 if (!object.Equals(Sub, other.Sub)) return false; 2478 return Equals(_unknownFields, other._unknownFields); 2479 } 2480 2481 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] GetHashCode()2482 public override int GetHashCode() { 2483 int hash = 1; 2484 if (I != 0) hash ^= I.GetHashCode(); 2485 if (S.Length != 0) hash ^= S.GetHashCode(); 2486 if (sub_ != null) hash ^= Sub.GetHashCode(); 2487 if (_unknownFields != null) { 2488 hash ^= _unknownFields.GetHashCode(); 2489 } 2490 return hash; 2491 } 2492 2493 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] ToString()2494 public override string ToString() { 2495 return pb::JsonFormatter.ToDiagnosticString(this); 2496 } 2497 2498 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] WriteTo(pb::CodedOutputStream output)2499 public void WriteTo(pb::CodedOutputStream output) { 2500 if (I != 0) { 2501 output.WriteRawTag(8); 2502 output.WriteInt32(I); 2503 } 2504 if (S.Length != 0) { 2505 output.WriteRawTag(18); 2506 output.WriteString(S); 2507 } 2508 if (sub_ != null) { 2509 output.WriteRawTag(26); 2510 output.WriteMessage(Sub); 2511 } 2512 if (_unknownFields != null) { 2513 _unknownFields.WriteTo(output); 2514 } 2515 } 2516 2517 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] CalculateSize()2518 public int CalculateSize() { 2519 int size = 0; 2520 if (I != 0) { 2521 size += 1 + pb::CodedOutputStream.ComputeInt32Size(I); 2522 } 2523 if (S.Length != 0) { 2524 size += 1 + pb::CodedOutputStream.ComputeStringSize(S); 2525 } 2526 if (sub_ != null) { 2527 size += 1 + pb::CodedOutputStream.ComputeMessageSize(Sub); 2528 } 2529 if (_unknownFields != null) { 2530 size += _unknownFields.CalculateSize(); 2531 } 2532 return size; 2533 } 2534 2535 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] MergeFrom(Aggregate other)2536 public void MergeFrom(Aggregate other) { 2537 if (other == null) { 2538 return; 2539 } 2540 if (other.I != 0) { 2541 I = other.I; 2542 } 2543 if (other.S.Length != 0) { 2544 S = other.S; 2545 } 2546 if (other.sub_ != null) { 2547 if (sub_ == null) { 2548 Sub = new global::UnitTest.Issues.TestProtos.Aggregate(); 2549 } 2550 Sub.MergeFrom(other.Sub); 2551 } 2552 _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); 2553 } 2554 2555 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] MergeFrom(pb::CodedInputStream input)2556 public void MergeFrom(pb::CodedInputStream input) { 2557 uint tag; 2558 while ((tag = input.ReadTag()) != 0) { 2559 switch(tag) { 2560 default: 2561 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); 2562 break; 2563 case 8: { 2564 I = input.ReadInt32(); 2565 break; 2566 } 2567 case 18: { 2568 S = input.ReadString(); 2569 break; 2570 } 2571 case 26: { 2572 if (sub_ == null) { 2573 Sub = new global::UnitTest.Issues.TestProtos.Aggregate(); 2574 } 2575 input.ReadMessage(Sub); 2576 break; 2577 } 2578 } 2579 } 2580 } 2581 2582 } 2583 2584 public sealed partial class AggregateMessage : pb::IMessage<AggregateMessage> { 2585 private static readonly pb::MessageParser<AggregateMessage> _parser = new pb::MessageParser<AggregateMessage>(() => new AggregateMessage()); 2586 private pb::UnknownFieldSet _unknownFields; 2587 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 2588 public static pb::MessageParser<AggregateMessage> Parser { get { return _parser; } } 2589 2590 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 2591 public static pbr::MessageDescriptor Descriptor { 2592 get { return global::UnitTest.Issues.TestProtos.UnittestCustomOptionsProto3Reflection.Descriptor.MessageTypes[17]; } 2593 } 2594 2595 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 2596 pbr::MessageDescriptor pb::IMessage.Descriptor { 2597 get { return Descriptor; } 2598 } 2599 2600 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] AggregateMessage()2601 public AggregateMessage() { 2602 OnConstruction(); 2603 } 2604 OnConstruction()2605 partial void OnConstruction(); 2606 2607 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] AggregateMessage(AggregateMessage other)2608 public AggregateMessage(AggregateMessage other) : this() { 2609 fieldname_ = other.fieldname_; 2610 _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); 2611 } 2612 2613 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] Clone()2614 public AggregateMessage Clone() { 2615 return new AggregateMessage(this); 2616 } 2617 2618 /// <summary>Field number for the "fieldname" field.</summary> 2619 public const int FieldnameFieldNumber = 1; 2620 private int fieldname_; 2621 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 2622 public int Fieldname { 2623 get { return fieldname_; } 2624 set { 2625 fieldname_ = value; 2626 } 2627 } 2628 2629 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] Equals(object other)2630 public override bool Equals(object other) { 2631 return Equals(other as AggregateMessage); 2632 } 2633 2634 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] Equals(AggregateMessage other)2635 public bool Equals(AggregateMessage other) { 2636 if (ReferenceEquals(other, null)) { 2637 return false; 2638 } 2639 if (ReferenceEquals(other, this)) { 2640 return true; 2641 } 2642 if (Fieldname != other.Fieldname) return false; 2643 return Equals(_unknownFields, other._unknownFields); 2644 } 2645 2646 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] GetHashCode()2647 public override int GetHashCode() { 2648 int hash = 1; 2649 if (Fieldname != 0) hash ^= Fieldname.GetHashCode(); 2650 if (_unknownFields != null) { 2651 hash ^= _unknownFields.GetHashCode(); 2652 } 2653 return hash; 2654 } 2655 2656 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] ToString()2657 public override string ToString() { 2658 return pb::JsonFormatter.ToDiagnosticString(this); 2659 } 2660 2661 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] WriteTo(pb::CodedOutputStream output)2662 public void WriteTo(pb::CodedOutputStream output) { 2663 if (Fieldname != 0) { 2664 output.WriteRawTag(8); 2665 output.WriteInt32(Fieldname); 2666 } 2667 if (_unknownFields != null) { 2668 _unknownFields.WriteTo(output); 2669 } 2670 } 2671 2672 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] CalculateSize()2673 public int CalculateSize() { 2674 int size = 0; 2675 if (Fieldname != 0) { 2676 size += 1 + pb::CodedOutputStream.ComputeInt32Size(Fieldname); 2677 } 2678 if (_unknownFields != null) { 2679 size += _unknownFields.CalculateSize(); 2680 } 2681 return size; 2682 } 2683 2684 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] MergeFrom(AggregateMessage other)2685 public void MergeFrom(AggregateMessage other) { 2686 if (other == null) { 2687 return; 2688 } 2689 if (other.Fieldname != 0) { 2690 Fieldname = other.Fieldname; 2691 } 2692 _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); 2693 } 2694 2695 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] MergeFrom(pb::CodedInputStream input)2696 public void MergeFrom(pb::CodedInputStream input) { 2697 uint tag; 2698 while ((tag = input.ReadTag()) != 0) { 2699 switch(tag) { 2700 default: 2701 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); 2702 break; 2703 case 8: { 2704 Fieldname = input.ReadInt32(); 2705 break; 2706 } 2707 } 2708 } 2709 } 2710 2711 } 2712 2713 /// <summary> 2714 /// Test custom options for nested type. 2715 /// </summary> 2716 public sealed partial class NestedOptionType : pb::IMessage<NestedOptionType> { 2717 private static readonly pb::MessageParser<NestedOptionType> _parser = new pb::MessageParser<NestedOptionType>(() => new NestedOptionType()); 2718 private pb::UnknownFieldSet _unknownFields; 2719 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 2720 public static pb::MessageParser<NestedOptionType> Parser { get { return _parser; } } 2721 2722 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 2723 public static pbr::MessageDescriptor Descriptor { 2724 get { return global::UnitTest.Issues.TestProtos.UnittestCustomOptionsProto3Reflection.Descriptor.MessageTypes[18]; } 2725 } 2726 2727 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 2728 pbr::MessageDescriptor pb::IMessage.Descriptor { 2729 get { return Descriptor; } 2730 } 2731 2732 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] NestedOptionType()2733 public NestedOptionType() { 2734 OnConstruction(); 2735 } 2736 OnConstruction()2737 partial void OnConstruction(); 2738 2739 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] NestedOptionType(NestedOptionType other)2740 public NestedOptionType(NestedOptionType other) : this() { 2741 _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); 2742 } 2743 2744 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] Clone()2745 public NestedOptionType Clone() { 2746 return new NestedOptionType(this); 2747 } 2748 2749 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] Equals(object other)2750 public override bool Equals(object other) { 2751 return Equals(other as NestedOptionType); 2752 } 2753 2754 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] Equals(NestedOptionType other)2755 public bool Equals(NestedOptionType other) { 2756 if (ReferenceEquals(other, null)) { 2757 return false; 2758 } 2759 if (ReferenceEquals(other, this)) { 2760 return true; 2761 } 2762 return Equals(_unknownFields, other._unknownFields); 2763 } 2764 2765 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] GetHashCode()2766 public override int GetHashCode() { 2767 int hash = 1; 2768 if (_unknownFields != null) { 2769 hash ^= _unknownFields.GetHashCode(); 2770 } 2771 return hash; 2772 } 2773 2774 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] ToString()2775 public override string ToString() { 2776 return pb::JsonFormatter.ToDiagnosticString(this); 2777 } 2778 2779 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] WriteTo(pb::CodedOutputStream output)2780 public void WriteTo(pb::CodedOutputStream output) { 2781 if (_unknownFields != null) { 2782 _unknownFields.WriteTo(output); 2783 } 2784 } 2785 2786 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] CalculateSize()2787 public int CalculateSize() { 2788 int size = 0; 2789 if (_unknownFields != null) { 2790 size += _unknownFields.CalculateSize(); 2791 } 2792 return size; 2793 } 2794 2795 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] MergeFrom(NestedOptionType other)2796 public void MergeFrom(NestedOptionType other) { 2797 if (other == null) { 2798 return; 2799 } 2800 _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); 2801 } 2802 2803 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] MergeFrom(pb::CodedInputStream input)2804 public void MergeFrom(pb::CodedInputStream input) { 2805 uint tag; 2806 while ((tag = input.ReadTag()) != 0) { 2807 switch(tag) { 2808 default: 2809 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); 2810 break; 2811 } 2812 } 2813 } 2814 2815 #region Nested types 2816 /// <summary>Container for nested types declared in the NestedOptionType message type.</summary> 2817 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 2818 public static partial class Types { 2819 public enum NestedEnum { 2820 [pbr::OriginalName("UNSPECIFIED")] Unspecified = 0, 2821 [pbr::OriginalName("NESTED_ENUM_VALUE")] Value = 1, 2822 } 2823 2824 public sealed partial class NestedMessage : pb::IMessage<NestedMessage> { 2825 private static readonly pb::MessageParser<NestedMessage> _parser = new pb::MessageParser<NestedMessage>(() => new NestedMessage()); 2826 private pb::UnknownFieldSet _unknownFields; 2827 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 2828 public static pb::MessageParser<NestedMessage> Parser { get { return _parser; } } 2829 2830 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 2831 public static pbr::MessageDescriptor Descriptor { 2832 get { return global::UnitTest.Issues.TestProtos.NestedOptionType.Descriptor.NestedTypes[0]; } 2833 } 2834 2835 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 2836 pbr::MessageDescriptor pb::IMessage.Descriptor { 2837 get { return Descriptor; } 2838 } 2839 2840 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] NestedMessage()2841 public NestedMessage() { 2842 OnConstruction(); 2843 } 2844 OnConstruction()2845 partial void OnConstruction(); 2846 2847 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] NestedMessage(NestedMessage other)2848 public NestedMessage(NestedMessage other) : this() { 2849 nestedField_ = other.nestedField_; 2850 _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); 2851 } 2852 2853 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] Clone()2854 public NestedMessage Clone() { 2855 return new NestedMessage(this); 2856 } 2857 2858 /// <summary>Field number for the "nested_field" field.</summary> 2859 public const int NestedFieldFieldNumber = 1; 2860 private int nestedField_; 2861 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 2862 public int NestedField { 2863 get { return nestedField_; } 2864 set { 2865 nestedField_ = value; 2866 } 2867 } 2868 2869 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] Equals(object other)2870 public override bool Equals(object other) { 2871 return Equals(other as NestedMessage); 2872 } 2873 2874 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] Equals(NestedMessage other)2875 public bool Equals(NestedMessage other) { 2876 if (ReferenceEquals(other, null)) { 2877 return false; 2878 } 2879 if (ReferenceEquals(other, this)) { 2880 return true; 2881 } 2882 if (NestedField != other.NestedField) return false; 2883 return Equals(_unknownFields, other._unknownFields); 2884 } 2885 2886 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] GetHashCode()2887 public override int GetHashCode() { 2888 int hash = 1; 2889 if (NestedField != 0) hash ^= NestedField.GetHashCode(); 2890 if (_unknownFields != null) { 2891 hash ^= _unknownFields.GetHashCode(); 2892 } 2893 return hash; 2894 } 2895 2896 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] ToString()2897 public override string ToString() { 2898 return pb::JsonFormatter.ToDiagnosticString(this); 2899 } 2900 2901 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] WriteTo(pb::CodedOutputStream output)2902 public void WriteTo(pb::CodedOutputStream output) { 2903 if (NestedField != 0) { 2904 output.WriteRawTag(8); 2905 output.WriteInt32(NestedField); 2906 } 2907 if (_unknownFields != null) { 2908 _unknownFields.WriteTo(output); 2909 } 2910 } 2911 2912 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] CalculateSize()2913 public int CalculateSize() { 2914 int size = 0; 2915 if (NestedField != 0) { 2916 size += 1 + pb::CodedOutputStream.ComputeInt32Size(NestedField); 2917 } 2918 if (_unknownFields != null) { 2919 size += _unknownFields.CalculateSize(); 2920 } 2921 return size; 2922 } 2923 2924 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] MergeFrom(NestedMessage other)2925 public void MergeFrom(NestedMessage other) { 2926 if (other == null) { 2927 return; 2928 } 2929 if (other.NestedField != 0) { 2930 NestedField = other.NestedField; 2931 } 2932 _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); 2933 } 2934 2935 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] MergeFrom(pb::CodedInputStream input)2936 public void MergeFrom(pb::CodedInputStream input) { 2937 uint tag; 2938 while ((tag = input.ReadTag()) != 0) { 2939 switch(tag) { 2940 default: 2941 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); 2942 break; 2943 case 8: { 2944 NestedField = input.ReadInt32(); 2945 break; 2946 } 2947 } 2948 } 2949 } 2950 2951 } 2952 2953 } 2954 #endregion 2955 2956 } 2957 2958 #endregion 2959 2960 } 2961 2962 #endregion Designer generated code 2963