public void MergeFrom(pb::CodedInputStream input) { uint tag; while ((tag = input.ReadTag()) != 0) { switch (tag) { default: input.SkipLastField(); break; case 8: { Id = input.ReadSInt32(); break; } case 16: { elementType_ = (global::ElementTypePB)input.ReadEnum(); break; } case 24: { elementModule_ = (global::ElementModulePB)input.ReadEnum(); break; } case 34: { Name = input.ReadString(); break; } case 40: { NeedUnlock = input.ReadSInt32(); break; } case 50: { if (unlockClaim_ == null) { unlockClaim_ = new global::Com.Proto.UnlockRulePB(); } input.ReadMessage(unlockClaim_); break; } case 58: { Desc = input.ReadString(); break; } } } }
public void MergeFrom(ElementPB other) { if (other == null) { return; } if (other.Id != 0) { Id = other.Id; } if (other.ElementType != 0) { ElementType = other.ElementType; } if (other.ElementModule != 0) { ElementModule = other.ElementModule; } if (other.Name.Length != 0) { Name = other.Name; } if (other.NeedUnlock != 0) { NeedUnlock = other.NeedUnlock; } if (other.unlockClaim_ != null) { if (unlockClaim_ == null) { unlockClaim_ = new global::Com.Proto.UnlockRulePB(); } UnlockClaim.MergeFrom(other.UnlockClaim); } if (other.Desc.Length != 0) { Desc = other.Desc; } }