Ejemplo n.º 1
0
 public void MergeFrom(OptimizableVector other)
 {
     if (other == null)
     {
         return;
     }
     if (other.value_ != null)
     {
         if (value_ == null)
         {
             Value = new global::NetworkData.Vector();
         }
         Value.MergeFrom(other.Value);
     }
     if (other.momentum_ != null)
     {
         if (momentum_ == null)
         {
             Momentum = new global::NetworkData.Vector();
         }
         Momentum.MergeFrom(other.Momentum);
     }
     if (other.velocity_ != null)
     {
         if (velocity_ == null)
         {
             Velocity = new global::NetworkData.Vector();
         }
         Velocity.MergeFrom(other.Velocity);
     }
     _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
 }