コード例 #1
0
        public void MergeFrom(pb::CodedInputStream input)
        {
            uint tag;

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

                case 10: {
                    if (getAccounts_ == null)
                    {
                        getAccounts_ = new global::Com.Revolutionlandscaping.Businessmanager.CommonAction();
                    }
                    input.ReadMessage(getAccounts_);
                    break;
                }

                case 18: {
                    if (saveAccounts_ == null)
                    {
                        saveAccounts_ = new global::Com.Revolutionlandscaping.Businessmanager.CommonAction();
                    }
                    input.ReadMessage(saveAccounts_);
                    break;
                }

                case 26: {
                    if (deleteAccounts_ == null)
                    {
                        deleteAccounts_ = new global::Com.Revolutionlandscaping.Businessmanager.CommonAction();
                    }
                    input.ReadMessage(deleteAccounts_);
                    break;
                }

                case 34: {
                    if (getEmployees_ == null)
                    {
                        getEmployees_ = new global::Com.Revolutionlandscaping.Businessmanager.CommonAction();
                    }
                    input.ReadMessage(getEmployees_);
                    break;
                }

                case 42: {
                    if (saveEmployees_ == null)
                    {
                        saveEmployees_ = new global::Com.Revolutionlandscaping.Businessmanager.CommonAction();
                    }
                    input.ReadMessage(saveEmployees_);
                    break;
                }

                case 50: {
                    if (deleteEmployees_ == null)
                    {
                        deleteEmployees_ = new global::Com.Revolutionlandscaping.Businessmanager.CommonAction();
                    }
                    input.ReadMessage(deleteEmployees_);
                    break;
                }

                case 58: {
                    if (getJobs_ == null)
                    {
                        getJobs_ = new global::Com.Revolutionlandscaping.Businessmanager.CommonAction();
                    }
                    input.ReadMessage(getJobs_);
                    break;
                }

                case 66: {
                    if (saveJobs_ == null)
                    {
                        saveJobs_ = new global::Com.Revolutionlandscaping.Businessmanager.CommonAction();
                    }
                    input.ReadMessage(saveJobs_);
                    break;
                }

                case 74: {
                    if (deleteJobs_ == null)
                    {
                        deleteJobs_ = new global::Com.Revolutionlandscaping.Businessmanager.CommonAction();
                    }
                    input.ReadMessage(deleteJobs_);
                    break;
                }
                }
            }
        }
コード例 #2
0
 public void MergeFrom(MainController other)
 {
     if (other == null)
     {
         return;
     }
     if (other.getAccounts_ != null)
     {
         if (getAccounts_ == null)
         {
             getAccounts_ = new global::Com.Revolutionlandscaping.Businessmanager.CommonAction();
         }
         GetAccounts.MergeFrom(other.GetAccounts);
     }
     if (other.saveAccounts_ != null)
     {
         if (saveAccounts_ == null)
         {
             saveAccounts_ = new global::Com.Revolutionlandscaping.Businessmanager.CommonAction();
         }
         SaveAccounts.MergeFrom(other.SaveAccounts);
     }
     if (other.deleteAccounts_ != null)
     {
         if (deleteAccounts_ == null)
         {
             deleteAccounts_ = new global::Com.Revolutionlandscaping.Businessmanager.CommonAction();
         }
         DeleteAccounts.MergeFrom(other.DeleteAccounts);
     }
     if (other.getEmployees_ != null)
     {
         if (getEmployees_ == null)
         {
             getEmployees_ = new global::Com.Revolutionlandscaping.Businessmanager.CommonAction();
         }
         GetEmployees.MergeFrom(other.GetEmployees);
     }
     if (other.saveEmployees_ != null)
     {
         if (saveEmployees_ == null)
         {
             saveEmployees_ = new global::Com.Revolutionlandscaping.Businessmanager.CommonAction();
         }
         SaveEmployees.MergeFrom(other.SaveEmployees);
     }
     if (other.deleteEmployees_ != null)
     {
         if (deleteEmployees_ == null)
         {
             deleteEmployees_ = new global::Com.Revolutionlandscaping.Businessmanager.CommonAction();
         }
         DeleteEmployees.MergeFrom(other.DeleteEmployees);
     }
     if (other.getJobs_ != null)
     {
         if (getJobs_ == null)
         {
             getJobs_ = new global::Com.Revolutionlandscaping.Businessmanager.CommonAction();
         }
         GetJobs.MergeFrom(other.GetJobs);
     }
     if (other.saveJobs_ != null)
     {
         if (saveJobs_ == null)
         {
             saveJobs_ = new global::Com.Revolutionlandscaping.Businessmanager.CommonAction();
         }
         SaveJobs.MergeFrom(other.SaveJobs);
     }
     if (other.deleteJobs_ != null)
     {
         if (deleteJobs_ == null)
         {
             deleteJobs_ = new global::Com.Revolutionlandscaping.Businessmanager.CommonAction();
         }
         DeleteJobs.MergeFrom(other.DeleteJobs);
     }
 }