예제 #1
0
 public void MergeFrom(UserRequest other)
 {
     if (other == null)
     {
         return;
     }
     if (other.user_ != null)
     {
         if (user_ == null)
         {
             user_ = new global::Grpctest.Messages.User();
         }
         User.MergeFrom(other.User);
     }
 }
예제 #2
0
        public void MergeFrom(pb::CodedInputStream input)
        {
            uint tag;

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

                case 10: {
                    if (user_ == null)
                    {
                        user_ = new global::Grpctest.Messages.User();
                    }
                    input.ReadMessage(user_);
                    break;
                }
                }
            }
        }