Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(212)

Side by Side Diff: third_party/protobuf/csharp/src/Google.Protobuf.Test/TestProtos/UnittestProto3.cs

Issue 1983203003: Update third_party/protobuf to protobuf-v3.0.0-beta-3 (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: owners Created 4 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 // Generated by the protocol buffer compiler. DO NOT EDIT! 1 // Generated by the protocol buffer compiler. DO NOT EDIT!
2 // source: google/protobuf/unittest_proto3.proto 2 // source: google/protobuf/unittest_proto3.proto
3 #pragma warning disable 1591, 0612, 3021 3 #pragma warning disable 1591, 0612, 3021
4 #region Designer generated code 4 #region Designer generated code
5 5
6 using pb = global::Google.Protobuf; 6 using pb = global::Google.Protobuf;
7 using pbc = global::Google.Protobuf.Collections; 7 using pbc = global::Google.Protobuf.Collections;
8 using pbr = global::Google.Protobuf.Reflection; 8 using pbr = global::Google.Protobuf.Reflection;
9 using scg = global::System.Collections.Generic; 9 using scg = global::System.Collections.Generic;
10 namespace Google.Protobuf.TestProtos { 10 namespace Google.Protobuf.TestProtos {
(...skipping 134 matching lines...) Expand 10 before | Expand all | Expand 10 after
145 "UEFSU0VfRU5VTV9VTlNQRUNJRklFRBAAEgwKCFNQQVJTRV9BEHsSDgoIU1BB", 145 "UEFSU0VfRU5VTV9VTlNQRUNJRklFRBAAEgwKCFNQQVJTRV9BEHsSDgoIU1BB",
146 "UlNFX0IQpucDEg8KCFNQQVJTRV9DELKxgAYSFQoIU1BBUlNFX0QQ8f//////", 146 "UlNFX0IQpucDEg8KCFNQQVJTRV9DELKxgAYSFQoIU1BBUlNFX0QQ8f//////",
147 "////ARIVCghTUEFSU0VfRRC03vz///////8BEgwKCFNQQVJTRV9HEAIymQEK", 147 "////ARIVCghTUEFSU0VfRRC03vz///////8BEgwKCFNQQVJTRV9HEAIymQEK",
148 "C1Rlc3RTZXJ2aWNlEkQKA0ZvbxIdLnByb3RvYnVmX3VuaXR0ZXN0LkZvb1Jl", 148 "C1Rlc3RTZXJ2aWNlEkQKA0ZvbxIdLnByb3RvYnVmX3VuaXR0ZXN0LkZvb1Jl",
149 "cXVlc3QaHi5wcm90b2J1Zl91bml0dGVzdC5Gb29SZXNwb25zZRJECgNCYXIS", 149 "cXVlc3QaHi5wcm90b2J1Zl91bml0dGVzdC5Gb29SZXNwb25zZRJECgNCYXIS",
150 "HS5wcm90b2J1Zl91bml0dGVzdC5CYXJSZXF1ZXN0Gh4ucHJvdG9idWZfdW5p", 150 "HS5wcm90b2J1Zl91bml0dGVzdC5CYXJSZXF1ZXN0Gh4ucHJvdG9idWZfdW5p",
151 "dHRlc3QuQmFyUmVzcG9uc2VCOkINVW5pdHRlc3RQcm90b0gBgAEBiAEBkAEB", 151 "dHRlc3QuQmFyUmVzcG9uc2VCOkINVW5pdHRlc3RQcm90b0gBgAEBiAEBkAEB",
152 "+AEBqgIaR29vZ2xlLlByb3RvYnVmLlRlc3RQcm90b3NiBnByb3RvMw==")); 152 "+AEBqgIaR29vZ2xlLlByb3RvYnVmLlRlc3RQcm90b3NiBnByb3RvMw=="));
153 descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, 153 descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData,
154 new pbr::FileDescriptor[] { global::Google.Protobuf.TestProtos.Unittes tImportProto3Reflection.Descriptor, }, 154 new pbr::FileDescriptor[] { global::Google.Protobuf.TestProtos.Unittes tImportProto3Reflection.Descriptor, },
155 new pbr::GeneratedCodeInfo(new[] {typeof(global::Google.Protobuf.TestP rotos.ForeignEnum), typeof(global::Google.Protobuf.TestProtos.TestEnumWithDupVal ue), typeof(global::Google.Protobuf.TestProtos.TestSparseEnum), }, new pbr::Gene ratedCodeInfo[] { 155 new pbr::GeneratedClrTypeInfo(new[] {typeof(global::Google.Protobuf.Te stProtos.ForeignEnum), typeof(global::Google.Protobuf.TestProtos.TestEnumWithDup Value), typeof(global::Google.Protobuf.TestProtos.TestSparseEnum), }, new pbr::G eneratedClrTypeInfo[] {
156 new pbr::GeneratedCodeInfo(typeof(global::Google.Protobuf.TestProtos .TestAllTypes), global::Google.Protobuf.TestProtos.TestAllTypes.Parser, new[]{ " SingleInt32", "SingleInt64", "SingleUint32", "SingleUint64", "SingleSint32", "Si ngleSint64", "SingleFixed32", "SingleFixed64", "SingleSfixed32", "SingleSfixed64 ", "SingleFloat", "SingleDouble", "SingleBool", "SingleString", "SingleBytes", " SingleNestedMessage", "SingleForeignMessage", "SingleImportMessage", "SingleNest edEnum", "SingleForeignEnum", "SingleImportEnum", "SinglePublicImportMessage", " RepeatedInt32", "RepeatedInt64", "RepeatedUint32", "RepeatedUint64", "RepeatedSi nt32", "RepeatedSint64", "RepeatedFixed32", "RepeatedFixed64", "RepeatedSfixed32 ", "RepeatedSfixed64", "RepeatedFloat", "RepeatedDouble", "RepeatedBool", "Repea tedString", "RepeatedBytes", "RepeatedNestedMessage", "RepeatedForeignMessage", "RepeatedImportMessage", "RepeatedNestedEnum", "RepeatedForeignEnum", "RepeatedI mportEnum", "RepeatedPublicImportMessage", "OneofUint32", "OneofNestedMessage", "OneofString", "OneofBytes" }, new[]{ "OneofField" }, new[]{ typeof(global::Goog le.Protobuf.TestProtos.TestAllTypes.Types.NestedEnum) }, new pbr::GeneratedCodeI nfo[] { new pbr::GeneratedCodeInfo(typeof(global::Google.Protobuf.TestProtos.Tes tAllTypes.Types.NestedMessage), global::Google.Protobuf.TestProtos.TestAllTypes. Types.NestedMessage.Parser, new[]{ "Bb" }, null, null, null)}), 156 new pbr::GeneratedClrTypeInfo(typeof(global::Google.Protobuf.TestPro tos.TestAllTypes), global::Google.Protobuf.TestProtos.TestAllTypes.Parser, new[] { "SingleInt32", "SingleInt64", "SingleUint32", "SingleUint64", "SingleSint32", "SingleSint64", "SingleFixed32", "SingleFixed64", "SingleSfixed32", "SingleSfixe d64", "SingleFloat", "SingleDouble", "SingleBool", "SingleString", "SingleBytes" , "SingleNestedMessage", "SingleForeignMessage", "SingleImportMessage", "SingleN estedEnum", "SingleForeignEnum", "SingleImportEnum", "SinglePublicImportMessage" , "RepeatedInt32", "RepeatedInt64", "RepeatedUint32", "RepeatedUint64", "Repeate dSint32", "RepeatedSint64", "RepeatedFixed32", "RepeatedFixed64", "RepeatedSfixe d32", "RepeatedSfixed64", "RepeatedFloat", "RepeatedDouble", "RepeatedBool", "Re peatedString", "RepeatedBytes", "RepeatedNestedMessage", "RepeatedForeignMessage ", "RepeatedImportMessage", "RepeatedNestedEnum", "RepeatedForeignEnum", "Repeat edImportEnum", "RepeatedPublicImportMessage", "OneofUint32", "OneofNestedMessage ", "OneofString", "OneofBytes" }, new[]{ "OneofField" }, new[]{ typeof(global::G oogle.Protobuf.TestProtos.TestAllTypes.Types.NestedEnum) }, new pbr::GeneratedCl rTypeInfo[] { new pbr::GeneratedClrTypeInfo(typeof(global::Google.Protobuf.TestP rotos.TestAllTypes.Types.NestedMessage), global::Google.Protobuf.TestProtos.Test AllTypes.Types.NestedMessage.Parser, new[]{ "Bb" }, null, null, null)}),
157 new pbr::GeneratedCodeInfo(typeof(global::Google.Protobuf.TestProtos .NestedTestAllTypes), global::Google.Protobuf.TestProtos.NestedTestAllTypes.Pars er, new[]{ "Child", "Payload", "RepeatedChild" }, null, null, null), 157 new pbr::GeneratedClrTypeInfo(typeof(global::Google.Protobuf.TestPro tos.NestedTestAllTypes), global::Google.Protobuf.TestProtos.NestedTestAllTypes.P arser, new[]{ "Child", "Payload", "RepeatedChild" }, null, null, null),
158 new pbr::GeneratedCodeInfo(typeof(global::Google.Protobuf.TestProtos .TestDeprecatedFields), global::Google.Protobuf.TestProtos.TestDeprecatedFields. Parser, new[]{ "DeprecatedInt32" }, null, null, null), 158 new pbr::GeneratedClrTypeInfo(typeof(global::Google.Protobuf.TestPro tos.TestDeprecatedFields), global::Google.Protobuf.TestProtos.TestDeprecatedFiel ds.Parser, new[]{ "DeprecatedInt32" }, null, null, null),
159 new pbr::GeneratedCodeInfo(typeof(global::Google.Protobuf.TestProtos .ForeignMessage), global::Google.Protobuf.TestProtos.ForeignMessage.Parser, new[ ]{ "C" }, null, null, null), 159 new pbr::GeneratedClrTypeInfo(typeof(global::Google.Protobuf.TestPro tos.ForeignMessage), global::Google.Protobuf.TestProtos.ForeignMessage.Parser, n ew[]{ "C" }, null, null, null),
160 new pbr::GeneratedCodeInfo(typeof(global::Google.Protobuf.TestProtos .TestReservedFields), global::Google.Protobuf.TestProtos.TestReservedFields.Pars er, null, null, null, null), 160 new pbr::GeneratedClrTypeInfo(typeof(global::Google.Protobuf.TestPro tos.TestReservedFields), global::Google.Protobuf.TestProtos.TestReservedFields.P arser, null, null, null, null),
161 new pbr::GeneratedCodeInfo(typeof(global::Google.Protobuf.TestProtos .TestForeignNested), global::Google.Protobuf.TestProtos.TestForeignNested.Parser , new[]{ "ForeignNested" }, null, null, null), 161 new pbr::GeneratedClrTypeInfo(typeof(global::Google.Protobuf.TestPro tos.TestForeignNested), global::Google.Protobuf.TestProtos.TestForeignNested.Par ser, new[]{ "ForeignNested" }, null, null, null),
162 new pbr::GeneratedCodeInfo(typeof(global::Google.Protobuf.TestProtos .TestReallyLargeTagNumber), global::Google.Protobuf.TestProtos.TestReallyLargeTa gNumber.Parser, new[]{ "A", "Bb" }, null, null, null), 162 new pbr::GeneratedClrTypeInfo(typeof(global::Google.Protobuf.TestPro tos.TestReallyLargeTagNumber), global::Google.Protobuf.TestProtos.TestReallyLarg eTagNumber.Parser, new[]{ "A", "Bb" }, null, null, null),
163 new pbr::GeneratedCodeInfo(typeof(global::Google.Protobuf.TestProtos .TestRecursiveMessage), global::Google.Protobuf.TestProtos.TestRecursiveMessage. Parser, new[]{ "A", "I" }, null, null, null), 163 new pbr::GeneratedClrTypeInfo(typeof(global::Google.Protobuf.TestPro tos.TestRecursiveMessage), global::Google.Protobuf.TestProtos.TestRecursiveMessa ge.Parser, new[]{ "A", "I" }, null, null, null),
164 new pbr::GeneratedCodeInfo(typeof(global::Google.Protobuf.TestProtos .TestMutualRecursionA), global::Google.Protobuf.TestProtos.TestMutualRecursionA. Parser, new[]{ "Bb" }, null, null, null), 164 new pbr::GeneratedClrTypeInfo(typeof(global::Google.Protobuf.TestPro tos.TestMutualRecursionA), global::Google.Protobuf.TestProtos.TestMutualRecursio nA.Parser, new[]{ "Bb" }, null, null, null),
165 new pbr::GeneratedCodeInfo(typeof(global::Google.Protobuf.TestProtos .TestMutualRecursionB), global::Google.Protobuf.TestProtos.TestMutualRecursionB. Parser, new[]{ "A", "OptionalInt32" }, null, null, null), 165 new pbr::GeneratedClrTypeInfo(typeof(global::Google.Protobuf.TestPro tos.TestMutualRecursionB), global::Google.Protobuf.TestProtos.TestMutualRecursio nB.Parser, new[]{ "A", "OptionalInt32" }, null, null, null),
166 new pbr::GeneratedCodeInfo(typeof(global::Google.Protobuf.TestProtos .TestCamelCaseFieldNames), global::Google.Protobuf.TestProtos.TestCamelCaseField Names.Parser, new[]{ "PrimitiveField", "StringField", "EnumField", "MessageField ", "RepeatedPrimitiveField", "RepeatedStringField", "RepeatedEnumField", "Repeat edMessageField" }, null, null, null), 166 new pbr::GeneratedClrTypeInfo(typeof(global::Google.Protobuf.TestPro tos.TestCamelCaseFieldNames), global::Google.Protobuf.TestProtos.TestCamelCaseFi eldNames.Parser, new[]{ "PrimitiveField", "StringField", "EnumField", "MessageFi eld", "RepeatedPrimitiveField", "RepeatedStringField", "RepeatedEnumField", "Rep eatedMessageField" }, null, null, null),
167 new pbr::GeneratedCodeInfo(typeof(global::Google.Protobuf.TestProtos .TestFieldOrderings), global::Google.Protobuf.TestProtos.TestFieldOrderings.Pars er, new[]{ "MyString", "MyInt", "MyFloat", "SingleNestedMessage" }, null, null, new pbr::GeneratedCodeInfo[] { new pbr::GeneratedCodeInfo(typeof(global::Google. Protobuf.TestProtos.TestFieldOrderings.Types.NestedMessage), global::Google.Prot obuf.TestProtos.TestFieldOrderings.Types.NestedMessage.Parser, new[]{ "Oo", "Bb" }, null, null, null)}), 167 new pbr::GeneratedClrTypeInfo(typeof(global::Google.Protobuf.TestPro tos.TestFieldOrderings), global::Google.Protobuf.TestProtos.TestFieldOrderings.P arser, new[]{ "MyString", "MyInt", "MyFloat", "SingleNestedMessage" }, null, nul l, new pbr::GeneratedClrTypeInfo[] { new pbr::GeneratedClrTypeInfo(typeof(global ::Google.Protobuf.TestProtos.TestFieldOrderings.Types.NestedMessage), global::Go ogle.Protobuf.TestProtos.TestFieldOrderings.Types.NestedMessage.Parser, new[]{ " Oo", "Bb" }, null, null, null)}),
168 new pbr::GeneratedCodeInfo(typeof(global::Google.Protobuf.TestProtos .SparseEnumMessage), global::Google.Protobuf.TestProtos.SparseEnumMessage.Parser , new[]{ "SparseEnum" }, null, null, null), 168 new pbr::GeneratedClrTypeInfo(typeof(global::Google.Protobuf.TestPro tos.SparseEnumMessage), global::Google.Protobuf.TestProtos.SparseEnumMessage.Par ser, new[]{ "SparseEnum" }, null, null, null),
169 new pbr::GeneratedCodeInfo(typeof(global::Google.Protobuf.TestProtos .OneString), global::Google.Protobuf.TestProtos.OneString.Parser, new[]{ "Data" }, null, null, null), 169 new pbr::GeneratedClrTypeInfo(typeof(global::Google.Protobuf.TestPro tos.OneString), global::Google.Protobuf.TestProtos.OneString.Parser, new[]{ "Dat a" }, null, null, null),
170 new pbr::GeneratedCodeInfo(typeof(global::Google.Protobuf.TestProtos .MoreString), global::Google.Protobuf.TestProtos.MoreString.Parser, new[]{ "Data " }, null, null, null), 170 new pbr::GeneratedClrTypeInfo(typeof(global::Google.Protobuf.TestPro tos.MoreString), global::Google.Protobuf.TestProtos.MoreString.Parser, new[]{ "D ata" }, null, null, null),
171 new pbr::GeneratedCodeInfo(typeof(global::Google.Protobuf.TestProtos .OneBytes), global::Google.Protobuf.TestProtos.OneBytes.Parser, new[]{ "Data" }, null, null, null), 171 new pbr::GeneratedClrTypeInfo(typeof(global::Google.Protobuf.TestPro tos.OneBytes), global::Google.Protobuf.TestProtos.OneBytes.Parser, new[]{ "Data" }, null, null, null),
172 new pbr::GeneratedCodeInfo(typeof(global::Google.Protobuf.TestProtos .MoreBytes), global::Google.Protobuf.TestProtos.MoreBytes.Parser, new[]{ "Data" }, null, null, null), 172 new pbr::GeneratedClrTypeInfo(typeof(global::Google.Protobuf.TestPro tos.MoreBytes), global::Google.Protobuf.TestProtos.MoreBytes.Parser, new[]{ "Dat a" }, null, null, null),
173 new pbr::GeneratedCodeInfo(typeof(global::Google.Protobuf.TestProtos .Int32Message), global::Google.Protobuf.TestProtos.Int32Message.Parser, new[]{ " Data" }, null, null, null), 173 new pbr::GeneratedClrTypeInfo(typeof(global::Google.Protobuf.TestPro tos.Int32Message), global::Google.Protobuf.TestProtos.Int32Message.Parser, new[] { "Data" }, null, null, null),
174 new pbr::GeneratedCodeInfo(typeof(global::Google.Protobuf.TestProtos .Uint32Message), global::Google.Protobuf.TestProtos.Uint32Message.Parser, new[]{ "Data" }, null, null, null), 174 new pbr::GeneratedClrTypeInfo(typeof(global::Google.Protobuf.TestPro tos.Uint32Message), global::Google.Protobuf.TestProtos.Uint32Message.Parser, new []{ "Data" }, null, null, null),
175 new pbr::GeneratedCodeInfo(typeof(global::Google.Protobuf.TestProtos .Int64Message), global::Google.Protobuf.TestProtos.Int64Message.Parser, new[]{ " Data" }, null, null, null), 175 new pbr::GeneratedClrTypeInfo(typeof(global::Google.Protobuf.TestPro tos.Int64Message), global::Google.Protobuf.TestProtos.Int64Message.Parser, new[] { "Data" }, null, null, null),
176 new pbr::GeneratedCodeInfo(typeof(global::Google.Protobuf.TestProtos .Uint64Message), global::Google.Protobuf.TestProtos.Uint64Message.Parser, new[]{ "Data" }, null, null, null), 176 new pbr::GeneratedClrTypeInfo(typeof(global::Google.Protobuf.TestPro tos.Uint64Message), global::Google.Protobuf.TestProtos.Uint64Message.Parser, new []{ "Data" }, null, null, null),
177 new pbr::GeneratedCodeInfo(typeof(global::Google.Protobuf.TestProtos .BoolMessage), global::Google.Protobuf.TestProtos.BoolMessage.Parser, new[]{ "Da ta" }, null, null, null), 177 new pbr::GeneratedClrTypeInfo(typeof(global::Google.Protobuf.TestPro tos.BoolMessage), global::Google.Protobuf.TestProtos.BoolMessage.Parser, new[]{ "Data" }, null, null, null),
178 new pbr::GeneratedCodeInfo(typeof(global::Google.Protobuf.TestProtos .TestOneof), global::Google.Protobuf.TestProtos.TestOneof.Parser, new[]{ "FooInt ", "FooString", "FooMessage" }, new[]{ "Foo" }, null, null), 178 new pbr::GeneratedClrTypeInfo(typeof(global::Google.Protobuf.TestPro tos.TestOneof), global::Google.Protobuf.TestProtos.TestOneof.Parser, new[]{ "Foo Int", "FooString", "FooMessage" }, new[]{ "Foo" }, null, null),
179 new pbr::GeneratedCodeInfo(typeof(global::Google.Protobuf.TestProtos .TestPackedTypes), global::Google.Protobuf.TestProtos.TestPackedTypes.Parser, ne w[]{ "PackedInt32", "PackedInt64", "PackedUint32", "PackedUint64", "PackedSint32 ", "PackedSint64", "PackedFixed32", "PackedFixed64", "PackedSfixed32", "PackedSf ixed64", "PackedFloat", "PackedDouble", "PackedBool", "PackedEnum" }, null, null , null), 179 new pbr::GeneratedClrTypeInfo(typeof(global::Google.Protobuf.TestPro tos.TestPackedTypes), global::Google.Protobuf.TestProtos.TestPackedTypes.Parser, new[]{ "PackedInt32", "PackedInt64", "PackedUint32", "PackedUint64", "PackedSin t32", "PackedSint64", "PackedFixed32", "PackedFixed64", "PackedSfixed32", "Packe dSfixed64", "PackedFloat", "PackedDouble", "PackedBool", "PackedEnum" }, null, n ull, null),
180 new pbr::GeneratedCodeInfo(typeof(global::Google.Protobuf.TestProtos .TestUnpackedTypes), global::Google.Protobuf.TestProtos.TestUnpackedTypes.Parser , new[]{ "UnpackedInt32", "UnpackedInt64", "UnpackedUint32", "UnpackedUint64", " UnpackedSint32", "UnpackedSint64", "UnpackedFixed32", "UnpackedFixed64", "Unpack edSfixed32", "UnpackedSfixed64", "UnpackedFloat", "UnpackedDouble", "UnpackedBoo l", "UnpackedEnum" }, null, null, null), 180 new pbr::GeneratedClrTypeInfo(typeof(global::Google.Protobuf.TestPro tos.TestUnpackedTypes), global::Google.Protobuf.TestProtos.TestUnpackedTypes.Par ser, new[]{ "UnpackedInt32", "UnpackedInt64", "UnpackedUint32", "UnpackedUint64" , "UnpackedSint32", "UnpackedSint64", "UnpackedFixed32", "UnpackedFixed64", "Unp ackedSfixed32", "UnpackedSfixed64", "UnpackedFloat", "UnpackedDouble", "Unpacked Bool", "UnpackedEnum" }, null, null, null),
181 new pbr::GeneratedCodeInfo(typeof(global::Google.Protobuf.TestProtos .TestRepeatedScalarDifferentTagSizes), global::Google.Protobuf.TestProtos.TestRe peatedScalarDifferentTagSizes.Parser, new[]{ "RepeatedFixed32", "RepeatedInt32", "RepeatedFixed64", "RepeatedInt64", "RepeatedFloat", "RepeatedUint64" }, null, null, null), 181 new pbr::GeneratedClrTypeInfo(typeof(global::Google.Protobuf.TestPro tos.TestRepeatedScalarDifferentTagSizes), global::Google.Protobuf.TestProtos.Tes tRepeatedScalarDifferentTagSizes.Parser, new[]{ "RepeatedFixed32", "RepeatedInt3 2", "RepeatedFixed64", "RepeatedInt64", "RepeatedFloat", "RepeatedUint64" }, nul l, null, null),
182 new pbr::GeneratedCodeInfo(typeof(global::Google.Protobuf.TestProtos .TestCommentInjectionMessage), global::Google.Protobuf.TestProtos.TestCommentInj ectionMessage.Parser, new[]{ "A" }, null, null, null), 182 new pbr::GeneratedClrTypeInfo(typeof(global::Google.Protobuf.TestPro tos.TestCommentInjectionMessage), global::Google.Protobuf.TestProtos.TestComment InjectionMessage.Parser, new[]{ "A" }, null, null, null),
183 new pbr::GeneratedCodeInfo(typeof(global::Google.Protobuf.TestProtos .FooRequest), global::Google.Protobuf.TestProtos.FooRequest.Parser, null, null, null, null), 183 new pbr::GeneratedClrTypeInfo(typeof(global::Google.Protobuf.TestPro tos.FooRequest), global::Google.Protobuf.TestProtos.FooRequest.Parser, null, nul l, null, null),
184 new pbr::GeneratedCodeInfo(typeof(global::Google.Protobuf.TestProtos .FooResponse), global::Google.Protobuf.TestProtos.FooResponse.Parser, null, null , null, null), 184 new pbr::GeneratedClrTypeInfo(typeof(global::Google.Protobuf.TestPro tos.FooResponse), global::Google.Protobuf.TestProtos.FooResponse.Parser, null, n ull, null, null),
185 new pbr::GeneratedCodeInfo(typeof(global::Google.Protobuf.TestProtos .FooClientMessage), global::Google.Protobuf.TestProtos.FooClientMessage.Parser, null, null, null, null), 185 new pbr::GeneratedClrTypeInfo(typeof(global::Google.Protobuf.TestPro tos.FooClientMessage), global::Google.Protobuf.TestProtos.FooClientMessage.Parse r, null, null, null, null),
186 new pbr::GeneratedCodeInfo(typeof(global::Google.Protobuf.TestProtos .FooServerMessage), global::Google.Protobuf.TestProtos.FooServerMessage.Parser, null, null, null, null), 186 new pbr::GeneratedClrTypeInfo(typeof(global::Google.Protobuf.TestPro tos.FooServerMessage), global::Google.Protobuf.TestProtos.FooServerMessage.Parse r, null, null, null, null),
187 new pbr::GeneratedCodeInfo(typeof(global::Google.Protobuf.TestProtos .BarRequest), global::Google.Protobuf.TestProtos.BarRequest.Parser, null, null, null, null), 187 new pbr::GeneratedClrTypeInfo(typeof(global::Google.Protobuf.TestPro tos.BarRequest), global::Google.Protobuf.TestProtos.BarRequest.Parser, null, nul l, null, null),
188 new pbr::GeneratedCodeInfo(typeof(global::Google.Protobuf.TestProtos .BarResponse), global::Google.Protobuf.TestProtos.BarResponse.Parser, null, null , null, null) 188 new pbr::GeneratedClrTypeInfo(typeof(global::Google.Protobuf.TestPro tos.BarResponse), global::Google.Protobuf.TestProtos.BarResponse.Parser, null, n ull, null, null)
189 })); 189 }));
190 } 190 }
191 #endregion 191 #endregion
192 192
193 } 193 }
194 #region Enums 194 #region Enums
195 public enum ForeignEnum { 195 public enum ForeignEnum {
196 FOREIGN_UNSPECIFIED = 0, 196 [pbr::OriginalName("FOREIGN_UNSPECIFIED")] ForeignUnspecified = 0,
197 FOREIGN_FOO = 4, 197 [pbr::OriginalName("FOREIGN_FOO")] ForeignFoo = 4,
198 FOREIGN_BAR = 5, 198 [pbr::OriginalName("FOREIGN_BAR")] ForeignBar = 5,
199 FOREIGN_BAZ = 6, 199 [pbr::OriginalName("FOREIGN_BAZ")] ForeignBaz = 6,
200 } 200 }
201 201
202 /// <summary> 202 /// <summary>
203 /// Test an enum that has multiple values with the same number. 203 /// Test an enum that has multiple values with the same number.
204 /// </summary> 204 /// </summary>
205 public enum TestEnumWithDupValue { 205 public enum TestEnumWithDupValue {
206 TEST_ENUM_WITH_DUP_VALUE_UNSPECIFIED = 0, 206 [pbr::OriginalName("TEST_ENUM_WITH_DUP_VALUE_UNSPECIFIED")] Unspecified = 0,
207 FOO1 = 1, 207 [pbr::OriginalName("FOO1")] Foo1 = 1,
208 BAR1 = 2, 208 [pbr::OriginalName("BAR1")] Bar1 = 2,
209 BAZ = 3, 209 [pbr::OriginalName("BAZ")] Baz = 3,
210 FOO2 = 1, 210 [pbr::OriginalName("FOO2")] Foo2 = 1,
211 BAR2 = 2, 211 [pbr::OriginalName("BAR2")] Bar2 = 2,
212 } 212 }
213 213
214 /// <summary> 214 /// <summary>
215 /// Test an enum with large, unordered values. 215 /// Test an enum with large, unordered values.
216 /// </summary> 216 /// </summary>
217 public enum TestSparseEnum { 217 public enum TestSparseEnum {
218 TEST_SPARSE_ENUM_UNSPECIFIED = 0, 218 [pbr::OriginalName("TEST_SPARSE_ENUM_UNSPECIFIED")] Unspecified = 0,
219 SPARSE_A = 123, 219 [pbr::OriginalName("SPARSE_A")] SparseA = 123,
220 SPARSE_B = 62374, 220 [pbr::OriginalName("SPARSE_B")] SparseB = 62374,
221 SPARSE_C = 12589234, 221 [pbr::OriginalName("SPARSE_C")] SparseC = 12589234,
222 SPARSE_D = -15, 222 [pbr::OriginalName("SPARSE_D")] SparseD = -15,
223 SPARSE_E = -53452, 223 [pbr::OriginalName("SPARSE_E")] SparseE = -53452,
224 /// <summary> 224 /// <summary>
225 /// In proto3, value 0 must be the first one specified 225 /// In proto3, value 0 must be the first one specified
226 /// SPARSE_F = 0; 226 /// SPARSE_F = 0;
227 /// </summary> 227 /// </summary>
228 SPARSE_G = 2, 228 [pbr::OriginalName("SPARSE_G")] SparseG = 2,
229 } 229 }
230 230
231 #endregion 231 #endregion
232 232
233 #region Messages 233 #region Messages
234 /// <summary> 234 /// <summary>
235 /// This proto includes every type of field in both singular and repeated 235 /// This proto includes every type of field in both singular and repeated
236 /// forms. 236 /// forms.
237 /// </summary> 237 /// </summary>
238 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] 238 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
(...skipping 213 matching lines...) Expand 10 before | Expand all | Expand 10 after
452 singleBool_ = value; 452 singleBool_ = value;
453 } 453 }
454 } 454 }
455 455
456 /// <summary>Field number for the "single_string" field.</summary> 456 /// <summary>Field number for the "single_string" field.</summary>
457 public const int SingleStringFieldNumber = 14; 457 public const int SingleStringFieldNumber = 14;
458 private string singleString_ = ""; 458 private string singleString_ = "";
459 public string SingleString { 459 public string SingleString {
460 get { return singleString_; } 460 get { return singleString_; }
461 set { 461 set {
462 singleString_ = pb::Preconditions.CheckNotNull(value, "value"); 462 singleString_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
463 } 463 }
464 } 464 }
465 465
466 /// <summary>Field number for the "single_bytes" field.</summary> 466 /// <summary>Field number for the "single_bytes" field.</summary>
467 public const int SingleBytesFieldNumber = 15; 467 public const int SingleBytesFieldNumber = 15;
468 private pb::ByteString singleBytes_ = pb::ByteString.Empty; 468 private pb::ByteString singleBytes_ = pb::ByteString.Empty;
469 public pb::ByteString SingleBytes { 469 public pb::ByteString SingleBytes {
470 get { return singleBytes_; } 470 get { return singleBytes_; }
471 set { 471 set {
472 singleBytes_ = pb::Preconditions.CheckNotNull(value, "value"); 472 singleBytes_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
473 } 473 }
474 } 474 }
475 475
476 /// <summary>Field number for the "single_nested_message" field.</summary> 476 /// <summary>Field number for the "single_nested_message" field.</summary>
477 public const int SingleNestedMessageFieldNumber = 18; 477 public const int SingleNestedMessageFieldNumber = 18;
478 private global::Google.Protobuf.TestProtos.TestAllTypes.Types.NestedMessage singleNestedMessage_; 478 private global::Google.Protobuf.TestProtos.TestAllTypes.Types.NestedMessage singleNestedMessage_;
479 public global::Google.Protobuf.TestProtos.TestAllTypes.Types.NestedMessage S ingleNestedMessage { 479 public global::Google.Protobuf.TestProtos.TestAllTypes.Types.NestedMessage S ingleNestedMessage {
480 get { return singleNestedMessage_; } 480 get { return singleNestedMessage_; }
481 set { 481 set {
482 singleNestedMessage_ = value; 482 singleNestedMessage_ = value;
(...skipping 15 matching lines...) Expand all
498 private global::Google.Protobuf.TestProtos.ImportMessage singleImportMessage _; 498 private global::Google.Protobuf.TestProtos.ImportMessage singleImportMessage _;
499 public global::Google.Protobuf.TestProtos.ImportMessage SingleImportMessage { 499 public global::Google.Protobuf.TestProtos.ImportMessage SingleImportMessage {
500 get { return singleImportMessage_; } 500 get { return singleImportMessage_; }
501 set { 501 set {
502 singleImportMessage_ = value; 502 singleImportMessage_ = value;
503 } 503 }
504 } 504 }
505 505
506 /// <summary>Field number for the "single_nested_enum" field.</summary> 506 /// <summary>Field number for the "single_nested_enum" field.</summary>
507 public const int SingleNestedEnumFieldNumber = 21; 507 public const int SingleNestedEnumFieldNumber = 21;
508 private global::Google.Protobuf.TestProtos.TestAllTypes.Types.NestedEnum sin gleNestedEnum_ = global::Google.Protobuf.TestProtos.TestAllTypes.Types.NestedEnu m.NESTED_ENUM_UNSPECIFIED; 508 private global::Google.Protobuf.TestProtos.TestAllTypes.Types.NestedEnum sin gleNestedEnum_ = 0;
509 public global::Google.Protobuf.TestProtos.TestAllTypes.Types.NestedEnum Sing leNestedEnum { 509 public global::Google.Protobuf.TestProtos.TestAllTypes.Types.NestedEnum Sing leNestedEnum {
510 get { return singleNestedEnum_; } 510 get { return singleNestedEnum_; }
511 set { 511 set {
512 singleNestedEnum_ = value; 512 singleNestedEnum_ = value;
513 } 513 }
514 } 514 }
515 515
516 /// <summary>Field number for the "single_foreign_enum" field.</summary> 516 /// <summary>Field number for the "single_foreign_enum" field.</summary>
517 public const int SingleForeignEnumFieldNumber = 22; 517 public const int SingleForeignEnumFieldNumber = 22;
518 private global::Google.Protobuf.TestProtos.ForeignEnum singleForeignEnum_ = global::Google.Protobuf.TestProtos.ForeignEnum.FOREIGN_UNSPECIFIED; 518 private global::Google.Protobuf.TestProtos.ForeignEnum singleForeignEnum_ = 0;
519 public global::Google.Protobuf.TestProtos.ForeignEnum SingleForeignEnum { 519 public global::Google.Protobuf.TestProtos.ForeignEnum SingleForeignEnum {
520 get { return singleForeignEnum_; } 520 get { return singleForeignEnum_; }
521 set { 521 set {
522 singleForeignEnum_ = value; 522 singleForeignEnum_ = value;
523 } 523 }
524 } 524 }
525 525
526 /// <summary>Field number for the "single_import_enum" field.</summary> 526 /// <summary>Field number for the "single_import_enum" field.</summary>
527 public const int SingleImportEnumFieldNumber = 23; 527 public const int SingleImportEnumFieldNumber = 23;
528 private global::Google.Protobuf.TestProtos.ImportEnum singleImportEnum_ = gl obal::Google.Protobuf.TestProtos.ImportEnum.IMPORT_ENUM_UNSPECIFIED; 528 private global::Google.Protobuf.TestProtos.ImportEnum singleImportEnum_ = 0;
529 public global::Google.Protobuf.TestProtos.ImportEnum SingleImportEnum { 529 public global::Google.Protobuf.TestProtos.ImportEnum SingleImportEnum {
530 get { return singleImportEnum_; } 530 get { return singleImportEnum_; }
531 set { 531 set {
532 singleImportEnum_ = value; 532 singleImportEnum_ = value;
533 } 533 }
534 } 534 }
535 535
536 /// <summary>Field number for the "single_public_import_message" field.</sum mary> 536 /// <summary>Field number for the "single_public_import_message" field.</sum mary>
537 public const int SinglePublicImportMessageFieldNumber = 26; 537 public const int SinglePublicImportMessageFieldNumber = 26;
538 private global::Google.Protobuf.TestProtos.PublicImportMessage singlePublicI mportMessage_; 538 private global::Google.Protobuf.TestProtos.PublicImportMessage singlePublicI mportMessage_;
(...skipping 229 matching lines...) Expand 10 before | Expand all | Expand 10 after
768 oneofField_ = value; 768 oneofField_ = value;
769 oneofFieldCase_ = value == null ? OneofFieldOneofCase.None : OneofFieldO neofCase.OneofNestedMessage; 769 oneofFieldCase_ = value == null ? OneofFieldOneofCase.None : OneofFieldO neofCase.OneofNestedMessage;
770 } 770 }
771 } 771 }
772 772
773 /// <summary>Field number for the "oneof_string" field.</summary> 773 /// <summary>Field number for the "oneof_string" field.</summary>
774 public const int OneofStringFieldNumber = 113; 774 public const int OneofStringFieldNumber = 113;
775 public string OneofString { 775 public string OneofString {
776 get { return oneofFieldCase_ == OneofFieldOneofCase.OneofString ? (string) oneofField_ : ""; } 776 get { return oneofFieldCase_ == OneofFieldOneofCase.OneofString ? (string) oneofField_ : ""; }
777 set { 777 set {
778 oneofField_ = pb::Preconditions.CheckNotNull(value, "value"); 778 oneofField_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
779 oneofFieldCase_ = OneofFieldOneofCase.OneofString; 779 oneofFieldCase_ = OneofFieldOneofCase.OneofString;
780 } 780 }
781 } 781 }
782 782
783 /// <summary>Field number for the "oneof_bytes" field.</summary> 783 /// <summary>Field number for the "oneof_bytes" field.</summary>
784 public const int OneofBytesFieldNumber = 114; 784 public const int OneofBytesFieldNumber = 114;
785 public pb::ByteString OneofBytes { 785 public pb::ByteString OneofBytes {
786 get { return oneofFieldCase_ == OneofFieldOneofCase.OneofBytes ? (pb::Byte String) oneofField_ : pb::ByteString.Empty; } 786 get { return oneofFieldCase_ == OneofFieldOneofCase.OneofBytes ? (pb::Byte String) oneofField_ : pb::ByteString.Empty; }
787 set { 787 set {
788 oneofField_ = pb::Preconditions.CheckNotNull(value, "value"); 788 oneofField_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
789 oneofFieldCase_ = OneofFieldOneofCase.OneofBytes; 789 oneofFieldCase_ = OneofFieldOneofCase.OneofBytes;
790 } 790 }
791 } 791 }
792 792
793 private object oneofField_; 793 private object oneofField_;
794 /// <summary>Enum of possible cases for the "oneof_field" oneof.</summary> 794 /// <summary>Enum of possible cases for the "oneof_field" oneof.</summary>
795 public enum OneofFieldOneofCase { 795 public enum OneofFieldOneofCase {
796 None = 0, 796 None = 0,
797 OneofUint32 = 111, 797 OneofUint32 = 111,
798 OneofNestedMessage = 112, 798 OneofNestedMessage = 112,
(...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after
885 if (SingleSfixed32 != 0) hash ^= SingleSfixed32.GetHashCode(); 885 if (SingleSfixed32 != 0) hash ^= SingleSfixed32.GetHashCode();
886 if (SingleSfixed64 != 0L) hash ^= SingleSfixed64.GetHashCode(); 886 if (SingleSfixed64 != 0L) hash ^= SingleSfixed64.GetHashCode();
887 if (SingleFloat != 0F) hash ^= SingleFloat.GetHashCode(); 887 if (SingleFloat != 0F) hash ^= SingleFloat.GetHashCode();
888 if (SingleDouble != 0D) hash ^= SingleDouble.GetHashCode(); 888 if (SingleDouble != 0D) hash ^= SingleDouble.GetHashCode();
889 if (SingleBool != false) hash ^= SingleBool.GetHashCode(); 889 if (SingleBool != false) hash ^= SingleBool.GetHashCode();
890 if (SingleString.Length != 0) hash ^= SingleString.GetHashCode(); 890 if (SingleString.Length != 0) hash ^= SingleString.GetHashCode();
891 if (SingleBytes.Length != 0) hash ^= SingleBytes.GetHashCode(); 891 if (SingleBytes.Length != 0) hash ^= SingleBytes.GetHashCode();
892 if (singleNestedMessage_ != null) hash ^= SingleNestedMessage.GetHashCode( ); 892 if (singleNestedMessage_ != null) hash ^= SingleNestedMessage.GetHashCode( );
893 if (singleForeignMessage_ != null) hash ^= SingleForeignMessage.GetHashCod e(); 893 if (singleForeignMessage_ != null) hash ^= SingleForeignMessage.GetHashCod e();
894 if (singleImportMessage_ != null) hash ^= SingleImportMessage.GetHashCode( ); 894 if (singleImportMessage_ != null) hash ^= SingleImportMessage.GetHashCode( );
895 if (SingleNestedEnum != global::Google.Protobuf.TestProtos.TestAllTypes.Ty pes.NestedEnum.NESTED_ENUM_UNSPECIFIED) hash ^= SingleNestedEnum.GetHashCode(); 895 if (SingleNestedEnum != 0) hash ^= SingleNestedEnum.GetHashCode();
896 if (SingleForeignEnum != global::Google.Protobuf.TestProtos.ForeignEnum.FO REIGN_UNSPECIFIED) hash ^= SingleForeignEnum.GetHashCode(); 896 if (SingleForeignEnum != 0) hash ^= SingleForeignEnum.GetHashCode();
897 if (SingleImportEnum != global::Google.Protobuf.TestProtos.ImportEnum.IMPO RT_ENUM_UNSPECIFIED) hash ^= SingleImportEnum.GetHashCode(); 897 if (SingleImportEnum != 0) hash ^= SingleImportEnum.GetHashCode();
898 if (singlePublicImportMessage_ != null) hash ^= SinglePublicImportMessage. GetHashCode(); 898 if (singlePublicImportMessage_ != null) hash ^= SinglePublicImportMessage. GetHashCode();
899 hash ^= repeatedInt32_.GetHashCode(); 899 hash ^= repeatedInt32_.GetHashCode();
900 hash ^= repeatedInt64_.GetHashCode(); 900 hash ^= repeatedInt64_.GetHashCode();
901 hash ^= repeatedUint32_.GetHashCode(); 901 hash ^= repeatedUint32_.GetHashCode();
902 hash ^= repeatedUint64_.GetHashCode(); 902 hash ^= repeatedUint64_.GetHashCode();
903 hash ^= repeatedSint32_.GetHashCode(); 903 hash ^= repeatedSint32_.GetHashCode();
904 hash ^= repeatedSint64_.GetHashCode(); 904 hash ^= repeatedSint64_.GetHashCode();
905 hash ^= repeatedFixed32_.GetHashCode(); 905 hash ^= repeatedFixed32_.GetHashCode();
906 hash ^= repeatedFixed64_.GetHashCode(); 906 hash ^= repeatedFixed64_.GetHashCode();
907 hash ^= repeatedSfixed32_.GetHashCode(); 907 hash ^= repeatedSfixed32_.GetHashCode();
(...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after
996 output.WriteMessage(SingleNestedMessage); 996 output.WriteMessage(SingleNestedMessage);
997 } 997 }
998 if (singleForeignMessage_ != null) { 998 if (singleForeignMessage_ != null) {
999 output.WriteRawTag(154, 1); 999 output.WriteRawTag(154, 1);
1000 output.WriteMessage(SingleForeignMessage); 1000 output.WriteMessage(SingleForeignMessage);
1001 } 1001 }
1002 if (singleImportMessage_ != null) { 1002 if (singleImportMessage_ != null) {
1003 output.WriteRawTag(162, 1); 1003 output.WriteRawTag(162, 1);
1004 output.WriteMessage(SingleImportMessage); 1004 output.WriteMessage(SingleImportMessage);
1005 } 1005 }
1006 if (SingleNestedEnum != global::Google.Protobuf.TestProtos.TestAllTypes.Ty pes.NestedEnum.NESTED_ENUM_UNSPECIFIED) { 1006 if (SingleNestedEnum != 0) {
1007 output.WriteRawTag(168, 1); 1007 output.WriteRawTag(168, 1);
1008 output.WriteEnum((int) SingleNestedEnum); 1008 output.WriteEnum((int) SingleNestedEnum);
1009 } 1009 }
1010 if (SingleForeignEnum != global::Google.Protobuf.TestProtos.ForeignEnum.FO REIGN_UNSPECIFIED) { 1010 if (SingleForeignEnum != 0) {
1011 output.WriteRawTag(176, 1); 1011 output.WriteRawTag(176, 1);
1012 output.WriteEnum((int) SingleForeignEnum); 1012 output.WriteEnum((int) SingleForeignEnum);
1013 } 1013 }
1014 if (SingleImportEnum != global::Google.Protobuf.TestProtos.ImportEnum.IMPO RT_ENUM_UNSPECIFIED) { 1014 if (SingleImportEnum != 0) {
1015 output.WriteRawTag(184, 1); 1015 output.WriteRawTag(184, 1);
1016 output.WriteEnum((int) SingleImportEnum); 1016 output.WriteEnum((int) SingleImportEnum);
1017 } 1017 }
1018 if (singlePublicImportMessage_ != null) { 1018 if (singlePublicImportMessage_ != null) {
1019 output.WriteRawTag(210, 1); 1019 output.WriteRawTag(210, 1);
1020 output.WriteMessage(SinglePublicImportMessage); 1020 output.WriteMessage(SinglePublicImportMessage);
1021 } 1021 }
1022 repeatedInt32_.WriteTo(output, _repeated_repeatedInt32_codec); 1022 repeatedInt32_.WriteTo(output, _repeated_repeatedInt32_codec);
1023 repeatedInt64_.WriteTo(output, _repeated_repeatedInt64_codec); 1023 repeatedInt64_.WriteTo(output, _repeated_repeatedInt64_codec);
1024 repeatedUint32_.WriteTo(output, _repeated_repeatedUint32_codec); 1024 repeatedUint32_.WriteTo(output, _repeated_repeatedUint32_codec);
(...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after
1108 } 1108 }
1109 if (singleNestedMessage_ != null) { 1109 if (singleNestedMessage_ != null) {
1110 size += 2 + pb::CodedOutputStream.ComputeMessageSize(SingleNestedMessage ); 1110 size += 2 + pb::CodedOutputStream.ComputeMessageSize(SingleNestedMessage );
1111 } 1111 }
1112 if (singleForeignMessage_ != null) { 1112 if (singleForeignMessage_ != null) {
1113 size += 2 + pb::CodedOutputStream.ComputeMessageSize(SingleForeignMessag e); 1113 size += 2 + pb::CodedOutputStream.ComputeMessageSize(SingleForeignMessag e);
1114 } 1114 }
1115 if (singleImportMessage_ != null) { 1115 if (singleImportMessage_ != null) {
1116 size += 2 + pb::CodedOutputStream.ComputeMessageSize(SingleImportMessage ); 1116 size += 2 + pb::CodedOutputStream.ComputeMessageSize(SingleImportMessage );
1117 } 1117 }
1118 if (SingleNestedEnum != global::Google.Protobuf.TestProtos.TestAllTypes.Ty pes.NestedEnum.NESTED_ENUM_UNSPECIFIED) { 1118 if (SingleNestedEnum != 0) {
1119 size += 2 + pb::CodedOutputStream.ComputeEnumSize((int) SingleNestedEnum ); 1119 size += 2 + pb::CodedOutputStream.ComputeEnumSize((int) SingleNestedEnum );
1120 } 1120 }
1121 if (SingleForeignEnum != global::Google.Protobuf.TestProtos.ForeignEnum.FO REIGN_UNSPECIFIED) { 1121 if (SingleForeignEnum != 0) {
1122 size += 2 + pb::CodedOutputStream.ComputeEnumSize((int) SingleForeignEnu m); 1122 size += 2 + pb::CodedOutputStream.ComputeEnumSize((int) SingleForeignEnu m);
1123 } 1123 }
1124 if (SingleImportEnum != global::Google.Protobuf.TestProtos.ImportEnum.IMPO RT_ENUM_UNSPECIFIED) { 1124 if (SingleImportEnum != 0) {
1125 size += 2 + pb::CodedOutputStream.ComputeEnumSize((int) SingleImportEnum ); 1125 size += 2 + pb::CodedOutputStream.ComputeEnumSize((int) SingleImportEnum );
1126 } 1126 }
1127 if (singlePublicImportMessage_ != null) { 1127 if (singlePublicImportMessage_ != null) {
1128 size += 2 + pb::CodedOutputStream.ComputeMessageSize(SinglePublicImportM essage); 1128 size += 2 + pb::CodedOutputStream.ComputeMessageSize(SinglePublicImportM essage);
1129 } 1129 }
1130 size += repeatedInt32_.CalculateSize(_repeated_repeatedInt32_codec); 1130 size += repeatedInt32_.CalculateSize(_repeated_repeatedInt32_codec);
1131 size += repeatedInt64_.CalculateSize(_repeated_repeatedInt64_codec); 1131 size += repeatedInt64_.CalculateSize(_repeated_repeatedInt64_codec);
1132 size += repeatedUint32_.CalculateSize(_repeated_repeatedUint32_codec); 1132 size += repeatedUint32_.CalculateSize(_repeated_repeatedUint32_codec);
1133 size += repeatedUint64_.CalculateSize(_repeated_repeatedUint64_codec); 1133 size += repeatedUint64_.CalculateSize(_repeated_repeatedUint64_codec);
1134 size += repeatedSint32_.CalculateSize(_repeated_repeatedSint32_codec); 1134 size += repeatedSint32_.CalculateSize(_repeated_repeatedSint32_codec);
(...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after
1224 singleForeignMessage_ = new global::Google.Protobuf.TestProtos.Foreign Message(); 1224 singleForeignMessage_ = new global::Google.Protobuf.TestProtos.Foreign Message();
1225 } 1225 }
1226 SingleForeignMessage.MergeFrom(other.SingleForeignMessage); 1226 SingleForeignMessage.MergeFrom(other.SingleForeignMessage);
1227 } 1227 }
1228 if (other.singleImportMessage_ != null) { 1228 if (other.singleImportMessage_ != null) {
1229 if (singleImportMessage_ == null) { 1229 if (singleImportMessage_ == null) {
1230 singleImportMessage_ = new global::Google.Protobuf.TestProtos.ImportMe ssage(); 1230 singleImportMessage_ = new global::Google.Protobuf.TestProtos.ImportMe ssage();
1231 } 1231 }
1232 SingleImportMessage.MergeFrom(other.SingleImportMessage); 1232 SingleImportMessage.MergeFrom(other.SingleImportMessage);
1233 } 1233 }
1234 if (other.SingleNestedEnum != global::Google.Protobuf.TestProtos.TestAllTy pes.Types.NestedEnum.NESTED_ENUM_UNSPECIFIED) { 1234 if (other.SingleNestedEnum != 0) {
1235 SingleNestedEnum = other.SingleNestedEnum; 1235 SingleNestedEnum = other.SingleNestedEnum;
1236 } 1236 }
1237 if (other.SingleForeignEnum != global::Google.Protobuf.TestProtos.ForeignE num.FOREIGN_UNSPECIFIED) { 1237 if (other.SingleForeignEnum != 0) {
1238 SingleForeignEnum = other.SingleForeignEnum; 1238 SingleForeignEnum = other.SingleForeignEnum;
1239 } 1239 }
1240 if (other.SingleImportEnum != global::Google.Protobuf.TestProtos.ImportEnu m.IMPORT_ENUM_UNSPECIFIED) { 1240 if (other.SingleImportEnum != 0) {
1241 SingleImportEnum = other.SingleImportEnum; 1241 SingleImportEnum = other.SingleImportEnum;
1242 } 1242 }
1243 if (other.singlePublicImportMessage_ != null) { 1243 if (other.singlePublicImportMessage_ != null) {
1244 if (singlePublicImportMessage_ == null) { 1244 if (singlePublicImportMessage_ == null) {
1245 singlePublicImportMessage_ = new global::Google.Protobuf.TestProtos.Pu blicImportMessage(); 1245 singlePublicImportMessage_ = new global::Google.Protobuf.TestProtos.Pu blicImportMessage();
1246 } 1246 }
1247 SinglePublicImportMessage.MergeFrom(other.SinglePublicImportMessage); 1247 SinglePublicImportMessage.MergeFrom(other.SinglePublicImportMessage);
1248 } 1248 }
1249 repeatedInt32_.Add(other.repeatedInt32_); 1249 repeatedInt32_.Add(other.repeatedInt32_);
1250 repeatedInt64_.Add(other.repeatedInt64_); 1250 repeatedInt64_.Add(other.repeatedInt64_);
(...skipping 268 matching lines...) Expand 10 before | Expand all | Expand 10 after
1519 } 1519 }
1520 } 1520 }
1521 } 1521 }
1522 } 1522 }
1523 1523
1524 #region Nested types 1524 #region Nested types
1525 /// <summary>Container for nested types declared in the TestAllTypes message type.</summary> 1525 /// <summary>Container for nested types declared in the TestAllTypes message type.</summary>
1526 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] 1526 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
1527 public static partial class Types { 1527 public static partial class Types {
1528 public enum NestedEnum { 1528 public enum NestedEnum {
1529 NESTED_ENUM_UNSPECIFIED = 0, 1529 [pbr::OriginalName("NESTED_ENUM_UNSPECIFIED")] Unspecified = 0,
1530 FOO = 1, 1530 [pbr::OriginalName("FOO")] Foo = 1,
1531 BAR = 2, 1531 [pbr::OriginalName("BAR")] Bar = 2,
1532 BAZ = 3, 1532 [pbr::OriginalName("BAZ")] Baz = 3,
1533 /// <summary> 1533 /// <summary>
1534 /// Intentionally negative. 1534 /// Intentionally negative.
1535 /// </summary> 1535 /// </summary>
1536 NEG = -1, 1536 [pbr::OriginalName("NEG")] Neg = -1,
1537 } 1537 }
1538 1538
1539 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] 1539 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
1540 public sealed partial class NestedMessage : pb::IMessage<NestedMessage> { 1540 public sealed partial class NestedMessage : pb::IMessage<NestedMessage> {
1541 private static readonly pb::MessageParser<NestedMessage> _parser = new p b::MessageParser<NestedMessage>(() => new NestedMessage()); 1541 private static readonly pb::MessageParser<NestedMessage> _parser = new p b::MessageParser<NestedMessage>(() => new NestedMessage());
1542 public static pb::MessageParser<NestedMessage> Parser { get { return _pa rser; } } 1542 public static pb::MessageParser<NestedMessage> Parser { get { return _pa rser; } }
1543 1543
1544 public static pbr::MessageDescriptor Descriptor { 1544 public static pbr::MessageDescriptor Descriptor {
1545 get { return global::Google.Protobuf.TestProtos.TestAllTypes.Descripto r.NestedTypes[0]; } 1545 get { return global::Google.Protobuf.TestProtos.TestAllTypes.Descripto r.NestedTypes[0]; }
1546 } 1546 }
(...skipping 1233 matching lines...) Expand 10 before | Expand all | Expand 10 after
2780 primitiveField_ = value; 2780 primitiveField_ = value;
2781 } 2781 }
2782 } 2782 }
2783 2783
2784 /// <summary>Field number for the "StringField" field.</summary> 2784 /// <summary>Field number for the "StringField" field.</summary>
2785 public const int StringFieldFieldNumber = 2; 2785 public const int StringFieldFieldNumber = 2;
2786 private string stringField_ = ""; 2786 private string stringField_ = "";
2787 public string StringField { 2787 public string StringField {
2788 get { return stringField_; } 2788 get { return stringField_; }
2789 set { 2789 set {
2790 stringField_ = pb::Preconditions.CheckNotNull(value, "value"); 2790 stringField_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
2791 } 2791 }
2792 } 2792 }
2793 2793
2794 /// <summary>Field number for the "EnumField" field.</summary> 2794 /// <summary>Field number for the "EnumField" field.</summary>
2795 public const int EnumFieldFieldNumber = 3; 2795 public const int EnumFieldFieldNumber = 3;
2796 private global::Google.Protobuf.TestProtos.ForeignEnum enumField_ = global:: Google.Protobuf.TestProtos.ForeignEnum.FOREIGN_UNSPECIFIED; 2796 private global::Google.Protobuf.TestProtos.ForeignEnum enumField_ = 0;
2797 public global::Google.Protobuf.TestProtos.ForeignEnum EnumField { 2797 public global::Google.Protobuf.TestProtos.ForeignEnum EnumField {
2798 get { return enumField_; } 2798 get { return enumField_; }
2799 set { 2799 set {
2800 enumField_ = value; 2800 enumField_ = value;
2801 } 2801 }
2802 } 2802 }
2803 2803
2804 /// <summary>Field number for the "MessageField" field.</summary> 2804 /// <summary>Field number for the "MessageField" field.</summary>
2805 public const int MessageFieldFieldNumber = 4; 2805 public const int MessageFieldFieldNumber = 4;
2806 private global::Google.Protobuf.TestProtos.ForeignMessage messageField_; 2806 private global::Google.Protobuf.TestProtos.ForeignMessage messageField_;
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after
2866 if(!repeatedStringField_.Equals(other.repeatedStringField_)) return false; 2866 if(!repeatedStringField_.Equals(other.repeatedStringField_)) return false;
2867 if(!repeatedEnumField_.Equals(other.repeatedEnumField_)) return false; 2867 if(!repeatedEnumField_.Equals(other.repeatedEnumField_)) return false;
2868 if(!repeatedMessageField_.Equals(other.repeatedMessageField_)) return fals e; 2868 if(!repeatedMessageField_.Equals(other.repeatedMessageField_)) return fals e;
2869 return true; 2869 return true;
2870 } 2870 }
2871 2871
2872 public override int GetHashCode() { 2872 public override int GetHashCode() {
2873 int hash = 1; 2873 int hash = 1;
2874 if (PrimitiveField != 0) hash ^= PrimitiveField.GetHashCode(); 2874 if (PrimitiveField != 0) hash ^= PrimitiveField.GetHashCode();
2875 if (StringField.Length != 0) hash ^= StringField.GetHashCode(); 2875 if (StringField.Length != 0) hash ^= StringField.GetHashCode();
2876 if (EnumField != global::Google.Protobuf.TestProtos.ForeignEnum.FOREIGN_UN SPECIFIED) hash ^= EnumField.GetHashCode(); 2876 if (EnumField != 0) hash ^= EnumField.GetHashCode();
2877 if (messageField_ != null) hash ^= MessageField.GetHashCode(); 2877 if (messageField_ != null) hash ^= MessageField.GetHashCode();
2878 hash ^= repeatedPrimitiveField_.GetHashCode(); 2878 hash ^= repeatedPrimitiveField_.GetHashCode();
2879 hash ^= repeatedStringField_.GetHashCode(); 2879 hash ^= repeatedStringField_.GetHashCode();
2880 hash ^= repeatedEnumField_.GetHashCode(); 2880 hash ^= repeatedEnumField_.GetHashCode();
2881 hash ^= repeatedMessageField_.GetHashCode(); 2881 hash ^= repeatedMessageField_.GetHashCode();
2882 return hash; 2882 return hash;
2883 } 2883 }
2884 2884
2885 public override string ToString() { 2885 public override string ToString() {
2886 return pb::JsonFormatter.ToDiagnosticString(this); 2886 return pb::JsonFormatter.ToDiagnosticString(this);
2887 } 2887 }
2888 2888
2889 public void WriteTo(pb::CodedOutputStream output) { 2889 public void WriteTo(pb::CodedOutputStream output) {
2890 if (PrimitiveField != 0) { 2890 if (PrimitiveField != 0) {
2891 output.WriteRawTag(8); 2891 output.WriteRawTag(8);
2892 output.WriteInt32(PrimitiveField); 2892 output.WriteInt32(PrimitiveField);
2893 } 2893 }
2894 if (StringField.Length != 0) { 2894 if (StringField.Length != 0) {
2895 output.WriteRawTag(18); 2895 output.WriteRawTag(18);
2896 output.WriteString(StringField); 2896 output.WriteString(StringField);
2897 } 2897 }
2898 if (EnumField != global::Google.Protobuf.TestProtos.ForeignEnum.FOREIGN_UN SPECIFIED) { 2898 if (EnumField != 0) {
2899 output.WriteRawTag(24); 2899 output.WriteRawTag(24);
2900 output.WriteEnum((int) EnumField); 2900 output.WriteEnum((int) EnumField);
2901 } 2901 }
2902 if (messageField_ != null) { 2902 if (messageField_ != null) {
2903 output.WriteRawTag(34); 2903 output.WriteRawTag(34);
2904 output.WriteMessage(MessageField); 2904 output.WriteMessage(MessageField);
2905 } 2905 }
2906 repeatedPrimitiveField_.WriteTo(output, _repeated_repeatedPrimitiveField_c odec); 2906 repeatedPrimitiveField_.WriteTo(output, _repeated_repeatedPrimitiveField_c odec);
2907 repeatedStringField_.WriteTo(output, _repeated_repeatedStringField_codec); 2907 repeatedStringField_.WriteTo(output, _repeated_repeatedStringField_codec);
2908 repeatedEnumField_.WriteTo(output, _repeated_repeatedEnumField_codec); 2908 repeatedEnumField_.WriteTo(output, _repeated_repeatedEnumField_codec);
2909 repeatedMessageField_.WriteTo(output, _repeated_repeatedMessageField_codec ); 2909 repeatedMessageField_.WriteTo(output, _repeated_repeatedMessageField_codec );
2910 } 2910 }
2911 2911
2912 public int CalculateSize() { 2912 public int CalculateSize() {
2913 int size = 0; 2913 int size = 0;
2914 if (PrimitiveField != 0) { 2914 if (PrimitiveField != 0) {
2915 size += 1 + pb::CodedOutputStream.ComputeInt32Size(PrimitiveField); 2915 size += 1 + pb::CodedOutputStream.ComputeInt32Size(PrimitiveField);
2916 } 2916 }
2917 if (StringField.Length != 0) { 2917 if (StringField.Length != 0) {
2918 size += 1 + pb::CodedOutputStream.ComputeStringSize(StringField); 2918 size += 1 + pb::CodedOutputStream.ComputeStringSize(StringField);
2919 } 2919 }
2920 if (EnumField != global::Google.Protobuf.TestProtos.ForeignEnum.FOREIGN_UN SPECIFIED) { 2920 if (EnumField != 0) {
2921 size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) EnumField); 2921 size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) EnumField);
2922 } 2922 }
2923 if (messageField_ != null) { 2923 if (messageField_ != null) {
2924 size += 1 + pb::CodedOutputStream.ComputeMessageSize(MessageField); 2924 size += 1 + pb::CodedOutputStream.ComputeMessageSize(MessageField);
2925 } 2925 }
2926 size += repeatedPrimitiveField_.CalculateSize(_repeated_repeatedPrimitiveF ield_codec); 2926 size += repeatedPrimitiveField_.CalculateSize(_repeated_repeatedPrimitiveF ield_codec);
2927 size += repeatedStringField_.CalculateSize(_repeated_repeatedStringField_c odec); 2927 size += repeatedStringField_.CalculateSize(_repeated_repeatedStringField_c odec);
2928 size += repeatedEnumField_.CalculateSize(_repeated_repeatedEnumField_codec ); 2928 size += repeatedEnumField_.CalculateSize(_repeated_repeatedEnumField_codec );
2929 size += repeatedMessageField_.CalculateSize(_repeated_repeatedMessageField _codec); 2929 size += repeatedMessageField_.CalculateSize(_repeated_repeatedMessageField _codec);
2930 return size; 2930 return size;
2931 } 2931 }
2932 2932
2933 public void MergeFrom(TestCamelCaseFieldNames other) { 2933 public void MergeFrom(TestCamelCaseFieldNames other) {
2934 if (other == null) { 2934 if (other == null) {
2935 return; 2935 return;
2936 } 2936 }
2937 if (other.PrimitiveField != 0) { 2937 if (other.PrimitiveField != 0) {
2938 PrimitiveField = other.PrimitiveField; 2938 PrimitiveField = other.PrimitiveField;
2939 } 2939 }
2940 if (other.StringField.Length != 0) { 2940 if (other.StringField.Length != 0) {
2941 StringField = other.StringField; 2941 StringField = other.StringField;
2942 } 2942 }
2943 if (other.EnumField != global::Google.Protobuf.TestProtos.ForeignEnum.FORE IGN_UNSPECIFIED) { 2943 if (other.EnumField != 0) {
2944 EnumField = other.EnumField; 2944 EnumField = other.EnumField;
2945 } 2945 }
2946 if (other.messageField_ != null) { 2946 if (other.messageField_ != null) {
2947 if (messageField_ == null) { 2947 if (messageField_ == null) {
2948 messageField_ = new global::Google.Protobuf.TestProtos.ForeignMessage( ); 2948 messageField_ = new global::Google.Protobuf.TestProtos.ForeignMessage( );
2949 } 2949 }
2950 MessageField.MergeFrom(other.MessageField); 2950 MessageField.MergeFrom(other.MessageField);
2951 } 2951 }
2952 repeatedPrimitiveField_.Add(other.repeatedPrimitiveField_); 2952 repeatedPrimitiveField_.Add(other.repeatedPrimitiveField_);
2953 repeatedStringField_.Add(other.repeatedStringField_); 2953 repeatedStringField_.Add(other.repeatedStringField_);
(...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after
3038 public TestFieldOrderings Clone() { 3038 public TestFieldOrderings Clone() {
3039 return new TestFieldOrderings(this); 3039 return new TestFieldOrderings(this);
3040 } 3040 }
3041 3041
3042 /// <summary>Field number for the "my_string" field.</summary> 3042 /// <summary>Field number for the "my_string" field.</summary>
3043 public const int MyStringFieldNumber = 11; 3043 public const int MyStringFieldNumber = 11;
3044 private string myString_ = ""; 3044 private string myString_ = "";
3045 public string MyString { 3045 public string MyString {
3046 get { return myString_; } 3046 get { return myString_; }
3047 set { 3047 set {
3048 myString_ = pb::Preconditions.CheckNotNull(value, "value"); 3048 myString_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
3049 } 3049 }
3050 } 3050 }
3051 3051
3052 /// <summary>Field number for the "my_int" field.</summary> 3052 /// <summary>Field number for the "my_int" field.</summary>
3053 public const int MyIntFieldNumber = 1; 3053 public const int MyIntFieldNumber = 1;
3054 private long myInt_; 3054 private long myInt_;
3055 public long MyInt { 3055 public long MyInt {
3056 get { return myInt_; } 3056 get { return myInt_; }
3057 set { 3057 set {
3058 myInt_ = value; 3058 myInt_ = value;
(...skipping 304 matching lines...) Expand 10 before | Expand all | Expand 10 after
3363 public SparseEnumMessage(SparseEnumMessage other) : this() { 3363 public SparseEnumMessage(SparseEnumMessage other) : this() {
3364 sparseEnum_ = other.sparseEnum_; 3364 sparseEnum_ = other.sparseEnum_;
3365 } 3365 }
3366 3366
3367 public SparseEnumMessage Clone() { 3367 public SparseEnumMessage Clone() {
3368 return new SparseEnumMessage(this); 3368 return new SparseEnumMessage(this);
3369 } 3369 }
3370 3370
3371 /// <summary>Field number for the "sparse_enum" field.</summary> 3371 /// <summary>Field number for the "sparse_enum" field.</summary>
3372 public const int SparseEnumFieldNumber = 1; 3372 public const int SparseEnumFieldNumber = 1;
3373 private global::Google.Protobuf.TestProtos.TestSparseEnum sparseEnum_ = glob al::Google.Protobuf.TestProtos.TestSparseEnum.TEST_SPARSE_ENUM_UNSPECIFIED; 3373 private global::Google.Protobuf.TestProtos.TestSparseEnum sparseEnum_ = 0;
3374 public global::Google.Protobuf.TestProtos.TestSparseEnum SparseEnum { 3374 public global::Google.Protobuf.TestProtos.TestSparseEnum SparseEnum {
3375 get { return sparseEnum_; } 3375 get { return sparseEnum_; }
3376 set { 3376 set {
3377 sparseEnum_ = value; 3377 sparseEnum_ = value;
3378 } 3378 }
3379 } 3379 }
3380 3380
3381 public override bool Equals(object other) { 3381 public override bool Equals(object other) {
3382 return Equals(other as SparseEnumMessage); 3382 return Equals(other as SparseEnumMessage);
3383 } 3383 }
3384 3384
3385 public bool Equals(SparseEnumMessage other) { 3385 public bool Equals(SparseEnumMessage other) {
3386 if (ReferenceEquals(other, null)) { 3386 if (ReferenceEquals(other, null)) {
3387 return false; 3387 return false;
3388 } 3388 }
3389 if (ReferenceEquals(other, this)) { 3389 if (ReferenceEquals(other, this)) {
3390 return true; 3390 return true;
3391 } 3391 }
3392 if (SparseEnum != other.SparseEnum) return false; 3392 if (SparseEnum != other.SparseEnum) return false;
3393 return true; 3393 return true;
3394 } 3394 }
3395 3395
3396 public override int GetHashCode() { 3396 public override int GetHashCode() {
3397 int hash = 1; 3397 int hash = 1;
3398 if (SparseEnum != global::Google.Protobuf.TestProtos.TestSparseEnum.TEST_S PARSE_ENUM_UNSPECIFIED) hash ^= SparseEnum.GetHashCode(); 3398 if (SparseEnum != 0) hash ^= SparseEnum.GetHashCode();
3399 return hash; 3399 return hash;
3400 } 3400 }
3401 3401
3402 public override string ToString() { 3402 public override string ToString() {
3403 return pb::JsonFormatter.ToDiagnosticString(this); 3403 return pb::JsonFormatter.ToDiagnosticString(this);
3404 } 3404 }
3405 3405
3406 public void WriteTo(pb::CodedOutputStream output) { 3406 public void WriteTo(pb::CodedOutputStream output) {
3407 if (SparseEnum != global::Google.Protobuf.TestProtos.TestSparseEnum.TEST_S PARSE_ENUM_UNSPECIFIED) { 3407 if (SparseEnum != 0) {
3408 output.WriteRawTag(8); 3408 output.WriteRawTag(8);
3409 output.WriteEnum((int) SparseEnum); 3409 output.WriteEnum((int) SparseEnum);
3410 } 3410 }
3411 } 3411 }
3412 3412
3413 public int CalculateSize() { 3413 public int CalculateSize() {
3414 int size = 0; 3414 int size = 0;
3415 if (SparseEnum != global::Google.Protobuf.TestProtos.TestSparseEnum.TEST_S PARSE_ENUM_UNSPECIFIED) { 3415 if (SparseEnum != 0) {
3416 size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) SparseEnum); 3416 size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) SparseEnum);
3417 } 3417 }
3418 return size; 3418 return size;
3419 } 3419 }
3420 3420
3421 public void MergeFrom(SparseEnumMessage other) { 3421 public void MergeFrom(SparseEnumMessage other) {
3422 if (other == null) { 3422 if (other == null) {
3423 return; 3423 return;
3424 } 3424 }
3425 if (other.SparseEnum != global::Google.Protobuf.TestProtos.TestSparseEnum. TEST_SPARSE_ENUM_UNSPECIFIED) { 3425 if (other.SparseEnum != 0) {
3426 SparseEnum = other.SparseEnum; 3426 SparseEnum = other.SparseEnum;
3427 } 3427 }
3428 } 3428 }
3429 3429
3430 public void MergeFrom(pb::CodedInputStream input) { 3430 public void MergeFrom(pb::CodedInputStream input) {
3431 uint tag; 3431 uint tag;
3432 while ((tag = input.ReadTag()) != 0) { 3432 while ((tag = input.ReadTag()) != 0) {
3433 switch(tag) { 3433 switch(tag) {
3434 default: 3434 default:
3435 input.SkipLastField(); 3435 input.SkipLastField();
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
3473 public OneString Clone() { 3473 public OneString Clone() {
3474 return new OneString(this); 3474 return new OneString(this);
3475 } 3475 }
3476 3476
3477 /// <summary>Field number for the "data" field.</summary> 3477 /// <summary>Field number for the "data" field.</summary>
3478 public const int DataFieldNumber = 1; 3478 public const int DataFieldNumber = 1;
3479 private string data_ = ""; 3479 private string data_ = "";
3480 public string Data { 3480 public string Data {
3481 get { return data_; } 3481 get { return data_; }
3482 set { 3482 set {
3483 data_ = pb::Preconditions.CheckNotNull(value, "value"); 3483 data_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
3484 } 3484 }
3485 } 3485 }
3486 3486
3487 public override bool Equals(object other) { 3487 public override bool Equals(object other) {
3488 return Equals(other as OneString); 3488 return Equals(other as OneString);
3489 } 3489 }
3490 3490
3491 public bool Equals(OneString other) { 3491 public bool Equals(OneString other) {
3492 if (ReferenceEquals(other, null)) { 3492 if (ReferenceEquals(other, null)) {
3493 return false; 3493 return false;
(...skipping 177 matching lines...) Expand 10 before | Expand all | Expand 10 after
3671 public OneBytes Clone() { 3671 public OneBytes Clone() {
3672 return new OneBytes(this); 3672 return new OneBytes(this);
3673 } 3673 }
3674 3674
3675 /// <summary>Field number for the "data" field.</summary> 3675 /// <summary>Field number for the "data" field.</summary>
3676 public const int DataFieldNumber = 1; 3676 public const int DataFieldNumber = 1;
3677 private pb::ByteString data_ = pb::ByteString.Empty; 3677 private pb::ByteString data_ = pb::ByteString.Empty;
3678 public pb::ByteString Data { 3678 public pb::ByteString Data {
3679 get { return data_; } 3679 get { return data_; }
3680 set { 3680 set {
3681 data_ = pb::Preconditions.CheckNotNull(value, "value"); 3681 data_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
3682 } 3682 }
3683 } 3683 }
3684 3684
3685 public override bool Equals(object other) { 3685 public override bool Equals(object other) {
3686 return Equals(other as OneBytes); 3686 return Equals(other as OneBytes);
3687 } 3687 }
3688 3688
3689 public bool Equals(OneBytes other) { 3689 public bool Equals(OneBytes other) {
3690 if (ReferenceEquals(other, null)) { 3690 if (ReferenceEquals(other, null)) {
3691 return false; 3691 return false;
(...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after
3774 public MoreBytes Clone() { 3774 public MoreBytes Clone() {
3775 return new MoreBytes(this); 3775 return new MoreBytes(this);
3776 } 3776 }
3777 3777
3778 /// <summary>Field number for the "data" field.</summary> 3778 /// <summary>Field number for the "data" field.</summary>
3779 public const int DataFieldNumber = 1; 3779 public const int DataFieldNumber = 1;
3780 private pb::ByteString data_ = pb::ByteString.Empty; 3780 private pb::ByteString data_ = pb::ByteString.Empty;
3781 public pb::ByteString Data { 3781 public pb::ByteString Data {
3782 get { return data_; } 3782 get { return data_; }
3783 set { 3783 set {
3784 data_ = pb::Preconditions.CheckNotNull(value, "value"); 3784 data_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
3785 } 3785 }
3786 } 3786 }
3787 3787
3788 public override bool Equals(object other) { 3788 public override bool Equals(object other) {
3789 return Equals(other as MoreBytes); 3789 return Equals(other as MoreBytes);
3790 } 3790 }
3791 3791
3792 public bool Equals(MoreBytes other) { 3792 public bool Equals(MoreBytes other) {
3793 if (ReferenceEquals(other, null)) { 3793 if (ReferenceEquals(other, null)) {
3794 return false; 3794 return false;
(...skipping 623 matching lines...) Expand 10 before | Expand all | Expand 10 after
4418 foo_ = value; 4418 foo_ = value;
4419 fooCase_ = FooOneofCase.FooInt; 4419 fooCase_ = FooOneofCase.FooInt;
4420 } 4420 }
4421 } 4421 }
4422 4422
4423 /// <summary>Field number for the "foo_string" field.</summary> 4423 /// <summary>Field number for the "foo_string" field.</summary>
4424 public const int FooStringFieldNumber = 2; 4424 public const int FooStringFieldNumber = 2;
4425 public string FooString { 4425 public string FooString {
4426 get { return fooCase_ == FooOneofCase.FooString ? (string) foo_ : ""; } 4426 get { return fooCase_ == FooOneofCase.FooString ? (string) foo_ : ""; }
4427 set { 4427 set {
4428 foo_ = pb::Preconditions.CheckNotNull(value, "value"); 4428 foo_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
4429 fooCase_ = FooOneofCase.FooString; 4429 fooCase_ = FooOneofCase.FooString;
4430 } 4430 }
4431 } 4431 }
4432 4432
4433 /// <summary>Field number for the "foo_message" field.</summary> 4433 /// <summary>Field number for the "foo_message" field.</summary>
4434 public const int FooMessageFieldNumber = 3; 4434 public const int FooMessageFieldNumber = 3;
4435 public global::Google.Protobuf.TestProtos.TestAllTypes FooMessage { 4435 public global::Google.Protobuf.TestProtos.TestAllTypes FooMessage {
4436 get { return fooCase_ == FooOneofCase.FooMessage ? (global::Google.Protobu f.TestProtos.TestAllTypes) foo_ : null; } 4436 get { return fooCase_ == FooOneofCase.FooMessage ? (global::Google.Protobu f.TestProtos.TestAllTypes) foo_ : null; }
4437 set { 4437 set {
4438 foo_ = value; 4438 foo_ = value;
(...skipping 1082 matching lines...) Expand 10 before | Expand all | Expand 10 after
5521 5521
5522 /// <summary>Field number for the "a" field.</summary> 5522 /// <summary>Field number for the "a" field.</summary>
5523 public const int AFieldNumber = 1; 5523 public const int AFieldNumber = 1;
5524 private string a_ = ""; 5524 private string a_ = "";
5525 /// <summary> 5525 /// <summary>
5526 /// */ &lt;- This should not close the generated doc comment 5526 /// */ &lt;- This should not close the generated doc comment
5527 /// </summary> 5527 /// </summary>
5528 public string A { 5528 public string A {
5529 get { return a_; } 5529 get { return a_; }
5530 set { 5530 set {
5531 a_ = pb::Preconditions.CheckNotNull(value, "value"); 5531 a_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
5532 } 5532 }
5533 } 5533 }
5534 5534
5535 public override bool Equals(object other) { 5535 public override bool Equals(object other) {
5536 return Equals(other as TestCommentInjectionMessage); 5536 return Equals(other as TestCommentInjectionMessage);
5537 } 5537 }
5538 5538
5539 public bool Equals(TestCommentInjectionMessage other) { 5539 public bool Equals(TestCommentInjectionMessage other) {
5540 if (ReferenceEquals(other, null)) { 5540 if (ReferenceEquals(other, null)) {
5541 return false; 5541 return false;
(...skipping 513 matching lines...) Expand 10 before | Expand all | Expand 10 after
6055 } 6055 }
6056 } 6056 }
6057 6057
6058 } 6058 }
6059 6059
6060 #endregion 6060 #endregion
6061 6061
6062 } 6062 }
6063 6063
6064 #endregion Designer generated code 6064 #endregion Designer generated code
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698