public void MergeFrom(UnlockCoaxSleepAudioRes other) { if (other == null) { return; } if (other.Ret != 0) { Ret = other.Ret; } if (other.userCoaxSleepInfo_ != null) { if (userCoaxSleepInfo_ == null) { userCoaxSleepInfo_ = new global::Com.Proto.UserCoaxSleepInfoPB(); } UserCoaxSleepInfo.MergeFrom(other.UserCoaxSleepInfo); } if (other.userMoney_ != null) { if (userMoney_ == null) { userMoney_ = new global::Com.Proto.UserMoneyPB(); } UserMoney.MergeFrom(other.UserMoney); } }
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 (userCoaxSleepInfo_ == null) { userCoaxSleepInfo_ = new global::Com.Proto.UserCoaxSleepInfoPB(); } input.ReadMessage(userCoaxSleepInfo_); break; } case 26: { if (userMoney_ == null) { userMoney_ = new global::Com.Proto.UserMoneyPB(); } input.ReadMessage(userMoney_); break; } } } }