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

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

                case 10: {
                    if (result_ == null)
                    {
                        result_ = new global::Remoteservices.Result();
                    }
                    input.ReadMessage(result_);
                    break;
                }

                case 18: {
                    if (command_ == null)
                    {
                        command_ = new global::Remoteservices.Command();
                    }
                    input.ReadMessage(command_);
                    break;
                }
                }
            }
        }
コード例 #2
0
 public void MergeFrom(Response other)
 {
     if (other == null)
     {
         return;
     }
     if (other.result_ != null)
     {
         if (result_ == null)
         {
             result_ = new global::Remoteservices.Result();
         }
         Result.MergeFrom(other.Result);
     }
     if (other.command_ != null)
     {
         if (command_ == null)
         {
             command_ = new global::Remoteservices.Command();
         }
         Command.MergeFrom(other.Command);
     }
 }