@ -257,7 +257,11 @@ namespace UnitTest.Issues.TestProtos {
/// A test message with custom options at all possible locations (and also some
/// regular options, to make sure they interact nicely).
/// </summary>
public sealed partial class TestMessageWithCustomOptions : pb : : IMessage < TestMessageWithCustomOptions > , pb : : IBufferMessage {
public sealed partial class TestMessageWithCustomOptions : pb : : IMessage < TestMessageWithCustomOptions >
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
, pb : : IBufferMessage
# endif
{
private static readonly pb : : MessageParser < TestMessageWithCustomOptions > _ parser = new pb : : MessageParser < TestMessageWithCustomOptions > ( ( ) = > new TestMessageWithCustomOptions ( ) ) ;
private pb : : UnknownFieldSet _ unknownFields ;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
@ -422,9 +426,29 @@ namespace UnitTest.Issues.TestProtos {
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public void MergeFrom ( pb : : CodedInputStream input ) {
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
input . ReadRawMessage ( this ) ;
# else
uint tag ;
while ( ( tag = input . ReadTag ( ) ) ! = 0 ) {
switch ( tag ) {
default :
_ unknownFields = pb : : UnknownFieldSet . MergeFieldFrom ( _ unknownFields , input ) ;
break ;
case 1 0 : {
Field1 = input . ReadString ( ) ;
break ;
}
case 1 6 : {
OneofField = input . ReadInt32 ( ) ;
break ;
}
}
}
# endif
}
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
void pb : : IBufferMessage . InternalMergeFrom ( ref pb : : ParseContext input ) {
uint tag ;
@ -444,6 +468,7 @@ namespace UnitTest.Issues.TestProtos {
}
}
}
# endif
#region Nested types
/// <summary>Container for nested types declared in the TestMessageWithCustomOptions message type.</summary>
@ -464,7 +489,11 @@ namespace UnitTest.Issues.TestProtos {
/// A test RPC service with custom options at all possible locations (and also
/// some regular options, to make sure they interact nicely).
/// </summary>
public sealed partial class CustomOptionFooRequest : pb : : IMessage < CustomOptionFooRequest > , pb : : IBufferMessage {
public sealed partial class CustomOptionFooRequest : pb : : IMessage < CustomOptionFooRequest >
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
, pb : : IBufferMessage
# endif
{
private static readonly pb : : MessageParser < CustomOptionFooRequest > _ parser = new pb : : MessageParser < CustomOptionFooRequest > ( ( ) = > new CustomOptionFooRequest ( ) ) ;
private pb : : UnknownFieldSet _ unknownFields ;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
@ -553,9 +582,21 @@ namespace UnitTest.Issues.TestProtos {
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public void MergeFrom ( pb : : CodedInputStream input ) {
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
input . ReadRawMessage ( this ) ;
# else
uint tag ;
while ( ( tag = input . ReadTag ( ) ) ! = 0 ) {
switch ( tag ) {
default :
_ unknownFields = pb : : UnknownFieldSet . MergeFieldFrom ( _ unknownFields , input ) ;
break ;
}
}
# endif
}
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
void pb : : IBufferMessage . InternalMergeFrom ( ref pb : : ParseContext input ) {
uint tag ;
@ -567,10 +608,15 @@ namespace UnitTest.Issues.TestProtos {
}
}
}
# endif
}
public sealed partial class CustomOptionFooResponse : pb : : IMessage < CustomOptionFooResponse > , pb : : IBufferMessage {
public sealed partial class CustomOptionFooResponse : pb : : IMessage < CustomOptionFooResponse >
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
, pb : : IBufferMessage
# endif
{
private static readonly pb : : MessageParser < CustomOptionFooResponse > _ parser = new pb : : MessageParser < CustomOptionFooResponse > ( ( ) = > new CustomOptionFooResponse ( ) ) ;
private pb : : UnknownFieldSet _ unknownFields ;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
@ -659,9 +705,21 @@ namespace UnitTest.Issues.TestProtos {
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public void MergeFrom ( pb : : CodedInputStream input ) {
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
input . ReadRawMessage ( this ) ;
# else
uint tag ;
while ( ( tag = input . ReadTag ( ) ) ! = 0 ) {
switch ( tag ) {
default :
_ unknownFields = pb : : UnknownFieldSet . MergeFieldFrom ( _ unknownFields , input ) ;
break ;
}
}
# endif
}
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
void pb : : IBufferMessage . InternalMergeFrom ( ref pb : : ParseContext input ) {
uint tag ;
@ -673,10 +731,15 @@ namespace UnitTest.Issues.TestProtos {
}
}
}
# endif
}
public sealed partial class CustomOptionFooClientMessage : pb : : IMessage < CustomOptionFooClientMessage > , pb : : IBufferMessage {
public sealed partial class CustomOptionFooClientMessage : pb : : IMessage < CustomOptionFooClientMessage >
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
, pb : : IBufferMessage
# endif
{
private static readonly pb : : MessageParser < CustomOptionFooClientMessage > _ parser = new pb : : MessageParser < CustomOptionFooClientMessage > ( ( ) = > new CustomOptionFooClientMessage ( ) ) ;
private pb : : UnknownFieldSet _ unknownFields ;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
@ -765,9 +828,21 @@ namespace UnitTest.Issues.TestProtos {
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public void MergeFrom ( pb : : CodedInputStream input ) {
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
input . ReadRawMessage ( this ) ;
# else
uint tag ;
while ( ( tag = input . ReadTag ( ) ) ! = 0 ) {
switch ( tag ) {
default :
_ unknownFields = pb : : UnknownFieldSet . MergeFieldFrom ( _ unknownFields , input ) ;
break ;
}
}
# endif
}
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
void pb : : IBufferMessage . InternalMergeFrom ( ref pb : : ParseContext input ) {
uint tag ;
@ -779,10 +854,15 @@ namespace UnitTest.Issues.TestProtos {
}
}
}
# endif
}
public sealed partial class CustomOptionFooServerMessage : pb : : IMessage < CustomOptionFooServerMessage > , pb : : IBufferMessage {
public sealed partial class CustomOptionFooServerMessage : pb : : IMessage < CustomOptionFooServerMessage >
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
, pb : : IBufferMessage
# endif
{
private static readonly pb : : MessageParser < CustomOptionFooServerMessage > _ parser = new pb : : MessageParser < CustomOptionFooServerMessage > ( ( ) = > new CustomOptionFooServerMessage ( ) ) ;
private pb : : UnknownFieldSet _ unknownFields ;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
@ -871,9 +951,21 @@ namespace UnitTest.Issues.TestProtos {
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public void MergeFrom ( pb : : CodedInputStream input ) {
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
input . ReadRawMessage ( this ) ;
# else
uint tag ;
while ( ( tag = input . ReadTag ( ) ) ! = 0 ) {
switch ( tag ) {
default :
_ unknownFields = pb : : UnknownFieldSet . MergeFieldFrom ( _ unknownFields , input ) ;
break ;
}
}
# endif
}
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
void pb : : IBufferMessage . InternalMergeFrom ( ref pb : : ParseContext input ) {
uint tag ;
@ -885,10 +977,15 @@ namespace UnitTest.Issues.TestProtos {
}
}
}
# endif
}
public sealed partial class DummyMessageContainingEnum : pb : : IMessage < DummyMessageContainingEnum > , pb : : IBufferMessage {
public sealed partial class DummyMessageContainingEnum : pb : : IMessage < DummyMessageContainingEnum >
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
, pb : : IBufferMessage
# endif
{
private static readonly pb : : MessageParser < DummyMessageContainingEnum > _ parser = new pb : : MessageParser < DummyMessageContainingEnum > ( ( ) = > new DummyMessageContainingEnum ( ) ) ;
private pb : : UnknownFieldSet _ unknownFields ;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
@ -977,9 +1074,21 @@ namespace UnitTest.Issues.TestProtos {
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public void MergeFrom ( pb : : CodedInputStream input ) {
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
input . ReadRawMessage ( this ) ;
# else
uint tag ;
while ( ( tag = input . ReadTag ( ) ) ! = 0 ) {
switch ( tag ) {
default :
_ unknownFields = pb : : UnknownFieldSet . MergeFieldFrom ( _ unknownFields , input ) ;
break ;
}
}
# endif
}
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
void pb : : IBufferMessage . InternalMergeFrom ( ref pb : : ParseContext input ) {
uint tag ;
@ -991,6 +1100,7 @@ namespace UnitTest.Issues.TestProtos {
}
}
}
# endif
#region Nested types
/// <summary>Container for nested types declared in the DummyMessageContainingEnum message type.</summary>
@ -1007,7 +1117,11 @@ namespace UnitTest.Issues.TestProtos {
}
public sealed partial class DummyMessageInvalidAsOptionType : pb : : IMessage < DummyMessageInvalidAsOptionType > , pb : : IBufferMessage {
public sealed partial class DummyMessageInvalidAsOptionType : pb : : IMessage < DummyMessageInvalidAsOptionType >
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
, pb : : IBufferMessage
# endif
{
private static readonly pb : : MessageParser < DummyMessageInvalidAsOptionType > _ parser = new pb : : MessageParser < DummyMessageInvalidAsOptionType > ( ( ) = > new DummyMessageInvalidAsOptionType ( ) ) ;
private pb : : UnknownFieldSet _ unknownFields ;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
@ -1096,9 +1210,21 @@ namespace UnitTest.Issues.TestProtos {
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public void MergeFrom ( pb : : CodedInputStream input ) {
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
input . ReadRawMessage ( this ) ;
# else
uint tag ;
while ( ( tag = input . ReadTag ( ) ) ! = 0 ) {
switch ( tag ) {
default :
_ unknownFields = pb : : UnknownFieldSet . MergeFieldFrom ( _ unknownFields , input ) ;
break ;
}
}
# endif
}
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
void pb : : IBufferMessage . InternalMergeFrom ( ref pb : : ParseContext input ) {
uint tag ;
@ -1110,10 +1236,15 @@ namespace UnitTest.Issues.TestProtos {
}
}
}
# endif
}
public sealed partial class CustomOptionMinIntegerValues : pb : : IMessage < CustomOptionMinIntegerValues > , pb : : IBufferMessage {
public sealed partial class CustomOptionMinIntegerValues : pb : : IMessage < CustomOptionMinIntegerValues >
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
, pb : : IBufferMessage
# endif
{
private static readonly pb : : MessageParser < CustomOptionMinIntegerValues > _ parser = new pb : : MessageParser < CustomOptionMinIntegerValues > ( ( ) = > new CustomOptionMinIntegerValues ( ) ) ;
private pb : : UnknownFieldSet _ unknownFields ;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
@ -1202,9 +1333,21 @@ namespace UnitTest.Issues.TestProtos {
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public void MergeFrom ( pb : : CodedInputStream input ) {
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
input . ReadRawMessage ( this ) ;
# else
uint tag ;
while ( ( tag = input . ReadTag ( ) ) ! = 0 ) {
switch ( tag ) {
default :
_ unknownFields = pb : : UnknownFieldSet . MergeFieldFrom ( _ unknownFields , input ) ;
break ;
}
}
# endif
}
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
void pb : : IBufferMessage . InternalMergeFrom ( ref pb : : ParseContext input ) {
uint tag ;
@ -1216,10 +1359,15 @@ namespace UnitTest.Issues.TestProtos {
}
}
}
# endif
}
public sealed partial class CustomOptionMaxIntegerValues : pb : : IMessage < CustomOptionMaxIntegerValues > , pb : : IBufferMessage {
public sealed partial class CustomOptionMaxIntegerValues : pb : : IMessage < CustomOptionMaxIntegerValues >
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
, pb : : IBufferMessage
# endif
{
private static readonly pb : : MessageParser < CustomOptionMaxIntegerValues > _ parser = new pb : : MessageParser < CustomOptionMaxIntegerValues > ( ( ) = > new CustomOptionMaxIntegerValues ( ) ) ;
private pb : : UnknownFieldSet _ unknownFields ;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
@ -1308,9 +1456,21 @@ namespace UnitTest.Issues.TestProtos {
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public void MergeFrom ( pb : : CodedInputStream input ) {
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
input . ReadRawMessage ( this ) ;
# else
uint tag ;
while ( ( tag = input . ReadTag ( ) ) ! = 0 ) {
switch ( tag ) {
default :
_ unknownFields = pb : : UnknownFieldSet . MergeFieldFrom ( _ unknownFields , input ) ;
break ;
}
}
# endif
}
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
void pb : : IBufferMessage . InternalMergeFrom ( ref pb : : ParseContext input ) {
uint tag ;
@ -1322,10 +1482,15 @@ namespace UnitTest.Issues.TestProtos {
}
}
}
# endif
}
public sealed partial class CustomOptionOtherValues : pb : : IMessage < CustomOptionOtherValues > , pb : : IBufferMessage {
public sealed partial class CustomOptionOtherValues : pb : : IMessage < CustomOptionOtherValues >
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
, pb : : IBufferMessage
# endif
{
private static readonly pb : : MessageParser < CustomOptionOtherValues > _ parser = new pb : : MessageParser < CustomOptionOtherValues > ( ( ) = > new CustomOptionOtherValues ( ) ) ;
private pb : : UnknownFieldSet _ unknownFields ;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
@ -1414,9 +1579,21 @@ namespace UnitTest.Issues.TestProtos {
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public void MergeFrom ( pb : : CodedInputStream input ) {
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
input . ReadRawMessage ( this ) ;
# else
uint tag ;
while ( ( tag = input . ReadTag ( ) ) ! = 0 ) {
switch ( tag ) {
default :
_ unknownFields = pb : : UnknownFieldSet . MergeFieldFrom ( _ unknownFields , input ) ;
break ;
}
}
# endif
}
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
void pb : : IBufferMessage . InternalMergeFrom ( ref pb : : ParseContext input ) {
uint tag ;
@ -1428,10 +1605,15 @@ namespace UnitTest.Issues.TestProtos {
}
}
}
# endif
}
public sealed partial class SettingRealsFromPositiveInts : pb : : IMessage < SettingRealsFromPositiveInts > , pb : : IBufferMessage {
public sealed partial class SettingRealsFromPositiveInts : pb : : IMessage < SettingRealsFromPositiveInts >
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
, pb : : IBufferMessage
# endif
{
private static readonly pb : : MessageParser < SettingRealsFromPositiveInts > _ parser = new pb : : MessageParser < SettingRealsFromPositiveInts > ( ( ) = > new SettingRealsFromPositiveInts ( ) ) ;
private pb : : UnknownFieldSet _ unknownFields ;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
@ -1520,9 +1702,21 @@ namespace UnitTest.Issues.TestProtos {
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public void MergeFrom ( pb : : CodedInputStream input ) {
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
input . ReadRawMessage ( this ) ;
# else
uint tag ;
while ( ( tag = input . ReadTag ( ) ) ! = 0 ) {
switch ( tag ) {
default :
_ unknownFields = pb : : UnknownFieldSet . MergeFieldFrom ( _ unknownFields , input ) ;
break ;
}
}
# endif
}
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
void pb : : IBufferMessage . InternalMergeFrom ( ref pb : : ParseContext input ) {
uint tag ;
@ -1534,10 +1728,15 @@ namespace UnitTest.Issues.TestProtos {
}
}
}
# endif
}
public sealed partial class SettingRealsFromNegativeInts : pb : : IMessage < SettingRealsFromNegativeInts > , pb : : IBufferMessage {
public sealed partial class SettingRealsFromNegativeInts : pb : : IMessage < SettingRealsFromNegativeInts >
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
, pb : : IBufferMessage
# endif
{
private static readonly pb : : MessageParser < SettingRealsFromNegativeInts > _ parser = new pb : : MessageParser < SettingRealsFromNegativeInts > ( ( ) = > new SettingRealsFromNegativeInts ( ) ) ;
private pb : : UnknownFieldSet _ unknownFields ;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
@ -1626,9 +1825,21 @@ namespace UnitTest.Issues.TestProtos {
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public void MergeFrom ( pb : : CodedInputStream input ) {
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
input . ReadRawMessage ( this ) ;
# else
uint tag ;
while ( ( tag = input . ReadTag ( ) ) ! = 0 ) {
switch ( tag ) {
default :
_ unknownFields = pb : : UnknownFieldSet . MergeFieldFrom ( _ unknownFields , input ) ;
break ;
}
}
# endif
}
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
void pb : : IBufferMessage . InternalMergeFrom ( ref pb : : ParseContext input ) {
uint tag ;
@ -1640,10 +1851,15 @@ namespace UnitTest.Issues.TestProtos {
}
}
}
# endif
}
public sealed partial class ComplexOptionType1 : pb : : IMessage < ComplexOptionType1 > , pb : : IBufferMessage {
public sealed partial class ComplexOptionType1 : pb : : IMessage < ComplexOptionType1 >
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
, pb : : IBufferMessage
# endif
{
private static readonly pb : : MessageParser < ComplexOptionType1 > _ parser = new pb : : MessageParser < ComplexOptionType1 > ( ( ) = > new ComplexOptionType1 ( ) ) ;
private pb : : UnknownFieldSet _ unknownFields ;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
@ -1820,9 +2036,38 @@ namespace UnitTest.Issues.TestProtos {
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public void MergeFrom ( pb : : CodedInputStream input ) {
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
input . ReadRawMessage ( this ) ;
# else
uint tag ;
while ( ( tag = input . ReadTag ( ) ) ! = 0 ) {
switch ( tag ) {
default :
_ unknownFields = pb : : UnknownFieldSet . MergeFieldFrom ( _ unknownFields , input ) ;
break ;
case 8 : {
Foo = input . ReadInt32 ( ) ;
break ;
}
case 1 6 : {
Foo2 = input . ReadInt32 ( ) ;
break ;
}
case 2 4 : {
Foo3 = input . ReadInt32 ( ) ;
break ;
}
case 3 4 :
case 3 2 : {
foo4_ . AddEntriesFrom ( input , _ repeated_foo4_codec ) ;
break ;
}
}
}
# endif
}
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
void pb : : IBufferMessage . InternalMergeFrom ( ref pb : : ParseContext input ) {
uint tag ;
@ -1851,10 +2096,15 @@ namespace UnitTest.Issues.TestProtos {
}
}
}
# endif
}
public sealed partial class ComplexOptionType2 : pb : : IMessage < ComplexOptionType2 > , pb : : IBufferMessage {
public sealed partial class ComplexOptionType2 : pb : : IMessage < ComplexOptionType2 >
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
, pb : : IBufferMessage
# endif
{
private static readonly pb : : MessageParser < ComplexOptionType2 > _ parser = new pb : : MessageParser < ComplexOptionType2 > ( ( ) = > new ComplexOptionType2 ( ) ) ;
private pb : : UnknownFieldSet _ unknownFields ;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
@ -2037,9 +2287,43 @@ namespace UnitTest.Issues.TestProtos {
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public void MergeFrom ( pb : : CodedInputStream input ) {
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
input . ReadRawMessage ( this ) ;
# else
uint tag ;
while ( ( tag = input . ReadTag ( ) ) ! = 0 ) {
switch ( tag ) {
default :
_ unknownFields = pb : : UnknownFieldSet . MergeFieldFrom ( _ unknownFields , input ) ;
break ;
case 1 0 : {
if ( bar_ = = null ) {
Bar = new global :: UnitTest . Issues . TestProtos . ComplexOptionType1 ( ) ;
}
input . ReadMessage ( Bar ) ;
break ;
}
case 1 6 : {
Baz = input . ReadInt32 ( ) ;
break ;
}
case 2 6 : {
if ( fred_ = = null ) {
Fred = new global :: UnitTest . Issues . TestProtos . ComplexOptionType2 . Types . ComplexOptionType4 ( ) ;
}
input . ReadMessage ( Fred ) ;
break ;
}
case 3 4 : {
barney_ . AddEntriesFrom ( input , _ repeated_barney_codec ) ;
break ;
}
}
}
# endif
}
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
void pb : : IBufferMessage . InternalMergeFrom ( ref pb : : ParseContext input ) {
uint tag ;
@ -2073,12 +2357,17 @@ namespace UnitTest.Issues.TestProtos {
}
}
}
# endif
#region Nested types
/// <summary>Container for nested types declared in the ComplexOptionType2 message type.</summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public static partial class Types {
public sealed partial class ComplexOptionType4 : pb : : IMessage < ComplexOptionType4 > , pb : : IBufferMessage {
public sealed partial class ComplexOptionType4 : pb : : IMessage < ComplexOptionType4 >
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
, pb : : IBufferMessage
# endif
{
private static readonly pb : : MessageParser < ComplexOptionType4 > _ parser = new pb : : MessageParser < ComplexOptionType4 > ( ( ) = > new ComplexOptionType4 ( ) ) ;
private pb : : UnknownFieldSet _ unknownFields ;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
@ -2191,9 +2480,25 @@ namespace UnitTest.Issues.TestProtos {
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public void MergeFrom ( pb : : CodedInputStream input ) {
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
input . ReadRawMessage ( this ) ;
# else
uint tag ;
while ( ( tag = input . ReadTag ( ) ) ! = 0 ) {
switch ( tag ) {
default :
_ unknownFields = pb : : UnknownFieldSet . MergeFieldFrom ( _ unknownFields , input ) ;
break ;
case 8 : {
Waldo = input . ReadInt32 ( ) ;
break ;
}
}
}
# endif
}
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
void pb : : IBufferMessage . InternalMergeFrom ( ref pb : : ParseContext input ) {
uint tag ;
@ -2209,6 +2514,7 @@ namespace UnitTest.Issues.TestProtos {
}
}
}
# endif
#region Extensions
/// <summary>Container for extensions for other messages declared in the ComplexOptionType4 message type.</summary>
@ -2226,7 +2532,11 @@ namespace UnitTest.Issues.TestProtos {
}
public sealed partial class ComplexOptionType3 : pb : : IMessage < ComplexOptionType3 > , pb : : IBufferMessage {
public sealed partial class ComplexOptionType3 : pb : : IMessage < ComplexOptionType3 >
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
, pb : : IBufferMessage
# endif
{
private static readonly pb : : MessageParser < ComplexOptionType3 > _ parser = new pb : : MessageParser < ComplexOptionType3 > ( ( ) = > new ComplexOptionType3 ( ) ) ;
private pb : : UnknownFieldSet _ unknownFields ;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
@ -2339,9 +2649,25 @@ namespace UnitTest.Issues.TestProtos {
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public void MergeFrom ( pb : : CodedInputStream input ) {
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
input . ReadRawMessage ( this ) ;
# else
uint tag ;
while ( ( tag = input . ReadTag ( ) ) ! = 0 ) {
switch ( tag ) {
default :
_ unknownFields = pb : : UnknownFieldSet . MergeFieldFrom ( _ unknownFields , input ) ;
break ;
case 8 : {
Qux = input . ReadInt32 ( ) ;
break ;
}
}
}
# endif
}
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
void pb : : IBufferMessage . InternalMergeFrom ( ref pb : : ParseContext input ) {
uint tag ;
@ -2357,13 +2683,18 @@ namespace UnitTest.Issues.TestProtos {
}
}
}
# endif
}
/// <summary>
/// Note that we try various different ways of naming the same extension.
/// </summary>
public sealed partial class VariousComplexOptions : pb : : IMessage < VariousComplexOptions > , pb : : IBufferMessage {
public sealed partial class VariousComplexOptions : pb : : IMessage < VariousComplexOptions >
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
, pb : : IBufferMessage
# endif
{
private static readonly pb : : MessageParser < VariousComplexOptions > _ parser = new pb : : MessageParser < VariousComplexOptions > ( ( ) = > new VariousComplexOptions ( ) ) ;
private pb : : UnknownFieldSet _ unknownFields ;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
@ -2452,9 +2783,21 @@ namespace UnitTest.Issues.TestProtos {
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public void MergeFrom ( pb : : CodedInputStream input ) {
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
input . ReadRawMessage ( this ) ;
# else
uint tag ;
while ( ( tag = input . ReadTag ( ) ) ! = 0 ) {
switch ( tag ) {
default :
_ unknownFields = pb : : UnknownFieldSet . MergeFieldFrom ( _ unknownFields , input ) ;
break ;
}
}
# endif
}
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
void pb : : IBufferMessage . InternalMergeFrom ( ref pb : : ParseContext input ) {
uint tag ;
@ -2466,13 +2809,18 @@ namespace UnitTest.Issues.TestProtos {
}
}
}
# endif
}
/// <summary>
/// A helper type used to test aggregate option parsing
/// </summary>
public sealed partial class Aggregate : pb : : IMessage < Aggregate > , pb : : IBufferMessage {
public sealed partial class Aggregate : pb : : IMessage < Aggregate >
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
, pb : : IBufferMessage
# endif
{
private static readonly pb : : MessageParser < Aggregate > _ parser = new pb : : MessageParser < Aggregate > ( ( ) = > new Aggregate ( ) ) ;
private pb : : UnknownFieldSet _ unknownFields ;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
@ -2639,9 +2987,36 @@ namespace UnitTest.Issues.TestProtos {
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public void MergeFrom ( pb : : CodedInputStream input ) {
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
input . ReadRawMessage ( this ) ;
# else
uint tag ;
while ( ( tag = input . ReadTag ( ) ) ! = 0 ) {
switch ( tag ) {
default :
_ unknownFields = pb : : UnknownFieldSet . MergeFieldFrom ( _ unknownFields , input ) ;
break ;
case 8 : {
I = input . ReadInt32 ( ) ;
break ;
}
case 1 8 : {
S = input . ReadString ( ) ;
break ;
}
case 2 6 : {
if ( sub_ = = null ) {
Sub = new global :: UnitTest . Issues . TestProtos . Aggregate ( ) ;
}
input . ReadMessage ( Sub ) ;
break ;
}
}
}
# endif
}
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
void pb : : IBufferMessage . InternalMergeFrom ( ref pb : : ParseContext input ) {
uint tag ;
@ -2668,10 +3043,15 @@ namespace UnitTest.Issues.TestProtos {
}
}
}
# endif
}
public sealed partial class AggregateMessage : pb : : IMessage < AggregateMessage > , pb : : IBufferMessage {
public sealed partial class AggregateMessage : pb : : IMessage < AggregateMessage >
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
, pb : : IBufferMessage
# endif
{
private static readonly pb : : MessageParser < AggregateMessage > _ parser = new pb : : MessageParser < AggregateMessage > ( ( ) = > new AggregateMessage ( ) ) ;
private pb : : UnknownFieldSet _ unknownFields ;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
@ -2784,9 +3164,25 @@ namespace UnitTest.Issues.TestProtos {
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public void MergeFrom ( pb : : CodedInputStream input ) {
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
input . ReadRawMessage ( this ) ;
# else
uint tag ;
while ( ( tag = input . ReadTag ( ) ) ! = 0 ) {
switch ( tag ) {
default :
_ unknownFields = pb : : UnknownFieldSet . MergeFieldFrom ( _ unknownFields , input ) ;
break ;
case 8 : {
Fieldname = input . ReadInt32 ( ) ;
break ;
}
}
}
# endif
}
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
void pb : : IBufferMessage . InternalMergeFrom ( ref pb : : ParseContext input ) {
uint tag ;
@ -2802,13 +3198,18 @@ namespace UnitTest.Issues.TestProtos {
}
}
}
# endif
}
/// <summary>
/// Test custom options for nested type.
/// </summary>
public sealed partial class NestedOptionType : pb : : IMessage < NestedOptionType > , pb : : IBufferMessage {
public sealed partial class NestedOptionType : pb : : IMessage < NestedOptionType >
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
, pb : : IBufferMessage
# endif
{
private static readonly pb : : MessageParser < NestedOptionType > _ parser = new pb : : MessageParser < NestedOptionType > ( ( ) = > new NestedOptionType ( ) ) ;
private pb : : UnknownFieldSet _ unknownFields ;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
@ -2897,9 +3298,21 @@ namespace UnitTest.Issues.TestProtos {
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public void MergeFrom ( pb : : CodedInputStream input ) {
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
input . ReadRawMessage ( this ) ;
# else
uint tag ;
while ( ( tag = input . ReadTag ( ) ) ! = 0 ) {
switch ( tag ) {
default :
_ unknownFields = pb : : UnknownFieldSet . MergeFieldFrom ( _ unknownFields , input ) ;
break ;
}
}
# endif
}
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
void pb : : IBufferMessage . InternalMergeFrom ( ref pb : : ParseContext input ) {
uint tag ;
@ -2911,6 +3324,7 @@ namespace UnitTest.Issues.TestProtos {
}
}
}
# endif
#region Nested types
/// <summary>Container for nested types declared in the NestedOptionType message type.</summary>
@ -2921,7 +3335,11 @@ namespace UnitTest.Issues.TestProtos {
[pbr::OriginalName("NESTED_ENUM_VALUE")] Value = 1 ,
}
public sealed partial class NestedMessage : pb : : IMessage < NestedMessage > , pb : : IBufferMessage {
public sealed partial class NestedMessage : pb : : IMessage < NestedMessage >
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
, pb : : IBufferMessage
# endif
{
private static readonly pb : : MessageParser < NestedMessage > _ parser = new pb : : MessageParser < NestedMessage > ( ( ) = > new NestedMessage ( ) ) ;
private pb : : UnknownFieldSet _ unknownFields ;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
@ -3034,9 +3452,25 @@ namespace UnitTest.Issues.TestProtos {
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public void MergeFrom ( pb : : CodedInputStream input ) {
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
input . ReadRawMessage ( this ) ;
# else
uint tag ;
while ( ( tag = input . ReadTag ( ) ) ! = 0 ) {
switch ( tag ) {
default :
_ unknownFields = pb : : UnknownFieldSet . MergeFieldFrom ( _ unknownFields , input ) ;
break ;
case 8 : {
NestedField = input . ReadInt32 ( ) ;
break ;
}
}
}
# endif
}
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
void pb : : IBufferMessage . InternalMergeFrom ( ref pb : : ParseContext input ) {
uint tag ;
@ -3052,6 +3486,7 @@ namespace UnitTest.Issues.TestProtos {
}
}
}
# endif
}