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: { Signature = input.ReadBytes(); break; } case 18: { SenderID = input.ReadBytes(); break; } case 26: { global::ChatServer.Transmissions.Message subBuilder = new global::ChatServer.Transmissions.Message(); if (contentCase_ == ContentOneofCase.Message) { subBuilder.MergeFrom(Message); } input.ReadMessage(subBuilder); Message = subBuilder; break; } case 34: { global::ChatServer.Transmissions.Request subBuilder = new global::ChatServer.Transmissions.Request(); if (contentCase_ == ContentOneofCase.Request) { subBuilder.MergeFrom(Request); } input.ReadMessage(subBuilder); Request = subBuilder; break; } case 42: { global::ChatServer.Transmissions.Response subBuilder = new global::ChatServer.Transmissions.Response(); if (contentCase_ == ContentOneofCase.Response) { subBuilder.MergeFrom(Response); } input.ReadMessage(subBuilder); Response = subBuilder; break; } } } #endif }
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: { Signature = input.ReadBytes(); break; } case 18: { SenderID = input.ReadBytes(); break; } case 26: { global::ChatServer.Transmissions.Message subBuilder = new global::ChatServer.Transmissions.Message(); if (contentCase_ == ContentOneofCase.Message) { subBuilder.MergeFrom(Message); } input.ReadMessage(subBuilder); Message = subBuilder; break; } case 34: { global::ChatServer.Transmissions.Request subBuilder = new global::ChatServer.Transmissions.Request(); if (contentCase_ == ContentOneofCase.Request) { subBuilder.MergeFrom(Request); } input.ReadMessage(subBuilder); Request = subBuilder; break; } case 42: { global::ChatServer.Transmissions.Response subBuilder = new global::ChatServer.Transmissions.Response(); if (contentCase_ == ContentOneofCase.Response) { subBuilder.MergeFrom(Response); } input.ReadMessage(subBuilder); Response = subBuilder; break; } } } }