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

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

                case 8: {
                    Id = input.ReadSInt32();
                    break;
                }

                case 18: {
                    if (awardPB_ == null)
                    {
                        awardPB_ = new global::Com.Proto.AwardPB();
                    }
                    input.ReadMessage(awardPB_);
                    break;
                }
                }
            }
        }
예제 #2
0
 public void MergeFrom(ActivityCapsuleItemPB other)
 {
     if (other == null)
     {
         return;
     }
     if (other.Id != 0)
     {
         Id = other.Id;
     }
     if (other.awardPB_ != null)
     {
         if (awardPB_ == null)
         {
             awardPB_ = new global::Com.Proto.AwardPB();
         }
         AwardPB.MergeFrom(other.AwardPB);
     }
 }