public void MergeFrom(Response other) { if (other == null) { return; } if (other.RetType != 0) { RetType = other.RetType; } if (other.RetMsg.Length != 0) { RetMsg = other.RetMsg; } if (other.ErrCode != 0) { ErrCode = other.ErrCode; } if (other.s2C_ != null) { if (s2C_ == null) { S2C = new global::InitConnect.S2C(); } S2C.MergeFrom(other.S2C); } _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); }
public void MergeFrom(pb::CodedInputStream input) { uint tag; while ((tag = input.ReadTag()) != 0) { switch (tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; case 8: { RetType = input.ReadInt32(); break; } case 18: { RetMsg = input.ReadString(); break; } case 24: { ErrCode = input.ReadInt32(); break; } case 34: { if (s2C_ == null) { S2C = new global::InitConnect.S2C(); } input.ReadMessage(S2C); break; } } } }