protocol_g_r_p_c_proto_response_handler-p.html 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262
  1. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  2. <html xmlns="http://www.w3.org/1999/xhtml">
  3. <head>
  4. <meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
  5. <meta http-equiv="X-UA-Compatible" content="IE=9"/>
  6. <meta name="generator" content="Doxygen 1.8.17"/>
  7. <meta name="viewport" content="width=device-width, initial-scale=1"/>
  8. <title>GRPC Objective-C: &lt;GRPCProtoResponseHandler&gt; Protocol Reference</title>
  9. <link href="tabs.css" rel="stylesheet" type="text/css"/>
  10. <script type="text/javascript" src="jquery.js"></script>
  11. <script type="text/javascript" src="dynsections.js"></script>
  12. <link href="search/search.css" rel="stylesheet" type="text/css"/>
  13. <script type="text/javascript" src="search/searchdata.js"></script>
  14. <script type="text/javascript" src="search/search.js"></script>
  15. <link href="doxygen.css" rel="stylesheet" type="text/css" />
  16. </head>
  17. <body>
  18. <div id="top"><!-- do not remove this div, it is closed by doxygen! -->
  19. <div id="titlearea">
  20. <table cellspacing="0" cellpadding="0">
  21. <tbody>
  22. <tr style="height: 56px;">
  23. <td id="projectalign" style="padding-left: 0.5em;">
  24. <div id="projectname">GRPC Objective-C
  25. &#160;<span id="projectnumber">1.36.1</span>
  26. </div>
  27. </td>
  28. </tr>
  29. </tbody>
  30. </table>
  31. </div>
  32. <!-- end header part -->
  33. <!-- Generated by Doxygen 1.8.17 -->
  34. <script type="text/javascript">
  35. /* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
  36. var searchBox = new SearchBox("searchBox", "search",false,'Search');
  37. /* @license-end */
  38. </script>
  39. <script type="text/javascript" src="menudata.js"></script>
  40. <script type="text/javascript" src="menu.js"></script>
  41. <script type="text/javascript">
  42. /* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
  43. $(function() {
  44. initMenu('',true,false,'search.php','Search');
  45. $(document).ready(function() { init_search(); });
  46. });
  47. /* @license-end */</script>
  48. <div id="main-nav"></div>
  49. <!-- window showing the filter options -->
  50. <div id="MSearchSelectWindow"
  51. onmouseover="return searchBox.OnSearchSelectShow()"
  52. onmouseout="return searchBox.OnSearchSelectHide()"
  53. onkeydown="return searchBox.OnSearchSelectKey(event)">
  54. </div>
  55. <!-- iframe showing the search results (closed by default) -->
  56. <div id="MSearchResultsWindow">
  57. <iframe src="javascript:void(0)" frameborder="0"
  58. name="MSearchResults" id="MSearchResults">
  59. </iframe>
  60. </div>
  61. </div><!-- top -->
  62. <div class="header">
  63. <div class="summary">
  64. <a href="#pub-methods">Instance Methods</a> &#124;
  65. <a href="#properties">Properties</a> </div>
  66. <div class="headertitle">
  67. <div class="title">&lt;GRPCProtoResponseHandler&gt; Protocol Reference</div> </div>
  68. </div><!--header-->
  69. <div class="contents">
  70. <p>An object can implement this protocol to receive responses from server from a call.
  71. <a href="protocol_g_r_p_c_proto_response_handler-p.html#details">More...</a></p>
  72. <p><code>#import &lt;<a class="el" href="_proto_r_p_c_8h_source.html">ProtoRPC.h</a>&gt;</code></p>
  73. <table class="memberdecls">
  74. <tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a>
  75. Instance Methods</h2></td></tr>
  76. <tr class="memitem:a97764fdcf7020efde126e692b530cf87"><td class="memItemLeft" align="right" valign="top">(void)&#160;</td><td class="memItemRight" valign="bottom">- <a class="el" href="protocol_g_r_p_c_proto_response_handler-p.html#a97764fdcf7020efde126e692b530cf87">didReceiveInitialMetadata:</a></td></tr>
  77. <tr class="memdesc:a97764fdcf7020efde126e692b530cf87"><td class="mdescLeft">&#160;</td><td class="mdescRight">Issued when initial metadata is received from the server. <a href="protocol_g_r_p_c_proto_response_handler-p.html#a97764fdcf7020efde126e692b530cf87">More...</a><br /></td></tr>
  78. <tr class="separator:a97764fdcf7020efde126e692b530cf87"><td class="memSeparator" colspan="2">&#160;</td></tr>
  79. <tr class="memitem:a5bff36689f3a8e577b102d4b91995c51"><td class="memItemLeft" align="right" valign="top">(void)&#160;</td><td class="memItemRight" valign="bottom">- <a class="el" href="protocol_g_r_p_c_proto_response_handler-p.html#a5bff36689f3a8e577b102d4b91995c51">didReceiveProtoMessage:</a></td></tr>
  80. <tr class="memdesc:a5bff36689f3a8e577b102d4b91995c51"><td class="mdescLeft">&#160;</td><td class="mdescRight">Issued when a message is received from the server. <a href="protocol_g_r_p_c_proto_response_handler-p.html#a5bff36689f3a8e577b102d4b91995c51">More...</a><br /></td></tr>
  81. <tr class="separator:a5bff36689f3a8e577b102d4b91995c51"><td class="memSeparator" colspan="2">&#160;</td></tr>
  82. <tr class="memitem:a205a75bd87ab81f45786e0017271fb85"><td class="memItemLeft" align="right" valign="top">(void)&#160;</td><td class="memItemRight" valign="bottom">- <a class="el" href="protocol_g_r_p_c_proto_response_handler-p.html#a205a75bd87ab81f45786e0017271fb85">didCloseWithTrailingMetadata:error:</a></td></tr>
  83. <tr class="memdesc:a205a75bd87ab81f45786e0017271fb85"><td class="mdescLeft">&#160;</td><td class="mdescRight">Issued when a call finished. <a href="protocol_g_r_p_c_proto_response_handler-p.html#a205a75bd87ab81f45786e0017271fb85">More...</a><br /></td></tr>
  84. <tr class="separator:a205a75bd87ab81f45786e0017271fb85"><td class="memSeparator" colspan="2">&#160;</td></tr>
  85. <tr class="memitem:a891b99c840b8877987c250e9e312145a"><td class="memItemLeft" align="right" valign="top">(void)&#160;</td><td class="memItemRight" valign="bottom">- <a class="el" href="protocol_g_r_p_c_proto_response_handler-p.html#a891b99c840b8877987c250e9e312145a">didWriteMessage</a></td></tr>
  86. <tr class="memdesc:a891b99c840b8877987c250e9e312145a"><td class="mdescLeft">&#160;</td><td class="mdescRight">Issued when flow control is enabled for the call and a message (written with writeMessage: method of <a class="el" href="interface_g_r_p_c_streaming_proto_call.html" title="A client-streaming RPC call with Protobuf.">GRPCStreamingProtoCall</a> or the initializer of <a class="el" href="interface_g_r_p_c_unary_proto_call.html" title="A unary-request RPC call with Protobuf.">GRPCUnaryProtoCall</a>) is passed to gRPC core with SEND_MESSAGE operation. <a href="protocol_g_r_p_c_proto_response_handler-p.html#a891b99c840b8877987c250e9e312145a">More...</a><br /></td></tr>
  87. <tr class="separator:a891b99c840b8877987c250e9e312145a"><td class="memSeparator" colspan="2">&#160;</td></tr>
  88. </table><table class="memberdecls">
  89. <tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="properties"></a>
  90. Properties</h2></td></tr>
  91. <tr class="memitem:a6aeda5c3b028cc8663f6865b751d8eb1"><td class="memItemLeft" align="right" valign="top">dispatch_queue_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="protocol_g_r_p_c_proto_response_handler-p.html#a6aeda5c3b028cc8663f6865b751d8eb1">dispatchQueue</a></td></tr>
  92. <tr class="memdesc:a6aeda5c3b028cc8663f6865b751d8eb1"><td class="mdescLeft">&#160;</td><td class="mdescRight">All the responses must be issued to a user-provided dispatch queue. <a href="protocol_g_r_p_c_proto_response_handler-p.html#a6aeda5c3b028cc8663f6865b751d8eb1">More...</a><br /></td></tr>
  93. <tr class="separator:a6aeda5c3b028cc8663f6865b751d8eb1"><td class="memSeparator" colspan="2">&#160;</td></tr>
  94. </table>
  95. <a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
  96. <div class="textblock"><p>An object can implement this protocol to receive responses from server from a call. </p>
  97. </div><h2 class="groupheader">Method Documentation</h2>
  98. <a id="a205a75bd87ab81f45786e0017271fb85"></a>
  99. <h2 class="memtitle"><span class="permalink"><a href="#a205a75bd87ab81f45786e0017271fb85">&#9670;&nbsp;</a></span>didCloseWithTrailingMetadata:error:</h2>
  100. <div class="memitem">
  101. <div class="memproto">
  102. <table class="mlabels">
  103. <tr>
  104. <td class="mlabels-left">
  105. <table class="memname">
  106. <tr>
  107. <td class="memname">- (void) didCloseWithTrailingMetadata: </td>
  108. <td></td>
  109. <td class="paramtype">(nullable NSDictionary *)&#160;</td>
  110. <td class="paramname"><em>trailingMetadata</em></td>
  111. </tr>
  112. <tr>
  113. <td class="paramkey">error:</td>
  114. <td></td>
  115. <td class="paramtype">(nullable NSError *)&#160;</td>
  116. <td class="paramname"><em>error</em>&#160;</td>
  117. </tr>
  118. <tr>
  119. <td></td>
  120. <td></td>
  121. <td></td><td></td>
  122. </tr>
  123. </table>
  124. </td>
  125. <td class="mlabels-right">
  126. <span class="mlabels"><span class="mlabel">optional</span></span> </td>
  127. </tr>
  128. </table>
  129. </div><div class="memdoc">
  130. <p>Issued when a call finished. </p>
  131. <p>If the call finished successfully, <code>error</code> is nil and <code>trailingMetadata</code> consists any trailing metadata received from the server. Otherwise, <code>error</code> is non-nil and contains the corresponding error information, including gRPC error codes and error descriptions. </p>
  132. </div>
  133. </div>
  134. <a id="a97764fdcf7020efde126e692b530cf87"></a>
  135. <h2 class="memtitle"><span class="permalink"><a href="#a97764fdcf7020efde126e692b530cf87">&#9670;&nbsp;</a></span>didReceiveInitialMetadata:</h2>
  136. <div class="memitem">
  137. <div class="memproto">
  138. <table class="mlabels">
  139. <tr>
  140. <td class="mlabels-left">
  141. <table class="memname">
  142. <tr>
  143. <td class="memname">- (void) didReceiveInitialMetadata: </td>
  144. <td></td>
  145. <td class="paramtype">(nullable NSDictionary *)&#160;</td>
  146. <td class="paramname"><em>initialMetadata</em></td>
  147. <td></td>
  148. </tr>
  149. </table>
  150. </td>
  151. <td class="mlabels-right">
  152. <span class="mlabels"><span class="mlabel">optional</span></span> </td>
  153. </tr>
  154. </table>
  155. </div><div class="memdoc">
  156. <p>Issued when initial metadata is received from the server. </p>
  157. </div>
  158. </div>
  159. <a id="a5bff36689f3a8e577b102d4b91995c51"></a>
  160. <h2 class="memtitle"><span class="permalink"><a href="#a5bff36689f3a8e577b102d4b91995c51">&#9670;&nbsp;</a></span>didReceiveProtoMessage:</h2>
  161. <div class="memitem">
  162. <div class="memproto">
  163. <table class="mlabels">
  164. <tr>
  165. <td class="mlabels-left">
  166. <table class="memname">
  167. <tr>
  168. <td class="memname">- (void) didReceiveProtoMessage: </td>
  169. <td></td>
  170. <td class="paramtype">(nullable GPBMessage *)&#160;</td>
  171. <td class="paramname"><em>message</em></td>
  172. <td></td>
  173. </tr>
  174. </table>
  175. </td>
  176. <td class="mlabels-right">
  177. <span class="mlabels"><span class="mlabel">optional</span></span> </td>
  178. </tr>
  179. </table>
  180. </div><div class="memdoc">
  181. <p>Issued when a message is received from the server. </p>
  182. <p>The message is the deserialized proto object. </p>
  183. </div>
  184. </div>
  185. <a id="a891b99c840b8877987c250e9e312145a"></a>
  186. <h2 class="memtitle"><span class="permalink"><a href="#a891b99c840b8877987c250e9e312145a">&#9670;&nbsp;</a></span>didWriteMessage</h2>
  187. <div class="memitem">
  188. <div class="memproto">
  189. <table class="mlabels">
  190. <tr>
  191. <td class="mlabels-left">
  192. <table class="memname">
  193. <tr>
  194. <td class="memname">- (void) didWriteMessage </td>
  195. <td></td>
  196. <td class="paramname"></td>
  197. <td></td>
  198. </tr>
  199. </table>
  200. </td>
  201. <td class="mlabels-right">
  202. <span class="mlabels"><span class="mlabel">optional</span></span> </td>
  203. </tr>
  204. </table>
  205. </div><div class="memdoc">
  206. <p>Issued when flow control is enabled for the call and a message (written with writeMessage: method of <a class="el" href="interface_g_r_p_c_streaming_proto_call.html" title="A client-streaming RPC call with Protobuf.">GRPCStreamingProtoCall</a> or the initializer of <a class="el" href="interface_g_r_p_c_unary_proto_call.html" title="A unary-request RPC call with Protobuf.">GRPCUnaryProtoCall</a>) is passed to gRPC core with SEND_MESSAGE operation. </p>
  207. </div>
  208. </div>
  209. <h2 class="groupheader">Property Documentation</h2>
  210. <a id="a6aeda5c3b028cc8663f6865b751d8eb1"></a>
  211. <h2 class="memtitle"><span class="permalink"><a href="#a6aeda5c3b028cc8663f6865b751d8eb1">&#9670;&nbsp;</a></span>dispatchQueue</h2>
  212. <div class="memitem">
  213. <div class="memproto">
  214. <table class="mlabels">
  215. <tr>
  216. <td class="mlabels-left">
  217. <table class="memname">
  218. <tr>
  219. <td class="memname">- (dispatch_queue_t) dispatchQueue</td>
  220. </tr>
  221. </table>
  222. </td>
  223. <td class="mlabels-right">
  224. <span class="mlabels"><span class="mlabel">read</span><span class="mlabel">required</span><span class="mlabel">atomic</span><span class="mlabel">assign</span></span> </td>
  225. </tr>
  226. </table>
  227. </div><div class="memdoc">
  228. <p>All the responses must be issued to a user-provided dispatch queue. </p>
  229. <p>This property specifies the dispatch queue to be used for issuing the notifications. </p>
  230. </div>
  231. </div>
  232. <hr/>The documentation for this protocol was generated from the following file:<ul>
  233. <li>src/objective-c/ProtoRPC/<a class="el" href="_proto_r_p_c_8h_source.html">ProtoRPC.h</a></li>
  234. </ul>
  235. </div><!-- contents -->
  236. <!-- start footer part -->
  237. <hr class="footer"/><address class="footer"><small>
  238. Generated on Wed Mar 3 2021 19:20:10 for GRPC Objective-C by &#160;<a href="http://www.doxygen.org/index.html">
  239. <img class="footer" src="doxygen.png" alt="doxygen"/>
  240. </a> 1.8.17
  241. </small></address>
  242. </body>
  243. </html>