public void MergeFrom(pb::CodedInputStream input) { uint tag; while ((tag = input.ReadTag()) != 0) { switch (tag) { default: input.SkipLastField(); break; case 8: { Ret = input.ReadSInt32(); break; } case 18: { if (userMoney_ == null) { userMoney_ = new global::Com.Proto.UserMoneyPB(); } input.ReadMessage(userMoney_); break; } case 26: { if (userDraw_ == null) { userDraw_ = new global::Com.Proto.UserDrawPB(); } input.ReadMessage(userDraw_); break; } case 34: { awards_.AddEntriesFrom(input, _repeated_awards_codec); break; } case 42: { if (userDrawInfo_ == null) { userDrawInfo_ = new global::Com.Proto.UserDrawInfoPB(); } input.ReadMessage(userDrawInfo_); break; } case 50: { if (userItem_ == null) { userItem_ = new global::Com.Proto.UserItemPB(); } input.ReadMessage(userItem_); break; } } } }
public void MergeFrom(DrawRes other) { if (other == null) { return; } if (other.Ret != 0) { Ret = other.Ret; } if (other.userMoney_ != null) { if (userMoney_ == null) { userMoney_ = new global::Com.Proto.UserMoneyPB(); } UserMoney.MergeFrom(other.UserMoney); } if (other.userDraw_ != null) { if (userDraw_ == null) { userDraw_ = new global::Com.Proto.UserDrawPB(); } UserDraw.MergeFrom(other.UserDraw); } awards_.Add(other.awards_); if (other.userDrawInfo_ != null) { if (userDrawInfo_ == null) { userDrawInfo_ = new global::Com.Proto.UserDrawInfoPB(); } UserDrawInfo.MergeFrom(other.UserDrawInfo); } if (other.userItem_ != null) { if (userItem_ == null) { userItem_ = new global::Com.Proto.UserItemPB(); } UserItem.MergeFrom(other.UserItem); } }