Example #1
0
        public void MergeFrom(pb::CodedInputStream input)
        {
            uint tag;

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

                case 8: {
                    Code = input.ReadInt32();
                    break;
                }

                case 18: {
                    if (info_ == null)
                    {
                        info_ = new global::BestSects.protocol.SectInfo();
                    }
                    input.ReadMessage(info_);
                    break;
                }
                }
            }
        }
Example #2
0
 public void MergeFrom(ResCreatSectMessage other)
 {
     if (other == null)
     {
         return;
     }
     if (other.Code != 0)
     {
         Code = other.Code;
     }
     if (other.info_ != null)
     {
         if (info_ == null)
         {
             info_ = new global::BestSects.protocol.SectInfo();
         }
         Info.MergeFrom(other.Info);
     }
 }