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 10: { global::Grpc.Testing.ByteBufferParams subBuilder = new global::Grpc.Testing.ByteBufferParams(); if (payloadCase_ == PayloadOneofCase.BytebufParams) { subBuilder.MergeFrom(BytebufParams); } input.ReadMessage(subBuilder); BytebufParams = subBuilder; break; } case 18: { global::Grpc.Testing.SimpleProtoParams subBuilder = new global::Grpc.Testing.SimpleProtoParams(); if (payloadCase_ == PayloadOneofCase.SimpleParams) { subBuilder.MergeFrom(SimpleParams); } input.ReadMessage(subBuilder); SimpleParams = subBuilder; break; } case 26: { global::Grpc.Testing.ComplexProtoParams subBuilder = new global::Grpc.Testing.ComplexProtoParams(); if (payloadCase_ == PayloadOneofCase.ComplexParams) { subBuilder.MergeFrom(ComplexParams); } input.ReadMessage(subBuilder); ComplexParams = subBuilder; break; } } } #endif }
public void MergeFrom(pb::CodedInputStream input) { uint tag; while ((tag = input.ReadTag()) != 0) { switch (tag) { default: input.SkipLastField(); break; case 10: { global::Grpc.Testing.ByteBufferParams subBuilder = new global::Grpc.Testing.ByteBufferParams(); if (payloadCase_ == PayloadOneofCase.BytebufParams) { subBuilder.MergeFrom(BytebufParams); } input.ReadMessage(subBuilder); BytebufParams = subBuilder; break; } case 18: { global::Grpc.Testing.SimpleProtoParams subBuilder = new global::Grpc.Testing.SimpleProtoParams(); if (payloadCase_ == PayloadOneofCase.SimpleParams) { subBuilder.MergeFrom(SimpleParams); } input.ReadMessage(subBuilder); SimpleParams = subBuilder; break; } case 26: { global::Grpc.Testing.ComplexProtoParams subBuilder = new global::Grpc.Testing.ComplexProtoParams(); if (payloadCase_ == PayloadOneofCase.ComplexParams) { subBuilder.MergeFrom(ComplexParams); } input.ReadMessage(subBuilder); ComplexParams = subBuilder; break; } } } }
void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { uint tag; while ((tag = input.ReadTag()) != 0) { switch (tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); break; case 10: { global::Grpc.Testing.ByteBufferParams subBuilder = new global::Grpc.Testing.ByteBufferParams(); if (payloadCase_ == PayloadOneofCase.BytebufParams) { subBuilder.MergeFrom(BytebufParams); } input.ReadMessage(subBuilder); BytebufParams = subBuilder; break; } case 18: { global::Grpc.Testing.SimpleProtoParams subBuilder = new global::Grpc.Testing.SimpleProtoParams(); if (payloadCase_ == PayloadOneofCase.SimpleParams) { subBuilder.MergeFrom(SimpleParams); } input.ReadMessage(subBuilder); SimpleParams = subBuilder; break; } case 26: { global::Grpc.Testing.ComplexProtoParams subBuilder = new global::Grpc.Testing.ComplexProtoParams(); if (payloadCase_ == PayloadOneofCase.ComplexParams) { subBuilder.MergeFrom(ComplexParams); } input.ReadMessage(subBuilder); ComplexParams = subBuilder; break; } } } }