@ -1116,7 +1116,7 @@ namespace Google.ProtocolBuffers.TestProtos {
public override void WriteTo ( pb : : CodedOutputStream output ) {
int size = SerializedSize ;
if ( HasBb ) {
output . WriteInt32 ( 1 , Bb ) ;
output . WriteInt32 ( 1 , "bb" , Bb ) ;
}
}
@ -1331,7 +1331,7 @@ namespace Google.ProtocolBuffers.TestProtos {
public override void WriteTo ( pb : : CodedOutputStream output ) {
int size = SerializedSize ;
if ( HasA ) {
output . WriteInt32 ( 1 7 , A ) ;
output . WriteInt32 ( 1 7 , "a" , A ) ;
}
}
@ -1546,7 +1546,7 @@ namespace Google.ProtocolBuffers.TestProtos {
public override void WriteTo ( pb : : CodedOutputStream output ) {
int size = SerializedSize ;
if ( HasA ) {
output . WriteInt32 ( 4 7 , A ) ;
output . WriteInt32 ( 4 7 , "a" , A ) ;
}
}
@ -2481,248 +2481,208 @@ namespace Google.ProtocolBuffers.TestProtos {
public override void WriteTo ( pb : : CodedOutputStream output ) {
int size = SerializedSize ;
if ( HasOptionalInt32 ) {
output . WriteInt32 ( 1 , OptionalInt32 ) ;
output . WriteInt32 ( 1 , "optional_int32" , OptionalInt32 ) ;
}
if ( HasOptionalInt64 ) {
output . WriteInt64 ( 2 , OptionalInt64 ) ;
output . WriteInt64 ( 2 , "optional_int64" , OptionalInt64 ) ;
}
if ( HasOptionalUint32 ) {
output . WriteUInt32 ( 3 , OptionalUint32 ) ;
output . WriteUInt32 ( 3 , "optional_uint32" , OptionalUint32 ) ;
}
if ( HasOptionalUint64 ) {
output . WriteUInt64 ( 4 , OptionalUint64 ) ;
output . WriteUInt64 ( 4 , "optional_uint64" , OptionalUint64 ) ;
}
if ( HasOptionalSint32 ) {
output . WriteSInt32 ( 5 , OptionalSint32 ) ;
output . WriteSInt32 ( 5 , "optional_sint32" , OptionalSint32 ) ;
}
if ( HasOptionalSint64 ) {
output . WriteSInt64 ( 6 , OptionalSint64 ) ;
output . WriteSInt64 ( 6 , "optional_sint64" , OptionalSint64 ) ;
}
if ( HasOptionalFixed32 ) {
output . WriteFixed32 ( 7 , OptionalFixed32 ) ;
output . WriteFixed32 ( 7 , "optional_fixed32" , OptionalFixed32 ) ;
}
if ( HasOptionalFixed64 ) {
output . WriteFixed64 ( 8 , OptionalFixed64 ) ;
output . WriteFixed64 ( 8 , "optional_fixed64" , OptionalFixed64 ) ;
}
if ( HasOptionalSfixed32 ) {
output . WriteSFixed32 ( 9 , OptionalSfixed32 ) ;
output . WriteSFixed32 ( 9 , "optional_sfixed32" , OptionalSfixed32 ) ;
}
if ( HasOptionalSfixed64 ) {
output . WriteSFixed64 ( 1 0 , OptionalSfixed64 ) ;
output . WriteSFixed64 ( 1 0 , "optional_sfixed64" , OptionalSfixed64 ) ;
}
if ( HasOptionalFloat ) {
output . WriteFloat ( 1 1 , OptionalFloat ) ;
output . WriteFloat ( 1 1 , "optional_float" , OptionalFloat ) ;
}
if ( HasOptionalDouble ) {
output . WriteDouble ( 1 2 , OptionalDouble ) ;
output . WriteDouble ( 1 2 , "optional_double" , OptionalDouble ) ;
}
if ( HasOptionalBool ) {
output . WriteBool ( 1 3 , OptionalBool ) ;
output . WriteBool ( 1 3 , "optional_bool" , OptionalBool ) ;
}
if ( HasOptionalString ) {
output . WriteString ( 1 4 , OptionalString ) ;
output . WriteString ( 1 4 , "optional_string" , OptionalString ) ;
}
if ( HasOptionalBytes ) {
output . WriteBytes ( 1 5 , OptionalBytes ) ;
output . WriteBytes ( 1 5 , "optional_bytes" , OptionalBytes ) ;
}
if ( HasOptionalGroup ) {
output . WriteGroup ( 1 6 , OptionalGroup ) ;
output . WriteGroup ( 1 6 , "optionalgroup" , OptionalGroup ) ;
}
if ( HasOptionalNestedMessage ) {
output . WriteMessage ( 1 8 , OptionalNestedMessage ) ;
output . WriteMessage ( 1 8 , "optional_nested_message" , OptionalNestedMessage ) ;
}
if ( HasOptionalForeignMessage ) {
output . WriteMessage ( 1 9 , OptionalForeignMessage ) ;
output . WriteMessage ( 1 9 , "optional_foreign_message" , OptionalForeignMessage ) ;
}
if ( HasOptionalImportMessage ) {
output . WriteMessage ( 2 0 , OptionalImportMessage ) ;
output . WriteMessage ( 2 0 , "optional_import_message" , OptionalImportMessage ) ;
}
if ( HasOptionalNestedEnum ) {
output . WriteEnum ( 2 1 , ( int ) OptionalNestedEnum ) ;
output . WriteEnum ( 2 1 , "optional_nested_enum" , ( int ) OptionalNestedEnum , OptionalNestedEnum . ToString ( ) ) ;
}
if ( HasOptionalForeignEnum ) {
output . WriteEnum ( 2 2 , ( int ) OptionalForeignEnum ) ;
output . WriteEnum ( 2 2 , "optional_foreign_enum" , ( int ) OptionalForeignEnum , OptionalForeignEnum . ToString ( ) ) ;
}
if ( HasOptionalImportEnum ) {
output . WriteEnum ( 2 3 , ( int ) OptionalImportEnum ) ;
output . WriteEnum ( 2 3 , "optional_import_enum" , ( int ) OptionalImportEnum , OptionalImportEnum . ToString ( ) ) ;
}
if ( HasOptionalStringPiece ) {
output . WriteString ( 2 4 , OptionalStringPiece ) ;
output . WriteString ( 2 4 , "optional_string_piece" , OptionalStringPiece ) ;
}
if ( HasOptionalCord ) {
output . WriteString ( 2 5 , OptionalCord ) ;
output . WriteString ( 2 5 , "optional_cord" , OptionalCord ) ;
}
if ( repeatedInt32_ . Count > 0 ) {
foreach ( int element in repeatedInt32_ ) {
output . WriteInt32 ( 3 1 , element ) ;
}
output . WriteArray ( pbd : : FieldType . Int32 , 3 1 , "repeated_int32" , repeatedInt32_ ) ;
}
if ( repeatedInt64_ . Count > 0 ) {
foreach ( long element in repeatedInt64_ ) {
output . WriteInt64 ( 3 2 , element ) ;
}
output . WriteArray ( pbd : : FieldType . Int64 , 3 2 , "repeated_int64" , repeatedInt64_ ) ;
}
if ( repeatedUint32_ . Count > 0 ) {
foreach ( uint element in repeatedUint32_ ) {
output . WriteUInt32 ( 3 3 , element ) ;
}
output . WriteArray ( pbd : : FieldType . UInt32 , 3 3 , "repeated_uint32" , repeatedUint32_ ) ;
}
if ( repeatedUint64_ . Count > 0 ) {
foreach ( ulong element in repeatedUint64_ ) {
output . WriteUInt64 ( 3 4 , element ) ;
}
output . WriteArray ( pbd : : FieldType . UInt64 , 3 4 , "repeated_uint64" , repeatedUint64_ ) ;
}
if ( repeatedSint32_ . Count > 0 ) {
foreach ( int element in repeatedSint32_ ) {
output . WriteSInt32 ( 3 5 , element ) ;
}
output . WriteArray ( pbd : : FieldType . SInt32 , 3 5 , "repeated_sint32" , repeatedSint32_ ) ;
}
if ( repeatedSint64_ . Count > 0 ) {
foreach ( long element in repeatedSint64_ ) {
output . WriteSInt64 ( 3 6 , element ) ;
}
output . WriteArray ( pbd : : FieldType . SInt64 , 3 6 , "repeated_sint64" , repeatedSint64_ ) ;
}
if ( repeatedFixed32_ . Count > 0 ) {
foreach ( uint element in repeatedFixed32_ ) {
output . WriteFixed32 ( 3 7 , element ) ;
}
output . WriteArray ( pbd : : FieldType . Fixed32 , 3 7 , "repeated_fixed32" , repeatedFixed32_ ) ;
}
if ( repeatedFixed64_ . Count > 0 ) {
foreach ( ulong element in repeatedFixed64_ ) {
output . WriteFixed64 ( 3 8 , element ) ;
}
output . WriteArray ( pbd : : FieldType . Fixed64 , 3 8 , "repeated_fixed64" , repeatedFixed64_ ) ;
}
if ( repeatedSfixed32_ . Count > 0 ) {
foreach ( int element in repeatedSfixed32_ ) {
output . WriteSFixed32 ( 3 9 , element ) ;
}
output . WriteArray ( pbd : : FieldType . SFixed32 , 3 9 , "repeated_sfixed32" , repeatedSfixed32_ ) ;
}
if ( repeatedSfixed64_ . Count > 0 ) {
foreach ( long element in repeatedSfixed64_ ) {
output . WriteSFixed64 ( 4 0 , element ) ;
}
output . WriteArray ( pbd : : FieldType . SFixed64 , 4 0 , "repeated_sfixed64" , repeatedSfixed64_ ) ;
}
if ( repeatedFloat_ . Count > 0 ) {
foreach ( float element in repeatedFloat_ ) {
output . WriteFloat ( 4 1 , element ) ;
}
output . WriteArray ( pbd : : FieldType . Float , 4 1 , "repeated_float" , repeatedFloat_ ) ;
}
if ( repeatedDouble_ . Count > 0 ) {
foreach ( double element in repeatedDouble_ ) {
output . WriteDouble ( 4 2 , element ) ;
}
output . WriteArray ( pbd : : FieldType . Double , 4 2 , "repeated_double" , repeatedDouble_ ) ;
}
if ( repeatedBool_ . Count > 0 ) {
foreach ( bool element in repeatedBool_ ) {
output . WriteBool ( 4 3 , element ) ;
}
output . WriteArray ( pbd : : FieldType . Bool , 4 3 , "repeated_bool" , repeatedBool_ ) ;
}
if ( repeatedString_ . Count > 0 ) {
foreach ( string element in repeatedString_ ) {
output . WriteString ( 4 4 , element ) ;
}
output . WriteArray ( pbd : : FieldType . String , 4 4 , "repeated_string" , repeatedString_ ) ;
}
if ( repeatedBytes_ . Count > 0 ) {
foreach ( pb : : ByteString element in repeatedBytes_ ) {
output . WriteBytes ( 4 5 , element ) ;
}
output . WriteArray ( pbd : : FieldType . Bytes , 4 5 , "repeated_bytes" , repeatedBytes_ ) ;
}
foreach ( global :: Google . ProtocolBuffers . TestProtos . TestAllTypesLite . Types . RepeatedGroup element in RepeatedGroupList ) {
output . WriteGroup ( 4 6 , element ) ;
if ( repeatedGroup_ . Count > 0 ) {
output . WriteGroupArray ( 4 6 , "repeatedgroup" , repeatedGroup_ ) ;
}
foreach ( global :: Google . ProtocolBuffers . TestProtos . TestAllTypesLite . Types . NestedMessage element in RepeatedNestedMessageList ) {
output . WriteMessage ( 4 8 , element ) ;
if ( repeatedNestedMessage_ . Count > 0 ) {
output . WriteMessageArray ( 4 8 , "repeated_nested_message" , repeatedNestedMessage_ ) ;
}
foreach ( global :: Google . ProtocolBuffers . TestProtos . ForeignMessageLite element in RepeatedForeignMessageList ) {
output . WriteMessage ( 4 9 , element ) ;
if ( repeatedForeignMessage_ . Count > 0 ) {
output . WriteMessageArray ( 4 9 , "repeated_foreign_message" , repeatedForeignMessage_ ) ;
}
foreach ( global :: Google . ProtocolBuffers . TestProtos . ImportMessageLite element in RepeatedImportMessageList ) {
output . WriteMessage ( 5 0 , element ) ;
if ( repeatedImportMessage_ . Count > 0 ) {
output . WriteMessageArray ( 5 0 , "repeated_import_message" , repeatedImportMessage_ ) ;
}
if ( repeatedNestedEnum_ . Count > 0 ) {
foreach ( int element in repeatedNestedEnum_ ) {
output . WriteEnum ( 5 1 , element ) ;
}
output . WriteArray ( pbd : : FieldType . Enum , 5 1 , "repeated_nested_enum" , repeatedNestedEnum_ ) ;
}
if ( repeatedForeignEnum_ . Count > 0 ) {
foreach ( int element in repeatedForeignEnum_ ) {
output . WriteEnum ( 5 2 , element ) ;
}
output . WriteArray ( pbd : : FieldType . Enum , 5 2 , "repeated_foreign_enum" , repeatedForeignEnum_ ) ;
}
if ( repeatedImportEnum_ . Count > 0 ) {
foreach ( int element in repeatedImportEnum_ ) {
output . WriteEnum ( 5 3 , element ) ;
}
output . WriteArray ( pbd : : FieldType . Enum , 5 3 , "repeated_import_enum" , repeatedImportEnum_ ) ;
}
if ( repeatedStringPiece_ . Count > 0 ) {
foreach ( string element in repeatedStringPiece_ ) {
output . WriteString ( 5 4 , element ) ;
}
output . WriteArray ( pbd : : FieldType . String , 5 4 , "repeated_string_piece" , repeatedStringPiece_ ) ;
}
if ( repeatedCord_ . Count > 0 ) {
foreach ( string element in repeatedCord_ ) {
output . WriteString ( 5 5 , element ) ;
}
output . WriteArray ( pbd : : FieldType . String , 5 5 , "repeated_cord" , repeatedCord_ ) ;
}
if ( HasDefaultInt32 ) {
output . WriteInt32 ( 6 1 , DefaultInt32 ) ;
output . WriteInt32 ( 6 1 , "default_int32" , DefaultInt32 ) ;
}
if ( HasDefaultInt64 ) {
output . WriteInt64 ( 6 2 , DefaultInt64 ) ;
output . WriteInt64 ( 6 2 , "default_int64" , DefaultInt64 ) ;
}
if ( HasDefaultUint32 ) {
output . WriteUInt32 ( 6 3 , DefaultUint32 ) ;
output . WriteUInt32 ( 6 3 , "default_uint32" , DefaultUint32 ) ;
}
if ( HasDefaultUint64 ) {
output . WriteUInt64 ( 6 4 , DefaultUint64 ) ;
output . WriteUInt64 ( 6 4 , "default_uint64" , DefaultUint64 ) ;
}
if ( HasDefaultSint32 ) {
output . WriteSInt32 ( 6 5 , DefaultSint32 ) ;
output . WriteSInt32 ( 6 5 , "default_sint32" , DefaultSint32 ) ;
}
if ( HasDefaultSint64 ) {
output . WriteSInt64 ( 6 6 , DefaultSint64 ) ;
output . WriteSInt64 ( 6 6 , "default_sint64" , DefaultSint64 ) ;
}
if ( HasDefaultFixed32 ) {
output . WriteFixed32 ( 6 7 , DefaultFixed32 ) ;
output . WriteFixed32 ( 6 7 , "default_fixed32" , DefaultFixed32 ) ;
}
if ( HasDefaultFixed64 ) {
output . WriteFixed64 ( 6 8 , DefaultFixed64 ) ;
output . WriteFixed64 ( 6 8 , "default_fixed64" , DefaultFixed64 ) ;
}
if ( HasDefaultSfixed32 ) {
output . WriteSFixed32 ( 6 9 , DefaultSfixed32 ) ;
output . WriteSFixed32 ( 6 9 , "default_sfixed32" , DefaultSfixed32 ) ;
}
if ( HasDefaultSfixed64 ) {
output . WriteSFixed64 ( 7 0 , DefaultSfixed64 ) ;
output . WriteSFixed64 ( 7 0 , "default_sfixed64" , DefaultSfixed64 ) ;
}
if ( HasDefaultFloat ) {
output . WriteFloat ( 7 1 , DefaultFloat ) ;
output . WriteFloat ( 7 1 , "default_float" , DefaultFloat ) ;
}
if ( HasDefaultDouble ) {
output . WriteDouble ( 7 2 , DefaultDouble ) ;
output . WriteDouble ( 7 2 , "default_double" , DefaultDouble ) ;
}
if ( HasDefaultBool ) {
output . WriteBool ( 7 3 , DefaultBool ) ;
output . WriteBool ( 7 3 , "default_bool" , DefaultBool ) ;
}
if ( HasDefaultString ) {
output . WriteString ( 7 4 , DefaultString ) ;
output . WriteString ( 7 4 , "default_string" , DefaultString ) ;
}
if ( HasDefaultBytes ) {
output . WriteBytes ( 7 5 , DefaultBytes ) ;
output . WriteBytes ( 7 5 , "default_bytes" , DefaultBytes ) ;
}
if ( HasDefaultNestedEnum ) {
output . WriteEnum ( 8 1 , ( int ) DefaultNestedEnum ) ;
output . WriteEnum ( 8 1 , "default_nested_enum" , ( int ) DefaultNestedEnum , DefaultNestedEnum . ToString ( ) ) ;
}
if ( HasDefaultForeignEnum ) {
output . WriteEnum ( 8 2 , ( int ) DefaultForeignEnum ) ;
output . WriteEnum ( 8 2 , "default_foreign_enum" , ( int ) DefaultForeignEnum , DefaultForeignEnum . ToString ( ) ) ;
}
if ( HasDefaultImportEnum ) {
output . WriteEnum ( 8 3 , ( int ) DefaultImportEnum ) ;
output . WriteEnum ( 8 3 , "default_import_enum" , ( int ) DefaultImportEnum , DefaultImportEnum . ToString ( ) ) ;
}
if ( HasDefaultStringPiece ) {
output . WriteString ( 8 4 , DefaultStringPiece ) ;
output . WriteString ( 8 4 , "default_string_piece" , DefaultStringPiece ) ;
}
if ( HasDefaultCord ) {
output . WriteString ( 8 5 , DefaultCord ) ;
output . WriteString ( 8 5 , "default_cord" , DefaultCord ) ;
}
}
@ -5630,7 +5590,7 @@ namespace Google.ProtocolBuffers.TestProtos {
public override void WriteTo ( pb : : CodedOutputStream output ) {
int size = SerializedSize ;
if ( HasC ) {
output . WriteInt32 ( 1 , C ) ;
output . WriteInt32 ( 1 , "c" , C ) ;
}
}
@ -6025,102 +5985,46 @@ namespace Google.ProtocolBuffers.TestProtos {
public override void WriteTo ( pb : : CodedOutputStream output ) {
int size = SerializedSize ;
if ( packedInt32_ . Count > 0 ) {
output . WriteRawVarint32 ( 7 2 2 ) ;
output . WriteRawVarint32 ( ( uint ) packedInt32MemoizedSerializedSize ) ;
foreach ( int element in packedInt32_ ) {
output . WriteInt32NoTag ( element ) ;
}
output . WritePackedArray ( pbd : : FieldType . Int32 , 9 0 , "packed_int32" , packedInt32MemoizedSerializedSize , packedInt32_ ) ;
}
if ( packedInt64_ . Count > 0 ) {
output . WriteRawVarint32 ( 7 3 0 ) ;
output . WriteRawVarint32 ( ( uint ) packedInt64MemoizedSerializedSize ) ;
foreach ( long element in packedInt64_ ) {
output . WriteInt64NoTag ( element ) ;
}
output . WritePackedArray ( pbd : : FieldType . Int64 , 9 1 , "packed_int64" , packedInt64MemoizedSerializedSize , packedInt64_ ) ;
}
if ( packedUint32_ . Count > 0 ) {
output . WriteRawVarint32 ( 7 3 8 ) ;
output . WriteRawVarint32 ( ( uint ) packedUint32MemoizedSerializedSize ) ;
foreach ( uint element in packedUint32_ ) {
output . WriteUInt32NoTag ( element ) ;
}
output . WritePackedArray ( pbd : : FieldType . UInt32 , 9 2 , "packed_uint32" , packedUint32MemoizedSerializedSize , packedUint32_ ) ;
}
if ( packedUint64_ . Count > 0 ) {
output . WriteRawVarint32 ( 7 4 6 ) ;
output . WriteRawVarint32 ( ( uint ) packedUint64MemoizedSerializedSize ) ;
foreach ( ulong element in packedUint64_ ) {
output . WriteUInt64NoTag ( element ) ;
}
output . WritePackedArray ( pbd : : FieldType . UInt64 , 9 3 , "packed_uint64" , packedUint64MemoizedSerializedSize , packedUint64_ ) ;
}
if ( packedSint32_ . Count > 0 ) {
output . WriteRawVarint32 ( 7 5 4 ) ;
output . WriteRawVarint32 ( ( uint ) packedSint32MemoizedSerializedSize ) ;
foreach ( int element in packedSint32_ ) {
output . WriteSInt32NoTag ( element ) ;
}
output . WritePackedArray ( pbd : : FieldType . SInt32 , 9 4 , "packed_sint32" , packedSint32MemoizedSerializedSize , packedSint32_ ) ;
}
if ( packedSint64_ . Count > 0 ) {
output . WriteRawVarint32 ( 7 6 2 ) ;
output . WriteRawVarint32 ( ( uint ) packedSint64MemoizedSerializedSize ) ;
foreach ( long element in packedSint64_ ) {
output . WriteSInt64NoTag ( element ) ;
}
output . WritePackedArray ( pbd : : FieldType . SInt64 , 9 5 , "packed_sint64" , packedSint64MemoizedSerializedSize , packedSint64_ ) ;
}
if ( packedFixed32_ . Count > 0 ) {
output . WriteRawVarint32 ( 7 7 0 ) ;
output . WriteRawVarint32 ( ( uint ) packedFixed32MemoizedSerializedSize ) ;
foreach ( uint element in packedFixed32_ ) {
output . WriteFixed32NoTag ( element ) ;
}
output . WritePackedArray ( pbd : : FieldType . Fixed32 , 9 6 , "packed_fixed32" , packedFixed32MemoizedSerializedSize , packedFixed32_ ) ;
}
if ( packedFixed64_ . Count > 0 ) {
output . WriteRawVarint32 ( 7 7 8 ) ;
output . WriteRawVarint32 ( ( uint ) packedFixed64MemoizedSerializedSize ) ;
foreach ( ulong element in packedFixed64_ ) {
output . WriteFixed64NoTag ( element ) ;
}
output . WritePackedArray ( pbd : : FieldType . Fixed64 , 9 7 , "packed_fixed64" , packedFixed64MemoizedSerializedSize , packedFixed64_ ) ;
}
if ( packedSfixed32_ . Count > 0 ) {
output . WriteRawVarint32 ( 7 8 6 ) ;
output . WriteRawVarint32 ( ( uint ) packedSfixed32MemoizedSerializedSize ) ;
foreach ( int element in packedSfixed32_ ) {
output . WriteSFixed32NoTag ( element ) ;
}
output . WritePackedArray ( pbd : : FieldType . SFixed32 , 9 8 , "packed_sfixed32" , packedSfixed32MemoizedSerializedSize , packedSfixed32_ ) ;
}
if ( packedSfixed64_ . Count > 0 ) {
output . WriteRawVarint32 ( 7 9 4 ) ;
output . WriteRawVarint32 ( ( uint ) packedSfixed64MemoizedSerializedSize ) ;
foreach ( long element in packedSfixed64_ ) {
output . WriteSFixed64NoTag ( element ) ;
}
output . WritePackedArray ( pbd : : FieldType . SFixed64 , 9 9 , "packed_sfixed64" , packedSfixed64MemoizedSerializedSize , packedSfixed64_ ) ;
}
if ( packedFloat_ . Count > 0 ) {
output . WriteRawVarint32 ( 8 0 2 ) ;
output . WriteRawVarint32 ( ( uint ) packedFloatMemoizedSerializedSize ) ;
foreach ( float element in packedFloat_ ) {
output . WriteFloatNoTag ( element ) ;
}
output . WritePackedArray ( pbd : : FieldType . Float , 1 0 0 , "packed_float" , packedFloatMemoizedSerializedSize , packedFloat_ ) ;
}
if ( packedDouble_ . Count > 0 ) {
output . WriteRawVarint32 ( 8 1 0 ) ;
output . WriteRawVarint32 ( ( uint ) packedDoubleMemoizedSerializedSize ) ;
foreach ( double element in packedDouble_ ) {
output . WriteDoubleNoTag ( element ) ;
}
output . WritePackedArray ( pbd : : FieldType . Double , 1 0 1 , "packed_double" , packedDoubleMemoizedSerializedSize , packedDouble_ ) ;
}
if ( packedBool_ . Count > 0 ) {
output . WriteRawVarint32 ( 8 1 8 ) ;
output . WriteRawVarint32 ( ( uint ) packedBoolMemoizedSerializedSize ) ;
foreach ( bool element in packedBool_ ) {
output . WriteBoolNoTag ( element ) ;
}
output . WritePackedArray ( pbd : : FieldType . Bool , 1 0 2 , "packed_bool" , packedBoolMemoizedSerializedSize , packedBool_ ) ;
}
if ( packedEnum_ . Count > 0 ) {
output . WriteRawVarint32 ( 8 2 6 ) ;
output . WriteRawVarint32 ( ( uint ) packedEnumMemoizedSerializedSize ) ;
foreach ( int element in packedEnum_ ) {
output . WriteEnumNoTag ( element ) ;
}
output . WritePackedArray ( pbd : : FieldType . Enum , 1 0 3 , "packed_enum" , packedEnumMemoizedSerializedSize , packedEnum_ ) ;
}
}
@ -7278,7 +7182,7 @@ namespace Google.ProtocolBuffers.TestProtos {
public override void WriteTo ( pb : : CodedOutputStream output ) {
int size = SerializedSize ;
if ( HasA ) {
output . WriteInt32 ( 1 7 , A ) ;
output . WriteInt32 ( 1 7 , "a" , A ) ;
}
}
@ -7493,7 +7397,7 @@ namespace Google.ProtocolBuffers.TestProtos {
public override void WriteTo ( pb : : CodedOutputStream output ) {
int size = SerializedSize ;
if ( HasA ) {
output . WriteInt32 ( 4 7 , A ) ;
output . WriteInt32 ( 4 7 , "a" , A ) ;
}
}
@ -8060,7 +7964,7 @@ namespace Google.ProtocolBuffers.TestProtos {
public override void WriteTo ( pb : : CodedOutputStream output ) {
int size = SerializedSize ;
if ( HasDeprecatedField ) {
output . WriteInt32 ( 1 , DeprecatedField ) ;
output . WriteInt32 ( 1 , "deprecated_field" , DeprecatedField ) ;
}
}