public void MergeFrom(RspSubMarketDataMsg other) { if (other == null) { return; } if (other.instrument_ != null) { if (instrument_ == null) { Instrument = new global::Evelynn.Base.Response.SpecificInstrumentField(); } Instrument.MergeFrom(other.Instrument); } if (other.error_ != null) { if (error_ == null) { Error = new global::Evelynn.Base.Response.ErrorField(); } Error.MergeFrom(other.Error); } if (other.RequestId != 0) { RequestId = other.RequestId; } if (other.IsLast != false) { IsLast = other.IsLast; } _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); }
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: { if (instrument_ == null) { Instrument = new global::Evelynn.Base.Response.SpecificInstrumentField(); } input.ReadMessage(Instrument); break; } case 18: { if (error_ == null) { Error = new global::Evelynn.Base.Response.ErrorField(); } input.ReadMessage(Error); break; } case 24: { RequestId = input.ReadInt32(); break; } case 32: { IsLast = input.ReadBool(); 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: { if (instrument_ == null) { Instrument = new global::Evelynn.Base.Response.SpecificInstrumentField(); } input.ReadMessage(Instrument); break; } case 18: { if (error_ == null) { Error = new global::Evelynn.Base.Response.ErrorField(); } input.ReadMessage(Error); break; } case 24: { RequestId = input.ReadInt32(); break; } case 32: { IsLast = input.ReadBool(); break; } } } }