Rebuild source for Issue 84 change to code generator

pull/288/head
csharptest 10 years ago committed by rogerk
parent b4bd2e0384
commit 53727a0ac7
  1. 33
      src/AddressBook/AddressBookProtos.cs
  2. 55
      src/ProtoBench/TestProtos/GoogleSpeedProtoFile.cs
  3. 11
      src/ProtoBench/TestProtos/UnitTestImportProtoFile.cs
  4. 451
      src/ProtoBench/TestProtos/UnitTestProtoFile.cs
  5. 11
      src/ProtocolBuffers.Test/TestProtos/UnitTestCSharpOptionsProtoFile.cs
  6. 231
      src/ProtocolBuffers.Test/TestProtos/UnitTestCustomOptionsProtoFile.cs
  7. 11
      src/ProtocolBuffers.Test/TestProtos/UnitTestEmbedOptimizeForProtoFile.cs
  8. 110
      src/ProtocolBuffers.Test/TestProtos/UnitTestExtrasIssuesProtoFile.cs
  9. 11
      src/ProtocolBuffers.Test/TestProtos/UnitTestExtrasProtoFile.cs
  10. 55
      src/ProtocolBuffers.Test/TestProtos/UnitTestGoogleSpeedProtoFile.cs
  11. 11
      src/ProtocolBuffers.Test/TestProtos/UnitTestImportLiteProtoFile.cs
  12. 11
      src/ProtocolBuffers.Test/TestProtos/UnitTestImportProtoFile.cs
  13. 66
      src/ProtocolBuffers.Test/TestProtos/UnitTestMessageSetProtoFile.cs
  14. 11
      src/ProtocolBuffers.Test/TestProtos/UnitTestNoGenericServicesProtoFile.cs
  15. 451
      src/ProtocolBuffers.Test/TestProtos/UnitTestProtoFile.cs
  16. 44
      src/ProtocolBuffers.Test/TestProtos/UnitTestRpcInterop.cs
  17. 66
      src/ProtocolBuffers.Test/TestProtos/UnitTestXmlSerializerTestProtoFile.cs
  18. 44
      src/ProtocolBuffers/DescriptorProtos/CSharpOptions.cs
  19. 220
      src/ProtocolBuffers/DescriptorProtos/DescriptorProtoFile.cs
  20. 99
      src/ProtocolBuffersLite.Test/TestProtos/UnitTestExtrasLiteProtoFile.cs
  21. 11
      src/ProtocolBuffersLite.Test/TestProtos/UnitTestImportLiteProtoFile.cs
  22. 11
      src/ProtocolBuffersLite.Test/TestProtos/UnitTestImportProtoFile.cs
  23. 11
      src/ProtocolBuffersLite.Test/TestProtos/UnitTestLiteImportNonLiteProtoFile.cs
  24. 132
      src/ProtocolBuffersLite.Test/TestProtos/UnitTestLiteProtoFile.cs
  25. 451
      src/ProtocolBuffersLite.Test/TestProtos/UnitTestProtoFile.cs
  26. 44
      src/ProtocolBuffersLite.Test/TestProtos/UnitTestRpcInteropLite.cs

