示例#1
0
文件: Wire.g.cs 项目: panjkov/Chasm
 public void MergeFrom(TreeWireNode other)
 {
     if (other == null)
     {
         return;
     }
     if (other.Name.Length != 0)
     {
         Name = other.Name;
     }
     if (other.Kind != 0)
     {
         Kind = other.Kind;
     }
     if (other.nodeId_ != null)
     {
         if (nodeId_ == null)
         {
             NodeId = new global::SourceCode.Chasm.Serializer.Proto.Wire.Sha1Wire();
         }
         NodeId.MergeFrom(other.NodeId);
     }
     if (other.HasData != false)
     {
         HasData = other.HasData;
     }
     if (other.Data.Length != 0)
     {
         Data = other.Data;
     }
     _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
 }