diff --git a/.gitignore b/.gitignore
index 5e38bbf7c283..bf298f658b50 100644
--- a/.gitignore
+++ b/.gitignore
@@ -208,3 +208,6 @@ cmake/cmake-build-debug/
# IntelliJ
.idea
*.iml
+
+# Visual Studio test coverage
+*.coverage
diff --git a/Makefile.am b/Makefile.am
index 079ac7062bd7..06450a23fc84 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -87,6 +87,7 @@ csharp_EXTRA_DIST= \
csharp/src/AddressBook/SampleUsage.cs \
csharp/src/Google.Protobuf.Benchmarks/BenchmarkMessage1Proto3.cs \
csharp/src/Google.Protobuf.Benchmarks/Benchmarks.cs \
+ csharp/src/Google.Protobuf.Benchmarks/GoogleMessageBenchmark.cs \
csharp/src/Google.Protobuf.Benchmarks/Google.Protobuf.Benchmarks.csproj \
csharp/src/Google.Protobuf.Benchmarks/Program.cs \
csharp/src/Google.Protobuf.Benchmarks/SerializationBenchmark.cs \
@@ -100,9 +101,16 @@ csharp_EXTRA_DIST= \
csharp/src/Google.Protobuf.JsonDump/Google.Protobuf.JsonDump.csproj \
csharp/src/Google.Protobuf.JsonDump/Program.cs \
csharp/src/Google.Protobuf.Test/ByteStringTest.cs \
- csharp/src/Google.Protobuf.Test/CodedInputStreamExtensions.cs \
+ csharp/src/Google.Protobuf.Test/CodedInputExtensions.cs \
+ csharp/src/Google.Protobuf.Test/CodedInputReaderTest.cs \
csharp/src/Google.Protobuf.Test/CodedInputStreamTest.cs \
+ csharp/src/Google.Protobuf.Test/CodedInputTestBase.cs \
csharp/src/Google.Protobuf.Test/CodedOutputStreamTest.cs \
+ csharp/src/Google.Protobuf.Test/CodedOutputWriterTest.cs \
+ csharp/src/Google.Protobuf.Test/CodedOutputTestBase.cs \
+ csharp/src/Google.Protobuf.Test/Buffers/ArrayBufferWriter.cs \
+ csharp/src/Google.Protobuf.Test/Buffers/MaxSizeHintBufferWriter.cs \
+ csharp/src/Google.Protobuf.Test/Buffers/ReadOnlySequenceFactory.cs \
csharp/src/Google.Protobuf.Test/Collections/MapFieldTest.cs \
csharp/src/Google.Protobuf.Test/Collections/ProtobufEqualityComparersTest.cs \
csharp/src/Google.Protobuf.Test/Collections/RepeatedFieldTest.cs \
@@ -121,6 +129,7 @@ csharp_EXTRA_DIST= \
csharp/src/Google.Protobuf.Test/JsonFormatterTest.cs \
csharp/src/Google.Protobuf.Test/JsonParserTest.cs \
csharp/src/Google.Protobuf.Test/JsonTokenizerTest.cs \
+ csharp/src/Google.Protobuf.Test/MessageParsingHelpers.cs \
csharp/src/Google.Protobuf.Test/Reflection/CustomOptionsTest.cs \
csharp/src/Google.Protobuf.Test/Reflection/DescriptorDeclarationTest.cs \
csharp/src/Google.Protobuf.Test/Reflection/DescriptorsTest.cs \
@@ -160,8 +169,10 @@ csharp_EXTRA_DIST= \
csharp/src/Google.Protobuf/ByteArray.cs \
csharp/src/Google.Protobuf/ByteString.cs \
csharp/src/Google.Protobuf/CodedInputStream.cs \
+ csharp/src/Google.Protobuf/CodedInputReader.cs \
csharp/src/Google.Protobuf/CodedOutputStream.ComputeSize.cs \
csharp/src/Google.Protobuf/CodedOutputStream.cs \
+ csharp/src/Google.Protobuf/CodedOutputWriter.cs \
csharp/src/Google.Protobuf/Collections/Lists.cs \
csharp/src/Google.Protobuf/Collections/MapField.cs \
csharp/src/Google.Protobuf/Collections/ProtobufEqualityComparers.cs \
@@ -179,6 +190,7 @@ csharp_EXTRA_DIST= \
csharp/src/Google.Protobuf/FieldMaskTree.cs \
csharp/src/Google.Protobuf/FrameworkPortability.cs \
csharp/src/Google.Protobuf/Google.Protobuf.csproj \
+ csharp/src/Google.Protobuf/IBufferMessage.cs \
csharp/src/Google.Protobuf/ICustomDiagnosticMessage.cs \
csharp/src/Google.Protobuf/IDeepCloneable.cs \
csharp/src/Google.Protobuf/IExtendableMessage.cs \
@@ -225,6 +237,7 @@ csharp_EXTRA_DIST= \
csharp/src/Google.Protobuf/Reflection/ServiceDescriptor.cs \
csharp/src/Google.Protobuf/Reflection/SingleFieldAccessor.cs \
csharp/src/Google.Protobuf/Reflection/TypeRegistry.cs \
+ csharp/src/Google.Protobuf/SequenceReader.cs \
csharp/src/Google.Protobuf/WellKnownTypes/Any.cs \
csharp/src/Google.Protobuf/WellKnownTypes/AnyPartial.cs \
csharp/src/Google.Protobuf/WellKnownTypes/Api.cs \
diff --git a/conformance/Makefile.am b/conformance/Makefile.am
index 6815c733a522..6e0505b41355 100644
--- a/conformance/Makefile.am
+++ b/conformance/Makefile.am
@@ -343,6 +343,7 @@ test_java_lite: protoc_middleman conformance-test-runner conformance-java-lite
test_csharp: protoc_middleman conformance-test-runner conformance-csharp
./conformance-test-runner --enforce_recommended --failure_list failure_list_csharp.txt --text_format_failure_list text_format_failure_list_csharp.txt ./conformance-csharp
+ ./conformance-test-runner --enforce_recommended --failure_list failure_list_csharp.txt --text_format_failure_list text_format_failure_list_csharp.txt ./conformance-csharp --use_buffer_serialization
test_ruby: protoc_middleman conformance-test-runner $(other_language_protoc_outputs)
RUBYLIB=../ruby/lib:. ./conformance-test-runner --enforce_recommended --failure_list failure_list_ruby.txt --text_format_failure_list text_format_failure_list_ruby.txt ./conformance_ruby.rb
diff --git a/csharp/generate_protos.sh b/csharp/generate_protos.sh
index e6687c308e47..c4285ce6e508 100755
--- a/csharp/generate_protos.sh
+++ b/csharp/generate_protos.sh
@@ -27,7 +27,7 @@ fi
# descriptor.proto and well-known types
$PROTOC -Isrc --csharp_out=csharp/src/Google.Protobuf \
- --csharp_opt=base_namespace=Google.Protobuf \
+ --csharp_opt=base_namespace=Google.Protobuf,use_buffer_serialization \
src/google/protobuf/descriptor.proto \
src/google/protobuf/any.proto \
src/google/protobuf/api.proto \
@@ -46,6 +46,7 @@ $PROTOC -Isrc --csharp_out=csharp/src/Google.Protobuf \
# of protoc.
$PROTOC -Isrc -Icsharp/protos \
--csharp_out=csharp/src/Google.Protobuf.Test.TestProtos \
+ --csharp_opt=use_buffer_serialization \
--descriptor_set_out=csharp/src/Google.Protobuf.Test/testprotos.pb \
--include_source_info \
--include_imports \
@@ -67,18 +68,22 @@ $PROTOC -Isrc -Icsharp/protos \
# AddressBook sample protos
$PROTOC -Iexamples -Isrc --csharp_out=csharp/src/AddressBook \
+ --csharp_opt=use_buffer_serialization \
examples/addressbook.proto
$PROTOC -Iconformance -Isrc --csharp_out=csharp/src/Google.Protobuf.Conformance \
+ --csharp_opt=use_buffer_serialization \
conformance/conformance.proto
# Benchmark protos
$PROTOC -Ibenchmarks \
benchmarks/datasets/google_message1/proto3/*.proto \
benchmarks/benchmarks.proto \
- --csharp_out=csharp/src/Google.Protobuf.Benchmarks
+ --csharp_out=csharp/src/Google.Protobuf.Benchmarks \
+ --csharp_opt=use_buffer_serialization
# C# only benchmark protos
$PROTOC -Isrc -Icsharp/src/Google.Protobuf.Benchmarks \
csharp/src/Google.Protobuf.Benchmarks/*.proto \
- --csharp_out=csharp/src/Google.Protobuf.Benchmarks
+ --csharp_out=csharp/src/Google.Protobuf.Benchmarks \
+ --csharp_opt=use_buffer_serialization
diff --git a/csharp/src/AddressBook/Addressbook.cs b/csharp/src/AddressBook/Addressbook.cs
index cbd977269620..9e90930d2c9b 100644
--- a/csharp/src/AddressBook/Addressbook.cs
+++ b/csharp/src/AddressBook/Addressbook.cs
@@ -49,7 +49,11 @@ static AddressbookReflection() {
///
/// [START messages]
///
- public sealed partial class Person : pb::IMessage {
+ public sealed partial class Person : pb::IMessage
+ #if !GOOGLE_PROTOBUF_DISABLE_BUFFER_SERIALIZATION
+ , pb::IBufferMessage
+ #endif
+ {
private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new Person());
private pb::UnknownFieldSet _unknownFields;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
@@ -208,6 +212,33 @@ public void WriteTo(pb::CodedOutputStream output) {
}
}
+
+ #if !GOOGLE_PROTOBUF_DISABLE_BUFFER_SERIALIZATION
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ public void WriteTo(ref pb::CodedOutputWriter output) {
+ if (Name.Length != 0) {
+ output.WriteRawTag(10);
+ output.WriteString(Name);
+ }
+ if (Id != 0) {
+ output.WriteRawTag(16);
+ output.WriteInt32(Id);
+ }
+ if (Email.Length != 0) {
+ output.WriteRawTag(26);
+ output.WriteString(Email);
+ }
+ phones_.WriteTo(ref output, _repeated_phones_codec);
+ if (lastUpdated_ != null) {
+ output.WriteRawTag(42);
+ output.WriteMessage(LastUpdated);
+ }
+ if (_unknownFields != null) {
+ _unknownFields.WriteTo(ref output);
+ }
+ }
+ #endif
+
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public int CalculateSize() {
int size = 0;
@@ -289,6 +320,44 @@ public void MergeFrom(pb::CodedInputStream input) {
}
}
+
+ #if !GOOGLE_PROTOBUF_DISABLE_BUFFER_SERIALIZATION
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ public void MergeFrom(ref pb::CodedInputReader input) {
+ uint tag;
+ while ((tag = input.ReadTag()) != 0) {
+ switch(tag) {
+ default:
+ _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
+ break;
+ case 10: {
+ Name = input.ReadString();
+ break;
+ }
+ case 16: {
+ Id = input.ReadInt32();
+ break;
+ }
+ case 26: {
+ Email = input.ReadString();
+ break;
+ }
+ case 34: {
+ phones_.AddEntriesFrom(ref input, _repeated_phones_codec);
+ break;
+ }
+ case 42: {
+ if (lastUpdated_ == null) {
+ LastUpdated = new global::Google.Protobuf.WellKnownTypes.Timestamp();
+ }
+ input.ReadMessage(LastUpdated);
+ break;
+ }
+ }
+ }
+ }
+ #endif
+
#region Nested types
/// Container for nested types declared in the Person message type.
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
@@ -299,7 +368,11 @@ public enum PhoneType {
[pbr::OriginalName("WORK")] Work = 2,
}
- public sealed partial class PhoneNumber : pb::IMessage {
+ public sealed partial class PhoneNumber : pb::IMessage
+ #if !GOOGLE_PROTOBUF_DISABLE_BUFFER_SERIALIZATION
+ , pb::IBufferMessage
+ #endif
+ {
private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new PhoneNumber());
private pb::UnknownFieldSet _unknownFields;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
@@ -405,6 +478,24 @@ public void WriteTo(pb::CodedOutputStream output) {
}
}
+
+ #if !GOOGLE_PROTOBUF_DISABLE_BUFFER_SERIALIZATION
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ public void WriteTo(ref pb::CodedOutputWriter output) {
+ if (Number.Length != 0) {
+ output.WriteRawTag(10);
+ output.WriteString(Number);
+ }
+ if (Type != global::Google.Protobuf.Examples.AddressBook.Person.Types.PhoneType.Mobile) {
+ output.WriteRawTag(16);
+ output.WriteEnum((int) Type);
+ }
+ if (_unknownFields != null) {
+ _unknownFields.WriteTo(ref output);
+ }
+ }
+ #endif
+
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public int CalculateSize() {
int size = 0;
@@ -454,6 +545,29 @@ public void MergeFrom(pb::CodedInputStream input) {
}
}
+
+ #if !GOOGLE_PROTOBUF_DISABLE_BUFFER_SERIALIZATION
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ public void MergeFrom(ref pb::CodedInputReader input) {
+ uint tag;
+ while ((tag = input.ReadTag()) != 0) {
+ switch(tag) {
+ default:
+ _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
+ break;
+ case 10: {
+ Number = input.ReadString();
+ break;
+ }
+ case 16: {
+ Type = (global::Google.Protobuf.Examples.AddressBook.Person.Types.PhoneType) input.ReadEnum();
+ break;
+ }
+ }
+ }
+ }
+ #endif
+
}
}
@@ -464,7 +578,11 @@ public void MergeFrom(pb::CodedInputStream input) {
///
/// Our address book file is just one of these.
///
- public sealed partial class AddressBook : pb::IMessage {
+ public sealed partial class AddressBook : pb::IMessage
+ #if !GOOGLE_PROTOBUF_DISABLE_BUFFER_SERIALIZATION
+ , pb::IBufferMessage
+ #endif
+ {
private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new AddressBook());
private pb::UnknownFieldSet _unknownFields;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
@@ -548,6 +666,17 @@ public void WriteTo(pb::CodedOutputStream output) {
}
}
+
+ #if !GOOGLE_PROTOBUF_DISABLE_BUFFER_SERIALIZATION
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ public void WriteTo(ref pb::CodedOutputWriter output) {
+ people_.WriteTo(ref output, _repeated_people_codec);
+ if (_unknownFields != null) {
+ _unknownFields.WriteTo(ref output);
+ }
+ }
+ #endif
+
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public int CalculateSize() {
int size = 0;
@@ -583,6 +712,25 @@ public void MergeFrom(pb::CodedInputStream input) {
}
}
+
+ #if !GOOGLE_PROTOBUF_DISABLE_BUFFER_SERIALIZATION
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ public void MergeFrom(ref pb::CodedInputReader input) {
+ uint tag;
+ while ((tag = input.ReadTag()) != 0) {
+ switch(tag) {
+ default:
+ _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
+ break;
+ case 10: {
+ people_.AddEntriesFrom(ref input, _repeated_people_codec);
+ break;
+ }
+ }
+ }
+ }
+ #endif
+
}
#endregion
diff --git a/csharp/src/Google.Protobuf.Benchmarks/BenchmarkMessage1Proto3.cs b/csharp/src/Google.Protobuf.Benchmarks/BenchmarkMessage1Proto3.cs
index 9e8c330a2b63..b1231c100269 100644
--- a/csharp/src/Google.Protobuf.Benchmarks/BenchmarkMessage1Proto3.cs
+++ b/csharp/src/Google.Protobuf.Benchmarks/BenchmarkMessage1Proto3.cs
@@ -64,7 +64,11 @@ static BenchmarkMessage1Proto3Reflection() {
}
#region Messages
- public sealed partial class GoogleMessage1 : pb::IMessage {
+ public sealed partial class GoogleMessage1 : pb::IMessage
+ #if !GOOGLE_PROTOBUF_DISABLE_BUFFER_SERIALIZATION
+ , pb::IBufferMessage
+ #endif
+ {
private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new GoogleMessage1());
private pb::UnknownFieldSet _unknownFields;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
@@ -868,6 +872,177 @@ public void WriteTo(pb::CodedOutputStream output) {
}
}
+
+ #if !GOOGLE_PROTOBUF_DISABLE_BUFFER_SERIALIZATION
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ public void WriteTo(ref pb::CodedOutputWriter output) {
+ if (Field1.Length != 0) {
+ output.WriteRawTag(10);
+ output.WriteString(Field1);
+ }
+ if (Field2 != 0) {
+ output.WriteRawTag(16);
+ output.WriteInt32(Field2);
+ }
+ if (Field3 != 0) {
+ output.WriteRawTag(24);
+ output.WriteInt32(Field3);
+ }
+ if (Field4.Length != 0) {
+ output.WriteRawTag(34);
+ output.WriteString(Field4);
+ }
+ field5_.WriteTo(ref output, _repeated_field5_codec);
+ if (Field6 != 0) {
+ output.WriteRawTag(48);
+ output.WriteInt32(Field6);
+ }
+ if (Field7.Length != 0) {
+ output.WriteRawTag(58);
+ output.WriteString(Field7);
+ }
+ if (Field9.Length != 0) {
+ output.WriteRawTag(74);
+ output.WriteString(Field9);
+ }
+ if (Field12 != false) {
+ output.WriteRawTag(96);
+ output.WriteBool(Field12);
+ }
+ if (Field13 != false) {
+ output.WriteRawTag(104);
+ output.WriteBool(Field13);
+ }
+ if (Field14 != false) {
+ output.WriteRawTag(112);
+ output.WriteBool(Field14);
+ }
+ if (field15_ != null) {
+ output.WriteRawTag(122);
+ output.WriteMessage(Field15);
+ }
+ if (Field16 != 0) {
+ output.WriteRawTag(128, 1);
+ output.WriteInt32(Field16);
+ }
+ if (Field17 != false) {
+ output.WriteRawTag(136, 1);
+ output.WriteBool(Field17);
+ }
+ if (Field18.Length != 0) {
+ output.WriteRawTag(146, 1);
+ output.WriteString(Field18);
+ }
+ if (Field22 != 0L) {
+ output.WriteRawTag(176, 1);
+ output.WriteInt64(Field22);
+ }
+ if (Field23 != 0) {
+ output.WriteRawTag(184, 1);
+ output.WriteInt32(Field23);
+ }
+ if (Field24 != false) {
+ output.WriteRawTag(192, 1);
+ output.WriteBool(Field24);
+ }
+ if (Field25 != 0) {
+ output.WriteRawTag(200, 1);
+ output.WriteInt32(Field25);
+ }
+ if (Field29 != 0) {
+ output.WriteRawTag(232, 1);
+ output.WriteInt32(Field29);
+ }
+ if (Field30 != false) {
+ output.WriteRawTag(240, 1);
+ output.WriteBool(Field30);
+ }
+ if (Field59 != false) {
+ output.WriteRawTag(216, 3);
+ output.WriteBool(Field59);
+ }
+ if (Field60 != 0) {
+ output.WriteRawTag(224, 3);
+ output.WriteInt32(Field60);
+ }
+ if (Field67 != 0) {
+ output.WriteRawTag(152, 4);
+ output.WriteInt32(Field67);
+ }
+ if (Field68 != 0) {
+ output.WriteRawTag(160, 4);
+ output.WriteInt32(Field68);
+ }
+ if (Field78 != false) {
+ output.WriteRawTag(240, 4);
+ output.WriteBool(Field78);
+ }
+ if (Field80 != false) {
+ output.WriteRawTag(128, 5);
+ output.WriteBool(Field80);
+ }
+ if (Field81 != false) {
+ output.WriteRawTag(136, 5);
+ output.WriteBool(Field81);
+ }
+ if (Field100 != 0) {
+ output.WriteRawTag(160, 6);
+ output.WriteInt32(Field100);
+ }
+ if (Field101 != 0) {
+ output.WriteRawTag(168, 6);
+ output.WriteInt32(Field101);
+ }
+ if (Field102.Length != 0) {
+ output.WriteRawTag(178, 6);
+ output.WriteString(Field102);
+ }
+ if (Field103.Length != 0) {
+ output.WriteRawTag(186, 6);
+ output.WriteString(Field103);
+ }
+ if (Field104 != 0) {
+ output.WriteRawTag(192, 6);
+ output.WriteInt32(Field104);
+ }
+ if (Field128 != 0) {
+ output.WriteRawTag(128, 8);
+ output.WriteInt32(Field128);
+ }
+ if (Field129.Length != 0) {
+ output.WriteRawTag(138, 8);
+ output.WriteString(Field129);
+ }
+ if (Field130 != 0) {
+ output.WriteRawTag(144, 8);
+ output.WriteInt32(Field130);
+ }
+ if (Field131 != 0) {
+ output.WriteRawTag(152, 8);
+ output.WriteInt32(Field131);
+ }
+ if (Field150 != 0) {
+ output.WriteRawTag(176, 9);
+ output.WriteInt32(Field150);
+ }
+ if (Field271 != 0) {
+ output.WriteRawTag(248, 16);
+ output.WriteInt32(Field271);
+ }
+ if (Field272 != 0) {
+ output.WriteRawTag(128, 17);
+ output.WriteInt32(Field272);
+ }
+ if (Field280 != 0) {
+ output.WriteRawTag(192, 17);
+ output.WriteInt32(Field280);
+ }
+ if (_unknownFields != null) {
+ _unknownFields.WriteTo(ref output);
+ }
+ }
+ #endif
+
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public int CalculateSize() {
int size = 0;
@@ -1107,36 +1282,218 @@ public void MergeFrom(GoogleMessage1 other) {
if (field15_ == null) {
Field15 = new global::Benchmarks.Proto3.GoogleMessage1SubMessage();
}
- Field15.MergeFrom(other.Field15);
- }
- if (other.Field78 != false) {
- Field78 = other.Field78;
- }
- if (other.Field67 != 0) {
- Field67 = other.Field67;
- }
- if (other.Field68 != 0) {
- Field68 = other.Field68;
- }
- if (other.Field128 != 0) {
- Field128 = other.Field128;
- }
- if (other.Field129.Length != 0) {
- Field129 = other.Field129;
- }
- if (other.Field131 != 0) {
- Field131 = other.Field131;
+ Field15.MergeFrom(other.Field15);
+ }
+ if (other.Field78 != false) {
+ Field78 = other.Field78;
+ }
+ if (other.Field67 != 0) {
+ Field67 = other.Field67;
+ }
+ if (other.Field68 != 0) {
+ Field68 = other.Field68;
+ }
+ if (other.Field128 != 0) {
+ Field128 = other.Field128;
+ }
+ if (other.Field129.Length != 0) {
+ Field129 = other.Field129;
+ }
+ if (other.Field131 != 0) {
+ Field131 = other.Field131;
+ }
+ _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ public void MergeFrom(pb::CodedInputStream input) {
+ uint tag;
+ while ((tag = input.ReadTag()) != 0) {
+ switch(tag) {
+ default:
+ _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
+ break;
+ case 10: {
+ Field1 = input.ReadString();
+ break;
+ }
+ case 16: {
+ Field2 = input.ReadInt32();
+ break;
+ }
+ case 24: {
+ Field3 = input.ReadInt32();
+ break;
+ }
+ case 34: {
+ Field4 = input.ReadString();
+ break;
+ }
+ case 42:
+ case 41: {
+ field5_.AddEntriesFrom(input, _repeated_field5_codec);
+ break;
+ }
+ case 48: {
+ Field6 = input.ReadInt32();
+ break;
+ }
+ case 58: {
+ Field7 = input.ReadString();
+ break;
+ }
+ case 74: {
+ Field9 = input.ReadString();
+ break;
+ }
+ case 96: {
+ Field12 = input.ReadBool();
+ break;
+ }
+ case 104: {
+ Field13 = input.ReadBool();
+ break;
+ }
+ case 112: {
+ Field14 = input.ReadBool();
+ break;
+ }
+ case 122: {
+ if (field15_ == null) {
+ Field15 = new global::Benchmarks.Proto3.GoogleMessage1SubMessage();
+ }
+ input.ReadMessage(Field15);
+ break;
+ }
+ case 128: {
+ Field16 = input.ReadInt32();
+ break;
+ }
+ case 136: {
+ Field17 = input.ReadBool();
+ break;
+ }
+ case 146: {
+ Field18 = input.ReadString();
+ break;
+ }
+ case 176: {
+ Field22 = input.ReadInt64();
+ break;
+ }
+ case 184: {
+ Field23 = input.ReadInt32();
+ break;
+ }
+ case 192: {
+ Field24 = input.ReadBool();
+ break;
+ }
+ case 200: {
+ Field25 = input.ReadInt32();
+ break;
+ }
+ case 232: {
+ Field29 = input.ReadInt32();
+ break;
+ }
+ case 240: {
+ Field30 = input.ReadBool();
+ break;
+ }
+ case 472: {
+ Field59 = input.ReadBool();
+ break;
+ }
+ case 480: {
+ Field60 = input.ReadInt32();
+ break;
+ }
+ case 536: {
+ Field67 = input.ReadInt32();
+ break;
+ }
+ case 544: {
+ Field68 = input.ReadInt32();
+ break;
+ }
+ case 624: {
+ Field78 = input.ReadBool();
+ break;
+ }
+ case 640: {
+ Field80 = input.ReadBool();
+ break;
+ }
+ case 648: {
+ Field81 = input.ReadBool();
+ break;
+ }
+ case 800: {
+ Field100 = input.ReadInt32();
+ break;
+ }
+ case 808: {
+ Field101 = input.ReadInt32();
+ break;
+ }
+ case 818: {
+ Field102 = input.ReadString();
+ break;
+ }
+ case 826: {
+ Field103 = input.ReadString();
+ break;
+ }
+ case 832: {
+ Field104 = input.ReadInt32();
+ break;
+ }
+ case 1024: {
+ Field128 = input.ReadInt32();
+ break;
+ }
+ case 1034: {
+ Field129 = input.ReadString();
+ break;
+ }
+ case 1040: {
+ Field130 = input.ReadInt32();
+ break;
+ }
+ case 1048: {
+ Field131 = input.ReadInt32();
+ break;
+ }
+ case 1200: {
+ Field150 = input.ReadInt32();
+ break;
+ }
+ case 2168: {
+ Field271 = input.ReadInt32();
+ break;
+ }
+ case 2176: {
+ Field272 = input.ReadInt32();
+ break;
+ }
+ case 2240: {
+ Field280 = input.ReadInt32();
+ break;
+ }
+ }
}
- _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
}
+
+ #if !GOOGLE_PROTOBUF_DISABLE_BUFFER_SERIALIZATION
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void MergeFrom(pb::CodedInputStream input) {
+ public void MergeFrom(ref pb::CodedInputReader input) {
uint tag;
while ((tag = input.ReadTag()) != 0) {
switch(tag) {
default:
- _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
+ _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
break;
case 10: {
Field1 = input.ReadString();
@@ -1156,7 +1513,7 @@ public void MergeFrom(pb::CodedInputStream input) {
}
case 42:
case 41: {
- field5_.AddEntriesFrom(input, _repeated_field5_codec);
+ field5_.AddEntriesFrom(ref input, _repeated_field5_codec);
break;
}
case 48: {
@@ -1309,10 +1666,15 @@ public void MergeFrom(pb::CodedInputStream input) {
}
}
}
+ #endif
}
- public sealed partial class GoogleMessage1SubMessage : pb::IMessage {
+ public sealed partial class GoogleMessage1SubMessage : pb::IMessage
+ #if !GOOGLE_PROTOBUF_DISABLE_BUFFER_SERIALIZATION
+ , pb::IBufferMessage
+ #endif
+ {
private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new GoogleMessage1SubMessage());
private pb::UnknownFieldSet _unknownFields;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
@@ -1742,6 +2104,96 @@ public void WriteTo(pb::CodedOutputStream output) {
}
}
+
+ #if !GOOGLE_PROTOBUF_DISABLE_BUFFER_SERIALIZATION
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ public void WriteTo(ref pb::CodedOutputWriter output) {
+ if (Field1 != 0) {
+ output.WriteRawTag(8);
+ output.WriteInt32(Field1);
+ }
+ if (Field2 != 0) {
+ output.WriteRawTag(16);
+ output.WriteInt32(Field2);
+ }
+ if (Field3 != 0) {
+ output.WriteRawTag(24);
+ output.WriteInt32(Field3);
+ }
+ if (Field12 != false) {
+ output.WriteRawTag(96);
+ output.WriteBool(Field12);
+ }
+ if (Field13 != 0L) {
+ output.WriteRawTag(104);
+ output.WriteInt64(Field13);
+ }
+ if (Field14 != 0L) {
+ output.WriteRawTag(112);
+ output.WriteInt64(Field14);
+ }
+ if (Field15.Length != 0) {
+ output.WriteRawTag(122);
+ output.WriteString(Field15);
+ }
+ if (Field16 != 0) {
+ output.WriteRawTag(128, 1);
+ output.WriteInt32(Field16);
+ }
+ if (Field19 != 0) {
+ output.WriteRawTag(152, 1);
+ output.WriteInt32(Field19);
+ }
+ if (Field20 != false) {
+ output.WriteRawTag(160, 1);
+ output.WriteBool(Field20);
+ }
+ if (Field21 != 0UL) {
+ output.WriteRawTag(169, 1);
+ output.WriteFixed64(Field21);
+ }
+ if (Field22 != 0) {
+ output.WriteRawTag(176, 1);
+ output.WriteInt32(Field22);
+ }
+ if (Field23 != false) {
+ output.WriteRawTag(184, 1);
+ output.WriteBool(Field23);
+ }
+ if (Field28 != false) {
+ output.WriteRawTag(224, 1);
+ output.WriteBool(Field28);
+ }
+ if (Field203 != 0) {
+ output.WriteRawTag(221, 12);
+ output.WriteFixed32(Field203);
+ }
+ if (Field204 != 0) {
+ output.WriteRawTag(224, 12);
+ output.WriteInt32(Field204);
+ }
+ if (Field205.Length != 0) {
+ output.WriteRawTag(234, 12);
+ output.WriteString(Field205);
+ }
+ if (Field206 != false) {
+ output.WriteRawTag(240, 12);
+ output.WriteBool(Field206);
+ }
+ if (Field207 != 0UL) {
+ output.WriteRawTag(248, 12);
+ output.WriteUInt64(Field207);
+ }
+ if (Field300 != 0UL) {
+ output.WriteRawTag(224, 18);
+ output.WriteUInt64(Field300);
+ }
+ if (_unknownFields != null) {
+ _unknownFields.WriteTo(ref output);
+ }
+ }
+ #endif
+
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public int CalculateSize() {
int size = 0;
@@ -1971,6 +2423,101 @@ public void MergeFrom(pb::CodedInputStream input) {
}
}
+
+ #if !GOOGLE_PROTOBUF_DISABLE_BUFFER_SERIALIZATION
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ public void MergeFrom(ref pb::CodedInputReader input) {
+ uint tag;
+ while ((tag = input.ReadTag()) != 0) {
+ switch(tag) {
+ default:
+ _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
+ break;
+ case 8: {
+ Field1 = input.ReadInt32();
+ break;
+ }
+ case 16: {
+ Field2 = input.ReadInt32();
+ break;
+ }
+ case 24: {
+ Field3 = input.ReadInt32();
+ break;
+ }
+ case 96: {
+ Field12 = input.ReadBool();
+ break;
+ }
+ case 104: {
+ Field13 = input.ReadInt64();
+ break;
+ }
+ case 112: {
+ Field14 = input.ReadInt64();
+ break;
+ }
+ case 122: {
+ Field15 = input.ReadString();
+ break;
+ }
+ case 128: {
+ Field16 = input.ReadInt32();
+ break;
+ }
+ case 152: {
+ Field19 = input.ReadInt32();
+ break;
+ }
+ case 160: {
+ Field20 = input.ReadBool();
+ break;
+ }
+ case 169: {
+ Field21 = input.ReadFixed64();
+ break;
+ }
+ case 176: {
+ Field22 = input.ReadInt32();
+ break;
+ }
+ case 184: {
+ Field23 = input.ReadBool();
+ break;
+ }
+ case 224: {
+ Field28 = input.ReadBool();
+ break;
+ }
+ case 1629: {
+ Field203 = input.ReadFixed32();
+ break;
+ }
+ case 1632: {
+ Field204 = input.ReadInt32();
+ break;
+ }
+ case 1642: {
+ Field205 = input.ReadString();
+ break;
+ }
+ case 1648: {
+ Field206 = input.ReadBool();
+ break;
+ }
+ case 1656: {
+ Field207 = input.ReadUInt64();
+ break;
+ }
+ case 2400: {
+ Field300 = input.ReadUInt64();
+ break;
+ }
+ }
+ }
+ }
+ #endif
+
}
#endregion
diff --git a/csharp/src/Google.Protobuf.Benchmarks/Benchmarks.cs b/csharp/src/Google.Protobuf.Benchmarks/Benchmarks.cs
index 01dfcd72dc6f..ada355df0d0e 100644
--- a/csharp/src/Google.Protobuf.Benchmarks/Benchmarks.cs
+++ b/csharp/src/Google.Protobuf.Benchmarks/Benchmarks.cs
@@ -38,7 +38,11 @@ static BenchmarksReflection() {
}
#region Messages
- public sealed partial class BenchmarkDataset : pb::IMessage {
+ public sealed partial class BenchmarkDataset : pb::IMessage
+ #if !GOOGLE_PROTOBUF_DISABLE_BUFFER_SERIALIZATION
+ , pb::IBufferMessage
+ #endif
+ {
private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new BenchmarkDataset());
private pb::UnknownFieldSet _unknownFields;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
@@ -186,6 +190,25 @@ public void WriteTo(pb::CodedOutputStream output) {
}
}
+
+ #if !GOOGLE_PROTOBUF_DISABLE_BUFFER_SERIALIZATION
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ public void WriteTo(ref pb::CodedOutputWriter output) {
+ if (Name.Length != 0) {
+ output.WriteRawTag(10);
+ output.WriteString(Name);
+ }
+ if (MessageName.Length != 0) {
+ output.WriteRawTag(18);
+ output.WriteString(MessageName);
+ }
+ payload_.WriteTo(ref output, _repeated_payload_codec);
+ if (_unknownFields != null) {
+ _unknownFields.WriteTo(ref output);
+ }
+ }
+ #endif
+
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public int CalculateSize() {
int size = 0;
@@ -241,6 +264,33 @@ public void MergeFrom(pb::CodedInputStream input) {
}
}
+
+ #if !GOOGLE_PROTOBUF_DISABLE_BUFFER_SERIALIZATION
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ public void MergeFrom(ref pb::CodedInputReader input) {
+ uint tag;
+ while ((tag = input.ReadTag()) != 0) {
+ switch(tag) {
+ default:
+ _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
+ break;
+ case 10: {
+ Name = input.ReadString();
+ break;
+ }
+ case 18: {
+ MessageName = input.ReadString();
+ break;
+ }
+ case 26: {
+ payload_.AddEntriesFrom(ref input, _repeated_payload_codec);
+ break;
+ }
+ }
+ }
+ }
+ #endif
+
}
#endregion
diff --git a/csharp/src/Google.Protobuf.Benchmarks/Google.Protobuf.Benchmarks.csproj b/csharp/src/Google.Protobuf.Benchmarks/Google.Protobuf.Benchmarks.csproj
index ecc064ea7d09..69b985ec97a5 100644
--- a/csharp/src/Google.Protobuf.Benchmarks/Google.Protobuf.Benchmarks.csproj
+++ b/csharp/src/Google.Protobuf.Benchmarks/Google.Protobuf.Benchmarks.csproj
@@ -2,15 +2,21 @@
Exe
- netcoreapp2.1
+ netcoreapp3.0
False
+ $(DefineConstants);GOOGLE_PROTOBUF_SUPPORT_SYSTEM_MEMORY
-
+
+
+
+
+
+
diff --git a/csharp/src/Google.Protobuf.Benchmarks/GoogleMessageBenchmark.cs b/csharp/src/Google.Protobuf.Benchmarks/GoogleMessageBenchmark.cs
new file mode 100644
index 000000000000..2720f75ba2bc
--- /dev/null
+++ b/csharp/src/Google.Protobuf.Benchmarks/GoogleMessageBenchmark.cs
@@ -0,0 +1,114 @@
+#region Copyright notice and license
+// Protocol Buffers - Google's data interchange format
+// Copyright 2019 Google Inc. All rights reserved.
+// https://github.com/protocolbuffers/protobuf
+//
+// Redistribution and use in source and binary forms, with or without
+// modification, are permitted provided that the following conditions are
+// met:
+//
+// * Redistributions of source code must retain the above copyright
+// notice, this list of conditions and the following disclaimer.
+// * Redistributions in binary form must reproduce the above
+// copyright notice, this list of conditions and the following disclaimer
+// in the documentation and/or other materials provided with the
+// distribution.
+// * Neither the name of Google Inc. nor the names of its
+// contributors may be used to endorse or promote products derived from
+// this software without specific prior written permission.
+//
+// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
+// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
+// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
+// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
+// OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
+// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
+// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
+// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
+// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
+// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
+// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+#endregion
+
+using System;
+using System.IO;
+using Benchmarks;
+using Benchmarks.Proto3;
+
+namespace Google.Protobuf.Benchmarks
+{
+ public static class GoogleMessageBenchmark
+ {
+ public static ByteString GetMessageData(MessageSize messageSize)
+ {
+ var ms = new MemoryStream();
+ var output = new CodedOutputStream(ms);
+
+ var googleMessage1 = new GoogleMessage1();
+ switch (messageSize)
+ {
+ case MessageSize.Empty:
+ break;
+ case MessageSize.Small:
+ SetString(googleMessage1, 1);
+ AddRepeatingItems(googleMessage1, 1);
+ googleMessage1.Field2 = 2;
+ googleMessage1.Field15 = new GoogleMessage1SubMessage();
+ googleMessage1.Field15.Field1 = 1;
+ break;
+ case MessageSize.Medium:
+ SetString(googleMessage1, 1024);
+ AddRepeatingItems(googleMessage1, 1024);
+ googleMessage1.Field2 = 2;
+ googleMessage1.Field15 = new GoogleMessage1SubMessage();
+ googleMessage1.Field15.Field1 = 1;
+ break;
+ case MessageSize.Large:
+ SetString(googleMessage1, 1024 * 512);
+ AddRepeatingItems(googleMessage1, 1024 * 512);
+ googleMessage1.Field2 = 2;
+ googleMessage1.Field15 = new GoogleMessage1SubMessage();
+ googleMessage1.Field15.Field1 = 1;
+ break;
+ default:
+ throw new ArgumentOutOfRangeException(nameof(MessageSize));
+ }
+
+ googleMessage1.WriteTo(output);
+ output.Flush();
+
+ return ByteString.CopyFrom(ms.ToArray());
+ }
+
+ private static void SetString(GoogleMessage1 googleMessage1, int count)
+ {
+ googleMessage1.Field1 = "Text" + new string('!', count);
+ }
+
+ private static void AddRepeatingItems(GoogleMessage1 googleMessage1, ulong count)
+ {
+ for (var i = 0UL; i < count; i++)
+ {
+ googleMessage1.Field5.Add(i);
+ }
+ }
+
+ public static SerializationConfig CreateGoogleMessageConfig(MessageSize messageSize)
+ {
+ return new SerializationConfig(new BenchmarkDataset
+ {
+ MessageName = "benchmarks.proto3.GoogleMessage1",
+ Name = "GoogleMessage1 " + messageSize,
+ Payload = { GoogleMessageBenchmark.GetMessageData(messageSize) }
+ });
+ }
+ }
+
+ public enum MessageSize
+ {
+ Empty,
+ Small,
+ Medium,
+ Large
+ }
+}
diff --git a/csharp/src/Google.Protobuf.Benchmarks/Program.cs b/csharp/src/Google.Protobuf.Benchmarks/Program.cs
index 1f77a26135eb..7acdd38184bd 100644
--- a/csharp/src/Google.Protobuf.Benchmarks/Program.cs
+++ b/csharp/src/Google.Protobuf.Benchmarks/Program.cs
@@ -30,6 +30,7 @@
// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
#endregion
+using System;
using BenchmarkDotNet.Running;
namespace Google.Protobuf.Benchmarks
@@ -44,6 +45,4 @@ public static void Main(string[] args)
BenchmarkSwitcher.FromAssembly(typeof(Program).Assembly).Run(args);
}
}
-
-
}
diff --git a/csharp/src/Google.Protobuf.Benchmarks/SerializationBenchmark.cs b/csharp/src/Google.Protobuf.Benchmarks/SerializationBenchmark.cs
index d8c2ec11d73e..34f3a9167fe8 100644
--- a/csharp/src/Google.Protobuf.Benchmarks/SerializationBenchmark.cs
+++ b/csharp/src/Google.Protobuf.Benchmarks/SerializationBenchmark.cs
@@ -31,8 +31,13 @@
#endregion
using BenchmarkDotNet.Attributes;
+using Benchmarks;
+using Google.Protobuf.Buffers;
+using System;
+using System.Buffers;
using System.Collections.Generic;
using System.IO;
+using System.IO.Pipelines;
using System.Linq;
namespace Google.Protobuf.Benchmarks
@@ -50,7 +55,11 @@ public class SerializationBenchmark
///
public static SerializationConfig[] Configurations => new[]
{
- new SerializationConfig("dataset.google_message1_proto3.pb")
+ new SerializationConfig("dataset.google_message1_proto3.pb"),
+ GoogleMessageBenchmark.CreateGoogleMessageConfig(MessageSize.Empty),
+ GoogleMessageBenchmark.CreateGoogleMessageConfig(MessageSize.Small),
+ GoogleMessageBenchmark.CreateGoogleMessageConfig(MessageSize.Medium),
+ GoogleMessageBenchmark.CreateGoogleMessageConfig(MessageSize.Large)
};
[ParamsSource(nameof(Configurations))]
@@ -68,53 +77,142 @@ public class SerializationBenchmark
public void GlobalSetup()
{
parser = Configuration.Parser;
- subTests = Configuration.Payloads.Select(p => new SubTest(p, parser.ParseFrom(p))).ToList();
+ subTests = Configuration.Payloads.Select(p => new SubTest(p, (IBufferMessage)parser.ParseFrom(p))).ToList();
}
[Benchmark]
- public void WriteToStream() => subTests.ForEach(item => item.WriteToStream());
+ public void WriteToStream()
+ {
+ foreach (var subTest in subTests)
+ {
+ subTest.WriteToStream();
+ }
+ }
+
+ [Benchmark]
+ public void WriteToBufferWriter()
+ {
+ foreach (var subTest in subTests)
+ {
+ subTest.WriteToBufferWriter();
+ }
+ }
+
+ [Benchmark]
+ public void WriteToPipeWriter()
+ {
+ foreach (var subTest in subTests)
+ {
+ subTest.WriteToPipeWriter();
+ }
+ }
+
+ [Benchmark]
+ public void ToByteArray()
+ {
+ foreach (var subTest in subTests)
+ {
+ subTest.ToByteArray();
+ }
+ }
+
+ [Benchmark]
+ public void ParseFromByteString()
+ {
+ foreach (var subTest in subTests)
+ {
+ subTest.ParseFromByteString(parser);
+ }
+ }
[Benchmark]
- public void ToByteArray() => subTests.ForEach(item => item.ToByteArray());
+ public void ParseFromNewByteString()
+ {
+ foreach (var subTest in subTests)
+ {
+ subTest.ParseFromNewByteString(parser);
+ }
+ }
[Benchmark]
- public void ParseFromByteString() => subTests.ForEach(item => item.ParseFromByteString(parser));
+ public void ParseFromStream()
+ {
+ foreach (var subTest in subTests)
+ {
+ subTest.ParseFromStream(parser);
+ }
+ }
[Benchmark]
- public void ParseFromStream() => subTests.ForEach(item => item.ParseFromStream(parser));
+ public void ParseFromReadOnlySequence()
+ {
+ foreach (var subTest in subTests)
+ {
+ subTest.ParseFromReadOnlySequence(parser);
+ }
+ }
private class SubTest
{
private readonly Stream destinationStream;
+ private readonly Google.Protobuf.Buffers.ArrayBufferWriter bufferWriter;
private readonly Stream sourceStream;
+ private readonly ReadOnlySequence readOnlySequence;
private readonly ByteString data;
- private readonly IMessage message;
+ private readonly IBufferMessage message;
+ private readonly Pipe pipe;
- public SubTest(ByteString data, IMessage message)
+ public SubTest(ByteString data, IBufferMessage message)
{
destinationStream = new MemoryStream(data.Length);
+ bufferWriter = new Google.Protobuf.Buffers.ArrayBufferWriter();
sourceStream = new MemoryStream(data.ToByteArray());
+ readOnlySequence = new ReadOnlySequence(data.ToByteArray());
+ pipe = new Pipe();
this.data = data;
this.message = message;
}
- public void Reset() => destinationStream.Position = 0;
-
public void WriteToStream()
{
destinationStream.Position = 0;
message.WriteTo(destinationStream);
}
+ public void WriteToPipeWriter()
+ {
+ var writer = new CodedOutputWriter(pipe.Writer);
+ message.WriteTo(ref writer);
+
+ pipe.Writer.Complete();
+ pipe.Reader.Complete();
+ pipe.Reset();
+ }
+
+ public void WriteToBufferWriter()
+ {
+ bufferWriter.Clear();
+ var writer = new CodedOutputWriter(bufferWriter);
+ message.WriteTo(ref writer);
+ }
+
public void ToByteArray() => message.ToByteArray();
public void ParseFromByteString(MessageParser parser) => parser.ParseFrom(data);
+ public void ParseFromNewByteString(MessageParser parser) => parser.ParseFrom(readOnlySequence.ToArray());
+
public void ParseFromStream(MessageParser parser)
{
sourceStream.Position = 0;
parser.ParseFrom(sourceStream);
}
+
+ public void ParseFromReadOnlySequence(MessageParser parser)
+ {
+ var reader = new CodedInputReader(readOnlySequence);
+ parser.ParseFrom(ref reader);
+ }
}
}
}
diff --git a/csharp/src/Google.Protobuf.Benchmarks/SerializationConfig.cs b/csharp/src/Google.Protobuf.Benchmarks/SerializationConfig.cs
index 679f16cb9a87..6c3fe86c8aff 100644
--- a/csharp/src/Google.Protobuf.Benchmarks/SerializationConfig.cs
+++ b/csharp/src/Google.Protobuf.Benchmarks/SerializationConfig.cs
@@ -52,15 +52,25 @@ public class SerializationConfig
t => ((MessageDescriptor) t.GetProperty("Descriptor", BindingFlags.Static | BindingFlags.Public).GetValue(null)).FullName,
t => ((MessageParser) t.GetProperty("Parser", BindingFlags.Static | BindingFlags.Public).GetValue(null)));
- public MessageParser Parser { get; }
- public IEnumerable Payloads { get; }
- public string Name { get; }
+ public MessageParser Parser { get; private set; }
+ public IEnumerable Payloads { get; private set; }
+ public string Name { get; private set; }
public SerializationConfig(string resource)
{
var data = LoadData(resource);
var dataset = BenchmarkDataset.Parser.ParseFrom(data);
+ Initialize(dataset);
+ }
+
+ public SerializationConfig(BenchmarkDataset dataset)
+ {
+ Initialize(dataset);
+ }
+
+ private void Initialize(BenchmarkDataset dataset)
+ {
if (!parsersByMessageName.TryGetValue(dataset.MessageName, out var parser))
{
throw new ArgumentException($"No parser for message {dataset.MessageName} in this assembly");
diff --git a/csharp/src/Google.Protobuf.Benchmarks/WrapperBenchmark.cs b/csharp/src/Google.Protobuf.Benchmarks/WrapperBenchmark.cs
index ae17c1819af0..f9ca29bf7707 100644
--- a/csharp/src/Google.Protobuf.Benchmarks/WrapperBenchmark.cs
+++ b/csharp/src/Google.Protobuf.Benchmarks/WrapperBenchmark.cs
@@ -31,6 +31,7 @@
#endregion
using BenchmarkDotNet.Attributes;
+using System.Buffers;
using System.Collections.Generic;
using System.IO;
using System.Linq;
@@ -43,26 +44,56 @@ namespace Google.Protobuf.Benchmarks
[MemoryDiagnoser]
public class WrapperBenchmark
{
- byte[] manyWrapperFieldsData;
- byte[] manyPrimitiveFieldsData;
+ byte[] manyWrapperFieldsByteArray;
+ ReadOnlySequence manyWrapperFieldsReadOnlySequence;
+ byte[] manyPrimitiveFieldsByteArray;
+ ReadOnlySequence manyPrimitiveFieldsReadOnlySequence;
[GlobalSetup]
public void GlobalSetup()
{
- manyWrapperFieldsData = CreateManyWrapperFieldsMessage().ToByteArray();
- manyPrimitiveFieldsData = CreateManyPrimitiveFieldsMessage().ToByteArray();
+ manyWrapperFieldsByteArray = CreateManyWrapperFieldsMessage().ToByteArray();
+ manyWrapperFieldsReadOnlySequence = new ReadOnlySequence(manyWrapperFieldsByteArray);
+ manyPrimitiveFieldsByteArray = CreateManyPrimitiveFieldsMessage().ToByteArray();
+ manyPrimitiveFieldsReadOnlySequence = new ReadOnlySequence(manyPrimitiveFieldsByteArray);
}
[Benchmark]
- public ManyWrapperFieldsMessage ParseWrapperFields()
+ public ManyWrapperFieldsMessage ParseWrapperFieldsFromByteArray()
{
- return ManyWrapperFieldsMessage.Parser.ParseFrom(manyWrapperFieldsData);
+ return ManyWrapperFieldsMessage.Parser.ParseFrom(manyWrapperFieldsByteArray);
}
[Benchmark]
- public ManyPrimitiveFieldsMessage ParsePrimitiveFields()
+ public ManyWrapperFieldsMessage ParseWrapperFieldsFromNewByteArray()
{
- return ManyPrimitiveFieldsMessage.Parser.ParseFrom(manyPrimitiveFieldsData);
+ return ManyWrapperFieldsMessage.Parser.ParseFrom(manyWrapperFieldsReadOnlySequence.ToArray());
+ }
+
+ [Benchmark]
+ public ManyWrapperFieldsMessage ParseWrapperFieldsFromReadOnlySequence()
+ {
+ var input = new CodedInputReader(manyWrapperFieldsReadOnlySequence);
+ return ManyWrapperFieldsMessage.Parser.ParseFrom(ref input);
+ }
+
+ [Benchmark]
+ public ManyPrimitiveFieldsMessage ParsePrimitiveFieldsFromByteArray()
+ {
+ return ManyPrimitiveFieldsMessage.Parser.ParseFrom(manyPrimitiveFieldsByteArray);
+ }
+
+ [Benchmark]
+ public ManyPrimitiveFieldsMessage ParsePrimitiveFieldsFromNewByteArray()
+ {
+ return ManyPrimitiveFieldsMessage.Parser.ParseFrom(manyPrimitiveFieldsByteArray.ToArray());
+ }
+
+ [Benchmark]
+ public ManyPrimitiveFieldsMessage ParsePrimitiveFieldsFromReadOnlySequence()
+ {
+ var input = new CodedInputReader(manyPrimitiveFieldsReadOnlySequence);
+ return ManyPrimitiveFieldsMessage.Parser.ParseFrom(ref input);
}
private static ManyWrapperFieldsMessage CreateManyWrapperFieldsMessage()
diff --git a/csharp/src/Google.Protobuf.Benchmarks/WrapperBenchmarkMessages.cs b/csharp/src/Google.Protobuf.Benchmarks/WrapperBenchmarkMessages.cs
index 0cc86e2ad406..3b29e5a13be1 100644
--- a/csharp/src/Google.Protobuf.Benchmarks/WrapperBenchmarkMessages.cs
+++ b/csharp/src/Google.Protobuf.Benchmarks/WrapperBenchmarkMessages.cs
@@ -237,7 +237,11 @@ static WrapperBenchmarkMessagesReflection() {
/// a message that has a large number of wrapper fields
/// obfuscated version of an internal message
///
- public sealed partial class ManyWrapperFieldsMessage : pb::IMessage {
+ public sealed partial class ManyWrapperFieldsMessage : pb::IMessage
+ #if !GOOGLE_PROTOBUF_DISABLE_BUFFER_SERIALIZATION
+ , pb::IBufferMessage
+ #endif
+ {
private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ManyWrapperFieldsMessage());
private pb::UnknownFieldSet _unknownFields;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
@@ -2408,6 +2412,350 @@ public void WriteTo(pb::CodedOutputStream output) {
}
}
+
+ #if !GOOGLE_PROTOBUF_DISABLE_BUFFER_SERIALIZATION
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ public void WriteTo(ref pb::CodedOutputWriter output) {
+ if (doubleField1_ != null) {
+ _single_doubleField1_codec.WriteTagAndValue(ref output, DoubleField1);
+ }
+ if (int64Field2_ != null) {
+ _single_int64Field2_codec.WriteTagAndValue(ref output, Int64Field2);
+ }
+ if (int64Field3_ != null) {
+ _single_int64Field3_codec.WriteTagAndValue(ref output, Int64Field3);
+ }
+ if (int64Field4_ != null) {
+ _single_int64Field4_codec.WriteTagAndValue(ref output, Int64Field4);
+ }
+ if (doubleField7_ != null) {
+ _single_doubleField7_codec.WriteTagAndValue(ref output, DoubleField7);
+ }
+ if (doubleField8_ != null) {
+ _single_doubleField8_codec.WriteTagAndValue(ref output, DoubleField8);
+ }
+ if (doubleField9_ != null) {
+ _single_doubleField9_codec.WriteTagAndValue(ref output, DoubleField9);
+ }
+ if (doubleField10_ != null) {
+ _single_doubleField10_codec.WriteTagAndValue(ref output, DoubleField10);
+ }
+ if (doubleField11_ != null) {
+ _single_doubleField11_codec.WriteTagAndValue(ref output, DoubleField11);
+ }
+ if (doubleField14_ != null) {
+ _single_doubleField14_codec.WriteTagAndValue(ref output, DoubleField14);
+ }
+ if (doubleField15_ != null) {
+ _single_doubleField15_codec.WriteTagAndValue(ref output, DoubleField15);
+ }
+ if (int64Field19_ != null) {
+ _single_int64Field19_codec.WriteTagAndValue(ref output, Int64Field19);
+ }
+ if (doubleField20_ != null) {
+ _single_doubleField20_codec.WriteTagAndValue(ref output, DoubleField20);
+ }
+ if (doubleField21_ != null) {
+ _single_doubleField21_codec.WriteTagAndValue(ref output, DoubleField21);
+ }
+ if (doubleField22_ != null) {
+ _single_doubleField22_codec.WriteTagAndValue(ref output, DoubleField22);
+ }
+ if (doubleField25_ != null) {
+ _single_doubleField25_codec.WriteTagAndValue(ref output, DoubleField25);
+ }
+ if (int64Field26_ != null) {
+ _single_int64Field26_codec.WriteTagAndValue(ref output, Int64Field26);
+ }
+ if (doubleField28_ != null) {
+ _single_doubleField28_codec.WriteTagAndValue(ref output, DoubleField28);
+ }
+ if (doubleField29_ != null) {
+ _single_doubleField29_codec.WriteTagAndValue(ref output, DoubleField29);
+ }
+ if (doubleField30_ != null) {
+ _single_doubleField30_codec.WriteTagAndValue(ref output, DoubleField30);
+ }
+ if (doubleField31_ != null) {
+ _single_doubleField31_codec.WriteTagAndValue(ref output, DoubleField31);
+ }
+ if (int64Field32_ != null) {
+ _single_int64Field32_codec.WriteTagAndValue(ref output, Int64Field32);
+ }
+ if (int64Field37_ != null) {
+ _single_int64Field37_codec.WriteTagAndValue(ref output, Int64Field37);
+ }
+ if (doubleField38_ != null) {
+ _single_doubleField38_codec.WriteTagAndValue(ref output, DoubleField38);
+ }
+ if (interactions_ != null) {
+ _single_interactions_codec.WriteTagAndValue(ref output, Interactions);
+ }
+ if (doubleField40_ != null) {
+ _single_doubleField40_codec.WriteTagAndValue(ref output, DoubleField40);
+ }
+ if (int64Field41_ != null) {
+ _single_int64Field41_codec.WriteTagAndValue(ref output, Int64Field41);
+ }
+ if (doubleField42_ != null) {
+ _single_doubleField42_codec.WriteTagAndValue(ref output, DoubleField42);
+ }
+ if (int64Field43_ != null) {
+ _single_int64Field43_codec.WriteTagAndValue(ref output, Int64Field43);
+ }
+ if (int64Field44_ != null) {
+ _single_int64Field44_codec.WriteTagAndValue(ref output, Int64Field44);
+ }
+ if (doubleField45_ != null) {
+ _single_doubleField45_codec.WriteTagAndValue(ref output, DoubleField45);
+ }
+ if (doubleField46_ != null) {
+ _single_doubleField46_codec.WriteTagAndValue(ref output, DoubleField46);
+ }
+ if (doubleField47_ != null) {
+ _single_doubleField47_codec.WriteTagAndValue(ref output, DoubleField47);
+ }
+ if (doubleField48_ != null) {
+ _single_doubleField48_codec.WriteTagAndValue(ref output, DoubleField48);
+ }
+ if (doubleField49_ != null) {
+ _single_doubleField49_codec.WriteTagAndValue(ref output, DoubleField49);
+ }
+ if (doubleField50_ != null) {
+ _single_doubleField50_codec.WriteTagAndValue(ref output, DoubleField50);
+ }
+ if (doubleField51_ != null) {
+ _single_doubleField51_codec.WriteTagAndValue(ref output, DoubleField51);
+ }
+ if (doubleField52_ != null) {
+ _single_doubleField52_codec.WriteTagAndValue(ref output, DoubleField52);
+ }
+ if (doubleField53_ != null) {
+ _single_doubleField53_codec.WriteTagAndValue(ref output, DoubleField53);
+ }
+ if (doubleField54_ != null) {
+ _single_doubleField54_codec.WriteTagAndValue(ref output, DoubleField54);
+ }
+ if (doubleField55_ != null) {
+ _single_doubleField55_codec.WriteTagAndValue(ref output, DoubleField55);
+ }
+ if (doubleField56_ != null) {
+ _single_doubleField56_codec.WriteTagAndValue(ref output, DoubleField56);
+ }
+ if (doubleField57_ != null) {
+ _single_doubleField57_codec.WriteTagAndValue(ref output, DoubleField57);
+ }
+ if (doubleField58_ != null) {
+ _single_doubleField58_codec.WriteTagAndValue(ref output, DoubleField58);
+ }
+ if (int64Field59_ != null) {
+ _single_int64Field59_codec.WriteTagAndValue(ref output, Int64Field59);
+ }
+ if (int64Field60_ != null) {
+ _single_int64Field60_codec.WriteTagAndValue(ref output, Int64Field60);
+ }
+ if (doubleField62_ != null) {
+ _single_doubleField62_codec.WriteTagAndValue(ref output, DoubleField62);
+ }
+ if (doubleField65_ != null) {
+ _single_doubleField65_codec.WriteTagAndValue(ref output, DoubleField65);
+ }
+ if (doubleField66_ != null) {
+ _single_doubleField66_codec.WriteTagAndValue(ref output, DoubleField66);
+ }
+ if (doubleField67_ != null) {
+ _single_doubleField67_codec.WriteTagAndValue(ref output, DoubleField67);
+ }
+ if (doubleField68_ != null) {
+ _single_doubleField68_codec.WriteTagAndValue(ref output, DoubleField68);
+ }
+ if (doubleField69_ != null) {
+ _single_doubleField69_codec.WriteTagAndValue(ref output, DoubleField69);
+ }
+ if (doubleField70_ != null) {
+ _single_doubleField70_codec.WriteTagAndValue(ref output, DoubleField70);
+ }
+ if (doubleField71_ != null) {
+ _single_doubleField71_codec.WriteTagAndValue(ref output, DoubleField71);
+ }
+ if (doubleField72_ != null) {
+ _single_doubleField72_codec.WriteTagAndValue(ref output, DoubleField72);
+ }
+ if (stringField73_ != null) {
+ _single_stringField73_codec.WriteTagAndValue(ref output, StringField73);
+ }
+ if (stringField74_ != null) {
+ _single_stringField74_codec.WriteTagAndValue(ref output, StringField74);
+ }
+ if (doubleField75_ != null) {
+ _single_doubleField75_codec.WriteTagAndValue(ref output, DoubleField75);
+ }
+ if (doubleField77_ != null) {
+ _single_doubleField77_codec.WriteTagAndValue(ref output, DoubleField77);
+ }
+ if (doubleField78_ != null) {
+ _single_doubleField78_codec.WriteTagAndValue(ref output, DoubleField78);
+ }
+ if (doubleField79_ != null) {
+ _single_doubleField79_codec.WriteTagAndValue(ref output, DoubleField79);
+ }
+ if (EnumField80 != 0) {
+ output.WriteRawTag(128, 5);
+ output.WriteInt32(EnumField80);
+ }
+ if (EnumField81 != 0) {
+ output.WriteRawTag(136, 5);
+ output.WriteInt32(EnumField81);
+ }
+ if (int64Field82_ != null) {
+ _single_int64Field82_codec.WriteTagAndValue(ref output, Int64Field82);
+ }
+ if (EnumField83 != 0) {
+ output.WriteRawTag(152, 5);
+ output.WriteInt32(EnumField83);
+ }
+ if (doubleField84_ != null) {
+ _single_doubleField84_codec.WriteTagAndValue(ref output, DoubleField84);
+ }
+ if (int64Field85_ != null) {
+ _single_int64Field85_codec.WriteTagAndValue(ref output, Int64Field85);
+ }
+ if (int64Field86_ != null) {
+ _single_int64Field86_codec.WriteTagAndValue(ref output, Int64Field86);
+ }
+ if (int64Field87_ != null) {
+ _single_int64Field87_codec.WriteTagAndValue(ref output, Int64Field87);
+ }
+ if (doubleField88_ != null) {
+ _single_doubleField88_codec.WriteTagAndValue(ref output, DoubleField88);
+ }
+ if (doubleField89_ != null) {
+ _single_doubleField89_codec.WriteTagAndValue(ref output, DoubleField89);
+ }
+ if (doubleField90_ != null) {
+ _single_doubleField90_codec.WriteTagAndValue(ref output, DoubleField90);
+ }
+ if (doubleField91_ != null) {
+ _single_doubleField91_codec.WriteTagAndValue(ref output, DoubleField91);
+ }
+ if (doubleField92_ != null) {
+ _single_doubleField92_codec.WriteTagAndValue(ref output, DoubleField92);
+ }
+ if (doubleField93_ != null) {
+ _single_doubleField93_codec.WriteTagAndValue(ref output, DoubleField93);
+ }
+ if (doubleField94_ != null) {
+ _single_doubleField94_codec.WriteTagAndValue(ref output, DoubleField94);
+ }
+ if (doubleField95_ != null) {
+ _single_doubleField95_codec.WriteTagAndValue(ref output, DoubleField95);
+ }
+ if (doubleField96_ != null) {
+ _single_doubleField96_codec.WriteTagAndValue(ref output, DoubleField96);
+ }
+ if (doubleField97_ != null) {
+ _single_doubleField97_codec.WriteTagAndValue(ref output, DoubleField97);
+ }
+ if (doubleField98_ != null) {
+ _single_doubleField98_codec.WriteTagAndValue(ref output, DoubleField98);
+ }
+ if (doubleField99_ != null) {
+ _single_doubleField99_codec.WriteTagAndValue(ref output, DoubleField99);
+ }
+ repeatedIntField100_.WriteTo(ref output, _repeated_repeatedIntField100_codec);
+ if (doubleField101_ != null) {
+ _single_doubleField101_codec.WriteTagAndValue(ref output, DoubleField101);
+ }
+ if (doubleField102_ != null) {
+ _single_doubleField102_codec.WriteTagAndValue(ref output, DoubleField102);
+ }
+ if (doubleField103_ != null) {
+ _single_doubleField103_codec.WriteTagAndValue(ref output, DoubleField103);
+ }
+ if (doubleField104_ != null) {
+ _single_doubleField104_codec.WriteTagAndValue(ref output, DoubleField104);
+ }
+ if (doubleField105_ != null) {
+ _single_doubleField105_codec.WriteTagAndValue(ref output, DoubleField105);
+ }
+ if (doubleField106_ != null) {
+ _single_doubleField106_codec.WriteTagAndValue(ref output, DoubleField106);
+ }
+ if (int64Field107_ != null) {
+ _single_int64Field107_codec.WriteTagAndValue(ref output, Int64Field107);
+ }
+ if (doubleField108_ != null) {
+ _single_doubleField108_codec.WriteTagAndValue(ref output, DoubleField108);
+ }
+ if (doubleField109_ != null) {
+ _single_doubleField109_codec.WriteTagAndValue(ref output, DoubleField109);
+ }
+ if (int64Field110_ != null) {
+ _single_int64Field110_codec.WriteTagAndValue(ref output, Int64Field110);
+ }
+ if (doubleField111_ != null) {
+ _single_doubleField111_codec.WriteTagAndValue(ref output, DoubleField111);
+ }
+ if (int64Field112_ != null) {
+ _single_int64Field112_codec.WriteTagAndValue(ref output, Int64Field112);
+ }
+ if (doubleField113_ != null) {
+ _single_doubleField113_codec.WriteTagAndValue(ref output, DoubleField113);
+ }
+ if (int64Field114_ != null) {
+ _single_int64Field114_codec.WriteTagAndValue(ref output, Int64Field114);
+ }
+ if (int64Field115_ != null) {
+ _single_int64Field115_codec.WriteTagAndValue(ref output, Int64Field115);
+ }
+ if (doubleField116_ != null) {
+ _single_doubleField116_codec.WriteTagAndValue(ref output, DoubleField116);
+ }
+ if (int64Field117_ != null) {
+ _single_int64Field117_codec.WriteTagAndValue(ref output, Int64Field117);
+ }
+ if (doubleField118_ != null) {
+ _single_doubleField118_codec.WriteTagAndValue(ref output, DoubleField118);
+ }
+ if (doubleField119_ != null) {
+ _single_doubleField119_codec.WriteTagAndValue(ref output, DoubleField119);
+ }
+ if (doubleField120_ != null) {
+ _single_doubleField120_codec.WriteTagAndValue(ref output, DoubleField120);
+ }
+ if (doubleField121_ != null) {
+ _single_doubleField121_codec.WriteTagAndValue(ref output, DoubleField121);
+ }
+ if (doubleField122_ != null) {
+ _single_doubleField122_codec.WriteTagAndValue(ref output, DoubleField122);
+ }
+ if (doubleField123_ != null) {
+ _single_doubleField123_codec.WriteTagAndValue(ref output, DoubleField123);
+ }
+ if (doubleField124_ != null) {
+ _single_doubleField124_codec.WriteTagAndValue(ref output, DoubleField124);
+ }
+ if (int64Field125_ != null) {
+ _single_int64Field125_codec.WriteTagAndValue(ref output, Int64Field125);
+ }
+ if (int64Field126_ != null) {
+ _single_int64Field126_codec.WriteTagAndValue(ref output, Int64Field126);
+ }
+ if (int64Field127_ != null) {
+ _single_int64Field127_codec.WriteTagAndValue(ref output, Int64Field127);
+ }
+ if (doubleField128_ != null) {
+ _single_doubleField128_codec.WriteTagAndValue(ref output, DoubleField128);
+ }
+ if (doubleField129_ != null) {
+ _single_doubleField129_codec.WriteTagAndValue(ref output, DoubleField129);
+ }
+ if (_unknownFields != null) {
+ _unknownFields.WriteTo(ref output);
+ }
+ }
+ #endif
+
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public int CalculateSize() {
int size = 0;
@@ -4079,1630 +4427,2865 @@ public void MergeFrom(pb::CodedInputStream input) {
}
}
- }
-
- ///
- /// same as ManyWrapperFieldsMessages, but with primitive fields
- /// for comparison.
- ///
- public sealed partial class ManyPrimitiveFieldsMessage : pb::IMessage {
- private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ManyPrimitiveFieldsMessage());
- private pb::UnknownFieldSet _unknownFields;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public static pb::MessageParser Parser { get { return _parser; } }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public static pbr::MessageDescriptor Descriptor {
- get { return global::Google.Protobuf.Benchmarks.WrapperBenchmarkMessagesReflection.Descriptor.MessageTypes[1]; }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- pbr::MessageDescriptor pb::IMessage.Descriptor {
- get { return Descriptor; }
- }
+ #if !GOOGLE_PROTOBUF_DISABLE_BUFFER_SERIALIZATION
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public ManyPrimitiveFieldsMessage() {
- OnConstruction();
- }
-
+ public void MergeFrom(ref pb::CodedInputReader input) {
+ uint tag;
+ while ((tag = input.ReadTag()) != 0) {
+ switch(tag) {
+ default:
+ _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
+ break;
+ case 10: {
+ double? value = _single_doubleField1_codec.Read(ref input);
+ if (doubleField1_ == null || value != 0D) {
+ DoubleField1 = value;
+ }
+ break;
+ }
+ case 18: {
+ long? value = _single_int64Field2_codec.Read(ref input);
+ if (int64Field2_ == null || value != 0L) {
+ Int64Field2 = value;
+ }
+ break;
+ }
+ case 26: {
+ long? value = _single_int64Field3_codec.Read(ref input);
+ if (int64Field3_ == null || value != 0L) {
+ Int64Field3 = value;
+ }
+ break;
+ }
+ case 34: {
+ long? value = _single_int64Field4_codec.Read(ref input);
+ if (int64Field4_ == null || value != 0L) {
+ Int64Field4 = value;
+ }
+ break;
+ }
+ case 58: {
+ double? value = _single_doubleField7_codec.Read(ref input);
+ if (doubleField7_ == null || value != 0D) {
+ DoubleField7 = value;
+ }
+ break;
+ }
+ case 66: {
+ double? value = _single_doubleField8_codec.Read(ref input);
+ if (doubleField8_ == null || value != 0D) {
+ DoubleField8 = value;
+ }
+ break;
+ }
+ case 74: {
+ double? value = _single_doubleField9_codec.Read(ref input);
+ if (doubleField9_ == null || value != 0D) {
+ DoubleField9 = value;
+ }
+ break;
+ }
+ case 82: {
+ double? value = _single_doubleField10_codec.Read(ref input);
+ if (doubleField10_ == null || value != 0D) {
+ DoubleField10 = value;
+ }
+ break;
+ }
+ case 90: {
+ double? value = _single_doubleField11_codec.Read(ref input);
+ if (doubleField11_ == null || value != 0D) {
+ DoubleField11 = value;
+ }
+ break;
+ }
+ case 114: {
+ double? value = _single_doubleField14_codec.Read(ref input);
+ if (doubleField14_ == null || value != 0D) {
+ DoubleField14 = value;
+ }
+ break;
+ }
+ case 122: {
+ double? value = _single_doubleField15_codec.Read(ref input);
+ if (doubleField15_ == null || value != 0D) {
+ DoubleField15 = value;
+ }
+ break;
+ }
+ case 154: {
+ long? value = _single_int64Field19_codec.Read(ref input);
+ if (int64Field19_ == null || value != 0L) {
+ Int64Field19 = value;
+ }
+ break;
+ }
+ case 162: {
+ double? value = _single_doubleField20_codec.Read(ref input);
+ if (doubleField20_ == null || value != 0D) {
+ DoubleField20 = value;
+ }
+ break;
+ }
+ case 170: {
+ double? value = _single_doubleField21_codec.Read(ref input);
+ if (doubleField21_ == null || value != 0D) {
+ DoubleField21 = value;
+ }
+ break;
+ }
+ case 178: {
+ double? value = _single_doubleField22_codec.Read(ref input);
+ if (doubleField22_ == null || value != 0D) {
+ DoubleField22 = value;
+ }
+ break;
+ }
+ case 202: {
+ double? value = _single_doubleField25_codec.Read(ref input);
+ if (doubleField25_ == null || value != 0D) {
+ DoubleField25 = value;
+ }
+ break;
+ }
+ case 210: {
+ long? value = _single_int64Field26_codec.Read(ref input);
+ if (int64Field26_ == null || value != 0L) {
+ Int64Field26 = value;
+ }
+ break;
+ }
+ case 226: {
+ double? value = _single_doubleField28_codec.Read(ref input);
+ if (doubleField28_ == null || value != 0D) {
+ DoubleField28 = value;
+ }
+ break;
+ }
+ case 234: {
+ double? value = _single_doubleField29_codec.Read(ref input);
+ if (doubleField29_ == null || value != 0D) {
+ DoubleField29 = value;
+ }
+ break;
+ }
+ case 242: {
+ double? value = _single_doubleField30_codec.Read(ref input);
+ if (doubleField30_ == null || value != 0D) {
+ DoubleField30 = value;
+ }
+ break;
+ }
+ case 250: {
+ double? value = _single_doubleField31_codec.Read(ref input);
+ if (doubleField31_ == null || value != 0D) {
+ DoubleField31 = value;
+ }
+ break;
+ }
+ case 258: {
+ long? value = _single_int64Field32_codec.Read(ref input);
+ if (int64Field32_ == null || value != 0L) {
+ Int64Field32 = value;
+ }
+ break;
+ }
+ case 298: {
+ long? value = _single_int64Field37_codec.Read(ref input);
+ if (int64Field37_ == null || value != 0L) {
+ Int64Field37 = value;
+ }
+ break;
+ }
+ case 306: {
+ double? value = _single_doubleField38_codec.Read(ref input);
+ if (doubleField38_ == null || value != 0D) {
+ DoubleField38 = value;
+ }
+ break;
+ }
+ case 314: {
+ long? value = _single_interactions_codec.Read(ref input);
+ if (interactions_ == null || value != 0L) {
+ Interactions = value;
+ }
+ break;
+ }
+ case 322: {
+ double? value = _single_doubleField40_codec.Read(ref input);
+ if (doubleField40_ == null || value != 0D) {
+ DoubleField40 = value;
+ }
+ break;
+ }
+ case 330: {
+ long? value = _single_int64Field41_codec.Read(ref input);
+ if (int64Field41_ == null || value != 0L) {
+ Int64Field41 = value;
+ }
+ break;
+ }
+ case 338: {
+ double? value = _single_doubleField42_codec.Read(ref input);
+ if (doubleField42_ == null || value != 0D) {
+ DoubleField42 = value;
+ }
+ break;
+ }
+ case 346: {
+ long? value = _single_int64Field43_codec.Read(ref input);
+ if (int64Field43_ == null || value != 0L) {
+ Int64Field43 = value;
+ }
+ break;
+ }
+ case 354: {
+ long? value = _single_int64Field44_codec.Read(ref input);
+ if (int64Field44_ == null || value != 0L) {
+ Int64Field44 = value;
+ }
+ break;
+ }
+ case 362: {
+ double? value = _single_doubleField45_codec.Read(ref input);
+ if (doubleField45_ == null || value != 0D) {
+ DoubleField45 = value;
+ }
+ break;
+ }
+ case 370: {
+ double? value = _single_doubleField46_codec.Read(ref input);
+ if (doubleField46_ == null || value != 0D) {
+ DoubleField46 = value;
+ }
+ break;
+ }
+ case 378: {
+ double? value = _single_doubleField47_codec.Read(ref input);
+ if (doubleField47_ == null || value != 0D) {
+ DoubleField47 = value;
+ }
+ break;
+ }
+ case 386: {
+ double? value = _single_doubleField48_codec.Read(ref input);
+ if (doubleField48_ == null || value != 0D) {
+ DoubleField48 = value;
+ }
+ break;
+ }
+ case 394: {
+ double? value = _single_doubleField49_codec.Read(ref input);
+ if (doubleField49_ == null || value != 0D) {
+ DoubleField49 = value;
+ }
+ break;
+ }
+ case 402: {
+ double? value = _single_doubleField50_codec.Read(ref input);
+ if (doubleField50_ == null || value != 0D) {
+ DoubleField50 = value;
+ }
+ break;
+ }
+ case 410: {
+ double? value = _single_doubleField51_codec.Read(ref input);
+ if (doubleField51_ == null || value != 0D) {
+ DoubleField51 = value;
+ }
+ break;
+ }
+ case 418: {
+ double? value = _single_doubleField52_codec.Read(ref input);
+ if (doubleField52_ == null || value != 0D) {
+ DoubleField52 = value;
+ }
+ break;
+ }
+ case 426: {
+ double? value = _single_doubleField53_codec.Read(ref input);
+ if (doubleField53_ == null || value != 0D) {
+ DoubleField53 = value;
+ }
+ break;
+ }
+ case 434: {
+ double? value = _single_doubleField54_codec.Read(ref input);
+ if (doubleField54_ == null || value != 0D) {
+ DoubleField54 = value;
+ }
+ break;
+ }
+ case 442: {
+ double? value = _single_doubleField55_codec.Read(ref input);
+ if (doubleField55_ == null || value != 0D) {
+ DoubleField55 = value;
+ }
+ break;
+ }
+ case 450: {
+ double? value = _single_doubleField56_codec.Read(ref input);
+ if (doubleField56_ == null || value != 0D) {
+ DoubleField56 = value;
+ }
+ break;
+ }
+ case 458: {
+ double? value = _single_doubleField57_codec.Read(ref input);
+ if (doubleField57_ == null || value != 0D) {
+ DoubleField57 = value;
+ }
+ break;
+ }
+ case 466: {
+ double? value = _single_doubleField58_codec.Read(ref input);
+ if (doubleField58_ == null || value != 0D) {
+ DoubleField58 = value;
+ }
+ break;
+ }
+ case 474: {
+ long? value = _single_int64Field59_codec.Read(ref input);
+ if (int64Field59_ == null || value != 0L) {
+ Int64Field59 = value;
+ }
+ break;
+ }
+ case 482: {
+ long? value = _single_int64Field60_codec.Read(ref input);
+ if (int64Field60_ == null || value != 0L) {
+ Int64Field60 = value;
+ }
+ break;
+ }
+ case 498: {
+ double? value = _single_doubleField62_codec.Read(ref input);
+ if (doubleField62_ == null || value != 0D) {
+ DoubleField62 = value;
+ }
+ break;
+ }
+ case 522: {
+ double? value = _single_doubleField65_codec.Read(ref input);
+ if (doubleField65_ == null || value != 0D) {
+ DoubleField65 = value;
+ }
+ break;
+ }
+ case 530: {
+ double? value = _single_doubleField66_codec.Read(ref input);
+ if (doubleField66_ == null || value != 0D) {
+ DoubleField66 = value;
+ }
+ break;
+ }
+ case 538: {
+ double? value = _single_doubleField67_codec.Read(ref input);
+ if (doubleField67_ == null || value != 0D) {
+ DoubleField67 = value;
+ }
+ break;
+ }
+ case 546: {
+ double? value = _single_doubleField68_codec.Read(ref input);
+ if (doubleField68_ == null || value != 0D) {
+ DoubleField68 = value;
+ }
+ break;
+ }
+ case 554: {
+ double? value = _single_doubleField69_codec.Read(ref input);
+ if (doubleField69_ == null || value != 0D) {
+ DoubleField69 = value;
+ }
+ break;
+ }
+ case 562: {
+ double? value = _single_doubleField70_codec.Read(ref input);
+ if (doubleField70_ == null || value != 0D) {
+ DoubleField70 = value;
+ }
+ break;
+ }
+ case 570: {
+ double? value = _single_doubleField71_codec.Read(ref input);
+ if (doubleField71_ == null || value != 0D) {
+ DoubleField71 = value;
+ }
+ break;
+ }
+ case 578: {
+ double? value = _single_doubleField72_codec.Read(ref input);
+ if (doubleField72_ == null || value != 0D) {
+ DoubleField72 = value;
+ }
+ break;
+ }
+ case 586: {
+ string value = _single_stringField73_codec.Read(ref input);
+ if (stringField73_ == null || value != "") {
+ StringField73 = value;
+ }
+ break;
+ }
+ case 594: {
+ string value = _single_stringField74_codec.Read(ref input);
+ if (stringField74_ == null || value != "") {
+ StringField74 = value;
+ }
+ break;
+ }
+ case 602: {
+ double? value = _single_doubleField75_codec.Read(ref input);
+ if (doubleField75_ == null || value != 0D) {
+ DoubleField75 = value;
+ }
+ break;
+ }
+ case 618: {
+ double? value = _single_doubleField77_codec.Read(ref input);
+ if (doubleField77_ == null || value != 0D) {
+ DoubleField77 = value;
+ }
+ break;
+ }
+ case 626: {
+ double? value = _single_doubleField78_codec.Read(ref input);
+ if (doubleField78_ == null || value != 0D) {
+ DoubleField78 = value;
+ }
+ break;
+ }
+ case 634: {
+ double? value = _single_doubleField79_codec.Read(ref input);
+ if (doubleField79_ == null || value != 0D) {
+ DoubleField79 = value;
+ }
+ break;
+ }
+ case 640: {
+ EnumField80 = input.ReadInt32();
+ break;
+ }
+ case 648: {
+ EnumField81 = input.ReadInt32();
+ break;
+ }
+ case 658: {
+ long? value = _single_int64Field82_codec.Read(ref input);
+ if (int64Field82_ == null || value != 0L) {
+ Int64Field82 = value;
+ }
+ break;
+ }
+ case 664: {
+ EnumField83 = input.ReadInt32();
+ break;
+ }
+ case 674: {
+ double? value = _single_doubleField84_codec.Read(ref input);
+ if (doubleField84_ == null || value != 0D) {
+ DoubleField84 = value;
+ }
+ break;
+ }
+ case 682: {
+ long? value = _single_int64Field85_codec.Read(ref input);
+ if (int64Field85_ == null || value != 0L) {
+ Int64Field85 = value;
+ }
+ break;
+ }
+ case 690: {
+ long? value = _single_int64Field86_codec.Read(ref input);
+ if (int64Field86_ == null || value != 0L) {
+ Int64Field86 = value;
+ }
+ break;
+ }
+ case 698: {
+ long? value = _single_int64Field87_codec.Read(ref input);
+ if (int64Field87_ == null || value != 0L) {
+ Int64Field87 = value;
+ }
+ break;
+ }
+ case 706: {
+ double? value = _single_doubleField88_codec.Read(ref input);
+ if (doubleField88_ == null || value != 0D) {
+ DoubleField88 = value;
+ }
+ break;
+ }
+ case 714: {
+ double? value = _single_doubleField89_codec.Read(ref input);
+ if (doubleField89_ == null || value != 0D) {
+ DoubleField89 = value;
+ }
+ break;
+ }
+ case 722: {
+ double? value = _single_doubleField90_codec.Read(ref input);
+ if (doubleField90_ == null || value != 0D) {
+ DoubleField90 = value;
+ }
+ break;
+ }
+ case 730: {
+ double? value = _single_doubleField91_codec.Read(ref input);
+ if (doubleField91_ == null || value != 0D) {
+ DoubleField91 = value;
+ }
+ break;
+ }
+ case 738: {
+ double? value = _single_doubleField92_codec.Read(ref input);
+ if (doubleField92_ == null || value != 0D) {
+ DoubleField92 = value;
+ }
+ break;
+ }
+ case 746: {
+ double? value = _single_doubleField93_codec.Read(ref input);
+ if (doubleField93_ == null || value != 0D) {
+ DoubleField93 = value;
+ }
+ break;
+ }
+ case 754: {
+ double? value = _single_doubleField94_codec.Read(ref input);
+ if (doubleField94_ == null || value != 0D) {
+ DoubleField94 = value;
+ }
+ break;
+ }
+ case 762: {
+ double? value = _single_doubleField95_codec.Read(ref input);
+ if (doubleField95_ == null || value != 0D) {
+ DoubleField95 = value;
+ }
+ break;
+ }
+ case 770: {
+ double? value = _single_doubleField96_codec.Read(ref input);
+ if (doubleField96_ == null || value != 0D) {
+ DoubleField96 = value;
+ }
+ break;
+ }
+ case 778: {
+ double? value = _single_doubleField97_codec.Read(ref input);
+ if (doubleField97_ == null || value != 0D) {
+ DoubleField97 = value;
+ }
+ break;
+ }
+ case 786: {
+ double? value = _single_doubleField98_codec.Read(ref input);
+ if (doubleField98_ == null || value != 0D) {
+ DoubleField98 = value;
+ }
+ break;
+ }
+ case 794: {
+ double? value = _single_doubleField99_codec.Read(ref input);
+ if (doubleField99_ == null || value != 0D) {
+ DoubleField99 = value;
+ }
+ break;
+ }
+ case 802:
+ case 800: {
+ repeatedIntField100_.AddEntriesFrom(ref input, _repeated_repeatedIntField100_codec);
+ break;
+ }
+ case 810: {
+ double? value = _single_doubleField101_codec.Read(ref input);
+ if (doubleField101_ == null || value != 0D) {
+ DoubleField101 = value;
+ }
+ break;
+ }
+ case 818: {
+ double? value = _single_doubleField102_codec.Read(ref input);
+ if (doubleField102_ == null || value != 0D) {
+ DoubleField102 = value;
+ }
+ break;
+ }
+ case 826: {
+ double? value = _single_doubleField103_codec.Read(ref input);
+ if (doubleField103_ == null || value != 0D) {
+ DoubleField103 = value;
+ }
+ break;
+ }
+ case 834: {
+ double? value = _single_doubleField104_codec.Read(ref input);
+ if (doubleField104_ == null || value != 0D) {
+ DoubleField104 = value;
+ }
+ break;
+ }
+ case 842: {
+ double? value = _single_doubleField105_codec.Read(ref input);
+ if (doubleField105_ == null || value != 0D) {
+ DoubleField105 = value;
+ }
+ break;
+ }
+ case 850: {
+ double? value = _single_doubleField106_codec.Read(ref input);
+ if (doubleField106_ == null || value != 0D) {
+ DoubleField106 = value;
+ }
+ break;
+ }
+ case 858: {
+ long? value = _single_int64Field107_codec.Read(ref input);
+ if (int64Field107_ == null || value != 0L) {
+ Int64Field107 = value;
+ }
+ break;
+ }
+ case 866: {
+ double? value = _single_doubleField108_codec.Read(ref input);
+ if (doubleField108_ == null || value != 0D) {
+ DoubleField108 = value;
+ }
+ break;
+ }
+ case 874: {
+ double? value = _single_doubleField109_codec.Read(ref input);
+ if (doubleField109_ == null || value != 0D) {
+ DoubleField109 = value;
+ }
+ break;
+ }
+ case 882: {
+ long? value = _single_int64Field110_codec.Read(ref input);
+ if (int64Field110_ == null || value != 0L) {
+ Int64Field110 = value;
+ }
+ break;
+ }
+ case 890: {
+ double? value = _single_doubleField111_codec.Read(ref input);
+ if (doubleField111_ == null || value != 0D) {
+ DoubleField111 = value;
+ }
+ break;
+ }
+ case 898: {
+ long? value = _single_int64Field112_codec.Read(ref input);
+ if (int64Field112_ == null || value != 0L) {
+ Int64Field112 = value;
+ }
+ break;
+ }
+ case 906: {
+ double? value = _single_doubleField113_codec.Read(ref input);
+ if (doubleField113_ == null || value != 0D) {
+ DoubleField113 = value;
+ }
+ break;
+ }
+ case 914: {
+ long? value = _single_int64Field114_codec.Read(ref input);
+ if (int64Field114_ == null || value != 0L) {
+ Int64Field114 = value;
+ }
+ break;
+ }
+ case 922: {
+ long? value = _single_int64Field115_codec.Read(ref input);
+ if (int64Field115_ == null || value != 0L) {
+ Int64Field115 = value;
+ }
+ break;
+ }
+ case 930: {
+ double? value = _single_doubleField116_codec.Read(ref input);
+ if (doubleField116_ == null || value != 0D) {
+ DoubleField116 = value;
+ }
+ break;
+ }
+ case 938: {
+ long? value = _single_int64Field117_codec.Read(ref input);
+ if (int64Field117_ == null || value != 0L) {
+ Int64Field117 = value;
+ }
+ break;
+ }
+ case 946: {
+ double? value = _single_doubleField118_codec.Read(ref input);
+ if (doubleField118_ == null || value != 0D) {
+ DoubleField118 = value;
+ }
+ break;
+ }
+ case 954: {
+ double? value = _single_doubleField119_codec.Read(ref input);
+ if (doubleField119_ == null || value != 0D) {
+ DoubleField119 = value;
+ }
+ break;
+ }
+ case 962: {
+ double? value = _single_doubleField120_codec.Read(ref input);
+ if (doubleField120_ == null || value != 0D) {
+ DoubleField120 = value;
+ }
+ break;
+ }
+ case 970: {
+ double? value = _single_doubleField121_codec.Read(ref input);
+ if (doubleField121_ == null || value != 0D) {
+ DoubleField121 = value;
+ }
+ break;
+ }
+ case 978: {
+ double? value = _single_doubleField122_codec.Read(ref input);
+ if (doubleField122_ == null || value != 0D) {
+ DoubleField122 = value;
+ }
+ break;
+ }
+ case 986: {
+ double? value = _single_doubleField123_codec.Read(ref input);
+ if (doubleField123_ == null || value != 0D) {
+ DoubleField123 = value;
+ }
+ break;
+ }
+ case 994: {
+ double? value = _single_doubleField124_codec.Read(ref input);
+ if (doubleField124_ == null || value != 0D) {
+ DoubleField124 = value;
+ }
+ break;
+ }
+ case 1002: {
+ long? value = _single_int64Field125_codec.Read(ref input);
+ if (int64Field125_ == null || value != 0L) {
+ Int64Field125 = value;
+ }
+ break;
+ }
+ case 1010: {
+ long? value = _single_int64Field126_codec.Read(ref input);
+ if (int64Field126_ == null || value != 0L) {
+ Int64Field126 = value;
+ }
+ break;
+ }
+ case 1018: {
+ long? value = _single_int64Field127_codec.Read(ref input);
+ if (int64Field127_ == null || value != 0L) {
+ Int64Field127 = value;
+ }
+ break;
+ }
+ case 1026: {
+ double? value = _single_doubleField128_codec.Read(ref input);
+ if (doubleField128_ == null || value != 0D) {
+ DoubleField128 = value;
+ }
+ break;
+ }
+ case 1034: {
+ double? value = _single_doubleField129_codec.Read(ref input);
+ if (doubleField129_ == null || value != 0D) {
+ DoubleField129 = value;
+ }
+ break;
+ }
+ }
+ }
+ }
+ #endif
+
+ }
+
+ ///
+ /// same as ManyWrapperFieldsMessages, but with primitive fields
+ /// for comparison.
+ ///
+ public sealed partial class ManyPrimitiveFieldsMessage : pb::IMessage
+ #if !GOOGLE_PROTOBUF_DISABLE_BUFFER_SERIALIZATION
+ , pb::IBufferMessage
+ #endif
+ {
+ private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ManyPrimitiveFieldsMessage());
+ private pb::UnknownFieldSet _unknownFields;
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ public static pb::MessageParser Parser { get { return _parser; } }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ public static pbr::MessageDescriptor Descriptor {
+ get { return global::Google.Protobuf.Benchmarks.WrapperBenchmarkMessagesReflection.Descriptor.MessageTypes[1]; }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ pbr::MessageDescriptor pb::IMessage.Descriptor {
+ get { return Descriptor; }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ public ManyPrimitiveFieldsMessage() {
+ OnConstruction();
+ }
+
partial void OnConstruction();
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public ManyPrimitiveFieldsMessage(ManyPrimitiveFieldsMessage other) : this() {
- doubleField95_ = other.doubleField95_;
- doubleField1_ = other.doubleField1_;
- doubleField79_ = other.doubleField79_;
- int64Field2_ = other.int64Field2_;
- doubleField96_ = other.doubleField96_;
- int64Field3_ = other.int64Field3_;
- int64Field4_ = other.int64Field4_;
- doubleField97_ = other.doubleField97_;
- doubleField65_ = other.doubleField65_;
- doubleField66_ = other.doubleField66_;
- doubleField7_ = other.doubleField7_;
- doubleField62_ = other.doubleField62_;
- doubleField118_ = other.doubleField118_;
- doubleField119_ = other.doubleField119_;
- doubleField67_ = other.doubleField67_;
- doubleField120_ = other.doubleField120_;
- doubleField121_ = other.doubleField121_;
- doubleField122_ = other.doubleField122_;
- doubleField123_ = other.doubleField123_;
- doubleField124_ = other.doubleField124_;
- doubleField8_ = other.doubleField8_;
- doubleField9_ = other.doubleField9_;
- doubleField98_ = other.doubleField98_;
- doubleField10_ = other.doubleField10_;
- doubleField11_ = other.doubleField11_;
- doubleField99_ = other.doubleField99_;
- doubleField84_ = other.doubleField84_;
- doubleField14_ = other.doubleField14_;
- doubleField77_ = other.doubleField77_;
- doubleField15_ = other.doubleField15_;
- int64Field19_ = other.int64Field19_;
- int64Field115_ = other.int64Field115_;
- doubleField116_ = other.doubleField116_;
- int64Field117_ = other.int64Field117_;
- doubleField20_ = other.doubleField20_;
- doubleField21_ = other.doubleField21_;
- stringField73_ = other.stringField73_;
- stringField74_ = other.stringField74_;
- doubleField22_ = other.doubleField22_;
- doubleField69_ = other.doubleField69_;
- doubleField70_ = other.doubleField70_;
- doubleField71_ = other.doubleField71_;
- doubleField72_ = other.doubleField72_;
- doubleField25_ = other.doubleField25_;
- int64Field26_ = other.int64Field26_;
- doubleField68_ = other.doubleField68_;
- doubleField28_ = other.doubleField28_;
- doubleField106_ = other.doubleField106_;
- doubleField29_ = other.doubleField29_;
- doubleField30_ = other.doubleField30_;
- doubleField101_ = other.doubleField101_;
- doubleField102_ = other.doubleField102_;
- doubleField103_ = other.doubleField103_;
- doubleField104_ = other.doubleField104_;
- doubleField105_ = other.doubleField105_;
- doubleField31_ = other.doubleField31_;
- int64Field32_ = other.int64Field32_;
- doubleField75_ = other.doubleField75_;
- doubleField129_ = other.doubleField129_;
- enumField80_ = other.enumField80_;
- enumField81_ = other.enumField81_;
- int64Field82_ = other.int64Field82_;
- enumField83_ = other.enumField83_;
- int64Field85_ = other.int64Field85_;
- int64Field86_ = other.int64Field86_;
- int64Field87_ = other.int64Field87_;
- int64Field125_ = other.int64Field125_;
- int64Field37_ = other.int64Field37_;
- doubleField38_ = other.doubleField38_;
- interactions_ = other.interactions_;
- repeatedIntField100_ = other.repeatedIntField100_.Clone();
- doubleField40_ = other.doubleField40_;
- int64Field41_ = other.int64Field41_;
- int64Field126_ = other.int64Field126_;
- int64Field127_ = other.int64Field127_;
- doubleField128_ = other.doubleField128_;
- doubleField109_ = other.doubleField109_;
- int64Field110_ = other.int64Field110_;
- doubleField111_ = other.doubleField111_;
- int64Field112_ = other.int64Field112_;
- doubleField113_ = other.doubleField113_;
- int64Field114_ = other.int64Field114_;
- doubleField42_ = other.doubleField42_;
- int64Field43_ = other.int64Field43_;
- int64Field44_ = other.int64Field44_;
- doubleField45_ = other.doubleField45_;
- doubleField46_ = other.doubleField46_;
- doubleField78_ = other.doubleField78_;
- doubleField88_ = other.doubleField88_;
- doubleField47_ = other.doubleField47_;
- doubleField89_ = other.doubleField89_;
- doubleField48_ = other.doubleField48_;
- doubleField49_ = other.doubleField49_;
- doubleField50_ = other.doubleField50_;
- doubleField90_ = other.doubleField90_;
- doubleField51_ = other.doubleField51_;
- doubleField91_ = other.doubleField91_;
- doubleField92_ = other.doubleField92_;
- int64Field107_ = other.int64Field107_;
- doubleField93_ = other.doubleField93_;
- doubleField108_ = other.doubleField108_;
- doubleField52_ = other.doubleField52_;
- doubleField53_ = other.doubleField53_;
- doubleField94_ = other.doubleField94_;
- doubleField54_ = other.doubleField54_;
- doubleField55_ = other.doubleField55_;
- doubleField56_ = other.doubleField56_;
- doubleField57_ = other.doubleField57_;
- doubleField58_ = other.doubleField58_;
- int64Field59_ = other.int64Field59_;
- int64Field60_ = other.int64Field60_;
- _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
+ public ManyPrimitiveFieldsMessage(ManyPrimitiveFieldsMessage other) : this() {
+ doubleField95_ = other.doubleField95_;
+ doubleField1_ = other.doubleField1_;
+ doubleField79_ = other.doubleField79_;
+ int64Field2_ = other.int64Field2_;
+ doubleField96_ = other.doubleField96_;
+ int64Field3_ = other.int64Field3_;
+ int64Field4_ = other.int64Field4_;
+ doubleField97_ = other.doubleField97_;
+ doubleField65_ = other.doubleField65_;
+ doubleField66_ = other.doubleField66_;
+ doubleField7_ = other.doubleField7_;
+ doubleField62_ = other.doubleField62_;
+ doubleField118_ = other.doubleField118_;
+ doubleField119_ = other.doubleField119_;
+ doubleField67_ = other.doubleField67_;
+ doubleField120_ = other.doubleField120_;
+ doubleField121_ = other.doubleField121_;
+ doubleField122_ = other.doubleField122_;
+ doubleField123_ = other.doubleField123_;
+ doubleField124_ = other.doubleField124_;
+ doubleField8_ = other.doubleField8_;
+ doubleField9_ = other.doubleField9_;
+ doubleField98_ = other.doubleField98_;
+ doubleField10_ = other.doubleField10_;
+ doubleField11_ = other.doubleField11_;
+ doubleField99_ = other.doubleField99_;
+ doubleField84_ = other.doubleField84_;
+ doubleField14_ = other.doubleField14_;
+ doubleField77_ = other.doubleField77_;
+ doubleField15_ = other.doubleField15_;
+ int64Field19_ = other.int64Field19_;
+ int64Field115_ = other.int64Field115_;
+ doubleField116_ = other.doubleField116_;
+ int64Field117_ = other.int64Field117_;
+ doubleField20_ = other.doubleField20_;
+ doubleField21_ = other.doubleField21_;
+ stringField73_ = other.stringField73_;
+ stringField74_ = other.stringField74_;
+ doubleField22_ = other.doubleField22_;
+ doubleField69_ = other.doubleField69_;
+ doubleField70_ = other.doubleField70_;
+ doubleField71_ = other.doubleField71_;
+ doubleField72_ = other.doubleField72_;
+ doubleField25_ = other.doubleField25_;
+ int64Field26_ = other.int64Field26_;
+ doubleField68_ = other.doubleField68_;
+ doubleField28_ = other.doubleField28_;
+ doubleField106_ = other.doubleField106_;
+ doubleField29_ = other.doubleField29_;
+ doubleField30_ = other.doubleField30_;
+ doubleField101_ = other.doubleField101_;
+ doubleField102_ = other.doubleField102_;
+ doubleField103_ = other.doubleField103_;
+ doubleField104_ = other.doubleField104_;
+ doubleField105_ = other.doubleField105_;
+ doubleField31_ = other.doubleField31_;
+ int64Field32_ = other.int64Field32_;
+ doubleField75_ = other.doubleField75_;
+ doubleField129_ = other.doubleField129_;
+ enumField80_ = other.enumField80_;
+ enumField81_ = other.enumField81_;
+ int64Field82_ = other.int64Field82_;
+ enumField83_ = other.enumField83_;
+ int64Field85_ = other.int64Field85_;
+ int64Field86_ = other.int64Field86_;
+ int64Field87_ = other.int64Field87_;
+ int64Field125_ = other.int64Field125_;
+ int64Field37_ = other.int64Field37_;
+ doubleField38_ = other.doubleField38_;
+ interactions_ = other.interactions_;
+ repeatedIntField100_ = other.repeatedIntField100_.Clone();
+ doubleField40_ = other.doubleField40_;
+ int64Field41_ = other.int64Field41_;
+ int64Field126_ = other.int64Field126_;
+ int64Field127_ = other.int64Field127_;
+ doubleField128_ = other.doubleField128_;
+ doubleField109_ = other.doubleField109_;
+ int64Field110_ = other.int64Field110_;
+ doubleField111_ = other.doubleField111_;
+ int64Field112_ = other.int64Field112_;
+ doubleField113_ = other.doubleField113_;
+ int64Field114_ = other.int64Field114_;
+ doubleField42_ = other.doubleField42_;
+ int64Field43_ = other.int64Field43_;
+ int64Field44_ = other.int64Field44_;
+ doubleField45_ = other.doubleField45_;
+ doubleField46_ = other.doubleField46_;
+ doubleField78_ = other.doubleField78_;
+ doubleField88_ = other.doubleField88_;
+ doubleField47_ = other.doubleField47_;
+ doubleField89_ = other.doubleField89_;
+ doubleField48_ = other.doubleField48_;
+ doubleField49_ = other.doubleField49_;
+ doubleField50_ = other.doubleField50_;
+ doubleField90_ = other.doubleField90_;
+ doubleField51_ = other.doubleField51_;
+ doubleField91_ = other.doubleField91_;
+ doubleField92_ = other.doubleField92_;
+ int64Field107_ = other.int64Field107_;
+ doubleField93_ = other.doubleField93_;
+ doubleField108_ = other.doubleField108_;
+ doubleField52_ = other.doubleField52_;
+ doubleField53_ = other.doubleField53_;
+ doubleField94_ = other.doubleField94_;
+ doubleField54_ = other.doubleField54_;
+ doubleField55_ = other.doubleField55_;
+ doubleField56_ = other.doubleField56_;
+ doubleField57_ = other.doubleField57_;
+ doubleField58_ = other.doubleField58_;
+ int64Field59_ = other.int64Field59_;
+ int64Field60_ = other.int64Field60_;
+ _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ public ManyPrimitiveFieldsMessage Clone() {
+ return new ManyPrimitiveFieldsMessage(this);
+ }
+
+ /// Field number for the "double_field_95" field.
+ public const int DoubleField95FieldNumber = 95;
+ private double doubleField95_;
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ public double DoubleField95 {
+ get { return doubleField95_; }
+ set {
+ doubleField95_ = value;
+ }
+ }
+
+ /// Field number for the "double_field_1" field.
+ public const int DoubleField1FieldNumber = 1;
+ private double doubleField1_;
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ public double DoubleField1 {
+ get { return doubleField1_; }
+ set {
+ doubleField1_ = value;
+ }
+ }
+
+ /// Field number for the "double_field_79" field.
+ public const int DoubleField79FieldNumber = 79;
+ private double doubleField79_;
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ public double DoubleField79 {
+ get { return doubleField79_; }
+ set {
+ doubleField79_ = value;
+ }
+ }
+
+ /// Field number for the "int64_field_2" field.
+ public const int Int64Field2FieldNumber = 2;
+ private long int64Field2_;
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ public long Int64Field2 {
+ get { return int64Field2_; }
+ set {
+ int64Field2_ = value;
+ }
+ }
+
+ /// Field number for the "double_field_96" field.
+ public const int DoubleField96FieldNumber = 96;
+ private double doubleField96_;
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ public double DoubleField96 {
+ get { return doubleField96_; }
+ set {
+ doubleField96_ = value;
+ }
+ }
+
+ /// Field number for the "int64_field_3" field.
+ public const int Int64Field3FieldNumber = 3;
+ private long int64Field3_;
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ public long Int64Field3 {
+ get { return int64Field3_; }
+ set {
+ int64Field3_ = value;
+ }
+ }
+
+ /// Field number for the "int64_field_4" field.
+ public const int Int64Field4FieldNumber = 4;
+ private long int64Field4_;
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ public long Int64Field4 {
+ get { return int64Field4_; }
+ set {
+ int64Field4_ = value;
+ }
+ }
+
+ /// Field number for the "double_field_97" field.
+ public const int DoubleField97FieldNumber = 97;
+ private double doubleField97_;
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ public double DoubleField97 {
+ get { return doubleField97_; }
+ set {
+ doubleField97_ = value;
+ }
+ }
+
+ /// Field number for the "double_field_65" field.
+ public const int DoubleField65FieldNumber = 65;
+ private double doubleField65_;
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ public double DoubleField65 {
+ get { return doubleField65_; }
+ set {
+ doubleField65_ = value;
+ }
+ }
+
+ /// Field number for the "double_field_66" field.
+ public const int DoubleField66FieldNumber = 66;
+ private double doubleField66_;
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ public double DoubleField66 {
+ get { return doubleField66_; }
+ set {
+ doubleField66_ = value;
+ }
+ }
+
+ /// Field number for the "double_field_7" field.
+ public const int DoubleField7FieldNumber = 7;
+ private double doubleField7_;
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ public double DoubleField7 {
+ get { return doubleField7_; }
+ set {
+ doubleField7_ = value;
+ }
+ }
+
+ /// Field number for the "double_field_62" field.
+ public const int DoubleField62FieldNumber = 62;
+ private double doubleField62_;
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ public double DoubleField62 {
+ get { return doubleField62_; }
+ set {
+ doubleField62_ = value;
+ }
+ }
+
+ /// Field number for the "double_field_118" field.
+ public const int DoubleField118FieldNumber = 118;
+ private double doubleField118_;
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ public double DoubleField118 {
+ get { return doubleField118_; }
+ set {
+ doubleField118_ = value;
+ }
+ }
+
+ /// Field number for the "double_field_119" field.
+ public const int DoubleField119FieldNumber = 119;
+ private double doubleField119_;
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ public double DoubleField119 {
+ get { return doubleField119_; }
+ set {
+ doubleField119_ = value;
+ }
+ }
+
+ /// Field number for the "double_field_67" field.
+ public const int DoubleField67FieldNumber = 67;
+ private double doubleField67_;
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ public double DoubleField67 {
+ get { return doubleField67_; }
+ set {
+ doubleField67_ = value;
+ }
+ }
+
+ /// Field number for the "double_field_120" field.
+ public const int DoubleField120FieldNumber = 120;
+ private double doubleField120_;
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ public double DoubleField120 {
+ get { return doubleField120_; }
+ set {
+ doubleField120_ = value;
+ }
+ }
+
+ /// Field number for the "double_field_121" field.
+ public const int DoubleField121FieldNumber = 121;
+ private double doubleField121_;
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ public double DoubleField121 {
+ get { return doubleField121_; }
+ set {
+ doubleField121_ = value;
+ }
+ }
+
+ /// Field number for the "double_field_122" field.
+ public const int DoubleField122FieldNumber = 122;
+ private double doubleField122_;
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ public double DoubleField122 {
+ get { return doubleField122_; }
+ set {
+ doubleField122_ = value;
+ }
+ }
+
+ /// Field number for the "double_field_123" field.
+ public const int DoubleField123FieldNumber = 123;
+ private double doubleField123_;
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ public double DoubleField123 {
+ get { return doubleField123_; }
+ set {
+ doubleField123_ = value;
+ }
+ }
+
+ /// Field number for the "double_field_124" field.
+ public const int DoubleField124FieldNumber = 124;
+ private double doubleField124_;
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ public double DoubleField124 {
+ get { return doubleField124_; }
+ set {
+ doubleField124_ = value;
+ }
+ }
+
+ /// Field number for the "double_field_8" field.
+ public const int DoubleField8FieldNumber = 8;
+ private double doubleField8_;
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ public double DoubleField8 {
+ get { return doubleField8_; }
+ set {
+ doubleField8_ = value;
+ }
+ }
+
+ /// Field number for the "double_field_9" field.
+ public const int DoubleField9FieldNumber = 9;
+ private double doubleField9_;
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ public double DoubleField9 {
+ get { return doubleField9_; }
+ set {
+ doubleField9_ = value;
+ }
+ }
+
+ /// Field number for the "double_field_98" field.
+ public const int DoubleField98FieldNumber = 98;
+ private double doubleField98_;
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ public double DoubleField98 {
+ get { return doubleField98_; }
+ set {
+ doubleField98_ = value;
+ }
+ }
+
+ /// Field number for the "double_field_10" field.
+ public const int DoubleField10FieldNumber = 10;
+ private double doubleField10_;
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ public double DoubleField10 {
+ get { return doubleField10_; }
+ set {
+ doubleField10_ = value;
+ }
+ }
+
+ /// Field number for the "double_field_11" field.
+ public const int DoubleField11FieldNumber = 11;
+ private double doubleField11_;
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ public double DoubleField11 {
+ get { return doubleField11_; }
+ set {
+ doubleField11_ = value;
+ }
+ }
+
+ /// Field number for the "double_field_99" field.
+ public const int DoubleField99FieldNumber = 99;
+ private double doubleField99_;
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ public double DoubleField99 {
+ get { return doubleField99_; }
+ set {
+ doubleField99_ = value;
+ }
+ }
+
+ /// Field number for the "double_field_84" field.
+ public const int DoubleField84FieldNumber = 84;
+ private double doubleField84_;
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ public double DoubleField84 {
+ get { return doubleField84_; }
+ set {
+ doubleField84_ = value;
+ }
+ }
+
+ /// Field number for the "double_field_14" field.
+ public const int DoubleField14FieldNumber = 14;
+ private double doubleField14_;
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ public double DoubleField14 {
+ get { return doubleField14_; }
+ set {
+ doubleField14_ = value;
+ }
+ }
+
+ /// Field number for the "double_field_77" field.
+ public const int DoubleField77FieldNumber = 77;
+ private double doubleField77_;
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ public double DoubleField77 {
+ get { return doubleField77_; }
+ set {
+ doubleField77_ = value;
+ }
+ }
+
+ /// Field number for the "double_field_15" field.
+ public const int DoubleField15FieldNumber = 15;
+ private double doubleField15_;
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ public double DoubleField15 {
+ get { return doubleField15_; }
+ set {
+ doubleField15_ = value;
+ }
+ }
+
+ /// Field number for the "int64_field_19" field.
+ public const int Int64Field19FieldNumber = 19;
+ private long int64Field19_;
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ public long Int64Field19 {
+ get { return int64Field19_; }
+ set {
+ int64Field19_ = value;
+ }
+ }
+
+ /// Field number for the "int64_field_115" field.
+ public const int Int64Field115FieldNumber = 115;
+ private long int64Field115_;
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ public long Int64Field115 {
+ get { return int64Field115_; }
+ set {
+ int64Field115_ = value;
+ }
+ }
+
+ /// Field number for the "double_field_116" field.
+ public const int DoubleField116FieldNumber = 116;
+ private double doubleField116_;
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ public double DoubleField116 {
+ get { return doubleField116_; }
+ set {
+ doubleField116_ = value;
+ }
+ }
+
+ /// Field number for the "int64_field_117" field.
+ public const int Int64Field117FieldNumber = 117;
+ private long int64Field117_;
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ public long Int64Field117 {
+ get { return int64Field117_; }
+ set {
+ int64Field117_ = value;
+ }
+ }
+
+ /// Field number for the "double_field_20" field.
+ public const int DoubleField20FieldNumber = 20;
+ private double doubleField20_;
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ public double DoubleField20 {
+ get { return doubleField20_; }
+ set {
+ doubleField20_ = value;
+ }
+ }
+
+ /// Field number for the "double_field_21" field.
+ public const int DoubleField21FieldNumber = 21;
+ private double doubleField21_;
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ public double DoubleField21 {
+ get { return doubleField21_; }
+ set {
+ doubleField21_ = value;
+ }
+ }
+
+ /// Field number for the "string_field_73" field.
+ public const int StringField73FieldNumber = 73;
+ private string stringField73_ = "";
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ public string StringField73 {
+ get { return stringField73_; }
+ set {
+ stringField73_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
+ }
+ }
+
+ /// Field number for the "string_field_74" field.
+ public const int StringField74FieldNumber = 74;
+ private string stringField74_ = "";
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ public string StringField74 {
+ get { return stringField74_; }
+ set {
+ stringField74_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
+ }
+ }
+
+ /// Field number for the "double_field_22" field.
+ public const int DoubleField22FieldNumber = 22;
+ private double doubleField22_;
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ public double DoubleField22 {
+ get { return doubleField22_; }
+ set {
+ doubleField22_ = value;
+ }
+ }
+
+ /// Field number for the "double_field_69" field.
+ public const int DoubleField69FieldNumber = 69;
+ private double doubleField69_;
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ public double DoubleField69 {
+ get { return doubleField69_; }
+ set {
+ doubleField69_ = value;
+ }
+ }
+
+ /// Field number for the "double_field_70" field.
+ public const int DoubleField70FieldNumber = 70;
+ private double doubleField70_;
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ public double DoubleField70 {
+ get { return doubleField70_; }
+ set {
+ doubleField70_ = value;
+ }
+ }
+
+ /// Field number for the "double_field_71" field.
+ public const int DoubleField71FieldNumber = 71;
+ private double doubleField71_;
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ public double DoubleField71 {
+ get { return doubleField71_; }
+ set {
+ doubleField71_ = value;
+ }
+ }
+
+ /// Field number for the "double_field_72" field.
+ public const int DoubleField72FieldNumber = 72;
+ private double doubleField72_;
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ public double DoubleField72 {
+ get { return doubleField72_; }
+ set {
+ doubleField72_ = value;
+ }
+ }
+
+ /// Field number for the "double_field_25" field.
+ public const int DoubleField25FieldNumber = 25;
+ private double doubleField25_;
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ public double DoubleField25 {
+ get { return doubleField25_; }
+ set {
+ doubleField25_ = value;
+ }
+ }
+
+ /// Field number for the "int64_field_26" field.
+ public const int Int64Field26FieldNumber = 26;
+ private long int64Field26_;
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ public long Int64Field26 {
+ get { return int64Field26_; }
+ set {
+ int64Field26_ = value;
+ }
+ }
+
+ /// Field number for the "double_field_68" field.
+ public const int DoubleField68FieldNumber = 68;
+ private double doubleField68_;
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ public double DoubleField68 {
+ get { return doubleField68_; }
+ set {
+ doubleField68_ = value;
+ }
+ }
+
+ /// Field number for the "double_field_28" field.
+ public const int DoubleField28FieldNumber = 28;
+ private double doubleField28_;
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ public double DoubleField28 {
+ get { return doubleField28_; }
+ set {
+ doubleField28_ = value;
+ }
+ }
+
+ /// Field number for the "double_field_106" field.
+ public const int DoubleField106FieldNumber = 106;
+ private double doubleField106_;
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ public double DoubleField106 {
+ get { return doubleField106_; }
+ set {
+ doubleField106_ = value;
+ }
+ }
+
+ /// Field number for the "double_field_29" field.
+ public const int DoubleField29FieldNumber = 29;
+ private double doubleField29_;
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ public double DoubleField29 {
+ get { return doubleField29_; }
+ set {
+ doubleField29_ = value;
+ }
+ }
+
+ /// Field number for the "double_field_30" field.
+ public const int DoubleField30FieldNumber = 30;
+ private double doubleField30_;
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ public double DoubleField30 {
+ get { return doubleField30_; }
+ set {
+ doubleField30_ = value;
+ }
+ }
+
+ /// Field number for the "double_field_101" field.
+ public const int DoubleField101FieldNumber = 101;
+ private double doubleField101_;
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ public double DoubleField101 {
+ get { return doubleField101_; }
+ set {
+ doubleField101_ = value;
+ }
+ }
+
+ /// Field number for the "double_field_102" field.
+ public const int DoubleField102FieldNumber = 102;
+ private double doubleField102_;
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ public double DoubleField102 {
+ get { return doubleField102_; }
+ set {
+ doubleField102_ = value;
+ }
+ }
+
+ /// Field number for the "double_field_103" field.
+ public const int DoubleField103FieldNumber = 103;
+ private double doubleField103_;
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ public double DoubleField103 {
+ get { return doubleField103_; }
+ set {
+ doubleField103_ = value;
+ }
+ }
+
+ /// Field number for the "double_field_104" field.
+ public const int DoubleField104FieldNumber = 104;
+ private double doubleField104_;
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ public double DoubleField104 {
+ get { return doubleField104_; }
+ set {
+ doubleField104_ = value;
+ }
+ }
+
+ /// Field number for the "double_field_105" field.
+ public const int DoubleField105FieldNumber = 105;
+ private double doubleField105_;
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ public double DoubleField105 {
+ get { return doubleField105_; }
+ set {
+ doubleField105_ = value;
+ }
+ }
+
+ /// Field number for the "double_field_31" field.
+ public const int DoubleField31FieldNumber = 31;
+ private double doubleField31_;
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ public double DoubleField31 {
+ get { return doubleField31_; }
+ set {
+ doubleField31_ = value;
+ }
+ }
+
+ /// Field number for the "int64_field_32" field.
+ public const int Int64Field32FieldNumber = 32;
+ private long int64Field32_;
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ public long Int64Field32 {
+ get { return int64Field32_; }
+ set {
+ int64Field32_ = value;
+ }
+ }
+
+ /// Field number for the "double_field_75" field.
+ public const int DoubleField75FieldNumber = 75;
+ private double doubleField75_;
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ public double DoubleField75 {
+ get { return doubleField75_; }
+ set {
+ doubleField75_ = value;
+ }
+ }
+
+ /// Field number for the "double_field_129" field.
+ public const int DoubleField129FieldNumber = 129;
+ private double doubleField129_;
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ public double DoubleField129 {
+ get { return doubleField129_; }
+ set {
+ doubleField129_ = value;
+ }
+ }
+
+ /// Field number for the "enum_field_80" field.
+ public const int EnumField80FieldNumber = 80;
+ private int enumField80_;
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ public int EnumField80 {
+ get { return enumField80_; }
+ set {
+ enumField80_ = value;
+ }
+ }
+
+ /// Field number for the "enum_field_81" field.
+ public const int EnumField81FieldNumber = 81;
+ private int enumField81_;
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ public int EnumField81 {
+ get { return enumField81_; }
+ set {
+ enumField81_ = value;
+ }
+ }
+
+ /// Field number for the "int64_field_82" field.
+ public const int Int64Field82FieldNumber = 82;
+ private long int64Field82_;
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ public long Int64Field82 {
+ get { return int64Field82_; }
+ set {
+ int64Field82_ = value;
+ }
+ }
+
+ /// Field number for the "enum_field_83" field.
+ public const int EnumField83FieldNumber = 83;
+ private int enumField83_;
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ public int EnumField83 {
+ get { return enumField83_; }
+ set {
+ enumField83_ = value;
+ }
+ }
+
+ /// Field number for the "int64_field_85" field.
+ public const int Int64Field85FieldNumber = 85;
+ private long int64Field85_;
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ public long Int64Field85 {
+ get { return int64Field85_; }
+ set {
+ int64Field85_ = value;
+ }
+ }
+
+ /// Field number for the "int64_field_86" field.
+ public const int Int64Field86FieldNumber = 86;
+ private long int64Field86_;
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ public long Int64Field86 {
+ get { return int64Field86_; }
+ set {
+ int64Field86_ = value;
+ }
+ }
+
+ /// Field number for the "int64_field_87" field.
+ public const int Int64Field87FieldNumber = 87;
+ private long int64Field87_;
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ public long Int64Field87 {
+ get { return int64Field87_; }
+ set {
+ int64Field87_ = value;
+ }
+ }
+
+ /// Field number for the "int64_field_125" field.
+ public const int Int64Field125FieldNumber = 125;
+ private long int64Field125_;
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ public long Int64Field125 {
+ get { return int64Field125_; }
+ set {
+ int64Field125_ = value;
+ }
+ }
+
+ /// Field number for the "int64_field_37" field.
+ public const int Int64Field37FieldNumber = 37;
+ private long int64Field37_;
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ public long Int64Field37 {
+ get { return int64Field37_; }
+ set {
+ int64Field37_ = value;
+ }
+ }
+
+ /// Field number for the "double_field_38" field.
+ public const int DoubleField38FieldNumber = 38;
+ private double doubleField38_;
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ public double DoubleField38 {
+ get { return doubleField38_; }
+ set {
+ doubleField38_ = value;
+ }
+ }
+
+ /// Field number for the "interactions" field.
+ public const int InteractionsFieldNumber = 39;
+ private long interactions_;
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ public long Interactions {
+ get { return interactions_; }
+ set {
+ interactions_ = value;
+ }
+ }
+
+ /// Field number for the "repeated_int_field_100" field.
+ public const int RepeatedIntField100FieldNumber = 100;
+ private static readonly pb::FieldCodec _repeated_repeatedIntField100_codec
+ = pb::FieldCodec.ForInt32(802);
+ private readonly pbc::RepeatedField repeatedIntField100_ = new pbc::RepeatedField();
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ public pbc::RepeatedField RepeatedIntField100 {
+ get { return repeatedIntField100_; }
+ }
+
+ /// Field number for the "double_field_40" field.
+ public const int DoubleField40FieldNumber = 40;
+ private double doubleField40_;
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ public double DoubleField40 {
+ get { return doubleField40_; }
+ set {
+ doubleField40_ = value;
+ }
+ }
+
+ /// Field number for the "int64_field_41" field.
+ public const int Int64Field41FieldNumber = 41;
+ private long int64Field41_;
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ public long Int64Field41 {
+ get { return int64Field41_; }
+ set {
+ int64Field41_ = value;
+ }
+ }
+
+ /// Field number for the "int64_field_126" field.
+ public const int Int64Field126FieldNumber = 126;
+ private long int64Field126_;
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ public long Int64Field126 {
+ get { return int64Field126_; }
+ set {
+ int64Field126_ = value;
+ }
+ }
+
+ /// Field number for the "int64_field_127" field.
+ public const int Int64Field127FieldNumber = 127;
+ private long int64Field127_;
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ public long Int64Field127 {
+ get { return int64Field127_; }
+ set {
+ int64Field127_ = value;
+ }
+ }
+
+ /// Field number for the "double_field_128" field.
+ public const int DoubleField128FieldNumber = 128;
+ private double doubleField128_;
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ public double DoubleField128 {
+ get { return doubleField128_; }
+ set {
+ doubleField128_ = value;
+ }
+ }
+
+ /// Field number for the "double_field_109" field.
+ public const int DoubleField109FieldNumber = 109;
+ private double doubleField109_;
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ public double DoubleField109 {
+ get { return doubleField109_; }
+ set {
+ doubleField109_ = value;
+ }
+ }
+
+ /// Field number for the "int64_field_110" field.
+ public const int Int64Field110FieldNumber = 110;
+ private long int64Field110_;
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ public long Int64Field110 {
+ get { return int64Field110_; }
+ set {
+ int64Field110_ = value;
+ }
+ }
+
+ /// Field number for the "double_field_111" field.
+ public const int DoubleField111FieldNumber = 111;
+ private double doubleField111_;
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ public double DoubleField111 {
+ get { return doubleField111_; }
+ set {
+ doubleField111_ = value;
+ }
+ }
+
+ /// Field number for the "int64_field_112" field.
+ public const int Int64Field112FieldNumber = 112;
+ private long int64Field112_;
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ public long Int64Field112 {
+ get { return int64Field112_; }
+ set {
+ int64Field112_ = value;
+ }
+ }
+
+ /// Field number for the "double_field_113" field.
+ public const int DoubleField113FieldNumber = 113;
+ private double doubleField113_;
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ public double DoubleField113 {
+ get { return doubleField113_; }
+ set {
+ doubleField113_ = value;
+ }
+ }
+
+ /// Field number for the "int64_field_114" field.
+ public const int Int64Field114FieldNumber = 114;
+ private long int64Field114_;
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ public long Int64Field114 {
+ get { return int64Field114_; }
+ set {
+ int64Field114_ = value;
+ }
+ }
+
+ /// Field number for the "double_field_42" field.
+ public const int DoubleField42FieldNumber = 42;
+ private double doubleField42_;
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ public double DoubleField42 {
+ get { return doubleField42_; }
+ set {
+ doubleField42_ = value;
+ }
+ }
+
+ /// Field number for the "int64_field_43" field.
+ public const int Int64Field43FieldNumber = 43;
+ private long int64Field43_;
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ public long Int64Field43 {
+ get { return int64Field43_; }
+ set {
+ int64Field43_ = value;
+ }
}
+ /// Field number for the "int64_field_44" field.
+ public const int Int64Field44FieldNumber = 44;
+ private long int64Field44_;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public ManyPrimitiveFieldsMessage Clone() {
- return new ManyPrimitiveFieldsMessage(this);
+ public long Int64Field44 {
+ get { return int64Field44_; }
+ set {
+ int64Field44_ = value;
+ }
}
- /// Field number for the "double_field_95" field.
- public const int DoubleField95FieldNumber = 95;
- private double doubleField95_;
+ /// Field number for the "double_field_45" field.
+ public const int DoubleField45FieldNumber = 45;
+ private double doubleField45_;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public double DoubleField95 {
- get { return doubleField95_; }
+ public double DoubleField45 {
+ get { return doubleField45_; }
set {
- doubleField95_ = value;
+ doubleField45_ = value;
}
}
- /// Field number for the "double_field_1" field.
- public const int DoubleField1FieldNumber = 1;
- private double doubleField1_;
+ /// Field number for the "double_field_46" field.
+ public const int DoubleField46FieldNumber = 46;
+ private double doubleField46_;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public double DoubleField1 {
- get { return doubleField1_; }
+ public double DoubleField46 {
+ get { return doubleField46_; }
set {
- doubleField1_ = value;
+ doubleField46_ = value;
}
}
- /// Field number for the "double_field_79" field.
- public const int DoubleField79FieldNumber = 79;
- private double doubleField79_;
+ /// Field number for the "double_field_78" field.
+ public const int DoubleField78FieldNumber = 78;
+ private double doubleField78_;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public double DoubleField79 {
- get { return doubleField79_; }
+ public double DoubleField78 {
+ get { return doubleField78_; }
set {
- doubleField79_ = value;
+ doubleField78_ = value;
}
}
- /// Field number for the "int64_field_2" field.
- public const int Int64Field2FieldNumber = 2;
- private long int64Field2_;
+ /// Field number for the "double_field_88" field.
+ public const int DoubleField88FieldNumber = 88;
+ private double doubleField88_;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public long Int64Field2 {
- get { return int64Field2_; }
+ public double DoubleField88 {
+ get { return doubleField88_; }
set {
- int64Field2_ = value;
+ doubleField88_ = value;
}
}
- /// Field number for the "double_field_96" field.
- public const int DoubleField96FieldNumber = 96;
- private double doubleField96_;
+ /// Field number for the "double_field_47" field.
+ public const int DoubleField47FieldNumber = 47;
+ private double doubleField47_;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public double DoubleField96 {
- get { return doubleField96_; }
+ public double DoubleField47 {
+ get { return doubleField47_; }
set {
- doubleField96_ = value;
+ doubleField47_ = value;
}
}
- /// Field number for the "int64_field_3" field.
- public const int Int64Field3FieldNumber = 3;
- private long int64Field3_;
+ /// Field number for the "double_field_89" field.
+ public const int DoubleField89FieldNumber = 89;
+ private double doubleField89_;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public long Int64Field3 {
- get { return int64Field3_; }
+ public double DoubleField89 {
+ get { return doubleField89_; }
set {
- int64Field3_ = value;
+ doubleField89_ = value;
}
}
- /// Field number for the "int64_field_4" field.
- public const int Int64Field4FieldNumber = 4;
- private long int64Field4_;
+ /// Field number for the "double_field_48" field.
+ public const int DoubleField48FieldNumber = 48;
+ private double doubleField48_;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public long Int64Field4 {
- get { return int64Field4_; }
+ public double DoubleField48 {
+ get { return doubleField48_; }
set {
- int64Field4_ = value;
+ doubleField48_ = value;
}
}
- /// Field number for the "double_field_97" field.
- public const int DoubleField97FieldNumber = 97;
- private double doubleField97_;
+ /// Field number for the "double_field_49" field.
+ public const int DoubleField49FieldNumber = 49;
+ private double doubleField49_;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public double DoubleField97 {
- get { return doubleField97_; }
+ public double DoubleField49 {
+ get { return doubleField49_; }
set {
- doubleField97_ = value;
+ doubleField49_ = value;
}
}
- /// Field number for the "double_field_65" field.
- public const int DoubleField65FieldNumber = 65;
- private double doubleField65_;
+ /// Field number for the "double_field_50" field.
+ public const int DoubleField50FieldNumber = 50;
+ private double doubleField50_;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public double DoubleField65 {
- get { return doubleField65_; }
+ public double DoubleField50 {
+ get { return doubleField50_; }
set {
- doubleField65_ = value;
+ doubleField50_ = value;
}
}
- /// Field number for the "double_field_66" field.
- public const int DoubleField66FieldNumber = 66;
- private double doubleField66_;
+ /// Field number for the "double_field_90" field.
+ public const int DoubleField90FieldNumber = 90;
+ private double doubleField90_;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public double DoubleField66 {
- get { return doubleField66_; }
+ public double DoubleField90 {
+ get { return doubleField90_; }
set {
- doubleField66_ = value;
+ doubleField90_ = value;
}
}
- /// Field number for the "double_field_7" field.
- public const int DoubleField7FieldNumber = 7;
- private double doubleField7_;
+ /// Field number for the "double_field_51" field.
+ public const int DoubleField51FieldNumber = 51;
+ private double doubleField51_;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public double DoubleField7 {
- get { return doubleField7_; }
+ public double DoubleField51 {
+ get { return doubleField51_; }
+ set {
+ doubleField51_ = value;
+ }
+ }
+
+ /// Field number for the "double_field_91" field.
+ public const int DoubleField91FieldNumber = 91;
+ private double doubleField91_;
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ public double DoubleField91 {
+ get { return doubleField91_; }
+ set {
+ doubleField91_ = value;
+ }
+ }
+
+ /// Field number for the "double_field_92" field.
+ public const int DoubleField92FieldNumber = 92;
+ private double doubleField92_;
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ public double DoubleField92 {
+ get { return doubleField92_; }
+ set {
+ doubleField92_ = value;
+ }
+ }
+
+ /// Field number for the "int64_field_107" field.
+ public const int Int64Field107FieldNumber = 107;
+ private long int64Field107_;
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ public long Int64Field107 {
+ get { return int64Field107_; }
+ set {
+ int64Field107_ = value;
+ }
+ }
+
+ /// Field number for the "double_field_93" field.
+ public const int DoubleField93FieldNumber = 93;
+ private double doubleField93_;
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ public double DoubleField93 {
+ get { return doubleField93_; }
+ set {
+ doubleField93_ = value;
+ }
+ }
+
+ /// Field number for the "double_field_108" field.
+ public const int DoubleField108FieldNumber = 108;
+ private double doubleField108_;
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ public double DoubleField108 {
+ get { return doubleField108_; }
+ set {
+ doubleField108_ = value;
+ }
+ }
+
+ /// Field number for the "double_field_52" field.
+ public const int DoubleField52FieldNumber = 52;
+ private double doubleField52_;
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ public double DoubleField52 {
+ get { return doubleField52_; }
+ set {
+ doubleField52_ = value;
+ }
+ }
+
+ /// Field number for the "double_field_53" field.
+ public const int DoubleField53FieldNumber = 53;
+ private double doubleField53_;
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ public double DoubleField53 {
+ get { return doubleField53_; }
+ set {
+ doubleField53_ = value;
+ }
+ }
+
+ /// Field number for the "double_field_94" field.
+ public const int DoubleField94FieldNumber = 94;
+ private double doubleField94_;
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ public double DoubleField94 {
+ get { return doubleField94_; }
+ set {
+ doubleField94_ = value;
+ }
+ }
+
+ /// Field number for the "double_field_54" field.
+ public const int DoubleField54FieldNumber = 54;
+ private double doubleField54_;
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ public double DoubleField54 {
+ get { return doubleField54_; }
+ set {
+ doubleField54_ = value;
+ }
+ }
+
+ /// Field number for the "double_field_55" field.
+ public const int DoubleField55FieldNumber = 55;
+ private double doubleField55_;
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ public double DoubleField55 {
+ get { return doubleField55_; }
set {
- doubleField7_ = value;
+ doubleField55_ = value;
}
}
- /// Field number for the "double_field_62" field.
- public const int DoubleField62FieldNumber = 62;
- private double doubleField62_;
+ /// Field number for the "double_field_56" field.
+ public const int DoubleField56FieldNumber = 56;
+ private double doubleField56_;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public double DoubleField62 {
- get { return doubleField62_; }
+ public double DoubleField56 {
+ get { return doubleField56_; }
set {
- doubleField62_ = value;
+ doubleField56_ = value;
}
}
- /// Field number for the "double_field_118" field.
- public const int DoubleField118FieldNumber = 118;
- private double doubleField118_;
+ /// Field number for the "double_field_57" field.
+ public const int DoubleField57FieldNumber = 57;
+ private double doubleField57_;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public double DoubleField118 {
- get { return doubleField118_; }
+ public double DoubleField57 {
+ get { return doubleField57_; }
set {
- doubleField118_ = value;
+ doubleField57_ = value;
}
}
- /// Field number for the "double_field_119" field.
- public const int DoubleField119FieldNumber = 119;
- private double doubleField119_;
+ /// Field number for the "double_field_58" field.
+ public const int DoubleField58FieldNumber = 58;
+ private double doubleField58_;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public double DoubleField119 {
- get { return doubleField119_; }
+ public double DoubleField58 {
+ get { return doubleField58_; }
set {
- doubleField119_ = value;
+ doubleField58_ = value;
}
}
- /// Field number for the "double_field_67" field.
- public const int DoubleField67FieldNumber = 67;
- private double doubleField67_;
+ /// Field number for the "int64_field_59" field.
+ public const int Int64Field59FieldNumber = 59;
+ private long int64Field59_;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public double DoubleField67 {
- get { return doubleField67_; }
+ public long Int64Field59 {
+ get { return int64Field59_; }
set {
- doubleField67_ = value;
+ int64Field59_ = value;
}
}
- /// Field number for the "double_field_120" field.
- public const int DoubleField120FieldNumber = 120;
- private double doubleField120_;
+ /// Field number for the "int64_field_60" field.
+ public const int Int64Field60FieldNumber = 60;
+ private long int64Field60_;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public double DoubleField120 {
- get { return doubleField120_; }
+ public long Int64Field60 {
+ get { return int64Field60_; }
set {
- doubleField120_ = value;
+ int64Field60_ = value;
}
}
- /// Field number for the "double_field_121" field.
- public const int DoubleField121FieldNumber = 121;
- private double doubleField121_;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public double DoubleField121 {
- get { return doubleField121_; }
- set {
- doubleField121_ = value;
- }
+ public override bool Equals(object other) {
+ return Equals(other as ManyPrimitiveFieldsMessage);
}
- /// Field number for the "double_field_122" field.
- public const int DoubleField122FieldNumber = 122;
- private double doubleField122_;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public double DoubleField122 {
- get { return doubleField122_; }
- set {
- doubleField122_ = value;
+ public bool Equals(ManyPrimitiveFieldsMessage other) {
+ if (ReferenceEquals(other, null)) {
+ return false;
+ }
+ if (ReferenceEquals(other, this)) {
+ return true;
}
+ if (!pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.Equals(DoubleField95, other.DoubleField95)) return false;
+ if (!pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.Equals(DoubleField1, other.DoubleField1)) return false;
+ if (!pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.Equals(DoubleField79, other.DoubleField79)) return false;
+ if (Int64Field2 != other.Int64Field2) return false;
+ if (!pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.Equals(DoubleField96, other.DoubleField96)) return false;
+ if (Int64Field3 != other.Int64Field3) return false;
+ if (Int64Field4 != other.Int64Field4) return false;
+ if (!pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.Equals(DoubleField97, other.DoubleField97)) return false;
+ if (!pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.Equals(DoubleField65, other.DoubleField65)) return false;
+ if (!pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.Equals(DoubleField66, other.DoubleField66)) return false;
+ if (!pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.Equals(DoubleField7, other.DoubleField7)) return false;
+ if (!pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.Equals(DoubleField62, other.DoubleField62)) return false;
+ if (!pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.Equals(DoubleField118, other.DoubleField118)) return false;
+ if (!pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.Equals(DoubleField119, other.DoubleField119)) return false;
+ if (!pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.Equals(DoubleField67, other.DoubleField67)) return false;
+ if (!pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.Equals(DoubleField120, other.DoubleField120)) return false;
+ if (!pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.Equals(DoubleField121, other.DoubleField121)) return false;
+ if (!pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.Equals(DoubleField122, other.DoubleField122)) return false;
+ if (!pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.Equals(DoubleField123, other.DoubleField123)) return false;
+ if (!pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.Equals(DoubleField124, other.DoubleField124)) return false;
+ if (!pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.Equals(DoubleField8, other.DoubleField8)) return false;
+ if (!pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.Equals(DoubleField9, other.DoubleField9)) return false;
+ if (!pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.Equals(DoubleField98, other.DoubleField98)) return false;
+ if (!pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.Equals(DoubleField10, other.DoubleField10)) return false;
+ if (!pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.Equals(DoubleField11, other.DoubleField11)) return false;
+ if (!pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.Equals(DoubleField99, other.DoubleField99)) return false;
+ if (!pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.Equals(DoubleField84, other.DoubleField84)) return false;
+ if (!pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.Equals(DoubleField14, other.DoubleField14)) return false;
+ if (!pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.Equals(DoubleField77, other.DoubleField77)) return false;
+ if (!pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.Equals(DoubleField15, other.DoubleField15)) return false;
+ if (Int64Field19 != other.Int64Field19) return false;
+ if (Int64Field115 != other.Int64Field115) return false;
+ if (!pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.Equals(DoubleField116, other.DoubleField116)) return false;
+ if (Int64Field117 != other.Int64Field117) return false;
+ if (!pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.Equals(DoubleField20, other.DoubleField20)) return false;
+ if (!pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.Equals(DoubleField21, other.DoubleField21)) return false;
+ if (StringField73 != other.StringField73) return false;
+ if (StringField74 != other.StringField74) return false;
+ if (!pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.Equals(DoubleField22, other.DoubleField22)) return false;
+ if (!pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.Equals(DoubleField69, other.DoubleField69)) return false;
+ if (!pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.Equals(DoubleField70, other.DoubleField70)) return false;
+ if (!pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.Equals(DoubleField71, other.DoubleField71)) return false;
+ if (!pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.Equals(DoubleField72, other.DoubleField72)) return false;
+ if (!pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.Equals(DoubleField25, other.DoubleField25)) return false;
+ if (Int64Field26 != other.Int64Field26) return false;
+ if (!pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.Equals(DoubleField68, other.DoubleField68)) return false;
+ if (!pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.Equals(DoubleField28, other.DoubleField28)) return false;
+ if (!pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.Equals(DoubleField106, other.DoubleField106)) return false;
+ if (!pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.Equals(DoubleField29, other.DoubleField29)) return false;
+ if (!pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.Equals(DoubleField30, other.DoubleField30)) return false;
+ if (!pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.Equals(DoubleField101, other.DoubleField101)) return false;
+ if (!pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.Equals(DoubleField102, other.DoubleField102)) return false;
+ if (!pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.Equals(DoubleField103, other.DoubleField103)) return false;
+ if (!pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.Equals(DoubleField104, other.DoubleField104)) return false;
+ if (!pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.Equals(DoubleField105, other.DoubleField105)) return false;
+ if (!pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.Equals(DoubleField31, other.DoubleField31)) return false;
+ if (Int64Field32 != other.Int64Field32) return false;
+ if (!pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.Equals(DoubleField75, other.DoubleField75)) return false;
+ if (!pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.Equals(DoubleField129, other.DoubleField129)) return false;
+ if (EnumField80 != other.EnumField80) return false;
+ if (EnumField81 != other.EnumField81) return false;
+ if (Int64Field82 != other.Int64Field82) return false;
+ if (EnumField83 != other.EnumField83) return false;
+ if (Int64Field85 != other.Int64Field85) return false;
+ if (Int64Field86 != other.Int64Field86) return false;
+ if (Int64Field87 != other.Int64Field87) return false;
+ if (Int64Field125 != other.Int64Field125) return false;
+ if (Int64Field37 != other.Int64Field37) return false;
+ if (!pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.Equals(DoubleField38, other.DoubleField38)) return false;
+ if (Interactions != other.Interactions) return false;
+ if(!repeatedIntField100_.Equals(other.repeatedIntField100_)) return false;
+ if (!pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.Equals(DoubleField40, other.DoubleField40)) return false;
+ if (Int64Field41 != other.Int64Field41) return false;
+ if (Int64Field126 != other.Int64Field126) return false;
+ if (Int64Field127 != other.Int64Field127) return false;
+ if (!pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.Equals(DoubleField128, other.DoubleField128)) return false;
+ if (!pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.Equals(DoubleField109, other.DoubleField109)) return false;
+ if (Int64Field110 != other.Int64Field110) return false;
+ if (!pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.Equals(DoubleField111, other.DoubleField111)) return false;
+ if (Int64Field112 != other.Int64Field112) return false;
+ if (!pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.Equals(DoubleField113, other.DoubleField113)) return false;
+ if (Int64Field114 != other.Int64Field114) return false;
+ if (!pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.Equals(DoubleField42, other.DoubleField42)) return false;
+ if (Int64Field43 != other.Int64Field43) return false;
+ if (Int64Field44 != other.Int64Field44) return false;
+ if (!pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.Equals(DoubleField45, other.DoubleField45)) return false;
+ if (!pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.Equals(DoubleField46, other.DoubleField46)) return false;
+ if (!pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.Equals(DoubleField78, other.DoubleField78)) return false;
+ if (!pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.Equals(DoubleField88, other.DoubleField88)) return false;
+ if (!pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.Equals(DoubleField47, other.DoubleField47)) return false;
+ if (!pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.Equals(DoubleField89, other.DoubleField89)) return false;
+ if (!pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.Equals(DoubleField48, other.DoubleField48)) return false;
+ if (!pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.Equals(DoubleField49, other.DoubleField49)) return false;
+ if (!pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.Equals(DoubleField50, other.DoubleField50)) return false;
+ if (!pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.Equals(DoubleField90, other.DoubleField90)) return false;
+ if (!pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.Equals(DoubleField51, other.DoubleField51)) return false;
+ if (!pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.Equals(DoubleField91, other.DoubleField91)) return false;
+ if (!pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.Equals(DoubleField92, other.DoubleField92)) return false;
+ if (Int64Field107 != other.Int64Field107) return false;
+ if (!pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.Equals(DoubleField93, other.DoubleField93)) return false;
+ if (!pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.Equals(DoubleField108, other.DoubleField108)) return false;
+ if (!pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.Equals(DoubleField52, other.DoubleField52)) return false;
+ if (!pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.Equals(DoubleField53, other.DoubleField53)) return false;
+ if (!pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.Equals(DoubleField94, other.DoubleField94)) return false;
+ if (!pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.Equals(DoubleField54, other.DoubleField54)) return false;
+ if (!pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.Equals(DoubleField55, other.DoubleField55)) return false;
+ if (!pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.Equals(DoubleField56, other.DoubleField56)) return false;
+ if (!pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.Equals(DoubleField57, other.DoubleField57)) return false;
+ if (!pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.Equals(DoubleField58, other.DoubleField58)) return false;
+ if (Int64Field59 != other.Int64Field59) return false;
+ if (Int64Field60 != other.Int64Field60) return false;
+ return Equals(_unknownFields, other._unknownFields);
}
- /// Field number for the "double_field_123" field.
- public const int DoubleField123FieldNumber = 123;
- private double doubleField123_;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public double DoubleField123 {
- get { return doubleField123_; }
- set {
- doubleField123_ = value;
+ public override int GetHashCode() {
+ int hash = 1;
+ if (DoubleField95 != 0D) hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(DoubleField95);
+ if (DoubleField1 != 0D) hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(DoubleField1);
+ if (DoubleField79 != 0D) hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(DoubleField79);
+ if (Int64Field2 != 0L) hash ^= Int64Field2.GetHashCode();
+ if (DoubleField96 != 0D) hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(DoubleField96);
+ if (Int64Field3 != 0L) hash ^= Int64Field3.GetHashCode();
+ if (Int64Field4 != 0L) hash ^= Int64Field4.GetHashCode();
+ if (DoubleField97 != 0D) hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(DoubleField97);
+ if (DoubleField65 != 0D) hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(DoubleField65);
+ if (DoubleField66 != 0D) hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(DoubleField66);
+ if (DoubleField7 != 0D) hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(DoubleField7);
+ if (DoubleField62 != 0D) hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(DoubleField62);
+ if (DoubleField118 != 0D) hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(DoubleField118);
+ if (DoubleField119 != 0D) hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(DoubleField119);
+ if (DoubleField67 != 0D) hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(DoubleField67);
+ if (DoubleField120 != 0D) hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(DoubleField120);
+ if (DoubleField121 != 0D) hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(DoubleField121);
+ if (DoubleField122 != 0D) hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(DoubleField122);
+ if (DoubleField123 != 0D) hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(DoubleField123);
+ if (DoubleField124 != 0D) hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(DoubleField124);
+ if (DoubleField8 != 0D) hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(DoubleField8);
+ if (DoubleField9 != 0D) hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(DoubleField9);
+ if (DoubleField98 != 0D) hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(DoubleField98);
+ if (DoubleField10 != 0D) hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(DoubleField10);
+ if (DoubleField11 != 0D) hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(DoubleField11);
+ if (DoubleField99 != 0D) hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(DoubleField99);
+ if (DoubleField84 != 0D) hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(DoubleField84);
+ if (DoubleField14 != 0D) hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(DoubleField14);
+ if (DoubleField77 != 0D) hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(DoubleField77);
+ if (DoubleField15 != 0D) hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(DoubleField15);
+ if (Int64Field19 != 0L) hash ^= Int64Field19.GetHashCode();
+ if (Int64Field115 != 0L) hash ^= Int64Field115.GetHashCode();
+ if (DoubleField116 != 0D) hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(DoubleField116);
+ if (Int64Field117 != 0L) hash ^= Int64Field117.GetHashCode();
+ if (DoubleField20 != 0D) hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(DoubleField20);
+ if (DoubleField21 != 0D) hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(DoubleField21);
+ if (StringField73.Length != 0) hash ^= StringField73.GetHashCode();
+ if (StringField74.Length != 0) hash ^= StringField74.GetHashCode();
+ if (DoubleField22 != 0D) hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(DoubleField22);
+ if (DoubleField69 != 0D) hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(DoubleField69);
+ if (DoubleField70 != 0D) hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(DoubleField70);
+ if (DoubleField71 != 0D) hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(DoubleField71);
+ if (DoubleField72 != 0D) hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(DoubleField72);
+ if (DoubleField25 != 0D) hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(DoubleField25);
+ if (Int64Field26 != 0L) hash ^= Int64Field26.GetHashCode();
+ if (DoubleField68 != 0D) hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(DoubleField68);
+ if (DoubleField28 != 0D) hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(DoubleField28);
+ if (DoubleField106 != 0D) hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(DoubleField106);
+ if (DoubleField29 != 0D) hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(DoubleField29);
+ if (DoubleField30 != 0D) hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(DoubleField30);
+ if (DoubleField101 != 0D) hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(DoubleField101);
+ if (DoubleField102 != 0D) hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(DoubleField102);
+ if (DoubleField103 != 0D) hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(DoubleField103);
+ if (DoubleField104 != 0D) hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(DoubleField104);
+ if (DoubleField105 != 0D) hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(DoubleField105);
+ if (DoubleField31 != 0D) hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(DoubleField31);
+ if (Int64Field32 != 0L) hash ^= Int64Field32.GetHashCode();
+ if (DoubleField75 != 0D) hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(DoubleField75);
+ if (DoubleField129 != 0D) hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(DoubleField129);
+ if (EnumField80 != 0) hash ^= EnumField80.GetHashCode();
+ if (EnumField81 != 0) hash ^= EnumField81.GetHashCode();
+ if (Int64Field82 != 0L) hash ^= Int64Field82.GetHashCode();
+ if (EnumField83 != 0) hash ^= EnumField83.GetHashCode();
+ if (Int64Field85 != 0L) hash ^= Int64Field85.GetHashCode();
+ if (Int64Field86 != 0L) hash ^= Int64Field86.GetHashCode();
+ if (Int64Field87 != 0L) hash ^= Int64Field87.GetHashCode();
+ if (Int64Field125 != 0L) hash ^= Int64Field125.GetHashCode();
+ if (Int64Field37 != 0L) hash ^= Int64Field37.GetHashCode();
+ if (DoubleField38 != 0D) hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(DoubleField38);
+ if (Interactions != 0L) hash ^= Interactions.GetHashCode();
+ hash ^= repeatedIntField100_.GetHashCode();
+ if (DoubleField40 != 0D) hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(DoubleField40);
+ if (Int64Field41 != 0L) hash ^= Int64Field41.GetHashCode();
+ if (Int64Field126 != 0L) hash ^= Int64Field126.GetHashCode();
+ if (Int64Field127 != 0L) hash ^= Int64Field127.GetHashCode();
+ if (DoubleField128 != 0D) hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(DoubleField128);
+ if (DoubleField109 != 0D) hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(DoubleField109);
+ if (Int64Field110 != 0L) hash ^= Int64Field110.GetHashCode();
+ if (DoubleField111 != 0D) hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(DoubleField111);
+ if (Int64Field112 != 0L) hash ^= Int64Field112.GetHashCode();
+ if (DoubleField113 != 0D) hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(DoubleField113);
+ if (Int64Field114 != 0L) hash ^= Int64Field114.GetHashCode();
+ if (DoubleField42 != 0D) hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(DoubleField42);
+ if (Int64Field43 != 0L) hash ^= Int64Field43.GetHashCode();
+ if (Int64Field44 != 0L) hash ^= Int64Field44.GetHashCode();
+ if (DoubleField45 != 0D) hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(DoubleField45);
+ if (DoubleField46 != 0D) hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(DoubleField46);
+ if (DoubleField78 != 0D) hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(DoubleField78);
+ if (DoubleField88 != 0D) hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(DoubleField88);
+ if (DoubleField47 != 0D) hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(DoubleField47);
+ if (DoubleField89 != 0D) hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(DoubleField89);
+ if (DoubleField48 != 0D) hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(DoubleField48);
+ if (DoubleField49 != 0D) hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(DoubleField49);
+ if (DoubleField50 != 0D) hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(DoubleField50);
+ if (DoubleField90 != 0D) hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(DoubleField90);
+ if (DoubleField51 != 0D) hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(DoubleField51);
+ if (DoubleField91 != 0D) hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(DoubleField91);
+ if (DoubleField92 != 0D) hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(DoubleField92);
+ if (Int64Field107 != 0L) hash ^= Int64Field107.GetHashCode();
+ if (DoubleField93 != 0D) hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(DoubleField93);
+ if (DoubleField108 != 0D) hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(DoubleField108);
+ if (DoubleField52 != 0D) hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(DoubleField52);
+ if (DoubleField53 != 0D) hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(DoubleField53);
+ if (DoubleField94 != 0D) hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(DoubleField94);
+ if (DoubleField54 != 0D) hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(DoubleField54);
+ if (DoubleField55 != 0D) hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(DoubleField55);
+ if (DoubleField56 != 0D) hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(DoubleField56);
+ if (DoubleField57 != 0D) hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(DoubleField57);
+ if (DoubleField58 != 0D) hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(DoubleField58);
+ if (Int64Field59 != 0L) hash ^= Int64Field59.GetHashCode();
+ if (Int64Field60 != 0L) hash ^= Int64Field60.GetHashCode();
+ if (_unknownFields != null) {
+ hash ^= _unknownFields.GetHashCode();
}
+ return hash;
}
- /// Field number for the "double_field_124" field.
- public const int DoubleField124FieldNumber = 124;
- private double doubleField124_;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public double DoubleField124 {
- get { return doubleField124_; }
- set {
- doubleField124_ = value;
- }
+ public override string ToString() {
+ return pb::JsonFormatter.ToDiagnosticString(this);
}
- /// Field number for the "double_field_8" field.
- public const int DoubleField8FieldNumber = 8;
- private double doubleField8_;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public double DoubleField8 {
- get { return doubleField8_; }
- set {
- doubleField8_ = value;
+ public void WriteTo(pb::CodedOutputStream output) {
+ if (DoubleField1 != 0D) {
+ output.WriteRawTag(9);
+ output.WriteDouble(DoubleField1);
}
- }
-
- /// Field number for the "double_field_9" field.
- public const int DoubleField9FieldNumber = 9;
- private double doubleField9_;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public double DoubleField9 {
- get { return doubleField9_; }
- set {
- doubleField9_ = value;
+ if (Int64Field2 != 0L) {
+ output.WriteRawTag(16);
+ output.WriteInt64(Int64Field2);
}
- }
-
- /// Field number for the "double_field_98" field.
- public const int DoubleField98FieldNumber = 98;
- private double doubleField98_;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public double DoubleField98 {
- get { return doubleField98_; }
- set {
- doubleField98_ = value;
+ if (Int64Field3 != 0L) {
+ output.WriteRawTag(24);
+ output.WriteInt64(Int64Field3);
}
- }
-
- /// Field number for the "double_field_10" field.
- public const int DoubleField10FieldNumber = 10;
- private double doubleField10_;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public double DoubleField10 {
- get { return doubleField10_; }
- set {
- doubleField10_ = value;
+ if (Int64Field4 != 0L) {
+ output.WriteRawTag(32);
+ output.WriteInt64(Int64Field4);
}
- }
-
- /// Field number for the "double_field_11" field.
- public const int DoubleField11FieldNumber = 11;
- private double doubleField11_;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public double DoubleField11 {
- get { return doubleField11_; }
- set {
- doubleField11_ = value;
+ if (DoubleField7 != 0D) {
+ output.WriteRawTag(57);
+ output.WriteDouble(DoubleField7);
}
- }
-
- /// Field number for the "double_field_99" field.
- public const int DoubleField99FieldNumber = 99;
- private double doubleField99_;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public double DoubleField99 {
- get { return doubleField99_; }
- set {
- doubleField99_ = value;
+ if (DoubleField8 != 0D) {
+ output.WriteRawTag(65);
+ output.WriteDouble(DoubleField8);
}
- }
-
- /// Field number for the "double_field_84" field.
- public const int DoubleField84FieldNumber = 84;
- private double doubleField84_;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public double DoubleField84 {
- get { return doubleField84_; }
- set {
- doubleField84_ = value;
+ if (DoubleField9 != 0D) {
+ output.WriteRawTag(73);
+ output.WriteDouble(DoubleField9);
}
- }
-
- /// Field number for the "double_field_14" field.
- public const int DoubleField14FieldNumber = 14;
- private double doubleField14_;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public double DoubleField14 {
- get { return doubleField14_; }
- set {
- doubleField14_ = value;
+ if (DoubleField10 != 0D) {
+ output.WriteRawTag(81);
+ output.WriteDouble(DoubleField10);
}
- }
-
- /// Field number for the "double_field_77" field.
- public const int DoubleField77FieldNumber = 77;
- private double doubleField77_;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public double DoubleField77 {
- get { return doubleField77_; }
- set {
- doubleField77_ = value;
+ if (DoubleField11 != 0D) {
+ output.WriteRawTag(89);
+ output.WriteDouble(DoubleField11);
}
- }
-
- /// Field number for the "double_field_15" field.
- public const int DoubleField15FieldNumber = 15;
- private double doubleField15_;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public double DoubleField15 {
- get { return doubleField15_; }
- set {
- doubleField15_ = value;
+ if (DoubleField14 != 0D) {
+ output.WriteRawTag(113);
+ output.WriteDouble(DoubleField14);
}
- }
-
- /// Field number for the "int64_field_19" field.
- public const int Int64Field19FieldNumber = 19;
- private long int64Field19_;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public long Int64Field19 {
- get { return int64Field19_; }
- set {
- int64Field19_ = value;
+ if (DoubleField15 != 0D) {
+ output.WriteRawTag(121);
+ output.WriteDouble(DoubleField15);
}
- }
-
- /// Field number for the "int64_field_115" field.
- public const int Int64Field115FieldNumber = 115;
- private long int64Field115_;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public long Int64Field115 {
- get { return int64Field115_; }
- set {
- int64Field115_ = value;
+ if (Int64Field19 != 0L) {
+ output.WriteRawTag(152, 1);
+ output.WriteInt64(Int64Field19);
}
- }
-
- /// Field number for the "double_field_116" field.
- public const int DoubleField116FieldNumber = 116;
- private double doubleField116_;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public double DoubleField116 {
- get { return doubleField116_; }
- set {
- doubleField116_ = value;
+ if (DoubleField20 != 0D) {
+ output.WriteRawTag(161, 1);
+ output.WriteDouble(DoubleField20);
}
- }
-
- /// Field number for the "int64_field_117" field.
- public const int Int64Field117FieldNumber = 117;
- private long int64Field117_;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public long Int64Field117 {
- get { return int64Field117_; }
- set {
- int64Field117_ = value;
+ if (DoubleField21 != 0D) {
+ output.WriteRawTag(169, 1);
+ output.WriteDouble(DoubleField21);
}
- }
-
- /// Field number for the "double_field_20" field.
- public const int DoubleField20FieldNumber = 20;
- private double doubleField20_;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public double DoubleField20 {
- get { return doubleField20_; }
- set {
- doubleField20_ = value;
+ if (DoubleField22 != 0D) {
+ output.WriteRawTag(177, 1);
+ output.WriteDouble(DoubleField22);
}
- }
-
- /// Field number for the "double_field_21" field.
- public const int DoubleField21FieldNumber = 21;
- private double doubleField21_;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public double DoubleField21 {
- get { return doubleField21_; }
- set {
- doubleField21_ = value;
+ if (DoubleField25 != 0D) {
+ output.WriteRawTag(201, 1);
+ output.WriteDouble(DoubleField25);
}
- }
-
- /// Field number for the "string_field_73" field.
- public const int StringField73FieldNumber = 73;
- private string stringField73_ = "";
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public string StringField73 {
- get { return stringField73_; }
- set {
- stringField73_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
+ if (Int64Field26 != 0L) {
+ output.WriteRawTag(208, 1);
+ output.WriteInt64(Int64Field26);
}
- }
-
- /// Field number for the "string_field_74" field.
- public const int StringField74FieldNumber = 74;
- private string stringField74_ = "";
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public string StringField74 {
- get { return stringField74_; }
- set {
- stringField74_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
+ if (DoubleField28 != 0D) {
+ output.WriteRawTag(225, 1);
+ output.WriteDouble(DoubleField28);
}
- }
-
- /// Field number for the "double_field_22" field.
- public const int DoubleField22FieldNumber = 22;
- private double doubleField22_;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public double DoubleField22 {
- get { return doubleField22_; }
- set {
- doubleField22_ = value;
+ if (DoubleField29 != 0D) {
+ output.WriteRawTag(233, 1);
+ output.WriteDouble(DoubleField29);
}
- }
-
- /// Field number for the "double_field_69" field.
- public const int DoubleField69FieldNumber = 69;
- private double doubleField69_;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public double DoubleField69 {
- get { return doubleField69_; }
- set {
- doubleField69_ = value;
+ if (DoubleField30 != 0D) {
+ output.WriteRawTag(241, 1);
+ output.WriteDouble(DoubleField30);
}
- }
-
- /// Field number for the "double_field_70" field.
- public const int DoubleField70FieldNumber = 70;
- private double doubleField70_;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public double DoubleField70 {
- get { return doubleField70_; }
- set {
- doubleField70_ = value;
+ if (DoubleField31 != 0D) {
+ output.WriteRawTag(249, 1);
+ output.WriteDouble(DoubleField31);
}
- }
-
- /// Field number for the "double_field_71" field.
- public const int DoubleField71FieldNumber = 71;
- private double doubleField71_;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public double DoubleField71 {
- get { return doubleField71_; }
- set {
- doubleField71_ = value;
+ if (Int64Field32 != 0L) {
+ output.WriteRawTag(128, 2);
+ output.WriteInt64(Int64Field32);
}
- }
-
- /// Field number for the "double_field_72" field.
- public const int DoubleField72FieldNumber = 72;
- private double doubleField72_;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public double DoubleField72 {
- get { return doubleField72_; }
- set {
- doubleField72_ = value;
+ if (Int64Field37 != 0L) {
+ output.WriteRawTag(168, 2);
+ output.WriteInt64(Int64Field37);
}
- }
-
- /// Field number for the "double_field_25" field.
- public const int DoubleField25FieldNumber = 25;
- private double doubleField25_;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public double DoubleField25 {
- get { return doubleField25_; }
- set {
- doubleField25_ = value;
+ if (DoubleField38 != 0D) {
+ output.WriteRawTag(177, 2);
+ output.WriteDouble(DoubleField38);
}
- }
-
- /// Field number for the "int64_field_26" field.
- public const int Int64Field26FieldNumber = 26;
- private long int64Field26_;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public long Int64Field26 {
- get { return int64Field26_; }
- set {
- int64Field26_ = value;
+ if (Interactions != 0L) {
+ output.WriteRawTag(184, 2);
+ output.WriteInt64(Interactions);
}
- }
-
- /// Field number for the "double_field_68" field.
- public const int DoubleField68FieldNumber = 68;
- private double doubleField68_;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public double DoubleField68 {
- get { return doubleField68_; }
- set {
- doubleField68_ = value;
+ if (DoubleField40 != 0D) {
+ output.WriteRawTag(193, 2);
+ output.WriteDouble(DoubleField40);
}
- }
-
- /// Field number for the "double_field_28" field.
- public const int DoubleField28FieldNumber = 28;
- private double doubleField28_;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public double DoubleField28 {
- get { return doubleField28_; }
- set {
- doubleField28_ = value;
+ if (Int64Field41 != 0L) {
+ output.WriteRawTag(200, 2);
+ output.WriteInt64(Int64Field41);
}
- }
-
- /// Field number for the "double_field_106" field.
- public const int DoubleField106FieldNumber = 106;
- private double doubleField106_;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public double DoubleField106 {
- get { return doubleField106_; }
- set {
- doubleField106_ = value;
+ if (DoubleField42 != 0D) {
+ output.WriteRawTag(209, 2);
+ output.WriteDouble(DoubleField42);
}
- }
-
- /// Field number for the "double_field_29" field.
- public const int DoubleField29FieldNumber = 29;
- private double doubleField29_;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public double DoubleField29 {
- get { return doubleField29_; }
- set {
- doubleField29_ = value;
+ if (Int64Field43 != 0L) {
+ output.WriteRawTag(216, 2);
+ output.WriteInt64(Int64Field43);
}
- }
-
- /// Field number for the "double_field_30" field.
- public const int DoubleField30FieldNumber = 30;
- private double doubleField30_;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public double DoubleField30 {
- get { return doubleField30_; }
- set {
- doubleField30_ = value;
+ if (Int64Field44 != 0L) {
+ output.WriteRawTag(224, 2);
+ output.WriteInt64(Int64Field44);
}
- }
-
- /// Field number for the "double_field_101" field.
- public const int DoubleField101FieldNumber = 101;
- private double doubleField101_;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public double DoubleField101 {
- get { return doubleField101_; }
- set {
- doubleField101_ = value;
+ if (DoubleField45 != 0D) {
+ output.WriteRawTag(233, 2);
+ output.WriteDouble(DoubleField45);
}
- }
-
- /// Field number for the "double_field_102" field.
- public const int DoubleField102FieldNumber = 102;
- private double doubleField102_;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public double DoubleField102 {
- get { return doubleField102_; }
- set {
- doubleField102_ = value;
+ if (DoubleField46 != 0D) {
+ output.WriteRawTag(241, 2);
+ output.WriteDouble(DoubleField46);
}
- }
-
- /// Field number for the "double_field_103" field.
- public const int DoubleField103FieldNumber = 103;
- private double doubleField103_;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public double DoubleField103 {
- get { return doubleField103_; }
- set {
- doubleField103_ = value;
+ if (DoubleField47 != 0D) {
+ output.WriteRawTag(249, 2);
+ output.WriteDouble(DoubleField47);
+ }
+ if (DoubleField48 != 0D) {
+ output.WriteRawTag(129, 3);
+ output.WriteDouble(DoubleField48);
+ }
+ if (DoubleField49 != 0D) {
+ output.WriteRawTag(137, 3);
+ output.WriteDouble(DoubleField49);
}
- }
-
- /// Field number for the "double_field_104" field.
- public const int DoubleField104FieldNumber = 104;
- private double doubleField104_;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public double DoubleField104 {
- get { return doubleField104_; }
- set {
- doubleField104_ = value;
+ if (DoubleField50 != 0D) {
+ output.WriteRawTag(145, 3);
+ output.WriteDouble(DoubleField50);
}
- }
-
- /// Field number for the "double_field_105" field.
- public const int DoubleField105FieldNumber = 105;
- private double doubleField105_;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public double DoubleField105 {
- get { return doubleField105_; }
- set {
- doubleField105_ = value;
+ if (DoubleField51 != 0D) {
+ output.WriteRawTag(153, 3);
+ output.WriteDouble(DoubleField51);
}
- }
-
- /// Field number for the "double_field_31" field.
- public const int DoubleField31FieldNumber = 31;
- private double doubleField31_;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public double DoubleField31 {
- get { return doubleField31_; }
- set {
- doubleField31_ = value;
+ if (DoubleField52 != 0D) {
+ output.WriteRawTag(161, 3);
+ output.WriteDouble(DoubleField52);
}
- }
-
- /// Field number for the "int64_field_32" field.
- public const int Int64Field32FieldNumber = 32;
- private long int64Field32_;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public long Int64Field32 {
- get { return int64Field32_; }
- set {
- int64Field32_ = value;
+ if (DoubleField53 != 0D) {
+ output.WriteRawTag(169, 3);
+ output.WriteDouble(DoubleField53);
}
- }
-
- /// Field number for the "double_field_75" field.
- public const int DoubleField75FieldNumber = 75;
- private double doubleField75_;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public double DoubleField75 {
- get { return doubleField75_; }
- set {
- doubleField75_ = value;
+ if (DoubleField54 != 0D) {
+ output.WriteRawTag(177, 3);
+ output.WriteDouble(DoubleField54);
}
- }
-
- /// Field number for the "double_field_129" field.
- public const int DoubleField129FieldNumber = 129;
- private double doubleField129_;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public double DoubleField129 {
- get { return doubleField129_; }
- set {
- doubleField129_ = value;
+ if (DoubleField55 != 0D) {
+ output.WriteRawTag(185, 3);
+ output.WriteDouble(DoubleField55);
}
- }
-
- /// Field number for the "enum_field_80" field.
- public const int EnumField80FieldNumber = 80;
- private int enumField80_;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public int EnumField80 {
- get { return enumField80_; }
- set {
- enumField80_ = value;
+ if (DoubleField56 != 0D) {
+ output.WriteRawTag(193, 3);
+ output.WriteDouble(DoubleField56);
}
- }
-
- /// Field number for the "enum_field_81" field.
- public const int EnumField81FieldNumber = 81;
- private int enumField81_;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public int EnumField81 {
- get { return enumField81_; }
- set {
- enumField81_ = value;
+ if (DoubleField57 != 0D) {
+ output.WriteRawTag(201, 3);
+ output.WriteDouble(DoubleField57);
}
- }
-
- /// Field number for the "int64_field_82" field.
- public const int Int64Field82FieldNumber = 82;
- private long int64Field82_;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public long Int64Field82 {
- get { return int64Field82_; }
- set {
- int64Field82_ = value;
+ if (DoubleField58 != 0D) {
+ output.WriteRawTag(209, 3);
+ output.WriteDouble(DoubleField58);
}
- }
-
- /// Field number for the "enum_field_83" field.
- public const int EnumField83FieldNumber = 83;
- private int enumField83_;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public int EnumField83 {
- get { return enumField83_; }
- set {
- enumField83_ = value;
+ if (Int64Field59 != 0L) {
+ output.WriteRawTag(216, 3);
+ output.WriteInt64(Int64Field59);
}
- }
-
- /// Field number for the "int64_field_85" field.
- public const int Int64Field85FieldNumber = 85;
- private long int64Field85_;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public long Int64Field85 {
- get { return int64Field85_; }
- set {
- int64Field85_ = value;
+ if (Int64Field60 != 0L) {
+ output.WriteRawTag(224, 3);
+ output.WriteInt64(Int64Field60);
}
- }
-
- /// Field number for the "int64_field_86" field.
- public const int Int64Field86FieldNumber = 86;
- private long int64Field86_;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public long Int64Field86 {
- get { return int64Field86_; }
- set {
- int64Field86_ = value;
+ if (DoubleField62 != 0D) {
+ output.WriteRawTag(241, 3);
+ output.WriteDouble(DoubleField62);
}
- }
-
- /// Field number for the "int64_field_87" field.
- public const int Int64Field87FieldNumber = 87;
- private long int64Field87_;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public long Int64Field87 {
- get { return int64Field87_; }
- set {
- int64Field87_ = value;
+ if (DoubleField65 != 0D) {
+ output.WriteRawTag(137, 4);
+ output.WriteDouble(DoubleField65);
}
- }
-
- /// Field number for the "int64_field_125" field.
- public const int Int64Field125FieldNumber = 125;
- private long int64Field125_;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public long Int64Field125 {
- get { return int64Field125_; }
- set {
- int64Field125_ = value;
+ if (DoubleField66 != 0D) {
+ output.WriteRawTag(145, 4);
+ output.WriteDouble(DoubleField66);
}
- }
-
- /// Field number for the "int64_field_37" field.
- public const int Int64Field37FieldNumber = 37;
- private long int64Field37_;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public long Int64Field37 {
- get { return int64Field37_; }
- set {
- int64Field37_ = value;
+ if (DoubleField67 != 0D) {
+ output.WriteRawTag(153, 4);
+ output.WriteDouble(DoubleField67);
}
- }
-
- /// Field number for the "double_field_38" field.
- public const int DoubleField38FieldNumber = 38;
- private double doubleField38_;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public double DoubleField38 {
- get { return doubleField38_; }
- set {
- doubleField38_ = value;
+ if (DoubleField68 != 0D) {
+ output.WriteRawTag(161, 4);
+ output.WriteDouble(DoubleField68);
}
- }
-
- /// Field number for the "interactions" field.
- public const int InteractionsFieldNumber = 39;
- private long interactions_;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public long Interactions {
- get { return interactions_; }
- set {
- interactions_ = value;
+ if (DoubleField69 != 0D) {
+ output.WriteRawTag(169, 4);
+ output.WriteDouble(DoubleField69);
}
- }
-
- /// Field number for the "repeated_int_field_100" field.
- public const int RepeatedIntField100FieldNumber = 100;
- private static readonly pb::FieldCodec _repeated_repeatedIntField100_codec
- = pb::FieldCodec.ForInt32(802);
- private readonly pbc::RepeatedField repeatedIntField100_ = new pbc::RepeatedField();
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public pbc::RepeatedField RepeatedIntField100 {
- get { return repeatedIntField100_; }
- }
-
- /// Field number for the "double_field_40" field.
- public const int DoubleField40FieldNumber = 40;
- private double doubleField40_;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public double DoubleField40 {
- get { return doubleField40_; }
- set {
- doubleField40_ = value;
+ if (DoubleField70 != 0D) {
+ output.WriteRawTag(177, 4);
+ output.WriteDouble(DoubleField70);
}
- }
-
- /// Field number for the "int64_field_41" field.
- public const int Int64Field41FieldNumber = 41;
- private long int64Field41_;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public long Int64Field41 {
- get { return int64Field41_; }
- set {
- int64Field41_ = value;
+ if (DoubleField71 != 0D) {
+ output.WriteRawTag(185, 4);
+ output.WriteDouble(DoubleField71);
}
- }
-
- /// Field number for the "int64_field_126" field.
- public const int Int64Field126FieldNumber = 126;
- private long int64Field126_;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public long Int64Field126 {
- get { return int64Field126_; }
- set {
- int64Field126_ = value;
+ if (DoubleField72 != 0D) {
+ output.WriteRawTag(193, 4);
+ output.WriteDouble(DoubleField72);
}
- }
-
- /// Field number for the "int64_field_127" field.
- public const int Int64Field127FieldNumber = 127;
- private long int64Field127_;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public long Int64Field127 {
- get { return int64Field127_; }
- set {
- int64Field127_ = value;
+ if (StringField73.Length != 0) {
+ output.WriteRawTag(202, 4);
+ output.WriteString(StringField73);
}
- }
-
- /// Field number for the "double_field_128" field.
- public const int DoubleField128FieldNumber = 128;
- private double doubleField128_;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public double DoubleField128 {
- get { return doubleField128_; }
- set {
- doubleField128_ = value;
+ if (StringField74.Length != 0) {
+ output.WriteRawTag(210, 4);
+ output.WriteString(StringField74);
}
- }
-
- /// Field number for the "double_field_109" field.
- public const int DoubleField109FieldNumber = 109;
- private double doubleField109_;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public double DoubleField109 {
- get { return doubleField109_; }
- set {
- doubleField109_ = value;
+ if (DoubleField75 != 0D) {
+ output.WriteRawTag(217, 4);
+ output.WriteDouble(DoubleField75);
}
- }
-
- /// Field number for the "int64_field_110" field.
- public const int Int64Field110FieldNumber = 110;
- private long int64Field110_;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public long Int64Field110 {
- get { return int64Field110_; }
- set {
- int64Field110_ = value;
+ if (DoubleField77 != 0D) {
+ output.WriteRawTag(233, 4);
+ output.WriteDouble(DoubleField77);
}
- }
-
- /// Field number for the "double_field_111" field.
- public const int DoubleField111FieldNumber = 111;
- private double doubleField111_;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public double DoubleField111 {
- get { return doubleField111_; }
- set {
- doubleField111_ = value;
+ if (DoubleField78 != 0D) {
+ output.WriteRawTag(241, 4);
+ output.WriteDouble(DoubleField78);
}
- }
-
- /// Field number for the "int64_field_112" field.
- public const int Int64Field112FieldNumber = 112;
- private long int64Field112_;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public long Int64Field112 {
- get { return int64Field112_; }
- set {
- int64Field112_ = value;
+ if (DoubleField79 != 0D) {
+ output.WriteRawTag(249, 4);
+ output.WriteDouble(DoubleField79);
}
- }
-
- /// Field number for the "double_field_113" field.
- public const int DoubleField113FieldNumber = 113;
- private double doubleField113_;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public double DoubleField113 {
- get { return doubleField113_; }
- set {
- doubleField113_ = value;
+ if (EnumField80 != 0) {
+ output.WriteRawTag(128, 5);
+ output.WriteInt32(EnumField80);
}
- }
-
- /// Field number for the "int64_field_114" field.
- public const int Int64Field114FieldNumber = 114;
- private long int64Field114_;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public long Int64Field114 {
- get { return int64Field114_; }
- set {
- int64Field114_ = value;
+ if (EnumField81 != 0) {
+ output.WriteRawTag(136, 5);
+ output.WriteInt32(EnumField81);
}
- }
-
- /// Field number for the "double_field_42" field.
- public const int DoubleField42FieldNumber = 42;
- private double doubleField42_;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public double DoubleField42 {
- get { return doubleField42_; }
- set {
- doubleField42_ = value;
+ if (Int64Field82 != 0L) {
+ output.WriteRawTag(144, 5);
+ output.WriteInt64(Int64Field82);
}
- }
-
- /// Field number for the "int64_field_43" field.
- public const int Int64Field43FieldNumber = 43;
- private long int64Field43_;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public long Int64Field43 {
- get { return int64Field43_; }
- set {
- int64Field43_ = value;
+ if (EnumField83 != 0) {
+ output.WriteRawTag(152, 5);
+ output.WriteInt32(EnumField83);
}
- }
-
- /// Field number for the "int64_field_44" field.
- public const int Int64Field44FieldNumber = 44;
- private long int64Field44_;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public long Int64Field44 {
- get { return int64Field44_; }
- set {
- int64Field44_ = value;
+ if (DoubleField84 != 0D) {
+ output.WriteRawTag(161, 5);
+ output.WriteDouble(DoubleField84);
}
- }
-
- /// Field number for the "double_field_45" field.
- public const int DoubleField45FieldNumber = 45;
- private double doubleField45_;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public double DoubleField45 {
- get { return doubleField45_; }
- set {
- doubleField45_ = value;
+ if (Int64Field85 != 0L) {
+ output.WriteRawTag(168, 5);
+ output.WriteInt64(Int64Field85);
}
- }
-
- /// Field number for the "double_field_46" field.
- public const int DoubleField46FieldNumber = 46;
- private double doubleField46_;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public double DoubleField46 {
- get { return doubleField46_; }
- set {
- doubleField46_ = value;
+ if (Int64Field86 != 0L) {
+ output.WriteRawTag(176, 5);
+ output.WriteInt64(Int64Field86);
}
- }
-
- /// Field number for the "double_field_78" field.
- public const int DoubleField78FieldNumber = 78;
- private double doubleField78_;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public double DoubleField78 {
- get { return doubleField78_; }
- set {
- doubleField78_ = value;
+ if (Int64Field87 != 0L) {
+ output.WriteRawTag(184, 5);
+ output.WriteInt64(Int64Field87);
}
- }
-
- /// Field number for the "double_field_88" field.
- public const int DoubleField88FieldNumber = 88;
- private double doubleField88_;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public double DoubleField88 {
- get { return doubleField88_; }
- set {
- doubleField88_ = value;
+ if (DoubleField88 != 0D) {
+ output.WriteRawTag(193, 5);
+ output.WriteDouble(DoubleField88);
}
- }
-
- /// Field number for the "double_field_47" field.
- public const int DoubleField47FieldNumber = 47;
- private double doubleField47_;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public double DoubleField47 {
- get { return doubleField47_; }
- set {
- doubleField47_ = value;
+ if (DoubleField89 != 0D) {
+ output.WriteRawTag(201, 5);
+ output.WriteDouble(DoubleField89);
}
- }
-
- /// Field number for the "double_field_89" field.
- public const int DoubleField89FieldNumber = 89;
- private double doubleField89_;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public double DoubleField89 {
- get { return doubleField89_; }
- set {
- doubleField89_ = value;
+ if (DoubleField90 != 0D) {
+ output.WriteRawTag(209, 5);
+ output.WriteDouble(DoubleField90);
}
- }
-
- /// Field number for the "double_field_48" field.
- public const int DoubleField48FieldNumber = 48;
- private double doubleField48_;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public double DoubleField48 {
- get { return doubleField48_; }
- set {
- doubleField48_ = value;
+ if (DoubleField91 != 0D) {
+ output.WriteRawTag(217, 5);
+ output.WriteDouble(DoubleField91);
+ }
+ if (DoubleField92 != 0D) {
+ output.WriteRawTag(225, 5);
+ output.WriteDouble(DoubleField92);
+ }
+ if (DoubleField93 != 0D) {
+ output.WriteRawTag(233, 5);
+ output.WriteDouble(DoubleField93);
}
- }
-
- /// Field number for the "double_field_49" field.
- public const int DoubleField49FieldNumber = 49;
- private double doubleField49_;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public double DoubleField49 {
- get { return doubleField49_; }
- set {
- doubleField49_ = value;
+ if (DoubleField94 != 0D) {
+ output.WriteRawTag(241, 5);
+ output.WriteDouble(DoubleField94);
}
- }
-
- /// Field number for the "double_field_50" field.
- public const int DoubleField50FieldNumber = 50;
- private double doubleField50_;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public double DoubleField50 {
- get { return doubleField50_; }
- set {
- doubleField50_ = value;
+ if (DoubleField95 != 0D) {
+ output.WriteRawTag(249, 5);
+ output.WriteDouble(DoubleField95);
}
- }
-
- /// Field number for the "double_field_90" field.
- public const int DoubleField90FieldNumber = 90;
- private double doubleField90_;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public double DoubleField90 {
- get { return doubleField90_; }
- set {
- doubleField90_ = value;
+ if (DoubleField96 != 0D) {
+ output.WriteRawTag(129, 6);
+ output.WriteDouble(DoubleField96);
}
- }
-
- /// Field number for the "double_field_51" field.
- public const int DoubleField51FieldNumber = 51;
- private double doubleField51_;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public double DoubleField51 {
- get { return doubleField51_; }
- set {
- doubleField51_ = value;
+ if (DoubleField97 != 0D) {
+ output.WriteRawTag(137, 6);
+ output.WriteDouble(DoubleField97);
}
- }
-
- /// Field number for the "double_field_91" field.
- public const int DoubleField91FieldNumber = 91;
- private double doubleField91_;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public double DoubleField91 {
- get { return doubleField91_; }
- set {
- doubleField91_ = value;
+ if (DoubleField98 != 0D) {
+ output.WriteRawTag(145, 6);
+ output.WriteDouble(DoubleField98);
}
- }
-
- /// Field number for the "double_field_92" field.
- public const int DoubleField92FieldNumber = 92;
- private double doubleField92_;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public double DoubleField92 {
- get { return doubleField92_; }
- set {
- doubleField92_ = value;
+ if (DoubleField99 != 0D) {
+ output.WriteRawTag(153, 6);
+ output.WriteDouble(DoubleField99);
}
- }
-
- /// Field number for the "int64_field_107" field.
- public const int Int64Field107FieldNumber = 107;
- private long int64Field107_;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public long Int64Field107 {
- get { return int64Field107_; }
- set {
- int64Field107_ = value;
+ repeatedIntField100_.WriteTo(output, _repeated_repeatedIntField100_codec);
+ if (DoubleField101 != 0D) {
+ output.WriteRawTag(169, 6);
+ output.WriteDouble(DoubleField101);
}
- }
-
- /// Field number for the "double_field_93" field.
- public const int DoubleField93FieldNumber = 93;
- private double doubleField93_;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public double DoubleField93 {
- get { return doubleField93_; }
- set {
- doubleField93_ = value;
+ if (DoubleField102 != 0D) {
+ output.WriteRawTag(177, 6);
+ output.WriteDouble(DoubleField102);
}
- }
-
- /// Field number for the "double_field_108" field.
- public const int DoubleField108FieldNumber = 108;
- private double doubleField108_;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public double DoubleField108 {
- get { return doubleField108_; }
- set {
- doubleField108_ = value;
+ if (DoubleField103 != 0D) {
+ output.WriteRawTag(185, 6);
+ output.WriteDouble(DoubleField103);
}
- }
-
- /// Field number for the "double_field_52" field.
- public const int DoubleField52FieldNumber = 52;
- private double doubleField52_;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public double DoubleField52 {
- get { return doubleField52_; }
- set {
- doubleField52_ = value;
+ if (DoubleField104 != 0D) {
+ output.WriteRawTag(193, 6);
+ output.WriteDouble(DoubleField104);
}
- }
-
- /// Field number for the "double_field_53" field.
- public const int DoubleField53FieldNumber = 53;
- private double doubleField53_;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public double DoubleField53 {
- get { return doubleField53_; }
- set {
- doubleField53_ = value;
+ if (DoubleField105 != 0D) {
+ output.WriteRawTag(201, 6);
+ output.WriteDouble(DoubleField105);
}
- }
-
- /// Field number for the "double_field_94" field.
- public const int DoubleField94FieldNumber = 94;
- private double doubleField94_;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public double DoubleField94 {
- get { return doubleField94_; }
- set {
- doubleField94_ = value;
+ if (DoubleField106 != 0D) {
+ output.WriteRawTag(209, 6);
+ output.WriteDouble(DoubleField106);
}
- }
-
- /// Field number for the "double_field_54" field.
- public const int DoubleField54FieldNumber = 54;
- private double doubleField54_;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public double DoubleField54 {
- get { return doubleField54_; }
- set {
- doubleField54_ = value;
+ if (Int64Field107 != 0L) {
+ output.WriteRawTag(216, 6);
+ output.WriteInt64(Int64Field107);
}
- }
-
- /// Field number for the "double_field_55" field.
- public const int DoubleField55FieldNumber = 55;
- private double doubleField55_;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public double DoubleField55 {
- get { return doubleField55_; }
- set {
- doubleField55_ = value;
+ if (DoubleField108 != 0D) {
+ output.WriteRawTag(225, 6);
+ output.WriteDouble(DoubleField108);
}
- }
-
- /// Field number for the "double_field_56" field.
- public const int DoubleField56FieldNumber = 56;
- private double doubleField56_;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public double DoubleField56 {
- get { return doubleField56_; }
- set {
- doubleField56_ = value;
+ if (DoubleField109 != 0D) {
+ output.WriteRawTag(233, 6);
+ output.WriteDouble(DoubleField109);
}
- }
-
- /// Field number for the "double_field_57" field.
- public const int DoubleField57FieldNumber = 57;
- private double doubleField57_;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public double DoubleField57 {
- get { return doubleField57_; }
- set {
- doubleField57_ = value;
+ if (Int64Field110 != 0L) {
+ output.WriteRawTag(240, 6);
+ output.WriteInt64(Int64Field110);
}
- }
-
- /// Field number for the "double_field_58" field.
- public const int DoubleField58FieldNumber = 58;
- private double doubleField58_;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public double DoubleField58 {
- get { return doubleField58_; }
- set {
- doubleField58_ = value;
+ if (DoubleField111 != 0D) {
+ output.WriteRawTag(249, 6);
+ output.WriteDouble(DoubleField111);
}
- }
-
- /// Field number for the "int64_field_59" field.
- public const int Int64Field59FieldNumber = 59;
- private long int64Field59_;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public long Int64Field59 {
- get { return int64Field59_; }
- set {
- int64Field59_ = value;
+ if (Int64Field112 != 0L) {
+ output.WriteRawTag(128, 7);
+ output.WriteInt64(Int64Field112);
}
- }
-
- /// Field number for the "int64_field_60" field.
- public const int Int64Field60FieldNumber = 60;
- private long int64Field60_;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public long Int64Field60 {
- get { return int64Field60_; }
- set {
- int64Field60_ = value;
+ if (DoubleField113 != 0D) {
+ output.WriteRawTag(137, 7);
+ output.WriteDouble(DoubleField113);
+ }
+ if (Int64Field114 != 0L) {
+ output.WriteRawTag(144, 7);
+ output.WriteInt64(Int64Field114);
+ }
+ if (Int64Field115 != 0L) {
+ output.WriteRawTag(152, 7);
+ output.WriteInt64(Int64Field115);
}
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public override bool Equals(object other) {
- return Equals(other as ManyPrimitiveFieldsMessage);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public bool Equals(ManyPrimitiveFieldsMessage other) {
- if (ReferenceEquals(other, null)) {
- return false;
+ if (DoubleField116 != 0D) {
+ output.WriteRawTag(161, 7);
+ output.WriteDouble(DoubleField116);
}
- if (ReferenceEquals(other, this)) {
- return true;
+ if (Int64Field117 != 0L) {
+ output.WriteRawTag(168, 7);
+ output.WriteInt64(Int64Field117);
+ }
+ if (DoubleField118 != 0D) {
+ output.WriteRawTag(177, 7);
+ output.WriteDouble(DoubleField118);
+ }
+ if (DoubleField119 != 0D) {
+ output.WriteRawTag(185, 7);
+ output.WriteDouble(DoubleField119);
+ }
+ if (DoubleField120 != 0D) {
+ output.WriteRawTag(193, 7);
+ output.WriteDouble(DoubleField120);
+ }
+ if (DoubleField121 != 0D) {
+ output.WriteRawTag(201, 7);
+ output.WriteDouble(DoubleField121);
+ }
+ if (DoubleField122 != 0D) {
+ output.WriteRawTag(209, 7);
+ output.WriteDouble(DoubleField122);
+ }
+ if (DoubleField123 != 0D) {
+ output.WriteRawTag(217, 7);
+ output.WriteDouble(DoubleField123);
+ }
+ if (DoubleField124 != 0D) {
+ output.WriteRawTag(225, 7);
+ output.WriteDouble(DoubleField124);
+ }
+ if (Int64Field125 != 0L) {
+ output.WriteRawTag(232, 7);
+ output.WriteInt64(Int64Field125);
+ }
+ if (Int64Field126 != 0L) {
+ output.WriteRawTag(240, 7);
+ output.WriteInt64(Int64Field126);
+ }
+ if (Int64Field127 != 0L) {
+ output.WriteRawTag(248, 7);
+ output.WriteInt64(Int64Field127);
+ }
+ if (DoubleField128 != 0D) {
+ output.WriteRawTag(129, 8);
+ output.WriteDouble(DoubleField128);
+ }
+ if (DoubleField129 != 0D) {
+ output.WriteRawTag(137, 8);
+ output.WriteDouble(DoubleField129);
}
- if (!pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.Equals(DoubleField95, other.DoubleField95)) return false;
- if (!pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.Equals(DoubleField1, other.DoubleField1)) return false;
- if (!pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.Equals(DoubleField79, other.DoubleField79)) return false;
- if (Int64Field2 != other.Int64Field2) return false;
- if (!pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.Equals(DoubleField96, other.DoubleField96)) return false;
- if (Int64Field3 != other.Int64Field3) return false;
- if (Int64Field4 != other.Int64Field4) return false;
- if (!pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.Equals(DoubleField97, other.DoubleField97)) return false;
- if (!pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.Equals(DoubleField65, other.DoubleField65)) return false;
- if (!pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.Equals(DoubleField66, other.DoubleField66)) return false;
- if (!pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.Equals(DoubleField7, other.DoubleField7)) return false;
- if (!pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.Equals(DoubleField62, other.DoubleField62)) return false;
- if (!pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.Equals(DoubleField118, other.DoubleField118)) return false;
- if (!pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.Equals(DoubleField119, other.DoubleField119)) return false;
- if (!pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.Equals(DoubleField67, other.DoubleField67)) return false;
- if (!pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.Equals(DoubleField120, other.DoubleField120)) return false;
- if (!pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.Equals(DoubleField121, other.DoubleField121)) return false;
- if (!pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.Equals(DoubleField122, other.DoubleField122)) return false;
- if (!pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.Equals(DoubleField123, other.DoubleField123)) return false;
- if (!pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.Equals(DoubleField124, other.DoubleField124)) return false;
- if (!pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.Equals(DoubleField8, other.DoubleField8)) return false;
- if (!pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.Equals(DoubleField9, other.DoubleField9)) return false;
- if (!pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.Equals(DoubleField98, other.DoubleField98)) return false;
- if (!pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.Equals(DoubleField10, other.DoubleField10)) return false;
- if (!pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.Equals(DoubleField11, other.DoubleField11)) return false;
- if (!pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.Equals(DoubleField99, other.DoubleField99)) return false;
- if (!pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.Equals(DoubleField84, other.DoubleField84)) return false;
- if (!pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.Equals(DoubleField14, other.DoubleField14)) return false;
- if (!pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.Equals(DoubleField77, other.DoubleField77)) return false;
- if (!pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.Equals(DoubleField15, other.DoubleField15)) return false;
- if (Int64Field19 != other.Int64Field19) return false;
- if (Int64Field115 != other.Int64Field115) return false;
- if (!pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.Equals(DoubleField116, other.DoubleField116)) return false;
- if (Int64Field117 != other.Int64Field117) return false;
- if (!pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.Equals(DoubleField20, other.DoubleField20)) return false;
- if (!pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.Equals(DoubleField21, other.DoubleField21)) return false;
- if (StringField73 != other.StringField73) return false;
- if (StringField74 != other.StringField74) return false;
- if (!pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.Equals(DoubleField22, other.DoubleField22)) return false;
- if (!pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.Equals(DoubleField69, other.DoubleField69)) return false;
- if (!pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.Equals(DoubleField70, other.DoubleField70)) return false;
- if (!pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.Equals(DoubleField71, other.DoubleField71)) return false;
- if (!pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.Equals(DoubleField72, other.DoubleField72)) return false;
- if (!pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.Equals(DoubleField25, other.DoubleField25)) return false;
- if (Int64Field26 != other.Int64Field26) return false;
- if (!pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.Equals(DoubleField68, other.DoubleField68)) return false;
- if (!pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.Equals(DoubleField28, other.DoubleField28)) return false;
- if (!pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.Equals(DoubleField106, other.DoubleField106)) return false;
- if (!pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.Equals(DoubleField29, other.DoubleField29)) return false;
- if (!pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.Equals(DoubleField30, other.DoubleField30)) return false;
- if (!pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.Equals(DoubleField101, other.DoubleField101)) return false;
- if (!pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.Equals(DoubleField102, other.DoubleField102)) return false;
- if (!pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.Equals(DoubleField103, other.DoubleField103)) return false;
- if (!pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.Equals(DoubleField104, other.DoubleField104)) return false;
- if (!pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.Equals(DoubleField105, other.DoubleField105)) return false;
- if (!pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.Equals(DoubleField31, other.DoubleField31)) return false;
- if (Int64Field32 != other.Int64Field32) return false;
- if (!pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.Equals(DoubleField75, other.DoubleField75)) return false;
- if (!pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.Equals(DoubleField129, other.DoubleField129)) return false;
- if (EnumField80 != other.EnumField80) return false;
- if (EnumField81 != other.EnumField81) return false;
- if (Int64Field82 != other.Int64Field82) return false;
- if (EnumField83 != other.EnumField83) return false;
- if (Int64Field85 != other.Int64Field85) return false;
- if (Int64Field86 != other.Int64Field86) return false;
- if (Int64Field87 != other.Int64Field87) return false;
- if (Int64Field125 != other.Int64Field125) return false;
- if (Int64Field37 != other.Int64Field37) return false;
- if (!pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.Equals(DoubleField38, other.DoubleField38)) return false;
- if (Interactions != other.Interactions) return false;
- if(!repeatedIntField100_.Equals(other.repeatedIntField100_)) return false;
- if (!pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.Equals(DoubleField40, other.DoubleField40)) return false;
- if (Int64Field41 != other.Int64Field41) return false;
- if (Int64Field126 != other.Int64Field126) return false;
- if (Int64Field127 != other.Int64Field127) return false;
- if (!pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.Equals(DoubleField128, other.DoubleField128)) return false;
- if (!pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.Equals(DoubleField109, other.DoubleField109)) return false;
- if (Int64Field110 != other.Int64Field110) return false;
- if (!pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.Equals(DoubleField111, other.DoubleField111)) return false;
- if (Int64Field112 != other.Int64Field112) return false;
- if (!pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.Equals(DoubleField113, other.DoubleField113)) return false;
- if (Int64Field114 != other.Int64Field114) return false;
- if (!pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.Equals(DoubleField42, other.DoubleField42)) return false;
- if (Int64Field43 != other.Int64Field43) return false;
- if (Int64Field44 != other.Int64Field44) return false;
- if (!pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.Equals(DoubleField45, other.DoubleField45)) return false;
- if (!pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.Equals(DoubleField46, other.DoubleField46)) return false;
- if (!pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.Equals(DoubleField78, other.DoubleField78)) return false;
- if (!pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.Equals(DoubleField88, other.DoubleField88)) return false;
- if (!pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.Equals(DoubleField47, other.DoubleField47)) return false;
- if (!pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.Equals(DoubleField89, other.DoubleField89)) return false;
- if (!pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.Equals(DoubleField48, other.DoubleField48)) return false;
- if (!pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.Equals(DoubleField49, other.DoubleField49)) return false;
- if (!pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.Equals(DoubleField50, other.DoubleField50)) return false;
- if (!pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.Equals(DoubleField90, other.DoubleField90)) return false;
- if (!pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.Equals(DoubleField51, other.DoubleField51)) return false;
- if (!pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.Equals(DoubleField91, other.DoubleField91)) return false;
- if (!pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.Equals(DoubleField92, other.DoubleField92)) return false;
- if (Int64Field107 != other.Int64Field107) return false;
- if (!pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.Equals(DoubleField93, other.DoubleField93)) return false;
- if (!pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.Equals(DoubleField108, other.DoubleField108)) return false;
- if (!pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.Equals(DoubleField52, other.DoubleField52)) return false;
- if (!pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.Equals(DoubleField53, other.DoubleField53)) return false;
- if (!pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.Equals(DoubleField94, other.DoubleField94)) return false;
- if (!pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.Equals(DoubleField54, other.DoubleField54)) return false;
- if (!pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.Equals(DoubleField55, other.DoubleField55)) return false;
- if (!pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.Equals(DoubleField56, other.DoubleField56)) return false;
- if (!pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.Equals(DoubleField57, other.DoubleField57)) return false;
- if (!pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.Equals(DoubleField58, other.DoubleField58)) return false;
- if (Int64Field59 != other.Int64Field59) return false;
- if (Int64Field60 != other.Int64Field60) return false;
- return Equals(_unknownFields, other._unknownFields);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public override int GetHashCode() {
- int hash = 1;
- if (DoubleField95 != 0D) hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(DoubleField95);
- if (DoubleField1 != 0D) hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(DoubleField1);
- if (DoubleField79 != 0D) hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(DoubleField79);
- if (Int64Field2 != 0L) hash ^= Int64Field2.GetHashCode();
- if (DoubleField96 != 0D) hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(DoubleField96);
- if (Int64Field3 != 0L) hash ^= Int64Field3.GetHashCode();
- if (Int64Field4 != 0L) hash ^= Int64Field4.GetHashCode();
- if (DoubleField97 != 0D) hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(DoubleField97);
- if (DoubleField65 != 0D) hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(DoubleField65);
- if (DoubleField66 != 0D) hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(DoubleField66);
- if (DoubleField7 != 0D) hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(DoubleField7);
- if (DoubleField62 != 0D) hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(DoubleField62);
- if (DoubleField118 != 0D) hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(DoubleField118);
- if (DoubleField119 != 0D) hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(DoubleField119);
- if (DoubleField67 != 0D) hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(DoubleField67);
- if (DoubleField120 != 0D) hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(DoubleField120);
- if (DoubleField121 != 0D) hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(DoubleField121);
- if (DoubleField122 != 0D) hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(DoubleField122);
- if (DoubleField123 != 0D) hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(DoubleField123);
- if (DoubleField124 != 0D) hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(DoubleField124);
- if (DoubleField8 != 0D) hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(DoubleField8);
- if (DoubleField9 != 0D) hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(DoubleField9);
- if (DoubleField98 != 0D) hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(DoubleField98);
- if (DoubleField10 != 0D) hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(DoubleField10);
- if (DoubleField11 != 0D) hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(DoubleField11);
- if (DoubleField99 != 0D) hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(DoubleField99);
- if (DoubleField84 != 0D) hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(DoubleField84);
- if (DoubleField14 != 0D) hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(DoubleField14);
- if (DoubleField77 != 0D) hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(DoubleField77);
- if (DoubleField15 != 0D) hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(DoubleField15);
- if (Int64Field19 != 0L) hash ^= Int64Field19.GetHashCode();
- if (Int64Field115 != 0L) hash ^= Int64Field115.GetHashCode();
- if (DoubleField116 != 0D) hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(DoubleField116);
- if (Int64Field117 != 0L) hash ^= Int64Field117.GetHashCode();
- if (DoubleField20 != 0D) hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(DoubleField20);
- if (DoubleField21 != 0D) hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(DoubleField21);
- if (StringField73.Length != 0) hash ^= StringField73.GetHashCode();
- if (StringField74.Length != 0) hash ^= StringField74.GetHashCode();
- if (DoubleField22 != 0D) hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(DoubleField22);
- if (DoubleField69 != 0D) hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(DoubleField69);
- if (DoubleField70 != 0D) hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(DoubleField70);
- if (DoubleField71 != 0D) hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(DoubleField71);
- if (DoubleField72 != 0D) hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(DoubleField72);
- if (DoubleField25 != 0D) hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(DoubleField25);
- if (Int64Field26 != 0L) hash ^= Int64Field26.GetHashCode();
- if (DoubleField68 != 0D) hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(DoubleField68);
- if (DoubleField28 != 0D) hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(DoubleField28);
- if (DoubleField106 != 0D) hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(DoubleField106);
- if (DoubleField29 != 0D) hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(DoubleField29);
- if (DoubleField30 != 0D) hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(DoubleField30);
- if (DoubleField101 != 0D) hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(DoubleField101);
- if (DoubleField102 != 0D) hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(DoubleField102);
- if (DoubleField103 != 0D) hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(DoubleField103);
- if (DoubleField104 != 0D) hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(DoubleField104);
- if (DoubleField105 != 0D) hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(DoubleField105);
- if (DoubleField31 != 0D) hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(DoubleField31);
- if (Int64Field32 != 0L) hash ^= Int64Field32.GetHashCode();
- if (DoubleField75 != 0D) hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(DoubleField75);
- if (DoubleField129 != 0D) hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(DoubleField129);
- if (EnumField80 != 0) hash ^= EnumField80.GetHashCode();
- if (EnumField81 != 0) hash ^= EnumField81.GetHashCode();
- if (Int64Field82 != 0L) hash ^= Int64Field82.GetHashCode();
- if (EnumField83 != 0) hash ^= EnumField83.GetHashCode();
- if (Int64Field85 != 0L) hash ^= Int64Field85.GetHashCode();
- if (Int64Field86 != 0L) hash ^= Int64Field86.GetHashCode();
- if (Int64Field87 != 0L) hash ^= Int64Field87.GetHashCode();
- if (Int64Field125 != 0L) hash ^= Int64Field125.GetHashCode();
- if (Int64Field37 != 0L) hash ^= Int64Field37.GetHashCode();
- if (DoubleField38 != 0D) hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(DoubleField38);
- if (Interactions != 0L) hash ^= Interactions.GetHashCode();
- hash ^= repeatedIntField100_.GetHashCode();
- if (DoubleField40 != 0D) hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(DoubleField40);
- if (Int64Field41 != 0L) hash ^= Int64Field41.GetHashCode();
- if (Int64Field126 != 0L) hash ^= Int64Field126.GetHashCode();
- if (Int64Field127 != 0L) hash ^= Int64Field127.GetHashCode();
- if (DoubleField128 != 0D) hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(DoubleField128);
- if (DoubleField109 != 0D) hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(DoubleField109);
- if (Int64Field110 != 0L) hash ^= Int64Field110.GetHashCode();
- if (DoubleField111 != 0D) hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(DoubleField111);
- if (Int64Field112 != 0L) hash ^= Int64Field112.GetHashCode();
- if (DoubleField113 != 0D) hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(DoubleField113);
- if (Int64Field114 != 0L) hash ^= Int64Field114.GetHashCode();
- if (DoubleField42 != 0D) hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(DoubleField42);
- if (Int64Field43 != 0L) hash ^= Int64Field43.GetHashCode();
- if (Int64Field44 != 0L) hash ^= Int64Field44.GetHashCode();
- if (DoubleField45 != 0D) hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(DoubleField45);
- if (DoubleField46 != 0D) hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(DoubleField46);
- if (DoubleField78 != 0D) hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(DoubleField78);
- if (DoubleField88 != 0D) hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(DoubleField88);
- if (DoubleField47 != 0D) hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(DoubleField47);
- if (DoubleField89 != 0D) hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(DoubleField89);
- if (DoubleField48 != 0D) hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(DoubleField48);
- if (DoubleField49 != 0D) hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(DoubleField49);
- if (DoubleField50 != 0D) hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(DoubleField50);
- if (DoubleField90 != 0D) hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(DoubleField90);
- if (DoubleField51 != 0D) hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(DoubleField51);
- if (DoubleField91 != 0D) hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(DoubleField91);
- if (DoubleField92 != 0D) hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(DoubleField92);
- if (Int64Field107 != 0L) hash ^= Int64Field107.GetHashCode();
- if (DoubleField93 != 0D) hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(DoubleField93);
- if (DoubleField108 != 0D) hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(DoubleField108);
- if (DoubleField52 != 0D) hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(DoubleField52);
- if (DoubleField53 != 0D) hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(DoubleField53);
- if (DoubleField94 != 0D) hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(DoubleField94);
- if (DoubleField54 != 0D) hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(DoubleField54);
- if (DoubleField55 != 0D) hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(DoubleField55);
- if (DoubleField56 != 0D) hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(DoubleField56);
- if (DoubleField57 != 0D) hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(DoubleField57);
- if (DoubleField58 != 0D) hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(DoubleField58);
- if (Int64Field59 != 0L) hash ^= Int64Field59.GetHashCode();
- if (Int64Field60 != 0L) hash ^= Int64Field60.GetHashCode();
if (_unknownFields != null) {
- hash ^= _unknownFields.GetHashCode();
+ _unknownFields.WriteTo(output);
}
- return hash;
}
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public override string ToString() {
- return pb::JsonFormatter.ToDiagnosticString(this);
- }
+ #if !GOOGLE_PROTOBUF_DISABLE_BUFFER_SERIALIZATION
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void WriteTo(pb::CodedOutputStream output) {
+ public void WriteTo(ref pb::CodedOutputWriter output) {
if (DoubleField1 != 0D) {
output.WriteRawTag(9);
output.WriteDouble(DoubleField1);
@@ -6027,7 +7610,7 @@ public void WriteTo(pb::CodedOutputStream output) {
output.WriteRawTag(153, 6);
output.WriteDouble(DoubleField99);
}
- repeatedIntField100_.WriteTo(output, _repeated_repeatedIntField100_codec);
+ repeatedIntField100_.WriteTo(ref output, _repeated_repeatedIntField100_codec);
if (DoubleField101 != 0D) {
output.WriteRawTag(169, 6);
output.WriteDouble(DoubleField101);
@@ -6145,9 +7728,10 @@ public void WriteTo(pb::CodedOutputStream output) {
output.WriteDouble(DoubleField129);
}
if (_unknownFields != null) {
- _unknownFields.WriteTo(output);
+ _unknownFields.WriteTo(ref output);
}
}
+ #endif
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public int CalculateSize() {
@@ -6825,16 +8409,475 @@ public void MergeFrom(ManyPrimitiveFieldsMessage other) {
if (other.Int64Field60 != 0L) {
Int64Field60 = other.Int64Field60;
}
- _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
+ _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ public void MergeFrom(pb::CodedInputStream input) {
+ uint tag;
+ while ((tag = input.ReadTag()) != 0) {
+ switch(tag) {
+ default:
+ _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
+ break;
+ case 9: {
+ DoubleField1 = input.ReadDouble();
+ break;
+ }
+ case 16: {
+ Int64Field2 = input.ReadInt64();
+ break;
+ }
+ case 24: {
+ Int64Field3 = input.ReadInt64();
+ break;
+ }
+ case 32: {
+ Int64Field4 = input.ReadInt64();
+ break;
+ }
+ case 57: {
+ DoubleField7 = input.ReadDouble();
+ break;
+ }
+ case 65: {
+ DoubleField8 = input.ReadDouble();
+ break;
+ }
+ case 73: {
+ DoubleField9 = input.ReadDouble();
+ break;
+ }
+ case 81: {
+ DoubleField10 = input.ReadDouble();
+ break;
+ }
+ case 89: {
+ DoubleField11 = input.ReadDouble();
+ break;
+ }
+ case 113: {
+ DoubleField14 = input.ReadDouble();
+ break;
+ }
+ case 121: {
+ DoubleField15 = input.ReadDouble();
+ break;
+ }
+ case 152: {
+ Int64Field19 = input.ReadInt64();
+ break;
+ }
+ case 161: {
+ DoubleField20 = input.ReadDouble();
+ break;
+ }
+ case 169: {
+ DoubleField21 = input.ReadDouble();
+ break;
+ }
+ case 177: {
+ DoubleField22 = input.ReadDouble();
+ break;
+ }
+ case 201: {
+ DoubleField25 = input.ReadDouble();
+ break;
+ }
+ case 208: {
+ Int64Field26 = input.ReadInt64();
+ break;
+ }
+ case 225: {
+ DoubleField28 = input.ReadDouble();
+ break;
+ }
+ case 233: {
+ DoubleField29 = input.ReadDouble();
+ break;
+ }
+ case 241: {
+ DoubleField30 = input.ReadDouble();
+ break;
+ }
+ case 249: {
+ DoubleField31 = input.ReadDouble();
+ break;
+ }
+ case 256: {
+ Int64Field32 = input.ReadInt64();
+ break;
+ }
+ case 296: {
+ Int64Field37 = input.ReadInt64();
+ break;
+ }
+ case 305: {
+ DoubleField38 = input.ReadDouble();
+ break;
+ }
+ case 312: {
+ Interactions = input.ReadInt64();
+ break;
+ }
+ case 321: {
+ DoubleField40 = input.ReadDouble();
+ break;
+ }
+ case 328: {
+ Int64Field41 = input.ReadInt64();
+ break;
+ }
+ case 337: {
+ DoubleField42 = input.ReadDouble();
+ break;
+ }
+ case 344: {
+ Int64Field43 = input.ReadInt64();
+ break;
+ }
+ case 352: {
+ Int64Field44 = input.ReadInt64();
+ break;
+ }
+ case 361: {
+ DoubleField45 = input.ReadDouble();
+ break;
+ }
+ case 369: {
+ DoubleField46 = input.ReadDouble();
+ break;
+ }
+ case 377: {
+ DoubleField47 = input.ReadDouble();
+ break;
+ }
+ case 385: {
+ DoubleField48 = input.ReadDouble();
+ break;
+ }
+ case 393: {
+ DoubleField49 = input.ReadDouble();
+ break;
+ }
+ case 401: {
+ DoubleField50 = input.ReadDouble();
+ break;
+ }
+ case 409: {
+ DoubleField51 = input.ReadDouble();
+ break;
+ }
+ case 417: {
+ DoubleField52 = input.ReadDouble();
+ break;
+ }
+ case 425: {
+ DoubleField53 = input.ReadDouble();
+ break;
+ }
+ case 433: {
+ DoubleField54 = input.ReadDouble();
+ break;
+ }
+ case 441: {
+ DoubleField55 = input.ReadDouble();
+ break;
+ }
+ case 449: {
+ DoubleField56 = input.ReadDouble();
+ break;
+ }
+ case 457: {
+ DoubleField57 = input.ReadDouble();
+ break;
+ }
+ case 465: {
+ DoubleField58 = input.ReadDouble();
+ break;
+ }
+ case 472: {
+ Int64Field59 = input.ReadInt64();
+ break;
+ }
+ case 480: {
+ Int64Field60 = input.ReadInt64();
+ break;
+ }
+ case 497: {
+ DoubleField62 = input.ReadDouble();
+ break;
+ }
+ case 521: {
+ DoubleField65 = input.ReadDouble();
+ break;
+ }
+ case 529: {
+ DoubleField66 = input.ReadDouble();
+ break;
+ }
+ case 537: {
+ DoubleField67 = input.ReadDouble();
+ break;
+ }
+ case 545: {
+ DoubleField68 = input.ReadDouble();
+ break;
+ }
+ case 553: {
+ DoubleField69 = input.ReadDouble();
+ break;
+ }
+ case 561: {
+ DoubleField70 = input.ReadDouble();
+ break;
+ }
+ case 569: {
+ DoubleField71 = input.ReadDouble();
+ break;
+ }
+ case 577: {
+ DoubleField72 = input.ReadDouble();
+ break;
+ }
+ case 586: {
+ StringField73 = input.ReadString();
+ break;
+ }
+ case 594: {
+ StringField74 = input.ReadString();
+ break;
+ }
+ case 601: {
+ DoubleField75 = input.ReadDouble();
+ break;
+ }
+ case 617: {
+ DoubleField77 = input.ReadDouble();
+ break;
+ }
+ case 625: {
+ DoubleField78 = input.ReadDouble();
+ break;
+ }
+ case 633: {
+ DoubleField79 = input.ReadDouble();
+ break;
+ }
+ case 640: {
+ EnumField80 = input.ReadInt32();
+ break;
+ }
+ case 648: {
+ EnumField81 = input.ReadInt32();
+ break;
+ }
+ case 656: {
+ Int64Field82 = input.ReadInt64();
+ break;
+ }
+ case 664: {
+ EnumField83 = input.ReadInt32();
+ break;
+ }
+ case 673: {
+ DoubleField84 = input.ReadDouble();
+ break;
+ }
+ case 680: {
+ Int64Field85 = input.ReadInt64();
+ break;
+ }
+ case 688: {
+ Int64Field86 = input.ReadInt64();
+ break;
+ }
+ case 696: {
+ Int64Field87 = input.ReadInt64();
+ break;
+ }
+ case 705: {
+ DoubleField88 = input.ReadDouble();
+ break;
+ }
+ case 713: {
+ DoubleField89 = input.ReadDouble();
+ break;
+ }
+ case 721: {
+ DoubleField90 = input.ReadDouble();
+ break;
+ }
+ case 729: {
+ DoubleField91 = input.ReadDouble();
+ break;
+ }
+ case 737: {
+ DoubleField92 = input.ReadDouble();
+ break;
+ }
+ case 745: {
+ DoubleField93 = input.ReadDouble();
+ break;
+ }
+ case 753: {
+ DoubleField94 = input.ReadDouble();
+ break;
+ }
+ case 761: {
+ DoubleField95 = input.ReadDouble();
+ break;
+ }
+ case 769: {
+ DoubleField96 = input.ReadDouble();
+ break;
+ }
+ case 777: {
+ DoubleField97 = input.ReadDouble();
+ break;
+ }
+ case 785: {
+ DoubleField98 = input.ReadDouble();
+ break;
+ }
+ case 793: {
+ DoubleField99 = input.ReadDouble();
+ break;
+ }
+ case 802:
+ case 800: {
+ repeatedIntField100_.AddEntriesFrom(input, _repeated_repeatedIntField100_codec);
+ break;
+ }
+ case 809: {
+ DoubleField101 = input.ReadDouble();
+ break;
+ }
+ case 817: {
+ DoubleField102 = input.ReadDouble();
+ break;
+ }
+ case 825: {
+ DoubleField103 = input.ReadDouble();
+ break;
+ }
+ case 833: {
+ DoubleField104 = input.ReadDouble();
+ break;
+ }
+ case 841: {
+ DoubleField105 = input.ReadDouble();
+ break;
+ }
+ case 849: {
+ DoubleField106 = input.ReadDouble();
+ break;
+ }
+ case 856: {
+ Int64Field107 = input.ReadInt64();
+ break;
+ }
+ case 865: {
+ DoubleField108 = input.ReadDouble();
+ break;
+ }
+ case 873: {
+ DoubleField109 = input.ReadDouble();
+ break;
+ }
+ case 880: {
+ Int64Field110 = input.ReadInt64();
+ break;
+ }
+ case 889: {
+ DoubleField111 = input.ReadDouble();
+ break;
+ }
+ case 896: {
+ Int64Field112 = input.ReadInt64();
+ break;
+ }
+ case 905: {
+ DoubleField113 = input.ReadDouble();
+ break;
+ }
+ case 912: {
+ Int64Field114 = input.ReadInt64();
+ break;
+ }
+ case 920: {
+ Int64Field115 = input.ReadInt64();
+ break;
+ }
+ case 929: {
+ DoubleField116 = input.ReadDouble();
+ break;
+ }
+ case 936: {
+ Int64Field117 = input.ReadInt64();
+ break;
+ }
+ case 945: {
+ DoubleField118 = input.ReadDouble();
+ break;
+ }
+ case 953: {
+ DoubleField119 = input.ReadDouble();
+ break;
+ }
+ case 961: {
+ DoubleField120 = input.ReadDouble();
+ break;
+ }
+ case 969: {
+ DoubleField121 = input.ReadDouble();
+ break;
+ }
+ case 977: {
+ DoubleField122 = input.ReadDouble();
+ break;
+ }
+ case 985: {
+ DoubleField123 = input.ReadDouble();
+ break;
+ }
+ case 993: {
+ DoubleField124 = input.ReadDouble();
+ break;
+ }
+ case 1000: {
+ Int64Field125 = input.ReadInt64();
+ break;
+ }
+ case 1008: {
+ Int64Field126 = input.ReadInt64();
+ break;
+ }
+ case 1016: {
+ Int64Field127 = input.ReadInt64();
+ break;
+ }
+ case 1025: {
+ DoubleField128 = input.ReadDouble();
+ break;
+ }
+ case 1033: {
+ DoubleField129 = input.ReadDouble();
+ break;
+ }
+ }
+ }
}
+
+ #if !GOOGLE_PROTOBUF_DISABLE_BUFFER_SERIALIZATION
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void MergeFrom(pb::CodedInputStream input) {
+ public void MergeFrom(ref pb::CodedInputReader input) {
uint tag;
while ((tag = input.ReadTag()) != 0) {
switch(tag) {
default:
- _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
+ _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
break;
case 9: {
DoubleField1 = input.ReadDouble();
@@ -7162,7 +9205,7 @@ public void MergeFrom(pb::CodedInputStream input) {
}
case 802:
case 800: {
- repeatedIntField100_.AddEntriesFrom(input, _repeated_repeatedIntField100_codec);
+ repeatedIntField100_.AddEntriesFrom(ref input, _repeated_repeatedIntField100_codec);
break;
}
case 809: {
@@ -7284,6 +9327,7 @@ public void MergeFrom(pb::CodedInputStream input) {
}
}
}
+ #endif
}
diff --git a/csharp/src/Google.Protobuf.Conformance/Conformance.cs b/csharp/src/Google.Protobuf.Conformance/Conformance.cs
index 23894ad3ba4c..a8c5e310d484 100644
--- a/csharp/src/Google.Protobuf.Conformance/Conformance.cs
+++ b/csharp/src/Google.Protobuf.Conformance/Conformance.cs
@@ -107,7 +107,11 @@ public enum TestCategory {
/// This will be known by message_type == "conformance.FailureSet", a conformance
/// test should return a serialized FailureSet in protobuf_payload.
///
- public sealed partial class FailureSet : pb::IMessage {
+ public sealed partial class FailureSet : pb::IMessage
+ #if !GOOGLE_PROTOBUF_DISABLE_BUFFER_SERIALIZATION
+ , pb::IBufferMessage
+ #endif
+ {
private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new FailureSet());
private pb::UnknownFieldSet _unknownFields;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
@@ -191,6 +195,17 @@ public void WriteTo(pb::CodedOutputStream output) {
}
}
+
+ #if !GOOGLE_PROTOBUF_DISABLE_BUFFER_SERIALIZATION
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ public void WriteTo(ref pb::CodedOutputWriter output) {
+ failure_.WriteTo(ref output, _repeated_failure_codec);
+ if (_unknownFields != null) {
+ _unknownFields.WriteTo(ref output);
+ }
+ }
+ #endif
+
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public int CalculateSize() {
int size = 0;
@@ -226,6 +241,25 @@ public void MergeFrom(pb::CodedInputStream input) {
}
}
+
+ #if !GOOGLE_PROTOBUF_DISABLE_BUFFER_SERIALIZATION
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ public void MergeFrom(ref pb::CodedInputReader input) {
+ uint tag;
+ while ((tag = input.ReadTag()) != 0) {
+ switch(tag) {
+ default:
+ _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
+ break;
+ case 10: {
+ failure_.AddEntriesFrom(ref input, _repeated_failure_codec);
+ break;
+ }
+ }
+ }
+ }
+ #endif
+
}
///
@@ -235,7 +269,11 @@ public void MergeFrom(pb::CodedInputStream input) {
/// 2. parse the protobuf or JSON payload in "payload" (which may fail)
/// 3. if the parse succeeded, serialize the message in the requested format.
///
- public sealed partial class ConformanceRequest : pb::IMessage {
+ public sealed partial class ConformanceRequest : pb::IMessage
+ #if !GOOGLE_PROTOBUF_DISABLE_BUFFER_SERIALIZATION
+ , pb::IBufferMessage
+ #endif
+ {
private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ConformanceRequest());
private pb::UnknownFieldSet _unknownFields;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
@@ -524,6 +562,52 @@ public void WriteTo(pb::CodedOutputStream output) {
}
}
+
+ #if !GOOGLE_PROTOBUF_DISABLE_BUFFER_SERIALIZATION
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ public void WriteTo(ref pb::CodedOutputWriter output) {
+ if (payloadCase_ == PayloadOneofCase.ProtobufPayload) {
+ output.WriteRawTag(10);
+ output.WriteBytes(ProtobufPayload);
+ }
+ if (payloadCase_ == PayloadOneofCase.JsonPayload) {
+ output.WriteRawTag(18);
+ output.WriteString(JsonPayload);
+ }
+ if (RequestedOutputFormat != global::Conformance.WireFormat.Unspecified) {
+ output.WriteRawTag(24);
+ output.WriteEnum((int) RequestedOutputFormat);
+ }
+ if (MessageType.Length != 0) {
+ output.WriteRawTag(34);
+ output.WriteString(MessageType);
+ }
+ if (TestCategory != global::Conformance.TestCategory.UnspecifiedTest) {
+ output.WriteRawTag(40);
+ output.WriteEnum((int) TestCategory);
+ }
+ if (jspbEncodingOptions_ != null) {
+ output.WriteRawTag(50);
+ output.WriteMessage(JspbEncodingOptions);
+ }
+ if (payloadCase_ == PayloadOneofCase.JspbPayload) {
+ output.WriteRawTag(58);
+ output.WriteString(JspbPayload);
+ }
+ if (payloadCase_ == PayloadOneofCase.TextPayload) {
+ output.WriteRawTag(66);
+ output.WriteString(TextPayload);
+ }
+ if (PrintUnknownFields != false) {
+ output.WriteRawTag(72);
+ output.WriteBool(PrintUnknownFields);
+ }
+ if (_unknownFields != null) {
+ _unknownFields.WriteTo(ref output);
+ }
+ }
+ #endif
+
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public int CalculateSize() {
int size = 0;
@@ -652,12 +736,70 @@ public void MergeFrom(pb::CodedInputStream input) {
}
}
+
+ #if !GOOGLE_PROTOBUF_DISABLE_BUFFER_SERIALIZATION
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ public void MergeFrom(ref pb::CodedInputReader input) {
+ uint tag;
+ while ((tag = input.ReadTag()) != 0) {
+ switch(tag) {
+ default:
+ _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
+ break;
+ case 10: {
+ ProtobufPayload = input.ReadBytes();
+ break;
+ }
+ case 18: {
+ JsonPayload = input.ReadString();
+ break;
+ }
+ case 24: {
+ RequestedOutputFormat = (global::Conformance.WireFormat) input.ReadEnum();
+ break;
+ }
+ case 34: {
+ MessageType = input.ReadString();
+ break;
+ }
+ case 40: {
+ TestCategory = (global::Conformance.TestCategory) input.ReadEnum();
+ break;
+ }
+ case 50: {
+ if (jspbEncodingOptions_ == null) {
+ JspbEncodingOptions = new global::Conformance.JspbEncodingConfig();
+ }
+ input.ReadMessage(JspbEncodingOptions);
+ break;
+ }
+ case 58: {
+ JspbPayload = input.ReadString();
+ break;
+ }
+ case 66: {
+ TextPayload = input.ReadString();
+ break;
+ }
+ case 72: {
+ PrintUnknownFields = input.ReadBool();
+ break;
+ }
+ }
+ }
+ }
+ #endif
+
}
///
/// Represents a single test case's output.
///
- public sealed partial class ConformanceResponse : pb::IMessage {
+ public sealed partial class ConformanceResponse : pb::IMessage
+ #if !GOOGLE_PROTOBUF_DISABLE_BUFFER_SERIALIZATION
+ , pb::IBufferMessage
+ #endif
+ {
private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ConformanceResponse());
private pb::UnknownFieldSet _unknownFields;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
@@ -955,6 +1097,48 @@ public void WriteTo(pb::CodedOutputStream output) {
}
}
+
+ #if !GOOGLE_PROTOBUF_DISABLE_BUFFER_SERIALIZATION
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ public void WriteTo(ref pb::CodedOutputWriter output) {
+ if (resultCase_ == ResultOneofCase.ParseError) {
+ output.WriteRawTag(10);
+ output.WriteString(ParseError);
+ }
+ if (resultCase_ == ResultOneofCase.RuntimeError) {
+ output.WriteRawTag(18);
+ output.WriteString(RuntimeError);
+ }
+ if (resultCase_ == ResultOneofCase.ProtobufPayload) {
+ output.WriteRawTag(26);
+ output.WriteBytes(ProtobufPayload);
+ }
+ if (resultCase_ == ResultOneofCase.JsonPayload) {
+ output.WriteRawTag(34);
+ output.WriteString(JsonPayload);
+ }
+ if (resultCase_ == ResultOneofCase.Skipped) {
+ output.WriteRawTag(42);
+ output.WriteString(Skipped);
+ }
+ if (resultCase_ == ResultOneofCase.SerializeError) {
+ output.WriteRawTag(50);
+ output.WriteString(SerializeError);
+ }
+ if (resultCase_ == ResultOneofCase.JspbPayload) {
+ output.WriteRawTag(58);
+ output.WriteString(JspbPayload);
+ }
+ if (resultCase_ == ResultOneofCase.TextPayload) {
+ output.WriteRawTag(66);
+ output.WriteString(TextPayload);
+ }
+ if (_unknownFields != null) {
+ _unknownFields.WriteTo(ref output);
+ }
+ }
+ #endif
+
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public int CalculateSize() {
int size = 0;
@@ -1067,12 +1251,63 @@ public void MergeFrom(pb::CodedInputStream input) {
}
}
+
+ #if !GOOGLE_PROTOBUF_DISABLE_BUFFER_SERIALIZATION
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ public void MergeFrom(ref pb::CodedInputReader input) {
+ uint tag;
+ while ((tag = input.ReadTag()) != 0) {
+ switch(tag) {
+ default:
+ _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
+ break;
+ case 10: {
+ ParseError = input.ReadString();
+ break;
+ }
+ case 18: {
+ RuntimeError = input.ReadString();
+ break;
+ }
+ case 26: {
+ ProtobufPayload = input.ReadBytes();
+ break;
+ }
+ case 34: {
+ JsonPayload = input.ReadString();
+ break;
+ }
+ case 42: {
+ Skipped = input.ReadString();
+ break;
+ }
+ case 50: {
+ SerializeError = input.ReadString();
+ break;
+ }
+ case 58: {
+ JspbPayload = input.ReadString();
+ break;
+ }
+ case 66: {
+ TextPayload = input.ReadString();
+ break;
+ }
+ }
+ }
+ }
+ #endif
+
}
///
/// Encoding options for jspb format.
///
- public sealed partial class JspbEncodingConfig : pb::IMessage {
+ public sealed partial class JspbEncodingConfig : pb::IMessage
+ #if !GOOGLE_PROTOBUF_DISABLE_BUFFER_SERIALIZATION
+ , pb::IBufferMessage
+ #endif
+ {
private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new JspbEncodingConfig());
private pb::UnknownFieldSet _unknownFields;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
@@ -1163,6 +1398,20 @@ public void WriteTo(pb::CodedOutputStream output) {
}
}
+
+ #if !GOOGLE_PROTOBUF_DISABLE_BUFFER_SERIALIZATION
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ public void WriteTo(ref pb::CodedOutputWriter output) {
+ if (UseJspbArrayAnyFormat != false) {
+ output.WriteRawTag(8);
+ output.WriteBool(UseJspbArrayAnyFormat);
+ }
+ if (_unknownFields != null) {
+ _unknownFields.WriteTo(ref output);
+ }
+ }
+ #endif
+
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public int CalculateSize() {
int size = 0;
@@ -1202,6 +1451,25 @@ public void MergeFrom(pb::CodedInputStream input) {
}
}
+
+ #if !GOOGLE_PROTOBUF_DISABLE_BUFFER_SERIALIZATION
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ public void MergeFrom(ref pb::CodedInputReader input) {
+ uint tag;
+ while ((tag = input.ReadTag()) != 0) {
+ switch(tag) {
+ default:
+ _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
+ break;
+ case 8: {
+ UseJspbArrayAnyFormat = input.ReadBool();
+ break;
+ }
+ }
+ }
+ }
+ #endif
+
}
#endregion
diff --git a/csharp/src/Google.Protobuf.Conformance/Google.Protobuf.Conformance.csproj b/csharp/src/Google.Protobuf.Conformance/Google.Protobuf.Conformance.csproj
index ec8fb9138947..8c9122750070 100644
--- a/csharp/src/Google.Protobuf.Conformance/Google.Protobuf.Conformance.csproj
+++ b/csharp/src/Google.Protobuf.Conformance/Google.Protobuf.Conformance.csproj
@@ -4,8 +4,13 @@
netcoreapp2.1
Exe
False
+ $(DefineConstants);GOOGLE_PROTOBUF_SUPPORT_SYSTEM_MEMORY
+
+
+
+
diff --git a/csharp/src/Google.Protobuf.Conformance/Program.cs b/csharp/src/Google.Protobuf.Conformance/Program.cs
index d1093abee1f3..8ee58691274b 100644
--- a/csharp/src/Google.Protobuf.Conformance/Program.cs
+++ b/csharp/src/Google.Protobuf.Conformance/Program.cs
@@ -31,9 +31,12 @@
#endregion
using Conformance;
+using Google.Protobuf.Buffers;
using Google.Protobuf.Reflection;
using System;
+using System.Buffers;
using System.IO;
+using System.Linq;
namespace Google.Protobuf.Conformance
{
@@ -45,6 +48,8 @@ class Program
{
private static void Main(string[] args)
{
+ var mode = ParseCmdline(args);
+
// This way we get the binary streams instead of readers/writers.
var input = new BinaryReader(Console.OpenStandardInput());
var output = new BinaryWriter(Console.OpenStandardOutput());
@@ -53,14 +58,31 @@ private static void Main(string[] args)
ProtobufTestMessages.Proto2.TestAllTypesProto2.Descriptor);
int count = 0;
- while (RunTest(input, output, typeRegistry))
+ while (RunTest(input, output, typeRegistry, mode))
{
count++;
}
Console.Error.WriteLine("Received EOF after {0} tests", count);
}
- private static bool RunTest(BinaryReader input, BinaryWriter output, TypeRegistry typeRegistry)
+ private static SerializationMode ParseCmdline(string[] args)
+ {
+ var mode = SerializationMode.Stream;
+ foreach (var arg in args.Skip(1))
+ {
+ switch (arg)
+ {
+ case "--use_buffer_serialization":
+ mode = SerializationMode.Buffer;
+ break;
+ default:
+ throw new Exception($"Unknown command line argument: {arg}");
+ }
+ }
+ return mode;
+ }
+
+ private static bool RunTest(BinaryReader input, BinaryWriter output, TypeRegistry typeRegistry, SerializationMode mode)
{
int? size = ReadInt32(input);
if (size == null)
@@ -72,8 +94,9 @@ private static bool RunTest(BinaryReader input, BinaryWriter output, TypeRegistr
{
throw new EndOfStreamException("Read " + inputData.Length + " bytes of data when expecting " + size);
}
+ // It doesn't matter what parser mode we use for ConformanceRequest, it isn't being tested
ConformanceRequest request = ConformanceRequest.Parser.ParseFrom(inputData);
- ConformanceResponse response = PerformRequest(request, typeRegistry);
+ ConformanceResponse response = PerformRequest(request, typeRegistry, mode);
byte[] outputData = response.ToByteArray();
output.Write(outputData.Length);
output.Write(outputData);
@@ -81,7 +104,7 @@ private static bool RunTest(BinaryReader input, BinaryWriter output, TypeRegistr
return true;
}
- private static ConformanceResponse PerformRequest(ConformanceRequest request, TypeRegistry typeRegistry)
+ private static ConformanceResponse PerformRequest(ConformanceRequest request, TypeRegistry typeRegistry, SerializationMode mode)
{
IMessage message;
try
@@ -89,17 +112,30 @@ private static ConformanceResponse PerformRequest(ConformanceRequest request, Ty
switch (request.PayloadCase)
{
case ConformanceRequest.PayloadOneofCase.JsonPayload:
- if (request.TestCategory == global::Conformance.TestCategory.JsonIgnoreUnknownParsingTest) {
+ {
+ // There is no buffer implementation of JSON. Use standard implementation
+ if (request.TestCategory == global::Conformance.TestCategory.JsonIgnoreUnknownParsingTest)
+ {
return new ConformanceResponse { Skipped = "CSharp doesn't support skipping unknown fields in json parsing." };
}
var parser = new JsonParser(new JsonParser.Settings(20, typeRegistry));
message = parser.Parse(request.JsonPayload);
break;
+ }
case ConformanceRequest.PayloadOneofCase.ProtobufPayload:
{
if (request.MessageType.Equals("protobuf_test_messages.proto3.TestAllTypesProto3"))
{
- message = ProtobufTestMessages.Proto3.TestAllTypesProto3.Parser.ParseFrom(request.ProtobufPayload);
+ var messageParser = ProtobufTestMessages.Proto3.TestAllTypesProto3.Parser;
+
+ if (mode == SerializationMode.Stream)
+ {
+ message = messageParser.ParseFrom(request.ProtobufPayload);
+ }
+ else
+ {
+ message = messageParser.ParseFrom(new ReadOnlySequence(request.ProtobufPayload.ToByteArray()));
+ }
}
else if (request.MessageType.Equals("protobuf_test_messages.proto2.TestAllTypesProto2"))
{
@@ -109,18 +145,27 @@ private static ConformanceResponse PerformRequest(ConformanceRequest request, Ty
ProtobufTestMessages.Proto2.TestAllTypesProto2.Types.MessageSetCorrectExtension1.Extensions.MessageSetExtension,
ProtobufTestMessages.Proto2.TestAllTypesProto2.Types.MessageSetCorrectExtension2.Extensions.MessageSetExtension
};
- message = ProtobufTestMessages.Proto2.TestAllTypesProto2.Parser.WithExtensionRegistry(registry).ParseFrom(request.ProtobufPayload);
+ var messageParser = ProtobufTestMessages.Proto2.TestAllTypesProto2.Parser.WithExtensionRegistry(registry);
+
+ if (mode == SerializationMode.Stream)
+ {
+ message = messageParser.ParseFrom(request.ProtobufPayload);
+ }
+ else
+ {
+ message = messageParser.ParseFrom(new ReadOnlySequence(request.ProtobufPayload.ToByteArray()));
+ }
}
else
{
- throw new Exception(" Protobuf request doesn't have specific payload type");
+ throw new Exception("Protobuf request doesn't have specific payload type");
}
break;
}
- case ConformanceRequest.PayloadOneofCase.TextPayload:
- {
- return new ConformanceResponse { Skipped = "CSharp doesn't support text format" };
- }
+ case ConformanceRequest.PayloadOneofCase.TextPayload:
+ {
+ return new ConformanceResponse { Skipped = "CSharp doesn't support text format" };
+ }
default:
throw new Exception("Unsupported request payload: " + request.PayloadCase);
}
@@ -141,7 +186,19 @@ private static ConformanceResponse PerformRequest(ConformanceRequest request, Ty
var formatter = new JsonFormatter(new JsonFormatter.Settings(false, typeRegistry));
return new ConformanceResponse { JsonPayload = formatter.Format(message) };
case global::Conformance.WireFormat.Protobuf:
- return new ConformanceResponse { ProtobufPayload = message.ToByteString() };
+ if (mode == SerializationMode.Stream)
+ {
+ return new ConformanceResponse { ProtobufPayload = message.ToByteString() };
+ }
+ else
+ {
+ var bufferMessage = (IBufferMessage)message;
+ var byteArrayWriter = new ArrayBufferWriter();
+ var codedOutputWriter = new CodedOutputWriter(byteArrayWriter);
+ bufferMessage.WriteTo(ref codedOutputWriter);
+ codedOutputWriter.Flush();
+ return new ConformanceResponse { ProtobufPayload = ByteString.CopyFrom(byteArrayWriter.WrittenSpan.ToArray()) };
+ }
default:
throw new Exception("Unsupported request output format: " + request.RequestedOutputFormat);
}
@@ -166,5 +223,11 @@ private static ConformanceResponse PerformRequest(ConformanceRequest request, Ty
}
return bytes[0] | (bytes[1] << 8) | (bytes[2] << 16) | (bytes[3] << 24);
}
+
+ private enum SerializationMode
+ {
+ Stream,
+ Buffer
+ }
}
}
diff --git a/csharp/src/Google.Protobuf.Test.TestProtos/Google.Protobuf.Test.TestProtos.csproj b/csharp/src/Google.Protobuf.Test.TestProtos/Google.Protobuf.Test.TestProtos.csproj
index 5b705804aa27..b3a2393fce2d 100644
--- a/csharp/src/Google.Protobuf.Test.TestProtos/Google.Protobuf.Test.TestProtos.csproj
+++ b/csharp/src/Google.Protobuf.Test.TestProtos/Google.Protobuf.Test.TestProtos.csproj
@@ -14,6 +14,10 @@
False
+
+ $(DefineConstants);GOOGLE_PROTOBUF_DISABLE_BUFFER_SERIALIZATION
+
+
diff --git a/csharp/src/Google.Protobuf.Test.TestProtos/MapUnittestProto3.cs b/csharp/src/Google.Protobuf.Test.TestProtos/MapUnittestProto3.cs
index 197b197d0ea4..9349119c668a 100644
--- a/csharp/src/Google.Protobuf.Test.TestProtos/MapUnittestProto3.cs
+++ b/csharp/src/Google.Protobuf.Test.TestProtos/MapUnittestProto3.cs
@@ -176,7 +176,11 @@ public enum MapEnum {
///
/// Tests maps.
///
- public sealed partial class TestMap : pb::IMessage {
+ public sealed partial class TestMap : pb::IMessage
+ #if !GOOGLE_PROTOBUF_DISABLE_BUFFER_SERIALIZATION
+ , pb::IBufferMessage
+ #endif
+ {
private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new TestMap());
private pb::UnknownFieldSet _unknownFields;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
@@ -484,6 +488,33 @@ public void WriteTo(pb::CodedOutputStream output) {
}
}
+
+ #if !GOOGLE_PROTOBUF_DISABLE_BUFFER_SERIALIZATION
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ public void WriteTo(ref pb::CodedOutputWriter output) {
+ mapInt32Int32_.WriteTo(ref output, _map_mapInt32Int32_codec);
+ mapInt64Int64_.WriteTo(ref output, _map_mapInt64Int64_codec);
+ mapUint32Uint32_.WriteTo(ref output, _map_mapUint32Uint32_codec);
+ mapUint64Uint64_.WriteTo(ref output, _map_mapUint64Uint64_codec);
+ mapSint32Sint32_.WriteTo(ref output, _map_mapSint32Sint32_codec);
+ mapSint64Sint64_.WriteTo(ref output, _map_mapSint64Sint64_codec);
+ mapFixed32Fixed32_.WriteTo(ref output, _map_mapFixed32Fixed32_codec);
+ mapFixed64Fixed64_.WriteTo(ref output, _map_mapFixed64Fixed64_codec);
+ mapSfixed32Sfixed32_.WriteTo(ref output, _map_mapSfixed32Sfixed32_codec);
+ mapSfixed64Sfixed64_.WriteTo(ref output, _map_mapSfixed64Sfixed64_codec);
+ mapInt32Float_.WriteTo(ref output, _map_mapInt32Float_codec);
+ mapInt32Double_.WriteTo(ref output, _map_mapInt32Double_codec);
+ mapBoolBool_.WriteTo(ref output, _map_mapBoolBool_codec);
+ mapStringString_.WriteTo(ref output, _map_mapStringString_codec);
+ mapInt32Bytes_.WriteTo(ref output, _map_mapInt32Bytes_codec);
+ mapInt32Enum_.WriteTo(ref output, _map_mapInt32Enum_codec);
+ mapInt32ForeignMessage_.WriteTo(ref output, _map_mapInt32ForeignMessage_codec);
+ if (_unknownFields != null) {
+ _unknownFields.WriteTo(ref output);
+ }
+ }
+ #endif
+
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public int CalculateSize() {
int size = 0;
@@ -615,9 +646,96 @@ public void MergeFrom(pb::CodedInputStream input) {
}
}
+
+ #if !GOOGLE_PROTOBUF_DISABLE_BUFFER_SERIALIZATION
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ public void MergeFrom(ref pb::CodedInputReader input) {
+ uint tag;
+ while ((tag = input.ReadTag()) != 0) {
+ switch(tag) {
+ default:
+ _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
+ break;
+ case 10: {
+ mapInt32Int32_.AddEntriesFrom(ref input, _map_mapInt32Int32_codec);
+ break;
+ }
+ case 18: {
+ mapInt64Int64_.AddEntriesFrom(ref input, _map_mapInt64Int64_codec);
+ break;
+ }
+ case 26: {
+ mapUint32Uint32_.AddEntriesFrom(ref input, _map_mapUint32Uint32_codec);
+ break;
+ }
+ case 34: {
+ mapUint64Uint64_.AddEntriesFrom(ref input, _map_mapUint64Uint64_codec);
+ break;
+ }
+ case 42: {
+ mapSint32Sint32_.AddEntriesFrom(ref input, _map_mapSint32Sint32_codec);
+ break;
+ }
+ case 50: {
+ mapSint64Sint64_.AddEntriesFrom(ref input, _map_mapSint64Sint64_codec);
+ break;
+ }
+ case 58: {
+ mapFixed32Fixed32_.AddEntriesFrom(ref input, _map_mapFixed32Fixed32_codec);
+ break;
+ }
+ case 66: {
+ mapFixed64Fixed64_.AddEntriesFrom(ref input, _map_mapFixed64Fixed64_codec);
+ break;
+ }
+ case 74: {
+ mapSfixed32Sfixed32_.AddEntriesFrom(ref input, _map_mapSfixed32Sfixed32_codec);
+ break;
+ }
+ case 82: {
+ mapSfixed64Sfixed64_.AddEntriesFrom(ref input, _map_mapSfixed64Sfixed64_codec);
+ break;
+ }
+ case 90: {
+ mapInt32Float_.AddEntriesFrom(ref input, _map_mapInt32Float_codec);
+ break;
+ }
+ case 98: {
+ mapInt32Double_.AddEntriesFrom(ref input, _map_mapInt32Double_codec);
+ break;
+ }
+ case 106: {
+ mapBoolBool_.AddEntriesFrom(ref input, _map_mapBoolBool_codec);
+ break;
+ }
+ case 114: {
+ mapStringString_.AddEntriesFrom(ref input, _map_mapStringString_codec);
+ break;
+ }
+ case 122: {
+ mapInt32Bytes_.AddEntriesFrom(ref input, _map_mapInt32Bytes_codec);
+ break;
+ }
+ case 130: {
+ mapInt32Enum_.AddEntriesFrom(ref input, _map_mapInt32Enum_codec);
+ break;
+ }
+ case 138: {
+ mapInt32ForeignMessage_.AddEntriesFrom(ref input, _map_mapInt32ForeignMessage_codec);
+ break;
+ }
+ }
+ }
+ }
+ #endif
+
}
- public sealed partial class TestMapSubmessage : pb::IMessage {
+ public sealed partial class TestMapSubmessage : pb::IMessage
+ #if !GOOGLE_PROTOBUF_DISABLE_BUFFER_SERIALIZATION
+ , pb::IBufferMessage
+ #endif
+ {
private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new TestMapSubmessage());
private pb::UnknownFieldSet _unknownFields;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
@@ -705,6 +823,20 @@ public void WriteTo(pb::CodedOutputStream output) {
}
}
+
+ #if !GOOGLE_PROTOBUF_DISABLE_BUFFER_SERIALIZATION
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ public void WriteTo(ref pb::CodedOutputWriter output) {
+ if (testMap_ != null) {
+ output.WriteRawTag(10);
+ output.WriteMessage(TestMap);
+ }
+ if (_unknownFields != null) {
+ _unknownFields.WriteTo(ref output);
+ }
+ }
+ #endif
+
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public int CalculateSize() {
int size = 0;
@@ -750,9 +882,35 @@ public void MergeFrom(pb::CodedInputStream input) {
}
}
+
+ #if !GOOGLE_PROTOBUF_DISABLE_BUFFER_SERIALIZATION
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ public void MergeFrom(ref pb::CodedInputReader input) {
+ uint tag;
+ while ((tag = input.ReadTag()) != 0) {
+ switch(tag) {
+ default:
+ _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
+ break;
+ case 10: {
+ if (testMap_ == null) {
+ TestMap = new global::Google.Protobuf.TestProtos.TestMap();
+ }
+ input.ReadMessage(TestMap);
+ break;
+ }
+ }
+ }
+ }
+ #endif
+
}
- public sealed partial class TestMessageMap : pb::IMessage {
+ public sealed partial class TestMessageMap : pb::IMessage
+ #if !GOOGLE_PROTOBUF_DISABLE_BUFFER_SERIALIZATION
+ , pb::IBufferMessage
+ #endif
+ {
private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new TestMessageMap());
private pb::UnknownFieldSet _unknownFields;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
@@ -836,6 +994,17 @@ public void WriteTo(pb::CodedOutputStream output) {
}
}
+
+ #if !GOOGLE_PROTOBUF_DISABLE_BUFFER_SERIALIZATION
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ public void WriteTo(ref pb::CodedOutputWriter output) {
+ mapInt32Message_.WriteTo(ref output, _map_mapInt32Message_codec);
+ if (_unknownFields != null) {
+ _unknownFields.WriteTo(ref output);
+ }
+ }
+ #endif
+
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public int CalculateSize() {
int size = 0;
@@ -871,12 +1040,35 @@ public void MergeFrom(pb::CodedInputStream input) {
}
}
+
+ #if !GOOGLE_PROTOBUF_DISABLE_BUFFER_SERIALIZATION
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ public void MergeFrom(ref pb::CodedInputReader input) {
+ uint tag;
+ while ((tag = input.ReadTag()) != 0) {
+ switch(tag) {
+ default:
+ _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
+ break;
+ case 10: {
+ mapInt32Message_.AddEntriesFrom(ref input, _map_mapInt32Message_codec);
+ break;
+ }
+ }
+ }
+ }
+ #endif
+
}
///
/// Two map fields share the same entry default instance.
///
- public sealed partial class TestSameTypeMap : pb::IMessage {
+ public sealed partial class TestSameTypeMap : pb::IMessage
+ #if !GOOGLE_PROTOBUF_DISABLE_BUFFER_SERIALIZATION
+ , pb::IBufferMessage
+ #endif
+ {
private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new TestSameTypeMap());
private pb::UnknownFieldSet _unknownFields;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
@@ -974,6 +1166,18 @@ public void WriteTo(pb::CodedOutputStream output) {
}
}
+
+ #if !GOOGLE_PROTOBUF_DISABLE_BUFFER_SERIALIZATION
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ public void WriteTo(ref pb::CodedOutputWriter output) {
+ map1_.WriteTo(ref output, _map_map1_codec);
+ map2_.WriteTo(ref output, _map_map2_codec);
+ if (_unknownFields != null) {
+ _unknownFields.WriteTo(ref output);
+ }
+ }
+ #endif
+
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public int CalculateSize() {
int size = 0;
@@ -1015,9 +1219,36 @@ public void MergeFrom(pb::CodedInputStream input) {
}
}
+
+ #if !GOOGLE_PROTOBUF_DISABLE_BUFFER_SERIALIZATION
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ public void MergeFrom(ref pb::CodedInputReader input) {
+ uint tag;
+ while ((tag = input.ReadTag()) != 0) {
+ switch(tag) {
+ default:
+ _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
+ break;
+ case 10: {
+ map1_.AddEntriesFrom(ref input, _map_map1_codec);
+ break;
+ }
+ case 18: {
+ map2_.AddEntriesFrom(ref input, _map_map2_codec);
+ break;
+ }
+ }
+ }
+ }
+ #endif
+
}
- public sealed partial class TestArenaMap : pb::IMessage {
+ public sealed partial class TestArenaMap : pb::IMessage
+ #if !GOOGLE_PROTOBUF_DISABLE_BUFFER_SERIALIZATION
+ , pb::IBufferMessage
+ #endif
+ {
private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new TestArenaMap());
private pb::UnknownFieldSet _unknownFields;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
@@ -1297,6 +1528,31 @@ public void WriteTo(pb::CodedOutputStream output) {
}
}
+
+ #if !GOOGLE_PROTOBUF_DISABLE_BUFFER_SERIALIZATION
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ public void WriteTo(ref pb::CodedOutputWriter output) {
+ mapInt32Int32_.WriteTo(ref output, _map_mapInt32Int32_codec);
+ mapInt64Int64_.WriteTo(ref output, _map_mapInt64Int64_codec);
+ mapUint32Uint32_.WriteTo(ref output, _map_mapUint32Uint32_codec);
+ mapUint64Uint64_.WriteTo(ref output, _map_mapUint64Uint64_codec);
+ mapSint32Sint32_.WriteTo(ref output, _map_mapSint32Sint32_codec);
+ mapSint64Sint64_.WriteTo(ref output, _map_mapSint64Sint64_codec);
+ mapFixed32Fixed32_.WriteTo(ref output, _map_mapFixed32Fixed32_codec);
+ mapFixed64Fixed64_.WriteTo(ref output, _map_mapFixed64Fixed64_codec);
+ mapSfixed32Sfixed32_.WriteTo(ref output, _map_mapSfixed32Sfixed32_codec);
+ mapSfixed64Sfixed64_.WriteTo(ref output, _map_mapSfixed64Sfixed64_codec);
+ mapInt32Float_.WriteTo(ref output, _map_mapInt32Float_codec);
+ mapInt32Double_.WriteTo(ref output, _map_mapInt32Double_codec);
+ mapBoolBool_.WriteTo(ref output, _map_mapBoolBool_codec);
+ mapInt32Enum_.WriteTo(ref output, _map_mapInt32Enum_codec);
+ mapInt32ForeignMessage_.WriteTo(ref output, _map_mapInt32ForeignMessage_codec);
+ if (_unknownFields != null) {
+ _unknownFields.WriteTo(ref output);
+ }
+ }
+ #endif
+
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public int CalculateSize() {
int size = 0;
@@ -1416,13 +1672,92 @@ public void MergeFrom(pb::CodedInputStream input) {
}
}
+
+ #if !GOOGLE_PROTOBUF_DISABLE_BUFFER_SERIALIZATION
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ public void MergeFrom(ref pb::CodedInputReader input) {
+ uint tag;
+ while ((tag = input.ReadTag()) != 0) {
+ switch(tag) {
+ default:
+ _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
+ break;
+ case 10: {
+ mapInt32Int32_.AddEntriesFrom(ref input, _map_mapInt32Int32_codec);
+ break;
+ }
+ case 18: {
+ mapInt64Int64_.AddEntriesFrom(ref input, _map_mapInt64Int64_codec);
+ break;
+ }
+ case 26: {
+ mapUint32Uint32_.AddEntriesFrom(ref input, _map_mapUint32Uint32_codec);
+ break;
+ }
+ case 34: {
+ mapUint64Uint64_.AddEntriesFrom(ref input, _map_mapUint64Uint64_codec);
+ break;
+ }
+ case 42: {
+ mapSint32Sint32_.AddEntriesFrom(ref input, _map_mapSint32Sint32_codec);
+ break;
+ }
+ case 50: {
+ mapSint64Sint64_.AddEntriesFrom(ref input, _map_mapSint64Sint64_codec);
+ break;
+ }
+ case 58: {
+ mapFixed32Fixed32_.AddEntriesFrom(ref input, _map_mapFixed32Fixed32_codec);
+ break;
+ }
+ case 66: {
+ mapFixed64Fixed64_.AddEntriesFrom(ref input, _map_mapFixed64Fixed64_codec);
+ break;
+ }
+ case 74: {
+ mapSfixed32Sfixed32_.AddEntriesFrom(ref input, _map_mapSfixed32Sfixed32_codec);
+ break;
+ }
+ case 82: {
+ mapSfixed64Sfixed64_.AddEntriesFrom(ref input, _map_mapSfixed64Sfixed64_codec);
+ break;
+ }
+ case 90: {
+ mapInt32Float_.AddEntriesFrom(ref input, _map_mapInt32Float_codec);
+ break;
+ }
+ case 98: {
+ mapInt32Double_.AddEntriesFrom(ref input, _map_mapInt32Double_codec);
+ break;
+ }
+ case 106: {
+ mapBoolBool_.AddEntriesFrom(ref input, _map_mapBoolBool_codec);
+ break;
+ }
+ case 114: {
+ mapInt32Enum_.AddEntriesFrom(ref input, _map_mapInt32Enum_codec);
+ break;
+ }
+ case 122: {
+ mapInt32ForeignMessage_.AddEntriesFrom(ref input, _map_mapInt32ForeignMessage_codec);
+ break;
+ }
+ }
+ }
+ }
+ #endif
+
}
///
/// Previously, message containing enum called Type cannot be used as value of
/// map field.
///
- public sealed partial class MessageContainingEnumCalledType : pb::IMessage {
+ public sealed partial class MessageContainingEnumCalledType : pb::IMessage
+ #if !GOOGLE_PROTOBUF_DISABLE_BUFFER_SERIALIZATION
+ , pb::IBufferMessage
+ #endif
+ {
private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new MessageContainingEnumCalledType());
private pb::UnknownFieldSet _unknownFields;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
@@ -1506,6 +1841,17 @@ public void WriteTo(pb::CodedOutputStream output) {
}
}
+
+ #if !GOOGLE_PROTOBUF_DISABLE_BUFFER_SERIALIZATION
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ public void WriteTo(ref pb::CodedOutputWriter output) {
+ type_.WriteTo(ref output, _map_type_codec);
+ if (_unknownFields != null) {
+ _unknownFields.WriteTo(ref output);
+ }
+ }
+ #endif
+
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public int CalculateSize() {
int size = 0;
@@ -1541,6 +1887,25 @@ public void MergeFrom(pb::CodedInputStream input) {
}
}
+
+ #if !GOOGLE_PROTOBUF_DISABLE_BUFFER_SERIALIZATION
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ public void MergeFrom(ref pb::CodedInputReader input) {
+ uint tag;
+ while ((tag = input.ReadTag()) != 0) {
+ switch(tag) {
+ default:
+ _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
+ break;
+ case 10: {
+ type_.AddEntriesFrom(ref input, _map_type_codec);
+ break;
+ }
+ }
+ }
+ }
+ #endif
+
#region Nested types
/// Container for nested types declared in the MessageContainingEnumCalledType message type.
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
@@ -1557,7 +1922,11 @@ public enum Type {
///
/// Previously, message cannot contain map field called "entry".
///
- public sealed partial class MessageContainingMapCalledEntry : pb::IMessage {
+ public sealed partial class MessageContainingMapCalledEntry : pb::IMessage
+ #if !GOOGLE_PROTOBUF_DISABLE_BUFFER_SERIALIZATION
+ , pb::IBufferMessage
+ #endif
+ {
private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new MessageContainingMapCalledEntry());
private pb::UnknownFieldSet _unknownFields;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
@@ -1641,6 +2010,17 @@ public void WriteTo(pb::CodedOutputStream output) {
}
}
+
+ #if !GOOGLE_PROTOBUF_DISABLE_BUFFER_SERIALIZATION
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ public void WriteTo(ref pb::CodedOutputWriter output) {
+ entry_.WriteTo(ref output, _map_entry_codec);
+ if (_unknownFields != null) {
+ _unknownFields.WriteTo(ref output);
+ }
+ }
+ #endif
+
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public int CalculateSize() {
int size = 0;
@@ -1676,6 +2056,25 @@ public void MergeFrom(pb::CodedInputStream input) {
}
}
+
+ #if !GOOGLE_PROTOBUF_DISABLE_BUFFER_SERIALIZATION
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ public void MergeFrom(ref pb::CodedInputReader input) {
+ uint tag;
+ while ((tag = input.ReadTag()) != 0) {
+ switch(tag) {
+ default:
+ _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
+ break;
+ case 10: {
+ entry_.AddEntriesFrom(ref input, _map_entry_codec);
+ break;
+ }
+ }
+ }
+ }
+ #endif
+
}
#endregion
diff --git a/csharp/src/Google.Protobuf.Test.TestProtos/TestMessagesProto2.cs b/csharp/src/Google.Protobuf.Test.TestProtos/TestMessagesProto2.cs
index 350fb7cde714..71bdb895597f 100644
--- a/csharp/src/Google.Protobuf.Test.TestProtos/TestMessagesProto2.cs
+++ b/csharp/src/Google.Protobuf.Test.TestProtos/TestMessagesProto2.cs
@@ -244,7 +244,11 @@ public enum ForeignEnumProto2 {
/// could trigger bugs that occur in any message type in this file. We verify
/// this stays true in a unit test.
///
- public sealed partial class TestAllTypesProto2 : pb::IExtendableMessage {
+ public sealed partial class TestAllTypesProto2 : pb::IExtendableMessage
+ #if !GOOGLE_PROTOBUF_DISABLE_BUFFER_SERIALIZATION
+ , pb::IBufferMessage
+ #endif
+ {
private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new TestAllTypesProto2());
private pb::UnknownFieldSet _unknownFields;
private pb::ExtensionSet _extensions;
@@ -2876,6 +2880,288 @@ public void WriteTo(pb::CodedOutputStream output) {
}
}
+
+ #if !GOOGLE_PROTOBUF_DISABLE_BUFFER_SERIALIZATION
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ public void WriteTo(ref pb::CodedOutputWriter output) {
+ if (HasOptionalInt32) {
+ output.WriteRawTag(8);
+ output.WriteInt32(OptionalInt32);
+ }
+ if (HasOptionalInt64) {
+ output.WriteRawTag(16);
+ output.WriteInt64(OptionalInt64);
+ }
+ if (HasOptionalUint32) {
+ output.WriteRawTag(24);
+ output.WriteUInt32(OptionalUint32);
+ }
+ if (HasOptionalUint64) {
+ output.WriteRawTag(32);
+ output.WriteUInt64(OptionalUint64);
+ }
+ if (HasOptionalSint32) {
+ output.WriteRawTag(40);
+ output.WriteSInt32(OptionalSint32);
+ }
+ if (HasOptionalSint64) {
+ output.WriteRawTag(48);
+ output.WriteSInt64(OptionalSint64);
+ }
+ if (HasOptionalFixed32) {
+ output.WriteRawTag(61);
+ output.WriteFixed32(OptionalFixed32);
+ }
+ if (HasOptionalFixed64) {
+ output.WriteRawTag(65);
+ output.WriteFixed64(OptionalFixed64);
+ }
+ if (HasOptionalSfixed32) {
+ output.WriteRawTag(77);
+ output.WriteSFixed32(OptionalSfixed32);
+ }
+ if (HasOptionalSfixed64) {
+ output.WriteRawTag(81);
+ output.WriteSFixed64(OptionalSfixed64);
+ }
+ if (HasOptionalFloat) {
+ output.WriteRawTag(93);
+ output.WriteFloat(OptionalFloat);
+ }
+ if (HasOptionalDouble) {
+ output.WriteRawTag(97);
+ output.WriteDouble(OptionalDouble);
+ }
+ if (HasOptionalBool) {
+ output.WriteRawTag(104);
+ output.WriteBool(OptionalBool);
+ }
+ if (HasOptionalString) {
+ output.WriteRawTag(114);
+ output.WriteString(OptionalString);
+ }
+ if (HasOptionalBytes) {
+ output.WriteRawTag(122);
+ output.WriteBytes(OptionalBytes);
+ }
+ if (HasOptionalNestedMessage) {
+ output.WriteRawTag(146, 1);
+ output.WriteMessage(OptionalNestedMessage);
+ }
+ if (HasOptionalForeignMessage) {
+ output.WriteRawTag(154, 1);
+ output.WriteMessage(OptionalForeignMessage);
+ }
+ if (HasOptionalNestedEnum) {
+ output.WriteRawTag(168, 1);
+ output.WriteEnum((int) OptionalNestedEnum);
+ }
+ if (HasOptionalForeignEnum) {
+ output.WriteRawTag(176, 1);
+ output.WriteEnum((int) OptionalForeignEnum);
+ }
+ if (HasOptionalStringPiece) {
+ output.WriteRawTag(194, 1);
+ output.WriteString(OptionalStringPiece);
+ }
+ if (HasOptionalCord) {
+ output.WriteRawTag(202, 1);
+ output.WriteString(OptionalCord);
+ }
+ if (HasRecursiveMessage) {
+ output.WriteRawTag(218, 1);
+ output.WriteMessage(RecursiveMessage);
+ }
+ repeatedInt32_.WriteTo(ref output, _repeated_repeatedInt32_codec);
+ repeatedInt64_.WriteTo(ref output, _repeated_repeatedInt64_codec);
+ repeatedUint32_.WriteTo(ref output, _repeated_repeatedUint32_codec);
+ repeatedUint64_.WriteTo(ref output, _repeated_repeatedUint64_codec);
+ repeatedSint32_.WriteTo(ref output, _repeated_repeatedSint32_codec);
+ repeatedSint64_.WriteTo(ref output, _repeated_repeatedSint64_codec);
+ repeatedFixed32_.WriteTo(ref output, _repeated_repeatedFixed32_codec);
+ repeatedFixed64_.WriteTo(ref output, _repeated_repeatedFixed64_codec);
+ repeatedSfixed32_.WriteTo(ref output, _repeated_repeatedSfixed32_codec);
+ repeatedSfixed64_.WriteTo(ref output, _repeated_repeatedSfixed64_codec);
+ repeatedFloat_.WriteTo(ref output, _repeated_repeatedFloat_codec);
+ repeatedDouble_.WriteTo(ref output, _repeated_repeatedDouble_codec);
+ repeatedBool_.WriteTo(ref output, _repeated_repeatedBool_codec);
+ repeatedString_.WriteTo(ref output, _repeated_repeatedString_codec);
+ repeatedBytes_.WriteTo(ref output, _repeated_repeatedBytes_codec);
+ repeatedNestedMessage_.WriteTo(ref output, _repeated_repeatedNestedMessage_codec);
+ repeatedForeignMessage_.WriteTo(ref output, _repeated_repeatedForeignMessage_codec);
+ repeatedNestedEnum_.WriteTo(ref output, _repeated_repeatedNestedEnum_codec);
+ repeatedForeignEnum_.WriteTo(ref output, _repeated_repeatedForeignEnum_codec);
+ repeatedStringPiece_.WriteTo(ref output, _repeated_repeatedStringPiece_codec);
+ repeatedCord_.WriteTo(ref output, _repeated_repeatedCord_codec);
+ mapInt32Int32_.WriteTo(ref output, _map_mapInt32Int32_codec);
+ mapInt64Int64_.WriteTo(ref output, _map_mapInt64Int64_codec);
+ mapUint32Uint32_.WriteTo(ref output, _map_mapUint32Uint32_codec);
+ mapUint64Uint64_.WriteTo(ref output, _map_mapUint64Uint64_codec);
+ mapSint32Sint32_.WriteTo(ref output, _map_mapSint32Sint32_codec);
+ mapSint64Sint64_.WriteTo(ref output, _map_mapSint64Sint64_codec);
+ mapFixed32Fixed32_.WriteTo(ref output, _map_mapFixed32Fixed32_codec);
+ mapFixed64Fixed64_.WriteTo(ref output, _map_mapFixed64Fixed64_codec);
+ mapSfixed32Sfixed32_.WriteTo(ref output, _map_mapSfixed32Sfixed32_codec);
+ mapSfixed64Sfixed64_.WriteTo(ref output, _map_mapSfixed64Sfixed64_codec);
+ mapInt32Float_.WriteTo(ref output, _map_mapInt32Float_codec);
+ mapInt32Double_.WriteTo(ref output, _map_mapInt32Double_codec);
+ mapBoolBool_.WriteTo(ref output, _map_mapBoolBool_codec);
+ mapStringString_.WriteTo(ref output, _map_mapStringString_codec);
+ mapStringBytes_.WriteTo(ref output, _map_mapStringBytes_codec);
+ mapStringNestedMessage_.WriteTo(ref output, _map_mapStringNestedMessage_codec);
+ mapStringForeignMessage_.WriteTo(ref output, _map_mapStringForeignMessage_codec);
+ mapStringNestedEnum_.WriteTo(ref output, _map_mapStringNestedEnum_codec);
+ mapStringForeignEnum_.WriteTo(ref output, _map_mapStringForeignEnum_codec);
+ packedInt32_.WriteTo(ref output, _repeated_packedInt32_codec);
+ packedInt64_.WriteTo(ref output, _repeated_packedInt64_codec);
+ packedUint32_.WriteTo(ref output, _repeated_packedUint32_codec);
+ packedUint64_.WriteTo(ref output, _repeated_packedUint64_codec);
+ packedSint32_.WriteTo(ref output, _repeated_packedSint32_codec);
+ packedSint64_.WriteTo(ref output, _repeated_packedSint64_codec);
+ packedFixed32_.WriteTo(ref output, _repeated_packedFixed32_codec);
+ packedFixed64_.WriteTo(ref output, _repeated_packedFixed64_codec);
+ packedSfixed32_.WriteTo(ref output, _repeated_packedSfixed32_codec);
+ packedSfixed64_.WriteTo(ref output, _repeated_packedSfixed64_codec);
+ packedFloat_.WriteTo(ref output, _repeated_packedFloat_codec);
+ packedDouble_.WriteTo(ref output, _repeated_packedDouble_codec);
+ packedBool_.WriteTo(ref output, _repeated_packedBool_codec);
+ packedNestedEnum_.WriteTo(ref output, _repeated_packedNestedEnum_codec);
+ unpackedInt32_.WriteTo(ref output, _repeated_unpackedInt32_codec);
+ unpackedInt64_.WriteTo(ref output, _repeated_unpackedInt64_codec);
+ unpackedUint32_.WriteTo(ref output, _repeated_unpackedUint32_codec);
+ unpackedUint64_.WriteTo(ref output, _repeated_unpackedUint64_codec);
+ unpackedSint32_.WriteTo(ref output, _repeated_unpackedSint32_codec);
+ unpackedSint64_.WriteTo(ref output, _repeated_unpackedSint64_codec);
+ unpackedFixed32_.WriteTo(ref output, _repeated_unpackedFixed32_codec);
+ unpackedFixed64_.WriteTo(ref output, _repeated_unpackedFixed64_codec);
+ unpackedSfixed32_.WriteTo(ref output, _repeated_unpackedSfixed32_codec);
+ unpackedSfixed64_.WriteTo(ref output, _repeated_unpackedSfixed64_codec);
+ unpackedFloat_.WriteTo(ref output, _repeated_unpackedFloat_codec);
+ unpackedDouble_.WriteTo(ref output, _repeated_unpackedDouble_codec);
+ unpackedBool_.WriteTo(ref output, _repeated_unpackedBool_codec);
+ unpackedNestedEnum_.WriteTo(ref output, _repeated_unpackedNestedEnum_codec);
+ if (HasOneofUint32) {
+ output.WriteRawTag(248, 6);
+ output.WriteUInt32(OneofUint32);
+ }
+ if (HasOneofNestedMessage) {
+ output.WriteRawTag(130, 7);
+ output.WriteMessage(OneofNestedMessage);
+ }
+ if (HasOneofString) {
+ output.WriteRawTag(138, 7);
+ output.WriteString(OneofString);
+ }
+ if (HasOneofBytes) {
+ output.WriteRawTag(146, 7);
+ output.WriteBytes(OneofBytes);
+ }
+ if (HasOneofBool) {
+ output.WriteRawTag(152, 7);
+ output.WriteBool(OneofBool);
+ }
+ if (HasOneofUint64) {
+ output.WriteRawTag(160, 7);
+ output.WriteUInt64(OneofUint64);
+ }
+ if (HasOneofFloat) {
+ output.WriteRawTag(173, 7);
+ output.WriteFloat(OneofFloat);
+ }
+ if (HasOneofDouble) {
+ output.WriteRawTag(177, 7);
+ output.WriteDouble(OneofDouble);
+ }
+ if (HasOneofEnum) {
+ output.WriteRawTag(184, 7);
+ output.WriteEnum((int) OneofEnum);
+ }
+ if (HasData) {
+ output.WriteRawTag(203, 12);
+ output.WriteGroup(Data);
+ output.WriteRawTag(204, 12);
+ }
+ if (HasFieldname1) {
+ output.WriteRawTag(136, 25);
+ output.WriteInt32(Fieldname1);
+ }
+ if (HasFieldName2) {
+ output.WriteRawTag(144, 25);
+ output.WriteInt32(FieldName2);
+ }
+ if (HasFieldName3) {
+ output.WriteRawTag(152, 25);
+ output.WriteInt32(FieldName3);
+ }
+ if (HasFieldName4) {
+ output.WriteRawTag(160, 25);
+ output.WriteInt32(FieldName4);
+ }
+ if (HasField0Name5) {
+ output.WriteRawTag(168, 25);
+ output.WriteInt32(Field0Name5);
+ }
+ if (HasField0Name6) {
+ output.WriteRawTag(176, 25);
+ output.WriteInt32(Field0Name6);
+ }
+ if (HasFieldName7) {
+ output.WriteRawTag(184, 25);
+ output.WriteInt32(FieldName7);
+ }
+ if (HasFieldName8) {
+ output.WriteRawTag(192, 25);
+ output.WriteInt32(FieldName8);
+ }
+ if (HasFieldName9) {
+ output.WriteRawTag(200, 25);
+ output.WriteInt32(FieldName9);
+ }
+ if (HasFieldName10) {
+ output.WriteRawTag(208, 25);
+ output.WriteInt32(FieldName10);
+ }
+ if (HasFIELDNAME11) {
+ output.WriteRawTag(216, 25);
+ output.WriteInt32(FIELDNAME11);
+ }
+ if (HasFIELDName12) {
+ output.WriteRawTag(224, 25);
+ output.WriteInt32(FIELDName12);
+ }
+ if (HasFieldName13) {
+ output.WriteRawTag(232, 25);
+ output.WriteInt32(FieldName13);
+ }
+ if (HasFieldName14) {
+ output.WriteRawTag(240, 25);
+ output.WriteInt32(FieldName14);
+ }
+ if (HasFieldName15) {
+ output.WriteRawTag(248, 25);
+ output.WriteInt32(FieldName15);
+ }
+ if (HasFieldName16) {
+ output.WriteRawTag(128, 26);
+ output.WriteInt32(FieldName16);
+ }
+ if (HasFieldName17) {
+ output.WriteRawTag(136, 26);
+ output.WriteInt32(FieldName17);
+ }
+ if (HasFieldName18) {
+ output.WriteRawTag(144, 26);
+ output.WriteInt32(FieldName18);
+ }
+ if (_extensions != null) {
+ _extensions.WriteTo(ref output);
+ }
+ if (_unknownFields != null) {
+ _unknownFields.WriteTo(ref output);
+ }
+ }
+ #endif
+
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public int CalculateSize() {
int size = 0;
@@ -3898,56 +4184,610 @@ public void MergeFrom(pb::CodedInputStream input) {
}
}
- public TValue GetExtension(pb::Extension extension) {
- return pb::ExtensionSet.Get(ref _extensions, extension);
- }
- public pbc::RepeatedField GetExtension(pb::RepeatedExtension extension) {
- return pb::ExtensionSet.Get(ref _extensions, extension);
- }
- public pbc::RepeatedField GetOrInitializeExtension(pb::RepeatedExtension extension) {
- return pb::ExtensionSet.GetOrInitialize(ref _extensions, extension);
- }
- public void SetExtension(pb::Extension extension, TValue value) {
- pb::ExtensionSet.Set(ref _extensions, extension, value);
- }
- public bool HasExtension(pb::Extension extension) {
- return pb::ExtensionSet.Has(ref _extensions, extension);
- }
- public void ClearExtension(pb::Extension extension) {
- pb::ExtensionSet.Clear(ref _extensions, extension);
- }
- public void ClearExtension(pb::RepeatedExtension extension) {
- pb::ExtensionSet.Clear(ref _extensions, extension);
- }
- #region Nested types
- /// Container for nested types declared in the TestAllTypesProto2 message type.
+ #if !GOOGLE_PROTOBUF_DISABLE_BUFFER_SERIALIZATION
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public static partial class Types {
- public enum NestedEnum {
- [pbr::OriginalName("FOO")] Foo = 0,
- [pbr::OriginalName("BAR")] Bar = 1,
- [pbr::OriginalName("BAZ")] Baz = 2,
- ///
- /// Intentionally negative.
- ///
- [pbr::OriginalName("NEG")] Neg = -1,
- }
-
- public sealed partial class NestedMessage : pb::IMessage {
- private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new NestedMessage());
- private pb::UnknownFieldSet _unknownFields;
- private int _hasBits0;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public static pb::MessageParser Parser { get { return _parser; } }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public static pbr::MessageDescriptor Descriptor {
- get { return global::ProtobufTestMessages.Proto2.TestAllTypesProto2.Descriptor.NestedTypes[0]; }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- pbr::MessageDescriptor pb::IMessage.Descriptor {
+ public void MergeFrom(ref pb::CodedInputReader input) {
+ uint tag;
+ while ((tag = input.ReadTag()) != 0) {
+ switch(tag) {
+ default:
+ if (!pb::ExtensionSet.TryMergeFieldFrom(ref _extensions, ref input)) {
+ _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
+ }
+ break;
+ case 8: {
+ OptionalInt32 = input.ReadInt32();
+ break;
+ }
+ case 16: {
+ OptionalInt64 = input.ReadInt64();
+ break;
+ }
+ case 24: {
+ OptionalUint32 = input.ReadUInt32();
+ break;
+ }
+ case 32: {
+ OptionalUint64 = input.ReadUInt64();
+ break;
+ }
+ case 40: {
+ OptionalSint32 = input.ReadSInt32();
+ break;
+ }
+ case 48: {
+ OptionalSint64 = input.ReadSInt64();
+ break;
+ }
+ case 61: {
+ OptionalFixed32 = input.ReadFixed32();
+ break;
+ }
+ case 65: {
+ OptionalFixed64 = input.ReadFixed64();
+ break;
+ }
+ case 77: {
+ OptionalSfixed32 = input.ReadSFixed32();
+ break;
+ }
+ case 81: {
+ OptionalSfixed64 = input.ReadSFixed64();
+ break;
+ }
+ case 93: {
+ OptionalFloat = input.ReadFloat();
+ break;
+ }
+ case 97: {
+ OptionalDouble = input.ReadDouble();
+ break;
+ }
+ case 104: {
+ OptionalBool = input.ReadBool();
+ break;
+ }
+ case 114: {
+ OptionalString = input.ReadString();
+ break;
+ }
+ case 122: {
+ OptionalBytes = input.ReadBytes();
+ break;
+ }
+ case 146: {
+ if (!HasOptionalNestedMessage) {
+ OptionalNestedMessage = new global::ProtobufTestMessages.Proto2.TestAllTypesProto2.Types.NestedMessage();
+ }
+ input.ReadMessage(OptionalNestedMessage);
+ break;
+ }
+ case 154: {
+ if (!HasOptionalForeignMessage) {
+ OptionalForeignMessage = new global::ProtobufTestMessages.Proto2.ForeignMessageProto2();
+ }
+ input.ReadMessage(OptionalForeignMessage);
+ break;
+ }
+ case 168: {
+ OptionalNestedEnum = (global::ProtobufTestMessages.Proto2.TestAllTypesProto2.Types.NestedEnum) input.ReadEnum();
+ break;
+ }
+ case 176: {
+ OptionalForeignEnum = (global::ProtobufTestMessages.Proto2.ForeignEnumProto2) input.ReadEnum();
+ break;
+ }
+ case 194: {
+ OptionalStringPiece = input.ReadString();
+ break;
+ }
+ case 202: {
+ OptionalCord = input.ReadString();
+ break;
+ }
+ case 218: {
+ if (!HasRecursiveMessage) {
+ RecursiveMessage = new global::ProtobufTestMessages.Proto2.TestAllTypesProto2();
+ }
+ input.ReadMessage(RecursiveMessage);
+ break;
+ }
+ case 250:
+ case 248: {
+ repeatedInt32_.AddEntriesFrom(ref input, _repeated_repeatedInt32_codec);
+ break;
+ }
+ case 258:
+ case 256: {
+ repeatedInt64_.AddEntriesFrom(ref input, _repeated_repeatedInt64_codec);
+ break;
+ }
+ case 266:
+ case 264: {
+ repeatedUint32_.AddEntriesFrom(ref input, _repeated_repeatedUint32_codec);
+ break;
+ }
+ case 274:
+ case 272: {
+ repeatedUint64_.AddEntriesFrom(ref input, _repeated_repeatedUint64_codec);
+ break;
+ }
+ case 282:
+ case 280: {
+ repeatedSint32_.AddEntriesFrom(ref input, _repeated_repeatedSint32_codec);
+ break;
+ }
+ case 290:
+ case 288: {
+ repeatedSint64_.AddEntriesFrom(ref input, _repeated_repeatedSint64_codec);
+ break;
+ }
+ case 298:
+ case 301: {
+ repeatedFixed32_.AddEntriesFrom(ref input, _repeated_repeatedFixed32_codec);
+ break;
+ }
+ case 306:
+ case 305: {
+ repeatedFixed64_.AddEntriesFrom(ref input, _repeated_repeatedFixed64_codec);
+ break;
+ }
+ case 314:
+ case 317: {
+ repeatedSfixed32_.AddEntriesFrom(ref input, _repeated_repeatedSfixed32_codec);
+ break;
+ }
+ case 322:
+ case 321: {
+ repeatedSfixed64_.AddEntriesFrom(ref input, _repeated_repeatedSfixed64_codec);
+ break;
+ }
+ case 330:
+ case 333: {
+ repeatedFloat_.AddEntriesFrom(ref input, _repeated_repeatedFloat_codec);
+ break;
+ }
+ case 338:
+ case 337: {
+ repeatedDouble_.AddEntriesFrom(ref input, _repeated_repeatedDouble_codec);
+ break;
+ }
+ case 346:
+ case 344: {
+ repeatedBool_.AddEntriesFrom(ref input, _repeated_repeatedBool_codec);
+ break;
+ }
+ case 354: {
+ repeatedString_.AddEntriesFrom(ref input, _repeated_repeatedString_codec);
+ break;
+ }
+ case 362: {
+ repeatedBytes_.AddEntriesFrom(ref input, _repeated_repeatedBytes_codec);
+ break;
+ }
+ case 386: {
+ repeatedNestedMessage_.AddEntriesFrom(ref input, _repeated_repeatedNestedMessage_codec);
+ break;
+ }
+ case 394: {
+ repeatedForeignMessage_.AddEntriesFrom(ref input, _repeated_repeatedForeignMessage_codec);
+ break;
+ }
+ case 410:
+ case 408: {
+ repeatedNestedEnum_.AddEntriesFrom(ref input, _repeated_repeatedNestedEnum_codec);
+ break;
+ }
+ case 418:
+ case 416: {
+ repeatedForeignEnum_.AddEntriesFrom(ref input, _repeated_repeatedForeignEnum_codec);
+ break;
+ }
+ case 434: {
+ repeatedStringPiece_.AddEntriesFrom(ref input, _repeated_repeatedStringPiece_codec);
+ break;
+ }
+ case 442: {
+ repeatedCord_.AddEntriesFrom(ref input, _repeated_repeatedCord_codec);
+ break;
+ }
+ case 450: {
+ mapInt32Int32_.AddEntriesFrom(ref input, _map_mapInt32Int32_codec);
+ break;
+ }
+ case 458: {
+ mapInt64Int64_.AddEntriesFrom(ref input, _map_mapInt64Int64_codec);
+ break;
+ }
+ case 466: {
+ mapUint32Uint32_.AddEntriesFrom(ref input, _map_mapUint32Uint32_codec);
+ break;
+ }
+ case 474: {
+ mapUint64Uint64_.AddEntriesFrom(ref input, _map_mapUint64Uint64_codec);
+ break;
+ }
+ case 482: {
+ mapSint32Sint32_.AddEntriesFrom(ref input, _map_mapSint32Sint32_codec);
+ break;
+ }
+ case 490: {
+ mapSint64Sint64_.AddEntriesFrom(ref input, _map_mapSint64Sint64_codec);
+ break;
+ }
+ case 498: {
+ mapFixed32Fixed32_.AddEntriesFrom(ref input, _map_mapFixed32Fixed32_codec);
+ break;
+ }
+ case 506: {
+ mapFixed64Fixed64_.AddEntriesFrom(ref input, _map_mapFixed64Fixed64_codec);
+ break;
+ }
+ case 514: {
+ mapSfixed32Sfixed32_.AddEntriesFrom(ref input, _map_mapSfixed32Sfixed32_codec);
+ break;
+ }
+ case 522: {
+ mapSfixed64Sfixed64_.AddEntriesFrom(ref input, _map_mapSfixed64Sfixed64_codec);
+ break;
+ }
+ case 530: {
+ mapInt32Float_.AddEntriesFrom(ref input, _map_mapInt32Float_codec);
+ break;
+ }
+ case 538: {
+ mapInt32Double_.AddEntriesFrom(ref input, _map_mapInt32Double_codec);
+ break;
+ }
+ case 546: {
+ mapBoolBool_.AddEntriesFrom(ref input, _map_mapBoolBool_codec);
+ break;
+ }
+ case 554: {
+ mapStringString_.AddEntriesFrom(ref input, _map_mapStringString_codec);
+ break;
+ }
+ case 562: {
+ mapStringBytes_.AddEntriesFrom(ref input, _map_mapStringBytes_codec);
+ break;
+ }
+ case 570: {
+ mapStringNestedMessage_.AddEntriesFrom(ref input, _map_mapStringNestedMessage_codec);
+ break;
+ }
+ case 578: {
+ mapStringForeignMessage_.AddEntriesFrom(ref input, _map_mapStringForeignMessage_codec);
+ break;
+ }
+ case 586: {
+ mapStringNestedEnum_.AddEntriesFrom(ref input, _map_mapStringNestedEnum_codec);
+ break;
+ }
+ case 594: {
+ mapStringForeignEnum_.AddEntriesFrom(ref input, _map_mapStringForeignEnum_codec);
+ break;
+ }
+ case 602:
+ case 600: {
+ packedInt32_.AddEntriesFrom(ref input, _repeated_packedInt32_codec);
+ break;
+ }
+ case 610:
+ case 608: {
+ packedInt64_.AddEntriesFrom(ref input, _repeated_packedInt64_codec);
+ break;
+ }
+ case 618:
+ case 616: {
+ packedUint32_.AddEntriesFrom(ref input, _repeated_packedUint32_codec);
+ break;
+ }
+ case 626:
+ case 624: {
+ packedUint64_.AddEntriesFrom(ref input, _repeated_packedUint64_codec);
+ break;
+ }
+ case 634:
+ case 632: {
+ packedSint32_.AddEntriesFrom(ref input, _repeated_packedSint32_codec);
+ break;
+ }
+ case 642:
+ case 640: {
+ packedSint64_.AddEntriesFrom(ref input, _repeated_packedSint64_codec);
+ break;
+ }
+ case 650:
+ case 653: {
+ packedFixed32_.AddEntriesFrom(ref input, _repeated_packedFixed32_codec);
+ break;
+ }
+ case 658:
+ case 657: {
+ packedFixed64_.AddEntriesFrom(ref input, _repeated_packedFixed64_codec);
+ break;
+ }
+ case 666:
+ case 669: {
+ packedSfixed32_.AddEntriesFrom(ref input, _repeated_packedSfixed32_codec);
+ break;
+ }
+ case 674:
+ case 673: {
+ packedSfixed64_.AddEntriesFrom(ref input, _repeated_packedSfixed64_codec);
+ break;
+ }
+ case 682:
+ case 685: {
+ packedFloat_.AddEntriesFrom(ref input, _repeated_packedFloat_codec);
+ break;
+ }
+ case 690:
+ case 689: {
+ packedDouble_.AddEntriesFrom(ref input, _repeated_packedDouble_codec);
+ break;
+ }
+ case 698:
+ case 696: {
+ packedBool_.AddEntriesFrom(ref input, _repeated_packedBool_codec);
+ break;
+ }
+ case 706:
+ case 704: {
+ packedNestedEnum_.AddEntriesFrom(ref input, _repeated_packedNestedEnum_codec);
+ break;
+ }
+ case 714:
+ case 712: {
+ unpackedInt32_.AddEntriesFrom(ref input, _repeated_unpackedInt32_codec);
+ break;
+ }
+ case 722:
+ case 720: {
+ unpackedInt64_.AddEntriesFrom(ref input, _repeated_unpackedInt64_codec);
+ break;
+ }
+ case 730:
+ case 728: {
+ unpackedUint32_.AddEntriesFrom(ref input, _repeated_unpackedUint32_codec);
+ break;
+ }
+ case 738:
+ case 736: {
+ unpackedUint64_.AddEntriesFrom(ref input, _repeated_unpackedUint64_codec);
+ break;
+ }
+ case 746:
+ case 744: {
+ unpackedSint32_.AddEntriesFrom(ref input, _repeated_unpackedSint32_codec);
+ break;
+ }
+ case 754:
+ case 752: {
+ unpackedSint64_.AddEntriesFrom(ref input, _repeated_unpackedSint64_codec);
+ break;
+ }
+ case 762:
+ case 765: {
+ unpackedFixed32_.AddEntriesFrom(ref input, _repeated_unpackedFixed32_codec);
+ break;
+ }
+ case 770:
+ case 769: {
+ unpackedFixed64_.AddEntriesFrom(ref input, _repeated_unpackedFixed64_codec);
+ break;
+ }
+ case 778:
+ case 781: {
+ unpackedSfixed32_.AddEntriesFrom(ref input, _repeated_unpackedSfixed32_codec);
+ break;
+ }
+ case 786:
+ case 785: {
+ unpackedSfixed64_.AddEntriesFrom(ref input, _repeated_unpackedSfixed64_codec);
+ break;
+ }
+ case 794:
+ case 797: {
+ unpackedFloat_.AddEntriesFrom(ref input, _repeated_unpackedFloat_codec);
+ break;
+ }
+ case 802:
+ case 801: {
+ unpackedDouble_.AddEntriesFrom(ref input, _repeated_unpackedDouble_codec);
+ break;
+ }
+ case 810:
+ case 808: {
+ unpackedBool_.AddEntriesFrom(ref input, _repeated_unpackedBool_codec);
+ break;
+ }
+ case 818:
+ case 816: {
+ unpackedNestedEnum_.AddEntriesFrom(ref input, _repeated_unpackedNestedEnum_codec);
+ break;
+ }
+ case 888: {
+ OneofUint32 = input.ReadUInt32();
+ break;
+ }
+ case 898: {
+ global::ProtobufTestMessages.Proto2.TestAllTypesProto2.Types.NestedMessage subBuilder = new global::ProtobufTestMessages.Proto2.TestAllTypesProto2.Types.NestedMessage();
+ if (HasOneofNestedMessage) {
+ subBuilder.MergeFrom(OneofNestedMessage);
+ }
+ input.ReadMessage(subBuilder);
+ OneofNestedMessage = subBuilder;
+ break;
+ }
+ case 906: {
+ OneofString = input.ReadString();
+ break;
+ }
+ case 914: {
+ OneofBytes = input.ReadBytes();
+ break;
+ }
+ case 920: {
+ OneofBool = input.ReadBool();
+ break;
+ }
+ case 928: {
+ OneofUint64 = input.ReadUInt64();
+ break;
+ }
+ case 941: {
+ OneofFloat = input.ReadFloat();
+ break;
+ }
+ case 945: {
+ OneofDouble = input.ReadDouble();
+ break;
+ }
+ case 952: {
+ oneofField_ = input.ReadEnum();
+ oneofFieldCase_ = OneofFieldOneofCase.OneofEnum;
+ break;
+ }
+ case 1611: {
+ if (!HasData) {
+ Data = new global::ProtobufTestMessages.Proto2.TestAllTypesProto2.Types.Data();
+ }
+ input.ReadGroup(Data);
+ break;
+ }
+ case 3208: {
+ Fieldname1 = input.ReadInt32();
+ break;
+ }
+ case 3216: {
+ FieldName2 = input.ReadInt32();
+ break;
+ }
+ case 3224: {
+ FieldName3 = input.ReadInt32();
+ break;
+ }
+ case 3232: {
+ FieldName4 = input.ReadInt32();
+ break;
+ }
+ case 3240: {
+ Field0Name5 = input.ReadInt32();
+ break;
+ }
+ case 3248: {
+ Field0Name6 = input.ReadInt32();
+ break;
+ }
+ case 3256: {
+ FieldName7 = input.ReadInt32();
+ break;
+ }
+ case 3264: {
+ FieldName8 = input.ReadInt32();
+ break;
+ }
+ case 3272: {
+ FieldName9 = input.ReadInt32();
+ break;
+ }
+ case 3280: {
+ FieldName10 = input.ReadInt32();
+ break;
+ }
+ case 3288: {
+ FIELDNAME11 = input.ReadInt32();
+ break;
+ }
+ case 3296: {
+ FIELDName12 = input.ReadInt32();
+ break;
+ }
+ case 3304: {
+ FieldName13 = input.ReadInt32();
+ break;
+ }
+ case 3312: {
+ FieldName14 = input.ReadInt32();
+ break;
+ }
+ case 3320: {
+ FieldName15 = input.ReadInt32();
+ break;
+ }
+ case 3328: {
+ FieldName16 = input.ReadInt32();
+ break;
+ }
+ case 3336: {
+ FieldName17 = input.ReadInt32();
+ break;
+ }
+ case 3344: {
+ FieldName18 = input.ReadInt32();
+ break;
+ }
+ }
+ }
+ }
+ #endif
+
+ public TValue GetExtension(pb::Extension extension) {
+ return pb::ExtensionSet.Get(ref _extensions, extension);
+ }
+ public pbc::RepeatedField GetExtension(pb::RepeatedExtension extension) {
+ return pb::ExtensionSet.Get(ref _extensions, extension);
+ }
+ public pbc::RepeatedField GetOrInitializeExtension(pb::RepeatedExtension extension) {
+ return pb::ExtensionSet.GetOrInitialize(ref _extensions, extension);
+ }
+ public void SetExtension(pb::Extension extension, TValue value) {
+ pb::ExtensionSet.Set(ref _extensions, extension, value);
+ }
+ public bool HasExtension(pb::Extension extension) {
+ return pb::ExtensionSet.Has(ref _extensions, extension);
+ }
+ public void ClearExtension(pb::Extension extension) {
+ pb::ExtensionSet.Clear(ref _extensions, extension);
+ }
+ public void ClearExtension(pb::RepeatedExtension extension) {
+ pb::ExtensionSet.Clear(ref _extensions, extension);
+ }
+
+ #region Nested types
+ /// Container for nested types declared in the TestAllTypesProto2 message type.
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ public static partial class Types {
+ public enum NestedEnum {
+ [pbr::OriginalName("FOO")] Foo = 0,
+ [pbr::OriginalName("BAR")] Bar = 1,
+ [pbr::OriginalName("BAZ")] Baz = 2,
+ ///
+ /// Intentionally negative.
+ ///
+ [pbr::OriginalName("NEG")] Neg = -1,
+ }
+
+ public sealed partial class NestedMessage : pb::IMessage
+ #if !GOOGLE_PROTOBUF_DISABLE_BUFFER_SERIALIZATION
+ , pb::IBufferMessage
+ #endif
+ {
+ private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new NestedMessage());
+ private pb::UnknownFieldSet _unknownFields;
+ private int _hasBits0;
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ public static pb::MessageParser Parser { get { return _parser; } }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ public static pbr::MessageDescriptor Descriptor {
+ get { return global::ProtobufTestMessages.Proto2.TestAllTypesProto2.Descriptor.NestedTypes[0]; }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ pbr::MessageDescriptor pb::IMessage.Descriptor {
get { return Descriptor; }
}
@@ -4040,18 +4880,35 @@ public override int GetHashCode() {
if (HasA) hash ^= A.GetHashCode();
if (HasCorecursive) hash ^= Corecursive.GetHashCode();
if (_unknownFields != null) {
- hash ^= _unknownFields.GetHashCode();
+ hash ^= _unknownFields.GetHashCode();
+ }
+ return hash;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ public override string ToString() {
+ return pb::JsonFormatter.ToDiagnosticString(this);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ public void WriteTo(pb::CodedOutputStream output) {
+ if (HasA) {
+ output.WriteRawTag(8);
+ output.WriteInt32(A);
+ }
+ if (HasCorecursive) {
+ output.WriteRawTag(18);
+ output.WriteMessage(Corecursive);
+ }
+ if (_unknownFields != null) {
+ _unknownFields.WriteTo(output);
}
- return hash;
}
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public override string ToString() {
- return pb::JsonFormatter.ToDiagnosticString(this);
- }
+ #if !GOOGLE_PROTOBUF_DISABLE_BUFFER_SERIALIZATION
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void WriteTo(pb::CodedOutputStream output) {
+ public void WriteTo(ref pb::CodedOutputWriter output) {
if (HasA) {
output.WriteRawTag(8);
output.WriteInt32(A);
@@ -4061,9 +4918,10 @@ public void WriteTo(pb::CodedOutputStream output) {
output.WriteMessage(Corecursive);
}
if (_unknownFields != null) {
- _unknownFields.WriteTo(output);
+ _unknownFields.WriteTo(ref output);
}
}
+ #endif
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public int CalculateSize() {
@@ -4120,12 +4978,42 @@ public void MergeFrom(pb::CodedInputStream input) {
}
}
+
+ #if !GOOGLE_PROTOBUF_DISABLE_BUFFER_SERIALIZATION
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ public void MergeFrom(ref pb::CodedInputReader input) {
+ uint tag;
+ while ((tag = input.ReadTag()) != 0) {
+ switch(tag) {
+ default:
+ _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
+ break;
+ case 8: {
+ A = input.ReadInt32();
+ break;
+ }
+ case 18: {
+ if (!HasCorecursive) {
+ Corecursive = new global::ProtobufTestMessages.Proto2.TestAllTypesProto2();
+ }
+ input.ReadMessage(Corecursive);
+ break;
+ }
+ }
+ }
+ }
+ #endif
+
}
///
/// groups
///
- public sealed partial class Data : pb::IMessage {
+ public sealed partial class Data : pb::IMessage
+ #if !GOOGLE_PROTOBUF_DISABLE_BUFFER_SERIALIZATION
+ , pb::IBufferMessage
+ #endif
+ {
private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new Data());
private pb::UnknownFieldSet _unknownFields;
private int _hasBits0;
@@ -4259,6 +5147,24 @@ public void WriteTo(pb::CodedOutputStream output) {
}
}
+
+ #if !GOOGLE_PROTOBUF_DISABLE_BUFFER_SERIALIZATION
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ public void WriteTo(ref pb::CodedOutputWriter output) {
+ if (HasGroupInt32) {
+ output.WriteRawTag(208, 12);
+ output.WriteInt32(GroupInt32);
+ }
+ if (HasGroupUint32) {
+ output.WriteRawTag(216, 12);
+ output.WriteUInt32(GroupUint32);
+ }
+ if (_unknownFields != null) {
+ _unknownFields.WriteTo(ref output);
+ }
+ }
+ #endif
+
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public int CalculateSize() {
int size = 0;
@@ -4310,12 +5216,41 @@ public void MergeFrom(pb::CodedInputStream input) {
}
}
+
+ #if !GOOGLE_PROTOBUF_DISABLE_BUFFER_SERIALIZATION
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ public void MergeFrom(ref pb::CodedInputReader input) {
+ uint tag;
+ while ((tag = input.ReadTag()) != 0) {
+ switch(tag) {
+ case 1612:
+ return;
+ default:
+ _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
+ break;
+ case 1616: {
+ GroupInt32 = input.ReadInt32();
+ break;
+ }
+ case 1624: {
+ GroupUint32 = input.ReadUInt32();
+ break;
+ }
+ }
+ }
+ }
+ #endif
+
}
///
/// message_set test case.
///
- public sealed partial class MessageSetCorrect : pb::IExtendableMessage {
+ public sealed partial class MessageSetCorrect : pb::IExtendableMessage
+ #if !GOOGLE_PROTOBUF_DISABLE_BUFFER_SERIALIZATION
+ , pb::IBufferMessage
+ #endif
+ {
private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new MessageSetCorrect());
private pb::UnknownFieldSet _unknownFields;
private pb::ExtensionSet _extensions;
@@ -4397,6 +5332,19 @@ public void WriteTo(pb::CodedOutputStream output) {
}
}
+
+ #if !GOOGLE_PROTOBUF_DISABLE_BUFFER_SERIALIZATION
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ public void WriteTo(ref pb::CodedOutputWriter output) {
+ if (_extensions != null) {
+ _extensions.WriteTo(ref output);
+ }
+ if (_unknownFields != null) {
+ _unknownFields.WriteTo(ref output);
+ }
+ }
+ #endif
+
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public int CalculateSize() {
int size = 0;
@@ -4432,6 +5380,23 @@ public void MergeFrom(pb::CodedInputStream input) {
}
}
+
+ #if !GOOGLE_PROTOBUF_DISABLE_BUFFER_SERIALIZATION
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ public void MergeFrom(ref pb::CodedInputReader input) {
+ uint tag;
+ while ((tag = input.ReadTag()) != 0) {
+ switch(tag) {
+ default:
+ if (!pb::ExtensionSet.TryMergeFieldFrom(ref _extensions, ref input)) {
+ _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
+ }
+ break;
+ }
+ }
+ }
+ #endif
+
public TValue GetExtension(pb::Extension extension) {
return pb::ExtensionSet.Get(ref _extensions, extension);
}
@@ -4456,7 +5421,11 @@ public void ClearExtension(pb::RepeatedExtension {
+ public sealed partial class MessageSetCorrectExtension1 : pb::IMessage
+ #if !GOOGLE_PROTOBUF_DISABLE_BUFFER_SERIALIZATION
+ , pb::IBufferMessage
+ #endif
+ {
private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new MessageSetCorrectExtension1());
private pb::UnknownFieldSet _unknownFields;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
@@ -4556,6 +5525,20 @@ public void WriteTo(pb::CodedOutputStream output) {
}
}
+
+ #if !GOOGLE_PROTOBUF_DISABLE_BUFFER_SERIALIZATION
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ public void WriteTo(ref pb::CodedOutputWriter output) {
+ if (HasStr) {
+ output.WriteRawTag(202, 1);
+ output.WriteString(Str);
+ }
+ if (_unknownFields != null) {
+ _unknownFields.WriteTo(ref output);
+ }
+ }
+ #endif
+
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public int CalculateSize() {
int size = 0;
@@ -4595,6 +5578,25 @@ public void MergeFrom(pb::CodedInputStream input) {
}
}
+
+ #if !GOOGLE_PROTOBUF_DISABLE_BUFFER_SERIALIZATION
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ public void MergeFrom(ref pb::CodedInputReader input) {
+ uint tag;
+ while ((tag = input.ReadTag()) != 0) {
+ switch(tag) {
+ default:
+ _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
+ break;
+ case 202: {
+ Str = input.ReadString();
+ break;
+ }
+ }
+ }
+ }
+ #endif
+
#region Extensions
/// Container for extensions for other messages declared in the MessageSetCorrectExtension1 message type.
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
@@ -4606,7 +5608,11 @@ public static partial class Extensions {
}
- public sealed partial class MessageSetCorrectExtension2 : pb::IMessage {
+ public sealed partial class MessageSetCorrectExtension2 : pb::IMessage
+ #if !GOOGLE_PROTOBUF_DISABLE_BUFFER_SERIALIZATION
+ , pb::IBufferMessage
+ #endif
+ {
private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new MessageSetCorrectExtension2());
private pb::UnknownFieldSet _unknownFields;
private int _hasBits0;
@@ -4709,6 +5715,20 @@ public void WriteTo(pb::CodedOutputStream output) {
}
}
+
+ #if !GOOGLE_PROTOBUF_DISABLE_BUFFER_SERIALIZATION
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ public void WriteTo(ref pb::CodedOutputWriter output) {
+ if (HasI) {
+ output.WriteRawTag(72);
+ output.WriteInt32(I);
+ }
+ if (_unknownFields != null) {
+ _unknownFields.WriteTo(ref output);
+ }
+ }
+ #endif
+
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public int CalculateSize() {
int size = 0;
@@ -4748,6 +5768,25 @@ public void MergeFrom(pb::CodedInputStream input) {
}
}
+
+ #if !GOOGLE_PROTOBUF_DISABLE_BUFFER_SERIALIZATION
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ public void MergeFrom(ref pb::CodedInputReader input) {
+ uint tag;
+ while ((tag = input.ReadTag()) != 0) {
+ switch(tag) {
+ default:
+ _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
+ break;
+ case 72: {
+ I = input.ReadInt32();
+ break;
+ }
+ }
+ }
+ }
+ #endif
+
#region Extensions
/// Container for extensions for other messages declared in the MessageSetCorrectExtension2 message type.
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
@@ -4764,7 +5803,11 @@ public static partial class Extensions {
}
- public sealed partial class ForeignMessageProto2 : pb::IMessage {
+ public sealed partial class ForeignMessageProto2 : pb::IMessage
+ #if !GOOGLE_PROTOBUF_DISABLE_BUFFER_SERIALIZATION
+ , pb::IBufferMessage
+ #endif
+ {
private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ForeignMessageProto2());
private pb::UnknownFieldSet _unknownFields;
private int _hasBits0;
@@ -4867,6 +5910,20 @@ public void WriteTo(pb::CodedOutputStream output) {
}
}
+
+ #if !GOOGLE_PROTOBUF_DISABLE_BUFFER_SERIALIZATION
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ public void WriteTo(ref pb::CodedOutputWriter output) {
+ if (HasC) {
+ output.WriteRawTag(8);
+ output.WriteInt32(C);
+ }
+ if (_unknownFields != null) {
+ _unknownFields.WriteTo(ref output);
+ }
+ }
+ #endif
+
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public int CalculateSize() {
int size = 0;
@@ -4906,9 +5963,32 @@ public void MergeFrom(pb::CodedInputStream input) {
}
}
+
+ #if !GOOGLE_PROTOBUF_DISABLE_BUFFER_SERIALIZATION
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ public void MergeFrom(ref pb::CodedInputReader input) {
+ uint tag;
+ while ((tag = input.ReadTag()) != 0) {
+ switch(tag) {
+ default:
+ _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
+ break;
+ case 8: {
+ C = input.ReadInt32();
+ break;
+ }
+ }
+ }
+ }
+ #endif
+
}
- public sealed partial class UnknownToTestAllTypes : pb::IMessage {
+ public sealed partial class UnknownToTestAllTypes : pb::IMessage
+ #if !GOOGLE_PROTOBUF_DISABLE_BUFFER_SERIALIZATION
+ , pb::IBufferMessage
+ #endif
+ {
private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new UnknownToTestAllTypes());
private pb::UnknownFieldSet _unknownFields;
private int _hasBits0;
@@ -5143,6 +6223,38 @@ public void WriteTo(pb::CodedOutputStream output) {
}
}
+
+ #if !GOOGLE_PROTOBUF_DISABLE_BUFFER_SERIALIZATION
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ public void WriteTo(ref pb::CodedOutputWriter output) {
+ if (HasOptionalInt32) {
+ output.WriteRawTag(200, 62);
+ output.WriteInt32(OptionalInt32);
+ }
+ if (HasOptionalString) {
+ output.WriteRawTag(210, 62);
+ output.WriteString(OptionalString);
+ }
+ if (HasNestedMessage) {
+ output.WriteRawTag(218, 62);
+ output.WriteMessage(NestedMessage);
+ }
+ if (HasOptionalGroup) {
+ output.WriteRawTag(227, 62);
+ output.WriteGroup(OptionalGroup);
+ output.WriteRawTag(228, 62);
+ }
+ if (HasOptionalBool) {
+ output.WriteRawTag(240, 62);
+ output.WriteBool(OptionalBool);
+ }
+ repeatedInt32_.WriteTo(ref output, _repeated_repeatedInt32_codec);
+ if (_unknownFields != null) {
+ _unknownFields.WriteTo(ref output);
+ }
+ }
+ #endif
+
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public int CalculateSize() {
int size = 0;
@@ -5241,11 +6353,61 @@ public void MergeFrom(pb::CodedInputStream input) {
}
}
+
+ #if !GOOGLE_PROTOBUF_DISABLE_BUFFER_SERIALIZATION
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ public void MergeFrom(ref pb::CodedInputReader input) {
+ uint tag;
+ while ((tag = input.ReadTag()) != 0) {
+ switch(tag) {
+ default:
+ _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
+ break;
+ case 8008: {
+ OptionalInt32 = input.ReadInt32();
+ break;
+ }
+ case 8018: {
+ OptionalString = input.ReadString();
+ break;
+ }
+ case 8026: {
+ if (!HasNestedMessage) {
+ NestedMessage = new global::ProtobufTestMessages.Proto2.ForeignMessageProto2();
+ }
+ input.ReadMessage(NestedMessage);
+ break;
+ }
+ case 8035: {
+ if (!HasOptionalGroup) {
+ OptionalGroup = new global::ProtobufTestMessages.Proto2.UnknownToTestAllTypes.Types.OptionalGroup();
+ }
+ input.ReadGroup(OptionalGroup);
+ break;
+ }
+ case 8048: {
+ OptionalBool = input.ReadBool();
+ break;
+ }
+ case 8090:
+ case 8088: {
+ repeatedInt32_.AddEntriesFrom(ref input, _repeated_repeatedInt32_codec);
+ break;
+ }
+ }
+ }
+ }
+ #endif
+
#region Nested types
/// Container for nested types declared in the UnknownToTestAllTypes message type.
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public static partial class Types {
- public sealed partial class OptionalGroup : pb::IMessage {
+ public sealed partial class OptionalGroup : pb::IMessage
+ #if !GOOGLE_PROTOBUF_DISABLE_BUFFER_SERIALIZATION
+ , pb::IBufferMessage
+ #endif
+ {
private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new OptionalGroup());
private pb::UnknownFieldSet _unknownFields;
private int _hasBits0;
@@ -5348,6 +6510,20 @@ public void WriteTo(pb::CodedOutputStream output) {
}
}
+
+ #if !GOOGLE_PROTOBUF_DISABLE_BUFFER_SERIALIZATION
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ public void WriteTo(ref pb::CodedOutputWriter output) {
+ if (HasA) {
+ output.WriteRawTag(8);
+ output.WriteInt32(A);
+ }
+ if (_unknownFields != null) {
+ _unknownFields.WriteTo(ref output);
+ }
+ }
+ #endif
+
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public int CalculateSize() {
int size = 0;
@@ -5389,6 +6565,27 @@ public void MergeFrom(pb::CodedInputStream input) {
}
}
+
+ #if !GOOGLE_PROTOBUF_DISABLE_BUFFER_SERIALIZATION
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ public void MergeFrom(ref pb::CodedInputReader input) {
+ uint tag;
+ while ((tag = input.ReadTag()) != 0) {
+ switch(tag) {
+ case 8036:
+ return;
+ default:
+ _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
+ break;
+ case 8: {
+ A = input.ReadInt32();
+ break;
+ }
+ }
+ }
+ }
+ #endif
+
}
}
diff --git a/csharp/src/Google.Protobuf.Test.TestProtos/TestMessagesProto3.cs b/csharp/src/Google.Protobuf.Test.TestProtos/TestMessagesProto3.cs
index 064d0c0acec0..b1859a8292f6 100644
--- a/csharp/src/Google.Protobuf.Test.TestProtos/TestMessagesProto3.cs
+++ b/csharp/src/Google.Protobuf.Test.TestProtos/TestMessagesProto3.cs
@@ -259,7 +259,11 @@ public enum ForeignEnum {
/// could trigger bugs that occur in any message type in this file. We verify
/// this stays true in a unit test.
///
- public sealed partial class TestAllTypesProto3 : pb::IMessage {
+ public sealed partial class TestAllTypesProto3 : pb::IMessage
+ #if !GOOGLE_PROTOBUF_DISABLE_BUFFER_SERIALIZATION
+ , pb::IBufferMessage
+ #endif
+ {
private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new TestAllTypesProto3());
private pb::UnknownFieldSet _unknownFields;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
@@ -2755,6 +2759,351 @@ public void WriteTo(pb::CodedOutputStream output) {
}
}
+
+ #if !GOOGLE_PROTOBUF_DISABLE_BUFFER_SERIALIZATION
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ public void WriteTo(ref pb::CodedOutputWriter output) {
+ if (OptionalInt32 != 0) {
+ output.WriteRawTag(8);
+ output.WriteInt32(OptionalInt32);
+ }
+ if (OptionalInt64 != 0L) {
+ output.WriteRawTag(16);
+ output.WriteInt64(OptionalInt64);
+ }
+ if (OptionalUint32 != 0) {
+ output.WriteRawTag(24);
+ output.WriteUInt32(OptionalUint32);
+ }
+ if (OptionalUint64 != 0UL) {
+ output.WriteRawTag(32);
+ output.WriteUInt64(OptionalUint64);
+ }
+ if (OptionalSint32 != 0) {
+ output.WriteRawTag(40);
+ output.WriteSInt32(OptionalSint32);
+ }
+ if (OptionalSint64 != 0L) {
+ output.WriteRawTag(48);
+ output.WriteSInt64(OptionalSint64);
+ }
+ if (OptionalFixed32 != 0) {
+ output.WriteRawTag(61);
+ output.WriteFixed32(OptionalFixed32);
+ }
+ if (OptionalFixed64 != 0UL) {
+ output.WriteRawTag(65);
+ output.WriteFixed64(OptionalFixed64);
+ }
+ if (OptionalSfixed32 != 0) {
+ output.WriteRawTag(77);
+ output.WriteSFixed32(OptionalSfixed32);
+ }
+ if (OptionalSfixed64 != 0L) {
+ output.WriteRawTag(81);
+ output.WriteSFixed64(OptionalSfixed64);
+ }
+ if (OptionalFloat != 0F) {
+ output.WriteRawTag(93);
+ output.WriteFloat(OptionalFloat);
+ }
+ if (OptionalDouble != 0D) {
+ output.WriteRawTag(97);
+ output.WriteDouble(OptionalDouble);
+ }
+ if (OptionalBool != false) {
+ output.WriteRawTag(104);
+ output.WriteBool(OptionalBool);
+ }
+ if (OptionalString.Length != 0) {
+ output.WriteRawTag(114);
+ output.WriteString(OptionalString);
+ }
+ if (OptionalBytes.Length != 0) {
+ output.WriteRawTag(122);
+ output.WriteBytes(OptionalBytes);
+ }
+ if (optionalNestedMessage_ != null) {
+ output.WriteRawTag(146, 1);
+ output.WriteMessage(OptionalNestedMessage);
+ }
+ if (optionalForeignMessage_ != null) {
+ output.WriteRawTag(154, 1);
+ output.WriteMessage(OptionalForeignMessage);
+ }
+ if (OptionalNestedEnum != global::ProtobufTestMessages.Proto3.TestAllTypesProto3.Types.NestedEnum.Foo) {
+ output.WriteRawTag(168, 1);
+ output.WriteEnum((int) OptionalNestedEnum);
+ }
+ if (OptionalForeignEnum != global::ProtobufTestMessages.Proto3.ForeignEnum.ForeignFoo) {
+ output.WriteRawTag(176, 1);
+ output.WriteEnum((int) OptionalForeignEnum);
+ }
+ if (OptionalAliasedEnum != global::ProtobufTestMessages.Proto3.TestAllTypesProto3.Types.AliasedEnum.AliasFoo) {
+ output.WriteRawTag(184, 1);
+ output.WriteEnum((int) OptionalAliasedEnum);
+ }
+ if (OptionalStringPiece.Length != 0) {
+ output.WriteRawTag(194, 1);
+ output.WriteString(OptionalStringPiece);
+ }
+ if (OptionalCord.Length != 0) {
+ output.WriteRawTag(202, 1);
+ output.WriteString(OptionalCord);
+ }
+ if (recursiveMessage_ != null) {
+ output.WriteRawTag(218, 1);
+ output.WriteMessage(RecursiveMessage);
+ }
+ repeatedInt32_.WriteTo(ref output, _repeated_repeatedInt32_codec);
+ repeatedInt64_.WriteTo(ref output, _repeated_repeatedInt64_codec);
+ repeatedUint32_.WriteTo(ref output, _repeated_repeatedUint32_codec);
+ repeatedUint64_.WriteTo(ref output, _repeated_repeatedUint64_codec);
+ repeatedSint32_.WriteTo(ref output, _repeated_repeatedSint32_codec);
+ repeatedSint64_.WriteTo(ref output, _repeated_repeatedSint64_codec);
+ repeatedFixed32_.WriteTo(ref output, _repeated_repeatedFixed32_codec);
+ repeatedFixed64_.WriteTo(ref output, _repeated_repeatedFixed64_codec);
+ repeatedSfixed32_.WriteTo(ref output, _repeated_repeatedSfixed32_codec);
+ repeatedSfixed64_.WriteTo(ref output, _repeated_repeatedSfixed64_codec);
+ repeatedFloat_.WriteTo(ref output, _repeated_repeatedFloat_codec);
+ repeatedDouble_.WriteTo(ref output, _repeated_repeatedDouble_codec);
+ repeatedBool_.WriteTo(ref output, _repeated_repeatedBool_codec);
+ repeatedString_.WriteTo(ref output, _repeated_repeatedString_codec);
+ repeatedBytes_.WriteTo(ref output, _repeated_repeatedBytes_codec);
+ repeatedNestedMessage_.WriteTo(ref output, _repeated_repeatedNestedMessage_codec);
+ repeatedForeignMessage_.WriteTo(ref output, _repeated_repeatedForeignMessage_codec);
+ repeatedNestedEnum_.WriteTo(ref output, _repeated_repeatedNestedEnum_codec);
+ repeatedForeignEnum_.WriteTo(ref output, _repeated_repeatedForeignEnum_codec);
+ repeatedStringPiece_.WriteTo(ref output, _repeated_repeatedStringPiece_codec);
+ repeatedCord_.WriteTo(ref output, _repeated_repeatedCord_codec);
+ mapInt32Int32_.WriteTo(ref output, _map_mapInt32Int32_codec);
+ mapInt64Int64_.WriteTo(ref output, _map_mapInt64Int64_codec);
+ mapUint32Uint32_.WriteTo(ref output, _map_mapUint32Uint32_codec);
+ mapUint64Uint64_.WriteTo(ref output, _map_mapUint64Uint64_codec);
+ mapSint32Sint32_.WriteTo(ref output, _map_mapSint32Sint32_codec);
+ mapSint64Sint64_.WriteTo(ref output, _map_mapSint64Sint64_codec);
+ mapFixed32Fixed32_.WriteTo(ref output, _map_mapFixed32Fixed32_codec);
+ mapFixed64Fixed64_.WriteTo(ref output, _map_mapFixed64Fixed64_codec);
+ mapSfixed32Sfixed32_.WriteTo(ref output, _map_mapSfixed32Sfixed32_codec);
+ mapSfixed64Sfixed64_.WriteTo(ref output, _map_mapSfixed64Sfixed64_codec);
+ mapInt32Float_.WriteTo(ref output, _map_mapInt32Float_codec);
+ mapInt32Double_.WriteTo(ref output, _map_mapInt32Double_codec);
+ mapBoolBool_.WriteTo(ref output, _map_mapBoolBool_codec);
+ mapStringString_.WriteTo(ref output, _map_mapStringString_codec);
+ mapStringBytes_.WriteTo(ref output, _map_mapStringBytes_codec);
+ mapStringNestedMessage_.WriteTo(ref output, _map_mapStringNestedMessage_codec);
+ mapStringForeignMessage_.WriteTo(ref output, _map_mapStringForeignMessage_codec);
+ mapStringNestedEnum_.WriteTo(ref output, _map_mapStringNestedEnum_codec);
+ mapStringForeignEnum_.WriteTo(ref output, _map_mapStringForeignEnum_codec);
+ packedInt32_.WriteTo(ref output, _repeated_packedInt32_codec);
+ packedInt64_.WriteTo(ref output, _repeated_packedInt64_codec);
+ packedUint32_.WriteTo(ref output, _repeated_packedUint32_codec);
+ packedUint64_.WriteTo(ref output, _repeated_packedUint64_codec);
+ packedSint32_.WriteTo(ref output, _repeated_packedSint32_codec);
+ packedSint64_.WriteTo(ref output, _repeated_packedSint64_codec);
+ packedFixed32_.WriteTo(ref output, _repeated_packedFixed32_codec);
+ packedFixed64_.WriteTo(ref output, _repeated_packedFixed64_codec);
+ packedSfixed32_.WriteTo(ref output, _repeated_packedSfixed32_codec);
+ packedSfixed64_.WriteTo(ref output, _repeated_packedSfixed64_codec);
+ packedFloat_.WriteTo(ref output, _repeated_packedFloat_codec);
+ packedDouble_.WriteTo(ref output, _repeated_packedDouble_codec);
+ packedBool_.WriteTo(ref output, _repeated_packedBool_codec);
+ packedNestedEnum_.WriteTo(ref output, _repeated_packedNestedEnum_codec);
+ unpackedInt32_.WriteTo(ref output, _repeated_unpackedInt32_codec);
+ unpackedInt64_.WriteTo(ref output, _repeated_unpackedInt64_codec);
+ unpackedUint32_.WriteTo(ref output, _repeated_unpackedUint32_codec);
+ unpackedUint64_.WriteTo(ref output, _repeated_unpackedUint64_codec);
+ unpackedSint32_.WriteTo(ref output, _repeated_unpackedSint32_codec);
+ unpackedSint64_.WriteTo(ref output, _repeated_unpackedSint64_codec);
+ unpackedFixed32_.WriteTo(ref output, _repeated_unpackedFixed32_codec);
+ unpackedFixed64_.WriteTo(ref output, _repeated_unpackedFixed64_codec);
+ unpackedSfixed32_.WriteTo(ref output, _repeated_unpackedSfixed32_codec);
+ unpackedSfixed64_.WriteTo(ref output, _repeated_unpackedSfixed64_codec);
+ unpackedFloat_.WriteTo(ref output, _repeated_unpackedFloat_codec);
+ unpackedDouble_.WriteTo(ref output, _repeated_unpackedDouble_codec);
+ unpackedBool_.WriteTo(ref output, _repeated_unpackedBool_codec);
+ unpackedNestedEnum_.WriteTo(ref output, _repeated_unpackedNestedEnum_codec);
+ if (oneofFieldCase_ == OneofFieldOneofCase.OneofUint32) {
+ output.WriteRawTag(248, 6);
+ output.WriteUInt32(OneofUint32);
+ }
+ if (oneofFieldCase_ == OneofFieldOneofCase.OneofNestedMessage) {
+ output.WriteRawTag(130, 7);
+ output.WriteMessage(OneofNestedMessage);
+ }
+ if (oneofFieldCase_ == OneofFieldOneofCase.OneofString) {
+ output.WriteRawTag(138, 7);
+ output.WriteString(OneofString);
+ }
+ if (oneofFieldCase_ == OneofFieldOneofCase.OneofBytes) {
+ output.WriteRawTag(146, 7);
+ output.WriteBytes(OneofBytes);
+ }
+ if (oneofFieldCase_ == OneofFieldOneofCase.OneofBool) {
+ output.WriteRawTag(152, 7);
+ output.WriteBool(OneofBool);
+ }
+ if (oneofFieldCase_ == OneofFieldOneofCase.OneofUint64) {
+ output.WriteRawTag(160, 7);
+ output.WriteUInt64(OneofUint64);
+ }
+ if (oneofFieldCase_ == OneofFieldOneofCase.OneofFloat) {
+ output.WriteRawTag(173, 7);
+ output.WriteFloat(OneofFloat);
+ }
+ if (oneofFieldCase_ == OneofFieldOneofCase.OneofDouble) {
+ output.WriteRawTag(177, 7);
+ output.WriteDouble(OneofDouble);
+ }
+ if (oneofFieldCase_ == OneofFieldOneofCase.OneofEnum) {
+ output.WriteRawTag(184, 7);
+ output.WriteEnum((int) OneofEnum);
+ }
+ if (optionalBoolWrapper_ != null) {
+ _single_optionalBoolWrapper_codec.WriteTagAndValue(ref output, OptionalBoolWrapper);
+ }
+ if (optionalInt32Wrapper_ != null) {
+ _single_optionalInt32Wrapper_codec.WriteTagAndValue(ref output, OptionalInt32Wrapper);
+ }
+ if (optionalInt64Wrapper_ != null) {
+ _single_optionalInt64Wrapper_codec.WriteTagAndValue(ref output, OptionalInt64Wrapper);
+ }
+ if (optionalUint32Wrapper_ != null) {
+ _single_optionalUint32Wrapper_codec.WriteTagAndValue(ref output, OptionalUint32Wrapper);
+ }
+ if (optionalUint64Wrapper_ != null) {
+ _single_optionalUint64Wrapper_codec.WriteTagAndValue(ref output, OptionalUint64Wrapper);
+ }
+ if (optionalFloatWrapper_ != null) {
+ _single_optionalFloatWrapper_codec.WriteTagAndValue(ref output, OptionalFloatWrapper);
+ }
+ if (optionalDoubleWrapper_ != null) {
+ _single_optionalDoubleWrapper_codec.WriteTagAndValue(ref output, OptionalDoubleWrapper);
+ }
+ if (optionalStringWrapper_ != null) {
+ _single_optionalStringWrapper_codec.WriteTagAndValue(ref output, OptionalStringWrapper);
+ }
+ if (optionalBytesWrapper_ != null) {
+ _single_optionalBytesWrapper_codec.WriteTagAndValue(ref output, OptionalBytesWrapper);
+ }
+ repeatedBoolWrapper_.WriteTo(ref output, _repeated_repeatedBoolWrapper_codec);
+ repeatedInt32Wrapper_.WriteTo(ref output, _repeated_repeatedInt32Wrapper_codec);
+ repeatedInt64Wrapper_.WriteTo(ref output, _repeated_repeatedInt64Wrapper_codec);
+ repeatedUint32Wrapper_.WriteTo(ref output, _repeated_repeatedUint32Wrapper_codec);
+ repeatedUint64Wrapper_.WriteTo(ref output, _repeated_repeatedUint64Wrapper_codec);
+ repeatedFloatWrapper_.WriteTo(ref output, _repeated_repeatedFloatWrapper_codec);
+ repeatedDoubleWrapper_.WriteTo(ref output, _repeated_repeatedDoubleWrapper_codec);
+ repeatedStringWrapper_.WriteTo(ref output, _repeated_repeatedStringWrapper_codec);
+ repeatedBytesWrapper_.WriteTo(ref output, _repeated_repeatedBytesWrapper_codec);
+ if (optionalDuration_ != null) {
+ output.WriteRawTag(234, 18);
+ output.WriteMessage(OptionalDuration);
+ }
+ if (optionalTimestamp_ != null) {
+ output.WriteRawTag(242, 18);
+ output.WriteMessage(OptionalTimestamp);
+ }
+ if (optionalFieldMask_ != null) {
+ output.WriteRawTag(250, 18);
+ output.WriteMessage(OptionalFieldMask);
+ }
+ if (optionalStruct_ != null) {
+ output.WriteRawTag(130, 19);
+ output.WriteMessage(OptionalStruct);
+ }
+ if (optionalAny_ != null) {
+ output.WriteRawTag(138, 19);
+ output.WriteMessage(OptionalAny);
+ }
+ if (optionalValue_ != null) {
+ output.WriteRawTag(146, 19);
+ output.WriteMessage(OptionalValue);
+ }
+ repeatedDuration_.WriteTo(ref output, _repeated_repeatedDuration_codec);
+ repeatedTimestamp_.WriteTo(ref output, _repeated_repeatedTimestamp_codec);
+ repeatedFieldmask_.WriteTo(ref output, _repeated_repeatedFieldmask_codec);
+ repeatedAny_.WriteTo(ref output, _repeated_repeatedAny_codec);
+ repeatedValue_.WriteTo(ref output, _repeated_repeatedValue_codec);
+ repeatedListValue_.WriteTo(ref output, _repeated_repeatedListValue_codec);
+ repeatedStruct_.WriteTo(ref output, _repeated_repeatedStruct_codec);
+ if (Fieldname1 != 0) {
+ output.WriteRawTag(136, 25);
+ output.WriteInt32(Fieldname1);
+ }
+ if (FieldName2 != 0) {
+ output.WriteRawTag(144, 25);
+ output.WriteInt32(FieldName2);
+ }
+ if (FieldName3 != 0) {
+ output.WriteRawTag(152, 25);
+ output.WriteInt32(FieldName3);
+ }
+ if (FieldName4 != 0) {
+ output.WriteRawTag(160, 25);
+ output.WriteInt32(FieldName4);
+ }
+ if (Field0Name5 != 0) {
+ output.WriteRawTag(168, 25);
+ output.WriteInt32(Field0Name5);
+ }
+ if (Field0Name6 != 0) {
+ output.WriteRawTag(176, 25);
+ output.WriteInt32(Field0Name6);
+ }
+ if (FieldName7 != 0) {
+ output.WriteRawTag(184, 25);
+ output.WriteInt32(FieldName7);
+ }
+ if (FieldName8 != 0) {
+ output.WriteRawTag(192, 25);
+ output.WriteInt32(FieldName8);
+ }
+ if (FieldName9 != 0) {
+ output.WriteRawTag(200, 25);
+ output.WriteInt32(FieldName9);
+ }
+ if (FieldName10 != 0) {
+ output.WriteRawTag(208, 25);
+ output.WriteInt32(FieldName10);
+ }
+ if (FIELDNAME11 != 0) {
+ output.WriteRawTag(216, 25);
+ output.WriteInt32(FIELDNAME11);
+ }
+ if (FIELDName12 != 0) {
+ output.WriteRawTag(224, 25);
+ output.WriteInt32(FIELDName12);
+ }
+ if (FieldName13 != 0) {
+ output.WriteRawTag(232, 25);
+ output.WriteInt32(FieldName13);
+ }
+ if (FieldName14 != 0) {
+ output.WriteRawTag(240, 25);
+ output.WriteInt32(FieldName14);
+ }
+ if (FieldName15 != 0) {
+ output.WriteRawTag(248, 25);
+ output.WriteInt32(FieldName15);
+ }
+ if (FieldName16 != 0) {
+ output.WriteRawTag(128, 26);
+ output.WriteInt32(FieldName16);
+ }
+ if (FieldName17 != 0) {
+ output.WriteRawTag(136, 26);
+ output.WriteInt32(FieldName17);
+ }
+ if (FieldName18 != 0) {
+ output.WriteRawTag(144, 26);
+ output.WriteInt32(FieldName18);
+ }
+ if (_unknownFields != null) {
+ _unknownFields.WriteTo(ref output);
+ }
+ }
+ #endif
+
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public int CalculateSize() {
int size = 0;
@@ -4092,15 +4441,729 @@ public void MergeFrom(pb::CodedInputStream input) {
}
}
- #region Nested types
- /// Container for nested types declared in the TestAllTypesProto3 message type.
+
+ #if !GOOGLE_PROTOBUF_DISABLE_BUFFER_SERIALIZATION
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public static partial class Types {
- public enum NestedEnum {
- [pbr::OriginalName("FOO")] Foo = 0,
- [pbr::OriginalName("BAR")] Bar = 1,
- [pbr::OriginalName("BAZ")] Baz = 2,
- ///
+ public void MergeFrom(ref pb::CodedInputReader input) {
+ uint tag;
+ while ((tag = input.ReadTag()) != 0) {
+ switch(tag) {
+ default:
+ _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
+ break;
+ case 8: {
+ OptionalInt32 = input.ReadInt32();
+ break;
+ }
+ case 16: {
+ OptionalInt64 = input.ReadInt64();
+ break;
+ }
+ case 24: {
+ OptionalUint32 = input.ReadUInt32();
+ break;
+ }
+ case 32: {
+ OptionalUint64 = input.ReadUInt64();
+ break;
+ }
+ case 40: {
+ OptionalSint32 = input.ReadSInt32();
+ break;
+ }
+ case 48: {
+ OptionalSint64 = input.ReadSInt64();
+ break;
+ }
+ case 61: {
+ OptionalFixed32 = input.ReadFixed32();
+ break;
+ }
+ case 65: {
+ OptionalFixed64 = input.ReadFixed64();
+ break;
+ }
+ case 77: {
+ OptionalSfixed32 = input.ReadSFixed32();
+ break;
+ }
+ case 81: {
+ OptionalSfixed64 = input.ReadSFixed64();
+ break;
+ }
+ case 93: {
+ OptionalFloat = input.ReadFloat();
+ break;
+ }
+ case 97: {
+ OptionalDouble = input.ReadDouble();
+ break;
+ }
+ case 104: {
+ OptionalBool = input.ReadBool();
+ break;
+ }
+ case 114: {
+ OptionalString = input.ReadString();
+ break;
+ }
+ case 122: {
+ OptionalBytes = input.ReadBytes();
+ break;
+ }
+ case 146: {
+ if (optionalNestedMessage_ == null) {
+ OptionalNestedMessage = new global::ProtobufTestMessages.Proto3.TestAllTypesProto3.Types.NestedMessage();
+ }
+ input.ReadMessage(OptionalNestedMessage);
+ break;
+ }
+ case 154: {
+ if (optionalForeignMessage_ == null) {
+ OptionalForeignMessage = new global::ProtobufTestMessages.Proto3.ForeignMessage();
+ }
+ input.ReadMessage(OptionalForeignMessage);
+ break;
+ }
+ case 168: {
+ OptionalNestedEnum = (global::ProtobufTestMessages.Proto3.TestAllTypesProto3.Types.NestedEnum) input.ReadEnum();
+ break;
+ }
+ case 176: {
+ OptionalForeignEnum = (global::ProtobufTestMessages.Proto3.ForeignEnum) input.ReadEnum();
+ break;
+ }
+ case 184: {
+ OptionalAliasedEnum = (global::ProtobufTestMessages.Proto3.TestAllTypesProto3.Types.AliasedEnum) input.ReadEnum();
+ break;
+ }
+ case 194: {
+ OptionalStringPiece = input.ReadString();
+ break;
+ }
+ case 202: {
+ OptionalCord = input.ReadString();
+ break;
+ }
+ case 218: {
+ if (recursiveMessage_ == null) {
+ RecursiveMessage = new global::ProtobufTestMessages.Proto3.TestAllTypesProto3();
+ }
+ input.ReadMessage(RecursiveMessage);
+ break;
+ }
+ case 250:
+ case 248: {
+ repeatedInt32_.AddEntriesFrom(ref input, _repeated_repeatedInt32_codec);
+ break;
+ }
+ case 258:
+ case 256: {
+ repeatedInt64_.AddEntriesFrom(ref input, _repeated_repeatedInt64_codec);
+ break;
+ }
+ case 266:
+ case 264: {
+ repeatedUint32_.AddEntriesFrom(ref input, _repeated_repeatedUint32_codec);
+ break;
+ }
+ case 274:
+ case 272: {
+ repeatedUint64_.AddEntriesFrom(ref input, _repeated_repeatedUint64_codec);
+ break;
+ }
+ case 282:
+ case 280: {
+ repeatedSint32_.AddEntriesFrom(ref input, _repeated_repeatedSint32_codec);
+ break;
+ }
+ case 290:
+ case 288: {
+ repeatedSint64_.AddEntriesFrom(ref input, _repeated_repeatedSint64_codec);
+ break;
+ }
+ case 298:
+ case 301: {
+ repeatedFixed32_.AddEntriesFrom(ref input, _repeated_repeatedFixed32_codec);
+ break;
+ }
+ case 306:
+ case 305: {
+ repeatedFixed64_.AddEntriesFrom(ref input, _repeated_repeatedFixed64_codec);
+ break;
+ }
+ case 314:
+ case 317: {
+ repeatedSfixed32_.AddEntriesFrom(ref input, _repeated_repeatedSfixed32_codec);
+ break;
+ }
+ case 322:
+ case 321: {
+ repeatedSfixed64_.AddEntriesFrom(ref input, _repeated_repeatedSfixed64_codec);
+ break;
+ }
+ case 330:
+ case 333: {
+ repeatedFloat_.AddEntriesFrom(ref input, _repeated_repeatedFloat_codec);
+ break;
+ }
+ case 338:
+ case 337: {
+ repeatedDouble_.AddEntriesFrom(ref input, _repeated_repeatedDouble_codec);
+ break;
+ }
+ case 346:
+ case 344: {
+ repeatedBool_.AddEntriesFrom(ref input, _repeated_repeatedBool_codec);
+ break;
+ }
+ case 354: {
+ repeatedString_.AddEntriesFrom(ref input, _repeated_repeatedString_codec);
+ break;
+ }
+ case 362: {
+ repeatedBytes_.AddEntriesFrom(ref input, _repeated_repeatedBytes_codec);
+ break;
+ }
+ case 386: {
+ repeatedNestedMessage_.AddEntriesFrom(ref input, _repeated_repeatedNestedMessage_codec);
+ break;
+ }
+ case 394: {
+ repeatedForeignMessage_.AddEntriesFrom(ref input, _repeated_repeatedForeignMessage_codec);
+ break;
+ }
+ case 410:
+ case 408: {
+ repeatedNestedEnum_.AddEntriesFrom(ref input, _repeated_repeatedNestedEnum_codec);
+ break;
+ }
+ case 418:
+ case 416: {
+ repeatedForeignEnum_.AddEntriesFrom(ref input, _repeated_repeatedForeignEnum_codec);
+ break;
+ }
+ case 434: {
+ repeatedStringPiece_.AddEntriesFrom(ref input, _repeated_repeatedStringPiece_codec);
+ break;
+ }
+ case 442: {
+ repeatedCord_.AddEntriesFrom(ref input, _repeated_repeatedCord_codec);
+ break;
+ }
+ case 450: {
+ mapInt32Int32_.AddEntriesFrom(ref input, _map_mapInt32Int32_codec);
+ break;
+ }
+ case 458: {
+ mapInt64Int64_.AddEntriesFrom(ref input, _map_mapInt64Int64_codec);
+ break;
+ }
+ case 466: {
+ mapUint32Uint32_.AddEntriesFrom(ref input, _map_mapUint32Uint32_codec);
+ break;
+ }
+ case 474: {
+ mapUint64Uint64_.AddEntriesFrom(ref input, _map_mapUint64Uint64_codec);
+ break;
+ }
+ case 482: {
+ mapSint32Sint32_.AddEntriesFrom(ref input, _map_mapSint32Sint32_codec);
+ break;
+ }
+ case 490: {
+ mapSint64Sint64_.AddEntriesFrom(ref input, _map_mapSint64Sint64_codec);
+ break;
+ }
+ case 498: {
+ mapFixed32Fixed32_.AddEntriesFrom(ref input, _map_mapFixed32Fixed32_codec);
+ break;
+ }
+ case 506: {
+ mapFixed64Fixed64_.AddEntriesFrom(ref input, _map_mapFixed64Fixed64_codec);
+ break;
+ }
+ case 514: {
+ mapSfixed32Sfixed32_.AddEntriesFrom(ref input, _map_mapSfixed32Sfixed32_codec);
+ break;
+ }
+ case 522: {
+ mapSfixed64Sfixed64_.AddEntriesFrom(ref input, _map_mapSfixed64Sfixed64_codec);
+ break;
+ }
+ case 530: {
+ mapInt32Float_.AddEntriesFrom(ref input, _map_mapInt32Float_codec);
+ break;
+ }
+ case 538: {
+ mapInt32Double_.AddEntriesFrom(ref input, _map_mapInt32Double_codec);
+ break;
+ }
+ case 546: {
+ mapBoolBool_.AddEntriesFrom(ref input, _map_mapBoolBool_codec);
+ break;
+ }
+ case 554: {
+ mapStringString_.AddEntriesFrom(ref input, _map_mapStringString_codec);
+ break;
+ }
+ case 562: {
+ mapStringBytes_.AddEntriesFrom(ref input, _map_mapStringBytes_codec);
+ break;
+ }
+ case 570: {
+ mapStringNestedMessage_.AddEntriesFrom(ref input, _map_mapStringNestedMessage_codec);
+ break;
+ }
+ case 578: {
+ mapStringForeignMessage_.AddEntriesFrom(ref input, _map_mapStringForeignMessage_codec);
+ break;
+ }
+ case 586: {
+ mapStringNestedEnum_.AddEntriesFrom(ref input, _map_mapStringNestedEnum_codec);
+ break;
+ }
+ case 594: {
+ mapStringForeignEnum_.AddEntriesFrom(ref input, _map_mapStringForeignEnum_codec);
+ break;
+ }
+ case 602:
+ case 600: {
+ packedInt32_.AddEntriesFrom(ref input, _repeated_packedInt32_codec);
+ break;
+ }
+ case 610:
+ case 608: {
+ packedInt64_.AddEntriesFrom(ref input, _repeated_packedInt64_codec);
+ break;
+ }
+ case 618:
+ case 616: {
+ packedUint32_.AddEntriesFrom(ref input, _repeated_packedUint32_codec);
+ break;
+ }
+ case 626:
+ case 624: {
+ packedUint64_.AddEntriesFrom(ref input, _repeated_packedUint64_codec);
+ break;
+ }
+ case 634:
+ case 632: {
+ packedSint32_.AddEntriesFrom(ref input, _repeated_packedSint32_codec);
+ break;
+ }
+ case 642:
+ case 640: {
+ packedSint64_.AddEntriesFrom(ref input, _repeated_packedSint64_codec);
+ break;
+ }
+ case 650:
+ case 653: {
+ packedFixed32_.AddEntriesFrom(ref input, _repeated_packedFixed32_codec);
+ break;
+ }
+ case 658:
+ case 657: {
+ packedFixed64_.AddEntriesFrom(ref input, _repeated_packedFixed64_codec);
+ break;
+ }
+ case 666:
+ case 669: {
+ packedSfixed32_.AddEntriesFrom(ref input, _repeated_packedSfixed32_codec);
+ break;
+ }
+ case 674:
+ case 673: {
+ packedSfixed64_.AddEntriesFrom(ref input, _repeated_packedSfixed64_codec);
+ break;
+ }
+ case 682:
+ case 685: {
+ packedFloat_.AddEntriesFrom(ref input, _repeated_packedFloat_codec);
+ break;
+ }
+ case 690:
+ case 689: {
+ packedDouble_.AddEntriesFrom(ref input, _repeated_packedDouble_codec);
+ break;
+ }
+ case 698:
+ case 696: {
+ packedBool_.AddEntriesFrom(ref input, _repeated_packedBool_codec);
+ break;
+ }
+ case 706:
+ case 704: {
+ packedNestedEnum_.AddEntriesFrom(ref input, _repeated_packedNestedEnum_codec);
+ break;
+ }
+ case 714:
+ case 712: {
+ unpackedInt32_.AddEntriesFrom(ref input, _repeated_unpackedInt32_codec);
+ break;
+ }
+ case 722:
+ case 720: {
+ unpackedInt64_.AddEntriesFrom(ref input, _repeated_unpackedInt64_codec);
+ break;
+ }
+ case 730:
+ case 728: {
+ unpackedUint32_.AddEntriesFrom(ref input, _repeated_unpackedUint32_codec);
+ break;
+ }
+ case 738:
+ case 736: {
+ unpackedUint64_.AddEntriesFrom(ref input, _repeated_unpackedUint64_codec);
+ break;
+ }
+ case 746:
+ case 744: {
+ unpackedSint32_.AddEntriesFrom(ref input, _repeated_unpackedSint32_codec);
+ break;
+ }
+ case 754:
+ case 752: {
+ unpackedSint64_.AddEntriesFrom(ref input, _repeated_unpackedSint64_codec);
+ break;
+ }
+ case 762:
+ case 765: {
+ unpackedFixed32_.AddEntriesFrom(ref input, _repeated_unpackedFixed32_codec);
+ break;
+ }
+ case 770:
+ case 769: {
+ unpackedFixed64_.AddEntriesFrom(ref input, _repeated_unpackedFixed64_codec);
+ break;
+ }
+ case 778:
+ case 781: {
+ unpackedSfixed32_.AddEntriesFrom(ref input, _repeated_unpackedSfixed32_codec);
+ break;
+ }
+ case 786:
+ case 785: {
+ unpackedSfixed64_.AddEntriesFrom(ref input, _repeated_unpackedSfixed64_codec);
+ break;
+ }
+ case 794:
+ case 797: {
+ unpackedFloat_.AddEntriesFrom(ref input, _repeated_unpackedFloat_codec);
+ break;
+ }
+ case 802:
+ case 801: {
+ unpackedDouble_.AddEntriesFrom(ref input, _repeated_unpackedDouble_codec);
+ break;
+ }
+ case 810:
+ case 808: {
+ unpackedBool_.AddEntriesFrom(ref input, _repeated_unpackedBool_codec);
+ break;
+ }
+ case 818:
+ case 816: {
+ unpackedNestedEnum_.AddEntriesFrom(ref input, _repeated_unpackedNestedEnum_codec);
+ break;
+ }
+ case 888: {
+ OneofUint32 = input.ReadUInt32();
+ break;
+ }
+ case 898: {
+ global::ProtobufTestMessages.Proto3.TestAllTypesProto3.Types.NestedMessage subBuilder = new global::ProtobufTestMessages.Proto3.TestAllTypesProto3.Types.NestedMessage();
+ if (oneofFieldCase_ == OneofFieldOneofCase.OneofNestedMessage) {
+ subBuilder.MergeFrom(OneofNestedMessage);
+ }
+ input.ReadMessage(subBuilder);
+ OneofNestedMessage = subBuilder;
+ break;
+ }
+ case 906: {
+ OneofString = input.ReadString();
+ break;
+ }
+ case 914: {
+ OneofBytes = input.ReadBytes();
+ break;
+ }
+ case 920: {
+ OneofBool = input.ReadBool();
+ break;
+ }
+ case 928: {
+ OneofUint64 = input.ReadUInt64();
+ break;
+ }
+ case 941: {
+ OneofFloat = input.ReadFloat();
+ break;
+ }
+ case 945: {
+ OneofDouble = input.ReadDouble();
+ break;
+ }
+ case 952: {
+ oneofField_ = input.ReadEnum();
+ oneofFieldCase_ = OneofFieldOneofCase.OneofEnum;
+ break;
+ }
+ case 1610: {
+ bool? value = _single_optionalBoolWrapper_codec.Read(ref input);
+ if (optionalBoolWrapper_ == null || value != false) {
+ OptionalBoolWrapper = value;
+ }
+ break;
+ }
+ case 1618: {
+ int? value = _single_optionalInt32Wrapper_codec.Read(ref input);
+ if (optionalInt32Wrapper_ == null || value != 0) {
+ OptionalInt32Wrapper = value;
+ }
+ break;
+ }
+ case 1626: {
+ long? value = _single_optionalInt64Wrapper_codec.Read(ref input);
+ if (optionalInt64Wrapper_ == null || value != 0L) {
+ OptionalInt64Wrapper = value;
+ }
+ break;
+ }
+ case 1634: {
+ uint? value = _single_optionalUint32Wrapper_codec.Read(ref input);
+ if (optionalUint32Wrapper_ == null || value != 0) {
+ OptionalUint32Wrapper = value;
+ }
+ break;
+ }
+ case 1642: {
+ ulong? value = _single_optionalUint64Wrapper_codec.Read(ref input);
+ if (optionalUint64Wrapper_ == null || value != 0UL) {
+ OptionalUint64Wrapper = value;
+ }
+ break;
+ }
+ case 1650: {
+ float? value = _single_optionalFloatWrapper_codec.Read(ref input);
+ if (optionalFloatWrapper_ == null || value != 0F) {
+ OptionalFloatWrapper = value;
+ }
+ break;
+ }
+ case 1658: {
+ double? value = _single_optionalDoubleWrapper_codec.Read(ref input);
+ if (optionalDoubleWrapper_ == null || value != 0D) {
+ OptionalDoubleWrapper = value;
+ }
+ break;
+ }
+ case 1666: {
+ string value = _single_optionalStringWrapper_codec.Read(ref input);
+ if (optionalStringWrapper_ == null || value != "") {
+ OptionalStringWrapper = value;
+ }
+ break;
+ }
+ case 1674: {
+ pb::ByteString value = _single_optionalBytesWrapper_codec.Read(ref input);
+ if (optionalBytesWrapper_ == null || value != pb::ByteString.Empty) {
+ OptionalBytesWrapper = value;
+ }
+ break;
+ }
+ case 1690: {
+ repeatedBoolWrapper_.AddEntriesFrom(ref input, _repeated_repeatedBoolWrapper_codec);
+ break;
+ }
+ case 1698: {
+ repeatedInt32Wrapper_.AddEntriesFrom(ref input, _repeated_repeatedInt32Wrapper_codec);
+ break;
+ }
+ case 1706: {
+ repeatedInt64Wrapper_.AddEntriesFrom(ref input, _repeated_repeatedInt64Wrapper_codec);
+ break;
+ }
+ case 1714: {
+ repeatedUint32Wrapper_.AddEntriesFrom(ref input, _repeated_repeatedUint32Wrapper_codec);
+ break;
+ }
+ case 1722: {
+ repeatedUint64Wrapper_.AddEntriesFrom(ref input, _repeated_repeatedUint64Wrapper_codec);
+ break;
+ }
+ case 1730: {
+ repeatedFloatWrapper_.AddEntriesFrom(ref input, _repeated_repeatedFloatWrapper_codec);
+ break;
+ }
+ case 1738: {
+ repeatedDoubleWrapper_.AddEntriesFrom(ref input, _repeated_repeatedDoubleWrapper_codec);
+ break;
+ }
+ case 1746: {
+ repeatedStringWrapper_.AddEntriesFrom(ref input, _repeated_repeatedStringWrapper_codec);
+ break;
+ }
+ case 1754: {
+ repeatedBytesWrapper_.AddEntriesFrom(ref input, _repeated_repeatedBytesWrapper_codec);
+ break;
+ }
+ case 2410: {
+ if (optionalDuration_ == null) {
+ OptionalDuration = new global::Google.Protobuf.WellKnownTypes.Duration();
+ }
+ input.ReadMessage(OptionalDuration);
+ break;
+ }
+ case 2418: {
+ if (optionalTimestamp_ == null) {
+ OptionalTimestamp = new global::Google.Protobuf.WellKnownTypes.Timestamp();
+ }
+ input.ReadMessage(OptionalTimestamp);
+ break;
+ }
+ case 2426: {
+ if (optionalFieldMask_ == null) {
+ OptionalFieldMask = new global::Google.Protobuf.WellKnownTypes.FieldMask();
+ }
+ input.ReadMessage(OptionalFieldMask);
+ break;
+ }
+ case 2434: {
+ if (optionalStruct_ == null) {
+ OptionalStruct = new global::Google.Protobuf.WellKnownTypes.Struct();
+ }
+ input.ReadMessage(OptionalStruct);
+ break;
+ }
+ case 2442: {
+ if (optionalAny_ == null) {
+ OptionalAny = new global::Google.Protobuf.WellKnownTypes.Any();
+ }
+ input.ReadMessage(OptionalAny);
+ break;
+ }
+ case 2450: {
+ if (optionalValue_ == null) {
+ OptionalValue = new global::Google.Protobuf.WellKnownTypes.Value();
+ }
+ input.ReadMessage(OptionalValue);
+ break;
+ }
+ case 2490: {
+ repeatedDuration_.AddEntriesFrom(ref input, _repeated_repeatedDuration_codec);
+ break;
+ }
+ case 2498: {
+ repeatedTimestamp_.AddEntriesFrom(ref input, _repeated_repeatedTimestamp_codec);
+ break;
+ }
+ case 2506: {
+ repeatedFieldmask_.AddEntriesFrom(ref input, _repeated_repeatedFieldmask_codec);
+ break;
+ }
+ case 2522: {
+ repeatedAny_.AddEntriesFrom(ref input, _repeated_repeatedAny_codec);
+ break;
+ }
+ case 2530: {
+ repeatedValue_.AddEntriesFrom(ref input, _repeated_repeatedValue_codec);
+ break;
+ }
+ case 2538: {
+ repeatedListValue_.AddEntriesFrom(ref input, _repeated_repeatedListValue_codec);
+ break;
+ }
+ case 2594: {
+ repeatedStruct_.AddEntriesFrom(ref input, _repeated_repeatedStruct_codec);
+ break;
+ }
+ case 3208: {
+ Fieldname1 = input.ReadInt32();
+ break;
+ }
+ case 3216: {
+ FieldName2 = input.ReadInt32();
+ break;
+ }
+ case 3224: {
+ FieldName3 = input.ReadInt32();
+ break;
+ }
+ case 3232: {
+ FieldName4 = input.ReadInt32();
+ break;
+ }
+ case 3240: {
+ Field0Name5 = input.ReadInt32();
+ break;
+ }
+ case 3248: {
+ Field0Name6 = input.ReadInt32();
+ break;
+ }
+ case 3256: {
+ FieldName7 = input.ReadInt32();
+ break;
+ }
+ case 3264: {
+ FieldName8 = input.ReadInt32();
+ break;
+ }
+ case 3272: {
+ FieldName9 = input.ReadInt32();
+ break;
+ }
+ case 3280: {
+ FieldName10 = input.ReadInt32();
+ break;
+ }
+ case 3288: {
+ FIELDNAME11 = input.ReadInt32();
+ break;
+ }
+ case 3296: {
+ FIELDName12 = input.ReadInt32();
+ break;
+ }
+ case 3304: {
+ FieldName13 = input.ReadInt32();
+ break;
+ }
+ case 3312: {
+ FieldName14 = input.ReadInt32();
+ break;
+ }
+ case 3320: {
+ FieldName15 = input.ReadInt32();
+ break;
+ }
+ case 3328: {
+ FieldName16 = input.ReadInt32();
+ break;
+ }
+ case 3336: {
+ FieldName17 = input.ReadInt32();
+ break;
+ }
+ case 3344: {
+ FieldName18 = input.ReadInt32();
+ break;
+ }
+ }
+ }
+ }
+ #endif
+
+ #region Nested types
+ /// Container for nested types declared in the TestAllTypesProto3 message type.
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ public static partial class Types {
+ public enum NestedEnum {
+ [pbr::OriginalName("FOO")] Foo = 0,
+ [pbr::OriginalName("BAR")] Bar = 1,
+ [pbr::OriginalName("BAZ")] Baz = 2,
+ ///
/// Intentionally negative.
///
[pbr::OriginalName("NEG")] Neg = -1,
@@ -4115,7 +5178,11 @@ public enum AliasedEnum {
[pbr::OriginalName("bAz", PreferredAlias = false)] BAz = 2,
}
- public sealed partial class NestedMessage : pb::IMessage {
+ public sealed partial class NestedMessage : pb::IMessage
+ #if !GOOGLE_PROTOBUF_DISABLE_BUFFER_SERIALIZATION
+ , pb::IBufferMessage
+ #endif
+ {
private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new NestedMessage());
private pb::UnknownFieldSet _unknownFields;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
@@ -4221,6 +5288,24 @@ public void WriteTo(pb::CodedOutputStream output) {
}
}
+
+ #if !GOOGLE_PROTOBUF_DISABLE_BUFFER_SERIALIZATION
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ public void WriteTo(ref pb::CodedOutputWriter output) {
+ if (A != 0) {
+ output.WriteRawTag(8);
+ output.WriteInt32(A);
+ }
+ if (corecursive_ != null) {
+ output.WriteRawTag(18);
+ output.WriteMessage(Corecursive);
+ }
+ if (_unknownFields != null) {
+ _unknownFields.WriteTo(ref output);
+ }
+ }
+ #endif
+
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public int CalculateSize() {
int size = 0;
@@ -4276,6 +5361,32 @@ public void MergeFrom(pb::CodedInputStream input) {
}
}
+
+ #if !GOOGLE_PROTOBUF_DISABLE_BUFFER_SERIALIZATION
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ public void MergeFrom(ref pb::CodedInputReader input) {
+ uint tag;
+ while ((tag = input.ReadTag()) != 0) {
+ switch(tag) {
+ default:
+ _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
+ break;
+ case 8: {
+ A = input.ReadInt32();
+ break;
+ }
+ case 18: {
+ if (corecursive_ == null) {
+ Corecursive = new global::ProtobufTestMessages.Proto3.TestAllTypesProto3();
+ }
+ input.ReadMessage(Corecursive);
+ break;
+ }
+ }
+ }
+ }
+ #endif
+
}
}
@@ -4283,7 +5394,11 @@ public void MergeFrom(pb::CodedInputStream input) {
}
- public sealed partial class ForeignMessage : pb::IMessage {
+ public sealed partial class ForeignMessage : pb::IMessage
+ #if !GOOGLE_PROTOBUF_DISABLE_BUFFER_SERIALIZATION
+ , pb::IBufferMessage
+ #endif
+ {
private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ForeignMessage());
private pb::UnknownFieldSet _unknownFields;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
@@ -4371,6 +5486,20 @@ public void WriteTo(pb::CodedOutputStream output) {
}
}
+
+ #if !GOOGLE_PROTOBUF_DISABLE_BUFFER_SERIALIZATION
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ public void WriteTo(ref pb::CodedOutputWriter output) {
+ if (C != 0) {
+ output.WriteRawTag(8);
+ output.WriteInt32(C);
+ }
+ if (_unknownFields != null) {
+ _unknownFields.WriteTo(ref output);
+ }
+ }
+ #endif
+
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public int CalculateSize() {
int size = 0;
@@ -4410,6 +5539,25 @@ public void MergeFrom(pb::CodedInputStream input) {
}
}
+
+ #if !GOOGLE_PROTOBUF_DISABLE_BUFFER_SERIALIZATION
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ public void MergeFrom(ref pb::CodedInputReader input) {
+ uint tag;
+ while ((tag = input.ReadTag()) != 0) {
+ switch(tag) {
+ default:
+ _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
+ break;
+ case 8: {
+ C = input.ReadInt32();
+ break;
+ }
+ }
+ }
+ }
+ #endif
+
}
#endregion
diff --git a/csharp/src/Google.Protobuf.Test.TestProtos/Unittest.cs b/csharp/src/Google.Protobuf.Test.TestProtos/Unittest.cs
index e55df12f2ec8..f4e57671c605 100644
--- a/csharp/src/Google.Protobuf.Test.TestProtos/Unittest.cs
+++ b/csharp/src/Google.Protobuf.Test.TestProtos/Unittest.cs
@@ -1120,7 +1120,11 @@ public enum VeryLargeEnum {
/// This proto includes every type of field in both singular and repeated
/// forms.
///
- public sealed partial class TestAllTypes : pb::IMessage {
+ public sealed partial class TestAllTypes : pb::IMessage
+ #if !GOOGLE_PROTOBUF_DISABLE_BUFFER_SERIALIZATION
+ , pb::IBufferMessage
+ #endif
+ {
private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new TestAllTypes());
private pb::UnknownFieldSet _unknownFields;
private int _hasBits0;
@@ -3111,6 +3115,242 @@ public void WriteTo(pb::CodedOutputStream output) {
}
}
+
+ #if !GOOGLE_PROTOBUF_DISABLE_BUFFER_SERIALIZATION
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ public void WriteTo(ref pb::CodedOutputWriter output) {
+ if (HasOptionalInt32) {
+ output.WriteRawTag(8);
+ output.WriteInt32(OptionalInt32);
+ }
+ if (HasOptionalInt64) {
+ output.WriteRawTag(16);
+ output.WriteInt64(OptionalInt64);
+ }
+ if (HasOptionalUint32) {
+ output.WriteRawTag(24);
+ output.WriteUInt32(OptionalUint32);
+ }
+ if (HasOptionalUint64) {
+ output.WriteRawTag(32);
+ output.WriteUInt64(OptionalUint64);
+ }
+ if (HasOptionalSint32) {
+ output.WriteRawTag(40);
+ output.WriteSInt32(OptionalSint32);
+ }
+ if (HasOptionalSint64) {
+ output.WriteRawTag(48);
+ output.WriteSInt64(OptionalSint64);
+ }
+ if (HasOptionalFixed32) {
+ output.WriteRawTag(61);
+ output.WriteFixed32(OptionalFixed32);
+ }
+ if (HasOptionalFixed64) {
+ output.WriteRawTag(65);
+ output.WriteFixed64(OptionalFixed64);
+ }
+ if (HasOptionalSfixed32) {
+ output.WriteRawTag(77);
+ output.WriteSFixed32(OptionalSfixed32);
+ }
+ if (HasOptionalSfixed64) {
+ output.WriteRawTag(81);
+ output.WriteSFixed64(OptionalSfixed64);
+ }
+ if (HasOptionalFloat) {
+ output.WriteRawTag(93);
+ output.WriteFloat(OptionalFloat);
+ }
+ if (HasOptionalDouble) {
+ output.WriteRawTag(97);
+ output.WriteDouble(OptionalDouble);
+ }
+ if (HasOptionalBool) {
+ output.WriteRawTag(104);
+ output.WriteBool(OptionalBool);
+ }
+ if (HasOptionalString) {
+ output.WriteRawTag(114);
+ output.WriteString(OptionalString);
+ }
+ if (HasOptionalBytes) {
+ output.WriteRawTag(122);
+ output.WriteBytes(OptionalBytes);
+ }
+ if (HasOptionalGroup) {
+ output.WriteRawTag(131, 1);
+ output.WriteGroup(OptionalGroup);
+ output.WriteRawTag(132, 1);
+ }
+ if (HasOptionalNestedMessage) {
+ output.WriteRawTag(146, 1);
+ output.WriteMessage(OptionalNestedMessage);
+ }
+ if (HasOptionalForeignMessage) {
+ output.WriteRawTag(154, 1);
+ output.WriteMessage(OptionalForeignMessage);
+ }
+ if (HasOptionalImportMessage) {
+ output.WriteRawTag(162, 1);
+ output.WriteMessage(OptionalImportMessage);
+ }
+ if (HasOptionalNestedEnum) {
+ output.WriteRawTag(168, 1);
+ output.WriteEnum((int) OptionalNestedEnum);
+ }
+ if (HasOptionalForeignEnum) {
+ output.WriteRawTag(176, 1);
+ output.WriteEnum((int) OptionalForeignEnum);
+ }
+ if (HasOptionalImportEnum) {
+ output.WriteRawTag(184, 1);
+ output.WriteEnum((int) OptionalImportEnum);
+ }
+ if (HasOptionalStringPiece) {
+ output.WriteRawTag(194, 1);
+ output.WriteString(OptionalStringPiece);
+ }
+ if (HasOptionalCord) {
+ output.WriteRawTag(202, 1);
+ output.WriteString(OptionalCord);
+ }
+ if (HasOptionalPublicImportMessage) {
+ output.WriteRawTag(210, 1);
+ output.WriteMessage(OptionalPublicImportMessage);
+ }
+ if (HasOptionalLazyMessage) {
+ output.WriteRawTag(218, 1);
+ output.WriteMessage(OptionalLazyMessage);
+ }
+ repeatedInt32_.WriteTo(ref output, _repeated_repeatedInt32_codec);
+ repeatedInt64_.WriteTo(ref output, _repeated_repeatedInt64_codec);
+ repeatedUint32_.WriteTo(ref output, _repeated_repeatedUint32_codec);
+ repeatedUint64_.WriteTo(ref output, _repeated_repeatedUint64_codec);
+ repeatedSint32_.WriteTo(ref output, _repeated_repeatedSint32_codec);
+ repeatedSint64_.WriteTo(ref output, _repeated_repeatedSint64_codec);
+ repeatedFixed32_.WriteTo(ref output, _repeated_repeatedFixed32_codec);
+ repeatedFixed64_.WriteTo(ref output, _repeated_repeatedFixed64_codec);
+ repeatedSfixed32_.WriteTo(ref output, _repeated_repeatedSfixed32_codec);
+ repeatedSfixed64_.WriteTo(ref output, _repeated_repeatedSfixed64_codec);
+ repeatedFloat_.WriteTo(ref output, _repeated_repeatedFloat_codec);
+ repeatedDouble_.WriteTo(ref output, _repeated_repeatedDouble_codec);
+ repeatedBool_.WriteTo(ref output, _repeated_repeatedBool_codec);
+ repeatedString_.WriteTo(ref output, _repeated_repeatedString_codec);
+ repeatedBytes_.WriteTo(ref output, _repeated_repeatedBytes_codec);
+ repeatedGroup_.WriteTo(ref output, _repeated_repeatedGroup_codec);
+ repeatedNestedMessage_.WriteTo(ref output, _repeated_repeatedNestedMessage_codec);
+ repeatedForeignMessage_.WriteTo(ref output, _repeated_repeatedForeignMessage_codec);
+ repeatedImportMessage_.WriteTo(ref output, _repeated_repeatedImportMessage_codec);
+ repeatedNestedEnum_.WriteTo(ref output, _repeated_repeatedNestedEnum_codec);
+ repeatedForeignEnum_.WriteTo(ref output, _repeated_repeatedForeignEnum_codec);
+ repeatedImportEnum_.WriteTo(ref output, _repeated_repeatedImportEnum_codec);
+ repeatedStringPiece_.WriteTo(ref output, _repeated_repeatedStringPiece_codec);
+ repeatedCord_.WriteTo(ref output, _repeated_repeatedCord_codec);
+ repeatedLazyMessage_.WriteTo(ref output, _repeated_repeatedLazyMessage_codec);
+ if (HasDefaultInt32) {
+ output.WriteRawTag(232, 3);
+ output.WriteInt32(DefaultInt32);
+ }
+ if (HasDefaultInt64) {
+ output.WriteRawTag(240, 3);
+ output.WriteInt64(DefaultInt64);
+ }
+ if (HasDefaultUint32) {
+ output.WriteRawTag(248, 3);
+ output.WriteUInt32(DefaultUint32);
+ }
+ if (HasDefaultUint64) {
+ output.WriteRawTag(128, 4);
+ output.WriteUInt64(DefaultUint64);
+ }
+ if (HasDefaultSint32) {
+ output.WriteRawTag(136, 4);
+ output.WriteSInt32(DefaultSint32);
+ }
+ if (HasDefaultSint64) {
+ output.WriteRawTag(144, 4);
+ output.WriteSInt64(DefaultSint64);
+ }
+ if (HasDefaultFixed32) {
+ output.WriteRawTag(157, 4);
+ output.WriteFixed32(DefaultFixed32);
+ }
+ if (HasDefaultFixed64) {
+ output.WriteRawTag(161, 4);
+ output.WriteFixed64(DefaultFixed64);
+ }
+ if (HasDefaultSfixed32) {
+ output.WriteRawTag(173, 4);
+ output.WriteSFixed32(DefaultSfixed32);
+ }
+ if (HasDefaultSfixed64) {
+ output.WriteRawTag(177, 4);
+ output.WriteSFixed64(DefaultSfixed64);
+ }
+ if (HasDefaultFloat) {
+ output.WriteRawTag(189, 4);
+ output.WriteFloat(DefaultFloat);
+ }
+ if (HasDefaultDouble) {
+ output.WriteRawTag(193, 4);
+ output.WriteDouble(DefaultDouble);
+ }
+ if (HasDefaultBool) {
+ output.WriteRawTag(200, 4);
+ output.WriteBool(DefaultBool);
+ }
+ if (HasDefaultString) {
+ output.WriteRawTag(210, 4);
+ output.WriteString(DefaultString);
+ }
+ if (HasDefaultBytes) {
+ output.WriteRawTag(218, 4);
+ output.WriteBytes(DefaultBytes);
+ }
+ if (HasDefaultNestedEnum) {
+ output.WriteRawTag(136, 5);
+ output.WriteEnum((int) DefaultNestedEnum);
+ }
+ if (HasDefaultForeignEnum) {
+ output.WriteRawTag(144, 5);
+ output.WriteEnum((int) DefaultForeignEnum);
+ }
+ if (HasDefaultImportEnum) {
+ output.WriteRawTag(152, 5);
+ output.WriteEnum((int) DefaultImportEnum);
+ }
+ if (HasDefaultStringPiece) {
+ output.WriteRawTag(162, 5);
+ output.WriteString(DefaultStringPiece);
+ }
+ if (HasDefaultCord) {
+ output.WriteRawTag(170, 5);
+ output.WriteString(DefaultCord);
+ }
+ if (HasOneofUint32) {
+ output.WriteRawTag(248, 6);
+ output.WriteUInt32(OneofUint32);
+ }
+ if (HasOneofNestedMessage) {
+ output.WriteRawTag(130, 7);
+ output.WriteMessage(OneofNestedMessage);
+ }
+ if (HasOneofString) {
+ output.WriteRawTag(138, 7);
+ output.WriteString(OneofString);
+ }
+ if (HasOneofBytes) {
+ output.WriteRawTag(146, 7);
+ output.WriteBytes(OneofBytes);
+ }
+ if (_unknownFields != null) {
+ _unknownFields.WriteTo(ref output);
+ }
+ }
+ #endif
+
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public int CalculateSize() {
int size = 0;
@@ -3853,57 +4093,415 @@ public void MergeFrom(pb::CodedInputStream input) {
}
}
- #region Nested types
- /// Container for nested types declared in the TestAllTypes message type.
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public static partial class Types {
- public enum NestedEnum {
- [pbr::OriginalName("FOO")] Foo = 1,
- [pbr::OriginalName("BAR")] Bar = 2,
- [pbr::OriginalName("BAZ")] Baz = 3,
- ///
- /// Intentionally negative.
- ///
- [pbr::OriginalName("NEG")] Neg = -1,
- }
-
- public sealed partial class NestedMessage : pb::IMessage {
- private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new NestedMessage());
- private pb::UnknownFieldSet _unknownFields;
- private int _hasBits0;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public static pb::MessageParser Parser { get { return _parser; } }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public static pbr::MessageDescriptor Descriptor {
- get { return global::Google.Protobuf.TestProtos.Proto2.TestAllTypes.Descriptor.NestedTypes[0]; }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- pbr::MessageDescriptor pb::IMessage.Descriptor {
- get { return Descriptor; }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public NestedMessage() {
- OnConstruction();
- }
-
- partial void OnConstruction();
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public NestedMessage(NestedMessage other) : this() {
- _hasBits0 = other._hasBits0;
- bb_ = other.bb_;
- _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public NestedMessage Clone() {
- return new NestedMessage(this);
- }
- /// Field number for the "bb" field.
+ #if !GOOGLE_PROTOBUF_DISABLE_BUFFER_SERIALIZATION
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ public void MergeFrom(ref pb::CodedInputReader input) {
+ uint tag;
+ while ((tag = input.ReadTag()) != 0) {
+ switch(tag) {
+ default:
+ _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
+ break;
+ case 8: {
+ OptionalInt32 = input.ReadInt32();
+ break;
+ }
+ case 16: {
+ OptionalInt64 = input.ReadInt64();
+ break;
+ }
+ case 24: {
+ OptionalUint32 = input.ReadUInt32();
+ break;
+ }
+ case 32: {
+ OptionalUint64 = input.ReadUInt64();
+ break;
+ }
+ case 40: {
+ OptionalSint32 = input.ReadSInt32();
+ break;
+ }
+ case 48: {
+ OptionalSint64 = input.ReadSInt64();
+ break;
+ }
+ case 61: {
+ OptionalFixed32 = input.ReadFixed32();
+ break;
+ }
+ case 65: {
+ OptionalFixed64 = input.ReadFixed64();
+ break;
+ }
+ case 77: {
+ OptionalSfixed32 = input.ReadSFixed32();
+ break;
+ }
+ case 81: {
+ OptionalSfixed64 = input.ReadSFixed64();
+ break;
+ }
+ case 93: {
+ OptionalFloat = input.ReadFloat();
+ break;
+ }
+ case 97: {
+ OptionalDouble = input.ReadDouble();
+ break;
+ }
+ case 104: {
+ OptionalBool = input.ReadBool();
+ break;
+ }
+ case 114: {
+ OptionalString = input.ReadString();
+ break;
+ }
+ case 122: {
+ OptionalBytes = input.ReadBytes();
+ break;
+ }
+ case 131: {
+ if (!HasOptionalGroup) {
+ OptionalGroup = new global::Google.Protobuf.TestProtos.Proto2.TestAllTypes.Types.OptionalGroup();
+ }
+ input.ReadGroup(OptionalGroup);
+ break;
+ }
+ case 146: {
+ if (!HasOptionalNestedMessage) {
+ OptionalNestedMessage = new global::Google.Protobuf.TestProtos.Proto2.TestAllTypes.Types.NestedMessage();
+ }
+ input.ReadMessage(OptionalNestedMessage);
+ break;
+ }
+ case 154: {
+ if (!HasOptionalForeignMessage) {
+ OptionalForeignMessage = new global::Google.Protobuf.TestProtos.Proto2.ForeignMessage();
+ }
+ input.ReadMessage(OptionalForeignMessage);
+ break;
+ }
+ case 162: {
+ if (!HasOptionalImportMessage) {
+ OptionalImportMessage = new global::Google.Protobuf.TestProtos.Proto2.ImportMessage();
+ }
+ input.ReadMessage(OptionalImportMessage);
+ break;
+ }
+ case 168: {
+ OptionalNestedEnum = (global::Google.Protobuf.TestProtos.Proto2.TestAllTypes.Types.NestedEnum) input.ReadEnum();
+ break;
+ }
+ case 176: {
+ OptionalForeignEnum = (global::Google.Protobuf.TestProtos.Proto2.ForeignEnum) input.ReadEnum();
+ break;
+ }
+ case 184: {
+ OptionalImportEnum = (global::Google.Protobuf.TestProtos.Proto2.ImportEnum) input.ReadEnum();
+ break;
+ }
+ case 194: {
+ OptionalStringPiece = input.ReadString();
+ break;
+ }
+ case 202: {
+ OptionalCord = input.ReadString();
+ break;
+ }
+ case 210: {
+ if (!HasOptionalPublicImportMessage) {
+ OptionalPublicImportMessage = new global::Google.Protobuf.TestProtos.Proto2.PublicImportMessage();
+ }
+ input.ReadMessage(OptionalPublicImportMessage);
+ break;
+ }
+ case 218: {
+ if (!HasOptionalLazyMessage) {
+ OptionalLazyMessage = new global::Google.Protobuf.TestProtos.Proto2.TestAllTypes.Types.NestedMessage();
+ }
+ input.ReadMessage(OptionalLazyMessage);
+ break;
+ }
+ case 250:
+ case 248: {
+ repeatedInt32_.AddEntriesFrom(ref input, _repeated_repeatedInt32_codec);
+ break;
+ }
+ case 258:
+ case 256: {
+ repeatedInt64_.AddEntriesFrom(ref input, _repeated_repeatedInt64_codec);
+ break;
+ }
+ case 266:
+ case 264: {
+ repeatedUint32_.AddEntriesFrom(ref input, _repeated_repeatedUint32_codec);
+ break;
+ }
+ case 274:
+ case 272: {
+ repeatedUint64_.AddEntriesFrom(ref input, _repeated_repeatedUint64_codec);
+ break;
+ }
+ case 282:
+ case 280: {
+ repeatedSint32_.AddEntriesFrom(ref input, _repeated_repeatedSint32_codec);
+ break;
+ }
+ case 290:
+ case 288: {
+ repeatedSint64_.AddEntriesFrom(ref input, _repeated_repeatedSint64_codec);
+ break;
+ }
+ case 298:
+ case 301: {
+ repeatedFixed32_.AddEntriesFrom(ref input, _repeated_repeatedFixed32_codec);
+ break;
+ }
+ case 306:
+ case 305: {
+ repeatedFixed64_.AddEntriesFrom(ref input, _repeated_repeatedFixed64_codec);
+ break;
+ }
+ case 314:
+ case 317: {
+ repeatedSfixed32_.AddEntriesFrom(ref input, _repeated_repeatedSfixed32_codec);
+ break;
+ }
+ case 322:
+ case 321: {
+ repeatedSfixed64_.AddEntriesFrom(ref input, _repeated_repeatedSfixed64_codec);
+ break;
+ }
+ case 330:
+ case 333: {
+ repeatedFloat_.AddEntriesFrom(ref input, _repeated_repeatedFloat_codec);
+ break;
+ }
+ case 338:
+ case 337: {
+ repeatedDouble_.AddEntriesFrom(ref input, _repeated_repeatedDouble_codec);
+ break;
+ }
+ case 346:
+ case 344: {
+ repeatedBool_.AddEntriesFrom(ref input, _repeated_repeatedBool_codec);
+ break;
+ }
+ case 354: {
+ repeatedString_.AddEntriesFrom(ref input, _repeated_repeatedString_codec);
+ break;
+ }
+ case 362: {
+ repeatedBytes_.AddEntriesFrom(ref input, _repeated_repeatedBytes_codec);
+ break;
+ }
+ case 371: {
+ repeatedGroup_.AddEntriesFrom(ref input, _repeated_repeatedGroup_codec);
+ break;
+ }
+ case 386: {
+ repeatedNestedMessage_.AddEntriesFrom(ref input, _repeated_repeatedNestedMessage_codec);
+ break;
+ }
+ case 394: {
+ repeatedForeignMessage_.AddEntriesFrom(ref input, _repeated_repeatedForeignMessage_codec);
+ break;
+ }
+ case 402: {
+ repeatedImportMessage_.AddEntriesFrom(ref input, _repeated_repeatedImportMessage_codec);
+ break;
+ }
+ case 410:
+ case 408: {
+ repeatedNestedEnum_.AddEntriesFrom(ref input, _repeated_repeatedNestedEnum_codec);
+ break;
+ }
+ case 418:
+ case 416: {
+ repeatedForeignEnum_.AddEntriesFrom(ref input, _repeated_repeatedForeignEnum_codec);
+ break;
+ }
+ case 426:
+ case 424: {
+ repeatedImportEnum_.AddEntriesFrom(ref input, _repeated_repeatedImportEnum_codec);
+ break;
+ }
+ case 434: {
+ repeatedStringPiece_.AddEntriesFrom(ref input, _repeated_repeatedStringPiece_codec);
+ break;
+ }
+ case 442: {
+ repeatedCord_.AddEntriesFrom(ref input, _repeated_repeatedCord_codec);
+ break;
+ }
+ case 458: {
+ repeatedLazyMessage_.AddEntriesFrom(ref input, _repeated_repeatedLazyMessage_codec);
+ break;
+ }
+ case 488: {
+ DefaultInt32 = input.ReadInt32();
+ break;
+ }
+ case 496: {
+ DefaultInt64 = input.ReadInt64();
+ break;
+ }
+ case 504: {
+ DefaultUint32 = input.ReadUInt32();
+ break;
+ }
+ case 512: {
+ DefaultUint64 = input.ReadUInt64();
+ break;
+ }
+ case 520: {
+ DefaultSint32 = input.ReadSInt32();
+ break;
+ }
+ case 528: {
+ DefaultSint64 = input.ReadSInt64();
+ break;
+ }
+ case 541: {
+ DefaultFixed32 = input.ReadFixed32();
+ break;
+ }
+ case 545: {
+ DefaultFixed64 = input.ReadFixed64();
+ break;
+ }
+ case 557: {
+ DefaultSfixed32 = input.ReadSFixed32();
+ break;
+ }
+ case 561: {
+ DefaultSfixed64 = input.ReadSFixed64();
+ break;
+ }
+ case 573: {
+ DefaultFloat = input.ReadFloat();
+ break;
+ }
+ case 577: {
+ DefaultDouble = input.ReadDouble();
+ break;
+ }
+ case 584: {
+ DefaultBool = input.ReadBool();
+ break;
+ }
+ case 594: {
+ DefaultString = input.ReadString();
+ break;
+ }
+ case 602: {
+ DefaultBytes = input.ReadBytes();
+ break;
+ }
+ case 648: {
+ DefaultNestedEnum = (global::Google.Protobuf.TestProtos.Proto2.TestAllTypes.Types.NestedEnum) input.ReadEnum();
+ break;
+ }
+ case 656: {
+ DefaultForeignEnum = (global::Google.Protobuf.TestProtos.Proto2.ForeignEnum) input.ReadEnum();
+ break;
+ }
+ case 664: {
+ DefaultImportEnum = (global::Google.Protobuf.TestProtos.Proto2.ImportEnum) input.ReadEnum();
+ break;
+ }
+ case 674: {
+ DefaultStringPiece = input.ReadString();
+ break;
+ }
+ case 682: {
+ DefaultCord = input.ReadString();
+ break;
+ }
+ case 888: {
+ OneofUint32 = input.ReadUInt32();
+ break;
+ }
+ case 898: {
+ global::Google.Protobuf.TestProtos.Proto2.TestAllTypes.Types.NestedMessage subBuilder = new global::Google.Protobuf.TestProtos.Proto2.TestAllTypes.Types.NestedMessage();
+ if (HasOneofNestedMessage) {
+ subBuilder.MergeFrom(OneofNestedMessage);
+ }
+ input.ReadMessage(subBuilder);
+ OneofNestedMessage = subBuilder;
+ break;
+ }
+ case 906: {
+ OneofString = input.ReadString();
+ break;
+ }
+ case 914: {
+ OneofBytes = input.ReadBytes();
+ break;
+ }
+ }
+ }
+ }
+ #endif
+
+ #region Nested types
+ /// Container for nested types declared in the TestAllTypes message type.
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ public static partial class Types {
+ public enum NestedEnum {
+ [pbr::OriginalName("FOO")] Foo = 1,
+ [pbr::OriginalName("BAR")] Bar = 2,
+ [pbr::OriginalName("BAZ")] Baz = 3,
+ ///
+ /// Intentionally negative.
+ ///
+ [pbr::OriginalName("NEG")] Neg = -1,
+ }
+
+ public sealed partial class NestedMessage : pb::IMessage
+ #if !GOOGLE_PROTOBUF_DISABLE_BUFFER_SERIALIZATION
+ , pb::IBufferMessage
+ #endif
+ {
+ private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new NestedMessage());
+ private pb::UnknownFieldSet _unknownFields;
+ private int _hasBits0;
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ public static pb::MessageParser Parser { get { return _parser; } }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ public static pbr::MessageDescriptor Descriptor {
+ get { return global::Google.Protobuf.TestProtos.Proto2.TestAllTypes.Descriptor.NestedTypes[0]; }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ pbr::MessageDescriptor pb::IMessage.Descriptor {
+ get { return Descriptor; }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ public NestedMessage() {
+ OnConstruction();
+ }
+
+ partial void OnConstruction();
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ public NestedMessage(NestedMessage other) : this() {
+ _hasBits0 = other._hasBits0;
+ bb_ = other.bb_;
+ _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ public NestedMessage Clone() {
+ return new NestedMessage(this);
+ }
+
+ /// Field number for the "bb" field.
public const int BbFieldNumber = 1;
private readonly static int BbDefaultValue = 0;
@@ -3975,6 +4573,20 @@ public void WriteTo(pb::CodedOutputStream output) {
}
}
+
+ #if !GOOGLE_PROTOBUF_DISABLE_BUFFER_SERIALIZATION
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ public void WriteTo(ref pb::CodedOutputWriter output) {
+ if (HasBb) {
+ output.WriteRawTag(8);
+ output.WriteInt32(Bb);
+ }
+ if (_unknownFields != null) {
+ _unknownFields.WriteTo(ref output);
+ }
+ }
+ #endif
+
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public int CalculateSize() {
int size = 0;
@@ -4014,9 +4626,32 @@ public void MergeFrom(pb::CodedInputStream input) {
}
}
+
+ #if !GOOGLE_PROTOBUF_DISABLE_BUFFER_SERIALIZATION
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ public void MergeFrom(ref pb::CodedInputReader input) {
+ uint tag;
+ while ((tag = input.ReadTag()) != 0) {
+ switch(tag) {
+ default:
+ _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
+ break;
+ case 8: {
+ Bb = input.ReadInt32();
+ break;
+ }
+ }
+ }
+ }
+ #endif
+
}
- public sealed partial class OptionalGroup : pb::IMessage {
+ public sealed partial class OptionalGroup : pb::IMessage
+ #if !GOOGLE_PROTOBUF_DISABLE_BUFFER_SERIALIZATION
+ , pb::IBufferMessage
+ #endif
+ {
private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new OptionalGroup());
private pb::UnknownFieldSet _unknownFields;
private int _hasBits0;
@@ -4119,6 +4754,20 @@ public void WriteTo(pb::CodedOutputStream output) {
}
}
+
+ #if !GOOGLE_PROTOBUF_DISABLE_BUFFER_SERIALIZATION
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ public void WriteTo(ref pb::CodedOutputWriter output) {
+ if (HasA) {
+ output.WriteRawTag(136, 1);
+ output.WriteInt32(A);
+ }
+ if (_unknownFields != null) {
+ _unknownFields.WriteTo(ref output);
+ }
+ }
+ #endif
+
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public int CalculateSize() {
int size = 0;
@@ -4160,9 +4809,34 @@ public void MergeFrom(pb::CodedInputStream input) {
}
}
+
+ #if !GOOGLE_PROTOBUF_DISABLE_BUFFER_SERIALIZATION
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ public void MergeFrom(ref pb::CodedInputReader input) {
+ uint tag;
+ while ((tag = input.ReadTag()) != 0) {
+ switch(tag) {
+ case 132:
+ return;
+ default:
+ _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
+ break;
+ case 136: {
+ A = input.ReadInt32();
+ break;
+ }
+ }
+ }
+ }
+ #endif
+
}
- public sealed partial class RepeatedGroup : pb::IMessage {
+ public sealed partial class RepeatedGroup : pb::IMessage
+ #if !GOOGLE_PROTOBUF_DISABLE_BUFFER_SERIALIZATION
+ , pb::IBufferMessage
+ #endif
+ {
private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new RepeatedGroup());
private pb::UnknownFieldSet _unknownFields;
private int _hasBits0;
@@ -4265,6 +4939,20 @@ public void WriteTo(pb::CodedOutputStream output) {
}
}
+
+ #if !GOOGLE_PROTOBUF_DISABLE_BUFFER_SERIALIZATION
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ public void WriteTo(ref pb::CodedOutputWriter output) {
+ if (HasA) {
+ output.WriteRawTag(248, 2);
+ output.WriteInt32(A);
+ }
+ if (_unknownFields != null) {
+ _unknownFields.WriteTo(ref output);
+ }
+ }
+ #endif
+
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public int CalculateSize() {
int size = 0;
@@ -4306,6 +4994,27 @@ public void MergeFrom(pb::CodedInputStream input) {
}
}
+
+ #if !GOOGLE_PROTOBUF_DISABLE_BUFFER_SERIALIZATION
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ public void MergeFrom(ref pb::CodedInputReader input) {
+ uint tag;
+ while ((tag = input.ReadTag()) != 0) {
+ switch(tag) {
+ case 372:
+ return;
+ default:
+ _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
+ break;
+ case 376: {
+ A = input.ReadInt32();
+ break;
+ }
+ }
+ }
+ }
+ #endif
+
}
}
@@ -4314,9 +5023,13 @@ public void MergeFrom(pb::CodedInputStream input) {
}
///
- /// This proto includes a recusively nested message.
+ /// This proto includes a recursively nested message.
///
- public sealed partial class NestedTestAllTypes : pb::IMessage {
+ public sealed partial class NestedTestAllTypes : pb::IMessage
+ #if !GOOGLE_PROTOBUF_DISABLE_BUFFER_SERIALIZATION
+ , pb::IBufferMessage
+ #endif
+ {
private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new NestedTestAllTypes());
private pb::UnknownFieldSet _unknownFields;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
@@ -4456,6 +5169,25 @@ public void WriteTo(pb::CodedOutputStream output) {
}
}
+
+ #if !GOOGLE_PROTOBUF_DISABLE_BUFFER_SERIALIZATION
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ public void WriteTo(ref pb::CodedOutputWriter output) {
+ if (HasChild) {
+ output.WriteRawTag(10);
+ output.WriteMessage(Child);
+ }
+ if (HasPayload) {
+ output.WriteRawTag(18);
+ output.WriteMessage(Payload);
+ }
+ repeatedChild_.WriteTo(ref output, _repeated_repeatedChild_codec);
+ if (_unknownFields != null) {
+ _unknownFields.WriteTo(ref output);
+ }
+ }
+ #endif
+
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public int CalculateSize() {
int size = 0;
@@ -4523,9 +5255,46 @@ public void MergeFrom(pb::CodedInputStream input) {
}
}
+
+ #if !GOOGLE_PROTOBUF_DISABLE_BUFFER_SERIALIZATION
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ public void MergeFrom(ref pb::CodedInputReader input) {
+ uint tag;
+ while ((tag = input.ReadTag()) != 0) {
+ switch(tag) {
+ default:
+ _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
+ break;
+ case 10: {
+ if (!HasChild) {
+ Child = new global::Google.Protobuf.TestProtos.Proto2.NestedTestAllTypes();
+ }
+ input.ReadMessage(Child);
+ break;
+ }
+ case 18: {
+ if (!HasPayload) {
+ Payload = new global::Google.Protobuf.TestProtos.Proto2.TestAllTypes();
+ }
+ input.ReadMessage(Payload);
+ break;
+ }
+ case 26: {
+ repeatedChild_.AddEntriesFrom(ref input, _repeated_repeatedChild_codec);
+ break;
+ }
+ }
+ }
+ }
+ #endif
+
}
- public sealed partial class TestDeprecatedFields : pb::IMessage {
+ public sealed partial class TestDeprecatedFields : pb::IMessage
+ #if !GOOGLE_PROTOBUF_DISABLE_BUFFER_SERIALIZATION
+ , pb::IBufferMessage
+ #endif
+ {
private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new TestDeprecatedFields());
private pb::UnknownFieldSet _unknownFields;
private int _hasBits0;
@@ -4689,6 +5458,24 @@ public void WriteTo(pb::CodedOutputStream output) {
}
}
+
+ #if !GOOGLE_PROTOBUF_DISABLE_BUFFER_SERIALIZATION
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ public void WriteTo(ref pb::CodedOutputWriter output) {
+ if (HasDeprecatedInt32) {
+ output.WriteRawTag(8);
+ output.WriteInt32(DeprecatedInt32);
+ }
+ if (HasDeprecatedInt32InOneof) {
+ output.WriteRawTag(16);
+ output.WriteInt32(DeprecatedInt32InOneof);
+ }
+ if (_unknownFields != null) {
+ _unknownFields.WriteTo(ref output);
+ }
+ }
+ #endif
+
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public int CalculateSize() {
int size = 0;
@@ -4741,10 +5528,37 @@ public void MergeFrom(pb::CodedInputStream input) {
}
}
+
+ #if !GOOGLE_PROTOBUF_DISABLE_BUFFER_SERIALIZATION
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ public void MergeFrom(ref pb::CodedInputReader input) {
+ uint tag;
+ while ((tag = input.ReadTag()) != 0) {
+ switch(tag) {
+ default:
+ _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
+ break;
+ case 8: {
+ DeprecatedInt32 = input.ReadInt32();
+ break;
+ }
+ case 16: {
+ DeprecatedInt32InOneof = input.ReadInt32();
+ break;
+ }
+ }
+ }
+ }
+ #endif
+
}
[global::System.ObsoleteAttribute]
- public sealed partial class TestDeprecatedMessage : pb::IMessage {
+ public sealed partial class TestDeprecatedMessage : pb::IMessage
+ #if !GOOGLE_PROTOBUF_DISABLE_BUFFER_SERIALIZATION
+ , pb::IBufferMessage
+ #endif
+ {
private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new TestDeprecatedMessage());
private pb::UnknownFieldSet _unknownFields;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
@@ -4814,6 +5628,16 @@ public void WriteTo(pb::CodedOutputStream output) {
}
}
+
+ #if !GOOGLE_PROTOBUF_DISABLE_BUFFER_SERIALIZATION
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ public void WriteTo(ref pb::CodedOutputWriter output) {
+ if (_unknownFields != null) {
+ _unknownFields.WriteTo(ref output);
+ }
+ }
+ #endif
+
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public int CalculateSize() {
int size = 0;
@@ -4843,13 +5667,32 @@ public void MergeFrom(pb::CodedInputStream input) {
}
}
+
+ #if !GOOGLE_PROTOBUF_DISABLE_BUFFER_SERIALIZATION
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ public void MergeFrom(ref pb::CodedInputReader input) {
+ uint tag;
+ while ((tag = input.ReadTag()) != 0) {
+ switch(tag) {
+ default:
+ _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
+ break;
+ }
+ }
+ }
+ #endif
+
}
///
/// Define these after TestAllTypes to make sure the compiler can handle
/// that.
///
- public sealed partial class ForeignMessage : pb::IMessage {
+ public sealed partial class ForeignMessage : pb::IMessage
+ #if !GOOGLE_PROTOBUF_DISABLE_BUFFER_SERIALIZATION
+ , pb::IBufferMessage
+ #endif
+ {
private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ForeignMessage());
private pb::UnknownFieldSet _unknownFields;
private int _hasBits0;
@@ -4983,6 +5826,24 @@ public void WriteTo(pb::CodedOutputStream output) {
}
}
+
+ #if !GOOGLE_PROTOBUF_DISABLE_BUFFER_SERIALIZATION
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ public void WriteTo(ref pb::CodedOutputWriter output) {
+ if (HasC) {
+ output.WriteRawTag(8);
+ output.WriteInt32(C);
+ }
+ if (HasD) {
+ output.WriteRawTag(16);
+ output.WriteInt32(D);
+ }
+ if (_unknownFields != null) {
+ _unknownFields.WriteTo(ref output);
+ }
+ }
+ #endif
+
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public int CalculateSize() {
int size = 0;
@@ -5032,9 +5893,36 @@ public void MergeFrom(pb::CodedInputStream input) {
}
}
+
+ #if !GOOGLE_PROTOBUF_DISABLE_BUFFER_SERIALIZATION
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ public void MergeFrom(ref pb::CodedInputReader input) {
+ uint tag;
+ while ((tag = input.ReadTag()) != 0) {
+ switch(tag) {
+ default:
+ _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
+ break;
+ case 8: {
+ C = input.ReadInt32();
+ break;
+ }
+ case 16: {
+ D = input.ReadInt32();
+ break;
+ }
+ }
+ }
+ }
+ #endif
+
}
- public sealed partial class TestReservedFields : pb::IMessage {
+ public sealed partial class TestReservedFields : pb::IMessage
+ #if !GOOGLE_PROTOBUF_DISABLE_BUFFER_SERIALIZATION
+ , pb::IBufferMessage
+ #endif
+ {
private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new TestReservedFields());
private pb::UnknownFieldSet _unknownFields;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
@@ -5104,6 +5992,16 @@ public void WriteTo(pb::CodedOutputStream output) {
}
}
+
+ #if !GOOGLE_PROTOBUF_DISABLE_BUFFER_SERIALIZATION
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ public void WriteTo(ref pb::CodedOutputWriter output) {
+ if (_unknownFields != null) {
+ _unknownFields.WriteTo(ref output);
+ }
+ }
+ #endif
+
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public int CalculateSize() {
int size = 0;
@@ -5133,9 +6031,28 @@ public void MergeFrom(pb::CodedInputStream input) {
}
}
+
+ #if !GOOGLE_PROTOBUF_DISABLE_BUFFER_SERIALIZATION
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ public void MergeFrom(ref pb::CodedInputReader input) {
+ uint tag;
+ while ((tag = input.ReadTag()) != 0) {
+ switch(tag) {
+ default:
+ _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
+ break;
+ }
+ }
+ }
+ #endif
+
}
- public sealed partial class TestAllExtensions : pb::IExtendableMessage {
+ public sealed partial class TestAllExtensions : pb::IExtendableMessage
+ #if !GOOGLE_PROTOBUF_DISABLE_BUFFER_SERIALIZATION
+ , pb::IBufferMessage
+ #endif
+ {
private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new TestAllExtensions());
private pb::UnknownFieldSet _unknownFields;
private pb::ExtensionSet _extensions;
@@ -5217,6 +6134,19 @@ public void WriteTo(pb::CodedOutputStream output) {
}
}
+
+ #if !GOOGLE_PROTOBUF_DISABLE_BUFFER_SERIALIZATION
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ public void WriteTo(ref pb::CodedOutputWriter output) {
+ if (_extensions != null) {
+ _extensions.WriteTo(ref output);
+ }
+ if (_unknownFields != null) {
+ _unknownFields.WriteTo(ref output);
+ }
+ }
+ #endif
+
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public int CalculateSize() {
int size = 0;
@@ -5252,6 +6182,23 @@ public void MergeFrom(pb::CodedInputStream input) {
}
}
+
+ #if !GOOGLE_PROTOBUF_DISABLE_BUFFER_SERIALIZATION
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ public void MergeFrom(ref pb::CodedInputReader input) {
+ uint tag;
+ while ((tag = input.ReadTag()) != 0) {
+ switch(tag) {
+ default:
+ if (!pb::ExtensionSet.TryMergeFieldFrom(ref _extensions, ref input)) {
+ _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
+ }
+ break;
+ }
+ }
+ }
+ #endif
+
public TValue GetExtension(pb::Extension extension) {
return pb::ExtensionSet.Get(ref _extensions, extension);
}
@@ -5276,7 +6223,11 @@ public void ClearExtension(pb::RepeatedExtension {
+ public sealed partial class OptionalGroup_extension : pb::IMessage
+ #if !GOOGLE_PROTOBUF_DISABLE_BUFFER_SERIALIZATION
+ , pb::IBufferMessage
+ #endif
+ {
private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new OptionalGroup_extension());
private pb::UnknownFieldSet _unknownFields;
private int _hasBits0;
@@ -5369,15 +6320,29 @@ public override string ToString() {
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void WriteTo(pb::CodedOutputStream output) {
+ public void WriteTo(pb::CodedOutputStream output) {
+ if (HasA) {
+ output.WriteRawTag(136, 1);
+ output.WriteInt32(A);
+ }
+ if (_unknownFields != null) {
+ _unknownFields.WriteTo(output);
+ }
+ }
+
+
+ #if !GOOGLE_PROTOBUF_DISABLE_BUFFER_SERIALIZATION
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ public void WriteTo(ref pb::CodedOutputWriter output) {
if (HasA) {
output.WriteRawTag(136, 1);
output.WriteInt32(A);
}
if (_unknownFields != null) {
- _unknownFields.WriteTo(output);
+ _unknownFields.WriteTo(ref output);
}
}
+ #endif
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public int CalculateSize() {
@@ -5420,9 +6385,34 @@ public void MergeFrom(pb::CodedInputStream input) {
}
}
+
+ #if !GOOGLE_PROTOBUF_DISABLE_BUFFER_SERIALIZATION
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ public void MergeFrom(ref pb::CodedInputReader input) {
+ uint tag;
+ while ((tag = input.ReadTag()) != 0) {
+ switch(tag) {
+ case 132:
+ return;
+ default:
+ _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
+ break;
+ case 136: {
+ A = input.ReadInt32();
+ break;
+ }
+ }
+ }
+ }
+ #endif
+
}
- public sealed partial class RepeatedGroup_extension : pb::IMessage {
+ public sealed partial class RepeatedGroup_extension : pb::IMessage
+ #if !GOOGLE_PROTOBUF_DISABLE_BUFFER_SERIALIZATION
+ , pb::IBufferMessage
+ #endif
+ {
private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new RepeatedGroup_extension());
private pb::UnknownFieldSet _unknownFields;
private int _hasBits0;
@@ -5525,6 +6515,20 @@ public void WriteTo(pb::CodedOutputStream output) {
}
}
+
+ #if !GOOGLE_PROTOBUF_DISABLE_BUFFER_SERIALIZATION
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ public void WriteTo(ref pb::CodedOutputWriter output) {
+ if (HasA) {
+ output.WriteRawTag(248, 2);
+ output.WriteInt32(A);
+ }
+ if (_unknownFields != null) {
+ _unknownFields.WriteTo(ref output);
+ }
+ }
+ #endif
+
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public int CalculateSize() {
int size = 0;
@@ -5566,9 +6570,34 @@ public void MergeFrom(pb::CodedInputStream input) {
}
}
+
+ #if !GOOGLE_PROTOBUF_DISABLE_BUFFER_SERIALIZATION
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ public void MergeFrom(ref pb::CodedInputReader input) {
+ uint tag;
+ while ((tag = input.ReadTag()) != 0) {
+ switch(tag) {
+ case 372:
+ return;
+ default:
+ _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
+ break;
+ case 376: {
+ A = input.ReadInt32();
+ break;
+ }
+ }
+ }
+ }
+ #endif
+
}
- public sealed partial class TestGroup : pb::IMessage {
+ public sealed partial class TestGroup : pb::IMessage
+ #if !GOOGLE_PROTOBUF_DISABLE_BUFFER_SERIALIZATION
+ , pb::IBufferMessage
+ #endif
+ {
private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new TestGroup());
private pb::UnknownFieldSet _unknownFields;
private int _hasBits0;
@@ -5700,6 +6729,25 @@ public void WriteTo(pb::CodedOutputStream output) {
}
}
+
+ #if !GOOGLE_PROTOBUF_DISABLE_BUFFER_SERIALIZATION
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ public void WriteTo(ref pb::CodedOutputWriter output) {
+ if (HasOptionalGroup) {
+ output.WriteRawTag(131, 1);
+ output.WriteGroup(OptionalGroup);
+ output.WriteRawTag(132, 1);
+ }
+ if (HasOptionalForeignEnum) {
+ output.WriteRawTag(176, 1);
+ output.WriteEnum((int) OptionalForeignEnum);
+ }
+ if (_unknownFields != null) {
+ _unknownFields.WriteTo(ref output);
+ }
+ }
+ #endif
+
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public int CalculateSize() {
int size = 0;
@@ -5755,11 +6803,41 @@ public void MergeFrom(pb::CodedInputStream input) {
}
}
+
+ #if !GOOGLE_PROTOBUF_DISABLE_BUFFER_SERIALIZATION
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ public void MergeFrom(ref pb::CodedInputReader input) {
+ uint tag;
+ while ((tag = input.ReadTag()) != 0) {
+ switch(tag) {
+ default:
+ _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
+ break;
+ case 131: {
+ if (!HasOptionalGroup) {
+ OptionalGroup = new global::Google.Protobuf.TestProtos.Proto2.TestGroup.Types.OptionalGroup();
+ }
+ input.ReadGroup(OptionalGroup);
+ break;
+ }
+ case 176: {
+ OptionalForeignEnum = (global::Google.Protobuf.TestProtos.Proto2.ForeignEnum) input.ReadEnum();
+ break;
+ }
+ }
+ }
+ }
+ #endif
+
#region Nested types
/// Container for nested types declared in the TestGroup message type.
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public static partial class Types {
- public sealed partial class OptionalGroup : pb::IMessage {
+ public sealed partial class OptionalGroup : pb::IMessage
+ #if !GOOGLE_PROTOBUF_DISABLE_BUFFER_SERIALIZATION
+ , pb::IBufferMessage
+ #endif
+ {
private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new OptionalGroup());
private pb::UnknownFieldSet _unknownFields;
private int _hasBits0;
@@ -5862,6 +6940,20 @@ public void WriteTo(pb::CodedOutputStream output) {
}
}
+
+ #if !GOOGLE_PROTOBUF_DISABLE_BUFFER_SERIALIZATION
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ public void WriteTo(ref pb::CodedOutputWriter output) {
+ if (HasA) {
+ output.WriteRawTag(136, 1);
+ output.WriteInt32(A);
+ }
+ if (_unknownFields != null) {
+ _unknownFields.WriteTo(ref output);
+ }
+ }
+ #endif
+
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public int CalculateSize() {
int size = 0;
@@ -5903,6 +6995,27 @@ public void MergeFrom(pb::CodedInputStream input) {
}
}
+
+ #if !GOOGLE_PROTOBUF_DISABLE_BUFFER_SERIALIZATION
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ public void MergeFrom(ref pb::CodedInputReader input) {
+ uint tag;
+ while ((tag = input.ReadTag()) != 0) {
+ switch(tag) {
+ case 132:
+ return;
+ default:
+ _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
+ break;
+ case 136: {
+ A = input.ReadInt32();
+ break;
+ }
+ }
+ }
+ }
+ #endif
+
}
}
@@ -5910,7 +7023,11 @@ public void MergeFrom(pb::CodedInputStream input) {
}
- public sealed partial class TestGroupExtension : pb::IExtendableMessage {
+ public sealed partial class TestGroupExtension : pb::IExtendableMessage
+ #if !GOOGLE_PROTOBUF_DISABLE_BUFFER_SERIALIZATION
+ , pb::IBufferMessage
+ #endif
+ {
private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new TestGroupExtension());
private pb::UnknownFieldSet _unknownFields;
private pb::ExtensionSet _extensions;
@@ -5992,6 +7109,19 @@ public void WriteTo(pb::CodedOutputStream output) {
}
}
+
+ #if !GOOGLE_PROTOBUF_DISABLE_BUFFER_SERIALIZATION
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ public void WriteTo(ref pb::CodedOutputWriter output) {
+ if (_extensions != null) {
+ _extensions.WriteTo(ref output);
+ }
+ if (_unknownFields != null) {
+ _unknownFields.WriteTo(ref output);
+ }
+ }
+ #endif
+
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public int CalculateSize() {
int size = 0;
@@ -6027,6 +7157,23 @@ public void MergeFrom(pb::CodedInputStream input) {
}
}
+
+ #if !GOOGLE_PROTOBUF_DISABLE_BUFFER_SERIALIZATION
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ public void MergeFrom(ref pb::CodedInputReader input) {
+ uint tag;
+ while ((tag = input.ReadTag()) != 0) {
+ switch(tag) {
+ default:
+ if (!pb::ExtensionSet.TryMergeFieldFrom(ref _extensions, ref input)) {
+ _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
+ }
+ break;
+ }
+ }
+ }
+ #endif
+
public TValue GetExtension