Example #1
0
 public void MergeFrom(EmployeeResponse other)
 {
     if (other == null)
     {
         return;
     }
     if (other.employee_ != null)
     {
         if (employee_ == null)
         {
             employee_ = new global::Messages.Employee();
         }
         Employee.MergeFrom(other.Employee);
     }
 }
Example #2
0
        public void MergeFrom(pb::CodedInputStream input)
        {
            uint tag;

            while ((tag = input.ReadTag()) != 0)
            {
                switch (tag)
                {
                default:
                    input.SkipLastField();
                    break;

                case 10: {
                    if (employee_ == null)
                    {
                        employee_ = new global::Messages.Employee();
                    }
                    input.ReadMessage(employee_);
                    break;
                }
                }
            }
        }