@ -159,7 +159,7 @@ namespace Google.ProtocolBuffers.Examples.AddressBook {
}
public override void WriteTo(pb::ICodedOutputStream output) {
int size = SerializedSize;
CalcSerializedSize();
string[] field_names = _phoneNumberFieldNames;
if (hasNumber) {
output.WriteString(1, field_names[0], Number);
@ -175,6 +175,13 @@ namespace Google.ProtocolBuffers.Examples.AddressBook {
get {
int size = memoizedSerializedSize;
if (size != -1) return size;
return CalcSerializedSize();
}
}
private int CalcSerializedSize() {
int size = memoizedSerializedSize;
if (size != -1) return size;
size = 0;
if (hasNumber) {
@ -187,8 +194,6 @@ namespace Google.ProtocolBuffers.Examples.AddressBook {
memoizedSerializedSize = size;
return size;
}
}
public static PhoneNumber ParseFrom(pb::ByteString data) {
return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
}
@ -485,7 +490,7 @@ namespace Google.ProtocolBuffers.Examples.AddressBook {
}
public override void WriteTo(pb::ICodedOutputStream output) {
int size = SerializedSize;
CalcSerializedSize();
string[] field_names = _personFieldNames;
if (hasName) {
output.WriteString(1, field_names[2], Name);
@ -507,6 +512,13 @@ namespace Google.ProtocolBuffers.Examples.AddressBook {
get {
int size = memoizedSerializedSize;
if (size != -1) return size;
return CalcSerializedSize();
}
}
private int CalcSerializedSize() {
int size = memoizedSerializedSize;
if (size != -1) return size;
size = 0;
if (hasName) {
@ -525,8 +537,6 @@ namespace Google.ProtocolBuffers.Examples.AddressBook {
memoizedSerializedSize = size;
return size;
}
}
public static Person ParseFrom(pb::ByteString data) {
return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
}
@ -886,7 +896,7 @@ namespace Google.ProtocolBuffers.Examples.AddressBook {
}
public override void WriteTo(pb::ICodedOutputStream output) {
int size = SerializedSize;
CalcSerializedSize();
string[] field_names = _addressBookFieldNames;
if (person_.Count > 0) {
output.WriteMessageArray(1, field_names[0], person_);
@ -899,6 +909,13 @@ namespace Google.ProtocolBuffers.Examples.AddressBook {
get {
int size = memoizedSerializedSize;
if (size != -1) return size;
return CalcSerializedSize();
}
}
private int CalcSerializedSize() {
int size = memoizedSerializedSize;
if (size != -1) return size;
size = 0;
foreach (global::Google.ProtocolBuffers.Examples.AddressBook.Person element in PersonList) {
@ -908,8 +925,6 @@ namespace Google.ProtocolBuffers.Examples.AddressBook {
memoizedSerializedSize = size;
return size;
}
}
public static AddressBook ParseFrom(pb::ByteString data) {
return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
}

@ -582,7 +582,7 @@ namespace Google.ProtocolBuffers.ProtoBench {
}
public override void WriteTo(pb::ICodedOutputStream output) {
int size = SerializedSize;
CalcSerializedSize();
string[] field_names = _speedMessage1FieldNames;
if (hasField1) {
output.WriteString(1, field_names[0], Field1);
@ -715,6 +715,13 @@ namespace Google.ProtocolBuffers.ProtoBench {
get {
int size = memoizedSerializedSize;
if (size != -1) return size;
return CalcSerializedSize();
}
}
private int CalcSerializedSize() {
int size = memoizedSerializedSize;
if (size != -1) return size;
size = 0;
if (hasField1) {
@ -847,8 +854,6 @@ namespace Google.ProtocolBuffers.ProtoBench {
memoizedSerializedSize = size;
return size;
}
}
public static SpeedMessage1 ParseFrom(pb::ByteString data) {
return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
}
@ -2419,7 +2424,7 @@ namespace Google.ProtocolBuffers.ProtoBench {
}
public override void WriteTo(pb::ICodedOutputStream output) {
int size = SerializedSize;
CalcSerializedSize();
string[] field_names = _speedMessage1SubMessageFieldNames;
if (hasField1) {
output.WriteInt32(1, field_names[0], Field1);
@ -2489,6 +2494,13 @@ namespace Google.ProtocolBuffers.ProtoBench {
get {
int size = memoizedSerializedSize;
if (size != -1) return size;
return CalcSerializedSize();
}
}
private int CalcSerializedSize() {
int size = memoizedSerializedSize;
if (size != -1) return size;
size = 0;
if (hasField1) {
@ -2555,8 +2567,6 @@ namespace Google.ProtocolBuffers.ProtoBench {
memoizedSerializedSize = size;
return size;
}
}
public static SpeedMessage1SubMessage ParseFrom(pb::ByteString data) {
return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
}
@ -3514,7 +3524,7 @@ namespace Google.ProtocolBuffers.ProtoBench {
}
public override void WriteTo(pb::ICodedOutputStream output) {
int size = SerializedSize;
CalcSerializedSize();
string[] field_names = _group1FieldNames;
if (hasField5) {
output.WriteInt32(5, field_names[14], Field5);
@ -3572,6 +3582,13 @@ namespace Google.ProtocolBuffers.ProtoBench {
get {
int size = memoizedSerializedSize;
if (size != -1) return size;
return CalcSerializedSize();
}
}
private int CalcSerializedSize() {
int size = memoizedSerializedSize;
if (size != -1) return size;
size = 0;
if (hasField11) {
@ -3641,8 +3658,6 @@ namespace Google.ProtocolBuffers.ProtoBench {
memoizedSerializedSize = size;
return size;
}
}
public static Group1 ParseFrom(pb::ByteString data) {
return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
}
@ -4640,7 +4655,7 @@ namespace Google.ProtocolBuffers.ProtoBench {
}
public override void WriteTo(pb::ICodedOutputStream output) {
int size = SerializedSize;
CalcSerializedSize();
string[] field_names = _speedMessage2FieldNames;
if (hasField1) {
output.WriteString(1, field_names[0], Field1);
@ -4740,6 +4755,13 @@ namespace Google.ProtocolBuffers.ProtoBench {
get {
int size = memoizedSerializedSize;
if (size != -1) return size;
return CalcSerializedSize();
}
}
private int CalcSerializedSize() {
int size = memoizedSerializedSize;
if (size != -1) return size;
size = 0;
if (hasField1) {
@ -4851,8 +4873,6 @@ namespace Google.ProtocolBuffers.ProtoBench {
memoizedSerializedSize = size;
return size;
}
}
public static SpeedMessage2 ParseFrom(pb::ByteString data) {
return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
}
@ -6048,7 +6068,7 @@ namespace Google.ProtocolBuffers.ProtoBench {
}
public override void WriteTo(pb::ICodedOutputStream output) {
int size = SerializedSize;
CalcSerializedSize();
string[] field_names = _speedMessage2GroupedMessageFieldNames;
if (hasField1) {
output.WriteFloat(1, field_names[0], Field1);
@ -6091,6 +6111,13 @@ namespace Google.ProtocolBuffers.ProtoBench {
get {
int size = memoizedSerializedSize;
if (size != -1) return size;
return CalcSerializedSize();
}
}
private int CalcSerializedSize() {
int size = memoizedSerializedSize;
if (size != -1) return size;
size = 0;
if (hasField1) {
@ -6130,8 +6157,6 @@ namespace Google.ProtocolBuffers.ProtoBench {
memoizedSerializedSize = size;
return size;
}
}
public static SpeedMessage2GroupedMessage ParseFrom(pb::ByteString data) {
return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
}

@ -107,7 +107,7 @@ namespace Google.ProtocolBuffers.TestProtos {
}
public override void WriteTo(pb::ICodedOutputStream output) {
int size = SerializedSize;
CalcSerializedSize();
string[] field_names = _importMessageFieldNames;
if (hasD) {
output.WriteInt32(1, field_names[0], D);
@ -120,6 +120,13 @@ namespace Google.ProtocolBuffers.TestProtos {
get {
int size = memoizedSerializedSize;
if (size != -1) return size;
return CalcSerializedSize();
}
}
private int CalcSerializedSize() {
int size = memoizedSerializedSize;
if (size != -1) return size;
size = 0;
if (hasD) {
@ -129,8 +136,6 @@ namespace Google.ProtocolBuffers.TestProtos {
memoizedSerializedSize = size;
return size;
}
}
public static ImportMessage ParseFrom(pb::ByteString data) {
return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
}

File diff suppressed because it is too large Load Diff

@ -118,7 +118,7 @@ namespace Google.ProtocolBuffers.TestProtos {
}
public override void WriteTo(pb::ICodedOutputStream output) {
int size = SerializedSize;
CalcSerializedSize();
string[] field_names = _optionsMessageFieldNames;
if (hasNormal) {
output.WriteString(1, field_names[1], Normal);
@ -137,6 +137,13 @@ namespace Google.ProtocolBuffers.TestProtos {
get {
int size = memoizedSerializedSize;
if (size != -1) return size;
return CalcSerializedSize();
}
}
private int CalcSerializedSize() {
int size = memoizedSerializedSize;
if (size != -1) return size;
size = 0;
if (hasNormal) {
@ -152,8 +159,6 @@ namespace Google.ProtocolBuffers.TestProtos {
memoizedSerializedSize = size;
return size;
}
}
public static OptionsMessage ParseFrom(pb::ByteString data) {
return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
}

@ -541,7 +541,7 @@ namespace Google.ProtocolBuffers.TestProtos {
}
public override void WriteTo(pb::ICodedOutputStream output) {
int size = SerializedSize;
CalcSerializedSize();
string[] field_names = _testMessageWithCustomOptionsFieldNames;
if (hasField1) {
output.WriteString(1, field_names[0], Field1);
@ -554,6 +554,13 @@ namespace Google.ProtocolBuffers.TestProtos {
get {
int size = memoizedSerializedSize;
if (size != -1) return size;
return CalcSerializedSize();
}
}
private int CalcSerializedSize() {
int size = memoizedSerializedSize;
if (size != -1) return size;
size = 0;
if (hasField1) {
@ -563,8 +570,6 @@ namespace Google.ProtocolBuffers.TestProtos {
memoizedSerializedSize = size;
return size;
}
}
public static TestMessageWithCustomOptions ParseFrom(pb::ByteString data) {
return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
}
@ -802,7 +807,7 @@ namespace Google.ProtocolBuffers.TestProtos {
}
public override void WriteTo(pb::ICodedOutputStream output) {
int size = SerializedSize;
CalcSerializedSize();
string[] field_names = _customOptionFooRequestFieldNames;
UnknownFields.WriteTo(output);
}
@ -812,14 +817,19 @@ namespace Google.ProtocolBuffers.TestProtos {
get {
int size = memoizedSerializedSize;
if (size != -1) return size;
return CalcSerializedSize();
}
}
private int CalcSerializedSize() {
int size = memoizedSerializedSize;
if (size != -1) return size;
size = 0;
size += UnknownFields.SerializedSize;
memoizedSerializedSize = size;
return size;
}
}
public static CustomOptionFooRequest ParseFrom(pb::ByteString data) {
return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
}
@ -1029,7 +1039,7 @@ namespace Google.ProtocolBuffers.TestProtos {
}
public override void WriteTo(pb::ICodedOutputStream output) {
int size = SerializedSize;
CalcSerializedSize();
string[] field_names = _customOptionFooResponseFieldNames;
UnknownFields.WriteTo(output);
}
@ -1039,14 +1049,19 @@ namespace Google.ProtocolBuffers.TestProtos {
get {
int size = memoizedSerializedSize;
if (size != -1) return size;
return CalcSerializedSize();
}
}
private int CalcSerializedSize() {
int size = memoizedSerializedSize;
if (size != -1) return size;
size = 0;
size += UnknownFields.SerializedSize;
memoizedSerializedSize = size;
return size;
}
}
public static CustomOptionFooResponse ParseFrom(pb::ByteString data) {
return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
}
@ -1267,7 +1282,7 @@ namespace Google.ProtocolBuffers.TestProtos {
}
public override void WriteTo(pb::ICodedOutputStream output) {
int size = SerializedSize;
CalcSerializedSize();
string[] field_names = _dummyMessageContainingEnumFieldNames;
UnknownFields.WriteTo(output);
}
@ -1277,14 +1292,19 @@ namespace Google.ProtocolBuffers.TestProtos {
get {
int size = memoizedSerializedSize;
if (size != -1) return size;
return CalcSerializedSize();
}
}
private int CalcSerializedSize() {
int size = memoizedSerializedSize;
if (size != -1) return size;
size = 0;
size += UnknownFields.SerializedSize;
memoizedSerializedSize = size;
return size;
}
}
public static DummyMessageContainingEnum ParseFrom(pb::ByteString data) {
return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
}
@ -1494,7 +1514,7 @@ namespace Google.ProtocolBuffers.TestProtos {
}
public override void WriteTo(pb::ICodedOutputStream output) {
int size = SerializedSize;
CalcSerializedSize();
string[] field_names = _dummyMessageInvalidAsOptionTypeFieldNames;
UnknownFields.WriteTo(output);
}
@ -1504,14 +1524,19 @@ namespace Google.ProtocolBuffers.TestProtos {
get {
int size = memoizedSerializedSize;
if (size != -1) return size;
return CalcSerializedSize();
}
}
private int CalcSerializedSize() {
int size = memoizedSerializedSize;
if (size != -1) return size;
size = 0;
size += UnknownFields.SerializedSize;
memoizedSerializedSize = size;
return size;
}
}
public static DummyMessageInvalidAsOptionType ParseFrom(pb::ByteString data) {
return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
}
@ -1721,7 +1746,7 @@ namespace Google.ProtocolBuffers.TestProtos {
}
public override void WriteTo(pb::ICodedOutputStream output) {
int size = SerializedSize;
CalcSerializedSize();
string[] field_names = _customOptionMinIntegerValuesFieldNames;
UnknownFields.WriteTo(output);
}
@ -1731,14 +1756,19 @@ namespace Google.ProtocolBuffers.TestProtos {
get {
int size = memoizedSerializedSize;
if (size != -1) return size;
return CalcSerializedSize();
}
}
private int CalcSerializedSize() {
int size = memoizedSerializedSize;
if (size != -1) return size;
size = 0;
size += UnknownFields.SerializedSize;
memoizedSerializedSize = size;
return size;
}
}
public static CustomOptionMinIntegerValues ParseFrom(pb::ByteString data) {
return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
}
@ -1948,7 +1978,7 @@ namespace Google.ProtocolBuffers.TestProtos {
}
public override void WriteTo(pb::ICodedOutputStream output) {
int size = SerializedSize;
CalcSerializedSize();
string[] field_names = _customOptionMaxIntegerValuesFieldNames;
UnknownFields.WriteTo(output);
}
@ -1958,14 +1988,19 @@ namespace Google.ProtocolBuffers.TestProtos {
get {
int size = memoizedSerializedSize;
if (size != -1) return size;
return CalcSerializedSize();
}
}
private int CalcSerializedSize() {
int size = memoizedSerializedSize;
if (size != -1) return size;
size = 0;
size += UnknownFields.SerializedSize;
memoizedSerializedSize = size;
return size;
}
}
public static CustomOptionMaxIntegerValues ParseFrom(pb::ByteString data) {
return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
}
@ -2175,7 +2210,7 @@ namespace Google.ProtocolBuffers.TestProtos {
}
public override void WriteTo(pb::ICodedOutputStream output) {
int size = SerializedSize;
CalcSerializedSize();
string[] field_names = _customOptionOtherValuesFieldNames;
UnknownFields.WriteTo(output);
}
@ -2185,14 +2220,19 @@ namespace Google.ProtocolBuffers.TestProtos {
get {
int size = memoizedSerializedSize;
if (size != -1) return size;
return CalcSerializedSize();
}
}
private int CalcSerializedSize() {
int size = memoizedSerializedSize;
if (size != -1) return size;
size = 0;
size += UnknownFields.SerializedSize;
memoizedSerializedSize = size;
return size;
}
}
public static CustomOptionOtherValues ParseFrom(pb::ByteString data) {
return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
}
@ -2402,7 +2442,7 @@ namespace Google.ProtocolBuffers.TestProtos {
}
public override void WriteTo(pb::ICodedOutputStream output) {
int size = SerializedSize;
CalcSerializedSize();
string[] field_names = _settingRealsFromPositiveIntsFieldNames;
UnknownFields.WriteTo(output);
}
@ -2412,14 +2452,19 @@ namespace Google.ProtocolBuffers.TestProtos {
get {
int size = memoizedSerializedSize;
if (size != -1) return size;
return CalcSerializedSize();
}
}
private int CalcSerializedSize() {
int size = memoizedSerializedSize;
if (size != -1) return size;
size = 0;
size += UnknownFields.SerializedSize;
memoizedSerializedSize = size;
return size;
}
}
public static SettingRealsFromPositiveInts ParseFrom(pb::ByteString data) {
return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
}
@ -2629,7 +2674,7 @@ namespace Google.ProtocolBuffers.TestProtos {
}
public override void WriteTo(pb::ICodedOutputStream output) {
int size = SerializedSize;
CalcSerializedSize();
string[] field_names = _settingRealsFromNegativeIntsFieldNames;
UnknownFields.WriteTo(output);
}
@ -2639,14 +2684,19 @@ namespace Google.ProtocolBuffers.TestProtos {
get {
int size = memoizedSerializedSize;
if (size != -1) return size;
return CalcSerializedSize();
}
}
private int CalcSerializedSize() {
int size = memoizedSerializedSize;
if (size != -1) return size;
size = 0;
size += UnknownFields.SerializedSize;
memoizedSerializedSize = size;
return size;
}
}
public static SettingRealsFromNegativeInts ParseFrom(pb::ByteString data) {
return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
}
@ -2887,7 +2937,7 @@ namespace Google.ProtocolBuffers.TestProtos {
}
public override void WriteTo(pb::ICodedOutputStream output) {
int size = SerializedSize;
CalcSerializedSize();
string[] field_names = _complexOptionType1FieldNames;
pb::ExtendableMessage<ComplexOptionType1, ComplexOptionType1.Builder>.ExtensionWriter extensionWriter = CreateExtensionWriter(this);
if (hasFoo) {
@ -2908,6 +2958,13 @@ namespace Google.ProtocolBuffers.TestProtos {
get {
int size = memoizedSerializedSize;
if (size != -1) return size;
return CalcSerializedSize();
}
}
private int CalcSerializedSize() {
int size = memoizedSerializedSize;
if (size != -1) return size;
size = 0;
if (hasFoo) {
@ -2924,8 +2981,6 @@ namespace Google.ProtocolBuffers.TestProtos {
memoizedSerializedSize = size;
return size;
}
}
public static ComplexOptionType1 ParseFrom(pb::ByteString data) {
return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
}
@ -3258,7 +3313,7 @@ namespace Google.ProtocolBuffers.TestProtos {
}
public override void WriteTo(pb::ICodedOutputStream output) {
int size = SerializedSize;
CalcSerializedSize();
string[] field_names = _complexOptionType4FieldNames;
if (hasWaldo) {
output.WriteInt32(1, field_names[0], Waldo);
@ -3271,6 +3326,13 @@ namespace Google.ProtocolBuffers.TestProtos {
get {
int size = memoizedSerializedSize;
if (size != -1) return size;
return CalcSerializedSize();
}
}
private int CalcSerializedSize() {
int size = memoizedSerializedSize;
if (size != -1) return size;
size = 0;
if (hasWaldo) {
@ -3280,8 +3342,6 @@ namespace Google.ProtocolBuffers.TestProtos {
memoizedSerializedSize = size;
return size;
}
}
public static ComplexOptionType4 ParseFrom(pb::ByteString data) {
return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
}
@ -3529,7 +3589,7 @@ namespace Google.ProtocolBuffers.TestProtos {
}
public override void WriteTo(pb::ICodedOutputStream output) {
int size = SerializedSize;
CalcSerializedSize();
string[] field_names = _complexOptionType2FieldNames;
pb::ExtendableMessage<ComplexOptionType2, ComplexOptionType2.Builder>.ExtensionWriter extensionWriter = CreateExtensionWriter(this);
if (hasBar) {
@ -3550,6 +3610,13 @@ namespace Google.ProtocolBuffers.TestProtos {
get {
int size = memoizedSerializedSize;
if (size != -1) return size;
return CalcSerializedSize();
}
}
private int CalcSerializedSize() {
int size = memoizedSerializedSize;
if (size != -1) return size;
size = 0;
if (hasBar) {
@ -3566,8 +3633,6 @@ namespace Google.ProtocolBuffers.TestProtos {
memoizedSerializedSize = size;
return size;
}
}
public static ComplexOptionType2 ParseFrom(pb::ByteString data) {
return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
}
@ -3948,7 +4013,7 @@ namespace Google.ProtocolBuffers.TestProtos {
}
public override void WriteTo(pb::ICodedOutputStream output) {
int size = SerializedSize;
CalcSerializedSize();
string[] field_names = _complexOptionType5FieldNames;
if (hasPlugh) {
output.WriteInt32(3, field_names[0], Plugh);
@ -3961,6 +4026,13 @@ namespace Google.ProtocolBuffers.TestProtos {
get {
int size = memoizedSerializedSize;
if (size != -1) return size;
return CalcSerializedSize();
}
}
private int CalcSerializedSize() {
int size = memoizedSerializedSize;
if (size != -1) return size;
size = 0;
if (hasPlugh) {
@ -3970,8 +4042,6 @@ namespace Google.ProtocolBuffers.TestProtos {
memoizedSerializedSize = size;
return size;
}
}
public static ComplexOptionType5 ParseFrom(pb::ByteString data) {
return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
}
@ -4205,7 +4275,7 @@ namespace Google.ProtocolBuffers.TestProtos {
}
public override void WriteTo(pb::ICodedOutputStream output) {
int size = SerializedSize;
CalcSerializedSize();
string[] field_names = _complexOptionType3FieldNames;
if (hasQux) {
output.WriteInt32(1, field_names[1], Qux);
@ -4221,6 +4291,13 @@ namespace Google.ProtocolBuffers.TestProtos {
get {
int size = memoizedSerializedSize;
if (size != -1) return size;
return CalcSerializedSize();
}
}
private int CalcSerializedSize() {
int size = memoizedSerializedSize;
if (size != -1) return size;
size = 0;
if (hasQux) {
@ -4233,8 +4310,6 @@ namespace Google.ProtocolBuffers.TestProtos {
memoizedSerializedSize = size;
return size;
}
}
public static ComplexOptionType3 ParseFrom(pb::ByteString data) {
return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
}
@ -4533,7 +4608,7 @@ namespace Google.ProtocolBuffers.TestProtos {
}
public override void WriteTo(pb::ICodedOutputStream output) {
int size = SerializedSize;
CalcSerializedSize();
string[] field_names = _complexOpt6FieldNames;
if (hasXyzzy) {
output.WriteInt32(7593951, field_names[0], Xyzzy);
@ -4546,6 +4621,13 @@ namespace Google.ProtocolBuffers.TestProtos {
get {
int size = memoizedSerializedSize;
if (size != -1) return size;
return CalcSerializedSize();
}
}
private int CalcSerializedSize() {
int size = memoizedSerializedSize;
if (size != -1) return size;
size = 0;
if (hasXyzzy) {
@ -4555,8 +4637,6 @@ namespace Google.ProtocolBuffers.TestProtos {
memoizedSerializedSize = size;
return size;
}
}
public static ComplexOpt6 ParseFrom(pb::ByteString data) {
return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
}
@ -4793,7 +4873,7 @@ namespace Google.ProtocolBuffers.TestProtos {
}
public override void WriteTo(pb::ICodedOutputStream output) {
int size = SerializedSize;
CalcSerializedSize();
string[] field_names = _variousComplexOptionsFieldNames;
UnknownFields.WriteTo(output);
}
@ -4803,14 +4883,19 @@ namespace Google.ProtocolBuffers.TestProtos {
get {
int size = memoizedSerializedSize;
if (size != -1) return size;
return CalcSerializedSize();
}
}
private int CalcSerializedSize() {
int size = memoizedSerializedSize;
if (size != -1) return size;
size = 0;
size += UnknownFields.SerializedSize;
memoizedSerializedSize = size;
return size;
}
}
public static VariousComplexOptions ParseFrom(pb::ByteString data) {
return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
}
@ -5021,7 +5106,7 @@ namespace Google.ProtocolBuffers.TestProtos {
}
public override void WriteTo(pb::ICodedOutputStream output) {
int size = SerializedSize;
CalcSerializedSize();
string[] field_names = _aggregateMessageSetFieldNames;
pb::ExtendableMessage<AggregateMessageSet, AggregateMessageSet.Builder>.ExtensionWriter extensionWriter = CreateExtensionWriter(this);
extensionWriter.WriteUntil(536870912, output);
@ -5033,6 +5118,13 @@ namespace Google.ProtocolBuffers.TestProtos {
get {
int size = memoizedSerializedSize;
if (size != -1) return size;
return CalcSerializedSize();
}
}
private int CalcSerializedSize() {
int size = memoizedSerializedSize;
if (size != -1) return size;
size = 0;
size += ExtensionsSerializedSize;
@ -5040,8 +5132,6 @@ namespace Google.ProtocolBuffers.TestProtos {
memoizedSerializedSize = size;
return size;
}
}
public static AggregateMessageSet ParseFrom(pb::ByteString data) {
return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
}
@ -5264,7 +5354,7 @@ namespace Google.ProtocolBuffers.TestProtos {
}
public override void WriteTo(pb::ICodedOutputStream output) {
int size = SerializedSize;
CalcSerializedSize();
string[] field_names = _aggregateMessageSetElementFieldNames;
if (hasS) {
output.WriteString(1, field_names[0], S);
@ -5277,6 +5367,13 @@ namespace Google.ProtocolBuffers.TestProtos {
get {
int size = memoizedSerializedSize;
if (size != -1) return size;
return CalcSerializedSize();
}
}
private int CalcSerializedSize() {
int size = memoizedSerializedSize;
if (size != -1) return size;
size = 0;
if (hasS) {
@ -5286,8 +5383,6 @@ namespace Google.ProtocolBuffers.TestProtos {
memoizedSerializedSize = size;
return size;
}
}
public static AggregateMessageSetElement ParseFrom(pb::ByteString data) {
return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
}
@ -5583,7 +5678,7 @@ namespace Google.ProtocolBuffers.TestProtos {
}
public override void WriteTo(pb::ICodedOutputStream output) {
int size = SerializedSize;
CalcSerializedSize();
string[] field_names = _aggregateFieldNames;
if (hasI) {
output.WriteInt32(1, field_names[1], I);
@ -5608,6 +5703,13 @@ namespace Google.ProtocolBuffers.TestProtos {
get {
int size = memoizedSerializedSize;
if (size != -1) return size;
return CalcSerializedSize();
}
}
private int CalcSerializedSize() {
int size = memoizedSerializedSize;
if (size != -1) return size;
size = 0;
if (hasI) {
@ -5629,8 +5731,6 @@ namespace Google.ProtocolBuffers.TestProtos {
memoizedSerializedSize = size;
return size;
}
}
public static Aggregate ParseFrom(pb::ByteString data) {
return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
}
@ -6061,7 +6161,7 @@ namespace Google.ProtocolBuffers.TestProtos {
}
public override void WriteTo(pb::ICodedOutputStream output) {
int size = SerializedSize;
CalcSerializedSize();
string[] field_names = _aggregateMessageFieldNames;
if (hasFieldname) {
output.WriteInt32(1, field_names[0], Fieldname);
@ -6074,6 +6174,13 @@ namespace Google.ProtocolBuffers.TestProtos {
get {
int size = memoizedSerializedSize;
if (size != -1) return size;
return CalcSerializedSize();
}
}
private int CalcSerializedSize() {
int size = memoizedSerializedSize;
if (size != -1) return size;
size = 0;
if (hasFieldname) {
@ -6083,8 +6190,6 @@ namespace Google.ProtocolBuffers.TestProtos {
memoizedSerializedSize = size;
return size;
}
}
public static AggregateMessage ParseFrom(pb::ByteString data) {
return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
}

@ -120,7 +120,7 @@ namespace Google.ProtocolBuffers.TestProtos {
}
public override void WriteTo(pb::ICodedOutputStream output) {
int size = SerializedSize;
CalcSerializedSize();
string[] field_names = _testEmbedOptimizedForSizeFieldNames;
if (hasOptionalMessage) {
output.WriteMessage(1, field_names[0], OptionalMessage);
@ -136,6 +136,13 @@ namespace Google.ProtocolBuffers.TestProtos {
get {
int size = memoizedSerializedSize;
if (size != -1) return size;
return CalcSerializedSize();
}
}
private int CalcSerializedSize() {
int size = memoizedSerializedSize;
if (size != -1) return size;
size = 0;
if (hasOptionalMessage) {
@ -148,8 +155,6 @@ namespace Google.ProtocolBuffers.TestProtos {
memoizedSerializedSize = size;
return size;
}
}
public static TestEmbedOptimizedForSize ParseFrom(pb::ByteString data) {
return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
}

@ -181,7 +181,7 @@ namespace UnitTest.Issues.TestProtos {
}
public override void WriteTo(pb::ICodedOutputStream output) {
int size = SerializedSize;
CalcSerializedSize();
string[] field_names = _aFieldNames;
if (hasA_) {
output.WriteInt32(1, field_names[0], A_);
@ -194,6 +194,13 @@ namespace UnitTest.Issues.TestProtos {
get {
int size = memoizedSerializedSize;
if (size != -1) return size;
return CalcSerializedSize();
}
}
private int CalcSerializedSize() {
int size = memoizedSerializedSize;
if (size != -1) return size;
size = 0;
if (hasA_) {
@ -203,8 +210,6 @@ namespace UnitTest.Issues.TestProtos {
memoizedSerializedSize = size;
return size;
}
}
public static A ParseFrom(pb::ByteString data) {
return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
}
@ -451,7 +456,7 @@ namespace UnitTest.Issues.TestProtos {
}
public override void WriteTo(pb::ICodedOutputStream output) {
int size = SerializedSize;
CalcSerializedSize();
string[] field_names = _bFieldNames;
if (hasB_) {
output.WriteInt32(1, field_names[0], B_);
@ -464,6 +469,13 @@ namespace UnitTest.Issues.TestProtos {
get {
int size = memoizedSerializedSize;
if (size != -1) return size;
return CalcSerializedSize();
}
}
private int CalcSerializedSize() {
int size = memoizedSerializedSize;
if (size != -1) return size;
size = 0;
if (hasB_) {
@ -473,8 +485,6 @@ namespace UnitTest.Issues.TestProtos {
memoizedSerializedSize = size;
return size;
}
}
public static B ParseFrom(pb::ByteString data) {
return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
}
@ -721,7 +731,7 @@ namespace UnitTest.Issues.TestProtos {
}
public override void WriteTo(pb::ICodedOutputStream output) {
int size = SerializedSize;
CalcSerializedSize();
string[] field_names = _aBFieldNames;
if (hasAB_) {
output.WriteInt32(1, field_names[0], AB_);
@ -734,6 +744,13 @@ namespace UnitTest.Issues.TestProtos {
get {
int size = memoizedSerializedSize;
if (size != -1) return size;
return CalcSerializedSize();
}
}
private int CalcSerializedSize() {
int size = memoizedSerializedSize;
if (size != -1) return size;
size = 0;
if (hasAB_) {
@ -743,8 +760,6 @@ namespace UnitTest.Issues.TestProtos {
memoizedSerializedSize = size;
return size;
}
}
public static AB ParseFrom(pb::ByteString data) {
return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
}
@ -993,7 +1008,7 @@ namespace UnitTest.Issues.TestProtos {
}
public override void WriteTo(pb::ICodedOutputStream output) {
int size = SerializedSize;
CalcSerializedSize();
string[] field_names = _numberFieldFieldNames;
if (has_01) {
output.WriteInt32(1, field_names[0], _01);
@ -1006,6 +1021,13 @@ namespace UnitTest.Issues.TestProtos {
get {
int size = memoizedSerializedSize;
if (size != -1) return size;
return CalcSerializedSize();
}
}
private int CalcSerializedSize() {
int size = memoizedSerializedSize;
if (size != -1) return size;
size = 0;
if (has_01) {
@ -1015,8 +1037,6 @@ namespace UnitTest.Issues.TestProtos {
memoizedSerializedSize = size;
return size;
}
}
public static NumberField ParseFrom(pb::ByteString data) {
return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
}
@ -1267,7 +1287,7 @@ namespace UnitTest.Issues.TestProtos {
}
public override void WriteTo(pb::ICodedOutputStream output) {
int size = SerializedSize;
CalcSerializedSize();
string[] field_names = _myMessageAReferenceBFieldNames;
if (hasValue) {
output.WriteMessage(1, field_names[0], Value);
@ -1280,6 +1300,13 @@ namespace UnitTest.Issues.TestProtos {
get {
int size = memoizedSerializedSize;
if (size != -1) return size;
return CalcSerializedSize();
}
}
private int CalcSerializedSize() {
int size = memoizedSerializedSize;
if (size != -1) return size;
size = 0;
if (hasValue) {
@ -1289,8 +1316,6 @@ namespace UnitTest.Issues.TestProtos {
memoizedSerializedSize = size;
return size;
}
}
public static MyMessageAReferenceB ParseFrom(pb::ByteString data) {
return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
}
@ -1564,7 +1589,7 @@ namespace UnitTest.Issues.TestProtos {
}
public override void WriteTo(pb::ICodedOutputStream output) {
int size = SerializedSize;
CalcSerializedSize();
string[] field_names = _myMessageBReferenceAFieldNames;
if (hasValue) {
output.WriteMessage(1, field_names[0], Value);
@ -1577,6 +1602,13 @@ namespace UnitTest.Issues.TestProtos {
get {
int size = memoizedSerializedSize;
if (size != -1) return size;
return CalcSerializedSize();
}
}
private int CalcSerializedSize() {
int size = memoizedSerializedSize;
if (size != -1) return size;
size = 0;
if (hasValue) {
@ -1586,8 +1618,6 @@ namespace UnitTest.Issues.TestProtos {
memoizedSerializedSize = size;
return size;
}
}
public static MyMessageBReferenceA ParseFrom(pb::ByteString data) {
return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
}
@ -1884,7 +1914,7 @@ namespace UnitTest.Issues.TestProtos {
}
public override void WriteTo(pb::ICodedOutputStream output) {
int size = SerializedSize;
CalcSerializedSize();
string[] field_names = _negativeEnumMessageFieldNames;
if (hasValue) {
output.WriteEnum(1, field_names[1], (int) Value, Value);
@ -1903,6 +1933,13 @@ namespace UnitTest.Issues.TestProtos {
get {
int size = memoizedSerializedSize;
if (size != -1) return size;
return CalcSerializedSize();
}
}
private int CalcSerializedSize() {
int size = memoizedSerializedSize;
if (size != -1) return size;
size = 0;
if (hasValue) {
@ -1934,8 +1971,6 @@ namespace UnitTest.Issues.TestProtos {
memoizedSerializedSize = size;
return size;
}
}
public static NegativeEnumMessage ParseFrom(pb::ByteString data) {
return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
}
@ -2276,7 +2311,7 @@ namespace UnitTest.Issues.TestProtos {
}
public override void WriteTo(pb::ICodedOutputStream output) {
int size = SerializedSize;
CalcSerializedSize();
string[] field_names = _deprecatedChildFieldNames;
UnknownFields.WriteTo(output);
}
@ -2286,14 +2321,19 @@ namespace UnitTest.Issues.TestProtos {
get {
int size = memoizedSerializedSize;
if (size != -1) return size;
return CalcSerializedSize();
}
}
private int CalcSerializedSize() {
int size = memoizedSerializedSize;
if (size != -1) return size;
size = 0;
size += UnknownFields.SerializedSize;
memoizedSerializedSize = size;
return size;
}
}
public static DeprecatedChild ParseFrom(pb::ByteString data) {
return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
}
@ -2584,7 +2624,7 @@ namespace UnitTest.Issues.TestProtos {
}
public override void WriteTo(pb::ICodedOutputStream output) {
int size = SerializedSize;
CalcSerializedSize();
string[] field_names = _deprecatedFieldsMessageFieldNames;
if (hasPrimitiveValue) {
output.WriteInt32(1, field_names[5], PrimitiveValue);
@ -2612,6 +2652,13 @@ namespace UnitTest.Issues.TestProtos {
get {
int size = memoizedSerializedSize;
if (size != -1) return size;
return CalcSerializedSize();
}
}
private int CalcSerializedSize() {
int size = memoizedSerializedSize;
if (size != -1) return size;
size = 0;
if (hasPrimitiveValue) {
@ -2648,8 +2695,6 @@ namespace UnitTest.Issues.TestProtos {
memoizedSerializedSize = size;
return size;
}
}
public static DeprecatedFieldsMessage ParseFrom(pb::ByteString data) {
return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
}
@ -3159,7 +3204,7 @@ namespace UnitTest.Issues.TestProtos {
}
public override void WriteTo(pb::ICodedOutputStream output) {
int size = SerializedSize;
CalcSerializedSize();
string[] field_names = _itemFieldFieldNames;
if (hasItem) {
output.WriteInt32(1, field_names[0], Item);
@ -3172,6 +3217,13 @@ namespace UnitTest.Issues.TestProtos {
get {
int size = memoizedSerializedSize;
if (size != -1) return size;
return CalcSerializedSize();
}
}
private int CalcSerializedSize() {
int size = memoizedSerializedSize;
if (size != -1) return size;
size = 0;
if (hasItem) {
@ -3181,8 +3233,6 @@ namespace UnitTest.Issues.TestProtos {
memoizedSerializedSize = size;
return size;
}
}
public static ItemField ParseFrom(pb::ByteString data) {
return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
}

@ -190,7 +190,7 @@ namespace Google.ProtocolBuffers.TestProtos {
}
public override void WriteTo(pb::ICodedOutputStream output) {
int size = SerializedSize;
CalcSerializedSize();
string[] field_names = _testUnpackedExtensionsFieldNames;
pb::ExtendableMessage<TestUnpackedExtensions, TestUnpackedExtensions.Builder>.ExtensionWriter extensionWriter = CreateExtensionWriter(this);
extensionWriter.WriteUntil(536870912, output);
@ -202,6 +202,13 @@ namespace Google.ProtocolBuffers.TestProtos {
get {
int size = memoizedSerializedSize;
if (size != -1) return size;
return CalcSerializedSize();
}
}
private int CalcSerializedSize() {
int size = memoizedSerializedSize;
if (size != -1) return size;
size = 0;
size += ExtensionsSerializedSize;
@ -209,8 +216,6 @@ namespace Google.ProtocolBuffers.TestProtos {
memoizedSerializedSize = size;
return size;
}
}
public static TestUnpackedExtensions ParseFrom(pb::ByteString data) {
return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
}

@ -583,7 +583,7 @@ namespace Google.ProtocolBuffers.TestProtos {
}
public override void WriteTo(pb::ICodedOutputStream output) {
int size = SerializedSize;
CalcSerializedSize();
string[] field_names = _speedMessage1FieldNames;
if (hasField1) {
output.WriteString(1, field_names[0], Field1);
@ -716,6 +716,13 @@ namespace Google.ProtocolBuffers.TestProtos {
get {
int size = memoizedSerializedSize;
if (size != -1) return size;
return CalcSerializedSize();
}
}
private int CalcSerializedSize() {
int size = memoizedSerializedSize;
if (size != -1) return size;
size = 0;
if (hasField1) {
@ -848,8 +855,6 @@ namespace Google.ProtocolBuffers.TestProtos {
memoizedSerializedSize = size;
return size;
}
}
public static SpeedMessage1 ParseFrom(pb::ByteString data) {
return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
}
@ -2420,7 +2425,7 @@ namespace Google.ProtocolBuffers.TestProtos {
}
public override void WriteTo(pb::ICodedOutputStream output) {
int size = SerializedSize;
CalcSerializedSize();
string[] field_names = _speedMessage1SubMessageFieldNames;
if (hasField1) {
output.WriteInt32(1, field_names[0], Field1);
@ -2490,6 +2495,13 @@ namespace Google.ProtocolBuffers.TestProtos {
get {
int size = memoizedSerializedSize;
if (size != -1) return size;
return CalcSerializedSize();
}
}
private int CalcSerializedSize() {
int size = memoizedSerializedSize;
if (size != -1) return size;
size = 0;
if (hasField1) {
@ -2556,8 +2568,6 @@ namespace Google.ProtocolBuffers.TestProtos {
memoizedSerializedSize = size;
return size;
}
}
public static SpeedMessage1SubMessage ParseFrom(pb::ByteString data) {
return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
}
@ -3515,7 +3525,7 @@ namespace Google.ProtocolBuffers.TestProtos {
}
public override void WriteTo(pb::ICodedOutputStream output) {
int size = SerializedSize;
CalcSerializedSize();
string[] field_names = _group1FieldNames;
if (hasField5) {
output.WriteInt32(5, field_names[14], Field5);
@ -3573,6 +3583,13 @@ namespace Google.ProtocolBuffers.TestProtos {
get {
int size = memoizedSerializedSize;
if (size != -1) return size;
return CalcSerializedSize();
}
}
private int CalcSerializedSize() {
int size = memoizedSerializedSize;
if (size != -1) return size;
size = 0;
if (hasField11) {
@ -3642,8 +3659,6 @@ namespace Google.ProtocolBuffers.TestProtos {
memoizedSerializedSize = size;
return size;
}
}
public static Group1 ParseFrom(pb::ByteString data) {
return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
}
@ -4641,7 +4656,7 @@ namespace Google.ProtocolBuffers.TestProtos {
}
public override void WriteTo(pb::ICodedOutputStream output) {
int size = SerializedSize;
CalcSerializedSize();
string[] field_names = _speedMessage2FieldNames;
if (hasField1) {
output.WriteString(1, field_names[0], Field1);
@ -4741,6 +4756,13 @@ namespace Google.ProtocolBuffers.TestProtos {
get {
int size = memoizedSerializedSize;
if (size != -1) return size;
return CalcSerializedSize();
}
}
private int CalcSerializedSize() {
int size = memoizedSerializedSize;
if (size != -1) return size;
size = 0;
if (hasField1) {
@ -4852,8 +4874,6 @@ namespace Google.ProtocolBuffers.TestProtos {
memoizedSerializedSize = size;
return size;
}
}
public static SpeedMessage2 ParseFrom(pb::ByteString data) {
return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
}
@ -6049,7 +6069,7 @@ namespace Google.ProtocolBuffers.TestProtos {
}
public override void WriteTo(pb::ICodedOutputStream output) {
int size = SerializedSize;
CalcSerializedSize();
string[] field_names = _speedMessage2GroupedMessageFieldNames;
if (hasField1) {
output.WriteFloat(1, field_names[0], Field1);
@ -6092,6 +6112,13 @@ namespace Google.ProtocolBuffers.TestProtos {
get {
int size = memoizedSerializedSize;
if (size != -1) return size;
return CalcSerializedSize();
}
}
private int CalcSerializedSize() {
int size = memoizedSerializedSize;
if (size != -1) return size;
size = 0;
if (hasField1) {
@ -6131,8 +6158,6 @@ namespace Google.ProtocolBuffers.TestProtos {
memoizedSerializedSize = size;
return size;
}
}
public static SpeedMessage2GroupedMessage ParseFrom(pb::ByteString data) {
return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
}

@ -70,7 +70,7 @@ namespace Google.ProtocolBuffers.TestProtos {
}
public override void WriteTo(pb::ICodedOutputStream output) {
int size = SerializedSize;
CalcSerializedSize();
string[] field_names = _importMessageLiteFieldNames;
if (hasD) {
output.WriteInt32(1, field_names[0], D);
@ -82,6 +82,13 @@ namespace Google.ProtocolBuffers.TestProtos {
get {
int size = memoizedSerializedSize;
if (size != -1) return size;
return CalcSerializedSize();
}
}
private int CalcSerializedSize() {
int size = memoizedSerializedSize;
if (size != -1) return size;
size = 0;
if (hasD) {
@ -90,8 +97,6 @@ namespace Google.ProtocolBuffers.TestProtos {
memoizedSerializedSize = size;
return size;
}
}
#region Lite runtime methods
public override int GetHashCode() {
int hash = GetType().GetHashCode();

@ -107,7 +107,7 @@ namespace Google.ProtocolBuffers.TestProtos {
}
public override void WriteTo(pb::ICodedOutputStream output) {
int size = SerializedSize;
CalcSerializedSize();
string[] field_names = _importMessageFieldNames;
if (hasD) {
output.WriteInt32(1, field_names[0], D);
@ -120,6 +120,13 @@ namespace Google.ProtocolBuffers.TestProtos {
get {
int size = memoizedSerializedSize;
if (size != -1) return size;
return CalcSerializedSize();
}
}
private int CalcSerializedSize() {
int size = memoizedSerializedSize;
if (size != -1) return size;
size = 0;
if (hasD) {
@ -129,8 +136,6 @@ namespace Google.ProtocolBuffers.TestProtos {
memoizedSerializedSize = size;
return size;
}
}
public static ImportMessage ParseFrom(pb::ByteString data) {
return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
}

@ -132,7 +132,7 @@ namespace Google.ProtocolBuffers.TestProtos {
}
public override void WriteTo(pb::ICodedOutputStream output) {
int size = SerializedSize;
CalcSerializedSize();
string[] field_names = _testMessageSetFieldNames;
pb::ExtendableMessage<TestMessageSet, TestMessageSet.Builder>.ExtensionWriter extensionWriter = CreateExtensionWriter(this);
extensionWriter.WriteUntil(536870912, output);
@ -144,6 +144,13 @@ namespace Google.ProtocolBuffers.TestProtos {
get {
int size = memoizedSerializedSize;
if (size != -1) return size;
return CalcSerializedSize();
}
}
private int CalcSerializedSize() {
int size = memoizedSerializedSize;
if (size != -1) return size;
size = 0;
size += ExtensionsSerializedSize;
@ -151,8 +158,6 @@ namespace Google.ProtocolBuffers.TestProtos {
memoizedSerializedSize = size;
return size;
}
}
public static TestMessageSet ParseFrom(pb::ByteString data) {
return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
}
@ -373,7 +378,7 @@ namespace Google.ProtocolBuffers.TestProtos {
}
public override void WriteTo(pb::ICodedOutputStream output) {
int size = SerializedSize;
CalcSerializedSize();
string[] field_names = _testMessageSetContainerFieldNames;
if (hasMessageSet) {
output.WriteMessage(1, field_names[0], MessageSet);
@ -386,6 +391,13 @@ namespace Google.ProtocolBuffers.TestProtos {
get {
int size = memoizedSerializedSize;
if (size != -1) return size;
return CalcSerializedSize();
}
}
private int CalcSerializedSize() {
int size = memoizedSerializedSize;
if (size != -1) return size;
size = 0;
if (hasMessageSet) {
@ -395,8 +407,6 @@ namespace Google.ProtocolBuffers.TestProtos {
memoizedSerializedSize = size;
return size;
}
}
public static TestMessageSetContainer ParseFrom(pb::ByteString data) {
return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
}
@ -670,7 +680,7 @@ namespace Google.ProtocolBuffers.TestProtos {
}
public override void WriteTo(pb::ICodedOutputStream output) {
int size = SerializedSize;
CalcSerializedSize();
string[] field_names = _testMessageSetExtension1FieldNames;
if (hasI) {
output.WriteInt32(15, field_names[0], I);
@ -683,6 +693,13 @@ namespace Google.ProtocolBuffers.TestProtos {
get {
int size = memoizedSerializedSize;
if (size != -1) return size;
return CalcSerializedSize();
}
}
private int CalcSerializedSize() {
int size = memoizedSerializedSize;
if (size != -1) return size;
size = 0;
if (hasI) {
@ -692,8 +709,6 @@ namespace Google.ProtocolBuffers.TestProtos {
memoizedSerializedSize = size;
return size;
}
}
public static TestMessageSetExtension1 ParseFrom(pb::ByteString data) {
return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
}
@ -942,7 +957,7 @@ namespace Google.ProtocolBuffers.TestProtos {
}
public override void WriteTo(pb::ICodedOutputStream output) {
int size = SerializedSize;
CalcSerializedSize();
string[] field_names = _testMessageSetExtension2FieldNames;
if (hasStr) {
output.WriteString(25, field_names[0], Str);
@ -955,6 +970,13 @@ namespace Google.ProtocolBuffers.TestProtos {
get {
int size = memoizedSerializedSize;
if (size != -1) return size;
return CalcSerializedSize();
}
}
private int CalcSerializedSize() {
int size = memoizedSerializedSize;
if (size != -1) return size;
size = 0;
if (hasStr) {
@ -964,8 +986,6 @@ namespace Google.ProtocolBuffers.TestProtos {
memoizedSerializedSize = size;
return size;
}
}
public static TestMessageSetExtension2 ParseFrom(pb::ByteString data) {
return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
}
@ -1254,7 +1274,7 @@ namespace Google.ProtocolBuffers.TestProtos {
}
public override void WriteTo(pb::ICodedOutputStream output) {
int size = SerializedSize;
CalcSerializedSize();
string[] field_names = _itemFieldNames;
if (hasTypeId) {
output.WriteInt32(2, field_names[1], TypeId);
@ -1270,6 +1290,13 @@ namespace Google.ProtocolBuffers.TestProtos {
get {
int size = memoizedSerializedSize;
if (size != -1) return size;
return CalcSerializedSize();
}
}
private int CalcSerializedSize() {
int size = memoizedSerializedSize;
if (size != -1) return size;
size = 0;
if (hasTypeId) {
@ -1282,8 +1309,6 @@ namespace Google.ProtocolBuffers.TestProtos {
memoizedSerializedSize = size;
return size;
}
}
public static Item ParseFrom(pb::ByteString data) {
return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
}
@ -1537,7 +1562,7 @@ namespace Google.ProtocolBuffers.TestProtos {
}
public override void WriteTo(pb::ICodedOutputStream output) {
int size = SerializedSize;
CalcSerializedSize();
string[] field_names = _rawMessageSetFieldNames;
if (item_.Count > 0) {
output.WriteGroupArray(1, field_names[0], item_);
@ -1550,6 +1575,13 @@ namespace Google.ProtocolBuffers.TestProtos {
get {
int size = memoizedSerializedSize;
if (size != -1) return size;
return CalcSerializedSize();
}
}
private int CalcSerializedSize() {
int size = memoizedSerializedSize;
if (size != -1) return size;
size = 0;
foreach (global::Google.ProtocolBuffers.TestProtos.RawMessageSet.Types.Item element in ItemList) {
@ -1559,8 +1591,6 @@ namespace Google.ProtocolBuffers.TestProtos {
memoizedSerializedSize = size;
return size;
}
}
public static RawMessageSet ParseFrom(pb::ByteString data) {
return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
}

@ -118,7 +118,7 @@ namespace Google.ProtocolBuffers.TestProtos.NoGenericService {
}
public override void WriteTo(pb::ICodedOutputStream output) {
int size = SerializedSize;
CalcSerializedSize();
string[] field_names = _testMessageFieldNames;
pb::ExtendableMessage<TestMessage, TestMessage.Builder>.ExtensionWriter extensionWriter = CreateExtensionWriter(this);
if (hasA) {
@ -133,6 +133,13 @@ namespace Google.ProtocolBuffers.TestProtos.NoGenericService {
get {
int size = memoizedSerializedSize;
if (size != -1) return size;
return CalcSerializedSize();
}
}
private int CalcSerializedSize() {
int size = memoizedSerializedSize;
if (size != -1) return size;
size = 0;
if (hasA) {
@ -143,8 +150,6 @@ namespace Google.ProtocolBuffers.TestProtos.NoGenericService {
memoizedSerializedSize = size;
return size;
}
}
public static TestMessage ParseFrom(pb::ByteString data) {
return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
}

File diff suppressed because it is too large Load Diff

@ -122,7 +122,7 @@ namespace Google.ProtocolBuffers.TestProtos {
}
public override void WriteTo(pb::ICodedOutputStream output) {
int size = SerializedSize;
CalcSerializedSize();
string[] field_names = _searchRequestFieldNames;
if (criteria_.Count > 0) {
output.WriteStringArray(1, field_names[0], criteria_);
@ -135,6 +135,13 @@ namespace Google.ProtocolBuffers.TestProtos {
get {
int size = memoizedSerializedSize;
if (size != -1) return size;
return CalcSerializedSize();
}
}
private int CalcSerializedSize() {
int size = memoizedSerializedSize;
if (size != -1) return size;
size = 0;
{
@ -149,8 +156,6 @@ namespace Google.ProtocolBuffers.TestProtos {
memoizedSerializedSize = size;
return size;
}
}
public static SearchRequest ParseFrom(pb::ByteString data) {
return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
}
@ -450,7 +455,7 @@ namespace Google.ProtocolBuffers.TestProtos {
}
public override void WriteTo(pb::ICodedOutputStream output) {
int size = SerializedSize;
CalcSerializedSize();
string[] field_names = _resultItemFieldNames;
if (hasUrl) {
output.WriteString(1, field_names[1], Url);
@ -466,6 +471,13 @@ namespace Google.ProtocolBuffers.TestProtos {
get {
int size = memoizedSerializedSize;
if (size != -1) return size;
return CalcSerializedSize();
}
}
private int CalcSerializedSize() {
int size = memoizedSerializedSize;
if (size != -1) return size;
size = 0;
if (hasUrl) {
@ -478,8 +490,6 @@ namespace Google.ProtocolBuffers.TestProtos {
memoizedSerializedSize = size;
return size;
}
}
public static ResultItem ParseFrom(pb::ByteString data) {
return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
}
@ -737,7 +747,7 @@ namespace Google.ProtocolBuffers.TestProtos {
}
public override void WriteTo(pb::ICodedOutputStream output) {
int size = SerializedSize;
CalcSerializedSize();
string[] field_names = _searchResponseFieldNames;
if (results_.Count > 0) {
output.WriteMessageArray(1, field_names[0], results_);
@ -750,6 +760,13 @@ namespace Google.ProtocolBuffers.TestProtos {
get {
int size = memoizedSerializedSize;
if (size != -1) return size;
return CalcSerializedSize();
}
}
private int CalcSerializedSize() {
int size = memoizedSerializedSize;
if (size != -1) return size;
size = 0;
foreach (global::Google.ProtocolBuffers.TestProtos.SearchResponse.Types.ResultItem element in ResultsList) {
@ -759,8 +776,6 @@ namespace Google.ProtocolBuffers.TestProtos {
memoizedSerializedSize = size;
return size;
}
}
public static SearchResponse ParseFrom(pb::ByteString data) {
return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
}
@ -1046,7 +1061,7 @@ namespace Google.ProtocolBuffers.TestProtos {
}
public override void WriteTo(pb::ICodedOutputStream output) {
int size = SerializedSize;
CalcSerializedSize();
string[] field_names = _refineSearchRequestFieldNames;
if (criteria_.Count > 0) {
output.WriteStringArray(1, field_names[0], criteria_);
@ -1062,6 +1077,13 @@ namespace Google.ProtocolBuffers.TestProtos {
get {
int size = memoizedSerializedSize;
if (size != -1) return size;
return CalcSerializedSize();
}
}
private int CalcSerializedSize() {
int size = memoizedSerializedSize;
if (size != -1) return size;
size = 0;
{
@ -1079,8 +1101,6 @@ namespace Google.ProtocolBuffers.TestProtos {
memoizedSerializedSize = size;
return size;
}
}
public static RefineSearchRequest ParseFrom(pb::ByteString data) {
return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
}

@ -187,7 +187,7 @@ namespace Google.ProtocolBuffers.TestProtos {
}
public override void WriteTo(pb::ICodedOutputStream output) {
int size = SerializedSize;
CalcSerializedSize();
string[] field_names = _testXmlChildFieldNames;
if (options_.Count > 0) {
output.WriteEnumArray(3, field_names[1], options_);
@ -203,6 +203,13 @@ namespace Google.ProtocolBuffers.TestProtos {
get {
int size = memoizedSerializedSize;
if (size != -1) return size;
return CalcSerializedSize();
}
}
private int CalcSerializedSize() {
int size = memoizedSerializedSize;
if (size != -1) return size;
size = 0;
{
@ -222,8 +229,6 @@ namespace Google.ProtocolBuffers.TestProtos {
memoizedSerializedSize = size;
return size;
}
}
public static TestXmlChild ParseFrom(pb::ByteString data) {
return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
}
@ -511,7 +516,7 @@ namespace Google.ProtocolBuffers.TestProtos {
}
public override void WriteTo(pb::ICodedOutputStream output) {
int size = SerializedSize;
CalcSerializedSize();
string[] field_names = _testXmlNoFieldsFieldNames;
UnknownFields.WriteTo(output);
}
@ -521,14 +526,19 @@ namespace Google.ProtocolBuffers.TestProtos {
get {
int size = memoizedSerializedSize;
if (size != -1) return size;
return CalcSerializedSize();
}
}
private int CalcSerializedSize() {
int size = memoizedSerializedSize;
if (size != -1) return size;
size = 0;
size += UnknownFields.SerializedSize;
memoizedSerializedSize = size;
return size;
}
}
public static TestXmlNoFields ParseFrom(pb::ByteString data) {
return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
}
@ -750,7 +760,7 @@ namespace Google.ProtocolBuffers.TestProtos {
}
public override void WriteTo(pb::ICodedOutputStream output) {
int size = SerializedSize;
CalcSerializedSize();
string[] field_names = _testXmlRescursiveFieldNames;
if (hasChild) {
output.WriteMessage(1, field_names[0], Child);
@ -763,6 +773,13 @@ namespace Google.ProtocolBuffers.TestProtos {
get {
int size = memoizedSerializedSize;
if (size != -1) return size;
return CalcSerializedSize();
}
}
private int CalcSerializedSize() {
int size = memoizedSerializedSize;
if (size != -1) return size;
size = 0;
if (hasChild) {
@ -772,8 +789,6 @@ namespace Google.ProtocolBuffers.TestProtos {
memoizedSerializedSize = size;
return size;
}
}
public static TestXmlRescursive ParseFrom(pb::ByteString data) {
return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
}
@ -1089,7 +1104,7 @@ namespace Google.ProtocolBuffers.TestProtos {
}
public override void WriteTo(pb::ICodedOutputStream output) {
int size = SerializedSize;
CalcSerializedSize();
string[] field_names = _childrenFieldNames;
if (options_.Count > 0) {
output.WriteEnumArray(3, field_names[1], options_);
@ -1105,6 +1120,13 @@ namespace Google.ProtocolBuffers.TestProtos {
get {
int size = memoizedSerializedSize;
if (size != -1) return size;
return CalcSerializedSize();
}
}
private int CalcSerializedSize() {
int size = memoizedSerializedSize;
if (size != -1) return size;
size = 0;
{
@ -1124,8 +1146,6 @@ namespace Google.ProtocolBuffers.TestProtos {
memoizedSerializedSize = size;
return size;
}
}
public static Children ParseFrom(pb::ByteString data) {
return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
}
@ -1466,7 +1486,7 @@ namespace Google.ProtocolBuffers.TestProtos {
}
public override void WriteTo(pb::ICodedOutputStream output) {
int size = SerializedSize;
CalcSerializedSize();
string[] field_names = _testXmlMessageFieldNames;
pb::ExtendableMessage<TestXmlMessage, TestXmlMessage.Builder>.ExtensionWriter extensionWriter = CreateExtensionWriter(this);
if (hasChild) {
@ -1499,6 +1519,13 @@ namespace Google.ProtocolBuffers.TestProtos {
get {
int size = memoizedSerializedSize;
if (size != -1) return size;
return CalcSerializedSize();
}
}
private int CalcSerializedSize() {
int size = memoizedSerializedSize;
if (size != -1) return size;
size = 0;
if (hasNumber) {
@ -1537,8 +1564,6 @@ namespace Google.ProtocolBuffers.TestProtos {
memoizedSerializedSize = size;
return size;
}
}
public static TestXmlMessage ParseFrom(pb::ByteString data) {
return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
}
@ -2027,7 +2052,7 @@ namespace Google.ProtocolBuffers.TestProtos {
}
public override void WriteTo(pb::ICodedOutputStream output) {
int size = SerializedSize;
CalcSerializedSize();
string[] field_names = _testXmlExtensionFieldNames;
if (hasNumber) {
output.WriteInt32(1, field_names[0], Number);
@ -2040,6 +2065,13 @@ namespace Google.ProtocolBuffers.TestProtos {
get {
int size = memoizedSerializedSize;
if (size != -1) return size;
return CalcSerializedSize();
}
}
private int CalcSerializedSize() {
int size = memoizedSerializedSize;
if (size != -1) return size;
size = 0;
if (hasNumber) {
@ -2049,8 +2081,6 @@ namespace Google.ProtocolBuffers.TestProtos {
memoizedSerializedSize = size;
return size;
}
}
public static TestXmlExtension ParseFrom(pb::ByteString data) {
return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
}

@ -313,7 +313,7 @@ namespace Google.ProtocolBuffers.DescriptorProtos {
}
public override void WriteTo(pb::ICodedOutputStream output) {
int size = SerializedSize;
CalcSerializedSize();
string[] field_names = _cSharpFileOptionsFieldNames;
if (hasNamespace) {
output.WriteString(1, field_names[9], Namespace);
@ -371,6 +371,13 @@ namespace Google.ProtocolBuffers.DescriptorProtos {
get {
int size = memoizedSerializedSize;
if (size != -1) return size;
return CalcSerializedSize();
}
}
private int CalcSerializedSize() {
int size = memoizedSerializedSize;
if (size != -1) return size;
size = 0;
if (hasNamespace) {
@ -425,8 +432,6 @@ namespace Google.ProtocolBuffers.DescriptorProtos {
memoizedSerializedSize = size;
return size;
}
}
public static CSharpFileOptions ParseFrom(pb::ByteString data) {
return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
}
@ -1091,7 +1096,7 @@ namespace Google.ProtocolBuffers.DescriptorProtos {
}
public override void WriteTo(pb::ICodedOutputStream output) {
int size = SerializedSize;
CalcSerializedSize();
string[] field_names = _cSharpFieldOptionsFieldNames;
if (hasPropertyName) {
output.WriteString(1, field_names[0], PropertyName);
@ -1104,6 +1109,13 @@ namespace Google.ProtocolBuffers.DescriptorProtos {
get {
int size = memoizedSerializedSize;
if (size != -1) return size;
return CalcSerializedSize();
}
}
private int CalcSerializedSize() {
int size = memoizedSerializedSize;
if (size != -1) return size;
size = 0;
if (hasPropertyName) {
@ -1113,8 +1125,6 @@ namespace Google.ProtocolBuffers.DescriptorProtos {
memoizedSerializedSize = size;
return size;
}
}
public static CSharpFieldOptions ParseFrom(pb::ByteString data) {
return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
}
@ -1362,7 +1372,7 @@ namespace Google.ProtocolBuffers.DescriptorProtos {
}
public override void WriteTo(pb::ICodedOutputStream output) {
int size = SerializedSize;
CalcSerializedSize();
string[] field_names = _cSharpServiceOptionsFieldNames;
if (hasInterfaceId) {
output.WriteString(1, field_names[0], InterfaceId);
@ -1375,6 +1385,13 @@ namespace Google.ProtocolBuffers.DescriptorProtos {
get {
int size = memoizedSerializedSize;
if (size != -1) return size;
return CalcSerializedSize();
}
}
private int CalcSerializedSize() {
int size = memoizedSerializedSize;
if (size != -1) return size;
size = 0;
if (hasInterfaceId) {
@ -1384,8 +1401,6 @@ namespace Google.ProtocolBuffers.DescriptorProtos {
memoizedSerializedSize = size;
return size;
}
}
public static CSharpServiceOptions ParseFrom(pb::ByteString data) {
return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
}
@ -1633,7 +1648,7 @@ namespace Google.ProtocolBuffers.DescriptorProtos {
}
public override void WriteTo(pb::ICodedOutputStream output) {
int size = SerializedSize;
CalcSerializedSize();
string[] field_names = _cSharpMethodOptionsFieldNames;
if (hasDispatchId) {
output.WriteInt32(1, field_names[0], DispatchId);
@ -1646,6 +1661,13 @@ namespace Google.ProtocolBuffers.DescriptorProtos {
get {
int size = memoizedSerializedSize;
if (size != -1) return size;
return CalcSerializedSize();
}
}
private int CalcSerializedSize() {
int size = memoizedSerializedSize;
if (size != -1) return size;
size = 0;
if (hasDispatchId) {
@ -1655,8 +1677,6 @@ namespace Google.ProtocolBuffers.DescriptorProtos {
memoizedSerializedSize = size;
return size;
}
}
public static CSharpMethodOptions ParseFrom(pb::ByteString data) {
return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
}

@ -294,7 +294,7 @@ namespace Google.ProtocolBuffers.DescriptorProtos {
}
public override void WriteTo(pb::ICodedOutputStream output) {
int size = SerializedSize;
CalcSerializedSize();
string[] field_names = _fileDescriptorSetFieldNames;
if (file_.Count > 0) {
output.WriteMessageArray(1, field_names[0], file_);
@ -307,6 +307,13 @@ namespace Google.ProtocolBuffers.DescriptorProtos {
get {
int size = memoizedSerializedSize;
if (size != -1) return size;
return CalcSerializedSize();
}
}
private int CalcSerializedSize() {
int size = memoizedSerializedSize;
if (size != -1) return size;
size = 0;
foreach (global::Google.ProtocolBuffers.DescriptorProtos.FileDescriptorProto element in FileList) {
@ -316,8 +323,6 @@ namespace Google.ProtocolBuffers.DescriptorProtos {
memoizedSerializedSize = size;
return size;
}
}
public static FileDescriptorSet ParseFrom(pb::ByteString data) {
return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
}
@ -694,7 +699,7 @@ namespace Google.ProtocolBuffers.DescriptorProtos {
}
public override void WriteTo(pb::ICodedOutputStream output) {
int size = SerializedSize;
CalcSerializedSize();
string[] field_names = _fileDescriptorProtoFieldNames;
if (hasName) {
output.WriteString(1, field_names[4], Name);
@ -731,6 +736,13 @@ namespace Google.ProtocolBuffers.DescriptorProtos {
get {
int size = memoizedSerializedSize;
if (size != -1) return size;
return CalcSerializedSize();
}
}
private int CalcSerializedSize() {
int size = memoizedSerializedSize;
if (size != -1) return size;
size = 0;
if (hasName) {
@ -769,8 +781,6 @@ namespace Google.ProtocolBuffers.DescriptorProtos {
memoizedSerializedSize = size;
return size;
}
}
public static FileDescriptorProto ParseFrom(pb::ByteString data) {
return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
}
@ -1437,7 +1447,7 @@ namespace Google.ProtocolBuffers.DescriptorProtos {
}
public override void WriteTo(pb::ICodedOutputStream output) {
int size = SerializedSize;
CalcSerializedSize();
string[] field_names = _extensionRangeFieldNames;
if (hasStart) {
output.WriteInt32(1, field_names[1], Start);
@ -1453,6 +1463,13 @@ namespace Google.ProtocolBuffers.DescriptorProtos {
get {
int size = memoizedSerializedSize;
if (size != -1) return size;
return CalcSerializedSize();
}
}
private int CalcSerializedSize() {
int size = memoizedSerializedSize;
if (size != -1) return size;
size = 0;
if (hasStart) {
@ -1465,8 +1482,6 @@ namespace Google.ProtocolBuffers.DescriptorProtos {
memoizedSerializedSize = size;
return size;
}
}
public static ExtensionRange ParseFrom(pb::ByteString data) {
return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
}
@ -1802,7 +1817,7 @@ namespace Google.ProtocolBuffers.DescriptorProtos {
}
public override void WriteTo(pb::ICodedOutputStream output) {
int size = SerializedSize;
CalcSerializedSize();
string[] field_names = _descriptorProtoFieldNames;
if (hasName) {
output.WriteString(1, field_names[4], Name);
@ -1833,6 +1848,13 @@ namespace Google.ProtocolBuffers.DescriptorProtos {
get {
int size = memoizedSerializedSize;
if (size != -1) return size;
return CalcSerializedSize();
}
}
private int CalcSerializedSize() {
int size = memoizedSerializedSize;
if (size != -1) return size;
size = 0;
if (hasName) {
@ -1860,8 +1882,6 @@ namespace Google.ProtocolBuffers.DescriptorProtos {
memoizedSerializedSize = size;
return size;
}
}
public static DescriptorProto ParseFrom(pb::ByteString data) {
return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
}
@ -2527,7 +2547,7 @@ namespace Google.ProtocolBuffers.DescriptorProtos {
}
public override void WriteTo(pb::ICodedOutputStream output) {
int size = SerializedSize;
CalcSerializedSize();
string[] field_names = _fieldDescriptorProtoFieldNames;
if (hasName) {
output.WriteString(1, field_names[3], Name);
@ -2561,6 +2581,13 @@ namespace Google.ProtocolBuffers.DescriptorProtos {
get {
int size = memoizedSerializedSize;
if (size != -1) return size;
return CalcSerializedSize();
}
}
private int CalcSerializedSize() {
int size = memoizedSerializedSize;
if (size != -1) return size;
size = 0;
if (hasName) {
@ -2591,8 +2618,6 @@ namespace Google.ProtocolBuffers.DescriptorProtos {
memoizedSerializedSize = size;
return size;
}
}
public static FieldDescriptorProto ParseFrom(pb::ByteString data) {
return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
}
@ -3101,7 +3126,7 @@ namespace Google.ProtocolBuffers.DescriptorProtos {
}
public override void WriteTo(pb::ICodedOutputStream output) {
int size = SerializedSize;
CalcSerializedSize();
string[] field_names = _enumDescriptorProtoFieldNames;
if (hasName) {
output.WriteString(1, field_names[0], Name);
@ -3120,6 +3145,13 @@ namespace Google.ProtocolBuffers.DescriptorProtos {
get {
int size = memoizedSerializedSize;
if (size != -1) return size;
return CalcSerializedSize();
}
}
private int CalcSerializedSize() {
int size = memoizedSerializedSize;
if (size != -1) return size;
size = 0;
if (hasName) {
@ -3135,8 +3167,6 @@ namespace Google.ProtocolBuffers.DescriptorProtos {
memoizedSerializedSize = size;
return size;
}
}
public static EnumDescriptorProto ParseFrom(pb::ByteString data) {
return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
}
@ -3511,7 +3541,7 @@ namespace Google.ProtocolBuffers.DescriptorProtos {
}
public override void WriteTo(pb::ICodedOutputStream output) {
int size = SerializedSize;
CalcSerializedSize();
string[] field_names = _enumValueDescriptorProtoFieldNames;
if (hasName) {
output.WriteString(1, field_names[0], Name);
@ -3530,6 +3560,13 @@ namespace Google.ProtocolBuffers.DescriptorProtos {
get {
int size = memoizedSerializedSize;
if (size != -1) return size;
return CalcSerializedSize();
}
}
private int CalcSerializedSize() {
int size = memoizedSerializedSize;
if (size != -1) return size;
size = 0;
if (hasName) {
@ -3545,8 +3582,6 @@ namespace Google.ProtocolBuffers.DescriptorProtos {
memoizedSerializedSize = size;
return size;
}
}
public static EnumValueDescriptorProto ParseFrom(pb::ByteString data) {
return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
}
@ -3901,7 +3936,7 @@ namespace Google.ProtocolBuffers.DescriptorProtos {
}
public override void WriteTo(pb::ICodedOutputStream output) {
int size = SerializedSize;
CalcSerializedSize();
string[] field_names = _serviceDescriptorProtoFieldNames;
if (hasName) {
output.WriteString(1, field_names[1], Name);
@ -3920,6 +3955,13 @@ namespace Google.ProtocolBuffers.DescriptorProtos {
get {
int size = memoizedSerializedSize;
if (size != -1) return size;
return CalcSerializedSize();
}
}
private int CalcSerializedSize() {
int size = memoizedSerializedSize;
if (size != -1) return size;
size = 0;
if (hasName) {
@ -3935,8 +3977,6 @@ namespace Google.ProtocolBuffers.DescriptorProtos {
memoizedSerializedSize = size;
return size;
}
}
public static ServiceDescriptorProto ParseFrom(pb::ByteString data) {
return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
}
@ -4321,7 +4361,7 @@ namespace Google.ProtocolBuffers.DescriptorProtos {
}
public override void WriteTo(pb::ICodedOutputStream output) {
int size = SerializedSize;
CalcSerializedSize();
string[] field_names = _methodDescriptorProtoFieldNames;
if (hasName) {
output.WriteString(1, field_names[1], Name);
@ -4343,6 +4383,13 @@ namespace Google.ProtocolBuffers.DescriptorProtos {
get {
int size = memoizedSerializedSize;
if (size != -1) return size;
return CalcSerializedSize();
}
}
private int CalcSerializedSize() {
int size = memoizedSerializedSize;
if (size != -1) return size;
size = 0;
if (hasName) {
@ -4361,8 +4408,6 @@ namespace Google.ProtocolBuffers.DescriptorProtos {
memoizedSerializedSize = size;
return size;
}
}
public static MethodDescriptorProto ParseFrom(pb::ByteString data) {
return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
}
@ -4816,7 +4861,7 @@ namespace Google.ProtocolBuffers.DescriptorProtos {
}
public override void WriteTo(pb::ICodedOutputStream output) {
int size = SerializedSize;
CalcSerializedSize();
string[] field_names = _fileOptionsFieldNames;
pb::ExtendableMessage<FileOptions, FileOptions.Builder>.ExtensionWriter extensionWriter = CreateExtensionWriter(this);
if (hasJavaPackage) {
@ -4855,6 +4900,13 @@ namespace Google.ProtocolBuffers.DescriptorProtos {
get {
int size = memoizedSerializedSize;
if (size != -1) return size;
return CalcSerializedSize();
}
}
private int CalcSerializedSize() {
int size = memoizedSerializedSize;
if (size != -1) return size;
size = 0;
if (hasJavaPackage) {
@ -4889,8 +4941,6 @@ namespace Google.ProtocolBuffers.DescriptorProtos {
memoizedSerializedSize = size;
return size;
}
}
public static FileOptions ParseFrom(pb::ByteString data) {
return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
}
@ -5415,7 +5465,7 @@ namespace Google.ProtocolBuffers.DescriptorProtos {
}
public override void WriteTo(pb::ICodedOutputStream output) {
int size = SerializedSize;
CalcSerializedSize();
string[] field_names = _messageOptionsFieldNames;
pb::ExtendableMessage<MessageOptions, MessageOptions.Builder>.ExtensionWriter extensionWriter = CreateExtensionWriter(this);
if (hasMessageSetWireFormat) {
@ -5436,6 +5486,13 @@ namespace Google.ProtocolBuffers.DescriptorProtos {
get {
int size = memoizedSerializedSize;
if (size != -1) return size;
return CalcSerializedSize();
}
}
private int CalcSerializedSize() {
int size = memoizedSerializedSize;
if (size != -1) return size;
size = 0;
if (hasMessageSetWireFormat) {
@ -5452,8 +5509,6 @@ namespace Google.ProtocolBuffers.DescriptorProtos {
memoizedSerializedSize = size;
return size;
}
}
public static MessageOptions ParseFrom(pb::ByteString data) {
return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
}
@ -5838,7 +5893,7 @@ namespace Google.ProtocolBuffers.DescriptorProtos {
}
public override void WriteTo(pb::ICodedOutputStream output) {
int size = SerializedSize;
CalcSerializedSize();
string[] field_names = _fieldOptionsFieldNames;
pb::ExtendableMessage<FieldOptions, FieldOptions.Builder>.ExtensionWriter extensionWriter = CreateExtensionWriter(this);
if (hasCtype) {
@ -5865,6 +5920,13 @@ namespace Google.ProtocolBuffers.DescriptorProtos {
get {
int size = memoizedSerializedSize;
if (size != -1) return size;
return CalcSerializedSize();
}
}
private int CalcSerializedSize() {
int size = memoizedSerializedSize;
if (size != -1) return size;
size = 0;
if (hasCtype) {
@ -5887,8 +5949,6 @@ namespace Google.ProtocolBuffers.DescriptorProtos {
memoizedSerializedSize = size;
return size;
}
}
public static FieldOptions ParseFrom(pb::ByteString data) {
return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
}
@ -6284,7 +6344,7 @@ namespace Google.ProtocolBuffers.DescriptorProtos {
}
public override void WriteTo(pb::ICodedOutputStream output) {
int size = SerializedSize;
CalcSerializedSize();
string[] field_names = _enumOptionsFieldNames;
pb::ExtendableMessage<EnumOptions, EnumOptions.Builder>.ExtensionWriter extensionWriter = CreateExtensionWriter(this);
if (uninterpretedOption_.Count > 0) {
@ -6299,6 +6359,13 @@ namespace Google.ProtocolBuffers.DescriptorProtos {
get {
int size = memoizedSerializedSize;
if (size != -1) return size;
return CalcSerializedSize();
}
}
private int CalcSerializedSize() {
int size = memoizedSerializedSize;
if (size != -1) return size;
size = 0;
foreach (global::Google.ProtocolBuffers.DescriptorProtos.UninterpretedOption element in UninterpretedOptionList) {
@ -6309,8 +6376,6 @@ namespace Google.ProtocolBuffers.DescriptorProtos {
memoizedSerializedSize = size;
return size;
}
}
public static EnumOptions ParseFrom(pb::ByteString data) {
return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
}
@ -6589,7 +6654,7 @@ namespace Google.ProtocolBuffers.DescriptorProtos {
}
public override void WriteTo(pb::ICodedOutputStream output) {
int size = SerializedSize;
CalcSerializedSize();
string[] field_names = _enumValueOptionsFieldNames;
pb::ExtendableMessage<EnumValueOptions, EnumValueOptions.Builder>.ExtensionWriter extensionWriter = CreateExtensionWriter(this);
if (uninterpretedOption_.Count > 0) {
@ -6604,6 +6669,13 @@ namespace Google.ProtocolBuffers.DescriptorProtos {
get {
int size = memoizedSerializedSize;
if (size != -1) return size;
return CalcSerializedSize();
}
}
private int CalcSerializedSize() {
int size = memoizedSerializedSize;
if (size != -1) return size;
size = 0;
foreach (global::Google.ProtocolBuffers.DescriptorProtos.UninterpretedOption element in UninterpretedOptionList) {
@ -6614,8 +6686,6 @@ namespace Google.ProtocolBuffers.DescriptorProtos {
memoizedSerializedSize = size;
return size;
}
}
public static EnumValueOptions ParseFrom(pb::ByteString data) {
return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
}
@ -6894,7 +6964,7 @@ namespace Google.ProtocolBuffers.DescriptorProtos {
}
public override void WriteTo(pb::ICodedOutputStream output) {
int size = SerializedSize;
CalcSerializedSize();
string[] field_names = _serviceOptionsFieldNames;
pb::ExtendableMessage<ServiceOptions, ServiceOptions.Builder>.ExtensionWriter extensionWriter = CreateExtensionWriter(this);
if (uninterpretedOption_.Count > 0) {
@ -6909,6 +6979,13 @@ namespace Google.ProtocolBuffers.DescriptorProtos {
get {
int size = memoizedSerializedSize;
if (size != -1) return size;
return CalcSerializedSize();
}
}
private int CalcSerializedSize() {
int size = memoizedSerializedSize;
if (size != -1) return size;
size = 0;
foreach (global::Google.ProtocolBuffers.DescriptorProtos.UninterpretedOption element in UninterpretedOptionList) {
@ -6919,8 +6996,6 @@ namespace Google.ProtocolBuffers.DescriptorProtos {
memoizedSerializedSize = size;
return size;
}
}
public static ServiceOptions ParseFrom(pb::ByteString data) {
return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
}
@ -7199,7 +7274,7 @@ namespace Google.ProtocolBuffers.DescriptorProtos {
}
public override void WriteTo(pb::ICodedOutputStream output) {
int size = SerializedSize;
CalcSerializedSize();
string[] field_names = _methodOptionsFieldNames;
pb::ExtendableMessage<MethodOptions, MethodOptions.Builder>.ExtensionWriter extensionWriter = CreateExtensionWriter(this);
if (uninterpretedOption_.Count > 0) {
@ -7214,6 +7289,13 @@ namespace Google.ProtocolBuffers.DescriptorProtos {
get {
int size = memoizedSerializedSize;
if (size != -1) return size;
return CalcSerializedSize();
}
}
private int CalcSerializedSize() {
int size = memoizedSerializedSize;
if (size != -1) return size;
size = 0;
foreach (global::Google.ProtocolBuffers.DescriptorProtos.UninterpretedOption element in UninterpretedOptionList) {
@ -7224,8 +7306,6 @@ namespace Google.ProtocolBuffers.DescriptorProtos {
memoizedSerializedSize = size;
return size;
}
}
public static MethodOptions ParseFrom(pb::ByteString data) {
return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
}
@ -7539,7 +7619,7 @@ namespace Google.ProtocolBuffers.DescriptorProtos {
}
public override void WriteTo(pb::ICodedOutputStream output) {
int size = SerializedSize;
CalcSerializedSize();
string[] field_names = _namePartFieldNames;
if (hasNamePart_) {
output.WriteString(1, field_names[1], NamePart_);
@ -7555,6 +7635,13 @@ namespace Google.ProtocolBuffers.DescriptorProtos {
get {
int size = memoizedSerializedSize;
if (size != -1) return size;
return CalcSerializedSize();
}
}
private int CalcSerializedSize() {
int size = memoizedSerializedSize;
if (size != -1) return size;
size = 0;
if (hasNamePart_) {
@ -7567,8 +7654,6 @@ namespace Google.ProtocolBuffers.DescriptorProtos {
memoizedSerializedSize = size;
return size;
}
}
public static NamePart ParseFrom(pb::ByteString data) {
return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
}
@ -7886,7 +7971,7 @@ namespace Google.ProtocolBuffers.DescriptorProtos {
}
public override void WriteTo(pb::ICodedOutputStream output) {
int size = SerializedSize;
CalcSerializedSize();
string[] field_names = _uninterpretedOptionFieldNames;
if (name_.Count > 0) {
output.WriteMessageArray(2, field_names[3], name_);
@ -7917,6 +8002,13 @@ namespace Google.ProtocolBuffers.DescriptorProtos {
get {
int size = memoizedSerializedSize;
if (size != -1) return size;
return CalcSerializedSize();
}
}
private int CalcSerializedSize() {
int size = memoizedSerializedSize;
if (size != -1) return size;
size = 0;
foreach (global::Google.ProtocolBuffers.DescriptorProtos.UninterpretedOption.Types.NamePart element in NameList) {
@ -7944,8 +8036,6 @@ namespace Google.ProtocolBuffers.DescriptorProtos {
memoizedSerializedSize = size;
return size;
}
}
public static UninterpretedOption ParseFrom(pb::ByteString data) {
return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
}
@ -8429,7 +8519,7 @@ namespace Google.ProtocolBuffers.DescriptorProtos {
}
public override void WriteTo(pb::ICodedOutputStream output) {
int size = SerializedSize;
CalcSerializedSize();
string[] field_names = _locationFieldNames;
if (path_.Count > 0) {
output.WritePackedInt32Array(1, field_names[0], pathMemoizedSerializedSize, path_);
@ -8445,6 +8535,13 @@ namespace Google.ProtocolBuffers.DescriptorProtos {
get {
int size = memoizedSerializedSize;
if (size != -1) return size;
return CalcSerializedSize();
}
}
private int CalcSerializedSize() {
int size = memoizedSerializedSize;
if (size != -1) return size;
size = 0;
{
@ -8473,8 +8570,6 @@ namespace Google.ProtocolBuffers.DescriptorProtos {
memoizedSerializedSize = size;
return size;
}
}
public static Location ParseFrom(pb::ByteString data) {
return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
}
@ -8751,7 +8846,7 @@ namespace Google.ProtocolBuffers.DescriptorProtos {
}
public override void WriteTo(pb::ICodedOutputStream output) {
int size = SerializedSize;
CalcSerializedSize();
string[] field_names = _sourceCodeInfoFieldNames;
if (location_.Count > 0) {
output.WriteMessageArray(1, field_names[0], location_);
@ -8764,6 +8859,13 @@ namespace Google.ProtocolBuffers.DescriptorProtos {
get {
int size = memoizedSerializedSize;
if (size != -1) return size;
return CalcSerializedSize();
}
}
private int CalcSerializedSize() {
int size = memoizedSerializedSize;
if (size != -1) return size;
size = 0;
foreach (global::Google.ProtocolBuffers.DescriptorProtos.SourceCodeInfo.Types.Location element in LocationList) {
@ -8773,8 +8875,6 @@ namespace Google.ProtocolBuffers.DescriptorProtos {
memoizedSerializedSize = size;
return size;
}
}
public static SourceCodeInfo ParseFrom(pb::ByteString data) {
return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
}

@ -277,7 +277,7 @@ namespace Google.ProtocolBuffers.TestProtos {
}
public override void WriteTo(pb::ICodedOutputStream output) {
int size = SerializedSize;
CalcSerializedSize();
string[] field_names = _testRequiredLiteFieldNames;
if (hasD) {
output.WriteInt32(1, field_names[0], D);
@ -292,6 +292,13 @@ namespace Google.ProtocolBuffers.TestProtos {
get {
int size = memoizedSerializedSize;
if (size != -1) return size;
return CalcSerializedSize();
}
}
private int CalcSerializedSize() {
int size = memoizedSerializedSize;
if (size != -1) return size;
size = 0;
if (hasD) {
@ -303,8 +310,6 @@ namespace Google.ProtocolBuffers.TestProtos {
memoizedSerializedSize = size;
return size;
}
}
#region Lite runtime methods
public override int GetHashCode() {
int hash = GetType().GetHashCode();
@ -619,7 +624,7 @@ namespace Google.ProtocolBuffers.TestProtos {
}
public override void WriteTo(pb::ICodedOutputStream output) {
int size = SerializedSize;
CalcSerializedSize();
string[] field_names = _phoneNumberFieldNames;
if (hasNumber) {
output.WriteString(1, field_names[0], Number);
@ -634,6 +639,13 @@ namespace Google.ProtocolBuffers.TestProtos {
get {
int size = memoizedSerializedSize;
if (size != -1) return size;
return CalcSerializedSize();
}
}
private int CalcSerializedSize() {
int size = memoizedSerializedSize;
if (size != -1) return size;
size = 0;
if (hasNumber) {
@ -645,8 +657,6 @@ namespace Google.ProtocolBuffers.TestProtos {
memoizedSerializedSize = size;
return size;
}
}
#region Lite runtime methods
public override int GetHashCode() {
int hash = GetType().GetHashCode();
@ -968,7 +978,7 @@ namespace Google.ProtocolBuffers.TestProtos {
}
public override void WriteTo(pb::ICodedOutputStream output) {
int size = SerializedSize;
CalcSerializedSize();
string[] field_names = _addressesFieldNames;
if (hasAddress) {
output.WriteString(1, field_names[0], Address);
@ -992,6 +1002,13 @@ namespace Google.ProtocolBuffers.TestProtos {
get {
int size = memoizedSerializedSize;
if (size != -1) return size;
return CalcSerializedSize();
}
}
private int CalcSerializedSize() {
int size = memoizedSerializedSize;
if (size != -1) return size;
size = 0;
if (hasAddress) {
@ -1012,8 +1029,6 @@ namespace Google.ProtocolBuffers.TestProtos {
memoizedSerializedSize = size;
return size;
}
}
#region Lite runtime methods
public override int GetHashCode() {
int hash = GetType().GetHashCode();
@ -1428,7 +1443,7 @@ namespace Google.ProtocolBuffers.TestProtos {
}
public override void WriteTo(pb::ICodedOutputStream output) {
int size = SerializedSize;
CalcSerializedSize();
string[] field_names = _testInteropPersonLiteFieldNames;
pb::ExtendableMessageLite<TestInteropPersonLite, TestInteropPersonLite.Builder>.ExtensionWriter extensionWriter = CreateExtensionWriter(this);
if (hasName) {
@ -1457,6 +1472,13 @@ namespace Google.ProtocolBuffers.TestProtos {
get {
int size = memoizedSerializedSize;
if (size != -1) return size;
return CalcSerializedSize();
}
}
private int CalcSerializedSize() {
int size = memoizedSerializedSize;
if (size != -1) return size;
size = 0;
if (hasName) {
@ -1489,8 +1511,6 @@ namespace Google.ProtocolBuffers.TestProtos {
memoizedSerializedSize = size;
return size;
}
}
#region Lite runtime methods
public override int GetHashCode() {
int hash = GetType().GetHashCode();
@ -1960,7 +1980,7 @@ namespace Google.ProtocolBuffers.TestProtos {
}
public override void WriteTo(pb::ICodedOutputStream output) {
int size = SerializedSize;
CalcSerializedSize();
string[] field_names = _testInteropEmployeeIdLiteFieldNames;
if (hasNumber) {
output.WriteString(1, field_names[0], Number);
@ -1972,6 +1992,13 @@ namespace Google.ProtocolBuffers.TestProtos {
get {
int size = memoizedSerializedSize;
if (size != -1) return size;
return CalcSerializedSize();
}
}
private int CalcSerializedSize() {
int size = memoizedSerializedSize;
if (size != -1) return size;
size = 0;
if (hasNumber) {
@ -1980,8 +2007,6 @@ namespace Google.ProtocolBuffers.TestProtos {
memoizedSerializedSize = size;
return size;
}
}
#region Lite runtime methods
public override int GetHashCode() {
int hash = GetType().GetHashCode();
@ -2215,7 +2240,7 @@ namespace Google.ProtocolBuffers.TestProtos {
}
public override void WriteTo(pb::ICodedOutputStream output) {
int size = SerializedSize;
CalcSerializedSize();
string[] field_names = _testUnpackedExtensionsLiteFieldNames;
pb::ExtendableMessageLite<TestUnpackedExtensionsLite, TestUnpackedExtensionsLite.Builder>.ExtensionWriter extensionWriter = CreateExtensionWriter(this);
extensionWriter.WriteUntil(536870912, output);
@ -2226,14 +2251,19 @@ namespace Google.ProtocolBuffers.TestProtos {
get {
int size = memoizedSerializedSize;
if (size != -1) return size;
return CalcSerializedSize();
}
}
private int CalcSerializedSize() {
int size = memoizedSerializedSize;
if (size != -1) return size;
size = 0;
size += ExtensionsSerializedSize;
memoizedSerializedSize = size;
return size;
}
}
#region Lite runtime methods
public override int GetHashCode() {
int hash = GetType().GetHashCode();
@ -2615,7 +2645,7 @@ namespace Google.ProtocolBuffers.TestProtos {
}
public override void WriteTo(pb::ICodedOutputStream output) {
int size = SerializedSize;
CalcSerializedSize();
string[] field_names = _testUnpackedTypesLiteFieldNames;
if (unpackedInt32_.Count > 0) {
output.WriteInt32Array(90, field_names[6], unpackedInt32_);
@ -2666,6 +2696,13 @@ namespace Google.ProtocolBuffers.TestProtos {
get {
int size = memoizedSerializedSize;
if (size != -1) return size;
return CalcSerializedSize();
}
}
private int CalcSerializedSize() {
int size = memoizedSerializedSize;
if (size != -1) return size;
size = 0;
{
@ -2771,8 +2808,6 @@ namespace Google.ProtocolBuffers.TestProtos {
memoizedSerializedSize = size;
return size;
}
}
#region Lite runtime methods
public override int GetHashCode() {
int hash = GetType().GetHashCode();
@ -3635,7 +3670,7 @@ namespace Google.ProtocolBuffers.TestProtos {
}
public override void WriteTo(pb::ICodedOutputStream output) {
int size = SerializedSize;
CalcSerializedSize();
string[] field_names = _bucketOfBytesFieldNames;
if (hasValue) {
output.WriteBytes(1, field_names[0], Value);
@ -3647,6 +3682,13 @@ namespace Google.ProtocolBuffers.TestProtos {
get {
int size = memoizedSerializedSize;
if (size != -1) return size;
return CalcSerializedSize();
}
}
private int CalcSerializedSize() {
int size = memoizedSerializedSize;
if (size != -1) return size;
size = 0;
if (hasValue) {
@ -3655,8 +3697,6 @@ namespace Google.ProtocolBuffers.TestProtos {
memoizedSerializedSize = size;
return size;
}
}
#region Lite runtime methods
public override int GetHashCode() {
int hash = GetType().GetHashCode();
@ -3909,7 +3949,7 @@ namespace Google.ProtocolBuffers.TestProtos {
}
public override void WriteTo(pb::ICodedOutputStream output) {
int size = SerializedSize;
CalcSerializedSize();
string[] field_names = _bucketOfBytesExFieldNames;
if (hasValue) {
output.WriteBytes(1, field_names[0], Value);
@ -3924,6 +3964,13 @@ namespace Google.ProtocolBuffers.TestProtos {
get {
int size = memoizedSerializedSize;
if (size != -1) return size;
return CalcSerializedSize();
}
}
private int CalcSerializedSize() {
int size = memoizedSerializedSize;
if (size != -1) return size;
size = 0;
if (hasValue) {
@ -3935,8 +3982,6 @@ namespace Google.ProtocolBuffers.TestProtos {
memoizedSerializedSize = size;
return size;
}
}
#region Lite runtime methods
public override int GetHashCode() {
int hash = GetType().GetHashCode();

@ -70,7 +70,7 @@ namespace Google.ProtocolBuffers.TestProtos {
}
public override void WriteTo(pb::ICodedOutputStream output) {
int size = SerializedSize;
CalcSerializedSize();
string[] field_names = _importMessageLiteFieldNames;
if (hasD) {
output.WriteInt32(1, field_names[0], D);
@ -82,6 +82,13 @@ namespace Google.ProtocolBuffers.TestProtos {
get {
int size = memoizedSerializedSize;
if (size != -1) return size;
return CalcSerializedSize();
}
}
private int CalcSerializedSize() {
int size = memoizedSerializedSize;
if (size != -1) return size;
size = 0;
if (hasD) {
@ -90,8 +97,6 @@ namespace Google.ProtocolBuffers.TestProtos {
memoizedSerializedSize = size;
return size;
}
}
#region Lite runtime methods
public override int GetHashCode() {
int hash = GetType().GetHashCode();

@ -107,7 +107,7 @@ namespace Google.ProtocolBuffers.TestProtos {
}
public override void WriteTo(pb::ICodedOutputStream output) {
int size = SerializedSize;
CalcSerializedSize();
string[] field_names = _importMessageFieldNames;
if (hasD) {
output.WriteInt32(1, field_names[0], D);
@ -120,6 +120,13 @@ namespace Google.ProtocolBuffers.TestProtos {
get {
int size = memoizedSerializedSize;
if (size != -1) return size;
return CalcSerializedSize();
}
}
private int CalcSerializedSize() {
int size = memoizedSerializedSize;
if (size != -1) return size;
size = 0;
if (hasD) {
@ -129,8 +136,6 @@ namespace Google.ProtocolBuffers.TestProtos {
memoizedSerializedSize = size;
return size;
}
}
public static ImportMessage ParseFrom(pb::ByteString data) {
return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
}

@ -61,7 +61,7 @@ namespace Google.ProtocolBuffers.TestProtos {
}
public override void WriteTo(pb::ICodedOutputStream output) {
int size = SerializedSize;
CalcSerializedSize();
string[] field_names = _testLiteImportsNonliteFieldNames;
if (hasMessage) {
output.WriteMessage(1, field_names[0], Message);
@ -73,6 +73,13 @@ namespace Google.ProtocolBuffers.TestProtos {
get {
int size = memoizedSerializedSize;
if (size != -1) return size;
return CalcSerializedSize();
}
}
private int CalcSerializedSize() {
int size = memoizedSerializedSize;
if (size != -1) return size;
size = 0;
if (hasMessage) {
@ -81,8 +88,6 @@ namespace Google.ProtocolBuffers.TestProtos {
memoizedSerializedSize = size;
return size;
}
}
#region Lite runtime methods
public override int GetHashCode() {
int hash = GetType().GetHashCode();

@ -1110,7 +1110,7 @@ namespace Google.ProtocolBuffers.TestProtos {
}
public override void WriteTo(pb::ICodedOutputStream output) {
int size = SerializedSize;
CalcSerializedSize();
string[] field_names = _nestedMessageFieldNames;
if (hasBb) {
output.WriteInt32(1, field_names[0], Bb);
@ -1122,6 +1122,13 @@ namespace Google.ProtocolBuffers.TestProtos {
get {
int size = memoizedSerializedSize;
if (size != -1) return size;
return CalcSerializedSize();
}
}
private int CalcSerializedSize() {
int size = memoizedSerializedSize;
if (size != -1) return size;
size = 0;
if (hasBb) {
@ -1130,8 +1137,6 @@ namespace Google.ProtocolBuffers.TestProtos {
memoizedSerializedSize = size;
return size;
}
}
#region Lite runtime methods
public override int GetHashCode() {
int hash = GetType().GetHashCode();
@ -1371,7 +1376,7 @@ namespace Google.ProtocolBuffers.TestProtos {
}
public override void WriteTo(pb::ICodedOutputStream output) {
int size = SerializedSize;
CalcSerializedSize();
string[] field_names = _optionalGroupFieldNames;
if (hasA) {
output.WriteInt32(17, field_names[0], A);
@ -1383,6 +1388,13 @@ namespace Google.ProtocolBuffers.TestProtos {
get {
int size = memoizedSerializedSize;
if (size != -1) return size;
return CalcSerializedSize();
}
}
private int CalcSerializedSize() {
int size = memoizedSerializedSize;
if (size != -1) return size;
size = 0;
if (hasA) {
@ -1391,8 +1403,6 @@ namespace Google.ProtocolBuffers.TestProtos {
memoizedSerializedSize = size;
return size;
}
}
#region Lite runtime methods
public override int GetHashCode() {
int hash = GetType().GetHashCode();
@ -1632,7 +1642,7 @@ namespace Google.ProtocolBuffers.TestProtos {
}
public override void WriteTo(pb::ICodedOutputStream output) {
int size = SerializedSize;
CalcSerializedSize();
string[] field_names = _repeatedGroupFieldNames;
if (hasA) {
output.WriteInt32(47, field_names[0], A);
@ -1644,6 +1654,13 @@ namespace Google.ProtocolBuffers.TestProtos {
get {
int size = memoizedSerializedSize;
if (size != -1) return size;
return CalcSerializedSize();
}
}
private int CalcSerializedSize() {
int size = memoizedSerializedSize;
if (size != -1) return size;
size = 0;
if (hasA) {
@ -1652,8 +1669,6 @@ namespace Google.ProtocolBuffers.TestProtos {
memoizedSerializedSize = size;
return size;
}
}
#region Lite runtime methods
public override int GetHashCode() {
int hash = GetType().GetHashCode();
@ -2612,7 +2627,7 @@ namespace Google.ProtocolBuffers.TestProtos {
}
public override void WriteTo(pb::ICodedOutputStream output) {
int size = SerializedSize;
CalcSerializedSize();
string[] field_names = _testAllTypesLiteFieldNames;
if (hasOptionalInt32) {
output.WriteInt32(1, field_names[31], OptionalInt32);
@ -2825,6 +2840,13 @@ namespace Google.ProtocolBuffers.TestProtos {
get {
int size = memoizedSerializedSize;
if (size != -1) return size;
return CalcSerializedSize();
}
}
private int CalcSerializedSize() {
int size = memoizedSerializedSize;
if (size != -1) return size;
size = 0;
if (hasOptionalInt32) {
@ -3126,8 +3148,6 @@ namespace Google.ProtocolBuffers.TestProtos {
memoizedSerializedSize = size;
return size;
}
}
#region Lite runtime methods
public override int GetHashCode() {
int hash = GetType().GetHashCode();
@ -5964,7 +5984,7 @@ namespace Google.ProtocolBuffers.TestProtos {
}
public override void WriteTo(pb::ICodedOutputStream output) {
int size = SerializedSize;
CalcSerializedSize();
string[] field_names = _foreignMessageLiteFieldNames;
if (hasC) {
output.WriteInt32(1, field_names[0], C);
@ -5976,6 +5996,13 @@ namespace Google.ProtocolBuffers.TestProtos {
get {
int size = memoizedSerializedSize;
if (size != -1) return size;
return CalcSerializedSize();
}
}
private int CalcSerializedSize() {
int size = memoizedSerializedSize;
if (size != -1) return size;
size = 0;
if (hasC) {
@ -5984,8 +6011,6 @@ namespace Google.ProtocolBuffers.TestProtos {
memoizedSerializedSize = size;
return size;
}
}
#region Lite runtime methods
public override int GetHashCode() {
int hash = GetType().GetHashCode();
@ -6405,7 +6430,7 @@ namespace Google.ProtocolBuffers.TestProtos {
}
public override void WriteTo(pb::ICodedOutputStream output) {
int size = SerializedSize;
CalcSerializedSize();
string[] field_names = _testPackedTypesLiteFieldNames;
if (packedInt32_.Count > 0) {
output.WritePackedInt32Array(90, field_names[6], packedInt32MemoizedSerializedSize, packedInt32_);
@ -6456,6 +6481,13 @@ namespace Google.ProtocolBuffers.TestProtos {
get {
int size = memoizedSerializedSize;
if (size != -1) return size;
return CalcSerializedSize();
}
}
private int CalcSerializedSize() {
int size = memoizedSerializedSize;
if (size != -1) return size;
size = 0;
{
@ -6602,8 +6634,6 @@ namespace Google.ProtocolBuffers.TestProtos {
memoizedSerializedSize = size;
return size;
}
}
#region Lite runtime methods
public override int GetHashCode() {
int hash = GetType().GetHashCode();
@ -7455,7 +7485,7 @@ namespace Google.ProtocolBuffers.TestProtos {
}
public override void WriteTo(pb::ICodedOutputStream output) {
int size = SerializedSize;
CalcSerializedSize();
string[] field_names = _testAllExtensionsLiteFieldNames;
pb::ExtendableMessageLite<TestAllExtensionsLite, TestAllExtensionsLite.Builder>.ExtensionWriter extensionWriter = CreateExtensionWriter(this);
extensionWriter.WriteUntil(536870912, output);
@ -7466,14 +7496,19 @@ namespace Google.ProtocolBuffers.TestProtos {
get {
int size = memoizedSerializedSize;
if (size != -1) return size;
return CalcSerializedSize();
}
}
private int CalcSerializedSize() {
int size = memoizedSerializedSize;
if (size != -1) return size;
size = 0;
size += ExtensionsSerializedSize;
memoizedSerializedSize = size;
return size;
}
}
#region Lite runtime methods
public override int GetHashCode() {
int hash = GetType().GetHashCode();
@ -7687,7 +7722,7 @@ namespace Google.ProtocolBuffers.TestProtos {
}
public override void WriteTo(pb::ICodedOutputStream output) {
int size = SerializedSize;
CalcSerializedSize();
string[] field_names = _optionalGroupExtensionLiteFieldNames;
if (hasA) {
output.WriteInt32(17, field_names[0], A);
@ -7699,6 +7734,13 @@ namespace Google.ProtocolBuffers.TestProtos {
get {
int size = memoizedSerializedSize;
if (size != -1) return size;
return CalcSerializedSize();
}
}
private int CalcSerializedSize() {
int size = memoizedSerializedSize;
if (size != -1) return size;
size = 0;
if (hasA) {
@ -7707,8 +7749,6 @@ namespace Google.ProtocolBuffers.TestProtos {
memoizedSerializedSize = size;
return size;
}
}
#region Lite runtime methods
public override int GetHashCode() {
int hash = GetType().GetHashCode();
@ -7948,7 +7988,7 @@ namespace Google.ProtocolBuffers.TestProtos {
}
public override void WriteTo(pb::ICodedOutputStream output) {
int size = SerializedSize;
CalcSerializedSize();
string[] field_names = _repeatedGroupExtensionLiteFieldNames;
if (hasA) {
output.WriteInt32(47, field_names[0], A);
@ -7960,6 +8000,13 @@ namespace Google.ProtocolBuffers.TestProtos {
get {
int size = memoizedSerializedSize;
if (size != -1) return size;
return CalcSerializedSize();
}
}
private int CalcSerializedSize() {
int size = memoizedSerializedSize;
if (size != -1) return size;
size = 0;
if (hasA) {
@ -7968,8 +8015,6 @@ namespace Google.ProtocolBuffers.TestProtos {
memoizedSerializedSize = size;
return size;
}
}
#region Lite runtime methods
public override int GetHashCode() {
int hash = GetType().GetHashCode();
@ -8200,7 +8245,7 @@ namespace Google.ProtocolBuffers.TestProtos {
}
public override void WriteTo(pb::ICodedOutputStream output) {
int size = SerializedSize;
CalcSerializedSize();
string[] field_names = _testPackedExtensionsLiteFieldNames;
pb::ExtendableMessageLite<TestPackedExtensionsLite, TestPackedExtensionsLite.Builder>.ExtensionWriter extensionWriter = CreateExtensionWriter(this);
extensionWriter.WriteUntil(536870912, output);
@ -8211,14 +8256,19 @@ namespace Google.ProtocolBuffers.TestProtos {
get {
int size = memoizedSerializedSize;
if (size != -1) return size;
return CalcSerializedSize();
}
}
private int CalcSerializedSize() {
int size = memoizedSerializedSize;
if (size != -1) return size;
size = 0;
size += ExtensionsSerializedSize;
memoizedSerializedSize = size;
return size;
}
}
#region Lite runtime methods
public override int GetHashCode() {
int hash = GetType().GetHashCode();
@ -8424,7 +8474,7 @@ namespace Google.ProtocolBuffers.TestProtos {
}
public override void WriteTo(pb::ICodedOutputStream output) {
int size = SerializedSize;
CalcSerializedSize();
string[] field_names = _testNestedExtensionLiteFieldNames;
}
@ -8433,13 +8483,18 @@ namespace Google.ProtocolBuffers.TestProtos {
get {
int size = memoizedSerializedSize;
if (size != -1) return size;
return CalcSerializedSize();
}
}
private int CalcSerializedSize() {
int size = memoizedSerializedSize;
if (size != -1) return size;
size = 0;
memoizedSerializedSize = size;
return size;
}
}
#region Lite runtime methods
public override int GetHashCode() {
int hash = GetType().GetHashCode();
@ -8651,7 +8706,7 @@ namespace Google.ProtocolBuffers.TestProtos {
}
public override void WriteTo(pb::ICodedOutputStream output) {
int size = SerializedSize;
CalcSerializedSize();
string[] field_names = _testDeprecatedLiteFieldNames;
if (hasDeprecatedField) {
output.WriteInt32(1, field_names[0], DeprecatedField);
@ -8663,6 +8718,13 @@ namespace Google.ProtocolBuffers.TestProtos {
get {
int size = memoizedSerializedSize;
if (size != -1) return size;
return CalcSerializedSize();
}
}
private int CalcSerializedSize() {
int size = memoizedSerializedSize;
if (size != -1) return size;
size = 0;
if (hasDeprecatedField) {
@ -8671,8 +8733,6 @@ namespace Google.ProtocolBuffers.TestProtos {
memoizedSerializedSize = size;
return size;
}
}
#region Lite runtime methods
public override int GetHashCode() {
int hash = GetType().GetHashCode();

@ -63,7 +63,7 @@ namespace Google.ProtocolBuffers.TestProtos {
}
public override void WriteTo(pb::ICodedOutputStream output) {
int size = SerializedSize;
CalcSerializedSize();
string[] field_names = _searchRequestFieldNames;
if (criteria_.Count > 0) {
output.WriteStringArray(1, field_names[0], criteria_);
@ -75,6 +75,13 @@ namespace Google.ProtocolBuffers.TestProtos {
get {
int size = memoizedSerializedSize;
if (size != -1) return size;
return CalcSerializedSize();
}
}
private int CalcSerializedSize() {
int size = memoizedSerializedSize;
if (size != -1) return size;
size = 0;
{
@ -88,8 +95,6 @@ namespace Google.ProtocolBuffers.TestProtos {
memoizedSerializedSize = size;
return size;
}
}
#region Lite runtime methods
public override int GetHashCode() {
int hash = GetType().GetHashCode();
@ -377,7 +382,7 @@ namespace Google.ProtocolBuffers.TestProtos {
}
public override void WriteTo(pb::ICodedOutputStream output) {
int size = SerializedSize;
CalcSerializedSize();
string[] field_names = _resultItemFieldNames;
if (hasUrl) {
output.WriteString(1, field_names[1], Url);
@ -392,6 +397,13 @@ namespace Google.ProtocolBuffers.TestProtos {
get {
int size = memoizedSerializedSize;
if (size != -1) return size;
return CalcSerializedSize();
}
}
private int CalcSerializedSize() {
int size = memoizedSerializedSize;
if (size != -1) return size;
size = 0;
if (hasUrl) {
@ -403,8 +415,6 @@ namespace Google.ProtocolBuffers.TestProtos {
memoizedSerializedSize = size;
return size;
}
}
#region Lite runtime methods
public override int GetHashCode() {
int hash = GetType().GetHashCode();
@ -666,7 +676,7 @@ namespace Google.ProtocolBuffers.TestProtos {
}
public override void WriteTo(pb::ICodedOutputStream output) {
int size = SerializedSize;
CalcSerializedSize();
string[] field_names = _searchResponseFieldNames;
if (results_.Count > 0) {
output.WriteMessageArray(1, field_names[0], results_);
@ -678,6 +688,13 @@ namespace Google.ProtocolBuffers.TestProtos {
get {
int size = memoizedSerializedSize;
if (size != -1) return size;
return CalcSerializedSize();
}
}
private int CalcSerializedSize() {
int size = memoizedSerializedSize;
if (size != -1) return size;
size = 0;
foreach (global::Google.ProtocolBuffers.TestProtos.SearchResponse.Types.ResultItem element in ResultsList) {
@ -686,8 +703,6 @@ namespace Google.ProtocolBuffers.TestProtos {
memoizedSerializedSize = size;
return size;
}
}
#region Lite runtime methods
public override int GetHashCode() {
int hash = GetType().GetHashCode();
@ -969,7 +984,7 @@ namespace Google.ProtocolBuffers.TestProtos {
}
public override void WriteTo(pb::ICodedOutputStream output) {
int size = SerializedSize;
CalcSerializedSize();
string[] field_names = _refineSearchRequestFieldNames;
if (criteria_.Count > 0) {
output.WriteStringArray(1, field_names[0], criteria_);
@ -984,6 +999,13 @@ namespace Google.ProtocolBuffers.TestProtos {
get {
int size = memoizedSerializedSize;
if (size != -1) return size;
return CalcSerializedSize();
}
}
private int CalcSerializedSize() {
int size = memoizedSerializedSize;
if (size != -1) return size;
size = 0;
{
@ -1000,8 +1022,6 @@ namespace Google.ProtocolBuffers.TestProtos {
memoizedSerializedSize = size;
return size;
}
}
#region Lite runtime methods
public override int GetHashCode() {
int hash = GetType().GetHashCode();

Loading…
Cancel
Save