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